Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1 | #! /bin/sh |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 2 | # From configure.ac Revision: 1.583 . |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.69 for OpenSSH Portable. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5 | # |
| 6 | # Report bugs to <openssh-unix-dev@mindrot.org>. |
| 7 | # |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8 | # |
| 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 10 | # |
| 11 | # |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12 | # This configure script is free software; the Free Software Foundation |
| 13 | # gives unlimited permission to copy, distribute and modify it. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17 | |
| 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 21 | emulate sh |
| 22 | NULLCMD=: |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 24 | # is contrary to our usage. Disable this feature. |
| 25 | alias -g '${1+"$@"}'='"$@"' |
| 26 | setopt NO_GLOB_SUBST |
| 27 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 28 | case `(set -o) 2>/dev/null` in #( |
| 29 | *posix*) : |
| 30 | set -o posix ;; #( |
| 31 | *) : |
| 32 | ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 33 | esac |
| 34 | fi |
| 35 | |
| 36 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 37 | as_nl=' |
| 38 | ' |
| 39 | export as_nl |
| 40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 45 | # but without wasting forks for bash or zsh. |
| 46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='print -r --' |
| 49 | as_echo_n='print -rn --' |
| 50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 51 | as_echo='printf %s\n' |
| 52 | as_echo_n='printf %s' |
| 53 | else |
| 54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 56 | as_echo_n='/usr/ucb/echo -n' |
| 57 | else |
| 58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 59 | as_echo_n_body='eval |
| 60 | arg=$1; |
| 61 | case $arg in #( |
| 62 | *"$as_nl"*) |
| 63 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 65 | esac; |
| 66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 67 | ' |
| 68 | export as_echo_n_body |
| 69 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 70 | fi |
| 71 | export as_echo_body |
| 72 | as_echo='sh -c $as_echo_body as_echo' |
| 73 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 74 | |
| 75 | # The user is always right. |
| 76 | if test "${PATH_SEPARATOR+set}" != set; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 77 | PATH_SEPARATOR=: |
| 78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 | PATH_SEPARATOR=';' |
| 81 | } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 82 | fi |
| 83 | |
| 84 | |
| 85 | # IFS |
| 86 | # We need space, tab and new line, in precisely that order. Quoting is |
| 87 | # there to prevent editors from complaining about space-tab. |
| 88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 89 | # splitting by setting IFS to empty value.) |
| 90 | IFS=" "" $as_nl" |
| 91 | |
| 92 | # Find who we are. Look in the path if we contain no directory separator. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 93 | as_myself= |
| 94 | case $0 in #(( |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 103 | IFS=$as_save_IFS |
| 104 | |
| 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 | exit 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 115 | fi |
| 116 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 134 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
| 138 | # Use a proper internal environment variable to ensure we don't fall |
| 139 | # into an infinite loop, continuously re-executing ourselves. |
| 140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 141 | _as_can_reexec=no; export _as_can_reexec; |
| 142 | # We cannot yet assume a decent shell, so we have to provide a |
| 143 | # neutralization value for shells without unset; and this also |
| 144 | # works around shells that cannot unset nonexistent variables. |
| 145 | # Preserve -v and -x to the replacement shell. |
| 146 | BASH_ENV=/dev/null |
| 147 | ENV=/dev/null |
| 148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 149 | case $- in # (((( |
| 150 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 151 | *v* ) as_opts=-v ;; |
| 152 | *x* ) as_opts=-x ;; |
| 153 | * ) as_opts= ;; |
| 154 | esac |
| 155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 156 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 157 | # out after a failed `exec'. |
| 158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 159 | as_fn_exit 255 |
| 160 | fi |
| 161 | # We don't want this to propagate to other subprocesses. |
| 162 | { _as_can_reexec=; unset _as_can_reexec;} |
| 163 | if test "x$CONFIG_SHELL" = x; then |
| 164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 165 | emulate sh |
| 166 | NULLCMD=: |
| 167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 168 | # is contrary to our usage. Disable this feature. |
| 169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 170 | setopt NO_GLOB_SUBST |
| 171 | else |
| 172 | case \`(set -o) 2>/dev/null\` in #( |
| 173 | *posix*) : |
| 174 | set -o posix ;; #( |
| 175 | *) : |
| 176 | ;; |
| 177 | esac |
| 178 | fi |
| 179 | " |
| 180 | as_required="as_fn_return () { (exit \$1); } |
| 181 | as_fn_success () { as_fn_return 0; } |
| 182 | as_fn_failure () { as_fn_return 1; } |
| 183 | as_fn_ret_success () { return 0; } |
| 184 | as_fn_ret_failure () { return 1; } |
| 185 | |
| 186 | exitcode=0 |
| 187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 192 | |
| 193 | else |
| 194 | exitcode=1; echo positional parameters were not saved. |
| 195 | fi |
| 196 | test x\$exitcode = x0 || exit 1 |
| 197 | test -x / || exit 1" |
| 198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 202 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 203 | if (eval "$as_required") 2>/dev/null; then : |
| 204 | as_have_required=yes |
| 205 | else |
| 206 | as_have_required=no |
| 207 | fi |
| 208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 209 | |
| 210 | else |
| 211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 212 | as_found=false |
| 213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 214 | do |
| 215 | IFS=$as_save_IFS |
| 216 | test -z "$as_dir" && as_dir=. |
| 217 | as_found=: |
| 218 | case $as_dir in #( |
| 219 | /*) |
| 220 | for as_base in sh bash ksh sh5; do |
| 221 | # Try only shells that exist, to save several forks. |
| 222 | as_shell=$as_dir/$as_base |
| 223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 225 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 227 | break 2 |
| 228 | fi |
| 229 | fi |
| 230 | done;; |
| 231 | esac |
| 232 | as_found=false |
| 233 | done |
| 234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 236 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 237 | fi; } |
| 238 | IFS=$as_save_IFS |
| 239 | |
| 240 | |
| 241 | if test "x$CONFIG_SHELL" != x; then : |
| 242 | export CONFIG_SHELL |
| 243 | # We cannot yet assume a decent shell, so we have to provide a |
| 244 | # neutralization value for shells without unset; and this also |
| 245 | # works around shells that cannot unset nonexistent variables. |
| 246 | # Preserve -v and -x to the replacement shell. |
| 247 | BASH_ENV=/dev/null |
| 248 | ENV=/dev/null |
| 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 | case $- in # (((( |
| 251 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 252 | *v* ) as_opts=-v ;; |
| 253 | *x* ) as_opts=-x ;; |
| 254 | * ) as_opts= ;; |
| 255 | esac |
| 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 258 | # out after a failed `exec'. |
| 259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 260 | exit 255 |
| 261 | fi |
| 262 | |
| 263 | if test x$as_have_required = xno; then : |
| 264 | $as_echo "$0: This script requires a shell more modern than all" |
| 265 | $as_echo "$0: the shells that I found on your system." |
| 266 | if test x${ZSH_VERSION+set} = xset ; then |
| 267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 269 | else |
| 270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 271 | $0: openssh-unix-dev@mindrot.org about your system, |
| 272 | $0: including any error possibly output before this |
| 273 | $0: message. Then install a modern shell, or manually run |
| 274 | $0: the script under such a shell if you do have one." |
| 275 | fi |
| 276 | exit 1 |
| 277 | fi |
| 278 | fi |
| 279 | fi |
| 280 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 | export SHELL |
| 282 | # Unset more variables known to interfere with behavior of common tools. |
| 283 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 | |
| 286 | ## --------------------- ## |
| 287 | ## M4sh Shell Functions. ## |
| 288 | ## --------------------- ## |
| 289 | # as_fn_unset VAR |
| 290 | # --------------- |
| 291 | # Portably unset VAR. |
| 292 | as_fn_unset () |
| 293 | { |
| 294 | { eval $1=; unset $1;} |
| 295 | } |
| 296 | as_unset=as_fn_unset |
| 297 | |
| 298 | # as_fn_set_status STATUS |
| 299 | # ----------------------- |
| 300 | # Set $? to STATUS, without forking. |
| 301 | as_fn_set_status () |
| 302 | { |
| 303 | return $1 |
| 304 | } # as_fn_set_status |
| 305 | |
| 306 | # as_fn_exit STATUS |
| 307 | # ----------------- |
| 308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 309 | as_fn_exit () |
| 310 | { |
| 311 | set +e |
| 312 | as_fn_set_status $1 |
| 313 | exit $1 |
| 314 | } # as_fn_exit |
| 315 | |
| 316 | # as_fn_mkdir_p |
| 317 | # ------------- |
| 318 | # Create "$as_dir" as a directory, including parents if necessary. |
| 319 | as_fn_mkdir_p () |
| 320 | { |
| 321 | |
| 322 | case $as_dir in #( |
| 323 | -*) as_dir=./$as_dir;; |
| 324 | esac |
| 325 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 326 | as_dirs= |
| 327 | while :; do |
| 328 | case $as_dir in #( |
| 329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 330 | *) as_qdir=$as_dir;; |
| 331 | esac |
| 332 | as_dirs="'$as_qdir' $as_dirs" |
| 333 | as_dir=`$as_dirname -- "$as_dir" || |
| 334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 335 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 336 | X"$as_dir" : 'X\(//\)$' \| \ |
| 337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 338 | $as_echo X"$as_dir" | |
| 339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)[^/].*/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\/\)$/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | /^X\(\/\).*/{ |
| 352 | s//\1/ |
| 353 | q |
| 354 | } |
| 355 | s/.*/./; q'` |
| 356 | test -d "$as_dir" && break |
| 357 | done |
| 358 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 360 | |
| 361 | |
| 362 | } # as_fn_mkdir_p |
| 363 | |
| 364 | # as_fn_executable_p FILE |
| 365 | # ----------------------- |
| 366 | # Test if FILE is an executable regular file. |
| 367 | as_fn_executable_p () |
| 368 | { |
| 369 | test -f "$1" && test -x "$1" |
| 370 | } # as_fn_executable_p |
| 371 | # as_fn_append VAR VALUE |
| 372 | # ---------------------- |
| 373 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 374 | # advantage of any shell optimizations that allow amortized linear growth over |
| 375 | # repeated appends, instead of the typical quadratic growth present in naive |
| 376 | # implementations. |
| 377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 378 | eval 'as_fn_append () |
| 379 | { |
| 380 | eval $1+=\$2 |
| 381 | }' |
| 382 | else |
| 383 | as_fn_append () |
| 384 | { |
| 385 | eval $1=\$$1\$2 |
| 386 | } |
| 387 | fi # as_fn_append |
| 388 | |
| 389 | # as_fn_arith ARG... |
| 390 | # ------------------ |
| 391 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 393 | # must be portable across $(()) and expr. |
| 394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 395 | eval 'as_fn_arith () |
| 396 | { |
| 397 | as_val=$(( $* )) |
| 398 | }' |
| 399 | else |
| 400 | as_fn_arith () |
| 401 | { |
| 402 | as_val=`expr "$@" || test $? -eq 1` |
| 403 | } |
| 404 | fi # as_fn_arith |
| 405 | |
| 406 | |
| 407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 408 | # ---------------------------------------- |
| 409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 411 | # script with STATUS, using 1 if that was 0. |
| 412 | as_fn_error () |
| 413 | { |
| 414 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 415 | if test "$4"; then |
| 416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 418 | fi |
| 419 | $as_echo "$as_me: error: $2" >&2 |
| 420 | as_fn_exit $as_status |
| 421 | } # as_fn_error |
| 422 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 423 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 425 | as_expr=expr |
| 426 | else |
| 427 | as_expr=false |
| 428 | fi |
| 429 | |
| 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 431 | as_basename=basename |
| 432 | else |
| 433 | as_basename=false |
| 434 | fi |
| 435 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 437 | as_dirname=dirname |
| 438 | else |
| 439 | as_dirname=false |
| 440 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 441 | |
| 442 | as_me=`$as_basename -- "$0" || |
| 443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 444 | X"$0" : 'X\(//\)$' \| \ |
| 445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 446 | $as_echo X/"$0" | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\/\)$/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | /^X\/\(\/\).*/{ |
| 456 | s//\1/ |
| 457 | q |
| 458 | } |
| 459 | s/.*/./; q'` |
| 460 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 461 | # Avoid depending upon Character Ranges. |
| 462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 465 | as_cr_digits='0123456789' |
| 466 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 467 | |
| 468 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 474 | sed -n ' |
| 475 | p |
| 476 | /[$]LINENO/= |
| 477 | ' <$as_myself | |
| 478 | sed ' |
| 479 | s/[$]LINENO.*/&-/ |
| 480 | t lineno |
| 481 | b |
| 482 | :lineno |
| 483 | N |
| 484 | :loop |
| 485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 486 | t loop |
| 487 | s/-\n.*// |
| 488 | ' >$as_me.lineno && |
| 489 | chmod +x "$as_me.lineno" || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 491 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 493 | # already done that, so ensure we don't try to do so again and fall |
| 494 | # in an infinite loop. This has already happened in practice. |
| 495 | _as_can_reexec=no; export _as_can_reexec |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 496 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 497 | # (the dirname of $[0] is not the place where we might find the |
| 498 | # original and so on. Autoconf is especially sensitive to this). |
| 499 | . "./$as_me.lineno" |
| 500 | # Exit status is that of the last command. |
| 501 | exit |
| 502 | } |
| 503 | |
| 504 | ECHO_C= ECHO_N= ECHO_T= |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 505 | case `echo -n x` in #((((( |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 506 | -n*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 507 | case `echo 'xy\c'` in |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 509 | xy) ECHO_C='\c';; |
| 510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 511 | ECHO_T=' ';; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 512 | esac;; |
| 513 | *) |
| 514 | ECHO_N='-n';; |
| 515 | esac |
| 516 | |
| 517 | rm -f conf$$ conf$$.exe conf$$.file |
| 518 | if test -d conf$$.dir; then |
| 519 | rm -f conf$$.dir/conf$$.file |
| 520 | else |
| 521 | rm -f conf$$.dir |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 522 | mkdir conf$$.dir 2>/dev/null |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 523 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 524 | if (echo >conf$$.file) 2>/dev/null; then |
| 525 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 526 | as_ln_s='ln -s' |
| 527 | # ... but there are two gotchas: |
| 528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 530 | # In both cases, we have to default to `cp -pR'. |
| 531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 532 | as_ln_s='cp -pR' |
| 533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 534 | as_ln_s=ln |
| 535 | else |
| 536 | as_ln_s='cp -pR' |
| 537 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 538 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 539 | as_ln_s='cp -pR' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 540 | fi |
| 541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 542 | rmdir conf$$.dir 2>/dev/null |
| 543 | |
| 544 | if mkdir -p . 2>/dev/null; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 545 | as_mkdir_p='mkdir -p "$as_dir"' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 546 | else |
| 547 | test -d ./-p && rmdir ./-p |
| 548 | as_mkdir_p=false |
| 549 | fi |
| 550 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 551 | as_test_x='test -x' |
| 552 | as_executable_p=as_fn_executable_p |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 553 | |
| 554 | # Sed expression to map a string onto a valid CPP name. |
| 555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 556 | |
| 557 | # Sed expression to map a string onto a valid variable name. |
| 558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 559 | |
| 560 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 561 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 562 | exec 6>&1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 563 | |
| 564 | # Name of the host. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 566 | # so uname gets run too. |
| 567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 568 | |
| 569 | # |
| 570 | # Initializations. |
| 571 | # |
| 572 | ac_default_prefix=/usr/local |
| 573 | ac_clean_files= |
| 574 | ac_config_libobj_dir=. |
| 575 | LIBOBJS= |
| 576 | cross_compiling=no |
| 577 | subdirs= |
| 578 | MFLAGS= |
| 579 | MAKEFLAGS= |
| 580 | |
| 581 | # Identity of this package. |
| 582 | PACKAGE_NAME='OpenSSH' |
| 583 | PACKAGE_TARNAME='openssh' |
| 584 | PACKAGE_VERSION='Portable' |
| 585 | PACKAGE_STRING='OpenSSH Portable' |
| 586 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 587 | PACKAGE_URL='' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 588 | |
| 589 | ac_unique_file="ssh.c" |
| 590 | # Factoring default headers for most tests. |
| 591 | ac_includes_default="\ |
| 592 | #include <stdio.h> |
| 593 | #ifdef HAVE_SYS_TYPES_H |
| 594 | # include <sys/types.h> |
| 595 | #endif |
| 596 | #ifdef HAVE_SYS_STAT_H |
| 597 | # include <sys/stat.h> |
| 598 | #endif |
| 599 | #ifdef STDC_HEADERS |
| 600 | # include <stdlib.h> |
| 601 | # include <stddef.h> |
| 602 | #else |
| 603 | # ifdef HAVE_STDLIB_H |
| 604 | # include <stdlib.h> |
| 605 | # endif |
| 606 | #endif |
| 607 | #ifdef HAVE_STRING_H |
| 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 609 | # include <memory.h> |
| 610 | # endif |
| 611 | # include <string.h> |
| 612 | #endif |
| 613 | #ifdef HAVE_STRINGS_H |
| 614 | # include <strings.h> |
| 615 | #endif |
| 616 | #ifdef HAVE_INTTYPES_H |
| 617 | # include <inttypes.h> |
| 618 | #endif |
| 619 | #ifdef HAVE_STDINT_H |
| 620 | # include <stdint.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_UNISTD_H |
| 623 | # include <unistd.h> |
| 624 | #endif" |
| 625 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 627 | LIBOBJS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 628 | UNSUPPORTED_ALGORITHMS |
| 629 | TEST_MALLOC_OPTIONS |
| 630 | TEST_SSH_UTF8 |
| 631 | TEST_SSH_IPV6 |
| 632 | piddir |
| 633 | user_path |
| 634 | mansubdir |
| 635 | MANTYPE |
| 636 | XAUTH_PATH |
| 637 | STRIP_OPT |
| 638 | xauth_path |
| 639 | PRIVSEP_PATH |
| 640 | K5LIBS |
| 641 | GSSLIBS |
| 642 | KRB5CONF |
| 643 | SSHDLIBS |
| 644 | SSHLIBS |
| 645 | SSH_PRIVSEP_USER |
| 646 | COMMENT_OUT_ECC |
| 647 | TEST_SSH_ECC |
| 648 | LIBEDIT |
| 649 | PKGCONFIG |
| 650 | LDNSCONFIG |
| 651 | COMMENT_OUT_RSA1 |
| 652 | LD |
| 653 | PATH_PASSWD_PROG |
| 654 | STARTUP_SCRIPT_SHELL |
| 655 | MAKE_PACKAGE_SUPPORTED |
| 656 | PATH_USERADD_PROG |
| 657 | PATH_GROUPADD_PROG |
| 658 | MANFMT |
| 659 | TEST_SHELL |
| 660 | MANDOC |
| 661 | NROFF |
| 662 | GROFF |
| 663 | SH |
| 664 | TEST_MINUS_S_SH |
| 665 | ENT |
| 666 | SED |
| 667 | PERL |
| 668 | KILL |
| 669 | CAT |
| 670 | ac_ct_AR |
| 671 | AR |
| 672 | INSTALL_DATA |
| 673 | INSTALL_SCRIPT |
| 674 | INSTALL_PROGRAM |
| 675 | RANLIB |
| 676 | AWK |
| 677 | EGREP |
| 678 | GREP |
| 679 | CPP |
| 680 | host_os |
| 681 | host_vendor |
| 682 | host_cpu |
| 683 | host |
| 684 | build_os |
| 685 | build_vendor |
| 686 | build_cpu |
| 687 | build |
| 688 | OBJEXT |
| 689 | EXEEXT |
| 690 | ac_ct_CC |
| 691 | CPPFLAGS |
| 692 | LDFLAGS |
| 693 | CFLAGS |
| 694 | CC |
| 695 | target_alias |
| 696 | host_alias |
| 697 | build_alias |
| 698 | LIBS |
| 699 | ECHO_T |
| 700 | ECHO_N |
| 701 | ECHO_C |
| 702 | DEFS |
| 703 | mandir |
| 704 | localedir |
| 705 | libdir |
| 706 | psdir |
| 707 | pdfdir |
| 708 | dvidir |
| 709 | htmldir |
| 710 | infodir |
| 711 | docdir |
| 712 | oldincludedir |
| 713 | includedir |
| 714 | localstatedir |
| 715 | sharedstatedir |
| 716 | sysconfdir |
| 717 | datadir |
| 718 | datarootdir |
| 719 | libexecdir |
| 720 | sbindir |
| 721 | bindir |
| 722 | program_transform_name |
| 723 | prefix |
| 724 | exec_prefix |
| 725 | PACKAGE_URL |
| 726 | PACKAGE_BUGREPORT |
| 727 | PACKAGE_STRING |
| 728 | PACKAGE_VERSION |
| 729 | PACKAGE_TARNAME |
| 730 | PACKAGE_NAME |
| 731 | PATH_SEPARATOR |
| 732 | SHELL' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 733 | ac_subst_files='' |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 734 | ac_user_opts=' |
| 735 | enable_option_checking |
| 736 | enable_largefile |
| 737 | with_openssl |
| 738 | with_ssh1 |
| 739 | with_stackprotect |
| 740 | with_hardening |
| 741 | with_rpath |
| 742 | with_cflags |
| 743 | with_cppflags |
| 744 | with_ldflags |
| 745 | with_libs |
| 746 | with_Werror |
| 747 | with_solaris_contracts |
| 748 | with_solaris_projects |
| 749 | with_solaris_privs |
| 750 | with_osfsia |
| 751 | with_zlib |
| 752 | with_zlib_version_check |
| 753 | with_skey |
| 754 | with_ldns |
| 755 | with_libedit |
| 756 | with_audit |
| 757 | with_pie |
| 758 | enable_pkcs11 |
| 759 | with_ssl_dir |
| 760 | with_openssl_header_check |
| 761 | with_ssl_engine |
| 762 | with_prngd_port |
| 763 | with_prngd_socket |
| 764 | with_pam |
| 765 | with_pam_service |
| 766 | with_privsep_user |
| 767 | with_sandbox |
| 768 | with_selinux |
| 769 | with_kerberos5 |
| 770 | with_privsep_path |
| 771 | with_xauth |
| 772 | enable_strip |
| 773 | with_maildir |
| 774 | with_mantype |
| 775 | with_md5_passwords |
| 776 | with_shadow |
| 777 | with_ipaddr_display |
| 778 | enable_etc_default_login |
| 779 | with_default_path |
| 780 | with_superuser_path |
| 781 | with_4in6 |
| 782 | with_bsd_auth |
| 783 | with_pid_dir |
| 784 | enable_lastlog |
| 785 | enable_utmp |
| 786 | enable_utmpx |
| 787 | enable_wtmp |
| 788 | enable_wtmpx |
| 789 | enable_libutil |
| 790 | enable_pututline |
| 791 | enable_pututxline |
| 792 | with_lastlog |
| 793 | ' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 794 | ac_precious_vars='build_alias |
| 795 | host_alias |
| 796 | target_alias |
| 797 | CC |
| 798 | CFLAGS |
| 799 | LDFLAGS |
| 800 | LIBS |
| 801 | CPPFLAGS |
| 802 | CPP' |
| 803 | |
| 804 | |
| 805 | # Initialize some variables set by options. |
| 806 | ac_init_help= |
| 807 | ac_init_version=false |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 808 | ac_unrecognized_opts= |
| 809 | ac_unrecognized_sep= |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 810 | # The variables have the same names as the options, with |
| 811 | # dashes changed to underlines. |
| 812 | cache_file=/dev/null |
| 813 | exec_prefix=NONE |
| 814 | no_create= |
| 815 | no_recursion= |
| 816 | prefix=NONE |
| 817 | program_prefix=NONE |
| 818 | program_suffix=NONE |
| 819 | program_transform_name=s,x,x, |
| 820 | silent= |
| 821 | site= |
| 822 | srcdir= |
| 823 | verbose= |
| 824 | x_includes=NONE |
| 825 | x_libraries=NONE |
| 826 | |
| 827 | # Installation directory options. |
| 828 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 829 | # and all the variables that are supposed to be based on exec_prefix |
| 830 | # by default will actually change. |
| 831 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 832 | # (The list follows the same order as the GNU Coding Standards.) |
| 833 | bindir='${exec_prefix}/bin' |
| 834 | sbindir='${exec_prefix}/sbin' |
| 835 | libexecdir='${exec_prefix}/libexec' |
| 836 | datarootdir='${prefix}/share' |
| 837 | datadir='${datarootdir}' |
| 838 | sysconfdir='${prefix}/etc' |
| 839 | sharedstatedir='${prefix}/com' |
| 840 | localstatedir='${prefix}/var' |
| 841 | includedir='${prefix}/include' |
| 842 | oldincludedir='/usr/include' |
| 843 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 844 | infodir='${datarootdir}/info' |
| 845 | htmldir='${docdir}' |
| 846 | dvidir='${docdir}' |
| 847 | pdfdir='${docdir}' |
| 848 | psdir='${docdir}' |
| 849 | libdir='${exec_prefix}/lib' |
| 850 | localedir='${datarootdir}/locale' |
| 851 | mandir='${datarootdir}/man' |
| 852 | |
| 853 | ac_prev= |
| 854 | ac_dashdash= |
| 855 | for ac_option |
| 856 | do |
| 857 | # If the previous option needs an argument, assign it. |
| 858 | if test -n "$ac_prev"; then |
| 859 | eval $ac_prev=\$ac_option |
| 860 | ac_prev= |
| 861 | continue |
| 862 | fi |
| 863 | |
| 864 | case $ac_option in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 865 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 866 | *=) ac_optarg= ;; |
| 867 | *) ac_optarg=yes ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 868 | esac |
| 869 | |
| 870 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 871 | |
| 872 | case $ac_dashdash$ac_option in |
| 873 | --) |
| 874 | ac_dashdash=yes ;; |
| 875 | |
| 876 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 877 | ac_prev=bindir ;; |
| 878 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 879 | bindir=$ac_optarg ;; |
| 880 | |
| 881 | -build | --build | --buil | --bui | --bu) |
| 882 | ac_prev=build_alias ;; |
| 883 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 884 | build_alias=$ac_optarg ;; |
| 885 | |
| 886 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 887 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 888 | ac_prev=cache_file ;; |
| 889 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 890 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 891 | cache_file=$ac_optarg ;; |
| 892 | |
| 893 | --config-cache | -C) |
| 894 | cache_file=config.cache ;; |
| 895 | |
| 896 | -datadir | --datadir | --datadi | --datad) |
| 897 | ac_prev=datadir ;; |
| 898 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 899 | datadir=$ac_optarg ;; |
| 900 | |
| 901 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 902 | | --dataroo | --dataro | --datar) |
| 903 | ac_prev=datarootdir ;; |
| 904 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 905 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 906 | datarootdir=$ac_optarg ;; |
| 907 | |
| 908 | -disable-* | --disable-*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 909 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 910 | # Reject names that are not valid shell variable names. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 912 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 913 | ac_useropt_orig=$ac_useropt |
| 914 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 915 | case $ac_user_opts in |
| 916 | *" |
| 917 | "enable_$ac_useropt" |
| 918 | "*) ;; |
| 919 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 920 | ac_unrecognized_sep=', ';; |
| 921 | esac |
| 922 | eval enable_$ac_useropt=no ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 923 | |
| 924 | -docdir | --docdir | --docdi | --doc | --do) |
| 925 | ac_prev=docdir ;; |
| 926 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 927 | docdir=$ac_optarg ;; |
| 928 | |
| 929 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 930 | ac_prev=dvidir ;; |
| 931 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 932 | dvidir=$ac_optarg ;; |
| 933 | |
| 934 | -enable-* | --enable-*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 935 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 936 | # Reject names that are not valid shell variable names. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 937 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 938 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 939 | ac_useropt_orig=$ac_useropt |
| 940 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 941 | case $ac_user_opts in |
| 942 | *" |
| 943 | "enable_$ac_useropt" |
| 944 | "*) ;; |
| 945 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 946 | ac_unrecognized_sep=', ';; |
| 947 | esac |
| 948 | eval enable_$ac_useropt=\$ac_optarg ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 949 | |
| 950 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 951 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 952 | | --exec | --exe | --ex) |
| 953 | ac_prev=exec_prefix ;; |
| 954 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 955 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 956 | | --exec=* | --exe=* | --ex=*) |
| 957 | exec_prefix=$ac_optarg ;; |
| 958 | |
| 959 | -gas | --gas | --ga | --g) |
| 960 | # Obsolete; use --with-gas. |
| 961 | with_gas=yes ;; |
| 962 | |
| 963 | -help | --help | --hel | --he | -h) |
| 964 | ac_init_help=long ;; |
| 965 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 966 | ac_init_help=recursive ;; |
| 967 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 968 | ac_init_help=short ;; |
| 969 | |
| 970 | -host | --host | --hos | --ho) |
| 971 | ac_prev=host_alias ;; |
| 972 | -host=* | --host=* | --hos=* | --ho=*) |
| 973 | host_alias=$ac_optarg ;; |
| 974 | |
| 975 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 976 | ac_prev=htmldir ;; |
| 977 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 978 | | --ht=*) |
| 979 | htmldir=$ac_optarg ;; |
| 980 | |
| 981 | -includedir | --includedir | --includedi | --included | --include \ |
| 982 | | --includ | --inclu | --incl | --inc) |
| 983 | ac_prev=includedir ;; |
| 984 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 985 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 986 | includedir=$ac_optarg ;; |
| 987 | |
| 988 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 989 | ac_prev=infodir ;; |
| 990 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 991 | infodir=$ac_optarg ;; |
| 992 | |
| 993 | -libdir | --libdir | --libdi | --libd) |
| 994 | ac_prev=libdir ;; |
| 995 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 996 | libdir=$ac_optarg ;; |
| 997 | |
| 998 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 999 | | --libexe | --libex | --libe) |
| 1000 | ac_prev=libexecdir ;; |
| 1001 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1002 | | --libexe=* | --libex=* | --libe=*) |
| 1003 | libexecdir=$ac_optarg ;; |
| 1004 | |
| 1005 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1006 | ac_prev=localedir ;; |
| 1007 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1008 | localedir=$ac_optarg ;; |
| 1009 | |
| 1010 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1011 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1012 | ac_prev=localstatedir ;; |
| 1013 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1014 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1015 | localstatedir=$ac_optarg ;; |
| 1016 | |
| 1017 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1018 | ac_prev=mandir ;; |
| 1019 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1020 | mandir=$ac_optarg ;; |
| 1021 | |
| 1022 | -nfp | --nfp | --nf) |
| 1023 | # Obsolete; use --without-fp. |
| 1024 | with_fp=no ;; |
| 1025 | |
| 1026 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1027 | | --no-cr | --no-c | -n) |
| 1028 | no_create=yes ;; |
| 1029 | |
| 1030 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1031 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1032 | no_recursion=yes ;; |
| 1033 | |
| 1034 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1035 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1036 | | --oldin | --oldi | --old | --ol | --o) |
| 1037 | ac_prev=oldincludedir ;; |
| 1038 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1039 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1040 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1041 | oldincludedir=$ac_optarg ;; |
| 1042 | |
| 1043 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1044 | ac_prev=prefix ;; |
| 1045 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1046 | prefix=$ac_optarg ;; |
| 1047 | |
| 1048 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1049 | | --program-pre | --program-pr | --program-p) |
| 1050 | ac_prev=program_prefix ;; |
| 1051 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1052 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1053 | program_prefix=$ac_optarg ;; |
| 1054 | |
| 1055 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1056 | | --program-suf | --program-su | --program-s) |
| 1057 | ac_prev=program_suffix ;; |
| 1058 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1059 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1060 | program_suffix=$ac_optarg ;; |
| 1061 | |
| 1062 | -program-transform-name | --program-transform-name \ |
| 1063 | | --program-transform-nam | --program-transform-na \ |
| 1064 | | --program-transform-n | --program-transform- \ |
| 1065 | | --program-transform | --program-transfor \ |
| 1066 | | --program-transfo | --program-transf \ |
| 1067 | | --program-trans | --program-tran \ |
| 1068 | | --progr-tra | --program-tr | --program-t) |
| 1069 | ac_prev=program_transform_name ;; |
| 1070 | -program-transform-name=* | --program-transform-name=* \ |
| 1071 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1072 | | --program-transform-n=* | --program-transform-=* \ |
| 1073 | | --program-transform=* | --program-transfor=* \ |
| 1074 | | --program-transfo=* | --program-transf=* \ |
| 1075 | | --program-trans=* | --program-tran=* \ |
| 1076 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1077 | program_transform_name=$ac_optarg ;; |
| 1078 | |
| 1079 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1080 | ac_prev=pdfdir ;; |
| 1081 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1082 | pdfdir=$ac_optarg ;; |
| 1083 | |
| 1084 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1085 | ac_prev=psdir ;; |
| 1086 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1087 | psdir=$ac_optarg ;; |
| 1088 | |
| 1089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1090 | | -silent | --silent | --silen | --sile | --sil) |
| 1091 | silent=yes ;; |
| 1092 | |
| 1093 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1094 | ac_prev=sbindir ;; |
| 1095 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1096 | | --sbi=* | --sb=*) |
| 1097 | sbindir=$ac_optarg ;; |
| 1098 | |
| 1099 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1100 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1101 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1102 | | --sha | --sh) |
| 1103 | ac_prev=sharedstatedir ;; |
| 1104 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1105 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1106 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1107 | | --sha=* | --sh=*) |
| 1108 | sharedstatedir=$ac_optarg ;; |
| 1109 | |
| 1110 | -site | --site | --sit) |
| 1111 | ac_prev=site ;; |
| 1112 | -site=* | --site=* | --sit=*) |
| 1113 | site=$ac_optarg ;; |
| 1114 | |
| 1115 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1116 | ac_prev=srcdir ;; |
| 1117 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1118 | srcdir=$ac_optarg ;; |
| 1119 | |
| 1120 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1121 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1122 | ac_prev=sysconfdir ;; |
| 1123 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1124 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1125 | sysconfdir=$ac_optarg ;; |
| 1126 | |
| 1127 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1128 | ac_prev=target_alias ;; |
| 1129 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1130 | target_alias=$ac_optarg ;; |
| 1131 | |
| 1132 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1133 | verbose=yes ;; |
| 1134 | |
| 1135 | -version | --version | --versio | --versi | --vers | -V) |
| 1136 | ac_init_version=: ;; |
| 1137 | |
| 1138 | -with-* | --with-*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1139 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1140 | # Reject names that are not valid shell variable names. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1141 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1142 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1143 | ac_useropt_orig=$ac_useropt |
| 1144 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1145 | case $ac_user_opts in |
| 1146 | *" |
| 1147 | "with_$ac_useropt" |
| 1148 | "*) ;; |
| 1149 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1150 | ac_unrecognized_sep=', ';; |
| 1151 | esac |
| 1152 | eval with_$ac_useropt=\$ac_optarg ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1153 | |
| 1154 | -without-* | --without-*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1155 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1156 | # Reject names that are not valid shell variable names. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1157 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1158 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1159 | ac_useropt_orig=$ac_useropt |
| 1160 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1161 | case $ac_user_opts in |
| 1162 | *" |
| 1163 | "with_$ac_useropt" |
| 1164 | "*) ;; |
| 1165 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1166 | ac_unrecognized_sep=', ';; |
| 1167 | esac |
| 1168 | eval with_$ac_useropt=no ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1169 | |
| 1170 | --x) |
| 1171 | # Obsolete; use --with-x. |
| 1172 | with_x=yes ;; |
| 1173 | |
| 1174 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1175 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1176 | ac_prev=x_includes ;; |
| 1177 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1178 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1179 | x_includes=$ac_optarg ;; |
| 1180 | |
| 1181 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1182 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1183 | ac_prev=x_libraries ;; |
| 1184 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1185 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1186 | x_libraries=$ac_optarg ;; |
| 1187 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1188 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1189 | Try \`$0 --help' for more information" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1190 | ;; |
| 1191 | |
| 1192 | *=*) |
| 1193 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1194 | # Reject names that are not valid shell variable names. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1195 | case $ac_envvar in #( |
| 1196 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1197 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1198 | esac |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1199 | eval $ac_envvar=\$ac_optarg |
| 1200 | export $ac_envvar ;; |
| 1201 | |
| 1202 | *) |
| 1203 | # FIXME: should be removed in autoconf 3.0. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1204 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1205 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1206 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1207 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1208 | ;; |
| 1209 | |
| 1210 | esac |
| 1211 | done |
| 1212 | |
| 1213 | if test -n "$ac_prev"; then |
| 1214 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1215 | as_fn_error $? "missing argument to $ac_option" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1216 | fi |
| 1217 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1218 | if test -n "$ac_unrecognized_opts"; then |
| 1219 | case $enable_option_checking in |
| 1220 | no) ;; |
| 1221 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1222 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1223 | esac |
| 1224 | fi |
| 1225 | |
| 1226 | # Check all directory arguments for consistency. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1227 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1228 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1229 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1230 | libdir localedir mandir |
| 1231 | do |
| 1232 | eval ac_val=\$$ac_var |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1233 | # Remove trailing slashes. |
| 1234 | case $ac_val in |
| 1235 | */ ) |
| 1236 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1237 | eval $ac_var=\$ac_val;; |
| 1238 | esac |
| 1239 | # Be sure to have absolute directory names. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1240 | case $ac_val in |
| 1241 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1242 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1243 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1244 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1245 | done |
| 1246 | |
| 1247 | # There might be people who depend on the old broken behavior: `$host' |
| 1248 | # used to hold the argument of --host etc. |
| 1249 | # FIXME: To remove some day. |
| 1250 | build=$build_alias |
| 1251 | host=$host_alias |
| 1252 | target=$target_alias |
| 1253 | |
| 1254 | # FIXME: To remove some day. |
| 1255 | if test "x$host_alias" != x; then |
| 1256 | if test "x$build_alias" = x; then |
| 1257 | cross_compiling=maybe |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1258 | elif test "x$build_alias" != "x$host_alias"; then |
| 1259 | cross_compiling=yes |
| 1260 | fi |
| 1261 | fi |
| 1262 | |
| 1263 | ac_tool_prefix= |
| 1264 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1265 | |
| 1266 | test "$silent" = yes && exec 6>/dev/null |
| 1267 | |
| 1268 | |
| 1269 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1270 | ac_ls_di=`ls -di .` && |
| 1271 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1272 | as_fn_error $? "working directory cannot be determined" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1273 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1274 | as_fn_error $? "pwd does not report name of working directory" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1275 | |
| 1276 | |
| 1277 | # Find the source files, if location was not specified. |
| 1278 | if test -z "$srcdir"; then |
| 1279 | ac_srcdir_defaulted=yes |
| 1280 | # Try the directory containing this script, then the parent directory. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1281 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1282 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1283 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1284 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1285 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1286 | $as_echo X"$as_myself" | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1288 | s//\1/ |
| 1289 | q |
| 1290 | } |
| 1291 | /^X\(\/\/\)[^/].*/{ |
| 1292 | s//\1/ |
| 1293 | q |
| 1294 | } |
| 1295 | /^X\(\/\/\)$/{ |
| 1296 | s//\1/ |
| 1297 | q |
| 1298 | } |
| 1299 | /^X\(\/\).*/{ |
| 1300 | s//\1/ |
| 1301 | q |
| 1302 | } |
| 1303 | s/.*/./; q'` |
| 1304 | srcdir=$ac_confdir |
| 1305 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1306 | srcdir=.. |
| 1307 | fi |
| 1308 | else |
| 1309 | ac_srcdir_defaulted=no |
| 1310 | fi |
| 1311 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1312 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1313 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1314 | fi |
| 1315 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1316 | ac_abs_confdir=`( |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1317 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1318 | pwd)` |
| 1319 | # When building in place, set srcdir=. |
| 1320 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1321 | srcdir=. |
| 1322 | fi |
| 1323 | # Remove unnecessary trailing slashes from srcdir. |
| 1324 | # Double slashes in file names in object file debugging info |
| 1325 | # mess up M-x gdb in Emacs. |
| 1326 | case $srcdir in |
| 1327 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1328 | esac |
| 1329 | for ac_var in $ac_precious_vars; do |
| 1330 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1331 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1332 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1333 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1334 | done |
| 1335 | |
| 1336 | # |
| 1337 | # Report the --help message. |
| 1338 | # |
| 1339 | if test "$ac_init_help" = "long"; then |
| 1340 | # Omit some internal or obsolete options to make the list less imposing. |
| 1341 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1342 | cat <<_ACEOF |
| 1343 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. |
| 1344 | |
| 1345 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1346 | |
| 1347 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1348 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1349 | |
| 1350 | Defaults for the options are specified in brackets. |
| 1351 | |
| 1352 | Configuration: |
| 1353 | -h, --help display this help and exit |
| 1354 | --help=short display options specific to this package |
| 1355 | --help=recursive display the short help of all the included packages |
| 1356 | -V, --version display version information and exit |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1357 | -q, --quiet, --silent do not print \`checking ...' messages |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1358 | --cache-file=FILE cache test results in FILE [disabled] |
| 1359 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1360 | -n, --no-create do not create output files |
| 1361 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1362 | |
| 1363 | Installation directories: |
| 1364 | --prefix=PREFIX install architecture-independent files in PREFIX |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1365 | [$ac_default_prefix] |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1366 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1367 | [PREFIX] |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1368 | |
| 1369 | By default, \`make install' will install all the files in |
| 1370 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1371 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1372 | for instance \`--prefix=\$HOME'. |
| 1373 | |
| 1374 | For better control, use the options below. |
| 1375 | |
| 1376 | Fine tuning of the installation directories: |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1377 | --bindir=DIR user executables [EPREFIX/bin] |
| 1378 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1379 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1380 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1381 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1382 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1383 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1384 | --includedir=DIR C header files [PREFIX/include] |
| 1385 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1386 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1387 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1388 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1389 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1390 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1391 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] |
| 1392 | --htmldir=DIR html documentation [DOCDIR] |
| 1393 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1394 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1395 | --psdir=DIR ps documentation [DOCDIR] |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1396 | _ACEOF |
| 1397 | |
| 1398 | cat <<\_ACEOF |
| 1399 | |
| 1400 | System types: |
| 1401 | --build=BUILD configure for building on BUILD [guessed] |
| 1402 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1403 | _ACEOF |
| 1404 | fi |
| 1405 | |
| 1406 | if test -n "$ac_init_help"; then |
| 1407 | case $ac_init_help in |
| 1408 | short | recursive ) echo "Configuration of OpenSSH Portable:";; |
| 1409 | esac |
| 1410 | cat <<\_ACEOF |
| 1411 | |
| 1412 | Optional Features: |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1413 | --disable-option-checking ignore unrecognized --enable/--with options |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1414 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1415 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1416 | --disable-largefile omit support for large files |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1417 | --disable-pkcs11 disable PKCS#11 support code [no] |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1418 | --disable-strip Disable calling strip(1) on install |
| 1419 | --disable-etc-default-login Disable using PATH from /etc/default/login no |
| 1420 | --disable-lastlog disable use of lastlog even if detected no |
| 1421 | --disable-utmp disable use of utmp even if detected no |
| 1422 | --disable-utmpx disable use of utmpx even if detected no |
| 1423 | --disable-wtmp disable use of wtmp even if detected no |
| 1424 | --disable-wtmpx disable use of wtmpx even if detected no |
| 1425 | --disable-libutil disable use of libutil (login() etc.) no |
| 1426 | --disable-pututline disable use of pututline() etc. (uwtmp) no |
| 1427 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no |
| 1428 | |
| 1429 | Optional Packages: |
| 1430 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1431 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 1432 | --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1433 | --with-ssh1 Enable support for SSH protocol 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1434 | --without-stackprotect Don't use compiler's stack protection |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 1435 | --without-hardening Don't use toolchain hardening flags |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1436 | --without-rpath Disable auto-added -R linker paths |
| 1437 | --with-cflags Specify additional flags to pass to compiler |
| 1438 | --with-cppflags Specify additional flags to pass to preprocessor |
| 1439 | --with-ldflags Specify additional flags to pass to linker |
| 1440 | --with-libs Specify additional libraries to link with |
| 1441 | --with-Werror Build main code with -Werror |
| 1442 | --with-solaris-contracts Enable Solaris process contracts (experimental) |
| 1443 | --with-solaris-projects Enable Solaris projects (experimental) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1444 | --with-solaris-privs Enable Solaris/Illumos privileges (experimental) |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1445 | --with-osfsia Enable Digital Unix SIA |
| 1446 | --with-zlib=PATH Use zlib in PATH |
| 1447 | --without-zlib-version-check Disable zlib version check |
| 1448 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 1449 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1450 | --with-libedit[=PATH] Enable libedit support for sftp |
| 1451 | --with-audit=module Enable audit support (modules=debug,bsm,linux) |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 1452 | --with-pie Build Position Independent Executables if possible |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1453 | --with-ssl-dir=PATH Specify path to OpenSSL installation |
| 1454 | --without-openssl-header-check Disable OpenSSL version consistency check |
| 1455 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support |
| 1456 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT |
| 1457 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) |
| 1458 | --with-pam Enable PAM support |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1459 | --with-pam-service=name Specify PAM service name |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1460 | --with-privsep-user=user Specify non-privileged user for privilege separation |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1461 | --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge) |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1462 | --with-selinux Enable SELinux support |
| 1463 | --with-kerberos5=PATH Enable Kerberos 5 support |
| 1464 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) |
| 1465 | --with-xauth=PATH Specify path to xauth program |
| 1466 | --with-maildir=/path/to/mail Specify your system mail directory |
| 1467 | --with-mantype=man|cat|doc Set man page type |
| 1468 | --with-md5-passwords Enable use of MD5 passwords |
| 1469 | --without-shadow Disable shadow password support |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 1470 | --with-ipaddr-display Use ip address instead of hostname in $DISPLAY |
| 1471 | --with-default-path= Specify default $PATH environment for server |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1472 | --with-superuser-path= Specify different path for super-user |
| 1473 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses |
| 1474 | --with-bsd-auth Enable BSD auth support |
| 1475 | --with-pid-dir=PATH Specify location of ssh.pid file |
| 1476 | --with-lastlog=FILE|DIR specify lastlog location common locations |
| 1477 | |
| 1478 | Some influential environment variables: |
| 1479 | CC C compiler command |
| 1480 | CFLAGS C compiler flags |
| 1481 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1482 | nonstandard directory <lib dir> |
| 1483 | LIBS libraries to pass to the linker, e.g. -l<library> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1484 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1485 | you have headers in a nonstandard directory <include dir> |
| 1486 | CPP C preprocessor |
| 1487 | |
| 1488 | Use these variables to override the choices made by `configure' or to help |
| 1489 | it to find libraries and programs with nonstandard names/locations. |
| 1490 | |
| 1491 | Report bugs to <openssh-unix-dev@mindrot.org>. |
| 1492 | _ACEOF |
| 1493 | ac_status=$? |
| 1494 | fi |
| 1495 | |
| 1496 | if test "$ac_init_help" = "recursive"; then |
| 1497 | # If there are subdirs, report their specific --help. |
| 1498 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1499 | test -d "$ac_dir" || |
| 1500 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1501 | continue |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1502 | ac_builddir=. |
| 1503 | |
| 1504 | case "$ac_dir" in |
| 1505 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1506 | *) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1507 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1508 | # A ".." for each directory in $ac_dir_suffix. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1509 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1510 | case $ac_top_builddir_sub in |
| 1511 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1512 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1513 | esac ;; |
| 1514 | esac |
| 1515 | ac_abs_top_builddir=$ac_pwd |
| 1516 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1517 | # for backward compatibility: |
| 1518 | ac_top_builddir=$ac_top_build_prefix |
| 1519 | |
| 1520 | case $srcdir in |
| 1521 | .) # We are building in place. |
| 1522 | ac_srcdir=. |
| 1523 | ac_top_srcdir=$ac_top_builddir_sub |
| 1524 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1525 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1526 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1527 | ac_top_srcdir=$srcdir |
| 1528 | ac_abs_top_srcdir=$srcdir ;; |
| 1529 | *) # Relative name. |
| 1530 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1531 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1532 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1533 | esac |
| 1534 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1535 | |
| 1536 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1537 | # Check for guested configure. |
| 1538 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1539 | echo && |
| 1540 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1541 | elif test -f "$ac_srcdir/configure"; then |
| 1542 | echo && |
| 1543 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1544 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1545 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1546 | fi || ac_status=$? |
| 1547 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1548 | done |
| 1549 | fi |
| 1550 | |
| 1551 | test -n "$ac_init_help" && exit $ac_status |
| 1552 | if $ac_init_version; then |
| 1553 | cat <<\_ACEOF |
| 1554 | OpenSSH configure Portable |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1555 | generated by GNU Autoconf 2.69 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1556 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1557 | Copyright (C) 2012 Free Software Foundation, Inc. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 1558 | This configure script is free software; the Free Software Foundation |
| 1559 | gives unlimited permission to copy, distribute and modify it. |
| 1560 | _ACEOF |
| 1561 | exit |
| 1562 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 1563 | |
| 1564 | ## ------------------------ ## |
| 1565 | ## Autoconf initialization. ## |
| 1566 | ## ------------------------ ## |
| 1567 | |
| 1568 | # ac_fn_c_try_compile LINENO |
| 1569 | # -------------------------- |
| 1570 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1571 | ac_fn_c_try_compile () |
| 1572 | { |
| 1573 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1574 | rm -f conftest.$ac_objext |
| 1575 | if { { ac_try="$ac_compile" |
| 1576 | case "(($ac_try" in |
| 1577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1578 | *) ac_try_echo=$ac_try;; |
| 1579 | esac |
| 1580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1581 | $as_echo "$ac_try_echo"; } >&5 |
| 1582 | (eval "$ac_compile") 2>conftest.err |
| 1583 | ac_status=$? |
| 1584 | if test -s conftest.err; then |
| 1585 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1586 | cat conftest.er1 >&5 |
| 1587 | mv -f conftest.er1 conftest.err |
| 1588 | fi |
| 1589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1590 | test $ac_status = 0; } && { |
| 1591 | test -z "$ac_c_werror_flag" || |
| 1592 | test ! -s conftest.err |
| 1593 | } && test -s conftest.$ac_objext; then : |
| 1594 | ac_retval=0 |
| 1595 | else |
| 1596 | $as_echo "$as_me: failed program was:" >&5 |
| 1597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1598 | |
| 1599 | ac_retval=1 |
| 1600 | fi |
| 1601 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1602 | as_fn_set_status $ac_retval |
| 1603 | |
| 1604 | } # ac_fn_c_try_compile |
| 1605 | |
| 1606 | # ac_fn_c_try_run LINENO |
| 1607 | # ---------------------- |
| 1608 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1609 | # that executables *can* be run. |
| 1610 | ac_fn_c_try_run () |
| 1611 | { |
| 1612 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1613 | if { { ac_try="$ac_link" |
| 1614 | case "(($ac_try" in |
| 1615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1616 | *) ac_try_echo=$ac_try;; |
| 1617 | esac |
| 1618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1619 | $as_echo "$ac_try_echo"; } >&5 |
| 1620 | (eval "$ac_link") 2>&5 |
| 1621 | ac_status=$? |
| 1622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1623 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1624 | { { case "(($ac_try" in |
| 1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1626 | *) ac_try_echo=$ac_try;; |
| 1627 | esac |
| 1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1629 | $as_echo "$ac_try_echo"; } >&5 |
| 1630 | (eval "$ac_try") 2>&5 |
| 1631 | ac_status=$? |
| 1632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1633 | test $ac_status = 0; }; }; then : |
| 1634 | ac_retval=0 |
| 1635 | else |
| 1636 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1637 | $as_echo "$as_me: failed program was:" >&5 |
| 1638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1639 | |
| 1640 | ac_retval=$ac_status |
| 1641 | fi |
| 1642 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1643 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1644 | as_fn_set_status $ac_retval |
| 1645 | |
| 1646 | } # ac_fn_c_try_run |
| 1647 | |
| 1648 | # ac_fn_c_try_cpp LINENO |
| 1649 | # ---------------------- |
| 1650 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1651 | ac_fn_c_try_cpp () |
| 1652 | { |
| 1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1654 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1655 | case "(($ac_try" in |
| 1656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1657 | *) ac_try_echo=$ac_try;; |
| 1658 | esac |
| 1659 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1660 | $as_echo "$ac_try_echo"; } >&5 |
| 1661 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1662 | ac_status=$? |
| 1663 | if test -s conftest.err; then |
| 1664 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1665 | cat conftest.er1 >&5 |
| 1666 | mv -f conftest.er1 conftest.err |
| 1667 | fi |
| 1668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1669 | test $ac_status = 0; } > conftest.i && { |
| 1670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1671 | test ! -s conftest.err |
| 1672 | }; then : |
| 1673 | ac_retval=0 |
| 1674 | else |
| 1675 | $as_echo "$as_me: failed program was:" >&5 |
| 1676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1677 | |
| 1678 | ac_retval=1 |
| 1679 | fi |
| 1680 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1681 | as_fn_set_status $ac_retval |
| 1682 | |
| 1683 | } # ac_fn_c_try_cpp |
| 1684 | |
| 1685 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1686 | # ------------------------------------------------------- |
| 1687 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1688 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1689 | ac_fn_c_check_header_compile () |
| 1690 | { |
| 1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1693 | $as_echo_n "checking for $2... " >&6; } |
| 1694 | if eval \${$3+:} false; then : |
| 1695 | $as_echo_n "(cached) " >&6 |
| 1696 | else |
| 1697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1698 | /* end confdefs.h. */ |
| 1699 | $4 |
| 1700 | #include <$2> |
| 1701 | _ACEOF |
| 1702 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1703 | eval "$3=yes" |
| 1704 | else |
| 1705 | eval "$3=no" |
| 1706 | fi |
| 1707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1708 | fi |
| 1709 | eval ac_res=\$$3 |
| 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1711 | $as_echo "$ac_res" >&6; } |
| 1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1713 | |
| 1714 | } # ac_fn_c_check_header_compile |
| 1715 | |
| 1716 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 1717 | # --------------------------------------------- |
| 1718 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1719 | # accordingly. |
| 1720 | ac_fn_c_check_decl () |
| 1721 | { |
| 1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1723 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1724 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1726 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1727 | if eval \${$3+:} false; then : |
| 1728 | $as_echo_n "(cached) " >&6 |
| 1729 | else |
| 1730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1731 | /* end confdefs.h. */ |
| 1732 | $4 |
| 1733 | int |
| 1734 | main () |
| 1735 | { |
| 1736 | #ifndef $as_decl_name |
| 1737 | #ifdef __cplusplus |
| 1738 | (void) $as_decl_use; |
| 1739 | #else |
| 1740 | (void) $as_decl_name; |
| 1741 | #endif |
| 1742 | #endif |
| 1743 | |
| 1744 | ; |
| 1745 | return 0; |
| 1746 | } |
| 1747 | _ACEOF |
| 1748 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1749 | eval "$3=yes" |
| 1750 | else |
| 1751 | eval "$3=no" |
| 1752 | fi |
| 1753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1754 | fi |
| 1755 | eval ac_res=\$$3 |
| 1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1757 | $as_echo "$ac_res" >&6; } |
| 1758 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1759 | |
| 1760 | } # ac_fn_c_check_decl |
| 1761 | |
| 1762 | # ac_fn_c_try_link LINENO |
| 1763 | # ----------------------- |
| 1764 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1765 | ac_fn_c_try_link () |
| 1766 | { |
| 1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1768 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1769 | if { { ac_try="$ac_link" |
| 1770 | case "(($ac_try" in |
| 1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1772 | *) ac_try_echo=$ac_try;; |
| 1773 | esac |
| 1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1775 | $as_echo "$ac_try_echo"; } >&5 |
| 1776 | (eval "$ac_link") 2>conftest.err |
| 1777 | ac_status=$? |
| 1778 | if test -s conftest.err; then |
| 1779 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1780 | cat conftest.er1 >&5 |
| 1781 | mv -f conftest.er1 conftest.err |
| 1782 | fi |
| 1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1784 | test $ac_status = 0; } && { |
| 1785 | test -z "$ac_c_werror_flag" || |
| 1786 | test ! -s conftest.err |
| 1787 | } && test -s conftest$ac_exeext && { |
| 1788 | test "$cross_compiling" = yes || |
| 1789 | test -x conftest$ac_exeext |
| 1790 | }; then : |
| 1791 | ac_retval=0 |
| 1792 | else |
| 1793 | $as_echo "$as_me: failed program was:" >&5 |
| 1794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1795 | |
| 1796 | ac_retval=1 |
| 1797 | fi |
| 1798 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1799 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1800 | # interfere with the next link command; also delete a directory that is |
| 1801 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1802 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1803 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1804 | as_fn_set_status $ac_retval |
| 1805 | |
| 1806 | } # ac_fn_c_try_link |
| 1807 | |
| 1808 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1809 | # ------------------------------------------------------- |
| 1810 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1811 | # the include files in INCLUDES and setting the cache variable VAR |
| 1812 | # accordingly. |
| 1813 | ac_fn_c_check_header_mongrel () |
| 1814 | { |
| 1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1816 | if eval \${$3+:} false; then : |
| 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1818 | $as_echo_n "checking for $2... " >&6; } |
| 1819 | if eval \${$3+:} false; then : |
| 1820 | $as_echo_n "(cached) " >&6 |
| 1821 | fi |
| 1822 | eval ac_res=\$$3 |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1824 | $as_echo "$ac_res" >&6; } |
| 1825 | else |
| 1826 | # Is the header compilable? |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1828 | $as_echo_n "checking $2 usability... " >&6; } |
| 1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1830 | /* end confdefs.h. */ |
| 1831 | $4 |
| 1832 | #include <$2> |
| 1833 | _ACEOF |
| 1834 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1835 | ac_header_compiler=yes |
| 1836 | else |
| 1837 | ac_header_compiler=no |
| 1838 | fi |
| 1839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1841 | $as_echo "$ac_header_compiler" >&6; } |
| 1842 | |
| 1843 | # Is the header present? |
| 1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1845 | $as_echo_n "checking $2 presence... " >&6; } |
| 1846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1847 | /* end confdefs.h. */ |
| 1848 | #include <$2> |
| 1849 | _ACEOF |
| 1850 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1851 | ac_header_preproc=yes |
| 1852 | else |
| 1853 | ac_header_preproc=no |
| 1854 | fi |
| 1855 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1857 | $as_echo "$ac_header_preproc" >&6; } |
| 1858 | |
| 1859 | # So? What about this header? |
| 1860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1861 | yes:no: ) |
| 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1863 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1865 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1866 | ;; |
| 1867 | no:yes:* ) |
| 1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1869 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1871 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1873 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1875 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1877 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1878 | ( $as_echo "## ------------------------------------------- ## |
| 1879 | ## Report this to openssh-unix-dev@mindrot.org ## |
| 1880 | ## ------------------------------------------- ##" |
| 1881 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1882 | ;; |
| 1883 | esac |
| 1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1885 | $as_echo_n "checking for $2... " >&6; } |
| 1886 | if eval \${$3+:} false; then : |
| 1887 | $as_echo_n "(cached) " >&6 |
| 1888 | else |
| 1889 | eval "$3=\$ac_header_compiler" |
| 1890 | fi |
| 1891 | eval ac_res=\$$3 |
| 1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1893 | $as_echo "$ac_res" >&6; } |
| 1894 | fi |
| 1895 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1896 | |
| 1897 | } # ac_fn_c_check_header_mongrel |
| 1898 | |
| 1899 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1900 | # ---------------------------------- |
| 1901 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1902 | ac_fn_c_check_func () |
| 1903 | { |
| 1904 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1906 | $as_echo_n "checking for $2... " >&6; } |
| 1907 | if eval \${$3+:} false; then : |
| 1908 | $as_echo_n "(cached) " >&6 |
| 1909 | else |
| 1910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1911 | /* end confdefs.h. */ |
| 1912 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1913 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1914 | #define $2 innocuous_$2 |
| 1915 | |
| 1916 | /* System header to define __stub macros and hopefully few prototypes, |
| 1917 | which can conflict with char $2 (); below. |
| 1918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1919 | <limits.h> exists even on freestanding compilers. */ |
| 1920 | |
| 1921 | #ifdef __STDC__ |
| 1922 | # include <limits.h> |
| 1923 | #else |
| 1924 | # include <assert.h> |
| 1925 | #endif |
| 1926 | |
| 1927 | #undef $2 |
| 1928 | |
| 1929 | /* Override any GCC internal prototype to avoid an error. |
| 1930 | Use char because int might match the return type of a GCC |
| 1931 | builtin and then its argument prototype would still apply. */ |
| 1932 | #ifdef __cplusplus |
| 1933 | extern "C" |
| 1934 | #endif |
| 1935 | char $2 (); |
| 1936 | /* The GNU C library defines this for functions which it implements |
| 1937 | to always fail with ENOSYS. Some functions are actually named |
| 1938 | something starting with __ and the normal name is an alias. */ |
| 1939 | #if defined __stub_$2 || defined __stub___$2 |
| 1940 | choke me |
| 1941 | #endif |
| 1942 | |
| 1943 | int |
| 1944 | main () |
| 1945 | { |
| 1946 | return $2 (); |
| 1947 | ; |
| 1948 | return 0; |
| 1949 | } |
| 1950 | _ACEOF |
| 1951 | if ac_fn_c_try_link "$LINENO"; then : |
| 1952 | eval "$3=yes" |
| 1953 | else |
| 1954 | eval "$3=no" |
| 1955 | fi |
| 1956 | rm -f core conftest.err conftest.$ac_objext \ |
| 1957 | conftest$ac_exeext conftest.$ac_ext |
| 1958 | fi |
| 1959 | eval ac_res=\$$3 |
| 1960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1961 | $as_echo "$ac_res" >&6; } |
| 1962 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1963 | |
| 1964 | } # ac_fn_c_check_func |
| 1965 | |
| 1966 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1967 | # ------------------------------------------- |
| 1968 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1969 | # variable VAR accordingly. |
| 1970 | ac_fn_c_check_type () |
| 1971 | { |
| 1972 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1974 | $as_echo_n "checking for $2... " >&6; } |
| 1975 | if eval \${$3+:} false; then : |
| 1976 | $as_echo_n "(cached) " >&6 |
| 1977 | else |
| 1978 | eval "$3=no" |
| 1979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1980 | /* end confdefs.h. */ |
| 1981 | $4 |
| 1982 | int |
| 1983 | main () |
| 1984 | { |
| 1985 | if (sizeof ($2)) |
| 1986 | return 0; |
| 1987 | ; |
| 1988 | return 0; |
| 1989 | } |
| 1990 | _ACEOF |
| 1991 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1993 | /* end confdefs.h. */ |
| 1994 | $4 |
| 1995 | int |
| 1996 | main () |
| 1997 | { |
| 1998 | if (sizeof (($2))) |
| 1999 | return 0; |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2005 | |
| 2006 | else |
| 2007 | eval "$3=yes" |
| 2008 | fi |
| 2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2010 | fi |
| 2011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2012 | fi |
| 2013 | eval ac_res=\$$3 |
| 2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2015 | $as_echo "$ac_res" >&6; } |
| 2016 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2017 | |
| 2018 | } # ac_fn_c_check_type |
| 2019 | |
| 2020 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2021 | # -------------------------------------------- |
| 2022 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2023 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2024 | # computed |
| 2025 | ac_fn_c_compute_int () |
| 2026 | { |
| 2027 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2028 | if test "$cross_compiling" = yes; then |
| 2029 | # Depending upon the size, compute the lo and hi bounds. |
| 2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2031 | /* end confdefs.h. */ |
| 2032 | $4 |
| 2033 | int |
| 2034 | main () |
| 2035 | { |
| 2036 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2037 | test_array [0] = 0; |
| 2038 | return test_array [0]; |
| 2039 | |
| 2040 | ; |
| 2041 | return 0; |
| 2042 | } |
| 2043 | _ACEOF |
| 2044 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2045 | ac_lo=0 ac_mid=0 |
| 2046 | while :; do |
| 2047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2048 | /* end confdefs.h. */ |
| 2049 | $4 |
| 2050 | int |
| 2051 | main () |
| 2052 | { |
| 2053 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2054 | test_array [0] = 0; |
| 2055 | return test_array [0]; |
| 2056 | |
| 2057 | ; |
| 2058 | return 0; |
| 2059 | } |
| 2060 | _ACEOF |
| 2061 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2062 | ac_hi=$ac_mid; break |
| 2063 | else |
| 2064 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2065 | if test $ac_lo -le $ac_mid; then |
| 2066 | ac_lo= ac_hi= |
| 2067 | break |
| 2068 | fi |
| 2069 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2070 | fi |
| 2071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2072 | done |
| 2073 | else |
| 2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2075 | /* end confdefs.h. */ |
| 2076 | $4 |
| 2077 | int |
| 2078 | main () |
| 2079 | { |
| 2080 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2081 | test_array [0] = 0; |
| 2082 | return test_array [0]; |
| 2083 | |
| 2084 | ; |
| 2085 | return 0; |
| 2086 | } |
| 2087 | _ACEOF |
| 2088 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2089 | ac_hi=-1 ac_mid=-1 |
| 2090 | while :; do |
| 2091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2092 | /* end confdefs.h. */ |
| 2093 | $4 |
| 2094 | int |
| 2095 | main () |
| 2096 | { |
| 2097 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2098 | test_array [0] = 0; |
| 2099 | return test_array [0]; |
| 2100 | |
| 2101 | ; |
| 2102 | return 0; |
| 2103 | } |
| 2104 | _ACEOF |
| 2105 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2106 | ac_lo=$ac_mid; break |
| 2107 | else |
| 2108 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2109 | if test $ac_mid -le $ac_hi; then |
| 2110 | ac_lo= ac_hi= |
| 2111 | break |
| 2112 | fi |
| 2113 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2114 | fi |
| 2115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2116 | done |
| 2117 | else |
| 2118 | ac_lo= ac_hi= |
| 2119 | fi |
| 2120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2121 | fi |
| 2122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2123 | # Binary search between lo and hi bounds. |
| 2124 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2125 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2127 | /* end confdefs.h. */ |
| 2128 | $4 |
| 2129 | int |
| 2130 | main () |
| 2131 | { |
| 2132 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2133 | test_array [0] = 0; |
| 2134 | return test_array [0]; |
| 2135 | |
| 2136 | ; |
| 2137 | return 0; |
| 2138 | } |
| 2139 | _ACEOF |
| 2140 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2141 | ac_hi=$ac_mid |
| 2142 | else |
| 2143 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2144 | fi |
| 2145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2146 | done |
| 2147 | case $ac_lo in #(( |
| 2148 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2149 | '') ac_retval=1 ;; |
| 2150 | esac |
| 2151 | else |
| 2152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2153 | /* end confdefs.h. */ |
| 2154 | $4 |
| 2155 | static long int longval () { return $2; } |
| 2156 | static unsigned long int ulongval () { return $2; } |
| 2157 | #include <stdio.h> |
| 2158 | #include <stdlib.h> |
| 2159 | int |
| 2160 | main () |
| 2161 | { |
| 2162 | |
| 2163 | FILE *f = fopen ("conftest.val", "w"); |
| 2164 | if (! f) |
| 2165 | return 1; |
| 2166 | if (($2) < 0) |
| 2167 | { |
| 2168 | long int i = longval (); |
| 2169 | if (i != ($2)) |
| 2170 | return 1; |
| 2171 | fprintf (f, "%ld", i); |
| 2172 | } |
| 2173 | else |
| 2174 | { |
| 2175 | unsigned long int i = ulongval (); |
| 2176 | if (i != ($2)) |
| 2177 | return 1; |
| 2178 | fprintf (f, "%lu", i); |
| 2179 | } |
| 2180 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2181 | on some platforms. */ |
| 2182 | return ferror (f) || fclose (f) != 0; |
| 2183 | |
| 2184 | ; |
| 2185 | return 0; |
| 2186 | } |
| 2187 | _ACEOF |
| 2188 | if ac_fn_c_try_run "$LINENO"; then : |
| 2189 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2190 | else |
| 2191 | ac_retval=1 |
| 2192 | fi |
| 2193 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2194 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2195 | rm -f conftest.val |
| 2196 | |
| 2197 | fi |
| 2198 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2199 | as_fn_set_status $ac_retval |
| 2200 | |
| 2201 | } # ac_fn_c_compute_int |
| 2202 | |
| 2203 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2204 | # ---------------------------------------------------- |
| 2205 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2206 | # INCLUDES, setting cache variable VAR accordingly. |
| 2207 | ac_fn_c_check_member () |
| 2208 | { |
| 2209 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2211 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2212 | if eval \${$4+:} false; then : |
| 2213 | $as_echo_n "(cached) " >&6 |
| 2214 | else |
| 2215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2216 | /* end confdefs.h. */ |
| 2217 | $5 |
| 2218 | int |
| 2219 | main () |
| 2220 | { |
| 2221 | static $2 ac_aggr; |
| 2222 | if (ac_aggr.$3) |
| 2223 | return 0; |
| 2224 | ; |
| 2225 | return 0; |
| 2226 | } |
| 2227 | _ACEOF |
| 2228 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2229 | eval "$4=yes" |
| 2230 | else |
| 2231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2232 | /* end confdefs.h. */ |
| 2233 | $5 |
| 2234 | int |
| 2235 | main () |
| 2236 | { |
| 2237 | static $2 ac_aggr; |
| 2238 | if (sizeof ac_aggr.$3) |
| 2239 | return 0; |
| 2240 | ; |
| 2241 | return 0; |
| 2242 | } |
| 2243 | _ACEOF |
| 2244 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2245 | eval "$4=yes" |
| 2246 | else |
| 2247 | eval "$4=no" |
| 2248 | fi |
| 2249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2250 | fi |
| 2251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2252 | fi |
| 2253 | eval ac_res=\$$4 |
| 2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2255 | $as_echo "$ac_res" >&6; } |
| 2256 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2257 | |
| 2258 | } # ac_fn_c_check_member |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2259 | cat >config.log <<_ACEOF |
| 2260 | This file contains any messages produced by compilers while |
| 2261 | running configure, to aid debugging if configure makes a mistake. |
| 2262 | |
| 2263 | It was created by OpenSSH $as_me Portable, which was |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2264 | generated by GNU Autoconf 2.69. Invocation command line was |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2265 | |
| 2266 | $ $0 $@ |
| 2267 | |
| 2268 | _ACEOF |
| 2269 | exec 5>>config.log |
| 2270 | { |
| 2271 | cat <<_ASUNAME |
| 2272 | ## --------- ## |
| 2273 | ## Platform. ## |
| 2274 | ## --------- ## |
| 2275 | |
| 2276 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2277 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2278 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2279 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2280 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2281 | |
| 2282 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2283 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2284 | |
| 2285 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2286 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2287 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2288 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2289 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2290 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2291 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2292 | |
| 2293 | _ASUNAME |
| 2294 | |
| 2295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2296 | for as_dir in $PATH |
| 2297 | do |
| 2298 | IFS=$as_save_IFS |
| 2299 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2300 | $as_echo "PATH: $as_dir" |
| 2301 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2302 | IFS=$as_save_IFS |
| 2303 | |
| 2304 | } >&5 |
| 2305 | |
| 2306 | cat >&5 <<_ACEOF |
| 2307 | |
| 2308 | |
| 2309 | ## ----------- ## |
| 2310 | ## Core tests. ## |
| 2311 | ## ----------- ## |
| 2312 | |
| 2313 | _ACEOF |
| 2314 | |
| 2315 | |
| 2316 | # Keep a trace of the command line. |
| 2317 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2318 | # Strip out --silent because we don't want to record it for future runs. |
| 2319 | # Also quote any args containing shell meta-characters. |
| 2320 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2321 | ac_configure_args= |
| 2322 | ac_configure_args0= |
| 2323 | ac_configure_args1= |
| 2324 | ac_must_keep_next=false |
| 2325 | for ac_pass in 1 2 |
| 2326 | do |
| 2327 | for ac_arg |
| 2328 | do |
| 2329 | case $ac_arg in |
| 2330 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2331 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2332 | | -silent | --silent | --silen | --sile | --sil) |
| 2333 | continue ;; |
| 2334 | *\'*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2335 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2336 | esac |
| 2337 | case $ac_pass in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2338 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2339 | 2) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2340 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2341 | if test $ac_must_keep_next = true; then |
| 2342 | ac_must_keep_next=false # Got value, back to normal. |
| 2343 | else |
| 2344 | case $ac_arg in |
| 2345 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2346 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2347 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2348 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2349 | case "$ac_configure_args0 " in |
| 2350 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2351 | esac |
| 2352 | ;; |
| 2353 | -* ) ac_must_keep_next=true ;; |
| 2354 | esac |
| 2355 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2356 | as_fn_append ac_configure_args " '$ac_arg'" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2357 | ;; |
| 2358 | esac |
| 2359 | done |
| 2360 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2361 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2362 | { ac_configure_args1=; unset ac_configure_args1;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2363 | |
| 2364 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2365 | # config.log. We remove comments because anyway the quotes in there |
| 2366 | # would cause problems or look ugly. |
| 2367 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2368 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2369 | trap 'exit_status=$? |
| 2370 | # Save into config.log some information that might help in debugging. |
| 2371 | { |
| 2372 | echo |
| 2373 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2374 | $as_echo "## ---------------- ## |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2375 | ## Cache variables. ## |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2376 | ## ---------------- ##" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2377 | echo |
| 2378 | # The following way of writing the cache mishandles newlines in values, |
| 2379 | ( |
| 2380 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2381 | eval ac_val=\$$ac_var |
| 2382 | case $ac_val in #( |
| 2383 | *${as_nl}*) |
| 2384 | case $ac_var in #( |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2385 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2386 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2387 | esac |
| 2388 | case $ac_var in #( |
| 2389 | _ | IFS | as_nl) ;; #( |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2390 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2391 | *) { eval $ac_var=; unset $ac_var;} ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2392 | esac ;; |
| 2393 | esac |
| 2394 | done |
| 2395 | (set) 2>&1 | |
| 2396 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2397 | *${as_nl}ac_space=\ *) |
| 2398 | sed -n \ |
| 2399 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2400 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2401 | ;; #( |
| 2402 | *) |
| 2403 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2404 | ;; |
| 2405 | esac | |
| 2406 | sort |
| 2407 | ) |
| 2408 | echo |
| 2409 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2410 | $as_echo "## ----------------- ## |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2411 | ## Output variables. ## |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2412 | ## ----------------- ##" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2413 | echo |
| 2414 | for ac_var in $ac_subst_vars |
| 2415 | do |
| 2416 | eval ac_val=\$$ac_var |
| 2417 | case $ac_val in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2418 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2419 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2420 | $as_echo "$ac_var='\''$ac_val'\''" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2421 | done | sort |
| 2422 | echo |
| 2423 | |
| 2424 | if test -n "$ac_subst_files"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2425 | $as_echo "## ------------------- ## |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2426 | ## File substitutions. ## |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2427 | ## ------------------- ##" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2428 | echo |
| 2429 | for ac_var in $ac_subst_files |
| 2430 | do |
| 2431 | eval ac_val=\$$ac_var |
| 2432 | case $ac_val in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2433 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2434 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2435 | $as_echo "$ac_var='\''$ac_val'\''" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2436 | done | sort |
| 2437 | echo |
| 2438 | fi |
| 2439 | |
| 2440 | if test -s confdefs.h; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2441 | $as_echo "## ----------- ## |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2442 | ## confdefs.h. ## |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2443 | ## ----------- ##" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2444 | echo |
| 2445 | cat confdefs.h |
| 2446 | echo |
| 2447 | fi |
| 2448 | test "$ac_signal" != 0 && |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2449 | $as_echo "$as_me: caught signal $ac_signal" |
| 2450 | $as_echo "$as_me: exit $exit_status" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2451 | } >&5 |
| 2452 | rm -f core *.core core.conftest.* && |
| 2453 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2454 | exit $exit_status |
| 2455 | ' 0 |
| 2456 | for ac_signal in 1 2 13 15; do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2457 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2458 | done |
| 2459 | ac_signal=0 |
| 2460 | |
| 2461 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2462 | rm -f -r conftest* confdefs.h |
| 2463 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2464 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2465 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2466 | # Predefined preprocessor variables. |
| 2467 | |
| 2468 | cat >>confdefs.h <<_ACEOF |
| 2469 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2470 | _ACEOF |
| 2471 | |
| 2472 | cat >>confdefs.h <<_ACEOF |
| 2473 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2474 | _ACEOF |
| 2475 | |
| 2476 | cat >>confdefs.h <<_ACEOF |
| 2477 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2478 | _ACEOF |
| 2479 | |
| 2480 | cat >>confdefs.h <<_ACEOF |
| 2481 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2482 | _ACEOF |
| 2483 | |
| 2484 | cat >>confdefs.h <<_ACEOF |
| 2485 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2486 | _ACEOF |
| 2487 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2488 | cat >>confdefs.h <<_ACEOF |
| 2489 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2490 | _ACEOF |
| 2491 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2492 | |
| 2493 | # Let the site file select an alternate cache file if it wants to. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2494 | # Prefer an explicitly selected file to automatically selected ones. |
| 2495 | ac_site_file1=NONE |
| 2496 | ac_site_file2=NONE |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2497 | if test -n "$CONFIG_SITE"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2498 | # We do not want a PATH search for config.site. |
| 2499 | case $CONFIG_SITE in #(( |
| 2500 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2501 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2502 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2503 | esac |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2504 | elif test "x$prefix" != xNONE; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2505 | ac_site_file1=$prefix/share/config.site |
| 2506 | ac_site_file2=$prefix/etc/config.site |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2507 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2508 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2509 | ac_site_file2=$ac_default_prefix/etc/config.site |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2510 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2511 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2512 | do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2513 | test "x$ac_site_file" = xNONE && continue |
| 2514 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2516 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2517 | sed 's/^/| /' "$ac_site_file" >&5 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2518 | . "$ac_site_file" \ |
| 2519 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2520 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2521 | as_fn_error $? "failed to load site script $ac_site_file |
| 2522 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2523 | fi |
| 2524 | done |
| 2525 | |
| 2526 | if test -r "$cache_file"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2527 | # Some versions of bash will fail to source /dev/null (special files |
| 2528 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2529 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2531 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2532 | case $cache_file in |
| 2533 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2534 | *) . "./$cache_file";; |
| 2535 | esac |
| 2536 | fi |
| 2537 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2539 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2540 | >$cache_file |
| 2541 | fi |
| 2542 | |
| 2543 | # Check that the precious variables saved in the cache have kept the same |
| 2544 | # value. |
| 2545 | ac_cache_corrupted=false |
| 2546 | for ac_var in $ac_precious_vars; do |
| 2547 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2548 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2549 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2550 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2551 | case $ac_old_set,$ac_new_set in |
| 2552 | set,) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2554 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2555 | ac_cache_corrupted=: ;; |
| 2556 | ,set) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2558 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2559 | ac_cache_corrupted=: ;; |
| 2560 | ,);; |
| 2561 | *) |
| 2562 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2563 | # differences in whitespace do not lead to failure. |
| 2564 | ac_old_val_w=`echo x $ac_old_val` |
| 2565 | ac_new_val_w=`echo x $ac_new_val` |
| 2566 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2568 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2569 | ac_cache_corrupted=: |
| 2570 | else |
| 2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2572 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2573 | eval $ac_var=\$ac_old_val |
| 2574 | fi |
| 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2576 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2578 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2579 | fi;; |
| 2580 | esac |
| 2581 | # Pass precious variables to config.status. |
| 2582 | if test "$ac_new_set" = set; then |
| 2583 | case $ac_new_val in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2584 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2585 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2586 | esac |
| 2587 | case " $ac_configure_args " in |
| 2588 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2589 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2590 | esac |
| 2591 | fi |
| 2592 | done |
| 2593 | if $ac_cache_corrupted; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2595 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2597 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2598 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2599 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2600 | ## -------------------- ## |
| 2601 | ## Main body of script. ## |
| 2602 | ## -------------------- ## |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2603 | |
| 2604 | ac_ext=c |
| 2605 | ac_cpp='$CPP $CPPFLAGS' |
| 2606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2609 | |
| 2610 | |
| 2611 | |
| 2612 | |
| 2613 | ac_ext=c |
| 2614 | ac_cpp='$CPP $CPPFLAGS' |
| 2615 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2616 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2617 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2618 | |
| 2619 | |
| 2620 | ac_config_headers="$ac_config_headers config.h" |
| 2621 | |
| 2622 | ac_ext=c |
| 2623 | ac_cpp='$CPP $CPPFLAGS' |
| 2624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2627 | if test -n "$ac_tool_prefix"; then |
| 2628 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2629 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2631 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2632 | if ${ac_cv_prog_CC+:} false; then : |
| 2633 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2634 | else |
| 2635 | if test -n "$CC"; then |
| 2636 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2637 | else |
| 2638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2639 | for as_dir in $PATH |
| 2640 | do |
| 2641 | IFS=$as_save_IFS |
| 2642 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2645 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2647 | break 2 |
| 2648 | fi |
| 2649 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2650 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2651 | IFS=$as_save_IFS |
| 2652 | |
| 2653 | fi |
| 2654 | fi |
| 2655 | CC=$ac_cv_prog_CC |
| 2656 | if test -n "$CC"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2658 | $as_echo "$CC" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2659 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2661 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2662 | fi |
| 2663 | |
| 2664 | |
| 2665 | fi |
| 2666 | if test -z "$ac_cv_prog_CC"; then |
| 2667 | ac_ct_CC=$CC |
| 2668 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2669 | set dummy gcc; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2671 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2672 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2673 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2674 | else |
| 2675 | if test -n "$ac_ct_CC"; then |
| 2676 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2677 | else |
| 2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2679 | for as_dir in $PATH |
| 2680 | do |
| 2681 | IFS=$as_save_IFS |
| 2682 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2684 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2685 | ac_cv_prog_ac_ct_CC="gcc" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2687 | break 2 |
| 2688 | fi |
| 2689 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2690 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2691 | IFS=$as_save_IFS |
| 2692 | |
| 2693 | fi |
| 2694 | fi |
| 2695 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2696 | if test -n "$ac_ct_CC"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2698 | $as_echo "$ac_ct_CC" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2699 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2701 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2702 | fi |
| 2703 | |
| 2704 | if test "x$ac_ct_CC" = x; then |
| 2705 | CC="" |
| 2706 | else |
| 2707 | case $cross_compiling:$ac_tool_warned in |
| 2708 | yes:) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2710 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2711 | ac_tool_warned=yes ;; |
| 2712 | esac |
| 2713 | CC=$ac_ct_CC |
| 2714 | fi |
| 2715 | else |
| 2716 | CC="$ac_cv_prog_CC" |
| 2717 | fi |
| 2718 | |
| 2719 | if test -z "$CC"; then |
| 2720 | if test -n "$ac_tool_prefix"; then |
| 2721 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2722 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2724 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2725 | if ${ac_cv_prog_CC+:} false; then : |
| 2726 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2727 | else |
| 2728 | if test -n "$CC"; then |
| 2729 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2730 | else |
| 2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2732 | for as_dir in $PATH |
| 2733 | do |
| 2734 | IFS=$as_save_IFS |
| 2735 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2738 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2740 | break 2 |
| 2741 | fi |
| 2742 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2743 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2744 | IFS=$as_save_IFS |
| 2745 | |
| 2746 | fi |
| 2747 | fi |
| 2748 | CC=$ac_cv_prog_CC |
| 2749 | if test -n "$CC"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2751 | $as_echo "$CC" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2752 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2754 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2755 | fi |
| 2756 | |
| 2757 | |
| 2758 | fi |
| 2759 | fi |
| 2760 | if test -z "$CC"; then |
| 2761 | # Extract the first word of "cc", so it can be a program name with args. |
| 2762 | set dummy cc; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2764 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2765 | if ${ac_cv_prog_CC+:} false; then : |
| 2766 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2767 | else |
| 2768 | if test -n "$CC"; then |
| 2769 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2770 | else |
| 2771 | ac_prog_rejected=no |
| 2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2773 | for as_dir in $PATH |
| 2774 | do |
| 2775 | IFS=$as_save_IFS |
| 2776 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2779 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2780 | ac_prog_rejected=yes |
| 2781 | continue |
| 2782 | fi |
| 2783 | ac_cv_prog_CC="cc" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2785 | break 2 |
| 2786 | fi |
| 2787 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2788 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2789 | IFS=$as_save_IFS |
| 2790 | |
| 2791 | if test $ac_prog_rejected = yes; then |
| 2792 | # We found a bogon in the path, so make sure we never use it. |
| 2793 | set dummy $ac_cv_prog_CC |
| 2794 | shift |
| 2795 | if test $# != 0; then |
| 2796 | # We chose a different compiler from the bogus one. |
| 2797 | # However, it has the same basename, so the bogon will be chosen |
| 2798 | # first if we set CC to just the basename; use the full file name. |
| 2799 | shift |
| 2800 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2801 | fi |
| 2802 | fi |
| 2803 | fi |
| 2804 | fi |
| 2805 | CC=$ac_cv_prog_CC |
| 2806 | if test -n "$CC"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2808 | $as_echo "$CC" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2809 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2811 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2812 | fi |
| 2813 | |
| 2814 | |
| 2815 | fi |
| 2816 | if test -z "$CC"; then |
| 2817 | if test -n "$ac_tool_prefix"; then |
| 2818 | for ac_prog in cl.exe |
| 2819 | do |
| 2820 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2821 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2823 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2824 | if ${ac_cv_prog_CC+:} false; then : |
| 2825 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2826 | else |
| 2827 | if test -n "$CC"; then |
| 2828 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2829 | else |
| 2830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2831 | for as_dir in $PATH |
| 2832 | do |
| 2833 | IFS=$as_save_IFS |
| 2834 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2837 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2839 | break 2 |
| 2840 | fi |
| 2841 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2842 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2843 | IFS=$as_save_IFS |
| 2844 | |
| 2845 | fi |
| 2846 | fi |
| 2847 | CC=$ac_cv_prog_CC |
| 2848 | if test -n "$CC"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2850 | $as_echo "$CC" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2851 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2853 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2854 | fi |
| 2855 | |
| 2856 | |
| 2857 | test -n "$CC" && break |
| 2858 | done |
| 2859 | fi |
| 2860 | if test -z "$CC"; then |
| 2861 | ac_ct_CC=$CC |
| 2862 | for ac_prog in cl.exe |
| 2863 | do |
| 2864 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2865 | set dummy $ac_prog; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2867 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2868 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2869 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2870 | else |
| 2871 | if test -n "$ac_ct_CC"; then |
| 2872 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2873 | else |
| 2874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2875 | for as_dir in $PATH |
| 2876 | do |
| 2877 | IFS=$as_save_IFS |
| 2878 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2879 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2880 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2881 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2883 | break 2 |
| 2884 | fi |
| 2885 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2886 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2887 | IFS=$as_save_IFS |
| 2888 | |
| 2889 | fi |
| 2890 | fi |
| 2891 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2892 | if test -n "$ac_ct_CC"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2894 | $as_echo "$ac_ct_CC" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2895 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2897 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2898 | fi |
| 2899 | |
| 2900 | |
| 2901 | test -n "$ac_ct_CC" && break |
| 2902 | done |
| 2903 | |
| 2904 | if test "x$ac_ct_CC" = x; then |
| 2905 | CC="" |
| 2906 | else |
| 2907 | case $cross_compiling:$ac_tool_warned in |
| 2908 | yes:) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2910 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2911 | ac_tool_warned=yes ;; |
| 2912 | esac |
| 2913 | CC=$ac_ct_CC |
| 2914 | fi |
| 2915 | fi |
| 2916 | |
| 2917 | fi |
| 2918 | |
| 2919 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2920 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2922 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2923 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2924 | |
| 2925 | # Provide some information about the compiler. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2926 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2927 | set X $ac_compile |
| 2928 | ac_compiler=$2 |
| 2929 | for ac_option in --version -v -V -qversion; do |
| 2930 | { { ac_try="$ac_compiler $ac_option >&5" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2931 | case "(($ac_try" in |
| 2932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2933 | *) ac_try_echo=$ac_try;; |
| 2934 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2936 | $as_echo "$ac_try_echo"; } >&5 |
| 2937 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2938 | ac_status=$? |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2939 | if test -s conftest.err; then |
| 2940 | sed '10a\ |
| 2941 | ... rest of stderr output deleted ... |
| 2942 | 10q' conftest.err >conftest.er1 |
| 2943 | cat conftest.er1 >&5 |
| 2944 | fi |
| 2945 | rm -f conftest.er1 conftest.err |
| 2946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2947 | test $ac_status = 0; } |
| 2948 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2949 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2951 | /* end confdefs.h. */ |
| 2952 | |
| 2953 | int |
| 2954 | main () |
| 2955 | { |
| 2956 | |
| 2957 | ; |
| 2958 | return 0; |
| 2959 | } |
| 2960 | _ACEOF |
| 2961 | ac_clean_files_save=$ac_clean_files |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2962 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2963 | # Try to create an executable without -o first, disregard a.out. |
| 2964 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2965 | # of exeext. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2967 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2968 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2969 | |
| 2970 | # The possible output files: |
| 2971 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2972 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2973 | ac_rmfiles= |
| 2974 | for ac_file in $ac_files |
| 2975 | do |
| 2976 | case $ac_file in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2977 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2978 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2979 | esac |
| 2980 | done |
| 2981 | rm -f $ac_rmfiles |
| 2982 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2983 | if { { ac_try="$ac_link_default" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2984 | case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2989 | $as_echo "$ac_try_echo"; } >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2990 | (eval "$ac_link_default") 2>&5 |
| 2991 | ac_status=$? |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 2992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2993 | test $ac_status = 0; }; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 2994 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2995 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2996 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2997 | # so that the user can short-circuit this test for compilers unknown to |
| 2998 | # Autoconf. |
| 2999 | for ac_file in $ac_files '' |
| 3000 | do |
| 3001 | test -f "$ac_file" || continue |
| 3002 | case $ac_file in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3003 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3004 | ;; |
| 3005 | [ab].out ) |
| 3006 | # We found the default executable, but exeext='' is most |
| 3007 | # certainly right. |
| 3008 | break;; |
| 3009 | *.* ) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3010 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3011 | then :; else |
| 3012 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3013 | fi |
| 3014 | # We set ac_cv_exeext here because the later test for it is not |
| 3015 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3016 | # argument, so we may need to know it at that point already. |
| 3017 | # Even if this section looks crufty: it has the advantage of |
| 3018 | # actually working. |
| 3019 | break;; |
| 3020 | * ) |
| 3021 | break;; |
| 3022 | esac |
| 3023 | done |
| 3024 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3025 | |
| 3026 | else |
| 3027 | ac_file='' |
| 3028 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3029 | if test -z "$ac_file"; then : |
| 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3031 | $as_echo "no" >&6; } |
| 3032 | $as_echo "$as_me: failed program was:" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3034 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3035 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3037 | as_fn_error 77 "C compiler cannot create executables |
| 3038 | See \`config.log' for more details" "$LINENO" 5; } |
| 3039 | else |
| 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3041 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3042 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3044 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3046 | $as_echo "$ac_file" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3047 | ac_exeext=$ac_cv_exeext |
| 3048 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3049 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3050 | ac_clean_files=$ac_clean_files_save |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3052 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3053 | if { { ac_try="$ac_link" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3054 | case "(($ac_try" in |
| 3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3056 | *) ac_try_echo=$ac_try;; |
| 3057 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3058 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3059 | $as_echo "$ac_try_echo"; } >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3060 | (eval "$ac_link") 2>&5 |
| 3061 | ac_status=$? |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3063 | test $ac_status = 0; }; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3064 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3065 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3066 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3067 | # `rm'. |
| 3068 | for ac_file in conftest.exe conftest conftest.*; do |
| 3069 | test -f "$ac_file" || continue |
| 3070 | case $ac_file in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3071 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3072 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3073 | break;; |
| 3074 | * ) break;; |
| 3075 | esac |
| 3076 | done |
| 3077 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3078 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3079 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3080 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3081 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3082 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3083 | rm -f conftest conftest$ac_cv_exeext |
| 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3085 | $as_echo "$ac_cv_exeext" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3086 | |
| 3087 | rm -f conftest.$ac_ext |
| 3088 | EXEEXT=$ac_cv_exeext |
| 3089 | ac_exeext=$EXEEXT |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3091 | /* end confdefs.h. */ |
| 3092 | #include <stdio.h> |
| 3093 | int |
| 3094 | main () |
| 3095 | { |
| 3096 | FILE *f = fopen ("conftest.out", "w"); |
| 3097 | return ferror (f) || fclose (f) != 0; |
| 3098 | |
| 3099 | ; |
| 3100 | return 0; |
| 3101 | } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 3102 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3103 | ac_clean_files="$ac_clean_files conftest.out" |
| 3104 | # Check that the compiler produces executables we can run. If not, either |
| 3105 | # the compiler is broken, or we cross compile. |
| 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3107 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3108 | if test "$cross_compiling" != yes; then |
| 3109 | { { ac_try="$ac_link" |
| 3110 | case "(($ac_try" in |
| 3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3112 | *) ac_try_echo=$ac_try;; |
| 3113 | esac |
| 3114 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3115 | $as_echo "$ac_try_echo"; } >&5 |
| 3116 | (eval "$ac_link") 2>&5 |
| 3117 | ac_status=$? |
| 3118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3119 | test $ac_status = 0; } |
| 3120 | if { ac_try='./conftest$ac_cv_exeext' |
| 3121 | { { case "(($ac_try" in |
| 3122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3123 | *) ac_try_echo=$ac_try;; |
| 3124 | esac |
| 3125 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3126 | $as_echo "$ac_try_echo"; } >&5 |
| 3127 | (eval "$ac_try") 2>&5 |
| 3128 | ac_status=$? |
| 3129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3130 | test $ac_status = 0; }; }; then |
| 3131 | cross_compiling=no |
| 3132 | else |
| 3133 | if test "$cross_compiling" = maybe; then |
| 3134 | cross_compiling=yes |
| 3135 | else |
| 3136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3137 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3138 | as_fn_error $? "cannot run C compiled programs. |
| 3139 | If you meant to cross compile, use \`--host'. |
| 3140 | See \`config.log' for more details" "$LINENO" 5; } |
| 3141 | fi |
| 3142 | fi |
| 3143 | fi |
| 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3145 | $as_echo "$cross_compiling" >&6; } |
| 3146 | |
| 3147 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3148 | ac_clean_files=$ac_clean_files_save |
| 3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3150 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3151 | if ${ac_cv_objext+:} false; then : |
| 3152 | $as_echo_n "(cached) " >&6 |
| 3153 | else |
| 3154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3155 | /* end confdefs.h. */ |
| 3156 | |
| 3157 | int |
| 3158 | main () |
| 3159 | { |
| 3160 | |
| 3161 | ; |
| 3162 | return 0; |
| 3163 | } |
| 3164 | _ACEOF |
| 3165 | rm -f conftest.o conftest.obj |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3166 | if { { ac_try="$ac_compile" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3167 | case "(($ac_try" in |
| 3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3169 | *) ac_try_echo=$ac_try;; |
| 3170 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3171 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3172 | $as_echo "$ac_try_echo"; } >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3173 | (eval "$ac_compile") 2>&5 |
| 3174 | ac_status=$? |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3176 | test $ac_status = 0; }; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3177 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3178 | test -f "$ac_file" || continue; |
| 3179 | case $ac_file in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3180 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3181 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3182 | break;; |
| 3183 | esac |
| 3184 | done |
| 3185 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3186 | $as_echo "$as_me: failed program was:" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3188 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3189 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3191 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3192 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3193 | fi |
| 3194 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3195 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3197 | $as_echo "$ac_cv_objext" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3198 | OBJEXT=$ac_cv_objext |
| 3199 | ac_objext=$OBJEXT |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3201 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3202 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3203 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3204 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3206 | /* end confdefs.h. */ |
| 3207 | |
| 3208 | int |
| 3209 | main () |
| 3210 | { |
| 3211 | #ifndef __GNUC__ |
| 3212 | choke me |
| 3213 | #endif |
| 3214 | |
| 3215 | ; |
| 3216 | return 0; |
| 3217 | } |
| 3218 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3219 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3220 | ac_compiler_gnu=yes |
| 3221 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3222 | ac_compiler_gnu=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3223 | fi |
| 3224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3225 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3226 | |
| 3227 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3229 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3230 | if test $ac_compiler_gnu = yes; then |
| 3231 | GCC=yes |
| 3232 | else |
| 3233 | GCC= |
| 3234 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3235 | ac_test_CFLAGS=${CFLAGS+set} |
| 3236 | ac_save_CFLAGS=$CFLAGS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3238 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3239 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3240 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3241 | else |
| 3242 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3243 | ac_c_werror_flag=yes |
| 3244 | ac_cv_prog_cc_g=no |
| 3245 | CFLAGS="-g" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3247 | /* end confdefs.h. */ |
| 3248 | |
| 3249 | int |
| 3250 | main () |
| 3251 | { |
| 3252 | |
| 3253 | ; |
| 3254 | return 0; |
| 3255 | } |
| 3256 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3257 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3258 | ac_cv_prog_cc_g=yes |
| 3259 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3260 | CFLAGS="" |
| 3261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3262 | /* end confdefs.h. */ |
| 3263 | |
| 3264 | int |
| 3265 | main () |
| 3266 | { |
| 3267 | |
| 3268 | ; |
| 3269 | return 0; |
| 3270 | } |
| 3271 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3272 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 3273 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3274 | else |
| 3275 | ac_c_werror_flag=$ac_save_c_werror_flag |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3276 | CFLAGS="-g" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3278 | /* end confdefs.h. */ |
| 3279 | |
| 3280 | int |
| 3281 | main () |
| 3282 | { |
| 3283 | |
| 3284 | ; |
| 3285 | return 0; |
| 3286 | } |
| 3287 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3288 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3289 | ac_cv_prog_cc_g=yes |
| 3290 | fi |
| 3291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3292 | fi |
| 3293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3294 | fi |
| 3295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3296 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3297 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3299 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3300 | if test "$ac_test_CFLAGS" = set; then |
| 3301 | CFLAGS=$ac_save_CFLAGS |
| 3302 | elif test $ac_cv_prog_cc_g = yes; then |
| 3303 | if test "$GCC" = yes; then |
| 3304 | CFLAGS="-g -O2" |
| 3305 | else |
| 3306 | CFLAGS="-g" |
| 3307 | fi |
| 3308 | else |
| 3309 | if test "$GCC" = yes; then |
| 3310 | CFLAGS="-O2" |
| 3311 | else |
| 3312 | CFLAGS= |
| 3313 | fi |
| 3314 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3316 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3317 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3318 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3319 | else |
| 3320 | ac_cv_prog_cc_c89=no |
| 3321 | ac_save_CC=$CC |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3323 | /* end confdefs.h. */ |
| 3324 | #include <stdarg.h> |
| 3325 | #include <stdio.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3326 | struct stat; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3327 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3328 | struct buf { int x; }; |
| 3329 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3330 | static char *e (p, i) |
| 3331 | char **p; |
| 3332 | int i; |
| 3333 | { |
| 3334 | return p[i]; |
| 3335 | } |
| 3336 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3337 | { |
| 3338 | char *s; |
| 3339 | va_list v; |
| 3340 | va_start (v,p); |
| 3341 | s = g (p, va_arg (v,int)); |
| 3342 | va_end (v); |
| 3343 | return s; |
| 3344 | } |
| 3345 | |
| 3346 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3347 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3348 | These don't provoke an error unfortunately, instead are silently treated |
| 3349 | as 'x'. The following induces an error, until -std is added to get |
| 3350 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3351 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3352 | that's true only with -std. */ |
| 3353 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3354 | |
| 3355 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3356 | inside strings and character constants. */ |
| 3357 | #define FOO(x) 'x' |
| 3358 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3359 | |
| 3360 | int test (int i, double x); |
| 3361 | struct s1 {int (*f) (int a);}; |
| 3362 | struct s2 {int (*f) (double a);}; |
| 3363 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3364 | int argc; |
| 3365 | char **argv; |
| 3366 | int |
| 3367 | main () |
| 3368 | { |
| 3369 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3370 | ; |
| 3371 | return 0; |
| 3372 | } |
| 3373 | _ACEOF |
| 3374 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3375 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3376 | do |
| 3377 | CC="$ac_save_CC $ac_arg" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3378 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3379 | ac_cv_prog_cc_c89=$ac_arg |
| 3380 | fi |
| 3381 | rm -f core conftest.err conftest.$ac_objext |
| 3382 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3383 | done |
| 3384 | rm -f conftest.$ac_ext |
| 3385 | CC=$ac_save_CC |
| 3386 | |
| 3387 | fi |
| 3388 | # AC_CACHE_VAL |
| 3389 | case "x$ac_cv_prog_cc_c89" in |
| 3390 | x) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3392 | $as_echo "none needed" >&6; } ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3393 | xno) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3395 | $as_echo "unsupported" >&6; } ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3396 | *) |
| 3397 | CC="$CC $ac_cv_prog_cc_c89" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3399 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3400 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3401 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3402 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3403 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3404 | |
| 3405 | ac_ext=c |
| 3406 | ac_cpp='$CPP $CPPFLAGS' |
| 3407 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3408 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3409 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3410 | |
| 3411 | ac_aux_dir= |
| 3412 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3413 | if test -f "$ac_dir/install-sh"; then |
| 3414 | ac_aux_dir=$ac_dir |
| 3415 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3416 | break |
| 3417 | elif test -f "$ac_dir/install.sh"; then |
| 3418 | ac_aux_dir=$ac_dir |
| 3419 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3420 | break |
| 3421 | elif test -f "$ac_dir/shtool"; then |
| 3422 | ac_aux_dir=$ac_dir |
| 3423 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3424 | break |
| 3425 | fi |
| 3426 | done |
| 3427 | if test -z "$ac_aux_dir"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3428 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3429 | fi |
| 3430 | |
| 3431 | # These three variables are undocumented and unsupported, |
| 3432 | # and are intended to be withdrawn in a future Autoconf release. |
| 3433 | # They can cause serious problems if a builder's source tree is in a directory |
| 3434 | # whose full name contains unusual characters. |
| 3435 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3436 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3437 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3438 | |
| 3439 | |
| 3440 | # Make sure we can run config.sub. |
| 3441 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3442 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3443 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3445 | $as_echo_n "checking build system type... " >&6; } |
| 3446 | if ${ac_cv_build+:} false; then : |
| 3447 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3448 | else |
| 3449 | ac_build_alias=$build_alias |
| 3450 | test "x$ac_build_alias" = x && |
| 3451 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3452 | test "x$ac_build_alias" = x && |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3453 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3454 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3455 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3456 | |
| 3457 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3459 | $as_echo "$ac_cv_build" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3460 | case $ac_cv_build in |
| 3461 | *-*-*) ;; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3462 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3463 | esac |
| 3464 | build=$ac_cv_build |
| 3465 | ac_save_IFS=$IFS; IFS='-' |
| 3466 | set x $ac_cv_build |
| 3467 | shift |
| 3468 | build_cpu=$1 |
| 3469 | build_vendor=$2 |
| 3470 | shift; shift |
| 3471 | # Remember, the first character of IFS is used to create $*, |
| 3472 | # except with old shells: |
| 3473 | build_os=$* |
| 3474 | IFS=$ac_save_IFS |
| 3475 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3476 | |
| 3477 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3479 | $as_echo_n "checking host system type... " >&6; } |
| 3480 | if ${ac_cv_host+:} false; then : |
| 3481 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3482 | else |
| 3483 | if test "x$host_alias" = x; then |
| 3484 | ac_cv_host=$ac_cv_build |
| 3485 | else |
| 3486 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3487 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3488 | fi |
| 3489 | |
| 3490 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3492 | $as_echo "$ac_cv_host" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3493 | case $ac_cv_host in |
| 3494 | *-*-*) ;; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3495 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3496 | esac |
| 3497 | host=$ac_cv_host |
| 3498 | ac_save_IFS=$IFS; IFS='-' |
| 3499 | set x $ac_cv_host |
| 3500 | shift |
| 3501 | host_cpu=$1 |
| 3502 | host_vendor=$2 |
| 3503 | shift; shift |
| 3504 | # Remember, the first character of IFS is used to create $*, |
| 3505 | # except with old shells: |
| 3506 | host_os=$* |
| 3507 | IFS=$ac_save_IFS |
| 3508 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3509 | |
| 3510 | |
| 3511 | |
| 3512 | ac_ext=c |
| 3513 | ac_cpp='$CPP $CPPFLAGS' |
| 3514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3518 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3519 | # On Suns, sometimes $CPP names a directory. |
| 3520 | if test -n "$CPP" && test -d "$CPP"; then |
| 3521 | CPP= |
| 3522 | fi |
| 3523 | if test -z "$CPP"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3524 | if ${ac_cv_prog_CPP+:} false; then : |
| 3525 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3526 | else |
| 3527 | # Double quotes because CPP needs to be expanded |
| 3528 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3529 | do |
| 3530 | ac_preproc_ok=false |
| 3531 | for ac_c_preproc_warn_flag in '' yes |
| 3532 | do |
| 3533 | # Use a header file that comes with gcc, so configuring glibc |
| 3534 | # with a fresh cross-compiler works. |
| 3535 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3536 | # <limits.h> exists even on freestanding compilers. |
| 3537 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3538 | # not just through cpp. "Syntax error" is here to catch this case. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3540 | /* end confdefs.h. */ |
| 3541 | #ifdef __STDC__ |
| 3542 | # include <limits.h> |
| 3543 | #else |
| 3544 | # include <assert.h> |
| 3545 | #endif |
| 3546 | Syntax error |
| 3547 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3548 | if ac_fn_c_try_cpp "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 3549 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3550 | else |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3551 | # Broken: fails on valid input. |
| 3552 | continue |
| 3553 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3554 | rm -f conftest.err conftest.i conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3555 | |
| 3556 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3557 | # can be detected and how. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3559 | /* end confdefs.h. */ |
| 3560 | #include <ac_nonexistent.h> |
| 3561 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3562 | if ac_fn_c_try_cpp "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3563 | # Broken: success on invalid input. |
| 3564 | continue |
| 3565 | else |
| 3566 | # Passes both tests. |
| 3567 | ac_preproc_ok=: |
| 3568 | break |
| 3569 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3570 | rm -f conftest.err conftest.i conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3571 | |
| 3572 | done |
| 3573 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3574 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3575 | if $ac_preproc_ok; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3576 | break |
| 3577 | fi |
| 3578 | |
| 3579 | done |
| 3580 | ac_cv_prog_CPP=$CPP |
| 3581 | |
| 3582 | fi |
| 3583 | CPP=$ac_cv_prog_CPP |
| 3584 | else |
| 3585 | ac_cv_prog_CPP=$CPP |
| 3586 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3588 | $as_echo "$CPP" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3589 | ac_preproc_ok=false |
| 3590 | for ac_c_preproc_warn_flag in '' yes |
| 3591 | do |
| 3592 | # Use a header file that comes with gcc, so configuring glibc |
| 3593 | # with a fresh cross-compiler works. |
| 3594 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3595 | # <limits.h> exists even on freestanding compilers. |
| 3596 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3597 | # not just through cpp. "Syntax error" is here to catch this case. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3599 | /* end confdefs.h. */ |
| 3600 | #ifdef __STDC__ |
| 3601 | # include <limits.h> |
| 3602 | #else |
| 3603 | # include <assert.h> |
| 3604 | #endif |
| 3605 | Syntax error |
| 3606 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3607 | if ac_fn_c_try_cpp "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 3608 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3609 | else |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3610 | # Broken: fails on valid input. |
| 3611 | continue |
| 3612 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3613 | rm -f conftest.err conftest.i conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3614 | |
| 3615 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3616 | # can be detected and how. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3618 | /* end confdefs.h. */ |
| 3619 | #include <ac_nonexistent.h> |
| 3620 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3621 | if ac_fn_c_try_cpp "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3622 | # Broken: success on invalid input. |
| 3623 | continue |
| 3624 | else |
| 3625 | # Passes both tests. |
| 3626 | ac_preproc_ok=: |
| 3627 | break |
| 3628 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3629 | rm -f conftest.err conftest.i conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3630 | |
| 3631 | done |
| 3632 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3633 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3634 | if $ac_preproc_ok; then : |
| 3635 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3636 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3637 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3638 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3639 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3640 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3641 | fi |
| 3642 | |
| 3643 | ac_ext=c |
| 3644 | ac_cpp='$CPP $CPPFLAGS' |
| 3645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3648 | |
| 3649 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3651 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3652 | if ${ac_cv_path_GREP+:} false; then : |
| 3653 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3654 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3655 | if test -z "$GREP"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3656 | ac_path_GREP_found=false |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3657 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3659 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3660 | do |
| 3661 | IFS=$as_save_IFS |
| 3662 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3663 | for ac_prog in grep ggrep; do |
| 3664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3665 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3666 | as_fn_executable_p "$ac_path_GREP" || continue |
| 3667 | # Check for GNU ac_path_GREP and select it if it is found. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3668 | # Check for GNU $ac_path_GREP |
| 3669 | case `"$ac_path_GREP" --version 2>&1` in |
| 3670 | *GNU*) |
| 3671 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3672 | *) |
| 3673 | ac_count=0 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3674 | $as_echo_n 0123456789 >"conftest.in" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3675 | while : |
| 3676 | do |
| 3677 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3678 | mv "conftest.tmp" "conftest.in" |
| 3679 | cp "conftest.in" "conftest.nl" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3680 | $as_echo 'GREP' >> "conftest.nl" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3681 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3682 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3683 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3684 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3685 | # Best one so far, save it but keep looking for a better one |
| 3686 | ac_cv_path_GREP="$ac_path_GREP" |
| 3687 | ac_path_GREP_max=$ac_count |
| 3688 | fi |
| 3689 | # 10*(2^10) chars as input seems more than enough |
| 3690 | test $ac_count -gt 10 && break |
| 3691 | done |
| 3692 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3693 | esac |
| 3694 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3695 | $ac_path_GREP_found && break 3 |
| 3696 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3697 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3698 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3699 | IFS=$as_save_IFS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3700 | if test -z "$ac_cv_path_GREP"; then |
| 3701 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3702 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3703 | else |
| 3704 | ac_cv_path_GREP=$GREP |
| 3705 | fi |
| 3706 | |
| 3707 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3709 | $as_echo "$ac_cv_path_GREP" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3710 | GREP="$ac_cv_path_GREP" |
| 3711 | |
| 3712 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3714 | $as_echo_n "checking for egrep... " >&6; } |
| 3715 | if ${ac_cv_path_EGREP+:} false; then : |
| 3716 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3717 | else |
| 3718 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3719 | then ac_cv_path_EGREP="$GREP -E" |
| 3720 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3721 | if test -z "$EGREP"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3722 | ac_path_EGREP_found=false |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3723 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3725 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3726 | do |
| 3727 | IFS=$as_save_IFS |
| 3728 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3729 | for ac_prog in egrep; do |
| 3730 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3731 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3732 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 3733 | # Check for GNU ac_path_EGREP and select it if it is found. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3734 | # Check for GNU $ac_path_EGREP |
| 3735 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3736 | *GNU*) |
| 3737 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3738 | *) |
| 3739 | ac_count=0 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3740 | $as_echo_n 0123456789 >"conftest.in" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3741 | while : |
| 3742 | do |
| 3743 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3744 | mv "conftest.tmp" "conftest.in" |
| 3745 | cp "conftest.in" "conftest.nl" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3746 | $as_echo 'EGREP' >> "conftest.nl" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3747 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3748 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3749 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3750 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3751 | # Best one so far, save it but keep looking for a better one |
| 3752 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3753 | ac_path_EGREP_max=$ac_count |
| 3754 | fi |
| 3755 | # 10*(2^10) chars as input seems more than enough |
| 3756 | test $ac_count -gt 10 && break |
| 3757 | done |
| 3758 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3759 | esac |
| 3760 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3761 | $ac_path_EGREP_found && break 3 |
| 3762 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3763 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3764 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3765 | IFS=$as_save_IFS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3766 | if test -z "$ac_cv_path_EGREP"; then |
| 3767 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3768 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3769 | else |
| 3770 | ac_cv_path_EGREP=$EGREP |
| 3771 | fi |
| 3772 | |
| 3773 | fi |
| 3774 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3776 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3777 | EGREP="$ac_cv_path_EGREP" |
| 3778 | |
| 3779 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3781 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3782 | if ${ac_cv_header_stdc+:} false; then : |
| 3783 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3784 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3786 | /* end confdefs.h. */ |
| 3787 | #include <stdlib.h> |
| 3788 | #include <stdarg.h> |
| 3789 | #include <string.h> |
| 3790 | #include <float.h> |
| 3791 | |
| 3792 | int |
| 3793 | main () |
| 3794 | { |
| 3795 | |
| 3796 | ; |
| 3797 | return 0; |
| 3798 | } |
| 3799 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3800 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3801 | ac_cv_header_stdc=yes |
| 3802 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3803 | ac_cv_header_stdc=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3804 | fi |
| 3805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3806 | |
| 3807 | if test $ac_cv_header_stdc = yes; then |
| 3808 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3810 | /* end confdefs.h. */ |
| 3811 | #include <string.h> |
| 3812 | |
| 3813 | _ACEOF |
| 3814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3815 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3816 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3817 | else |
| 3818 | ac_cv_header_stdc=no |
| 3819 | fi |
| 3820 | rm -f conftest* |
| 3821 | |
| 3822 | fi |
| 3823 | |
| 3824 | if test $ac_cv_header_stdc = yes; then |
| 3825 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3827 | /* end confdefs.h. */ |
| 3828 | #include <stdlib.h> |
| 3829 | |
| 3830 | _ACEOF |
| 3831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3832 | $EGREP "free" >/dev/null 2>&1; then : |
| 3833 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3834 | else |
| 3835 | ac_cv_header_stdc=no |
| 3836 | fi |
| 3837 | rm -f conftest* |
| 3838 | |
| 3839 | fi |
| 3840 | |
| 3841 | if test $ac_cv_header_stdc = yes; then |
| 3842 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3843 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3844 | : |
| 3845 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3847 | /* end confdefs.h. */ |
| 3848 | #include <ctype.h> |
| 3849 | #include <stdlib.h> |
| 3850 | #if ((' ' & 0x0FF) == 0x020) |
| 3851 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3852 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3853 | #else |
| 3854 | # define ISLOWER(c) \ |
| 3855 | (('a' <= (c) && (c) <= 'i') \ |
| 3856 | || ('j' <= (c) && (c) <= 'r') \ |
| 3857 | || ('s' <= (c) && (c) <= 'z')) |
| 3858 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3859 | #endif |
| 3860 | |
| 3861 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3862 | int |
| 3863 | main () |
| 3864 | { |
| 3865 | int i; |
| 3866 | for (i = 0; i < 256; i++) |
| 3867 | if (XOR (islower (i), ISLOWER (i)) |
| 3868 | || toupper (i) != TOUPPER (i)) |
| 3869 | return 2; |
| 3870 | return 0; |
| 3871 | } |
| 3872 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3873 | if ac_fn_c_try_run "$LINENO"; then : |
| 3874 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3875 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3876 | ac_cv_header_stdc=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3877 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3879 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3880 | fi |
| 3881 | |
| 3882 | fi |
| 3883 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3885 | $as_echo "$ac_cv_header_stdc" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3886 | if test $ac_cv_header_stdc = yes; then |
| 3887 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3888 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3889 | |
| 3890 | fi |
| 3891 | |
| 3892 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3893 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3894 | inttypes.h stdint.h unistd.h |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3895 | do : |
| 3896 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3897 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3898 | " |
| 3899 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3900 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3902 | _ACEOF |
| 3903 | |
| 3904 | fi |
| 3905 | |
| 3906 | done |
| 3907 | |
| 3908 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 3910 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 3911 | if ${ac_cv_c_bigendian+:} false; then : |
| 3912 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3913 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3914 | ac_cv_c_bigendian=unknown |
| 3915 | # See if we're dealing with a universal compiler. |
| 3916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3917 | /* end confdefs.h. */ |
| 3918 | #ifndef __APPLE_CC__ |
| 3919 | not a universal capable compiler |
| 3920 | #endif |
| 3921 | typedef int dummy; |
| 3922 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3923 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3924 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3925 | |
| 3926 | # Check for potential -arch flags. It is not universal unless |
| 3927 | # there are at least two -arch flags with different values. |
| 3928 | ac_arch= |
| 3929 | ac_prev= |
| 3930 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 3931 | if test -n "$ac_prev"; then |
| 3932 | case $ac_word in |
| 3933 | i?86 | x86_64 | ppc | ppc64) |
| 3934 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 3935 | ac_arch=$ac_word |
| 3936 | else |
| 3937 | ac_cv_c_bigendian=universal |
| 3938 | break |
| 3939 | fi |
| 3940 | ;; |
| 3941 | esac |
| 3942 | ac_prev= |
| 3943 | elif test "x$ac_word" = "x-arch"; then |
| 3944 | ac_prev=arch |
| 3945 | fi |
| 3946 | done |
| 3947 | fi |
| 3948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3949 | if test $ac_cv_c_bigendian = unknown; then |
| 3950 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3952 | /* end confdefs.h. */ |
| 3953 | #include <sys/types.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3954 | #include <sys/param.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3955 | |
| 3956 | int |
| 3957 | main () |
| 3958 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3959 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 3960 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 3961 | && LITTLE_ENDIAN) |
| 3962 | bogus endian macros |
| 3963 | #endif |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3964 | |
| 3965 | ; |
| 3966 | return 0; |
| 3967 | } |
| 3968 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3969 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3970 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3972 | /* end confdefs.h. */ |
| 3973 | #include <sys/types.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3974 | #include <sys/param.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3975 | |
| 3976 | int |
| 3977 | main () |
| 3978 | { |
| 3979 | #if BYTE_ORDER != BIG_ENDIAN |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3980 | not big endian |
| 3981 | #endif |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3982 | |
| 3983 | ; |
| 3984 | return 0; |
| 3985 | } |
| 3986 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3987 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 3988 | ac_cv_c_bigendian=yes |
| 3989 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3990 | ac_cv_c_bigendian=no |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 3991 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 3992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 3993 | fi |
| 3994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3995 | fi |
| 3996 | if test $ac_cv_c_bigendian = unknown; then |
| 3997 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 3998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 3999 | /* end confdefs.h. */ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4000 | #include <limits.h> |
| 4001 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4002 | int |
| 4003 | main () |
| 4004 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4005 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4006 | bogus endian macros |
| 4007 | #endif |
| 4008 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4009 | ; |
| 4010 | return 0; |
| 4011 | } |
| 4012 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4013 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4014 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4016 | /* end confdefs.h. */ |
| 4017 | #include <limits.h> |
| 4018 | |
| 4019 | int |
| 4020 | main () |
| 4021 | { |
| 4022 | #ifndef _BIG_ENDIAN |
| 4023 | not big endian |
| 4024 | #endif |
| 4025 | |
| 4026 | ; |
| 4027 | return 0; |
| 4028 | } |
| 4029 | _ACEOF |
| 4030 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4031 | ac_cv_c_bigendian=yes |
| 4032 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4033 | ac_cv_c_bigendian=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4034 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4036 | fi |
| 4037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4038 | fi |
| 4039 | if test $ac_cv_c_bigendian = unknown; then |
| 4040 | # Compile a test program. |
| 4041 | if test "$cross_compiling" = yes; then : |
| 4042 | # Try to guess by grepping values from an object file. |
| 4043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4044 | /* end confdefs.h. */ |
| 4045 | short int ascii_mm[] = |
| 4046 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4047 | short int ascii_ii[] = |
| 4048 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4049 | int use_ascii (int i) { |
| 4050 | return ascii_mm[i] + ascii_ii[i]; |
| 4051 | } |
| 4052 | short int ebcdic_ii[] = |
| 4053 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4054 | short int ebcdic_mm[] = |
| 4055 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4056 | int use_ebcdic (int i) { |
| 4057 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4058 | } |
| 4059 | extern int foo; |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 4060 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4061 | int |
| 4062 | main () |
| 4063 | { |
| 4064 | return use_ascii (foo) == use_ebcdic (foo); |
| 4065 | ; |
| 4066 | return 0; |
| 4067 | } |
| 4068 | _ACEOF |
| 4069 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4070 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4071 | ac_cv_c_bigendian=yes |
| 4072 | fi |
| 4073 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4074 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4075 | ac_cv_c_bigendian=no |
| 4076 | else |
| 4077 | # finding both strings is unlikely to happen, but who knows? |
| 4078 | ac_cv_c_bigendian=unknown |
| 4079 | fi |
| 4080 | fi |
| 4081 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4083 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4085 | /* end confdefs.h. */ |
| 4086 | $ac_includes_default |
| 4087 | int |
| 4088 | main () |
| 4089 | { |
| 4090 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4091 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4092 | union |
| 4093 | { |
| 4094 | long int l; |
| 4095 | char c[sizeof (long int)]; |
| 4096 | } u; |
| 4097 | u.l = 1; |
| 4098 | return u.c[sizeof (long int) - 1] == 1; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4099 | |
| 4100 | ; |
| 4101 | return 0; |
| 4102 | } |
| 4103 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4104 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4105 | ac_cv_c_bigendian=no |
| 4106 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4107 | ac_cv_c_bigendian=yes |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4108 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4109 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4110 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4111 | fi |
| 4112 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4113 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4114 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4116 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4117 | case $ac_cv_c_bigendian in #( |
| 4118 | yes) |
| 4119 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4120 | ;; #( |
| 4121 | no) |
| 4122 | ;; #( |
| 4123 | universal) |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4124 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4125 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4126 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4127 | ;; #( |
| 4128 | *) |
| 4129 | as_fn_error $? "unknown endianness |
| 4130 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4131 | esac |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4132 | |
| 4133 | |
| 4134 | # Checks for programs. |
| 4135 | for ac_prog in gawk mawk nawk awk |
| 4136 | do |
| 4137 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4138 | set dummy $ac_prog; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4140 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4141 | if ${ac_cv_prog_AWK+:} false; then : |
| 4142 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4143 | else |
| 4144 | if test -n "$AWK"; then |
| 4145 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4146 | else |
| 4147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4148 | for as_dir in $PATH |
| 4149 | do |
| 4150 | IFS=$as_save_IFS |
| 4151 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4152 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4154 | ac_cv_prog_AWK="$ac_prog" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4156 | break 2 |
| 4157 | fi |
| 4158 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4159 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4160 | IFS=$as_save_IFS |
| 4161 | |
| 4162 | fi |
| 4163 | fi |
| 4164 | AWK=$ac_cv_prog_AWK |
| 4165 | if test -n "$AWK"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4167 | $as_echo "$AWK" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4168 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4170 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4171 | fi |
| 4172 | |
| 4173 | |
| 4174 | test -n "$AWK" && break |
| 4175 | done |
| 4176 | |
| 4177 | ac_ext=c |
| 4178 | ac_cpp='$CPP $CPPFLAGS' |
| 4179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4183 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4184 | # On Suns, sometimes $CPP names a directory. |
| 4185 | if test -n "$CPP" && test -d "$CPP"; then |
| 4186 | CPP= |
| 4187 | fi |
| 4188 | if test -z "$CPP"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4189 | if ${ac_cv_prog_CPP+:} false; then : |
| 4190 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4191 | else |
| 4192 | # Double quotes because CPP needs to be expanded |
| 4193 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4194 | do |
| 4195 | ac_preproc_ok=false |
| 4196 | for ac_c_preproc_warn_flag in '' yes |
| 4197 | do |
| 4198 | # Use a header file that comes with gcc, so configuring glibc |
| 4199 | # with a fresh cross-compiler works. |
| 4200 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4201 | # <limits.h> exists even on freestanding compilers. |
| 4202 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4203 | # not just through cpp. "Syntax error" is here to catch this case. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4205 | /* end confdefs.h. */ |
| 4206 | #ifdef __STDC__ |
| 4207 | # include <limits.h> |
| 4208 | #else |
| 4209 | # include <assert.h> |
| 4210 | #endif |
| 4211 | Syntax error |
| 4212 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4213 | if ac_fn_c_try_cpp "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 4214 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4215 | else |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4216 | # Broken: fails on valid input. |
| 4217 | continue |
| 4218 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4219 | rm -f conftest.err conftest.i conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4220 | |
| 4221 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4222 | # can be detected and how. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4224 | /* end confdefs.h. */ |
| 4225 | #include <ac_nonexistent.h> |
| 4226 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4227 | if ac_fn_c_try_cpp "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4228 | # Broken: success on invalid input. |
| 4229 | continue |
| 4230 | else |
| 4231 | # Passes both tests. |
| 4232 | ac_preproc_ok=: |
| 4233 | break |
| 4234 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4235 | rm -f conftest.err conftest.i conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4236 | |
| 4237 | done |
| 4238 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4239 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4240 | if $ac_preproc_ok; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4241 | break |
| 4242 | fi |
| 4243 | |
| 4244 | done |
| 4245 | ac_cv_prog_CPP=$CPP |
| 4246 | |
| 4247 | fi |
| 4248 | CPP=$ac_cv_prog_CPP |
| 4249 | else |
| 4250 | ac_cv_prog_CPP=$CPP |
| 4251 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4253 | $as_echo "$CPP" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4254 | ac_preproc_ok=false |
| 4255 | for ac_c_preproc_warn_flag in '' yes |
| 4256 | do |
| 4257 | # Use a header file that comes with gcc, so configuring glibc |
| 4258 | # with a fresh cross-compiler works. |
| 4259 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4260 | # <limits.h> exists even on freestanding compilers. |
| 4261 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4262 | # not just through cpp. "Syntax error" is here to catch this case. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4264 | /* end confdefs.h. */ |
| 4265 | #ifdef __STDC__ |
| 4266 | # include <limits.h> |
| 4267 | #else |
| 4268 | # include <assert.h> |
| 4269 | #endif |
| 4270 | Syntax error |
| 4271 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4272 | if ac_fn_c_try_cpp "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 4273 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4274 | else |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4275 | # Broken: fails on valid input. |
| 4276 | continue |
| 4277 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4278 | rm -f conftest.err conftest.i conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4279 | |
| 4280 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4281 | # can be detected and how. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4283 | /* end confdefs.h. */ |
| 4284 | #include <ac_nonexistent.h> |
| 4285 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4286 | if ac_fn_c_try_cpp "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4287 | # Broken: success on invalid input. |
| 4288 | continue |
| 4289 | else |
| 4290 | # Passes both tests. |
| 4291 | ac_preproc_ok=: |
| 4292 | break |
| 4293 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4294 | rm -f conftest.err conftest.i conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4295 | |
| 4296 | done |
| 4297 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4298 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4299 | if $ac_preproc_ok; then : |
| 4300 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4301 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4302 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4304 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4305 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4306 | fi |
| 4307 | |
| 4308 | ac_ext=c |
| 4309 | ac_cpp='$CPP $CPPFLAGS' |
| 4310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4313 | |
| 4314 | if test -n "$ac_tool_prefix"; then |
| 4315 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4316 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4318 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4319 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 4320 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4321 | else |
| 4322 | if test -n "$RANLIB"; then |
| 4323 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4324 | else |
| 4325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4326 | for as_dir in $PATH |
| 4327 | do |
| 4328 | IFS=$as_save_IFS |
| 4329 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4330 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4331 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4332 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4334 | break 2 |
| 4335 | fi |
| 4336 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4337 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4338 | IFS=$as_save_IFS |
| 4339 | |
| 4340 | fi |
| 4341 | fi |
| 4342 | RANLIB=$ac_cv_prog_RANLIB |
| 4343 | if test -n "$RANLIB"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4345 | $as_echo "$RANLIB" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4346 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4348 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4349 | fi |
| 4350 | |
| 4351 | |
| 4352 | fi |
| 4353 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4354 | ac_ct_RANLIB=$RANLIB |
| 4355 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4356 | set dummy ranlib; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4358 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4359 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 4360 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4361 | else |
| 4362 | if test -n "$ac_ct_RANLIB"; then |
| 4363 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4364 | else |
| 4365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4366 | for as_dir in $PATH |
| 4367 | do |
| 4368 | IFS=$as_save_IFS |
| 4369 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4372 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4374 | break 2 |
| 4375 | fi |
| 4376 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4377 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4378 | IFS=$as_save_IFS |
| 4379 | |
| 4380 | fi |
| 4381 | fi |
| 4382 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4383 | if test -n "$ac_ct_RANLIB"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 4385 | $as_echo "$ac_ct_RANLIB" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4386 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4388 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4389 | fi |
| 4390 | |
| 4391 | if test "x$ac_ct_RANLIB" = x; then |
| 4392 | RANLIB=":" |
| 4393 | else |
| 4394 | case $cross_compiling:$ac_tool_warned in |
| 4395 | yes:) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4398 | ac_tool_warned=yes ;; |
| 4399 | esac |
| 4400 | RANLIB=$ac_ct_RANLIB |
| 4401 | fi |
| 4402 | else |
| 4403 | RANLIB="$ac_cv_prog_RANLIB" |
| 4404 | fi |
| 4405 | |
| 4406 | # Find a good install program. We prefer a C program (faster), |
| 4407 | # so one script is as good as another. But avoid the broken or |
| 4408 | # incompatible versions: |
| 4409 | # SysV /etc/install, /usr/sbin/install |
| 4410 | # SunOS /usr/etc/install |
| 4411 | # IRIX /sbin/install |
| 4412 | # AIX /bin/install |
| 4413 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4414 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4415 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4416 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4417 | # OS/2's system install, which has a completely different semantic |
| 4418 | # ./install, which can be erroneously created by make from ./install.sh. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4419 | # Reject install programs that cannot install multiple files. |
| 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 4421 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4422 | if test -z "$INSTALL"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4423 | if ${ac_cv_path_install+:} false; then : |
| 4424 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4425 | else |
| 4426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4427 | for as_dir in $PATH |
| 4428 | do |
| 4429 | IFS=$as_save_IFS |
| 4430 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4431 | # Account for people who put trailing slashes in PATH elements. |
| 4432 | case $as_dir/ in #(( |
| 4433 | ./ | .// | /[cC]/* | \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4434 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4435 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4436 | /usr/ucb/* ) ;; |
| 4437 | *) |
| 4438 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4439 | # Don't use installbsd from OSF since it installs stuff as root |
| 4440 | # by default. |
| 4441 | for ac_prog in ginstall scoinst install; do |
| 4442 | for ac_exec_ext in '' $ac_executable_extensions; do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4443 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4444 | if test $ac_prog = install && |
| 4445 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4446 | # AIX install. It has an incompatible calling convention. |
| 4447 | : |
| 4448 | elif test $ac_prog = install && |
| 4449 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4450 | # program-specific install script used by HP pwplus--don't use. |
| 4451 | : |
| 4452 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4453 | rm -rf conftest.one conftest.two conftest.dir |
| 4454 | echo one > conftest.one |
| 4455 | echo two > conftest.two |
| 4456 | mkdir conftest.dir |
| 4457 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4458 | test -s conftest.one && test -s conftest.two && |
| 4459 | test -s conftest.dir/conftest.one && |
| 4460 | test -s conftest.dir/conftest.two |
| 4461 | then |
| 4462 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4463 | break 3 |
| 4464 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4465 | fi |
| 4466 | fi |
| 4467 | done |
| 4468 | done |
| 4469 | ;; |
| 4470 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4471 | |
| 4472 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4473 | IFS=$as_save_IFS |
| 4474 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4475 | rm -rf conftest.one conftest.two conftest.dir |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4476 | |
| 4477 | fi |
| 4478 | if test "${ac_cv_path_install+set}" = set; then |
| 4479 | INSTALL=$ac_cv_path_install |
| 4480 | else |
| 4481 | # As a last resort, use the slow shell script. Don't cache a |
| 4482 | # value for INSTALL within a source directory, because that will |
| 4483 | # break other packages using the cache if that directory is |
| 4484 | # removed, or if the value is a relative name. |
| 4485 | INSTALL=$ac_install_sh |
| 4486 | fi |
| 4487 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 4489 | $as_echo "$INSTALL" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4490 | |
| 4491 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4492 | # It thinks the first close brace ends the variable substitution. |
| 4493 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4494 | |
| 4495 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4496 | |
| 4497 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4498 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4500 | $as_echo_n "checking for egrep... " >&6; } |
| 4501 | if ${ac_cv_path_EGREP+:} false; then : |
| 4502 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4503 | else |
| 4504 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4505 | then ac_cv_path_EGREP="$GREP -E" |
| 4506 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4507 | if test -z "$EGREP"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4508 | ac_path_EGREP_found=false |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4509 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4511 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4512 | do |
| 4513 | IFS=$as_save_IFS |
| 4514 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4515 | for ac_prog in egrep; do |
| 4516 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4517 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4518 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4519 | # Check for GNU ac_path_EGREP and select it if it is found. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4520 | # Check for GNU $ac_path_EGREP |
| 4521 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4522 | *GNU*) |
| 4523 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4524 | *) |
| 4525 | ac_count=0 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4526 | $as_echo_n 0123456789 >"conftest.in" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4527 | while : |
| 4528 | do |
| 4529 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4530 | mv "conftest.tmp" "conftest.in" |
| 4531 | cp "conftest.in" "conftest.nl" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4532 | $as_echo 'EGREP' >> "conftest.nl" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4533 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4534 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4535 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4536 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4537 | # Best one so far, save it but keep looking for a better one |
| 4538 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4539 | ac_path_EGREP_max=$ac_count |
| 4540 | fi |
| 4541 | # 10*(2^10) chars as input seems more than enough |
| 4542 | test $ac_count -gt 10 && break |
| 4543 | done |
| 4544 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4545 | esac |
| 4546 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4547 | $ac_path_EGREP_found && break 3 |
| 4548 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4549 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4550 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4551 | IFS=$as_save_IFS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4552 | if test -z "$ac_cv_path_EGREP"; then |
| 4553 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4554 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4555 | else |
| 4556 | ac_cv_path_EGREP=$EGREP |
| 4557 | fi |
| 4558 | |
| 4559 | fi |
| 4560 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4562 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4563 | EGREP="$ac_cv_path_EGREP" |
| 4564 | |
| 4565 | |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4566 | if test -n "$ac_tool_prefix"; then |
| 4567 | for ac_prog in ar |
| 4568 | do |
| 4569 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4570 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4572 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4573 | if ${ac_cv_prog_AR+:} false; then : |
| 4574 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4575 | else |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4576 | if test -n "$AR"; then |
| 4577 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4578 | else |
| 4579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4580 | for as_dir in $PATH |
| 4581 | do |
| 4582 | IFS=$as_save_IFS |
| 4583 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4585 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4586 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4588 | break 2 |
| 4589 | fi |
| 4590 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4591 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4592 | IFS=$as_save_IFS |
| 4593 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4594 | fi |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4595 | fi |
| 4596 | AR=$ac_cv_prog_AR |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4597 | if test -n "$AR"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4599 | $as_echo "$AR" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4600 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4602 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4603 | fi |
| 4604 | |
| 4605 | |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4606 | test -n "$AR" && break |
| 4607 | done |
| 4608 | fi |
| 4609 | if test -z "$AR"; then |
| 4610 | ac_ct_AR=$AR |
| 4611 | for ac_prog in ar |
| 4612 | do |
| 4613 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4614 | set dummy $ac_prog; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4616 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4617 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4618 | $as_echo_n "(cached) " >&6 |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4619 | else |
| 4620 | if test -n "$ac_ct_AR"; then |
| 4621 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4622 | else |
| 4623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4624 | for as_dir in $PATH |
| 4625 | do |
| 4626 | IFS=$as_save_IFS |
| 4627 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4628 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4629 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4630 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4632 | break 2 |
| 4633 | fi |
| 4634 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4635 | done |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4636 | IFS=$as_save_IFS |
| 4637 | |
| 4638 | fi |
| 4639 | fi |
| 4640 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4641 | if test -n "$ac_ct_AR"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4643 | $as_echo "$ac_ct_AR" >&6; } |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4644 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4646 | $as_echo "no" >&6; } |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4647 | fi |
| 4648 | |
| 4649 | |
| 4650 | test -n "$ac_ct_AR" && break |
| 4651 | done |
| 4652 | |
| 4653 | if test "x$ac_ct_AR" = x; then |
| 4654 | AR="" |
| 4655 | else |
| 4656 | case $cross_compiling:$ac_tool_warned in |
| 4657 | yes:) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4659 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 4660 | ac_tool_warned=yes ;; |
| 4661 | esac |
| 4662 | AR=$ac_ct_AR |
| 4663 | fi |
| 4664 | fi |
| 4665 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4666 | # Extract the first word of "cat", so it can be a program name with args. |
| 4667 | set dummy cat; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4669 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4670 | if ${ac_cv_path_CAT+:} false; then : |
| 4671 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4672 | else |
| 4673 | case $CAT in |
| 4674 | [\\/]* | ?:[\\/]*) |
| 4675 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 4676 | ;; |
| 4677 | *) |
| 4678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4679 | for as_dir in $PATH |
| 4680 | do |
| 4681 | IFS=$as_save_IFS |
| 4682 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4684 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4685 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4687 | break 2 |
| 4688 | fi |
| 4689 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4690 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4691 | IFS=$as_save_IFS |
| 4692 | |
| 4693 | ;; |
| 4694 | esac |
| 4695 | fi |
| 4696 | CAT=$ac_cv_path_CAT |
| 4697 | if test -n "$CAT"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 |
| 4699 | $as_echo "$CAT" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4700 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4702 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4703 | fi |
| 4704 | |
| 4705 | |
| 4706 | # Extract the first word of "kill", so it can be a program name with args. |
| 4707 | set dummy kill; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4709 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4710 | if ${ac_cv_path_KILL+:} false; then : |
| 4711 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4712 | else |
| 4713 | case $KILL in |
| 4714 | [\\/]* | ?:[\\/]*) |
| 4715 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. |
| 4716 | ;; |
| 4717 | *) |
| 4718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4719 | for as_dir in $PATH |
| 4720 | do |
| 4721 | IFS=$as_save_IFS |
| 4722 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4725 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4727 | break 2 |
| 4728 | fi |
| 4729 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4730 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4731 | IFS=$as_save_IFS |
| 4732 | |
| 4733 | ;; |
| 4734 | esac |
| 4735 | fi |
| 4736 | KILL=$ac_cv_path_KILL |
| 4737 | if test -n "$KILL"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 |
| 4739 | $as_echo "$KILL" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4740 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4742 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4743 | fi |
| 4744 | |
| 4745 | |
| 4746 | for ac_prog in perl5 perl |
| 4747 | do |
| 4748 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4749 | set dummy $ac_prog; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4751 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4752 | if ${ac_cv_path_PERL+:} false; then : |
| 4753 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4754 | else |
| 4755 | case $PERL in |
| 4756 | [\\/]* | ?:[\\/]*) |
| 4757 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4758 | ;; |
| 4759 | *) |
| 4760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4761 | for as_dir in $PATH |
| 4762 | do |
| 4763 | IFS=$as_save_IFS |
| 4764 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4765 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4767 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4769 | break 2 |
| 4770 | fi |
| 4771 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4772 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4773 | IFS=$as_save_IFS |
| 4774 | |
| 4775 | ;; |
| 4776 | esac |
| 4777 | fi |
| 4778 | PERL=$ac_cv_path_PERL |
| 4779 | if test -n "$PERL"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| 4781 | $as_echo "$PERL" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4782 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4784 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4785 | fi |
| 4786 | |
| 4787 | |
| 4788 | test -n "$PERL" && break |
| 4789 | done |
| 4790 | |
| 4791 | # Extract the first word of "sed", so it can be a program name with args. |
| 4792 | set dummy sed; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4794 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4795 | if ${ac_cv_path_SED+:} false; then : |
| 4796 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4797 | else |
| 4798 | case $SED in |
| 4799 | [\\/]* | ?:[\\/]*) |
| 4800 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4801 | ;; |
| 4802 | *) |
| 4803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4804 | for as_dir in $PATH |
| 4805 | do |
| 4806 | IFS=$as_save_IFS |
| 4807 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4808 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4809 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4810 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4812 | break 2 |
| 4813 | fi |
| 4814 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4815 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4816 | IFS=$as_save_IFS |
| 4817 | |
| 4818 | ;; |
| 4819 | esac |
| 4820 | fi |
| 4821 | SED=$ac_cv_path_SED |
| 4822 | if test -n "$SED"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
| 4824 | $as_echo "$SED" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4825 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4827 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4828 | fi |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | # Extract the first word of "ent", so it can be a program name with args. |
| 4833 | set dummy ent; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4835 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4836 | if ${ac_cv_path_ENT+:} false; then : |
| 4837 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4838 | else |
| 4839 | case $ENT in |
| 4840 | [\\/]* | ?:[\\/]*) |
| 4841 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. |
| 4842 | ;; |
| 4843 | *) |
| 4844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4845 | for as_dir in $PATH |
| 4846 | do |
| 4847 | IFS=$as_save_IFS |
| 4848 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4849 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4851 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4853 | break 2 |
| 4854 | fi |
| 4855 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4856 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4857 | IFS=$as_save_IFS |
| 4858 | |
| 4859 | ;; |
| 4860 | esac |
| 4861 | fi |
| 4862 | ENT=$ac_cv_path_ENT |
| 4863 | if test -n "$ENT"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 |
| 4865 | $as_echo "$ENT" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4866 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4868 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4869 | fi |
| 4870 | |
| 4871 | |
| 4872 | |
| 4873 | # Extract the first word of "bash", so it can be a program name with args. |
| 4874 | set dummy bash; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4876 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4877 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4878 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4879 | else |
| 4880 | case $TEST_MINUS_S_SH in |
| 4881 | [\\/]* | ?:[\\/]*) |
| 4882 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4883 | ;; |
| 4884 | *) |
| 4885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4886 | for as_dir in $PATH |
| 4887 | do |
| 4888 | IFS=$as_save_IFS |
| 4889 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4890 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4892 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4894 | break 2 |
| 4895 | fi |
| 4896 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4897 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4898 | IFS=$as_save_IFS |
| 4899 | |
| 4900 | ;; |
| 4901 | esac |
| 4902 | fi |
| 4903 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4904 | if test -n "$TEST_MINUS_S_SH"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4906 | $as_echo "$TEST_MINUS_S_SH" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4907 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4909 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4910 | fi |
| 4911 | |
| 4912 | |
| 4913 | # Extract the first word of "ksh", so it can be a program name with args. |
| 4914 | set dummy ksh; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4916 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4917 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4918 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4919 | else |
| 4920 | case $TEST_MINUS_S_SH in |
| 4921 | [\\/]* | ?:[\\/]*) |
| 4922 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4923 | ;; |
| 4924 | *) |
| 4925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4926 | for as_dir in $PATH |
| 4927 | do |
| 4928 | IFS=$as_save_IFS |
| 4929 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4930 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4932 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4934 | break 2 |
| 4935 | fi |
| 4936 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4937 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4938 | IFS=$as_save_IFS |
| 4939 | |
| 4940 | ;; |
| 4941 | esac |
| 4942 | fi |
| 4943 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4944 | if test -n "$TEST_MINUS_S_SH"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4946 | $as_echo "$TEST_MINUS_S_SH" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4947 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4949 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4950 | fi |
| 4951 | |
| 4952 | |
| 4953 | # Extract the first word of "sh", so it can be a program name with args. |
| 4954 | set dummy sh; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4956 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4957 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4958 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4959 | else |
| 4960 | case $TEST_MINUS_S_SH in |
| 4961 | [\\/]* | ?:[\\/]*) |
| 4962 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4963 | ;; |
| 4964 | *) |
| 4965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4966 | for as_dir in $PATH |
| 4967 | do |
| 4968 | IFS=$as_save_IFS |
| 4969 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4970 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4972 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4974 | break 2 |
| 4975 | fi |
| 4976 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4977 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4978 | IFS=$as_save_IFS |
| 4979 | |
| 4980 | ;; |
| 4981 | esac |
| 4982 | fi |
| 4983 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4984 | if test -n "$TEST_MINUS_S_SH"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4986 | $as_echo "$TEST_MINUS_S_SH" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4987 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4989 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4990 | fi |
| 4991 | |
| 4992 | |
| 4993 | # Extract the first word of "sh", so it can be a program name with args. |
| 4994 | set dummy sh; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4996 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4997 | if ${ac_cv_path_SH+:} false; then : |
| 4998 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 4999 | else |
| 5000 | case $SH in |
| 5001 | [\\/]* | ?:[\\/]*) |
| 5002 | ac_cv_path_SH="$SH" # Let the user override the test with a path. |
| 5003 | ;; |
| 5004 | *) |
| 5005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5006 | for as_dir in $PATH |
| 5007 | do |
| 5008 | IFS=$as_save_IFS |
| 5009 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5010 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5012 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5014 | break 2 |
| 5015 | fi |
| 5016 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5017 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5018 | IFS=$as_save_IFS |
| 5019 | |
| 5020 | ;; |
| 5021 | esac |
| 5022 | fi |
| 5023 | SH=$ac_cv_path_SH |
| 5024 | if test -n "$SH"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 |
| 5026 | $as_echo "$SH" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5027 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5029 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5030 | fi |
| 5031 | |
| 5032 | |
| 5033 | # Extract the first word of "groff", so it can be a program name with args. |
| 5034 | set dummy groff; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5036 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5037 | if ${ac_cv_path_GROFF+:} false; then : |
| 5038 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5039 | else |
| 5040 | case $GROFF in |
| 5041 | [\\/]* | ?:[\\/]*) |
| 5042 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 5043 | ;; |
| 5044 | *) |
| 5045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5046 | for as_dir in $PATH |
| 5047 | do |
| 5048 | IFS=$as_save_IFS |
| 5049 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5050 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5052 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5054 | break 2 |
| 5055 | fi |
| 5056 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5057 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5058 | IFS=$as_save_IFS |
| 5059 | |
| 5060 | ;; |
| 5061 | esac |
| 5062 | fi |
| 5063 | GROFF=$ac_cv_path_GROFF |
| 5064 | if test -n "$GROFF"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 |
| 5066 | $as_echo "$GROFF" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5067 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5069 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5070 | fi |
| 5071 | |
| 5072 | |
| 5073 | # Extract the first word of "nroff", so it can be a program name with args. |
| 5074 | set dummy nroff; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5076 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5077 | if ${ac_cv_path_NROFF+:} false; then : |
| 5078 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5079 | else |
| 5080 | case $NROFF in |
| 5081 | [\\/]* | ?:[\\/]*) |
| 5082 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. |
| 5083 | ;; |
| 5084 | *) |
| 5085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5086 | for as_dir in $PATH |
| 5087 | do |
| 5088 | IFS=$as_save_IFS |
| 5089 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5090 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5092 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5094 | break 2 |
| 5095 | fi |
| 5096 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5097 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5098 | IFS=$as_save_IFS |
| 5099 | |
| 5100 | ;; |
| 5101 | esac |
| 5102 | fi |
| 5103 | NROFF=$ac_cv_path_NROFF |
| 5104 | if test -n "$NROFF"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 |
| 5106 | $as_echo "$NROFF" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5107 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5109 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5110 | fi |
| 5111 | |
| 5112 | |
| 5113 | # Extract the first word of "mandoc", so it can be a program name with args. |
| 5114 | set dummy mandoc; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5116 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5117 | if ${ac_cv_path_MANDOC+:} false; then : |
| 5118 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5119 | else |
| 5120 | case $MANDOC in |
| 5121 | [\\/]* | ?:[\\/]*) |
| 5122 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. |
| 5123 | ;; |
| 5124 | *) |
| 5125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5126 | for as_dir in $PATH |
| 5127 | do |
| 5128 | IFS=$as_save_IFS |
| 5129 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5130 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5132 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5134 | break 2 |
| 5135 | fi |
| 5136 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5137 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5138 | IFS=$as_save_IFS |
| 5139 | |
| 5140 | ;; |
| 5141 | esac |
| 5142 | fi |
| 5143 | MANDOC=$ac_cv_path_MANDOC |
| 5144 | if test -n "$MANDOC"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 |
| 5146 | $as_echo "$MANDOC" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5147 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5149 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5150 | fi |
| 5151 | |
| 5152 | |
| 5153 | TEST_SHELL=sh |
| 5154 | |
| 5155 | |
| 5156 | if test "x$MANDOC" != "x" ; then |
| 5157 | MANFMT="$MANDOC" |
| 5158 | elif test "x$NROFF" != "x" ; then |
| 5159 | MANFMT="$NROFF -mandoc" |
| 5160 | elif test "x$GROFF" != "x" ; then |
| 5161 | MANFMT="$GROFF -mandoc -Tascii" |
| 5162 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 |
| 5164 | $as_echo "$as_me: WARNING: no manpage formatted found" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5165 | MANFMT="false" |
| 5166 | fi |
| 5167 | |
| 5168 | |
| 5169 | # Extract the first word of "groupadd", so it can be a program name with args. |
| 5170 | set dummy groupadd; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5172 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5173 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : |
| 5174 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5175 | else |
| 5176 | case $PATH_GROUPADD_PROG in |
| 5177 | [\\/]* | ?:[\\/]*) |
| 5178 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. |
| 5179 | ;; |
| 5180 | *) |
| 5181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5182 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc |
| 5183 | do |
| 5184 | IFS=$as_save_IFS |
| 5185 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5186 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5188 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5190 | break 2 |
| 5191 | fi |
| 5192 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5193 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5194 | IFS=$as_save_IFS |
| 5195 | |
| 5196 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" |
| 5197 | ;; |
| 5198 | esac |
| 5199 | fi |
| 5200 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG |
| 5201 | if test -n "$PATH_GROUPADD_PROG"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 |
| 5203 | $as_echo "$PATH_GROUPADD_PROG" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5204 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5206 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5207 | fi |
| 5208 | |
| 5209 | |
| 5210 | # Extract the first word of "useradd", so it can be a program name with args. |
| 5211 | set dummy useradd; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5213 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5214 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : |
| 5215 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5216 | else |
| 5217 | case $PATH_USERADD_PROG in |
| 5218 | [\\/]* | ?:[\\/]*) |
| 5219 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. |
| 5220 | ;; |
| 5221 | *) |
| 5222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5223 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc |
| 5224 | do |
| 5225 | IFS=$as_save_IFS |
| 5226 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5227 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5229 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5231 | break 2 |
| 5232 | fi |
| 5233 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5234 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5235 | IFS=$as_save_IFS |
| 5236 | |
| 5237 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" |
| 5238 | ;; |
| 5239 | esac |
| 5240 | fi |
| 5241 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG |
| 5242 | if test -n "$PATH_USERADD_PROG"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 |
| 5244 | $as_echo "$PATH_USERADD_PROG" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5245 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5247 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5248 | fi |
| 5249 | |
| 5250 | |
| 5251 | # Extract the first word of "pkgmk", so it can be a program name with args. |
| 5252 | set dummy pkgmk; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5254 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5255 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : |
| 5256 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5257 | else |
| 5258 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then |
| 5259 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. |
| 5260 | else |
| 5261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5262 | for as_dir in $PATH |
| 5263 | do |
| 5264 | IFS=$as_save_IFS |
| 5265 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5266 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5268 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5270 | break 2 |
| 5271 | fi |
| 5272 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5273 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5274 | IFS=$as_save_IFS |
| 5275 | |
| 5276 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" |
| 5277 | fi |
| 5278 | fi |
| 5279 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED |
| 5280 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 |
| 5282 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5283 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5285 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5286 | fi |
| 5287 | |
| 5288 | |
| 5289 | if test -x /sbin/sh; then |
| 5290 | STARTUP_SCRIPT_SHELL=/sbin/sh |
| 5291 | |
| 5292 | else |
| 5293 | STARTUP_SCRIPT_SHELL=/bin/sh |
| 5294 | |
| 5295 | fi |
| 5296 | |
| 5297 | # System features |
| 5298 | # Check whether --enable-largefile was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5299 | if test "${enable_largefile+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5300 | enableval=$enable_largefile; |
| 5301 | fi |
| 5302 | |
| 5303 | if test "$enable_largefile" != no; then |
| 5304 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5306 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 5307 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| 5308 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5309 | else |
| 5310 | ac_cv_sys_largefile_CC=no |
| 5311 | if test "$GCC" != yes; then |
| 5312 | ac_save_CC=$CC |
| 5313 | while :; do |
| 5314 | # IRIX 6.2 and later do not support large files by default, |
| 5315 | # so use the C compiler's -n32 option if that helps. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5317 | /* end confdefs.h. */ |
| 5318 | #include <sys/types.h> |
| 5319 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5320 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5321 | since some C++ compilers masquerading as C compilers |
| 5322 | incorrectly reject 9223372036854775807. */ |
| 5323 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5324 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5325 | && LARGE_OFF_T % 2147483647 == 1) |
| 5326 | ? 1 : -1]; |
| 5327 | int |
| 5328 | main () |
| 5329 | { |
| 5330 | |
| 5331 | ; |
| 5332 | return 0; |
| 5333 | } |
| 5334 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5335 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5336 | break |
| 5337 | fi |
| 5338 | rm -f core conftest.err conftest.$ac_objext |
| 5339 | CC="$CC -n32" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5340 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5341 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5342 | fi |
| 5343 | rm -f core conftest.err conftest.$ac_objext |
| 5344 | break |
| 5345 | done |
| 5346 | CC=$ac_save_CC |
| 5347 | rm -f conftest.$ac_ext |
| 5348 | fi |
| 5349 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5351 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5352 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5353 | CC=$CC$ac_cv_sys_largefile_CC |
| 5354 | fi |
| 5355 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5357 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 5358 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 5359 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5360 | else |
| 5361 | while :; do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5363 | /* end confdefs.h. */ |
| 5364 | #include <sys/types.h> |
| 5365 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5366 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5367 | since some C++ compilers masquerading as C compilers |
| 5368 | incorrectly reject 9223372036854775807. */ |
| 5369 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5370 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5371 | && LARGE_OFF_T % 2147483647 == 1) |
| 5372 | ? 1 : -1]; |
| 5373 | int |
| 5374 | main () |
| 5375 | { |
| 5376 | |
| 5377 | ; |
| 5378 | return 0; |
| 5379 | } |
| 5380 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5381 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5382 | ac_cv_sys_file_offset_bits=no; break |
| 5383 | fi |
| 5384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5386 | /* end confdefs.h. */ |
| 5387 | #define _FILE_OFFSET_BITS 64 |
| 5388 | #include <sys/types.h> |
| 5389 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5390 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5391 | since some C++ compilers masquerading as C compilers |
| 5392 | incorrectly reject 9223372036854775807. */ |
| 5393 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5394 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5395 | && LARGE_OFF_T % 2147483647 == 1) |
| 5396 | ? 1 : -1]; |
| 5397 | int |
| 5398 | main () |
| 5399 | { |
| 5400 | |
| 5401 | ; |
| 5402 | return 0; |
| 5403 | } |
| 5404 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5405 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5406 | ac_cv_sys_file_offset_bits=64; break |
| 5407 | fi |
| 5408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5409 | ac_cv_sys_file_offset_bits=unknown |
| 5410 | break |
| 5411 | done |
| 5412 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5414 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5415 | case $ac_cv_sys_file_offset_bits in #( |
| 5416 | no | unknown) ;; |
| 5417 | *) |
| 5418 | cat >>confdefs.h <<_ACEOF |
| 5419 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5420 | _ACEOF |
| 5421 | ;; |
| 5422 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5423 | rm -rf conftest* |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5424 | if test $ac_cv_sys_file_offset_bits = unknown; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5426 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 5427 | if ${ac_cv_sys_large_files+:} false; then : |
| 5428 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5429 | else |
| 5430 | while :; do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5432 | /* end confdefs.h. */ |
| 5433 | #include <sys/types.h> |
| 5434 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5435 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5436 | since some C++ compilers masquerading as C compilers |
| 5437 | incorrectly reject 9223372036854775807. */ |
| 5438 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5439 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5440 | && LARGE_OFF_T % 2147483647 == 1) |
| 5441 | ? 1 : -1]; |
| 5442 | int |
| 5443 | main () |
| 5444 | { |
| 5445 | |
| 5446 | ; |
| 5447 | return 0; |
| 5448 | } |
| 5449 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5450 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5451 | ac_cv_sys_large_files=no; break |
| 5452 | fi |
| 5453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5455 | /* end confdefs.h. */ |
| 5456 | #define _LARGE_FILES 1 |
| 5457 | #include <sys/types.h> |
| 5458 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5459 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5460 | since some C++ compilers masquerading as C compilers |
| 5461 | incorrectly reject 9223372036854775807. */ |
| 5462 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5463 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5464 | && LARGE_OFF_T % 2147483647 == 1) |
| 5465 | ? 1 : -1]; |
| 5466 | int |
| 5467 | main () |
| 5468 | { |
| 5469 | |
| 5470 | ; |
| 5471 | return 0; |
| 5472 | } |
| 5473 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5474 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5475 | ac_cv_sys_large_files=1; break |
| 5476 | fi |
| 5477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5478 | ac_cv_sys_large_files=unknown |
| 5479 | break |
| 5480 | done |
| 5481 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5483 | $as_echo "$ac_cv_sys_large_files" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5484 | case $ac_cv_sys_large_files in #( |
| 5485 | no | unknown) ;; |
| 5486 | *) |
| 5487 | cat >>confdefs.h <<_ACEOF |
| 5488 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5489 | _ACEOF |
| 5490 | ;; |
| 5491 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5492 | rm -rf conftest* |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5493 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5494 | |
| 5495 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5496 | fi |
| 5497 | |
| 5498 | |
| 5499 | if test -z "$AR" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5500 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5501 | fi |
| 5502 | |
| 5503 | # Extract the first word of "passwd", so it can be a program name with args. |
| 5504 | set dummy passwd; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5506 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5507 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : |
| 5508 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5509 | else |
| 5510 | case $PATH_PASSWD_PROG in |
| 5511 | [\\/]* | ?:[\\/]*) |
| 5512 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. |
| 5513 | ;; |
| 5514 | *) |
| 5515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5516 | for as_dir in $PATH |
| 5517 | do |
| 5518 | IFS=$as_save_IFS |
| 5519 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5520 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5522 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5524 | break 2 |
| 5525 | fi |
| 5526 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5527 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5528 | IFS=$as_save_IFS |
| 5529 | |
| 5530 | ;; |
| 5531 | esac |
| 5532 | fi |
| 5533 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG |
| 5534 | if test -n "$PATH_PASSWD_PROG"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 |
| 5536 | $as_echo "$PATH_PASSWD_PROG" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5537 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5539 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5540 | fi |
| 5541 | |
| 5542 | |
| 5543 | if test ! -z "$PATH_PASSWD_PROG" ; then |
| 5544 | |
| 5545 | cat >>confdefs.h <<_ACEOF |
| 5546 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" |
| 5547 | _ACEOF |
| 5548 | |
| 5549 | fi |
| 5550 | |
| 5551 | if test -z "$LD" ; then |
| 5552 | LD=$CC |
| 5553 | fi |
| 5554 | |
| 5555 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 5557 | $as_echo_n "checking for inline... " >&6; } |
| 5558 | if ${ac_cv_c_inline+:} false; then : |
| 5559 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5560 | else |
| 5561 | ac_cv_c_inline=no |
| 5562 | for ac_kw in inline __inline__ __inline; do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5564 | /* end confdefs.h. */ |
| 5565 | #ifndef __cplusplus |
| 5566 | typedef int foo_t; |
| 5567 | static $ac_kw foo_t static_foo () {return 0; } |
| 5568 | $ac_kw foo_t foo () {return 0; } |
| 5569 | #endif |
| 5570 | |
| 5571 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5572 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5573 | ac_cv_c_inline=$ac_kw |
| 5574 | fi |
| 5575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5576 | test "$ac_cv_c_inline" != no && break |
| 5577 | done |
| 5578 | |
| 5579 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 5581 | $as_echo "$ac_cv_c_inline" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5582 | |
| 5583 | case $ac_cv_c_inline in |
| 5584 | inline | yes) ;; |
| 5585 | *) |
| 5586 | case $ac_cv_c_inline in |
| 5587 | no) ac_val=;; |
| 5588 | *) ac_val=$ac_cv_c_inline;; |
| 5589 | esac |
| 5590 | cat >>confdefs.h <<_ACEOF |
| 5591 | #ifndef __cplusplus |
| 5592 | #define inline $ac_val |
| 5593 | #endif |
| 5594 | _ACEOF |
| 5595 | ;; |
| 5596 | esac |
| 5597 | |
| 5598 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5599 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> |
| 5600 | " |
| 5601 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5602 | have_llong_max=1 |
| 5603 | fi |
| 5604 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5605 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5606 | #include <sys/types.h> |
| 5607 | #include <sys/param.h> |
| 5608 | #include <dev/systrace.h> |
| 5609 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5610 | " |
| 5611 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5612 | have_systr_policy_kill=1 |
| 5613 | fi |
| 5614 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5615 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5616 | #include <sys/types.h> |
| 5617 | #include <sys/resource.h> |
| 5618 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5619 | " |
| 5620 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5621 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5622 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5623 | |
| 5624 | fi |
| 5625 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5626 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5627 | #include <sys/types.h> |
| 5628 | #include <linux/prctl.h> |
| 5629 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5630 | " |
| 5631 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5632 | have_linux_no_new_privs=1 |
| 5633 | fi |
| 5634 | |
| 5635 | |
| 5636 | openssl=yes |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 5637 | ssh1=no |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5638 | COMMENT_OUT_RSA1="#no ssh1#" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5639 | |
| 5640 | # Check whether --with-openssl was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5641 | if test "${with_openssl+set}" = set; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5642 | withval=$with_openssl; if test "x$withval" = "xno" ; then |
| 5643 | openssl=no |
| 5644 | ssh1=no |
| 5645 | fi |
| 5646 | |
| 5647 | |
| 5648 | fi |
| 5649 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5 |
| 5651 | $as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5652 | if test "x$openssl" = "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5654 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5655 | |
| 5656 | cat >>confdefs.h <<_ACEOF |
| 5657 | #define WITH_OPENSSL 1 |
| 5658 | _ACEOF |
| 5659 | |
| 5660 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5662 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5663 | fi |
| 5664 | |
| 5665 | |
| 5666 | # Check whether --with-ssh1 was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5667 | if test "${with_ssh1+set}" = set; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5668 | withval=$with_ssh1; |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 5669 | if test "x$withval" = "xyes" ; then |
| 5670 | if test "x$openssl" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5671 | as_fn_error $? "Cannot enable SSH protocol 1 with OpenSSL disabled" "$LINENO" 5 |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 5672 | fi |
| 5673 | ssh1=yes |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5674 | COMMENT_OUT_RSA1="" |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 5675 | elif test "x$withval" = "xno" ; then |
| 5676 | ssh1=no |
| 5677 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5678 | as_fn_error $? "unknown --with-ssh1 argument" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5679 | fi |
| 5680 | |
| 5681 | |
| 5682 | fi |
| 5683 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSH protocol 1 support is enabled" >&5 |
| 5685 | $as_echo_n "checking whether SSH protocol 1 support is enabled... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5686 | if test "x$ssh1" = "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5688 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5689 | |
| 5690 | cat >>confdefs.h <<_ACEOF |
| 5691 | #define WITH_SSH1 1 |
| 5692 | _ACEOF |
| 5693 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5694 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5695 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5697 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5698 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5699 | |
| 5700 | use_stack_protector=1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5701 | use_toolchain_hardening=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5702 | |
| 5703 | # Check whether --with-stackprotect was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5704 | if test "${with_stackprotect+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5705 | withval=$with_stackprotect; |
| 5706 | if test "x$withval" = "xno"; then |
| 5707 | use_stack_protector=0 |
| 5708 | fi |
| 5709 | fi |
| 5710 | |
| 5711 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5712 | # Check whether --with-hardening was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5713 | if test "${with_hardening+set}" = set; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5714 | withval=$with_hardening; |
| 5715 | if test "x$withval" = "xno"; then |
| 5716 | use_toolchain_hardening=0 |
| 5717 | fi |
| 5718 | fi |
| 5719 | |
| 5720 | |
| 5721 | # We use -Werror for the tests only so that we catch warnings like "this is |
| 5722 | # on by default" for things like -fPIE. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 |
| 5724 | $as_echo_n "checking if $CC supports -Werror... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5725 | saved_CFLAGS="$CFLAGS" |
| 5726 | CFLAGS="$CFLAGS -Werror" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5728 | /* end confdefs.h. */ |
| 5729 | int main(void) { return 0; } |
| 5730 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5731 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5733 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5734 | WERROR="-Werror" |
| 5735 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5737 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5738 | WERROR="" |
| 5739 | |
| 5740 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5742 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5743 | |
| 5744 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then |
| 5745 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 |
| 5747 | $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5748 | saved_CFLAGS="$CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5749 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" |
| 5750 | _define_flag="" |
| 5751 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5753 | /* end confdefs.h. */ |
| 5754 | |
| 5755 | #include <stdlib.h> |
| 5756 | #include <stdio.h> |
| 5757 | int main(int argc, char **argv) { |
| 5758 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 5759 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5760 | float l = i * 2.1; |
| 5761 | double m = l / 0.5; |
| 5762 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5763 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5764 | exit(0); |
| 5765 | } |
| 5766 | |
| 5767 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5768 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5769 | |
| 5770 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5771 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5773 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5774 | CFLAGS="$saved_CFLAGS" |
| 5775 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5777 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5778 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5779 | fi |
| 5780 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5782 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5783 | CFLAGS="$saved_CFLAGS" |
| 5784 | |
| 5785 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5787 | } |
| 5788 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 |
| 5790 | $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5791 | saved_CFLAGS="$CFLAGS" |
| 5792 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" |
| 5793 | _define_flag="" |
| 5794 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5796 | /* end confdefs.h. */ |
| 5797 | |
| 5798 | #include <stdlib.h> |
| 5799 | #include <stdio.h> |
| 5800 | int main(int argc, char **argv) { |
| 5801 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 5802 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5803 | float l = i * 2.1; |
| 5804 | double m = l / 0.5; |
| 5805 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5806 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5807 | exit(0); |
| 5808 | } |
| 5809 | |
| 5810 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5811 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5812 | |
| 5813 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5814 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5816 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5817 | CFLAGS="$saved_CFLAGS" |
| 5818 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5820 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5821 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5822 | fi |
| 5823 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5825 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5826 | CFLAGS="$saved_CFLAGS" |
| 5827 | |
| 5828 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5830 | } |
| 5831 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 |
| 5833 | $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5834 | saved_CFLAGS="$CFLAGS" |
| 5835 | CFLAGS="$CFLAGS $WERROR -Wall" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5836 | _define_flag="" |
| 5837 | test "x$_define_flag" = "x" && _define_flag="-Wall" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5839 | /* end confdefs.h. */ |
| 5840 | |
| 5841 | #include <stdlib.h> |
| 5842 | #include <stdio.h> |
| 5843 | int main(int argc, char **argv) { |
| 5844 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 5845 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5846 | float l = i * 2.1; |
| 5847 | double m = l / 0.5; |
| 5848 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5849 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5850 | exit(0); |
| 5851 | } |
| 5852 | |
| 5853 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5854 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5855 | |
| 5856 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5857 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5859 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5860 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5861 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5863 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5864 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5865 | fi |
| 5866 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5868 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5869 | CFLAGS="$saved_CFLAGS" |
| 5870 | |
| 5871 | fi |
| 5872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5873 | } |
| 5874 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 |
| 5876 | $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5877 | saved_CFLAGS="$CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5878 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5879 | _define_flag="" |
| 5880 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5882 | /* end confdefs.h. */ |
| 5883 | |
| 5884 | #include <stdlib.h> |
| 5885 | #include <stdio.h> |
| 5886 | int main(int argc, char **argv) { |
| 5887 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 5888 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5889 | float l = i * 2.1; |
| 5890 | double m = l / 0.5; |
| 5891 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5892 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5893 | exit(0); |
| 5894 | } |
| 5895 | |
| 5896 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5897 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5898 | |
| 5899 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5900 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5902 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5903 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5904 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5906 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5907 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5908 | fi |
| 5909 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5911 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5912 | CFLAGS="$saved_CFLAGS" |
| 5913 | |
| 5914 | fi |
| 5915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5916 | } |
| 5917 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 |
| 5919 | $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5920 | saved_CFLAGS="$CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5921 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5922 | _define_flag="" |
| 5923 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5925 | /* end confdefs.h. */ |
| 5926 | |
| 5927 | #include <stdlib.h> |
| 5928 | #include <stdio.h> |
| 5929 | int main(int argc, char **argv) { |
| 5930 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 5931 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5932 | float l = i * 2.1; |
| 5933 | double m = l / 0.5; |
| 5934 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5935 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5936 | exit(0); |
| 5937 | } |
| 5938 | |
| 5939 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5940 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5941 | |
| 5942 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5943 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5945 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5946 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5947 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5949 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5950 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5951 | fi |
| 5952 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5954 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5955 | CFLAGS="$saved_CFLAGS" |
| 5956 | |
| 5957 | fi |
| 5958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5959 | } |
| 5960 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 |
| 5962 | $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5963 | saved_CFLAGS="$CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5964 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5965 | _define_flag="" |
| 5966 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5968 | /* end confdefs.h. */ |
| 5969 | |
| 5970 | #include <stdlib.h> |
| 5971 | #include <stdio.h> |
| 5972 | int main(int argc, char **argv) { |
| 5973 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 5974 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5975 | float l = i * 2.1; |
| 5976 | double m = l / 0.5; |
| 5977 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5978 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5979 | exit(0); |
| 5980 | } |
| 5981 | |
| 5982 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5983 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5984 | |
| 5985 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5986 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5988 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5989 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5990 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5992 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 5993 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5994 | fi |
| 5995 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5997 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 5998 | CFLAGS="$saved_CFLAGS" |
| 5999 | |
| 6000 | fi |
| 6001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6002 | } |
| 6003 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 |
| 6005 | $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6006 | saved_CFLAGS="$CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6007 | CFLAGS="$CFLAGS $WERROR -Wformat-security" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6008 | _define_flag="" |
| 6009 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6011 | /* end confdefs.h. */ |
| 6012 | |
| 6013 | #include <stdlib.h> |
| 6014 | #include <stdio.h> |
| 6015 | int main(int argc, char **argv) { |
| 6016 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6017 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6018 | float l = i * 2.1; |
| 6019 | double m = l / 0.5; |
| 6020 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6021 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6022 | exit(0); |
| 6023 | } |
| 6024 | |
| 6025 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6026 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6027 | |
| 6028 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6029 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6031 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6032 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6033 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6035 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6036 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 6037 | fi |
| 6038 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6040 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6041 | CFLAGS="$saved_CFLAGS" |
| 6042 | |
| 6043 | fi |
| 6044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6045 | } |
| 6046 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 |
| 6048 | $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6049 | saved_CFLAGS="$CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6050 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" |
| 6051 | _define_flag="" |
| 6052 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6054 | /* end confdefs.h. */ |
| 6055 | |
| 6056 | #include <stdlib.h> |
| 6057 | #include <stdio.h> |
| 6058 | int main(int argc, char **argv) { |
| 6059 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6060 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6061 | float l = i * 2.1; |
| 6062 | double m = l / 0.5; |
| 6063 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6064 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6065 | exit(0); |
| 6066 | } |
| 6067 | |
| 6068 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6069 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6070 | |
| 6071 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6072 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6074 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6075 | CFLAGS="$saved_CFLAGS" |
| 6076 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6078 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6079 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 6080 | fi |
| 6081 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6083 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6084 | CFLAGS="$saved_CFLAGS" |
| 6085 | |
| 6086 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6088 | } |
| 6089 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 |
| 6091 | $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6092 | saved_CFLAGS="$CFLAGS" |
| 6093 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6094 | _define_flag="-Wno-pointer-sign" |
| 6095 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6097 | /* end confdefs.h. */ |
| 6098 | |
| 6099 | #include <stdlib.h> |
| 6100 | #include <stdio.h> |
| 6101 | int main(int argc, char **argv) { |
| 6102 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6103 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6104 | float l = i * 2.1; |
| 6105 | double m = l / 0.5; |
| 6106 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6107 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6108 | exit(0); |
| 6109 | } |
| 6110 | |
| 6111 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6112 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6113 | |
| 6114 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6115 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6117 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6118 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6119 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6121 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6122 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 6123 | fi |
| 6124 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6126 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6127 | CFLAGS="$saved_CFLAGS" |
| 6128 | |
| 6129 | fi |
| 6130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6131 | } |
| 6132 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 |
| 6134 | $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6135 | saved_CFLAGS="$CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6136 | CFLAGS="$CFLAGS $WERROR -Wunused-result" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6137 | _define_flag="-Wno-unused-result" |
| 6138 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6140 | /* end confdefs.h. */ |
| 6141 | |
| 6142 | #include <stdlib.h> |
| 6143 | #include <stdio.h> |
| 6144 | int main(int argc, char **argv) { |
| 6145 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6146 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6147 | float l = i * 2.1; |
| 6148 | double m = l / 0.5; |
| 6149 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6150 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6151 | exit(0); |
| 6152 | } |
| 6153 | |
| 6154 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6155 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6156 | |
| 6157 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6158 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6160 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6161 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6162 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6164 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6165 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 6166 | fi |
| 6167 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6169 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6170 | CFLAGS="$saved_CFLAGS" |
| 6171 | |
| 6172 | fi |
| 6173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6174 | } |
| 6175 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 |
| 6177 | $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6178 | saved_CFLAGS="$CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6179 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6180 | _define_flag="" |
| 6181 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6183 | /* end confdefs.h. */ |
| 6184 | |
| 6185 | #include <stdlib.h> |
| 6186 | #include <stdio.h> |
| 6187 | int main(int argc, char **argv) { |
| 6188 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6189 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6190 | float l = i * 2.1; |
| 6191 | double m = l / 0.5; |
| 6192 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6193 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6194 | exit(0); |
| 6195 | } |
| 6196 | |
| 6197 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6198 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6199 | |
| 6200 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6201 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6203 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6204 | CFLAGS="$saved_CFLAGS" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6205 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6207 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6208 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 6209 | fi |
| 6210 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6212 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6213 | CFLAGS="$saved_CFLAGS" |
| 6214 | |
| 6215 | fi |
| 6216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6217 | } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6218 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 |
| 6220 | $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6221 | saved_CFLAGS="$CFLAGS" |
| 6222 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" |
| 6223 | _define_flag="" |
| 6224 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6226 | /* end confdefs.h. */ |
| 6227 | |
| 6228 | #include <stdlib.h> |
| 6229 | #include <stdio.h> |
| 6230 | int main(int argc, char **argv) { |
| 6231 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6232 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6233 | float l = i * 2.1; |
| 6234 | double m = l / 0.5; |
| 6235 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6236 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6237 | exit(0); |
| 6238 | } |
| 6239 | |
| 6240 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6241 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6242 | |
| 6243 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6244 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6246 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6247 | CFLAGS="$saved_CFLAGS" |
| 6248 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6250 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6251 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 6252 | fi |
| 6253 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6255 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6256 | CFLAGS="$saved_CFLAGS" |
| 6257 | |
| 6258 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6260 | } |
| 6261 | if test "x$use_toolchain_hardening" = "x1"; then |
| 6262 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 |
| 6264 | $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6265 | saved_LDFLAGS="$LDFLAGS" |
| 6266 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" |
| 6267 | _define_flag="" |
| 6268 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6270 | /* end confdefs.h. */ |
| 6271 | |
| 6272 | #include <stdlib.h> |
| 6273 | #include <stdio.h> |
| 6274 | int main(int argc, char **argv) { |
| 6275 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6276 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6277 | float l = i * 2.1; |
| 6278 | double m = l / 0.5; |
| 6279 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6280 | long long p = n * o; |
| 6281 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6282 | exit(0); |
| 6283 | } |
| 6284 | |
| 6285 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6286 | if ac_fn_c_try_link "$LINENO"; then : |
| 6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6288 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6289 | LDFLAGS="$saved_LDFLAGS $_define_flag" |
| 6290 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6292 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6293 | LDFLAGS="$saved_LDFLAGS" |
| 6294 | |
| 6295 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6296 | rm -f core conftest.err conftest.$ac_objext \ |
| 6297 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6298 | } |
| 6299 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 |
| 6301 | $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6302 | saved_LDFLAGS="$LDFLAGS" |
| 6303 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" |
| 6304 | _define_flag="" |
| 6305 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6307 | /* end confdefs.h. */ |
| 6308 | |
| 6309 | #include <stdlib.h> |
| 6310 | #include <stdio.h> |
| 6311 | int main(int argc, char **argv) { |
| 6312 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6313 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6314 | float l = i * 2.1; |
| 6315 | double m = l / 0.5; |
| 6316 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6317 | long long p = n * o; |
| 6318 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6319 | exit(0); |
| 6320 | } |
| 6321 | |
| 6322 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6323 | if ac_fn_c_try_link "$LINENO"; then : |
| 6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6325 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6326 | LDFLAGS="$saved_LDFLAGS $_define_flag" |
| 6327 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6329 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6330 | LDFLAGS="$saved_LDFLAGS" |
| 6331 | |
| 6332 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6333 | rm -f core conftest.err conftest.$ac_objext \ |
| 6334 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6335 | } |
| 6336 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 |
| 6338 | $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6339 | saved_LDFLAGS="$LDFLAGS" |
| 6340 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" |
| 6341 | _define_flag="" |
| 6342 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6344 | /* end confdefs.h. */ |
| 6345 | |
| 6346 | #include <stdlib.h> |
| 6347 | #include <stdio.h> |
| 6348 | int main(int argc, char **argv) { |
| 6349 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6350 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6351 | float l = i * 2.1; |
| 6352 | double m = l / 0.5; |
| 6353 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6354 | long long p = n * o; |
| 6355 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6356 | exit(0); |
| 6357 | } |
| 6358 | |
| 6359 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6360 | if ac_fn_c_try_link "$LINENO"; then : |
| 6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6362 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6363 | LDFLAGS="$saved_LDFLAGS $_define_flag" |
| 6364 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6366 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6367 | LDFLAGS="$saved_LDFLAGS" |
| 6368 | |
| 6369 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6370 | rm -f core conftest.err conftest.$ac_objext \ |
| 6371 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6372 | } |
| 6373 | # NB. -ftrapv expects certain support functions to be present in |
| 6374 | # the compiler library (libgcc or similar) to detect integer operations |
| 6375 | # that can overflow. We must check that the result of enabling it |
| 6376 | # actually links. The test program compiled/linked includes a number |
| 6377 | # of integer operations that should exercise this. |
| 6378 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 |
| 6380 | $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6381 | saved_CFLAGS="$CFLAGS" |
| 6382 | CFLAGS="$CFLAGS $WERROR -ftrapv" |
| 6383 | _define_flag="" |
| 6384 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6386 | /* end confdefs.h. */ |
| 6387 | |
| 6388 | #include <stdlib.h> |
| 6389 | #include <stdio.h> |
| 6390 | int main(int argc, char **argv) { |
| 6391 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 6392 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6393 | float l = i * 2.1; |
| 6394 | double m = l / 0.5; |
| 6395 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6396 | long long int p = n * o; |
| 6397 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6398 | exit(0); |
| 6399 | } |
| 6400 | |
| 6401 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6402 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6403 | |
| 6404 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6405 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6407 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6408 | CFLAGS="$saved_CFLAGS" |
| 6409 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6411 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6412 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 6413 | fi |
| 6414 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6416 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6417 | CFLAGS="$saved_CFLAGS" |
| 6418 | |
| 6419 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6420 | rm -f core conftest.err conftest.$ac_objext \ |
| 6421 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6422 | } |
| 6423 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 |
| 6425 | $as_echo_n "checking gcc version... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6426 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` |
| 6427 | case $GCC_VER in |
| 6428 | 1.*) no_attrib_nonnull=1 ;; |
| 6429 | 2.8* | 2.9*) |
| 6430 | no_attrib_nonnull=1 |
| 6431 | ;; |
| 6432 | 2.*) no_attrib_nonnull=1 ;; |
| 6433 | *) ;; |
| 6434 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 |
| 6436 | $as_echo "$GCC_VER" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6437 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 |
| 6439 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6440 | saved_CFLAGS="$CFLAGS" |
| 6441 | CFLAGS="$CFLAGS -fno-builtin-memset" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6443 | /* end confdefs.h. */ |
| 6444 | #include <string.h> |
| 6445 | int |
| 6446 | main () |
| 6447 | { |
| 6448 | char b[10]; memset(b, 0, sizeof(b)); |
| 6449 | ; |
| 6450 | return 0; |
| 6451 | } |
| 6452 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6453 | if ac_fn_c_try_link "$LINENO"; then : |
| 6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6455 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6456 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6458 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6459 | CFLAGS="$saved_CFLAGS" |
| 6460 | |
| 6461 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6462 | rm -f core conftest.err conftest.$ac_objext \ |
| 6463 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6464 | |
| 6465 | # -fstack-protector-all doesn't always work for some GCC versions |
| 6466 | # and/or platforms, so we test if we can. If it's not supported |
| 6467 | # on a given platform gcc will emit a warning so we use -Werror. |
| 6468 | if test "x$use_stack_protector" = "x1"; then |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6469 | for t in -fstack-protector-strong -fstack-protector-all \ |
| 6470 | -fstack-protector; do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 |
| 6472 | $as_echo_n "checking if $CC supports $t... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6473 | saved_CFLAGS="$CFLAGS" |
| 6474 | saved_LDFLAGS="$LDFLAGS" |
| 6475 | CFLAGS="$CFLAGS $t -Werror" |
| 6476 | LDFLAGS="$LDFLAGS $t -Werror" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6478 | /* end confdefs.h. */ |
| 6479 | #include <stdio.h> |
| 6480 | int |
| 6481 | main () |
| 6482 | { |
| 6483 | |
| 6484 | char x[256]; |
| 6485 | snprintf(x, sizeof(x), "XXX"); |
| 6486 | |
| 6487 | ; |
| 6488 | return 0; |
| 6489 | } |
| 6490 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6491 | if ac_fn_c_try_link "$LINENO"; then : |
| 6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6493 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6494 | CFLAGS="$saved_CFLAGS $t" |
| 6495 | LDFLAGS="$saved_LDFLAGS $t" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 |
| 6497 | $as_echo_n "checking if $t works... " >&6; } |
| 6498 | if test "$cross_compiling" = yes; then : |
| 6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 |
| 6500 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6501 | break |
| 6502 | |
| 6503 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6505 | /* end confdefs.h. */ |
| 6506 | #include <stdio.h> |
| 6507 | int |
| 6508 | main () |
| 6509 | { |
| 6510 | |
| 6511 | char x[256]; |
| 6512 | snprintf(x, sizeof(x), "XXX"); |
| 6513 | |
| 6514 | ; |
| 6515 | return 0; |
| 6516 | } |
| 6517 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6518 | if ac_fn_c_try_run "$LINENO"; then : |
| 6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6520 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6521 | break |
| 6522 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6524 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6525 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6526 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6527 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6528 | fi |
| 6529 | |
| 6530 | |
| 6531 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6533 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6534 | |
| 6535 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6536 | rm -f core conftest.err conftest.$ac_objext \ |
| 6537 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6538 | CFLAGS="$saved_CFLAGS" |
| 6539 | LDFLAGS="$saved_LDFLAGS" |
| 6540 | done |
| 6541 | fi |
| 6542 | |
| 6543 | if test -z "$have_llong_max"; then |
| 6544 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes |
| 6545 | unset ac_cv_have_decl_LLONG_MAX |
| 6546 | saved_CFLAGS="$CFLAGS" |
| 6547 | CFLAGS="$CFLAGS -std=gnu99" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6548 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6549 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6550 | " |
| 6551 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6552 | have_llong_max=1 |
| 6553 | else |
| 6554 | CFLAGS="$saved_CFLAGS" |
| 6555 | fi |
| 6556 | |
| 6557 | fi |
| 6558 | fi |
| 6559 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 |
| 6561 | $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } |
| 6562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6563 | /* end confdefs.h. */ |
| 6564 | |
| 6565 | #include <stdlib.h> |
| 6566 | __attribute__((__unused__)) static void foo(void){return;} |
| 6567 | int |
| 6568 | main () |
| 6569 | { |
| 6570 | exit(0); |
| 6571 | ; |
| 6572 | return 0; |
| 6573 | } |
| 6574 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6575 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6577 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6578 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6580 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6581 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6582 | $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6583 | |
| 6584 | |
| 6585 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6587 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6588 | if test "x$no_attrib_nonnull" != "x1" ; then |
| 6589 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6590 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6591 | |
| 6592 | fi |
| 6593 | |
| 6594 | |
| 6595 | # Check whether --with-rpath was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6596 | if test "${with_rpath+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6597 | withval=$with_rpath; |
| 6598 | if test "x$withval" = "xno" ; then |
| 6599 | need_dash_r="" |
| 6600 | fi |
| 6601 | if test "x$withval" = "xyes" ; then |
| 6602 | need_dash_r=1 |
| 6603 | fi |
| 6604 | |
| 6605 | |
| 6606 | fi |
| 6607 | |
| 6608 | |
| 6609 | # Allow user to specify flags |
| 6610 | |
| 6611 | # Check whether --with-cflags was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6612 | if test "${with_cflags+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6613 | withval=$with_cflags; |
| 6614 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 6615 | test "x${withval}" != "xyes"; then |
| 6616 | CFLAGS="$CFLAGS $withval" |
| 6617 | fi |
| 6618 | |
| 6619 | |
| 6620 | fi |
| 6621 | |
| 6622 | |
| 6623 | # Check whether --with-cppflags was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6624 | if test "${with_cppflags+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6625 | withval=$with_cppflags; |
| 6626 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 6627 | test "x${withval}" != "xyes"; then |
| 6628 | CPPFLAGS="$CPPFLAGS $withval" |
| 6629 | fi |
| 6630 | |
| 6631 | |
| 6632 | fi |
| 6633 | |
| 6634 | |
| 6635 | # Check whether --with-ldflags was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6636 | if test "${with_ldflags+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6637 | withval=$with_ldflags; |
| 6638 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 6639 | test "x${withval}" != "xyes"; then |
| 6640 | LDFLAGS="$LDFLAGS $withval" |
| 6641 | fi |
| 6642 | |
| 6643 | |
| 6644 | fi |
| 6645 | |
| 6646 | |
| 6647 | # Check whether --with-libs was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6648 | if test "${with_libs+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6649 | withval=$with_libs; |
| 6650 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 6651 | test "x${withval}" != "xyes"; then |
| 6652 | LIBS="$LIBS $withval" |
| 6653 | fi |
| 6654 | |
| 6655 | |
| 6656 | fi |
| 6657 | |
| 6658 | |
| 6659 | # Check whether --with-Werror was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6660 | if test "${with_Werror+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6661 | withval=$with_Werror; |
| 6662 | if test -n "$withval" && test "x$withval" != "xno"; then |
| 6663 | werror_flags="-Werror" |
| 6664 | if test "x${withval}" != "xyes"; then |
| 6665 | werror_flags="$withval" |
| 6666 | fi |
| 6667 | fi |
| 6668 | |
| 6669 | |
| 6670 | fi |
| 6671 | |
| 6672 | |
| 6673 | for ac_header in \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6674 | blf.h \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6675 | bstring.h \ |
| 6676 | crypt.h \ |
| 6677 | crypto/sha2.h \ |
| 6678 | dirent.h \ |
| 6679 | endian.h \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6680 | elf.h \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6681 | err.h \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6682 | features.h \ |
| 6683 | fcntl.h \ |
| 6684 | floatingpoint.h \ |
| 6685 | getopt.h \ |
| 6686 | glob.h \ |
| 6687 | ia.h \ |
| 6688 | iaf.h \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6689 | inttypes.h \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6690 | langinfo.h \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6691 | limits.h \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6692 | locale.h \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6693 | login.h \ |
| 6694 | maillock.h \ |
| 6695 | ndir.h \ |
| 6696 | net/if_tun.h \ |
| 6697 | netdb.h \ |
| 6698 | netgroup.h \ |
| 6699 | pam/pam_appl.h \ |
| 6700 | paths.h \ |
| 6701 | poll.h \ |
| 6702 | pty.h \ |
| 6703 | readpassphrase.h \ |
| 6704 | rpc/types.h \ |
| 6705 | security/pam_appl.h \ |
| 6706 | sha2.h \ |
| 6707 | shadow.h \ |
| 6708 | stddef.h \ |
| 6709 | stdint.h \ |
| 6710 | string.h \ |
| 6711 | strings.h \ |
| 6712 | sys/audit.h \ |
| 6713 | sys/bitypes.h \ |
| 6714 | sys/bsdtty.h \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6715 | sys/capability.h \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6716 | sys/cdefs.h \ |
| 6717 | sys/dir.h \ |
| 6718 | sys/mman.h \ |
| 6719 | sys/ndir.h \ |
| 6720 | sys/poll.h \ |
| 6721 | sys/prctl.h \ |
| 6722 | sys/pstat.h \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6723 | sys/ptrace.h \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6724 | sys/select.h \ |
| 6725 | sys/stat.h \ |
| 6726 | sys/stream.h \ |
| 6727 | sys/stropts.h \ |
| 6728 | sys/strtio.h \ |
| 6729 | sys/statvfs.h \ |
| 6730 | sys/sysmacros.h \ |
| 6731 | sys/time.h \ |
| 6732 | sys/timers.h \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6733 | time.h \ |
| 6734 | tmpdir.h \ |
| 6735 | ttyent.h \ |
| 6736 | ucred.h \ |
| 6737 | unistd.h \ |
| 6738 | usersec.h \ |
| 6739 | util.h \ |
| 6740 | utime.h \ |
| 6741 | utmp.h \ |
| 6742 | utmpx.h \ |
| 6743 | vis.h \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6744 | wchar.h \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6745 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6746 | do : |
| 6747 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6748 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6749 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6750 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6751 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6752 | _ACEOF |
| 6753 | |
| 6754 | fi |
| 6755 | |
| 6756 | done |
| 6757 | |
| 6758 | |
| 6759 | # lastlog.h requires sys/time.h to be included first on Solaris |
| 6760 | for ac_header in lastlog.h |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6761 | do : |
| 6762 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6763 | #ifdef HAVE_SYS_TIME_H |
| 6764 | # include <sys/time.h> |
| 6765 | #endif |
| 6766 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6767 | " |
| 6768 | if test "x$ac_cv_header_lastlog_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6769 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6770 | #define HAVE_LASTLOG_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6771 | _ACEOF |
| 6772 | |
| 6773 | fi |
| 6774 | |
| 6775 | done |
| 6776 | |
| 6777 | |
| 6778 | # sys/ptms.h requires sys/stream.h to be included first on Solaris |
| 6779 | for ac_header in sys/ptms.h |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6780 | do : |
| 6781 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6782 | #ifdef HAVE_SYS_STREAM_H |
| 6783 | # include <sys/stream.h> |
| 6784 | #endif |
| 6785 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6786 | " |
| 6787 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6788 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6789 | #define HAVE_SYS_PTMS_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6790 | _ACEOF |
| 6791 | |
| 6792 | fi |
| 6793 | |
| 6794 | done |
| 6795 | |
| 6796 | |
| 6797 | # login_cap.h requires sys/types.h on NetBSD |
| 6798 | for ac_header in login_cap.h |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6799 | do : |
| 6800 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6801 | #include <sys/types.h> |
| 6802 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6803 | " |
| 6804 | if test "x$ac_cv_header_login_cap_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6805 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6806 | #define HAVE_LOGIN_CAP_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6807 | _ACEOF |
| 6808 | |
| 6809 | fi |
| 6810 | |
| 6811 | done |
| 6812 | |
| 6813 | |
| 6814 | # older BSDs need sys/param.h before sys/mount.h |
| 6815 | for ac_header in sys/mount.h |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6816 | do : |
| 6817 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6818 | #include <sys/param.h> |
| 6819 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6820 | " |
| 6821 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6822 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6823 | #define HAVE_SYS_MOUNT_H 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6824 | _ACEOF |
| 6825 | |
| 6826 | fi |
| 6827 | |
| 6828 | done |
| 6829 | |
| 6830 | |
| 6831 | # Android requires sys/socket.h to be included before sys/un.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6832 | for ac_header in sys/un.h |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6833 | do : |
| 6834 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6835 | #include <sys/types.h> |
| 6836 | #include <sys/socket.h> |
| 6837 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6838 | " |
| 6839 | if test "x$ac_cv_header_sys_un_h" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 6840 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6841 | #define HAVE_SYS_UN_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6842 | _ACEOF |
| 6843 | |
| 6844 | fi |
| 6845 | |
| 6846 | done |
| 6847 | |
| 6848 | |
| 6849 | # Messages for features tested for in target-specific section |
| 6850 | SIA_MSG="no" |
| 6851 | SPC_MSG="no" |
| 6852 | SP_MSG="no" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6853 | SPP_MSG="no" |
| 6854 | |
| 6855 | # Support for Solaris/Illumos privileges (this test is used by both |
| 6856 | # the --with-solaris-privs option and --with-sandbox=solaris). |
| 6857 | SOLARIS_PRIVS="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6858 | |
| 6859 | # Check for some target-specific stuff |
| 6860 | case "$host" in |
| 6861 | *-*-aix*) |
| 6862 | # Some versions of VAC won't allow macro redefinitions at |
| 6863 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that |
| 6864 | # particularly with older versions of vac or xlc. |
| 6865 | # It also throws errors about null macro argments, but these are |
| 6866 | # not fatal. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 |
| 6868 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } |
| 6869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6870 | /* end confdefs.h. */ |
| 6871 | |
| 6872 | #define testmacro foo |
| 6873 | #define testmacro bar |
| 6874 | int |
| 6875 | main () |
| 6876 | { |
| 6877 | exit(0); |
| 6878 | ; |
| 6879 | return 0; |
| 6880 | } |
| 6881 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6882 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6884 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6885 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6887 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6888 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" |
| 6889 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" |
| 6890 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" |
| 6891 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" |
| 6892 | |
| 6893 | |
| 6894 | fi |
| 6895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6896 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 |
| 6898 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6899 | if (test -z "$blibpath"); then |
| 6900 | blibpath="/usr/lib:/lib" |
| 6901 | fi |
| 6902 | saved_LDFLAGS="$LDFLAGS" |
| 6903 | if test "$GCC" = "yes"; then |
| 6904 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" |
| 6905 | else |
| 6906 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," |
| 6907 | fi |
| 6908 | for tryflags in $flags ;do |
| 6909 | if (test -z "$blibflags"); then |
| 6910 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6912 | /* end confdefs.h. */ |
| 6913 | |
| 6914 | int |
| 6915 | main () |
| 6916 | { |
| 6917 | |
| 6918 | ; |
| 6919 | return 0; |
| 6920 | } |
| 6921 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6922 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6923 | blibflags=$tryflags |
| 6924 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6925 | rm -f core conftest.err conftest.$ac_objext \ |
| 6926 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6927 | fi |
| 6928 | done |
| 6929 | if (test -z "$blibflags"); then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6931 | $as_echo "not found" >&6; } |
| 6932 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6933 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 |
| 6935 | $as_echo "$blibflags" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6936 | fi |
| 6937 | LDFLAGS="$saved_LDFLAGS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6938 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" |
| 6939 | if test "x$ac_cv_func_authenticate" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6940 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6941 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6942 | |
| 6943 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 |
| 6945 | $as_echo_n "checking for authenticate in -ls... " >&6; } |
| 6946 | if ${ac_cv_lib_s_authenticate+:} false; then : |
| 6947 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6948 | else |
| 6949 | ac_check_lib_save_LIBS=$LIBS |
| 6950 | LIBS="-ls $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6952 | /* end confdefs.h. */ |
| 6953 | |
| 6954 | /* Override any GCC internal prototype to avoid an error. |
| 6955 | Use char because int might match the return type of a GCC |
| 6956 | builtin and then its argument prototype would still apply. */ |
| 6957 | #ifdef __cplusplus |
| 6958 | extern "C" |
| 6959 | #endif |
| 6960 | char authenticate (); |
| 6961 | int |
| 6962 | main () |
| 6963 | { |
| 6964 | return authenticate (); |
| 6965 | ; |
| 6966 | return 0; |
| 6967 | } |
| 6968 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6969 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6970 | ac_cv_lib_s_authenticate=yes |
| 6971 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6972 | ac_cv_lib_s_authenticate=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6973 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6974 | rm -f core conftest.err conftest.$ac_objext \ |
| 6975 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6976 | LIBS=$ac_check_lib_save_LIBS |
| 6977 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 |
| 6979 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } |
| 6980 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : |
| 6981 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6982 | |
| 6983 | LIBS="$LIBS -ls" |
| 6984 | |
| 6985 | fi |
| 6986 | |
| 6987 | |
| 6988 | fi |
| 6989 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6990 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> |
| 6991 | " |
| 6992 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : |
| 6993 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6994 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6995 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 6996 | fi |
| 6997 | |
| 6998 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 6999 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7000 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7001 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> |
| 7002 | " |
| 7003 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : |
| 7004 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7005 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7006 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7007 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7008 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7009 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7010 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7011 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7012 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> |
| 7013 | " |
| 7014 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : |
| 7015 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7016 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7017 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7018 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7019 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7020 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7021 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7022 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7023 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> |
| 7024 | " |
| 7025 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : |
| 7026 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7027 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7028 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7029 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7030 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7031 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7032 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7033 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7034 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> |
| 7035 | " |
| 7036 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : |
| 7037 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7038 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7039 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7040 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7041 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7042 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7043 | #define HAVE_DECL_SETAUTHDB $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7044 | _ACEOF |
| 7045 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7046 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7047 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7048 | " |
| 7049 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : |
| 7050 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7051 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7052 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7053 | fi |
| 7054 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7055 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7056 | #define HAVE_DECL_LOGINFAILED $ac_have_decl |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7057 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7058 | if test $ac_have_decl = 1; then : |
| 7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 |
| 7060 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } |
| 7061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7062 | /* end confdefs.h. */ |
| 7063 | #include <usersec.h> |
| 7064 | int |
| 7065 | main () |
| 7066 | { |
| 7067 | (void)loginfailed("user","host","tty",0); |
| 7068 | ; |
| 7069 | return 0; |
| 7070 | } |
| 7071 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7072 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7074 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7075 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7076 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7077 | |
| 7078 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7080 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7081 | |
| 7082 | fi |
| 7083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7084 | fi |
| 7085 | |
| 7086 | for ac_func in getgrset setauthdb |
| 7087 | do : |
| 7088 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7089 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7090 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7091 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7092 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7093 | _ACEOF |
| 7094 | |
| 7095 | fi |
| 7096 | done |
| 7097 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7098 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7099 | #include <fcntl.h> |
| 7100 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7101 | " |
| 7102 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7103 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7104 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7105 | |
| 7106 | fi |
| 7107 | |
| 7108 | check_for_aix_broken_getaddrinfo=1 |
| 7109 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7110 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7111 | |
| 7112 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7113 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7114 | |
| 7115 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7116 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7117 | |
| 7118 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7119 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7120 | |
| 7121 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7122 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7123 | |
| 7124 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7125 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7126 | |
| 7127 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7128 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7129 | |
| 7130 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7131 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7132 | |
| 7133 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7134 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7135 | |
| 7136 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7137 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7138 | |
| 7139 | ;; |
| 7140 | *-*-android*) |
| 7141 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7142 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7143 | |
| 7144 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7145 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7146 | |
| 7147 | ;; |
| 7148 | *-*-cygwin*) |
| 7149 | check_for_libcrypt_later=1 |
| 7150 | LIBS="$LIBS /usr/lib/textreadmode.o" |
| 7151 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7152 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7153 | |
| 7154 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7155 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7156 | |
| 7157 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7158 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7159 | |
| 7160 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7161 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7162 | |
| 7163 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7164 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7165 | |
| 7166 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7167 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7168 | |
| 7169 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7170 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7171 | |
| 7172 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7173 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7174 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7175 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical |
| 7176 | # reasons which cause compile warnings, so we disable those warnings. |
| 7177 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 |
| 7179 | $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7180 | saved_CFLAGS="$CFLAGS" |
| 7181 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" |
| 7182 | _define_flag="" |
| 7183 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7185 | /* end confdefs.h. */ |
| 7186 | |
| 7187 | #include <stdlib.h> |
| 7188 | #include <stdio.h> |
| 7189 | int main(int argc, char **argv) { |
| 7190 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 7191 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 7192 | float l = i * 2.1; |
| 7193 | double m = l / 0.5; |
| 7194 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 7195 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 7196 | exit(0); |
| 7197 | } |
| 7198 | |
| 7199 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7200 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7201 | |
| 7202 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 7203 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7205 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7206 | CFLAGS="$saved_CFLAGS" |
| 7207 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7209 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7210 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 7211 | fi |
| 7212 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7214 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7215 | CFLAGS="$saved_CFLAGS" |
| 7216 | |
| 7217 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7219 | } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7220 | ;; |
| 7221 | *-*-dgux*) |
| 7222 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7223 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7224 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7225 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7226 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7227 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7228 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7229 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7230 | |
| 7231 | ;; |
| 7232 | *-*-darwin*) |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7233 | use_pie=auto |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 |
| 7235 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } |
| 7236 | if test "$cross_compiling" = yes; then : |
| 7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 |
| 7238 | $as_echo "assume it is working" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7239 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7241 | /* end confdefs.h. */ |
| 7242 | #include <mach-o/dyld.h> |
| 7243 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) |
| 7244 | exit(0); |
| 7245 | else |
| 7246 | exit(1); |
| 7247 | } |
| 7248 | |
| 7249 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7250 | if ac_fn_c_try_run "$LINENO"; then : |
| 7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 |
| 7252 | $as_echo "working" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7253 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 |
| 7255 | $as_echo "buggy" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7256 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7257 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7258 | |
| 7259 | |
| 7260 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7261 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7262 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7263 | fi |
| 7264 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7265 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7266 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7267 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7268 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7269 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7270 | |
| 7271 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7272 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7273 | |
| 7274 | |
| 7275 | cat >>confdefs.h <<_ACEOF |
| 7276 | #define BIND_8_COMPAT 1 |
| 7277 | _ACEOF |
| 7278 | |
| 7279 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7280 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7281 | |
| 7282 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7283 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7284 | |
| 7285 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7286 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7287 | |
| 7288 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7289 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" |
| 7290 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7291 | |
| 7292 | else |
| 7293 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7294 | $as_echo "#define AU_IPv4 0" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7295 | |
| 7296 | #include <bsm/audit.h> |
| 7297 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7298 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7299 | |
| 7300 | |
| 7301 | fi |
| 7302 | |
| 7303 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7304 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 7305 | |
| 7306 | for ac_func in sandbox_init |
| 7307 | do : |
| 7308 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" |
| 7309 | if test "x$ac_cv_func_sandbox_init" = xyes; then : |
| 7310 | cat >>confdefs.h <<_ACEOF |
| 7311 | #define HAVE_SANDBOX_INIT 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7312 | _ACEOF |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7313 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7314 | fi |
| 7315 | done |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7316 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7317 | for ac_header in sandbox.h |
| 7318 | do : |
| 7319 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" |
| 7320 | if test "x$ac_cv_header_sandbox_h" = xyes; then : |
| 7321 | cat >>confdefs.h <<_ACEOF |
| 7322 | #define HAVE_SANDBOX_H 1 |
| 7323 | _ACEOF |
| 7324 | |
| 7325 | fi |
| 7326 | |
| 7327 | done |
| 7328 | |
| 7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5 |
| 7330 | $as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; } |
| 7331 | if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then : |
| 7332 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7333 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7334 | ac_check_lib_save_LIBS=$LIBS |
| 7335 | LIBS="-lsandbox $LIBS" |
| 7336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7337 | /* end confdefs.h. */ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7338 | |
| 7339 | /* Override any GCC internal prototype to avoid an error. |
| 7340 | Use char because int might match the return type of a GCC |
| 7341 | builtin and then its argument prototype would still apply. */ |
| 7342 | #ifdef __cplusplus |
| 7343 | extern "C" |
| 7344 | #endif |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7345 | char sandbox_apply (); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7346 | int |
| 7347 | main () |
| 7348 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7349 | return sandbox_apply (); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7350 | ; |
| 7351 | return 0; |
| 7352 | } |
| 7353 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7354 | if ac_fn_c_try_link "$LINENO"; then : |
| 7355 | ac_cv_lib_sandbox_sandbox_apply=yes |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7356 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7357 | ac_cv_lib_sandbox_sandbox_apply=no |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7358 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7359 | rm -f core conftest.err conftest.$ac_objext \ |
| 7360 | conftest$ac_exeext conftest.$ac_ext |
| 7361 | LIBS=$ac_check_lib_save_LIBS |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7362 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5 |
| 7364 | $as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; } |
| 7365 | if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then : |
| 7366 | |
| 7367 | SSHDLIBS="$SSHDLIBS -lsandbox" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7368 | |
| 7369 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7370 | |
| 7371 | ;; |
| 7372 | *-*-dragonfly*) |
| 7373 | SSHDLIBS="$SSHDLIBS -lcrypt" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7374 | TEST_MALLOC_OPTIONS="AFGJPRX" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7375 | ;; |
| 7376 | *-*-haiku*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7377 | LIBS="$LIBS -lbsd " |
| 7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 |
| 7379 | $as_echo_n "checking for socket in -lnetwork... " >&6; } |
| 7380 | if ${ac_cv_lib_network_socket+:} false; then : |
| 7381 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7382 | else |
| 7383 | ac_check_lib_save_LIBS=$LIBS |
| 7384 | LIBS="-lnetwork $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7386 | /* end confdefs.h. */ |
| 7387 | |
| 7388 | /* Override any GCC internal prototype to avoid an error. |
| 7389 | Use char because int might match the return type of a GCC |
| 7390 | builtin and then its argument prototype would still apply. */ |
| 7391 | #ifdef __cplusplus |
| 7392 | extern "C" |
| 7393 | #endif |
| 7394 | char socket (); |
| 7395 | int |
| 7396 | main () |
| 7397 | { |
| 7398 | return socket (); |
| 7399 | ; |
| 7400 | return 0; |
| 7401 | } |
| 7402 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7403 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7404 | ac_cv_lib_network_socket=yes |
| 7405 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7406 | ac_cv_lib_network_socket=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7407 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7408 | rm -f core conftest.err conftest.$ac_objext \ |
| 7409 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7410 | LIBS=$ac_check_lib_save_LIBS |
| 7411 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 |
| 7413 | $as_echo "$ac_cv_lib_network_socket" >&6; } |
| 7414 | if test "x$ac_cv_lib_network_socket" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7415 | cat >>confdefs.h <<_ACEOF |
| 7416 | #define HAVE_LIBNETWORK 1 |
| 7417 | _ACEOF |
| 7418 | |
| 7419 | LIBS="-lnetwork $LIBS" |
| 7420 | |
| 7421 | fi |
| 7422 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7423 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7424 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7425 | MANTYPE=man |
| 7426 | ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7427 | *-*-hpux*) |
| 7428 | # first we define all of the options common to all HP-UX releases |
| 7429 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" |
| 7430 | IPADDR_IN_DISPLAY=yes |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7431 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7432 | |
| 7433 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7434 | |
| 7435 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7436 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7437 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7438 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7439 | |
| 7440 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7441 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7442 | |
| 7443 | maildir="/var/mail" |
| 7444 | LIBS="$LIBS -lsec" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 |
| 7446 | $as_echo_n "checking for t_error in -lxnet... " >&6; } |
| 7447 | if ${ac_cv_lib_xnet_t_error+:} false; then : |
| 7448 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7449 | else |
| 7450 | ac_check_lib_save_LIBS=$LIBS |
| 7451 | LIBS="-lxnet $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7453 | /* end confdefs.h. */ |
| 7454 | |
| 7455 | /* Override any GCC internal prototype to avoid an error. |
| 7456 | Use char because int might match the return type of a GCC |
| 7457 | builtin and then its argument prototype would still apply. */ |
| 7458 | #ifdef __cplusplus |
| 7459 | extern "C" |
| 7460 | #endif |
| 7461 | char t_error (); |
| 7462 | int |
| 7463 | main () |
| 7464 | { |
| 7465 | return t_error (); |
| 7466 | ; |
| 7467 | return 0; |
| 7468 | } |
| 7469 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7470 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7471 | ac_cv_lib_xnet_t_error=yes |
| 7472 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7473 | ac_cv_lib_xnet_t_error=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7474 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7475 | rm -f core conftest.err conftest.$ac_objext \ |
| 7476 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7477 | LIBS=$ac_check_lib_save_LIBS |
| 7478 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 |
| 7480 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } |
| 7481 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7482 | cat >>confdefs.h <<_ACEOF |
| 7483 | #define HAVE_LIBXNET 1 |
| 7484 | _ACEOF |
| 7485 | |
| 7486 | LIBS="-lxnet $LIBS" |
| 7487 | |
| 7488 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7489 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7490 | fi |
| 7491 | |
| 7492 | |
| 7493 | # next, we define all of the options specific to major releases |
| 7494 | case "$host" in |
| 7495 | *-*-hpux10*) |
| 7496 | if test -z "$GCC"; then |
| 7497 | CFLAGS="$CFLAGS -Ae" |
| 7498 | fi |
| 7499 | ;; |
| 7500 | *-*-hpux11*) |
| 7501 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7502 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7503 | |
| 7504 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7505 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7506 | |
| 7507 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7508 | $as_echo "#define USE_BTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7509 | |
| 7510 | check_for_hpux_broken_getaddrinfo=1 |
| 7511 | check_for_conflicting_getspnam=1 |
| 7512 | ;; |
| 7513 | esac |
| 7514 | |
| 7515 | # lastly, we define options specific to minor releases |
| 7516 | case "$host" in |
| 7517 | *-*-hpux10.26) |
| 7518 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7519 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7520 | |
| 7521 | disable_ptmx_check=yes |
| 7522 | LIBS="$LIBS -lsecpw" |
| 7523 | ;; |
| 7524 | esac |
| 7525 | ;; |
| 7526 | *-*-irix5*) |
| 7527 | PATH="$PATH:/usr/etc" |
| 7528 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7529 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7530 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7531 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7532 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7533 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7534 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7535 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7536 | |
| 7537 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7538 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7539 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7540 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7541 | |
| 7542 | ;; |
| 7543 | *-*-irix6*) |
| 7544 | PATH="$PATH:/usr/etc" |
| 7545 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7546 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7547 | |
| 7548 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7549 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7550 | |
| 7551 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7552 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7553 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7554 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" |
| 7555 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7556 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7557 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7558 | |
| 7559 | fi |
| 7560 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7561 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7562 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7563 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7564 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7565 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7566 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7567 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7568 | |
| 7569 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7570 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7571 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7572 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7573 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7574 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7575 | |
| 7576 | ;; |
| 7577 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
| 7578 | check_for_libcrypt_later=1 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7579 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7580 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7581 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7582 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7583 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7584 | |
| 7585 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7586 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7587 | |
| 7588 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7589 | $as_echo "#define USE_BTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7590 | |
| 7591 | ;; |
| 7592 | *-*-linux*) |
| 7593 | no_dev_ptmx=1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7594 | use_pie=auto |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7595 | check_for_libcrypt_later=1 |
| 7596 | check_for_openpty_ctty_bug=1 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7597 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7598 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7599 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7600 | |
| 7601 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7602 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7603 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7604 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7605 | |
| 7606 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7607 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7608 | |
| 7609 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7610 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7611 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7612 | $as_echo "#define USE_BTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7613 | |
| 7614 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7615 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7616 | |
| 7617 | inet6_default_4in6=yes |
| 7618 | case `uname -r` in |
| 7619 | 1.*|2.0.*) |
| 7620 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7621 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7622 | |
| 7623 | ;; |
| 7624 | esac |
| 7625 | # tun(4) forwarding compat code |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7626 | for ac_header in linux/if_tun.h |
| 7627 | do : |
| 7628 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" |
| 7629 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7630 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7631 | #define HAVE_LINUX_IF_TUN_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7632 | _ACEOF |
| 7633 | |
| 7634 | fi |
| 7635 | |
| 7636 | done |
| 7637 | |
| 7638 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then |
| 7639 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7640 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7641 | |
| 7642 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7643 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7644 | |
| 7645 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7646 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7647 | |
| 7648 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7649 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h |
| 7650 | do : |
| 7651 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7652 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> |
| 7653 | " |
| 7654 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7655 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7656 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7657 | _ACEOF |
| 7658 | |
| 7659 | fi |
| 7660 | |
| 7661 | done |
| 7662 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 |
| 7664 | $as_echo_n "checking for seccomp architecture... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7665 | seccomp_audit_arch= |
| 7666 | case "$host" in |
| 7667 | x86_64-*) |
| 7668 | seccomp_audit_arch=AUDIT_ARCH_X86_64 |
| 7669 | ;; |
| 7670 | i*86-*) |
| 7671 | seccomp_audit_arch=AUDIT_ARCH_I386 |
| 7672 | ;; |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 7673 | arm*-*) |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7674 | seccomp_audit_arch=AUDIT_ARCH_ARM |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 7675 | ;; |
| 7676 | aarch64*-*) |
| 7677 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 |
| 7678 | ;; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7679 | s390x-*) |
| 7680 | seccomp_audit_arch=AUDIT_ARCH_S390X |
| 7681 | ;; |
| 7682 | s390-*) |
| 7683 | seccomp_audit_arch=AUDIT_ARCH_S390 |
| 7684 | ;; |
| 7685 | powerpc64-*) |
| 7686 | seccomp_audit_arch=AUDIT_ARCH_PPC64 |
| 7687 | ;; |
| 7688 | powerpc64le-*) |
| 7689 | seccomp_audit_arch=AUDIT_ARCH_PPC64LE |
| 7690 | ;; |
| 7691 | mips-*) |
| 7692 | seccomp_audit_arch=AUDIT_ARCH_MIPS |
| 7693 | ;; |
| 7694 | mipsel-*) |
| 7695 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL |
| 7696 | ;; |
| 7697 | mips64-*) |
| 7698 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 |
| 7699 | ;; |
| 7700 | mips64el-*) |
| 7701 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 |
| 7702 | ;; |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7703 | esac |
| 7704 | if test "x$seccomp_audit_arch" != "x" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 |
| 7706 | $as_echo "\"$seccomp_audit_arch\"" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7707 | |
| 7708 | cat >>confdefs.h <<_ACEOF |
| 7709 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch |
| 7710 | _ACEOF |
| 7711 | |
| 7712 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 |
| 7714 | $as_echo "architecture not supported" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7715 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7716 | ;; |
| 7717 | mips-sony-bsd|mips-sony-newsos4) |
| 7718 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7719 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7720 | |
| 7721 | SONY=1 |
| 7722 | ;; |
| 7723 | *-*-netbsd*) |
| 7724 | check_for_libcrypt_before=1 |
| 7725 | if test "x$withval" != "xno" ; then |
| 7726 | need_dash_r=1 |
| 7727 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7728 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7729 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7730 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7731 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7732 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" |
| 7733 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7734 | |
| 7735 | else |
| 7736 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7737 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7738 | |
| 7739 | fi |
| 7740 | |
| 7741 | |
| 7742 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7743 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7744 | |
| 7745 | TEST_MALLOC_OPTIONS="AJRX" |
| 7746 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7747 | $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7748 | |
| 7749 | ;; |
| 7750 | *-*-freebsd*) |
| 7751 | check_for_libcrypt_later=1 |
| 7752 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7753 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7754 | |
| 7755 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7756 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7757 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7758 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" |
| 7759 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7760 | |
| 7761 | else |
| 7762 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7763 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7764 | |
| 7765 | fi |
| 7766 | |
| 7767 | |
| 7768 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7769 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7770 | |
| 7771 | TEST_MALLOC_OPTIONS="AJRX" |
| 7772 | # Preauth crypto occasionally uses file descriptors for crypto offload |
| 7773 | # and will crash if they cannot be opened. |
| 7774 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7775 | $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7776 | |
| 7777 | ;; |
| 7778 | *-*-bsdi*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7779 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7780 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7781 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7782 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7783 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7784 | |
| 7785 | ;; |
| 7786 | *-next-*) |
| 7787 | conf_lastlog_location="/usr/adm/lastlog" |
| 7788 | conf_utmp_location=/etc/utmp |
| 7789 | conf_wtmp_location=/usr/adm/wtmp |
| 7790 | maildir=/usr/spool/mail |
| 7791 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7792 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7793 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7794 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7795 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7796 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7797 | |
| 7798 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7799 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7800 | |
| 7801 | ;; |
| 7802 | *-*-openbsd*) |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7803 | use_pie=auto |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7804 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7805 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7806 | |
| 7807 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7808 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7809 | |
| 7810 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7811 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7812 | |
| 7813 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7814 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7815 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 7816 | TEST_MALLOC_OPTIONS="AFGJPRX" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7817 | ;; |
| 7818 | *-*-solaris*) |
| 7819 | if test "x$withval" != "xno" ; then |
| 7820 | need_dash_r=1 |
| 7821 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7822 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7823 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7824 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
| 7825 | |
| 7826 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7827 | |
| 7828 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7829 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7830 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7831 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7832 | |
| 7833 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. |
| 7834 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7835 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7836 | |
| 7837 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7838 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7839 | |
| 7840 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7841 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7842 | |
| 7843 | external_path_file=/etc/default/login |
| 7844 | # hardwire lastlog location (can't detect it on some versions) |
| 7845 | conf_lastlog_location="/var/adm/lastlog" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 |
| 7847 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7848 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` |
| 7849 | if test "$sol2ver" -ge 8; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7851 | $as_echo "yes" >&6; } |
| 7852 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7853 | |
| 7854 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7855 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7856 | |
| 7857 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7859 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7860 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7861 | for ac_func in setpflags |
| 7862 | do : |
| 7863 | ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags" |
| 7864 | if test "x$ac_cv_func_setpflags" = xyes; then : |
| 7865 | cat >>confdefs.h <<_ACEOF |
| 7866 | #define HAVE_SETPFLAGS 1 |
| 7867 | _ACEOF |
| 7868 | |
| 7869 | fi |
| 7870 | done |
| 7871 | |
| 7872 | for ac_func in setppriv |
| 7873 | do : |
| 7874 | ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" |
| 7875 | if test "x$ac_cv_func_setppriv" = xyes; then : |
| 7876 | cat >>confdefs.h <<_ACEOF |
| 7877 | #define HAVE_SETPPRIV 1 |
| 7878 | _ACEOF |
| 7879 | |
| 7880 | fi |
| 7881 | done |
| 7882 | |
| 7883 | for ac_func in priv_basicset |
| 7884 | do : |
| 7885 | ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset" |
| 7886 | if test "x$ac_cv_func_priv_basicset" = xyes; then : |
| 7887 | cat >>confdefs.h <<_ACEOF |
| 7888 | #define HAVE_PRIV_BASICSET 1 |
| 7889 | _ACEOF |
| 7890 | |
| 7891 | fi |
| 7892 | done |
| 7893 | |
| 7894 | for ac_header in priv.h |
| 7895 | do : |
| 7896 | ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" |
| 7897 | if test "x$ac_cv_header_priv_h" = xyes; then : |
| 7898 | cat >>confdefs.h <<_ACEOF |
| 7899 | #define HAVE_PRIV_H 1 |
| 7900 | _ACEOF |
| 7901 | |
| 7902 | fi |
| 7903 | |
| 7904 | done |
| 7905 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7906 | |
| 7907 | # Check whether --with-solaris-contracts was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7908 | if test "${with_solaris_contracts+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7909 | withval=$with_solaris_contracts; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 |
| 7911 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } |
| 7912 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : |
| 7913 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7914 | else |
| 7915 | ac_check_lib_save_LIBS=$LIBS |
| 7916 | LIBS="-lcontract $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7918 | /* end confdefs.h. */ |
| 7919 | |
| 7920 | /* Override any GCC internal prototype to avoid an error. |
| 7921 | Use char because int might match the return type of a GCC |
| 7922 | builtin and then its argument prototype would still apply. */ |
| 7923 | #ifdef __cplusplus |
| 7924 | extern "C" |
| 7925 | #endif |
| 7926 | char ct_tmpl_activate (); |
| 7927 | int |
| 7928 | main () |
| 7929 | { |
| 7930 | return ct_tmpl_activate (); |
| 7931 | ; |
| 7932 | return 0; |
| 7933 | } |
| 7934 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7935 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7936 | ac_cv_lib_contract_ct_tmpl_activate=yes |
| 7937 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7938 | ac_cv_lib_contract_ct_tmpl_activate=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7939 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7940 | rm -f core conftest.err conftest.$ac_objext \ |
| 7941 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7942 | LIBS=$ac_check_lib_save_LIBS |
| 7943 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 |
| 7945 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } |
| 7946 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7947 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7948 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7949 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7950 | LIBS="$LIBS -lcontract" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7951 | SPC_MSG="yes" |
| 7952 | fi |
| 7953 | |
| 7954 | |
| 7955 | fi |
| 7956 | |
| 7957 | |
| 7958 | # Check whether --with-solaris-projects was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7959 | if test "${with_solaris_projects+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7960 | withval=$with_solaris_projects; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 |
| 7962 | $as_echo_n "checking for setproject in -lproject... " >&6; } |
| 7963 | if ${ac_cv_lib_project_setproject+:} false; then : |
| 7964 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7965 | else |
| 7966 | ac_check_lib_save_LIBS=$LIBS |
| 7967 | LIBS="-lproject $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7969 | /* end confdefs.h. */ |
| 7970 | |
| 7971 | /* Override any GCC internal prototype to avoid an error. |
| 7972 | Use char because int might match the return type of a GCC |
| 7973 | builtin and then its argument prototype would still apply. */ |
| 7974 | #ifdef __cplusplus |
| 7975 | extern "C" |
| 7976 | #endif |
| 7977 | char setproject (); |
| 7978 | int |
| 7979 | main () |
| 7980 | { |
| 7981 | return setproject (); |
| 7982 | ; |
| 7983 | return 0; |
| 7984 | } |
| 7985 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7986 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7987 | ac_cv_lib_project_setproject=yes |
| 7988 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7989 | ac_cv_lib_project_setproject=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7990 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7991 | rm -f core conftest.err conftest.$ac_objext \ |
| 7992 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7993 | LIBS=$ac_check_lib_save_LIBS |
| 7994 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 |
| 7996 | $as_echo "$ac_cv_lib_project_setproject" >&6; } |
| 7997 | if test "x$ac_cv_lib_project_setproject" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 7998 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 7999 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8000 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8001 | LIBS="$LIBS -lproject" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8002 | SP_MSG="yes" |
| 8003 | fi |
| 8004 | |
| 8005 | |
| 8006 | fi |
| 8007 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8008 | |
| 8009 | # Check whether --with-solaris-privs was given. |
| 8010 | if test "${with_solaris_privs+set}" = set; then : |
| 8011 | withval=$with_solaris_privs; |
| 8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5 |
| 8013 | $as_echo_n "checking for Solaris/Illumos privilege support... " >&6; } |
| 8014 | if test "x$ac_cv_func_setppriv" = "xyes" -a \ |
| 8015 | "x$ac_cv_header_priv_h" = "xyes" ; then |
| 8016 | SOLARIS_PRIVS=yes |
| 8017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 8018 | $as_echo "found" >&6; } |
| 8019 | |
| 8020 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h |
| 8021 | |
| 8022 | |
| 8023 | $as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h |
| 8024 | |
| 8025 | SPP_MSG="yes" |
| 8026 | else |
| 8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 8028 | $as_echo "not found" >&6; } |
| 8029 | as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5 |
| 8030 | fi |
| 8031 | |
| 8032 | fi |
| 8033 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8034 | TEST_SHELL=$SHELL # let configure find us a capable shell |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8035 | ;; |
| 8036 | *-*-sunos4*) |
| 8037 | CPPFLAGS="$CPPFLAGS -DSUNOS4" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8038 | for ac_func in getpwanam |
| 8039 | do : |
| 8040 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" |
| 8041 | if test "x$ac_cv_func_getpwanam" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8042 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8043 | #define HAVE_GETPWANAM 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8044 | _ACEOF |
| 8045 | |
| 8046 | fi |
| 8047 | done |
| 8048 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8049 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8050 | |
| 8051 | conf_utmp_location=/etc/utmp |
| 8052 | conf_wtmp_location=/var/adm/wtmp |
| 8053 | conf_lastlog_location=/var/adm/lastlog |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8054 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8055 | |
| 8056 | ;; |
| 8057 | *-ncr-sysv*) |
| 8058 | LIBS="$LIBS -lc89" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8059 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8060 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8061 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8062 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8063 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8064 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8065 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8066 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8067 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8068 | |
| 8069 | ;; |
| 8070 | *-sni-sysv*) |
| 8071 | # /usr/ucblib MUST NOT be searched on ReliantUNIX |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
| 8073 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
| 8074 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
| 8075 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8076 | else |
| 8077 | ac_check_lib_save_LIBS=$LIBS |
| 8078 | LIBS="-ldl $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8080 | /* end confdefs.h. */ |
| 8081 | |
| 8082 | /* Override any GCC internal prototype to avoid an error. |
| 8083 | Use char because int might match the return type of a GCC |
| 8084 | builtin and then its argument prototype would still apply. */ |
| 8085 | #ifdef __cplusplus |
| 8086 | extern "C" |
| 8087 | #endif |
| 8088 | char dlsym (); |
| 8089 | int |
| 8090 | main () |
| 8091 | { |
| 8092 | return dlsym (); |
| 8093 | ; |
| 8094 | return 0; |
| 8095 | } |
| 8096 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8097 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8098 | ac_cv_lib_dl_dlsym=yes |
| 8099 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8100 | ac_cv_lib_dl_dlsym=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8101 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8102 | rm -f core conftest.err conftest.$ac_objext \ |
| 8103 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8104 | LIBS=$ac_check_lib_save_LIBS |
| 8105 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
| 8107 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
| 8108 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8109 | cat >>confdefs.h <<_ACEOF |
| 8110 | #define HAVE_LIBDL 1 |
| 8111 | _ACEOF |
| 8112 | |
| 8113 | LIBS="-ldl $LIBS" |
| 8114 | |
| 8115 | fi |
| 8116 | |
| 8117 | # -lresolv needs to be at the end of LIBS or DNS lookups break |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 |
| 8119 | $as_echo_n "checking for res_query in -lresolv... " >&6; } |
| 8120 | if ${ac_cv_lib_resolv_res_query+:} false; then : |
| 8121 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8122 | else |
| 8123 | ac_check_lib_save_LIBS=$LIBS |
| 8124 | LIBS="-lresolv $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8126 | /* end confdefs.h. */ |
| 8127 | |
| 8128 | /* Override any GCC internal prototype to avoid an error. |
| 8129 | Use char because int might match the return type of a GCC |
| 8130 | builtin and then its argument prototype would still apply. */ |
| 8131 | #ifdef __cplusplus |
| 8132 | extern "C" |
| 8133 | #endif |
| 8134 | char res_query (); |
| 8135 | int |
| 8136 | main () |
| 8137 | { |
| 8138 | return res_query (); |
| 8139 | ; |
| 8140 | return 0; |
| 8141 | } |
| 8142 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8143 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8144 | ac_cv_lib_resolv_res_query=yes |
| 8145 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8146 | ac_cv_lib_resolv_res_query=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8147 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8148 | rm -f core conftest.err conftest.$ac_objext \ |
| 8149 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8150 | LIBS=$ac_check_lib_save_LIBS |
| 8151 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 |
| 8153 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } |
| 8154 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8155 | LIBS="$LIBS -lresolv" |
| 8156 | fi |
| 8157 | |
| 8158 | IPADDR_IN_DISPLAY=yes |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8159 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8160 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8161 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8162 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8163 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8164 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8165 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8166 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8167 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8168 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8169 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8170 | |
| 8171 | external_path_file=/etc/default/login |
| 8172 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX |
| 8173 | # Attention: always take care to bind libsocket and libnsl before libc, |
| 8174 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog |
| 8175 | ;; |
| 8176 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. |
| 8177 | *-*-sysv4.2*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8178 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8179 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8180 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8181 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8182 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8183 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8184 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8185 | |
| 8186 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8187 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8188 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8189 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8190 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8191 | TEST_SHELL=$SHELL # let configure find us a capable shell |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8192 | ;; |
| 8193 | # UnixWare 7.x, OpenUNIX 8 |
| 8194 | *-*-sysv5*) |
| 8195 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" |
| 8196 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8197 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8198 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8199 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8200 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8201 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8202 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8203 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8204 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8205 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8206 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8207 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8208 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8209 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8210 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8211 | TEST_SHELL=$SHELL # let configure find us a capable shell |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8212 | case "$host" in |
| 8213 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x |
| 8214 | maildir=/var/spool/mail |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8215 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8216 | $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8217 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8218 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8219 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 |
| 8221 | $as_echo_n "checking for getluid in -lprot... " >&6; } |
| 8222 | if ${ac_cv_lib_prot_getluid+:} false; then : |
| 8223 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8224 | else |
| 8225 | ac_check_lib_save_LIBS=$LIBS |
| 8226 | LIBS="-lprot $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8228 | /* end confdefs.h. */ |
| 8229 | |
| 8230 | /* Override any GCC internal prototype to avoid an error. |
| 8231 | Use char because int might match the return type of a GCC |
| 8232 | builtin and then its argument prototype would still apply. */ |
| 8233 | #ifdef __cplusplus |
| 8234 | extern "C" |
| 8235 | #endif |
| 8236 | char getluid (); |
| 8237 | int |
| 8238 | main () |
| 8239 | { |
| 8240 | return getluid (); |
| 8241 | ; |
| 8242 | return 0; |
| 8243 | } |
| 8244 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8245 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8246 | ac_cv_lib_prot_getluid=yes |
| 8247 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8248 | ac_cv_lib_prot_getluid=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8249 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8250 | rm -f core conftest.err conftest.$ac_objext \ |
| 8251 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8252 | LIBS=$ac_check_lib_save_LIBS |
| 8253 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 |
| 8255 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } |
| 8256 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8257 | LIBS="$LIBS -lprot" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8258 | for ac_func in getluid setluid |
| 8259 | do : |
| 8260 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8261 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8262 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8263 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8264 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8265 | _ACEOF |
| 8266 | |
| 8267 | fi |
| 8268 | done |
| 8269 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8270 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8271 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8272 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8273 | |
| 8274 | |
| 8275 | fi |
| 8276 | |
| 8277 | ;; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8278 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8279 | |
| 8280 | check_for_libcrypt_later=1 |
| 8281 | ;; |
| 8282 | esac |
| 8283 | ;; |
| 8284 | *-*-sysv*) |
| 8285 | ;; |
| 8286 | # SCO UNIX and OEM versions of SCO UNIX |
| 8287 | *-*-sco3.2v4*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8288 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8289 | ;; |
| 8290 | # SCO OpenServer 5.x |
| 8291 | *-*-sco3.2v5*) |
| 8292 | if test -z "$GCC"; then |
| 8293 | CFLAGS="$CFLAGS -belf" |
| 8294 | fi |
| 8295 | LIBS="$LIBS -lprot -lx -ltinfo -lm" |
| 8296 | no_dev_ptmx=1 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8297 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8298 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8299 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8300 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8301 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8302 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8303 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8304 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8305 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8306 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8307 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8308 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8309 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8310 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8311 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8312 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8313 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8314 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8315 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8316 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8317 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8318 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8319 | for ac_func in getluid setluid |
| 8320 | do : |
| 8321 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8322 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8323 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8324 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8325 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8326 | _ACEOF |
| 8327 | |
| 8328 | fi |
| 8329 | done |
| 8330 | |
| 8331 | MANTYPE=man |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8332 | TEST_SHELL=$SHELL # let configure find us a capable shell |
| 8333 | SKIP_DISABLE_LASTLOG_DEFINE=yes |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8334 | ;; |
| 8335 | *-*-unicosmk*) |
| 8336 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8337 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8338 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8339 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8340 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8341 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8342 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8343 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8344 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8345 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8346 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8347 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8348 | |
| 8349 | LDFLAGS="$LDFLAGS" |
| 8350 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" |
| 8351 | MANTYPE=cat |
| 8352 | ;; |
| 8353 | *-*-unicosmp*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8354 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8355 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8356 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8357 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8358 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8359 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8360 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8361 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8362 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8363 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8364 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8365 | |
| 8366 | LDFLAGS="$LDFLAGS" |
| 8367 | LIBS="$LIBS -lgen -lacid -ldb" |
| 8368 | MANTYPE=cat |
| 8369 | ;; |
| 8370 | *-*-unicos*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8371 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8372 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8373 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8374 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8375 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8376 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8377 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8378 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8379 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8380 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8381 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8382 | |
| 8383 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" |
| 8384 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" |
| 8385 | MANTYPE=cat |
| 8386 | ;; |
| 8387 | *-dec-osf*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 |
| 8389 | $as_echo_n "checking for Digital Unix SIA... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8390 | no_osfsia="" |
| 8391 | |
| 8392 | # Check whether --with-osfsia was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8393 | if test "${with_osfsia+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8394 | withval=$with_osfsia; |
| 8395 | if test "x$withval" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 8397 | $as_echo "disabled" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8398 | no_osfsia=1 |
| 8399 | fi |
| 8400 | |
| 8401 | fi |
| 8402 | |
| 8403 | if test -z "$no_osfsia" ; then |
| 8404 | if test -f /etc/sia/matrix.conf; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8406 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8407 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8408 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8409 | |
| 8410 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8411 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8412 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8413 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8414 | |
| 8415 | LIBS="$LIBS -lsecurity -ldb -lm -laud" |
| 8416 | SIA_MSG="yes" |
| 8417 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8419 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8420 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8421 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8422 | |
| 8423 | fi |
| 8424 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8425 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8426 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8427 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8428 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8429 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8430 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8431 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8432 | |
| 8433 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8434 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8435 | |
| 8436 | ;; |
| 8437 | |
| 8438 | *-*-nto-qnx*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8439 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8440 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8441 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8442 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8443 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8444 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8445 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8446 | |
| 8447 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8448 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8449 | |
| 8450 | enable_etc_default_login=no # has incompatible /etc/default/login |
| 8451 | case "$host" in |
| 8452 | *-*-nto-qnx6*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8453 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8454 | |
| 8455 | ;; |
| 8456 | esac |
| 8457 | ;; |
| 8458 | |
| 8459 | *-*-ultrix*) |
| 8460 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8461 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h |
| 8462 | |
| 8463 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8464 | |
| 8465 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8466 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8467 | |
| 8468 | ;; |
| 8469 | |
| 8470 | *-*-lynxos) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8471 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8472 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8473 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8474 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8475 | ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8476 | esac |
| 8477 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 |
| 8479 | $as_echo_n "checking compiler and flags for sanity... " >&6; } |
| 8480 | if test "$cross_compiling" = yes; then : |
| 8481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 |
| 8482 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8483 | |
| 8484 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8486 | /* end confdefs.h. */ |
| 8487 | #include <stdio.h> |
| 8488 | int |
| 8489 | main () |
| 8490 | { |
| 8491 | exit(0); |
| 8492 | ; |
| 8493 | return 0; |
| 8494 | } |
| 8495 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8496 | if ac_fn_c_try_run "$LINENO"; then : |
| 8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8498 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8499 | else |
| 8500 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8502 | $as_echo "no" >&6; } |
| 8503 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8504 | |
| 8505 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8506 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8507 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8508 | fi |
| 8509 | |
| 8510 | |
| 8511 | # Checks for libraries. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8512 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" |
| 8513 | if test "x$ac_cv_func_setsockopt" = xyes; then : |
| 8514 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8515 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 |
| 8517 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } |
| 8518 | if ${ac_cv_lib_socket_setsockopt+:} false; then : |
| 8519 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8520 | else |
| 8521 | ac_check_lib_save_LIBS=$LIBS |
| 8522 | LIBS="-lsocket $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8524 | /* end confdefs.h. */ |
| 8525 | |
| 8526 | /* Override any GCC internal prototype to avoid an error. |
| 8527 | Use char because int might match the return type of a GCC |
| 8528 | builtin and then its argument prototype would still apply. */ |
| 8529 | #ifdef __cplusplus |
| 8530 | extern "C" |
| 8531 | #endif |
| 8532 | char setsockopt (); |
| 8533 | int |
| 8534 | main () |
| 8535 | { |
| 8536 | return setsockopt (); |
| 8537 | ; |
| 8538 | return 0; |
| 8539 | } |
| 8540 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8541 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8542 | ac_cv_lib_socket_setsockopt=yes |
| 8543 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8544 | ac_cv_lib_socket_setsockopt=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8545 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8546 | rm -f core conftest.err conftest.$ac_objext \ |
| 8547 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8548 | LIBS=$ac_check_lib_save_LIBS |
| 8549 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 |
| 8551 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } |
| 8552 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8553 | cat >>confdefs.h <<_ACEOF |
| 8554 | #define HAVE_LIBSOCKET 1 |
| 8555 | _ACEOF |
| 8556 | |
| 8557 | LIBS="-lsocket $LIBS" |
| 8558 | |
| 8559 | fi |
| 8560 | |
| 8561 | fi |
| 8562 | |
| 8563 | |
| 8564 | for ac_func in dirname |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8565 | do : |
| 8566 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" |
| 8567 | if test "x$ac_cv_func_dirname" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8568 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8569 | #define HAVE_DIRNAME 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8570 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8571 | for ac_header in libgen.h |
| 8572 | do : |
| 8573 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 8574 | if test "x$ac_cv_header_libgen_h" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8575 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8576 | #define HAVE_LIBGEN_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8577 | _ACEOF |
| 8578 | |
| 8579 | fi |
| 8580 | |
| 8581 | done |
| 8582 | |
| 8583 | else |
| 8584 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 |
| 8586 | $as_echo_n "checking for dirname in -lgen... " >&6; } |
| 8587 | if ${ac_cv_lib_gen_dirname+:} false; then : |
| 8588 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8589 | else |
| 8590 | ac_check_lib_save_LIBS=$LIBS |
| 8591 | LIBS="-lgen $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8593 | /* end confdefs.h. */ |
| 8594 | |
| 8595 | /* Override any GCC internal prototype to avoid an error. |
| 8596 | Use char because int might match the return type of a GCC |
| 8597 | builtin and then its argument prototype would still apply. */ |
| 8598 | #ifdef __cplusplus |
| 8599 | extern "C" |
| 8600 | #endif |
| 8601 | char dirname (); |
| 8602 | int |
| 8603 | main () |
| 8604 | { |
| 8605 | return dirname (); |
| 8606 | ; |
| 8607 | return 0; |
| 8608 | } |
| 8609 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8610 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8611 | ac_cv_lib_gen_dirname=yes |
| 8612 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8613 | ac_cv_lib_gen_dirname=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8614 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8615 | rm -f core conftest.err conftest.$ac_objext \ |
| 8616 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8617 | LIBS=$ac_check_lib_save_LIBS |
| 8618 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 |
| 8620 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } |
| 8621 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8622 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 |
| 8624 | $as_echo_n "checking for broken dirname... " >&6; } |
| 8625 | if ${ac_cv_have_broken_dirname+:} false; then : |
| 8626 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8627 | else |
| 8628 | |
| 8629 | save_LIBS="$LIBS" |
| 8630 | LIBS="$LIBS -lgen" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8631 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8632 | ac_cv_have_broken_dirname="no" |
| 8633 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8635 | /* end confdefs.h. */ |
| 8636 | |
| 8637 | #include <libgen.h> |
| 8638 | #include <string.h> |
| 8639 | |
| 8640 | int main(int argc, char **argv) { |
| 8641 | char *s, buf[32]; |
| 8642 | |
| 8643 | strncpy(buf,"/etc", 32); |
| 8644 | s = dirname(buf); |
| 8645 | if (!s || strncmp(s, "/", 32) != 0) { |
| 8646 | exit(1); |
| 8647 | } else { |
| 8648 | exit(0); |
| 8649 | } |
| 8650 | } |
| 8651 | |
| 8652 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8653 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8654 | ac_cv_have_broken_dirname="no" |
| 8655 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8656 | ac_cv_have_broken_dirname="yes" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8657 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8658 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8659 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8660 | fi |
| 8661 | |
| 8662 | LIBS="$save_LIBS" |
| 8663 | |
| 8664 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 |
| 8666 | $as_echo "$ac_cv_have_broken_dirname" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8667 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then |
| 8668 | LIBS="$LIBS -lgen" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8669 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8670 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8671 | for ac_header in libgen.h |
| 8672 | do : |
| 8673 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 8674 | if test "x$ac_cv_header_libgen_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8675 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8676 | #define HAVE_LIBGEN_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8677 | _ACEOF |
| 8678 | |
| 8679 | fi |
| 8680 | |
| 8681 | done |
| 8682 | |
| 8683 | fi |
| 8684 | |
| 8685 | fi |
| 8686 | |
| 8687 | |
| 8688 | fi |
| 8689 | done |
| 8690 | |
| 8691 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8692 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" |
| 8693 | if test "x$ac_cv_func_getspnam" = xyes; then : |
| 8694 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8695 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 |
| 8697 | $as_echo_n "checking for getspnam in -lgen... " >&6; } |
| 8698 | if ${ac_cv_lib_gen_getspnam+:} false; then : |
| 8699 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8700 | else |
| 8701 | ac_check_lib_save_LIBS=$LIBS |
| 8702 | LIBS="-lgen $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8704 | /* end confdefs.h. */ |
| 8705 | |
| 8706 | /* Override any GCC internal prototype to avoid an error. |
| 8707 | Use char because int might match the return type of a GCC |
| 8708 | builtin and then its argument prototype would still apply. */ |
| 8709 | #ifdef __cplusplus |
| 8710 | extern "C" |
| 8711 | #endif |
| 8712 | char getspnam (); |
| 8713 | int |
| 8714 | main () |
| 8715 | { |
| 8716 | return getspnam (); |
| 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8721 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8722 | ac_cv_lib_gen_getspnam=yes |
| 8723 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8724 | ac_cv_lib_gen_getspnam=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8725 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8726 | rm -f core conftest.err conftest.$ac_objext \ |
| 8727 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8728 | LIBS=$ac_check_lib_save_LIBS |
| 8729 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 |
| 8731 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } |
| 8732 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8733 | LIBS="$LIBS -lgen" |
| 8734 | fi |
| 8735 | |
| 8736 | fi |
| 8737 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 |
| 8739 | $as_echo_n "checking for library containing basename... " >&6; } |
| 8740 | if ${ac_cv_search_basename+:} false; then : |
| 8741 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8742 | else |
| 8743 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8745 | /* end confdefs.h. */ |
| 8746 | |
| 8747 | /* Override any GCC internal prototype to avoid an error. |
| 8748 | Use char because int might match the return type of a GCC |
| 8749 | builtin and then its argument prototype would still apply. */ |
| 8750 | #ifdef __cplusplus |
| 8751 | extern "C" |
| 8752 | #endif |
| 8753 | char basename (); |
| 8754 | int |
| 8755 | main () |
| 8756 | { |
| 8757 | return basename (); |
| 8758 | ; |
| 8759 | return 0; |
| 8760 | } |
| 8761 | _ACEOF |
| 8762 | for ac_lib in '' gen; do |
| 8763 | if test -z "$ac_lib"; then |
| 8764 | ac_res="none required" |
| 8765 | else |
| 8766 | ac_res=-l$ac_lib |
| 8767 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8768 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8769 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8770 | ac_cv_search_basename=$ac_res |
| 8771 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8772 | rm -f core conftest.err conftest.$ac_objext \ |
| 8773 | conftest$ac_exeext |
| 8774 | if ${ac_cv_search_basename+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8775 | break |
| 8776 | fi |
| 8777 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8778 | if ${ac_cv_search_basename+:} false; then : |
| 8779 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8780 | else |
| 8781 | ac_cv_search_basename=no |
| 8782 | fi |
| 8783 | rm conftest.$ac_ext |
| 8784 | LIBS=$ac_func_search_save_LIBS |
| 8785 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 |
| 8787 | $as_echo "$ac_cv_search_basename" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8788 | ac_res=$ac_cv_search_basename |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8789 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8790 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8791 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8792 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8793 | |
| 8794 | fi |
| 8795 | |
| 8796 | |
| 8797 | |
| 8798 | # Check whether --with-zlib was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8799 | if test "${with_zlib+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8800 | withval=$with_zlib; if test "x$withval" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8801 | as_fn_error $? "*** zlib is required ***" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8802 | elif test "x$withval" != "xyes"; then |
| 8803 | if test -d "$withval/lib"; then |
| 8804 | if test -n "${need_dash_r}"; then |
| 8805 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 8806 | else |
| 8807 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 8808 | fi |
| 8809 | else |
| 8810 | if test -n "${need_dash_r}"; then |
| 8811 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" |
| 8812 | else |
| 8813 | LDFLAGS="-L${withval} ${LDFLAGS}" |
| 8814 | fi |
| 8815 | fi |
| 8816 | if test -d "$withval/include"; then |
| 8817 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
| 8818 | else |
| 8819 | CPPFLAGS="-I${withval} ${CPPFLAGS}" |
| 8820 | fi |
| 8821 | fi |
| 8822 | |
| 8823 | fi |
| 8824 | |
| 8825 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8826 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 8827 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 8828 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8829 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8830 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8831 | fi |
| 8832 | |
| 8833 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| 8835 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| 8836 | if ${ac_cv_lib_z_deflate+:} false; then : |
| 8837 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8838 | else |
| 8839 | ac_check_lib_save_LIBS=$LIBS |
| 8840 | LIBS="-lz $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8842 | /* end confdefs.h. */ |
| 8843 | |
| 8844 | /* Override any GCC internal prototype to avoid an error. |
| 8845 | Use char because int might match the return type of a GCC |
| 8846 | builtin and then its argument prototype would still apply. */ |
| 8847 | #ifdef __cplusplus |
| 8848 | extern "C" |
| 8849 | #endif |
| 8850 | char deflate (); |
| 8851 | int |
| 8852 | main () |
| 8853 | { |
| 8854 | return deflate (); |
| 8855 | ; |
| 8856 | return 0; |
| 8857 | } |
| 8858 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8859 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8860 | ac_cv_lib_z_deflate=yes |
| 8861 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8862 | ac_cv_lib_z_deflate=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8863 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8864 | rm -f core conftest.err conftest.$ac_objext \ |
| 8865 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8866 | LIBS=$ac_check_lib_save_LIBS |
| 8867 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| 8869 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| 8870 | if test "x$ac_cv_lib_z_deflate" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8871 | cat >>confdefs.h <<_ACEOF |
| 8872 | #define HAVE_LIBZ 1 |
| 8873 | _ACEOF |
| 8874 | |
| 8875 | LIBS="-lz $LIBS" |
| 8876 | |
| 8877 | else |
| 8878 | |
| 8879 | saved_CPPFLAGS="$CPPFLAGS" |
| 8880 | saved_LDFLAGS="$LDFLAGS" |
| 8881 | save_LIBS="$LIBS" |
| 8882 | if test -n "${need_dash_r}"; then |
| 8883 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" |
| 8884 | else |
| 8885 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" |
| 8886 | fi |
| 8887 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" |
| 8888 | LIBS="$LIBS -lz" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8890 | /* end confdefs.h. */ |
| 8891 | |
| 8892 | /* Override any GCC internal prototype to avoid an error. |
| 8893 | Use char because int might match the return type of a GCC |
| 8894 | builtin and then its argument prototype would still apply. */ |
| 8895 | #ifdef __cplusplus |
| 8896 | extern "C" |
| 8897 | #endif |
| 8898 | char deflate (); |
| 8899 | int |
| 8900 | main () |
| 8901 | { |
| 8902 | return deflate (); |
| 8903 | ; |
| 8904 | return 0; |
| 8905 | } |
| 8906 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8907 | if ac_fn_c_try_link "$LINENO"; then : |
| 8908 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8909 | |
| 8910 | else |
| 8911 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8912 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8913 | |
| 8914 | |
| 8915 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8916 | rm -f core conftest.err conftest.$ac_objext \ |
| 8917 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8918 | |
| 8919 | |
| 8920 | fi |
| 8921 | |
| 8922 | |
| 8923 | |
| 8924 | # Check whether --with-zlib-version-check was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8925 | if test "${with_zlib_version_check+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8926 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then |
| 8927 | zlib_check_nonfatal=1 |
| 8928 | fi |
| 8929 | |
| 8930 | |
| 8931 | fi |
| 8932 | |
| 8933 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 |
| 8935 | $as_echo_n "checking for possibly buggy zlib... " >&6; } |
| 8936 | if test "$cross_compiling" = yes; then : |
| 8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 |
| 8938 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8939 | |
| 8940 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8942 | /* end confdefs.h. */ |
| 8943 | |
| 8944 | #include <stdio.h> |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 8945 | #include <stdlib.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8946 | #include <zlib.h> |
| 8947 | |
| 8948 | int |
| 8949 | main () |
| 8950 | { |
| 8951 | |
| 8952 | int a=0, b=0, c=0, d=0, n, v; |
| 8953 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); |
| 8954 | if (n != 3 && n != 4) |
| 8955 | exit(1); |
| 8956 | v = a*1000000 + b*10000 + c*100 + d; |
| 8957 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); |
| 8958 | |
| 8959 | /* 1.1.4 is OK */ |
| 8960 | if (a == 1 && b == 1 && c >= 4) |
| 8961 | exit(0); |
| 8962 | |
| 8963 | /* 1.2.3 and up are OK */ |
| 8964 | if (v >= 1020300) |
| 8965 | exit(0); |
| 8966 | |
| 8967 | exit(2); |
| 8968 | |
| 8969 | ; |
| 8970 | return 0; |
| 8971 | } |
| 8972 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8973 | if ac_fn_c_try_run "$LINENO"; then : |
| 8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8975 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8976 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8978 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8979 | if test -z "$zlib_check_nonfatal" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8980 | as_fn_error $? "*** zlib too old - check config.log *** |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8981 | Your reported zlib version has known security problems. It's possible your |
| 8982 | vendor has fixed these problems without changing the version number. If you |
| 8983 | are sure this is the case, you can disable the check by running |
| 8984 | \"./configure --without-zlib-version-check\". |
| 8985 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8986 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8987 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 |
| 8989 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8990 | fi |
| 8991 | |
| 8992 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8993 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8994 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 8995 | fi |
| 8996 | |
| 8997 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 8998 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 8999 | if test "x$ac_cv_func_strcasecmp" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9000 | |
| 9001 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 |
| 9003 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } |
| 9004 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : |
| 9005 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9006 | else |
| 9007 | ac_check_lib_save_LIBS=$LIBS |
| 9008 | LIBS="-lresolv $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9010 | /* end confdefs.h. */ |
| 9011 | |
| 9012 | /* Override any GCC internal prototype to avoid an error. |
| 9013 | Use char because int might match the return type of a GCC |
| 9014 | builtin and then its argument prototype would still apply. */ |
| 9015 | #ifdef __cplusplus |
| 9016 | extern "C" |
| 9017 | #endif |
| 9018 | char strcasecmp (); |
| 9019 | int |
| 9020 | main () |
| 9021 | { |
| 9022 | return strcasecmp (); |
| 9023 | ; |
| 9024 | return 0; |
| 9025 | } |
| 9026 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9027 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9028 | ac_cv_lib_resolv_strcasecmp=yes |
| 9029 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9030 | ac_cv_lib_resolv_strcasecmp=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9031 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9032 | rm -f core conftest.err conftest.$ac_objext \ |
| 9033 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9034 | LIBS=$ac_check_lib_save_LIBS |
| 9035 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 |
| 9037 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } |
| 9038 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9039 | LIBS="$LIBS -lresolv" |
| 9040 | fi |
| 9041 | |
| 9042 | |
| 9043 | fi |
| 9044 | |
| 9045 | for ac_func in utimes |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9046 | do : |
| 9047 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
| 9048 | if test "x$ac_cv_func_utimes" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9049 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9050 | #define HAVE_UTIMES 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9051 | _ACEOF |
| 9052 | |
| 9053 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 |
| 9055 | $as_echo_n "checking for utimes in -lc89... " >&6; } |
| 9056 | if ${ac_cv_lib_c89_utimes+:} false; then : |
| 9057 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9058 | else |
| 9059 | ac_check_lib_save_LIBS=$LIBS |
| 9060 | LIBS="-lc89 $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9062 | /* end confdefs.h. */ |
| 9063 | |
| 9064 | /* Override any GCC internal prototype to avoid an error. |
| 9065 | Use char because int might match the return type of a GCC |
| 9066 | builtin and then its argument prototype would still apply. */ |
| 9067 | #ifdef __cplusplus |
| 9068 | extern "C" |
| 9069 | #endif |
| 9070 | char utimes (); |
| 9071 | int |
| 9072 | main () |
| 9073 | { |
| 9074 | return utimes (); |
| 9075 | ; |
| 9076 | return 0; |
| 9077 | } |
| 9078 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9079 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9080 | ac_cv_lib_c89_utimes=yes |
| 9081 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9082 | ac_cv_lib_c89_utimes=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9083 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9084 | rm -f core conftest.err conftest.$ac_objext \ |
| 9085 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9086 | LIBS=$ac_check_lib_save_LIBS |
| 9087 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 |
| 9089 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } |
| 9090 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : |
| 9091 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9092 | |
| 9093 | LIBS="$LIBS -lc89" |
| 9094 | fi |
| 9095 | |
| 9096 | |
| 9097 | fi |
| 9098 | done |
| 9099 | |
| 9100 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9101 | for ac_header in bsd/libutil.h libutil.h |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9102 | do : |
| 9103 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9104 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9105 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9106 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9107 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9108 | _ACEOF |
| 9109 | |
| 9110 | fi |
| 9111 | |
| 9112 | done |
| 9113 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 |
| 9115 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } |
| 9116 | if ${ac_cv_search_fmt_scaled+:} false; then : |
| 9117 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9118 | else |
| 9119 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9121 | /* end confdefs.h. */ |
| 9122 | |
| 9123 | /* Override any GCC internal prototype to avoid an error. |
| 9124 | Use char because int might match the return type of a GCC |
| 9125 | builtin and then its argument prototype would still apply. */ |
| 9126 | #ifdef __cplusplus |
| 9127 | extern "C" |
| 9128 | #endif |
| 9129 | char fmt_scaled (); |
| 9130 | int |
| 9131 | main () |
| 9132 | { |
| 9133 | return fmt_scaled (); |
| 9134 | ; |
| 9135 | return 0; |
| 9136 | } |
| 9137 | _ACEOF |
| 9138 | for ac_lib in '' util bsd; do |
| 9139 | if test -z "$ac_lib"; then |
| 9140 | ac_res="none required" |
| 9141 | else |
| 9142 | ac_res=-l$ac_lib |
| 9143 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9144 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9145 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9146 | ac_cv_search_fmt_scaled=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9147 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9148 | rm -f core conftest.err conftest.$ac_objext \ |
| 9149 | conftest$ac_exeext |
| 9150 | if ${ac_cv_search_fmt_scaled+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9151 | break |
| 9152 | fi |
| 9153 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9154 | if ${ac_cv_search_fmt_scaled+:} false; then : |
| 9155 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9156 | else |
| 9157 | ac_cv_search_fmt_scaled=no |
| 9158 | fi |
| 9159 | rm conftest.$ac_ext |
| 9160 | LIBS=$ac_func_search_save_LIBS |
| 9161 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 |
| 9163 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9164 | ac_res=$ac_cv_search_fmt_scaled |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9165 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9166 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9167 | |
| 9168 | fi |
| 9169 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 |
| 9171 | $as_echo_n "checking for library containing scan_scaled... " >&6; } |
| 9172 | if ${ac_cv_search_scan_scaled+:} false; then : |
| 9173 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9174 | else |
| 9175 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9177 | /* end confdefs.h. */ |
| 9178 | |
| 9179 | /* Override any GCC internal prototype to avoid an error. |
| 9180 | Use char because int might match the return type of a GCC |
| 9181 | builtin and then its argument prototype would still apply. */ |
| 9182 | #ifdef __cplusplus |
| 9183 | extern "C" |
| 9184 | #endif |
| 9185 | char scan_scaled (); |
| 9186 | int |
| 9187 | main () |
| 9188 | { |
| 9189 | return scan_scaled (); |
| 9190 | ; |
| 9191 | return 0; |
| 9192 | } |
| 9193 | _ACEOF |
| 9194 | for ac_lib in '' util bsd; do |
| 9195 | if test -z "$ac_lib"; then |
| 9196 | ac_res="none required" |
| 9197 | else |
| 9198 | ac_res=-l$ac_lib |
| 9199 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9200 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9201 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9202 | ac_cv_search_scan_scaled=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9203 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9204 | rm -f core conftest.err conftest.$ac_objext \ |
| 9205 | conftest$ac_exeext |
| 9206 | if ${ac_cv_search_scan_scaled+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9207 | break |
| 9208 | fi |
| 9209 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9210 | if ${ac_cv_search_scan_scaled+:} false; then : |
| 9211 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9212 | else |
| 9213 | ac_cv_search_scan_scaled=no |
| 9214 | fi |
| 9215 | rm conftest.$ac_ext |
| 9216 | LIBS=$ac_func_search_save_LIBS |
| 9217 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 |
| 9219 | $as_echo "$ac_cv_search_scan_scaled" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9220 | ac_res=$ac_cv_search_scan_scaled |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9221 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9222 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9223 | |
| 9224 | fi |
| 9225 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 |
| 9227 | $as_echo_n "checking for library containing login... " >&6; } |
| 9228 | if ${ac_cv_search_login+:} false; then : |
| 9229 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9230 | else |
| 9231 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9233 | /* end confdefs.h. */ |
| 9234 | |
| 9235 | /* Override any GCC internal prototype to avoid an error. |
| 9236 | Use char because int might match the return type of a GCC |
| 9237 | builtin and then its argument prototype would still apply. */ |
| 9238 | #ifdef __cplusplus |
| 9239 | extern "C" |
| 9240 | #endif |
| 9241 | char login (); |
| 9242 | int |
| 9243 | main () |
| 9244 | { |
| 9245 | return login (); |
| 9246 | ; |
| 9247 | return 0; |
| 9248 | } |
| 9249 | _ACEOF |
| 9250 | for ac_lib in '' util bsd; do |
| 9251 | if test -z "$ac_lib"; then |
| 9252 | ac_res="none required" |
| 9253 | else |
| 9254 | ac_res=-l$ac_lib |
| 9255 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9256 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9257 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9258 | ac_cv_search_login=$ac_res |
| 9259 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9260 | rm -f core conftest.err conftest.$ac_objext \ |
| 9261 | conftest$ac_exeext |
| 9262 | if ${ac_cv_search_login+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9263 | break |
| 9264 | fi |
| 9265 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9266 | if ${ac_cv_search_login+:} false; then : |
| 9267 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9268 | else |
| 9269 | ac_cv_search_login=no |
| 9270 | fi |
| 9271 | rm conftest.$ac_ext |
| 9272 | LIBS=$ac_func_search_save_LIBS |
| 9273 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 |
| 9275 | $as_echo "$ac_cv_search_login" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9276 | ac_res=$ac_cv_search_login |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9277 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9278 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9279 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9280 | fi |
| 9281 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 |
| 9283 | $as_echo_n "checking for library containing logout... " >&6; } |
| 9284 | if ${ac_cv_search_logout+:} false; then : |
| 9285 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9286 | else |
| 9287 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9289 | /* end confdefs.h. */ |
| 9290 | |
| 9291 | /* Override any GCC internal prototype to avoid an error. |
| 9292 | Use char because int might match the return type of a GCC |
| 9293 | builtin and then its argument prototype would still apply. */ |
| 9294 | #ifdef __cplusplus |
| 9295 | extern "C" |
| 9296 | #endif |
| 9297 | char logout (); |
| 9298 | int |
| 9299 | main () |
| 9300 | { |
| 9301 | return logout (); |
| 9302 | ; |
| 9303 | return 0; |
| 9304 | } |
| 9305 | _ACEOF |
| 9306 | for ac_lib in '' util bsd; do |
| 9307 | if test -z "$ac_lib"; then |
| 9308 | ac_res="none required" |
| 9309 | else |
| 9310 | ac_res=-l$ac_lib |
| 9311 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9312 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9313 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9314 | ac_cv_search_logout=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9315 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9316 | rm -f core conftest.err conftest.$ac_objext \ |
| 9317 | conftest$ac_exeext |
| 9318 | if ${ac_cv_search_logout+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9319 | break |
| 9320 | fi |
| 9321 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9322 | if ${ac_cv_search_logout+:} false; then : |
| 9323 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9324 | else |
| 9325 | ac_cv_search_logout=no |
| 9326 | fi |
| 9327 | rm conftest.$ac_ext |
| 9328 | LIBS=$ac_func_search_save_LIBS |
| 9329 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 |
| 9331 | $as_echo "$ac_cv_search_logout" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9332 | ac_res=$ac_cv_search_logout |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9333 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9334 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9335 | |
| 9336 | fi |
| 9337 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 |
| 9339 | $as_echo_n "checking for library containing logwtmp... " >&6; } |
| 9340 | if ${ac_cv_search_logwtmp+:} false; then : |
| 9341 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9342 | else |
| 9343 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9345 | /* end confdefs.h. */ |
| 9346 | |
| 9347 | /* Override any GCC internal prototype to avoid an error. |
| 9348 | Use char because int might match the return type of a GCC |
| 9349 | builtin and then its argument prototype would still apply. */ |
| 9350 | #ifdef __cplusplus |
| 9351 | extern "C" |
| 9352 | #endif |
| 9353 | char logwtmp (); |
| 9354 | int |
| 9355 | main () |
| 9356 | { |
| 9357 | return logwtmp (); |
| 9358 | ; |
| 9359 | return 0; |
| 9360 | } |
| 9361 | _ACEOF |
| 9362 | for ac_lib in '' util bsd; do |
| 9363 | if test -z "$ac_lib"; then |
| 9364 | ac_res="none required" |
| 9365 | else |
| 9366 | ac_res=-l$ac_lib |
| 9367 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9368 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9369 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9370 | ac_cv_search_logwtmp=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9371 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9372 | rm -f core conftest.err conftest.$ac_objext \ |
| 9373 | conftest$ac_exeext |
| 9374 | if ${ac_cv_search_logwtmp+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9375 | break |
| 9376 | fi |
| 9377 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9378 | if ${ac_cv_search_logwtmp+:} false; then : |
| 9379 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9380 | else |
| 9381 | ac_cv_search_logwtmp=no |
| 9382 | fi |
| 9383 | rm conftest.$ac_ext |
| 9384 | LIBS=$ac_func_search_save_LIBS |
| 9385 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 |
| 9387 | $as_echo "$ac_cv_search_logwtmp" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9388 | ac_res=$ac_cv_search_logwtmp |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9389 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9390 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9391 | |
| 9392 | fi |
| 9393 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
| 9395 | $as_echo_n "checking for library containing openpty... " >&6; } |
| 9396 | if ${ac_cv_search_openpty+:} false; then : |
| 9397 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9398 | else |
| 9399 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9401 | /* end confdefs.h. */ |
| 9402 | |
| 9403 | /* Override any GCC internal prototype to avoid an error. |
| 9404 | Use char because int might match the return type of a GCC |
| 9405 | builtin and then its argument prototype would still apply. */ |
| 9406 | #ifdef __cplusplus |
| 9407 | extern "C" |
| 9408 | #endif |
| 9409 | char openpty (); |
| 9410 | int |
| 9411 | main () |
| 9412 | { |
| 9413 | return openpty (); |
| 9414 | ; |
| 9415 | return 0; |
| 9416 | } |
| 9417 | _ACEOF |
| 9418 | for ac_lib in '' util bsd; do |
| 9419 | if test -z "$ac_lib"; then |
| 9420 | ac_res="none required" |
| 9421 | else |
| 9422 | ac_res=-l$ac_lib |
| 9423 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9424 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9425 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9426 | ac_cv_search_openpty=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9427 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9428 | rm -f core conftest.err conftest.$ac_objext \ |
| 9429 | conftest$ac_exeext |
| 9430 | if ${ac_cv_search_openpty+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9431 | break |
| 9432 | fi |
| 9433 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9434 | if ${ac_cv_search_openpty+:} false; then : |
| 9435 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9436 | else |
| 9437 | ac_cv_search_openpty=no |
| 9438 | fi |
| 9439 | rm conftest.$ac_ext |
| 9440 | LIBS=$ac_func_search_save_LIBS |
| 9441 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
| 9443 | $as_echo "$ac_cv_search_openpty" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9444 | ac_res=$ac_cv_search_openpty |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9445 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9446 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9447 | |
| 9448 | fi |
| 9449 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 |
| 9451 | $as_echo_n "checking for library containing updwtmp... " >&6; } |
| 9452 | if ${ac_cv_search_updwtmp+:} false; then : |
| 9453 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9454 | else |
| 9455 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9457 | /* end confdefs.h. */ |
| 9458 | |
| 9459 | /* Override any GCC internal prototype to avoid an error. |
| 9460 | Use char because int might match the return type of a GCC |
| 9461 | builtin and then its argument prototype would still apply. */ |
| 9462 | #ifdef __cplusplus |
| 9463 | extern "C" |
| 9464 | #endif |
| 9465 | char updwtmp (); |
| 9466 | int |
| 9467 | main () |
| 9468 | { |
| 9469 | return updwtmp (); |
| 9470 | ; |
| 9471 | return 0; |
| 9472 | } |
| 9473 | _ACEOF |
| 9474 | for ac_lib in '' util bsd; do |
| 9475 | if test -z "$ac_lib"; then |
| 9476 | ac_res="none required" |
| 9477 | else |
| 9478 | ac_res=-l$ac_lib |
| 9479 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9480 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9481 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9482 | ac_cv_search_updwtmp=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9483 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9484 | rm -f core conftest.err conftest.$ac_objext \ |
| 9485 | conftest$ac_exeext |
| 9486 | if ${ac_cv_search_updwtmp+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9487 | break |
| 9488 | fi |
| 9489 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9490 | if ${ac_cv_search_updwtmp+:} false; then : |
| 9491 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9492 | else |
| 9493 | ac_cv_search_updwtmp=no |
| 9494 | fi |
| 9495 | rm conftest.$ac_ext |
| 9496 | LIBS=$ac_func_search_save_LIBS |
| 9497 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 |
| 9499 | $as_echo "$ac_cv_search_updwtmp" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9500 | ac_res=$ac_cv_search_updwtmp |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9501 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9502 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9503 | |
| 9504 | fi |
| 9505 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9506 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9507 | do : |
| 9508 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9509 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9510 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9511 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9512 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9513 | _ACEOF |
| 9514 | |
| 9515 | fi |
| 9516 | done |
| 9517 | |
| 9518 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9519 | # On some platforms, inet_ntop and gethostbyname may be found in libresolv |
| 9520 | # or libnsl. |
| 9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 |
| 9522 | $as_echo_n "checking for library containing inet_ntop... " >&6; } |
| 9523 | if ${ac_cv_search_inet_ntop+:} false; then : |
| 9524 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9525 | else |
| 9526 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9528 | /* end confdefs.h. */ |
| 9529 | |
| 9530 | /* Override any GCC internal prototype to avoid an error. |
| 9531 | Use char because int might match the return type of a GCC |
| 9532 | builtin and then its argument prototype would still apply. */ |
| 9533 | #ifdef __cplusplus |
| 9534 | extern "C" |
| 9535 | #endif |
| 9536 | char inet_ntop (); |
| 9537 | int |
| 9538 | main () |
| 9539 | { |
| 9540 | return inet_ntop (); |
| 9541 | ; |
| 9542 | return 0; |
| 9543 | } |
| 9544 | _ACEOF |
| 9545 | for ac_lib in '' resolv nsl; do |
| 9546 | if test -z "$ac_lib"; then |
| 9547 | ac_res="none required" |
| 9548 | else |
| 9549 | ac_res=-l$ac_lib |
| 9550 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9551 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9552 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9553 | ac_cv_search_inet_ntop=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9554 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9555 | rm -f core conftest.err conftest.$ac_objext \ |
| 9556 | conftest$ac_exeext |
| 9557 | if ${ac_cv_search_inet_ntop+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9558 | break |
| 9559 | fi |
| 9560 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9561 | if ${ac_cv_search_inet_ntop+:} false; then : |
| 9562 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9563 | else |
| 9564 | ac_cv_search_inet_ntop=no |
| 9565 | fi |
| 9566 | rm conftest.$ac_ext |
| 9567 | LIBS=$ac_func_search_save_LIBS |
| 9568 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 |
| 9570 | $as_echo "$ac_cv_search_inet_ntop" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9571 | ac_res=$ac_cv_search_inet_ntop |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9572 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9573 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9574 | |
| 9575 | fi |
| 9576 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
| 9578 | $as_echo_n "checking for library containing gethostbyname... " >&6; } |
| 9579 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 9580 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9581 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9582 | ac_func_search_save_LIBS=$LIBS |
| 9583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9584 | /* end confdefs.h. */ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9585 | |
| 9586 | /* Override any GCC internal prototype to avoid an error. |
| 9587 | Use char because int might match the return type of a GCC |
| 9588 | builtin and then its argument prototype would still apply. */ |
| 9589 | #ifdef __cplusplus |
| 9590 | extern "C" |
| 9591 | #endif |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9592 | char gethostbyname (); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9593 | int |
| 9594 | main () |
| 9595 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9596 | return gethostbyname (); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9597 | ; |
| 9598 | return 0; |
| 9599 | } |
| 9600 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9601 | for ac_lib in '' resolv nsl; do |
| 9602 | if test -z "$ac_lib"; then |
| 9603 | ac_res="none required" |
| 9604 | else |
| 9605 | ac_res=-l$ac_lib |
| 9606 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9607 | fi |
| 9608 | if ac_fn_c_try_link "$LINENO"; then : |
| 9609 | ac_cv_search_gethostbyname=$ac_res |
| 9610 | fi |
| 9611 | rm -f core conftest.err conftest.$ac_objext \ |
| 9612 | conftest$ac_exeext |
| 9613 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 9614 | break |
| 9615 | fi |
| 9616 | done |
| 9617 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 9618 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9619 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9620 | ac_cv_search_gethostbyname=no |
| 9621 | fi |
| 9622 | rm conftest.$ac_ext |
| 9623 | LIBS=$ac_func_search_save_LIBS |
| 9624 | fi |
| 9625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
| 9626 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
| 9627 | ac_res=$ac_cv_search_gethostbyname |
| 9628 | if test "$ac_res" != no; then : |
| 9629 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9630 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9631 | fi |
| 9632 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9633 | |
| 9634 | for ac_func in strftime |
| 9635 | do : |
| 9636 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
| 9637 | if test "x$ac_cv_func_strftime" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9638 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9639 | #define HAVE_STRFTIME 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9640 | _ACEOF |
| 9641 | |
| 9642 | else |
| 9643 | # strftime is in -lintl on SCO UNIX. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 |
| 9645 | $as_echo_n "checking for strftime in -lintl... " >&6; } |
| 9646 | if ${ac_cv_lib_intl_strftime+:} false; then : |
| 9647 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9648 | else |
| 9649 | ac_check_lib_save_LIBS=$LIBS |
| 9650 | LIBS="-lintl $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9652 | /* end confdefs.h. */ |
| 9653 | |
| 9654 | /* Override any GCC internal prototype to avoid an error. |
| 9655 | Use char because int might match the return type of a GCC |
| 9656 | builtin and then its argument prototype would still apply. */ |
| 9657 | #ifdef __cplusplus |
| 9658 | extern "C" |
| 9659 | #endif |
| 9660 | char strftime (); |
| 9661 | int |
| 9662 | main () |
| 9663 | { |
| 9664 | return strftime (); |
| 9665 | ; |
| 9666 | return 0; |
| 9667 | } |
| 9668 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9669 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9670 | ac_cv_lib_intl_strftime=yes |
| 9671 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9672 | ac_cv_lib_intl_strftime=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9673 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9674 | rm -f core conftest.err conftest.$ac_objext \ |
| 9675 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9676 | LIBS=$ac_check_lib_save_LIBS |
| 9677 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 |
| 9679 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } |
| 9680 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : |
| 9681 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9682 | |
| 9683 | LIBS="-lintl $LIBS" |
| 9684 | fi |
| 9685 | |
| 9686 | fi |
| 9687 | done |
| 9688 | |
| 9689 | |
| 9690 | # Check for ALTDIRFUNC glob() extension |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 |
| 9692 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } |
| 9693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9694 | /* end confdefs.h. */ |
| 9695 | |
| 9696 | #include <glob.h> |
| 9697 | #ifdef GLOB_ALTDIRFUNC |
| 9698 | FOUNDIT |
| 9699 | #endif |
| 9700 | |
| 9701 | _ACEOF |
| 9702 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9703 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9704 | |
| 9705 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9706 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9707 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9709 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9710 | |
| 9711 | else |
| 9712 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9714 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9715 | |
| 9716 | |
| 9717 | fi |
| 9718 | rm -f conftest* |
| 9719 | |
| 9720 | |
| 9721 | # Check for g.gl_matchc glob() extension |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 |
| 9723 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } |
| 9724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9725 | /* end confdefs.h. */ |
| 9726 | #include <glob.h> |
| 9727 | int |
| 9728 | main () |
| 9729 | { |
| 9730 | glob_t g; g.gl_matchc = 1; |
| 9731 | ; |
| 9732 | return 0; |
| 9733 | } |
| 9734 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9735 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9736 | |
| 9737 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9738 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9739 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9741 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9742 | |
| 9743 | else |
| 9744 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9746 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9747 | |
| 9748 | fi |
| 9749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9750 | |
| 9751 | # Check for g.gl_statv glob() extension |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 |
| 9753 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } |
| 9754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9755 | /* end confdefs.h. */ |
| 9756 | #include <glob.h> |
| 9757 | int |
| 9758 | main () |
| 9759 | { |
| 9760 | |
| 9761 | #ifndef GLOB_KEEPSTAT |
| 9762 | #error "glob does not support GLOB_KEEPSTAT extension" |
| 9763 | #endif |
| 9764 | glob_t g; |
| 9765 | g.gl_statv = NULL; |
| 9766 | |
| 9767 | ; |
| 9768 | return 0; |
| 9769 | } |
| 9770 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9771 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9772 | |
| 9773 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9774 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9775 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9777 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9778 | |
| 9779 | else |
| 9780 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9782 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9783 | |
| 9784 | |
| 9785 | fi |
| 9786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9787 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9788 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> |
| 9789 | " |
| 9790 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : |
| 9791 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9792 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9793 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9794 | fi |
| 9795 | |
| 9796 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9797 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9798 | _ACEOF |
| 9799 | |
| 9800 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9801 | ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h> |
| 9802 | " |
| 9803 | if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then : |
| 9804 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9805 | else |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9806 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9807 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9808 | |
| 9809 | fi |
| 9810 | |
| 9811 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 |
| 9813 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } |
| 9814 | if test "$cross_compiling" = yes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9815 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 |
| 9817 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} |
| 9818 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9819 | |
| 9820 | |
| 9821 | |
| 9822 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9824 | /* end confdefs.h. */ |
| 9825 | |
| 9826 | #include <sys/types.h> |
| 9827 | #include <dirent.h> |
| 9828 | int |
| 9829 | main () |
| 9830 | { |
| 9831 | |
| 9832 | struct dirent d; |
| 9833 | exit(sizeof(d.d_name)<=sizeof(char)); |
| 9834 | |
| 9835 | ; |
| 9836 | return 0; |
| 9837 | } |
| 9838 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9839 | if ac_fn_c_try_run "$LINENO"; then : |
| 9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9841 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9842 | else |
| 9843 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9845 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9846 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9847 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9848 | |
| 9849 | |
| 9850 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9851 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9852 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9853 | fi |
| 9854 | |
| 9855 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 |
| 9857 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9858 | if test -d "/proc/$$/fd" ; then |
| 9859 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9860 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9861 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9863 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9864 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9866 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9867 | fi |
| 9868 | |
| 9869 | # Check whether user wants S/Key support |
| 9870 | SKEY_MSG="no" |
| 9871 | |
| 9872 | # Check whether --with-skey was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9873 | if test "${with_skey+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9874 | withval=$with_skey; |
| 9875 | if test "x$withval" != "xno" ; then |
| 9876 | |
| 9877 | if test "x$withval" != "xyes" ; then |
| 9878 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 9879 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
| 9880 | fi |
| 9881 | |
| 9882 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9883 | $as_echo "#define SKEY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9884 | |
| 9885 | LIBS="-lskey $LIBS" |
| 9886 | SKEY_MSG="yes" |
| 9887 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 |
| 9889 | $as_echo_n "checking for s/key support... " >&6; } |
| 9890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9891 | /* end confdefs.h. */ |
| 9892 | |
| 9893 | #include <stdio.h> |
| 9894 | #include <skey.h> |
| 9895 | |
| 9896 | int |
| 9897 | main () |
| 9898 | { |
| 9899 | |
| 9900 | char *ff = skey_keyinfo(""); ff=""; |
| 9901 | exit(0); |
| 9902 | |
| 9903 | ; |
| 9904 | return 0; |
| 9905 | } |
| 9906 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9907 | if ac_fn_c_try_link "$LINENO"; then : |
| 9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9909 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9910 | else |
| 9911 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9913 | $as_echo "no" >&6; } |
| 9914 | as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9915 | |
| 9916 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9917 | rm -f core conftest.err conftest.$ac_objext \ |
| 9918 | conftest$ac_exeext conftest.$ac_ext |
| 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 |
| 9920 | $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } |
| 9921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9922 | /* end confdefs.h. */ |
| 9923 | |
| 9924 | #include <stdio.h> |
| 9925 | #include <skey.h> |
| 9926 | |
| 9927 | int |
| 9928 | main () |
| 9929 | { |
| 9930 | |
| 9931 | (void)skeychallenge(NULL,"name","",0); |
| 9932 | |
| 9933 | ; |
| 9934 | return 0; |
| 9935 | } |
| 9936 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9937 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9938 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9940 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9941 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9942 | $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9943 | |
| 9944 | else |
| 9945 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9947 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9948 | |
| 9949 | fi |
| 9950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9951 | fi |
| 9952 | |
| 9953 | |
| 9954 | fi |
| 9955 | |
| 9956 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9957 | # Check whether user wants to use ldns |
| 9958 | LDNS_MSG="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 9959 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9960 | # Check whether --with-ldns was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9961 | if test "${with_ldns+set}" = set; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9962 | withval=$with_ldns; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9963 | ldns="" |
| 9964 | if test "x$withval" = "xyes" ; then |
| 9965 | if test -n "$ac_tool_prefix"; then |
| 9966 | # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args. |
| 9967 | set dummy ${ac_tool_prefix}ldns-config; ac_word=$2 |
| 9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9969 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9970 | if ${ac_cv_path_LDNSCONFIG+:} false; then : |
| 9971 | $as_echo_n "(cached) " >&6 |
| 9972 | else |
| 9973 | case $LDNSCONFIG in |
| 9974 | [\\/]* | ?:[\\/]*) |
| 9975 | ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path. |
| 9976 | ;; |
| 9977 | *) |
| 9978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9979 | for as_dir in $PATH |
| 9980 | do |
| 9981 | IFS=$as_save_IFS |
| 9982 | test -z "$as_dir" && as_dir=. |
| 9983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9985 | ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9987 | break 2 |
| 9988 | fi |
| 9989 | done |
| 9990 | done |
| 9991 | IFS=$as_save_IFS |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 9992 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 9993 | ;; |
| 9994 | esac |
| 9995 | fi |
| 9996 | LDNSCONFIG=$ac_cv_path_LDNSCONFIG |
| 9997 | if test -n "$LDNSCONFIG"; then |
| 9998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5 |
| 9999 | $as_echo "$LDNSCONFIG" >&6; } |
| 10000 | else |
| 10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10002 | $as_echo "no" >&6; } |
| 10003 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10004 | |
| 10005 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10006 | fi |
| 10007 | if test -z "$ac_cv_path_LDNSCONFIG"; then |
| 10008 | ac_pt_LDNSCONFIG=$LDNSCONFIG |
| 10009 | # Extract the first word of "ldns-config", so it can be a program name with args. |
| 10010 | set dummy ldns-config; ac_word=$2 |
| 10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10012 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10013 | if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then : |
| 10014 | $as_echo_n "(cached) " >&6 |
| 10015 | else |
| 10016 | case $ac_pt_LDNSCONFIG in |
| 10017 | [\\/]* | ?:[\\/]*) |
| 10018 | ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path. |
| 10019 | ;; |
| 10020 | *) |
| 10021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10022 | for as_dir in $PATH |
| 10023 | do |
| 10024 | IFS=$as_save_IFS |
| 10025 | test -z "$as_dir" && as_dir=. |
| 10026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10028 | ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10030 | break 2 |
| 10031 | fi |
| 10032 | done |
| 10033 | done |
| 10034 | IFS=$as_save_IFS |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10035 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10036 | ;; |
| 10037 | esac |
| 10038 | fi |
| 10039 | ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG |
| 10040 | if test -n "$ac_pt_LDNSCONFIG"; then |
| 10041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5 |
| 10042 | $as_echo "$ac_pt_LDNSCONFIG" >&6; } |
| 10043 | else |
| 10044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10045 | $as_echo "no" >&6; } |
| 10046 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10047 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10048 | if test "x$ac_pt_LDNSCONFIG" = x; then |
| 10049 | LDNSCONFIG="no" |
| 10050 | else |
| 10051 | case $cross_compiling:$ac_tool_warned in |
| 10052 | yes:) |
| 10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10055 | ac_tool_warned=yes ;; |
| 10056 | esac |
| 10057 | LDNSCONFIG=$ac_pt_LDNSCONFIG |
| 10058 | fi |
| 10059 | else |
| 10060 | LDNSCONFIG="$ac_cv_path_LDNSCONFIG" |
| 10061 | fi |
| 10062 | |
| 10063 | if test "x$PKGCONFIG" = "xno"; then |
| 10064 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 10065 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
| 10066 | LIBS="-lldns $LIBS" |
| 10067 | ldns=yes |
| 10068 | else |
| 10069 | LIBS="$LIBS `$LDNSCONFIG --libs`" |
| 10070 | CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`" |
| 10071 | fi |
| 10072 | elif test "x$withval" != "xno" ; then |
| 10073 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 10074 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
| 10075 | LIBS="-lldns $LIBS" |
| 10076 | ldns=yes |
| 10077 | fi |
| 10078 | |
| 10079 | # Verify that it works. |
| 10080 | if test "x$ldns" = "xyes" ; then |
| 10081 | |
| 10082 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h |
| 10083 | |
| 10084 | LDNS_MSG="yes" |
| 10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 |
| 10086 | $as_echo_n "checking for ldns support... " >&6; } |
| 10087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10088 | /* end confdefs.h. */ |
| 10089 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10090 | #include <stdio.h> |
| 10091 | #include <stdlib.h> |
| 10092 | #include <stdint.h> |
| 10093 | #include <ldns/ldns.h> |
| 10094 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10095 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10096 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10097 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10098 | if ac_fn_c_try_link "$LINENO"; then : |
| 10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10100 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10101 | else |
| 10102 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10104 | $as_echo "no" >&6; } |
| 10105 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10106 | |
| 10107 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10108 | rm -f core conftest.err conftest.$ac_objext \ |
| 10109 | conftest$ac_exeext conftest.$ac_ext |
| 10110 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10111 | |
| 10112 | fi |
| 10113 | |
| 10114 | |
| 10115 | # Check whether user wants libedit support |
| 10116 | LIBEDIT_MSG="no" |
| 10117 | |
| 10118 | # Check whether --with-libedit was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10119 | if test "${with_libedit+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10120 | withval=$with_libedit; if test "x$withval" != "xno" ; then |
| 10121 | if test "x$withval" = "xyes" ; then |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10122 | if test -n "$ac_tool_prefix"; then |
| 10123 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 10124 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10126 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10127 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 10128 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10129 | else |
| 10130 | case $PKGCONFIG in |
| 10131 | [\\/]* | ?:[\\/]*) |
| 10132 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 10133 | ;; |
| 10134 | *) |
| 10135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10136 | for as_dir in $PATH |
| 10137 | do |
| 10138 | IFS=$as_save_IFS |
| 10139 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10140 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10142 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10144 | break 2 |
| 10145 | fi |
| 10146 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10147 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10148 | IFS=$as_save_IFS |
| 10149 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10150 | ;; |
| 10151 | esac |
| 10152 | fi |
| 10153 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 10154 | if test -n "$PKGCONFIG"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 10156 | $as_echo "$PKGCONFIG" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10157 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10159 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10160 | fi |
| 10161 | |
| 10162 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10163 | fi |
| 10164 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 10165 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 10166 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 10167 | set dummy pkg-config; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10169 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10170 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 10171 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10172 | else |
| 10173 | case $ac_pt_PKGCONFIG in |
| 10174 | [\\/]* | ?:[\\/]*) |
| 10175 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 10176 | ;; |
| 10177 | *) |
| 10178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10179 | for as_dir in $PATH |
| 10180 | do |
| 10181 | IFS=$as_save_IFS |
| 10182 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10183 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10185 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10187 | break 2 |
| 10188 | fi |
| 10189 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10190 | done |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10191 | IFS=$as_save_IFS |
| 10192 | |
| 10193 | ;; |
| 10194 | esac |
| 10195 | fi |
| 10196 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 10197 | if test -n "$ac_pt_PKGCONFIG"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 10199 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10200 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10202 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10203 | fi |
| 10204 | |
| 10205 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 10206 | PKGCONFIG="no" |
| 10207 | else |
| 10208 | case $cross_compiling:$ac_tool_warned in |
| 10209 | yes:) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10210 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10211 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10212 | ac_tool_warned=yes ;; |
| 10213 | esac |
| 10214 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 10215 | fi |
| 10216 | else |
| 10217 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 10218 | fi |
| 10219 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10220 | if test "x$PKGCONFIG" != "xno"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 |
| 10222 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } |
| 10223 | if "$PKGCONFIG" libedit; then |
| 10224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10225 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10226 | use_pkgconfig_for_libedit=yes |
| 10227 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10229 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10230 | fi |
| 10231 | fi |
| 10232 | else |
| 10233 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 10234 | if test -n "${need_dash_r}"; then |
| 10235 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 10236 | else |
| 10237 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 10238 | fi |
| 10239 | fi |
| 10240 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10241 | LIBEDIT=`$PKGCONFIG --libs libedit` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10242 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" |
| 10243 | else |
| 10244 | LIBEDIT="-ledit -lcurses" |
| 10245 | fi |
| 10246 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 |
| 10248 | $as_echo_n "checking for el_init in -ledit... " >&6; } |
| 10249 | if ${ac_cv_lib_edit_el_init+:} false; then : |
| 10250 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10251 | else |
| 10252 | ac_check_lib_save_LIBS=$LIBS |
| 10253 | LIBS="-ledit $OTHERLIBS |
| 10254 | $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10256 | /* end confdefs.h. */ |
| 10257 | |
| 10258 | /* Override any GCC internal prototype to avoid an error. |
| 10259 | Use char because int might match the return type of a GCC |
| 10260 | builtin and then its argument prototype would still apply. */ |
| 10261 | #ifdef __cplusplus |
| 10262 | extern "C" |
| 10263 | #endif |
| 10264 | char el_init (); |
| 10265 | int |
| 10266 | main () |
| 10267 | { |
| 10268 | return el_init (); |
| 10269 | ; |
| 10270 | return 0; |
| 10271 | } |
| 10272 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10273 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10274 | ac_cv_lib_edit_el_init=yes |
| 10275 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10276 | ac_cv_lib_edit_el_init=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10277 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10278 | rm -f core conftest.err conftest.$ac_objext \ |
| 10279 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10280 | LIBS=$ac_check_lib_save_LIBS |
| 10281 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 |
| 10283 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } |
| 10284 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10285 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10286 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10287 | |
| 10288 | LIBEDIT_MSG="yes" |
| 10289 | |
| 10290 | |
| 10291 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10292 | as_fn_error $? "libedit not found" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10293 | fi |
| 10294 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 |
| 10296 | $as_echo_n "checking if libedit version is compatible... " >&6; } |
| 10297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10298 | /* end confdefs.h. */ |
| 10299 | #include <histedit.h> |
| 10300 | int |
| 10301 | main () |
| 10302 | { |
| 10303 | |
| 10304 | int i = H_SETSIZE; |
| 10305 | el_init("", NULL, NULL, NULL); |
| 10306 | exit(0); |
| 10307 | |
| 10308 | ; |
| 10309 | return 0; |
| 10310 | } |
| 10311 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10312 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10314 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10315 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10317 | $as_echo "no" >&6; } |
| 10318 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10319 | |
| 10320 | fi |
| 10321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10322 | fi |
| 10323 | |
| 10324 | fi |
| 10325 | |
| 10326 | |
| 10327 | AUDIT_MODULE=none |
| 10328 | |
| 10329 | # Check whether --with-audit was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10330 | if test "${with_audit+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10331 | withval=$with_audit; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 |
| 10333 | $as_echo_n "checking for supported audit module... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10334 | case "$withval" in |
| 10335 | bsm) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 |
| 10337 | $as_echo "bsm" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10338 | AUDIT_MODULE=bsm |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10339 | for ac_header in bsm/audit.h |
| 10340 | do : |
| 10341 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10342 | #ifdef HAVE_TIME_H |
| 10343 | # include <time.h> |
| 10344 | #endif |
| 10345 | |
| 10346 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10347 | " |
| 10348 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10349 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10350 | #define HAVE_BSM_AUDIT_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10351 | _ACEOF |
| 10352 | |
| 10353 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10354 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10355 | fi |
| 10356 | |
| 10357 | done |
| 10358 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 |
| 10360 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } |
| 10361 | if ${ac_cv_lib_bsm_getaudit+:} false; then : |
| 10362 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10363 | else |
| 10364 | ac_check_lib_save_LIBS=$LIBS |
| 10365 | LIBS="-lbsm $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10367 | /* end confdefs.h. */ |
| 10368 | |
| 10369 | /* Override any GCC internal prototype to avoid an error. |
| 10370 | Use char because int might match the return type of a GCC |
| 10371 | builtin and then its argument prototype would still apply. */ |
| 10372 | #ifdef __cplusplus |
| 10373 | extern "C" |
| 10374 | #endif |
| 10375 | char getaudit (); |
| 10376 | int |
| 10377 | main () |
| 10378 | { |
| 10379 | return getaudit (); |
| 10380 | ; |
| 10381 | return 0; |
| 10382 | } |
| 10383 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10384 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10385 | ac_cv_lib_bsm_getaudit=yes |
| 10386 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10387 | ac_cv_lib_bsm_getaudit=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10388 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10389 | rm -f core conftest.err conftest.$ac_objext \ |
| 10390 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10391 | LIBS=$ac_check_lib_save_LIBS |
| 10392 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 |
| 10394 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } |
| 10395 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10396 | cat >>confdefs.h <<_ACEOF |
| 10397 | #define HAVE_LIBBSM 1 |
| 10398 | _ACEOF |
| 10399 | |
| 10400 | LIBS="-lbsm $LIBS" |
| 10401 | |
| 10402 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10403 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10404 | fi |
| 10405 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10406 | for ac_func in getaudit |
| 10407 | do : |
| 10408 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" |
| 10409 | if test "x$ac_cv_func_getaudit" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10410 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10411 | #define HAVE_GETAUDIT 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10412 | _ACEOF |
| 10413 | |
| 10414 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10415 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10416 | fi |
| 10417 | done |
| 10418 | |
| 10419 | # These are optional |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10420 | for ac_func in getaudit_addr aug_get_machine |
| 10421 | do : |
| 10422 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10423 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10424 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10425 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10426 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10427 | _ACEOF |
| 10428 | |
| 10429 | fi |
| 10430 | done |
| 10431 | |
| 10432 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10433 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10434 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10435 | if test "$sol2ver" -ge 11; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10436 | SSHDLIBS="$SSHDLIBS -lscf" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10437 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10438 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10439 | |
| 10440 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10441 | ;; |
| 10442 | linux) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 |
| 10444 | $as_echo "linux" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10445 | AUDIT_MODULE=linux |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10446 | for ac_header in libaudit.h |
| 10447 | do : |
| 10448 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" |
| 10449 | if test "x$ac_cv_header_libaudit_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10450 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10451 | #define HAVE_LIBAUDIT_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10452 | _ACEOF |
| 10453 | |
| 10454 | fi |
| 10455 | |
| 10456 | done |
| 10457 | |
| 10458 | SSHDLIBS="$SSHDLIBS -laudit" |
| 10459 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10460 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10461 | |
| 10462 | ;; |
| 10463 | debug) |
| 10464 | AUDIT_MODULE=debug |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 |
| 10466 | $as_echo "debug" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10467 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10468 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10469 | |
| 10470 | ;; |
| 10471 | no) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10473 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10474 | ;; |
| 10475 | *) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10476 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10477 | ;; |
| 10478 | esac |
| 10479 | |
| 10480 | fi |
| 10481 | |
| 10482 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10483 | |
| 10484 | # Check whether --with-pie was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10485 | if test "${with_pie+set}" = set; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10486 | withval=$with_pie; |
| 10487 | if test "x$withval" = "xno"; then |
| 10488 | use_pie=no |
| 10489 | fi |
| 10490 | if test "x$withval" = "xyes"; then |
| 10491 | use_pie=yes |
| 10492 | fi |
| 10493 | |
| 10494 | |
| 10495 | fi |
| 10496 | |
| 10497 | if test "x$use_pie" = "x"; then |
| 10498 | use_pie=no |
| 10499 | fi |
| 10500 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then |
| 10501 | # Turn off automatic PIE when toolchain hardening is off. |
| 10502 | use_pie=no |
| 10503 | fi |
| 10504 | if test "x$use_pie" = "xauto"; then |
| 10505 | # Automatic PIE requires gcc >= 4.x |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 |
| 10507 | $as_echo_n "checking for gcc >= 4.x... " >&6; } |
| 10508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10509 | /* end confdefs.h. */ |
| 10510 | |
| 10511 | #if !defined(__GNUC__) || __GNUC__ < 4 |
| 10512 | #error gcc is too old |
| 10513 | #endif |
| 10514 | |
| 10515 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10516 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10518 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10519 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10521 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10522 | use_pie=no |
| 10523 | |
| 10524 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10526 | fi |
| 10527 | if test "x$use_pie" != "xno"; then |
| 10528 | SAVED_CFLAGS="$CFLAGS" |
| 10529 | SAVED_LDFLAGS="$LDFLAGS" |
| 10530 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 |
| 10532 | $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10533 | saved_CFLAGS="$CFLAGS" |
| 10534 | CFLAGS="$CFLAGS $WERROR -fPIE" |
| 10535 | _define_flag="" |
| 10536 | test "x$_define_flag" = "x" && _define_flag="-fPIE" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10538 | /* end confdefs.h. */ |
| 10539 | |
| 10540 | #include <stdlib.h> |
| 10541 | #include <stdio.h> |
| 10542 | int main(int argc, char **argv) { |
| 10543 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 10544 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 10545 | float l = i * 2.1; |
| 10546 | double m = l / 0.5; |
| 10547 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 10548 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 10549 | exit(0); |
| 10550 | } |
| 10551 | |
| 10552 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10553 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10554 | |
| 10555 | if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 10556 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10558 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10559 | CFLAGS="$saved_CFLAGS" |
| 10560 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10562 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10563 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 10564 | fi |
| 10565 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10567 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10568 | CFLAGS="$saved_CFLAGS" |
| 10569 | |
| 10570 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10572 | } |
| 10573 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 |
| 10575 | $as_echo_n "checking if $LD supports link flag -pie... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10576 | saved_LDFLAGS="$LDFLAGS" |
| 10577 | LDFLAGS="$LDFLAGS $WERROR -pie" |
| 10578 | _define_flag="" |
| 10579 | test "x$_define_flag" = "x" && _define_flag="-pie" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10581 | /* end confdefs.h. */ |
| 10582 | |
| 10583 | #include <stdlib.h> |
| 10584 | #include <stdio.h> |
| 10585 | int main(int argc, char **argv) { |
| 10586 | /* Some math to catch -ftrapv problems in the toolchain */ |
| 10587 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 10588 | float l = i * 2.1; |
| 10589 | double m = l / 0.5; |
| 10590 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10591 | long long p = n * o; |
| 10592 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10593 | exit(0); |
| 10594 | } |
| 10595 | |
| 10596 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10597 | if ac_fn_c_try_link "$LINENO"; then : |
| 10598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10599 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10600 | LDFLAGS="$saved_LDFLAGS $_define_flag" |
| 10601 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10603 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10604 | LDFLAGS="$saved_LDFLAGS" |
| 10605 | |
| 10606 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10607 | rm -f core conftest.err conftest.$ac_objext \ |
| 10608 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10609 | } |
| 10610 | # We use both -fPIE and -pie or neither. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 |
| 10612 | $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10613 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ |
| 10614 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10616 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10617 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10619 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10620 | CFLAGS="$SAVED_CFLAGS" |
| 10621 | LDFLAGS="$SAVED_LDFLAGS" |
| 10622 | fi |
| 10623 | fi |
| 10624 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10625 | for ac_func in \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10626 | Blowfish_initstate \ |
| 10627 | Blowfish_expandstate \ |
| 10628 | Blowfish_expand0state \ |
| 10629 | Blowfish_stream2word \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10630 | asprintf \ |
| 10631 | b64_ntop \ |
| 10632 | __b64_ntop \ |
| 10633 | b64_pton \ |
| 10634 | __b64_pton \ |
| 10635 | bcopy \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10636 | bcrypt_pbkdf \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10637 | bindresvport_sa \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10638 | blf_enc \ |
| 10639 | cap_rights_limit \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10640 | clock \ |
| 10641 | closefrom \ |
| 10642 | dirfd \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10643 | endgrent \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10644 | err \ |
| 10645 | errx \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10646 | explicit_bzero \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10647 | fchmod \ |
| 10648 | fchown \ |
| 10649 | freeaddrinfo \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10650 | fstatfs \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10651 | fstatvfs \ |
| 10652 | futimes \ |
| 10653 | getaddrinfo \ |
| 10654 | getcwd \ |
| 10655 | getgrouplist \ |
| 10656 | getnameinfo \ |
| 10657 | getopt \ |
| 10658 | getpeereid \ |
| 10659 | getpeerucred \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10660 | getpgid \ |
| 10661 | getpgrp \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10662 | _getpty \ |
| 10663 | getrlimit \ |
| 10664 | getttyent \ |
| 10665 | glob \ |
| 10666 | group_from_gid \ |
| 10667 | inet_aton \ |
| 10668 | inet_ntoa \ |
| 10669 | inet_ntop \ |
| 10670 | innetgr \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10671 | llabs \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10672 | login_getcapbool \ |
| 10673 | md5_crypt \ |
| 10674 | memmove \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10675 | memset_s \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10676 | mkdtemp \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10677 | ngetaddrinfo \ |
| 10678 | nsleep \ |
| 10679 | ogetaddrinfo \ |
| 10680 | openlog_r \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10681 | pledge \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10682 | poll \ |
| 10683 | prctl \ |
| 10684 | pstat \ |
| 10685 | readpassphrase \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10686 | reallocarray \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10687 | recvmsg \ |
| 10688 | rresvport_af \ |
| 10689 | sendmsg \ |
| 10690 | setdtablesize \ |
| 10691 | setegid \ |
| 10692 | setenv \ |
| 10693 | seteuid \ |
| 10694 | setgroupent \ |
| 10695 | setgroups \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10696 | setlinebuf \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10697 | setlogin \ |
| 10698 | setpassent\ |
| 10699 | setpcred \ |
| 10700 | setproctitle \ |
| 10701 | setregid \ |
| 10702 | setreuid \ |
| 10703 | setrlimit \ |
| 10704 | setsid \ |
| 10705 | setvbuf \ |
| 10706 | sigaction \ |
| 10707 | sigvec \ |
| 10708 | snprintf \ |
| 10709 | socketpair \ |
| 10710 | statfs \ |
| 10711 | statvfs \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10712 | strcasestr \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10713 | strdup \ |
| 10714 | strerror \ |
| 10715 | strlcat \ |
| 10716 | strlcpy \ |
| 10717 | strmode \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10718 | strnlen \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10719 | strnvis \ |
| 10720 | strptime \ |
| 10721 | strtonum \ |
| 10722 | strtoll \ |
| 10723 | strtoul \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10724 | strtoull \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10725 | swap32 \ |
| 10726 | sysconf \ |
| 10727 | tcgetpgrp \ |
| 10728 | timingsafe_bcmp \ |
| 10729 | truncate \ |
| 10730 | unsetenv \ |
| 10731 | updwtmpx \ |
| 10732 | user_from_uid \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10733 | usleep \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10734 | vasprintf \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10735 | vsnprintf \ |
| 10736 | waitpid \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10737 | warn \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10738 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10739 | do : |
| 10740 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10741 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10742 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10743 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10744 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10745 | _ACEOF |
| 10746 | |
| 10747 | fi |
| 10748 | done |
| 10749 | |
| 10750 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10751 | for ac_func in mblen mbtowc nl_langinfo wcwidth |
| 10752 | do : |
| 10753 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10754 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10755 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10756 | cat >>confdefs.h <<_ACEOF |
| 10757 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10758 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10759 | |
| 10760 | fi |
| 10761 | done |
| 10762 | |
| 10763 | |
| 10764 | TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes} |
| 10765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5 |
| 10766 | $as_echo_n "checking for utf8 locale support... " >&6; } |
| 10767 | if test "$cross_compiling" = yes; then : |
| 10768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 10769 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
| 10770 | |
| 10771 | else |
| 10772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10773 | /* end confdefs.h. */ |
| 10774 | |
| 10775 | #include <locale.h> |
| 10776 | #include <stdlib.h> |
| 10777 | |
| 10778 | int |
| 10779 | main () |
| 10780 | { |
| 10781 | |
| 10782 | char *loc = setlocale(LC_CTYPE, "en_US.UTF-8"); |
| 10783 | if (loc != NULL) |
| 10784 | exit(0); |
| 10785 | exit(1); |
| 10786 | |
| 10787 | ; |
| 10788 | return 0; |
| 10789 | } |
| 10790 | _ACEOF |
| 10791 | if ac_fn_c_try_run "$LINENO"; then : |
| 10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10793 | $as_echo "yes" >&6; } |
| 10794 | else |
| 10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10796 | $as_echo "no" >&6; } |
| 10797 | TEST_SSH_UTF8=no |
| 10798 | fi |
| 10799 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10800 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10801 | fi |
| 10802 | |
| 10803 | |
| 10804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10805 | /* end confdefs.h. */ |
| 10806 | #include <ctype.h> |
| 10807 | int |
| 10808 | main () |
| 10809 | { |
| 10810 | return (isblank('a')); |
| 10811 | ; |
| 10812 | return 0; |
| 10813 | } |
| 10814 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10815 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10816 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10817 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10818 | |
| 10819 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10820 | fi |
| 10821 | rm -f core conftest.err conftest.$ac_objext \ |
| 10822 | conftest$ac_exeext conftest.$ac_ext |
| 10823 | |
| 10824 | disable_pkcs11= |
| 10825 | # Check whether --enable-pkcs11 was given. |
| 10826 | if test "${enable_pkcs11+set}" = set; then : |
| 10827 | enableval=$enable_pkcs11; |
| 10828 | if test "x$enableval" = "xno" ; then |
| 10829 | disable_pkcs11=1 |
| 10830 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10831 | |
| 10832 | |
| 10833 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10834 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10835 | |
| 10836 | # PKCS11 depends on OpenSSL. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10837 | if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10838 | # PKCS#11 support requires dlopen() and co |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 10840 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| 10841 | if ${ac_cv_search_dlopen+:} false; then : |
| 10842 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10843 | else |
| 10844 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10846 | /* end confdefs.h. */ |
| 10847 | |
| 10848 | /* Override any GCC internal prototype to avoid an error. |
| 10849 | Use char because int might match the return type of a GCC |
| 10850 | builtin and then its argument prototype would still apply. */ |
| 10851 | #ifdef __cplusplus |
| 10852 | extern "C" |
| 10853 | #endif |
| 10854 | char dlopen (); |
| 10855 | int |
| 10856 | main () |
| 10857 | { |
| 10858 | return dlopen (); |
| 10859 | ; |
| 10860 | return 0; |
| 10861 | } |
| 10862 | _ACEOF |
| 10863 | for ac_lib in '' dl; do |
| 10864 | if test -z "$ac_lib"; then |
| 10865 | ac_res="none required" |
| 10866 | else |
| 10867 | ac_res=-l$ac_lib |
| 10868 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10869 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10870 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10871 | ac_cv_search_dlopen=$ac_res |
| 10872 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10873 | rm -f core conftest.err conftest.$ac_objext \ |
| 10874 | conftest$ac_exeext |
| 10875 | if ${ac_cv_search_dlopen+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10876 | break |
| 10877 | fi |
| 10878 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10879 | if ${ac_cv_search_dlopen+:} false; then : |
| 10880 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10881 | else |
| 10882 | ac_cv_search_dlopen=no |
| 10883 | fi |
| 10884 | rm conftest.$ac_ext |
| 10885 | LIBS=$ac_func_search_save_LIBS |
| 10886 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 10888 | $as_echo "$ac_cv_search_dlopen" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10889 | ac_res=$ac_cv_search_dlopen |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10890 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10891 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10892 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10893 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10894 | |
| 10895 | |
| 10896 | fi |
| 10897 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 10898 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10899 | |
| 10900 | # IRIX has a const char return value for gai_strerror() |
| 10901 | for ac_func in gai_strerror |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10902 | do : |
| 10903 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" |
| 10904 | if test "x$ac_cv_func_gai_strerror" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10905 | cat >>confdefs.h <<_ACEOF |
| 10906 | #define HAVE_GAI_STRERROR 1 |
| 10907 | _ACEOF |
| 10908 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10909 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h |
| 10910 | |
| 10911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10912 | /* end confdefs.h. */ |
| 10913 | |
| 10914 | #include <sys/types.h> |
| 10915 | #include <sys/socket.h> |
| 10916 | #include <netdb.h> |
| 10917 | |
| 10918 | const char *gai_strerror(int); |
| 10919 | |
| 10920 | int |
| 10921 | main () |
| 10922 | { |
| 10923 | |
| 10924 | char *str; |
| 10925 | str = gai_strerror(0); |
| 10926 | |
| 10927 | ; |
| 10928 | return 0; |
| 10929 | } |
| 10930 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10931 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10932 | |
| 10933 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10934 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10935 | |
| 10936 | fi |
| 10937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10938 | fi |
| 10939 | done |
| 10940 | |
| 10941 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 |
| 10943 | $as_echo_n "checking for library containing nanosleep... " >&6; } |
| 10944 | if ${ac_cv_search_nanosleep+:} false; then : |
| 10945 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10946 | else |
| 10947 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10949 | /* end confdefs.h. */ |
| 10950 | |
| 10951 | /* Override any GCC internal prototype to avoid an error. |
| 10952 | Use char because int might match the return type of a GCC |
| 10953 | builtin and then its argument prototype would still apply. */ |
| 10954 | #ifdef __cplusplus |
| 10955 | extern "C" |
| 10956 | #endif |
| 10957 | char nanosleep (); |
| 10958 | int |
| 10959 | main () |
| 10960 | { |
| 10961 | return nanosleep (); |
| 10962 | ; |
| 10963 | return 0; |
| 10964 | } |
| 10965 | _ACEOF |
| 10966 | for ac_lib in '' rt posix4; do |
| 10967 | if test -z "$ac_lib"; then |
| 10968 | ac_res="none required" |
| 10969 | else |
| 10970 | ac_res=-l$ac_lib |
| 10971 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10972 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10973 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10974 | ac_cv_search_nanosleep=$ac_res |
| 10975 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10976 | rm -f core conftest.err conftest.$ac_objext \ |
| 10977 | conftest$ac_exeext |
| 10978 | if ${ac_cv_search_nanosleep+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10979 | break |
| 10980 | fi |
| 10981 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10982 | if ${ac_cv_search_nanosleep+:} false; then : |
| 10983 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10984 | else |
| 10985 | ac_cv_search_nanosleep=no |
| 10986 | fi |
| 10987 | rm conftest.$ac_ext |
| 10988 | LIBS=$ac_func_search_save_LIBS |
| 10989 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 |
| 10991 | $as_echo "$ac_cv_search_nanosleep" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10992 | ac_res=$ac_cv_search_nanosleep |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10993 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10994 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10995 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 10996 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 10997 | |
| 10998 | fi |
| 10999 | |
| 11000 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 11002 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| 11003 | if ${ac_cv_search_clock_gettime+:} false; then : |
| 11004 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11005 | else |
| 11006 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11008 | /* end confdefs.h. */ |
| 11009 | |
| 11010 | /* Override any GCC internal prototype to avoid an error. |
| 11011 | Use char because int might match the return type of a GCC |
| 11012 | builtin and then its argument prototype would still apply. */ |
| 11013 | #ifdef __cplusplus |
| 11014 | extern "C" |
| 11015 | #endif |
| 11016 | char clock_gettime (); |
| 11017 | int |
| 11018 | main () |
| 11019 | { |
| 11020 | return clock_gettime (); |
| 11021 | ; |
| 11022 | return 0; |
| 11023 | } |
| 11024 | _ACEOF |
| 11025 | for ac_lib in '' rt; do |
| 11026 | if test -z "$ac_lib"; then |
| 11027 | ac_res="none required" |
| 11028 | else |
| 11029 | ac_res=-l$ac_lib |
| 11030 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11031 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11032 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11033 | ac_cv_search_clock_gettime=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11034 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11035 | rm -f core conftest.err conftest.$ac_objext \ |
| 11036 | conftest$ac_exeext |
| 11037 | if ${ac_cv_search_clock_gettime+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11038 | break |
| 11039 | fi |
| 11040 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11041 | if ${ac_cv_search_clock_gettime+:} false; then : |
| 11042 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11043 | else |
| 11044 | ac_cv_search_clock_gettime=no |
| 11045 | fi |
| 11046 | rm conftest.$ac_ext |
| 11047 | LIBS=$ac_func_search_save_LIBS |
| 11048 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 11050 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11051 | ac_res=$ac_cv_search_clock_gettime |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11052 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11053 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11054 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11055 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11056 | |
| 11057 | fi |
| 11058 | |
| 11059 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11060 | ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" |
| 11061 | if test "x$ac_cv_have_decl_getrusage" = xyes; then : |
| 11062 | for ac_func in getrusage |
| 11063 | do : |
| 11064 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" |
| 11065 | if test "x$ac_cv_func_getrusage" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11066 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11067 | #define HAVE_GETRUSAGE 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11068 | _ACEOF |
| 11069 | |
| 11070 | fi |
| 11071 | done |
| 11072 | |
| 11073 | fi |
| 11074 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11075 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11076 | #ifdef HAVE_STRING_H |
| 11077 | # include <string.h> |
| 11078 | #endif |
| 11079 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11080 | " |
| 11081 | if test "x$ac_cv_have_decl_strsep" = xyes; then : |
| 11082 | for ac_func in strsep |
| 11083 | do : |
| 11084 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" |
| 11085 | if test "x$ac_cv_func_strsep" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11086 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11087 | #define HAVE_STRSEP 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11088 | _ACEOF |
| 11089 | |
| 11090 | fi |
| 11091 | done |
| 11092 | |
| 11093 | fi |
| 11094 | |
| 11095 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11096 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> |
| 11097 | |
| 11098 | " |
| 11099 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : |
| 11100 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h |
| 11101 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11102 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11103 | for ac_func in tcsendbreak |
| 11104 | do : |
| 11105 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" |
| 11106 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : |
| 11107 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11108 | #define HAVE_TCSENDBREAK 1 |
| 11109 | _ACEOF |
| 11110 | |
| 11111 | fi |
| 11112 | done |
| 11113 | |
| 11114 | fi |
| 11115 | |
| 11116 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11117 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> |
| 11118 | " |
| 11119 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : |
| 11120 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11121 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11122 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11123 | fi |
| 11124 | |
| 11125 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11126 | #define HAVE_DECL_H_ERRNO $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11127 | _ACEOF |
| 11128 | |
| 11129 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11130 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11131 | #include <sys/types.h> |
| 11132 | #include <sys/socket.h> |
| 11133 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11134 | " |
| 11135 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : |
| 11136 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11137 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11138 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11139 | fi |
| 11140 | |
| 11141 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11142 | #define HAVE_DECL_SHUT_RD $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11143 | _ACEOF |
| 11144 | |
| 11145 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11146 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11147 | #include <sys/types.h> |
| 11148 | #ifdef HAVE_SYS_STAT_H |
| 11149 | # include <sys/stat.h> |
| 11150 | #endif |
| 11151 | #ifdef HAVE_FCNTL_H |
| 11152 | # include <fcntl.h> |
| 11153 | #endif |
| 11154 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11155 | " |
| 11156 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : |
| 11157 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11158 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11159 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11160 | fi |
| 11161 | |
| 11162 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11163 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11164 | _ACEOF |
| 11165 | |
| 11166 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11167 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11168 | #include <sys/types.h> |
| 11169 | #include <sys/uio.h> |
| 11170 | #include <unistd.h> |
| 11171 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11172 | " |
| 11173 | if test "x$ac_cv_have_decl_writev" = xyes; then : |
| 11174 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11175 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11176 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11177 | fi |
| 11178 | |
| 11179 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11180 | #define HAVE_DECL_WRITEV $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11181 | _ACEOF |
| 11182 | |
| 11183 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11184 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11185 | #include <sys/param.h> |
| 11186 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11187 | " |
| 11188 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : |
| 11189 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11190 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11191 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11192 | fi |
| 11193 | |
| 11194 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11195 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11196 | _ACEOF |
| 11197 | |
| 11198 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11199 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11200 | #include <stddef.h> |
| 11201 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11202 | " |
| 11203 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : |
| 11204 | ac_have_decl=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11205 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11206 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11207 | fi |
| 11208 | |
| 11209 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11210 | #define HAVE_DECL_OFFSETOF $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11211 | _ACEOF |
| 11212 | |
| 11213 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11214 | # extra bits for select(2) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11215 | ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11216 | #include <sys/param.h> |
| 11217 | #include <sys/types.h> |
| 11218 | #ifdef HAVE_SYS_SYSMACROS_H |
| 11219 | #include <sys/sysmacros.h> |
| 11220 | #endif |
| 11221 | #ifdef HAVE_SYS_SELECT_H |
| 11222 | #include <sys/select.h> |
| 11223 | #endif |
| 11224 | #ifdef HAVE_SYS_TIME_H |
| 11225 | #include <sys/time.h> |
| 11226 | #endif |
| 11227 | #ifdef HAVE_UNISTD_H |
| 11228 | #include <unistd.h> |
| 11229 | #endif |
| 11230 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11231 | " |
| 11232 | if test "x$ac_cv_have_decl_howmany" = xyes; then : |
| 11233 | ac_have_decl=1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11234 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11235 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11236 | fi |
| 11237 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11238 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11239 | #define HAVE_DECL_HOWMANY $ac_have_decl |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11240 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11241 | ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11242 | #include <sys/param.h> |
| 11243 | #include <sys/types.h> |
| 11244 | #ifdef HAVE_SYS_SYSMACROS_H |
| 11245 | #include <sys/sysmacros.h> |
| 11246 | #endif |
| 11247 | #ifdef HAVE_SYS_SELECT_H |
| 11248 | #include <sys/select.h> |
| 11249 | #endif |
| 11250 | #ifdef HAVE_SYS_TIME_H |
| 11251 | #include <sys/time.h> |
| 11252 | #endif |
| 11253 | #ifdef HAVE_UNISTD_H |
| 11254 | #include <unistd.h> |
| 11255 | #endif |
| 11256 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11257 | " |
| 11258 | if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : |
| 11259 | ac_have_decl=1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11260 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11261 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11262 | fi |
| 11263 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11264 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11265 | #define HAVE_DECL_NFDBITS $ac_have_decl |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11266 | _ACEOF |
| 11267 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11268 | ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11269 | #include <sys/param.h> |
| 11270 | #include <sys/types.h> |
| 11271 | #ifdef HAVE_SYS_SELECT_H |
| 11272 | #include <sys/select.h> |
| 11273 | #endif |
| 11274 | #ifdef HAVE_SYS_TIME_H |
| 11275 | #include <sys/time.h> |
| 11276 | #endif |
| 11277 | #ifdef HAVE_UNISTD_H |
| 11278 | #include <unistd.h> |
| 11279 | #endif |
| 11280 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11281 | " |
| 11282 | if test "x$ac_cv_type_fd_mask" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11283 | |
| 11284 | cat >>confdefs.h <<_ACEOF |
| 11285 | #define HAVE_FD_MASK 1 |
| 11286 | _ACEOF |
| 11287 | |
| 11288 | |
| 11289 | fi |
| 11290 | |
| 11291 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11292 | for ac_func in setresuid |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11293 | do : |
| 11294 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
| 11295 | if test "x$ac_cv_func_setresuid" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11296 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11297 | #define HAVE_SETRESUID 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11298 | _ACEOF |
| 11299 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 |
| 11301 | $as_echo_n "checking if setresuid seems to work... " >&6; } |
| 11302 | if test "$cross_compiling" = yes; then : |
| 11303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 |
| 11304 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11305 | |
| 11306 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11308 | /* end confdefs.h. */ |
| 11309 | |
| 11310 | #include <stdlib.h> |
| 11311 | #include <errno.h> |
| 11312 | |
| 11313 | int |
| 11314 | main () |
| 11315 | { |
| 11316 | |
| 11317 | errno=0; |
| 11318 | setresuid(0,0,0); |
| 11319 | if (errno==ENOSYS) |
| 11320 | exit(1); |
| 11321 | else |
| 11322 | exit(0); |
| 11323 | |
| 11324 | ; |
| 11325 | return 0; |
| 11326 | } |
| 11327 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11328 | if ac_fn_c_try_run "$LINENO"; then : |
| 11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11330 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11331 | else |
| 11332 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11333 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11334 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 |
| 11336 | $as_echo "not implemented" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11337 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11339 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11340 | fi |
| 11341 | |
| 11342 | |
| 11343 | fi |
| 11344 | done |
| 11345 | |
| 11346 | |
| 11347 | for ac_func in setresgid |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11348 | do : |
| 11349 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" |
| 11350 | if test "x$ac_cv_func_setresgid" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11351 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11352 | #define HAVE_SETRESGID 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11353 | _ACEOF |
| 11354 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 |
| 11356 | $as_echo_n "checking if setresgid seems to work... " >&6; } |
| 11357 | if test "$cross_compiling" = yes; then : |
| 11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 |
| 11359 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11360 | |
| 11361 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11363 | /* end confdefs.h. */ |
| 11364 | |
| 11365 | #include <stdlib.h> |
| 11366 | #include <errno.h> |
| 11367 | |
| 11368 | int |
| 11369 | main () |
| 11370 | { |
| 11371 | |
| 11372 | errno=0; |
| 11373 | setresgid(0,0,0); |
| 11374 | if (errno==ENOSYS) |
| 11375 | exit(1); |
| 11376 | else |
| 11377 | exit(0); |
| 11378 | |
| 11379 | ; |
| 11380 | return 0; |
| 11381 | } |
| 11382 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11383 | if ac_fn_c_try_run "$LINENO"; then : |
| 11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11385 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11386 | else |
| 11387 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11388 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11389 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 |
| 11391 | $as_echo "not implemented" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11392 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11393 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11394 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11395 | fi |
| 11396 | |
| 11397 | |
| 11398 | fi |
| 11399 | done |
| 11400 | |
| 11401 | |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11402 | for ac_func in realpath |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11403 | do : |
| 11404 | ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" |
| 11405 | if test "x$ac_cv_func_realpath" = xyes; then : |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11406 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11407 | #define HAVE_REALPATH 1 |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11408 | _ACEOF |
| 11409 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5 |
| 11411 | $as_echo_n "checking if realpath works with non-existent files... " >&6; } |
| 11412 | if test "$cross_compiling" = yes; then : |
| 11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 |
| 11414 | $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11415 | |
| 11416 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11418 | /* end confdefs.h. */ |
| 11419 | |
| 11420 | #include <limits.h> |
| 11421 | #include <stdlib.h> |
| 11422 | #include <errno.h> |
| 11423 | |
| 11424 | int |
| 11425 | main () |
| 11426 | { |
| 11427 | |
| 11428 | char buf[PATH_MAX]; |
| 11429 | if (realpath("/opensshnonexistentfilename1234", buf) == NULL) |
| 11430 | if (errno == ENOENT) |
| 11431 | exit(1); |
| 11432 | exit(0); |
| 11433 | |
| 11434 | ; |
| 11435 | return 0; |
| 11436 | } |
| 11437 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11438 | if ac_fn_c_try_run "$LINENO"; then : |
| 11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11440 | $as_echo "yes" >&6; } |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11441 | else |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11442 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11443 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11444 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11446 | $as_echo "no" >&6; } |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11447 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11448 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11449 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11450 | fi |
| 11451 | |
| 11452 | |
Greg Hartman | ccacbc9 | 2016-02-03 09:59:44 -0800 | [diff] [blame] | 11453 | fi |
| 11454 | done |
| 11455 | |
| 11456 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11457 | for ac_func in gettimeofday time |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11458 | do : |
| 11459 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11460 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11461 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11462 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11463 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11464 | _ACEOF |
| 11465 | |
| 11466 | fi |
| 11467 | done |
| 11468 | |
| 11469 | for ac_func in endutent getutent getutid getutline pututline setutent |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11470 | do : |
| 11471 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11472 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11473 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11474 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11475 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11476 | _ACEOF |
| 11477 | |
| 11478 | fi |
| 11479 | done |
| 11480 | |
| 11481 | for ac_func in utmpname |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11482 | do : |
| 11483 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" |
| 11484 | if test "x$ac_cv_func_utmpname" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11485 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11486 | #define HAVE_UTMPNAME 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11487 | _ACEOF |
| 11488 | |
| 11489 | fi |
| 11490 | done |
| 11491 | |
| 11492 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11493 | do : |
| 11494 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11495 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11496 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11497 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11498 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11499 | _ACEOF |
| 11500 | |
| 11501 | fi |
| 11502 | done |
| 11503 | |
| 11504 | for ac_func in setutxdb setutxent utmpxname |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11505 | do : |
| 11506 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11507 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11508 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11509 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11510 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11511 | _ACEOF |
| 11512 | |
| 11513 | fi |
| 11514 | done |
| 11515 | |
| 11516 | for ac_func in getlastlogxbyname |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11517 | do : |
| 11518 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" |
| 11519 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11520 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11521 | #define HAVE_GETLASTLOGXBYNAME 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11522 | _ACEOF |
| 11523 | |
| 11524 | fi |
| 11525 | done |
| 11526 | |
| 11527 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11528 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" |
| 11529 | if test "x$ac_cv_func_daemon" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11530 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11531 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11532 | |
| 11533 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 |
| 11535 | $as_echo_n "checking for daemon in -lbsd... " >&6; } |
| 11536 | if ${ac_cv_lib_bsd_daemon+:} false; then : |
| 11537 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11538 | else |
| 11539 | ac_check_lib_save_LIBS=$LIBS |
| 11540 | LIBS="-lbsd $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11542 | /* end confdefs.h. */ |
| 11543 | |
| 11544 | /* Override any GCC internal prototype to avoid an error. |
| 11545 | Use char because int might match the return type of a GCC |
| 11546 | builtin and then its argument prototype would still apply. */ |
| 11547 | #ifdef __cplusplus |
| 11548 | extern "C" |
| 11549 | #endif |
| 11550 | char daemon (); |
| 11551 | int |
| 11552 | main () |
| 11553 | { |
| 11554 | return daemon (); |
| 11555 | ; |
| 11556 | return 0; |
| 11557 | } |
| 11558 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11559 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11560 | ac_cv_lib_bsd_daemon=yes |
| 11561 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11562 | ac_cv_lib_bsd_daemon=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11563 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11564 | rm -f core conftest.err conftest.$ac_objext \ |
| 11565 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11566 | LIBS=$ac_check_lib_save_LIBS |
| 11567 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 |
| 11569 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } |
| 11570 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : |
| 11571 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11572 | |
| 11573 | fi |
| 11574 | |
| 11575 | |
| 11576 | fi |
| 11577 | |
| 11578 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11579 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 11580 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11581 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11582 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11583 | |
| 11584 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 |
| 11586 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } |
| 11587 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : |
| 11588 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11589 | else |
| 11590 | ac_check_lib_save_LIBS=$LIBS |
| 11591 | LIBS="-lucb $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11593 | /* end confdefs.h. */ |
| 11594 | |
| 11595 | /* Override any GCC internal prototype to avoid an error. |
| 11596 | Use char because int might match the return type of a GCC |
| 11597 | builtin and then its argument prototype would still apply. */ |
| 11598 | #ifdef __cplusplus |
| 11599 | extern "C" |
| 11600 | #endif |
| 11601 | char getpagesize (); |
| 11602 | int |
| 11603 | main () |
| 11604 | { |
| 11605 | return getpagesize (); |
| 11606 | ; |
| 11607 | return 0; |
| 11608 | } |
| 11609 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11610 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11611 | ac_cv_lib_ucb_getpagesize=yes |
| 11612 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11613 | ac_cv_lib_ucb_getpagesize=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11614 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11615 | rm -f core conftest.err conftest.$ac_objext \ |
| 11616 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11617 | LIBS=$ac_check_lib_save_LIBS |
| 11618 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 |
| 11620 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } |
| 11621 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : |
| 11622 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11623 | |
| 11624 | fi |
| 11625 | |
| 11626 | |
| 11627 | fi |
| 11628 | |
| 11629 | |
| 11630 | # Check for broken snprintf |
| 11631 | if test "x$ac_cv_func_snprintf" = "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 |
| 11633 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } |
| 11634 | if test "$cross_compiling" = yes; then : |
| 11635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 |
| 11636 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11637 | |
| 11638 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11640 | /* end confdefs.h. */ |
| 11641 | #include <stdio.h> |
| 11642 | int |
| 11643 | main () |
| 11644 | { |
| 11645 | |
| 11646 | char b[5]; |
| 11647 | snprintf(b,5,"123456789"); |
| 11648 | exit(b[4]!='\0'); |
| 11649 | |
| 11650 | ; |
| 11651 | return 0; |
| 11652 | } |
| 11653 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11654 | if ac_fn_c_try_run "$LINENO"; then : |
| 11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11656 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11657 | else |
| 11658 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11660 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11661 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11662 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11663 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 |
| 11665 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11666 | |
| 11667 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11668 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11669 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11670 | fi |
| 11671 | |
| 11672 | fi |
| 11673 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11674 | # We depend on vsnprintf returning the right thing on overflow: the |
| 11675 | # number of characters it tried to create (as per SUSv3) |
| 11676 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 |
| 11678 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } |
| 11679 | if test "$cross_compiling" = yes; then : |
| 11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 |
| 11681 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11682 | |
| 11683 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11685 | /* end confdefs.h. */ |
| 11686 | |
| 11687 | #include <sys/types.h> |
| 11688 | #include <stdio.h> |
| 11689 | #include <stdarg.h> |
| 11690 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11691 | int x_snprintf(char *str, size_t count, const char *fmt, ...) |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11692 | { |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11693 | size_t ret; |
| 11694 | va_list ap; |
| 11695 | |
| 11696 | va_start(ap, fmt); |
| 11697 | ret = vsnprintf(str, count, fmt, ap); |
| 11698 | va_end(ap); |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11699 | return ret; |
| 11700 | } |
| 11701 | |
| 11702 | int |
| 11703 | main () |
| 11704 | { |
| 11705 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 11706 | char x[1]; |
| 11707 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) |
| 11708 | return 1; |
| 11709 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) |
| 11710 | return 1; |
| 11711 | return 0; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11712 | |
| 11713 | ; |
| 11714 | return 0; |
| 11715 | } |
| 11716 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11717 | if ac_fn_c_try_run "$LINENO"; then : |
| 11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11719 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11720 | else |
| 11721 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11723 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11724 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11725 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11726 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 |
| 11728 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11729 | |
| 11730 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11732 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11733 | fi |
| 11734 | |
| 11735 | fi |
| 11736 | |
| 11737 | # On systems where [v]snprintf is broken, but is declared in stdio, |
| 11738 | # check that the fmt argument is const char * or just char *. |
| 11739 | # This is only useful for when BROKEN_SNPRINTF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 |
| 11741 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } |
| 11742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11743 | /* end confdefs.h. */ |
| 11744 | |
| 11745 | #include <stdio.h> |
| 11746 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } |
| 11747 | |
| 11748 | int |
| 11749 | main () |
| 11750 | { |
| 11751 | |
| 11752 | snprintf(0, 0, 0); |
| 11753 | |
| 11754 | ; |
| 11755 | return 0; |
| 11756 | } |
| 11757 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11758 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11760 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11761 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11762 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11763 | |
| 11764 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11766 | $as_echo "no" >&6; } |
| 11767 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11768 | |
| 11769 | fi |
| 11770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11771 | |
| 11772 | # Check for missing getpeereid (or equiv) support |
| 11773 | NO_PEERCHECK="" |
| 11774 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 |
| 11776 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } |
| 11777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11778 | /* end confdefs.h. */ |
| 11779 | |
| 11780 | #include <sys/types.h> |
| 11781 | #include <sys/socket.h> |
| 11782 | int |
| 11783 | main () |
| 11784 | { |
| 11785 | int i = SO_PEERCRED; |
| 11786 | ; |
| 11787 | return 0; |
| 11788 | } |
| 11789 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11790 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11792 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11793 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11794 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11795 | |
| 11796 | |
| 11797 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11799 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11800 | NO_PEERCHECK=1 |
| 11801 | |
| 11802 | fi |
| 11803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11804 | fi |
| 11805 | |
| 11806 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 |
| 11808 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } |
| 11809 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11810 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11812 | $as_echo "yes" >&6; } |
| 11813 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11814 | |
| 11815 | |
| 11816 | |
| 11817 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11819 | /* end confdefs.h. */ |
| 11820 | |
| 11821 | #include <stdlib.h> |
| 11822 | |
| 11823 | int |
| 11824 | main () |
| 11825 | { |
| 11826 | |
| 11827 | char template[]="conftest.mkstemp-test"; |
| 11828 | if (mkstemp(template) == -1) |
| 11829 | exit(1); |
| 11830 | unlink(template); |
| 11831 | exit(0); |
| 11832 | |
| 11833 | ; |
| 11834 | return 0; |
| 11835 | } |
| 11836 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11837 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11838 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11840 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11841 | |
| 11842 | else |
| 11843 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11845 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11846 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11847 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11848 | |
| 11849 | |
| 11850 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11851 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11852 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11853 | fi |
| 11854 | |
| 11855 | fi |
| 11856 | |
| 11857 | if test ! -z "$check_for_openpty_ctty_bug"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 |
| 11859 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } |
| 11860 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11861 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 |
| 11863 | $as_echo "cross-compiling, assuming yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11864 | |
| 11865 | |
| 11866 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11868 | /* end confdefs.h. */ |
| 11869 | |
| 11870 | #include <stdio.h> |
| 11871 | #include <sys/fcntl.h> |
| 11872 | #include <sys/types.h> |
| 11873 | #include <sys/wait.h> |
| 11874 | |
| 11875 | int |
| 11876 | main () |
| 11877 | { |
| 11878 | |
| 11879 | pid_t pid; |
| 11880 | int fd, ptyfd, ttyfd, status; |
| 11881 | |
| 11882 | pid = fork(); |
| 11883 | if (pid < 0) { /* failed */ |
| 11884 | exit(1); |
| 11885 | } else if (pid > 0) { /* parent */ |
| 11886 | waitpid(pid, &status, 0); |
| 11887 | if (WIFEXITED(status)) |
| 11888 | exit(WEXITSTATUS(status)); |
| 11889 | else |
| 11890 | exit(2); |
| 11891 | } else { /* child */ |
| 11892 | close(0); close(1); close(2); |
| 11893 | setsid(); |
| 11894 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); |
| 11895 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); |
| 11896 | if (fd >= 0) |
| 11897 | exit(3); /* Acquired ctty: broken */ |
| 11898 | else |
| 11899 | exit(0); /* Did not acquire ctty: OK */ |
| 11900 | } |
| 11901 | |
| 11902 | ; |
| 11903 | return 0; |
| 11904 | } |
| 11905 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11906 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11907 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11909 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11910 | |
| 11911 | else |
| 11912 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11914 | $as_echo "no" >&6; } |
| 11915 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11916 | |
| 11917 | |
| 11918 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11919 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11920 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11921 | fi |
| 11922 | |
| 11923 | fi |
| 11924 | |
| 11925 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ |
| 11926 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 |
| 11928 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } |
| 11929 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11930 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 |
| 11932 | $as_echo "cross-compiling, assuming yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11933 | |
| 11934 | |
| 11935 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11937 | /* end confdefs.h. */ |
| 11938 | |
| 11939 | #include <stdio.h> |
| 11940 | #include <sys/socket.h> |
| 11941 | #include <netdb.h> |
| 11942 | #include <errno.h> |
| 11943 | #include <netinet/in.h> |
| 11944 | |
| 11945 | #define TEST_PORT "2222" |
| 11946 | |
| 11947 | int |
| 11948 | main () |
| 11949 | { |
| 11950 | |
| 11951 | int err, sock; |
| 11952 | struct addrinfo *gai_ai, *ai, hints; |
| 11953 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; |
| 11954 | |
| 11955 | memset(&hints, 0, sizeof(hints)); |
| 11956 | hints.ai_family = PF_UNSPEC; |
| 11957 | hints.ai_socktype = SOCK_STREAM; |
| 11958 | hints.ai_flags = AI_PASSIVE; |
| 11959 | |
| 11960 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); |
| 11961 | if (err != 0) { |
| 11962 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); |
| 11963 | exit(1); |
| 11964 | } |
| 11965 | |
| 11966 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { |
| 11967 | if (ai->ai_family != AF_INET6) |
| 11968 | continue; |
| 11969 | |
| 11970 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, |
| 11971 | sizeof(ntop), strport, sizeof(strport), |
| 11972 | NI_NUMERICHOST|NI_NUMERICSERV); |
| 11973 | |
| 11974 | if (err != 0) { |
| 11975 | if (err == EAI_SYSTEM) |
| 11976 | perror("getnameinfo EAI_SYSTEM"); |
| 11977 | else |
| 11978 | fprintf(stderr, "getnameinfo failed: %s\n", |
| 11979 | gai_strerror(err)); |
| 11980 | exit(2); |
| 11981 | } |
| 11982 | |
| 11983 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); |
| 11984 | if (sock < 0) |
| 11985 | perror("socket"); |
| 11986 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { |
| 11987 | if (errno == EBADF) |
| 11988 | exit(3); |
| 11989 | } |
| 11990 | } |
| 11991 | exit(0); |
| 11992 | |
| 11993 | ; |
| 11994 | return 0; |
| 11995 | } |
| 11996 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11997 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 11998 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12000 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12001 | |
| 12002 | else |
| 12003 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12005 | $as_echo "no" >&6; } |
| 12006 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12007 | |
| 12008 | |
| 12009 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12010 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12011 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12012 | fi |
| 12013 | |
| 12014 | fi |
| 12015 | |
| 12016 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ |
| 12017 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 |
| 12019 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } |
| 12020 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12021 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 |
| 12023 | $as_echo "cross-compiling, assuming no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12024 | |
| 12025 | |
| 12026 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12028 | /* end confdefs.h. */ |
| 12029 | |
| 12030 | #include <stdio.h> |
| 12031 | #include <sys/socket.h> |
| 12032 | #include <netdb.h> |
| 12033 | #include <errno.h> |
| 12034 | #include <netinet/in.h> |
| 12035 | |
| 12036 | #define TEST_PORT "2222" |
| 12037 | |
| 12038 | int |
| 12039 | main () |
| 12040 | { |
| 12041 | |
| 12042 | int err, sock; |
| 12043 | struct addrinfo *gai_ai, *ai, hints; |
| 12044 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; |
| 12045 | |
| 12046 | memset(&hints, 0, sizeof(hints)); |
| 12047 | hints.ai_family = PF_UNSPEC; |
| 12048 | hints.ai_socktype = SOCK_STREAM; |
| 12049 | hints.ai_flags = AI_PASSIVE; |
| 12050 | |
| 12051 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); |
| 12052 | if (err != 0) { |
| 12053 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); |
| 12054 | exit(1); |
| 12055 | } |
| 12056 | |
| 12057 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { |
| 12058 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) |
| 12059 | continue; |
| 12060 | |
| 12061 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, |
| 12062 | sizeof(ntop), strport, sizeof(strport), |
| 12063 | NI_NUMERICHOST|NI_NUMERICSERV); |
| 12064 | |
| 12065 | if (ai->ai_family == AF_INET && err != 0) { |
| 12066 | perror("getnameinfo"); |
| 12067 | exit(2); |
| 12068 | } |
| 12069 | } |
| 12070 | exit(0); |
| 12071 | |
| 12072 | ; |
| 12073 | return 0; |
| 12074 | } |
| 12075 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12076 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12077 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12079 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12080 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12081 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12082 | |
| 12083 | |
| 12084 | else |
| 12085 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12087 | $as_echo "no" >&6; } |
| 12088 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12089 | |
| 12090 | |
| 12091 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12092 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12093 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12094 | fi |
| 12095 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12096 | fi |
| 12097 | |
| 12098 | if test "x$ac_cv_func_getaddrinfo" = "xyes"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12099 | ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h> |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12100 | #include <sys/socket.h> |
| 12101 | #include <netdb.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12102 | " |
| 12103 | if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then : |
| 12104 | ac_have_decl=1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12105 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12106 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12107 | fi |
| 12108 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12109 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12110 | #define HAVE_DECL_AI_NUMERICSERV $ac_have_decl |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12111 | _ACEOF |
| 12112 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12113 | fi |
| 12114 | |
| 12115 | if test "x$check_for_conflicting_getspnam" = "x1"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 |
| 12117 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } |
| 12118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12119 | /* end confdefs.h. */ |
| 12120 | #include <shadow.h> |
| 12121 | int |
| 12122 | main () |
| 12123 | { |
| 12124 | exit(0); |
| 12125 | ; |
| 12126 | return 0; |
| 12127 | } |
| 12128 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12129 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12130 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12132 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12133 | |
| 12134 | else |
| 12135 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12137 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12138 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12139 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12140 | |
| 12141 | |
| 12142 | |
| 12143 | fi |
| 12144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12145 | fi |
| 12146 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12147 | if test "x$ac_cv_func_strnvis" = "xyes"; then |
| 12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5 |
| 12149 | $as_echo_n "checking for working strnvis... " >&6; } |
| 12150 | if test "$cross_compiling" = yes; then : |
| 12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5 |
| 12152 | $as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;} |
| 12153 | |
| 12154 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h |
| 12155 | |
| 12156 | |
| 12157 | else |
| 12158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12159 | /* end confdefs.h. */ |
| 12160 | |
| 12161 | #include <signal.h> |
| 12162 | #include <stdlib.h> |
| 12163 | #include <string.h> |
| 12164 | #include <vis.h> |
| 12165 | static void sighandler(int sig) { _exit(1); } |
| 12166 | |
| 12167 | int |
| 12168 | main () |
| 12169 | { |
| 12170 | |
| 12171 | char dst[16]; |
| 12172 | |
| 12173 | signal(SIGSEGV, sighandler); |
| 12174 | if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0) |
| 12175 | exit(0); |
| 12176 | exit(1) |
| 12177 | |
| 12178 | ; |
| 12179 | return 0; |
| 12180 | } |
| 12181 | _ACEOF |
| 12182 | if ac_fn_c_try_run "$LINENO"; then : |
| 12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12184 | $as_echo "yes" >&6; } |
| 12185 | else |
| 12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12187 | $as_echo "no" >&6; } |
| 12188 | |
| 12189 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h |
| 12190 | |
| 12191 | fi |
| 12192 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12193 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12194 | fi |
| 12195 | |
| 12196 | fi |
| 12197 | |
| 12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
| 12199 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } |
| 12200 | if ${ac_cv_func_getpgrp_void+:} false; then : |
| 12201 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12202 | else |
| 12203 | # Use it with a single arg. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12205 | /* end confdefs.h. */ |
| 12206 | $ac_includes_default |
| 12207 | int |
| 12208 | main () |
| 12209 | { |
| 12210 | getpgrp (0); |
| 12211 | ; |
| 12212 | return 0; |
| 12213 | } |
| 12214 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12215 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12216 | ac_cv_func_getpgrp_void=no |
| 12217 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12218 | ac_cv_func_getpgrp_void=yes |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12219 | fi |
| 12220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12221 | |
| 12222 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
| 12224 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12225 | if test $ac_cv_func_getpgrp_void = yes; then |
| 12226 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12227 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12228 | |
| 12229 | fi |
| 12230 | |
| 12231 | |
| 12232 | # Search for OpenSSL |
| 12233 | saved_CPPFLAGS="$CPPFLAGS" |
| 12234 | saved_LDFLAGS="$LDFLAGS" |
| 12235 | |
| 12236 | # Check whether --with-ssl-dir was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12237 | if test "${with_ssl_dir+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12238 | withval=$with_ssl_dir; |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12239 | if test "x$openssl" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12240 | as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12241 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12242 | if test "x$withval" != "xno" ; then |
| 12243 | case "$withval" in |
| 12244 | # Relative paths |
| 12245 | ./*|../*) withval="`pwd`/$withval" |
| 12246 | esac |
| 12247 | if test -d "$withval/lib"; then |
| 12248 | if test -n "${need_dash_r}"; then |
| 12249 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 12250 | else |
| 12251 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 12252 | fi |
| 12253 | elif test -d "$withval/lib64"; then |
| 12254 | if test -n "${need_dash_r}"; then |
| 12255 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" |
| 12256 | else |
| 12257 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" |
| 12258 | fi |
| 12259 | else |
| 12260 | if test -n "${need_dash_r}"; then |
| 12261 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" |
| 12262 | else |
| 12263 | LDFLAGS="-L${withval} ${LDFLAGS}" |
| 12264 | fi |
| 12265 | fi |
| 12266 | if test -d "$withval/include"; then |
| 12267 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
| 12268 | else |
| 12269 | CPPFLAGS="-I${withval} ${CPPFLAGS}" |
| 12270 | fi |
| 12271 | fi |
| 12272 | |
| 12273 | |
| 12274 | fi |
| 12275 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12276 | |
| 12277 | |
| 12278 | # Check whether --with-openssl-header-check was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12279 | if test "${with_openssl_header_check+set}" = set; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12280 | withval=$with_openssl_header_check; |
| 12281 | if test "x$withval" = "xno" ; then |
| 12282 | openssl_check_nonfatal=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12283 | fi |
| 12284 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12285 | |
| 12286 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12287 | |
| 12288 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12289 | openssl_engine=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12290 | |
| 12291 | # Check whether --with-ssl-engine was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12292 | if test "${with_ssl_engine+set}" = set; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12293 | withval=$with_ssl_engine; |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12294 | if test "x$withval" != "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12295 | if test "x$openssl" = "xno" ; then |
| 12296 | as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5 |
| 12297 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12298 | openssl_engine=yes |
| 12299 | fi |
| 12300 | |
| 12301 | |
| 12302 | fi |
| 12303 | |
| 12304 | |
| 12305 | if test "x$openssl" = "xyes" ; then |
| 12306 | LIBS="-lcrypto $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12308 | /* end confdefs.h. */ |
| 12309 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12310 | /* Override any GCC internal prototype to avoid an error. |
| 12311 | Use char because int might match the return type of a GCC |
| 12312 | builtin and then its argument prototype would still apply. */ |
| 12313 | #ifdef __cplusplus |
| 12314 | extern "C" |
| 12315 | #endif |
| 12316 | char RAND_add (); |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12317 | int |
| 12318 | main () |
| 12319 | { |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12320 | return RAND_add (); |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12321 | ; |
| 12322 | return 0; |
| 12323 | } |
| 12324 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12325 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12326 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12327 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12328 | |
| 12329 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12330 | |
| 12331 | if test -n "${need_dash_r}"; then |
| 12332 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" |
| 12333 | else |
| 12334 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" |
| 12335 | fi |
| 12336 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12337 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" |
| 12338 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : |
| 12339 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12340 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12341 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12342 | fi |
| 12343 | |
| 12344 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12346 | /* end confdefs.h. */ |
| 12347 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12348 | /* Override any GCC internal prototype to avoid an error. |
| 12349 | Use char because int might match the return type of a GCC |
| 12350 | builtin and then its argument prototype would still apply. */ |
| 12351 | #ifdef __cplusplus |
| 12352 | extern "C" |
| 12353 | #endif |
| 12354 | char RAND_add (); |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12355 | int |
| 12356 | main () |
| 12357 | { |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12358 | return RAND_add (); |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12359 | ; |
| 12360 | return 0; |
| 12361 | } |
| 12362 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12363 | if ac_fn_c_try_link "$LINENO"; then : |
| 12364 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12365 | |
| 12366 | else |
| 12367 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12368 | as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12369 | |
| 12370 | |
| 12371 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12372 | rm -f core conftest.err conftest.$ac_objext \ |
| 12373 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12374 | |
| 12375 | |
| 12376 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12377 | rm -f core conftest.err conftest.$ac_objext \ |
| 12378 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12379 | |
| 12380 | # Determine OpenSSL header version |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 |
| 12382 | $as_echo_n "checking OpenSSL header version... " >&6; } |
| 12383 | if test "$cross_compiling" = yes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12384 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 12386 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12387 | |
| 12388 | |
| 12389 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12391 | /* end confdefs.h. */ |
| 12392 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12393 | #include <stdlib.h> |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12394 | #include <stdio.h> |
| 12395 | #include <string.h> |
| 12396 | #include <openssl/opensslv.h> |
| 12397 | #define DATA "conftest.sslincver" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12398 | |
| 12399 | int |
| 12400 | main () |
| 12401 | { |
| 12402 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12403 | FILE *fd; |
| 12404 | int rc; |
| 12405 | |
| 12406 | fd = fopen(DATA,"w"); |
| 12407 | if(fd == NULL) |
| 12408 | exit(1); |
| 12409 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12410 | if ((rc = fprintf(fd, "%08lx (%s)\n", |
| 12411 | (unsigned long)OPENSSL_VERSION_NUMBER, |
| 12412 | OPENSSL_VERSION_TEXT)) < 0) |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12413 | exit(1); |
| 12414 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12415 | exit(0); |
| 12416 | |
| 12417 | ; |
| 12418 | return 0; |
| 12419 | } |
| 12420 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12421 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12422 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12423 | ssl_header_ver=`cat conftest.sslincver` |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 |
| 12425 | $as_echo "$ssl_header_ver" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12426 | |
| 12427 | else |
| 12428 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 12430 | $as_echo "not found" >&6; } |
| 12431 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12432 | |
| 12433 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12434 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12435 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12436 | fi |
| 12437 | |
| 12438 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12439 | # Determine OpenSSL library version |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 |
| 12441 | $as_echo_n "checking OpenSSL library version... " >&6; } |
| 12442 | if test "$cross_compiling" = yes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12443 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 12445 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12446 | |
| 12447 | |
| 12448 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12450 | /* end confdefs.h. */ |
| 12451 | |
| 12452 | #include <stdio.h> |
| 12453 | #include <string.h> |
| 12454 | #include <openssl/opensslv.h> |
| 12455 | #include <openssl/crypto.h> |
| 12456 | #define DATA "conftest.ssllibver" |
| 12457 | |
| 12458 | int |
| 12459 | main () |
| 12460 | { |
| 12461 | |
| 12462 | FILE *fd; |
| 12463 | int rc; |
| 12464 | |
| 12465 | fd = fopen(DATA,"w"); |
| 12466 | if(fd == NULL) |
| 12467 | exit(1); |
| 12468 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12469 | if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(), |
| 12470 | SSLeay_version(SSLEAY_VERSION))) < 0) |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12471 | exit(1); |
| 12472 | |
| 12473 | exit(0); |
| 12474 | |
| 12475 | ; |
| 12476 | return 0; |
| 12477 | } |
| 12478 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12479 | if ac_fn_c_try_run "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12480 | |
| 12481 | ssl_library_ver=`cat conftest.ssllibver` |
| 12482 | # Check version is supported. |
| 12483 | case "$ssl_library_ver" in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12484 | 10000*|0*) |
| 12485 | as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12486 | ;; |
| 12487 | *) ;; |
| 12488 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 |
| 12490 | $as_echo "$ssl_library_ver" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12491 | |
| 12492 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12493 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 12495 | $as_echo "not found" >&6; } |
| 12496 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12497 | |
| 12498 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12499 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12500 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12501 | fi |
| 12502 | |
| 12503 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12504 | # Sanity check OpenSSL headers |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 |
| 12506 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } |
| 12507 | if test "$cross_compiling" = yes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12508 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12509 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 12510 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12511 | |
| 12512 | |
| 12513 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12515 | /* end confdefs.h. */ |
| 12516 | |
| 12517 | #include <string.h> |
| 12518 | #include <openssl/opensslv.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12519 | #include <openssl/crypto.h> |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12520 | |
| 12521 | int |
| 12522 | main () |
| 12523 | { |
| 12524 | |
| 12525 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); |
| 12526 | |
| 12527 | ; |
| 12528 | return 0; |
| 12529 | } |
| 12530 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12531 | if ac_fn_c_try_run "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12532 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12534 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12535 | |
| 12536 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12537 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12539 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12540 | if test "x$openssl_check_nonfatal" = "x"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12541 | as_fn_error $? "Your OpenSSL headers do not match your |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12542 | library. Check config.log for details. |
| 12543 | If you are sure your installation is consistent, you can disable the check |
| 12544 | by running \"./configure --without-openssl-header-check\". |
| 12545 | Also see contrib/findssl.sh for help identifying header/library mismatches. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12546 | " "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12547 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12549 | library. Check config.log for details. |
| 12550 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12551 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12552 | library. Check config.log for details. |
| 12553 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} |
| 12554 | fi |
| 12555 | |
| 12556 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12558 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12559 | fi |
| 12560 | |
| 12561 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 |
| 12563 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } |
| 12564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12565 | /* end confdefs.h. */ |
| 12566 | #include <openssl/evp.h> |
| 12567 | int |
| 12568 | main () |
| 12569 | { |
| 12570 | SSLeay_add_all_algorithms(); |
| 12571 | ; |
| 12572 | return 0; |
| 12573 | } |
| 12574 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12575 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12576 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12578 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12579 | |
| 12580 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12581 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12583 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12584 | saved_LIBS="$LIBS" |
| 12585 | LIBS="$LIBS -ldl" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 |
| 12587 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } |
| 12588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12589 | /* end confdefs.h. */ |
| 12590 | #include <openssl/evp.h> |
| 12591 | int |
| 12592 | main () |
| 12593 | { |
| 12594 | SSLeay_add_all_algorithms(); |
| 12595 | ; |
| 12596 | return 0; |
| 12597 | } |
| 12598 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12599 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12600 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12602 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12603 | |
| 12604 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12605 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12607 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12608 | LIBS="$saved_LIBS" |
| 12609 | |
| 12610 | |
| 12611 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12612 | rm -f core conftest.err conftest.$ac_objext \ |
| 12613 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12614 | |
| 12615 | |
| 12616 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12617 | rm -f core conftest.err conftest.$ac_objext \ |
| 12618 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12619 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12620 | for ac_func in \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12621 | BN_is_prime_ex \ |
| 12622 | DSA_generate_parameters_ex \ |
| 12623 | EVP_DigestInit_ex \ |
| 12624 | EVP_DigestFinal_ex \ |
| 12625 | EVP_MD_CTX_init \ |
| 12626 | EVP_MD_CTX_cleanup \ |
| 12627 | EVP_MD_CTX_copy_ex \ |
| 12628 | HMAC_CTX_init \ |
| 12629 | RSA_generate_key_ex \ |
| 12630 | RSA_get_default_method \ |
| 12631 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12632 | do : |
| 12633 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12634 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12635 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12636 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12637 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12638 | _ACEOF |
| 12639 | |
| 12640 | fi |
| 12641 | done |
| 12642 | |
| 12643 | |
| 12644 | if test "x$openssl_engine" = "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 |
| 12646 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } |
| 12647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12648 | /* end confdefs.h. */ |
| 12649 | |
| 12650 | #include <openssl/engine.h> |
| 12651 | |
| 12652 | int |
| 12653 | main () |
| 12654 | { |
| 12655 | |
| 12656 | ENGINE_load_builtin_engines(); |
| 12657 | ENGINE_register_all_complete(); |
| 12658 | |
| 12659 | ; |
| 12660 | return 0; |
| 12661 | } |
| 12662 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12663 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12665 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12666 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12667 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12668 | |
| 12669 | |
| 12670 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12671 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12672 | |
| 12673 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12675 | fi |
| 12676 | |
| 12677 | # Check for OpenSSL without EVP_aes_{192,256}_cbc |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 |
| 12679 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } |
| 12680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12681 | /* end confdefs.h. */ |
| 12682 | |
| 12683 | #include <string.h> |
| 12684 | #include <openssl/evp.h> |
| 12685 | |
| 12686 | int |
| 12687 | main () |
| 12688 | { |
| 12689 | |
| 12690 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); |
| 12691 | |
| 12692 | ; |
| 12693 | return 0; |
| 12694 | } |
| 12695 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12696 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12697 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12699 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12700 | |
| 12701 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12702 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12704 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12705 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12706 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12707 | |
| 12708 | |
| 12709 | |
| 12710 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12711 | rm -f core conftest.err conftest.$ac_objext \ |
| 12712 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12713 | |
| 12714 | # Check for OpenSSL with EVP_aes_*ctr |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 |
| 12716 | $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } |
| 12717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12718 | /* end confdefs.h. */ |
| 12719 | |
| 12720 | #include <string.h> |
| 12721 | #include <openssl/evp.h> |
| 12722 | |
| 12723 | int |
| 12724 | main () |
| 12725 | { |
| 12726 | |
| 12727 | exit(EVP_aes_128_ctr() == NULL || |
| 12728 | EVP_aes_192_cbc() == NULL || |
| 12729 | EVP_aes_256_cbc() == NULL); |
| 12730 | |
| 12731 | ; |
| 12732 | return 0; |
| 12733 | } |
| 12734 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12735 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12736 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12738 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12739 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12740 | $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12741 | |
| 12742 | |
| 12743 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12744 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12746 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12747 | |
| 12748 | |
| 12749 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12750 | rm -f core conftest.err conftest.$ac_objext \ |
| 12751 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12752 | |
| 12753 | # Check for OpenSSL with EVP_aes_*gcm |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 |
| 12755 | $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } |
| 12756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12757 | /* end confdefs.h. */ |
| 12758 | |
| 12759 | #include <string.h> |
| 12760 | #include <openssl/evp.h> |
| 12761 | |
| 12762 | int |
| 12763 | main () |
| 12764 | { |
| 12765 | |
| 12766 | exit(EVP_aes_128_gcm() == NULL || |
| 12767 | EVP_aes_256_gcm() == NULL || |
| 12768 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || |
| 12769 | EVP_CTRL_GCM_IV_GEN == 0 || |
| 12770 | EVP_CTRL_GCM_SET_TAG == 0 || |
| 12771 | EVP_CTRL_GCM_GET_TAG == 0 || |
| 12772 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); |
| 12773 | |
| 12774 | ; |
| 12775 | return 0; |
| 12776 | } |
| 12777 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12778 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12779 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12781 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12782 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12783 | $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12784 | |
| 12785 | |
| 12786 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12787 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12789 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12790 | unsupported_algorithms="$unsupported_cipers \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12791 | aes128-gcm@openssh.com \ |
| 12792 | aes256-gcm@openssh.com" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12793 | |
| 12794 | |
| 12795 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12796 | rm -f core conftest.err conftest.$ac_objext \ |
| 12797 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12798 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 |
| 12800 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } |
| 12801 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : |
| 12802 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12803 | else |
| 12804 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12806 | /* end confdefs.h. */ |
| 12807 | |
| 12808 | /* Override any GCC internal prototype to avoid an error. |
| 12809 | Use char because int might match the return type of a GCC |
| 12810 | builtin and then its argument prototype would still apply. */ |
| 12811 | #ifdef __cplusplus |
| 12812 | extern "C" |
| 12813 | #endif |
| 12814 | char EVP_CIPHER_CTX_ctrl (); |
| 12815 | int |
| 12816 | main () |
| 12817 | { |
| 12818 | return EVP_CIPHER_CTX_ctrl (); |
| 12819 | ; |
| 12820 | return 0; |
| 12821 | } |
| 12822 | _ACEOF |
| 12823 | for ac_lib in '' crypto; do |
| 12824 | if test -z "$ac_lib"; then |
| 12825 | ac_res="none required" |
| 12826 | else |
| 12827 | ac_res=-l$ac_lib |
| 12828 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12829 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12830 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12831 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12832 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12833 | rm -f core conftest.err conftest.$ac_objext \ |
| 12834 | conftest$ac_exeext |
| 12835 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12836 | break |
| 12837 | fi |
| 12838 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12839 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : |
| 12840 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12841 | else |
| 12842 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no |
| 12843 | fi |
| 12844 | rm conftest.$ac_ext |
| 12845 | LIBS=$ac_func_search_save_LIBS |
| 12846 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 |
| 12848 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12849 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12850 | if test "$ac_res" != no; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12851 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12852 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12853 | $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12854 | |
| 12855 | fi |
| 12856 | |
| 12857 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 |
| 12859 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } |
| 12860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12861 | /* end confdefs.h. */ |
| 12862 | |
| 12863 | #include <string.h> |
| 12864 | #include <openssl/evp.h> |
| 12865 | |
| 12866 | int |
| 12867 | main () |
| 12868 | { |
| 12869 | |
| 12870 | if(EVP_DigestUpdate(NULL, NULL,0)) |
| 12871 | exit(0); |
| 12872 | |
| 12873 | ; |
| 12874 | return 0; |
| 12875 | } |
| 12876 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12877 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12878 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12880 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12881 | |
| 12882 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12883 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12885 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12886 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12887 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12888 | |
| 12889 | |
| 12890 | |
| 12891 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12892 | rm -f core conftest.err conftest.$ac_objext \ |
| 12893 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12894 | |
| 12895 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, |
| 12896 | # because the system crypt() is more featureful. |
| 12897 | if test "x$check_for_libcrypt_before" = "x1"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 12899 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } |
| 12900 | if ${ac_cv_lib_crypt_crypt+:} false; then : |
| 12901 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12902 | else |
| 12903 | ac_check_lib_save_LIBS=$LIBS |
| 12904 | LIBS="-lcrypt $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12906 | /* end confdefs.h. */ |
| 12907 | |
| 12908 | /* Override any GCC internal prototype to avoid an error. |
| 12909 | Use char because int might match the return type of a GCC |
| 12910 | builtin and then its argument prototype would still apply. */ |
| 12911 | #ifdef __cplusplus |
| 12912 | extern "C" |
| 12913 | #endif |
| 12914 | char crypt (); |
| 12915 | int |
| 12916 | main () |
| 12917 | { |
| 12918 | return crypt (); |
| 12919 | ; |
| 12920 | return 0; |
| 12921 | } |
| 12922 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12923 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12924 | ac_cv_lib_crypt_crypt=yes |
| 12925 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12926 | ac_cv_lib_crypt_crypt=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12927 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12928 | rm -f core conftest.err conftest.$ac_objext \ |
| 12929 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12930 | LIBS=$ac_check_lib_save_LIBS |
| 12931 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 12933 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
| 12934 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12935 | cat >>confdefs.h <<_ACEOF |
| 12936 | #define HAVE_LIBCRYPT 1 |
| 12937 | _ACEOF |
| 12938 | |
| 12939 | LIBS="-lcrypt $LIBS" |
| 12940 | |
| 12941 | fi |
| 12942 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12943 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12944 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12945 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the |
| 12946 | # version in OpenSSL. |
| 12947 | if test "x$check_for_libcrypt_later" = "x1"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 12949 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } |
| 12950 | if ${ac_cv_lib_crypt_crypt+:} false; then : |
| 12951 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12952 | else |
| 12953 | ac_check_lib_save_LIBS=$LIBS |
| 12954 | LIBS="-lcrypt $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12956 | /* end confdefs.h. */ |
| 12957 | |
| 12958 | /* Override any GCC internal prototype to avoid an error. |
| 12959 | Use char because int might match the return type of a GCC |
| 12960 | builtin and then its argument prototype would still apply. */ |
| 12961 | #ifdef __cplusplus |
| 12962 | extern "C" |
| 12963 | #endif |
| 12964 | char crypt (); |
| 12965 | int |
| 12966 | main () |
| 12967 | { |
| 12968 | return crypt (); |
| 12969 | ; |
| 12970 | return 0; |
| 12971 | } |
| 12972 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12973 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12974 | ac_cv_lib_crypt_crypt=yes |
| 12975 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12976 | ac_cv_lib_crypt_crypt=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12977 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12978 | rm -f core conftest.err conftest.$ac_objext \ |
| 12979 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12980 | LIBS=$ac_check_lib_save_LIBS |
| 12981 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 12983 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
| 12984 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 12985 | LIBS="$LIBS -lcrypt" |
| 12986 | fi |
| 12987 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12988 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12989 | for ac_func in crypt DES_crypt |
| 12990 | do : |
| 12991 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12992 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12993 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12994 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 12995 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 12996 | _ACEOF |
| 12997 | |
| 12998 | fi |
| 12999 | done |
| 13000 | |
| 13001 | |
| 13002 | # Search for SHA256 support in libc and/or OpenSSL |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13003 | for ac_func in SHA256_Update EVP_sha256 |
| 13004 | do : |
| 13005 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13006 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13007 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13008 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13009 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13010 | _ACEOF |
| 13011 | |
| 13012 | else |
| 13013 | unsupported_algorithms="$unsupported_algorithms \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13014 | hmac-sha2-256 \ |
| 13015 | hmac-sha2-512 \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13016 | diffie-hellman-group-exchange-sha256 \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13017 | hmac-sha2-256-etm@openssh.com \ |
| 13018 | hmac-sha2-512-etm@openssh.com" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13019 | |
| 13020 | |
| 13021 | fi |
| 13022 | done |
| 13023 | |
| 13024 | # Search for RIPE-MD support in OpenSSL |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13025 | for ac_func in EVP_ripemd160 |
| 13026 | do : |
| 13027 | ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160" |
| 13028 | if test "x$ac_cv_func_EVP_ripemd160" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13029 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13030 | #define HAVE_EVP_RIPEMD160 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13031 | _ACEOF |
| 13032 | |
| 13033 | else |
| 13034 | unsupported_algorithms="$unsupported_algorithms \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13035 | hmac-ripemd160 \ |
| 13036 | hmac-ripemd160@openssh.com \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13037 | hmac-ripemd160-etm@openssh.com" |
| 13038 | |
| 13039 | |
| 13040 | fi |
| 13041 | done |
| 13042 | |
| 13043 | |
| 13044 | # Check complete ECC support in OpenSSL |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 |
| 13046 | $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } |
| 13047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13048 | /* end confdefs.h. */ |
| 13049 | |
| 13050 | #include <openssl/ec.h> |
| 13051 | #include <openssl/ecdh.h> |
| 13052 | #include <openssl/ecdsa.h> |
| 13053 | #include <openssl/evp.h> |
| 13054 | #include <openssl/objects.h> |
| 13055 | #include <openssl/opensslv.h> |
| 13056 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ |
| 13057 | # error "OpenSSL < 0.9.8g has unreliable ECC code" |
| 13058 | #endif |
| 13059 | |
| 13060 | int |
| 13061 | main () |
| 13062 | { |
| 13063 | |
| 13064 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); |
| 13065 | const EVP_MD *m = EVP_sha256(); /* We need this too */ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13066 | |
| 13067 | ; |
| 13068 | return 0; |
| 13069 | } |
| 13070 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13071 | if ac_fn_c_try_link "$LINENO"; then : |
| 13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13073 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13074 | enable_nistp256=1 |
| 13075 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13077 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13078 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13079 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13080 | rm -f core conftest.err conftest.$ac_objext \ |
| 13081 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13082 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 |
| 13084 | $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } |
| 13085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13086 | /* end confdefs.h. */ |
| 13087 | |
| 13088 | #include <openssl/ec.h> |
| 13089 | #include <openssl/ecdh.h> |
| 13090 | #include <openssl/ecdsa.h> |
| 13091 | #include <openssl/evp.h> |
| 13092 | #include <openssl/objects.h> |
| 13093 | #include <openssl/opensslv.h> |
| 13094 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ |
| 13095 | # error "OpenSSL < 0.9.8g has unreliable ECC code" |
| 13096 | #endif |
| 13097 | |
| 13098 | int |
| 13099 | main () |
| 13100 | { |
| 13101 | |
| 13102 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); |
| 13103 | const EVP_MD *m = EVP_sha384(); /* We need this too */ |
| 13104 | |
| 13105 | ; |
| 13106 | return 0; |
| 13107 | } |
| 13108 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13109 | if ac_fn_c_try_link "$LINENO"; then : |
| 13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13111 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13112 | enable_nistp384=1 |
| 13113 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13115 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13116 | |
| 13117 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13118 | rm -f core conftest.err conftest.$ac_objext \ |
| 13119 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13120 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 |
| 13122 | $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } |
| 13123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13124 | /* end confdefs.h. */ |
| 13125 | |
| 13126 | #include <openssl/ec.h> |
| 13127 | #include <openssl/ecdh.h> |
| 13128 | #include <openssl/ecdsa.h> |
| 13129 | #include <openssl/evp.h> |
| 13130 | #include <openssl/objects.h> |
| 13131 | #include <openssl/opensslv.h> |
| 13132 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ |
| 13133 | # error "OpenSSL < 0.9.8g has unreliable ECC code" |
| 13134 | #endif |
| 13135 | |
| 13136 | int |
| 13137 | main () |
| 13138 | { |
| 13139 | |
| 13140 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); |
| 13141 | const EVP_MD *m = EVP_sha512(); /* We need this too */ |
| 13142 | |
| 13143 | ; |
| 13144 | return 0; |
| 13145 | } |
| 13146 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13147 | if ac_fn_c_try_link "$LINENO"; then : |
| 13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13149 | $as_echo "yes" >&6; } |
| 13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 |
| 13151 | $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } |
| 13152 | if test "$cross_compiling" = yes; then : |
| 13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 |
| 13154 | $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13155 | enable_nistp521=1 |
| 13156 | |
| 13157 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13159 | /* end confdefs.h. */ |
| 13160 | |
| 13161 | #include <openssl/ec.h> |
| 13162 | #include <openssl/ecdh.h> |
| 13163 | #include <openssl/ecdsa.h> |
| 13164 | #include <openssl/evp.h> |
| 13165 | #include <openssl/objects.h> |
| 13166 | #include <openssl/opensslv.h> |
| 13167 | |
| 13168 | int |
| 13169 | main () |
| 13170 | { |
| 13171 | |
| 13172 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); |
| 13173 | const EVP_MD *m = EVP_sha512(); /* We need this too */ |
| 13174 | exit(e == NULL || m == NULL); |
| 13175 | |
| 13176 | ; |
| 13177 | return 0; |
| 13178 | } |
| 13179 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13180 | if ac_fn_c_try_run "$LINENO"; then : |
| 13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13182 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13183 | enable_nistp521=1 |
| 13184 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13186 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13187 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13188 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13189 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13190 | fi |
| 13191 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13192 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13194 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13195 | |
| 13196 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13197 | rm -f core conftest.err conftest.$ac_objext \ |
| 13198 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13199 | |
| 13200 | COMMENT_OUT_ECC="#no ecc#" |
| 13201 | TEST_SSH_ECC=no |
| 13202 | |
| 13203 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ |
| 13204 | test x$enable_nistp521 = x1; then |
| 13205 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13206 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13207 | |
| 13208 | fi |
| 13209 | if test x$enable_nistp256 = x1; then |
| 13210 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13211 | $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13212 | |
| 13213 | TEST_SSH_ECC=yes |
| 13214 | COMMENT_OUT_ECC="" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13215 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13216 | unsupported_algorithms="$unsupported_algorithms \ |
| 13217 | ecdsa-sha2-nistp256 \ |
| 13218 | ecdh-sha2-nistp256 \ |
| 13219 | ecdsa-sha2-nistp256-cert-v01@openssh.com" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13220 | fi |
| 13221 | if test x$enable_nistp384 = x1; then |
| 13222 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13223 | $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13224 | |
| 13225 | TEST_SSH_ECC=yes |
| 13226 | COMMENT_OUT_ECC="" |
| 13227 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13228 | unsupported_algorithms="$unsupported_algorithms \ |
| 13229 | ecdsa-sha2-nistp384 \ |
| 13230 | ecdh-sha2-nistp384 \ |
| 13231 | ecdsa-sha2-nistp384-cert-v01@openssh.com" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13232 | fi |
| 13233 | if test x$enable_nistp521 = x1; then |
| 13234 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13235 | $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13236 | |
| 13237 | TEST_SSH_ECC=yes |
| 13238 | COMMENT_OUT_ECC="" |
| 13239 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13240 | unsupported_algorithms="$unsupported_algorithms \ |
| 13241 | ecdh-sha2-nistp521 \ |
| 13242 | ecdsa-sha2-nistp521 \ |
| 13243 | ecdsa-sha2-nistp521-cert-v01@openssh.com" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13244 | fi |
| 13245 | |
| 13246 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13247 | |
| 13248 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 13250 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } |
| 13251 | if ${ac_cv_lib_crypt_crypt+:} false; then : |
| 13252 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13253 | else |
| 13254 | ac_check_lib_save_LIBS=$LIBS |
| 13255 | LIBS="-lcrypt $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13257 | /* end confdefs.h. */ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13258 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13259 | /* Override any GCC internal prototype to avoid an error. |
| 13260 | Use char because int might match the return type of a GCC |
| 13261 | builtin and then its argument prototype would still apply. */ |
| 13262 | #ifdef __cplusplus |
| 13263 | extern "C" |
| 13264 | #endif |
| 13265 | char crypt (); |
| 13266 | int |
| 13267 | main () |
| 13268 | { |
| 13269 | return crypt (); |
| 13270 | ; |
| 13271 | return 0; |
| 13272 | } |
| 13273 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13274 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13275 | ac_cv_lib_crypt_crypt=yes |
| 13276 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13277 | ac_cv_lib_crypt_crypt=no |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13278 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13279 | rm -f core conftest.err conftest.$ac_objext \ |
| 13280 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13281 | LIBS=$ac_check_lib_save_LIBS |
| 13282 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 13284 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
| 13285 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13286 | LIBS="$LIBS -lcrypt" |
| 13287 | fi |
| 13288 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13289 | for ac_func in crypt |
| 13290 | do : |
| 13291 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" |
| 13292 | if test "x$ac_cv_func_crypt" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13293 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13294 | #define HAVE_CRYPT 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13295 | _ACEOF |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13296 | |
| 13297 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13298 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13299 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13300 | fi |
| 13301 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13302 | for ac_func in \ |
| 13303 | arc4random \ |
| 13304 | arc4random_buf \ |
| 13305 | arc4random_stir \ |
| 13306 | arc4random_uniform \ |
| 13307 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13308 | do : |
| 13309 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13310 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13311 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13312 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13313 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13314 | _ACEOF |
| 13315 | |
| 13316 | fi |
| 13317 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13318 | |
| 13319 | |
| 13320 | saved_LIBS="$LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 |
| 13322 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } |
| 13323 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : |
| 13324 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13325 | else |
| 13326 | ac_check_lib_save_LIBS=$LIBS |
| 13327 | LIBS="-liaf $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13329 | /* end confdefs.h. */ |
| 13330 | |
| 13331 | /* Override any GCC internal prototype to avoid an error. |
| 13332 | Use char because int might match the return type of a GCC |
| 13333 | builtin and then its argument prototype would still apply. */ |
| 13334 | #ifdef __cplusplus |
| 13335 | extern "C" |
| 13336 | #endif |
| 13337 | char ia_openinfo (); |
| 13338 | int |
| 13339 | main () |
| 13340 | { |
| 13341 | return ia_openinfo (); |
| 13342 | ; |
| 13343 | return 0; |
| 13344 | } |
| 13345 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13346 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13347 | ac_cv_lib_iaf_ia_openinfo=yes |
| 13348 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13349 | ac_cv_lib_iaf_ia_openinfo=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13350 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13351 | rm -f core conftest.err conftest.$ac_objext \ |
| 13352 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13353 | LIBS=$ac_check_lib_save_LIBS |
| 13354 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 |
| 13356 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } |
| 13357 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13358 | |
| 13359 | LIBS="$LIBS -liaf" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13360 | for ac_func in set_id |
| 13361 | do : |
| 13362 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" |
| 13363 | if test "x$ac_cv_func_set_id" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13364 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13365 | #define HAVE_SET_ID 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13366 | _ACEOF |
| 13367 | SSHDLIBS="$SSHDLIBS -liaf" |
| 13368 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13369 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13370 | |
| 13371 | |
| 13372 | fi |
| 13373 | done |
| 13374 | |
| 13375 | |
| 13376 | fi |
| 13377 | |
| 13378 | LIBS="$saved_LIBS" |
| 13379 | |
| 13380 | ### Configure cryptographic random number support |
| 13381 | |
| 13382 | # Check wheter OpenSSL seeds itself |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13383 | if test "x$openssl" = "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 |
| 13385 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } |
| 13386 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13387 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 13389 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13390 | # This is safe, since we will fatal() at runtime if |
| 13391 | # OpenSSL is not seeded correctly. |
| 13392 | OPENSSL_SEEDS_ITSELF=yes |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13393 | |
| 13394 | |
| 13395 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13397 | /* end confdefs.h. */ |
| 13398 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13399 | #include <string.h> |
| 13400 | #include <openssl/rand.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13401 | |
| 13402 | int |
| 13403 | main () |
| 13404 | { |
| 13405 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13406 | exit(RAND_status() == 1 ? 0 : 1); |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13407 | |
| 13408 | ; |
| 13409 | return 0; |
| 13410 | } |
| 13411 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13412 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13413 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13414 | OPENSSL_SEEDS_ITSELF=yes |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13416 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13417 | |
| 13418 | else |
| 13419 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13421 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13422 | |
| 13423 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13424 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13425 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13426 | fi |
| 13427 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13428 | fi |
| 13429 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13430 | # PRNGD TCP socket |
| 13431 | |
| 13432 | # Check whether --with-prngd-port was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13433 | if test "${with_prngd_port+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13434 | withval=$with_prngd_port; |
| 13435 | case "$withval" in |
| 13436 | no) |
| 13437 | withval="" |
| 13438 | ;; |
| 13439 | [0-9]*) |
| 13440 | ;; |
| 13441 | *) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13442 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13443 | ;; |
| 13444 | esac |
| 13445 | if test ! -z "$withval" ; then |
| 13446 | PRNGD_PORT="$withval" |
| 13447 | |
| 13448 | cat >>confdefs.h <<_ACEOF |
| 13449 | #define PRNGD_PORT $PRNGD_PORT |
| 13450 | _ACEOF |
| 13451 | |
| 13452 | fi |
| 13453 | |
| 13454 | |
| 13455 | fi |
| 13456 | |
| 13457 | |
| 13458 | # PRNGD Unix domain socket |
| 13459 | |
| 13460 | # Check whether --with-prngd-socket was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13461 | if test "${with_prngd_socket+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13462 | withval=$with_prngd_socket; |
| 13463 | case "$withval" in |
| 13464 | yes) |
| 13465 | withval="/var/run/egd-pool" |
| 13466 | ;; |
| 13467 | no) |
| 13468 | withval="" |
| 13469 | ;; |
| 13470 | /*) |
| 13471 | ;; |
| 13472 | *) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13473 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13474 | ;; |
| 13475 | esac |
| 13476 | |
| 13477 | if test ! -z "$withval" ; then |
| 13478 | if test ! -z "$PRNGD_PORT" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13479 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13480 | fi |
| 13481 | if test ! -r "$withval" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 |
| 13483 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13484 | fi |
| 13485 | PRNGD_SOCKET="$withval" |
| 13486 | |
| 13487 | cat >>confdefs.h <<_ACEOF |
| 13488 | #define PRNGD_SOCKET "$PRNGD_SOCKET" |
| 13489 | _ACEOF |
| 13490 | |
| 13491 | fi |
| 13492 | |
| 13493 | else |
| 13494 | |
| 13495 | # Check for existing socket only if we don't have a random device already |
| 13496 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 |
| 13498 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13499 | # Insert other locations here |
| 13500 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do |
| 13501 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then |
| 13502 | PRNGD_SOCKET="$sock" |
| 13503 | cat >>confdefs.h <<_ACEOF |
| 13504 | #define PRNGD_SOCKET "$PRNGD_SOCKET" |
| 13505 | _ACEOF |
| 13506 | |
| 13507 | break; |
| 13508 | fi |
| 13509 | done |
| 13510 | if test ! -z "$PRNGD_SOCKET" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 |
| 13512 | $as_echo "$PRNGD_SOCKET" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13513 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 13515 | $as_echo "not found" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13516 | fi |
| 13517 | fi |
| 13518 | |
| 13519 | |
| 13520 | fi |
| 13521 | |
| 13522 | |
| 13523 | # Which randomness source do we use? |
| 13524 | if test ! -z "$PRNGD_PORT" ; then |
| 13525 | RAND_MSG="PRNGd port $PRNGD_PORT" |
| 13526 | elif test ! -z "$PRNGD_SOCKET" ; then |
| 13527 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" |
| 13528 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then |
| 13529 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13530 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13531 | |
| 13532 | RAND_MSG="OpenSSL internal ONLY" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13533 | elif test "x$openssl" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5 |
| 13535 | $as_echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13536 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13537 | 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 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13538 | fi |
| 13539 | |
| 13540 | # Check for PAM libs |
| 13541 | PAM_MSG="no" |
| 13542 | |
| 13543 | # Check whether --with-pam was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13544 | if test "${with_pam+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13545 | withval=$with_pam; |
| 13546 | if test "x$withval" != "xno" ; then |
| 13547 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ |
| 13548 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13549 | as_fn_error $? "PAM headers not found" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13550 | fi |
| 13551 | |
| 13552 | saved_LIBS="$LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13554 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 13555 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 13556 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13557 | else |
| 13558 | ac_check_lib_save_LIBS=$LIBS |
| 13559 | LIBS="-ldl $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13561 | /* end confdefs.h. */ |
| 13562 | |
| 13563 | /* Override any GCC internal prototype to avoid an error. |
| 13564 | Use char because int might match the return type of a GCC |
| 13565 | builtin and then its argument prototype would still apply. */ |
| 13566 | #ifdef __cplusplus |
| 13567 | extern "C" |
| 13568 | #endif |
| 13569 | char dlopen (); |
| 13570 | int |
| 13571 | main () |
| 13572 | { |
| 13573 | return dlopen (); |
| 13574 | ; |
| 13575 | return 0; |
| 13576 | } |
| 13577 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13578 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13579 | ac_cv_lib_dl_dlopen=yes |
| 13580 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13581 | ac_cv_lib_dl_dlopen=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13582 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13583 | rm -f core conftest.err conftest.$ac_objext \ |
| 13584 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13585 | LIBS=$ac_check_lib_save_LIBS |
| 13586 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13588 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 13589 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13590 | cat >>confdefs.h <<_ACEOF |
| 13591 | #define HAVE_LIBDL 1 |
| 13592 | _ACEOF |
| 13593 | |
| 13594 | LIBS="-ldl $LIBS" |
| 13595 | |
| 13596 | fi |
| 13597 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 |
| 13599 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } |
| 13600 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : |
| 13601 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13602 | else |
| 13603 | ac_check_lib_save_LIBS=$LIBS |
| 13604 | LIBS="-lpam $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13606 | /* end confdefs.h. */ |
| 13607 | |
| 13608 | /* Override any GCC internal prototype to avoid an error. |
| 13609 | Use char because int might match the return type of a GCC |
| 13610 | builtin and then its argument prototype would still apply. */ |
| 13611 | #ifdef __cplusplus |
| 13612 | extern "C" |
| 13613 | #endif |
| 13614 | char pam_set_item (); |
| 13615 | int |
| 13616 | main () |
| 13617 | { |
| 13618 | return pam_set_item (); |
| 13619 | ; |
| 13620 | return 0; |
| 13621 | } |
| 13622 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13623 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13624 | ac_cv_lib_pam_pam_set_item=yes |
| 13625 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13626 | ac_cv_lib_pam_pam_set_item=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13627 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13628 | rm -f core conftest.err conftest.$ac_objext \ |
| 13629 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13630 | LIBS=$ac_check_lib_save_LIBS |
| 13631 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 |
| 13633 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } |
| 13634 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13635 | cat >>confdefs.h <<_ACEOF |
| 13636 | #define HAVE_LIBPAM 1 |
| 13637 | _ACEOF |
| 13638 | |
| 13639 | LIBS="-lpam $LIBS" |
| 13640 | |
| 13641 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13642 | as_fn_error $? "*** libpam missing" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13643 | fi |
| 13644 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13645 | for ac_func in pam_getenvlist |
| 13646 | do : |
| 13647 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" |
| 13648 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13649 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13650 | #define HAVE_PAM_GETENVLIST 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13651 | _ACEOF |
| 13652 | |
| 13653 | fi |
| 13654 | done |
| 13655 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13656 | for ac_func in pam_putenv |
| 13657 | do : |
| 13658 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" |
| 13659 | if test "x$ac_cv_func_pam_putenv" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13660 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13661 | #define HAVE_PAM_PUTENV 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13662 | _ACEOF |
| 13663 | |
| 13664 | fi |
| 13665 | done |
| 13666 | |
| 13667 | LIBS="$saved_LIBS" |
| 13668 | |
| 13669 | PAM_MSG="yes" |
| 13670 | |
| 13671 | SSHDLIBS="$SSHDLIBS -lpam" |
| 13672 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13673 | $as_echo "#define USE_PAM 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13674 | |
| 13675 | |
| 13676 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13677 | case "$LIBS" in |
| 13678 | *-ldl*) |
| 13679 | # libdl already in LIBS |
| 13680 | ;; |
| 13681 | *) |
| 13682 | SSHDLIBS="$SSHDLIBS -ldl" |
| 13683 | ;; |
| 13684 | esac |
| 13685 | fi |
| 13686 | fi |
| 13687 | |
| 13688 | |
| 13689 | fi |
| 13690 | |
| 13691 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13692 | |
| 13693 | # Check whether --with-pam-service was given. |
| 13694 | if test "${with_pam_service+set}" = set; then : |
| 13695 | withval=$with_pam_service; |
| 13696 | if test "x$withval" != "xno" && \ |
| 13697 | test "x$withval" != "xyes" ; then |
| 13698 | |
| 13699 | cat >>confdefs.h <<_ACEOF |
| 13700 | #define SSHD_PAM_SERVICE "$withval" |
| 13701 | _ACEOF |
| 13702 | |
| 13703 | fi |
| 13704 | |
| 13705 | |
| 13706 | fi |
| 13707 | |
| 13708 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13709 | # Check for older PAM |
| 13710 | if test "x$PAM_MSG" = "xyes" ; then |
| 13711 | # Check PAM strerror arguments (old PAM) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 |
| 13713 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } |
| 13714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13715 | /* end confdefs.h. */ |
| 13716 | |
| 13717 | #include <stdlib.h> |
| 13718 | #if defined(HAVE_SECURITY_PAM_APPL_H) |
| 13719 | #include <security/pam_appl.h> |
| 13720 | #elif defined (HAVE_PAM_PAM_APPL_H) |
| 13721 | #include <pam/pam_appl.h> |
| 13722 | #endif |
| 13723 | |
| 13724 | int |
| 13725 | main () |
| 13726 | { |
| 13727 | |
| 13728 | (void)pam_strerror((pam_handle_t *)NULL, -1); |
| 13729 | |
| 13730 | ; |
| 13731 | return 0; |
| 13732 | } |
| 13733 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13734 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13736 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13737 | else |
| 13738 | |
| 13739 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13740 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13741 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13743 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13744 | PAM_MSG="yes (old library)" |
| 13745 | |
| 13746 | |
| 13747 | fi |
| 13748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13749 | fi |
| 13750 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13751 | case "$host" in |
| 13752 | *-*-cygwin*) |
| 13753 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER |
| 13754 | ;; |
| 13755 | *) |
| 13756 | SSH_PRIVSEP_USER=sshd |
| 13757 | ;; |
| 13758 | esac |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13759 | |
| 13760 | # Check whether --with-privsep-user was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13761 | if test "${with_privsep_user+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13762 | withval=$with_privsep_user; |
| 13763 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 13764 | test "x${withval}" != "xyes"; then |
| 13765 | SSH_PRIVSEP_USER=$withval |
| 13766 | fi |
| 13767 | |
| 13768 | |
| 13769 | fi |
| 13770 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13771 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then |
| 13772 | |
| 13773 | cat >>confdefs.h <<_ACEOF |
| 13774 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER |
| 13775 | _ACEOF |
| 13776 | |
| 13777 | else |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13778 | |
| 13779 | cat >>confdefs.h <<_ACEOF |
| 13780 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" |
| 13781 | _ACEOF |
| 13782 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13783 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13784 | |
| 13785 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13786 | if test "x$have_linux_no_new_privs" = "x1" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13787 | ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13788 | #include <sys/types.h> |
| 13789 | #include <linux/seccomp.h> |
| 13790 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13791 | " |
| 13792 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13793 | have_seccomp_filter=1 |
| 13794 | fi |
| 13795 | |
| 13796 | fi |
| 13797 | if test "x$have_seccomp_filter" = "x1" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 |
| 13799 | $as_echo_n "checking kernel for seccomp_filter support... " >&6; } |
| 13800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13801 | /* end confdefs.h. */ |
| 13802 | |
| 13803 | #include <errno.h> |
| 13804 | #include <elf.h> |
| 13805 | #include <linux/audit.h> |
| 13806 | #include <linux/seccomp.h> |
| 13807 | #include <stdlib.h> |
| 13808 | #include <sys/prctl.h> |
| 13809 | |
| 13810 | int |
| 13811 | main () |
| 13812 | { |
| 13813 | int i = $seccomp_audit_arch; |
| 13814 | errno = 0; |
| 13815 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); |
| 13816 | exit(errno == EFAULT ? 0 : 1); |
| 13817 | ; |
| 13818 | return 0; |
| 13819 | } |
| 13820 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13821 | if ac_fn_c_try_link "$LINENO"; then : |
| 13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13823 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13824 | else |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13825 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13827 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13828 | # Disable seccomp filter as a target |
| 13829 | have_seccomp_filter=0 |
| 13830 | |
| 13831 | |
| 13832 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13833 | rm -f core conftest.err conftest.$ac_objext \ |
| 13834 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13835 | fi |
| 13836 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13837 | # Decide which sandbox style to use |
| 13838 | sandbox_arg="" |
| 13839 | |
| 13840 | # Check whether --with-sandbox was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13841 | if test "${with_sandbox+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 13842 | withval=$with_sandbox; |
| 13843 | if test "x$withval" = "xyes" ; then |
| 13844 | sandbox_arg="" |
| 13845 | else |
| 13846 | sandbox_arg="$withval" |
| 13847 | fi |
| 13848 | |
| 13849 | |
| 13850 | fi |
| 13851 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13852 | |
| 13853 | # Some platforms (seems to be the ones that have a kernel poll(2)-type |
| 13854 | # function with which they implement select(2)) use an extra file descriptor |
| 13855 | # when calling select(2), which means we can't use the rlimit sandbox. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 |
| 13857 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } |
| 13858 | if test "$cross_compiling" = yes; then : |
| 13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 13860 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13861 | |
| 13862 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13864 | /* end confdefs.h. */ |
| 13865 | |
| 13866 | #include <sys/types.h> |
| 13867 | #ifdef HAVE_SYS_TIME_H |
| 13868 | # include <sys/time.h> |
| 13869 | #endif |
| 13870 | #include <sys/resource.h> |
| 13871 | #ifdef HAVE_SYS_SELECT_H |
| 13872 | # include <sys/select.h> |
| 13873 | #endif |
| 13874 | #include <errno.h> |
| 13875 | #include <fcntl.h> |
| 13876 | #include <stdlib.h> |
| 13877 | |
| 13878 | int |
| 13879 | main () |
| 13880 | { |
| 13881 | |
| 13882 | struct rlimit rl_zero; |
| 13883 | int fd, r; |
| 13884 | fd_set fds; |
| 13885 | struct timeval tv; |
| 13886 | |
| 13887 | fd = open("/dev/null", O_RDONLY); |
| 13888 | FD_ZERO(&fds); |
| 13889 | FD_SET(fd, &fds); |
| 13890 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; |
| 13891 | setrlimit(RLIMIT_FSIZE, &rl_zero); |
| 13892 | setrlimit(RLIMIT_NOFILE, &rl_zero); |
| 13893 | tv.tv_sec = 1; |
| 13894 | tv.tv_usec = 0; |
| 13895 | r = select(fd+1, &fds, NULL, NULL, &tv); |
| 13896 | exit (r == -1 ? 1 : 0); |
| 13897 | |
| 13898 | ; |
| 13899 | return 0; |
| 13900 | } |
| 13901 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13902 | if ac_fn_c_try_run "$LINENO"; then : |
| 13903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13904 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13905 | select_works_with_rlimit=yes |
| 13906 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13908 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13909 | select_works_with_rlimit=no |
| 13910 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13911 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13912 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13913 | fi |
| 13914 | |
| 13915 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 |
| 13917 | $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } |
| 13918 | if test "$cross_compiling" = yes; then : |
| 13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 13920 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13921 | |
| 13922 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13924 | /* end confdefs.h. */ |
| 13925 | |
| 13926 | #include <sys/types.h> |
| 13927 | #ifdef HAVE_SYS_TIME_H |
| 13928 | # include <sys/time.h> |
| 13929 | #endif |
| 13930 | #include <sys/resource.h> |
| 13931 | #include <errno.h> |
| 13932 | #include <stdlib.h> |
| 13933 | |
| 13934 | int |
| 13935 | main () |
| 13936 | { |
| 13937 | |
| 13938 | struct rlimit rl_zero; |
| 13939 | int fd, r; |
| 13940 | fd_set fds; |
| 13941 | |
| 13942 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; |
| 13943 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); |
| 13944 | exit (r == -1 ? 1 : 0); |
| 13945 | |
| 13946 | ; |
| 13947 | return 0; |
| 13948 | } |
| 13949 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13950 | if ac_fn_c_try_run "$LINENO"; then : |
| 13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13952 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13953 | rlimit_nofile_zero_works=yes |
| 13954 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13956 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13957 | rlimit_nofile_zero_works=no |
| 13958 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13959 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13960 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13961 | fi |
| 13962 | |
| 13963 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 |
| 13965 | $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } |
| 13966 | if test "$cross_compiling" = yes; then : |
| 13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 13968 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13969 | |
| 13970 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13972 | /* end confdefs.h. */ |
| 13973 | |
| 13974 | #include <sys/types.h> |
| 13975 | #include <sys/resource.h> |
| 13976 | #include <stdlib.h> |
| 13977 | |
| 13978 | int |
| 13979 | main () |
| 13980 | { |
| 13981 | |
| 13982 | struct rlimit rl_zero; |
| 13983 | |
| 13984 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; |
| 13985 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); |
| 13986 | |
| 13987 | ; |
| 13988 | return 0; |
| 13989 | } |
| 13990 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13991 | if ac_fn_c_try_run "$LINENO"; then : |
| 13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13993 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13994 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13996 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13997 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 13998 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 13999 | |
| 14000 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14002 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14003 | fi |
| 14004 | |
| 14005 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14006 | if test "x$sandbox_arg" = "xpledge" || \ |
| 14007 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then |
| 14008 | test "x$ac_cv_func_pledge" != "xyes" && \ |
| 14009 | as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5 |
| 14010 | SANDBOX_STYLE="pledge" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14011 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14012 | $as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h |
| 14013 | |
| 14014 | elif test "x$sandbox_arg" = "xsystrace" || \ |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14015 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then |
| 14016 | test "x$have_systr_policy_kill" != "x1" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14017 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14018 | SANDBOX_STYLE="systrace" |
| 14019 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14020 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14021 | |
| 14022 | elif test "x$sandbox_arg" = "xdarwin" || \ |
| 14023 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ |
| 14024 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then |
| 14025 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ |
| 14026 | "x$ac_cv_header_sandbox_h" != "xyes" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14027 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14028 | SANDBOX_STYLE="darwin" |
| 14029 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14030 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14031 | |
| 14032 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ |
| 14033 | ( test -z "$sandbox_arg" && \ |
| 14034 | test "x$have_seccomp_filter" = "x1" && \ |
| 14035 | test "x$ac_cv_header_elf_h" = "xyes" && \ |
| 14036 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ |
| 14037 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ |
| 14038 | test "x$seccomp_audit_arch" != "x" && \ |
| 14039 | test "x$have_linux_no_new_privs" = "x1" && \ |
| 14040 | test "x$ac_cv_func_prctl" = "xyes" ) ; then |
| 14041 | test "x$seccomp_audit_arch" = "x" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14042 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14043 | test "x$have_linux_no_new_privs" != "x1" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14044 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14045 | test "x$have_seccomp_filter" != "x1" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14046 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14047 | test "x$ac_cv_func_prctl" != "xyes" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14048 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14049 | SANDBOX_STYLE="seccomp_filter" |
| 14050 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14051 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14052 | |
| 14053 | elif test "x$sandbox_arg" = "xcapsicum" || \ |
| 14054 | ( test -z "$sandbox_arg" && \ |
| 14055 | test "x$ac_cv_header_sys_capability_h" = "xyes" && \ |
| 14056 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then |
| 14057 | test "x$ac_cv_header_sys_capability_h" != "xyes" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14058 | as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14059 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14060 | as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14061 | SANDBOX_STYLE="capsicum" |
| 14062 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14063 | $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14064 | |
| 14065 | elif test "x$sandbox_arg" = "xrlimit" || \ |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14066 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ |
| 14067 | test "x$select_works_with_rlimit" = "xyes" && \ |
| 14068 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14069 | test "x$ac_cv_func_setrlimit" != "xyes" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14070 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14071 | test "x$select_works_with_rlimit" != "xyes" && \ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14072 | as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14073 | SANDBOX_STYLE="rlimit" |
| 14074 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14075 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h |
| 14076 | |
| 14077 | elif test "x$sandbox_arg" = "xsolaris" || \ |
| 14078 | ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then |
| 14079 | SANDBOX_STYLE="solaris" |
| 14080 | |
| 14081 | $as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14082 | |
| 14083 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ |
| 14084 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then |
| 14085 | SANDBOX_STYLE="none" |
| 14086 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14087 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14088 | |
| 14089 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14090 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14091 | fi |
| 14092 | |
| 14093 | # Cheap hack to ensure NEWS-OS libraries are arranged right. |
| 14094 | if test ! -z "$SONY" ; then |
| 14095 | LIBS="$LIBS -liberty"; |
| 14096 | fi |
| 14097 | |
| 14098 | # Check for long long datatypes |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14099 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 14100 | if test "x$ac_cv_type_long_long" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14101 | |
| 14102 | cat >>confdefs.h <<_ACEOF |
| 14103 | #define HAVE_LONG_LONG 1 |
| 14104 | _ACEOF |
| 14105 | |
| 14106 | |
| 14107 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14108 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" |
| 14109 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14110 | |
| 14111 | cat >>confdefs.h <<_ACEOF |
| 14112 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 14113 | _ACEOF |
| 14114 | |
| 14115 | |
| 14116 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14117 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" |
| 14118 | if test "x$ac_cv_type_long_double" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14119 | |
| 14120 | cat >>confdefs.h <<_ACEOF |
| 14121 | #define HAVE_LONG_DOUBLE 1 |
| 14122 | _ACEOF |
| 14123 | |
| 14124 | |
| 14125 | fi |
| 14126 | |
| 14127 | |
| 14128 | # Check datatype sizes |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14129 | # The cast to long int works around a bug in the HP C Compiler |
| 14130 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14131 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14132 | # This bug is HP SR number 8606223364. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 |
| 14134 | $as_echo_n "checking size of short int... " >&6; } |
| 14135 | if ${ac_cv_sizeof_short_int+:} false; then : |
| 14136 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14137 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14138 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14139 | |
| 14140 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14141 | if test "$ac_cv_type_short_int" = yes; then |
| 14142 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14143 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14144 | as_fn_error 77 "cannot compute sizeof (short int) |
| 14145 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14146 | else |
| 14147 | ac_cv_sizeof_short_int=0 |
| 14148 | fi |
| 14149 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14150 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14151 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 |
| 14153 | $as_echo "$ac_cv_sizeof_short_int" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14154 | |
| 14155 | |
| 14156 | |
| 14157 | cat >>confdefs.h <<_ACEOF |
| 14158 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int |
| 14159 | _ACEOF |
| 14160 | |
| 14161 | |
| 14162 | # The cast to long int works around a bug in the HP C Compiler |
| 14163 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14164 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14165 | # This bug is HP SR number 8606223364. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 14167 | $as_echo_n "checking size of int... " >&6; } |
| 14168 | if ${ac_cv_sizeof_int+:} false; then : |
| 14169 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14170 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14171 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14172 | |
| 14173 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14174 | if test "$ac_cv_type_int" = yes; then |
| 14175 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14176 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14177 | as_fn_error 77 "cannot compute sizeof (int) |
| 14178 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14179 | else |
| 14180 | ac_cv_sizeof_int=0 |
| 14181 | fi |
| 14182 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14183 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14184 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 14186 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14187 | |
| 14188 | |
| 14189 | |
| 14190 | cat >>confdefs.h <<_ACEOF |
| 14191 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 14192 | _ACEOF |
| 14193 | |
| 14194 | |
| 14195 | # The cast to long int works around a bug in the HP C Compiler |
| 14196 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14197 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14198 | # This bug is HP SR number 8606223364. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 |
| 14200 | $as_echo_n "checking size of long int... " >&6; } |
| 14201 | if ${ac_cv_sizeof_long_int+:} false; then : |
| 14202 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14203 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14204 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14205 | |
| 14206 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14207 | if test "$ac_cv_type_long_int" = yes; then |
| 14208 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14209 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14210 | as_fn_error 77 "cannot compute sizeof (long int) |
| 14211 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14212 | else |
| 14213 | ac_cv_sizeof_long_int=0 |
| 14214 | fi |
| 14215 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14216 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14217 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 |
| 14219 | $as_echo "$ac_cv_sizeof_long_int" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14220 | |
| 14221 | |
| 14222 | |
| 14223 | cat >>confdefs.h <<_ACEOF |
| 14224 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int |
| 14225 | _ACEOF |
| 14226 | |
| 14227 | |
| 14228 | # The cast to long int works around a bug in the HP C Compiler |
| 14229 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14230 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14231 | # This bug is HP SR number 8606223364. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 |
| 14233 | $as_echo_n "checking size of long long int... " >&6; } |
| 14234 | if ${ac_cv_sizeof_long_long_int+:} false; then : |
| 14235 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14236 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14237 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14238 | |
| 14239 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14240 | if test "$ac_cv_type_long_long_int" = yes; then |
| 14241 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14242 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14243 | as_fn_error 77 "cannot compute sizeof (long long int) |
| 14244 | See \`config.log' for more details" "$LINENO" 5; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14245 | else |
| 14246 | ac_cv_sizeof_long_long_int=0 |
| 14247 | fi |
| 14248 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14249 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14250 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 |
| 14252 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14253 | |
| 14254 | |
| 14255 | |
| 14256 | cat >>confdefs.h <<_ACEOF |
| 14257 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int |
| 14258 | _ACEOF |
| 14259 | |
| 14260 | |
| 14261 | |
| 14262 | # Sanity check long long for some platforms (AIX) |
| 14263 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then |
| 14264 | ac_cv_sizeof_long_long_int=0 |
| 14265 | fi |
| 14266 | |
| 14267 | # compute LLONG_MIN and LLONG_MAX if we don't know them. |
| 14268 | if test -z "$have_llong_max"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 |
| 14270 | $as_echo_n "checking for max value of long long... " >&6; } |
| 14271 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14272 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 14274 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14275 | |
| 14276 | |
| 14277 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14279 | /* end confdefs.h. */ |
| 14280 | |
| 14281 | #include <stdio.h> |
| 14282 | /* Why is this so damn hard? */ |
| 14283 | #ifdef __GNUC__ |
| 14284 | # undef __GNUC__ |
| 14285 | #endif |
| 14286 | #define __USE_ISOC99 |
| 14287 | #include <limits.h> |
| 14288 | #define DATA "conftest.llminmax" |
| 14289 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) |
| 14290 | |
| 14291 | /* |
| 14292 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so |
| 14293 | * we do this the hard way. |
| 14294 | */ |
| 14295 | static int |
| 14296 | fprint_ll(FILE *f, long long n) |
| 14297 | { |
| 14298 | unsigned int i; |
| 14299 | int l[sizeof(long long) * 8]; |
| 14300 | |
| 14301 | if (n < 0) |
| 14302 | if (fprintf(f, "-") < 0) |
| 14303 | return -1; |
| 14304 | for (i = 0; n != 0; i++) { |
| 14305 | l[i] = my_abs(n % 10); |
| 14306 | n /= 10; |
| 14307 | } |
| 14308 | do { |
| 14309 | if (fprintf(f, "%d", l[--i]) < 0) |
| 14310 | return -1; |
| 14311 | } while (i != 0); |
| 14312 | if (fprintf(f, " ") < 0) |
| 14313 | return -1; |
| 14314 | return 0; |
| 14315 | } |
| 14316 | |
| 14317 | int |
| 14318 | main () |
| 14319 | { |
| 14320 | |
| 14321 | FILE *f; |
| 14322 | long long i, llmin, llmax = 0; |
| 14323 | |
| 14324 | if((f = fopen(DATA,"w")) == NULL) |
| 14325 | exit(1); |
| 14326 | |
| 14327 | #if defined(LLONG_MIN) && defined(LLONG_MAX) |
| 14328 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); |
| 14329 | llmin = LLONG_MIN; |
| 14330 | llmax = LLONG_MAX; |
| 14331 | #else |
| 14332 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); |
| 14333 | /* This will work on one's complement and two's complement */ |
| 14334 | for (i = 1; i > llmax; i <<= 1, i++) |
| 14335 | llmax = i; |
| 14336 | llmin = llmax + 1LL; /* wrap */ |
| 14337 | #endif |
| 14338 | |
| 14339 | /* Sanity check */ |
| 14340 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax |
| 14341 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 |
| 14342 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { |
| 14343 | fprintf(f, "unknown unknown\n"); |
| 14344 | exit(2); |
| 14345 | } |
| 14346 | |
| 14347 | if (fprint_ll(f, llmin) < 0) |
| 14348 | exit(3); |
| 14349 | if (fprint_ll(f, llmax) < 0) |
| 14350 | exit(4); |
| 14351 | if (fclose(f) < 0) |
| 14352 | exit(5); |
| 14353 | exit(0); |
| 14354 | |
| 14355 | ; |
| 14356 | return 0; |
| 14357 | } |
| 14358 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14359 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14360 | |
| 14361 | llong_min=`$AWK '{print $1}' conftest.llminmax` |
| 14362 | llong_max=`$AWK '{print $2}' conftest.llminmax` |
| 14363 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 |
| 14365 | $as_echo "$llong_max" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14366 | |
| 14367 | cat >>confdefs.h <<_ACEOF |
| 14368 | #define LLONG_MAX ${llong_max}LL |
| 14369 | _ACEOF |
| 14370 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 |
| 14372 | $as_echo_n "checking for min value of long long... " >&6; } |
| 14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 |
| 14374 | $as_echo "$llong_min" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14375 | |
| 14376 | cat >>confdefs.h <<_ACEOF |
| 14377 | #define LLONG_MIN ${llong_min}LL |
| 14378 | _ACEOF |
| 14379 | |
| 14380 | |
| 14381 | else |
| 14382 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 14384 | $as_echo "not found" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14385 | |
| 14386 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14387 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14388 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14389 | fi |
| 14390 | |
| 14391 | fi |
| 14392 | |
| 14393 | |
| 14394 | # More checks for data types |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 |
| 14396 | $as_echo_n "checking for u_int type... " >&6; } |
| 14397 | if ${ac_cv_have_u_int+:} false; then : |
| 14398 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14399 | else |
| 14400 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14402 | /* end confdefs.h. */ |
| 14403 | #include <sys/types.h> |
| 14404 | int |
| 14405 | main () |
| 14406 | { |
| 14407 | u_int a; a = 1; |
| 14408 | ; |
| 14409 | return 0; |
| 14410 | } |
| 14411 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14412 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14413 | ac_cv_have_u_int="yes" |
| 14414 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14415 | ac_cv_have_u_int="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14416 | |
| 14417 | fi |
| 14418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14419 | |
| 14420 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 |
| 14422 | $as_echo "$ac_cv_have_u_int" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14423 | if test "x$ac_cv_have_u_int" = "xyes" ; then |
| 14424 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14425 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14426 | |
| 14427 | have_u_int=1 |
| 14428 | fi |
| 14429 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 |
| 14431 | $as_echo_n "checking for intXX_t types... " >&6; } |
| 14432 | if ${ac_cv_have_intxx_t+:} false; then : |
| 14433 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14434 | else |
| 14435 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14437 | /* end confdefs.h. */ |
| 14438 | #include <sys/types.h> |
| 14439 | int |
| 14440 | main () |
| 14441 | { |
| 14442 | int8_t a; int16_t b; int32_t c; a = b = c = 1; |
| 14443 | ; |
| 14444 | return 0; |
| 14445 | } |
| 14446 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14447 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14448 | ac_cv_have_intxx_t="yes" |
| 14449 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14450 | ac_cv_have_intxx_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14451 | |
| 14452 | fi |
| 14453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14454 | |
| 14455 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 |
| 14457 | $as_echo "$ac_cv_have_intxx_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14458 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then |
| 14459 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14460 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14461 | |
| 14462 | have_intxx_t=1 |
| 14463 | fi |
| 14464 | |
| 14465 | if (test -z "$have_intxx_t" && \ |
| 14466 | test "x$ac_cv_header_stdint_h" = "xyes") |
| 14467 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 |
| 14469 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } |
| 14470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14471 | /* end confdefs.h. */ |
| 14472 | #include <stdint.h> |
| 14473 | int |
| 14474 | main () |
| 14475 | { |
| 14476 | int8_t a; int16_t b; int32_t c; a = b = c = 1; |
| 14477 | ; |
| 14478 | return 0; |
| 14479 | } |
| 14480 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14481 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14482 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14483 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14484 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14486 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14487 | |
| 14488 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14490 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14491 | |
| 14492 | fi |
| 14493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14494 | fi |
| 14495 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 |
| 14497 | $as_echo_n "checking for int64_t type... " >&6; } |
| 14498 | if ${ac_cv_have_int64_t+:} false; then : |
| 14499 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14500 | else |
| 14501 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14503 | /* end confdefs.h. */ |
| 14504 | |
| 14505 | #include <sys/types.h> |
| 14506 | #ifdef HAVE_STDINT_H |
| 14507 | # include <stdint.h> |
| 14508 | #endif |
| 14509 | #include <sys/socket.h> |
| 14510 | #ifdef HAVE_SYS_BITYPES_H |
| 14511 | # include <sys/bitypes.h> |
| 14512 | #endif |
| 14513 | |
| 14514 | int |
| 14515 | main () |
| 14516 | { |
| 14517 | |
| 14518 | int64_t a; a = 1; |
| 14519 | |
| 14520 | ; |
| 14521 | return 0; |
| 14522 | } |
| 14523 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14524 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14525 | ac_cv_have_int64_t="yes" |
| 14526 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14527 | ac_cv_have_int64_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14528 | |
| 14529 | fi |
| 14530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14531 | |
| 14532 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 |
| 14534 | $as_echo "$ac_cv_have_int64_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14535 | if test "x$ac_cv_have_int64_t" = "xyes" ; then |
| 14536 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14537 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14538 | |
| 14539 | fi |
| 14540 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 |
| 14542 | $as_echo_n "checking for u_intXX_t types... " >&6; } |
| 14543 | if ${ac_cv_have_u_intxx_t+:} false; then : |
| 14544 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14545 | else |
| 14546 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14548 | /* end confdefs.h. */ |
| 14549 | #include <sys/types.h> |
| 14550 | int |
| 14551 | main () |
| 14552 | { |
| 14553 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; |
| 14554 | ; |
| 14555 | return 0; |
| 14556 | } |
| 14557 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14558 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14559 | ac_cv_have_u_intxx_t="yes" |
| 14560 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14561 | ac_cv_have_u_intxx_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14562 | |
| 14563 | fi |
| 14564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14565 | |
| 14566 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 |
| 14568 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14569 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then |
| 14570 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14571 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14572 | |
| 14573 | have_u_intxx_t=1 |
| 14574 | fi |
| 14575 | |
| 14576 | if test -z "$have_u_intxx_t" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 |
| 14578 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } |
| 14579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14580 | /* end confdefs.h. */ |
| 14581 | #include <sys/socket.h> |
| 14582 | int |
| 14583 | main () |
| 14584 | { |
| 14585 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; |
| 14586 | ; |
| 14587 | return 0; |
| 14588 | } |
| 14589 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14590 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14591 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14592 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14593 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14595 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14596 | |
| 14597 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14599 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14600 | |
| 14601 | fi |
| 14602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14603 | fi |
| 14604 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 |
| 14606 | $as_echo_n "checking for u_int64_t types... " >&6; } |
| 14607 | if ${ac_cv_have_u_int64_t+:} false; then : |
| 14608 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14609 | else |
| 14610 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14612 | /* end confdefs.h. */ |
| 14613 | #include <sys/types.h> |
| 14614 | int |
| 14615 | main () |
| 14616 | { |
| 14617 | u_int64_t a; a = 1; |
| 14618 | ; |
| 14619 | return 0; |
| 14620 | } |
| 14621 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14622 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14623 | ac_cv_have_u_int64_t="yes" |
| 14624 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14625 | ac_cv_have_u_int64_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14626 | |
| 14627 | fi |
| 14628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14629 | |
| 14630 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 |
| 14632 | $as_echo "$ac_cv_have_u_int64_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14633 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then |
| 14634 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14635 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14636 | |
| 14637 | have_u_int64_t=1 |
| 14638 | fi |
| 14639 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14640 | if (test -z "$have_u_int64_t" && \ |
| 14641 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") |
| 14642 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 |
| 14644 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } |
| 14645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14646 | /* end confdefs.h. */ |
| 14647 | #include <sys/bitypes.h> |
| 14648 | int |
| 14649 | main () |
| 14650 | { |
| 14651 | u_int64_t a; a = 1 |
| 14652 | ; |
| 14653 | return 0; |
| 14654 | } |
| 14655 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14656 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14657 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14658 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14659 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14661 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14662 | |
| 14663 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14665 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14666 | |
| 14667 | fi |
| 14668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14669 | fi |
| 14670 | |
| 14671 | if test -z "$have_u_intxx_t" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 |
| 14673 | $as_echo_n "checking for uintXX_t types... " >&6; } |
| 14674 | if ${ac_cv_have_uintxx_t+:} false; then : |
| 14675 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14676 | else |
| 14677 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14679 | /* end confdefs.h. */ |
| 14680 | |
| 14681 | #include <sys/types.h> |
| 14682 | |
| 14683 | int |
| 14684 | main () |
| 14685 | { |
| 14686 | |
| 14687 | uint8_t a; |
| 14688 | uint16_t b; |
| 14689 | uint32_t c; |
| 14690 | a = b = c = 1; |
| 14691 | |
| 14692 | ; |
| 14693 | return 0; |
| 14694 | } |
| 14695 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14696 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14697 | ac_cv_have_uintxx_t="yes" |
| 14698 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14699 | ac_cv_have_uintxx_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14700 | |
| 14701 | fi |
| 14702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14703 | |
| 14704 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 |
| 14706 | $as_echo "$ac_cv_have_uintxx_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14707 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then |
| 14708 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14709 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14710 | |
| 14711 | fi |
| 14712 | fi |
| 14713 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14714 | if (test -z "$have_uintxx_t" && \ |
| 14715 | test "x$ac_cv_header_stdint_h" = "xyes") |
| 14716 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 |
| 14718 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } |
| 14719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14720 | /* end confdefs.h. */ |
| 14721 | #include <stdint.h> |
| 14722 | int |
| 14723 | main () |
| 14724 | { |
| 14725 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; |
| 14726 | ; |
| 14727 | return 0; |
| 14728 | } |
| 14729 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14730 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14731 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14732 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14733 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14735 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14736 | |
| 14737 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14739 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14740 | |
| 14741 | fi |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14743 | fi |
| 14744 | |
| 14745 | if (test -z "$have_uintxx_t" && \ |
| 14746 | test "x$ac_cv_header_inttypes_h" = "xyes") |
| 14747 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 |
| 14749 | $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } |
| 14750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14751 | /* end confdefs.h. */ |
| 14752 | #include <inttypes.h> |
| 14753 | int |
| 14754 | main () |
| 14755 | { |
| 14756 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; |
| 14757 | ; |
| 14758 | return 0; |
| 14759 | } |
| 14760 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14761 | if ac_fn_c_try_compile "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14762 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14763 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14764 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14766 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14767 | |
| 14768 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14770 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14771 | |
| 14772 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14774 | fi |
| 14775 | |
| 14776 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ |
| 14777 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") |
| 14778 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 |
| 14780 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } |
| 14781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14782 | /* end confdefs.h. */ |
| 14783 | |
| 14784 | #include <sys/bitypes.h> |
| 14785 | |
| 14786 | int |
| 14787 | main () |
| 14788 | { |
| 14789 | |
| 14790 | int8_t a; int16_t b; int32_t c; |
| 14791 | u_int8_t e; u_int16_t f; u_int32_t g; |
| 14792 | a = b = c = e = f = g = 1; |
| 14793 | |
| 14794 | ; |
| 14795 | return 0; |
| 14796 | } |
| 14797 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14798 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14799 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14800 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14801 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14802 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14803 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14805 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14806 | |
| 14807 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14809 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14810 | |
| 14811 | fi |
| 14812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14813 | fi |
| 14814 | |
| 14815 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 |
| 14817 | $as_echo_n "checking for u_char... " >&6; } |
| 14818 | if ${ac_cv_have_u_char+:} false; then : |
| 14819 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14820 | else |
| 14821 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14823 | /* end confdefs.h. */ |
| 14824 | #include <sys/types.h> |
| 14825 | int |
| 14826 | main () |
| 14827 | { |
| 14828 | u_char foo; foo = 125; |
| 14829 | ; |
| 14830 | return 0; |
| 14831 | } |
| 14832 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14833 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14834 | ac_cv_have_u_char="yes" |
| 14835 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14836 | ac_cv_have_u_char="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14837 | |
| 14838 | fi |
| 14839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14840 | |
| 14841 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 |
| 14843 | $as_echo "$ac_cv_have_u_char" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14844 | if test "x$ac_cv_have_u_char" = "xyes" ; then |
| 14845 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14846 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14847 | |
| 14848 | fi |
| 14849 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14850 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14851 | #include <sys/types.h> |
| 14852 | #include <stdint.h> |
| 14853 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14854 | " |
| 14855 | if test "x$ac_cv_type_intmax_t" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14856 | |
| 14857 | cat >>confdefs.h <<_ACEOF |
| 14858 | #define HAVE_INTMAX_T 1 |
| 14859 | _ACEOF |
| 14860 | |
| 14861 | |
| 14862 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14863 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14864 | #include <sys/types.h> |
| 14865 | #include <stdint.h> |
| 14866 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14867 | " |
| 14868 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14869 | |
| 14870 | cat >>confdefs.h <<_ACEOF |
| 14871 | #define HAVE_UINTMAX_T 1 |
| 14872 | _ACEOF |
| 14873 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14874 | |
| 14875 | fi |
| 14876 | |
| 14877 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14878 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14879 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14880 | #include <sys/socket.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14881 | " |
| 14882 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 14883 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14884 | else |
| 14885 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
| 14887 | $as_echo_n "checking for socklen_t equivalent... " >&6; } |
| 14888 | if ${curl_cv_socklen_t_equiv+:} false; then : |
| 14889 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14890 | else |
| 14891 | |
| 14892 | # Systems have either "struct sockaddr *" or |
| 14893 | # "void *" as the second argument to getpeername |
| 14894 | curl_cv_socklen_t_equiv= |
| 14895 | for arg2 in "struct sockaddr" void; do |
| 14896 | for t in int size_t unsigned long "unsigned long"; do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14898 | /* end confdefs.h. */ |
| 14899 | |
| 14900 | #include <sys/types.h> |
| 14901 | #include <sys/socket.h> |
| 14902 | |
| 14903 | int getpeername (int, $arg2 *, $t *); |
| 14904 | |
| 14905 | int |
| 14906 | main () |
| 14907 | { |
| 14908 | |
| 14909 | $t len; |
| 14910 | getpeername(0,0,&len); |
| 14911 | |
| 14912 | ; |
| 14913 | return 0; |
| 14914 | } |
| 14915 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14916 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14917 | |
| 14918 | curl_cv_socklen_t_equiv="$t" |
| 14919 | break |
| 14920 | |
| 14921 | fi |
| 14922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14923 | done |
| 14924 | done |
| 14925 | |
| 14926 | if test "x$curl_cv_socklen_t_equiv" = x; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14927 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14928 | fi |
| 14929 | |
| 14930 | fi |
| 14931 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 |
| 14933 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14934 | |
| 14935 | cat >>confdefs.h <<_ACEOF |
| 14936 | #define socklen_t $curl_cv_socklen_t_equiv |
| 14937 | _ACEOF |
| 14938 | |
| 14939 | fi |
| 14940 | |
| 14941 | |
| 14942 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14943 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> |
| 14944 | " |
| 14945 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14946 | |
| 14947 | cat >>confdefs.h <<_ACEOF |
| 14948 | #define HAVE_SIG_ATOMIC_T 1 |
| 14949 | _ACEOF |
| 14950 | |
| 14951 | |
| 14952 | fi |
| 14953 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14954 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14955 | #include <sys/types.h> |
| 14956 | #ifdef HAVE_SYS_BITYPES_H |
| 14957 | #include <sys/bitypes.h> |
| 14958 | #endif |
| 14959 | #ifdef HAVE_SYS_STATFS_H |
| 14960 | #include <sys/statfs.h> |
| 14961 | #endif |
| 14962 | #ifdef HAVE_SYS_STATVFS_H |
| 14963 | #include <sys/statvfs.h> |
| 14964 | #endif |
| 14965 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14966 | " |
| 14967 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14968 | |
| 14969 | cat >>confdefs.h <<_ACEOF |
| 14970 | #define HAVE_FSBLKCNT_T 1 |
| 14971 | _ACEOF |
| 14972 | |
| 14973 | |
| 14974 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14975 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14976 | #include <sys/types.h> |
| 14977 | #ifdef HAVE_SYS_BITYPES_H |
| 14978 | #include <sys/bitypes.h> |
| 14979 | #endif |
| 14980 | #ifdef HAVE_SYS_STATFS_H |
| 14981 | #include <sys/statfs.h> |
| 14982 | #endif |
| 14983 | #ifdef HAVE_SYS_STATVFS_H |
| 14984 | #include <sys/statvfs.h> |
| 14985 | #endif |
| 14986 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14987 | " |
| 14988 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14989 | |
| 14990 | cat >>confdefs.h <<_ACEOF |
| 14991 | #define HAVE_FSFILCNT_T 1 |
| 14992 | _ACEOF |
| 14993 | |
| 14994 | |
| 14995 | fi |
| 14996 | |
| 14997 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 14998 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 14999 | #include <netinet/in.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15000 | " |
| 15001 | if test "x$ac_cv_type_in_addr_t" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15002 | |
| 15003 | cat >>confdefs.h <<_ACEOF |
| 15004 | #define HAVE_IN_ADDR_T 1 |
| 15005 | _ACEOF |
| 15006 | |
| 15007 | |
| 15008 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15009 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15010 | #include <netinet/in.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15011 | " |
| 15012 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15013 | |
| 15014 | cat >>confdefs.h <<_ACEOF |
| 15015 | #define HAVE_IN_PORT_T 1 |
| 15016 | _ACEOF |
| 15017 | |
| 15018 | |
| 15019 | fi |
| 15020 | |
| 15021 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 |
| 15023 | $as_echo_n "checking for size_t... " >&6; } |
| 15024 | if ${ac_cv_have_size_t+:} false; then : |
| 15025 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15026 | else |
| 15027 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15029 | /* end confdefs.h. */ |
| 15030 | #include <sys/types.h> |
| 15031 | int |
| 15032 | main () |
| 15033 | { |
| 15034 | size_t foo; foo = 1235; |
| 15035 | ; |
| 15036 | return 0; |
| 15037 | } |
| 15038 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15039 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15040 | ac_cv_have_size_t="yes" |
| 15041 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15042 | ac_cv_have_size_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15043 | |
| 15044 | fi |
| 15045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15046 | |
| 15047 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 |
| 15049 | $as_echo "$ac_cv_have_size_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15050 | if test "x$ac_cv_have_size_t" = "xyes" ; then |
| 15051 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15052 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15053 | |
| 15054 | fi |
| 15055 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 |
| 15057 | $as_echo_n "checking for ssize_t... " >&6; } |
| 15058 | if ${ac_cv_have_ssize_t+:} false; then : |
| 15059 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15060 | else |
| 15061 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15063 | /* end confdefs.h. */ |
| 15064 | #include <sys/types.h> |
| 15065 | int |
| 15066 | main () |
| 15067 | { |
| 15068 | ssize_t foo; foo = 1235; |
| 15069 | ; |
| 15070 | return 0; |
| 15071 | } |
| 15072 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15073 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15074 | ac_cv_have_ssize_t="yes" |
| 15075 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15076 | ac_cv_have_ssize_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15077 | |
| 15078 | fi |
| 15079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15080 | |
| 15081 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 |
| 15083 | $as_echo "$ac_cv_have_ssize_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15084 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then |
| 15085 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15086 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15087 | |
| 15088 | fi |
| 15089 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 |
| 15091 | $as_echo_n "checking for clock_t... " >&6; } |
| 15092 | if ${ac_cv_have_clock_t+:} false; then : |
| 15093 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15094 | else |
| 15095 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15097 | /* end confdefs.h. */ |
| 15098 | #include <time.h> |
| 15099 | int |
| 15100 | main () |
| 15101 | { |
| 15102 | clock_t foo; foo = 1235; |
| 15103 | ; |
| 15104 | return 0; |
| 15105 | } |
| 15106 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15107 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15108 | ac_cv_have_clock_t="yes" |
| 15109 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15110 | ac_cv_have_clock_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15111 | |
| 15112 | fi |
| 15113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15114 | |
| 15115 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 |
| 15117 | $as_echo "$ac_cv_have_clock_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15118 | if test "x$ac_cv_have_clock_t" = "xyes" ; then |
| 15119 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15120 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15121 | |
| 15122 | fi |
| 15123 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 |
| 15125 | $as_echo_n "checking for sa_family_t... " >&6; } |
| 15126 | if ${ac_cv_have_sa_family_t+:} false; then : |
| 15127 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15128 | else |
| 15129 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15131 | /* end confdefs.h. */ |
| 15132 | |
| 15133 | #include <sys/types.h> |
| 15134 | #include <sys/socket.h> |
| 15135 | |
| 15136 | int |
| 15137 | main () |
| 15138 | { |
| 15139 | sa_family_t foo; foo = 1235; |
| 15140 | ; |
| 15141 | return 0; |
| 15142 | } |
| 15143 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15144 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15145 | ac_cv_have_sa_family_t="yes" |
| 15146 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15148 | /* end confdefs.h. */ |
| 15149 | |
| 15150 | #include <sys/types.h> |
| 15151 | #include <sys/socket.h> |
| 15152 | #include <netinet/in.h> |
| 15153 | |
| 15154 | int |
| 15155 | main () |
| 15156 | { |
| 15157 | sa_family_t foo; foo = 1235; |
| 15158 | ; |
| 15159 | return 0; |
| 15160 | } |
| 15161 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15162 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15163 | ac_cv_have_sa_family_t="yes" |
| 15164 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15165 | ac_cv_have_sa_family_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15166 | |
| 15167 | fi |
| 15168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15169 | |
| 15170 | fi |
| 15171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15172 | |
| 15173 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 |
| 15175 | $as_echo "$ac_cv_have_sa_family_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15176 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then |
| 15177 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15178 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15179 | |
| 15180 | fi |
| 15181 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 |
| 15183 | $as_echo_n "checking for pid_t... " >&6; } |
| 15184 | if ${ac_cv_have_pid_t+:} false; then : |
| 15185 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15186 | else |
| 15187 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15189 | /* end confdefs.h. */ |
| 15190 | #include <sys/types.h> |
| 15191 | int |
| 15192 | main () |
| 15193 | { |
| 15194 | pid_t foo; foo = 1235; |
| 15195 | ; |
| 15196 | return 0; |
| 15197 | } |
| 15198 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15199 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15200 | ac_cv_have_pid_t="yes" |
| 15201 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15202 | ac_cv_have_pid_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15203 | |
| 15204 | fi |
| 15205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15206 | |
| 15207 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 |
| 15209 | $as_echo "$ac_cv_have_pid_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15210 | if test "x$ac_cv_have_pid_t" = "xyes" ; then |
| 15211 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15212 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15213 | |
| 15214 | fi |
| 15215 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 |
| 15217 | $as_echo_n "checking for mode_t... " >&6; } |
| 15218 | if ${ac_cv_have_mode_t+:} false; then : |
| 15219 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15220 | else |
| 15221 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15223 | /* end confdefs.h. */ |
| 15224 | #include <sys/types.h> |
| 15225 | int |
| 15226 | main () |
| 15227 | { |
| 15228 | mode_t foo; foo = 1235; |
| 15229 | ; |
| 15230 | return 0; |
| 15231 | } |
| 15232 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15233 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15234 | ac_cv_have_mode_t="yes" |
| 15235 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15236 | ac_cv_have_mode_t="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15237 | |
| 15238 | fi |
| 15239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15240 | |
| 15241 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 |
| 15243 | $as_echo "$ac_cv_have_mode_t" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15244 | if test "x$ac_cv_have_mode_t" = "xyes" ; then |
| 15245 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15246 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15247 | |
| 15248 | fi |
| 15249 | |
| 15250 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 |
| 15252 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } |
| 15253 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : |
| 15254 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15255 | else |
| 15256 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15258 | /* end confdefs.h. */ |
| 15259 | |
| 15260 | #include <sys/types.h> |
| 15261 | #include <sys/socket.h> |
| 15262 | |
| 15263 | int |
| 15264 | main () |
| 15265 | { |
| 15266 | struct sockaddr_storage s; |
| 15267 | ; |
| 15268 | return 0; |
| 15269 | } |
| 15270 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15271 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15272 | ac_cv_have_struct_sockaddr_storage="yes" |
| 15273 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15274 | ac_cv_have_struct_sockaddr_storage="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15275 | |
| 15276 | fi |
| 15277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15278 | |
| 15279 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 |
| 15281 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15282 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then |
| 15283 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15284 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15285 | |
| 15286 | fi |
| 15287 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 |
| 15289 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } |
| 15290 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : |
| 15291 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15292 | else |
| 15293 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15295 | /* end confdefs.h. */ |
| 15296 | |
| 15297 | #include <sys/types.h> |
| 15298 | #include <netinet/in.h> |
| 15299 | |
| 15300 | int |
| 15301 | main () |
| 15302 | { |
| 15303 | struct sockaddr_in6 s; s.sin6_family = 0; |
| 15304 | ; |
| 15305 | return 0; |
| 15306 | } |
| 15307 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15308 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15309 | ac_cv_have_struct_sockaddr_in6="yes" |
| 15310 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15311 | ac_cv_have_struct_sockaddr_in6="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15312 | |
| 15313 | fi |
| 15314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15315 | |
| 15316 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 |
| 15318 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15319 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then |
| 15320 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15321 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15322 | |
| 15323 | fi |
| 15324 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 |
| 15326 | $as_echo_n "checking for struct in6_addr... " >&6; } |
| 15327 | if ${ac_cv_have_struct_in6_addr+:} false; then : |
| 15328 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15329 | else |
| 15330 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15332 | /* end confdefs.h. */ |
| 15333 | |
| 15334 | #include <sys/types.h> |
| 15335 | #include <netinet/in.h> |
| 15336 | |
| 15337 | int |
| 15338 | main () |
| 15339 | { |
| 15340 | struct in6_addr s; s.s6_addr[0] = 0; |
| 15341 | ; |
| 15342 | return 0; |
| 15343 | } |
| 15344 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15345 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15346 | ac_cv_have_struct_in6_addr="yes" |
| 15347 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15348 | ac_cv_have_struct_in6_addr="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15349 | |
| 15350 | fi |
| 15351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15352 | |
| 15353 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 |
| 15355 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15356 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then |
| 15357 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15358 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15359 | |
| 15360 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15361 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15362 | #ifdef HAVE_SYS_TYPES_H |
| 15363 | #include <sys/types.h> |
| 15364 | #endif |
| 15365 | #include <netinet/in.h> |
| 15366 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15367 | " |
| 15368 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15369 | |
| 15370 | cat >>confdefs.h <<_ACEOF |
| 15371 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 15372 | _ACEOF |
| 15373 | |
| 15374 | |
| 15375 | fi |
| 15376 | |
| 15377 | fi |
| 15378 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 |
| 15380 | $as_echo_n "checking for struct addrinfo... " >&6; } |
| 15381 | if ${ac_cv_have_struct_addrinfo+:} false; then : |
| 15382 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15383 | else |
| 15384 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15386 | /* end confdefs.h. */ |
| 15387 | |
| 15388 | #include <sys/types.h> |
| 15389 | #include <sys/socket.h> |
| 15390 | #include <netdb.h> |
| 15391 | |
| 15392 | int |
| 15393 | main () |
| 15394 | { |
| 15395 | struct addrinfo s; s.ai_flags = AI_PASSIVE; |
| 15396 | ; |
| 15397 | return 0; |
| 15398 | } |
| 15399 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15400 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15401 | ac_cv_have_struct_addrinfo="yes" |
| 15402 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15403 | ac_cv_have_struct_addrinfo="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15404 | |
| 15405 | fi |
| 15406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15407 | |
| 15408 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 |
| 15410 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15411 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then |
| 15412 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15413 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15414 | |
| 15415 | fi |
| 15416 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
| 15418 | $as_echo_n "checking for struct timeval... " >&6; } |
| 15419 | if ${ac_cv_have_struct_timeval+:} false; then : |
| 15420 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15421 | else |
| 15422 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15424 | /* end confdefs.h. */ |
| 15425 | #include <sys/time.h> |
| 15426 | int |
| 15427 | main () |
| 15428 | { |
| 15429 | struct timeval tv; tv.tv_sec = 1; |
| 15430 | ; |
| 15431 | return 0; |
| 15432 | } |
| 15433 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15434 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15435 | ac_cv_have_struct_timeval="yes" |
| 15436 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15437 | ac_cv_have_struct_timeval="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15438 | |
| 15439 | fi |
| 15440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15441 | |
| 15442 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 |
| 15444 | $as_echo "$ac_cv_have_struct_timeval" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15445 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then |
| 15446 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15447 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15448 | |
| 15449 | have_struct_timeval=1 |
| 15450 | fi |
| 15451 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15452 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" |
| 15453 | if test "x$ac_cv_type_struct_timespec" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15454 | |
| 15455 | cat >>confdefs.h <<_ACEOF |
| 15456 | #define HAVE_STRUCT_TIMESPEC 1 |
| 15457 | _ACEOF |
| 15458 | |
| 15459 | |
| 15460 | fi |
| 15461 | |
| 15462 | |
| 15463 | # We need int64_t or else certian parts of the compile will fail. |
| 15464 | if test "x$ac_cv_have_int64_t" = "xno" && \ |
| 15465 | test "x$ac_cv_sizeof_long_int" != "x8" && \ |
| 15466 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then |
| 15467 | echo "OpenSSH requires int64_t support. Contact your vendor or install" |
| 15468 | echo "an alternative compiler (I.E., GCC) before continuing." |
| 15469 | echo "" |
| 15470 | exit 1; |
| 15471 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15472 | if test "$cross_compiling" = yes; then : |
| 15473 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 |
| 15474 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15475 | |
| 15476 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15478 | /* end confdefs.h. */ |
| 15479 | |
| 15480 | #include <stdio.h> |
| 15481 | #include <string.h> |
| 15482 | #ifdef HAVE_SNPRINTF |
| 15483 | main() |
| 15484 | { |
| 15485 | char buf[50]; |
| 15486 | char expected_out[50]; |
| 15487 | int mazsize = 50 ; |
| 15488 | #if (SIZEOF_LONG_INT == 8) |
| 15489 | long int num = 0x7fffffffffffffff; |
| 15490 | #else |
| 15491 | long long num = 0x7fffffffffffffffll; |
| 15492 | #endif |
| 15493 | strcpy(expected_out, "9223372036854775807"); |
| 15494 | snprintf(buf, mazsize, "%lld", num); |
| 15495 | if(strcmp(buf, expected_out) != 0) |
| 15496 | exit(1); |
| 15497 | exit(0); |
| 15498 | } |
| 15499 | #else |
| 15500 | main() { exit(0); } |
| 15501 | #endif |
| 15502 | |
| 15503 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15504 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15505 | true |
| 15506 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15507 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15508 | |
| 15509 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15510 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15511 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15512 | fi |
| 15513 | |
| 15514 | fi |
| 15515 | |
| 15516 | |
| 15517 | # look for field 'ut_host' in header 'utmp.h' |
| 15518 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15519 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 |
| 15521 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } |
| 15522 | if eval \${$ossh_varname+:} false; then : |
| 15523 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15524 | else |
| 15525 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15527 | /* end confdefs.h. */ |
| 15528 | #include <utmp.h> |
| 15529 | |
| 15530 | _ACEOF |
| 15531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15532 | $EGREP "ut_host" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15533 | eval "$ossh_varname=yes" |
| 15534 | else |
| 15535 | eval "$ossh_varname=no" |
| 15536 | fi |
| 15537 | rm -f conftest* |
| 15538 | |
| 15539 | fi |
| 15540 | |
| 15541 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15542 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15544 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15545 | if test "x$ossh_result" = "xyes"; then |
| 15546 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15547 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15548 | |
| 15549 | fi |
| 15550 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15552 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15553 | fi |
| 15554 | |
| 15555 | |
| 15556 | # look for field 'ut_host' in header 'utmpx.h' |
| 15557 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15558 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 |
| 15560 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } |
| 15561 | if eval \${$ossh_varname+:} false; then : |
| 15562 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15563 | else |
| 15564 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15566 | /* end confdefs.h. */ |
| 15567 | #include <utmpx.h> |
| 15568 | |
| 15569 | _ACEOF |
| 15570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15571 | $EGREP "ut_host" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15572 | eval "$ossh_varname=yes" |
| 15573 | else |
| 15574 | eval "$ossh_varname=no" |
| 15575 | fi |
| 15576 | rm -f conftest* |
| 15577 | |
| 15578 | fi |
| 15579 | |
| 15580 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15581 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15583 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15584 | if test "x$ossh_result" = "xyes"; then |
| 15585 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15586 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15587 | |
| 15588 | fi |
| 15589 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15591 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15592 | fi |
| 15593 | |
| 15594 | |
| 15595 | # look for field 'syslen' in header 'utmpx.h' |
| 15596 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15597 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 |
| 15599 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } |
| 15600 | if eval \${$ossh_varname+:} false; then : |
| 15601 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15602 | else |
| 15603 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15605 | /* end confdefs.h. */ |
| 15606 | #include <utmpx.h> |
| 15607 | |
| 15608 | _ACEOF |
| 15609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15610 | $EGREP "syslen" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15611 | eval "$ossh_varname=yes" |
| 15612 | else |
| 15613 | eval "$ossh_varname=no" |
| 15614 | fi |
| 15615 | rm -f conftest* |
| 15616 | |
| 15617 | fi |
| 15618 | |
| 15619 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15620 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15622 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15623 | if test "x$ossh_result" = "xyes"; then |
| 15624 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15625 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15626 | |
| 15627 | fi |
| 15628 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15630 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15631 | fi |
| 15632 | |
| 15633 | |
| 15634 | # look for field 'ut_pid' in header 'utmp.h' |
| 15635 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15636 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 |
| 15638 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } |
| 15639 | if eval \${$ossh_varname+:} false; then : |
| 15640 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15641 | else |
| 15642 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15644 | /* end confdefs.h. */ |
| 15645 | #include <utmp.h> |
| 15646 | |
| 15647 | _ACEOF |
| 15648 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15649 | $EGREP "ut_pid" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15650 | eval "$ossh_varname=yes" |
| 15651 | else |
| 15652 | eval "$ossh_varname=no" |
| 15653 | fi |
| 15654 | rm -f conftest* |
| 15655 | |
| 15656 | fi |
| 15657 | |
| 15658 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15659 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15661 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15662 | if test "x$ossh_result" = "xyes"; then |
| 15663 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15664 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15665 | |
| 15666 | fi |
| 15667 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15669 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15670 | fi |
| 15671 | |
| 15672 | |
| 15673 | # look for field 'ut_type' in header 'utmp.h' |
| 15674 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15675 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 |
| 15677 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } |
| 15678 | if eval \${$ossh_varname+:} false; then : |
| 15679 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15680 | else |
| 15681 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15683 | /* end confdefs.h. */ |
| 15684 | #include <utmp.h> |
| 15685 | |
| 15686 | _ACEOF |
| 15687 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15688 | $EGREP "ut_type" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15689 | eval "$ossh_varname=yes" |
| 15690 | else |
| 15691 | eval "$ossh_varname=no" |
| 15692 | fi |
| 15693 | rm -f conftest* |
| 15694 | |
| 15695 | fi |
| 15696 | |
| 15697 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15698 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15700 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15701 | if test "x$ossh_result" = "xyes"; then |
| 15702 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15703 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15704 | |
| 15705 | fi |
| 15706 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15708 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15709 | fi |
| 15710 | |
| 15711 | |
| 15712 | # look for field 'ut_type' in header 'utmpx.h' |
| 15713 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15714 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 |
| 15716 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } |
| 15717 | if eval \${$ossh_varname+:} false; then : |
| 15718 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15719 | else |
| 15720 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15722 | /* end confdefs.h. */ |
| 15723 | #include <utmpx.h> |
| 15724 | |
| 15725 | _ACEOF |
| 15726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15727 | $EGREP "ut_type" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15728 | eval "$ossh_varname=yes" |
| 15729 | else |
| 15730 | eval "$ossh_varname=no" |
| 15731 | fi |
| 15732 | rm -f conftest* |
| 15733 | |
| 15734 | fi |
| 15735 | |
| 15736 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15737 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15739 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15740 | if test "x$ossh_result" = "xyes"; then |
| 15741 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15742 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15743 | |
| 15744 | fi |
| 15745 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15747 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15748 | fi |
| 15749 | |
| 15750 | |
| 15751 | # look for field 'ut_tv' in header 'utmp.h' |
| 15752 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15753 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 |
| 15755 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } |
| 15756 | if eval \${$ossh_varname+:} false; then : |
| 15757 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15758 | else |
| 15759 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15761 | /* end confdefs.h. */ |
| 15762 | #include <utmp.h> |
| 15763 | |
| 15764 | _ACEOF |
| 15765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15766 | $EGREP "ut_tv" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15767 | eval "$ossh_varname=yes" |
| 15768 | else |
| 15769 | eval "$ossh_varname=no" |
| 15770 | fi |
| 15771 | rm -f conftest* |
| 15772 | |
| 15773 | fi |
| 15774 | |
| 15775 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15776 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15778 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15779 | if test "x$ossh_result" = "xyes"; then |
| 15780 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15781 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15782 | |
| 15783 | fi |
| 15784 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15786 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15787 | fi |
| 15788 | |
| 15789 | |
| 15790 | # look for field 'ut_id' in header 'utmp.h' |
| 15791 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15792 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 |
| 15794 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } |
| 15795 | if eval \${$ossh_varname+:} false; then : |
| 15796 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15797 | else |
| 15798 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15800 | /* end confdefs.h. */ |
| 15801 | #include <utmp.h> |
| 15802 | |
| 15803 | _ACEOF |
| 15804 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15805 | $EGREP "ut_id" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15806 | eval "$ossh_varname=yes" |
| 15807 | else |
| 15808 | eval "$ossh_varname=no" |
| 15809 | fi |
| 15810 | rm -f conftest* |
| 15811 | |
| 15812 | fi |
| 15813 | |
| 15814 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15815 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15817 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15818 | if test "x$ossh_result" = "xyes"; then |
| 15819 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15820 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15821 | |
| 15822 | fi |
| 15823 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15825 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15826 | fi |
| 15827 | |
| 15828 | |
| 15829 | # look for field 'ut_id' in header 'utmpx.h' |
| 15830 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15831 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 |
| 15833 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } |
| 15834 | if eval \${$ossh_varname+:} false; then : |
| 15835 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15836 | else |
| 15837 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15839 | /* end confdefs.h. */ |
| 15840 | #include <utmpx.h> |
| 15841 | |
| 15842 | _ACEOF |
| 15843 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15844 | $EGREP "ut_id" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15845 | eval "$ossh_varname=yes" |
| 15846 | else |
| 15847 | eval "$ossh_varname=no" |
| 15848 | fi |
| 15849 | rm -f conftest* |
| 15850 | |
| 15851 | fi |
| 15852 | |
| 15853 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15854 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15856 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15857 | if test "x$ossh_result" = "xyes"; then |
| 15858 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15859 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15860 | |
| 15861 | fi |
| 15862 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15864 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15865 | fi |
| 15866 | |
| 15867 | |
| 15868 | # look for field 'ut_addr' in header 'utmp.h' |
| 15869 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15870 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 |
| 15872 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } |
| 15873 | if eval \${$ossh_varname+:} false; then : |
| 15874 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15875 | else |
| 15876 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15878 | /* end confdefs.h. */ |
| 15879 | #include <utmp.h> |
| 15880 | |
| 15881 | _ACEOF |
| 15882 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15883 | $EGREP "ut_addr" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15884 | eval "$ossh_varname=yes" |
| 15885 | else |
| 15886 | eval "$ossh_varname=no" |
| 15887 | fi |
| 15888 | rm -f conftest* |
| 15889 | |
| 15890 | fi |
| 15891 | |
| 15892 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15893 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15895 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15896 | if test "x$ossh_result" = "xyes"; then |
| 15897 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15898 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15899 | |
| 15900 | fi |
| 15901 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15903 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15904 | fi |
| 15905 | |
| 15906 | |
| 15907 | # look for field 'ut_addr' in header 'utmpx.h' |
| 15908 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15909 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 |
| 15911 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } |
| 15912 | if eval \${$ossh_varname+:} false; then : |
| 15913 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15914 | else |
| 15915 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15917 | /* end confdefs.h. */ |
| 15918 | #include <utmpx.h> |
| 15919 | |
| 15920 | _ACEOF |
| 15921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15922 | $EGREP "ut_addr" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15923 | eval "$ossh_varname=yes" |
| 15924 | else |
| 15925 | eval "$ossh_varname=no" |
| 15926 | fi |
| 15927 | rm -f conftest* |
| 15928 | |
| 15929 | fi |
| 15930 | |
| 15931 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15932 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15934 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15935 | if test "x$ossh_result" = "xyes"; then |
| 15936 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15937 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15938 | |
| 15939 | fi |
| 15940 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15942 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15943 | fi |
| 15944 | |
| 15945 | |
| 15946 | # look for field 'ut_addr_v6' in header 'utmp.h' |
| 15947 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15948 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 |
| 15950 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } |
| 15951 | if eval \${$ossh_varname+:} false; then : |
| 15952 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15953 | else |
| 15954 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15956 | /* end confdefs.h. */ |
| 15957 | #include <utmp.h> |
| 15958 | |
| 15959 | _ACEOF |
| 15960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15961 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15962 | eval "$ossh_varname=yes" |
| 15963 | else |
| 15964 | eval "$ossh_varname=no" |
| 15965 | fi |
| 15966 | rm -f conftest* |
| 15967 | |
| 15968 | fi |
| 15969 | |
| 15970 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15971 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15973 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15974 | if test "x$ossh_result" = "xyes"; then |
| 15975 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15976 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15977 | |
| 15978 | fi |
| 15979 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15981 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15982 | fi |
| 15983 | |
| 15984 | |
| 15985 | # look for field 'ut_addr_v6' in header 'utmpx.h' |
| 15986 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15987 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 |
| 15989 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } |
| 15990 | if eval \${$ossh_varname+:} false; then : |
| 15991 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15992 | else |
| 15993 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 15994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 15995 | /* end confdefs.h. */ |
| 15996 | #include <utmpx.h> |
| 15997 | |
| 15998 | _ACEOF |
| 15999 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16000 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16001 | eval "$ossh_varname=yes" |
| 16002 | else |
| 16003 | eval "$ossh_varname=no" |
| 16004 | fi |
| 16005 | rm -f conftest* |
| 16006 | |
| 16007 | fi |
| 16008 | |
| 16009 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 16010 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 16012 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16013 | if test "x$ossh_result" = "xyes"; then |
| 16014 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16015 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16016 | |
| 16017 | fi |
| 16018 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16020 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16021 | fi |
| 16022 | |
| 16023 | |
| 16024 | # look for field 'ut_exit' in header 'utmp.h' |
| 16025 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 16026 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 |
| 16028 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } |
| 16029 | if eval \${$ossh_varname+:} false; then : |
| 16030 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16031 | else |
| 16032 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16034 | /* end confdefs.h. */ |
| 16035 | #include <utmp.h> |
| 16036 | |
| 16037 | _ACEOF |
| 16038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16039 | $EGREP "ut_exit" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16040 | eval "$ossh_varname=yes" |
| 16041 | else |
| 16042 | eval "$ossh_varname=no" |
| 16043 | fi |
| 16044 | rm -f conftest* |
| 16045 | |
| 16046 | fi |
| 16047 | |
| 16048 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 16049 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 16051 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16052 | if test "x$ossh_result" = "xyes"; then |
| 16053 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16054 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16055 | |
| 16056 | fi |
| 16057 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16059 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16060 | fi |
| 16061 | |
| 16062 | |
| 16063 | # look for field 'ut_time' in header 'utmp.h' |
| 16064 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 16065 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 |
| 16067 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } |
| 16068 | if eval \${$ossh_varname+:} false; then : |
| 16069 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16070 | else |
| 16071 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16073 | /* end confdefs.h. */ |
| 16074 | #include <utmp.h> |
| 16075 | |
| 16076 | _ACEOF |
| 16077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16078 | $EGREP "ut_time" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16079 | eval "$ossh_varname=yes" |
| 16080 | else |
| 16081 | eval "$ossh_varname=no" |
| 16082 | fi |
| 16083 | rm -f conftest* |
| 16084 | |
| 16085 | fi |
| 16086 | |
| 16087 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 16088 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 16090 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16091 | if test "x$ossh_result" = "xyes"; then |
| 16092 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16093 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16094 | |
| 16095 | fi |
| 16096 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16098 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16099 | fi |
| 16100 | |
| 16101 | |
| 16102 | # look for field 'ut_time' in header 'utmpx.h' |
| 16103 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 16104 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 |
| 16106 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } |
| 16107 | if eval \${$ossh_varname+:} false; then : |
| 16108 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16109 | else |
| 16110 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16112 | /* end confdefs.h. */ |
| 16113 | #include <utmpx.h> |
| 16114 | |
| 16115 | _ACEOF |
| 16116 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16117 | $EGREP "ut_time" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16118 | eval "$ossh_varname=yes" |
| 16119 | else |
| 16120 | eval "$ossh_varname=no" |
| 16121 | fi |
| 16122 | rm -f conftest* |
| 16123 | |
| 16124 | fi |
| 16125 | |
| 16126 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 16127 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 16129 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16130 | if test "x$ossh_result" = "xyes"; then |
| 16131 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16132 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16133 | |
| 16134 | fi |
| 16135 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16137 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16138 | fi |
| 16139 | |
| 16140 | |
| 16141 | # look for field 'ut_tv' in header 'utmpx.h' |
| 16142 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 16143 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 |
| 16145 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } |
| 16146 | if eval \${$ossh_varname+:} false; then : |
| 16147 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16148 | else |
| 16149 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16151 | /* end confdefs.h. */ |
| 16152 | #include <utmpx.h> |
| 16153 | |
| 16154 | _ACEOF |
| 16155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16156 | $EGREP "ut_tv" >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16157 | eval "$ossh_varname=yes" |
| 16158 | else |
| 16159 | eval "$ossh_varname=no" |
| 16160 | fi |
| 16161 | rm -f conftest* |
| 16162 | |
| 16163 | fi |
| 16164 | |
| 16165 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 16166 | if test -n "`echo $ossh_varname`"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 16168 | $as_echo "$ossh_result" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16169 | if test "x$ossh_result" = "xyes"; then |
| 16170 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16171 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16172 | |
| 16173 | fi |
| 16174 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16176 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16177 | fi |
| 16178 | |
| 16179 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16180 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
| 16181 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16182 | |
| 16183 | cat >>confdefs.h <<_ACEOF |
| 16184 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 16185 | _ACEOF |
| 16186 | |
| 16187 | |
| 16188 | fi |
| 16189 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16190 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16191 | #include <sys/types.h> |
| 16192 | #include <pwd.h> |
| 16193 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16194 | " |
| 16195 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16196 | |
| 16197 | cat >>confdefs.h <<_ACEOF |
| 16198 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 |
| 16199 | _ACEOF |
| 16200 | |
| 16201 | |
| 16202 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16203 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16204 | #include <sys/types.h> |
| 16205 | #include <pwd.h> |
| 16206 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16207 | " |
| 16208 | if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16209 | |
| 16210 | cat >>confdefs.h <<_ACEOF |
| 16211 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 |
| 16212 | _ACEOF |
| 16213 | |
| 16214 | |
| 16215 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16216 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16217 | #include <sys/types.h> |
| 16218 | #include <pwd.h> |
| 16219 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16220 | " |
| 16221 | if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16222 | |
| 16223 | cat >>confdefs.h <<_ACEOF |
| 16224 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 |
| 16225 | _ACEOF |
| 16226 | |
| 16227 | |
| 16228 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16229 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16230 | #include <sys/types.h> |
| 16231 | #include <pwd.h> |
| 16232 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16233 | " |
| 16234 | if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16235 | |
| 16236 | cat >>confdefs.h <<_ACEOF |
| 16237 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 |
| 16238 | _ACEOF |
| 16239 | |
| 16240 | |
| 16241 | fi |
| 16242 | |
| 16243 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16244 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16245 | #include <stdio.h> |
| 16246 | #if HAVE_SYS_TYPES_H |
| 16247 | # include <sys/types.h> |
| 16248 | #endif |
| 16249 | #include <netinet/in.h> |
| 16250 | #include <arpa/nameser.h> |
| 16251 | #include <resolv.h> |
| 16252 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16253 | " |
| 16254 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16255 | |
| 16256 | else |
| 16257 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16258 | $as_echo "#define __res_state state" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16259 | |
| 16260 | fi |
| 16261 | |
| 16262 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 |
| 16264 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } |
| 16265 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : |
| 16266 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16267 | else |
| 16268 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16270 | /* end confdefs.h. */ |
| 16271 | |
| 16272 | #include <sys/types.h> |
| 16273 | #include <sys/socket.h> |
| 16274 | |
| 16275 | int |
| 16276 | main () |
| 16277 | { |
| 16278 | struct sockaddr_storage s; s.ss_family = 1; |
| 16279 | ; |
| 16280 | return 0; |
| 16281 | } |
| 16282 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16283 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16284 | ac_cv_have_ss_family_in_struct_ss="yes" |
| 16285 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16286 | ac_cv_have_ss_family_in_struct_ss="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16287 | fi |
| 16288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16289 | |
| 16290 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 |
| 16292 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16293 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then |
| 16294 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16295 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16296 | |
| 16297 | fi |
| 16298 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 |
| 16300 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } |
| 16301 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : |
| 16302 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16303 | else |
| 16304 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16306 | /* end confdefs.h. */ |
| 16307 | |
| 16308 | #include <sys/types.h> |
| 16309 | #include <sys/socket.h> |
| 16310 | |
| 16311 | int |
| 16312 | main () |
| 16313 | { |
| 16314 | struct sockaddr_storage s; s.__ss_family = 1; |
| 16315 | ; |
| 16316 | return 0; |
| 16317 | } |
| 16318 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16319 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16320 | ac_cv_have___ss_family_in_struct_ss="yes" |
| 16321 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16322 | ac_cv_have___ss_family_in_struct_ss="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16323 | |
| 16324 | fi |
| 16325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16326 | |
| 16327 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 |
| 16329 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16330 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then |
| 16331 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16332 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16333 | |
| 16334 | fi |
| 16335 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 |
| 16337 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } |
| 16338 | if ${ac_cv_have_accrights_in_msghdr+:} false; then : |
| 16339 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16340 | else |
| 16341 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16343 | /* end confdefs.h. */ |
| 16344 | |
| 16345 | #include <sys/types.h> |
| 16346 | #include <sys/socket.h> |
| 16347 | #include <sys/uio.h> |
| 16348 | |
| 16349 | int |
| 16350 | main () |
| 16351 | { |
| 16352 | |
| 16353 | #ifdef msg_accrights |
| 16354 | #error "msg_accrights is a macro" |
| 16355 | exit(1); |
| 16356 | #endif |
| 16357 | struct msghdr m; |
| 16358 | m.msg_accrights = 0; |
| 16359 | exit(0); |
| 16360 | |
| 16361 | ; |
| 16362 | return 0; |
| 16363 | } |
| 16364 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16365 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16366 | ac_cv_have_accrights_in_msghdr="yes" |
| 16367 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16368 | ac_cv_have_accrights_in_msghdr="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16369 | |
| 16370 | fi |
| 16371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16372 | |
| 16373 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 |
| 16375 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16376 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then |
| 16377 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16378 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16379 | |
| 16380 | fi |
| 16381 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 |
| 16383 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } |
| 16384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16385 | /* end confdefs.h. */ |
| 16386 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 16387 | #include <sys/param.h> |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16388 | #include <sys/stat.h> |
| 16389 | #ifdef HAVE_SYS_TIME_H |
| 16390 | # include <sys/time.h> |
| 16391 | #endif |
| 16392 | #ifdef HAVE_SYS_MOUNT_H |
| 16393 | #include <sys/mount.h> |
| 16394 | #endif |
| 16395 | #ifdef HAVE_SYS_STATVFS_H |
| 16396 | #include <sys/statvfs.h> |
| 16397 | #endif |
| 16398 | |
| 16399 | int |
| 16400 | main () |
| 16401 | { |
| 16402 | struct statvfs s; s.f_fsid = 0; |
| 16403 | ; |
| 16404 | return 0; |
| 16405 | } |
| 16406 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16407 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16409 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16410 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16412 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16413 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 |
| 16415 | $as_echo_n "checking if fsid_t has member val... " >&6; } |
| 16416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16417 | /* end confdefs.h. */ |
| 16418 | |
| 16419 | #include <sys/types.h> |
| 16420 | #include <sys/statvfs.h> |
| 16421 | |
| 16422 | int |
| 16423 | main () |
| 16424 | { |
| 16425 | fsid_t t; t.val[0] = 0; |
| 16426 | ; |
| 16427 | return 0; |
| 16428 | } |
| 16429 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16430 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16432 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16433 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16434 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16435 | |
| 16436 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16438 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16439 | fi |
| 16440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16441 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 |
| 16443 | $as_echo_n "checking if f_fsid has member __val... " >&6; } |
| 16444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16445 | /* end confdefs.h. */ |
| 16446 | |
| 16447 | #include <sys/types.h> |
| 16448 | #include <sys/statvfs.h> |
| 16449 | |
| 16450 | int |
| 16451 | main () |
| 16452 | { |
| 16453 | fsid_t t; t.__val[0] = 0; |
| 16454 | ; |
| 16455 | return 0; |
| 16456 | } |
| 16457 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16458 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16460 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16461 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16462 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16463 | |
| 16464 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16466 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16467 | fi |
| 16468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16469 | |
| 16470 | fi |
| 16471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16472 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 |
| 16474 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } |
| 16475 | if ${ac_cv_have_control_in_msghdr+:} false; then : |
| 16476 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16477 | else |
| 16478 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16480 | /* end confdefs.h. */ |
| 16481 | |
| 16482 | #include <sys/types.h> |
| 16483 | #include <sys/socket.h> |
| 16484 | #include <sys/uio.h> |
| 16485 | |
| 16486 | int |
| 16487 | main () |
| 16488 | { |
| 16489 | |
| 16490 | #ifdef msg_control |
| 16491 | #error "msg_control is a macro" |
| 16492 | exit(1); |
| 16493 | #endif |
| 16494 | struct msghdr m; |
| 16495 | m.msg_control = 0; |
| 16496 | exit(0); |
| 16497 | |
| 16498 | ; |
| 16499 | return 0; |
| 16500 | } |
| 16501 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16502 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16503 | ac_cv_have_control_in_msghdr="yes" |
| 16504 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16505 | ac_cv_have_control_in_msghdr="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16506 | |
| 16507 | fi |
| 16508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16509 | |
| 16510 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 |
| 16512 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16513 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then |
| 16514 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16515 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16516 | |
| 16517 | fi |
| 16518 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 |
| 16520 | $as_echo_n "checking if libc defines __progname... " >&6; } |
| 16521 | if ${ac_cv_libc_defines___progname+:} false; then : |
| 16522 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16523 | else |
| 16524 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16526 | /* end confdefs.h. */ |
| 16527 | |
| 16528 | int |
| 16529 | main () |
| 16530 | { |
| 16531 | extern char *__progname; printf("%s", __progname); |
| 16532 | ; |
| 16533 | return 0; |
| 16534 | } |
| 16535 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16536 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16537 | ac_cv_libc_defines___progname="yes" |
| 16538 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16539 | ac_cv_libc_defines___progname="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16540 | |
| 16541 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16542 | rm -f core conftest.err conftest.$ac_objext \ |
| 16543 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16544 | |
| 16545 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 |
| 16547 | $as_echo "$ac_cv_libc_defines___progname" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16548 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then |
| 16549 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16550 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16551 | |
| 16552 | fi |
| 16553 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 |
| 16555 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } |
| 16556 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : |
| 16557 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16558 | else |
| 16559 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16561 | /* end confdefs.h. */ |
| 16562 | #include <stdio.h> |
| 16563 | int |
| 16564 | main () |
| 16565 | { |
| 16566 | printf("%s", __FUNCTION__); |
| 16567 | ; |
| 16568 | return 0; |
| 16569 | } |
| 16570 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16571 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16572 | ac_cv_cc_implements___FUNCTION__="yes" |
| 16573 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16574 | ac_cv_cc_implements___FUNCTION__="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16575 | |
| 16576 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16577 | rm -f core conftest.err conftest.$ac_objext \ |
| 16578 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16579 | |
| 16580 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 |
| 16582 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16583 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then |
| 16584 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16585 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16586 | |
| 16587 | fi |
| 16588 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 |
| 16590 | $as_echo_n "checking whether $CC implements __func__... " >&6; } |
| 16591 | if ${ac_cv_cc_implements___func__+:} false; then : |
| 16592 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16593 | else |
| 16594 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16596 | /* end confdefs.h. */ |
| 16597 | #include <stdio.h> |
| 16598 | int |
| 16599 | main () |
| 16600 | { |
| 16601 | printf("%s", __func__); |
| 16602 | ; |
| 16603 | return 0; |
| 16604 | } |
| 16605 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16606 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16607 | ac_cv_cc_implements___func__="yes" |
| 16608 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16609 | ac_cv_cc_implements___func__="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16610 | |
| 16611 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16612 | rm -f core conftest.err conftest.$ac_objext \ |
| 16613 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16614 | |
| 16615 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 |
| 16617 | $as_echo "$ac_cv_cc_implements___func__" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16618 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then |
| 16619 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16620 | $as_echo "#define HAVE___func__ 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16621 | |
| 16622 | fi |
| 16623 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 |
| 16625 | $as_echo_n "checking whether va_copy exists... " >&6; } |
| 16626 | if ${ac_cv_have_va_copy+:} false; then : |
| 16627 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16628 | else |
| 16629 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16631 | /* end confdefs.h. */ |
| 16632 | |
| 16633 | #include <stdarg.h> |
| 16634 | va_list x,y; |
| 16635 | |
| 16636 | int |
| 16637 | main () |
| 16638 | { |
| 16639 | va_copy(x,y); |
| 16640 | ; |
| 16641 | return 0; |
| 16642 | } |
| 16643 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16644 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16645 | ac_cv_have_va_copy="yes" |
| 16646 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16647 | ac_cv_have_va_copy="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16648 | |
| 16649 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16650 | rm -f core conftest.err conftest.$ac_objext \ |
| 16651 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16652 | |
| 16653 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 |
| 16655 | $as_echo "$ac_cv_have_va_copy" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16656 | if test "x$ac_cv_have_va_copy" = "xyes" ; then |
| 16657 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16658 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16659 | |
| 16660 | fi |
| 16661 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 |
| 16663 | $as_echo_n "checking whether __va_copy exists... " >&6; } |
| 16664 | if ${ac_cv_have___va_copy+:} false; then : |
| 16665 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16666 | else |
| 16667 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16669 | /* end confdefs.h. */ |
| 16670 | |
| 16671 | #include <stdarg.h> |
| 16672 | va_list x,y; |
| 16673 | |
| 16674 | int |
| 16675 | main () |
| 16676 | { |
| 16677 | __va_copy(x,y); |
| 16678 | ; |
| 16679 | return 0; |
| 16680 | } |
| 16681 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16682 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16683 | ac_cv_have___va_copy="yes" |
| 16684 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16685 | ac_cv_have___va_copy="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16686 | |
| 16687 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16688 | rm -f core conftest.err conftest.$ac_objext \ |
| 16689 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16690 | |
| 16691 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 |
| 16693 | $as_echo "$ac_cv_have___va_copy" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16694 | if test "x$ac_cv_have___va_copy" = "xyes" ; then |
| 16695 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16696 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16697 | |
| 16698 | fi |
| 16699 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 |
| 16701 | $as_echo_n "checking whether getopt has optreset support... " >&6; } |
| 16702 | if ${ac_cv_have_getopt_optreset+:} false; then : |
| 16703 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16704 | else |
| 16705 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16707 | /* end confdefs.h. */ |
| 16708 | #include <getopt.h> |
| 16709 | int |
| 16710 | main () |
| 16711 | { |
| 16712 | extern int optreset; optreset = 0; |
| 16713 | ; |
| 16714 | return 0; |
| 16715 | } |
| 16716 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16717 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16718 | ac_cv_have_getopt_optreset="yes" |
| 16719 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16720 | ac_cv_have_getopt_optreset="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16721 | |
| 16722 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16723 | rm -f core conftest.err conftest.$ac_objext \ |
| 16724 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16725 | |
| 16726 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 |
| 16728 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16729 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then |
| 16730 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16731 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16732 | |
| 16733 | fi |
| 16734 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 |
| 16736 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } |
| 16737 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : |
| 16738 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16739 | else |
| 16740 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16742 | /* end confdefs.h. */ |
| 16743 | |
| 16744 | int |
| 16745 | main () |
| 16746 | { |
| 16747 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); |
| 16748 | ; |
| 16749 | return 0; |
| 16750 | } |
| 16751 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16752 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16753 | ac_cv_libc_defines_sys_errlist="yes" |
| 16754 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16755 | ac_cv_libc_defines_sys_errlist="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16756 | |
| 16757 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16758 | rm -f core conftest.err conftest.$ac_objext \ |
| 16759 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16760 | |
| 16761 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 |
| 16763 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16764 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then |
| 16765 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16766 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16767 | |
| 16768 | fi |
| 16769 | |
| 16770 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 |
| 16772 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } |
| 16773 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : |
| 16774 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16775 | else |
| 16776 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16778 | /* end confdefs.h. */ |
| 16779 | |
| 16780 | int |
| 16781 | main () |
| 16782 | { |
| 16783 | extern int sys_nerr; printf("%i", sys_nerr); |
| 16784 | ; |
| 16785 | return 0; |
| 16786 | } |
| 16787 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16788 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16789 | ac_cv_libc_defines_sys_nerr="yes" |
| 16790 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16791 | ac_cv_libc_defines_sys_nerr="no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16792 | |
| 16793 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16794 | rm -f core conftest.err conftest.$ac_objext \ |
| 16795 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16796 | |
| 16797 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 |
| 16799 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16800 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then |
| 16801 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16802 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16803 | |
| 16804 | fi |
| 16805 | |
| 16806 | # Check libraries needed by DNS fingerprint support |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 |
| 16808 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } |
| 16809 | if ${ac_cv_search_getrrsetbyname+:} false; then : |
| 16810 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16811 | else |
| 16812 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16814 | /* end confdefs.h. */ |
| 16815 | |
| 16816 | /* Override any GCC internal prototype to avoid an error. |
| 16817 | Use char because int might match the return type of a GCC |
| 16818 | builtin and then its argument prototype would still apply. */ |
| 16819 | #ifdef __cplusplus |
| 16820 | extern "C" |
| 16821 | #endif |
| 16822 | char getrrsetbyname (); |
| 16823 | int |
| 16824 | main () |
| 16825 | { |
| 16826 | return getrrsetbyname (); |
| 16827 | ; |
| 16828 | return 0; |
| 16829 | } |
| 16830 | _ACEOF |
| 16831 | for ac_lib in '' resolv; do |
| 16832 | if test -z "$ac_lib"; then |
| 16833 | ac_res="none required" |
| 16834 | else |
| 16835 | ac_res=-l$ac_lib |
| 16836 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16837 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16838 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16839 | ac_cv_search_getrrsetbyname=$ac_res |
| 16840 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16841 | rm -f core conftest.err conftest.$ac_objext \ |
| 16842 | conftest$ac_exeext |
| 16843 | if ${ac_cv_search_getrrsetbyname+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16844 | break |
| 16845 | fi |
| 16846 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16847 | if ${ac_cv_search_getrrsetbyname+:} false; then : |
| 16848 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16849 | else |
| 16850 | ac_cv_search_getrrsetbyname=no |
| 16851 | fi |
| 16852 | rm conftest.$ac_ext |
| 16853 | LIBS=$ac_func_search_save_LIBS |
| 16854 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 |
| 16856 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16857 | ac_res=$ac_cv_search_getrrsetbyname |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16858 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16859 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16860 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16861 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16862 | |
| 16863 | else |
| 16864 | |
| 16865 | # Needed by our getrrsetbyname() |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 |
| 16867 | $as_echo_n "checking for library containing res_query... " >&6; } |
| 16868 | if ${ac_cv_search_res_query+:} false; then : |
| 16869 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16870 | else |
| 16871 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16873 | /* end confdefs.h. */ |
| 16874 | |
| 16875 | /* Override any GCC internal prototype to avoid an error. |
| 16876 | Use char because int might match the return type of a GCC |
| 16877 | builtin and then its argument prototype would still apply. */ |
| 16878 | #ifdef __cplusplus |
| 16879 | extern "C" |
| 16880 | #endif |
| 16881 | char res_query (); |
| 16882 | int |
| 16883 | main () |
| 16884 | { |
| 16885 | return res_query (); |
| 16886 | ; |
| 16887 | return 0; |
| 16888 | } |
| 16889 | _ACEOF |
| 16890 | for ac_lib in '' resolv; do |
| 16891 | if test -z "$ac_lib"; then |
| 16892 | ac_res="none required" |
| 16893 | else |
| 16894 | ac_res=-l$ac_lib |
| 16895 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16896 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16897 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16898 | ac_cv_search_res_query=$ac_res |
| 16899 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16900 | rm -f core conftest.err conftest.$ac_objext \ |
| 16901 | conftest$ac_exeext |
| 16902 | if ${ac_cv_search_res_query+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16903 | break |
| 16904 | fi |
| 16905 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16906 | if ${ac_cv_search_res_query+:} false; then : |
| 16907 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16908 | else |
| 16909 | ac_cv_search_res_query=no |
| 16910 | fi |
| 16911 | rm conftest.$ac_ext |
| 16912 | LIBS=$ac_func_search_save_LIBS |
| 16913 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 |
| 16915 | $as_echo "$ac_cv_search_res_query" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16916 | ac_res=$ac_cv_search_res_query |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16917 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16918 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16919 | |
| 16920 | fi |
| 16921 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 |
| 16923 | $as_echo_n "checking for library containing dn_expand... " >&6; } |
| 16924 | if ${ac_cv_search_dn_expand+:} false; then : |
| 16925 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16926 | else |
| 16927 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16929 | /* end confdefs.h. */ |
| 16930 | |
| 16931 | /* Override any GCC internal prototype to avoid an error. |
| 16932 | Use char because int might match the return type of a GCC |
| 16933 | builtin and then its argument prototype would still apply. */ |
| 16934 | #ifdef __cplusplus |
| 16935 | extern "C" |
| 16936 | #endif |
| 16937 | char dn_expand (); |
| 16938 | int |
| 16939 | main () |
| 16940 | { |
| 16941 | return dn_expand (); |
| 16942 | ; |
| 16943 | return 0; |
| 16944 | } |
| 16945 | _ACEOF |
| 16946 | for ac_lib in '' resolv; do |
| 16947 | if test -z "$ac_lib"; then |
| 16948 | ac_res="none required" |
| 16949 | else |
| 16950 | ac_res=-l$ac_lib |
| 16951 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16952 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16953 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16954 | ac_cv_search_dn_expand=$ac_res |
| 16955 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16956 | rm -f core conftest.err conftest.$ac_objext \ |
| 16957 | conftest$ac_exeext |
| 16958 | if ${ac_cv_search_dn_expand+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16959 | break |
| 16960 | fi |
| 16961 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16962 | if ${ac_cv_search_dn_expand+:} false; then : |
| 16963 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16964 | else |
| 16965 | ac_cv_search_dn_expand=no |
| 16966 | fi |
| 16967 | rm conftest.$ac_ext |
| 16968 | LIBS=$ac_func_search_save_LIBS |
| 16969 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 |
| 16971 | $as_echo "$ac_cv_search_dn_expand" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16972 | ac_res=$ac_cv_search_dn_expand |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16973 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16974 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16975 | |
| 16976 | fi |
| 16977 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 |
| 16979 | $as_echo_n "checking if res_query will link... " >&6; } |
| 16980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 16981 | /* end confdefs.h. */ |
| 16982 | |
| 16983 | #include <sys/types.h> |
| 16984 | #include <netinet/in.h> |
| 16985 | #include <arpa/nameser.h> |
| 16986 | #include <netdb.h> |
| 16987 | #include <resolv.h> |
| 16988 | |
| 16989 | int |
| 16990 | main () |
| 16991 | { |
| 16992 | |
| 16993 | res_query (0, 0, 0, 0, 0); |
| 16994 | |
| 16995 | ; |
| 16996 | return 0; |
| 16997 | } |
| 16998 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 16999 | if ac_fn_c_try_link "$LINENO"; then : |
| 17000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17001 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17002 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17004 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17005 | saved_LIBS="$LIBS" |
| 17006 | LIBS="$LIBS -lresolv" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 |
| 17008 | $as_echo_n "checking for res_query in -lresolv... " >&6; } |
| 17009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17010 | /* end confdefs.h. */ |
| 17011 | |
| 17012 | #include <sys/types.h> |
| 17013 | #include <netinet/in.h> |
| 17014 | #include <arpa/nameser.h> |
| 17015 | #include <netdb.h> |
| 17016 | #include <resolv.h> |
| 17017 | |
| 17018 | int |
| 17019 | main () |
| 17020 | { |
| 17021 | |
| 17022 | res_query (0, 0, 0, 0, 0); |
| 17023 | |
| 17024 | ; |
| 17025 | return 0; |
| 17026 | } |
| 17027 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17028 | if ac_fn_c_try_link "$LINENO"; then : |
| 17029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17030 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17031 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17032 | LIBS="$saved_LIBS" |
| 17033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17034 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17035 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17036 | rm -f core conftest.err conftest.$ac_objext \ |
| 17037 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17038 | |
| 17039 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17040 | rm -f core conftest.err conftest.$ac_objext \ |
| 17041 | conftest$ac_exeext conftest.$ac_ext |
| 17042 | for ac_func in _getshort _getlong |
| 17043 | do : |
| 17044 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17045 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 17046 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17047 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17048 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17049 | _ACEOF |
| 17050 | |
| 17051 | fi |
| 17052 | done |
| 17053 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17054 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17055 | #include <arpa/nameser.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17056 | " |
| 17057 | if test "x$ac_cv_have_decl__getshort" = xyes; then : |
| 17058 | ac_have_decl=1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17059 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17060 | ac_have_decl=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17061 | fi |
| 17062 | |
| 17063 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17064 | #define HAVE_DECL__GETSHORT $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17065 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17066 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17067 | #include <arpa/nameser.h> |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17068 | " |
| 17069 | if test "x$ac_cv_have_decl__getlong" = xyes; then : |
| 17070 | ac_have_decl=1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17071 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17072 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17073 | fi |
| 17074 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17075 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17076 | #define HAVE_DECL__GETLONG $ac_have_decl |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17077 | _ACEOF |
| 17078 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17079 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> |
| 17080 | " |
| 17081 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17082 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17083 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17084 | |
| 17085 | fi |
| 17086 | |
| 17087 | |
| 17088 | fi |
| 17089 | |
| 17090 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 |
| 17092 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } |
| 17093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17094 | /* end confdefs.h. */ |
| 17095 | |
| 17096 | #include <stdio.h> |
| 17097 | #if HAVE_SYS_TYPES_H |
| 17098 | # include <sys/types.h> |
| 17099 | #endif |
| 17100 | #include <netinet/in.h> |
| 17101 | #include <arpa/nameser.h> |
| 17102 | #include <resolv.h> |
| 17103 | extern struct __res_state _res; |
| 17104 | |
| 17105 | int |
| 17106 | main () |
| 17107 | { |
| 17108 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17109 | struct __res_state *volatile p = &_res; /* force resolution of _res */ |
| 17110 | return 0; |
| 17111 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17112 | ; |
| 17113 | return 0; |
| 17114 | } |
| 17115 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17116 | if ac_fn_c_try_link "$LINENO"; then : |
| 17117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17118 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17119 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17120 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17121 | |
| 17122 | |
| 17123 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17125 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17126 | |
| 17127 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17128 | rm -f core conftest.err conftest.$ac_objext \ |
| 17129 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17130 | |
| 17131 | # Check whether user wants SELinux support |
| 17132 | SELINUX_MSG="no" |
| 17133 | LIBSELINUX="" |
| 17134 | |
| 17135 | # Check whether --with-selinux was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17136 | if test "${with_selinux+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17137 | withval=$with_selinux; if test "x$withval" != "xno" ; then |
| 17138 | save_LIBS="$LIBS" |
| 17139 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17140 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17141 | |
| 17142 | SELINUX_MSG="yes" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17143 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" |
| 17144 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : |
| 17145 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17146 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17147 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17148 | fi |
| 17149 | |
| 17150 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 |
| 17152 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } |
| 17153 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : |
| 17154 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17155 | else |
| 17156 | ac_check_lib_save_LIBS=$LIBS |
| 17157 | LIBS="-lselinux $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17159 | /* end confdefs.h. */ |
| 17160 | |
| 17161 | /* Override any GCC internal prototype to avoid an error. |
| 17162 | Use char because int might match the return type of a GCC |
| 17163 | builtin and then its argument prototype would still apply. */ |
| 17164 | #ifdef __cplusplus |
| 17165 | extern "C" |
| 17166 | #endif |
| 17167 | char setexeccon (); |
| 17168 | int |
| 17169 | main () |
| 17170 | { |
| 17171 | return setexeccon (); |
| 17172 | ; |
| 17173 | return 0; |
| 17174 | } |
| 17175 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17176 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17177 | ac_cv_lib_selinux_setexeccon=yes |
| 17178 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17179 | ac_cv_lib_selinux_setexeccon=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17180 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17181 | rm -f core conftest.err conftest.$ac_objext \ |
| 17182 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17183 | LIBS=$ac_check_lib_save_LIBS |
| 17184 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 |
| 17186 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } |
| 17187 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17188 | LIBSELINUX="-lselinux" |
| 17189 | LIBS="$LIBS -lselinux" |
| 17190 | |
| 17191 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17192 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17193 | fi |
| 17194 | |
| 17195 | SSHLIBS="$SSHLIBS $LIBSELINUX" |
| 17196 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17197 | for ac_func in getseuserbyname get_default_context_with_level |
| 17198 | do : |
| 17199 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17200 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 17201 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17202 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17203 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17204 | _ACEOF |
| 17205 | |
| 17206 | fi |
| 17207 | done |
| 17208 | |
| 17209 | LIBS="$save_LIBS" |
| 17210 | fi |
| 17211 | |
| 17212 | fi |
| 17213 | |
| 17214 | |
| 17215 | |
| 17216 | |
| 17217 | # Check whether user wants Kerberos 5 support |
| 17218 | KRB5_MSG="no" |
| 17219 | |
| 17220 | # Check whether --with-kerberos5 was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17221 | if test "${with_kerberos5+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17222 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then |
| 17223 | if test "x$withval" = "xyes" ; then |
| 17224 | KRB5ROOT="/usr/local" |
| 17225 | else |
| 17226 | KRB5ROOT=${withval} |
| 17227 | fi |
| 17228 | |
| 17229 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17230 | $as_echo "#define KRB5 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17231 | |
| 17232 | KRB5_MSG="yes" |
| 17233 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17234 | if test -n "$ac_tool_prefix"; then |
| 17235 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. |
| 17236 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 |
| 17237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17238 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17239 | if ${ac_cv_path_KRB5CONF+:} false; then : |
| 17240 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17241 | else |
| 17242 | case $KRB5CONF in |
| 17243 | [\\/]* | ?:[\\/]*) |
| 17244 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. |
| 17245 | ;; |
| 17246 | *) |
| 17247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17248 | as_dummy="$KRB5ROOT/bin:$PATH" |
| 17249 | for as_dir in $as_dummy |
| 17250 | do |
| 17251 | IFS=$as_save_IFS |
| 17252 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17253 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17254 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17255 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17257 | break 2 |
| 17258 | fi |
| 17259 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17260 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17261 | IFS=$as_save_IFS |
| 17262 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17263 | ;; |
| 17264 | esac |
| 17265 | fi |
| 17266 | KRB5CONF=$ac_cv_path_KRB5CONF |
| 17267 | if test -n "$KRB5CONF"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 |
| 17269 | $as_echo "$KRB5CONF" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17270 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17272 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17273 | fi |
| 17274 | |
| 17275 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17276 | fi |
| 17277 | if test -z "$ac_cv_path_KRB5CONF"; then |
| 17278 | ac_pt_KRB5CONF=$KRB5CONF |
| 17279 | # Extract the first word of "krb5-config", so it can be a program name with args. |
| 17280 | set dummy krb5-config; ac_word=$2 |
| 17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17282 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17283 | if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then : |
| 17284 | $as_echo_n "(cached) " >&6 |
| 17285 | else |
| 17286 | case $ac_pt_KRB5CONF in |
| 17287 | [\\/]* | ?:[\\/]*) |
| 17288 | ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path. |
| 17289 | ;; |
| 17290 | *) |
| 17291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17292 | as_dummy="$KRB5ROOT/bin:$PATH" |
| 17293 | for as_dir in $as_dummy |
| 17294 | do |
| 17295 | IFS=$as_save_IFS |
| 17296 | test -z "$as_dir" && as_dir=. |
| 17297 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17299 | ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" |
| 17300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17301 | break 2 |
| 17302 | fi |
| 17303 | done |
| 17304 | done |
| 17305 | IFS=$as_save_IFS |
| 17306 | |
| 17307 | ;; |
| 17308 | esac |
| 17309 | fi |
| 17310 | ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF |
| 17311 | if test -n "$ac_pt_KRB5CONF"; then |
| 17312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5 |
| 17313 | $as_echo "$ac_pt_KRB5CONF" >&6; } |
| 17314 | else |
| 17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17316 | $as_echo "no" >&6; } |
| 17317 | fi |
| 17318 | |
| 17319 | if test "x$ac_pt_KRB5CONF" = x; then |
| 17320 | KRB5CONF="$KRB5ROOT/bin/krb5-config" |
| 17321 | else |
| 17322 | case $cross_compiling:$ac_tool_warned in |
| 17323 | yes:) |
| 17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17325 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17326 | ac_tool_warned=yes ;; |
| 17327 | esac |
| 17328 | KRB5CONF=$ac_pt_KRB5CONF |
| 17329 | fi |
| 17330 | else |
| 17331 | KRB5CONF="$ac_cv_path_KRB5CONF" |
| 17332 | fi |
| 17333 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17334 | if test -x $KRB5CONF ; then |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17335 | K5CFLAGS="`$KRB5CONF --cflags`" |
| 17336 | K5LIBS="`$KRB5CONF --libs`" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17337 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17338 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 |
| 17340 | $as_echo_n "checking for gssapi support... " >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17341 | if $KRB5CONF | grep gssapi >/dev/null ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17343 | $as_echo "yes" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17344 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17345 | $as_echo "#define GSSAPI 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17346 | |
| 17347 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" |
| 17348 | GSSLIBS="`$KRB5CONF --libs gssapi`" |
| 17349 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" |
| 17350 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17352 | $as_echo "no" >&6; } |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17353 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 |
| 17355 | $as_echo_n "checking whether we are using Heimdal... " >&6; } |
| 17356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17357 | /* end confdefs.h. */ |
| 17358 | #include <krb5.h> |
| 17359 | |
| 17360 | int |
| 17361 | main () |
| 17362 | { |
| 17363 | char *tmp = heimdal_version; |
| 17364 | ; |
| 17365 | return 0; |
| 17366 | } |
| 17367 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17368 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17370 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17371 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17372 | $as_echo "#define HEIMDAL 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17373 | |
| 17374 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17376 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17377 | |
| 17378 | fi |
| 17379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17380 | else |
| 17381 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" |
| 17382 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 |
| 17384 | $as_echo_n "checking whether we are using Heimdal... " >&6; } |
| 17385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17386 | /* end confdefs.h. */ |
| 17387 | #include <krb5.h> |
| 17388 | |
| 17389 | int |
| 17390 | main () |
| 17391 | { |
| 17392 | char *tmp = heimdal_version; |
| 17393 | ; |
| 17394 | return 0; |
| 17395 | } |
| 17396 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17397 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17399 | $as_echo "yes" >&6; } |
| 17400 | $as_echo "#define HEIMDAL 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17401 | |
| 17402 | K5LIBS="-lkrb5" |
| 17403 | K5LIBS="$K5LIBS -lcom_err -lasn1" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 |
| 17405 | $as_echo_n "checking for net_write in -lroken... " >&6; } |
| 17406 | if ${ac_cv_lib_roken_net_write+:} false; then : |
| 17407 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17408 | else |
| 17409 | ac_check_lib_save_LIBS=$LIBS |
| 17410 | LIBS="-lroken $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17412 | /* end confdefs.h. */ |
| 17413 | |
| 17414 | /* Override any GCC internal prototype to avoid an error. |
| 17415 | Use char because int might match the return type of a GCC |
| 17416 | builtin and then its argument prototype would still apply. */ |
| 17417 | #ifdef __cplusplus |
| 17418 | extern "C" |
| 17419 | #endif |
| 17420 | char net_write (); |
| 17421 | int |
| 17422 | main () |
| 17423 | { |
| 17424 | return net_write (); |
| 17425 | ; |
| 17426 | return 0; |
| 17427 | } |
| 17428 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17429 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17430 | ac_cv_lib_roken_net_write=yes |
| 17431 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17432 | ac_cv_lib_roken_net_write=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17433 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17434 | rm -f core conftest.err conftest.$ac_objext \ |
| 17435 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17436 | LIBS=$ac_check_lib_save_LIBS |
| 17437 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 |
| 17439 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } |
| 17440 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17441 | K5LIBS="$K5LIBS -lroken" |
| 17442 | fi |
| 17443 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 |
| 17445 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } |
| 17446 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : |
| 17447 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17448 | else |
| 17449 | ac_check_lib_save_LIBS=$LIBS |
| 17450 | LIBS="-ldes $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17452 | /* end confdefs.h. */ |
| 17453 | |
| 17454 | /* Override any GCC internal prototype to avoid an error. |
| 17455 | Use char because int might match the return type of a GCC |
| 17456 | builtin and then its argument prototype would still apply. */ |
| 17457 | #ifdef __cplusplus |
| 17458 | extern "C" |
| 17459 | #endif |
| 17460 | char des_cbc_encrypt (); |
| 17461 | int |
| 17462 | main () |
| 17463 | { |
| 17464 | return des_cbc_encrypt (); |
| 17465 | ; |
| 17466 | return 0; |
| 17467 | } |
| 17468 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17469 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17470 | ac_cv_lib_des_des_cbc_encrypt=yes |
| 17471 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17472 | ac_cv_lib_des_des_cbc_encrypt=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17473 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17474 | rm -f core conftest.err conftest.$ac_objext \ |
| 17475 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17476 | LIBS=$ac_check_lib_save_LIBS |
| 17477 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
| 17479 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } |
| 17480 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17481 | K5LIBS="$K5LIBS -ldes" |
| 17482 | fi |
| 17483 | |
| 17484 | |
| 17485 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17487 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17488 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" |
| 17489 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17490 | fi |
| 17491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 |
| 17493 | $as_echo_n "checking for library containing dn_expand... " >&6; } |
| 17494 | if ${ac_cv_search_dn_expand+:} false; then : |
| 17495 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17496 | else |
| 17497 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17499 | /* end confdefs.h. */ |
| 17500 | |
| 17501 | /* Override any GCC internal prototype to avoid an error. |
| 17502 | Use char because int might match the return type of a GCC |
| 17503 | builtin and then its argument prototype would still apply. */ |
| 17504 | #ifdef __cplusplus |
| 17505 | extern "C" |
| 17506 | #endif |
| 17507 | char dn_expand (); |
| 17508 | int |
| 17509 | main () |
| 17510 | { |
| 17511 | return dn_expand (); |
| 17512 | ; |
| 17513 | return 0; |
| 17514 | } |
| 17515 | _ACEOF |
| 17516 | for ac_lib in '' resolv; do |
| 17517 | if test -z "$ac_lib"; then |
| 17518 | ac_res="none required" |
| 17519 | else |
| 17520 | ac_res=-l$ac_lib |
| 17521 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17522 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17523 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17524 | ac_cv_search_dn_expand=$ac_res |
| 17525 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17526 | rm -f core conftest.err conftest.$ac_objext \ |
| 17527 | conftest$ac_exeext |
| 17528 | if ${ac_cv_search_dn_expand+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17529 | break |
| 17530 | fi |
| 17531 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17532 | if ${ac_cv_search_dn_expand+:} false; then : |
| 17533 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17534 | else |
| 17535 | ac_cv_search_dn_expand=no |
| 17536 | fi |
| 17537 | rm conftest.$ac_ext |
| 17538 | LIBS=$ac_func_search_save_LIBS |
| 17539 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 |
| 17541 | $as_echo "$ac_cv_search_dn_expand" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17542 | ac_res=$ac_cv_search_dn_expand |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17543 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17544 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17545 | |
| 17546 | fi |
| 17547 | |
| 17548 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 |
| 17550 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } |
| 17551 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : |
| 17552 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17553 | else |
| 17554 | ac_check_lib_save_LIBS=$LIBS |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17555 | LIBS="-lgssapi_krb5 $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17557 | /* end confdefs.h. */ |
| 17558 | |
| 17559 | /* Override any GCC internal prototype to avoid an error. |
| 17560 | Use char because int might match the return type of a GCC |
| 17561 | builtin and then its argument prototype would still apply. */ |
| 17562 | #ifdef __cplusplus |
| 17563 | extern "C" |
| 17564 | #endif |
| 17565 | char gss_init_sec_context (); |
| 17566 | int |
| 17567 | main () |
| 17568 | { |
| 17569 | return gss_init_sec_context (); |
| 17570 | ; |
| 17571 | return 0; |
| 17572 | } |
| 17573 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17574 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17575 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes |
| 17576 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17577 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17578 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17579 | rm -f core conftest.err conftest.$ac_objext \ |
| 17580 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17581 | LIBS=$ac_check_lib_save_LIBS |
| 17582 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 |
| 17584 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } |
| 17585 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : |
| 17586 | $as_echo "#define GSSAPI 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17587 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17588 | GSSLIBS="-lgssapi_krb5" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17589 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 |
| 17591 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } |
| 17592 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : |
| 17593 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17594 | else |
| 17595 | ac_check_lib_save_LIBS=$LIBS |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17596 | LIBS="-lgssapi $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17598 | /* end confdefs.h. */ |
| 17599 | |
| 17600 | /* Override any GCC internal prototype to avoid an error. |
| 17601 | Use char because int might match the return type of a GCC |
| 17602 | builtin and then its argument prototype would still apply. */ |
| 17603 | #ifdef __cplusplus |
| 17604 | extern "C" |
| 17605 | #endif |
| 17606 | char gss_init_sec_context (); |
| 17607 | int |
| 17608 | main () |
| 17609 | { |
| 17610 | return gss_init_sec_context (); |
| 17611 | ; |
| 17612 | return 0; |
| 17613 | } |
| 17614 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17615 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17616 | ac_cv_lib_gssapi_gss_init_sec_context=yes |
| 17617 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17618 | ac_cv_lib_gssapi_gss_init_sec_context=no |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17619 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17620 | rm -f core conftest.err conftest.$ac_objext \ |
| 17621 | conftest$ac_exeext conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17622 | LIBS=$ac_check_lib_save_LIBS |
| 17623 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 |
| 17625 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } |
| 17626 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : |
| 17627 | $as_echo "#define GSSAPI 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17628 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17629 | GSSLIBS="-lgssapi" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17630 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 |
| 17632 | $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } |
| 17633 | if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : |
| 17634 | $as_echo_n "(cached) " >&6 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17635 | else |
| 17636 | ac_check_lib_save_LIBS=$LIBS |
| 17637 | LIBS="-lgss $LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17639 | /* end confdefs.h. */ |
| 17640 | |
| 17641 | /* Override any GCC internal prototype to avoid an error. |
| 17642 | Use char because int might match the return type of a GCC |
| 17643 | builtin and then its argument prototype would still apply. */ |
| 17644 | #ifdef __cplusplus |
| 17645 | extern "C" |
| 17646 | #endif |
| 17647 | char gss_init_sec_context (); |
| 17648 | int |
| 17649 | main () |
| 17650 | { |
| 17651 | return gss_init_sec_context (); |
| 17652 | ; |
| 17653 | return 0; |
| 17654 | } |
| 17655 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17656 | if ac_fn_c_try_link "$LINENO"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17657 | ac_cv_lib_gss_gss_init_sec_context=yes |
| 17658 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17659 | ac_cv_lib_gss_gss_init_sec_context=no |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17660 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17661 | rm -f core conftest.err conftest.$ac_objext \ |
| 17662 | conftest$ac_exeext conftest.$ac_ext |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17663 | LIBS=$ac_check_lib_save_LIBS |
| 17664 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 |
| 17666 | $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } |
| 17667 | if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : |
| 17668 | $as_echo "#define GSSAPI 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17669 | |
| 17670 | GSSLIBS="-lgss" |
| 17671 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 |
| 17673 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17674 | fi |
| 17675 | |
| 17676 | |
| 17677 | fi |
| 17678 | |
| 17679 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17680 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17681 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17682 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17683 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" |
| 17684 | if test "x$ac_cv_header_gssapi_h" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17685 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17686 | else |
| 17687 | unset ac_cv_header_gssapi_h |
| 17688 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17689 | for ac_header in gssapi.h |
| 17690 | do : |
| 17691 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" |
| 17692 | if test "x$ac_cv_header_gssapi_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17693 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17694 | #define HAVE_GSSAPI_H 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17695 | _ACEOF |
| 17696 | |
| 17697 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 |
| 17699 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17700 | |
| 17701 | fi |
| 17702 | |
| 17703 | done |
| 17704 | |
| 17705 | |
| 17706 | |
| 17707 | fi |
| 17708 | |
| 17709 | |
| 17710 | |
| 17711 | oldCPP="$CPPFLAGS" |
| 17712 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17713 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" |
| 17714 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17715 | |
| 17716 | else |
| 17717 | CPPFLAGS="$oldCPP" |
| 17718 | fi |
| 17719 | |
| 17720 | |
| 17721 | |
| 17722 | fi |
| 17723 | if test ! -z "$need_dash_r" ; then |
| 17724 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" |
| 17725 | fi |
| 17726 | if test ! -z "$blibpath" ; then |
| 17727 | blibpath="$blibpath:${KRB5ROOT}/lib" |
| 17728 | fi |
| 17729 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17730 | for ac_header in gssapi.h gssapi/gssapi.h |
| 17731 | do : |
| 17732 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17733 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 17734 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17735 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17736 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17737 | _ACEOF |
| 17738 | |
| 17739 | fi |
| 17740 | |
| 17741 | done |
| 17742 | |
| 17743 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h |
| 17744 | do : |
| 17745 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17746 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 17747 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 17748 | cat >>confdefs.h <<_ACEOF |
| 17749 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17750 | _ACEOF |
| 17751 | |
| 17752 | fi |
| 17753 | |
| 17754 | done |
| 17755 | |
| 17756 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h |
| 17757 | do : |
| 17758 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17759 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 17760 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 17761 | cat >>confdefs.h <<_ACEOF |
| 17762 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17763 | _ACEOF |
| 17764 | |
| 17765 | fi |
| 17766 | |
| 17767 | done |
| 17768 | |
| 17769 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 |
| 17771 | $as_echo_n "checking for library containing k_hasafs... " >&6; } |
| 17772 | if ${ac_cv_search_k_hasafs+:} false; then : |
| 17773 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17774 | else |
| 17775 | ac_func_search_save_LIBS=$LIBS |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17777 | /* end confdefs.h. */ |
| 17778 | |
| 17779 | /* Override any GCC internal prototype to avoid an error. |
| 17780 | Use char because int might match the return type of a GCC |
| 17781 | builtin and then its argument prototype would still apply. */ |
| 17782 | #ifdef __cplusplus |
| 17783 | extern "C" |
| 17784 | #endif |
| 17785 | char k_hasafs (); |
| 17786 | int |
| 17787 | main () |
| 17788 | { |
| 17789 | return k_hasafs (); |
| 17790 | ; |
| 17791 | return 0; |
| 17792 | } |
| 17793 | _ACEOF |
| 17794 | for ac_lib in '' kafs; do |
| 17795 | if test -z "$ac_lib"; then |
| 17796 | ac_res="none required" |
| 17797 | else |
| 17798 | ac_res=-l$ac_lib |
| 17799 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17800 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17801 | if ac_fn_c_try_link "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17802 | ac_cv_search_k_hasafs=$ac_res |
| 17803 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17804 | rm -f core conftest.err conftest.$ac_objext \ |
| 17805 | conftest$ac_exeext |
| 17806 | if ${ac_cv_search_k_hasafs+:} false; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17807 | break |
| 17808 | fi |
| 17809 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17810 | if ${ac_cv_search_k_hasafs+:} false; then : |
| 17811 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17812 | else |
| 17813 | ac_cv_search_k_hasafs=no |
| 17814 | fi |
| 17815 | rm conftest.$ac_ext |
| 17816 | LIBS=$ac_func_search_save_LIBS |
| 17817 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 |
| 17819 | $as_echo "$ac_cv_search_k_hasafs" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17820 | ac_res=$ac_cv_search_k_hasafs |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17821 | if test "$ac_res" != no; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17822 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17823 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17824 | $as_echo "#define USE_AFS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17825 | |
| 17826 | fi |
| 17827 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17828 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17829 | ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17830 | #ifdef HAVE_GSSAPI_H |
| 17831 | # include <gssapi.h> |
| 17832 | #elif defined(HAVE_GSSAPI_GSSAPI_H) |
| 17833 | # include <gssapi/gssapi.h> |
| 17834 | #endif |
| 17835 | |
| 17836 | #ifdef HAVE_GSSAPI_GENERIC_H |
| 17837 | # include <gssapi_generic.h> |
| 17838 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) |
| 17839 | # include <gssapi/gssapi_generic.h> |
| 17840 | #endif |
| 17841 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17842 | " |
| 17843 | if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : |
| 17844 | ac_have_decl=1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17845 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17846 | ac_have_decl=0 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17847 | fi |
| 17848 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17849 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17850 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17851 | _ACEOF |
| 17852 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17853 | saved_LIBS="$LIBS" |
| 17854 | LIBS="$LIBS $K5LIBS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17855 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message |
| 17856 | do : |
| 17857 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17858 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 17859 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17860 | cat >>confdefs.h <<_ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17861 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17862 | _ACEOF |
| 17863 | |
| 17864 | fi |
| 17865 | done |
| 17866 | |
| 17867 | LIBS="$saved_LIBS" |
| 17868 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17869 | fi |
| 17870 | |
| 17871 | |
| 17872 | fi |
| 17873 | |
| 17874 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 17875 | |
| 17876 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17877 | # Looking for programs, paths and files |
| 17878 | |
| 17879 | PRIVSEP_PATH=/var/empty |
| 17880 | |
| 17881 | # Check whether --with-privsep-path was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17882 | if test "${with_privsep_path+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17883 | withval=$with_privsep_path; |
| 17884 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 17885 | test "x${withval}" != "xyes"; then |
| 17886 | PRIVSEP_PATH=$withval |
| 17887 | fi |
| 17888 | |
| 17889 | |
| 17890 | fi |
| 17891 | |
| 17892 | |
| 17893 | |
| 17894 | |
| 17895 | # Check whether --with-xauth was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17896 | if test "${with_xauth+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17897 | withval=$with_xauth; |
| 17898 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 17899 | test "x${withval}" != "xyes"; then |
| 17900 | xauth_path=$withval |
| 17901 | fi |
| 17902 | |
| 17903 | else |
| 17904 | |
| 17905 | TestPath="$PATH" |
| 17906 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" |
| 17907 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" |
| 17908 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" |
| 17909 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" |
| 17910 | # Extract the first word of "xauth", so it can be a program name with args. |
| 17911 | set dummy xauth; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17913 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17914 | if ${ac_cv_path_xauth_path+:} false; then : |
| 17915 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17916 | else |
| 17917 | case $xauth_path in |
| 17918 | [\\/]* | ?:[\\/]*) |
| 17919 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. |
| 17920 | ;; |
| 17921 | *) |
| 17922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17923 | for as_dir in $TestPath |
| 17924 | do |
| 17925 | IFS=$as_save_IFS |
| 17926 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17927 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17929 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17931 | break 2 |
| 17932 | fi |
| 17933 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17934 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17935 | IFS=$as_save_IFS |
| 17936 | |
| 17937 | ;; |
| 17938 | esac |
| 17939 | fi |
| 17940 | xauth_path=$ac_cv_path_xauth_path |
| 17941 | if test -n "$xauth_path"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 |
| 17943 | $as_echo "$xauth_path" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17944 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17946 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17947 | fi |
| 17948 | |
| 17949 | |
| 17950 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then |
| 17951 | xauth_path="/usr/openwin/bin/xauth" |
| 17952 | fi |
| 17953 | |
| 17954 | |
| 17955 | fi |
| 17956 | |
| 17957 | |
| 17958 | STRIP_OPT=-s |
| 17959 | # Check whether --enable-strip was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17960 | if test "${enable_strip+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17961 | enableval=$enable_strip; |
| 17962 | if test "x$enableval" = "xno" ; then |
| 17963 | STRIP_OPT= |
| 17964 | fi |
| 17965 | |
| 17966 | |
| 17967 | fi |
| 17968 | |
| 17969 | |
| 17970 | |
| 17971 | if test -z "$xauth_path" ; then |
| 17972 | XAUTH_PATH="undefined" |
| 17973 | |
| 17974 | else |
| 17975 | |
| 17976 | cat >>confdefs.h <<_ACEOF |
| 17977 | #define XAUTH_PATH "$xauth_path" |
| 17978 | _ACEOF |
| 17979 | |
| 17980 | XAUTH_PATH=$xauth_path |
| 17981 | |
| 17982 | fi |
| 17983 | |
| 17984 | # Check for mail directory |
| 17985 | |
| 17986 | # Check whether --with-maildir was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 17987 | if test "${with_maildir+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 17988 | withval=$with_maildir; |
| 17989 | if test "X$withval" != X && test "x$withval" != xno && \ |
| 17990 | test "x${withval}" != xyes; then |
| 17991 | |
| 17992 | cat >>confdefs.h <<_ACEOF |
| 17993 | #define MAIL_DIRECTORY "$withval" |
| 17994 | _ACEOF |
| 17995 | |
| 17996 | fi |
| 17997 | |
| 17998 | else |
| 17999 | |
| 18000 | if test "X$maildir" != "X"; then |
| 18001 | cat >>confdefs.h <<_ACEOF |
| 18002 | #define MAIL_DIRECTORY "$maildir" |
| 18003 | _ACEOF |
| 18004 | |
| 18005 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 |
| 18007 | $as_echo_n "checking Discovering system mail directory... " >&6; } |
| 18008 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18009 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 |
| 18011 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18012 | |
| 18013 | |
| 18014 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18016 | /* end confdefs.h. */ |
| 18017 | |
| 18018 | #include <stdio.h> |
| 18019 | #include <string.h> |
| 18020 | #ifdef HAVE_PATHS_H |
| 18021 | #include <paths.h> |
| 18022 | #endif |
| 18023 | #ifdef HAVE_MAILLOCK_H |
| 18024 | #include <maillock.h> |
| 18025 | #endif |
| 18026 | #define DATA "conftest.maildir" |
| 18027 | |
| 18028 | int |
| 18029 | main () |
| 18030 | { |
| 18031 | |
| 18032 | FILE *fd; |
| 18033 | int rc; |
| 18034 | |
| 18035 | fd = fopen(DATA,"w"); |
| 18036 | if(fd == NULL) |
| 18037 | exit(1); |
| 18038 | |
| 18039 | #if defined (_PATH_MAILDIR) |
| 18040 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) |
| 18041 | exit(1); |
| 18042 | #elif defined (MAILDIR) |
| 18043 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) |
| 18044 | exit(1); |
| 18045 | #elif defined (_PATH_MAIL) |
| 18046 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) |
| 18047 | exit(1); |
| 18048 | #else |
| 18049 | exit (2); |
| 18050 | #endif |
| 18051 | |
| 18052 | exit(0); |
| 18053 | |
| 18054 | ; |
| 18055 | return 0; |
| 18056 | } |
| 18057 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18058 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18059 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18060 | maildir_what=`awk -F: '{print $1}' conftest.maildir` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18061 | maildir=`awk -F: '{print $2}' conftest.maildir \ |
| 18062 | | sed 's|/$||'` |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 |
| 18064 | $as_echo "Using: $maildir from $maildir_what" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18065 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then |
| 18066 | cat >>confdefs.h <<_ACEOF |
| 18067 | #define MAIL_DIRECTORY "$maildir" |
| 18068 | _ACEOF |
| 18069 | |
| 18070 | fi |
| 18071 | |
| 18072 | else |
| 18073 | |
| 18074 | if test "X$ac_status" = "X2";then |
| 18075 | # our test program didn't find it. Default to /var/spool/mail |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 |
| 18077 | $as_echo "Using: default value of /var/spool/mail" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18078 | cat >>confdefs.h <<_ACEOF |
| 18079 | #define MAIL_DIRECTORY "/var/spool/mail" |
| 18080 | _ACEOF |
| 18081 | |
| 18082 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 |
| 18084 | $as_echo "*** not found ***" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18085 | fi |
| 18086 | |
| 18087 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18088 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18089 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18090 | fi |
| 18091 | |
| 18092 | fi |
| 18093 | |
| 18094 | |
| 18095 | fi |
| 18096 | # maildir |
| 18097 | |
| 18098 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 |
| 18100 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18101 | disable_ptmx_check=yes |
| 18102 | fi |
| 18103 | if test -z "$no_dev_ptmx" ; then |
| 18104 | if test "x$disable_ptmx_check" != "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18105 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` |
| 18106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 |
| 18107 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } |
| 18108 | if eval \${$as_ac_File+:} false; then : |
| 18109 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18110 | else |
| 18111 | test "$cross_compiling" = yes && |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18112 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18113 | if test -r ""/dev/ptmx""; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18114 | eval "$as_ac_File=yes" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18115 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18116 | eval "$as_ac_File=no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18117 | fi |
| 18118 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18119 | eval ac_res=\$$as_ac_File |
| 18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18121 | $as_echo "$ac_res" >&6; } |
| 18122 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18123 | |
| 18124 | |
| 18125 | cat >>confdefs.h <<_ACEOF |
| 18126 | #define HAVE_DEV_PTMX 1 |
| 18127 | _ACEOF |
| 18128 | |
| 18129 | have_dev_ptmx=1 |
| 18130 | |
| 18131 | |
| 18132 | fi |
| 18133 | |
| 18134 | fi |
| 18135 | fi |
| 18136 | |
| 18137 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18138 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` |
| 18139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 |
| 18140 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } |
| 18141 | if eval \${$as_ac_File+:} false; then : |
| 18142 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18143 | else |
| 18144 | test "$cross_compiling" = yes && |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18145 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18146 | if test -r ""/dev/ptc""; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18147 | eval "$as_ac_File=yes" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18148 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18149 | eval "$as_ac_File=no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18150 | fi |
| 18151 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18152 | eval ac_res=\$$as_ac_File |
| 18153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18154 | $as_echo "$ac_res" >&6; } |
| 18155 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18156 | |
| 18157 | |
| 18158 | cat >>confdefs.h <<_ACEOF |
| 18159 | #define HAVE_DEV_PTS_AND_PTC 1 |
| 18160 | _ACEOF |
| 18161 | |
| 18162 | have_dev_ptc=1 |
| 18163 | |
| 18164 | |
| 18165 | fi |
| 18166 | |
| 18167 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 |
| 18169 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18170 | fi |
| 18171 | |
| 18172 | # Options from here on. Some of these are preset by platform above |
| 18173 | |
| 18174 | # Check whether --with-mantype was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18175 | if test "${with_mantype+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18176 | withval=$with_mantype; |
| 18177 | case "$withval" in |
| 18178 | man|cat|doc) |
| 18179 | MANTYPE=$withval |
| 18180 | ;; |
| 18181 | *) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18182 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18183 | ;; |
| 18184 | esac |
| 18185 | |
| 18186 | |
| 18187 | fi |
| 18188 | |
| 18189 | if test -z "$MANTYPE"; then |
| 18190 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" |
| 18191 | for ac_prog in nroff awf |
| 18192 | do |
| 18193 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18194 | set dummy $ac_prog; ac_word=$2 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18196 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18197 | if ${ac_cv_path_NROFF+:} false; then : |
| 18198 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18199 | else |
| 18200 | case $NROFF in |
| 18201 | [\\/]* | ?:[\\/]*) |
| 18202 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. |
| 18203 | ;; |
| 18204 | *) |
| 18205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18206 | for as_dir in $TestPath |
| 18207 | do |
| 18208 | IFS=$as_save_IFS |
| 18209 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18210 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18212 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18214 | break 2 |
| 18215 | fi |
| 18216 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18217 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18218 | IFS=$as_save_IFS |
| 18219 | |
| 18220 | ;; |
| 18221 | esac |
| 18222 | fi |
| 18223 | NROFF=$ac_cv_path_NROFF |
| 18224 | if test -n "$NROFF"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 |
| 18226 | $as_echo "$NROFF" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18227 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18229 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18230 | fi |
| 18231 | |
| 18232 | |
| 18233 | test -n "$NROFF" && break |
| 18234 | done |
| 18235 | test -n "$NROFF" || NROFF="/bin/false" |
| 18236 | |
| 18237 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then |
| 18238 | MANTYPE=doc |
| 18239 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then |
| 18240 | MANTYPE=man |
| 18241 | else |
| 18242 | MANTYPE=cat |
| 18243 | fi |
| 18244 | fi |
| 18245 | |
| 18246 | if test "$MANTYPE" = "doc"; then |
| 18247 | mansubdir=man; |
| 18248 | else |
| 18249 | mansubdir=$MANTYPE; |
| 18250 | fi |
| 18251 | |
| 18252 | |
| 18253 | # Check whether to enable MD5 passwords |
| 18254 | MD5_MSG="no" |
| 18255 | |
| 18256 | # Check whether --with-md5-passwords was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18257 | if test "${with_md5_passwords+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18258 | withval=$with_md5_passwords; |
| 18259 | if test "x$withval" != "xno" ; then |
| 18260 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18261 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18262 | |
| 18263 | MD5_MSG="yes" |
| 18264 | fi |
| 18265 | |
| 18266 | |
| 18267 | fi |
| 18268 | |
| 18269 | |
| 18270 | # Whether to disable shadow password support |
| 18271 | |
| 18272 | # Check whether --with-shadow was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18273 | if test "${with_shadow+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18274 | withval=$with_shadow; |
| 18275 | if test "x$withval" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18276 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18277 | |
| 18278 | disable_shadow=yes |
| 18279 | fi |
| 18280 | |
| 18281 | |
| 18282 | fi |
| 18283 | |
| 18284 | |
| 18285 | if test -z "$disable_shadow" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 |
| 18287 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } |
| 18288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18289 | /* end confdefs.h. */ |
| 18290 | |
| 18291 | #include <sys/types.h> |
| 18292 | #include <shadow.h> |
| 18293 | struct spwd sp; |
| 18294 | |
| 18295 | int |
| 18296 | main () |
| 18297 | { |
| 18298 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; |
| 18299 | ; |
| 18300 | return 0; |
| 18301 | } |
| 18302 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18303 | if ac_fn_c_try_compile "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18304 | sp_expire_available=yes |
| 18305 | fi |
| 18306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18307 | |
| 18308 | if test "x$sp_expire_available" = "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18310 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18311 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18312 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18313 | |
| 18314 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18316 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18317 | fi |
| 18318 | fi |
| 18319 | |
| 18320 | # Use ip address instead of hostname in $DISPLAY |
| 18321 | if test ! -z "$IPADDR_IN_DISPLAY" ; then |
| 18322 | DISPLAY_HACK_MSG="yes" |
| 18323 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18324 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18325 | |
| 18326 | else |
| 18327 | DISPLAY_HACK_MSG="no" |
| 18328 | |
| 18329 | # Check whether --with-ipaddr-display was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18330 | if test "${with_ipaddr_display+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18331 | withval=$with_ipaddr_display; |
| 18332 | if test "x$withval" != "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18333 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18334 | |
| 18335 | DISPLAY_HACK_MSG="yes" |
| 18336 | fi |
| 18337 | |
| 18338 | |
| 18339 | fi |
| 18340 | |
| 18341 | fi |
| 18342 | |
| 18343 | # check for /etc/default/login and use it if present. |
| 18344 | # Check whether --enable-etc-default-login was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18345 | if test "${enable_etc_default_login+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18346 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18347 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 |
| 18348 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18349 | etc_default_login=no |
| 18350 | else |
| 18351 | etc_default_login=yes |
| 18352 | fi |
| 18353 | else |
| 18354 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; |
| 18355 | then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 |
| 18357 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18358 | etc_default_login=no |
| 18359 | else |
| 18360 | etc_default_login=yes |
| 18361 | fi |
| 18362 | |
| 18363 | fi |
| 18364 | |
| 18365 | |
| 18366 | if test "x$etc_default_login" != "xno"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18367 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` |
| 18368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 |
| 18369 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } |
| 18370 | if eval \${$as_ac_File+:} false; then : |
| 18371 | $as_echo_n "(cached) " >&6 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18372 | else |
| 18373 | test "$cross_compiling" = yes && |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18374 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18375 | if test -r ""/etc/default/login""; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18376 | eval "$as_ac_File=yes" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18377 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18378 | eval "$as_ac_File=no" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18379 | fi |
| 18380 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18381 | eval ac_res=\$$as_ac_File |
| 18382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18383 | $as_echo "$ac_res" >&6; } |
| 18384 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18385 | external_path_file=/etc/default/login |
| 18386 | fi |
| 18387 | |
| 18388 | if test "x$external_path_file" = "x/etc/default/login"; then |
| 18389 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18390 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18391 | |
| 18392 | fi |
| 18393 | fi |
| 18394 | |
| 18395 | if test $ac_cv_func_login_getcapbool = "yes" && \ |
| 18396 | test $ac_cv_header_login_cap_h = "yes" ; then |
| 18397 | external_path_file=/etc/login.conf |
| 18398 | fi |
| 18399 | |
| 18400 | # Whether to mess with the default path |
| 18401 | SERVER_PATH_MSG="(default)" |
| 18402 | |
| 18403 | # Check whether --with-default-path was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18404 | if test "${with_default_path+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18405 | withval=$with_default_path; |
| 18406 | if test "x$external_path_file" = "x/etc/login.conf" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18408 | --with-default-path=PATH has no effect on this system. |
| 18409 | Edit /etc/login.conf instead." >&5 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18410 | $as_echo "$as_me: WARNING: |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18411 | --with-default-path=PATH has no effect on this system. |
| 18412 | Edit /etc/login.conf instead." >&2;} |
| 18413 | elif test "x$withval" != "xno" ; then |
| 18414 | if test ! -z "$external_path_file" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18415 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18416 | --with-default-path=PATH will only be used if PATH is not defined in |
| 18417 | $external_path_file ." >&5 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18418 | $as_echo "$as_me: WARNING: |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18419 | --with-default-path=PATH will only be used if PATH is not defined in |
| 18420 | $external_path_file ." >&2;} |
| 18421 | fi |
| 18422 | user_path="$withval" |
| 18423 | SERVER_PATH_MSG="$withval" |
| 18424 | fi |
| 18425 | |
| 18426 | else |
| 18427 | if test "x$external_path_file" = "x/etc/login.conf" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18428 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 |
| 18429 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18430 | else |
| 18431 | if test ! -z "$external_path_file" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18432 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18433 | If PATH is defined in $external_path_file, ensure the path to scp is included, |
| 18434 | otherwise scp will not work." >&5 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18435 | $as_echo "$as_me: WARNING: |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18436 | If PATH is defined in $external_path_file, ensure the path to scp is included, |
| 18437 | otherwise scp will not work." >&2;} |
| 18438 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18439 | if test "$cross_compiling" = yes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18440 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" |
| 18441 | |
| 18442 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18444 | /* end confdefs.h. */ |
| 18445 | |
| 18446 | /* find out what STDPATH is */ |
| 18447 | #include <stdio.h> |
| 18448 | #ifdef HAVE_PATHS_H |
| 18449 | # include <paths.h> |
| 18450 | #endif |
| 18451 | #ifndef _PATH_STDPATH |
| 18452 | # ifdef _PATH_USERPATH /* Irix */ |
| 18453 | # define _PATH_STDPATH _PATH_USERPATH |
| 18454 | # else |
| 18455 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" |
| 18456 | # endif |
| 18457 | #endif |
| 18458 | #include <sys/types.h> |
| 18459 | #include <sys/stat.h> |
| 18460 | #include <fcntl.h> |
| 18461 | #define DATA "conftest.stdpath" |
| 18462 | |
| 18463 | int |
| 18464 | main () |
| 18465 | { |
| 18466 | |
| 18467 | FILE *fd; |
| 18468 | int rc; |
| 18469 | |
| 18470 | fd = fopen(DATA,"w"); |
| 18471 | if(fd == NULL) |
| 18472 | exit(1); |
| 18473 | |
| 18474 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) |
| 18475 | exit(1); |
| 18476 | |
| 18477 | exit(0); |
| 18478 | |
| 18479 | ; |
| 18480 | return 0; |
| 18481 | } |
| 18482 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18483 | if ac_fn_c_try_run "$LINENO"; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18484 | user_path=`cat conftest.stdpath` |
| 18485 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18486 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18487 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18488 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18489 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18490 | fi |
| 18491 | |
| 18492 | # make sure $bindir is in USER_PATH so scp will work |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 18493 | t_bindir="${bindir}" |
| 18494 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do |
| 18495 | t_bindir=`eval echo ${t_bindir}` |
| 18496 | case $t_bindir in |
| 18497 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; |
| 18498 | esac |
| 18499 | case $t_bindir in |
| 18500 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; |
| 18501 | esac |
| 18502 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18503 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 |
| 18504 | if test $? -ne 0 ; then |
| 18505 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 |
| 18506 | if test $? -ne 0 ; then |
| 18507 | user_path=$user_path:$t_bindir |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 |
| 18509 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18510 | fi |
| 18511 | fi |
| 18512 | fi |
| 18513 | |
| 18514 | fi |
| 18515 | |
| 18516 | if test "x$external_path_file" != "x/etc/login.conf" ; then |
| 18517 | |
| 18518 | cat >>confdefs.h <<_ACEOF |
| 18519 | #define USER_PATH "$user_path" |
| 18520 | _ACEOF |
| 18521 | |
| 18522 | |
| 18523 | fi |
| 18524 | |
| 18525 | # Set superuser path separately to user path |
| 18526 | |
| 18527 | # Check whether --with-superuser-path was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18528 | if test "${with_superuser_path+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18529 | withval=$with_superuser_path; |
| 18530 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 18531 | test "x${withval}" != "xyes"; then |
| 18532 | |
| 18533 | cat >>confdefs.h <<_ACEOF |
| 18534 | #define SUPERUSER_PATH "$withval" |
| 18535 | _ACEOF |
| 18536 | |
| 18537 | superuser_path=$withval |
| 18538 | fi |
| 18539 | |
| 18540 | |
| 18541 | fi |
| 18542 | |
| 18543 | |
| 18544 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 |
| 18546 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18547 | IPV4_IN6_HACK_MSG="no" |
| 18548 | |
| 18549 | # Check whether --with-4in6 was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18550 | if test "${with_4in6+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18551 | withval=$with_4in6; |
| 18552 | if test "x$withval" != "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18554 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18555 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18556 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18557 | |
| 18558 | IPV4_IN6_HACK_MSG="yes" |
| 18559 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18561 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18562 | fi |
| 18563 | |
| 18564 | else |
| 18565 | |
| 18566 | if test "x$inet6_default_4in6" = "xyes"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 |
| 18568 | $as_echo "yes (default)" >&6; } |
| 18569 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18570 | |
| 18571 | IPV4_IN6_HACK_MSG="yes" |
| 18572 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 18574 | $as_echo "no (default)" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18575 | fi |
| 18576 | |
| 18577 | |
| 18578 | fi |
| 18579 | |
| 18580 | |
| 18581 | # Whether to enable BSD auth support |
| 18582 | BSD_AUTH_MSG=no |
| 18583 | |
| 18584 | # Check whether --with-bsd-auth was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18585 | if test "${with_bsd_auth+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18586 | withval=$with_bsd_auth; |
| 18587 | if test "x$withval" != "xno" ; then |
| 18588 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18589 | $as_echo "#define BSD_AUTH 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18590 | |
| 18591 | BSD_AUTH_MSG=yes |
| 18592 | fi |
| 18593 | |
| 18594 | |
| 18595 | fi |
| 18596 | |
| 18597 | |
| 18598 | # Where to place sshd.pid |
| 18599 | piddir=/var/run |
| 18600 | # make sure the directory exists |
| 18601 | if test ! -d $piddir ; then |
| 18602 | piddir=`eval echo ${sysconfdir}` |
| 18603 | case $piddir in |
| 18604 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; |
| 18605 | esac |
| 18606 | fi |
| 18607 | |
| 18608 | |
| 18609 | # Check whether --with-pid-dir was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18610 | if test "${with_pid_dir+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18611 | withval=$with_pid_dir; |
| 18612 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 18613 | test "x${withval}" != "xyes"; then |
| 18614 | piddir=$withval |
| 18615 | if test ! -d $piddir ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18616 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 |
| 18617 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18618 | fi |
| 18619 | fi |
| 18620 | |
| 18621 | |
| 18622 | fi |
| 18623 | |
| 18624 | |
| 18625 | |
| 18626 | cat >>confdefs.h <<_ACEOF |
| 18627 | #define _PATH_SSH_PIDDIR "$piddir" |
| 18628 | _ACEOF |
| 18629 | |
| 18630 | |
| 18631 | |
| 18632 | # Check whether --enable-lastlog was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18633 | if test "${enable_lastlog+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18634 | enableval=$enable_lastlog; |
| 18635 | if test "x$enableval" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18636 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18637 | |
| 18638 | fi |
| 18639 | |
| 18640 | |
| 18641 | fi |
| 18642 | |
| 18643 | # Check whether --enable-utmp was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18644 | if test "${enable_utmp+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18645 | enableval=$enable_utmp; |
| 18646 | if test "x$enableval" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18647 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18648 | |
| 18649 | fi |
| 18650 | |
| 18651 | |
| 18652 | fi |
| 18653 | |
| 18654 | # Check whether --enable-utmpx was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18655 | if test "${enable_utmpx+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18656 | enableval=$enable_utmpx; |
| 18657 | if test "x$enableval" = "xno" ; then |
| 18658 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18659 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18660 | |
| 18661 | fi |
| 18662 | |
| 18663 | |
| 18664 | fi |
| 18665 | |
| 18666 | # Check whether --enable-wtmp was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18667 | if test "${enable_wtmp+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18668 | enableval=$enable_wtmp; |
| 18669 | if test "x$enableval" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18670 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18671 | |
| 18672 | fi |
| 18673 | |
| 18674 | |
| 18675 | fi |
| 18676 | |
| 18677 | # Check whether --enable-wtmpx was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18678 | if test "${enable_wtmpx+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18679 | enableval=$enable_wtmpx; |
| 18680 | if test "x$enableval" = "xno" ; then |
| 18681 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18682 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18683 | |
| 18684 | fi |
| 18685 | |
| 18686 | |
| 18687 | fi |
| 18688 | |
| 18689 | # Check whether --enable-libutil was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18690 | if test "${enable_libutil+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18691 | enableval=$enable_libutil; |
| 18692 | if test "x$enableval" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18693 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18694 | |
| 18695 | fi |
| 18696 | |
| 18697 | |
| 18698 | fi |
| 18699 | |
| 18700 | # Check whether --enable-pututline was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18701 | if test "${enable_pututline+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18702 | enableval=$enable_pututline; |
| 18703 | if test "x$enableval" = "xno" ; then |
| 18704 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18705 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18706 | |
| 18707 | fi |
| 18708 | |
| 18709 | |
| 18710 | fi |
| 18711 | |
| 18712 | # Check whether --enable-pututxline was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18713 | if test "${enable_pututxline+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18714 | enableval=$enable_pututxline; |
| 18715 | if test "x$enableval" = "xno" ; then |
| 18716 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18717 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18718 | |
| 18719 | fi |
| 18720 | |
| 18721 | |
| 18722 | fi |
| 18723 | |
| 18724 | |
| 18725 | # Check whether --with-lastlog was given. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18726 | if test "${with_lastlog+set}" = set; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18727 | withval=$with_lastlog; |
| 18728 | if test "x$withval" = "xno" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18729 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18730 | |
| 18731 | elif test -n "$withval" && test "x${withval}" != "xyes"; then |
| 18732 | conf_lastlog_location=$withval |
| 18733 | fi |
| 18734 | |
| 18735 | |
| 18736 | fi |
| 18737 | |
| 18738 | |
| 18739 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 |
| 18741 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } |
| 18742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18743 | /* end confdefs.h. */ |
| 18744 | |
| 18745 | #include <sys/types.h> |
| 18746 | #include <utmp.h> |
| 18747 | #ifdef HAVE_LASTLOG_H |
| 18748 | # include <lastlog.h> |
| 18749 | #endif |
| 18750 | #ifdef HAVE_PATHS_H |
| 18751 | # include <paths.h> |
| 18752 | #endif |
| 18753 | #ifdef HAVE_LOGIN_H |
| 18754 | # include <login.h> |
| 18755 | #endif |
| 18756 | |
| 18757 | int |
| 18758 | main () |
| 18759 | { |
| 18760 | char *lastlog = LASTLOG_FILE; |
| 18761 | ; |
| 18762 | return 0; |
| 18763 | } |
| 18764 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18765 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18767 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18768 | else |
| 18769 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18771 | $as_echo "no" >&6; } |
| 18772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 |
| 18773 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } |
| 18774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18775 | /* end confdefs.h. */ |
| 18776 | |
| 18777 | #include <sys/types.h> |
| 18778 | #include <utmp.h> |
| 18779 | #ifdef HAVE_LASTLOG_H |
| 18780 | # include <lastlog.h> |
| 18781 | #endif |
| 18782 | #ifdef HAVE_PATHS_H |
| 18783 | # include <paths.h> |
| 18784 | #endif |
| 18785 | |
| 18786 | int |
| 18787 | main () |
| 18788 | { |
| 18789 | char *lastlog = _PATH_LASTLOG; |
| 18790 | ; |
| 18791 | return 0; |
| 18792 | } |
| 18793 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18794 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18796 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18797 | else |
| 18798 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18800 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18801 | system_lastlog_path=no |
| 18802 | |
| 18803 | fi |
| 18804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18805 | |
| 18806 | fi |
| 18807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18808 | |
| 18809 | if test -z "$conf_lastlog_location"; then |
| 18810 | if test x"$system_lastlog_path" = x"no" ; then |
| 18811 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do |
| 18812 | if (test -d "$f" || test -f "$f") ; then |
| 18813 | conf_lastlog_location=$f |
| 18814 | fi |
| 18815 | done |
| 18816 | if test -z "$conf_lastlog_location"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 |
| 18818 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18819 | fi |
| 18820 | fi |
| 18821 | fi |
| 18822 | |
| 18823 | if test -n "$conf_lastlog_location"; then |
| 18824 | |
| 18825 | cat >>confdefs.h <<_ACEOF |
| 18826 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" |
| 18827 | _ACEOF |
| 18828 | |
| 18829 | fi |
| 18830 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 |
| 18832 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } |
| 18833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18834 | /* end confdefs.h. */ |
| 18835 | |
| 18836 | #include <sys/types.h> |
| 18837 | #include <utmp.h> |
| 18838 | #ifdef HAVE_PATHS_H |
| 18839 | # include <paths.h> |
| 18840 | #endif |
| 18841 | |
| 18842 | int |
| 18843 | main () |
| 18844 | { |
| 18845 | char *utmp = UTMP_FILE; |
| 18846 | ; |
| 18847 | return 0; |
| 18848 | } |
| 18849 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18850 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18852 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18853 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18855 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18856 | system_utmp_path=no |
| 18857 | |
| 18858 | fi |
| 18859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18860 | if test -z "$conf_utmp_location"; then |
| 18861 | if test x"$system_utmp_path" = x"no" ; then |
| 18862 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do |
| 18863 | if test -f $f ; then |
| 18864 | conf_utmp_location=$f |
| 18865 | fi |
| 18866 | done |
| 18867 | if test -z "$conf_utmp_location"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18868 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18869 | |
| 18870 | fi |
| 18871 | fi |
| 18872 | fi |
| 18873 | if test -n "$conf_utmp_location"; then |
| 18874 | |
| 18875 | cat >>confdefs.h <<_ACEOF |
| 18876 | #define CONF_UTMP_FILE "$conf_utmp_location" |
| 18877 | _ACEOF |
| 18878 | |
| 18879 | fi |
| 18880 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 |
| 18882 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } |
| 18883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18884 | /* end confdefs.h. */ |
| 18885 | |
| 18886 | #include <sys/types.h> |
| 18887 | #include <utmp.h> |
| 18888 | #ifdef HAVE_PATHS_H |
| 18889 | # include <paths.h> |
| 18890 | #endif |
| 18891 | |
| 18892 | int |
| 18893 | main () |
| 18894 | { |
| 18895 | char *wtmp = WTMP_FILE; |
| 18896 | ; |
| 18897 | return 0; |
| 18898 | } |
| 18899 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18900 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18902 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18903 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18905 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18906 | system_wtmp_path=no |
| 18907 | |
| 18908 | fi |
| 18909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18910 | if test -z "$conf_wtmp_location"; then |
| 18911 | if test x"$system_wtmp_path" = x"no" ; then |
| 18912 | for f in /usr/adm/wtmp /var/log/wtmp; do |
| 18913 | if test -f $f ; then |
| 18914 | conf_wtmp_location=$f |
| 18915 | fi |
| 18916 | done |
| 18917 | if test -z "$conf_wtmp_location"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18918 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18919 | |
| 18920 | fi |
| 18921 | fi |
| 18922 | fi |
| 18923 | if test -n "$conf_wtmp_location"; then |
| 18924 | |
| 18925 | cat >>confdefs.h <<_ACEOF |
| 18926 | #define CONF_WTMP_FILE "$conf_wtmp_location" |
| 18927 | _ACEOF |
| 18928 | |
| 18929 | fi |
| 18930 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 |
| 18932 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } |
| 18933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18934 | /* end confdefs.h. */ |
| 18935 | |
| 18936 | #include <sys/types.h> |
| 18937 | #include <utmp.h> |
| 18938 | #ifdef HAVE_UTMPX_H |
| 18939 | #include <utmpx.h> |
| 18940 | #endif |
| 18941 | #ifdef HAVE_PATHS_H |
| 18942 | # include <paths.h> |
| 18943 | #endif |
| 18944 | |
| 18945 | int |
| 18946 | main () |
| 18947 | { |
| 18948 | char *wtmpx = WTMPX_FILE; |
| 18949 | ; |
| 18950 | return 0; |
| 18951 | } |
| 18952 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18953 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18955 | $as_echo "yes" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18956 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18958 | $as_echo "no" >&6; } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18959 | system_wtmpx_path=no |
| 18960 | |
| 18961 | fi |
| 18962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18963 | if test -z "$conf_wtmpx_location"; then |
| 18964 | if test x"$system_wtmpx_path" = x"no" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18965 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18966 | |
| 18967 | fi |
| 18968 | else |
| 18969 | |
| 18970 | cat >>confdefs.h <<_ACEOF |
| 18971 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" |
| 18972 | _ACEOF |
| 18973 | |
| 18974 | fi |
| 18975 | |
| 18976 | |
| 18977 | if test ! -z "$blibpath" ; then |
| 18978 | LDFLAGS="$LDFLAGS $blibflags$blibpath" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 |
| 18980 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 18981 | fi |
| 18982 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18983 | ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 18984 | #ifdef HAVE_SYS_TYPES_H |
| 18985 | #include <sys/types.h> |
| 18986 | #endif |
| 18987 | #ifdef HAVE_UTMP_H |
| 18988 | #include <utmp.h> |
| 18989 | #endif |
| 18990 | #ifdef HAVE_UTMPX_H |
| 18991 | #include <utmpx.h> |
| 18992 | #endif |
| 18993 | #ifdef HAVE_LASTLOG_H |
| 18994 | #include <lastlog.h> |
| 18995 | #endif |
| 18996 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 18997 | " |
| 18998 | if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 18999 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19000 | else |
| 19001 | |
| 19002 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19003 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19004 | |
| 19005 | fi |
| 19006 | |
| 19007 | fi |
| 19008 | |
| 19009 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19010 | ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19011 | #ifdef HAVE_SYS_TYPES_H |
| 19012 | #include <sys/types.h> |
| 19013 | #endif |
| 19014 | #ifdef HAVE_UTMP_H |
| 19015 | #include <utmp.h> |
| 19016 | #endif |
| 19017 | #ifdef HAVE_UTMPX_H |
| 19018 | #include <utmpx.h> |
| 19019 | #endif |
| 19020 | #ifdef HAVE_LASTLOG_H |
| 19021 | #include <lastlog.h> |
| 19022 | #endif |
| 19023 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19024 | " |
| 19025 | if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19026 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19027 | else |
| 19028 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19029 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19030 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19031 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19032 | |
| 19033 | |
| 19034 | fi |
| 19035 | |
| 19036 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19037 | CFLAGS="$CFLAGS $werror_flags" |
| 19038 | |
| 19039 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then |
| 19040 | TEST_SSH_IPV6=no |
| 19041 | else |
| 19042 | TEST_SSH_IPV6=yes |
| 19043 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19044 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" |
| 19045 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19046 | TEST_SSH_IPV6=no |
| 19047 | fi |
| 19048 | |
| 19049 | TEST_SSH_IPV6=$TEST_SSH_IPV6 |
| 19050 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19051 | TEST_SSH_UTF8=$TEST_SSH_UTF8 |
| 19052 | |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19053 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS |
| 19054 | |
| 19055 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms |
| 19056 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19057 | |
| 19058 | |
| 19059 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" |
| 19060 | |
| 19061 | cat >confcache <<\_ACEOF |
| 19062 | # This file is a shell script that caches the results of configure |
| 19063 | # tests run on this system so they can be shared between configure |
| 19064 | # scripts and configure runs, see configure's option --config-cache. |
| 19065 | # It is not useful on other systems. If it contains results you don't |
| 19066 | # want to keep, you may remove or edit it. |
| 19067 | # |
| 19068 | # config.status only pays attention to the cache file if you give it |
| 19069 | # the --recheck option to rerun configure. |
| 19070 | # |
| 19071 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 19072 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 19073 | # following values. |
| 19074 | |
| 19075 | _ACEOF |
| 19076 | |
| 19077 | # The following way of writing the cache mishandles newlines in values, |
| 19078 | # but we know of no workaround that is simple, portable, and efficient. |
| 19079 | # So, we kill variables containing newlines. |
| 19080 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 19081 | # and sets the high bit in the cache file unless we assign to the vars. |
| 19082 | ( |
| 19083 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 19084 | eval ac_val=\$$ac_var |
| 19085 | case $ac_val in #( |
| 19086 | *${as_nl}*) |
| 19087 | case $ac_var in #( |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19088 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 19089 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19090 | esac |
| 19091 | case $ac_var in #( |
| 19092 | _ | IFS | as_nl) ;; #( |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19093 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 19094 | *) { eval $ac_var=; unset $ac_var;} ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19095 | esac ;; |
| 19096 | esac |
| 19097 | done |
| 19098 | |
| 19099 | (set) 2>&1 | |
| 19100 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 19101 | *${as_nl}ac_space=\ *) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19102 | # `set' does not quote correctly, so add quotes: double-quote |
| 19103 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19104 | sed -n \ |
| 19105 | "s/'/'\\\\''/g; |
| 19106 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 19107 | ;; #( |
| 19108 | *) |
| 19109 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 19110 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 19111 | ;; |
| 19112 | esac | |
| 19113 | sort |
| 19114 | ) | |
| 19115 | sed ' |
| 19116 | /^ac_cv_env_/b end |
| 19117 | t clear |
| 19118 | :clear |
| 19119 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 19120 | t end |
| 19121 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 19122 | :end' >>confcache |
| 19123 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 19124 | if test -w "$cache_file"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19125 | if test "x$cache_file" != "x/dev/null"; then |
| 19126 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 19127 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 19128 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 19129 | cat confcache >"$cache_file" |
| 19130 | else |
| 19131 | case $cache_file in #( |
| 19132 | */* | ?:*) |
| 19133 | mv -f confcache "$cache_file"$$ && |
| 19134 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 19135 | *) |
| 19136 | mv -f confcache "$cache_file" ;; |
| 19137 | esac |
| 19138 | fi |
| 19139 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19140 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19141 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 19142 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19143 | fi |
| 19144 | fi |
| 19145 | rm -f confcache |
| 19146 | |
| 19147 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 19148 | # Let make expand exec_prefix. |
| 19149 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 19150 | |
| 19151 | DEFS=-DHAVE_CONFIG_H |
| 19152 | |
| 19153 | ac_libobjs= |
| 19154 | ac_ltlibobjs= |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19155 | U= |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19156 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 19157 | # 1. Remove the extension, and $U if already installed. |
| 19158 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19159 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19160 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 19161 | # will be set to the directory where LIBOBJS objects are built. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19162 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 19163 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19164 | done |
| 19165 | LIBOBJS=$ac_libobjs |
| 19166 | |
| 19167 | LTLIBOBJS=$ac_ltlibobjs |
| 19168 | |
| 19169 | |
| 19170 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19171 | |
| 19172 | : "${CONFIG_STATUS=./config.status}" |
| 19173 | ac_write_fail=0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19174 | ac_clean_files_save=$ac_clean_files |
| 19175 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19176 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 19177 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 19178 | as_write_fail=0 |
| 19179 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19180 | #! $SHELL |
| 19181 | # Generated by $as_me. |
| 19182 | # Run this file to recreate the current configuration. |
| 19183 | # Compiler output produced by configure, useful for debugging |
| 19184 | # configure, is in config.log if it exists. |
| 19185 | |
| 19186 | debug=false |
| 19187 | ac_cs_recheck=false |
| 19188 | ac_cs_silent=false |
Adam Langley | d059297 | 2015-03-30 14:49:51 -0700 | [diff] [blame] | 19189 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19190 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 19191 | export SHELL |
| 19192 | _ASEOF |
| 19193 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 19194 | ## -------------------- ## |
| 19195 | ## M4sh Initialization. ## |
| 19196 | ## -------------------- ## |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19197 | |
| 19198 | # Be more Bourne compatible |
| 19199 | DUALCASE=1; export DUALCASE # for MKS sh |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19200 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19201 | emulate sh |
| 19202 | NULLCMD=: |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19203 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19204 | # is contrary to our usage. Disable this feature. |
| 19205 | alias -g '${1+"$@"}'='"$@"' |
| 19206 | setopt NO_GLOB_SUBST |
| 19207 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19208 | case `(set -o) 2>/dev/null` in #( |
| 19209 | *posix*) : |
| 19210 | set -o posix ;; #( |
| 19211 | *) : |
| 19212 | ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19213 | esac |
| 19214 | fi |
| 19215 | |
| 19216 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19217 | as_nl=' |
| 19218 | ' |
| 19219 | export as_nl |
| 19220 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 19221 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 19222 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 19223 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 19224 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 19225 | # but without wasting forks for bash or zsh. |
| 19226 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 19227 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 19228 | as_echo='print -r --' |
| 19229 | as_echo_n='print -rn --' |
| 19230 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 19231 | as_echo='printf %s\n' |
| 19232 | as_echo_n='printf %s' |
| 19233 | else |
| 19234 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 19235 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 19236 | as_echo_n='/usr/ucb/echo -n' |
| 19237 | else |
| 19238 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 19239 | as_echo_n_body='eval |
| 19240 | arg=$1; |
| 19241 | case $arg in #( |
| 19242 | *"$as_nl"*) |
| 19243 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 19244 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 19245 | esac; |
| 19246 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 19247 | ' |
| 19248 | export as_echo_n_body |
| 19249 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 19250 | fi |
| 19251 | export as_echo_body |
| 19252 | as_echo='sh -c $as_echo_body as_echo' |
| 19253 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19254 | |
| 19255 | # The user is always right. |
| 19256 | if test "${PATH_SEPARATOR+set}" != set; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19257 | PATH_SEPARATOR=: |
| 19258 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 19259 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 19260 | PATH_SEPARATOR=';' |
| 19261 | } |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19262 | fi |
| 19263 | |
| 19264 | |
| 19265 | # IFS |
| 19266 | # We need space, tab and new line, in precisely that order. Quoting is |
| 19267 | # there to prevent editors from complaining about space-tab. |
| 19268 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 19269 | # splitting by setting IFS to empty value.) |
| 19270 | IFS=" "" $as_nl" |
| 19271 | |
| 19272 | # Find who we are. Look in the path if we contain no directory separator. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19273 | as_myself= |
| 19274 | case $0 in #(( |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19275 | *[\\/]* ) as_myself=$0 ;; |
| 19276 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19277 | for as_dir in $PATH |
| 19278 | do |
| 19279 | IFS=$as_save_IFS |
| 19280 | test -z "$as_dir" && as_dir=. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19281 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 19282 | done |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19283 | IFS=$as_save_IFS |
| 19284 | |
| 19285 | ;; |
| 19286 | esac |
| 19287 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 19288 | # in which case we are not to be found in the path. |
| 19289 | if test "x$as_myself" = x; then |
| 19290 | as_myself=$0 |
| 19291 | fi |
| 19292 | if test ! -f "$as_myself"; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19293 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 19294 | exit 1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19295 | fi |
| 19296 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19297 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 19298 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 19299 | # suppresses any "Segmentation fault" message there. '((' could |
| 19300 | # trigger a bug in pdksh 5.2.14. |
| 19301 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 19302 | do eval test x\${$as_var+set} = xset \ |
| 19303 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19304 | done |
| 19305 | PS1='$ ' |
| 19306 | PS2='> ' |
| 19307 | PS4='+ ' |
| 19308 | |
| 19309 | # NLS nuisances. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19310 | LC_ALL=C |
| 19311 | export LC_ALL |
| 19312 | LANGUAGE=C |
| 19313 | export LANGUAGE |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19314 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19315 | # CDPATH. |
| 19316 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 19317 | |
| 19318 | |
| 19319 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 19320 | # ---------------------------------------- |
| 19321 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 19322 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 19323 | # script with STATUS, using 1 if that was 0. |
| 19324 | as_fn_error () |
| 19325 | { |
| 19326 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 19327 | if test "$4"; then |
| 19328 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 19329 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 19330 | fi |
| 19331 | $as_echo "$as_me: error: $2" >&2 |
| 19332 | as_fn_exit $as_status |
| 19333 | } # as_fn_error |
| 19334 | |
| 19335 | |
| 19336 | # as_fn_set_status STATUS |
| 19337 | # ----------------------- |
| 19338 | # Set $? to STATUS, without forking. |
| 19339 | as_fn_set_status () |
| 19340 | { |
| 19341 | return $1 |
| 19342 | } # as_fn_set_status |
| 19343 | |
| 19344 | # as_fn_exit STATUS |
| 19345 | # ----------------- |
| 19346 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 19347 | as_fn_exit () |
| 19348 | { |
| 19349 | set +e |
| 19350 | as_fn_set_status $1 |
| 19351 | exit $1 |
| 19352 | } # as_fn_exit |
| 19353 | |
| 19354 | # as_fn_unset VAR |
| 19355 | # --------------- |
| 19356 | # Portably unset VAR. |
| 19357 | as_fn_unset () |
| 19358 | { |
| 19359 | { eval $1=; unset $1;} |
| 19360 | } |
| 19361 | as_unset=as_fn_unset |
| 19362 | # as_fn_append VAR VALUE |
| 19363 | # ---------------------- |
| 19364 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 19365 | # advantage of any shell optimizations that allow amortized linear growth over |
| 19366 | # repeated appends, instead of the typical quadratic growth present in naive |
| 19367 | # implementations. |
| 19368 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 19369 | eval 'as_fn_append () |
| 19370 | { |
| 19371 | eval $1+=\$2 |
| 19372 | }' |
| 19373 | else |
| 19374 | as_fn_append () |
| 19375 | { |
| 19376 | eval $1=\$$1\$2 |
| 19377 | } |
| 19378 | fi # as_fn_append |
| 19379 | |
| 19380 | # as_fn_arith ARG... |
| 19381 | # ------------------ |
| 19382 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 19383 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 19384 | # must be portable across $(()) and expr. |
| 19385 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 19386 | eval 'as_fn_arith () |
| 19387 | { |
| 19388 | as_val=$(( $* )) |
| 19389 | }' |
| 19390 | else |
| 19391 | as_fn_arith () |
| 19392 | { |
| 19393 | as_val=`expr "$@" || test $? -eq 1` |
| 19394 | } |
| 19395 | fi # as_fn_arith |
| 19396 | |
| 19397 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19398 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 19399 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 19400 | as_expr=expr |
| 19401 | else |
| 19402 | as_expr=false |
| 19403 | fi |
| 19404 | |
| 19405 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 19406 | as_basename=basename |
| 19407 | else |
| 19408 | as_basename=false |
| 19409 | fi |
| 19410 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19411 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 19412 | as_dirname=dirname |
| 19413 | else |
| 19414 | as_dirname=false |
| 19415 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19416 | |
| 19417 | as_me=`$as_basename -- "$0" || |
| 19418 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19419 | X"$0" : 'X\(//\)$' \| \ |
| 19420 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19421 | $as_echo X/"$0" | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19422 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 19423 | s//\1/ |
| 19424 | q |
| 19425 | } |
| 19426 | /^X\/\(\/\/\)$/{ |
| 19427 | s//\1/ |
| 19428 | q |
| 19429 | } |
| 19430 | /^X\/\(\/\).*/{ |
| 19431 | s//\1/ |
| 19432 | q |
| 19433 | } |
| 19434 | s/.*/./; q'` |
| 19435 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19436 | # Avoid depending upon Character Ranges. |
| 19437 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19438 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19439 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19440 | as_cr_digits='0123456789' |
| 19441 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19442 | |
| 19443 | ECHO_C= ECHO_N= ECHO_T= |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19444 | case `echo -n x` in #((((( |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19445 | -n*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19446 | case `echo 'xy\c'` in |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19447 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19448 | xy) ECHO_C='\c';; |
| 19449 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 19450 | ECHO_T=' ';; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19451 | esac;; |
| 19452 | *) |
| 19453 | ECHO_N='-n';; |
| 19454 | esac |
| 19455 | |
| 19456 | rm -f conf$$ conf$$.exe conf$$.file |
| 19457 | if test -d conf$$.dir; then |
| 19458 | rm -f conf$$.dir/conf$$.file |
| 19459 | else |
| 19460 | rm -f conf$$.dir |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19461 | mkdir conf$$.dir 2>/dev/null |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19462 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19463 | if (echo >conf$$.file) 2>/dev/null; then |
| 19464 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19465 | as_ln_s='ln -s' |
| 19466 | # ... but there are two gotchas: |
| 19467 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 19468 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 19469 | # In both cases, we have to default to `cp -pR'. |
| 19470 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 19471 | as_ln_s='cp -pR' |
| 19472 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19473 | as_ln_s=ln |
| 19474 | else |
| 19475 | as_ln_s='cp -pR' |
| 19476 | fi |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19477 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19478 | as_ln_s='cp -pR' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19479 | fi |
| 19480 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 19481 | rmdir conf$$.dir 2>/dev/null |
| 19482 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19483 | |
| 19484 | # as_fn_mkdir_p |
| 19485 | # ------------- |
| 19486 | # Create "$as_dir" as a directory, including parents if necessary. |
| 19487 | as_fn_mkdir_p () |
| 19488 | { |
| 19489 | |
| 19490 | case $as_dir in #( |
| 19491 | -*) as_dir=./$as_dir;; |
| 19492 | esac |
| 19493 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 19494 | as_dirs= |
| 19495 | while :; do |
| 19496 | case $as_dir in #( |
| 19497 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 19498 | *) as_qdir=$as_dir;; |
| 19499 | esac |
| 19500 | as_dirs="'$as_qdir' $as_dirs" |
| 19501 | as_dir=`$as_dirname -- "$as_dir" || |
| 19502 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19503 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19504 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19505 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 19506 | $as_echo X"$as_dir" | |
| 19507 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19508 | s//\1/ |
| 19509 | q |
| 19510 | } |
| 19511 | /^X\(\/\/\)[^/].*/{ |
| 19512 | s//\1/ |
| 19513 | q |
| 19514 | } |
| 19515 | /^X\(\/\/\)$/{ |
| 19516 | s//\1/ |
| 19517 | q |
| 19518 | } |
| 19519 | /^X\(\/\).*/{ |
| 19520 | s//\1/ |
| 19521 | q |
| 19522 | } |
| 19523 | s/.*/./; q'` |
| 19524 | test -d "$as_dir" && break |
| 19525 | done |
| 19526 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 19527 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 19528 | |
| 19529 | |
| 19530 | } # as_fn_mkdir_p |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19531 | if mkdir -p . 2>/dev/null; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19532 | as_mkdir_p='mkdir -p "$as_dir"' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19533 | else |
| 19534 | test -d ./-p && rmdir ./-p |
| 19535 | as_mkdir_p=false |
| 19536 | fi |
| 19537 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19538 | |
| 19539 | # as_fn_executable_p FILE |
| 19540 | # ----------------------- |
| 19541 | # Test if FILE is an executable regular file. |
| 19542 | as_fn_executable_p () |
| 19543 | { |
| 19544 | test -f "$1" && test -x "$1" |
| 19545 | } # as_fn_executable_p |
| 19546 | as_test_x='test -x' |
| 19547 | as_executable_p=as_fn_executable_p |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19548 | |
| 19549 | # Sed expression to map a string onto a valid CPP name. |
| 19550 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 19551 | |
| 19552 | # Sed expression to map a string onto a valid variable name. |
| 19553 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 19554 | |
| 19555 | |
| 19556 | exec 6>&1 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19557 | ## ----------------------------------- ## |
| 19558 | ## Main body of $CONFIG_STATUS script. ## |
| 19559 | ## ----------------------------------- ## |
| 19560 | _ASEOF |
| 19561 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19562 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19564 | # Save the log message, to keep $0 and so on meaningful, and to |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19565 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19566 | # values after options handling. |
| 19567 | ac_log=" |
| 19568 | This file was extended by OpenSSH $as_me Portable, which was |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19569 | generated by GNU Autoconf 2.69. Invocation command line was |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19570 | |
| 19571 | CONFIG_FILES = $CONFIG_FILES |
| 19572 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19573 | CONFIG_LINKS = $CONFIG_LINKS |
| 19574 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19575 | $ $0 $@ |
| 19576 | |
| 19577 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 19578 | " |
| 19579 | |
| 19580 | _ACEOF |
| 19581 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19582 | case $ac_config_files in *" |
| 19583 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 19584 | esac |
| 19585 | |
| 19586 | case $ac_config_headers in *" |
| 19587 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 19588 | esac |
| 19589 | |
| 19590 | |
| 19591 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19592 | # Files that config.status was made for. |
| 19593 | config_files="$ac_config_files" |
| 19594 | config_headers="$ac_config_headers" |
| 19595 | |
| 19596 | _ACEOF |
| 19597 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19598 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19599 | ac_cs_usage="\ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19600 | \`$as_me' instantiates files and other configuration actions |
| 19601 | from templates according to the current configuration. Unless the files |
| 19602 | and actions are specified as TAGs, all are instantiated by default. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19603 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19604 | Usage: $0 [OPTION]... [TAG]... |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19605 | |
| 19606 | -h, --help print this help, then exit |
| 19607 | -V, --version print version number and configuration settings, then exit |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19608 | --config print configuration, then exit |
| 19609 | -q, --quiet, --silent |
| 19610 | do not print progress messages |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19611 | -d, --debug don't remove temporary files |
| 19612 | --recheck update $as_me by reconfiguring in the same conditions |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19613 | --file=FILE[:TEMPLATE] |
| 19614 | instantiate the configuration file FILE |
| 19615 | --header=FILE[:TEMPLATE] |
| 19616 | instantiate the configuration header FILE |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19617 | |
| 19618 | Configuration files: |
| 19619 | $config_files |
| 19620 | |
| 19621 | Configuration headers: |
| 19622 | $config_headers |
| 19623 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19624 | Report bugs to <openssh-unix-dev@mindrot.org>." |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19625 | |
| 19626 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19627 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19628 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19629 | ac_cs_version="\\ |
| 19630 | OpenSSH config.status Portable |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19631 | configured by $0, generated by GNU Autoconf 2.69, |
| 19632 | with options \\"\$ac_cs_config\\" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19633 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19634 | Copyright (C) 2012 Free Software Foundation, Inc. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19635 | This config.status script is free software; the Free Software Foundation |
| 19636 | gives unlimited permission to copy, distribute and modify it." |
| 19637 | |
| 19638 | ac_pwd='$ac_pwd' |
| 19639 | srcdir='$srcdir' |
| 19640 | INSTALL='$INSTALL' |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19641 | AWK='$AWK' |
| 19642 | test -n "\$AWK" || AWK=awk |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19643 | _ACEOF |
| 19644 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19645 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19646 | # The default lists apply if the user does not specify any file. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19647 | ac_need_defaults=: |
| 19648 | while test $# != 0 |
| 19649 | do |
| 19650 | case $1 in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19651 | --*=?*) |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19652 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19653 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 19654 | ac_shift=: |
| 19655 | ;; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19656 | --*=) |
| 19657 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19658 | ac_optarg= |
| 19659 | ac_shift=: |
| 19660 | ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19661 | *) |
| 19662 | ac_option=$1 |
| 19663 | ac_optarg=$2 |
| 19664 | ac_shift=shift |
| 19665 | ;; |
| 19666 | esac |
| 19667 | |
| 19668 | case $ac_option in |
| 19669 | # Handling of the options. |
| 19670 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19671 | ac_cs_recheck=: ;; |
| 19672 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19673 | $as_echo "$ac_cs_version"; exit ;; |
| 19674 | --config | --confi | --conf | --con | --co | --c ) |
| 19675 | $as_echo "$ac_cs_config"; exit ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19676 | --debug | --debu | --deb | --de | --d | -d ) |
| 19677 | debug=: ;; |
| 19678 | --file | --fil | --fi | --f ) |
| 19679 | $ac_shift |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19680 | case $ac_optarg in |
| 19681 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19682 | '') as_fn_error $? "missing file argument" ;; |
| 19683 | esac |
| 19684 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19685 | ac_need_defaults=false;; |
| 19686 | --header | --heade | --head | --hea ) |
| 19687 | $ac_shift |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19688 | case $ac_optarg in |
| 19689 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19690 | esac |
| 19691 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19692 | ac_need_defaults=false;; |
| 19693 | --he | --h) |
| 19694 | # Conflict between --help and --header |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19695 | as_fn_error $? "ambiguous option: \`$1' |
| 19696 | Try \`$0 --help' for more information.";; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19697 | --help | --hel | -h ) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19698 | $as_echo "$ac_cs_usage"; exit ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19699 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19700 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19701 | ac_cs_silent=: ;; |
| 19702 | |
| 19703 | # This is an error. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19704 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 19705 | Try \`$0 --help' for more information." ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19706 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19707 | *) as_fn_append ac_config_targets " $1" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19708 | ac_need_defaults=false ;; |
| 19709 | |
| 19710 | esac |
| 19711 | shift |
| 19712 | done |
| 19713 | |
| 19714 | ac_configure_extra_args= |
| 19715 | |
| 19716 | if $ac_cs_silent; then |
| 19717 | exec 6>/dev/null |
| 19718 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19719 | fi |
| 19720 | |
| 19721 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19722 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19723 | if \$ac_cs_recheck; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19724 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19725 | shift |
| 19726 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 19727 | CONFIG_SHELL='$SHELL' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19728 | export CONFIG_SHELL |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19729 | exec "\$@" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19730 | fi |
| 19731 | |
| 19732 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19733 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19734 | exec 5>>config.log |
| 19735 | { |
| 19736 | echo |
| 19737 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19738 | ## Running $as_me. ## |
| 19739 | _ASBOX |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19740 | $as_echo "$ac_log" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19741 | } >&5 |
| 19742 | |
| 19743 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19745 | _ACEOF |
| 19746 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19747 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19748 | |
| 19749 | # Handling of arguments. |
| 19750 | for ac_config_target in $ac_config_targets |
| 19751 | do |
| 19752 | case $ac_config_target in |
| 19753 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 19754 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 19755 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; |
| 19756 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; |
| 19757 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; |
| 19758 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; |
| 19759 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; |
| 19760 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; |
| 19761 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19762 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19763 | esac |
| 19764 | done |
| 19765 | |
| 19766 | |
| 19767 | # If the user did not use the arguments to specify the items to instantiate, |
| 19768 | # then the envvar interface is used. Set only those that are not. |
| 19769 | # We use the long form for the default assignment because of an extremely |
| 19770 | # bizarre bug on SunOS 4.1.3. |
| 19771 | if $ac_need_defaults; then |
| 19772 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19773 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19774 | fi |
| 19775 | |
| 19776 | # Have a temporary directory for convenience. Make it in the build tree |
| 19777 | # simply because there is no reason against having it here, and in addition, |
| 19778 | # creating and moving files from /tmp can sometimes cause problems. |
| 19779 | # Hook for its removal unless debugging. |
| 19780 | # Note that there is a small window in which the directory will not be cleaned: |
| 19781 | # after its creation but before its name has been assigned to `$tmp'. |
| 19782 | $debug || |
| 19783 | { |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19784 | tmp= ac_tmp= |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19785 | trap 'exit_status=$? |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19786 | : "${ac_tmp:=$tmp}" |
| 19787 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19788 | ' 0 |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19789 | trap 'as_fn_exit 1' 1 2 13 15 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19790 | } |
| 19791 | # Create a (secure) tmp directory for tmp files. |
| 19792 | |
| 19793 | { |
| 19794 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19795 | test -d "$tmp" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19796 | } || |
| 19797 | { |
| 19798 | tmp=./conf$$-$RANDOM |
| 19799 | (umask 077 && mkdir "$tmp") |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19800 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 19801 | ac_tmp=$tmp |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19802 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19803 | # Set up the scripts for CONFIG_FILES section. |
| 19804 | # No need to generate them if there are no CONFIG_FILES. |
| 19805 | # This happens for instance with `./config.status config.h'. |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19806 | if test -n "$CONFIG_FILES"; then |
| 19807 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19808 | |
| 19809 | ac_cr=`echo X | tr X '\015'` |
| 19810 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 19811 | # But we know of no other shell where ac_cr would be empty at this |
| 19812 | # point, so we can use a bashism as a fallback. |
| 19813 | if test "x$ac_cr" = x; then |
| 19814 | eval ac_cr=\$\'\\r\' |
| 19815 | fi |
| 19816 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 19817 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 19818 | ac_cs_awk_cr='\\r' |
| 19819 | else |
| 19820 | ac_cs_awk_cr=$ac_cr |
| 19821 | fi |
| 19822 | |
| 19823 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19824 | _ACEOF |
| 19825 | |
| 19826 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19827 | { |
| 19828 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 19829 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 19830 | echo "_ACEOF" |
| 19831 | } >conf$$subs.sh || |
| 19832 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19833 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19834 | ac_delim='%!_!# ' |
| 19835 | for ac_last_try in false false false false false :; do |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19836 | . ./conf$$subs.sh || |
| 19837 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19838 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19839 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 19840 | if test $ac_delim_n = $ac_delim_num; then |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19841 | break |
| 19842 | elif $ac_last_try; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19843 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19844 | else |
| 19845 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19846 | fi |
| 19847 | done |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19848 | rm -f conf$$subs.sh |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19849 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19850 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19851 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19852 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19853 | sed -n ' |
| 19854 | h |
| 19855 | s/^/S["/; s/!.*/"]=/ |
| 19856 | p |
| 19857 | g |
| 19858 | s/^[^!]*!// |
| 19859 | :repl |
| 19860 | t repl |
| 19861 | s/'"$ac_delim"'$// |
| 19862 | t delim |
| 19863 | :nl |
| 19864 | h |
| 19865 | s/\(.\{148\}\)..*/\1/ |
| 19866 | t more1 |
| 19867 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 19868 | p |
| 19869 | n |
| 19870 | b repl |
| 19871 | :more1 |
| 19872 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19873 | p |
| 19874 | g |
| 19875 | s/.\{148\}// |
| 19876 | t nl |
| 19877 | :delim |
| 19878 | h |
| 19879 | s/\(.\{148\}\)..*/\1/ |
| 19880 | t more2 |
| 19881 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 19882 | p |
| 19883 | b |
| 19884 | :more2 |
| 19885 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19886 | p |
| 19887 | g |
| 19888 | s/.\{148\}// |
| 19889 | t delim |
| 19890 | ' <conf$$subs.awk | sed ' |
| 19891 | /^[^""]/{ |
| 19892 | N |
| 19893 | s/\n// |
| 19894 | } |
| 19895 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19896 | rm -f conf$$subs.awk |
| 19897 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19898 | _ACAWK |
| 19899 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 19900 | for (key in S) S_is_set[key] = 1 |
| 19901 | FS = "" |
| 19902 | |
| 19903 | } |
| 19904 | { |
| 19905 | line = $ 0 |
| 19906 | nfields = split(line, field, "@") |
| 19907 | substed = 0 |
| 19908 | len = length(field[1]) |
| 19909 | for (i = 2; i < nfields; i++) { |
| 19910 | key = field[i] |
| 19911 | keylen = length(key) |
| 19912 | if (S_is_set[key]) { |
| 19913 | value = S[key] |
| 19914 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 19915 | len += length(value) + length(field[++i]) |
| 19916 | substed = 1 |
| 19917 | } else |
| 19918 | len += 1 + keylen |
| 19919 | } |
| 19920 | |
| 19921 | print line |
| 19922 | } |
| 19923 | |
| 19924 | _ACAWK |
| 19925 | _ACEOF |
| 19926 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19927 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 19928 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 19929 | else |
| 19930 | cat |
| 19931 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 19932 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19933 | _ACEOF |
| 19934 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19935 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 19936 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19937 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 19938 | # (actually we leave an empty line to preserve line numbers). |
| 19939 | if test "x$srcdir" = x.; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19940 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 19941 | h |
| 19942 | s/// |
| 19943 | s/^/:/ |
| 19944 | s/[ ]*$/:/ |
| 19945 | s/:\$(srcdir):/:/g |
| 19946 | s/:\${srcdir}:/:/g |
| 19947 | s/:@srcdir@:/:/g |
| 19948 | s/^:*// |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19949 | s/:*$// |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19950 | x |
| 19951 | s/\(=[ ]*\).*/\1/ |
| 19952 | G |
| 19953 | s/\n// |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19954 | s/^[^=]*=[ ]*$// |
| 19955 | }' |
| 19956 | fi |
| 19957 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19958 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19959 | fi # test -n "$CONFIG_FILES" |
| 19960 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19961 | # Set up the scripts for CONFIG_HEADERS section. |
| 19962 | # No need to generate them if there are no CONFIG_HEADERS. |
| 19963 | # This happens for instance with `./config.status Makefile'. |
| 19964 | if test -n "$CONFIG_HEADERS"; then |
| 19965 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 19966 | BEGIN { |
| 19967 | _ACEOF |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 19968 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 19969 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 19970 | # here-document in config.status, that substitutes the proper values into |
| 19971 | # config.h.in to produce config.h. |
| 19972 | |
| 19973 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 19974 | # handling of long lines. |
| 19975 | ac_delim='%!_!# ' |
| 19976 | for ac_last_try in false false :; do |
| 19977 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 19978 | if test -z "$ac_tt"; then |
| 19979 | break |
| 19980 | elif $ac_last_try; then |
| 19981 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 19982 | else |
| 19983 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19984 | fi |
| 19985 | done |
| 19986 | |
| 19987 | # For the awk script, D is an array of macro values keyed by name, |
| 19988 | # likewise P contains macro parameters if any. Preserve backslash |
| 19989 | # newline sequences. |
| 19990 | |
| 19991 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 19992 | sed -n ' |
| 19993 | s/.\{148\}/&'"$ac_delim"'/g |
| 19994 | t rset |
| 19995 | :rset |
| 19996 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 19997 | t def |
| 19998 | d |
| 19999 | :def |
| 20000 | s/\\$// |
| 20001 | t bsnl |
| 20002 | s/["\\]/\\&/g |
| 20003 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 20004 | D["\1"]=" \3"/p |
| 20005 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 20006 | d |
| 20007 | :bsnl |
| 20008 | s/["\\]/\\&/g |
| 20009 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 20010 | D["\1"]=" \3\\\\\\n"\\/p |
| 20011 | t cont |
| 20012 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 20013 | t cont |
| 20014 | d |
| 20015 | :cont |
| 20016 | n |
| 20017 | s/.\{148\}/&'"$ac_delim"'/g |
| 20018 | t clear |
| 20019 | :clear |
| 20020 | s/\\$// |
| 20021 | t bsnlc |
| 20022 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 20023 | d |
| 20024 | :bsnlc |
| 20025 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 20026 | b cont |
| 20027 | ' <confdefs.h | sed ' |
| 20028 | s/'"$ac_delim"'/"\\\ |
| 20029 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 20030 | |
| 20031 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20032 | for (key in D) D_is_set[key] = 1 |
| 20033 | FS = "" |
| 20034 | } |
| 20035 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 20036 | line = \$ 0 |
| 20037 | split(line, arg, " ") |
| 20038 | if (arg[1] == "#") { |
| 20039 | defundef = arg[2] |
| 20040 | mac1 = arg[3] |
| 20041 | } else { |
| 20042 | defundef = substr(arg[1], 2) |
| 20043 | mac1 = arg[2] |
| 20044 | } |
| 20045 | split(mac1, mac2, "(") #) |
| 20046 | macro = mac2[1] |
| 20047 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 20048 | if (D_is_set[macro]) { |
| 20049 | # Preserve the white space surrounding the "#". |
| 20050 | print prefix "define", macro P[macro] D[macro] |
| 20051 | next |
| 20052 | } else { |
| 20053 | # Replace #undef with comments. This is necessary, for example, |
| 20054 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 20055 | # on some systems where configure will not decide to define it. |
| 20056 | if (defundef == "undef") { |
| 20057 | print "/*", prefix defundef, macro, "*/" |
| 20058 | next |
| 20059 | } |
| 20060 | } |
| 20061 | } |
| 20062 | { print } |
| 20063 | _ACAWK |
| 20064 | _ACEOF |
| 20065 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20066 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 20067 | fi # test -n "$CONFIG_HEADERS" |
| 20068 | |
| 20069 | |
| 20070 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 20071 | shift |
| 20072 | for ac_tag |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20073 | do |
| 20074 | case $ac_tag in |
| 20075 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20076 | esac |
| 20077 | case $ac_mode$ac_tag in |
| 20078 | :[FHL]*:*);; |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20079 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20080 | :[FH]-) ac_tag=-:-;; |
| 20081 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20082 | esac |
| 20083 | ac_save_IFS=$IFS |
| 20084 | IFS=: |
| 20085 | set x $ac_tag |
| 20086 | IFS=$ac_save_IFS |
| 20087 | shift |
| 20088 | ac_file=$1 |
| 20089 | shift |
| 20090 | |
| 20091 | case $ac_mode in |
| 20092 | :L) ac_source=$1;; |
| 20093 | :[FH]) |
| 20094 | ac_file_inputs= |
| 20095 | for ac_f |
| 20096 | do |
| 20097 | case $ac_f in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20098 | -) ac_f="$ac_tmp/stdin";; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20099 | *) # Look for the file first in the build tree, then in the source tree |
| 20100 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20101 | # because $ac_f cannot contain `:'. |
| 20102 | test -f "$ac_f" || |
| 20103 | case $ac_f in |
| 20104 | [\\/$]*) false;; |
| 20105 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20106 | esac || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20107 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20108 | esac |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20109 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 20110 | as_fn_append ac_file_inputs " '$ac_f'" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20111 | done |
| 20112 | |
| 20113 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20114 | # use $as_me), people would be surprised to read: |
| 20115 | # /* config.h. Generated by config.status. */ |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20116 | configure_input='Generated from '` |
| 20117 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 20118 | `' by configure.' |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20119 | if test x"$ac_file" != x-; then |
| 20120 | configure_input="$ac_file. $configure_input" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20121 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 20122 | $as_echo "$as_me: creating $ac_file" >&6;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20123 | fi |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20124 | # Neutralize special characters interpreted by sed in replacement strings. |
| 20125 | case $configure_input in #( |
| 20126 | *\&* | *\|* | *\\* ) |
| 20127 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 20128 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 20129 | *) ac_sed_conf_input=$configure_input;; |
| 20130 | esac |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20131 | |
| 20132 | case $ac_tag in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20133 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 20134 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20135 | esac |
| 20136 | ;; |
| 20137 | esac |
| 20138 | |
| 20139 | ac_dir=`$as_dirname -- "$ac_file" || |
| 20140 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20141 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20142 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20143 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20144 | $as_echo X"$ac_file" | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20145 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20146 | s//\1/ |
| 20147 | q |
| 20148 | } |
| 20149 | /^X\(\/\/\)[^/].*/{ |
| 20150 | s//\1/ |
| 20151 | q |
| 20152 | } |
| 20153 | /^X\(\/\/\)$/{ |
| 20154 | s//\1/ |
| 20155 | q |
| 20156 | } |
| 20157 | /^X\(\/\).*/{ |
| 20158 | s//\1/ |
| 20159 | q |
| 20160 | } |
| 20161 | s/.*/./; q'` |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20162 | as_dir="$ac_dir"; as_fn_mkdir_p |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20163 | ac_builddir=. |
| 20164 | |
| 20165 | case "$ac_dir" in |
| 20166 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20167 | *) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20168 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20169 | # A ".." for each directory in $ac_dir_suffix. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20170 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20171 | case $ac_top_builddir_sub in |
| 20172 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20173 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20174 | esac ;; |
| 20175 | esac |
| 20176 | ac_abs_top_builddir=$ac_pwd |
| 20177 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20178 | # for backward compatibility: |
| 20179 | ac_top_builddir=$ac_top_build_prefix |
| 20180 | |
| 20181 | case $srcdir in |
| 20182 | .) # We are building in place. |
| 20183 | ac_srcdir=. |
| 20184 | ac_top_srcdir=$ac_top_builddir_sub |
| 20185 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20186 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 20187 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 20188 | ac_top_srcdir=$srcdir |
| 20189 | ac_abs_top_srcdir=$srcdir ;; |
| 20190 | *) # Relative name. |
| 20191 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 20192 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 20193 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 20194 | esac |
| 20195 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 20196 | |
| 20197 | |
| 20198 | case $ac_mode in |
| 20199 | :F) |
| 20200 | # |
| 20201 | # CONFIG_FILE |
| 20202 | # |
| 20203 | |
| 20204 | case $INSTALL in |
| 20205 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 20206 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 20207 | esac |
| 20208 | _ACEOF |
| 20209 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20211 | # If the template does not know about datarootdir, expand it. |
| 20212 | # FIXME: This hack should be removed a few years after 2.60. |
| 20213 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20214 | ac_sed_dataroot=' |
| 20215 | /datarootdir/ { |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20216 | p |
| 20217 | q |
| 20218 | } |
| 20219 | /@datadir@/p |
| 20220 | /@docdir@/p |
| 20221 | /@infodir@/p |
| 20222 | /@localedir@/p |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20223 | /@mandir@/p' |
| 20224 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20225 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 20226 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20227 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 20228 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20229 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20231 | ac_datarootdir_hack=' |
| 20232 | s&@datadir@&$datadir&g |
| 20233 | s&@docdir@&$docdir&g |
| 20234 | s&@infodir@&$infodir&g |
| 20235 | s&@localedir@&$localedir&g |
| 20236 | s&@mandir@&$mandir&g |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20237 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20238 | esac |
| 20239 | _ACEOF |
| 20240 | |
| 20241 | # Neutralize VPATH when `$srcdir' = `.'. |
| 20242 | # Shell code in configure.ac might set extrasub. |
| 20243 | # FIXME: do we really want to maintain this feature? |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20244 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20245 | ac_sed_extra="$ac_vpsub |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20246 | $extrasub |
| 20247 | _ACEOF |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20248 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20249 | :t |
| 20250 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20251 | s|@configure_input@|$ac_sed_conf_input|;t t |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20252 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20253 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20254 | s&@srcdir@&$ac_srcdir&;t t |
| 20255 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 20256 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 20257 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 20258 | s&@builddir@&$ac_builddir&;t t |
| 20259 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 20260 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 20261 | s&@INSTALL@&$ac_INSTALL&;t t |
| 20262 | $ac_datarootdir_hack |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20263 | " |
| 20264 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 20265 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20266 | |
| 20267 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20268 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 20269 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 20270 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 20271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20272 | which seems to be undefined. Please make sure it is defined" >&5 |
| 20273 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20274 | which seems to be undefined. Please make sure it is defined" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20275 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20276 | rm -f "$ac_tmp/stdin" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20277 | case $ac_file in |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20278 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 20279 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 20280 | esac \ |
| 20281 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20282 | ;; |
| 20283 | :H) |
| 20284 | # |
| 20285 | # CONFIG_HEADER |
| 20286 | # |
| 20287 | if test x"$ac_file" != x-; then |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20288 | { |
| 20289 | $as_echo "/* $configure_input */" \ |
| 20290 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 20291 | } >"$ac_tmp/config.h" \ |
| 20292 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20293 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 20294 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 20295 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20296 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20297 | rm -f "$ac_file" |
| 20298 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 20299 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20300 | fi |
| 20301 | else |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20302 | $as_echo "/* $configure_input */" \ |
| 20303 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 20304 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20305 | fi |
| 20306 | ;; |
| 20307 | |
| 20308 | |
| 20309 | esac |
| 20310 | |
| 20311 | done # for ac_tag |
| 20312 | |
| 20313 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20314 | as_fn_exit 0 |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20315 | _ACEOF |
| 20316 | ac_clean_files=$ac_clean_files_save |
| 20317 | |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20318 | test $ac_write_fail = 0 || |
| 20319 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 20320 | |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20321 | |
| 20322 | # configure is writing to config.log, and then calls config.status. |
| 20323 | # config.status does its own redirection, appending to config.log. |
| 20324 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 20325 | # by configure, so config.status won't be able to write to it; its |
| 20326 | # output is simply discarded. So we exec the FD to /dev/null, |
| 20327 | # effectively closing config.log, so it can be properly (re)opened and |
| 20328 | # appended to by config.status. When coming back to configure, we |
| 20329 | # need to make the FD available again. |
| 20330 | if test "$no_create" != yes; then |
| 20331 | ac_cs_success=: |
| 20332 | ac_config_status_args= |
| 20333 | test "$silent" = yes && |
| 20334 | ac_config_status_args="$ac_config_status_args --quiet" |
| 20335 | exec 5>/dev/null |
| 20336 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 20337 | exec 5>>config.log |
| 20338 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20339 | # would make configure fail if this is the last instruction. |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20340 | $ac_cs_success || as_fn_exit 1 |
| 20341 | fi |
| 20342 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 20343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 20344 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20345 | fi |
| 20346 | |
| 20347 | |
| 20348 | # Print summary of options |
| 20349 | |
| 20350 | # Someone please show me a better way :) |
| 20351 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` |
| 20352 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` |
| 20353 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` |
| 20354 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` |
| 20355 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` |
| 20356 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` |
| 20357 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` |
| 20358 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` |
| 20359 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` |
| 20360 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` |
| 20361 | |
| 20362 | echo "" |
| 20363 | echo "OpenSSH has been configured with the following options:" |
| 20364 | echo " User binaries: $B" |
| 20365 | echo " System binaries: $C" |
| 20366 | echo " Configuration files: $D" |
| 20367 | echo " Askpass program: $E" |
| 20368 | echo " Manual pages: $F" |
| 20369 | echo " PID file: $G" |
| 20370 | echo " Privilege separation chroot path: $H" |
| 20371 | if test "x$external_path_file" = "x/etc/login.conf" ; then |
| 20372 | echo " At runtime, sshd will use the path defined in $external_path_file" |
| 20373 | echo " Make sure the path to scp is present, otherwise scp will not work" |
| 20374 | else |
| 20375 | echo " sshd default user PATH: $I" |
| 20376 | if test ! -z "$external_path_file"; then |
| 20377 | echo " (If PATH is set in $external_path_file it will be used instead. If" |
| 20378 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" |
| 20379 | fi |
| 20380 | fi |
| 20381 | if test ! -z "$superuser_path" ; then |
| 20382 | echo " sshd superuser user PATH: $J" |
| 20383 | fi |
| 20384 | echo " Manpage format: $MANTYPE" |
| 20385 | echo " PAM support: $PAM_MSG" |
| 20386 | echo " OSF SIA support: $SIA_MSG" |
| 20387 | echo " KerberosV support: $KRB5_MSG" |
| 20388 | echo " SELinux support: $SELINUX_MSG" |
| 20389 | echo " Smartcard support: $SCARD_MSG" |
| 20390 | echo " S/KEY support: $SKEY_MSG" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20391 | echo " MD5 password support: $MD5_MSG" |
| 20392 | echo " libedit support: $LIBEDIT_MSG" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20393 | echo " libldns support: $LDNS_MSG" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20394 | echo " Solaris process contract support: $SPC_MSG" |
| 20395 | echo " Solaris project support: $SP_MSG" |
Greg Hartman | 9768ca4 | 2017-06-22 20:49:52 -0700 | [diff] [blame] | 20396 | echo " Solaris privilege support: $SPP_MSG" |
Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame] | 20397 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" |
| 20398 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" |
| 20399 | echo " BSD Auth support: $BSD_AUTH_MSG" |
| 20400 | echo " Random number source: $RAND_MSG" |
| 20401 | echo " Privsep sandbox style: $SANDBOX_STYLE" |
| 20402 | |
| 20403 | echo "" |
| 20404 | |
| 20405 | echo " Host: ${host}" |
| 20406 | echo " Compiler: ${CC}" |
| 20407 | echo " Compiler flags: ${CFLAGS}" |
| 20408 | echo "Preprocessor flags: ${CPPFLAGS}" |
| 20409 | echo " Linker flags: ${LDFLAGS}" |
| 20410 | echo " Libraries: ${LIBS}" |
| 20411 | if test ! -z "${SSHDLIBS}"; then |
| 20412 | echo " +for sshd: ${SSHDLIBS}" |
| 20413 | fi |
| 20414 | if test ! -z "${SSHLIBS}"; then |
| 20415 | echo " +for ssh: ${SSHLIBS}" |
| 20416 | fi |
| 20417 | |
| 20418 | echo "" |
| 20419 | |
| 20420 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then |
| 20421 | echo "SVR4 style packages are supported with \"make package\"" |
| 20422 | echo "" |
| 20423 | fi |
| 20424 | |
| 20425 | if test "x$PAM_MSG" = "xyes" ; then |
| 20426 | echo "PAM is enabled. You may need to install a PAM control file " |
| 20427 | echo "for sshd, otherwise password authentication may fail. " |
| 20428 | echo "Example PAM control files can be found in the contrib/ " |
| 20429 | echo "subdirectory" |
| 20430 | echo "" |
| 20431 | fi |
| 20432 | |
| 20433 | if test ! -z "$NO_PEERCHECK" ; then |
| 20434 | echo "WARNING: the operating system that you are using does not" |
| 20435 | echo "appear to support getpeereid(), getpeerucred() or the" |
| 20436 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" |
| 20437 | echo "enforce security checks to prevent unauthorised connections to" |
| 20438 | echo "ssh-agent. Their absence increases the risk that a malicious" |
| 20439 | echo "user can connect to your agent." |
| 20440 | echo "" |
| 20441 | fi |
| 20442 | |
| 20443 | if test "$AUDIT_MODULE" = "bsm" ; then |
| 20444 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." |
| 20445 | echo "See the Solaris section in README.platform for details." |
| 20446 | fi |