1 1.1 christos #! /bin/sh 2 1.1 christos # Guess values for system-dependent variables and create Makefiles. 3 1.4 christos # Generated by GNU Autoconf 2.72 for NSD 4.14.0. 4 1.1 christos # 5 1.3 christos # Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs (at] nlnetlabs.nl>. 6 1.1 christos # 7 1.1 christos # 8 1.4 christos # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 1.4 christos # Inc. 10 1.1 christos # 11 1.1 christos # 12 1.1 christos # This configure script is free software; the Free Software Foundation 13 1.1 christos # gives unlimited permission to copy, distribute and modify it. 14 1.1 christos ## -------------------- ## 15 1.1 christos ## M4sh Initialization. ## 16 1.1 christos ## -------------------- ## 17 1.1 christos 18 1.1 christos # Be more Bourne compatible 19 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh 20 1.4 christos if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 1.4 christos then : 22 1.1 christos emulate sh 23 1.1 christos NULLCMD=: 24 1.1 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 1.1 christos # is contrary to our usage. Disable this feature. 26 1.1 christos alias -g '${1+"$@"}'='"$@"' 27 1.1 christos setopt NO_GLOB_SUBST 28 1.4 christos else case e in #( 29 1.4 christos e) case `(set -o) 2>/dev/null` in #( 30 1.1 christos *posix*) : 31 1.1 christos set -o posix ;; #( 32 1.1 christos *) : 33 1.1 christos ;; 34 1.4 christos esac ;; 35 1.1 christos esac 36 1.1 christos fi 37 1.1 christos 38 1.1 christos 39 1.4 christos 40 1.4 christos # Reset variables that may have inherited troublesome values from 41 1.4 christos # the environment. 42 1.4 christos 43 1.4 christos # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 1.4 christos # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 1.4 christos # side effect of setting IFS to empty, thus disabling word splitting.) 46 1.4 christos # Quoting is to prevent editors from complaining about space-tab. 47 1.1 christos as_nl=' 48 1.1 christos ' 49 1.1 christos export as_nl 50 1.4 christos IFS=" "" $as_nl" 51 1.4 christos 52 1.4 christos PS1='$ ' 53 1.4 christos PS2='> ' 54 1.4 christos PS4='+ ' 55 1.4 christos 56 1.4 christos # Ensure predictable behavior from utilities with locale-dependent output. 57 1.4 christos LC_ALL=C 58 1.4 christos export LC_ALL 59 1.4 christos LANGUAGE=C 60 1.4 christos export LANGUAGE 61 1.4 christos 62 1.4 christos # We cannot yet rely on "unset" to work, but we need these variables 63 1.4 christos # to be unset--not just set to an empty or harmless value--now, to 64 1.4 christos # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 1.4 christos # also avoids known problems related to "unset" and subshell syntax 66 1.4 christos # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 1.4 christos for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 1.4 christos do eval test \${$as_var+y} \ 69 1.4 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 1.4 christos done 71 1.4 christos 72 1.4 christos # Ensure that fds 0, 1, and 2 are open. 73 1.4 christos if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 1.4 christos if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 1.4 christos if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 1.1 christos 77 1.1 christos # The user is always right. 78 1.4 christos if ${PATH_SEPARATOR+false} :; then 79 1.1 christos PATH_SEPARATOR=: 80 1.1 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 1.1 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 1.1 christos PATH_SEPARATOR=';' 83 1.1 christos } 84 1.1 christos fi 85 1.1 christos 86 1.1 christos 87 1.1 christos # Find who we are. Look in the path if we contain no directory separator. 88 1.1 christos as_myself= 89 1.1 christos case $0 in #(( 90 1.1 christos *[\\/]* ) as_myself=$0 ;; 91 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 1.1 christos for as_dir in $PATH 93 1.1 christos do 94 1.1 christos IFS=$as_save_IFS 95 1.4 christos case $as_dir in #((( 96 1.4 christos '') as_dir=./ ;; 97 1.4 christos */) ;; 98 1.4 christos *) as_dir=$as_dir/ ;; 99 1.4 christos esac 100 1.4 christos test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 1.1 christos done 102 1.1 christos IFS=$as_save_IFS 103 1.1 christos 104 1.1 christos ;; 105 1.1 christos esac 106 1.4 christos # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 1.1 christos # in which case we are not to be found in the path. 108 1.1 christos if test "x$as_myself" = x; then 109 1.1 christos as_myself=$0 110 1.1 christos fi 111 1.1 christos if test ! -f "$as_myself"; then 112 1.4 christos printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 1.1 christos exit 1 114 1.1 christos fi 115 1.1 christos 116 1.1 christos 117 1.1 christos # Use a proper internal environment variable to ensure we don't fall 118 1.1 christos # into an infinite loop, continuously re-executing ourselves. 119 1.1 christos if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 1.1 christos _as_can_reexec=no; export _as_can_reexec; 121 1.1 christos # We cannot yet assume a decent shell, so we have to provide a 122 1.1 christos # neutralization value for shells without unset; and this also 123 1.1 christos # works around shells that cannot unset nonexistent variables. 124 1.1 christos # Preserve -v and -x to the replacement shell. 125 1.1 christos BASH_ENV=/dev/null 126 1.1 christos ENV=/dev/null 127 1.1 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 1.1 christos case $- in # (((( 129 1.1 christos *v*x* | *x*v* ) as_opts=-vx ;; 130 1.1 christos *v* ) as_opts=-v ;; 131 1.1 christos *x* ) as_opts=-x ;; 132 1.1 christos * ) as_opts= ;; 133 1.1 christos esac 134 1.1 christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 1.1 christos # Admittedly, this is quite paranoid, since all the known shells bail 136 1.4 christos # out after a failed 'exec'. 137 1.4 christos printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 1.4 christos exit 255 139 1.1 christos fi 140 1.1 christos # We don't want this to propagate to other subprocesses. 141 1.1 christos { _as_can_reexec=; unset _as_can_reexec;} 142 1.1 christos if test "x$CONFIG_SHELL" = x; then 143 1.4 christos as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 1.4 christos then : 145 1.1 christos emulate sh 146 1.1 christos NULLCMD=: 147 1.1 christos # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 1.1 christos # is contrary to our usage. Disable this feature. 149 1.1 christos alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 1.1 christos setopt NO_GLOB_SUBST 151 1.4 christos else case e in #( 152 1.4 christos e) case \`(set -o) 2>/dev/null\` in #( 153 1.1 christos *posix*) : 154 1.1 christos set -o posix ;; #( 155 1.1 christos *) : 156 1.1 christos ;; 157 1.4 christos esac ;; 158 1.1 christos esac 159 1.1 christos fi 160 1.1 christos " 161 1.1 christos as_required="as_fn_return () { (exit \$1); } 162 1.1 christos as_fn_success () { as_fn_return 0; } 163 1.1 christos as_fn_failure () { as_fn_return 1; } 164 1.1 christos as_fn_ret_success () { return 0; } 165 1.1 christos as_fn_ret_failure () { return 1; } 166 1.1 christos 167 1.1 christos exitcode=0 168 1.1 christos as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 1.1 christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 1.1 christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 1.1 christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 1.4 christos if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 1.4 christos then : 174 1.1 christos 175 1.4 christos else case e in #( 176 1.4 christos e) exitcode=1; echo positional parameters were not saved. ;; 177 1.4 christos esac 178 1.1 christos fi 179 1.1 christos test x\$exitcode = x0 || exit 1 180 1.4 christos blah=\$(echo \$(echo blah)) 181 1.4 christos test x\"\$blah\" = xblah || exit 1 182 1.1 christos test -x / || exit 1" 183 1.1 christos as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 1.1 christos as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 1.1 christos eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 1.1 christos test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 1.1 christos test \$(( 1 + 1 )) = 2 || exit 1" 188 1.4 christos if (eval "$as_required") 2>/dev/null 189 1.4 christos then : 190 1.1 christos as_have_required=yes 191 1.4 christos else case e in #( 192 1.4 christos e) as_have_required=no ;; 193 1.4 christos esac 194 1.1 christos fi 195 1.4 christos if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196 1.4 christos then : 197 1.1 christos 198 1.4 christos else case e in #( 199 1.4 christos e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200 1.1 christos as_found=false 201 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202 1.1 christos do 203 1.1 christos IFS=$as_save_IFS 204 1.4 christos case $as_dir in #((( 205 1.4 christos '') as_dir=./ ;; 206 1.4 christos */) ;; 207 1.4 christos *) as_dir=$as_dir/ ;; 208 1.4 christos esac 209 1.1 christos as_found=: 210 1.1 christos case $as_dir in #( 211 1.1 christos /*) 212 1.1 christos for as_base in sh bash ksh sh5; do 213 1.1 christos # Try only shells that exist, to save several forks. 214 1.4 christos as_shell=$as_dir$as_base 215 1.1 christos if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 1.4 christos as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217 1.4 christos then : 218 1.1 christos CONFIG_SHELL=$as_shell as_have_required=yes 219 1.4 christos if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220 1.4 christos then : 221 1.1 christos break 2 222 1.1 christos fi 223 1.1 christos fi 224 1.1 christos done;; 225 1.1 christos esac 226 1.1 christos as_found=false 227 1.1 christos done 228 1.4 christos IFS=$as_save_IFS 229 1.4 christos if $as_found 230 1.4 christos then : 231 1.4 christos 232 1.4 christos else case e in #( 233 1.4 christos e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 1.4 christos as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235 1.4 christos then : 236 1.1 christos CONFIG_SHELL=$SHELL as_have_required=yes 237 1.4 christos fi ;; 238 1.4 christos esac 239 1.4 christos fi 240 1.1 christos 241 1.1 christos 242 1.4 christos if test "x$CONFIG_SHELL" != x 243 1.4 christos then : 244 1.1 christos export CONFIG_SHELL 245 1.1 christos # We cannot yet assume a decent shell, so we have to provide a 246 1.1 christos # neutralization value for shells without unset; and this also 247 1.1 christos # works around shells that cannot unset nonexistent variables. 248 1.1 christos # Preserve -v and -x to the replacement shell. 249 1.1 christos BASH_ENV=/dev/null 250 1.1 christos ENV=/dev/null 251 1.1 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252 1.1 christos case $- in # (((( 253 1.1 christos *v*x* | *x*v* ) as_opts=-vx ;; 254 1.1 christos *v* ) as_opts=-v ;; 255 1.1 christos *x* ) as_opts=-x ;; 256 1.1 christos * ) as_opts= ;; 257 1.1 christos esac 258 1.1 christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259 1.1 christos # Admittedly, this is quite paranoid, since all the known shells bail 260 1.4 christos # out after a failed 'exec'. 261 1.4 christos printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262 1.1 christos exit 255 263 1.1 christos fi 264 1.1 christos 265 1.4 christos if test x$as_have_required = xno 266 1.4 christos then : 267 1.4 christos printf "%s\n" "$0: This script requires a shell more modern than all" 268 1.4 christos printf "%s\n" "$0: the shells that I found on your system." 269 1.4 christos if test ${ZSH_VERSION+y} ; then 270 1.4 christos printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 1.4 christos printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 1.1 christos else 273 1.4 christos printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 274 1.3 christos $0: https://github.com/NLnetLabs/nsd/issues or 275 1.1 christos $0: nsd-bugs (at] nlnetlabs.nl about your system, including any 276 1.1 christos $0: error possibly output before this message. Then install 277 1.1 christos $0: a modern shell, or manually run the script under such a 278 1.1 christos $0: shell if you do have one." 279 1.1 christos fi 280 1.1 christos exit 1 281 1.4 christos fi ;; 282 1.4 christos esac 283 1.1 christos fi 284 1.1 christos fi 285 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh} 286 1.1 christos export SHELL 287 1.1 christos # Unset more variables known to interfere with behavior of common tools. 288 1.1 christos CLICOLOR_FORCE= GREP_OPTIONS= 289 1.1 christos unset CLICOLOR_FORCE GREP_OPTIONS 290 1.1 christos 291 1.1 christos ## --------------------- ## 292 1.1 christos ## M4sh Shell Functions. ## 293 1.1 christos ## --------------------- ## 294 1.1 christos # as_fn_unset VAR 295 1.1 christos # --------------- 296 1.1 christos # Portably unset VAR. 297 1.1 christos as_fn_unset () 298 1.1 christos { 299 1.1 christos { eval $1=; unset $1;} 300 1.1 christos } 301 1.1 christos as_unset=as_fn_unset 302 1.1 christos 303 1.4 christos 304 1.1 christos # as_fn_set_status STATUS 305 1.1 christos # ----------------------- 306 1.1 christos # Set $? to STATUS, without forking. 307 1.1 christos as_fn_set_status () 308 1.1 christos { 309 1.1 christos return $1 310 1.1 christos } # as_fn_set_status 311 1.1 christos 312 1.1 christos # as_fn_exit STATUS 313 1.1 christos # ----------------- 314 1.1 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315 1.1 christos as_fn_exit () 316 1.1 christos { 317 1.1 christos set +e 318 1.1 christos as_fn_set_status $1 319 1.1 christos exit $1 320 1.1 christos } # as_fn_exit 321 1.1 christos 322 1.1 christos # as_fn_mkdir_p 323 1.1 christos # ------------- 324 1.1 christos # Create "$as_dir" as a directory, including parents if necessary. 325 1.1 christos as_fn_mkdir_p () 326 1.1 christos { 327 1.1 christos 328 1.1 christos case $as_dir in #( 329 1.1 christos -*) as_dir=./$as_dir;; 330 1.1 christos esac 331 1.1 christos test -d "$as_dir" || eval $as_mkdir_p || { 332 1.1 christos as_dirs= 333 1.1 christos while :; do 334 1.1 christos case $as_dir in #( 335 1.4 christos *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 1.1 christos *) as_qdir=$as_dir;; 337 1.1 christos esac 338 1.1 christos as_dirs="'$as_qdir' $as_dirs" 339 1.1 christos as_dir=`$as_dirname -- "$as_dir" || 340 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 342 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 343 1.1 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344 1.4 christos printf "%s\n" X"$as_dir" | 345 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 1.1 christos s//\1/ 347 1.1 christos q 348 1.1 christos } 349 1.1 christos /^X\(\/\/\)[^/].*/{ 350 1.1 christos s//\1/ 351 1.1 christos q 352 1.1 christos } 353 1.1 christos /^X\(\/\/\)$/{ 354 1.1 christos s//\1/ 355 1.1 christos q 356 1.1 christos } 357 1.1 christos /^X\(\/\).*/{ 358 1.1 christos s//\1/ 359 1.1 christos q 360 1.1 christos } 361 1.1 christos s/.*/./; q'` 362 1.1 christos test -d "$as_dir" && break 363 1.1 christos done 364 1.1 christos test -z "$as_dirs" || eval "mkdir $as_dirs" 365 1.1 christos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 1.1 christos 367 1.1 christos 368 1.1 christos } # as_fn_mkdir_p 369 1.1 christos 370 1.1 christos # as_fn_executable_p FILE 371 1.1 christos # ----------------------- 372 1.1 christos # Test if FILE is an executable regular file. 373 1.1 christos as_fn_executable_p () 374 1.1 christos { 375 1.1 christos test -f "$1" && test -x "$1" 376 1.1 christos } # as_fn_executable_p 377 1.1 christos # as_fn_append VAR VALUE 378 1.1 christos # ---------------------- 379 1.1 christos # Append the text in VALUE to the end of the definition contained in VAR. Take 380 1.1 christos # advantage of any shell optimizations that allow amortized linear growth over 381 1.1 christos # repeated appends, instead of the typical quadratic growth present in naive 382 1.1 christos # implementations. 383 1.4 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384 1.4 christos then : 385 1.1 christos eval 'as_fn_append () 386 1.1 christos { 387 1.1 christos eval $1+=\$2 388 1.1 christos }' 389 1.4 christos else case e in #( 390 1.4 christos e) as_fn_append () 391 1.1 christos { 392 1.1 christos eval $1=\$$1\$2 393 1.4 christos } ;; 394 1.4 christos esac 395 1.1 christos fi # as_fn_append 396 1.1 christos 397 1.1 christos # as_fn_arith ARG... 398 1.1 christos # ------------------ 399 1.1 christos # Perform arithmetic evaluation on the ARGs, and store the result in the 400 1.1 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments 401 1.1 christos # must be portable across $(()) and expr. 402 1.4 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403 1.4 christos then : 404 1.1 christos eval 'as_fn_arith () 405 1.1 christos { 406 1.1 christos as_val=$(( $* )) 407 1.1 christos }' 408 1.4 christos else case e in #( 409 1.4 christos e) as_fn_arith () 410 1.1 christos { 411 1.1 christos as_val=`expr "$@" || test $? -eq 1` 412 1.4 christos } ;; 413 1.4 christos esac 414 1.1 christos fi # as_fn_arith 415 1.1 christos 416 1.1 christos 417 1.1 christos # as_fn_error STATUS ERROR [LINENO LOG_FD] 418 1.1 christos # ---------------------------------------- 419 1.1 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420 1.1 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421 1.1 christos # script with STATUS, using 1 if that was 0. 422 1.1 christos as_fn_error () 423 1.1 christos { 424 1.1 christos as_status=$1; test $as_status -eq 0 && as_status=1 425 1.1 christos if test "$4"; then 426 1.1 christos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 1.1 christos fi 429 1.4 christos printf "%s\n" "$as_me: error: $2" >&2 430 1.1 christos as_fn_exit $as_status 431 1.1 christos } # as_fn_error 432 1.1 christos 433 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 && 434 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 1.1 christos as_expr=expr 436 1.1 christos else 437 1.1 christos as_expr=false 438 1.1 christos fi 439 1.1 christos 440 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 1.1 christos as_basename=basename 442 1.1 christos else 443 1.1 christos as_basename=false 444 1.1 christos fi 445 1.1 christos 446 1.1 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 1.1 christos as_dirname=dirname 448 1.1 christos else 449 1.1 christos as_dirname=false 450 1.1 christos fi 451 1.1 christos 452 1.1 christos as_me=`$as_basename -- "$0" || 453 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 1.1 christos X"$0" : 'X\(//\)$' \| \ 455 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null || 456 1.4 christos printf "%s\n" X/"$0" | 457 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 1.1 christos s//\1/ 459 1.1 christos q 460 1.1 christos } 461 1.1 christos /^X\/\(\/\/\)$/{ 462 1.1 christos s//\1/ 463 1.1 christos q 464 1.1 christos } 465 1.1 christos /^X\/\(\/\).*/{ 466 1.1 christos s//\1/ 467 1.1 christos q 468 1.1 christos } 469 1.1 christos s/.*/./; q'` 470 1.1 christos 471 1.1 christos # Avoid depending upon Character Ranges. 472 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475 1.1 christos as_cr_digits='0123456789' 476 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits 477 1.1 christos 478 1.1 christos 479 1.1 christos as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 1.1 christos as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 1.1 christos eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 1.1 christos test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 1.1 christos # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 1.1 christos sed -n ' 485 1.1 christos p 486 1.1 christos /[$]LINENO/= 487 1.1 christos ' <$as_myself | 488 1.1 christos sed ' 489 1.4 christos t clear 490 1.4 christos :clear 491 1.1 christos s/[$]LINENO.*/&-/ 492 1.1 christos t lineno 493 1.1 christos b 494 1.1 christos :lineno 495 1.1 christos N 496 1.1 christos :loop 497 1.1 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 1.1 christos t loop 499 1.1 christos s/-\n.*// 500 1.1 christos ' >$as_me.lineno && 501 1.1 christos chmod +x "$as_me.lineno" || 502 1.4 christos { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 1.1 christos 504 1.1 christos # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 1.1 christos # already done that, so ensure we don't try to do so again and fall 506 1.1 christos # in an infinite loop. This has already happened in practice. 507 1.1 christos _as_can_reexec=no; export _as_can_reexec 508 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems 509 1.1 christos # (the dirname of $[0] is not the place where we might find the 510 1.1 christos # original and so on. Autoconf is especially sensitive to this). 511 1.1 christos . "./$as_me.lineno" 512 1.1 christos # Exit status is that of the last command. 513 1.1 christos exit 514 1.1 christos } 515 1.1 christos 516 1.4 christos 517 1.4 christos # Determine whether it's possible to make 'echo' print without a newline. 518 1.4 christos # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519 1.4 christos # for compatibility with existing Makefiles. 520 1.1 christos ECHO_C= ECHO_N= ECHO_T= 521 1.1 christos case `echo -n x` in #((((( 522 1.1 christos -n*) 523 1.1 christos case `echo 'xy\c'` in 524 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 1.1 christos xy) ECHO_C='\c';; 526 1.1 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 1.1 christos ECHO_T=' ';; 528 1.1 christos esac;; 529 1.1 christos *) 530 1.1 christos ECHO_N='-n';; 531 1.1 christos esac 532 1.1 christos 533 1.4 christos # For backward compatibility with old third-party macros, we provide 534 1.4 christos # the shell variables $as_echo and $as_echo_n. New code should use 535 1.4 christos # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536 1.4 christos as_echo='printf %s\n' 537 1.4 christos as_echo_n='printf %s' 538 1.4 christos 539 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 540 1.1 christos if test -d conf$$.dir; then 541 1.1 christos rm -f conf$$.dir/conf$$.file 542 1.1 christos else 543 1.1 christos rm -f conf$$.dir 544 1.1 christos mkdir conf$$.dir 2>/dev/null 545 1.1 christos fi 546 1.1 christos if (echo >conf$$.file) 2>/dev/null; then 547 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then 548 1.1 christos as_ln_s='ln -s' 549 1.1 christos # ... but there are two gotchas: 550 1.4 christos # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 1.4 christos # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 1.4 christos # In both cases, we have to default to 'cp -pR'. 553 1.1 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 1.1 christos as_ln_s='cp -pR' 555 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then 556 1.1 christos as_ln_s=ln 557 1.1 christos else 558 1.1 christos as_ln_s='cp -pR' 559 1.1 christos fi 560 1.1 christos else 561 1.1 christos as_ln_s='cp -pR' 562 1.1 christos fi 563 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564 1.1 christos rmdir conf$$.dir 2>/dev/null 565 1.1 christos 566 1.1 christos if mkdir -p . 2>/dev/null; then 567 1.1 christos as_mkdir_p='mkdir -p "$as_dir"' 568 1.1 christos else 569 1.1 christos test -d ./-p && rmdir ./-p 570 1.1 christos as_mkdir_p=false 571 1.1 christos fi 572 1.1 christos 573 1.1 christos as_test_x='test -x' 574 1.1 christos as_executable_p=as_fn_executable_p 575 1.1 christos 576 1.1 christos # Sed expression to map a string onto a valid CPP name. 577 1.4 christos as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578 1.4 christos as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 1.1 christos 580 1.1 christos # Sed expression to map a string onto a valid variable name. 581 1.4 christos as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582 1.4 christos as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 1.1 christos 584 1.1 christos 585 1.1 christos test -n "$DJDIR" || exec 7<&0 </dev/null 586 1.1 christos exec 6>&1 587 1.1 christos 588 1.1 christos # Name of the host. 589 1.1 christos # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590 1.1 christos # so uname gets run too. 591 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 1.1 christos 593 1.1 christos # 594 1.1 christos # Initializations. 595 1.1 christos # 596 1.1 christos ac_default_prefix=/usr/local 597 1.1 christos ac_clean_files= 598 1.1 christos ac_config_libobj_dir=. 599 1.1 christos LIBOBJS= 600 1.1 christos cross_compiling=no 601 1.1 christos subdirs= 602 1.1 christos MFLAGS= 603 1.1 christos MAKEFLAGS= 604 1.1 christos 605 1.1 christos # Identity of this package. 606 1.1 christos PACKAGE_NAME='NSD' 607 1.1 christos PACKAGE_TARNAME='nsd' 608 1.4 christos PACKAGE_VERSION='4.14.0' 609 1.4 christos PACKAGE_STRING='NSD 4.14.0' 610 1.3 christos PACKAGE_BUGREPORT='https://github.com/NLnetLabs/nsd/issues or nsd-bugs (at] nlnetlabs.nl' 611 1.1 christos PACKAGE_URL='' 612 1.1 christos 613 1.1 christos # Factoring default headers for most tests. 614 1.1 christos ac_includes_default="\ 615 1.4 christos #include <stddef.h> 616 1.4 christos #ifdef HAVE_STDIO_H 617 1.4 christos # include <stdio.h> 618 1.1 christos #endif 619 1.4 christos #ifdef HAVE_STDLIB_H 620 1.1 christos # include <stdlib.h> 621 1.1 christos #endif 622 1.1 christos #ifdef HAVE_STRING_H 623 1.1 christos # include <string.h> 624 1.1 christos #endif 625 1.1 christos #ifdef HAVE_INTTYPES_H 626 1.1 christos # include <inttypes.h> 627 1.1 christos #endif 628 1.1 christos #ifdef HAVE_STDINT_H 629 1.1 christos # include <stdint.h> 630 1.1 christos #endif 631 1.4 christos #ifdef HAVE_STRINGS_H 632 1.4 christos # include <strings.h> 633 1.4 christos #endif 634 1.4 christos #ifdef HAVE_SYS_TYPES_H 635 1.4 christos # include <sys/types.h> 636 1.4 christos #endif 637 1.4 christos #ifdef HAVE_SYS_STAT_H 638 1.4 christos # include <sys/stat.h> 639 1.4 christos #endif 640 1.1 christos #ifdef HAVE_UNISTD_H 641 1.1 christos # include <unistd.h> 642 1.1 christos #endif" 643 1.1 christos 644 1.4 christos ac_header_c_list= 645 1.4 christos ac_func_c_list= 646 1.4 christos enable_option_checking=no 647 1.4 christos enable_year2038=no 648 1.1 christos ac_subst_vars='LTLIBOBJS 649 1.4 christos subdirs 650 1.2 christos SYSTEMD_DAEMON_LIBS 651 1.2 christos SYSTEMD_DAEMON_CFLAGS 652 1.2 christos SYSTEMD_LIBS 653 1.2 christos SYSTEMD_CFLAGS 654 1.2 christos PKG_CONFIG_LIBDIR 655 1.2 christos PKG_CONFIG_PATH 656 1.2 christos PKG_CONFIG 657 1.2 christos DNSTAP_OBJ 658 1.2 christos DNSTAP_SRC 659 1.2 christos opt_dnstap_socket_path 660 1.2 christos ENABLE_DNSTAP 661 1.4 christos PROTOC_GEN_C 662 1.2 christos PROTOC_C 663 1.4 christos PROTOC 664 1.4 christos xdp 665 1.4 christos xdp_targets 666 1.4 christos BPF_CFLAGS 667 1.4 christos LLC 668 1.4 christos CLANG 669 1.1 christos SSL_LIBS 670 1.1 christos HAVE_SSL 671 1.1 christos ratelimit_default 672 1.4 christos host_os 673 1.4 christos host_vendor 674 1.4 christos host_cpu 675 1.4 christos host 676 1.4 christos build_os 677 1.4 christos build_vendor 678 1.4 christos build_cpu 679 1.4 christos build 680 1.4 christos CPP 681 1.1 christos LIBOBJS 682 1.1 christos INSTALL_DATA 683 1.1 christos INSTALL_SCRIPT 684 1.1 christos INSTALL_PROGRAM 685 1.1 christos LN_S 686 1.2 christos YFLAGS 687 1.2 christos LEXLIB 688 1.2 christos LEX_OUTPUT_ROOT 689 1.1 christos user 690 1.1 christos chrootdir 691 1.4 christos sharedfilesdir 692 1.1 christos xfrdir 693 1.4 christos cookiesecretsfile 694 1.1 christos zonelistfile 695 1.1 christos xfrdfile 696 1.1 christos zonesdir 697 1.1 christos piddir 698 1.1 christos pidfile 699 1.1 christos logfile 700 1.1 christos nsd_conf_file 701 1.1 christos configdir 702 1.1 christos OBJEXT 703 1.1 christos EXEEXT 704 1.1 christos ac_ct_CC 705 1.1 christos CPPFLAGS 706 1.1 christos LDFLAGS 707 1.1 christos CFLAGS 708 1.1 christos CC 709 1.2 christos YACC 710 1.2 christos LEX 711 1.2 christos EGREP 712 1.2 christos GREP 713 1.2 christos AWK 714 1.2 christos SED 715 1.1 christos target_alias 716 1.1 christos host_alias 717 1.1 christos build_alias 718 1.1 christos LIBS 719 1.1 christos ECHO_T 720 1.1 christos ECHO_N 721 1.1 christos ECHO_C 722 1.1 christos DEFS 723 1.1 christos mandir 724 1.1 christos localedir 725 1.1 christos libdir 726 1.1 christos psdir 727 1.1 christos pdfdir 728 1.1 christos dvidir 729 1.1 christos htmldir 730 1.1 christos infodir 731 1.1 christos docdir 732 1.1 christos oldincludedir 733 1.1 christos includedir 734 1.2 christos runstatedir 735 1.1 christos localstatedir 736 1.1 christos sharedstatedir 737 1.1 christos sysconfdir 738 1.1 christos datadir 739 1.1 christos datarootdir 740 1.1 christos libexecdir 741 1.1 christos sbindir 742 1.1 christos bindir 743 1.1 christos program_transform_name 744 1.1 christos prefix 745 1.1 christos exec_prefix 746 1.1 christos PACKAGE_URL 747 1.1 christos PACKAGE_BUGREPORT 748 1.1 christos PACKAGE_STRING 749 1.1 christos PACKAGE_VERSION 750 1.1 christos PACKAGE_TARNAME 751 1.1 christos PACKAGE_NAME 752 1.1 christos PATH_SEPARATOR 753 1.1 christos SHELL' 754 1.1 christos ac_subst_files='' 755 1.1 christos ac_user_opts=' 756 1.1 christos enable_option_checking 757 1.1 christos with_configdir 758 1.1 christos with_nsd_conf_file 759 1.1 christos with_logfile 760 1.4 christos with_dbdir 761 1.1 christos with_pidfile 762 1.1 christos with_dbfile 763 1.1 christos with_zonesdir 764 1.1 christos with_xfrdfile 765 1.1 christos with_zonelistfile 766 1.4 christos with_cookiesecretsfile 767 1.1 christos with_xfrdir 768 1.4 christos with_sharedfilesdir 769 1.1 christos with_chroot 770 1.1 christos with_user 771 1.1 christos enable_flto 772 1.1 christos enable_pie 773 1.1 christos enable_relro_now 774 1.1 christos with_libevent 775 1.1 christos enable_largefile 776 1.1 christos enable_recvmmsg 777 1.1 christos with_facility 778 1.1 christos with_tcp_timeout 779 1.1 christos enable_root_server 780 1.1 christos enable_ipv6 781 1.1 christos enable_bind8_stats 782 1.1 christos enable_zone_stats 783 1.1 christos enable_checking 784 1.4 christos enable_log_role 785 1.2 christos enable_memclean 786 1.1 christos enable_ratelimit 787 1.1 christos enable_ratelimit_default_is_off 788 1.1 christos with_ssl 789 1.1 christos enable_nsec3 790 1.1 christos enable_minimal_responses 791 1.1 christos enable_mmap 792 1.1 christos enable_radix_tree 793 1.2 christos enable_packed 794 1.4 christos enable_xdp 795 1.2 christos enable_dnstap 796 1.2 christos with_dnstap_socket_path 797 1.2 christos with_protobuf_c 798 1.2 christos with_libfstrm 799 1.2 christos enable_systemd 800 1.2 christos enable_tcp_fastopen 801 1.4 christos enable_westmere 802 1.4 christos enable_haswell 803 1.4 christos enable_year2038 804 1.1 christos ' 805 1.1 christos ac_precious_vars='build_alias 806 1.1 christos host_alias 807 1.1 christos target_alias 808 1.2 christos SED 809 1.2 christos AWK 810 1.2 christos GREP 811 1.2 christos EGREP 812 1.2 christos LEX 813 1.2 christos YACC 814 1.1 christos CC 815 1.1 christos CFLAGS 816 1.1 christos LDFLAGS 817 1.1 christos LIBS 818 1.1 christos CPPFLAGS 819 1.4 christos YFLAGS 820 1.1 christos CPP 821 1.4 christos CLANG 822 1.4 christos LLC 823 1.4 christos BPF_CFLAGS 824 1.2 christos PKG_CONFIG 825 1.2 christos PKG_CONFIG_PATH 826 1.2 christos PKG_CONFIG_LIBDIR 827 1.2 christos SYSTEMD_CFLAGS 828 1.2 christos SYSTEMD_LIBS 829 1.2 christos SYSTEMD_DAEMON_CFLAGS 830 1.2 christos SYSTEMD_DAEMON_LIBS' 831 1.4 christos ac_subdirs_all='simdzone' 832 1.1 christos 833 1.1 christos # Initialize some variables set by options. 834 1.1 christos ac_init_help= 835 1.1 christos ac_init_version=false 836 1.1 christos ac_unrecognized_opts= 837 1.1 christos ac_unrecognized_sep= 838 1.1 christos # The variables have the same names as the options, with 839 1.1 christos # dashes changed to underlines. 840 1.1 christos cache_file=/dev/null 841 1.1 christos exec_prefix=NONE 842 1.1 christos no_create= 843 1.1 christos no_recursion= 844 1.1 christos prefix=NONE 845 1.1 christos program_prefix=NONE 846 1.1 christos program_suffix=NONE 847 1.1 christos program_transform_name=s,x,x, 848 1.1 christos silent= 849 1.1 christos site= 850 1.1 christos srcdir= 851 1.1 christos verbose= 852 1.1 christos x_includes=NONE 853 1.1 christos x_libraries=NONE 854 1.1 christos 855 1.1 christos # Installation directory options. 856 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo" 857 1.1 christos # and all the variables that are supposed to be based on exec_prefix 858 1.1 christos # by default will actually change. 859 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them. 860 1.1 christos # (The list follows the same order as the GNU Coding Standards.) 861 1.1 christos bindir='${exec_prefix}/bin' 862 1.1 christos sbindir='${exec_prefix}/sbin' 863 1.1 christos libexecdir='${exec_prefix}/libexec' 864 1.1 christos datarootdir='${prefix}/share' 865 1.1 christos datadir='${datarootdir}' 866 1.1 christos sysconfdir='${prefix}/etc' 867 1.1 christos sharedstatedir='${prefix}/com' 868 1.1 christos localstatedir='${prefix}/var' 869 1.2 christos runstatedir='${localstatedir}/run' 870 1.1 christos includedir='${prefix}/include' 871 1.1 christos oldincludedir='/usr/include' 872 1.1 christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 873 1.1 christos infodir='${datarootdir}/info' 874 1.1 christos htmldir='${docdir}' 875 1.1 christos dvidir='${docdir}' 876 1.1 christos pdfdir='${docdir}' 877 1.1 christos psdir='${docdir}' 878 1.1 christos libdir='${exec_prefix}/lib' 879 1.1 christos localedir='${datarootdir}/locale' 880 1.1 christos mandir='${datarootdir}/man' 881 1.1 christos 882 1.1 christos ac_prev= 883 1.1 christos ac_dashdash= 884 1.1 christos for ac_option 885 1.1 christos do 886 1.1 christos # If the previous option needs an argument, assign it. 887 1.1 christos if test -n "$ac_prev"; then 888 1.1 christos eval $ac_prev=\$ac_option 889 1.1 christos ac_prev= 890 1.1 christos continue 891 1.1 christos fi 892 1.1 christos 893 1.1 christos case $ac_option in 894 1.1 christos *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 1.1 christos *=) ac_optarg= ;; 896 1.1 christos *) ac_optarg=yes ;; 897 1.1 christos esac 898 1.1 christos 899 1.1 christos case $ac_dashdash$ac_option in 900 1.1 christos --) 901 1.1 christos ac_dashdash=yes ;; 902 1.1 christos 903 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi) 904 1.1 christos ac_prev=bindir ;; 905 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 906 1.1 christos bindir=$ac_optarg ;; 907 1.1 christos 908 1.1 christos -build | --build | --buil | --bui | --bu) 909 1.1 christos ac_prev=build_alias ;; 910 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*) 911 1.1 christos build_alias=$ac_optarg ;; 912 1.1 christos 913 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \ 914 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 915 1.1 christos ac_prev=cache_file ;; 916 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 917 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 918 1.1 christos cache_file=$ac_optarg ;; 919 1.1 christos 920 1.1 christos --config-cache | -C) 921 1.1 christos cache_file=config.cache ;; 922 1.1 christos 923 1.1 christos -datadir | --datadir | --datadi | --datad) 924 1.1 christos ac_prev=datadir ;; 925 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=*) 926 1.1 christos datadir=$ac_optarg ;; 927 1.1 christos 928 1.1 christos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 929 1.1 christos | --dataroo | --dataro | --datar) 930 1.1 christos ac_prev=datarootdir ;; 931 1.1 christos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 932 1.1 christos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 933 1.1 christos datarootdir=$ac_optarg ;; 934 1.1 christos 935 1.1 christos -disable-* | --disable-*) 936 1.1 christos ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 937 1.1 christos # Reject names that are not valid shell variable names. 938 1.1 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 1.4 christos as_fn_error $? "invalid feature name: '$ac_useropt'" 940 1.1 christos ac_useropt_orig=$ac_useropt 941 1.4 christos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 942 1.1 christos case $ac_user_opts in 943 1.1 christos *" 944 1.1 christos "enable_$ac_useropt" 945 1.1 christos "*) ;; 946 1.1 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 947 1.1 christos ac_unrecognized_sep=', ';; 948 1.1 christos esac 949 1.1 christos eval enable_$ac_useropt=no ;; 950 1.1 christos 951 1.1 christos -docdir | --docdir | --docdi | --doc | --do) 952 1.1 christos ac_prev=docdir ;; 953 1.1 christos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 954 1.1 christos docdir=$ac_optarg ;; 955 1.1 christos 956 1.1 christos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 957 1.1 christos ac_prev=dvidir ;; 958 1.1 christos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 959 1.1 christos dvidir=$ac_optarg ;; 960 1.1 christos 961 1.1 christos -enable-* | --enable-*) 962 1.1 christos ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 963 1.1 christos # Reject names that are not valid shell variable names. 964 1.1 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 1.4 christos as_fn_error $? "invalid feature name: '$ac_useropt'" 966 1.1 christos ac_useropt_orig=$ac_useropt 967 1.4 christos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 968 1.1 christos case $ac_user_opts in 969 1.1 christos *" 970 1.1 christos "enable_$ac_useropt" 971 1.1 christos "*) ;; 972 1.1 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 973 1.1 christos ac_unrecognized_sep=', ';; 974 1.1 christos esac 975 1.1 christos eval enable_$ac_useropt=\$ac_optarg ;; 976 1.1 christos 977 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 978 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 979 1.1 christos | --exec | --exe | --ex) 980 1.1 christos ac_prev=exec_prefix ;; 981 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 982 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 983 1.1 christos | --exec=* | --exe=* | --ex=*) 984 1.1 christos exec_prefix=$ac_optarg ;; 985 1.1 christos 986 1.1 christos -gas | --gas | --ga | --g) 987 1.1 christos # Obsolete; use --with-gas. 988 1.1 christos with_gas=yes ;; 989 1.1 christos 990 1.1 christos -help | --help | --hel | --he | -h) 991 1.1 christos ac_init_help=long ;; 992 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 993 1.1 christos ac_init_help=recursive ;; 994 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 995 1.1 christos ac_init_help=short ;; 996 1.1 christos 997 1.1 christos -host | --host | --hos | --ho) 998 1.1 christos ac_prev=host_alias ;; 999 1.1 christos -host=* | --host=* | --hos=* | --ho=*) 1000 1.1 christos host_alias=$ac_optarg ;; 1001 1.1 christos 1002 1.1 christos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1003 1.1 christos ac_prev=htmldir ;; 1004 1.1 christos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1005 1.1 christos | --ht=*) 1006 1.1 christos htmldir=$ac_optarg ;; 1007 1.1 christos 1008 1.1 christos -includedir | --includedir | --includedi | --included | --include \ 1009 1.1 christos | --includ | --inclu | --incl | --inc) 1010 1.1 christos ac_prev=includedir ;; 1011 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1012 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*) 1013 1.1 christos includedir=$ac_optarg ;; 1014 1.1 christos 1015 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf) 1016 1.1 christos ac_prev=infodir ;; 1017 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1018 1.1 christos infodir=$ac_optarg ;; 1019 1.1 christos 1020 1.1 christos -libdir | --libdir | --libdi | --libd) 1021 1.1 christos ac_prev=libdir ;; 1022 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*) 1023 1.1 christos libdir=$ac_optarg ;; 1024 1.1 christos 1025 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1026 1.1 christos | --libexe | --libex | --libe) 1027 1.1 christos ac_prev=libexecdir ;; 1028 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1029 1.1 christos | --libexe=* | --libex=* | --libe=*) 1030 1.1 christos libexecdir=$ac_optarg ;; 1031 1.1 christos 1032 1.1 christos -localedir | --localedir | --localedi | --localed | --locale) 1033 1.1 christos ac_prev=localedir ;; 1034 1.1 christos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1035 1.1 christos localedir=$ac_optarg ;; 1036 1.1 christos 1037 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \ 1038 1.1 christos | --localstate | --localstat | --localsta | --localst | --locals) 1039 1.1 christos ac_prev=localstatedir ;; 1040 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1041 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1042 1.1 christos localstatedir=$ac_optarg ;; 1043 1.1 christos 1044 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1045 1.1 christos ac_prev=mandir ;; 1046 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1047 1.1 christos mandir=$ac_optarg ;; 1048 1.1 christos 1049 1.1 christos -nfp | --nfp | --nf) 1050 1.1 christos # Obsolete; use --without-fp. 1051 1.1 christos with_fp=no ;; 1052 1.1 christos 1053 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1054 1.1 christos | --no-cr | --no-c | -n) 1055 1.1 christos no_create=yes ;; 1056 1.1 christos 1057 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1058 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1059 1.1 christos no_recursion=yes ;; 1060 1.1 christos 1061 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1062 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1063 1.1 christos | --oldin | --oldi | --old | --ol | --o) 1064 1.1 christos ac_prev=oldincludedir ;; 1065 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1066 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1067 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1068 1.1 christos oldincludedir=$ac_optarg ;; 1069 1.1 christos 1070 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1071 1.1 christos ac_prev=prefix ;; 1072 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1073 1.1 christos prefix=$ac_optarg ;; 1074 1.1 christos 1075 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1076 1.1 christos | --program-pre | --program-pr | --program-p) 1077 1.1 christos ac_prev=program_prefix ;; 1078 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1079 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1080 1.1 christos program_prefix=$ac_optarg ;; 1081 1.1 christos 1082 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1083 1.1 christos | --program-suf | --program-su | --program-s) 1084 1.1 christos ac_prev=program_suffix ;; 1085 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1086 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1087 1.1 christos program_suffix=$ac_optarg ;; 1088 1.1 christos 1089 1.1 christos -program-transform-name | --program-transform-name \ 1090 1.1 christos | --program-transform-nam | --program-transform-na \ 1091 1.1 christos | --program-transform-n | --program-transform- \ 1092 1.1 christos | --program-transform | --program-transfor \ 1093 1.1 christos | --program-transfo | --program-transf \ 1094 1.1 christos | --program-trans | --program-tran \ 1095 1.1 christos | --progr-tra | --program-tr | --program-t) 1096 1.1 christos ac_prev=program_transform_name ;; 1097 1.1 christos -program-transform-name=* | --program-transform-name=* \ 1098 1.1 christos | --program-transform-nam=* | --program-transform-na=* \ 1099 1.1 christos | --program-transform-n=* | --program-transform-=* \ 1100 1.1 christos | --program-transform=* | --program-transfor=* \ 1101 1.1 christos | --program-transfo=* | --program-transf=* \ 1102 1.1 christos | --program-trans=* | --program-tran=* \ 1103 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*) 1104 1.1 christos program_transform_name=$ac_optarg ;; 1105 1.1 christos 1106 1.1 christos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1107 1.1 christos ac_prev=pdfdir ;; 1108 1.1 christos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1109 1.1 christos pdfdir=$ac_optarg ;; 1110 1.1 christos 1111 1.1 christos -psdir | --psdir | --psdi | --psd | --ps) 1112 1.1 christos ac_prev=psdir ;; 1113 1.1 christos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1114 1.1 christos psdir=$ac_optarg ;; 1115 1.1 christos 1116 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1117 1.1 christos | -silent | --silent | --silen | --sile | --sil) 1118 1.1 christos silent=yes ;; 1119 1.1 christos 1120 1.2 christos -runstatedir | --runstatedir | --runstatedi | --runstated \ 1121 1.2 christos | --runstate | --runstat | --runsta | --runst | --runs \ 1122 1.2 christos | --run | --ru | --r) 1123 1.2 christos ac_prev=runstatedir ;; 1124 1.2 christos -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1125 1.2 christos | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1126 1.2 christos | --run=* | --ru=* | --r=*) 1127 1.2 christos runstatedir=$ac_optarg ;; 1128 1.2 christos 1129 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1130 1.1 christos ac_prev=sbindir ;; 1131 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1132 1.1 christos | --sbi=* | --sb=*) 1133 1.1 christos sbindir=$ac_optarg ;; 1134 1.1 christos 1135 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1136 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1137 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \ 1138 1.1 christos | --sha | --sh) 1139 1.1 christos ac_prev=sharedstatedir ;; 1140 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1141 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1142 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1143 1.1 christos | --sha=* | --sh=*) 1144 1.1 christos sharedstatedir=$ac_optarg ;; 1145 1.1 christos 1146 1.1 christos -site | --site | --sit) 1147 1.1 christos ac_prev=site ;; 1148 1.1 christos -site=* | --site=* | --sit=*) 1149 1.1 christos site=$ac_optarg ;; 1150 1.1 christos 1151 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1152 1.1 christos ac_prev=srcdir ;; 1153 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1154 1.1 christos srcdir=$ac_optarg ;; 1155 1.1 christos 1156 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1157 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy) 1158 1.1 christos ac_prev=sysconfdir ;; 1159 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1160 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1161 1.1 christos sysconfdir=$ac_optarg ;; 1162 1.1 christos 1163 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t) 1164 1.1 christos ac_prev=target_alias ;; 1165 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1166 1.1 christos target_alias=$ac_optarg ;; 1167 1.1 christos 1168 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb) 1169 1.1 christos verbose=yes ;; 1170 1.1 christos 1171 1.1 christos -version | --version | --versio | --versi | --vers | -V) 1172 1.1 christos ac_init_version=: ;; 1173 1.1 christos 1174 1.1 christos -with-* | --with-*) 1175 1.1 christos ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 1.1 christos # Reject names that are not valid shell variable names. 1177 1.1 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 1.4 christos as_fn_error $? "invalid package name: '$ac_useropt'" 1179 1.1 christos ac_useropt_orig=$ac_useropt 1180 1.4 christos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 1.1 christos case $ac_user_opts in 1182 1.1 christos *" 1183 1.1 christos "with_$ac_useropt" 1184 1.1 christos "*) ;; 1185 1.1 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1186 1.1 christos ac_unrecognized_sep=', ';; 1187 1.1 christos esac 1188 1.1 christos eval with_$ac_useropt=\$ac_optarg ;; 1189 1.1 christos 1190 1.1 christos -without-* | --without-*) 1191 1.1 christos ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1192 1.1 christos # Reject names that are not valid shell variable names. 1193 1.1 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 1.4 christos as_fn_error $? "invalid package name: '$ac_useropt'" 1195 1.1 christos ac_useropt_orig=$ac_useropt 1196 1.4 christos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 1.1 christos case $ac_user_opts in 1198 1.1 christos *" 1199 1.1 christos "with_$ac_useropt" 1200 1.1 christos "*) ;; 1201 1.1 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1202 1.1 christos ac_unrecognized_sep=', ';; 1203 1.1 christos esac 1204 1.1 christos eval with_$ac_useropt=no ;; 1205 1.1 christos 1206 1.1 christos --x) 1207 1.1 christos # Obsolete; use --with-x. 1208 1.1 christos with_x=yes ;; 1209 1.1 christos 1210 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1211 1.1 christos | --x-incl | --x-inc | --x-in | --x-i) 1212 1.1 christos ac_prev=x_includes ;; 1213 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1214 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1215 1.1 christos x_includes=$ac_optarg ;; 1216 1.1 christos 1217 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1218 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1219 1.1 christos ac_prev=x_libraries ;; 1220 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1221 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1222 1.1 christos x_libraries=$ac_optarg ;; 1223 1.1 christos 1224 1.4 christos -*) as_fn_error $? "unrecognized option: '$ac_option' 1225 1.4 christos Try '$0 --help' for more information" 1226 1.1 christos ;; 1227 1.1 christos 1228 1.1 christos *=*) 1229 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1230 1.1 christos # Reject names that are not valid shell variable names. 1231 1.1 christos case $ac_envvar in #( 1232 1.1 christos '' | [0-9]* | *[!_$as_cr_alnum]* ) 1233 1.4 christos as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1234 1.1 christos esac 1235 1.1 christos eval $ac_envvar=\$ac_optarg 1236 1.1 christos export $ac_envvar ;; 1237 1.1 christos 1238 1.1 christos *) 1239 1.1 christos # FIXME: should be removed in autoconf 3.0. 1240 1.4 christos printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1241 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1242 1.4 christos printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1243 1.1 christos : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1244 1.1 christos ;; 1245 1.1 christos 1246 1.1 christos esac 1247 1.1 christos done 1248 1.1 christos 1249 1.1 christos if test -n "$ac_prev"; then 1250 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1251 1.1 christos as_fn_error $? "missing argument to $ac_option" 1252 1.1 christos fi 1253 1.1 christos 1254 1.1 christos if test -n "$ac_unrecognized_opts"; then 1255 1.1 christos case $enable_option_checking in 1256 1.1 christos no) ;; 1257 1.1 christos fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1258 1.4 christos *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1259 1.1 christos esac 1260 1.1 christos fi 1261 1.1 christos 1262 1.1 christos # Check all directory arguments for consistency. 1263 1.1 christos for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1264 1.1 christos datadir sysconfdir sharedstatedir localstatedir includedir \ 1265 1.1 christos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1266 1.2 christos libdir localedir mandir runstatedir 1267 1.1 christos do 1268 1.1 christos eval ac_val=\$$ac_var 1269 1.1 christos # Remove trailing slashes. 1270 1.1 christos case $ac_val in 1271 1.1 christos */ ) 1272 1.1 christos ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1273 1.1 christos eval $ac_var=\$ac_val;; 1274 1.1 christos esac 1275 1.1 christos # Be sure to have absolute directory names. 1276 1.1 christos case $ac_val in 1277 1.1 christos [\\/$]* | ?:[\\/]* ) continue;; 1278 1.1 christos NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1279 1.1 christos esac 1280 1.1 christos as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1281 1.1 christos done 1282 1.1 christos 1283 1.4 christos # There might be people who depend on the old broken behavior: '$host' 1284 1.1 christos # used to hold the argument of --host etc. 1285 1.1 christos # FIXME: To remove some day. 1286 1.1 christos build=$build_alias 1287 1.1 christos host=$host_alias 1288 1.1 christos target=$target_alias 1289 1.1 christos 1290 1.1 christos # FIXME: To remove some day. 1291 1.1 christos if test "x$host_alias" != x; then 1292 1.1 christos if test "x$build_alias" = x; then 1293 1.1 christos cross_compiling=maybe 1294 1.1 christos elif test "x$build_alias" != "x$host_alias"; then 1295 1.1 christos cross_compiling=yes 1296 1.1 christos fi 1297 1.1 christos fi 1298 1.1 christos 1299 1.1 christos ac_tool_prefix= 1300 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias- 1301 1.1 christos 1302 1.1 christos test "$silent" = yes && exec 6>/dev/null 1303 1.1 christos 1304 1.1 christos 1305 1.1 christos ac_pwd=`pwd` && test -n "$ac_pwd" && 1306 1.1 christos ac_ls_di=`ls -di .` && 1307 1.1 christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1308 1.1 christos as_fn_error $? "working directory cannot be determined" 1309 1.1 christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1310 1.1 christos as_fn_error $? "pwd does not report name of working directory" 1311 1.1 christos 1312 1.1 christos 1313 1.1 christos # Find the source files, if location was not specified. 1314 1.1 christos if test -z "$srcdir"; then 1315 1.1 christos ac_srcdir_defaulted=yes 1316 1.1 christos # Try the directory containing this script, then the parent directory. 1317 1.1 christos ac_confdir=`$as_dirname -- "$as_myself" || 1318 1.1 christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1319 1.1 christos X"$as_myself" : 'X\(//\)[^/]' \| \ 1320 1.1 christos X"$as_myself" : 'X\(//\)$' \| \ 1321 1.1 christos X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1322 1.4 christos printf "%s\n" X"$as_myself" | 1323 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1324 1.1 christos s//\1/ 1325 1.1 christos q 1326 1.1 christos } 1327 1.1 christos /^X\(\/\/\)[^/].*/{ 1328 1.1 christos s//\1/ 1329 1.1 christos q 1330 1.1 christos } 1331 1.1 christos /^X\(\/\/\)$/{ 1332 1.1 christos s//\1/ 1333 1.1 christos q 1334 1.1 christos } 1335 1.1 christos /^X\(\/\).*/{ 1336 1.1 christos s//\1/ 1337 1.1 christos q 1338 1.1 christos } 1339 1.1 christos s/.*/./; q'` 1340 1.1 christos srcdir=$ac_confdir 1341 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then 1342 1.1 christos srcdir=.. 1343 1.1 christos fi 1344 1.1 christos else 1345 1.1 christos ac_srcdir_defaulted=no 1346 1.1 christos fi 1347 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then 1348 1.1 christos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1349 1.1 christos as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1350 1.1 christos fi 1351 1.4 christos ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1352 1.1 christos ac_abs_confdir=`( 1353 1.1 christos cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1354 1.1 christos pwd)` 1355 1.1 christos # When building in place, set srcdir=. 1356 1.1 christos if test "$ac_abs_confdir" = "$ac_pwd"; then 1357 1.1 christos srcdir=. 1358 1.1 christos fi 1359 1.1 christos # Remove unnecessary trailing slashes from srcdir. 1360 1.1 christos # Double slashes in file names in object file debugging info 1361 1.1 christos # mess up M-x gdb in Emacs. 1362 1.1 christos case $srcdir in 1363 1.1 christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1364 1.1 christos esac 1365 1.1 christos for ac_var in $ac_precious_vars; do 1366 1.1 christos eval ac_env_${ac_var}_set=\${${ac_var}+set} 1367 1.1 christos eval ac_env_${ac_var}_value=\$${ac_var} 1368 1.1 christos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1369 1.1 christos eval ac_cv_env_${ac_var}_value=\$${ac_var} 1370 1.1 christos done 1371 1.1 christos 1372 1.1 christos # 1373 1.1 christos # Report the --help message. 1374 1.1 christos # 1375 1.1 christos if test "$ac_init_help" = "long"; then 1376 1.1 christos # Omit some internal or obsolete options to make the list less imposing. 1377 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh. 1378 1.1 christos cat <<_ACEOF 1379 1.4 christos 'configure' configures NSD 4.14.0 to adapt to many kinds of systems. 1380 1.1 christos 1381 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]... 1382 1.1 christos 1383 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as 1384 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables. 1385 1.1 christos 1386 1.1 christos Defaults for the options are specified in brackets. 1387 1.1 christos 1388 1.1 christos Configuration: 1389 1.1 christos -h, --help display this help and exit 1390 1.1 christos --help=short display options specific to this package 1391 1.1 christos --help=recursive display the short help of all the included packages 1392 1.1 christos -V, --version display version information and exit 1393 1.4 christos -q, --quiet, --silent do not print 'checking ...' messages 1394 1.1 christos --cache-file=FILE cache test results in FILE [disabled] 1395 1.4 christos -C, --config-cache alias for '--cache-file=config.cache' 1396 1.1 christos -n, --no-create do not create output files 1397 1.4 christos --srcdir=DIR find the sources in DIR [configure dir or '..'] 1398 1.1 christos 1399 1.1 christos Installation directories: 1400 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX 1401 1.1 christos [$ac_default_prefix] 1402 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1403 1.1 christos [PREFIX] 1404 1.1 christos 1405 1.4 christos By default, 'make install' will install all the files in 1406 1.4 christos '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1407 1.4 christos an installation prefix other than '$ac_default_prefix' using '--prefix', 1408 1.4 christos for instance '--prefix=\$HOME'. 1409 1.1 christos 1410 1.1 christos For better control, use the options below. 1411 1.1 christos 1412 1.1 christos Fine tuning of the installation directories: 1413 1.1 christos --bindir=DIR user executables [EPREFIX/bin] 1414 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin] 1415 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec] 1416 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1417 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1418 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1419 1.2 christos --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1420 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib] 1421 1.1 christos --includedir=DIR C header files [PREFIX/include] 1422 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include] 1423 1.1 christos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1424 1.1 christos --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1425 1.1 christos --infodir=DIR info documentation [DATAROOTDIR/info] 1426 1.1 christos --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1427 1.1 christos --mandir=DIR man documentation [DATAROOTDIR/man] 1428 1.1 christos --docdir=DIR documentation root [DATAROOTDIR/doc/nsd] 1429 1.1 christos --htmldir=DIR html documentation [DOCDIR] 1430 1.1 christos --dvidir=DIR dvi documentation [DOCDIR] 1431 1.1 christos --pdfdir=DIR pdf documentation [DOCDIR] 1432 1.1 christos --psdir=DIR ps documentation [DOCDIR] 1433 1.1 christos _ACEOF 1434 1.1 christos 1435 1.1 christos cat <<\_ACEOF 1436 1.4 christos 1437 1.4 christos System types: 1438 1.4 christos --build=BUILD configure for building on BUILD [guessed] 1439 1.4 christos --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440 1.1 christos _ACEOF 1441 1.1 christos fi 1442 1.1 christos 1443 1.1 christos if test -n "$ac_init_help"; then 1444 1.1 christos case $ac_init_help in 1445 1.4 christos short | recursive ) echo "Configuration of NSD 4.14.0:";; 1446 1.1 christos esac 1447 1.1 christos cat <<\_ACEOF 1448 1.1 christos 1449 1.1 christos Optional Features: 1450 1.1 christos --disable-option-checking ignore unrecognized --enable/--with options 1451 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 1.1 christos --disable-flto Disable link-time optimization (gcc specific option) 1454 1.1 christos --enable-pie Enable Position-Independent Executable (eg. to fully 1455 1.1 christos benefit from ASLR, small performance penalty) 1456 1.1 christos --enable-relro-now Enable full relocation binding at load-time (RELRO 1457 1.1 christos NOW, to protect GOT and .dtor areas) 1458 1.1 christos --disable-largefile omit support for large files 1459 1.1 christos --enable-recvmmsg Enable recvmmsg and sendmmsg compilation, faster but 1460 1.1 christos some kernel versions may have implementation 1461 1.1 christos problems for IPv6 1462 1.3 christos --enable-root-server Configure NSD as a root server (obsolete) 1463 1.1 christos --disable-ipv6 Disables IPv6 support 1464 1.4 christos --disable-bind8-stats Disable BIND8 like NSTATS & XSTATS and statistics in 1465 1.1 christos nsd-control 1466 1.4 christos --disable-zone-stats Disable per-zone statistics gathering (if enabled, 1467 1.4 christos it needs bind8-stats) 1468 1.1 christos --enable-checking Enable internal runtime checks 1469 1.4 christos --enable-log-role Shows the role of processes in the logfile (enable 1470 1.4 christos this only for debugging purposes) 1471 1.2 christos --enable-memclean Cleanup memory (at exit) for eg. valgrind, memcheck 1472 1.4 christos --disable-ratelimit Disable rate limiting 1473 1.4 christos --disable-ratelimit-default-is-off 1474 1.4 christos Disable this to set default of ratelimit to on (this 1475 1.4 christos controls the default, ratelimits can be enabled and 1476 1.4 christos disabled in nsd.conf) 1477 1.1 christos --disable-nsec3 Disable NSEC3 support 1478 1.1 christos --disable-minimal-responses 1479 1.1 christos Disable response minimization. More truncation. 1480 1.1 christos --enable-mmap Use mmap instead of malloc. Experimental. 1481 1.1 christos --disable-radix-tree You can disable the radix tree and use the red-black 1482 1.1 christos tree for the main lookups, the red-black tree uses 1483 1.1 christos less memory, but uses some more CPU. 1484 1.2 christos --enable-packed Enable packed structure alignment, uses less memory, 1485 1.2 christos but unaligned reads. 1486 1.4 christos --enable-xdp Enable XDP support. 1487 1.4 christos --disable-dnstap Disable dnstap support (requires fstrm, protobuf-c) 1488 1.2 christos --enable-systemd compile with systemd support 1489 1.2 christos --enable-tcp-fastopen Enable TCP Fast Open 1490 1.4 christos --disable-westmere Disable Westmere (SSE4.2) parser kernel 1491 1.4 christos --disable-haswell Disable Haswell (AVX2) parser kernel 1492 1.4 christos --enable-year2038 support timestamps after 2038 1493 1.1 christos 1494 1.1 christos Optional Packages: 1495 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 1.1 christos --with-configdir=dir NSD configuration directory 1498 1.1 christos --with-nsd_conf_file=path 1499 1.1 christos Pathname to the NSD configuration file 1500 1.1 christos --with-logfile=path Pathname to the default log file 1501 1.4 christos --with-dbdir=dir Base directory for the xfrd zone timer state file, 1502 1.4 christos the zone list file and the cookie secrets file 1503 1.1 christos --with-pidfile=path Pathname to the NSD pidfile 1504 1.3 christos --with-dbfile=path Pathname to the NSD database (obsolete) 1505 1.1 christos --with-zonesdir=dir NSD default location for zone files 1506 1.1 christos --with-xfrdfile=path Pathname to the NSD xfrd zone timer state file 1507 1.1 christos --with-zonelistfile=path 1508 1.1 christos Pathname to the NSD zone list file 1509 1.4 christos --with-cookiesecretsfile=path 1510 1.4 christos Pathname to the NSD cookie secrets file 1511 1.1 christos --with-xfrdir=path Pathname to where the NSD transfer dir is created 1512 1.4 christos --with-sharedfilesdir=dir 1513 1.4 christos NSD shared files directory 1514 1.1 christos --with-chroot=dir NSD default chroot directory 1515 1.1 christos --with-user=username User name or ID to answer the queries with 1516 1.1 christos --with-libevent=pathname 1517 1.1 christos use libevent (will check /usr/local /opt/local 1518 1.2 christos /usr/lib /usr/sfw /usr 1519 1.2 christos /usr/local/opt/libevent or you can specify an 1520 1.2 christos explicit path), useful when the zone count is high. 1521 1.1 christos --with-facility=name Syslog default facility (LOG_DAEMON) 1522 1.1 christos --with-tcp-timeout=number 1523 1.1 christos Limit the default tcp timeout 1524 1.1 christos --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1525 1.2 christos /usr/ssl /usr/sfw /usr/local /usr 1526 1.2 christos /usr/local/opt/openssl) 1527 1.2 christos --with-dnstap-socket-path=pathname 1528 1.2 christos set default dnstap socket path 1529 1.2 christos --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1530 1.2 christos --with-libfstrm=path Path where libfstrm is installed, for dnstap 1531 1.1 christos 1532 1.1 christos Some influential environment variables: 1533 1.2 christos SED location of the sed program 1534 1.2 christos AWK location of the awk program 1535 1.2 christos GREP location of the grep program 1536 1.2 christos EGREP location of the egrep program 1537 1.2 christos LEX location of the lex program with GNU extensions (flex) 1538 1.2 christos YACC location of the yacc program with GNU extensions (bison) 1539 1.1 christos CC C compiler command 1540 1.1 christos CFLAGS C compiler flags 1541 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1542 1.1 christos nonstandard directory <lib dir> 1543 1.1 christos LIBS libraries to pass to the linker, e.g. -l<library> 1544 1.1 christos CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1545 1.1 christos you have headers in a nonstandard directory <include dir> 1546 1.1 christos YFLAGS The list of arguments that will be passed by default to $YACC. 1547 1.1 christos This script will default YFLAGS to the empty string to avoid a 1548 1.4 christos default value of '-d' given by some make applications. 1549 1.4 christos CPP C preprocessor 1550 1.4 christos CLANG location of clang compiler (only needed for xdp) 1551 1.4 christos LLC location of LLVM static compiler (only needed for xdp) 1552 1.4 christos BPF_CFLAGS The list of arguments passed to the BPF compiler 1553 1.2 christos PKG_CONFIG path to pkg-config utility 1554 1.2 christos PKG_CONFIG_PATH 1555 1.2 christos directories to add to pkg-config's search path 1556 1.2 christos PKG_CONFIG_LIBDIR 1557 1.2 christos path overriding pkg-config's built-in search path 1558 1.2 christos SYSTEMD_CFLAGS 1559 1.2 christos C compiler flags for SYSTEMD, overriding pkg-config 1560 1.2 christos SYSTEMD_LIBS 1561 1.2 christos linker flags for SYSTEMD, overriding pkg-config 1562 1.2 christos SYSTEMD_DAEMON_CFLAGS 1563 1.2 christos C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1564 1.2 christos SYSTEMD_DAEMON_LIBS 1565 1.2 christos linker flags for SYSTEMD_DAEMON, overriding pkg-config 1566 1.1 christos 1567 1.4 christos Use these variables to override the choices made by 'configure' or to help 1568 1.1 christos it to find libraries and programs with nonstandard names/locations. 1569 1.1 christos 1570 1.3 christos Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>. 1571 1.1 christos _ACEOF 1572 1.1 christos ac_status=$? 1573 1.1 christos fi 1574 1.1 christos 1575 1.1 christos if test "$ac_init_help" = "recursive"; then 1576 1.1 christos # If there are subdirs, report their specific --help. 1577 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1578 1.1 christos test -d "$ac_dir" || 1579 1.1 christos { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1580 1.1 christos continue 1581 1.1 christos ac_builddir=. 1582 1.1 christos 1583 1.1 christos case "$ac_dir" in 1584 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585 1.1 christos *) 1586 1.4 christos ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1587 1.1 christos # A ".." for each directory in $ac_dir_suffix. 1588 1.4 christos ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1589 1.1 christos case $ac_top_builddir_sub in 1590 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1591 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1592 1.1 christos esac ;; 1593 1.1 christos esac 1594 1.1 christos ac_abs_top_builddir=$ac_pwd 1595 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix 1596 1.1 christos # for backward compatibility: 1597 1.1 christos ac_top_builddir=$ac_top_build_prefix 1598 1.1 christos 1599 1.1 christos case $srcdir in 1600 1.1 christos .) # We are building in place. 1601 1.1 christos ac_srcdir=. 1602 1.1 christos ac_top_srcdir=$ac_top_builddir_sub 1603 1.1 christos ac_abs_top_srcdir=$ac_pwd ;; 1604 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name. 1605 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 1606 1.1 christos ac_top_srcdir=$srcdir 1607 1.1 christos ac_abs_top_srcdir=$srcdir ;; 1608 1.1 christos *) # Relative name. 1609 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1610 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir 1611 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1612 1.1 christos esac 1613 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1614 1.1 christos 1615 1.1 christos cd "$ac_dir" || { ac_status=$?; continue; } 1616 1.4 christos # Check for configure.gnu first; this name is used for a wrapper for 1617 1.4 christos # Metaconfig's "Configure" on case-insensitive file systems. 1618 1.1 christos if test -f "$ac_srcdir/configure.gnu"; then 1619 1.1 christos echo && 1620 1.1 christos $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1621 1.1 christos elif test -f "$ac_srcdir/configure"; then 1622 1.1 christos echo && 1623 1.1 christos $SHELL "$ac_srcdir/configure" --help=recursive 1624 1.1 christos else 1625 1.4 christos printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1626 1.1 christos fi || ac_status=$? 1627 1.1 christos cd "$ac_pwd" || { ac_status=$?; break; } 1628 1.1 christos done 1629 1.1 christos fi 1630 1.1 christos 1631 1.1 christos test -n "$ac_init_help" && exit $ac_status 1632 1.1 christos if $ac_init_version; then 1633 1.1 christos cat <<\_ACEOF 1634 1.4 christos NSD configure 4.14.0 1635 1.4 christos generated by GNU Autoconf 2.72 1636 1.1 christos 1637 1.4 christos Copyright (C) 2023 Free Software Foundation, Inc. 1638 1.1 christos This configure script is free software; the Free Software Foundation 1639 1.1 christos gives unlimited permission to copy, distribute and modify it. 1640 1.1 christos _ACEOF 1641 1.1 christos exit 1642 1.1 christos fi 1643 1.1 christos 1644 1.1 christos ## ------------------------ ## 1645 1.1 christos ## Autoconf initialization. ## 1646 1.1 christos ## ------------------------ ## 1647 1.1 christos 1648 1.1 christos # ac_fn_c_try_compile LINENO 1649 1.1 christos # -------------------------- 1650 1.1 christos # Try to compile conftest.$ac_ext, and return whether this succeeded. 1651 1.1 christos ac_fn_c_try_compile () 1652 1.1 christos { 1653 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 1.4 christos rm -f conftest.$ac_objext conftest.beam 1655 1.1 christos if { { ac_try="$ac_compile" 1656 1.1 christos case "(($ac_try" in 1657 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 1.1 christos *) ac_try_echo=$ac_try;; 1659 1.1 christos esac 1660 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 1662 1.1 christos (eval "$ac_compile") 2>conftest.err 1663 1.1 christos ac_status=$? 1664 1.1 christos if test -s conftest.err; then 1665 1.1 christos grep -v '^ *+' conftest.err >conftest.er1 1666 1.1 christos cat conftest.er1 >&5 1667 1.1 christos mv -f conftest.er1 conftest.err 1668 1.1 christos fi 1669 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1670 1.1 christos test $ac_status = 0; } && { 1671 1.1 christos test -z "$ac_c_werror_flag" || 1672 1.1 christos test ! -s conftest.err 1673 1.4 christos } && test -s conftest.$ac_objext 1674 1.4 christos then : 1675 1.1 christos ac_retval=0 1676 1.4 christos else case e in #( 1677 1.4 christos e) printf "%s\n" "$as_me: failed program was:" >&5 1678 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 1679 1.1 christos 1680 1.4 christos ac_retval=1 ;; 1681 1.4 christos esac 1682 1.1 christos fi 1683 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 1.1 christos as_fn_set_status $ac_retval 1685 1.1 christos 1686 1.1 christos } # ac_fn_c_try_compile 1687 1.1 christos 1688 1.1 christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1689 1.1 christos # ------------------------------------------------------- 1690 1.1 christos # Tests whether HEADER exists and can be compiled using the include files in 1691 1.1 christos # INCLUDES, setting the cache variable VAR accordingly. 1692 1.1 christos ac_fn_c_check_header_compile () 1693 1.1 christos { 1694 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1696 1.4 christos printf %s "checking for $2... " >&6; } 1697 1.4 christos if eval test \${$3+y} 1698 1.4 christos then : 1699 1.4 christos printf %s "(cached) " >&6 1700 1.4 christos else case e in #( 1701 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1702 1.1 christos /* end confdefs.h. */ 1703 1.1 christos $4 1704 1.1 christos #include <$2> 1705 1.1 christos _ACEOF 1706 1.4 christos if ac_fn_c_try_compile "$LINENO" 1707 1.4 christos then : 1708 1.1 christos eval "$3=yes" 1709 1.4 christos else case e in #( 1710 1.4 christos e) eval "$3=no" ;; 1711 1.4 christos esac 1712 1.1 christos fi 1713 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1714 1.4 christos esac 1715 1.1 christos fi 1716 1.1 christos eval ac_res=\$$3 1717 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1718 1.4 christos printf "%s\n" "$ac_res" >&6; } 1719 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 1.1 christos 1721 1.1 christos } # ac_fn_c_check_header_compile 1722 1.1 christos 1723 1.1 christos # ac_fn_c_try_link LINENO 1724 1.1 christos # ----------------------- 1725 1.1 christos # Try to link conftest.$ac_ext, and return whether this succeeded. 1726 1.1 christos ac_fn_c_try_link () 1727 1.1 christos { 1728 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 1.4 christos rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1730 1.1 christos if { { ac_try="$ac_link" 1731 1.1 christos case "(($ac_try" in 1732 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 1.1 christos *) ac_try_echo=$ac_try;; 1734 1.1 christos esac 1735 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 1737 1.1 christos (eval "$ac_link") 2>conftest.err 1738 1.1 christos ac_status=$? 1739 1.1 christos if test -s conftest.err; then 1740 1.1 christos grep -v '^ *+' conftest.err >conftest.er1 1741 1.1 christos cat conftest.er1 >&5 1742 1.1 christos mv -f conftest.er1 conftest.err 1743 1.1 christos fi 1744 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1745 1.1 christos test $ac_status = 0; } && { 1746 1.1 christos test -z "$ac_c_werror_flag" || 1747 1.1 christos test ! -s conftest.err 1748 1.1 christos } && test -s conftest$ac_exeext && { 1749 1.1 christos test "$cross_compiling" = yes || 1750 1.1 christos test -x conftest$ac_exeext 1751 1.4 christos } 1752 1.4 christos then : 1753 1.1 christos ac_retval=0 1754 1.4 christos else case e in #( 1755 1.4 christos e) printf "%s\n" "$as_me: failed program was:" >&5 1756 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 1757 1.1 christos 1758 1.4 christos ac_retval=1 ;; 1759 1.4 christos esac 1760 1.1 christos fi 1761 1.1 christos # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1762 1.1 christos # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1763 1.1 christos # interfere with the next link command; also delete a directory that is 1764 1.1 christos # left behind by Apple's compiler. We do this before executing the actions. 1765 1.1 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1766 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 1.1 christos as_fn_set_status $ac_retval 1768 1.1 christos 1769 1.1 christos } # ac_fn_c_try_link 1770 1.1 christos 1771 1.1 christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1772 1.1 christos # ------------------------------------------- 1773 1.1 christos # Tests whether TYPE exists after having included INCLUDES, setting cache 1774 1.1 christos # variable VAR accordingly. 1775 1.1 christos ac_fn_c_check_type () 1776 1.1 christos { 1777 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1779 1.4 christos printf %s "checking for $2... " >&6; } 1780 1.4 christos if eval test \${$3+y} 1781 1.4 christos then : 1782 1.4 christos printf %s "(cached) " >&6 1783 1.4 christos else case e in #( 1784 1.4 christos e) eval "$3=no" 1785 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1786 1.1 christos /* end confdefs.h. */ 1787 1.1 christos $4 1788 1.1 christos int 1789 1.4 christos main (void) 1790 1.1 christos { 1791 1.1 christos if (sizeof ($2)) 1792 1.1 christos return 0; 1793 1.1 christos ; 1794 1.1 christos return 0; 1795 1.1 christos } 1796 1.1 christos _ACEOF 1797 1.4 christos if ac_fn_c_try_compile "$LINENO" 1798 1.4 christos then : 1799 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800 1.1 christos /* end confdefs.h. */ 1801 1.1 christos $4 1802 1.1 christos int 1803 1.4 christos main (void) 1804 1.1 christos { 1805 1.1 christos if (sizeof (($2))) 1806 1.1 christos return 0; 1807 1.1 christos ; 1808 1.1 christos return 0; 1809 1.1 christos } 1810 1.1 christos _ACEOF 1811 1.4 christos if ac_fn_c_try_compile "$LINENO" 1812 1.4 christos then : 1813 1.1 christos 1814 1.4 christos else case e in #( 1815 1.4 christos e) eval "$3=yes" ;; 1816 1.4 christos esac 1817 1.1 christos fi 1818 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1819 1.1 christos fi 1820 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1821 1.4 christos esac 1822 1.1 christos fi 1823 1.1 christos eval ac_res=\$$3 1824 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825 1.4 christos printf "%s\n" "$ac_res" >&6; } 1826 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 1.1 christos 1828 1.1 christos } # ac_fn_c_check_type 1829 1.1 christos 1830 1.4 christos # ac_fn_c_try_run LINENO 1831 1.4 christos # ---------------------- 1832 1.4 christos # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1833 1.4 christos # executables *can* be run. 1834 1.4 christos ac_fn_c_try_run () 1835 1.4 christos { 1836 1.4 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 1.4 christos if { { ac_try="$ac_link" 1838 1.4 christos case "(($ac_try" in 1839 1.4 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1840 1.4 christos *) ac_try_echo=$ac_try;; 1841 1.4 christos esac 1842 1.4 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1843 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 1844 1.4 christos (eval "$ac_link") 2>&5 1845 1.4 christos ac_status=$? 1846 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1847 1.4 christos test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1848 1.4 christos { { case "(($ac_try" in 1849 1.4 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1850 1.4 christos *) ac_try_echo=$ac_try;; 1851 1.4 christos esac 1852 1.4 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1853 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 1854 1.4 christos (eval "$ac_try") 2>&5 1855 1.4 christos ac_status=$? 1856 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1857 1.4 christos test $ac_status = 0; }; } 1858 1.4 christos then : 1859 1.4 christos ac_retval=0 1860 1.4 christos else case e in #( 1861 1.4 christos e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1862 1.4 christos printf "%s\n" "$as_me: failed program was:" >&5 1863 1.4 christos sed 's/^/| /' conftest.$ac_ext >&5 1864 1.4 christos 1865 1.4 christos ac_retval=$ac_status ;; 1866 1.4 christos esac 1867 1.4 christos fi 1868 1.4 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1869 1.4 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1870 1.4 christos as_fn_set_status $ac_retval 1871 1.4 christos 1872 1.4 christos } # ac_fn_c_try_run 1873 1.4 christos 1874 1.4 christos # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1875 1.4 christos # ------------------------------------------------------------------ 1876 1.1 christos # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1877 1.4 christos # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1878 1.4 christos ac_fn_check_decl () 1879 1.1 christos { 1880 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 1.1 christos as_decl_name=`echo $2|sed 's/ *(.*//'` 1882 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1883 1.4 christos printf %s "checking whether $as_decl_name is declared... " >&6; } 1884 1.4 christos if eval test \${$3+y} 1885 1.4 christos then : 1886 1.4 christos printf %s "(cached) " >&6 1887 1.4 christos else case e in #( 1888 1.4 christos e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1889 1.4 christos eval ac_save_FLAGS=\$$6 1890 1.4 christos as_fn_append $6 " $5" 1891 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892 1.1 christos /* end confdefs.h. */ 1893 1.1 christos $4 1894 1.1 christos int 1895 1.4 christos main (void) 1896 1.1 christos { 1897 1.1 christos #ifndef $as_decl_name 1898 1.1 christos #ifdef __cplusplus 1899 1.1 christos (void) $as_decl_use; 1900 1.1 christos #else 1901 1.1 christos (void) $as_decl_name; 1902 1.1 christos #endif 1903 1.1 christos #endif 1904 1.1 christos 1905 1.1 christos ; 1906 1.1 christos return 0; 1907 1.1 christos } 1908 1.1 christos _ACEOF 1909 1.4 christos if ac_fn_c_try_compile "$LINENO" 1910 1.4 christos then : 1911 1.1 christos eval "$3=yes" 1912 1.4 christos else case e in #( 1913 1.4 christos e) eval "$3=no" ;; 1914 1.4 christos esac 1915 1.1 christos fi 1916 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1917 1.4 christos eval $6=\$ac_save_FLAGS 1918 1.4 christos ;; 1919 1.4 christos esac 1920 1.1 christos fi 1921 1.1 christos eval ac_res=\$$3 1922 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923 1.4 christos printf "%s\n" "$ac_res" >&6; } 1924 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1.1 christos 1926 1.4 christos } # ac_fn_check_decl 1927 1.1 christos 1928 1.1 christos # ac_fn_c_check_func LINENO FUNC VAR 1929 1.1 christos # ---------------------------------- 1930 1.1 christos # Tests whether FUNC exists, setting the cache variable VAR accordingly 1931 1.1 christos ac_fn_c_check_func () 1932 1.1 christos { 1933 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1935 1.4 christos printf %s "checking for $2... " >&6; } 1936 1.4 christos if eval test \${$3+y} 1937 1.4 christos then : 1938 1.4 christos printf %s "(cached) " >&6 1939 1.4 christos else case e in #( 1940 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941 1.1 christos /* end confdefs.h. */ 1942 1.1 christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1943 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1944 1.1 christos #define $2 innocuous_$2 1945 1.1 christos 1946 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 1947 1.4 christos which can conflict with char $2 (void); below. */ 1948 1.1 christos 1949 1.4 christos #include <limits.h> 1950 1.1 christos #undef $2 1951 1.1 christos 1952 1.1 christos /* Override any GCC internal prototype to avoid an error. 1953 1.1 christos Use char because int might match the return type of a GCC 1954 1.1 christos builtin and then its argument prototype would still apply. */ 1955 1.1 christos #ifdef __cplusplus 1956 1.1 christos extern "C" 1957 1.1 christos #endif 1958 1.4 christos char $2 (void); 1959 1.1 christos /* The GNU C library defines this for functions which it implements 1960 1.1 christos to always fail with ENOSYS. Some functions are actually named 1961 1.1 christos something starting with __ and the normal name is an alias. */ 1962 1.1 christos #if defined __stub_$2 || defined __stub___$2 1963 1.1 christos choke me 1964 1.1 christos #endif 1965 1.1 christos 1966 1.1 christos int 1967 1.4 christos main (void) 1968 1.1 christos { 1969 1.1 christos return $2 (); 1970 1.1 christos ; 1971 1.1 christos return 0; 1972 1.1 christos } 1973 1.1 christos _ACEOF 1974 1.4 christos if ac_fn_c_try_link "$LINENO" 1975 1.4 christos then : 1976 1.1 christos eval "$3=yes" 1977 1.4 christos else case e in #( 1978 1.4 christos e) eval "$3=no" ;; 1979 1.4 christos esac 1980 1.1 christos fi 1981 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1982 1.4 christos conftest$ac_exeext conftest.$ac_ext ;; 1983 1.4 christos esac 1984 1.1 christos fi 1985 1.1 christos eval ac_res=\$$3 1986 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1987 1.4 christos printf "%s\n" "$ac_res" >&6; } 1988 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 1.1 christos 1990 1.1 christos } # ac_fn_c_check_func 1991 1.1 christos 1992 1.4 christos # ac_fn_c_try_cpp LINENO 1993 1.4 christos # ---------------------- 1994 1.4 christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1995 1.4 christos ac_fn_c_try_cpp () 1996 1.4 christos { 1997 1.4 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 1.4 christos if { { ac_try="$ac_cpp conftest.$ac_ext" 1999 1.4 christos case "(($ac_try" in 2000 1.4 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2001 1.4 christos *) ac_try_echo=$ac_try;; 2002 1.4 christos esac 2003 1.4 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2004 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 2005 1.4 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2006 1.4 christos ac_status=$? 2007 1.4 christos if test -s conftest.err; then 2008 1.4 christos grep -v '^ *+' conftest.err >conftest.er1 2009 1.4 christos cat conftest.er1 >&5 2010 1.4 christos mv -f conftest.er1 conftest.err 2011 1.4 christos fi 2012 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2013 1.4 christos test $ac_status = 0; } > conftest.i && { 2014 1.4 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2015 1.4 christos test ! -s conftest.err 2016 1.4 christos } 2017 1.4 christos then : 2018 1.4 christos ac_retval=0 2019 1.4 christos else case e in #( 2020 1.4 christos e) printf "%s\n" "$as_me: failed program was:" >&5 2021 1.4 christos sed 's/^/| /' conftest.$ac_ext >&5 2022 1.4 christos 2023 1.4 christos ac_retval=1 ;; 2024 1.4 christos esac 2025 1.4 christos fi 2026 1.4 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 1.4 christos as_fn_set_status $ac_retval 2028 1.4 christos 2029 1.4 christos } # ac_fn_c_try_cpp 2030 1.4 christos 2031 1.1 christos # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2032 1.1 christos # ---------------------------------------------------- 2033 1.1 christos # Tries to find if the field MEMBER exists in type AGGR, after including 2034 1.1 christos # INCLUDES, setting cache variable VAR accordingly. 2035 1.1 christos ac_fn_c_check_member () 2036 1.1 christos { 2037 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2038 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2039 1.4 christos printf %s "checking for $2.$3... " >&6; } 2040 1.4 christos if eval test \${$4+y} 2041 1.4 christos then : 2042 1.4 christos printf %s "(cached) " >&6 2043 1.4 christos else case e in #( 2044 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2045 1.1 christos /* end confdefs.h. */ 2046 1.1 christos $5 2047 1.1 christos int 2048 1.4 christos main (void) 2049 1.1 christos { 2050 1.1 christos static $2 ac_aggr; 2051 1.1 christos if (ac_aggr.$3) 2052 1.1 christos return 0; 2053 1.1 christos ; 2054 1.1 christos return 0; 2055 1.1 christos } 2056 1.1 christos _ACEOF 2057 1.4 christos if ac_fn_c_try_compile "$LINENO" 2058 1.4 christos then : 2059 1.1 christos eval "$4=yes" 2060 1.4 christos else case e in #( 2061 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062 1.1 christos /* end confdefs.h. */ 2063 1.1 christos $5 2064 1.1 christos int 2065 1.4 christos main (void) 2066 1.1 christos { 2067 1.1 christos static $2 ac_aggr; 2068 1.1 christos if (sizeof ac_aggr.$3) 2069 1.1 christos return 0; 2070 1.1 christos ; 2071 1.1 christos return 0; 2072 1.1 christos } 2073 1.1 christos _ACEOF 2074 1.4 christos if ac_fn_c_try_compile "$LINENO" 2075 1.4 christos then : 2076 1.1 christos eval "$4=yes" 2077 1.4 christos else case e in #( 2078 1.4 christos e) eval "$4=no" ;; 2079 1.4 christos esac 2080 1.1 christos fi 2081 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2082 1.4 christos esac 2083 1.1 christos fi 2084 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2085 1.4 christos esac 2086 1.1 christos fi 2087 1.1 christos eval ac_res=\$$4 2088 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2089 1.4 christos printf "%s\n" "$ac_res" >&6; } 2090 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2091 1.1 christos 2092 1.1 christos } # ac_fn_c_check_member 2093 1.1 christos 2094 1.1 christos # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2095 1.1 christos # -------------------------------------------- 2096 1.1 christos # Tries to find the compile-time value of EXPR in a program that includes 2097 1.1 christos # INCLUDES, setting VAR accordingly. Returns whether the value could be 2098 1.1 christos # computed 2099 1.1 christos ac_fn_c_compute_int () 2100 1.1 christos { 2101 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2102 1.1 christos if test "$cross_compiling" = yes; then 2103 1.1 christos # Depending upon the size, compute the lo and hi bounds. 2104 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105 1.1 christos /* end confdefs.h. */ 2106 1.1 christos $4 2107 1.1 christos int 2108 1.4 christos main (void) 2109 1.1 christos { 2110 1.1 christos static int test_array [1 - 2 * !(($2) >= 0)]; 2111 1.1 christos test_array [0] = 0; 2112 1.1 christos return test_array [0]; 2113 1.1 christos 2114 1.1 christos ; 2115 1.1 christos return 0; 2116 1.1 christos } 2117 1.1 christos _ACEOF 2118 1.4 christos if ac_fn_c_try_compile "$LINENO" 2119 1.4 christos then : 2120 1.1 christos ac_lo=0 ac_mid=0 2121 1.1 christos while :; do 2122 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123 1.1 christos /* end confdefs.h. */ 2124 1.1 christos $4 2125 1.1 christos int 2126 1.4 christos main (void) 2127 1.1 christos { 2128 1.1 christos static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2129 1.1 christos test_array [0] = 0; 2130 1.1 christos return test_array [0]; 2131 1.1 christos 2132 1.1 christos ; 2133 1.1 christos return 0; 2134 1.1 christos } 2135 1.1 christos _ACEOF 2136 1.4 christos if ac_fn_c_try_compile "$LINENO" 2137 1.4 christos then : 2138 1.1 christos ac_hi=$ac_mid; break 2139 1.4 christos else case e in #( 2140 1.4 christos e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2141 1.1 christos if test $ac_lo -le $ac_mid; then 2142 1.1 christos ac_lo= ac_hi= 2143 1.1 christos break 2144 1.1 christos fi 2145 1.4 christos as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; 2146 1.4 christos esac 2147 1.1 christos fi 2148 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2149 1.1 christos done 2150 1.4 christos else case e in #( 2151 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152 1.1 christos /* end confdefs.h. */ 2153 1.1 christos $4 2154 1.1 christos int 2155 1.4 christos main (void) 2156 1.1 christos { 2157 1.1 christos static int test_array [1 - 2 * !(($2) < 0)]; 2158 1.1 christos test_array [0] = 0; 2159 1.1 christos return test_array [0]; 2160 1.1 christos 2161 1.1 christos ; 2162 1.1 christos return 0; 2163 1.1 christos } 2164 1.1 christos _ACEOF 2165 1.4 christos if ac_fn_c_try_compile "$LINENO" 2166 1.4 christos then : 2167 1.1 christos ac_hi=-1 ac_mid=-1 2168 1.1 christos while :; do 2169 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2170 1.1 christos /* end confdefs.h. */ 2171 1.1 christos $4 2172 1.1 christos int 2173 1.4 christos main (void) 2174 1.1 christos { 2175 1.1 christos static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2176 1.1 christos test_array [0] = 0; 2177 1.1 christos return test_array [0]; 2178 1.1 christos 2179 1.1 christos ; 2180 1.1 christos return 0; 2181 1.1 christos } 2182 1.1 christos _ACEOF 2183 1.4 christos if ac_fn_c_try_compile "$LINENO" 2184 1.4 christos then : 2185 1.1 christos ac_lo=$ac_mid; break 2186 1.4 christos else case e in #( 2187 1.4 christos e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2188 1.1 christos if test $ac_mid -le $ac_hi; then 2189 1.1 christos ac_lo= ac_hi= 2190 1.1 christos break 2191 1.1 christos fi 2192 1.4 christos as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; 2193 1.4 christos esac 2194 1.1 christos fi 2195 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2196 1.1 christos done 2197 1.4 christos else case e in #( 2198 1.4 christos e) ac_lo= ac_hi= ;; 2199 1.4 christos esac 2200 1.1 christos fi 2201 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2202 1.4 christos esac 2203 1.1 christos fi 2204 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2205 1.1 christos # Binary search between lo and hi bounds. 2206 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do 2207 1.1 christos as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2208 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2209 1.1 christos /* end confdefs.h. */ 2210 1.1 christos $4 2211 1.1 christos int 2212 1.4 christos main (void) 2213 1.1 christos { 2214 1.1 christos static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2215 1.1 christos test_array [0] = 0; 2216 1.1 christos return test_array [0]; 2217 1.1 christos 2218 1.1 christos ; 2219 1.1 christos return 0; 2220 1.1 christos } 2221 1.1 christos _ACEOF 2222 1.4 christos if ac_fn_c_try_compile "$LINENO" 2223 1.4 christos then : 2224 1.1 christos ac_hi=$ac_mid 2225 1.4 christos else case e in #( 2226 1.4 christos e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; 2227 1.4 christos esac 2228 1.1 christos fi 2229 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2230 1.1 christos done 2231 1.1 christos case $ac_lo in #(( 2232 1.1 christos ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2233 1.1 christos '') ac_retval=1 ;; 2234 1.1 christos esac 2235 1.1 christos else 2236 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2237 1.1 christos /* end confdefs.h. */ 2238 1.1 christos $4 2239 1.4 christos static long int longval (void) { return $2; } 2240 1.4 christos static unsigned long int ulongval (void) { return $2; } 2241 1.1 christos #include <stdio.h> 2242 1.1 christos #include <stdlib.h> 2243 1.1 christos int 2244 1.4 christos main (void) 2245 1.1 christos { 2246 1.1 christos 2247 1.1 christos FILE *f = fopen ("conftest.val", "w"); 2248 1.1 christos if (! f) 2249 1.1 christos return 1; 2250 1.1 christos if (($2) < 0) 2251 1.1 christos { 2252 1.1 christos long int i = longval (); 2253 1.1 christos if (i != ($2)) 2254 1.1 christos return 1; 2255 1.1 christos fprintf (f, "%ld", i); 2256 1.1 christos } 2257 1.1 christos else 2258 1.1 christos { 2259 1.1 christos unsigned long int i = ulongval (); 2260 1.1 christos if (i != ($2)) 2261 1.1 christos return 1; 2262 1.1 christos fprintf (f, "%lu", i); 2263 1.1 christos } 2264 1.1 christos /* Do not output a trailing newline, as this causes \r\n confusion 2265 1.1 christos on some platforms. */ 2266 1.1 christos return ferror (f) || fclose (f) != 0; 2267 1.1 christos 2268 1.1 christos ; 2269 1.1 christos return 0; 2270 1.1 christos } 2271 1.1 christos _ACEOF 2272 1.4 christos if ac_fn_c_try_run "$LINENO" 2273 1.4 christos then : 2274 1.1 christos echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2275 1.4 christos else case e in #( 2276 1.4 christos e) ac_retval=1 ;; 2277 1.4 christos esac 2278 1.1 christos fi 2279 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2280 1.1 christos conftest.$ac_objext conftest.beam conftest.$ac_ext 2281 1.1 christos rm -f conftest.val 2282 1.1 christos 2283 1.1 christos fi 2284 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2285 1.1 christos as_fn_set_status $ac_retval 2286 1.1 christos 2287 1.1 christos } # ac_fn_c_compute_int 2288 1.4 christos ac_configure_args_raw= 2289 1.4 christos for ac_arg 2290 1.4 christos do 2291 1.4 christos case $ac_arg in 2292 1.4 christos *\'*) 2293 1.4 christos ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2294 1.4 christos esac 2295 1.4 christos as_fn_append ac_configure_args_raw " '$ac_arg'" 2296 1.4 christos done 2297 1.4 christos 2298 1.4 christos case $ac_configure_args_raw in 2299 1.4 christos *$as_nl*) 2300 1.4 christos ac_safe_unquote= ;; 2301 1.4 christos *) 2302 1.4 christos ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2303 1.4 christos ac_unsafe_a="$ac_unsafe_z#~" 2304 1.4 christos ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2305 1.4 christos ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2306 1.4 christos esac 2307 1.4 christos 2308 1.1 christos cat >config.log <<_ACEOF 2309 1.1 christos This file contains any messages produced by compilers while 2310 1.1 christos running configure, to aid debugging if configure makes a mistake. 2311 1.1 christos 2312 1.4 christos It was created by NSD $as_me 4.14.0, which was 2313 1.4 christos generated by GNU Autoconf 2.72. Invocation command line was 2314 1.1 christos 2315 1.4 christos $ $0$ac_configure_args_raw 2316 1.1 christos 2317 1.1 christos _ACEOF 2318 1.1 christos exec 5>>config.log 2319 1.1 christos { 2320 1.1 christos cat <<_ASUNAME 2321 1.1 christos ## --------- ## 2322 1.1 christos ## Platform. ## 2323 1.1 christos ## --------- ## 2324 1.1 christos 2325 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2326 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown` 2327 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown` 2328 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown` 2329 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown` 2330 1.1 christos 2331 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2332 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2333 1.1 christos 2334 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2335 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2336 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2337 1.1 christos /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2338 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2339 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2340 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2341 1.1 christos 2342 1.1 christos _ASUNAME 2343 1.1 christos 2344 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2345 1.1 christos for as_dir in $PATH 2346 1.1 christos do 2347 1.1 christos IFS=$as_save_IFS 2348 1.4 christos case $as_dir in #((( 2349 1.4 christos '') as_dir=./ ;; 2350 1.4 christos */) ;; 2351 1.4 christos *) as_dir=$as_dir/ ;; 2352 1.4 christos esac 2353 1.4 christos printf "%s\n" "PATH: $as_dir" 2354 1.1 christos done 2355 1.1 christos IFS=$as_save_IFS 2356 1.1 christos 2357 1.1 christos } >&5 2358 1.1 christos 2359 1.1 christos cat >&5 <<_ACEOF 2360 1.1 christos 2361 1.1 christos 2362 1.1 christos ## ----------- ## 2363 1.1 christos ## Core tests. ## 2364 1.1 christos ## ----------- ## 2365 1.1 christos 2366 1.1 christos _ACEOF 2367 1.1 christos 2368 1.1 christos 2369 1.1 christos # Keep a trace of the command line. 2370 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up. 2371 1.1 christos # Strip out --silent because we don't want to record it for future runs. 2372 1.1 christos # Also quote any args containing shell meta-characters. 2373 1.1 christos # Make two passes to allow for proper duplicate-argument suppression. 2374 1.1 christos ac_configure_args= 2375 1.1 christos ac_configure_args0= 2376 1.1 christos ac_configure_args1= 2377 1.1 christos ac_must_keep_next=false 2378 1.1 christos for ac_pass in 1 2 2379 1.1 christos do 2380 1.1 christos for ac_arg 2381 1.1 christos do 2382 1.1 christos case $ac_arg in 2383 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2384 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2385 1.1 christos | -silent | --silent | --silen | --sile | --sil) 2386 1.1 christos continue ;; 2387 1.1 christos *\'*) 2388 1.4 christos ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2389 1.1 christos esac 2390 1.1 christos case $ac_pass in 2391 1.1 christos 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2392 1.1 christos 2) 2393 1.1 christos as_fn_append ac_configure_args1 " '$ac_arg'" 2394 1.1 christos if test $ac_must_keep_next = true; then 2395 1.1 christos ac_must_keep_next=false # Got value, back to normal. 2396 1.1 christos else 2397 1.1 christos case $ac_arg in 2398 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \ 2399 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2400 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2401 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x) 2402 1.1 christos case "$ac_configure_args0 " in 2403 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2404 1.1 christos esac 2405 1.1 christos ;; 2406 1.1 christos -* ) ac_must_keep_next=true ;; 2407 1.1 christos esac 2408 1.1 christos fi 2409 1.1 christos as_fn_append ac_configure_args " '$ac_arg'" 2410 1.1 christos ;; 2411 1.1 christos esac 2412 1.1 christos done 2413 1.1 christos done 2414 1.1 christos { ac_configure_args0=; unset ac_configure_args0;} 2415 1.1 christos { ac_configure_args1=; unset ac_configure_args1;} 2416 1.1 christos 2417 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete 2418 1.1 christos # config.log. We remove comments because anyway the quotes in there 2419 1.1 christos # would cause problems or look ugly. 2420 1.1 christos # WARNING: Use '\'' to represent an apostrophe within the trap. 2421 1.1 christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2422 1.1 christos trap 'exit_status=$? 2423 1.4 christos # Sanitize IFS. 2424 1.4 christos IFS=" "" $as_nl" 2425 1.1 christos # Save into config.log some information that might help in debugging. 2426 1.1 christos { 2427 1.1 christos echo 2428 1.1 christos 2429 1.4 christos printf "%s\n" "## ---------------- ## 2430 1.1 christos ## Cache variables. ## 2431 1.1 christos ## ---------------- ##" 2432 1.1 christos echo 2433 1.1 christos # The following way of writing the cache mishandles newlines in values, 2434 1.1 christos ( 2435 1.1 christos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2436 1.1 christos eval ac_val=\$$ac_var 2437 1.1 christos case $ac_val in #( 2438 1.1 christos *${as_nl}*) 2439 1.1 christos case $ac_var in #( 2440 1.4 christos *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2441 1.4 christos printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2442 1.1 christos esac 2443 1.1 christos case $ac_var in #( 2444 1.1 christos _ | IFS | as_nl) ;; #( 2445 1.1 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2446 1.1 christos *) { eval $ac_var=; unset $ac_var;} ;; 2447 1.1 christos esac ;; 2448 1.1 christos esac 2449 1.1 christos done 2450 1.1 christos (set) 2>&1 | 2451 1.1 christos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2452 1.1 christos *${as_nl}ac_space=\ *) 2453 1.1 christos sed -n \ 2454 1.1 christos "s/'\''/'\''\\\\'\'''\''/g; 2455 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2456 1.1 christos ;; #( 2457 1.1 christos *) 2458 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2459 1.1 christos ;; 2460 1.1 christos esac | 2461 1.1 christos sort 2462 1.1 christos ) 2463 1.1 christos echo 2464 1.1 christos 2465 1.4 christos printf "%s\n" "## ----------------- ## 2466 1.1 christos ## Output variables. ## 2467 1.1 christos ## ----------------- ##" 2468 1.1 christos echo 2469 1.1 christos for ac_var in $ac_subst_vars 2470 1.1 christos do 2471 1.1 christos eval ac_val=\$$ac_var 2472 1.1 christos case $ac_val in 2473 1.4 christos *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2474 1.1 christos esac 2475 1.4 christos printf "%s\n" "$ac_var='\''$ac_val'\''" 2476 1.1 christos done | sort 2477 1.1 christos echo 2478 1.1 christos 2479 1.1 christos if test -n "$ac_subst_files"; then 2480 1.4 christos printf "%s\n" "## ------------------- ## 2481 1.1 christos ## File substitutions. ## 2482 1.1 christos ## ------------------- ##" 2483 1.1 christos echo 2484 1.1 christos for ac_var in $ac_subst_files 2485 1.1 christos do 2486 1.1 christos eval ac_val=\$$ac_var 2487 1.1 christos case $ac_val in 2488 1.4 christos *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2489 1.1 christos esac 2490 1.4 christos printf "%s\n" "$ac_var='\''$ac_val'\''" 2491 1.1 christos done | sort 2492 1.1 christos echo 2493 1.1 christos fi 2494 1.1 christos 2495 1.1 christos if test -s confdefs.h; then 2496 1.4 christos printf "%s\n" "## ----------- ## 2497 1.1 christos ## confdefs.h. ## 2498 1.1 christos ## ----------- ##" 2499 1.1 christos echo 2500 1.1 christos cat confdefs.h 2501 1.1 christos echo 2502 1.1 christos fi 2503 1.1 christos test "$ac_signal" != 0 && 2504 1.4 christos printf "%s\n" "$as_me: caught signal $ac_signal" 2505 1.4 christos printf "%s\n" "$as_me: exit $exit_status" 2506 1.1 christos } >&5 2507 1.1 christos rm -f core *.core core.conftest.* && 2508 1.1 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2509 1.1 christos exit $exit_status 2510 1.1 christos ' 0 2511 1.1 christos for ac_signal in 1 2 13 15; do 2512 1.1 christos trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2513 1.1 christos done 2514 1.1 christos ac_signal=0 2515 1.1 christos 2516 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed. 2517 1.1 christos rm -f -r conftest* confdefs.h 2518 1.1 christos 2519 1.4 christos printf "%s\n" "/* confdefs.h */" > confdefs.h 2520 1.1 christos 2521 1.1 christos # Predefined preprocessor variables. 2522 1.1 christos 2523 1.4 christos printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2524 1.1 christos 2525 1.4 christos printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2526 1.1 christos 2527 1.4 christos printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2528 1.1 christos 2529 1.4 christos printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2530 1.1 christos 2531 1.4 christos printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2532 1.1 christos 2533 1.4 christos printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2534 1.1 christos 2535 1.1 christos 2536 1.1 christos # Let the site file select an alternate cache file if it wants to. 2537 1.1 christos # Prefer an explicitly selected file to automatically selected ones. 2538 1.1 christos if test -n "$CONFIG_SITE"; then 2539 1.4 christos ac_site_files="$CONFIG_SITE" 2540 1.1 christos elif test "x$prefix" != xNONE; then 2541 1.4 christos ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2542 1.1 christos else 2543 1.4 christos ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2544 1.1 christos fi 2545 1.4 christos 2546 1.4 christos for ac_site_file in $ac_site_files 2547 1.1 christos do 2548 1.4 christos case $ac_site_file in #( 2549 1.4 christos */*) : 2550 1.4 christos ;; #( 2551 1.4 christos *) : 2552 1.4 christos ac_site_file=./$ac_site_file ;; 2553 1.4 christos esac 2554 1.4 christos if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2555 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2556 1.4 christos printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2557 1.1 christos sed 's/^/| /' "$ac_site_file" >&5 2558 1.1 christos . "$ac_site_file" \ 2559 1.4 christos || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2560 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2561 1.1 christos as_fn_error $? "failed to load site script $ac_site_file 2562 1.4 christos See 'config.log' for more details" "$LINENO" 5; } 2563 1.1 christos fi 2564 1.1 christos done 2565 1.1 christos 2566 1.1 christos if test -r "$cache_file"; then 2567 1.1 christos # Some versions of bash will fail to source /dev/null (special files 2568 1.1 christos # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2569 1.1 christos if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2570 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2571 1.4 christos printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2572 1.1 christos case $cache_file in 2573 1.1 christos [\\/]* | ?:[\\/]* ) . "$cache_file";; 2574 1.1 christos *) . "./$cache_file";; 2575 1.1 christos esac 2576 1.1 christos fi 2577 1.1 christos else 2578 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2579 1.4 christos printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2580 1.1 christos >$cache_file 2581 1.1 christos fi 2582 1.1 christos 2583 1.4 christos as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2584 1.4 christos # Test code for whether the C compiler supports C89 (global declarations) 2585 1.4 christos ac_c_conftest_c89_globals=' 2586 1.4 christos /* Does the compiler advertise C89 conformance? 2587 1.4 christos Do not test the value of __STDC__, because some compilers set it to 0 2588 1.4 christos while being otherwise adequately conformant. */ 2589 1.4 christos #if !defined __STDC__ 2590 1.4 christos # error "Compiler does not advertise C89 conformance" 2591 1.4 christos #endif 2592 1.1 christos 2593 1.4 christos #include <stddef.h> 2594 1.4 christos #include <stdarg.h> 2595 1.4 christos struct stat; 2596 1.4 christos /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2597 1.4 christos struct buf { int x; }; 2598 1.4 christos struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2599 1.4 christos static char *e (char **p, int i) 2600 1.4 christos { 2601 1.4 christos return p[i]; 2602 1.4 christos } 2603 1.4 christos static char *f (char * (*g) (char **, int), char **p, ...) 2604 1.4 christos { 2605 1.4 christos char *s; 2606 1.4 christos va_list v; 2607 1.4 christos va_start (v,p); 2608 1.4 christos s = g (p, va_arg (v,int)); 2609 1.4 christos va_end (v); 2610 1.4 christos return s; 2611 1.4 christos } 2612 1.1 christos 2613 1.4 christos /* C89 style stringification. */ 2614 1.4 christos #define noexpand_stringify(a) #a 2615 1.4 christos const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2616 1.4 christos 2617 1.4 christos /* C89 style token pasting. Exercises some of the corner cases that 2618 1.4 christos e.g. old MSVC gets wrong, but not very hard. */ 2619 1.4 christos #define noexpand_concat(a,b) a##b 2620 1.4 christos #define expand_concat(a,b) noexpand_concat(a,b) 2621 1.4 christos extern int vA; 2622 1.4 christos extern int vbee; 2623 1.4 christos #define aye A 2624 1.4 christos #define bee B 2625 1.4 christos int *pvA = &expand_concat(v,aye); 2626 1.4 christos int *pvbee = &noexpand_concat(v,bee); 2627 1.1 christos 2628 1.4 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2629 1.4 christos function prototypes and stuff, but not \xHH hex character constants. 2630 1.4 christos These do not provoke an error unfortunately, instead are silently treated 2631 1.4 christos as an "x". The following induces an error, until -std is added to get 2632 1.4 christos proper ANSI mode. Curiously \x00 != x always comes out true, for an 2633 1.4 christos array size at least. It is necessary to write \x00 == 0 to get something 2634 1.4 christos that is true only with -std. */ 2635 1.4 christos int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2636 1.1 christos 2637 1.4 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2638 1.4 christos inside strings and character constants. */ 2639 1.4 christos #define FOO(x) '\''x'\'' 2640 1.4 christos int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2641 1.1 christos 2642 1.4 christos int test (int i, double x); 2643 1.4 christos struct s1 {int (*f) (int a);}; 2644 1.4 christos struct s2 {int (*f) (double a);}; 2645 1.4 christos int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2646 1.4 christos int, int);' 2647 1.2 christos 2648 1.4 christos # Test code for whether the C compiler supports C89 (body of main). 2649 1.4 christos ac_c_conftest_c89_main=' 2650 1.4 christos ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2651 1.4 christos ' 2652 1.2 christos 2653 1.4 christos # Test code for whether the C compiler supports C99 (global declarations) 2654 1.4 christos ac_c_conftest_c99_globals=' 2655 1.4 christos /* Does the compiler advertise C99 conformance? */ 2656 1.4 christos #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2657 1.4 christos # error "Compiler does not advertise C99 conformance" 2658 1.4 christos #endif 2659 1.2 christos 2660 1.4 christos // See if C++-style comments work. 2661 1.2 christos 2662 1.4 christos #include <stdbool.h> 2663 1.4 christos extern int puts (const char *); 2664 1.4 christos extern int printf (const char *, ...); 2665 1.4 christos extern int dprintf (int, const char *, ...); 2666 1.4 christos extern void *malloc (size_t); 2667 1.4 christos extern void free (void *); 2668 1.2 christos 2669 1.4 christos // Check varargs macros. These examples are taken from C99 6.10.3.5. 2670 1.4 christos // dprintf is used instead of fprintf to avoid needing to declare 2671 1.4 christos // FILE and stderr. 2672 1.4 christos #define debug(...) dprintf (2, __VA_ARGS__) 2673 1.4 christos #define showlist(...) puts (#__VA_ARGS__) 2674 1.4 christos #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2675 1.4 christos static void 2676 1.4 christos test_varargs_macros (void) 2677 1.4 christos { 2678 1.4 christos int x = 1234; 2679 1.4 christos int y = 5678; 2680 1.4 christos debug ("Flag"); 2681 1.4 christos debug ("X = %d\n", x); 2682 1.4 christos showlist (The first, second, and third items.); 2683 1.4 christos report (x>y, "x is %d but y is %d", x, y); 2684 1.4 christos } 2685 1.2 christos 2686 1.4 christos // Check long long types. 2687 1.4 christos #define BIG64 18446744073709551615ull 2688 1.4 christos #define BIG32 4294967295ul 2689 1.4 christos #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2690 1.4 christos #if !BIG_OK 2691 1.4 christos #error "your preprocessor is broken" 2692 1.4 christos #endif 2693 1.4 christos #if BIG_OK 2694 1.4 christos #else 2695 1.4 christos #error "your preprocessor is broken" 2696 1.4 christos #endif 2697 1.4 christos static long long int bignum = -9223372036854775807LL; 2698 1.4 christos static unsigned long long int ubignum = BIG64; 2699 1.2 christos 2700 1.4 christos struct incomplete_array 2701 1.4 christos { 2702 1.4 christos int datasize; 2703 1.4 christos double data[]; 2704 1.4 christos }; 2705 1.2 christos 2706 1.4 christos struct named_init { 2707 1.4 christos int number; 2708 1.4 christos const wchar_t *name; 2709 1.4 christos double average; 2710 1.4 christos }; 2711 1.2 christos 2712 1.4 christos typedef const char *ccp; 2713 1.2 christos 2714 1.4 christos static inline int 2715 1.4 christos test_restrict (ccp restrict text) 2716 1.4 christos { 2717 1.4 christos // Iterate through items via the restricted pointer. 2718 1.4 christos // Also check for declarations in for loops. 2719 1.4 christos for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2720 1.4 christos continue; 2721 1.4 christos return 0; 2722 1.4 christos } 2723 1.2 christos 2724 1.4 christos // Check varargs and va_copy. 2725 1.4 christos static bool 2726 1.4 christos test_varargs (const char *format, ...) 2727 1.4 christos { 2728 1.4 christos va_list args; 2729 1.4 christos va_start (args, format); 2730 1.4 christos va_list args_copy; 2731 1.4 christos va_copy (args_copy, args); 2732 1.1 christos 2733 1.4 christos const char *str = ""; 2734 1.4 christos int number = 0; 2735 1.4 christos float fnumber = 0; 2736 1.4 christos 2737 1.4 christos while (*format) 2738 1.4 christos { 2739 1.4 christos switch (*format++) 2740 1.4 christos { 2741 1.4 christos case '\''s'\'': // string 2742 1.4 christos str = va_arg (args_copy, const char *); 2743 1.4 christos break; 2744 1.4 christos case '\''d'\'': // int 2745 1.4 christos number = va_arg (args_copy, int); 2746 1.4 christos break; 2747 1.4 christos case '\''f'\'': // float 2748 1.4 christos fnumber = va_arg (args_copy, double); 2749 1.4 christos break; 2750 1.4 christos default: 2751 1.4 christos break; 2752 1.4 christos } 2753 1.4 christos } 2754 1.4 christos va_end (args_copy); 2755 1.4 christos va_end (args); 2756 1.4 christos 2757 1.4 christos return *str && number && fnumber; 2758 1.4 christos } 2759 1.4 christos ' 2760 1.4 christos 2761 1.4 christos # Test code for whether the C compiler supports C99 (body of main). 2762 1.4 christos ac_c_conftest_c99_main=' 2763 1.4 christos // Check bool. 2764 1.4 christos _Bool success = false; 2765 1.4 christos success |= (argc != 0); 2766 1.4 christos 2767 1.4 christos // Check restrict. 2768 1.4 christos if (test_restrict ("String literal") == 0) 2769 1.4 christos success = true; 2770 1.4 christos char *restrict newvar = "Another string"; 2771 1.4 christos 2772 1.4 christos // Check varargs. 2773 1.4 christos success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2774 1.4 christos test_varargs_macros (); 2775 1.4 christos 2776 1.4 christos // Check flexible array members. 2777 1.4 christos struct incomplete_array *ia = 2778 1.4 christos malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2779 1.4 christos ia->datasize = 10; 2780 1.4 christos for (int i = 0; i < ia->datasize; ++i) 2781 1.4 christos ia->data[i] = i * 1.234; 2782 1.4 christos // Work around memory leak warnings. 2783 1.4 christos free (ia); 2784 1.4 christos 2785 1.4 christos // Check named initializers. 2786 1.4 christos struct named_init ni = { 2787 1.4 christos .number = 34, 2788 1.4 christos .name = L"Test wide string", 2789 1.4 christos .average = 543.34343, 2790 1.4 christos }; 2791 1.4 christos 2792 1.4 christos ni.number = 58; 2793 1.4 christos 2794 1.4 christos int dynamic_array[ni.number]; 2795 1.4 christos dynamic_array[0] = argv[0][0]; 2796 1.4 christos dynamic_array[ni.number - 1] = 543; 2797 1.4 christos 2798 1.4 christos // work around unused variable warnings 2799 1.4 christos ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2800 1.4 christos || dynamic_array[ni.number - 1] != 543); 2801 1.4 christos ' 2802 1.4 christos 2803 1.4 christos # Test code for whether the C compiler supports C11 (global declarations) 2804 1.4 christos ac_c_conftest_c11_globals=' 2805 1.4 christos /* Does the compiler advertise C11 conformance? */ 2806 1.4 christos #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2807 1.4 christos # error "Compiler does not advertise C11 conformance" 2808 1.4 christos #endif 2809 1.4 christos 2810 1.4 christos // Check _Alignas. 2811 1.4 christos char _Alignas (double) aligned_as_double; 2812 1.4 christos char _Alignas (0) no_special_alignment; 2813 1.4 christos extern char aligned_as_int; 2814 1.4 christos char _Alignas (0) _Alignas (int) aligned_as_int; 2815 1.4 christos 2816 1.4 christos // Check _Alignof. 2817 1.4 christos enum 2818 1.4 christos { 2819 1.4 christos int_alignment = _Alignof (int), 2820 1.4 christos int_array_alignment = _Alignof (int[100]), 2821 1.4 christos char_alignment = _Alignof (char) 2822 1.4 christos }; 2823 1.4 christos _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2824 1.4 christos 2825 1.4 christos // Check _Noreturn. 2826 1.4 christos int _Noreturn does_not_return (void) { for (;;) continue; } 2827 1.4 christos 2828 1.4 christos // Check _Static_assert. 2829 1.4 christos struct test_static_assert 2830 1.4 christos { 2831 1.4 christos int x; 2832 1.4 christos _Static_assert (sizeof (int) <= sizeof (long int), 2833 1.4 christos "_Static_assert does not work in struct"); 2834 1.4 christos long int y; 2835 1.4 christos }; 2836 1.4 christos 2837 1.4 christos // Check UTF-8 literals. 2838 1.4 christos #define u8 syntax error! 2839 1.4 christos char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2840 1.4 christos 2841 1.4 christos // Check duplicate typedefs. 2842 1.4 christos typedef long *long_ptr; 2843 1.4 christos typedef long int *long_ptr; 2844 1.4 christos typedef long_ptr long_ptr; 2845 1.4 christos 2846 1.4 christos // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2847 1.4 christos struct anonymous 2848 1.4 christos { 2849 1.4 christos union { 2850 1.4 christos struct { int i; int j; }; 2851 1.4 christos struct { int k; long int l; } w; 2852 1.4 christos }; 2853 1.4 christos int m; 2854 1.4 christos } v1; 2855 1.4 christos ' 2856 1.4 christos 2857 1.4 christos # Test code for whether the C compiler supports C11 (body of main). 2858 1.4 christos ac_c_conftest_c11_main=' 2859 1.4 christos _Static_assert ((offsetof (struct anonymous, i) 2860 1.4 christos == offsetof (struct anonymous, w.k)), 2861 1.4 christos "Anonymous union alignment botch"); 2862 1.4 christos v1.i = 2; 2863 1.4 christos v1.w.k = 5; 2864 1.4 christos ok |= v1.i != 5; 2865 1.4 christos ' 2866 1.4 christos 2867 1.4 christos # Test code for whether the C compiler supports C11 (complete). 2868 1.4 christos ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2869 1.4 christos ${ac_c_conftest_c99_globals} 2870 1.4 christos ${ac_c_conftest_c11_globals} 2871 1.4 christos 2872 1.4 christos int 2873 1.4 christos main (int argc, char **argv) 2874 1.4 christos { 2875 1.4 christos int ok = 0; 2876 1.4 christos ${ac_c_conftest_c89_main} 2877 1.4 christos ${ac_c_conftest_c99_main} 2878 1.4 christos ${ac_c_conftest_c11_main} 2879 1.4 christos return ok; 2880 1.4 christos } 2881 1.4 christos " 2882 1.4 christos 2883 1.4 christos # Test code for whether the C compiler supports C99 (complete). 2884 1.4 christos ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2885 1.4 christos ${ac_c_conftest_c99_globals} 2886 1.4 christos 2887 1.4 christos int 2888 1.4 christos main (int argc, char **argv) 2889 1.4 christos { 2890 1.4 christos int ok = 0; 2891 1.4 christos ${ac_c_conftest_c89_main} 2892 1.4 christos ${ac_c_conftest_c99_main} 2893 1.4 christos return ok; 2894 1.4 christos } 2895 1.4 christos " 2896 1.4 christos 2897 1.4 christos # Test code for whether the C compiler supports C89 (complete). 2898 1.4 christos ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2899 1.4 christos 2900 1.4 christos int 2901 1.4 christos main (int argc, char **argv) 2902 1.4 christos { 2903 1.4 christos int ok = 0; 2904 1.4 christos ${ac_c_conftest_c89_main} 2905 1.4 christos return ok; 2906 1.4 christos } 2907 1.4 christos " 2908 1.4 christos 2909 1.4 christos as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2910 1.4 christos as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2911 1.4 christos as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2912 1.4 christos as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2913 1.4 christos as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2914 1.4 christos as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2915 1.4 christos as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2916 1.4 christos as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2917 1.4 christos as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2918 1.4 christos as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2919 1.4 christos as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2920 1.4 christos as_fn_append ac_func_c_list " fork HAVE_FORK" 2921 1.4 christos as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2922 1.4 christos 2923 1.4 christos # Auxiliary files required by this configure script. 2924 1.4 christos ac_aux_files="config.guess config.sub install-sh" 2925 1.4 christos 2926 1.4 christos # Locations in which to look for auxiliary files. 2927 1.4 christos ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2928 1.4 christos 2929 1.4 christos # Search for a directory containing all of the required auxiliary files, 2930 1.4 christos # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2931 1.4 christos # If we don't find one directory that contains all the files we need, 2932 1.4 christos # we report the set of missing files from the *first* directory in 2933 1.4 christos # $ac_aux_dir_candidates and give up. 2934 1.4 christos ac_missing_aux_files="" 2935 1.4 christos ac_first_candidate=: 2936 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2937 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938 1.4 christos as_found=false 2939 1.4 christos for as_dir in $ac_aux_dir_candidates 2940 1.4 christos do 2941 1.4 christos IFS=$as_save_IFS 2942 1.4 christos case $as_dir in #((( 2943 1.4 christos '') as_dir=./ ;; 2944 1.4 christos */) ;; 2945 1.4 christos *) as_dir=$as_dir/ ;; 2946 1.4 christos esac 2947 1.4 christos as_found=: 2948 1.4 christos 2949 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2950 1.4 christos ac_aux_dir_found=yes 2951 1.4 christos ac_install_sh= 2952 1.4 christos for ac_aux in $ac_aux_files 2953 1.4 christos do 2954 1.4 christos # As a special case, if "install-sh" is required, that requirement 2955 1.4 christos # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2956 1.4 christos # and $ac_install_sh is set appropriately for whichever one is found. 2957 1.4 christos if test x"$ac_aux" = x"install-sh" 2958 1.4 christos then 2959 1.4 christos if test -f "${as_dir}install-sh"; then 2960 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2961 1.4 christos ac_install_sh="${as_dir}install-sh -c" 2962 1.4 christos elif test -f "${as_dir}install.sh"; then 2963 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2964 1.4 christos ac_install_sh="${as_dir}install.sh -c" 2965 1.4 christos elif test -f "${as_dir}shtool"; then 2966 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2967 1.4 christos ac_install_sh="${as_dir}shtool install -c" 2968 1.4 christos else 2969 1.4 christos ac_aux_dir_found=no 2970 1.4 christos if $ac_first_candidate; then 2971 1.4 christos ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2972 1.4 christos else 2973 1.4 christos break 2974 1.4 christos fi 2975 1.4 christos fi 2976 1.4 christos else 2977 1.4 christos if test -f "${as_dir}${ac_aux}"; then 2978 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2979 1.4 christos else 2980 1.4 christos ac_aux_dir_found=no 2981 1.4 christos if $ac_first_candidate; then 2982 1.4 christos ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2983 1.4 christos else 2984 1.4 christos break 2985 1.4 christos fi 2986 1.4 christos fi 2987 1.4 christos fi 2988 1.4 christos done 2989 1.4 christos if test "$ac_aux_dir_found" = yes; then 2990 1.4 christos ac_aux_dir="$as_dir" 2991 1.4 christos break 2992 1.4 christos fi 2993 1.4 christos ac_first_candidate=false 2994 1.4 christos 2995 1.4 christos as_found=false 2996 1.4 christos done 2997 1.4 christos IFS=$as_save_IFS 2998 1.4 christos if $as_found 2999 1.4 christos then : 3000 1.4 christos 3001 1.4 christos else case e in #( 3002 1.4 christos e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 3003 1.4 christos esac 3004 1.4 christos fi 3005 1.4 christos 3006 1.4 christos 3007 1.4 christos # These three variables are undocumented and unsupported, 3008 1.4 christos # and are intended to be withdrawn in a future Autoconf release. 3009 1.4 christos # They can cause serious problems if a builder's source tree is in a directory 3010 1.4 christos # whose full name contains unusual characters. 3011 1.4 christos if test -f "${ac_aux_dir}config.guess"; then 3012 1.4 christos ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3013 1.4 christos fi 3014 1.4 christos if test -f "${ac_aux_dir}config.sub"; then 3015 1.4 christos ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3016 1.4 christos fi 3017 1.4 christos if test -f "$ac_aux_dir/configure"; then 3018 1.4 christos ac_configure="$SHELL ${ac_aux_dir}configure" 3019 1.4 christos fi 3020 1.4 christos 3021 1.4 christos # Check that the precious variables saved in the cache have kept the same 3022 1.4 christos # value. 3023 1.4 christos ac_cache_corrupted=false 3024 1.4 christos for ac_var in $ac_precious_vars; do 3025 1.4 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set 3026 1.4 christos eval ac_new_set=\$ac_env_${ac_var}_set 3027 1.4 christos eval ac_old_val=\$ac_cv_env_${ac_var}_value 3028 1.4 christos eval ac_new_val=\$ac_env_${ac_var}_value 3029 1.4 christos case $ac_old_set,$ac_new_set in 3030 1.4 christos set,) 3031 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 3032 1.4 christos printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 3033 1.4 christos ac_cache_corrupted=: ;; 3034 1.4 christos ,set) 3035 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 3036 1.4 christos printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 3037 1.4 christos ac_cache_corrupted=: ;; 3038 1.4 christos ,);; 3039 1.4 christos *) 3040 1.4 christos if test "x$ac_old_val" != "x$ac_new_val"; then 3041 1.4 christos # differences in whitespace do not lead to failure. 3042 1.4 christos ac_old_val_w=`echo x $ac_old_val` 3043 1.4 christos ac_new_val_w=`echo x $ac_new_val` 3044 1.4 christos if test "$ac_old_val_w" != "$ac_new_val_w"; then 3045 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 3046 1.4 christos printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 3047 1.4 christos ac_cache_corrupted=: 3048 1.4 christos else 3049 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 3050 1.4 christos printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 3051 1.4 christos eval $ac_var=\$ac_old_val 3052 1.4 christos fi 3053 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 3054 1.4 christos printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 3055 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 3056 1.4 christos printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 3057 1.4 christos fi;; 3058 1.4 christos esac 3059 1.4 christos # Pass precious variables to config.status. 3060 1.4 christos if test "$ac_new_set" = set; then 3061 1.4 christos case $ac_new_val in 3062 1.4 christos *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3063 1.4 christos *) ac_arg=$ac_var=$ac_new_val ;; 3064 1.4 christos esac 3065 1.4 christos case " $ac_configure_args " in 3066 1.4 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3067 1.4 christos *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3068 1.4 christos esac 3069 1.4 christos fi 3070 1.4 christos done 3071 1.4 christos if $ac_cache_corrupted; then 3072 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3073 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3074 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3075 1.4 christos printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3076 1.4 christos as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 3077 1.4 christos and start over" "$LINENO" 5 3078 1.4 christos fi 3079 1.4 christos ## -------------------- ## 3080 1.4 christos ## Main body of script. ## 3081 1.4 christos ## -------------------- ## 3082 1.4 christos 3083 1.4 christos ac_ext=c 3084 1.4 christos ac_cpp='$CPP $CPPFLAGS' 3085 1.4 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3086 1.4 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3087 1.4 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 3088 1.4 christos 3089 1.4 christos 3090 1.4 christos ac_config_headers="$ac_config_headers config.h" 3091 1.4 christos 3092 1.4 christos 3093 1.4 christos # 3094 1.4 christos # Setup the standard programs 3095 1.4 christos # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html 3096 1.4 christos 3097 1.4 christos 3098 1.4 christos 3099 1.4 christos 3100 1.4 christos 3101 1.4 christos 3102 1.4 christos 3103 1.4 christos 3104 1.4 christos cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 3105 1.4 christos 3106 1.4 christos printf "%s\n" "#define CONFCMDLINE \"$cmdln\"" >>confdefs.h 3107 1.4 christos 3108 1.4 christos 3109 1.4 christos CFLAGS="$CFLAGS" 3110 1.4 christos 3111 1.4 christos 3112 1.4 christos 3113 1.4 christos 3114 1.4 christos 3115 1.4 christos 3116 1.4 christos 3117 1.4 christos 3118 1.4 christos 3119 1.4 christos ac_ext=c 3120 1.4 christos ac_cpp='$CPP $CPPFLAGS' 3121 1.4 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3122 1.4 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3123 1.4 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 3124 1.4 christos if test -n "$ac_tool_prefix"; then 3125 1.4 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3126 1.4 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2 3127 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3128 1.4 christos printf %s "checking for $ac_word... " >&6; } 3129 1.4 christos if test ${ac_cv_prog_CC+y} 3130 1.4 christos then : 3131 1.4 christos printf %s "(cached) " >&6 3132 1.4 christos else case e in #( 3133 1.4 christos e) if test -n "$CC"; then 3134 1.4 christos ac_cv_prog_CC="$CC" # Let the user override the test. 3135 1.4 christos else 3136 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3137 1.4 christos for as_dir in $PATH 3138 1.4 christos do 3139 1.4 christos IFS=$as_save_IFS 3140 1.4 christos case $as_dir in #((( 3141 1.4 christos '') as_dir=./ ;; 3142 1.4 christos */) ;; 3143 1.4 christos *) as_dir=$as_dir/ ;; 3144 1.4 christos esac 3145 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 3146 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3147 1.4 christos ac_cv_prog_CC="${ac_tool_prefix}gcc" 3148 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3149 1.4 christos break 2 3150 1.4 christos fi 3151 1.4 christos done 3152 1.4 christos done 3153 1.4 christos IFS=$as_save_IFS 3154 1.4 christos 3155 1.4 christos fi ;; 3156 1.4 christos esac 3157 1.4 christos fi 3158 1.4 christos CC=$ac_cv_prog_CC 3159 1.4 christos if test -n "$CC"; then 3160 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3161 1.4 christos printf "%s\n" "$CC" >&6; } 3162 1.4 christos else 3163 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3164 1.4 christos printf "%s\n" "no" >&6; } 3165 1.4 christos fi 3166 1.1 christos 3167 1.1 christos 3168 1.1 christos fi 3169 1.1 christos if test -z "$ac_cv_prog_CC"; then 3170 1.1 christos ac_ct_CC=$CC 3171 1.1 christos # Extract the first word of "gcc", so it can be a program name with args. 3172 1.1 christos set dummy gcc; ac_word=$2 3173 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174 1.4 christos printf %s "checking for $ac_word... " >&6; } 3175 1.4 christos if test ${ac_cv_prog_ac_ct_CC+y} 3176 1.4 christos then : 3177 1.4 christos printf %s "(cached) " >&6 3178 1.4 christos else case e in #( 3179 1.4 christos e) if test -n "$ac_ct_CC"; then 3180 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3181 1.1 christos else 3182 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183 1.1 christos for as_dir in $PATH 3184 1.1 christos do 3185 1.1 christos IFS=$as_save_IFS 3186 1.4 christos case $as_dir in #((( 3187 1.4 christos '') as_dir=./ ;; 3188 1.4 christos */) ;; 3189 1.4 christos *) as_dir=$as_dir/ ;; 3190 1.4 christos esac 3191 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3192 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3193 1.1 christos ac_cv_prog_ac_ct_CC="gcc" 3194 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3195 1.1 christos break 2 3196 1.1 christos fi 3197 1.1 christos done 3198 1.1 christos done 3199 1.1 christos IFS=$as_save_IFS 3200 1.1 christos 3201 1.4 christos fi ;; 3202 1.4 christos esac 3203 1.1 christos fi 3204 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 3205 1.1 christos if test -n "$ac_ct_CC"; then 3206 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3207 1.4 christos printf "%s\n" "$ac_ct_CC" >&6; } 3208 1.1 christos else 3209 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3210 1.4 christos printf "%s\n" "no" >&6; } 3211 1.1 christos fi 3212 1.1 christos 3213 1.1 christos if test "x$ac_ct_CC" = x; then 3214 1.1 christos CC="" 3215 1.1 christos else 3216 1.1 christos case $cross_compiling:$ac_tool_warned in 3217 1.1 christos yes:) 3218 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3219 1.4 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3220 1.1 christos ac_tool_warned=yes ;; 3221 1.1 christos esac 3222 1.1 christos CC=$ac_ct_CC 3223 1.1 christos fi 3224 1.1 christos else 3225 1.1 christos CC="$ac_cv_prog_CC" 3226 1.1 christos fi 3227 1.1 christos 3228 1.1 christos if test -z "$CC"; then 3229 1.1 christos if test -n "$ac_tool_prefix"; then 3230 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3231 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2 3232 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3233 1.4 christos printf %s "checking for $ac_word... " >&6; } 3234 1.4 christos if test ${ac_cv_prog_CC+y} 3235 1.4 christos then : 3236 1.4 christos printf %s "(cached) " >&6 3237 1.4 christos else case e in #( 3238 1.4 christos e) if test -n "$CC"; then 3239 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 3240 1.1 christos else 3241 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3242 1.1 christos for as_dir in $PATH 3243 1.1 christos do 3244 1.1 christos IFS=$as_save_IFS 3245 1.4 christos case $as_dir in #((( 3246 1.4 christos '') as_dir=./ ;; 3247 1.4 christos */) ;; 3248 1.4 christos *) as_dir=$as_dir/ ;; 3249 1.4 christos esac 3250 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3251 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3252 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc" 3253 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3254 1.1 christos break 2 3255 1.1 christos fi 3256 1.1 christos done 3257 1.1 christos done 3258 1.1 christos IFS=$as_save_IFS 3259 1.1 christos 3260 1.4 christos fi ;; 3261 1.4 christos esac 3262 1.1 christos fi 3263 1.1 christos CC=$ac_cv_prog_CC 3264 1.1 christos if test -n "$CC"; then 3265 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3266 1.4 christos printf "%s\n" "$CC" >&6; } 3267 1.1 christos else 3268 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3269 1.4 christos printf "%s\n" "no" >&6; } 3270 1.1 christos fi 3271 1.1 christos 3272 1.1 christos 3273 1.1 christos fi 3274 1.1 christos fi 3275 1.1 christos if test -z "$CC"; then 3276 1.1 christos # Extract the first word of "cc", so it can be a program name with args. 3277 1.1 christos set dummy cc; ac_word=$2 3278 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3279 1.4 christos printf %s "checking for $ac_word... " >&6; } 3280 1.4 christos if test ${ac_cv_prog_CC+y} 3281 1.4 christos then : 3282 1.4 christos printf %s "(cached) " >&6 3283 1.4 christos else case e in #( 3284 1.4 christos e) if test -n "$CC"; then 3285 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 3286 1.1 christos else 3287 1.1 christos ac_prog_rejected=no 3288 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3289 1.1 christos for as_dir in $PATH 3290 1.1 christos do 3291 1.1 christos IFS=$as_save_IFS 3292 1.4 christos case $as_dir in #((( 3293 1.4 christos '') as_dir=./ ;; 3294 1.4 christos */) ;; 3295 1.4 christos *) as_dir=$as_dir/ ;; 3296 1.4 christos esac 3297 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3298 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3299 1.4 christos if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3300 1.1 christos ac_prog_rejected=yes 3301 1.1 christos continue 3302 1.1 christos fi 3303 1.1 christos ac_cv_prog_CC="cc" 3304 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3305 1.1 christos break 2 3306 1.1 christos fi 3307 1.1 christos done 3308 1.1 christos done 3309 1.1 christos IFS=$as_save_IFS 3310 1.1 christos 3311 1.1 christos if test $ac_prog_rejected = yes; then 3312 1.1 christos # We found a bogon in the path, so make sure we never use it. 3313 1.1 christos set dummy $ac_cv_prog_CC 3314 1.1 christos shift 3315 1.1 christos if test $# != 0; then 3316 1.1 christos # We chose a different compiler from the bogus one. 3317 1.1 christos # However, it has the same basename, so the bogon will be chosen 3318 1.1 christos # first if we set CC to just the basename; use the full file name. 3319 1.1 christos shift 3320 1.4 christos ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3321 1.1 christos fi 3322 1.1 christos fi 3323 1.4 christos fi ;; 3324 1.4 christos esac 3325 1.1 christos fi 3326 1.1 christos CC=$ac_cv_prog_CC 3327 1.1 christos if test -n "$CC"; then 3328 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3329 1.4 christos printf "%s\n" "$CC" >&6; } 3330 1.1 christos else 3331 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3332 1.4 christos printf "%s\n" "no" >&6; } 3333 1.1 christos fi 3334 1.1 christos 3335 1.1 christos 3336 1.1 christos fi 3337 1.1 christos if test -z "$CC"; then 3338 1.1 christos if test -n "$ac_tool_prefix"; then 3339 1.1 christos for ac_prog in cl.exe 3340 1.1 christos do 3341 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3342 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3343 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3344 1.4 christos printf %s "checking for $ac_word... " >&6; } 3345 1.4 christos if test ${ac_cv_prog_CC+y} 3346 1.4 christos then : 3347 1.4 christos printf %s "(cached) " >&6 3348 1.4 christos else case e in #( 3349 1.4 christos e) if test -n "$CC"; then 3350 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 3351 1.1 christos else 3352 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353 1.1 christos for as_dir in $PATH 3354 1.1 christos do 3355 1.1 christos IFS=$as_save_IFS 3356 1.4 christos case $as_dir in #((( 3357 1.4 christos '') as_dir=./ ;; 3358 1.4 christos */) ;; 3359 1.4 christos *) as_dir=$as_dir/ ;; 3360 1.4 christos esac 3361 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3362 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3363 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3364 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3365 1.1 christos break 2 3366 1.1 christos fi 3367 1.1 christos done 3368 1.1 christos done 3369 1.1 christos IFS=$as_save_IFS 3370 1.1 christos 3371 1.4 christos fi ;; 3372 1.4 christos esac 3373 1.1 christos fi 3374 1.1 christos CC=$ac_cv_prog_CC 3375 1.1 christos if test -n "$CC"; then 3376 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3377 1.4 christos printf "%s\n" "$CC" >&6; } 3378 1.1 christos else 3379 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3380 1.4 christos printf "%s\n" "no" >&6; } 3381 1.1 christos fi 3382 1.1 christos 3383 1.1 christos 3384 1.1 christos test -n "$CC" && break 3385 1.1 christos done 3386 1.1 christos fi 3387 1.1 christos if test -z "$CC"; then 3388 1.1 christos ac_ct_CC=$CC 3389 1.1 christos for ac_prog in cl.exe 3390 1.1 christos do 3391 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 3392 1.1 christos set dummy $ac_prog; ac_word=$2 3393 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3394 1.4 christos printf %s "checking for $ac_word... " >&6; } 3395 1.4 christos if test ${ac_cv_prog_ac_ct_CC+y} 3396 1.4 christos then : 3397 1.4 christos printf %s "(cached) " >&6 3398 1.4 christos else case e in #( 3399 1.4 christos e) if test -n "$ac_ct_CC"; then 3400 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3401 1.1 christos else 3402 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3403 1.1 christos for as_dir in $PATH 3404 1.1 christos do 3405 1.1 christos IFS=$as_save_IFS 3406 1.4 christos case $as_dir in #((( 3407 1.4 christos '') as_dir=./ ;; 3408 1.4 christos */) ;; 3409 1.4 christos *) as_dir=$as_dir/ ;; 3410 1.4 christos esac 3411 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3412 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3413 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog" 3414 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3415 1.1 christos break 2 3416 1.1 christos fi 3417 1.1 christos done 3418 1.1 christos done 3419 1.1 christos IFS=$as_save_IFS 3420 1.1 christos 3421 1.4 christos fi ;; 3422 1.4 christos esac 3423 1.1 christos fi 3424 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 3425 1.1 christos if test -n "$ac_ct_CC"; then 3426 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3427 1.4 christos printf "%s\n" "$ac_ct_CC" >&6; } 3428 1.1 christos else 3429 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3430 1.4 christos printf "%s\n" "no" >&6; } 3431 1.1 christos fi 3432 1.1 christos 3433 1.1 christos 3434 1.1 christos test -n "$ac_ct_CC" && break 3435 1.1 christos done 3436 1.1 christos 3437 1.1 christos if test "x$ac_ct_CC" = x; then 3438 1.1 christos CC="" 3439 1.1 christos else 3440 1.1 christos case $cross_compiling:$ac_tool_warned in 3441 1.1 christos yes:) 3442 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3443 1.4 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3444 1.1 christos ac_tool_warned=yes ;; 3445 1.1 christos esac 3446 1.1 christos CC=$ac_ct_CC 3447 1.1 christos fi 3448 1.1 christos fi 3449 1.1 christos 3450 1.1 christos fi 3451 1.4 christos if test -z "$CC"; then 3452 1.4 christos if test -n "$ac_tool_prefix"; then 3453 1.4 christos # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3454 1.4 christos set dummy ${ac_tool_prefix}clang; ac_word=$2 3455 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3456 1.4 christos printf %s "checking for $ac_word... " >&6; } 3457 1.4 christos if test ${ac_cv_prog_CC+y} 3458 1.4 christos then : 3459 1.4 christos printf %s "(cached) " >&6 3460 1.4 christos else case e in #( 3461 1.4 christos e) if test -n "$CC"; then 3462 1.4 christos ac_cv_prog_CC="$CC" # Let the user override the test. 3463 1.4 christos else 3464 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465 1.4 christos for as_dir in $PATH 3466 1.4 christos do 3467 1.4 christos IFS=$as_save_IFS 3468 1.4 christos case $as_dir in #((( 3469 1.4 christos '') as_dir=./ ;; 3470 1.4 christos */) ;; 3471 1.4 christos *) as_dir=$as_dir/ ;; 3472 1.4 christos esac 3473 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 3474 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3475 1.4 christos ac_cv_prog_CC="${ac_tool_prefix}clang" 3476 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3477 1.4 christos break 2 3478 1.4 christos fi 3479 1.4 christos done 3480 1.4 christos done 3481 1.4 christos IFS=$as_save_IFS 3482 1.1 christos 3483 1.4 christos fi ;; 3484 1.4 christos esac 3485 1.4 christos fi 3486 1.4 christos CC=$ac_cv_prog_CC 3487 1.4 christos if test -n "$CC"; then 3488 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3489 1.4 christos printf "%s\n" "$CC" >&6; } 3490 1.4 christos else 3491 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3492 1.4 christos printf "%s\n" "no" >&6; } 3493 1.4 christos fi 3494 1.1 christos 3495 1.4 christos 3496 1.4 christos fi 3497 1.4 christos if test -z "$ac_cv_prog_CC"; then 3498 1.4 christos ac_ct_CC=$CC 3499 1.4 christos # Extract the first word of "clang", so it can be a program name with args. 3500 1.4 christos set dummy clang; ac_word=$2 3501 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3502 1.4 christos printf %s "checking for $ac_word... " >&6; } 3503 1.4 christos if test ${ac_cv_prog_ac_ct_CC+y} 3504 1.4 christos then : 3505 1.4 christos printf %s "(cached) " >&6 3506 1.4 christos else case e in #( 3507 1.4 christos e) if test -n "$ac_ct_CC"; then 3508 1.4 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3509 1.4 christos else 3510 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511 1.4 christos for as_dir in $PATH 3512 1.4 christos do 3513 1.4 christos IFS=$as_save_IFS 3514 1.4 christos case $as_dir in #((( 3515 1.4 christos '') as_dir=./ ;; 3516 1.4 christos */) ;; 3517 1.4 christos *) as_dir=$as_dir/ ;; 3518 1.4 christos esac 3519 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 3520 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3521 1.4 christos ac_cv_prog_ac_ct_CC="clang" 3522 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3523 1.4 christos break 2 3524 1.4 christos fi 3525 1.4 christos done 3526 1.4 christos done 3527 1.4 christos IFS=$as_save_IFS 3528 1.4 christos 3529 1.4 christos fi ;; 3530 1.4 christos esac 3531 1.4 christos fi 3532 1.4 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 3533 1.4 christos if test -n "$ac_ct_CC"; then 3534 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3535 1.4 christos printf "%s\n" "$ac_ct_CC" >&6; } 3536 1.4 christos else 3537 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3538 1.4 christos printf "%s\n" "no" >&6; } 3539 1.4 christos fi 3540 1.4 christos 3541 1.4 christos if test "x$ac_ct_CC" = x; then 3542 1.4 christos CC="" 3543 1.4 christos else 3544 1.4 christos case $cross_compiling:$ac_tool_warned in 3545 1.4 christos yes:) 3546 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3547 1.4 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3548 1.4 christos ac_tool_warned=yes ;; 3549 1.4 christos esac 3550 1.4 christos CC=$ac_ct_CC 3551 1.4 christos fi 3552 1.4 christos else 3553 1.4 christos CC="$ac_cv_prog_CC" 3554 1.4 christos fi 3555 1.4 christos 3556 1.4 christos fi 3557 1.4 christos 3558 1.4 christos 3559 1.4 christos test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3560 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3561 1.4 christos as_fn_error $? "no acceptable C compiler found in \$PATH 3562 1.4 christos See 'config.log' for more details" "$LINENO" 5; } 3563 1.1 christos 3564 1.1 christos # Provide some information about the compiler. 3565 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3566 1.1 christos set X $ac_compile 3567 1.1 christos ac_compiler=$2 3568 1.4 christos for ac_option in --version -v -V -qversion -version; do 3569 1.1 christos { { ac_try="$ac_compiler $ac_option >&5" 3570 1.1 christos case "(($ac_try" in 3571 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3572 1.1 christos *) ac_try_echo=$ac_try;; 3573 1.1 christos esac 3574 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3575 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 3576 1.1 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3577 1.1 christos ac_status=$? 3578 1.1 christos if test -s conftest.err; then 3579 1.1 christos sed '10a\ 3580 1.1 christos ... rest of stderr output deleted ... 3581 1.1 christos 10q' conftest.err >conftest.er1 3582 1.1 christos cat conftest.er1 >&5 3583 1.1 christos fi 3584 1.1 christos rm -f conftest.er1 conftest.err 3585 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3586 1.1 christos test $ac_status = 0; } 3587 1.1 christos done 3588 1.1 christos 3589 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3590 1.1 christos /* end confdefs.h. */ 3591 1.1 christos 3592 1.1 christos int 3593 1.4 christos main (void) 3594 1.1 christos { 3595 1.1 christos 3596 1.1 christos ; 3597 1.1 christos return 0; 3598 1.1 christos } 3599 1.1 christos _ACEOF 3600 1.1 christos ac_clean_files_save=$ac_clean_files 3601 1.1 christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3602 1.1 christos # Try to create an executable without -o first, disregard a.out. 3603 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition 3604 1.1 christos # of exeext. 3605 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3606 1.4 christos printf %s "checking whether the C compiler works... " >&6; } 3607 1.4 christos ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3608 1.1 christos 3609 1.1 christos # The possible output files: 3610 1.1 christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3611 1.1 christos 3612 1.1 christos ac_rmfiles= 3613 1.1 christos for ac_file in $ac_files 3614 1.1 christos do 3615 1.1 christos case $ac_file in 3616 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3617 1.1 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3618 1.1 christos esac 3619 1.1 christos done 3620 1.1 christos rm -f $ac_rmfiles 3621 1.1 christos 3622 1.1 christos if { { ac_try="$ac_link_default" 3623 1.1 christos case "(($ac_try" in 3624 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3625 1.1 christos *) ac_try_echo=$ac_try;; 3626 1.1 christos esac 3627 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3628 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 3629 1.1 christos (eval "$ac_link_default") 2>&5 3630 1.1 christos ac_status=$? 3631 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3632 1.4 christos test $ac_status = 0; } 3633 1.4 christos then : 3634 1.4 christos # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3635 1.4 christos # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3636 1.1 christos # in a Makefile. We should not override ac_cv_exeext if it was cached, 3637 1.1 christos # so that the user can short-circuit this test for compilers unknown to 3638 1.1 christos # Autoconf. 3639 1.1 christos for ac_file in $ac_files '' 3640 1.1 christos do 3641 1.1 christos test -f "$ac_file" || continue 3642 1.1 christos case $ac_file in 3643 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3644 1.1 christos ;; 3645 1.1 christos [ab].out ) 3646 1.1 christos # We found the default executable, but exeext='' is most 3647 1.1 christos # certainly right. 3648 1.1 christos break;; 3649 1.1 christos *.* ) 3650 1.4 christos if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3651 1.1 christos then :; else 3652 1.1 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3653 1.1 christos fi 3654 1.1 christos # We set ac_cv_exeext here because the later test for it is not 3655 1.4 christos # safe: cross compilers may not add the suffix if given an '-o' 3656 1.1 christos # argument, so we may need to know it at that point already. 3657 1.1 christos # Even if this section looks crufty: it has the advantage of 3658 1.1 christos # actually working. 3659 1.1 christos break;; 3660 1.1 christos * ) 3661 1.1 christos break;; 3662 1.1 christos esac 3663 1.1 christos done 3664 1.1 christos test "$ac_cv_exeext" = no && ac_cv_exeext= 3665 1.1 christos 3666 1.4 christos else case e in #( 3667 1.4 christos e) ac_file='' ;; 3668 1.4 christos esac 3669 1.1 christos fi 3670 1.4 christos if test -z "$ac_file" 3671 1.4 christos then : 3672 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3673 1.4 christos printf "%s\n" "no" >&6; } 3674 1.4 christos printf "%s\n" "$as_me: failed program was:" >&5 3675 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3676 1.1 christos 3677 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3678 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3679 1.1 christos as_fn_error 77 "C compiler cannot create executables 3680 1.4 christos See 'config.log' for more details" "$LINENO" 5; } 3681 1.4 christos else case e in #( 3682 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3683 1.4 christos printf "%s\n" "yes" >&6; } ;; 3684 1.4 christos esac 3685 1.1 christos fi 3686 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3687 1.4 christos printf %s "checking for C compiler default output file name... " >&6; } 3688 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3689 1.4 christos printf "%s\n" "$ac_file" >&6; } 3690 1.1 christos ac_exeext=$ac_cv_exeext 3691 1.1 christos 3692 1.1 christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3693 1.1 christos ac_clean_files=$ac_clean_files_save 3694 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3695 1.4 christos printf %s "checking for suffix of executables... " >&6; } 3696 1.1 christos if { { ac_try="$ac_link" 3697 1.1 christos case "(($ac_try" in 3698 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 1.1 christos *) ac_try_echo=$ac_try;; 3700 1.1 christos esac 3701 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3702 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 3703 1.1 christos (eval "$ac_link") 2>&5 3704 1.1 christos ac_status=$? 3705 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3706 1.4 christos test $ac_status = 0; } 3707 1.4 christos then : 3708 1.4 christos # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3709 1.4 christos # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3710 1.4 christos # work properly (i.e., refer to 'conftest.exe'), while it won't with 3711 1.4 christos # 'rm'. 3712 1.1 christos for ac_file in conftest.exe conftest conftest.*; do 3713 1.1 christos test -f "$ac_file" || continue 3714 1.1 christos case $ac_file in 3715 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3716 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3717 1.1 christos break;; 3718 1.1 christos * ) break;; 3719 1.1 christos esac 3720 1.1 christos done 3721 1.4 christos else case e in #( 3722 1.4 christos e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3723 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3724 1.1 christos as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3725 1.4 christos See 'config.log' for more details" "$LINENO" 5; } ;; 3726 1.4 christos esac 3727 1.1 christos fi 3728 1.1 christos rm -f conftest conftest$ac_cv_exeext 3729 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3730 1.4 christos printf "%s\n" "$ac_cv_exeext" >&6; } 3731 1.1 christos 3732 1.1 christos rm -f conftest.$ac_ext 3733 1.1 christos EXEEXT=$ac_cv_exeext 3734 1.1 christos ac_exeext=$EXEEXT 3735 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736 1.1 christos /* end confdefs.h. */ 3737 1.1 christos #include <stdio.h> 3738 1.1 christos int 3739 1.4 christos main (void) 3740 1.1 christos { 3741 1.1 christos FILE *f = fopen ("conftest.out", "w"); 3742 1.4 christos if (!f) 3743 1.4 christos return 1; 3744 1.1 christos return ferror (f) || fclose (f) != 0; 3745 1.1 christos 3746 1.1 christos ; 3747 1.1 christos return 0; 3748 1.1 christos } 3749 1.1 christos _ACEOF 3750 1.1 christos ac_clean_files="$ac_clean_files conftest.out" 3751 1.1 christos # Check that the compiler produces executables we can run. If not, either 3752 1.1 christos # the compiler is broken, or we cross compile. 3753 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3754 1.4 christos printf %s "checking whether we are cross compiling... " >&6; } 3755 1.1 christos if test "$cross_compiling" != yes; then 3756 1.1 christos { { ac_try="$ac_link" 3757 1.1 christos case "(($ac_try" in 3758 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3759 1.1 christos *) ac_try_echo=$ac_try;; 3760 1.1 christos esac 3761 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3762 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 3763 1.1 christos (eval "$ac_link") 2>&5 3764 1.1 christos ac_status=$? 3765 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3766 1.1 christos test $ac_status = 0; } 3767 1.1 christos if { ac_try='./conftest$ac_cv_exeext' 3768 1.1 christos { { case "(($ac_try" in 3769 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3770 1.1 christos *) ac_try_echo=$ac_try;; 3771 1.1 christos esac 3772 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3773 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 3774 1.1 christos (eval "$ac_try") 2>&5 3775 1.1 christos ac_status=$? 3776 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3777 1.1 christos test $ac_status = 0; }; }; then 3778 1.1 christos cross_compiling=no 3779 1.1 christos else 3780 1.1 christos if test "$cross_compiling" = maybe; then 3781 1.1 christos cross_compiling=yes 3782 1.1 christos else 3783 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3784 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3785 1.4 christos as_fn_error 77 "cannot run C compiled programs. 3786 1.4 christos If you meant to cross compile, use '--host'. 3787 1.4 christos See 'config.log' for more details" "$LINENO" 5; } 3788 1.1 christos fi 3789 1.1 christos fi 3790 1.1 christos fi 3791 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3792 1.4 christos printf "%s\n" "$cross_compiling" >&6; } 3793 1.1 christos 3794 1.4 christos rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3795 1.4 christos conftest.o conftest.obj conftest.out 3796 1.1 christos ac_clean_files=$ac_clean_files_save 3797 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3798 1.4 christos printf %s "checking for suffix of object files... " >&6; } 3799 1.4 christos if test ${ac_cv_objext+y} 3800 1.4 christos then : 3801 1.4 christos printf %s "(cached) " >&6 3802 1.4 christos else case e in #( 3803 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3804 1.1 christos /* end confdefs.h. */ 3805 1.1 christos 3806 1.1 christos int 3807 1.4 christos main (void) 3808 1.1 christos { 3809 1.1 christos 3810 1.1 christos ; 3811 1.1 christos return 0; 3812 1.1 christos } 3813 1.1 christos _ACEOF 3814 1.1 christos rm -f conftest.o conftest.obj 3815 1.1 christos if { { ac_try="$ac_compile" 3816 1.1 christos case "(($ac_try" in 3817 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3818 1.1 christos *) ac_try_echo=$ac_try;; 3819 1.1 christos esac 3820 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3821 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 3822 1.1 christos (eval "$ac_compile") 2>&5 3823 1.1 christos ac_status=$? 3824 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3825 1.4 christos test $ac_status = 0; } 3826 1.4 christos then : 3827 1.1 christos for ac_file in conftest.o conftest.obj conftest.*; do 3828 1.1 christos test -f "$ac_file" || continue; 3829 1.1 christos case $ac_file in 3830 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3831 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3832 1.1 christos break;; 3833 1.1 christos esac 3834 1.1 christos done 3835 1.4 christos else case e in #( 3836 1.4 christos e) printf "%s\n" "$as_me: failed program was:" >&5 3837 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3838 1.1 christos 3839 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3840 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3841 1.1 christos as_fn_error $? "cannot compute suffix of object files: cannot compile 3842 1.4 christos See 'config.log' for more details" "$LINENO" 5; } ;; 3843 1.4 christos esac 3844 1.1 christos fi 3845 1.4 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3846 1.4 christos esac 3847 1.1 christos fi 3848 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3849 1.4 christos printf "%s\n" "$ac_cv_objext" >&6; } 3850 1.1 christos OBJEXT=$ac_cv_objext 3851 1.1 christos ac_objext=$OBJEXT 3852 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3853 1.4 christos printf %s "checking whether the compiler supports GNU C... " >&6; } 3854 1.4 christos if test ${ac_cv_c_compiler_gnu+y} 3855 1.4 christos then : 3856 1.4 christos printf %s "(cached) " >&6 3857 1.4 christos else case e in #( 3858 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859 1.1 christos /* end confdefs.h. */ 3860 1.1 christos 3861 1.1 christos int 3862 1.4 christos main (void) 3863 1.1 christos { 3864 1.1 christos #ifndef __GNUC__ 3865 1.1 christos choke me 3866 1.1 christos #endif 3867 1.1 christos 3868 1.1 christos ; 3869 1.1 christos return 0; 3870 1.1 christos } 3871 1.1 christos _ACEOF 3872 1.4 christos if ac_fn_c_try_compile "$LINENO" 3873 1.4 christos then : 3874 1.1 christos ac_compiler_gnu=yes 3875 1.4 christos else case e in #( 3876 1.4 christos e) ac_compiler_gnu=no ;; 3877 1.4 christos esac 3878 1.1 christos fi 3879 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3880 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu 3881 1.4 christos ;; 3882 1.4 christos esac 3883 1.4 christos fi 3884 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3885 1.4 christos printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3886 1.4 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 3887 1.1 christos 3888 1.1 christos if test $ac_compiler_gnu = yes; then 3889 1.1 christos GCC=yes 3890 1.1 christos else 3891 1.1 christos GCC= 3892 1.1 christos fi 3893 1.4 christos ac_test_CFLAGS=${CFLAGS+y} 3894 1.1 christos ac_save_CFLAGS=$CFLAGS 3895 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3896 1.4 christos printf %s "checking whether $CC accepts -g... " >&6; } 3897 1.4 christos if test ${ac_cv_prog_cc_g+y} 3898 1.4 christos then : 3899 1.4 christos printf %s "(cached) " >&6 3900 1.4 christos else case e in #( 3901 1.4 christos e) ac_save_c_werror_flag=$ac_c_werror_flag 3902 1.1 christos ac_c_werror_flag=yes 3903 1.1 christos ac_cv_prog_cc_g=no 3904 1.1 christos CFLAGS="-g" 3905 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3906 1.1 christos /* end confdefs.h. */ 3907 1.1 christos 3908 1.1 christos int 3909 1.4 christos main (void) 3910 1.1 christos { 3911 1.1 christos 3912 1.1 christos ; 3913 1.1 christos return 0; 3914 1.1 christos } 3915 1.1 christos _ACEOF 3916 1.4 christos if ac_fn_c_try_compile "$LINENO" 3917 1.4 christos then : 3918 1.1 christos ac_cv_prog_cc_g=yes 3919 1.4 christos else case e in #( 3920 1.4 christos e) CFLAGS="" 3921 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922 1.1 christos /* end confdefs.h. */ 3923 1.1 christos 3924 1.1 christos int 3925 1.4 christos main (void) 3926 1.1 christos { 3927 1.1 christos 3928 1.1 christos ; 3929 1.1 christos return 0; 3930 1.1 christos } 3931 1.1 christos _ACEOF 3932 1.4 christos if ac_fn_c_try_compile "$LINENO" 3933 1.4 christos then : 3934 1.1 christos 3935 1.4 christos else case e in #( 3936 1.4 christos e) ac_c_werror_flag=$ac_save_c_werror_flag 3937 1.1 christos CFLAGS="-g" 3938 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3939 1.1 christos /* end confdefs.h. */ 3940 1.1 christos 3941 1.1 christos int 3942 1.4 christos main (void) 3943 1.1 christos { 3944 1.1 christos 3945 1.1 christos ; 3946 1.1 christos return 0; 3947 1.1 christos } 3948 1.1 christos _ACEOF 3949 1.4 christos if ac_fn_c_try_compile "$LINENO" 3950 1.4 christos then : 3951 1.1 christos ac_cv_prog_cc_g=yes 3952 1.1 christos fi 3953 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3954 1.4 christos esac 3955 1.1 christos fi 3956 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3957 1.4 christos esac 3958 1.1 christos fi 3959 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3960 1.4 christos ac_c_werror_flag=$ac_save_c_werror_flag ;; 3961 1.4 christos esac 3962 1.1 christos fi 3963 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3964 1.4 christos printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3965 1.4 christos if test $ac_test_CFLAGS; then 3966 1.1 christos CFLAGS=$ac_save_CFLAGS 3967 1.1 christos elif test $ac_cv_prog_cc_g = yes; then 3968 1.1 christos if test "$GCC" = yes; then 3969 1.1 christos CFLAGS="-g -O2" 3970 1.1 christos else 3971 1.1 christos CFLAGS="-g" 3972 1.1 christos fi 3973 1.1 christos else 3974 1.1 christos if test "$GCC" = yes; then 3975 1.1 christos CFLAGS="-O2" 3976 1.1 christos else 3977 1.1 christos CFLAGS= 3978 1.1 christos fi 3979 1.1 christos fi 3980 1.4 christos ac_prog_cc_stdc=no 3981 1.4 christos if test x$ac_prog_cc_stdc = xno 3982 1.4 christos then : 3983 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3984 1.4 christos printf %s "checking for $CC option to enable C11 features... " >&6; } 3985 1.4 christos if test ${ac_cv_prog_cc_c11+y} 3986 1.4 christos then : 3987 1.4 christos printf %s "(cached) " >&6 3988 1.4 christos else case e in #( 3989 1.4 christos e) ac_cv_prog_cc_c11=no 3990 1.1 christos ac_save_CC=$CC 3991 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992 1.1 christos /* end confdefs.h. */ 3993 1.4 christos $ac_c_conftest_c11_program 3994 1.4 christos _ACEOF 3995 1.4 christos for ac_arg in '' -std=gnu11 3996 1.4 christos do 3997 1.4 christos CC="$ac_save_CC $ac_arg" 3998 1.4 christos if ac_fn_c_try_compile "$LINENO" 3999 1.4 christos then : 4000 1.4 christos ac_cv_prog_cc_c11=$ac_arg 4001 1.4 christos fi 4002 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam 4003 1.4 christos test "x$ac_cv_prog_cc_c11" != "xno" && break 4004 1.4 christos done 4005 1.4 christos rm -f conftest.$ac_ext 4006 1.4 christos CC=$ac_save_CC ;; 4007 1.4 christos esac 4008 1.4 christos fi 4009 1.1 christos 4010 1.4 christos if test "x$ac_cv_prog_cc_c11" = xno 4011 1.4 christos then : 4012 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4013 1.4 christos printf "%s\n" "unsupported" >&6; } 4014 1.4 christos else case e in #( 4015 1.4 christos e) if test "x$ac_cv_prog_cc_c11" = x 4016 1.4 christos then : 4017 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4018 1.4 christos printf "%s\n" "none needed" >&6; } 4019 1.4 christos else case e in #( 4020 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4021 1.4 christos printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4022 1.4 christos CC="$CC $ac_cv_prog_cc_c11" ;; 4023 1.4 christos esac 4024 1.4 christos fi 4025 1.4 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4026 1.4 christos ac_prog_cc_stdc=c11 ;; 4027 1.4 christos esac 4028 1.4 christos fi 4029 1.4 christos fi 4030 1.4 christos if test x$ac_prog_cc_stdc = xno 4031 1.4 christos then : 4032 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4033 1.4 christos printf %s "checking for $CC option to enable C99 features... " >&6; } 4034 1.4 christos if test ${ac_cv_prog_cc_c99+y} 4035 1.4 christos then : 4036 1.4 christos printf %s "(cached) " >&6 4037 1.4 christos else case e in #( 4038 1.4 christos e) ac_cv_prog_cc_c99=no 4039 1.4 christos ac_save_CC=$CC 4040 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041 1.4 christos /* end confdefs.h. */ 4042 1.4 christos $ac_c_conftest_c99_program 4043 1.4 christos _ACEOF 4044 1.4 christos for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4045 1.4 christos do 4046 1.4 christos CC="$ac_save_CC $ac_arg" 4047 1.4 christos if ac_fn_c_try_compile "$LINENO" 4048 1.4 christos then : 4049 1.4 christos ac_cv_prog_cc_c99=$ac_arg 4050 1.4 christos fi 4051 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam 4052 1.4 christos test "x$ac_cv_prog_cc_c99" != "xno" && break 4053 1.4 christos done 4054 1.4 christos rm -f conftest.$ac_ext 4055 1.4 christos CC=$ac_save_CC ;; 4056 1.4 christos esac 4057 1.4 christos fi 4058 1.1 christos 4059 1.4 christos if test "x$ac_cv_prog_cc_c99" = xno 4060 1.4 christos then : 4061 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4062 1.4 christos printf "%s\n" "unsupported" >&6; } 4063 1.4 christos else case e in #( 4064 1.4 christos e) if test "x$ac_cv_prog_cc_c99" = x 4065 1.4 christos then : 4066 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4067 1.4 christos printf "%s\n" "none needed" >&6; } 4068 1.4 christos else case e in #( 4069 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4070 1.4 christos printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4071 1.4 christos CC="$CC $ac_cv_prog_cc_c99" ;; 4072 1.4 christos esac 4073 1.4 christos fi 4074 1.4 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4075 1.4 christos ac_prog_cc_stdc=c99 ;; 4076 1.4 christos esac 4077 1.4 christos fi 4078 1.4 christos fi 4079 1.4 christos if test x$ac_prog_cc_stdc = xno 4080 1.4 christos then : 4081 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4082 1.4 christos printf %s "checking for $CC option to enable C89 features... " >&6; } 4083 1.4 christos if test ${ac_cv_prog_cc_c89+y} 4084 1.4 christos then : 4085 1.4 christos printf %s "(cached) " >&6 4086 1.4 christos else case e in #( 4087 1.4 christos e) ac_cv_prog_cc_c89=no 4088 1.4 christos ac_save_CC=$CC 4089 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090 1.4 christos /* end confdefs.h. */ 4091 1.4 christos $ac_c_conftest_c89_program 4092 1.1 christos _ACEOF 4093 1.4 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4094 1.1 christos do 4095 1.1 christos CC="$ac_save_CC $ac_arg" 4096 1.4 christos if ac_fn_c_try_compile "$LINENO" 4097 1.4 christos then : 4098 1.1 christos ac_cv_prog_cc_c89=$ac_arg 4099 1.1 christos fi 4100 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam 4101 1.1 christos test "x$ac_cv_prog_cc_c89" != "xno" && break 4102 1.1 christos done 4103 1.1 christos rm -f conftest.$ac_ext 4104 1.4 christos CC=$ac_save_CC ;; 4105 1.4 christos esac 4106 1.4 christos fi 4107 1.1 christos 4108 1.4 christos if test "x$ac_cv_prog_cc_c89" = xno 4109 1.4 christos then : 4110 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4111 1.4 christos printf "%s\n" "unsupported" >&6; } 4112 1.4 christos else case e in #( 4113 1.4 christos e) if test "x$ac_cv_prog_cc_c89" = x 4114 1.4 christos then : 4115 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4116 1.4 christos printf "%s\n" "none needed" >&6; } 4117 1.4 christos else case e in #( 4118 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4119 1.4 christos printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4120 1.4 christos CC="$CC $ac_cv_prog_cc_c89" ;; 4121 1.4 christos esac 4122 1.1 christos fi 4123 1.4 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4124 1.4 christos ac_prog_cc_stdc=c89 ;; 4125 1.1 christos esac 4126 1.4 christos fi 4127 1.1 christos fi 4128 1.1 christos 4129 1.1 christos ac_ext=c 4130 1.1 christos ac_cpp='$CPP $CPPFLAGS' 4131 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4132 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4133 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 4134 1.1 christos 4135 1.1 christos 4136 1.4 christos ac_header= ac_cache= 4137 1.4 christos for ac_item in $ac_header_c_list 4138 1.1 christos do 4139 1.4 christos if test $ac_cache; then 4140 1.4 christos ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4141 1.4 christos if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4142 1.4 christos printf "%s\n" "#define $ac_item 1" >> confdefs.h 4143 1.4 christos fi 4144 1.4 christos ac_header= ac_cache= 4145 1.4 christos elif test $ac_header; then 4146 1.4 christos ac_cache=$ac_item 4147 1.4 christos else 4148 1.4 christos ac_header=$ac_item 4149 1.4 christos fi 4150 1.4 christos done 4151 1.4 christos 4152 1.4 christos 4153 1.4 christos 4154 1.4 christos 4155 1.4 christos 4156 1.4 christos 4157 1.4 christos 4158 1.4 christos 4159 1.4 christos if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4160 1.4 christos then : 4161 1.4 christos 4162 1.4 christos printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4163 1.1 christos 4164 1.1 christos fi 4165 1.1 christos 4166 1.4 christos 4167 1.4 christos 4168 1.4 christos 4169 1.4 christos 4170 1.4 christos 4171 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4172 1.4 christos printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4173 1.4 christos if test ${ac_cv_safe_to_define___extensions__+y} 4174 1.4 christos then : 4175 1.4 christos printf %s "(cached) " >&6 4176 1.4 christos else case e in #( 4177 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178 1.1 christos /* end confdefs.h. */ 4179 1.4 christos 4180 1.4 christos # define __EXTENSIONS__ 1 4181 1.4 christos $ac_includes_default 4182 1.4 christos int 4183 1.4 christos main (void) 4184 1.4 christos { 4185 1.4 christos 4186 1.4 christos ; 4187 1.4 christos return 0; 4188 1.4 christos } 4189 1.1 christos _ACEOF 4190 1.4 christos if ac_fn_c_try_compile "$LINENO" 4191 1.4 christos then : 4192 1.4 christos ac_cv_safe_to_define___extensions__=yes 4193 1.4 christos else case e in #( 4194 1.4 christos e) ac_cv_safe_to_define___extensions__=no ;; 4195 1.4 christos esac 4196 1.1 christos fi 4197 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4198 1.4 christos esac 4199 1.1 christos fi 4200 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4201 1.4 christos printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4202 1.1 christos 4203 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4204 1.4 christos printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4205 1.4 christos if test ${ac_cv_should_define__xopen_source+y} 4206 1.4 christos then : 4207 1.4 christos printf %s "(cached) " >&6 4208 1.4 christos else case e in #( 4209 1.4 christos e) ac_cv_should_define__xopen_source=no 4210 1.4 christos if test $ac_cv_header_wchar_h = yes 4211 1.4 christos then : 4212 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213 1.1 christos /* end confdefs.h. */ 4214 1.1 christos 4215 1.4 christos #include <wchar.h> 4216 1.4 christos mbstate_t x; 4217 1.4 christos int 4218 1.4 christos main (void) 4219 1.4 christos { 4220 1.1 christos 4221 1.4 christos ; 4222 1.4 christos return 0; 4223 1.4 christos } 4224 1.1 christos _ACEOF 4225 1.4 christos if ac_fn_c_try_compile "$LINENO" 4226 1.4 christos then : 4227 1.1 christos 4228 1.4 christos else case e in #( 4229 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230 1.1 christos /* end confdefs.h. */ 4231 1.1 christos 4232 1.4 christos #define _XOPEN_SOURCE 500 4233 1.4 christos #include <wchar.h> 4234 1.4 christos mbstate_t x; 4235 1.1 christos int 4236 1.4 christos main (void) 4237 1.1 christos { 4238 1.1 christos 4239 1.1 christos ; 4240 1.1 christos return 0; 4241 1.1 christos } 4242 1.1 christos _ACEOF 4243 1.4 christos if ac_fn_c_try_compile "$LINENO" 4244 1.4 christos then : 4245 1.4 christos ac_cv_should_define__xopen_source=yes 4246 1.4 christos fi 4247 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4248 1.4 christos esac 4249 1.1 christos fi 4250 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4251 1.4 christos fi ;; 4252 1.4 christos esac 4253 1.1 christos fi 4254 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4255 1.4 christos printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4256 1.1 christos 4257 1.4 christos printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4258 1.1 christos 4259 1.4 christos printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4260 1.1 christos 4261 1.4 christos printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4262 1.1 christos 4263 1.4 christos printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4264 1.1 christos 4265 1.4 christos printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4266 1.1 christos 4267 1.4 christos printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4268 1.1 christos 4269 1.4 christos printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4270 1.1 christos 4271 1.4 christos printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4272 1.1 christos 4273 1.4 christos printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4274 1.1 christos 4275 1.4 christos printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4276 1.1 christos 4277 1.4 christos printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4278 1.1 christos 4279 1.4 christos printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4280 1.1 christos 4281 1.4 christos printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4282 1.1 christos 4283 1.4 christos printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4284 1.1 christos 4285 1.4 christos printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4286 1.1 christos 4287 1.4 christos printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4288 1.1 christos 4289 1.4 christos if test $ac_cv_header_minix_config_h = yes 4290 1.4 christos then : 4291 1.1 christos MINIX=yes 4292 1.4 christos printf "%s\n" "#define _MINIX 1" >>confdefs.h 4293 1.1 christos 4294 1.4 christos printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4295 1.1 christos 4296 1.4 christos printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4297 1.1 christos 4298 1.4 christos else case e in #( 4299 1.4 christos e) MINIX= ;; 4300 1.4 christos esac 4301 1.4 christos fi 4302 1.4 christos if test $ac_cv_safe_to_define___extensions__ = yes 4303 1.4 christos then : 4304 1.4 christos printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4305 1.1 christos 4306 1.4 christos fi 4307 1.4 christos if test $ac_cv_should_define__xopen_source = yes 4308 1.4 christos then : 4309 1.4 christos printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4310 1.1 christos 4311 1.1 christos fi 4312 1.1 christos 4313 1.1 christos if test "$ac_cv_header_minix_config_h" = "yes"; then 4314 1.1 christos 4315 1.4 christos printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4316 1.1 christos 4317 1.1 christos fi 4318 1.1 christos 4319 1.1 christos case "$prefix" in 4320 1.1 christos NONE) 4321 1.1 christos case "$sysconfdir" in 4322 1.1 christos '${prefix}/etc') 4323 1.1 christos sysconfdir=/etc 4324 1.1 christos ;; 4325 1.1 christos esac 4326 1.1 christos case "$localstatedir" in 4327 1.1 christos '${prefix}/var') 4328 1.1 christos localstatedir=/var 4329 1.1 christos ;; 4330 1.1 christos esac 4331 1.1 christos ;; 4332 1.1 christos esac 4333 1.1 christos 4334 1.1 christos # 4335 1.1 christos # Determine configuration directory 4336 1.1 christos # 4337 1.1 christos configdir=$sysconfdir/nsd 4338 1.1 christos 4339 1.1 christos # Check whether --with-configdir was given. 4340 1.4 christos if test ${with_configdir+y} 4341 1.4 christos then : 4342 1.1 christos withval=$with_configdir; configdir=$withval 4343 1.1 christos fi 4344 1.1 christos 4345 1.1 christos 4346 1.1 christos cat >>confdefs.h <<_ACEOF 4347 1.1 christos #define CONFIGDIR "`eval echo $configdir`" 4348 1.1 christos _ACEOF 4349 1.1 christos 4350 1.1 christos 4351 1.1 christos 4352 1.1 christos # 4353 1.1 christos # Determine configuration file 4354 1.1 christos nsd_conf_file=${configdir}/nsd.conf 4355 1.1 christos 4356 1.1 christos # Check whether --with-nsd_conf_file was given. 4357 1.4 christos if test ${with_nsd_conf_file+y} 4358 1.4 christos then : 4359 1.1 christos withval=$with_nsd_conf_file; nsd_conf_file=$withval 4360 1.1 christos fi 4361 1.1 christos 4362 1.1 christos 4363 1.1 christos # the eval is to evaluate shell expansion twice, once 4364 1.1 christos # for $nsd_conf_file and once for the ${prefix} within it. 4365 1.1 christos 4366 1.1 christos cat >>confdefs.h <<_ACEOF 4367 1.1 christos #define CONFIGFILE "`eval echo $nsd_conf_file`" 4368 1.1 christos _ACEOF 4369 1.1 christos 4370 1.1 christos 4371 1.1 christos # 4372 1.1 christos # Default logfile 4373 1.1 christos # 4374 1.1 christos logfile=${localstatedir}/log/nsd.log 4375 1.1 christos 4376 1.1 christos # Check whether --with-logfile was given. 4377 1.4 christos if test ${with_logfile+y} 4378 1.4 christos then : 4379 1.1 christos withval=$with_logfile; logfile=$withval 4380 1.1 christos fi 4381 1.1 christos 4382 1.1 christos 4383 1.1 christos 4384 1.1 christos # 4385 1.1 christos # Database directory 4386 1.1 christos # 4387 1.1 christos dbdir=${localstatedir}/db/nsd 4388 1.1 christos 4389 1.4 christos # Check whether --with-dbdir was given. 4390 1.4 christos if test ${with_dbdir+y} 4391 1.4 christos then : 4392 1.4 christos withval=$with_dbdir; dbdir=$withval 4393 1.4 christos fi 4394 1.4 christos 4395 1.4 christos 4396 1.1 christos # 4397 1.1 christos # Determine the pidfile location. Check if /var/run exists, if so set pidfile 4398 1.1 christos # to /var/run/nsd.pid by default 4399 1.1 christos # 4400 1.1 christos if test -d ${localstatedir}/run; then 4401 1.1 christos pidfile=${localstatedir}/run/nsd.pid 4402 1.1 christos else 4403 1.1 christos pidfile=${dbdir}/nsd.pid 4404 1.1 christos fi 4405 1.1 christos 4406 1.1 christos # Check whether --with-pidfile was given. 4407 1.4 christos if test ${with_pidfile+y} 4408 1.4 christos then : 4409 1.1 christos withval=$with_pidfile; pidfile=$withval 4410 1.1 christos fi 4411 1.1 christos 4412 1.1 christos 4413 1.1 christos 4414 1.1 christos cat >>confdefs.h <<_ACEOF 4415 1.1 christos #define PIDFILE "`eval echo $pidfile`" 4416 1.1 christos _ACEOF 4417 1.1 christos 4418 1.1 christos 4419 1.1 christos 4420 1.1 christos # Check whether --with-dbfile was given. 4421 1.4 christos if test ${with_dbfile+y} 4422 1.4 christos then : 4423 1.3 christos withval=$with_dbfile; 4424 1.1 christos fi 4425 1.1 christos 4426 1.1 christos 4427 1.1 christos piddir=`dirname $pidfile` 4428 1.1 christos 4429 1.1 christos 4430 1.1 christos # 4431 1.1 christos # Determine the default directory for the zone files 4432 1.1 christos # 4433 1.1 christos zonesdir=$configdir 4434 1.1 christos 4435 1.1 christos # Check whether --with-zonesdir was given. 4436 1.4 christos if test ${with_zonesdir+y} 4437 1.4 christos then : 4438 1.1 christos withval=$with_zonesdir; zonesdir=$withval 4439 1.1 christos fi 4440 1.1 christos 4441 1.1 christos 4442 1.1 christos 4443 1.1 christos cat >>confdefs.h <<_ACEOF 4444 1.1 christos #define ZONESDIR "`eval echo $zonesdir`" 4445 1.1 christos _ACEOF 4446 1.1 christos 4447 1.1 christos 4448 1.1 christos # default xfrd file location. 4449 1.1 christos xfrdfile=${dbdir}/xfrd.state 4450 1.1 christos 4451 1.1 christos # Check whether --with-xfrdfile was given. 4452 1.4 christos if test ${with_xfrdfile+y} 4453 1.4 christos then : 4454 1.1 christos withval=$with_xfrdfile; xfrdfile=$withval 4455 1.1 christos fi 4456 1.1 christos 4457 1.1 christos 4458 1.1 christos cat >>confdefs.h <<_ACEOF 4459 1.1 christos #define XFRDFILE "`eval echo $xfrdfile`" 4460 1.1 christos _ACEOF 4461 1.1 christos 4462 1.1 christos 4463 1.1 christos 4464 1.1 christos # default zonelist file location. 4465 1.1 christos zonelistfile=${dbdir}/zone.list 4466 1.1 christos 4467 1.1 christos # Check whether --with-zonelistfile was given. 4468 1.4 christos if test ${with_zonelistfile+y} 4469 1.4 christos then : 4470 1.1 christos withval=$with_zonelistfile; zonelistfile=$withval 4471 1.1 christos fi 4472 1.1 christos 4473 1.1 christos 4474 1.1 christos cat >>confdefs.h <<_ACEOF 4475 1.1 christos #define ZONELISTFILE "`eval echo $zonelistfile`" 4476 1.1 christos _ACEOF 4477 1.1 christos 4478 1.1 christos 4479 1.1 christos 4480 1.4 christos # default cookiesecrets file location. 4481 1.4 christos cookiesecretsfile=${dbdir}/cookiesecrets.txt 4482 1.4 christos 4483 1.4 christos # Check whether --with-cookiesecretsfile was given. 4484 1.4 christos if test ${with_cookiesecretsfile+y} 4485 1.4 christos then : 4486 1.4 christos withval=$with_cookiesecretsfile; cookiesecretsfile=$withval 4487 1.4 christos fi 4488 1.4 christos 4489 1.4 christos 4490 1.4 christos cat >>confdefs.h <<_ACEOF 4491 1.4 christos #define COOKIESECRETSFILE "`eval echo $cookiesecretsfile`" 4492 1.4 christos _ACEOF 4493 1.4 christos 4494 1.4 christos 4495 1.4 christos 4496 1.1 christos # default xfr dir location. 4497 1.1 christos xfrdir="/tmp" 4498 1.1 christos 4499 1.1 christos # Check whether --with-xfrdir was given. 4500 1.4 christos if test ${with_xfrdir+y} 4501 1.4 christos then : 4502 1.1 christos withval=$with_xfrdir; xfrdir=$withval 4503 1.1 christos fi 4504 1.1 christos 4505 1.1 christos 4506 1.1 christos cat >>confdefs.h <<_ACEOF 4507 1.1 christos #define XFRDIR "`eval echo $xfrdir`" 4508 1.1 christos _ACEOF 4509 1.1 christos 4510 1.1 christos 4511 1.1 christos 4512 1.4 christos sharedfilesdir=${datarootdir}/nsd 4513 1.4 christos 4514 1.4 christos # Check whether --with-sharedfilesdir was given. 4515 1.4 christos if test ${with_sharedfilesdir+y} 4516 1.4 christos then : 4517 1.4 christos withval=$with_sharedfilesdir; sharedfilesdir=$withval 4518 1.4 christos fi 4519 1.4 christos 4520 1.4 christos 4521 1.4 christos cat >>confdefs.h <<_ACEOF 4522 1.4 christos #define SHAREDFILESDIR "`eval echo $sharedfilesdir`" 4523 1.4 christos _ACEOF 4524 1.4 christos 4525 1.4 christos 4526 1.4 christos 4527 1.1 christos # nsd sbin location. tmpinstantiate execprefix with defaults if not yet done. 4528 1.1 christos if test "x${exec_prefix}" = "xNONE"; then 4529 1.1 christos if test "x${prefix}" = "xNONE"; then exec_prefix="$ac_default_prefix" 4530 1.1 christos else exec_prefix="${prefix}"; fi 4531 1.1 christos nsd_start_path="`eval echo $sbindir`/nsd" 4532 1.1 christos exec_prefix="NONE" 4533 1.1 christos else 4534 1.1 christos nsd_start_path="`eval echo $sbindir`/nsd" 4535 1.1 christos fi 4536 1.1 christos 4537 1.4 christos printf "%s\n" "#define NSD_START_PATH \"$nsd_start_path\"" >>confdefs.h 4538 1.1 christos 4539 1.1 christos 4540 1.1 christos # 4541 1.1 christos # Determine default chroot directory 4542 1.1 christos # 4543 1.1 christos 4544 1.1 christos # Check whether --with-chroot was given. 4545 1.4 christos if test ${with_chroot+y} 4546 1.4 christos then : 4547 1.1 christos withval=$with_chroot; 4548 1.1 christos chrootdir=$withval 4549 1.1 christos 4550 1.1 christos cat >>confdefs.h <<_ACEOF 4551 1.1 christos #define CHROOTDIR "`eval echo $chrootdir`" 4552 1.1 christos _ACEOF 4553 1.1 christos 4554 1.1 christos 4555 1.1 christos fi 4556 1.1 christos 4557 1.1 christos 4558 1.1 christos 4559 1.1 christos # 4560 1.1 christos # Determine the user name to drop privileges to 4561 1.1 christos # 4562 1.1 christos user=nsd 4563 1.1 christos 4564 1.1 christos # Check whether --with-user was given. 4565 1.4 christos if test ${with_user+y} 4566 1.4 christos then : 4567 1.1 christos withval=$with_user; user=$withval 4568 1.1 christos fi 4569 1.1 christos 4570 1.1 christos 4571 1.1 christos 4572 1.4 christos printf "%s\n" "#define USER \"$user\"" >>confdefs.h 4573 1.1 christos 4574 1.1 christos 4575 1.4 christos ac_ext=c 4576 1.4 christos ac_cpp='$CPP $CPPFLAGS' 4577 1.4 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4578 1.4 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4579 1.4 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 4580 1.4 christos if test -n "$ac_tool_prefix"; then 4581 1.4 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4582 1.4 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2 4583 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4584 1.4 christos printf %s "checking for $ac_word... " >&6; } 4585 1.4 christos if test ${ac_cv_prog_CC+y} 4586 1.4 christos then : 4587 1.4 christos printf %s "(cached) " >&6 4588 1.4 christos else case e in #( 4589 1.4 christos e) if test -n "$CC"; then 4590 1.4 christos ac_cv_prog_CC="$CC" # Let the user override the test. 4591 1.1 christos else 4592 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4593 1.4 christos for as_dir in $PATH 4594 1.4 christos do 4595 1.4 christos IFS=$as_save_IFS 4596 1.4 christos case $as_dir in #((( 4597 1.4 christos '') as_dir=./ ;; 4598 1.4 christos */) ;; 4599 1.4 christos *) as_dir=$as_dir/ ;; 4600 1.4 christos esac 4601 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 4602 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4603 1.4 christos ac_cv_prog_CC="${ac_tool_prefix}gcc" 4604 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4605 1.4 christos break 2 4606 1.4 christos fi 4607 1.4 christos done 4608 1.4 christos done 4609 1.4 christos IFS=$as_save_IFS 4610 1.4 christos 4611 1.4 christos fi ;; 4612 1.4 christos esac 4613 1.4 christos fi 4614 1.4 christos CC=$ac_cv_prog_CC 4615 1.4 christos if test -n "$CC"; then 4616 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4617 1.4 christos printf "%s\n" "$CC" >&6; } 4618 1.4 christos else 4619 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4620 1.4 christos printf "%s\n" "no" >&6; } 4621 1.4 christos fi 4622 1.4 christos 4623 1.4 christos 4624 1.4 christos fi 4625 1.4 christos if test -z "$ac_cv_prog_CC"; then 4626 1.4 christos ac_ct_CC=$CC 4627 1.4 christos # Extract the first word of "gcc", so it can be a program name with args. 4628 1.4 christos set dummy gcc; ac_word=$2 4629 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4630 1.4 christos printf %s "checking for $ac_word... " >&6; } 4631 1.4 christos if test ${ac_cv_prog_ac_ct_CC+y} 4632 1.4 christos then : 4633 1.4 christos printf %s "(cached) " >&6 4634 1.4 christos else case e in #( 4635 1.4 christos e) if test -n "$ac_ct_CC"; then 4636 1.4 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4637 1.4 christos else 4638 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4639 1.4 christos for as_dir in $PATH 4640 1.4 christos do 4641 1.4 christos IFS=$as_save_IFS 4642 1.4 christos case $as_dir in #((( 4643 1.4 christos '') as_dir=./ ;; 4644 1.4 christos */) ;; 4645 1.4 christos *) as_dir=$as_dir/ ;; 4646 1.4 christos esac 4647 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 4648 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4649 1.4 christos ac_cv_prog_ac_ct_CC="gcc" 4650 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4651 1.4 christos break 2 4652 1.4 christos fi 4653 1.4 christos done 4654 1.4 christos done 4655 1.4 christos IFS=$as_save_IFS 4656 1.4 christos 4657 1.4 christos fi ;; 4658 1.4 christos esac 4659 1.4 christos fi 4660 1.4 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 4661 1.4 christos if test -n "$ac_ct_CC"; then 4662 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4663 1.4 christos printf "%s\n" "$ac_ct_CC" >&6; } 4664 1.4 christos else 4665 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4666 1.4 christos printf "%s\n" "no" >&6; } 4667 1.4 christos fi 4668 1.4 christos 4669 1.4 christos if test "x$ac_ct_CC" = x; then 4670 1.4 christos CC="" 4671 1.4 christos else 4672 1.4 christos case $cross_compiling:$ac_tool_warned in 4673 1.4 christos yes:) 4674 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4675 1.4 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4676 1.4 christos ac_tool_warned=yes ;; 4677 1.4 christos esac 4678 1.4 christos CC=$ac_ct_CC 4679 1.4 christos fi 4680 1.4 christos else 4681 1.4 christos CC="$ac_cv_prog_CC" 4682 1.4 christos fi 4683 1.4 christos 4684 1.4 christos if test -z "$CC"; then 4685 1.4 christos if test -n "$ac_tool_prefix"; then 4686 1.4 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4687 1.4 christos set dummy ${ac_tool_prefix}cc; ac_word=$2 4688 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4689 1.4 christos printf %s "checking for $ac_word... " >&6; } 4690 1.4 christos if test ${ac_cv_prog_CC+y} 4691 1.4 christos then : 4692 1.4 christos printf %s "(cached) " >&6 4693 1.4 christos else case e in #( 4694 1.4 christos e) if test -n "$CC"; then 4695 1.4 christos ac_cv_prog_CC="$CC" # Let the user override the test. 4696 1.4 christos else 4697 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4698 1.4 christos for as_dir in $PATH 4699 1.4 christos do 4700 1.4 christos IFS=$as_save_IFS 4701 1.4 christos case $as_dir in #((( 4702 1.4 christos '') as_dir=./ ;; 4703 1.4 christos */) ;; 4704 1.4 christos *) as_dir=$as_dir/ ;; 4705 1.4 christos esac 4706 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 4707 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4708 1.4 christos ac_cv_prog_CC="${ac_tool_prefix}cc" 4709 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4710 1.4 christos break 2 4711 1.4 christos fi 4712 1.4 christos done 4713 1.4 christos done 4714 1.4 christos IFS=$as_save_IFS 4715 1.4 christos 4716 1.4 christos fi ;; 4717 1.4 christos esac 4718 1.4 christos fi 4719 1.4 christos CC=$ac_cv_prog_CC 4720 1.4 christos if test -n "$CC"; then 4721 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4722 1.4 christos printf "%s\n" "$CC" >&6; } 4723 1.4 christos else 4724 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4725 1.4 christos printf "%s\n" "no" >&6; } 4726 1.4 christos fi 4727 1.4 christos 4728 1.4 christos 4729 1.4 christos fi 4730 1.4 christos fi 4731 1.4 christos if test -z "$CC"; then 4732 1.4 christos # Extract the first word of "cc", so it can be a program name with args. 4733 1.4 christos set dummy cc; ac_word=$2 4734 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4735 1.4 christos printf %s "checking for $ac_word... " >&6; } 4736 1.4 christos if test ${ac_cv_prog_CC+y} 4737 1.4 christos then : 4738 1.4 christos printf %s "(cached) " >&6 4739 1.4 christos else case e in #( 4740 1.4 christos e) if test -n "$CC"; then 4741 1.4 christos ac_cv_prog_CC="$CC" # Let the user override the test. 4742 1.4 christos else 4743 1.4 christos ac_prog_rejected=no 4744 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4745 1.4 christos for as_dir in $PATH 4746 1.4 christos do 4747 1.4 christos IFS=$as_save_IFS 4748 1.4 christos case $as_dir in #((( 4749 1.4 christos '') as_dir=./ ;; 4750 1.4 christos */) ;; 4751 1.4 christos *) as_dir=$as_dir/ ;; 4752 1.4 christos esac 4753 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 4754 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4755 1.4 christos if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4756 1.4 christos ac_prog_rejected=yes 4757 1.4 christos continue 4758 1.4 christos fi 4759 1.4 christos ac_cv_prog_CC="cc" 4760 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4761 1.4 christos break 2 4762 1.4 christos fi 4763 1.4 christos done 4764 1.4 christos done 4765 1.4 christos IFS=$as_save_IFS 4766 1.4 christos 4767 1.4 christos if test $ac_prog_rejected = yes; then 4768 1.4 christos # We found a bogon in the path, so make sure we never use it. 4769 1.4 christos set dummy $ac_cv_prog_CC 4770 1.4 christos shift 4771 1.4 christos if test $# != 0; then 4772 1.4 christos # We chose a different compiler from the bogus one. 4773 1.4 christos # However, it has the same basename, so the bogon will be chosen 4774 1.4 christos # first if we set CC to just the basename; use the full file name. 4775 1.4 christos shift 4776 1.4 christos ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4777 1.4 christos fi 4778 1.4 christos fi 4779 1.4 christos fi ;; 4780 1.4 christos esac 4781 1.4 christos fi 4782 1.4 christos CC=$ac_cv_prog_CC 4783 1.4 christos if test -n "$CC"; then 4784 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4785 1.4 christos printf "%s\n" "$CC" >&6; } 4786 1.4 christos else 4787 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4788 1.4 christos printf "%s\n" "no" >&6; } 4789 1.4 christos fi 4790 1.4 christos 4791 1.4 christos 4792 1.4 christos fi 4793 1.4 christos if test -z "$CC"; then 4794 1.4 christos if test -n "$ac_tool_prefix"; then 4795 1.4 christos for ac_prog in cl.exe 4796 1.4 christos do 4797 1.4 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4798 1.4 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4799 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800 1.4 christos printf %s "checking for $ac_word... " >&6; } 4801 1.4 christos if test ${ac_cv_prog_CC+y} 4802 1.4 christos then : 4803 1.4 christos printf %s "(cached) " >&6 4804 1.4 christos else case e in #( 4805 1.4 christos e) if test -n "$CC"; then 4806 1.4 christos ac_cv_prog_CC="$CC" # Let the user override the test. 4807 1.4 christos else 4808 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809 1.4 christos for as_dir in $PATH 4810 1.4 christos do 4811 1.4 christos IFS=$as_save_IFS 4812 1.4 christos case $as_dir in #((( 4813 1.4 christos '') as_dir=./ ;; 4814 1.4 christos */) ;; 4815 1.4 christos *) as_dir=$as_dir/ ;; 4816 1.4 christos esac 4817 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 4818 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4819 1.4 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4820 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4821 1.4 christos break 2 4822 1.4 christos fi 4823 1.4 christos done 4824 1.4 christos done 4825 1.4 christos IFS=$as_save_IFS 4826 1.4 christos 4827 1.4 christos fi ;; 4828 1.4 christos esac 4829 1.4 christos fi 4830 1.4 christos CC=$ac_cv_prog_CC 4831 1.4 christos if test -n "$CC"; then 4832 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4833 1.4 christos printf "%s\n" "$CC" >&6; } 4834 1.4 christos else 4835 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4836 1.4 christos printf "%s\n" "no" >&6; } 4837 1.4 christos fi 4838 1.4 christos 4839 1.4 christos 4840 1.4 christos test -n "$CC" && break 4841 1.4 christos done 4842 1.4 christos fi 4843 1.4 christos if test -z "$CC"; then 4844 1.4 christos ac_ct_CC=$CC 4845 1.4 christos for ac_prog in cl.exe 4846 1.4 christos do 4847 1.4 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 4848 1.4 christos set dummy $ac_prog; ac_word=$2 4849 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4850 1.4 christos printf %s "checking for $ac_word... " >&6; } 4851 1.4 christos if test ${ac_cv_prog_ac_ct_CC+y} 4852 1.4 christos then : 4853 1.4 christos printf %s "(cached) " >&6 4854 1.4 christos else case e in #( 4855 1.4 christos e) if test -n "$ac_ct_CC"; then 4856 1.4 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4857 1.4 christos else 4858 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4859 1.4 christos for as_dir in $PATH 4860 1.4 christos do 4861 1.4 christos IFS=$as_save_IFS 4862 1.4 christos case $as_dir in #((( 4863 1.4 christos '') as_dir=./ ;; 4864 1.4 christos */) ;; 4865 1.4 christos *) as_dir=$as_dir/ ;; 4866 1.4 christos esac 4867 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 4868 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4869 1.4 christos ac_cv_prog_ac_ct_CC="$ac_prog" 4870 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4871 1.4 christos break 2 4872 1.4 christos fi 4873 1.4 christos done 4874 1.4 christos done 4875 1.4 christos IFS=$as_save_IFS 4876 1.4 christos 4877 1.4 christos fi ;; 4878 1.4 christos esac 4879 1.4 christos fi 4880 1.4 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 4881 1.4 christos if test -n "$ac_ct_CC"; then 4882 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4883 1.4 christos printf "%s\n" "$ac_ct_CC" >&6; } 4884 1.4 christos else 4885 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4886 1.4 christos printf "%s\n" "no" >&6; } 4887 1.4 christos fi 4888 1.4 christos 4889 1.4 christos 4890 1.4 christos test -n "$ac_ct_CC" && break 4891 1.4 christos done 4892 1.4 christos 4893 1.4 christos if test "x$ac_ct_CC" = x; then 4894 1.4 christos CC="" 4895 1.4 christos else 4896 1.4 christos case $cross_compiling:$ac_tool_warned in 4897 1.4 christos yes:) 4898 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4899 1.4 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4900 1.4 christos ac_tool_warned=yes ;; 4901 1.4 christos esac 4902 1.4 christos CC=$ac_ct_CC 4903 1.4 christos fi 4904 1.4 christos fi 4905 1.4 christos 4906 1.4 christos fi 4907 1.4 christos if test -z "$CC"; then 4908 1.4 christos if test -n "$ac_tool_prefix"; then 4909 1.4 christos # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4910 1.4 christos set dummy ${ac_tool_prefix}clang; ac_word=$2 4911 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4912 1.4 christos printf %s "checking for $ac_word... " >&6; } 4913 1.4 christos if test ${ac_cv_prog_CC+y} 4914 1.4 christos then : 4915 1.4 christos printf %s "(cached) " >&6 4916 1.4 christos else case e in #( 4917 1.4 christos e) if test -n "$CC"; then 4918 1.4 christos ac_cv_prog_CC="$CC" # Let the user override the test. 4919 1.4 christos else 4920 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4921 1.4 christos for as_dir in $PATH 4922 1.4 christos do 4923 1.4 christos IFS=$as_save_IFS 4924 1.4 christos case $as_dir in #((( 4925 1.4 christos '') as_dir=./ ;; 4926 1.4 christos */) ;; 4927 1.4 christos *) as_dir=$as_dir/ ;; 4928 1.4 christos esac 4929 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 4930 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4931 1.4 christos ac_cv_prog_CC="${ac_tool_prefix}clang" 4932 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4933 1.4 christos break 2 4934 1.4 christos fi 4935 1.4 christos done 4936 1.4 christos done 4937 1.4 christos IFS=$as_save_IFS 4938 1.4 christos 4939 1.4 christos fi ;; 4940 1.4 christos esac 4941 1.4 christos fi 4942 1.4 christos CC=$ac_cv_prog_CC 4943 1.4 christos if test -n "$CC"; then 4944 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4945 1.4 christos printf "%s\n" "$CC" >&6; } 4946 1.4 christos else 4947 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4948 1.4 christos printf "%s\n" "no" >&6; } 4949 1.4 christos fi 4950 1.4 christos 4951 1.4 christos 4952 1.4 christos fi 4953 1.4 christos if test -z "$ac_cv_prog_CC"; then 4954 1.4 christos ac_ct_CC=$CC 4955 1.4 christos # Extract the first word of "clang", so it can be a program name with args. 4956 1.4 christos set dummy clang; ac_word=$2 4957 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958 1.4 christos printf %s "checking for $ac_word... " >&6; } 4959 1.4 christos if test ${ac_cv_prog_ac_ct_CC+y} 4960 1.4 christos then : 4961 1.4 christos printf %s "(cached) " >&6 4962 1.4 christos else case e in #( 4963 1.4 christos e) if test -n "$ac_ct_CC"; then 4964 1.4 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4965 1.4 christos else 4966 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4967 1.4 christos for as_dir in $PATH 4968 1.4 christos do 4969 1.4 christos IFS=$as_save_IFS 4970 1.4 christos case $as_dir in #((( 4971 1.4 christos '') as_dir=./ ;; 4972 1.4 christos */) ;; 4973 1.4 christos *) as_dir=$as_dir/ ;; 4974 1.4 christos esac 4975 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 4976 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4977 1.4 christos ac_cv_prog_ac_ct_CC="clang" 4978 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4979 1.4 christos break 2 4980 1.4 christos fi 4981 1.4 christos done 4982 1.4 christos done 4983 1.4 christos IFS=$as_save_IFS 4984 1.4 christos 4985 1.4 christos fi ;; 4986 1.4 christos esac 4987 1.4 christos fi 4988 1.4 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 4989 1.4 christos if test -n "$ac_ct_CC"; then 4990 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4991 1.4 christos printf "%s\n" "$ac_ct_CC" >&6; } 4992 1.4 christos else 4993 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4994 1.4 christos printf "%s\n" "no" >&6; } 4995 1.4 christos fi 4996 1.4 christos 4997 1.4 christos if test "x$ac_ct_CC" = x; then 4998 1.4 christos CC="" 4999 1.4 christos else 5000 1.4 christos case $cross_compiling:$ac_tool_warned in 5001 1.4 christos yes:) 5002 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5003 1.4 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5004 1.4 christos ac_tool_warned=yes ;; 5005 1.4 christos esac 5006 1.4 christos CC=$ac_ct_CC 5007 1.4 christos fi 5008 1.4 christos else 5009 1.4 christos CC="$ac_cv_prog_CC" 5010 1.4 christos fi 5011 1.1 christos 5012 1.4 christos fi 5013 1.3 christos 5014 1.1 christos 5015 1.4 christos test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5016 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5017 1.4 christos as_fn_error $? "no acceptable C compiler found in \$PATH 5018 1.4 christos See 'config.log' for more details" "$LINENO" 5; } 5019 1.1 christos 5020 1.4 christos # Provide some information about the compiler. 5021 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5022 1.4 christos set X $ac_compile 5023 1.4 christos ac_compiler=$2 5024 1.4 christos for ac_option in --version -v -V -qversion -version; do 5025 1.4 christos { { ac_try="$ac_compiler $ac_option >&5" 5026 1.4 christos case "(($ac_try" in 5027 1.4 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5028 1.4 christos *) ac_try_echo=$ac_try;; 5029 1.4 christos esac 5030 1.4 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5031 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 5032 1.4 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5033 1.4 christos ac_status=$? 5034 1.4 christos if test -s conftest.err; then 5035 1.4 christos sed '10a\ 5036 1.4 christos ... rest of stderr output deleted ... 5037 1.4 christos 10q' conftest.err >conftest.er1 5038 1.4 christos cat conftest.er1 >&5 5039 1.4 christos fi 5040 1.4 christos rm -f conftest.er1 conftest.err 5041 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5042 1.4 christos test $ac_status = 0; } 5043 1.4 christos done 5044 1.1 christos 5045 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5046 1.4 christos printf %s "checking whether the compiler supports GNU C... " >&6; } 5047 1.4 christos if test ${ac_cv_c_compiler_gnu+y} 5048 1.4 christos then : 5049 1.4 christos printf %s "(cached) " >&6 5050 1.4 christos else case e in #( 5051 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052 1.4 christos /* end confdefs.h. */ 5053 1.1 christos 5054 1.4 christos int 5055 1.4 christos main (void) 5056 1.3 christos { 5057 1.4 christos #ifndef __GNUC__ 5058 1.4 christos choke me 5059 1.4 christos #endif 5060 1.4 christos 5061 1.4 christos ; 5062 1.3 christos return 0; 5063 1.3 christos } 5064 1.4 christos _ACEOF 5065 1.4 christos if ac_fn_c_try_compile "$LINENO" 5066 1.4 christos then : 5067 1.4 christos ac_compiler_gnu=yes 5068 1.4 christos else case e in #( 5069 1.4 christos e) ac_compiler_gnu=no ;; 5070 1.4 christos esac 5071 1.4 christos fi 5072 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5073 1.4 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu 5074 1.4 christos ;; 5075 1.4 christos esac 5076 1.4 christos fi 5077 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5078 1.4 christos printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5079 1.4 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 5080 1.1 christos 5081 1.4 christos if test $ac_compiler_gnu = yes; then 5082 1.4 christos GCC=yes 5083 1.4 christos else 5084 1.4 christos GCC= 5085 1.4 christos fi 5086 1.4 christos ac_test_CFLAGS=${CFLAGS+y} 5087 1.4 christos ac_save_CFLAGS=$CFLAGS 5088 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5089 1.4 christos printf %s "checking whether $CC accepts -g... " >&6; } 5090 1.4 christos if test ${ac_cv_prog_cc_g+y} 5091 1.4 christos then : 5092 1.4 christos printf %s "(cached) " >&6 5093 1.4 christos else case e in #( 5094 1.4 christos e) ac_save_c_werror_flag=$ac_c_werror_flag 5095 1.4 christos ac_c_werror_flag=yes 5096 1.4 christos ac_cv_prog_cc_g=no 5097 1.4 christos CFLAGS="-g" 5098 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5099 1.4 christos /* end confdefs.h. */ 5100 1.1 christos 5101 1.1 christos int 5102 1.4 christos main (void) 5103 1.1 christos { 5104 1.1 christos 5105 1.4 christos ; 5106 1.4 christos return 0; 5107 1.4 christos } 5108 1.4 christos _ACEOF 5109 1.4 christos if ac_fn_c_try_compile "$LINENO" 5110 1.4 christos then : 5111 1.4 christos ac_cv_prog_cc_g=yes 5112 1.4 christos else case e in #( 5113 1.4 christos e) CFLAGS="" 5114 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115 1.4 christos /* end confdefs.h. */ 5116 1.1 christos 5117 1.4 christos int 5118 1.4 christos main (void) 5119 1.4 christos { 5120 1.1 christos 5121 1.4 christos ; 5122 1.4 christos return 0; 5123 1.4 christos } 5124 1.4 christos _ACEOF 5125 1.4 christos if ac_fn_c_try_compile "$LINENO" 5126 1.4 christos then : 5127 1.1 christos 5128 1.4 christos else case e in #( 5129 1.4 christos e) ac_c_werror_flag=$ac_save_c_werror_flag 5130 1.4 christos CFLAGS="-g" 5131 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132 1.4 christos /* end confdefs.h. */ 5133 1.1 christos 5134 1.4 christos int 5135 1.4 christos main (void) 5136 1.4 christos { 5137 1.1 christos 5138 1.1 christos ; 5139 1.1 christos return 0; 5140 1.1 christos } 5141 1.1 christos _ACEOF 5142 1.4 christos if ac_fn_c_try_compile "$LINENO" 5143 1.4 christos then : 5144 1.4 christos ac_cv_prog_cc_g=yes 5145 1.4 christos fi 5146 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5147 1.4 christos esac 5148 1.4 christos fi 5149 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5150 1.4 christos esac 5151 1.4 christos fi 5152 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5153 1.4 christos ac_c_werror_flag=$ac_save_c_werror_flag ;; 5154 1.4 christos esac 5155 1.4 christos fi 5156 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5157 1.4 christos printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5158 1.4 christos if test $ac_test_CFLAGS; then 5159 1.4 christos CFLAGS=$ac_save_CFLAGS 5160 1.4 christos elif test $ac_cv_prog_cc_g = yes; then 5161 1.4 christos if test "$GCC" = yes; then 5162 1.4 christos CFLAGS="-g -O2" 5163 1.4 christos else 5164 1.4 christos CFLAGS="-g" 5165 1.4 christos fi 5166 1.4 christos else 5167 1.4 christos if test "$GCC" = yes; then 5168 1.4 christos CFLAGS="-O2" 5169 1.4 christos else 5170 1.4 christos CFLAGS= 5171 1.4 christos fi 5172 1.4 christos fi 5173 1.4 christos ac_prog_cc_stdc=no 5174 1.4 christos if test x$ac_prog_cc_stdc = xno 5175 1.4 christos then : 5176 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5177 1.4 christos printf %s "checking for $CC option to enable C11 features... " >&6; } 5178 1.4 christos if test ${ac_cv_prog_cc_c11+y} 5179 1.4 christos then : 5180 1.4 christos printf %s "(cached) " >&6 5181 1.4 christos else case e in #( 5182 1.4 christos e) ac_cv_prog_cc_c11=no 5183 1.4 christos ac_save_CC=$CC 5184 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5185 1.4 christos /* end confdefs.h. */ 5186 1.4 christos $ac_c_conftest_c11_program 5187 1.4 christos _ACEOF 5188 1.4 christos for ac_arg in '' -std=gnu11 5189 1.4 christos do 5190 1.4 christos CC="$ac_save_CC $ac_arg" 5191 1.4 christos if ac_fn_c_try_compile "$LINENO" 5192 1.4 christos then : 5193 1.4 christos ac_cv_prog_cc_c11=$ac_arg 5194 1.4 christos fi 5195 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam 5196 1.4 christos test "x$ac_cv_prog_cc_c11" != "xno" && break 5197 1.4 christos done 5198 1.4 christos rm -f conftest.$ac_ext 5199 1.4 christos CC=$ac_save_CC ;; 5200 1.4 christos esac 5201 1.4 christos fi 5202 1.4 christos 5203 1.4 christos if test "x$ac_cv_prog_cc_c11" = xno 5204 1.4 christos then : 5205 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5206 1.4 christos printf "%s\n" "unsupported" >&6; } 5207 1.4 christos else case e in #( 5208 1.4 christos e) if test "x$ac_cv_prog_cc_c11" = x 5209 1.4 christos then : 5210 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5211 1.4 christos printf "%s\n" "none needed" >&6; } 5212 1.4 christos else case e in #( 5213 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5214 1.4 christos printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5215 1.4 christos CC="$CC $ac_cv_prog_cc_c11" ;; 5216 1.4 christos esac 5217 1.4 christos fi 5218 1.4 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5219 1.4 christos ac_prog_cc_stdc=c11 ;; 5220 1.4 christos esac 5221 1.4 christos fi 5222 1.4 christos fi 5223 1.4 christos if test x$ac_prog_cc_stdc = xno 5224 1.4 christos then : 5225 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5226 1.4 christos printf %s "checking for $CC option to enable C99 features... " >&6; } 5227 1.4 christos if test ${ac_cv_prog_cc_c99+y} 5228 1.4 christos then : 5229 1.4 christos printf %s "(cached) " >&6 5230 1.4 christos else case e in #( 5231 1.4 christos e) ac_cv_prog_cc_c99=no 5232 1.4 christos ac_save_CC=$CC 5233 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234 1.4 christos /* end confdefs.h. */ 5235 1.4 christos $ac_c_conftest_c99_program 5236 1.4 christos _ACEOF 5237 1.4 christos for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5238 1.3 christos do 5239 1.3 christos CC="$ac_save_CC $ac_arg" 5240 1.4 christos if ac_fn_c_try_compile "$LINENO" 5241 1.4 christos then : 5242 1.3 christos ac_cv_prog_cc_c99=$ac_arg 5243 1.1 christos fi 5244 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam 5245 1.3 christos test "x$ac_cv_prog_cc_c99" != "xno" && break 5246 1.3 christos done 5247 1.3 christos rm -f conftest.$ac_ext 5248 1.4 christos CC=$ac_save_CC ;; 5249 1.4 christos esac 5250 1.4 christos fi 5251 1.3 christos 5252 1.4 christos if test "x$ac_cv_prog_cc_c99" = xno 5253 1.4 christos then : 5254 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5255 1.4 christos printf "%s\n" "unsupported" >&6; } 5256 1.4 christos else case e in #( 5257 1.4 christos e) if test "x$ac_cv_prog_cc_c99" = x 5258 1.4 christos then : 5259 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5260 1.4 christos printf "%s\n" "none needed" >&6; } 5261 1.4 christos else case e in #( 5262 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5263 1.4 christos printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5264 1.4 christos CC="$CC $ac_cv_prog_cc_c99" ;; 5265 1.4 christos esac 5266 1.1 christos fi 5267 1.4 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5268 1.4 christos ac_prog_cc_stdc=c99 ;; 5269 1.3 christos esac 5270 1.4 christos fi 5271 1.4 christos fi 5272 1.4 christos if test x$ac_prog_cc_stdc = xno 5273 1.4 christos then : 5274 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5275 1.4 christos printf %s "checking for $CC option to enable C89 features... " >&6; } 5276 1.4 christos if test ${ac_cv_prog_cc_c89+y} 5277 1.4 christos then : 5278 1.4 christos printf %s "(cached) " >&6 5279 1.4 christos else case e in #( 5280 1.4 christos e) ac_cv_prog_cc_c89=no 5281 1.1 christos ac_save_CC=$CC 5282 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5283 1.1 christos /* end confdefs.h. */ 5284 1.4 christos $ac_c_conftest_c89_program 5285 1.1 christos _ACEOF 5286 1.4 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5287 1.1 christos do 5288 1.1 christos CC="$ac_save_CC $ac_arg" 5289 1.4 christos if ac_fn_c_try_compile "$LINENO" 5290 1.4 christos then : 5291 1.1 christos ac_cv_prog_cc_c89=$ac_arg 5292 1.1 christos fi 5293 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam 5294 1.1 christos test "x$ac_cv_prog_cc_c89" != "xno" && break 5295 1.1 christos done 5296 1.1 christos rm -f conftest.$ac_ext 5297 1.4 christos CC=$ac_save_CC ;; 5298 1.1 christos esac 5299 1.3 christos fi 5300 1.1 christos 5301 1.4 christos if test "x$ac_cv_prog_cc_c89" = xno 5302 1.4 christos then : 5303 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5304 1.4 christos printf "%s\n" "unsupported" >&6; } 5305 1.4 christos else case e in #( 5306 1.4 christos e) if test "x$ac_cv_prog_cc_c89" = x 5307 1.4 christos then : 5308 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5309 1.4 christos printf "%s\n" "none needed" >&6; } 5310 1.4 christos else case e in #( 5311 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5312 1.4 christos printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5313 1.4 christos CC="$CC $ac_cv_prog_cc_c89" ;; 5314 1.4 christos esac 5315 1.1 christos fi 5316 1.4 christos ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5317 1.4 christos ac_prog_cc_stdc=c89 ;; 5318 1.3 christos esac 5319 1.4 christos fi 5320 1.3 christos fi 5321 1.1 christos 5322 1.4 christos ac_ext=c 5323 1.4 christos ac_cpp='$CPP $CPPFLAGS' 5324 1.4 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5325 1.4 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5326 1.4 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 5327 1.1 christos 5328 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5329 1.4 christos printf %s "checking for a sed that does not truncate output... " >&6; } 5330 1.4 christos if test ${ac_cv_path_SED+y} 5331 1.4 christos then : 5332 1.4 christos printf %s "(cached) " >&6 5333 1.4 christos else case e in #( 5334 1.4 christos e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5335 1.2 christos for ac_i in 1 2 3 4 5 6 7; do 5336 1.2 christos ac_script="$ac_script$as_nl$ac_script" 5337 1.2 christos done 5338 1.2 christos echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5339 1.2 christos { ac_script=; unset ac_script;} 5340 1.2 christos if test -z "$SED"; then 5341 1.2 christos ac_path_SED_found=false 5342 1.2 christos # Loop through the user's path and test for each of PROGNAME-LIST 5343 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5344 1.1 christos for as_dir in $PATH 5345 1.1 christos do 5346 1.1 christos IFS=$as_save_IFS 5347 1.4 christos case $as_dir in #((( 5348 1.4 christos '') as_dir=./ ;; 5349 1.4 christos */) ;; 5350 1.4 christos *) as_dir=$as_dir/ ;; 5351 1.4 christos esac 5352 1.4 christos for ac_prog in sed gsed 5353 1.4 christos do 5354 1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do 5355 1.4 christos ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5356 1.2 christos as_fn_executable_p "$ac_path_SED" || continue 5357 1.2 christos # Check for GNU ac_path_SED and select it if it is found. 5358 1.2 christos # Check for GNU $ac_path_SED 5359 1.4 christos case `"$ac_path_SED" --version 2>&1` in #( 5360 1.2 christos *GNU*) 5361 1.2 christos ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5362 1.4 christos #( 5363 1.2 christos *) 5364 1.2 christos ac_count=0 5365 1.4 christos printf %s 0123456789 >"conftest.in" 5366 1.2 christos while : 5367 1.2 christos do 5368 1.2 christos cat "conftest.in" "conftest.in" >"conftest.tmp" 5369 1.2 christos mv "conftest.tmp" "conftest.in" 5370 1.2 christos cp "conftest.in" "conftest.nl" 5371 1.4 christos printf "%s\n" '' >> "conftest.nl" 5372 1.2 christos "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5373 1.2 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5374 1.2 christos as_fn_arith $ac_count + 1 && ac_count=$as_val 5375 1.2 christos if test $ac_count -gt ${ac_path_SED_max-0}; then 5376 1.2 christos # Best one so far, save it but keep looking for a better one 5377 1.2 christos ac_cv_path_SED="$ac_path_SED" 5378 1.2 christos ac_path_SED_max=$ac_count 5379 1.2 christos fi 5380 1.2 christos # 10*(2^10) chars as input seems more than enough 5381 1.2 christos test $ac_count -gt 10 && break 5382 1.2 christos done 5383 1.2 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5384 1.1 christos esac 5385 1.1 christos 5386 1.2 christos $ac_path_SED_found && break 3 5387 1.2 christos done 5388 1.2 christos done 5389 1.1 christos done 5390 1.1 christos IFS=$as_save_IFS 5391 1.2 christos if test -z "$ac_cv_path_SED"; then 5392 1.2 christos as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5393 1.1 christos fi 5394 1.2 christos else 5395 1.2 christos ac_cv_path_SED=$SED 5396 1.1 christos fi 5397 1.4 christos ;; 5398 1.4 christos esac 5399 1.2 christos fi 5400 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5401 1.4 christos printf "%s\n" "$ac_cv_path_SED" >&6; } 5402 1.2 christos SED="$ac_cv_path_SED" 5403 1.2 christos rm -f conftest.sed 5404 1.1 christos 5405 1.2 christos for ac_prog in gawk mawk nawk awk 5406 1.1 christos do 5407 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 5408 1.1 christos set dummy $ac_prog; ac_word=$2 5409 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5410 1.4 christos printf %s "checking for $ac_word... " >&6; } 5411 1.4 christos if test ${ac_cv_prog_AWK+y} 5412 1.4 christos then : 5413 1.4 christos printf %s "(cached) " >&6 5414 1.4 christos else case e in #( 5415 1.4 christos e) if test -n "$AWK"; then 5416 1.2 christos ac_cv_prog_AWK="$AWK" # Let the user override the test. 5417 1.1 christos else 5418 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5419 1.1 christos for as_dir in $PATH 5420 1.1 christos do 5421 1.1 christos IFS=$as_save_IFS 5422 1.4 christos case $as_dir in #((( 5423 1.4 christos '') as_dir=./ ;; 5424 1.4 christos */) ;; 5425 1.4 christos *) as_dir=$as_dir/ ;; 5426 1.4 christos esac 5427 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 5428 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5429 1.2 christos ac_cv_prog_AWK="$ac_prog" 5430 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5431 1.1 christos break 2 5432 1.1 christos fi 5433 1.1 christos done 5434 1.1 christos done 5435 1.1 christos IFS=$as_save_IFS 5436 1.1 christos 5437 1.4 christos fi ;; 5438 1.4 christos esac 5439 1.1 christos fi 5440 1.2 christos AWK=$ac_cv_prog_AWK 5441 1.2 christos if test -n "$AWK"; then 5442 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5443 1.4 christos printf "%s\n" "$AWK" >&6; } 5444 1.1 christos else 5445 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5446 1.4 christos printf "%s\n" "no" >&6; } 5447 1.1 christos fi 5448 1.1 christos 5449 1.1 christos 5450 1.2 christos test -n "$AWK" && break 5451 1.1 christos done 5452 1.2 christos 5453 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5454 1.4 christos printf %s "checking for grep that handles long lines and -e... " >&6; } 5455 1.4 christos if test ${ac_cv_path_GREP+y} 5456 1.4 christos then : 5457 1.4 christos printf %s "(cached) " >&6 5458 1.4 christos else case e in #( 5459 1.4 christos e) if test -z "$GREP"; then 5460 1.2 christos ac_path_GREP_found=false 5461 1.2 christos # Loop through the user's path and test for each of PROGNAME-LIST 5462 1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5463 1.2 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5464 1.2 christos do 5465 1.2 christos IFS=$as_save_IFS 5466 1.4 christos case $as_dir in #((( 5467 1.4 christos '') as_dir=./ ;; 5468 1.4 christos */) ;; 5469 1.4 christos *) as_dir=$as_dir/ ;; 5470 1.4 christos esac 5471 1.4 christos for ac_prog in grep ggrep 5472 1.4 christos do 5473 1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do 5474 1.4 christos ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5475 1.2 christos as_fn_executable_p "$ac_path_GREP" || continue 5476 1.2 christos # Check for GNU ac_path_GREP and select it if it is found. 5477 1.2 christos # Check for GNU $ac_path_GREP 5478 1.4 christos case `"$ac_path_GREP" --version 2>&1` in #( 5479 1.2 christos *GNU*) 5480 1.2 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5481 1.4 christos #( 5482 1.2 christos *) 5483 1.2 christos ac_count=0 5484 1.4 christos printf %s 0123456789 >"conftest.in" 5485 1.2 christos while : 5486 1.2 christos do 5487 1.2 christos cat "conftest.in" "conftest.in" >"conftest.tmp" 5488 1.2 christos mv "conftest.tmp" "conftest.in" 5489 1.2 christos cp "conftest.in" "conftest.nl" 5490 1.4 christos printf "%s\n" 'GREP' >> "conftest.nl" 5491 1.2 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5492 1.2 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5493 1.2 christos as_fn_arith $ac_count + 1 && ac_count=$as_val 5494 1.2 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then 5495 1.2 christos # Best one so far, save it but keep looking for a better one 5496 1.2 christos ac_cv_path_GREP="$ac_path_GREP" 5497 1.2 christos ac_path_GREP_max=$ac_count 5498 1.2 christos fi 5499 1.2 christos # 10*(2^10) chars as input seems more than enough 5500 1.2 christos test $ac_count -gt 10 && break 5501 1.2 christos done 5502 1.2 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5503 1.2 christos esac 5504 1.2 christos 5505 1.2 christos $ac_path_GREP_found && break 3 5506 1.2 christos done 5507 1.2 christos done 5508 1.2 christos done 5509 1.2 christos IFS=$as_save_IFS 5510 1.2 christos if test -z "$ac_cv_path_GREP"; then 5511 1.2 christos as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5512 1.2 christos fi 5513 1.2 christos else 5514 1.2 christos ac_cv_path_GREP=$GREP 5515 1.2 christos fi 5516 1.4 christos ;; 5517 1.4 christos esac 5518 1.2 christos fi 5519 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5520 1.4 christos printf "%s\n" "$ac_cv_path_GREP" >&6; } 5521 1.2 christos GREP="$ac_cv_path_GREP" 5522 1.2 christos 5523 1.2 christos 5524 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5525 1.4 christos printf %s "checking for egrep... " >&6; } 5526 1.4 christos if test ${ac_cv_path_EGREP+y} 5527 1.4 christos then : 5528 1.4 christos printf %s "(cached) " >&6 5529 1.4 christos else case e in #( 5530 1.4 christos e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5531 1.2 christos then ac_cv_path_EGREP="$GREP -E" 5532 1.2 christos else 5533 1.2 christos if test -z "$EGREP"; then 5534 1.2 christos ac_path_EGREP_found=false 5535 1.2 christos # Loop through the user's path and test for each of PROGNAME-LIST 5536 1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537 1.2 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5538 1.2 christos do 5539 1.2 christos IFS=$as_save_IFS 5540 1.4 christos case $as_dir in #((( 5541 1.4 christos '') as_dir=./ ;; 5542 1.4 christos */) ;; 5543 1.4 christos *) as_dir=$as_dir/ ;; 5544 1.4 christos esac 5545 1.4 christos for ac_prog in egrep 5546 1.4 christos do 5547 1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do 5548 1.4 christos ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5549 1.2 christos as_fn_executable_p "$ac_path_EGREP" || continue 5550 1.2 christos # Check for GNU ac_path_EGREP and select it if it is found. 5551 1.2 christos # Check for GNU $ac_path_EGREP 5552 1.4 christos case `"$ac_path_EGREP" --version 2>&1` in #( 5553 1.2 christos *GNU*) 5554 1.2 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5555 1.4 christos #( 5556 1.2 christos *) 5557 1.2 christos ac_count=0 5558 1.4 christos printf %s 0123456789 >"conftest.in" 5559 1.2 christos while : 5560 1.2 christos do 5561 1.2 christos cat "conftest.in" "conftest.in" >"conftest.tmp" 5562 1.2 christos mv "conftest.tmp" "conftest.in" 5563 1.2 christos cp "conftest.in" "conftest.nl" 5564 1.4 christos printf "%s\n" 'EGREP' >> "conftest.nl" 5565 1.2 christos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5566 1.2 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5567 1.2 christos as_fn_arith $ac_count + 1 && ac_count=$as_val 5568 1.2 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5569 1.2 christos # Best one so far, save it but keep looking for a better one 5570 1.2 christos ac_cv_path_EGREP="$ac_path_EGREP" 5571 1.2 christos ac_path_EGREP_max=$ac_count 5572 1.2 christos fi 5573 1.2 christos # 10*(2^10) chars as input seems more than enough 5574 1.2 christos test $ac_count -gt 10 && break 5575 1.2 christos done 5576 1.2 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5577 1.2 christos esac 5578 1.2 christos 5579 1.2 christos $ac_path_EGREP_found && break 3 5580 1.2 christos done 5581 1.2 christos done 5582 1.2 christos done 5583 1.2 christos IFS=$as_save_IFS 5584 1.2 christos if test -z "$ac_cv_path_EGREP"; then 5585 1.2 christos as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5586 1.2 christos fi 5587 1.2 christos else 5588 1.2 christos ac_cv_path_EGREP=$EGREP 5589 1.2 christos fi 5590 1.2 christos 5591 1.4 christos fi ;; 5592 1.4 christos esac 5593 1.2 christos fi 5594 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5595 1.4 christos printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5596 1.2 christos EGREP="$ac_cv_path_EGREP" 5597 1.2 christos 5598 1.4 christos EGREP_TRADITIONAL=$EGREP 5599 1.4 christos ac_cv_path_EGREP_TRADITIONAL=$EGREP 5600 1.2 christos 5601 1.2 christos for ac_prog in flex lex 5602 1.2 christos do 5603 1.2 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 5604 1.2 christos set dummy $ac_prog; ac_word=$2 5605 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5606 1.4 christos printf %s "checking for $ac_word... " >&6; } 5607 1.4 christos if test ${ac_cv_prog_LEX+y} 5608 1.4 christos then : 5609 1.4 christos printf %s "(cached) " >&6 5610 1.4 christos else case e in #( 5611 1.4 christos e) if test -n "$LEX"; then 5612 1.2 christos ac_cv_prog_LEX="$LEX" # Let the user override the test. 5613 1.2 christos else 5614 1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5615 1.2 christos for as_dir in $PATH 5616 1.2 christos do 5617 1.2 christos IFS=$as_save_IFS 5618 1.4 christos case $as_dir in #((( 5619 1.4 christos '') as_dir=./ ;; 5620 1.4 christos */) ;; 5621 1.4 christos *) as_dir=$as_dir/ ;; 5622 1.4 christos esac 5623 1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do 5624 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5625 1.2 christos ac_cv_prog_LEX="$ac_prog" 5626 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5627 1.2 christos break 2 5628 1.2 christos fi 5629 1.2 christos done 5630 1.2 christos done 5631 1.2 christos IFS=$as_save_IFS 5632 1.2 christos 5633 1.4 christos fi ;; 5634 1.4 christos esac 5635 1.2 christos fi 5636 1.2 christos LEX=$ac_cv_prog_LEX 5637 1.2 christos if test -n "$LEX"; then 5638 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5639 1.4 christos printf "%s\n" "$LEX" >&6; } 5640 1.2 christos else 5641 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5642 1.4 christos printf "%s\n" "no" >&6; } 5643 1.2 christos fi 5644 1.2 christos 5645 1.2 christos 5646 1.2 christos test -n "$LEX" && break 5647 1.2 christos done 5648 1.2 christos test -n "$LEX" || LEX=":" 5649 1.1 christos 5650 1.4 christos if test "x$LEX" != "x:"; then 5651 1.4 christos cat >conftest.l <<_ACEOF 5652 1.4 christos %{ 5653 1.4 christos #ifdef __cplusplus 5654 1.4 christos extern "C" 5655 1.4 christos #endif 5656 1.4 christos int yywrap(void); 5657 1.4 christos %} 5658 1.1 christos %% 5659 1.1 christos a { ECHO; } 5660 1.1 christos b { REJECT; } 5661 1.1 christos c { yymore (); } 5662 1.1 christos d { yyless (1); } 5663 1.1 christos e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 5664 1.4 christos #ifdef __cplusplus 5665 1.4 christos yyless ((yyinput () != 0)); 5666 1.4 christos #else 5667 1.4 christos yyless ((input () != 0)); 5668 1.4 christos #endif 5669 1.4 christos } 5670 1.1 christos f { unput (yytext[0]); } 5671 1.1 christos . { BEGIN INITIAL; } 5672 1.1 christos %% 5673 1.1 christos #ifdef YYTEXT_POINTER 5674 1.1 christos extern char *yytext; 5675 1.1 christos #endif 5676 1.1 christos int 5677 1.4 christos yywrap (void) 5678 1.4 christos { 5679 1.4 christos return 1; 5680 1.4 christos } 5681 1.4 christos int 5682 1.1 christos main (void) 5683 1.1 christos { 5684 1.4 christos return ! yylex (); 5685 1.1 christos } 5686 1.1 christos _ACEOF 5687 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 5688 1.4 christos printf %s "checking for lex output file root... " >&6; } 5689 1.4 christos if test ${ac_cv_prog_lex_root+y} 5690 1.4 christos then : 5691 1.4 christos printf %s "(cached) " >&6 5692 1.4 christos else case e in #( 5693 1.4 christos e) 5694 1.4 christos ac_cv_prog_lex_root=unknown 5695 1.1 christos { { ac_try="$LEX conftest.l" 5696 1.1 christos case "(($ac_try" in 5697 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5698 1.1 christos *) ac_try_echo=$ac_try;; 5699 1.1 christos esac 5700 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5701 1.4 christos printf "%s\n" "$ac_try_echo"; } >&5 5702 1.1 christos (eval "$LEX conftest.l") 2>&5 5703 1.1 christos ac_status=$? 5704 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5705 1.4 christos test $ac_status = 0; } && 5706 1.1 christos if test -f lex.yy.c; then 5707 1.1 christos ac_cv_prog_lex_root=lex.yy 5708 1.1 christos elif test -f lexyy.c; then 5709 1.1 christos ac_cv_prog_lex_root=lexyy 5710 1.4 christos fi ;; 5711 1.4 christos esac 5712 1.1 christos fi 5713 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 5714 1.4 christos printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 5715 1.4 christos if test "$ac_cv_prog_lex_root" = unknown 5716 1.4 christos then : 5717 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 5718 1.4 christos printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 5719 1.4 christos LEX=: LEXLIB= 5720 1.1 christos fi 5721 1.1 christos LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 5722 1.1 christos 5723 1.4 christos if test ${LEXLIB+y} 5724 1.4 christos then : 5725 1.4 christos 5726 1.4 christos else case e in #( 5727 1.4 christos e) 5728 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 5729 1.4 christos printf %s "checking for lex library... " >&6; } 5730 1.4 christos if test ${ac_cv_lib_lex+y} 5731 1.4 christos then : 5732 1.4 christos printf %s "(cached) " >&6 5733 1.4 christos else case e in #( 5734 1.4 christos e) 5735 1.4 christos ac_save_LIBS="$LIBS" 5736 1.4 christos ac_found=false 5737 1.4 christos for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 5738 1.4 christos case $ac_cv_lib_lex in #( 5739 1.4 christos 'none needed') : 5740 1.4 christos ;; #( 5741 1.4 christos 'not found') : 5742 1.4 christos break ;; #( 5743 1.4 christos *) : 5744 1.4 christos LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 5745 1.4 christos *) : 5746 1.4 christos ;; 5747 1.4 christos esac 5748 1.1 christos 5749 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750 1.1 christos /* end confdefs.h. */ 5751 1.1 christos `cat $LEX_OUTPUT_ROOT.c` 5752 1.1 christos _ACEOF 5753 1.4 christos if ac_fn_c_try_link "$LINENO" 5754 1.4 christos then : 5755 1.4 christos ac_found=: 5756 1.1 christos fi 5757 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5758 1.1 christos conftest$ac_exeext conftest.$ac_ext 5759 1.4 christos if $ac_found; then 5760 1.4 christos break 5761 1.4 christos fi 5762 1.1 christos done 5763 1.4 christos LIBS="$ac_save_LIBS" 5764 1.4 christos ;; 5765 1.4 christos esac 5766 1.4 christos fi 5767 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 5768 1.4 christos printf "%s\n" "$ac_cv_lib_lex" >&6; } 5769 1.4 christos if test "$ac_cv_lib_lex" = 'not found' 5770 1.4 christos then : 5771 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 5772 1.4 christos printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 5773 1.4 christos LEX=: LEXLIB= 5774 1.4 christos elif test "$ac_cv_lib_lex" = 'none needed' 5775 1.4 christos then : 5776 1.4 christos LEXLIB='' 5777 1.4 christos else case e in #( 5778 1.4 christos e) LEXLIB=$ac_cv_lib_lex ;; 5779 1.4 christos esac 5780 1.1 christos fi 5781 1.4 christos ;; 5782 1.4 christos esac 5783 1.1 christos fi 5784 1.1 christos 5785 1.1 christos 5786 1.4 christos if test "$LEX" != : 5787 1.4 christos then : 5788 1.4 christos 5789 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5790 1.4 christos printf %s "checking whether yytext is a pointer... " >&6; } 5791 1.4 christos if test ${ac_cv_prog_lex_yytext_pointer+y} 5792 1.4 christos then : 5793 1.4 christos printf %s "(cached) " >&6 5794 1.4 christos else case e in #( 5795 1.4 christos e) # POSIX says lex can declare yytext either as a pointer or an array; the 5796 1.1 christos # default is implementation-dependent. Figure out which it is, since 5797 1.1 christos # not all implementations provide the %pointer and %array declarations. 5798 1.1 christos ac_cv_prog_lex_yytext_pointer=no 5799 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800 1.1 christos /* end confdefs.h. */ 5801 1.1 christos 5802 1.1 christos #define YYTEXT_POINTER 1 5803 1.1 christos `cat $LEX_OUTPUT_ROOT.c` 5804 1.1 christos _ACEOF 5805 1.4 christos if ac_fn_c_try_compile "$LINENO" 5806 1.4 christos then : 5807 1.1 christos ac_cv_prog_lex_yytext_pointer=yes 5808 1.1 christos fi 5809 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5810 1.4 christos ;; 5811 1.4 christos esac 5812 1.1 christos fi 5813 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5814 1.4 christos printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 5815 1.1 christos if test $ac_cv_prog_lex_yytext_pointer = yes; then 5816 1.1 christos 5817 1.4 christos printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 5818 1.4 christos 5819 1.4 christos fi 5820 1.1 christos 5821 1.1 christos fi 5822 1.1 christos rm -f conftest.l $LEX_OUTPUT_ROOT.c 5823 1.1 christos 5824 1.1 christos fi 5825 1.1 christos for ac_prog in 'bison -y' byacc 5826 1.1 christos do 5827 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 5828 1.1 christos set dummy $ac_prog; ac_word=$2 5829 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5830 1.4 christos printf %s "checking for $ac_word... " >&6; } 5831 1.4 christos if test ${ac_cv_prog_YACC+y} 5832 1.4 christos then : 5833 1.4 christos printf %s "(cached) " >&6 5834 1.4 christos else case e in #( 5835 1.4 christos e) if test -n "$YACC"; then 5836 1.1 christos ac_cv_prog_YACC="$YACC" # Let the user override the test. 5837 1.1 christos else 5838 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5839 1.1 christos for as_dir in $PATH 5840 1.1 christos do 5841 1.1 christos IFS=$as_save_IFS 5842 1.4 christos case $as_dir in #((( 5843 1.4 christos '') as_dir=./ ;; 5844 1.4 christos */) ;; 5845 1.4 christos *) as_dir=$as_dir/ ;; 5846 1.4 christos esac 5847 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 5848 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5849 1.1 christos ac_cv_prog_YACC="$ac_prog" 5850 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5851 1.1 christos break 2 5852 1.1 christos fi 5853 1.1 christos done 5854 1.1 christos done 5855 1.1 christos IFS=$as_save_IFS 5856 1.1 christos 5857 1.4 christos fi ;; 5858 1.4 christos esac 5859 1.1 christos fi 5860 1.1 christos YACC=$ac_cv_prog_YACC 5861 1.1 christos if test -n "$YACC"; then 5862 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5863 1.4 christos printf "%s\n" "$YACC" >&6; } 5864 1.1 christos else 5865 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5866 1.4 christos printf "%s\n" "no" >&6; } 5867 1.1 christos fi 5868 1.1 christos 5869 1.1 christos 5870 1.1 christos test -n "$YACC" && break 5871 1.1 christos done 5872 1.1 christos test -n "$YACC" || YACC="yacc" 5873 1.1 christos 5874 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5875 1.4 christos printf %s "checking whether ln -s works... " >&6; } 5876 1.2 christos LN_S=$as_ln_s 5877 1.2 christos if test "$LN_S" = "ln -s"; then 5878 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5879 1.4 christos printf "%s\n" "yes" >&6; } 5880 1.2 christos else 5881 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5882 1.4 christos printf "%s\n" "no, using $LN_S" >&6; } 5883 1.1 christos fi 5884 1.1 christos 5885 1.1 christos 5886 1.1 christos 5887 1.4 christos # Find a good install program. We prefer a C program (faster), 5888 1.2 christos # so one script is as good as another. But avoid the broken or 5889 1.2 christos # incompatible versions: 5890 1.2 christos # SysV /etc/install, /usr/sbin/install 5891 1.2 christos # SunOS /usr/etc/install 5892 1.2 christos # IRIX /sbin/install 5893 1.2 christos # AIX /bin/install 5894 1.2 christos # AmigaOS /C/install, which installs bootblocks on floppy discs 5895 1.2 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5896 1.2 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args 5897 1.2 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5898 1.2 christos # OS/2's system install, which has a completely different semantic 5899 1.2 christos # ./install, which can be erroneously created by make from ./install.sh. 5900 1.2 christos # Reject install programs that cannot install multiple files. 5901 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5902 1.4 christos printf %s "checking for a BSD-compatible install... " >&6; } 5903 1.2 christos if test -z "$INSTALL"; then 5904 1.4 christos if test ${ac_cv_path_install+y} 5905 1.4 christos then : 5906 1.4 christos printf %s "(cached) " >&6 5907 1.4 christos else case e in #( 5908 1.4 christos e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909 1.2 christos for as_dir in $PATH 5910 1.2 christos do 5911 1.2 christos IFS=$as_save_IFS 5912 1.4 christos case $as_dir in #((( 5913 1.4 christos '') as_dir=./ ;; 5914 1.4 christos */) ;; 5915 1.4 christos *) as_dir=$as_dir/ ;; 5916 1.4 christos esac 5917 1.4 christos # Account for fact that we put trailing slashes in our PATH walk. 5918 1.4 christos case $as_dir in #(( 5919 1.4 christos ./ | /[cC]/* | \ 5920 1.2 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5921 1.2 christos ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5922 1.2 christos /usr/ucb/* ) ;; 5923 1.2 christos *) 5924 1.2 christos # OSF1 and SCO ODT 3.0 have their own names for install. 5925 1.2 christos # Don't use installbsd from OSF since it installs stuff as root 5926 1.2 christos # by default. 5927 1.2 christos for ac_prog in ginstall scoinst install; do 5928 1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do 5929 1.4 christos if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 5930 1.2 christos if test $ac_prog = install && 5931 1.4 christos grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5932 1.2 christos # AIX install. It has an incompatible calling convention. 5933 1.2 christos : 5934 1.2 christos elif test $ac_prog = install && 5935 1.4 christos grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5936 1.2 christos # program-specific install script used by HP pwplus--don't use. 5937 1.2 christos : 5938 1.2 christos else 5939 1.2 christos rm -rf conftest.one conftest.two conftest.dir 5940 1.2 christos echo one > conftest.one 5941 1.2 christos echo two > conftest.two 5942 1.2 christos mkdir conftest.dir 5943 1.4 christos if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 5944 1.2 christos test -s conftest.one && test -s conftest.two && 5945 1.2 christos test -s conftest.dir/conftest.one && 5946 1.2 christos test -s conftest.dir/conftest.two 5947 1.2 christos then 5948 1.4 christos ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 5949 1.2 christos break 3 5950 1.2 christos fi 5951 1.2 christos fi 5952 1.2 christos fi 5953 1.2 christos done 5954 1.2 christos done 5955 1.2 christos ;; 5956 1.2 christos esac 5957 1.2 christos 5958 1.2 christos done 5959 1.2 christos IFS=$as_save_IFS 5960 1.2 christos 5961 1.2 christos rm -rf conftest.one conftest.two conftest.dir 5962 1.4 christos ;; 5963 1.4 christos esac 5964 1.2 christos fi 5965 1.4 christos if test ${ac_cv_path_install+y}; then 5966 1.2 christos INSTALL=$ac_cv_path_install 5967 1.2 christos else 5968 1.2 christos # As a last resort, use the slow shell script. Don't cache a 5969 1.2 christos # value for INSTALL within a source directory, because that will 5970 1.2 christos # break other packages using the cache if that directory is 5971 1.2 christos # removed, or if the value is a relative name. 5972 1.2 christos INSTALL=$ac_install_sh 5973 1.2 christos fi 5974 1.2 christos fi 5975 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5976 1.4 christos printf "%s\n" "$INSTALL" >&6; } 5977 1.2 christos 5978 1.2 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5979 1.2 christos # It thinks the first close brace ends the variable substitution. 5980 1.2 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5981 1.2 christos 5982 1.2 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5983 1.2 christos 5984 1.2 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5985 1.2 christos 5986 1.2 christos 5987 1.2 christos if test "$LEX" != ":" -a "$LEX" != ""; then 5988 1.2 christos # Solaris provides anemic tools, and they don't offer GNU extensions like 5989 1.2 christos # 'flex -i'. Solaris also does not offer GNU replacements in /usr/gnu/bin. 5990 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lex accepts -i" >&5 5991 1.4 christos printf %s "checking whether lex accepts -i... " >&6; } 5992 1.4 christos if echo "%%" | $LEX -i -t >/dev/null 2>&1 5993 1.4 christos then : 5994 1.4 christos 5995 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5996 1.4 christos printf "%s\n" "yes" >&6; } 5997 1.4 christos 5998 1.4 christos else case e in #( 5999 1.4 christos e) 6000 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6001 1.4 christos printf "%s\n" "no" >&6; } 6002 1.2 christos as_fn_error $? "unable to find a lexer that supports -i. If one is available then set the LEX variable" "$LINENO" 5 6003 1.2 christos 6004 1.4 christos ;; 6005 1.4 christos esac 6006 1.2 christos fi 6007 1.2 christos 6008 1.2 christos # Check if lex defines yy_current_buffer, because 2.4.6 and older use it, 6009 1.2 christos # but later could define it as a macro and then we should not redefine it. 6010 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lex defines yy_current_buffer" >&5 6011 1.4 christos printf %s "checking if lex defines yy_current_buffer... " >&6; } 6012 1.2 christos cat <<EOF >conftest.lex 6013 1.2 christos %% 6014 1.2 christos EOF 6015 1.2 christos $LEX -i -t conftest.lex >> conftest.c 2>/dev/null 6016 1.2 christos if $GREP "^#define yy_current_buffer" conftest.c >/dev/null; then 6017 1.2 christos 6018 1.4 christos printf "%s\n" "#define LEX_DEFINES_YY_CURRENT_BUFFER 1" >>confdefs.h 6019 1.2 christos 6020 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6021 1.4 christos printf "%s\n" "yes" >&6; } 6022 1.2 christos else 6023 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6024 1.4 christos printf "%s\n" "no" >&6; } 6025 1.2 christos fi 6026 1.2 christos rm -f conftest.lex conftest.c 6027 1.2 christos fi 6028 1.2 christos 6029 1.2 christos 6030 1.2 christos 6031 1.2 christos 6032 1.2 christos 6033 1.2 christos 6034 1.2 christos 6035 1.2 christos 6036 1.2 christos # Checks for typedefs, structures, and compiler characteristics. 6037 1.2 christos # allow user to override the -g -O2 flags. 6038 1.2 christos if test "x$CFLAGS" = "x" ; then 6039 1.2 christos 6040 1.2 christos 6041 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 6042 1.4 christos printf %s "checking whether $CC supports -g... " >&6; } 6043 1.2 christos cache=`echo g | sed 'y%.=/+-%___p_%'` 6044 1.4 christos if eval test \${cv_prog_cc_flag_$cache+y} 6045 1.4 christos then : 6046 1.4 christos printf %s "(cached) " >&6 6047 1.4 christos else case e in #( 6048 1.4 christos e) 6049 1.1 christos echo 'void f(void){}' >conftest.c 6050 1.1 christos if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 6051 1.1 christos eval "cv_prog_cc_flag_$cache=yes" 6052 1.1 christos else 6053 1.1 christos eval "cv_prog_cc_flag_$cache=no" 6054 1.1 christos fi 6055 1.1 christos rm -f conftest conftest.o conftest.c 6056 1.4 christos ;; 6057 1.4 christos esac 6058 1.1 christos fi 6059 1.1 christos 6060 1.1 christos if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6061 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6062 1.4 christos printf "%s\n" "yes" >&6; } 6063 1.1 christos : 6064 1.1 christos CFLAGS="$CFLAGS -g" 6065 1.1 christos else 6066 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6067 1.4 christos printf "%s\n" "no" >&6; } 6068 1.1 christos : 6069 1.1 christos 6070 1.1 christos fi 6071 1.1 christos 6072 1.1 christos # we do not use O3 because it causes miscompilations. 6073 1.1 christos 6074 1.1 christos 6075 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 6076 1.4 christos printf %s "checking whether $CC supports -O2... " >&6; } 6077 1.1 christos cache=`echo O2 | sed 'y%.=/+-%___p_%'` 6078 1.4 christos if eval test \${cv_prog_cc_flag_$cache+y} 6079 1.4 christos then : 6080 1.4 christos printf %s "(cached) " >&6 6081 1.4 christos else case e in #( 6082 1.4 christos e) 6083 1.1 christos echo 'void f(void){}' >conftest.c 6084 1.1 christos if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 6085 1.1 christos eval "cv_prog_cc_flag_$cache=yes" 6086 1.1 christos else 6087 1.1 christos eval "cv_prog_cc_flag_$cache=no" 6088 1.1 christos fi 6089 1.1 christos rm -f conftest conftest.o conftest.c 6090 1.4 christos ;; 6091 1.4 christos esac 6092 1.1 christos fi 6093 1.1 christos 6094 1.1 christos if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6095 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6096 1.4 christos printf "%s\n" "yes" >&6; } 6097 1.1 christos : 6098 1.1 christos CFLAGS="$CFLAGS -O2" 6099 1.1 christos else 6100 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6101 1.4 christos printf "%s\n" "no" >&6; } 6102 1.1 christos : 6103 1.1 christos 6104 1.1 christos fi 6105 1.1 christos 6106 1.1 christos 6107 1.1 christos # Check whether --enable-flto was given. 6108 1.4 christos if test ${enable_flto+y} 6109 1.4 christos then : 6110 1.1 christos enableval=$enable_flto; 6111 1.1 christos fi 6112 1.1 christos 6113 1.4 christos if test "x$enable_flto" != "xno" 6114 1.4 christos then : 6115 1.1 christos 6116 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 6117 1.4 christos printf %s "checking if $CC supports -flto... " >&6; } 6118 1.1 christos BAKCFLAGS="$CFLAGS" 6119 1.1 christos CFLAGS="$CFLAGS -flto" 6120 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121 1.1 christos /* end confdefs.h. */ 6122 1.1 christos 6123 1.1 christos int 6124 1.4 christos main (void) 6125 1.1 christos { 6126 1.1 christos 6127 1.1 christos ; 6128 1.1 christos return 0; 6129 1.1 christos } 6130 1.1 christos _ACEOF 6131 1.4 christos if ac_fn_c_try_link "$LINENO" 6132 1.4 christos then : 6133 1.1 christos 6134 1.1 christos if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 6135 1.1 christos CFLAGS="$BAKCFLAGS" 6136 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6137 1.4 christos printf "%s\n" "no" >&6; } 6138 1.1 christos else 6139 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6140 1.4 christos printf "%s\n" "yes" >&6; } 6141 1.1 christos fi 6142 1.1 christos rm -f conftest conftest.c conftest.o 6143 1.1 christos 6144 1.4 christos else case e in #( 6145 1.4 christos e) CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6146 1.4 christos printf "%s\n" "no" >&6; } ;; 6147 1.4 christos esac 6148 1.1 christos fi 6149 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6150 1.1 christos conftest$ac_exeext conftest.$ac_ext 6151 1.1 christos 6152 1.1 christos fi 6153 1.1 christos 6154 1.1 christos 6155 1.1 christos # Check whether --enable-pie was given. 6156 1.4 christos if test ${enable_pie+y} 6157 1.4 christos then : 6158 1.1 christos enableval=$enable_pie; 6159 1.1 christos fi 6160 1.1 christos 6161 1.4 christos if test "x$enable_pie" = "xyes" 6162 1.4 christos then : 6163 1.1 christos 6164 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6165 1.4 christos printf %s "checking if $CC supports PIE... " >&6; } 6166 1.1 christos BAKLDFLAGS="$LDFLAGS" 6167 1.1 christos BAKCFLAGS="$CFLAGS" 6168 1.1 christos LDFLAGS="$LDFLAGS -pie" 6169 1.1 christos CFLAGS="$CFLAGS -fPIE" 6170 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171 1.1 christos /* end confdefs.h. */ 6172 1.1 christos 6173 1.1 christos int 6174 1.4 christos main (void) 6175 1.1 christos { 6176 1.1 christos 6177 1.1 christos ; 6178 1.1 christos return 0; 6179 1.1 christos } 6180 1.1 christos _ACEOF 6181 1.4 christos if ac_fn_c_try_link "$LINENO" 6182 1.4 christos then : 6183 1.1 christos 6184 1.1 christos if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6185 1.1 christos LDFLAGS="$BAKLDFLAGS" 6186 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6187 1.4 christos printf "%s\n" "no" >&6; } 6188 1.1 christos else 6189 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6190 1.4 christos printf "%s\n" "yes" >&6; } 6191 1.1 christos fi 6192 1.1 christos rm -f conftest conftest.c conftest.o 6193 1.1 christos 6194 1.4 christos else case e in #( 6195 1.4 christos e) LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6196 1.4 christos printf "%s\n" "no" >&6; } ;; 6197 1.4 christos esac 6198 1.1 christos fi 6199 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6200 1.1 christos conftest$ac_exeext conftest.$ac_ext 6201 1.1 christos 6202 1.1 christos fi 6203 1.1 christos 6204 1.1 christos 6205 1.1 christos # Check whether --enable-relro_now was given. 6206 1.4 christos if test ${enable_relro_now+y} 6207 1.4 christos then : 6208 1.1 christos enableval=$enable_relro_now; 6209 1.1 christos fi 6210 1.1 christos 6211 1.4 christos if test "x$enable_relro_now" = "xyes" 6212 1.4 christos then : 6213 1.1 christos 6214 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6215 1.4 christos printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6216 1.1 christos BAKLDFLAGS="$LDFLAGS" 6217 1.1 christos LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6218 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6219 1.1 christos /* end confdefs.h. */ 6220 1.1 christos 6221 1.1 christos int 6222 1.4 christos main (void) 6223 1.1 christos { 6224 1.1 christos 6225 1.1 christos ; 6226 1.1 christos return 0; 6227 1.1 christos } 6228 1.1 christos _ACEOF 6229 1.4 christos if ac_fn_c_try_link "$LINENO" 6230 1.4 christos then : 6231 1.1 christos 6232 1.1 christos if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6233 1.1 christos LDFLAGS="$BAKLDFLAGS" 6234 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6235 1.4 christos printf "%s\n" "no" >&6; } 6236 1.1 christos else 6237 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6238 1.4 christos printf "%s\n" "yes" >&6; } 6239 1.1 christos fi 6240 1.1 christos rm -f conftest conftest.c conftest.o 6241 1.1 christos 6242 1.4 christos else case e in #( 6243 1.4 christos e) LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6244 1.4 christos printf "%s\n" "no" >&6; } ;; 6245 1.4 christos esac 6246 1.1 christos fi 6247 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6248 1.1 christos conftest$ac_exeext conftest.$ac_ext 6249 1.1 christos 6250 1.1 christos fi 6251 1.1 christos 6252 1.1 christos fi 6253 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6254 1.4 christos printf %s "checking for an ANSI C-conforming const... " >&6; } 6255 1.4 christos if test ${ac_cv_c_const+y} 6256 1.4 christos then : 6257 1.4 christos printf %s "(cached) " >&6 6258 1.4 christos else case e in #( 6259 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260 1.1 christos /* end confdefs.h. */ 6261 1.1 christos 6262 1.1 christos int 6263 1.4 christos main (void) 6264 1.1 christos { 6265 1.1 christos 6266 1.1 christos #ifndef __cplusplus 6267 1.1 christos /* Ultrix mips cc rejects this sort of thing. */ 6268 1.1 christos typedef int charset[2]; 6269 1.1 christos const charset cs = { 0, 0 }; 6270 1.1 christos /* SunOS 4.1.1 cc rejects this. */ 6271 1.1 christos char const *const *pcpcc; 6272 1.1 christos char **ppc; 6273 1.1 christos /* NEC SVR4.0.2 mips cc rejects this. */ 6274 1.1 christos struct point {int x, y;}; 6275 1.1 christos static struct point const zero = {0,0}; 6276 1.4 christos /* IBM XL C 1.02.0.0 rejects this. 6277 1.1 christos It does not let you subtract one const X* pointer from another in 6278 1.1 christos an arm of an if-expression whose if-part is not a constant 6279 1.1 christos expression */ 6280 1.1 christos const char *g = "string"; 6281 1.1 christos pcpcc = &g + (g ? g-g : 0); 6282 1.1 christos /* HPUX 7.0 cc rejects these. */ 6283 1.1 christos ++pcpcc; 6284 1.1 christos ppc = (char**) pcpcc; 6285 1.1 christos pcpcc = (char const *const *) ppc; 6286 1.1 christos { /* SCO 3.2v4 cc rejects this sort of thing. */ 6287 1.1 christos char tx; 6288 1.1 christos char *t = &tx; 6289 1.1 christos char const *s = 0 ? (char *) 0 : (char const *) 0; 6290 1.1 christos 6291 1.1 christos *t++ = 0; 6292 1.1 christos if (s) return 0; 6293 1.1 christos } 6294 1.1 christos { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6295 1.1 christos int x[] = {25, 17}; 6296 1.1 christos const int *foo = &x[0]; 6297 1.1 christos ++foo; 6298 1.1 christos } 6299 1.1 christos { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6300 1.1 christos typedef const int *iptr; 6301 1.1 christos iptr p = 0; 6302 1.1 christos ++p; 6303 1.1 christos } 6304 1.4 christos { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 6305 1.1 christos "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6306 1.1 christos struct s { int j; const int *ap[3]; } bx; 6307 1.1 christos struct s *b = &bx; b->j = 5; 6308 1.1 christos } 6309 1.1 christos { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6310 1.1 christos const int foo = 10; 6311 1.1 christos if (!foo) return 0; 6312 1.1 christos } 6313 1.1 christos return !cs[0] && !zero.x; 6314 1.1 christos #endif 6315 1.1 christos 6316 1.1 christos ; 6317 1.1 christos return 0; 6318 1.1 christos } 6319 1.1 christos _ACEOF 6320 1.4 christos if ac_fn_c_try_compile "$LINENO" 6321 1.4 christos then : 6322 1.1 christos ac_cv_c_const=yes 6323 1.4 christos else case e in #( 6324 1.4 christos e) ac_cv_c_const=no ;; 6325 1.4 christos esac 6326 1.1 christos fi 6327 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6328 1.4 christos esac 6329 1.1 christos fi 6330 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6331 1.4 christos printf "%s\n" "$ac_cv_c_const" >&6; } 6332 1.1 christos if test $ac_cv_c_const = no; then 6333 1.1 christos 6334 1.4 christos printf "%s\n" "#define const /**/" >>confdefs.h 6335 1.1 christos 6336 1.1 christos fi 6337 1.1 christos 6338 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6339 1.4 christos printf %s "checking for inline... " >&6; } 6340 1.4 christos if test ${ac_cv_c_inline+y} 6341 1.4 christos then : 6342 1.4 christos printf %s "(cached) " >&6 6343 1.4 christos else case e in #( 6344 1.4 christos e) ac_cv_c_inline=no 6345 1.1 christos for ac_kw in inline __inline__ __inline; do 6346 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6347 1.1 christos /* end confdefs.h. */ 6348 1.1 christos #ifndef __cplusplus 6349 1.1 christos typedef int foo_t; 6350 1.4 christos static $ac_kw foo_t static_foo (void) {return 0; } 6351 1.4 christos $ac_kw foo_t foo (void) {return 0; } 6352 1.1 christos #endif 6353 1.1 christos 6354 1.1 christos _ACEOF 6355 1.4 christos if ac_fn_c_try_compile "$LINENO" 6356 1.4 christos then : 6357 1.1 christos ac_cv_c_inline=$ac_kw 6358 1.1 christos fi 6359 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6360 1.1 christos test "$ac_cv_c_inline" != no && break 6361 1.1 christos done 6362 1.4 christos ;; 6363 1.4 christos esac 6364 1.1 christos fi 6365 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6366 1.4 christos printf "%s\n" "$ac_cv_c_inline" >&6; } 6367 1.1 christos 6368 1.1 christos case $ac_cv_c_inline in 6369 1.1 christos inline | yes) ;; 6370 1.1 christos *) 6371 1.1 christos case $ac_cv_c_inline in 6372 1.1 christos no) ac_val=;; 6373 1.1 christos *) ac_val=$ac_cv_c_inline;; 6374 1.1 christos esac 6375 1.1 christos cat >>confdefs.h <<_ACEOF 6376 1.1 christos #ifndef __cplusplus 6377 1.1 christos #define inline $ac_val 6378 1.1 christos #endif 6379 1.1 christos _ACEOF 6380 1.1 christos ;; 6381 1.1 christos esac 6382 1.1 christos 6383 1.4 christos ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" 6384 1.4 christos if test "x$ac_cv_type_uid_t" = xyes 6385 1.4 christos then : 6386 1.4 christos 6387 1.4 christos else case e in #( 6388 1.4 christos e) 6389 1.4 christos printf "%s\n" "#define uid_t int" >>confdefs.h 6390 1.4 christos ;; 6391 1.4 christos esac 6392 1.1 christos fi 6393 1.1 christos 6394 1.4 christos ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" 6395 1.4 christos if test "x$ac_cv_type_gid_t" = xyes 6396 1.4 christos then : 6397 1.4 christos 6398 1.4 christos else case e in #( 6399 1.4 christos e) 6400 1.4 christos printf "%s\n" "#define gid_t int" >>confdefs.h 6401 1.4 christos ;; 6402 1.4 christos esac 6403 1.1 christos fi 6404 1.1 christos 6405 1.1 christos 6406 1.4 christos ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 6407 1.4 christos " 6408 1.4 christos if test "x$ac_cv_type_pid_t" = xyes 6409 1.4 christos then : 6410 1.1 christos 6411 1.4 christos else case e in #( 6412 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413 1.4 christos /* end confdefs.h. */ 6414 1.1 christos 6415 1.4 christos #if defined _WIN64 && !defined __CYGWIN__ 6416 1.4 christos LLP64 6417 1.4 christos #endif 6418 1.1 christos 6419 1.4 christos int 6420 1.4 christos main (void) 6421 1.4 christos { 6422 1.1 christos 6423 1.4 christos ; 6424 1.4 christos return 0; 6425 1.4 christos } 6426 1.1 christos 6427 1.1 christos _ACEOF 6428 1.4 christos if ac_fn_c_try_compile "$LINENO" 6429 1.4 christos then : 6430 1.4 christos ac_pid_type='int' 6431 1.4 christos else case e in #( 6432 1.4 christos e) ac_pid_type='__int64' ;; 6433 1.4 christos esac 6434 1.4 christos fi 6435 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6436 1.1 christos 6437 1.4 christos printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 6438 1.4 christos 6439 1.4 christos ;; 6440 1.4 christos esac 6441 1.1 christos fi 6442 1.1 christos 6443 1.4 christos 6444 1.1 christos ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6445 1.4 christos if test "x$ac_cv_type_size_t" = xyes 6446 1.4 christos then : 6447 1.1 christos 6448 1.4 christos else case e in #( 6449 1.4 christos e) 6450 1.4 christos printf "%s\n" "#define size_t unsigned int" >>confdefs.h 6451 1.4 christos ;; 6452 1.4 christos esac 6453 1.1 christos fi 6454 1.1 christos 6455 1.1 christos ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 6456 1.4 christos if test "x$ac_cv_type_off_t" = xyes 6457 1.4 christos then : 6458 1.1 christos 6459 1.4 christos else case e in #( 6460 1.4 christos e) 6461 1.4 christos printf "%s\n" "#define off_t long int" >>confdefs.h 6462 1.4 christos ;; 6463 1.4 christos esac 6464 1.1 christos fi 6465 1.1 christos 6466 1.1 christos 6467 1.1 christos 6468 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6469 1.4 christos printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6470 1.4 christos if test ${ac_cv_c_format_attribute+y} 6471 1.4 christos then : 6472 1.4 christos printf %s "(cached) " >&6 6473 1.4 christos else case e in #( 6474 1.4 christos e) ac_cv_c_format_attribute=no 6475 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476 1.1 christos /* end confdefs.h. */ 6477 1.1 christos #include <stdio.h> 6478 1.1 christos void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6479 1.1 christos void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6480 1.1 christos 6481 1.1 christos int 6482 1.4 christos main (void) 6483 1.1 christos { 6484 1.1 christos 6485 1.1 christos f ("%s", "str"); 6486 1.1 christos 6487 1.1 christos ; 6488 1.1 christos return 0; 6489 1.1 christos } 6490 1.1 christos _ACEOF 6491 1.4 christos if ac_fn_c_try_compile "$LINENO" 6492 1.4 christos then : 6493 1.1 christos ac_cv_c_format_attribute="yes" 6494 1.4 christos else case e in #( 6495 1.4 christos e) ac_cv_c_format_attribute="no" ;; 6496 1.4 christos esac 6497 1.1 christos fi 6498 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6499 1.4 christos ;; 6500 1.4 christos esac 6501 1.1 christos fi 6502 1.1 christos 6503 1.1 christos 6504 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6505 1.4 christos printf "%s\n" "$ac_cv_c_format_attribute" >&6; } 6506 1.1 christos if test $ac_cv_c_format_attribute = yes; then 6507 1.1 christos 6508 1.4 christos printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6509 1.1 christos 6510 1.1 christos fi 6511 1.1 christos 6512 1.1 christos 6513 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6514 1.4 christos printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6515 1.4 christos if test ${ac_cv_c_unused_attribute+y} 6516 1.4 christos then : 6517 1.4 christos printf %s "(cached) " >&6 6518 1.4 christos else case e in #( 6519 1.4 christos e) ac_cv_c_unused_attribute=no 6520 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6521 1.1 christos /* end confdefs.h. */ 6522 1.1 christos #include <stdio.h> 6523 1.1 christos void f (char *u __attribute__((unused))); 6524 1.1 christos 6525 1.1 christos int 6526 1.4 christos main (void) 6527 1.1 christos { 6528 1.1 christos 6529 1.1 christos f ("x"); 6530 1.1 christos 6531 1.1 christos ; 6532 1.1 christos return 0; 6533 1.1 christos } 6534 1.1 christos _ACEOF 6535 1.4 christos if ac_fn_c_try_compile "$LINENO" 6536 1.4 christos then : 6537 1.1 christos ac_cv_c_unused_attribute="yes" 6538 1.4 christos else case e in #( 6539 1.4 christos e) ac_cv_c_unused_attribute="no" ;; 6540 1.4 christos esac 6541 1.1 christos fi 6542 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6543 1.4 christos ;; 6544 1.4 christos esac 6545 1.1 christos fi 6546 1.1 christos 6547 1.1 christos 6548 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6549 1.4 christos printf "%s\n" "$ac_cv_c_unused_attribute" >&6; } 6550 1.1 christos if test $ac_cv_c_unused_attribute = yes; then 6551 1.1 christos 6552 1.4 christos printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6553 1.1 christos 6554 1.1 christos fi 6555 1.1 christos 6556 1.2 christos 6557 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6558 1.4 christos printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6559 1.4 christos if test ${ac_cv_c_weak_attribute+y} 6560 1.4 christos then : 6561 1.4 christos printf %s "(cached) " >&6 6562 1.4 christos else case e in #( 6563 1.4 christos e) ac_cv_c_weak_attribute=no 6564 1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6565 1.2 christos /* end confdefs.h. */ 6566 1.2 christos #include <stdio.h> 6567 1.2 christos __attribute__((weak)) void f(int x) { printf("%d", x); } 6568 1.2 christos 6569 1.2 christos int 6570 1.4 christos main (void) 6571 1.2 christos { 6572 1.2 christos 6573 1.2 christos f(1); 6574 1.2 christos 6575 1.2 christos ; 6576 1.2 christos return 0; 6577 1.2 christos } 6578 1.2 christos _ACEOF 6579 1.4 christos if ac_fn_c_try_compile "$LINENO" 6580 1.4 christos then : 6581 1.2 christos ac_cv_c_weak_attribute="yes" 6582 1.4 christos else case e in #( 6583 1.4 christos e) ac_cv_c_weak_attribute="no" ;; 6584 1.4 christos esac 6585 1.2 christos fi 6586 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6587 1.4 christos ;; 6588 1.4 christos esac 6589 1.2 christos fi 6590 1.2 christos 6591 1.2 christos 6592 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6593 1.4 christos printf "%s\n" "$ac_cv_c_weak_attribute" >&6; } 6594 1.2 christos if test $ac_cv_c_weak_attribute = yes; then 6595 1.2 christos 6596 1.4 christos printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6597 1.2 christos 6598 1.2 christos 6599 1.4 christos printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6600 1.2 christos 6601 1.2 christos fi 6602 1.2 christos 6603 1.2 christos 6604 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6605 1.4 christos printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6606 1.4 christos if test ${ac_cv_c_noreturn_attribute+y} 6607 1.4 christos then : 6608 1.4 christos printf %s "(cached) " >&6 6609 1.4 christos else case e in #( 6610 1.4 christos e) ac_cv_c_noreturn_attribute=no 6611 1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612 1.2 christos /* end confdefs.h. */ 6613 1.2 christos #include <stdio.h> 6614 1.2 christos __attribute__((noreturn)) void f(int x) { printf("%d", x); } 6615 1.2 christos 6616 1.2 christos int 6617 1.4 christos main (void) 6618 1.2 christos { 6619 1.2 christos 6620 1.2 christos f(1); 6621 1.2 christos 6622 1.2 christos ; 6623 1.2 christos return 0; 6624 1.2 christos } 6625 1.2 christos _ACEOF 6626 1.4 christos if ac_fn_c_try_compile "$LINENO" 6627 1.4 christos then : 6628 1.2 christos ac_cv_c_noreturn_attribute="yes" 6629 1.4 christos else case e in #( 6630 1.4 christos e) ac_cv_c_noreturn_attribute="no" ;; 6631 1.4 christos esac 6632 1.2 christos fi 6633 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6634 1.4 christos ;; 6635 1.4 christos esac 6636 1.2 christos fi 6637 1.2 christos 6638 1.2 christos 6639 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 6640 1.4 christos printf "%s\n" "$ac_cv_c_noreturn_attribute" >&6; } 6641 1.2 christos if test $ac_cv_c_noreturn_attribute = yes; then 6642 1.2 christos 6643 1.4 christos printf "%s\n" "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 6644 1.2 christos 6645 1.2 christos 6646 1.4 christos printf "%s\n" "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 6647 1.2 christos 6648 1.2 christos fi 6649 1.2 christos 6650 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 6651 1.4 christos printf %s "checking if memcmp compares unsigned... " >&6; } 6652 1.4 christos if test "$cross_compiling" = yes 6653 1.4 christos then : 6654 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 6655 1.4 christos printf "%s\n" "cross-compile no" >&6; } 6656 1.1 christos 6657 1.4 christos printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 6658 1.1 christos 6659 1.1 christos case " $LIBOBJS " in 6660 1.1 christos *" memcmp.$ac_objext "* ) ;; 6661 1.1 christos *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 6662 1.1 christos ;; 6663 1.1 christos esac 6664 1.1 christos 6665 1.1 christos 6666 1.4 christos else case e in #( 6667 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668 1.1 christos /* end confdefs.h. */ 6669 1.1 christos 6670 1.1 christos #include <stdio.h> 6671 1.1 christos #include <stdlib.h> 6672 1.1 christos #include <string.h> 6673 1.1 christos int main(void) 6674 1.1 christos { 6675 1.1 christos char a = 255, b = 0; 6676 1.1 christos if(memcmp(&a, &b, 1) < 0) 6677 1.1 christos return 1; 6678 1.1 christos return 0; 6679 1.1 christos } 6680 1.1 christos 6681 1.1 christos _ACEOF 6682 1.4 christos if ac_fn_c_try_run "$LINENO" 6683 1.4 christos then : 6684 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6685 1.4 christos printf "%s\n" "yes" >&6; } 6686 1.4 christos else case e in #( 6687 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688 1.4 christos printf "%s\n" "no" >&6; } 6689 1.1 christos 6690 1.4 christos printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 6691 1.1 christos 6692 1.1 christos case " $LIBOBJS " in 6693 1.1 christos *" memcmp.$ac_objext "* ) ;; 6694 1.1 christos *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 6695 1.1 christos ;; 6696 1.1 christos esac 6697 1.1 christos 6698 1.4 christos ;; 6699 1.4 christos esac 6700 1.1 christos fi 6701 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6702 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6703 1.4 christos esac 6704 1.1 christos fi 6705 1.1 christos 6706 1.1 christos 6707 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctime_r works with two arguments" >&5 6708 1.4 christos printf %s "checking whether ctime_r works with two arguments... " >&6; } 6709 1.4 christos if test ${ac_cv_c_ctime_c+y} 6710 1.4 christos then : 6711 1.4 christos printf %s "(cached) " >&6 6712 1.4 christos else case e in #( 6713 1.4 christos e) ac_cv_c_ctime_c=no 6714 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715 1.1 christos /* end confdefs.h. */ 6716 1.1 christos #include <time.h> 6717 1.1 christos void testing (void) { time_t clock; char current_time[40]; ctime_r(&clock, current_time); } 6718 1.1 christos int 6719 1.4 christos main (void) 6720 1.1 christos { 6721 1.1 christos 6722 1.1 christos testing(); 6723 1.1 christos 6724 1.1 christos ; 6725 1.1 christos return 0; 6726 1.1 christos } 6727 1.1 christos _ACEOF 6728 1.4 christos if ac_fn_c_try_compile "$LINENO" 6729 1.4 christos then : 6730 1.1 christos ac_cv_c_ctime_c="yes" 6731 1.4 christos else case e in #( 6732 1.4 christos e) ac_cv_c_ctime_c="no" ;; 6733 1.4 christos esac 6734 1.1 christos fi 6735 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6736 1.4 christos ;; 6737 1.4 christos esac 6738 1.1 christos fi 6739 1.1 christos 6740 1.1 christos 6741 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ctime_c" >&5 6742 1.4 christos printf "%s\n" "$ac_cv_c_ctime_c" >&6; } 6743 1.1 christos if test $ac_cv_c_ctime_c = no; then 6744 1.1 christos CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" 6745 1.1 christos fi 6746 1.1 christos 6747 1.1 christos 6748 1.1 christos # Checks for libraries. 6749 1.1 christos 6750 1.1 christos # Check for SSL, original taken from 6751 1.1 christos # http://www.gnu.org/software/ac-archive/htmldoc/check_ssl.html and 6752 1.1 christos # modified for NSD. 6753 1.1 christos 6754 1.1 christos # check for libevent 6755 1.1 christos 6756 1.1 christos # Check whether --with-libevent was given. 6757 1.4 christos if test ${with_libevent+y} 6758 1.4 christos then : 6759 1.1 christos withval=$with_libevent; 6760 1.4 christos else case e in #( 6761 1.4 christos e) withval="yes" ;; 6762 1.4 christos esac 6763 1.1 christos fi 6764 1.1 christos 6765 1.1 christos if test x_$withval = x_yes -o x_$withval != x_no; then 6766 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 6767 1.4 christos printf %s "checking for libevent... " >&6; } 6768 1.1 christos if test x_$withval = x_ -o x_$withval = x_yes; then 6769 1.2 christos withval="/usr/local /opt/local /usr/lib /usr/sfw /usr /usr/local/opt/libevent" 6770 1.1 christos fi 6771 1.1 christos for dir in $withval; do 6772 1.1 christos thedir="$dir" 6773 1.1 christos if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 6774 1.1 christos found_libevent="yes" 6775 1.1 christos if test "$thedir" != "/usr"; then 6776 1.1 christos CPPFLAGS="$CPPFLAGS -I$thedir/include" 6777 1.1 christos fi 6778 1.1 christos break; 6779 1.1 christos fi 6780 1.1 christos done 6781 1.1 christos if test x_$found_libevent != x_yes; then 6782 1.1 christos if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 6783 1.1 christos # libevent source directory 6784 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 6785 1.4 christos printf "%s\n" "found in $thedir" >&6; } 6786 1.1 christos CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 6787 1.1 christos # remove evdns from linking 6788 1.2 christos ev_files_o=`ls $thedir/*.o | $GREP -v evdns\.o | $GREP -v bufferevent_openssl\.o` 6789 1.1 christos cp $ev_files_o . 6790 1.1 christos LDFLAGS="$ev_files_o $LDFLAGS -lm" 6791 1.1 christos else 6792 1.1 christos as_fn_error $? "Cannot find the libevent library. 6793 1.1 christos You can restart ./configure --with-libevent=no to use a builtin alternative." "$LINENO" 5 6794 1.1 christos fi 6795 1.1 christos else 6796 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 6797 1.4 christos printf "%s\n" "found in $thedir" >&6; } 6798 1.1 christos if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 6799 1.1 christos LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 6800 1.1 christos 6801 1.1 christos if test "x$enable_rpath" = xyes; then 6802 1.1 christos if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 6803 1.1 christos RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 6804 1.1 christos fi 6805 1.1 christos fi 6806 1.1 christos 6807 1.1 christos else 6808 1.1 christos if test "$thedir" != "/usr" -a "$thedir" != ""; then 6809 1.1 christos LDFLAGS="$LDFLAGS -L$thedir/lib" 6810 1.1 christos 6811 1.1 christos if test "x$enable_rpath" = xyes; then 6812 1.1 christos if echo "$thedir/lib" | grep "^/" >/dev/null; then 6813 1.1 christos RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 6814 1.1 christos fi 6815 1.1 christos fi 6816 1.1 christos 6817 1.1 christos fi 6818 1.1 christos fi 6819 1.1 christos fi 6820 1.1 christos # check for library used by libevent after 1.3c 6821 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 6822 1.4 christos printf %s "checking for library containing clock_gettime... " >&6; } 6823 1.4 christos if test ${ac_cv_search_clock_gettime+y} 6824 1.4 christos then : 6825 1.4 christos printf %s "(cached) " >&6 6826 1.4 christos else case e in #( 6827 1.4 christos e) ac_func_search_save_LIBS=$LIBS 6828 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6829 1.1 christos /* end confdefs.h. */ 6830 1.1 christos 6831 1.1 christos /* Override any GCC internal prototype to avoid an error. 6832 1.1 christos Use char because int might match the return type of a GCC 6833 1.4 christos builtin and then its argument prototype would still apply. 6834 1.4 christos The 'extern "C"' is for builds by C++ compilers; 6835 1.4 christos although this is not generally supported in C code supporting it here 6836 1.4 christos has little cost and some practical benefit (sr 110532). */ 6837 1.1 christos #ifdef __cplusplus 6838 1.1 christos extern "C" 6839 1.1 christos #endif 6840 1.4 christos char clock_gettime (void); 6841 1.1 christos int 6842 1.4 christos main (void) 6843 1.1 christos { 6844 1.1 christos return clock_gettime (); 6845 1.1 christos ; 6846 1.1 christos return 0; 6847 1.1 christos } 6848 1.1 christos _ACEOF 6849 1.4 christos for ac_lib in '' rt 6850 1.4 christos do 6851 1.1 christos if test -z "$ac_lib"; then 6852 1.1 christos ac_res="none required" 6853 1.1 christos else 6854 1.1 christos ac_res=-l$ac_lib 6855 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6856 1.1 christos fi 6857 1.4 christos if ac_fn_c_try_link "$LINENO" 6858 1.4 christos then : 6859 1.1 christos ac_cv_search_clock_gettime=$ac_res 6860 1.1 christos fi 6861 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6862 1.1 christos conftest$ac_exeext 6863 1.4 christos if test ${ac_cv_search_clock_gettime+y} 6864 1.4 christos then : 6865 1.1 christos break 6866 1.1 christos fi 6867 1.1 christos done 6868 1.4 christos if test ${ac_cv_search_clock_gettime+y} 6869 1.4 christos then : 6870 1.1 christos 6871 1.4 christos else case e in #( 6872 1.4 christos e) ac_cv_search_clock_gettime=no ;; 6873 1.4 christos esac 6874 1.1 christos fi 6875 1.1 christos rm conftest.$ac_ext 6876 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 6877 1.4 christos esac 6878 1.1 christos fi 6879 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 6880 1.4 christos printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 6881 1.1 christos ac_res=$ac_cv_search_clock_gettime 6882 1.4 christos if test "$ac_res" != no 6883 1.4 christos then : 6884 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6885 1.1 christos 6886 1.1 christos fi 6887 1.1 christos 6888 1.1 christos 6889 1.1 christos # is the event.h header libev or libevent? 6890 1.4 christos ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 6891 1.1 christos " 6892 1.4 christos if test "x$ac_cv_header_event_h" = xyes 6893 1.4 christos then : 6894 1.4 christos printf "%s\n" "#define HAVE_EVENT_H 1" >>confdefs.h 6895 1.4 christos 6896 1.4 christos fi 6897 1.4 christos 6898 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 6899 1.4 christos printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 6900 1.4 christos if test ${ac_cv_c_undeclared_builtin_options+y} 6901 1.4 christos then : 6902 1.4 christos printf %s "(cached) " >&6 6903 1.4 christos else case e in #( 6904 1.4 christos e) ac_save_CFLAGS=$CFLAGS 6905 1.4 christos ac_cv_c_undeclared_builtin_options='cannot detect' 6906 1.4 christos for ac_arg in '' -fno-builtin; do 6907 1.4 christos CFLAGS="$ac_save_CFLAGS $ac_arg" 6908 1.4 christos # This test program should *not* compile successfully. 6909 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6910 1.4 christos /* end confdefs.h. */ 6911 1.4 christos 6912 1.4 christos int 6913 1.4 christos main (void) 6914 1.4 christos { 6915 1.4 christos (void) strchr; 6916 1.4 christos ; 6917 1.4 christos return 0; 6918 1.4 christos } 6919 1.1 christos _ACEOF 6920 1.4 christos if ac_fn_c_try_compile "$LINENO" 6921 1.4 christos then : 6922 1.4 christos 6923 1.4 christos else case e in #( 6924 1.4 christos e) # This test program should compile successfully. 6925 1.4 christos # No library function is consistently available on 6926 1.4 christos # freestanding implementations, so test against a dummy 6927 1.4 christos # declaration. Include always-available headers on the 6928 1.4 christos # off chance that they somehow elicit warnings. 6929 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930 1.4 christos /* end confdefs.h. */ 6931 1.4 christos #include <float.h> 6932 1.4 christos #include <limits.h> 6933 1.4 christos #include <stdarg.h> 6934 1.4 christos #include <stddef.h> 6935 1.4 christos extern void ac_decl (int, char *); 6936 1.1 christos 6937 1.4 christos int 6938 1.4 christos main (void) 6939 1.4 christos { 6940 1.4 christos (void) ac_decl (0, (char *) 0); 6941 1.4 christos (void) ac_decl; 6942 1.4 christos 6943 1.4 christos ; 6944 1.4 christos return 0; 6945 1.4 christos } 6946 1.4 christos _ACEOF 6947 1.4 christos if ac_fn_c_try_compile "$LINENO" 6948 1.4 christos then : 6949 1.4 christos if test x"$ac_arg" = x 6950 1.4 christos then : 6951 1.4 christos ac_cv_c_undeclared_builtin_options='none needed' 6952 1.4 christos else case e in #( 6953 1.4 christos e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 6954 1.4 christos esac 6955 1.4 christos fi 6956 1.4 christos break 6957 1.4 christos fi 6958 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6959 1.4 christos esac 6960 1.1 christos fi 6961 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6962 1.4 christos done 6963 1.4 christos CFLAGS=$ac_save_CFLAGS 6964 1.4 christos ;; 6965 1.4 christos esac 6966 1.4 christos fi 6967 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6968 1.4 christos printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6969 1.4 christos case $ac_cv_c_undeclared_builtin_options in #( 6970 1.4 christos 'cannot detect') : 6971 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 6972 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 6973 1.4 christos as_fn_error $? "cannot make $CC report undeclared builtins 6974 1.4 christos See 'config.log' for more details" "$LINENO" 5; } ;; #( 6975 1.4 christos 'none needed') : 6976 1.4 christos ac_c_undeclared_builtin_options='' ;; #( 6977 1.4 christos *) : 6978 1.4 christos ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6979 1.4 christos esac 6980 1.1 christos 6981 1.4 christos ac_fn_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 6982 1.1 christos #include <event.h> 6983 1.1 christos 6984 1.4 christos " "$ac_c_undeclared_builtin_options" "CFLAGS" 6985 1.4 christos if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes 6986 1.4 christos then : 6987 1.4 christos 6988 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 6989 1.4 christos printf %s "checking for library containing event_set... " >&6; } 6990 1.4 christos if test ${ac_cv_search_event_set+y} 6991 1.4 christos then : 6992 1.4 christos printf %s "(cached) " >&6 6993 1.4 christos else case e in #( 6994 1.4 christos e) ac_func_search_save_LIBS=$LIBS 6995 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996 1.1 christos /* end confdefs.h. */ 6997 1.1 christos 6998 1.1 christos /* Override any GCC internal prototype to avoid an error. 6999 1.1 christos Use char because int might match the return type of a GCC 7000 1.4 christos builtin and then its argument prototype would still apply. 7001 1.4 christos The 'extern "C"' is for builds by C++ compilers; 7002 1.4 christos although this is not generally supported in C code supporting it here 7003 1.4 christos has little cost and some practical benefit (sr 110532). */ 7004 1.1 christos #ifdef __cplusplus 7005 1.1 christos extern "C" 7006 1.1 christos #endif 7007 1.4 christos char event_set (void); 7008 1.1 christos int 7009 1.4 christos main (void) 7010 1.1 christos { 7011 1.1 christos return event_set (); 7012 1.1 christos ; 7013 1.1 christos return 0; 7014 1.1 christos } 7015 1.1 christos _ACEOF 7016 1.4 christos for ac_lib in '' ev 7017 1.4 christos do 7018 1.1 christos if test -z "$ac_lib"; then 7019 1.1 christos ac_res="none required" 7020 1.1 christos else 7021 1.1 christos ac_res=-l$ac_lib 7022 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7023 1.1 christos fi 7024 1.4 christos if ac_fn_c_try_link "$LINENO" 7025 1.4 christos then : 7026 1.1 christos ac_cv_search_event_set=$ac_res 7027 1.1 christos fi 7028 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7029 1.1 christos conftest$ac_exeext 7030 1.4 christos if test ${ac_cv_search_event_set+y} 7031 1.4 christos then : 7032 1.1 christos break 7033 1.1 christos fi 7034 1.1 christos done 7035 1.4 christos if test ${ac_cv_search_event_set+y} 7036 1.4 christos then : 7037 1.1 christos 7038 1.4 christos else case e in #( 7039 1.4 christos e) ac_cv_search_event_set=no ;; 7040 1.4 christos esac 7041 1.1 christos fi 7042 1.1 christos rm conftest.$ac_ext 7043 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 7044 1.4 christos esac 7045 1.1 christos fi 7046 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 7047 1.4 christos printf "%s\n" "$ac_cv_search_event_set" >&6; } 7048 1.1 christos ac_res=$ac_cv_search_event_set 7049 1.4 christos if test "$ac_res" != no 7050 1.4 christos then : 7051 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7052 1.1 christos 7053 1.1 christos fi 7054 1.1 christos 7055 1.1 christos 7056 1.4 christos else case e in #( 7057 1.4 christos e) 7058 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 7059 1.4 christos printf %s "checking for library containing event_set... " >&6; } 7060 1.4 christos if test ${ac_cv_search_event_set+y} 7061 1.4 christos then : 7062 1.4 christos printf %s "(cached) " >&6 7063 1.4 christos else case e in #( 7064 1.4 christos e) ac_func_search_save_LIBS=$LIBS 7065 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066 1.1 christos /* end confdefs.h. */ 7067 1.1 christos 7068 1.1 christos /* Override any GCC internal prototype to avoid an error. 7069 1.1 christos Use char because int might match the return type of a GCC 7070 1.4 christos builtin and then its argument prototype would still apply. 7071 1.4 christos The 'extern "C"' is for builds by C++ compilers; 7072 1.4 christos although this is not generally supported in C code supporting it here 7073 1.4 christos has little cost and some practical benefit (sr 110532). */ 7074 1.1 christos #ifdef __cplusplus 7075 1.1 christos extern "C" 7076 1.1 christos #endif 7077 1.4 christos char event_set (void); 7078 1.1 christos int 7079 1.4 christos main (void) 7080 1.1 christos { 7081 1.1 christos return event_set (); 7082 1.1 christos ; 7083 1.1 christos return 0; 7084 1.1 christos } 7085 1.1 christos _ACEOF 7086 1.4 christos for ac_lib in '' event 7087 1.4 christos do 7088 1.1 christos if test -z "$ac_lib"; then 7089 1.1 christos ac_res="none required" 7090 1.1 christos else 7091 1.1 christos ac_res=-l$ac_lib 7092 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7093 1.1 christos fi 7094 1.4 christos if ac_fn_c_try_link "$LINENO" 7095 1.4 christos then : 7096 1.1 christos ac_cv_search_event_set=$ac_res 7097 1.1 christos fi 7098 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7099 1.1 christos conftest$ac_exeext 7100 1.4 christos if test ${ac_cv_search_event_set+y} 7101 1.4 christos then : 7102 1.1 christos break 7103 1.1 christos fi 7104 1.1 christos done 7105 1.4 christos if test ${ac_cv_search_event_set+y} 7106 1.4 christos then : 7107 1.1 christos 7108 1.4 christos else case e in #( 7109 1.4 christos e) ac_cv_search_event_set=no ;; 7110 1.4 christos esac 7111 1.1 christos fi 7112 1.1 christos rm conftest.$ac_ext 7113 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 7114 1.4 christos esac 7115 1.1 christos fi 7116 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 7117 1.4 christos printf "%s\n" "$ac_cv_search_event_set" >&6; } 7118 1.1 christos ac_res=$ac_cv_search_event_set 7119 1.4 christos if test "$ac_res" != no 7120 1.4 christos then : 7121 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7122 1.1 christos 7123 1.1 christos fi 7124 1.1 christos 7125 1.4 christos ;; 7126 1.4 christos esac 7127 1.1 christos fi 7128 1.4 christos ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 7129 1.4 christos if test "x$ac_cv_func_event_base_free" = xyes 7130 1.4 christos then : 7131 1.4 christos printf "%s\n" "#define HAVE_EVENT_BASE_FREE 1" >>confdefs.h 7132 1.1 christos 7133 1.1 christos fi 7134 1.1 christos # only in libevent 1.2 and later 7135 1.4 christos ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 7136 1.4 christos if test "x$ac_cv_func_event_base_once" = xyes 7137 1.4 christos then : 7138 1.4 christos printf "%s\n" "#define HAVE_EVENT_BASE_ONCE 1" >>confdefs.h 7139 1.1 christos 7140 1.1 christos fi 7141 1.1 christos # only in libevent 1.4.1 and later 7142 1.4 christos ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 7143 1.4 christos if test "x$ac_cv_func_event_base_new" = xyes 7144 1.4 christos then : 7145 1.4 christos printf "%s\n" "#define HAVE_EVENT_BASE_NEW 1" >>confdefs.h 7146 1.1 christos 7147 1.1 christos fi 7148 1.1 christos # only in libevent 1.4.1 and later 7149 1.4 christos ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 7150 1.4 christos if test "x$ac_cv_func_event_base_get_method" = xyes 7151 1.4 christos then : 7152 1.4 christos printf "%s\n" "#define HAVE_EVENT_BASE_GET_METHOD 1" >>confdefs.h 7153 1.1 christos 7154 1.1 christos fi 7155 1.1 christos # only in libevent 1.4.3 and later 7156 1.4 christos ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 7157 1.4 christos if test "x$ac_cv_func_ev_loop" = xyes 7158 1.4 christos then : 7159 1.4 christos printf "%s\n" "#define HAVE_EV_LOOP 1" >>confdefs.h 7160 1.1 christos 7161 1.1 christos fi 7162 1.1 christos # only in libev. (tested on 3.51) 7163 1.4 christos ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 7164 1.4 christos if test "x$ac_cv_func_ev_default_loop" = xyes 7165 1.4 christos then : 7166 1.4 christos printf "%s\n" "#define HAVE_EV_DEFAULT_LOOP 1" >>confdefs.h 7167 1.4 christos 7168 1.4 christos fi 7169 1.4 christos # only in libev. (tested on 4.00) 7170 1.4 christos 7171 1.4 christos # prometheus metrics depend on libevent 2.0 and later, and is therefore 7172 1.4 christos # only enabled when the required version is found and used 7173 1.4 christos 7174 1.4 christos for ac_func in evhttp_free 7175 1.1 christos do : 7176 1.4 christos ac_fn_c_check_func "$LINENO" "evhttp_free" "ac_cv_func_evhttp_free" 7177 1.4 christos if test "x$ac_cv_func_evhttp_free" = xyes 7178 1.4 christos then : 7179 1.4 christos printf "%s\n" "#define HAVE_EVHTTP_FREE 1" >>confdefs.h 7180 1.4 christos 7181 1.4 christos 7182 1.4 christos printf "%s\n" "#define USE_METRICS /**/" >>confdefs.h 7183 1.4 christos 7184 1.4 christos 7185 1.4 christos printf "%s\n" "#define NSD_METRICS_PORT 9100" >>confdefs.h 7186 1.4 christos 7187 1.1 christos 7188 1.4 christos else case e in #( 7189 1.4 christos e) 7190 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disabling prometheus metrics" >&5 7191 1.4 christos printf "%s\n" "$as_me: disabling prometheus metrics" >&6;} 7192 1.4 christos ;; 7193 1.4 christos esac 7194 1.1 christos fi 7195 1.4 christos 7196 1.1 christos done 7197 1.1 christos else 7198 1.1 christos 7199 1.4 christos printf "%s\n" "#define USE_MINI_EVENT 1" >>confdefs.h 7200 1.1 christos 7201 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Prometheus metrics are disabled with the builtin libevent alternative" >&5 7202 1.4 christos printf "%s\n" "$as_me: Prometheus metrics are disabled with the builtin libevent alternative" >&6;} 7203 1.1 christos fi 7204 1.1 christos 7205 1.1 christos # Checks for header files. 7206 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7207 1.4 christos printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7208 1.4 christos if test ${ac_cv_header_sys_wait_h+y} 7209 1.4 christos then : 7210 1.4 christos printf %s "(cached) " >&6 7211 1.4 christos else case e in #( 7212 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7213 1.1 christos /* end confdefs.h. */ 7214 1.2 christos #include <sys/types.h> 7215 1.2 christos #include <sys/wait.h> 7216 1.2 christos #ifndef WEXITSTATUS 7217 1.2 christos # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 7218 1.2 christos #endif 7219 1.2 christos #ifndef WIFEXITED 7220 1.2 christos # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7221 1.2 christos #endif 7222 1.1 christos 7223 1.1 christos int 7224 1.4 christos main (void) 7225 1.1 christos { 7226 1.2 christos int s; 7227 1.2 christos wait (&s); 7228 1.2 christos s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7229 1.1 christos ; 7230 1.1 christos return 0; 7231 1.1 christos } 7232 1.1 christos _ACEOF 7233 1.4 christos if ac_fn_c_try_compile "$LINENO" 7234 1.4 christos then : 7235 1.2 christos ac_cv_header_sys_wait_h=yes 7236 1.4 christos else case e in #( 7237 1.4 christos e) ac_cv_header_sys_wait_h=no ;; 7238 1.4 christos esac 7239 1.1 christos fi 7240 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7241 1.4 christos esac 7242 1.2 christos fi 7243 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7244 1.4 christos printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } 7245 1.2 christos if test $ac_cv_header_sys_wait_h = yes; then 7246 1.2 christos 7247 1.4 christos printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7248 1.4 christos 7249 1.4 christos fi 7250 1.4 christos 7251 1.4 christos ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 7252 1.4 christos " 7253 1.4 christos if test "x$ac_cv_header_time_h" = xyes 7254 1.4 christos then : 7255 1.4 christos printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 7256 1.4 christos 7257 1.4 christos fi 7258 1.4 christos ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default 7259 1.4 christos " 7260 1.4 christos if test "x$ac_cv_header_arpa_inet_h" = xyes 7261 1.4 christos then : 7262 1.4 christos printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 7263 1.4 christos 7264 1.4 christos fi 7265 1.4 christos ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default 7266 1.4 christos " 7267 1.4 christos if test "x$ac_cv_header_signal_h" = xyes 7268 1.4 christos then : 7269 1.4 christos printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 7270 1.4 christos 7271 1.4 christos fi 7272 1.4 christos ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default 7273 1.4 christos " 7274 1.4 christos if test "x$ac_cv_header_string_h" = xyes 7275 1.4 christos then : 7276 1.4 christos printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h 7277 1.4 christos 7278 1.4 christos fi 7279 1.4 christos ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default 7280 1.4 christos " 7281 1.4 christos if test "x$ac_cv_header_strings_h" = xyes 7282 1.4 christos then : 7283 1.4 christos printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 7284 1.4 christos 7285 1.4 christos fi 7286 1.4 christos ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default 7287 1.4 christos " 7288 1.4 christos if test "x$ac_cv_header_fcntl_h" = xyes 7289 1.4 christos then : 7290 1.4 christos printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 7291 1.4 christos 7292 1.4 christos fi 7293 1.4 christos ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default 7294 1.4 christos " 7295 1.4 christos if test "x$ac_cv_header_limits_h" = xyes 7296 1.4 christos then : 7297 1.4 christos printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 7298 1.4 christos 7299 1.4 christos fi 7300 1.4 christos ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default 7301 1.4 christos " 7302 1.4 christos if test "x$ac_cv_header_netinet_in_h" = xyes 7303 1.4 christos then : 7304 1.4 christos printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 7305 1.4 christos 7306 1.4 christos fi 7307 1.4 christos ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default 7308 1.4 christos " 7309 1.4 christos if test "x$ac_cv_header_netinet_tcp_h" = xyes 7310 1.4 christos then : 7311 1.4 christos printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 7312 1.4 christos 7313 1.4 christos fi 7314 1.4 christos ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default 7315 1.4 christos " 7316 1.4 christos if test "x$ac_cv_header_stddef_h" = xyes 7317 1.4 christos then : 7318 1.4 christos printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h 7319 1.4 christos 7320 1.4 christos fi 7321 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default 7322 1.4 christos " 7323 1.4 christos if test "x$ac_cv_header_sys_param_h" = xyes 7324 1.4 christos then : 7325 1.4 christos printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 7326 1.4 christos 7327 1.4 christos fi 7328 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 7329 1.4 christos " 7330 1.4 christos if test "x$ac_cv_header_sys_socket_h" = xyes 7331 1.4 christos then : 7332 1.4 christos printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 7333 1.4 christos 7334 1.4 christos fi 7335 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default 7336 1.4 christos " 7337 1.4 christos if test "x$ac_cv_header_sys_un_h" = xyes 7338 1.4 christos then : 7339 1.4 christos printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 7340 1.4 christos 7341 1.4 christos fi 7342 1.4 christos ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default 7343 1.4 christos " 7344 1.4 christos if test "x$ac_cv_header_syslog_h" = xyes 7345 1.4 christos then : 7346 1.4 christos printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 7347 1.4 christos 7348 1.4 christos fi 7349 1.4 christos ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 7350 1.4 christos " 7351 1.4 christos if test "x$ac_cv_header_unistd_h" = xyes 7352 1.4 christos then : 7353 1.4 christos printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 7354 1.4 christos 7355 1.4 christos fi 7356 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default 7357 1.4 christos " 7358 1.4 christos if test "x$ac_cv_header_sys_select_h" = xyes 7359 1.4 christos then : 7360 1.4 christos printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 7361 1.4 christos 7362 1.4 christos fi 7363 1.4 christos ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default 7364 1.4 christos " 7365 1.4 christos if test "x$ac_cv_header_stdarg_h" = xyes 7366 1.4 christos then : 7367 1.4 christos printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 7368 1.4 christos 7369 1.4 christos fi 7370 1.4 christos ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default 7371 1.4 christos " 7372 1.4 christos if test "x$ac_cv_header_stdint_h" = xyes 7373 1.4 christos then : 7374 1.4 christos printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 7375 1.4 christos 7376 1.4 christos fi 7377 1.4 christos ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 7378 1.4 christos " 7379 1.4 christos if test "x$ac_cv_header_netdb_h" = xyes 7380 1.4 christos then : 7381 1.4 christos printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 7382 1.4 christos 7383 1.4 christos fi 7384 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default 7385 1.4 christos " 7386 1.4 christos if test "x$ac_cv_header_sys_bitypes_h" = xyes 7387 1.4 christos then : 7388 1.4 christos printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h 7389 1.4 christos 7390 1.4 christos fi 7391 1.4 christos ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default 7392 1.4 christos " 7393 1.4 christos if test "x$ac_cv_header_tcpd_h" = xyes 7394 1.4 christos then : 7395 1.4 christos printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h 7396 1.4 christos 7397 1.4 christos fi 7398 1.4 christos ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default 7399 1.4 christos " 7400 1.4 christos if test "x$ac_cv_header_glob_h" = xyes 7401 1.4 christos then : 7402 1.4 christos printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h 7403 1.1 christos 7404 1.2 christos fi 7405 1.4 christos ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default 7406 1.4 christos " 7407 1.4 christos if test "x$ac_cv_header_grp_h" = xyes 7408 1.4 christos then : 7409 1.4 christos printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 7410 1.1 christos 7411 1.4 christos fi 7412 1.4 christos ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default 7413 1.2 christos " 7414 1.4 christos if test "x$ac_cv_header_endian_h" = xyes 7415 1.4 christos then : 7416 1.4 christos printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 7417 1.1 christos 7418 1.1 christos fi 7419 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default 7420 1.4 christos " 7421 1.4 christos if test "x$ac_cv_header_sys_random_h" = xyes 7422 1.4 christos then : 7423 1.4 christos printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 7424 1.1 christos 7425 1.4 christos fi 7426 1.4 christos ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default 7427 1.4 christos " 7428 1.4 christos if test "x$ac_cv_header_ifaddrs_h" = xyes 7429 1.4 christos then : 7430 1.4 christos printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 7431 1.2 christos 7432 1.4 christos fi 7433 1.2 christos 7434 1.2 christos 7435 1.2 christos 7436 1.1 christos 7437 1.1 christos 7438 1.1 christos 7439 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for double definition of struct va_list" >&5 7440 1.4 christos printf %s "checking for double definition of struct va_list... " >&6; } 7441 1.4 christos if test ${ac_cv_c_va_list_def+y} 7442 1.4 christos then : 7443 1.4 christos printf %s "(cached) " >&6 7444 1.4 christos else case e in #( 7445 1.4 christos e) 7446 1.2 christos cat >conftest.c <<EOF 7447 1.2 christos #include <stdio.h> 7448 1.2 christos #include <stdarg.h> 7449 1.2 christos int foo(void); 7450 1.2 christos EOF 7451 1.2 christos if test -z "`$CC -Werror -D_XOPEN_SOURCE=600 -c conftest.c 2>&1`"; then 7452 1.2 christos eval "ac_cv_c_va_list_def=no" 7453 1.1 christos else 7454 1.2 christos eval "ac_cv_c_va_list_def=yes" 7455 1.1 christos fi 7456 1.1 christos rm -f conftest* 7457 1.4 christos ;; 7458 1.4 christos esac 7459 1.1 christos fi 7460 1.1 christos 7461 1.2 christos if test $ac_cv_c_va_list_def = yes; then 7462 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7463 1.4 christos printf "%s\n" "yes" >&6; } 7464 1.2 christos : 7465 1.2 christos 7466 1.4 christos printf "%s\n" "#define HAVE_VA_LIST_DOUBLE_DEF /**/" >>confdefs.h 7467 1.2 christos 7468 1.1 christos else 7469 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7470 1.4 christos printf "%s\n" "no" >&6; } 7471 1.1 christos : 7472 1.1 christos 7473 1.1 christos fi 7474 1.1 christos 7475 1.1 christos 7476 1.1 christos 7477 1.1 christos 7478 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime needs defines" >&5 7479 1.4 christos printf %s "checking whether strptime needs defines... " >&6; } 7480 1.4 christos if test ${ac_cv_c_strptime_needs_defs+y} 7481 1.4 christos then : 7482 1.4 christos printf %s "(cached) " >&6 7483 1.4 christos else case e in #( 7484 1.4 christos e) 7485 1.1 christos cat >conftest.c <<EOF 7486 1.1 christos #include <time.h> 7487 1.1 christos int testing (void) { struct tm t; const char *timestr="201201"; return strptime(timestr, "%Y%m", &t) != 0; } 7488 1.1 christos EOF 7489 1.1 christos if test -z "`$CC -Wall -Werror -c conftest.c 2>&1`"; then 7490 1.1 christos eval "ac_cv_c_strptime_needs_defs=no" 7491 1.1 christos else 7492 1.1 christos eval "ac_cv_c_strptime_needs_defs=yes" 7493 1.1 christos fi 7494 1.1 christos rm -f conftest* 7495 1.4 christos ;; 7496 1.4 christos esac 7497 1.1 christos fi 7498 1.1 christos 7499 1.1 christos 7500 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_needs_defs" >&5 7501 1.4 christos printf "%s\n" "$ac_cv_c_strptime_needs_defs" >&6; } 7502 1.1 christos if test $ac_cv_c_strptime_needs_defs = yes; then 7503 1.1 christos 7504 1.4 christos printf "%s\n" "#define STRPTIME_NEEDS_DEFINES 1" >>confdefs.h 7505 1.1 christos 7506 1.1 christos fi 7507 1.1 christos 7508 1.1 christos 7509 1.1 christos # check wether strptime also works 7510 1.1 christos 7511 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 7512 1.4 christos printf %s "checking for library containing inet_pton... " >&6; } 7513 1.4 christos if test ${ac_cv_search_inet_pton+y} 7514 1.4 christos then : 7515 1.4 christos printf %s "(cached) " >&6 7516 1.4 christos else case e in #( 7517 1.4 christos e) ac_func_search_save_LIBS=$LIBS 7518 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7519 1.1 christos /* end confdefs.h. */ 7520 1.1 christos 7521 1.1 christos /* Override any GCC internal prototype to avoid an error. 7522 1.1 christos Use char because int might match the return type of a GCC 7523 1.4 christos builtin and then its argument prototype would still apply. 7524 1.4 christos The 'extern "C"' is for builds by C++ compilers; 7525 1.4 christos although this is not generally supported in C code supporting it here 7526 1.4 christos has little cost and some practical benefit (sr 110532). */ 7527 1.1 christos #ifdef __cplusplus 7528 1.1 christos extern "C" 7529 1.1 christos #endif 7530 1.4 christos char inet_pton (void); 7531 1.1 christos int 7532 1.4 christos main (void) 7533 1.1 christos { 7534 1.1 christos return inet_pton (); 7535 1.1 christos ; 7536 1.1 christos return 0; 7537 1.1 christos } 7538 1.1 christos _ACEOF 7539 1.4 christos for ac_lib in '' nsl 7540 1.4 christos do 7541 1.1 christos if test -z "$ac_lib"; then 7542 1.1 christos ac_res="none required" 7543 1.1 christos else 7544 1.1 christos ac_res=-l$ac_lib 7545 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7546 1.1 christos fi 7547 1.4 christos if ac_fn_c_try_link "$LINENO" 7548 1.4 christos then : 7549 1.1 christos ac_cv_search_inet_pton=$ac_res 7550 1.1 christos fi 7551 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7552 1.1 christos conftest$ac_exeext 7553 1.4 christos if test ${ac_cv_search_inet_pton+y} 7554 1.4 christos then : 7555 1.1 christos break 7556 1.1 christos fi 7557 1.1 christos done 7558 1.4 christos if test ${ac_cv_search_inet_pton+y} 7559 1.4 christos then : 7560 1.1 christos 7561 1.4 christos else case e in #( 7562 1.4 christos e) ac_cv_search_inet_pton=no ;; 7563 1.4 christos esac 7564 1.1 christos fi 7565 1.1 christos rm conftest.$ac_ext 7566 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 7567 1.4 christos esac 7568 1.1 christos fi 7569 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 7570 1.4 christos printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 7571 1.1 christos ac_res=$ac_cv_search_inet_pton 7572 1.4 christos if test "$ac_res" != no 7573 1.4 christos then : 7574 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7575 1.1 christos 7576 1.1 christos fi 7577 1.1 christos 7578 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 7579 1.4 christos printf %s "checking for library containing socket... " >&6; } 7580 1.4 christos if test ${ac_cv_search_socket+y} 7581 1.4 christos then : 7582 1.4 christos printf %s "(cached) " >&6 7583 1.4 christos else case e in #( 7584 1.4 christos e) ac_func_search_save_LIBS=$LIBS 7585 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7586 1.1 christos /* end confdefs.h. */ 7587 1.1 christos 7588 1.1 christos /* Override any GCC internal prototype to avoid an error. 7589 1.1 christos Use char because int might match the return type of a GCC 7590 1.4 christos builtin and then its argument prototype would still apply. 7591 1.4 christos The 'extern "C"' is for builds by C++ compilers; 7592 1.4 christos although this is not generally supported in C code supporting it here 7593 1.4 christos has little cost and some practical benefit (sr 110532). */ 7594 1.1 christos #ifdef __cplusplus 7595 1.1 christos extern "C" 7596 1.1 christos #endif 7597 1.4 christos char socket (void); 7598 1.1 christos int 7599 1.4 christos main (void) 7600 1.1 christos { 7601 1.1 christos return socket (); 7602 1.1 christos ; 7603 1.1 christos return 0; 7604 1.1 christos } 7605 1.1 christos _ACEOF 7606 1.4 christos for ac_lib in '' socket 7607 1.4 christos do 7608 1.1 christos if test -z "$ac_lib"; then 7609 1.1 christos ac_res="none required" 7610 1.1 christos else 7611 1.1 christos ac_res=-l$ac_lib 7612 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7613 1.1 christos fi 7614 1.4 christos if ac_fn_c_try_link "$LINENO" 7615 1.4 christos then : 7616 1.1 christos ac_cv_search_socket=$ac_res 7617 1.1 christos fi 7618 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7619 1.1 christos conftest$ac_exeext 7620 1.4 christos if test ${ac_cv_search_socket+y} 7621 1.4 christos then : 7622 1.1 christos break 7623 1.1 christos fi 7624 1.1 christos done 7625 1.4 christos if test ${ac_cv_search_socket+y} 7626 1.4 christos then : 7627 1.1 christos 7628 1.4 christos else case e in #( 7629 1.4 christos e) ac_cv_search_socket=no ;; 7630 1.4 christos esac 7631 1.1 christos fi 7632 1.1 christos rm conftest.$ac_ext 7633 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 7634 1.4 christos esac 7635 1.1 christos fi 7636 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 7637 1.4 christos printf "%s\n" "$ac_cv_search_socket" >&6; } 7638 1.1 christos ac_res=$ac_cv_search_socket 7639 1.4 christos if test "$ac_res" != no 7640 1.4 christos then : 7641 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7642 1.1 christos 7643 1.1 christos fi 7644 1.1 christos 7645 1.1 christos 7646 1.1 christos 7647 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 7648 1.4 christos printf %s "checking whether strptime works... " >&6; } 7649 1.1 christos if test c${cross_compiling} = cno; then 7650 1.4 christos if test "$cross_compiling" = yes 7651 1.4 christos then : 7652 1.3 christos eval "ac_cv_c_strptime_works=maybe" 7653 1.4 christos else case e in #( 7654 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7655 1.1 christos /* end confdefs.h. */ 7656 1.1 christos 7657 1.1 christos #define _XOPEN_SOURCE 600 7658 1.1 christos #include <time.h> 7659 1.1 christos int main(void) { struct tm tm; char *res; 7660 1.1 christos res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 7661 1.1 christos if (!res) return 1; return 0; } 7662 1.1 christos 7663 1.1 christos _ACEOF 7664 1.4 christos if ac_fn_c_try_run "$LINENO" 7665 1.4 christos then : 7666 1.1 christos eval "ac_cv_c_strptime_works=yes" 7667 1.4 christos else case e in #( 7668 1.4 christos e) eval "ac_cv_c_strptime_works=no" ;; 7669 1.4 christos esac 7670 1.1 christos fi 7671 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7672 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7673 1.4 christos esac 7674 1.1 christos fi 7675 1.1 christos 7676 1.1 christos else 7677 1.1 christos eval "ac_cv_c_strptime_works=maybe" 7678 1.1 christos fi 7679 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 7680 1.4 christos printf "%s\n" "$ac_cv_c_strptime_works" >&6; } 7681 1.1 christos if test $ac_cv_c_strptime_works = no; then 7682 1.1 christos case " $LIBOBJS " in 7683 1.1 christos *" strptime.$ac_objext "* ) ;; 7684 1.1 christos *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 7685 1.1 christos ;; 7686 1.1 christos esac 7687 1.1 christos 7688 1.1 christos else 7689 1.1 christos 7690 1.4 christos printf "%s\n" "#define STRPTIME_WORKS 1" >>confdefs.h 7691 1.1 christos 7692 1.1 christos fi 7693 1.1 christos 7694 1.1 christos 7695 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 7696 1.4 christos printf %s "checking if nonblocking sockets work... " >&6; } 7697 1.2 christos if echo $host | grep mingw >/dev/null; then 7698 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 7699 1.4 christos printf "%s\n" "no (windows)" >&6; } 7700 1.1 christos 7701 1.4 christos printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 7702 1.1 christos 7703 1.1 christos else 7704 1.4 christos if test "$cross_compiling" = yes 7705 1.4 christos then : 7706 1.1 christos 7707 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 7708 1.4 christos printf "%s\n" "crosscompile(yes)" >&6; } 7709 1.1 christos 7710 1.4 christos else case e in #( 7711 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7712 1.1 christos /* end confdefs.h. */ 7713 1.1 christos 7714 1.1 christos 7715 1.1 christos #include <stdio.h> 7716 1.1 christos #include <string.h> 7717 1.1 christos #include <stdlib.h> 7718 1.1 christos #include <fcntl.h> 7719 1.1 christos #include <errno.h> 7720 1.1 christos #ifdef HAVE_SYS_TYPES_H 7721 1.1 christos #include <sys/types.h> 7722 1.1 christos #endif 7723 1.3 christos #ifdef HAVE_SYS_SELECT_H 7724 1.3 christos #include <sys/select.h> 7725 1.3 christos #endif 7726 1.1 christos #ifdef HAVE_SYS_SOCKET_H 7727 1.1 christos #include <sys/socket.h> 7728 1.1 christos #endif 7729 1.1 christos #ifdef HAVE_NETINET_IN_H 7730 1.1 christos #include <netinet/in.h> 7731 1.1 christos #endif 7732 1.1 christos #ifdef HAVE_ARPA_INET_H 7733 1.1 christos #include <arpa/inet.h> 7734 1.1 christos #endif 7735 1.1 christos #ifdef HAVE_UNISTD_H 7736 1.1 christos #include <unistd.h> 7737 1.1 christos #endif 7738 1.1 christos #ifdef HAVE_TIME_H 7739 1.1 christos #include <time.h> 7740 1.1 christos #endif 7741 1.1 christos 7742 1.1 christos int main(void) 7743 1.1 christos { 7744 1.1 christos int port; 7745 1.1 christos int sfd, cfd; 7746 1.1 christos int num = 10; 7747 1.1 christos int i, p; 7748 1.1 christos struct sockaddr_in a; 7749 1.1 christos /* test if select and nonblocking reads work well together */ 7750 1.1 christos /* open port. 7751 1.1 christos fork child to send 10 messages. 7752 1.1 christos select to read. 7753 1.1 christos then try to nonblocking read the 10 messages 7754 1.1 christos then, nonblocking read must give EAGAIN 7755 1.1 christos */ 7756 1.1 christos 7757 1.1 christos port = 12345 + (time(0)%32); 7758 1.1 christos sfd = socket(PF_INET, SOCK_DGRAM, 0); 7759 1.1 christos if(sfd == -1) { 7760 1.1 christos perror("socket"); 7761 1.1 christos return 1; 7762 1.1 christos } 7763 1.1 christos memset(&a, 0, sizeof(a)); 7764 1.1 christos a.sin_family = AF_INET; 7765 1.1 christos a.sin_port = htons(port); 7766 1.1 christos a.sin_addr.s_addr = inet_addr("127.0.0.1"); 7767 1.1 christos if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 7768 1.1 christos perror("bind"); 7769 1.1 christos return 1; 7770 1.1 christos } 7771 1.1 christos if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 7772 1.1 christos perror("fcntl"); 7773 1.1 christos return 1; 7774 1.1 christos } 7775 1.1 christos 7776 1.1 christos cfd = socket(PF_INET, SOCK_DGRAM, 0); 7777 1.1 christos if(cfd == -1) { 7778 1.1 christos perror("client socket"); 7779 1.1 christos return 1; 7780 1.1 christos } 7781 1.1 christos a.sin_port = 0; 7782 1.1 christos if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 7783 1.1 christos perror("client bind"); 7784 1.1 christos return 1; 7785 1.1 christos } 7786 1.1 christos a.sin_port = htons(port); 7787 1.1 christos 7788 1.1 christos /* no handler, causes exit in 10 seconds */ 7789 1.1 christos alarm(10); 7790 1.1 christos 7791 1.1 christos /* send and receive on the socket */ 7792 1.1 christos if((p=fork()) == 0) { 7793 1.1 christos for(i=0; i<num; i++) { 7794 1.1 christos if(sendto(cfd, &i, sizeof(i), 0, 7795 1.1 christos (struct sockaddr*)&a, sizeof(a)) < 0) { 7796 1.1 christos perror("sendto"); 7797 1.1 christos return 1; 7798 1.1 christos } 7799 1.1 christos } 7800 1.1 christos } else { 7801 1.1 christos /* parent */ 7802 1.1 christos fd_set rset; 7803 1.1 christos int x; 7804 1.1 christos if(p == -1) { 7805 1.1 christos perror("fork"); 7806 1.1 christos return 1; 7807 1.1 christos } 7808 1.1 christos FD_ZERO(&rset); 7809 1.1 christos FD_SET(sfd, &rset); 7810 1.1 christos if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 7811 1.1 christos perror("select"); 7812 1.1 christos return 1; 7813 1.1 christos } 7814 1.1 christos i = 0; 7815 1.1 christos while(i < num) { 7816 1.1 christos if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 7817 1.1 christos if(errno == EAGAIN) 7818 1.1 christos continue; 7819 1.1 christos perror("recv"); 7820 1.1 christos return 1; 7821 1.1 christos } 7822 1.1 christos i++; 7823 1.1 christos } 7824 1.1 christos /* now we want to get EAGAIN: nonblocking goodness */ 7825 1.1 christos errno = 0; 7826 1.1 christos recv(sfd, &x, sizeof(x), 0); 7827 1.1 christos if(errno != EAGAIN) { 7828 1.1 christos perror("trying to recv again"); 7829 1.1 christos return 1; 7830 1.1 christos } 7831 1.1 christos /* EAGAIN encountered */ 7832 1.1 christos } 7833 1.1 christos 7834 1.1 christos close(sfd); 7835 1.1 christos close(cfd); 7836 1.1 christos return 0; 7837 1.1 christos } 7838 1.1 christos 7839 1.1 christos _ACEOF 7840 1.4 christos if ac_fn_c_try_run "$LINENO" 7841 1.4 christos then : 7842 1.1 christos 7843 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7844 1.4 christos printf "%s\n" "yes" >&6; } 7845 1.1 christos 7846 1.4 christos else case e in #( 7847 1.4 christos e) 7848 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7849 1.4 christos printf "%s\n" "no" >&6; } 7850 1.1 christos 7851 1.4 christos printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 7852 1.1 christos 7853 1.4 christos ;; 7854 1.4 christos esac 7855 1.1 christos fi 7856 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7857 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7858 1.4 christos esac 7859 1.1 christos fi 7860 1.1 christos 7861 1.1 christos fi 7862 1.1 christos 7863 1.1 christos 7864 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 7865 1.4 christos printf %s "checking whether mkdir has one arg... " >&6; } 7866 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7867 1.1 christos /* end confdefs.h. */ 7868 1.1 christos 7869 1.1 christos #include <stdio.h> 7870 1.1 christos #include <unistd.h> 7871 1.1 christos #ifdef HAVE_WINSOCK2_H 7872 1.1 christos #include <winsock2.h> 7873 1.1 christos #endif 7874 1.1 christos #ifdef HAVE_SYS_STAT_H 7875 1.1 christos #include <sys/stat.h> 7876 1.1 christos #endif 7877 1.1 christos 7878 1.1 christos int 7879 1.4 christos main (void) 7880 1.1 christos { 7881 1.1 christos 7882 1.1 christos (void)mkdir("directory"); 7883 1.1 christos 7884 1.1 christos ; 7885 1.1 christos return 0; 7886 1.1 christos } 7887 1.1 christos _ACEOF 7888 1.4 christos if ac_fn_c_try_compile "$LINENO" 7889 1.4 christos then : 7890 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7891 1.4 christos printf "%s\n" "yes" >&6; } 7892 1.1 christos 7893 1.4 christos printf "%s\n" "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 7894 1.1 christos 7895 1.1 christos 7896 1.4 christos else case e in #( 7897 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7898 1.4 christos printf "%s\n" "no" >&6; } 7899 1.4 christos ;; 7900 1.4 christos esac 7901 1.1 christos fi 7902 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7903 1.1 christos 7904 1.1 christos 7905 1.1 christos # set -I. and -Isrcdir 7906 1.1 christos if test -n "$CPPFLAGS"; then 7907 1.1 christos CPPFLAGS="$CPPFLAGS -I." 7908 1.1 christos else 7909 1.1 christos CPPFLAGS="-I." 7910 1.1 christos fi 7911 1.1 christos if test "$srcdir" != "."; then 7912 1.1 christos CPPFLAGS="$CPPFLAGS -I$srcdir" 7913 1.1 christos if test -f $srcdir/config.h; then 7914 1.1 christos as_fn_error $? "$srcdir/config.h is in the way, please remove it" "$LINENO" 5 7915 1.1 christos fi 7916 1.1 christos fi 7917 1.1 christos 7918 1.1 christos 7919 1.1 christos 7920 1.1 christos 7921 1.4 christos ac_ext=c 7922 1.4 christos ac_cpp='$CPP $CPPFLAGS' 7923 1.4 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7924 1.4 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7925 1.4 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 7926 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7927 1.4 christos printf %s "checking how to run the C preprocessor... " >&6; } 7928 1.4 christos # On Suns, sometimes $CPP names a directory. 7929 1.4 christos if test -n "$CPP" && test -d "$CPP"; then 7930 1.4 christos CPP= 7931 1.4 christos fi 7932 1.4 christos if test -z "$CPP"; then 7933 1.4 christos if test ${ac_cv_prog_CPP+y} 7934 1.4 christos then : 7935 1.4 christos printf %s "(cached) " >&6 7936 1.4 christos else case e in #( 7937 1.4 christos e) # Double quotes because $CC needs to be expanded 7938 1.4 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 7939 1.4 christos do 7940 1.4 christos ac_preproc_ok=false 7941 1.4 christos for ac_c_preproc_warn_flag in '' yes 7942 1.4 christos do 7943 1.4 christos # Use a header file that comes with gcc, so configuring glibc 7944 1.4 christos # with a fresh cross-compiler works. 7945 1.4 christos # On the NeXT, cc -E runs the code through the compiler's parser, 7946 1.4 christos # not just through cpp. "Syntax error" is here to catch this case. 7947 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948 1.4 christos /* end confdefs.h. */ 7949 1.4 christos #include <limits.h> 7950 1.4 christos Syntax error 7951 1.4 christos _ACEOF 7952 1.4 christos if ac_fn_c_try_cpp "$LINENO" 7953 1.4 christos then : 7954 1.4 christos 7955 1.4 christos else case e in #( 7956 1.4 christos e) # Broken: fails on valid input. 7957 1.4 christos continue ;; 7958 1.4 christos esac 7959 1.4 christos fi 7960 1.4 christos rm -f conftest.err conftest.i conftest.$ac_ext 7961 1.4 christos 7962 1.4 christos # OK, works on sane cases. Now check whether nonexistent headers 7963 1.4 christos # can be detected and how. 7964 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7965 1.4 christos /* end confdefs.h. */ 7966 1.4 christos #include <ac_nonexistent.h> 7967 1.4 christos _ACEOF 7968 1.4 christos if ac_fn_c_try_cpp "$LINENO" 7969 1.4 christos then : 7970 1.4 christos # Broken: success on invalid input. 7971 1.4 christos continue 7972 1.4 christos else case e in #( 7973 1.4 christos e) # Passes both tests. 7974 1.4 christos ac_preproc_ok=: 7975 1.4 christos break ;; 7976 1.4 christos esac 7977 1.4 christos fi 7978 1.4 christos rm -f conftest.err conftest.i conftest.$ac_ext 7979 1.4 christos 7980 1.4 christos done 7981 1.4 christos # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7982 1.4 christos rm -f conftest.i conftest.err conftest.$ac_ext 7983 1.4 christos if $ac_preproc_ok 7984 1.4 christos then : 7985 1.4 christos break 7986 1.4 christos fi 7987 1.4 christos 7988 1.4 christos done 7989 1.4 christos ac_cv_prog_CPP=$CPP 7990 1.4 christos ;; 7991 1.4 christos esac 7992 1.4 christos fi 7993 1.4 christos CPP=$ac_cv_prog_CPP 7994 1.1 christos else 7995 1.4 christos ac_cv_prog_CPP=$CPP 7996 1.4 christos fi 7997 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7998 1.4 christos printf "%s\n" "$CPP" >&6; } 7999 1.4 christos ac_preproc_ok=false 8000 1.4 christos for ac_c_preproc_warn_flag in '' yes 8001 1.4 christos do 8002 1.4 christos # Use a header file that comes with gcc, so configuring glibc 8003 1.4 christos # with a fresh cross-compiler works. 8004 1.4 christos # On the NeXT, cc -E runs the code through the compiler's parser, 8005 1.4 christos # not just through cpp. "Syntax error" is here to catch this case. 8006 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007 1.4 christos /* end confdefs.h. */ 8008 1.4 christos #include <limits.h> 8009 1.4 christos Syntax error 8010 1.4 christos _ACEOF 8011 1.4 christos if ac_fn_c_try_cpp "$LINENO" 8012 1.4 christos then : 8013 1.4 christos 8014 1.4 christos else case e in #( 8015 1.4 christos e) # Broken: fails on valid input. 8016 1.4 christos continue ;; 8017 1.4 christos esac 8018 1.4 christos fi 8019 1.4 christos rm -f conftest.err conftest.i conftest.$ac_ext 8020 1.4 christos 8021 1.4 christos # OK, works on sane cases. Now check whether nonexistent headers 8022 1.4 christos # can be detected and how. 8023 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8024 1.1 christos /* end confdefs.h. */ 8025 1.4 christos #include <ac_nonexistent.h> 8026 1.4 christos _ACEOF 8027 1.4 christos if ac_fn_c_try_cpp "$LINENO" 8028 1.4 christos then : 8029 1.4 christos # Broken: success on invalid input. 8030 1.4 christos continue 8031 1.4 christos else case e in #( 8032 1.4 christos e) # Passes both tests. 8033 1.4 christos ac_preproc_ok=: 8034 1.4 christos break ;; 8035 1.4 christos esac 8036 1.4 christos fi 8037 1.4 christos rm -f conftest.err conftest.i conftest.$ac_ext 8038 1.4 christos 8039 1.4 christos done 8040 1.4 christos # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8041 1.4 christos rm -f conftest.i conftest.err conftest.$ac_ext 8042 1.4 christos if $ac_preproc_ok 8043 1.4 christos then : 8044 1.4 christos 8045 1.4 christos else case e in #( 8046 1.4 christos e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 8047 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 8048 1.4 christos as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8049 1.4 christos See 'config.log' for more details" "$LINENO" 5; } ;; 8050 1.4 christos esac 8051 1.4 christos fi 8052 1.4 christos 8053 1.4 christos ac_ext=c 8054 1.4 christos ac_cpp='$CPP $CPPFLAGS' 8055 1.4 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8056 1.4 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8057 1.4 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 8058 1.4 christos 8059 1.4 christos 8060 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 8061 1.4 christos printf %s "checking for egrep -e... " >&6; } 8062 1.4 christos if test ${ac_cv_path_EGREP_TRADITIONAL+y} 8063 1.4 christos then : 8064 1.4 christos printf %s "(cached) " >&6 8065 1.4 christos else case e in #( 8066 1.4 christos e) if test -z "$EGREP_TRADITIONAL"; then 8067 1.4 christos ac_path_EGREP_TRADITIONAL_found=false 8068 1.4 christos # Loop through the user's path and test for each of PROGNAME-LIST 8069 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8070 1.4 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8071 1.4 christos do 8072 1.4 christos IFS=$as_save_IFS 8073 1.4 christos case $as_dir in #((( 8074 1.4 christos '') as_dir=./ ;; 8075 1.4 christos */) ;; 8076 1.4 christos *) as_dir=$as_dir/ ;; 8077 1.4 christos esac 8078 1.4 christos for ac_prog in grep ggrep 8079 1.4 christos do 8080 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 8081 1.4 christos ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 8082 1.4 christos as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 8083 1.4 christos # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 8084 1.4 christos # Check for GNU $ac_path_EGREP_TRADITIONAL 8085 1.4 christos case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( 8086 1.4 christos *GNU*) 8087 1.4 christos ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 8088 1.4 christos #( 8089 1.4 christos *) 8090 1.4 christos ac_count=0 8091 1.4 christos printf %s 0123456789 >"conftest.in" 8092 1.4 christos while : 8093 1.4 christos do 8094 1.4 christos cat "conftest.in" "conftest.in" >"conftest.tmp" 8095 1.4 christos mv "conftest.tmp" "conftest.in" 8096 1.4 christos cp "conftest.in" "conftest.nl" 8097 1.4 christos printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 8098 1.4 christos "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8099 1.4 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8100 1.4 christos as_fn_arith $ac_count + 1 && ac_count=$as_val 8101 1.4 christos if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 8102 1.4 christos # Best one so far, save it but keep looking for a better one 8103 1.4 christos ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 8104 1.4 christos ac_path_EGREP_TRADITIONAL_max=$ac_count 8105 1.4 christos fi 8106 1.4 christos # 10*(2^10) chars as input seems more than enough 8107 1.4 christos test $ac_count -gt 10 && break 8108 1.4 christos done 8109 1.4 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8110 1.4 christos esac 8111 1.4 christos 8112 1.4 christos $ac_path_EGREP_TRADITIONAL_found && break 3 8113 1.4 christos done 8114 1.4 christos done 8115 1.4 christos done 8116 1.4 christos IFS=$as_save_IFS 8117 1.4 christos if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 8118 1.4 christos : 8119 1.4 christos fi 8120 1.4 christos else 8121 1.4 christos ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 8122 1.4 christos fi 8123 1.4 christos 8124 1.4 christos if test "$ac_cv_path_EGREP_TRADITIONAL" 8125 1.4 christos then : 8126 1.4 christos ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" 8127 1.4 christos else case e in #( 8128 1.4 christos e) if test -z "$EGREP_TRADITIONAL"; then 8129 1.4 christos ac_path_EGREP_TRADITIONAL_found=false 8130 1.4 christos # Loop through the user's path and test for each of PROGNAME-LIST 8131 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8132 1.4 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8133 1.4 christos do 8134 1.4 christos IFS=$as_save_IFS 8135 1.4 christos case $as_dir in #((( 8136 1.4 christos '') as_dir=./ ;; 8137 1.4 christos */) ;; 8138 1.4 christos *) as_dir=$as_dir/ ;; 8139 1.4 christos esac 8140 1.4 christos for ac_prog in egrep 8141 1.4 christos do 8142 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 8143 1.4 christos ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 8144 1.4 christos as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 8145 1.4 christos # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 8146 1.4 christos # Check for GNU $ac_path_EGREP_TRADITIONAL 8147 1.4 christos case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( 8148 1.4 christos *GNU*) 8149 1.4 christos ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 8150 1.4 christos #( 8151 1.4 christos *) 8152 1.4 christos ac_count=0 8153 1.4 christos printf %s 0123456789 >"conftest.in" 8154 1.4 christos while : 8155 1.4 christos do 8156 1.4 christos cat "conftest.in" "conftest.in" >"conftest.tmp" 8157 1.4 christos mv "conftest.tmp" "conftest.in" 8158 1.4 christos cp "conftest.in" "conftest.nl" 8159 1.4 christos printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 8160 1.4 christos "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8161 1.4 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8162 1.4 christos as_fn_arith $ac_count + 1 && ac_count=$as_val 8163 1.4 christos if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 8164 1.4 christos # Best one so far, save it but keep looking for a better one 8165 1.4 christos ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 8166 1.4 christos ac_path_EGREP_TRADITIONAL_max=$ac_count 8167 1.4 christos fi 8168 1.4 christos # 10*(2^10) chars as input seems more than enough 8169 1.4 christos test $ac_count -gt 10 && break 8170 1.4 christos done 8171 1.4 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8172 1.4 christos esac 8173 1.4 christos 8174 1.4 christos $ac_path_EGREP_TRADITIONAL_found && break 3 8175 1.4 christos done 8176 1.4 christos done 8177 1.4 christos done 8178 1.4 christos IFS=$as_save_IFS 8179 1.4 christos if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 8180 1.4 christos as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8181 1.4 christos fi 8182 1.4 christos else 8183 1.4 christos ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 8184 1.4 christos fi 8185 1.4 christos ;; 8186 1.4 christos esac 8187 1.4 christos fi ;; 8188 1.4 christos esac 8189 1.4 christos fi 8190 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 8191 1.4 christos printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } 8192 1.4 christos EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL 8193 1.4 christos 8194 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5 8195 1.4 christos printf %s "checking for int8_t... " >&6; } 8196 1.4 christos if test ${ac_cv_type_int8_t+y} 8197 1.4 christos then : 8198 1.4 christos printf %s "(cached) " >&6 8199 1.4 christos else case e in #( 8200 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8201 1.4 christos /* end confdefs.h. */ 8202 1.1 christos 8203 1.1 christos #include <sys/types.h> 8204 1.1 christos #include <stdlib.h> 8205 1.1 christos #include <stddef.h> 8206 1.1 christos 8207 1.1 christos #ifdef HAVE_STDINT_H 8208 1.1 christos #include <stdint.h> 8209 1.1 christos #endif 8210 1.1 christos 8211 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8212 1.1 christos #include <sys/socket.h> 8213 1.1 christos #endif 8214 1.1 christos 8215 1.1 christos #ifdef HAVE_ARPA_INET_H 8216 1.1 christos #include <arpa/inet.h> 8217 1.1 christos #endif 8218 1.1 christos 8219 1.1 christos #ifdef HAVE_SIGNAL_H 8220 1.1 christos #include <signal.h> 8221 1.1 christos #endif 8222 1.1 christos 8223 1.1 christos /* For Tru64 */ 8224 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8225 1.1 christos #include <sys/bitypes.h> 8226 1.1 christos #endif 8227 1.1 christos 8228 1.1 christos _ACEOF 8229 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8230 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8231 1.4 christos then : 8232 1.1 christos ac_cv_type_int8_t=yes 8233 1.4 christos else case e in #( 8234 1.4 christos e) ac_cv_type_int8_t=no ;; 8235 1.4 christos esac 8236 1.1 christos fi 8237 1.4 christos rm -rf conftest* 8238 1.4 christos ;; 8239 1.4 christos esac 8240 1.1 christos fi 8241 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int8_t" >&5 8242 1.4 christos printf "%s\n" "$ac_cv_type_int8_t" >&6; } 8243 1.1 christos if test $ac_cv_type_int8_t = no; then 8244 1.1 christos 8245 1.4 christos printf "%s\n" "#define int8_t char" >>confdefs.h 8246 1.1 christos 8247 1.1 christos fi 8248 1.1 christos 8249 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5 8250 1.4 christos printf %s "checking for int16_t... " >&6; } 8251 1.4 christos if test ${ac_cv_type_int16_t+y} 8252 1.4 christos then : 8253 1.4 christos printf %s "(cached) " >&6 8254 1.4 christos else case e in #( 8255 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8256 1.1 christos /* end confdefs.h. */ 8257 1.1 christos 8258 1.1 christos #include <sys/types.h> 8259 1.1 christos #include <stdlib.h> 8260 1.1 christos #include <stddef.h> 8261 1.1 christos 8262 1.1 christos #ifdef HAVE_STDINT_H 8263 1.1 christos #include <stdint.h> 8264 1.1 christos #endif 8265 1.1 christos 8266 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8267 1.1 christos #include <sys/socket.h> 8268 1.1 christos #endif 8269 1.1 christos 8270 1.1 christos #ifdef HAVE_ARPA_INET_H 8271 1.1 christos #include <arpa/inet.h> 8272 1.1 christos #endif 8273 1.1 christos 8274 1.1 christos #ifdef HAVE_SIGNAL_H 8275 1.1 christos #include <signal.h> 8276 1.1 christos #endif 8277 1.1 christos 8278 1.1 christos /* For Tru64 */ 8279 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8280 1.1 christos #include <sys/bitypes.h> 8281 1.1 christos #endif 8282 1.1 christos 8283 1.1 christos _ACEOF 8284 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8285 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8286 1.4 christos then : 8287 1.1 christos ac_cv_type_int16_t=yes 8288 1.4 christos else case e in #( 8289 1.4 christos e) ac_cv_type_int16_t=no ;; 8290 1.4 christos esac 8291 1.1 christos fi 8292 1.4 christos rm -rf conftest* 8293 1.4 christos ;; 8294 1.4 christos esac 8295 1.1 christos fi 8296 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int16_t" >&5 8297 1.4 christos printf "%s\n" "$ac_cv_type_int16_t" >&6; } 8298 1.1 christos if test $ac_cv_type_int16_t = no; then 8299 1.1 christos 8300 1.4 christos printf "%s\n" "#define int16_t short" >>confdefs.h 8301 1.1 christos 8302 1.1 christos fi 8303 1.1 christos 8304 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 8305 1.4 christos printf %s "checking for int32_t... " >&6; } 8306 1.4 christos if test ${ac_cv_type_int32_t+y} 8307 1.4 christos then : 8308 1.4 christos printf %s "(cached) " >&6 8309 1.4 christos else case e in #( 8310 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311 1.1 christos /* end confdefs.h. */ 8312 1.1 christos 8313 1.1 christos #include <sys/types.h> 8314 1.1 christos #include <stdlib.h> 8315 1.1 christos #include <stddef.h> 8316 1.1 christos 8317 1.1 christos #ifdef HAVE_STDINT_H 8318 1.1 christos #include <stdint.h> 8319 1.1 christos #endif 8320 1.1 christos 8321 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8322 1.1 christos #include <sys/socket.h> 8323 1.1 christos #endif 8324 1.1 christos 8325 1.1 christos #ifdef HAVE_ARPA_INET_H 8326 1.1 christos #include <arpa/inet.h> 8327 1.1 christos #endif 8328 1.1 christos 8329 1.1 christos #ifdef HAVE_SIGNAL_H 8330 1.1 christos #include <signal.h> 8331 1.1 christos #endif 8332 1.1 christos 8333 1.1 christos /* For Tru64 */ 8334 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8335 1.1 christos #include <sys/bitypes.h> 8336 1.1 christos #endif 8337 1.1 christos 8338 1.1 christos _ACEOF 8339 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8340 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8341 1.4 christos then : 8342 1.1 christos ac_cv_type_int32_t=yes 8343 1.4 christos else case e in #( 8344 1.4 christos e) ac_cv_type_int32_t=no ;; 8345 1.4 christos esac 8346 1.1 christos fi 8347 1.4 christos rm -rf conftest* 8348 1.4 christos ;; 8349 1.4 christos esac 8350 1.1 christos fi 8351 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int32_t" >&5 8352 1.4 christos printf "%s\n" "$ac_cv_type_int32_t" >&6; } 8353 1.1 christos if test $ac_cv_type_int32_t = no; then 8354 1.1 christos 8355 1.4 christos printf "%s\n" "#define int32_t int" >>confdefs.h 8356 1.1 christos 8357 1.1 christos fi 8358 1.1 christos 8359 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5 8360 1.4 christos printf %s "checking for int64_t... " >&6; } 8361 1.4 christos if test ${ac_cv_type_int64_t+y} 8362 1.4 christos then : 8363 1.4 christos printf %s "(cached) " >&6 8364 1.4 christos else case e in #( 8365 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366 1.1 christos /* end confdefs.h. */ 8367 1.1 christos 8368 1.1 christos #include <sys/types.h> 8369 1.1 christos #include <stdlib.h> 8370 1.1 christos #include <stddef.h> 8371 1.1 christos 8372 1.1 christos #ifdef HAVE_STDINT_H 8373 1.1 christos #include <stdint.h> 8374 1.1 christos #endif 8375 1.1 christos 8376 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8377 1.1 christos #include <sys/socket.h> 8378 1.1 christos #endif 8379 1.1 christos 8380 1.1 christos #ifdef HAVE_ARPA_INET_H 8381 1.1 christos #include <arpa/inet.h> 8382 1.1 christos #endif 8383 1.1 christos 8384 1.1 christos #ifdef HAVE_SIGNAL_H 8385 1.1 christos #include <signal.h> 8386 1.1 christos #endif 8387 1.1 christos 8388 1.1 christos /* For Tru64 */ 8389 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8390 1.1 christos #include <sys/bitypes.h> 8391 1.1 christos #endif 8392 1.1 christos 8393 1.1 christos _ACEOF 8394 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8395 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8396 1.4 christos then : 8397 1.1 christos ac_cv_type_int64_t=yes 8398 1.4 christos else case e in #( 8399 1.4 christos e) ac_cv_type_int64_t=no ;; 8400 1.4 christos esac 8401 1.1 christos fi 8402 1.4 christos rm -rf conftest* 8403 1.4 christos ;; 8404 1.4 christos esac 8405 1.1 christos fi 8406 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int64_t" >&5 8407 1.4 christos printf "%s\n" "$ac_cv_type_int64_t" >&6; } 8408 1.1 christos if test $ac_cv_type_int64_t = no; then 8409 1.1 christos 8410 1.4 christos printf "%s\n" "#define int64_t long long" >>confdefs.h 8411 1.1 christos 8412 1.1 christos fi 8413 1.1 christos 8414 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5 8415 1.4 christos printf %s "checking for uint8_t... " >&6; } 8416 1.4 christos if test ${ac_cv_type_uint8_t+y} 8417 1.4 christos then : 8418 1.4 christos printf %s "(cached) " >&6 8419 1.4 christos else case e in #( 8420 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421 1.1 christos /* end confdefs.h. */ 8422 1.1 christos 8423 1.1 christos #include <sys/types.h> 8424 1.1 christos #include <stdlib.h> 8425 1.1 christos #include <stddef.h> 8426 1.1 christos 8427 1.1 christos #ifdef HAVE_STDINT_H 8428 1.1 christos #include <stdint.h> 8429 1.1 christos #endif 8430 1.1 christos 8431 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8432 1.1 christos #include <sys/socket.h> 8433 1.1 christos #endif 8434 1.1 christos 8435 1.1 christos #ifdef HAVE_ARPA_INET_H 8436 1.1 christos #include <arpa/inet.h> 8437 1.1 christos #endif 8438 1.1 christos 8439 1.1 christos #ifdef HAVE_SIGNAL_H 8440 1.1 christos #include <signal.h> 8441 1.1 christos #endif 8442 1.1 christos 8443 1.1 christos /* For Tru64 */ 8444 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8445 1.1 christos #include <sys/bitypes.h> 8446 1.1 christos #endif 8447 1.1 christos 8448 1.1 christos _ACEOF 8449 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8450 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8451 1.4 christos then : 8452 1.1 christos ac_cv_type_uint8_t=yes 8453 1.4 christos else case e in #( 8454 1.4 christos e) ac_cv_type_uint8_t=no ;; 8455 1.4 christos esac 8456 1.1 christos fi 8457 1.4 christos rm -rf conftest* 8458 1.4 christos ;; 8459 1.4 christos esac 8460 1.1 christos fi 8461 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5 8462 1.4 christos printf "%s\n" "$ac_cv_type_uint8_t" >&6; } 8463 1.1 christos if test $ac_cv_type_uint8_t = no; then 8464 1.1 christos 8465 1.4 christos printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h 8466 1.1 christos 8467 1.1 christos fi 8468 1.1 christos 8469 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5 8470 1.4 christos printf %s "checking for uint16_t... " >&6; } 8471 1.4 christos if test ${ac_cv_type_uint16_t+y} 8472 1.4 christos then : 8473 1.4 christos printf %s "(cached) " >&6 8474 1.4 christos else case e in #( 8475 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476 1.1 christos /* end confdefs.h. */ 8477 1.1 christos 8478 1.1 christos #include <sys/types.h> 8479 1.1 christos #include <stdlib.h> 8480 1.1 christos #include <stddef.h> 8481 1.1 christos 8482 1.1 christos #ifdef HAVE_STDINT_H 8483 1.1 christos #include <stdint.h> 8484 1.1 christos #endif 8485 1.1 christos 8486 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8487 1.1 christos #include <sys/socket.h> 8488 1.1 christos #endif 8489 1.1 christos 8490 1.1 christos #ifdef HAVE_ARPA_INET_H 8491 1.1 christos #include <arpa/inet.h> 8492 1.1 christos #endif 8493 1.1 christos 8494 1.1 christos #ifdef HAVE_SIGNAL_H 8495 1.1 christos #include <signal.h> 8496 1.1 christos #endif 8497 1.1 christos 8498 1.1 christos /* For Tru64 */ 8499 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8500 1.1 christos #include <sys/bitypes.h> 8501 1.1 christos #endif 8502 1.1 christos 8503 1.1 christos _ACEOF 8504 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8505 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8506 1.4 christos then : 8507 1.1 christos ac_cv_type_uint16_t=yes 8508 1.4 christos else case e in #( 8509 1.4 christos e) ac_cv_type_uint16_t=no ;; 8510 1.4 christos esac 8511 1.1 christos fi 8512 1.4 christos rm -rf conftest* 8513 1.4 christos ;; 8514 1.4 christos esac 8515 1.1 christos fi 8516 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5 8517 1.4 christos printf "%s\n" "$ac_cv_type_uint16_t" >&6; } 8518 1.1 christos if test $ac_cv_type_uint16_t = no; then 8519 1.1 christos 8520 1.4 christos printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h 8521 1.1 christos 8522 1.1 christos fi 8523 1.1 christos 8524 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 8525 1.4 christos printf %s "checking for uint32_t... " >&6; } 8526 1.4 christos if test ${ac_cv_type_uint32_t+y} 8527 1.4 christos then : 8528 1.4 christos printf %s "(cached) " >&6 8529 1.4 christos else case e in #( 8530 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8531 1.1 christos /* end confdefs.h. */ 8532 1.1 christos 8533 1.1 christos #include <sys/types.h> 8534 1.1 christos #include <stdlib.h> 8535 1.1 christos #include <stddef.h> 8536 1.1 christos 8537 1.1 christos #ifdef HAVE_STDINT_H 8538 1.1 christos #include <stdint.h> 8539 1.1 christos #endif 8540 1.1 christos 8541 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8542 1.1 christos #include <sys/socket.h> 8543 1.1 christos #endif 8544 1.1 christos 8545 1.1 christos #ifdef HAVE_ARPA_INET_H 8546 1.1 christos #include <arpa/inet.h> 8547 1.1 christos #endif 8548 1.1 christos 8549 1.1 christos #ifdef HAVE_SIGNAL_H 8550 1.1 christos #include <signal.h> 8551 1.1 christos #endif 8552 1.1 christos 8553 1.1 christos /* For Tru64 */ 8554 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8555 1.1 christos #include <sys/bitypes.h> 8556 1.1 christos #endif 8557 1.1 christos 8558 1.1 christos _ACEOF 8559 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8560 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8561 1.4 christos then : 8562 1.1 christos ac_cv_type_uint32_t=yes 8563 1.4 christos else case e in #( 8564 1.4 christos e) ac_cv_type_uint32_t=no ;; 8565 1.4 christos esac 8566 1.1 christos fi 8567 1.4 christos rm -rf conftest* 8568 1.4 christos ;; 8569 1.4 christos esac 8570 1.1 christos fi 8571 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5 8572 1.4 christos printf "%s\n" "$ac_cv_type_uint32_t" >&6; } 8573 1.1 christos if test $ac_cv_type_uint32_t = no; then 8574 1.1 christos 8575 1.4 christos printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h 8576 1.1 christos 8577 1.1 christos fi 8578 1.1 christos 8579 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5 8580 1.4 christos printf %s "checking for uint64_t... " >&6; } 8581 1.4 christos if test ${ac_cv_type_uint64_t+y} 8582 1.4 christos then : 8583 1.4 christos printf %s "(cached) " >&6 8584 1.4 christos else case e in #( 8585 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586 1.1 christos /* end confdefs.h. */ 8587 1.1 christos 8588 1.1 christos #include <sys/types.h> 8589 1.1 christos #include <stdlib.h> 8590 1.1 christos #include <stddef.h> 8591 1.1 christos 8592 1.1 christos #ifdef HAVE_STDINT_H 8593 1.1 christos #include <stdint.h> 8594 1.1 christos #endif 8595 1.1 christos 8596 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8597 1.1 christos #include <sys/socket.h> 8598 1.1 christos #endif 8599 1.1 christos 8600 1.1 christos #ifdef HAVE_ARPA_INET_H 8601 1.1 christos #include <arpa/inet.h> 8602 1.1 christos #endif 8603 1.1 christos 8604 1.1 christos #ifdef HAVE_SIGNAL_H 8605 1.1 christos #include <signal.h> 8606 1.1 christos #endif 8607 1.1 christos 8608 1.1 christos /* For Tru64 */ 8609 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8610 1.1 christos #include <sys/bitypes.h> 8611 1.1 christos #endif 8612 1.1 christos 8613 1.1 christos _ACEOF 8614 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8615 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8616 1.4 christos then : 8617 1.1 christos ac_cv_type_uint64_t=yes 8618 1.4 christos else case e in #( 8619 1.4 christos e) ac_cv_type_uint64_t=no ;; 8620 1.4 christos esac 8621 1.1 christos fi 8622 1.4 christos rm -rf conftest* 8623 1.4 christos ;; 8624 1.4 christos esac 8625 1.1 christos fi 8626 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5 8627 1.4 christos printf "%s\n" "$ac_cv_type_uint64_t" >&6; } 8628 1.1 christos if test $ac_cv_type_uint64_t = no; then 8629 1.1 christos 8630 1.4 christos printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h 8631 1.1 christos 8632 1.1 christos fi 8633 1.1 christos 8634 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 8635 1.4 christos printf %s "checking for socklen_t... " >&6; } 8636 1.4 christos if test ${ac_cv_type_socklen_t+y} 8637 1.4 christos then : 8638 1.4 christos printf %s "(cached) " >&6 8639 1.4 christos else case e in #( 8640 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641 1.1 christos /* end confdefs.h. */ 8642 1.1 christos 8643 1.1 christos #include <sys/types.h> 8644 1.1 christos #include <stdlib.h> 8645 1.1 christos #include <stddef.h> 8646 1.1 christos 8647 1.1 christos #ifdef HAVE_STDINT_H 8648 1.1 christos #include <stdint.h> 8649 1.1 christos #endif 8650 1.1 christos 8651 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8652 1.1 christos #include <sys/socket.h> 8653 1.1 christos #endif 8654 1.1 christos 8655 1.1 christos #ifdef HAVE_ARPA_INET_H 8656 1.1 christos #include <arpa/inet.h> 8657 1.1 christos #endif 8658 1.1 christos 8659 1.1 christos #ifdef HAVE_SIGNAL_H 8660 1.1 christos #include <signal.h> 8661 1.1 christos #endif 8662 1.1 christos 8663 1.1 christos /* For Tru64 */ 8664 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8665 1.1 christos #include <sys/bitypes.h> 8666 1.1 christos #endif 8667 1.1 christos 8668 1.1 christos _ACEOF 8669 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8670 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8671 1.4 christos then : 8672 1.1 christos ac_cv_type_socklen_t=yes 8673 1.4 christos else case e in #( 8674 1.4 christos e) ac_cv_type_socklen_t=no ;; 8675 1.4 christos esac 8676 1.1 christos fi 8677 1.4 christos rm -rf conftest* 8678 1.4 christos ;; 8679 1.4 christos esac 8680 1.1 christos fi 8681 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 8682 1.4 christos printf "%s\n" "$ac_cv_type_socklen_t" >&6; } 8683 1.1 christos if test $ac_cv_type_socklen_t = no; then 8684 1.1 christos 8685 1.4 christos printf "%s\n" "#define socklen_t int" >>confdefs.h 8686 1.1 christos 8687 1.1 christos fi 8688 1.1 christos 8689 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 8690 1.4 christos printf %s "checking for sig_atomic_t... " >&6; } 8691 1.4 christos if test ${ac_cv_type_sig_atomic_t+y} 8692 1.4 christos then : 8693 1.4 christos printf %s "(cached) " >&6 8694 1.4 christos else case e in #( 8695 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8696 1.1 christos /* end confdefs.h. */ 8697 1.1 christos 8698 1.1 christos #include <sys/types.h> 8699 1.1 christos #include <stdlib.h> 8700 1.1 christos #include <stddef.h> 8701 1.1 christos 8702 1.1 christos #ifdef HAVE_STDINT_H 8703 1.1 christos #include <stdint.h> 8704 1.1 christos #endif 8705 1.1 christos 8706 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8707 1.1 christos #include <sys/socket.h> 8708 1.1 christos #endif 8709 1.1 christos 8710 1.1 christos #ifdef HAVE_ARPA_INET_H 8711 1.1 christos #include <arpa/inet.h> 8712 1.1 christos #endif 8713 1.1 christos 8714 1.1 christos #ifdef HAVE_SIGNAL_H 8715 1.1 christos #include <signal.h> 8716 1.1 christos #endif 8717 1.1 christos 8718 1.1 christos /* For Tru64 */ 8719 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8720 1.1 christos #include <sys/bitypes.h> 8721 1.1 christos #endif 8722 1.1 christos 8723 1.1 christos _ACEOF 8724 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8725 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8726 1.4 christos then : 8727 1.1 christos ac_cv_type_sig_atomic_t=yes 8728 1.4 christos else case e in #( 8729 1.4 christos e) ac_cv_type_sig_atomic_t=no ;; 8730 1.4 christos esac 8731 1.1 christos fi 8732 1.4 christos rm -rf conftest* 8733 1.4 christos ;; 8734 1.4 christos esac 8735 1.1 christos fi 8736 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 8737 1.4 christos printf "%s\n" "$ac_cv_type_sig_atomic_t" >&6; } 8738 1.1 christos if test $ac_cv_type_sig_atomic_t = no; then 8739 1.1 christos 8740 1.4 christos printf "%s\n" "#define sig_atomic_t int" >>confdefs.h 8741 1.1 christos 8742 1.1 christos fi 8743 1.1 christos 8744 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 8745 1.4 christos printf %s "checking for ssize_t... " >&6; } 8746 1.4 christos if test ${ac_cv_type_ssize_t+y} 8747 1.4 christos then : 8748 1.4 christos printf %s "(cached) " >&6 8749 1.4 christos else case e in #( 8750 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751 1.1 christos /* end confdefs.h. */ 8752 1.1 christos 8753 1.1 christos #include <sys/types.h> 8754 1.1 christos #include <stdlib.h> 8755 1.1 christos #include <stddef.h> 8756 1.1 christos 8757 1.1 christos #ifdef HAVE_STDINT_H 8758 1.1 christos #include <stdint.h> 8759 1.1 christos #endif 8760 1.1 christos 8761 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8762 1.1 christos #include <sys/socket.h> 8763 1.1 christos #endif 8764 1.1 christos 8765 1.1 christos #ifdef HAVE_ARPA_INET_H 8766 1.1 christos #include <arpa/inet.h> 8767 1.1 christos #endif 8768 1.1 christos 8769 1.1 christos #ifdef HAVE_SIGNAL_H 8770 1.1 christos #include <signal.h> 8771 1.1 christos #endif 8772 1.1 christos 8773 1.1 christos /* For Tru64 */ 8774 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8775 1.1 christos #include <sys/bitypes.h> 8776 1.1 christos #endif 8777 1.1 christos 8778 1.1 christos _ACEOF 8779 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8780 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8781 1.4 christos then : 8782 1.1 christos ac_cv_type_ssize_t=yes 8783 1.4 christos else case e in #( 8784 1.4 christos e) ac_cv_type_ssize_t=no ;; 8785 1.4 christos esac 8786 1.1 christos fi 8787 1.4 christos rm -rf conftest* 8788 1.4 christos ;; 8789 1.4 christos esac 8790 1.1 christos fi 8791 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5 8792 1.4 christos printf "%s\n" "$ac_cv_type_ssize_t" >&6; } 8793 1.1 christos if test $ac_cv_type_ssize_t = no; then 8794 1.1 christos 8795 1.4 christos printf "%s\n" "#define ssize_t int" >>confdefs.h 8796 1.1 christos 8797 1.1 christos fi 8798 1.1 christos 8799 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suseconds_t" >&5 8800 1.4 christos printf %s "checking for suseconds_t... " >&6; } 8801 1.4 christos if test ${ac_cv_type_suseconds_t+y} 8802 1.4 christos then : 8803 1.4 christos printf %s "(cached) " >&6 8804 1.4 christos else case e in #( 8805 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8806 1.1 christos /* end confdefs.h. */ 8807 1.1 christos 8808 1.1 christos #include <sys/types.h> 8809 1.1 christos #include <stdlib.h> 8810 1.1 christos #include <stddef.h> 8811 1.1 christos 8812 1.1 christos #ifdef HAVE_STDINT_H 8813 1.1 christos #include <stdint.h> 8814 1.1 christos #endif 8815 1.1 christos 8816 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8817 1.1 christos #include <sys/socket.h> 8818 1.1 christos #endif 8819 1.1 christos 8820 1.1 christos #ifdef HAVE_ARPA_INET_H 8821 1.1 christos #include <arpa/inet.h> 8822 1.1 christos #endif 8823 1.1 christos 8824 1.1 christos #ifdef HAVE_SIGNAL_H 8825 1.1 christos #include <signal.h> 8826 1.1 christos #endif 8827 1.1 christos 8828 1.1 christos /* For Tru64 */ 8829 1.1 christos #ifdef HAVE_SYS_BITYPES_H 8830 1.1 christos #include <sys/bitypes.h> 8831 1.1 christos #endif 8832 1.1 christos 8833 1.1 christos _ACEOF 8834 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8835 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])suseconds_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8836 1.4 christos then : 8837 1.1 christos ac_cv_type_suseconds_t=yes 8838 1.4 christos else case e in #( 8839 1.4 christos e) ac_cv_type_suseconds_t=no ;; 8840 1.4 christos esac 8841 1.1 christos fi 8842 1.4 christos rm -rf conftest* 8843 1.4 christos ;; 8844 1.4 christos esac 8845 1.1 christos fi 8846 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_suseconds_t" >&5 8847 1.4 christos printf "%s\n" "$ac_cv_type_suseconds_t" >&6; } 8848 1.1 christos if test $ac_cv_type_suseconds_t = no; then 8849 1.1 christos 8850 1.4 christos printf "%s\n" "#define suseconds_t time_t" >>confdefs.h 8851 1.1 christos 8852 1.1 christos fi 8853 1.1 christos 8854 1.1 christos 8855 1.1 christos ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 8856 1.1 christos #if HAVE_SYS_TYPES_H 8857 1.1 christos # include <sys/types.h> 8858 1.1 christos #endif 8859 1.1 christos #if HAVE_NETINET_IN_H 8860 1.1 christos # include <netinet/in.h> 8861 1.1 christos #endif 8862 1.1 christos " 8863 1.4 christos if test "x$ac_cv_type_in_addr_t" = xyes 8864 1.4 christos then : 8865 1.1 christos 8866 1.4 christos else case e in #( 8867 1.4 christos e) 8868 1.4 christos printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h 8869 1.4 christos ;; 8870 1.4 christos esac 8871 1.1 christos fi 8872 1.1 christos 8873 1.1 christos ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 8874 1.1 christos #ifdef HAVE_NETINET_IN_H 8875 1.1 christos #include <netinet/in.h> 8876 1.1 christos #endif 8877 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8878 1.1 christos #include <sys/socket.h> 8879 1.1 christos #endif 8880 1.1 christos #ifdef HAVE_NETDB_H 8881 1.1 christos #include <netdb.h> 8882 1.1 christos #endif 8883 1.1 christos #ifdef HAVE_ARPA_INET_H 8884 1.1 christos #include <arpa/inet.h> 8885 1.1 christos #endif 8886 1.1 christos 8887 1.1 christos " 8888 1.4 christos if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes 8889 1.4 christos then : 8890 1.1 christos 8891 1.4 christos else case e in #( 8892 1.4 christos e) 8893 1.1 christos ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 8894 1.1 christos #ifdef HAVE_NETINET_IN_H 8895 1.1 christos #include <netinet/in.h> 8896 1.1 christos #endif 8897 1.1 christos #ifdef HAVE_SYS_SOCKET_H 8898 1.1 christos #include <sys/socket.h> 8899 1.1 christos #endif 8900 1.1 christos #ifdef HAVE_NETDB_H 8901 1.1 christos #include <netdb.h> 8902 1.1 christos #endif 8903 1.1 christos #ifdef HAVE_ARPA_INET_H 8904 1.1 christos #include <arpa/inet.h> 8905 1.1 christos #endif 8906 1.1 christos 8907 1.1 christos " 8908 1.4 christos if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes 8909 1.4 christos then : 8910 1.1 christos 8911 1.1 christos 8912 1.4 christos printf "%s\n" "#define ss_family __ss_family" >>confdefs.h 8913 1.1 christos 8914 1.1 christos 8915 1.1 christos fi 8916 1.1 christos 8917 1.4 christos ;; 8918 1.4 christos esac 8919 1.1 christos fi 8920 1.1 christos 8921 1.1 christos ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" 8922 1.4 christos if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes 8923 1.4 christos then : 8924 1.1 christos 8925 1.4 christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h 8926 1.1 christos 8927 1.1 christos 8928 1.1 christos fi 8929 1.1 christos ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default" 8930 1.4 christos if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes 8931 1.4 christos then : 8932 1.1 christos 8933 1.4 christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h 8934 1.1 christos 8935 1.1 christos 8936 1.1 christos fi 8937 1.1 christos 8938 1.2 christos ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 8939 1.2 christos $ac_includes_default 8940 1.2 christos #ifdef HAVE_SYS_UN_H 8941 1.2 christos #include <sys/un.h> 8942 1.2 christos #endif 8943 1.2 christos 8944 1.2 christos " 8945 1.4 christos if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes 8946 1.4 christos then : 8947 1.2 christos 8948 1.4 christos printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h 8949 1.2 christos 8950 1.2 christos 8951 1.2 christos fi 8952 1.2 christos 8953 1.1 christos 8954 1.1 christos # Checks for library functions. 8955 1.1 christos 8956 1.4 christos 8957 1.4 christos # Make sure we can run config.sub. 8958 1.4 christos $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 8959 1.4 christos as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 8960 1.4 christos 8961 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 8962 1.4 christos printf %s "checking build system type... " >&6; } 8963 1.4 christos if test ${ac_cv_build+y} 8964 1.4 christos then : 8965 1.4 christos printf %s "(cached) " >&6 8966 1.4 christos else case e in #( 8967 1.4 christos e) ac_build_alias=$build_alias 8968 1.4 christos test "x$ac_build_alias" = x && 8969 1.4 christos ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 8970 1.4 christos test "x$ac_build_alias" = x && 8971 1.4 christos as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 8972 1.4 christos ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 8973 1.4 christos as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 8974 1.4 christos ;; 8975 1.4 christos esac 8976 1.1 christos fi 8977 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 8978 1.4 christos printf "%s\n" "$ac_cv_build" >&6; } 8979 1.4 christos case $ac_cv_build in 8980 1.4 christos *-*-*) ;; 8981 1.4 christos *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 8982 1.4 christos esac 8983 1.4 christos build=$ac_cv_build 8984 1.4 christos ac_save_IFS=$IFS; IFS='-' 8985 1.4 christos set x $ac_cv_build 8986 1.4 christos shift 8987 1.4 christos build_cpu=$1 8988 1.4 christos build_vendor=$2 8989 1.4 christos shift; shift 8990 1.4 christos # Remember, the first character of IFS is used to create $*, 8991 1.4 christos # except with old shells: 8992 1.4 christos build_os=$* 8993 1.4 christos IFS=$ac_save_IFS 8994 1.4 christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 8995 1.4 christos 8996 1.4 christos 8997 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 8998 1.4 christos printf %s "checking host system type... " >&6; } 8999 1.4 christos if test ${ac_cv_host+y} 9000 1.4 christos then : 9001 1.4 christos printf %s "(cached) " >&6 9002 1.4 christos else case e in #( 9003 1.4 christos e) if test "x$host_alias" = x; then 9004 1.4 christos ac_cv_host=$ac_cv_build 9005 1.1 christos else 9006 1.4 christos ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 9007 1.4 christos as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 9008 1.4 christos fi 9009 1.4 christos ;; 9010 1.4 christos esac 9011 1.4 christos fi 9012 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 9013 1.4 christos printf "%s\n" "$ac_cv_host" >&6; } 9014 1.4 christos case $ac_cv_host in 9015 1.4 christos *-*-*) ;; 9016 1.4 christos *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 9017 1.4 christos esac 9018 1.4 christos host=$ac_cv_host 9019 1.4 christos ac_save_IFS=$IFS; IFS='-' 9020 1.4 christos set x $ac_cv_host 9021 1.4 christos shift 9022 1.4 christos host_cpu=$1 9023 1.4 christos host_vendor=$2 9024 1.4 christos shift; shift 9025 1.4 christos # Remember, the first character of IFS is used to create $*, 9026 1.4 christos # except with old shells: 9027 1.4 christos host_os=$* 9028 1.4 christos IFS=$ac_save_IFS 9029 1.4 christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 9030 1.4 christos 9031 1.4 christos 9032 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 9033 1.4 christos printf %s "checking for working chown... " >&6; } 9034 1.4 christos if test ${ac_cv_func_chown_works+y} 9035 1.4 christos then : 9036 1.4 christos printf %s "(cached) " >&6 9037 1.4 christos else case e in #( 9038 1.4 christos e) if test "$cross_compiling" = yes 9039 1.4 christos then : 9040 1.4 christos case "$host_os" in # (( 9041 1.4 christos # Guess yes on glibc systems. 9042 1.4 christos *-gnu*) ac_cv_func_chown_works=yes ;; 9043 1.4 christos # If we don't know, assume the worst. 9044 1.4 christos *) ac_cv_func_chown_works=no ;; 9045 1.4 christos esac 9046 1.4 christos else case e in #( 9047 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048 1.1 christos /* end confdefs.h. */ 9049 1.1 christos $ac_includes_default 9050 1.1 christos #include <fcntl.h> 9051 1.1 christos 9052 1.1 christos int 9053 1.4 christos main (void) 9054 1.1 christos { 9055 1.1 christos char *f = "conftest.chown"; 9056 1.1 christos struct stat before, after; 9057 1.1 christos 9058 1.1 christos if (creat (f, 0600) < 0) 9059 1.1 christos return 1; 9060 1.1 christos if (stat (f, &before) < 0) 9061 1.1 christos return 1; 9062 1.1 christos if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 9063 1.1 christos return 1; 9064 1.1 christos if (stat (f, &after) < 0) 9065 1.1 christos return 1; 9066 1.1 christos return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 9067 1.1 christos 9068 1.1 christos ; 9069 1.1 christos return 0; 9070 1.1 christos } 9071 1.1 christos _ACEOF 9072 1.4 christos if ac_fn_c_try_run "$LINENO" 9073 1.4 christos then : 9074 1.1 christos ac_cv_func_chown_works=yes 9075 1.4 christos else case e in #( 9076 1.4 christos e) ac_cv_func_chown_works=no ;; 9077 1.4 christos esac 9078 1.1 christos fi 9079 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9080 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9081 1.4 christos esac 9082 1.1 christos fi 9083 1.1 christos 9084 1.1 christos rm -f conftest.chown 9085 1.4 christos ;; 9086 1.4 christos esac 9087 1.1 christos fi 9088 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 9089 1.4 christos printf "%s\n" "$ac_cv_func_chown_works" >&6; } 9090 1.1 christos if test $ac_cv_func_chown_works = yes; then 9091 1.1 christos 9092 1.4 christos printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 9093 1.1 christos 9094 1.1 christos fi 9095 1.1 christos 9096 1.1 christos 9097 1.4 christos ac_func= 9098 1.4 christos for ac_item in $ac_func_c_list 9099 1.4 christos do 9100 1.4 christos if test $ac_func; then 9101 1.4 christos ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 9102 1.4 christos if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 9103 1.4 christos echo "#define $ac_item 1" >> confdefs.h 9104 1.4 christos fi 9105 1.4 christos ac_func= 9106 1.4 christos else 9107 1.4 christos ac_func=$ac_item 9108 1.4 christos fi 9109 1.1 christos done 9110 1.1 christos 9111 1.1 christos 9112 1.1 christos 9113 1.1 christos if test "x$ac_cv_func_fork" = xyes; then 9114 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 9115 1.4 christos printf %s "checking for working fork... " >&6; } 9116 1.4 christos if test ${ac_cv_func_fork_works+y} 9117 1.4 christos then : 9118 1.4 christos printf %s "(cached) " >&6 9119 1.4 christos else case e in #( 9120 1.4 christos e) if test "$cross_compiling" = yes 9121 1.4 christos then : 9122 1.1 christos ac_cv_func_fork_works=cross 9123 1.4 christos else case e in #( 9124 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9125 1.1 christos /* end confdefs.h. */ 9126 1.1 christos $ac_includes_default 9127 1.1 christos int 9128 1.4 christos main (void) 9129 1.1 christos { 9130 1.1 christos 9131 1.4 christos /* By R. Kuhlmann. */ 9132 1.1 christos return fork () < 0; 9133 1.1 christos 9134 1.1 christos ; 9135 1.1 christos return 0; 9136 1.1 christos } 9137 1.1 christos _ACEOF 9138 1.4 christos if ac_fn_c_try_run "$LINENO" 9139 1.4 christos then : 9140 1.1 christos ac_cv_func_fork_works=yes 9141 1.4 christos else case e in #( 9142 1.4 christos e) ac_cv_func_fork_works=no ;; 9143 1.4 christos esac 9144 1.1 christos fi 9145 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9146 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9147 1.4 christos esac 9148 1.1 christos fi 9149 1.4 christos ;; 9150 1.4 christos esac 9151 1.1 christos fi 9152 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 9153 1.4 christos printf "%s\n" "$ac_cv_func_fork_works" >&6; } 9154 1.1 christos 9155 1.1 christos else 9156 1.1 christos ac_cv_func_fork_works=$ac_cv_func_fork 9157 1.1 christos fi 9158 1.1 christos if test "x$ac_cv_func_fork_works" = xcross; then 9159 1.1 christos case $host in 9160 1.1 christos *-*-amigaos* | *-*-msdosdjgpp*) 9161 1.1 christos # Override, as these systems have only a dummy fork() stub 9162 1.1 christos ac_cv_func_fork_works=no 9163 1.1 christos ;; 9164 1.1 christos *) 9165 1.1 christos ac_cv_func_fork_works=yes 9166 1.1 christos ;; 9167 1.1 christos esac 9168 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 9169 1.4 christos printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 9170 1.1 christos fi 9171 1.1 christos ac_cv_func_vfork_works=$ac_cv_func_vfork 9172 1.1 christos if test "x$ac_cv_func_vfork" = xyes; then 9173 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 9174 1.4 christos printf %s "checking for working vfork... " >&6; } 9175 1.4 christos if test ${ac_cv_func_vfork_works+y} 9176 1.4 christos then : 9177 1.4 christos printf %s "(cached) " >&6 9178 1.4 christos else case e in #( 9179 1.4 christos e) if test "$cross_compiling" = yes 9180 1.4 christos then : 9181 1.1 christos ac_cv_func_vfork_works=cross 9182 1.4 christos else case e in #( 9183 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184 1.1 christos /* end confdefs.h. */ 9185 1.1 christos /* Thanks to Paul Eggert for this test. */ 9186 1.1 christos $ac_includes_default 9187 1.4 christos #include <signal.h> 9188 1.1 christos #include <sys/wait.h> 9189 1.1 christos #ifdef HAVE_VFORK_H 9190 1.1 christos # include <vfork.h> 9191 1.1 christos #endif 9192 1.4 christos 9193 1.4 christos static void 9194 1.4 christos do_nothing (int sig) 9195 1.4 christos { 9196 1.4 christos (void) sig; 9197 1.4 christos } 9198 1.4 christos 9199 1.1 christos /* On some sparc systems, changes by the child to local and incoming 9200 1.1 christos argument registers are propagated back to the parent. The compiler 9201 1.1 christos is told about this with #include <vfork.h>, but some compilers 9202 1.1 christos (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 9203 1.1 christos static variable whose address is put into a register that is 9204 1.1 christos clobbered by the vfork. */ 9205 1.1 christos static void 9206 1.1 christos sparc_address_test (int arg) 9207 1.1 christos { 9208 1.1 christos static pid_t child; 9209 1.1 christos if (!child) { 9210 1.1 christos child = vfork (); 9211 1.1 christos if (child < 0) { 9212 1.1 christos perror ("vfork"); 9213 1.1 christos _exit(2); 9214 1.1 christos } 9215 1.1 christos if (!child) { 9216 1.1 christos arg = getpid(); 9217 1.1 christos write(-1, "", 0); 9218 1.1 christos _exit (arg); 9219 1.1 christos } 9220 1.1 christos } 9221 1.1 christos } 9222 1.1 christos 9223 1.1 christos int 9224 1.4 christos main (void) 9225 1.1 christos { 9226 1.1 christos pid_t parent = getpid (); 9227 1.1 christos pid_t child; 9228 1.1 christos 9229 1.1 christos sparc_address_test (0); 9230 1.1 christos 9231 1.4 christos /* On Solaris 2.4, changes by the child to the signal handler 9232 1.4 christos also munge signal handlers in the parent. To detect this, 9233 1.4 christos start by putting the parent's handler in a known state. */ 9234 1.4 christos signal (SIGTERM, SIG_DFL); 9235 1.4 christos 9236 1.1 christos child = vfork (); 9237 1.1 christos 9238 1.1 christos if (child == 0) { 9239 1.1 christos /* Here is another test for sparc vfork register problems. This 9240 1.1 christos test uses lots of local variables, at least as many local 9241 1.1 christos variables as main has allocated so far including compiler 9242 1.1 christos temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 9243 1.1 christos 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 9244 1.1 christos reuse the register of parent for one of the local variables, 9245 1.1 christos since it will think that parent can't possibly be used any more 9246 1.1 christos in this routine. Assigning to the local variable will thus 9247 1.1 christos munge parent in the parent process. */ 9248 1.1 christos pid_t 9249 1.1 christos p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 9250 1.1 christos p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 9251 1.1 christos /* Convince the compiler that p..p7 are live; otherwise, it might 9252 1.1 christos use the same hardware register for all 8 local variables. */ 9253 1.1 christos if (p != p1 || p != p2 || p != p3 || p != p4 9254 1.1 christos || p != p5 || p != p6 || p != p7) 9255 1.1 christos _exit(1); 9256 1.1 christos 9257 1.4 christos /* Alter the child's signal handler. */ 9258 1.4 christos if (signal (SIGTERM, do_nothing) != SIG_DFL) 9259 1.4 christos _exit(1); 9260 1.4 christos 9261 1.1 christos /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 9262 1.1 christos from child file descriptors. If the child closes a descriptor 9263 1.1 christos before it execs or exits, this munges the parent's descriptor 9264 1.1 christos as well. Test for this by closing stdout in the child. */ 9265 1.1 christos _exit(close(fileno(stdout)) != 0); 9266 1.1 christos } else { 9267 1.1 christos int status; 9268 1.1 christos struct stat st; 9269 1.1 christos 9270 1.1 christos while (wait(&status) != child) 9271 1.1 christos ; 9272 1.1 christos return ( 9273 1.1 christos /* Was there some problem with vforking? */ 9274 1.1 christos child < 0 9275 1.1 christos 9276 1.4 christos /* Did the child munge the parent's signal handler? */ 9277 1.4 christos || signal (SIGTERM, SIG_DFL) != SIG_DFL 9278 1.4 christos 9279 1.1 christos /* Did the child fail? (This shouldn't happen.) */ 9280 1.1 christos || status 9281 1.1 christos 9282 1.1 christos /* Did the vfork/compiler bug occur? */ 9283 1.1 christos || parent != getpid() 9284 1.1 christos 9285 1.1 christos /* Did the file descriptor bug occur? */ 9286 1.1 christos || fstat(fileno(stdout), &st) != 0 9287 1.1 christos ); 9288 1.1 christos } 9289 1.1 christos } 9290 1.1 christos _ACEOF 9291 1.4 christos if ac_fn_c_try_run "$LINENO" 9292 1.4 christos then : 9293 1.1 christos ac_cv_func_vfork_works=yes 9294 1.4 christos else case e in #( 9295 1.4 christos e) ac_cv_func_vfork_works=no ;; 9296 1.4 christos esac 9297 1.1 christos fi 9298 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9299 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9300 1.4 christos esac 9301 1.1 christos fi 9302 1.4 christos ;; 9303 1.4 christos esac 9304 1.1 christos fi 9305 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 9306 1.4 christos printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 9307 1.1 christos 9308 1.1 christos fi; 9309 1.1 christos if test "x$ac_cv_func_fork_works" = xcross; then 9310 1.1 christos ac_cv_func_vfork_works=$ac_cv_func_vfork 9311 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 9312 1.4 christos printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 9313 1.1 christos fi 9314 1.1 christos 9315 1.1 christos if test "x$ac_cv_func_vfork_works" = xyes; then 9316 1.1 christos 9317 1.4 christos printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 9318 1.1 christos 9319 1.1 christos else 9320 1.1 christos 9321 1.4 christos printf "%s\n" "#define vfork fork" >>confdefs.h 9322 1.1 christos 9323 1.1 christos fi 9324 1.1 christos if test "x$ac_cv_func_fork_works" = xyes; then 9325 1.1 christos 9326 1.4 christos printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 9327 1.1 christos 9328 1.1 christos fi 9329 1.1 christos 9330 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 9331 1.4 christos printf %s "checking for GNU libc compatible malloc... " >&6; } 9332 1.4 christos if test ${ac_cv_func_malloc_0_nonnull+y} 9333 1.4 christos then : 9334 1.4 christos printf %s "(cached) " >&6 9335 1.4 christos else case e in #( 9336 1.4 christos e) if test "$cross_compiling" = yes 9337 1.4 christos then : 9338 1.4 christos case "$host_os" in # (( 9339 1.4 christos # Guess yes on platforms where we know the result. 9340 1.4 christos *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ 9341 1.4 christos | hpux* | solaris* | cygwin* | mingw* | windows* | msys* ) 9342 1.4 christos ac_cv_func_malloc_0_nonnull=yes ;; 9343 1.4 christos # If we don't know, assume the worst. 9344 1.4 christos *) ac_cv_func_malloc_0_nonnull=no ;; 9345 1.4 christos esac 9346 1.4 christos else case e in #( 9347 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348 1.1 christos /* end confdefs.h. */ 9349 1.4 christos #include <stdlib.h> 9350 1.1 christos 9351 1.1 christos int 9352 1.4 christos main (void) 9353 1.1 christos { 9354 1.4 christos void *p = malloc (0); 9355 1.4 christos int result = !p; 9356 1.4 christos free (p); 9357 1.4 christos return result; 9358 1.1 christos ; 9359 1.1 christos return 0; 9360 1.1 christos } 9361 1.1 christos _ACEOF 9362 1.4 christos if ac_fn_c_try_run "$LINENO" 9363 1.4 christos then : 9364 1.1 christos ac_cv_func_malloc_0_nonnull=yes 9365 1.4 christos else case e in #( 9366 1.4 christos e) ac_cv_func_malloc_0_nonnull=no ;; 9367 1.4 christos esac 9368 1.1 christos fi 9369 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9370 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9371 1.4 christos esac 9372 1.1 christos fi 9373 1.4 christos ;; 9374 1.4 christos esac 9375 1.1 christos fi 9376 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 9377 1.4 christos printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } 9378 1.4 christos if test $ac_cv_func_malloc_0_nonnull = yes 9379 1.4 christos then : 9380 1.1 christos 9381 1.4 christos printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h 9382 1.1 christos 9383 1.4 christos else case e in #( 9384 1.4 christos e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h 9385 1.1 christos 9386 1.1 christos case " $LIBOBJS " in 9387 1.1 christos *" malloc.$ac_objext "* ) ;; 9388 1.1 christos *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 9389 1.1 christos ;; 9390 1.1 christos esac 9391 1.1 christos 9392 1.1 christos 9393 1.4 christos printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h 9394 1.4 christos ;; 9395 1.4 christos esac 9396 1.1 christos fi 9397 1.1 christos 9398 1.1 christos 9399 1.1 christos 9400 1.4 christos printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h 9401 1.1 christos 9402 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 9403 1.4 christos printf %s "checking for declarations of fseeko and ftello... " >&6; } 9404 1.4 christos if test ${ac_cv_func_fseeko_ftello+y} 9405 1.4 christos then : 9406 1.4 christos printf %s "(cached) " >&6 9407 1.4 christos else case e in #( 9408 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409 1.1 christos /* end confdefs.h. */ 9410 1.4 christos 9411 1.4 christos #if defined __hpux && !defined _LARGEFILE_SOURCE 9412 1.4 christos # include <limits.h> 9413 1.4 christos # if LONG_MAX >> 31 == 0 9414 1.4 christos # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 9415 1.4 christos # endif 9416 1.4 christos #endif 9417 1.1 christos #include <sys/types.h> /* for off_t */ 9418 1.4 christos #include <stdio.h> 9419 1.4 christos 9420 1.1 christos int 9421 1.4 christos main (void) 9422 1.1 christos { 9423 1.1 christos 9424 1.4 christos int (*fp1) (FILE *, off_t, int) = fseeko; 9425 1.4 christos off_t (*fp2) (FILE *) = ftello; 9426 1.4 christos return fseeko (stdin, 0, 0) 9427 1.4 christos && fp1 (stdin, 0, 0) 9428 1.4 christos && ftello (stdin) >= 0 9429 1.4 christos && fp2 (stdin) >= 0; 9430 1.1 christos 9431 1.1 christos ; 9432 1.1 christos return 0; 9433 1.1 christos } 9434 1.1 christos _ACEOF 9435 1.4 christos if ac_fn_c_try_compile "$LINENO" 9436 1.4 christos then : 9437 1.4 christos ac_cv_func_fseeko_ftello=yes 9438 1.4 christos else case e in #( 9439 1.4 christos e) ac_save_CPPFLAGS="$CPPFLAGS" 9440 1.4 christos CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" 9441 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442 1.4 christos /* end confdefs.h. */ 9443 1.1 christos 9444 1.4 christos #if defined __hpux && !defined _LARGEFILE_SOURCE 9445 1.4 christos # include <limits.h> 9446 1.4 christos # if LONG_MAX >> 31 == 0 9447 1.4 christos # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 9448 1.4 christos # endif 9449 1.4 christos #endif 9450 1.4 christos #include <sys/types.h> /* for off_t */ 9451 1.4 christos #include <stdio.h> 9452 1.1 christos 9453 1.1 christos int 9454 1.4 christos main (void) 9455 1.1 christos { 9456 1.1 christos 9457 1.4 christos int (*fp1) (FILE *, off_t, int) = fseeko; 9458 1.4 christos off_t (*fp2) (FILE *) = ftello; 9459 1.4 christos return fseeko (stdin, 0, 0) 9460 1.4 christos && fp1 (stdin, 0, 0) 9461 1.4 christos && ftello (stdin) >= 0 9462 1.4 christos && fp2 (stdin) >= 0; 9463 1.4 christos 9464 1.1 christos ; 9465 1.1 christos return 0; 9466 1.1 christos } 9467 1.1 christos _ACEOF 9468 1.4 christos if ac_fn_c_try_compile "$LINENO" 9469 1.4 christos then : 9470 1.4 christos ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" 9471 1.4 christos else case e in #( 9472 1.4 christos e) ac_cv_func_fseeko_ftello=no ;; 9473 1.4 christos esac 9474 1.1 christos fi 9475 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9476 1.4 christos esac 9477 1.1 christos fi 9478 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9479 1.1 christos esac 9480 1.4 christos fi 9481 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 9482 1.4 christos printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } 9483 1.4 christos if test "$ac_cv_func_fseeko_ftello" != no 9484 1.4 christos then : 9485 1.4 christos 9486 1.4 christos printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 9487 1.4 christos 9488 1.4 christos fi 9489 1.4 christos if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" 9490 1.4 christos then : 9491 1.4 christos 9492 1.4 christos printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h 9493 1.4 christos 9494 1.4 christos fi 9495 1.4 christos 9496 1.4 christos # Check whether --enable-largefile was given. 9497 1.4 christos if test ${enable_largefile+y} 9498 1.4 christos then : 9499 1.4 christos enableval=$enable_largefile; 9500 1.4 christos fi 9501 1.4 christos if test "$enable_largefile,$enable_year2038" != no,no 9502 1.4 christos then : 9503 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 9504 1.4 christos printf %s "checking for $CC option to enable large file support... " >&6; } 9505 1.4 christos if test ${ac_cv_sys_largefile_opts+y} 9506 1.4 christos then : 9507 1.4 christos printf %s "(cached) " >&6 9508 1.4 christos else case e in #( 9509 1.4 christos e) ac_save_CC="$CC" 9510 1.4 christos ac_opt_found=no 9511 1.4 christos for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 9512 1.4 christos if test x"$ac_opt" != x"none needed" 9513 1.4 christos then : 9514 1.4 christos CC="$ac_save_CC $ac_opt" 9515 1.4 christos fi 9516 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517 1.1 christos /* end confdefs.h. */ 9518 1.1 christos #include <sys/types.h> 9519 1.4 christos #ifndef FTYPE 9520 1.4 christos # define FTYPE off_t 9521 1.4 christos #endif 9522 1.4 christos /* Check that FTYPE can represent 2**63 - 1 correctly. 9523 1.4 christos We can't simply define LARGE_FTYPE to be 9223372036854775807, 9524 1.1 christos since some C++ compilers masquerading as C compilers 9525 1.1 christos incorrectly reject 9223372036854775807. */ 9526 1.4 christos #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 9527 1.4 christos int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 9528 1.4 christos && LARGE_FTYPE % 2147483647 == 1) 9529 1.1 christos ? 1 : -1]; 9530 1.1 christos int 9531 1.4 christos main (void) 9532 1.1 christos { 9533 1.1 christos 9534 1.1 christos ; 9535 1.1 christos return 0; 9536 1.1 christos } 9537 1.1 christos _ACEOF 9538 1.4 christos if ac_fn_c_try_compile "$LINENO" 9539 1.4 christos then : 9540 1.4 christos if test x"$ac_opt" = x"none needed" 9541 1.4 christos then : 9542 1.4 christos # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 9543 1.4 christos CC="$CC -DFTYPE=ino_t" 9544 1.4 christos if ac_fn_c_try_compile "$LINENO" 9545 1.4 christos then : 9546 1.4 christos 9547 1.4 christos else case e in #( 9548 1.4 christos e) CC="$CC -D_FILE_OFFSET_BITS=64" 9549 1.4 christos if ac_fn_c_try_compile "$LINENO" 9550 1.4 christos then : 9551 1.4 christos ac_opt='-D_FILE_OFFSET_BITS=64' 9552 1.4 christos fi 9553 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 9554 1.4 christos esac 9555 1.4 christos fi 9556 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam 9557 1.4 christos fi 9558 1.4 christos ac_cv_sys_largefile_opts=$ac_opt 9559 1.4 christos ac_opt_found=yes 9560 1.4 christos fi 9561 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9562 1.4 christos test $ac_opt_found = no || break 9563 1.4 christos done 9564 1.4 christos CC="$ac_save_CC" 9565 1.4 christos 9566 1.4 christos test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 9567 1.4 christos esac 9568 1.1 christos fi 9569 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 9570 1.4 christos printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 9571 1.4 christos 9572 1.4 christos ac_have_largefile=yes 9573 1.4 christos case $ac_cv_sys_largefile_opts in #( 9574 1.4 christos "none needed") : 9575 1.4 christos ;; #( 9576 1.4 christos "supported through gnulib") : 9577 1.4 christos ;; #( 9578 1.4 christos "support not detected") : 9579 1.4 christos ac_have_largefile=no ;; #( 9580 1.4 christos "-D_FILE_OFFSET_BITS=64") : 9581 1.4 christos 9582 1.4 christos printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 9583 1.4 christos ;; #( 9584 1.4 christos "-D_LARGE_FILES=1") : 9585 1.4 christos 9586 1.4 christos printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 9587 1.4 christos ;; #( 9588 1.4 christos "-n32") : 9589 1.4 christos CC="$CC -n32" ;; #( 9590 1.4 christos *) : 9591 1.4 christos as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 9592 1.4 christos esac 9593 1.4 christos 9594 1.4 christos if test "$enable_year2038" != no 9595 1.4 christos then : 9596 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 9597 1.4 christos printf %s "checking for $CC option for timestamps after 2038... " >&6; } 9598 1.4 christos if test ${ac_cv_sys_year2038_opts+y} 9599 1.4 christos then : 9600 1.4 christos printf %s "(cached) " >&6 9601 1.4 christos else case e in #( 9602 1.4 christos e) ac_save_CPPFLAGS="$CPPFLAGS" 9603 1.4 christos ac_opt_found=no 9604 1.4 christos for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 9605 1.4 christos if test x"$ac_opt" != x"none needed" 9606 1.4 christos then : 9607 1.4 christos CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 9608 1.4 christos fi 9609 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9610 1.1 christos /* end confdefs.h. */ 9611 1.4 christos 9612 1.4 christos #include <time.h> 9613 1.4 christos /* Check that time_t can represent 2**32 - 1 correctly. */ 9614 1.4 christos #define LARGE_TIME_T \\ 9615 1.4 christos ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 9616 1.4 christos int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 9617 1.4 christos && LARGE_TIME_T % 65537 == 0) 9618 1.4 christos ? 1 : -1]; 9619 1.4 christos 9620 1.1 christos int 9621 1.4 christos main (void) 9622 1.1 christos { 9623 1.1 christos 9624 1.1 christos ; 9625 1.1 christos return 0; 9626 1.1 christos } 9627 1.1 christos _ACEOF 9628 1.4 christos if ac_fn_c_try_compile "$LINENO" 9629 1.4 christos then : 9630 1.4 christos ac_cv_sys_year2038_opts="$ac_opt" 9631 1.4 christos ac_opt_found=yes 9632 1.1 christos fi 9633 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9634 1.4 christos test $ac_opt_found = no || break 9635 1.4 christos done 9636 1.4 christos CPPFLAGS="$ac_save_CPPFLAGS" 9637 1.4 christos test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 9638 1.4 christos esac 9639 1.1 christos fi 9640 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 9641 1.4 christos printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 9642 1.4 christos 9643 1.4 christos ac_have_year2038=yes 9644 1.4 christos case $ac_cv_sys_year2038_opts in #( 9645 1.4 christos "none needed") : 9646 1.4 christos ;; #( 9647 1.4 christos "support not detected") : 9648 1.4 christos ac_have_year2038=no ;; #( 9649 1.4 christos "-D_TIME_BITS=64") : 9650 1.4 christos 9651 1.4 christos printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 9652 1.4 christos ;; #( 9653 1.4 christos "-D__MINGW_USE_VC2005_COMPAT") : 9654 1.4 christos 9655 1.4 christos printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 9656 1.4 christos ;; #( 9657 1.4 christos "-U_USE_32_BIT_TIME_T"*) : 9658 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 9659 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 9660 1.4 christos as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 9661 1.4 christos will stop working after mid-January 2038. Remove 9662 1.4 christos _USE_32BIT_TIME_T from the compiler flags. 9663 1.4 christos See 'config.log' for more details" "$LINENO" 5; } ;; #( 9664 1.4 christos *) : 9665 1.4 christos as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 9666 1.1 christos esac 9667 1.1 christos 9668 1.4 christos fi 9669 1.1 christos 9670 1.1 christos fi 9671 1.1 christos # The cast to long int works around a bug in the HP C Compiler 9672 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9673 1.4 christos # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. 9674 1.1 christos # This bug is HP SR number 8606223364. 9675 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 9676 1.4 christos printf %s "checking size of void*... " >&6; } 9677 1.4 christos if test ${ac_cv_sizeof_voidp+y} 9678 1.4 christos then : 9679 1.4 christos printf %s "(cached) " >&6 9680 1.4 christos else case e in #( 9681 1.4 christos e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default" 9682 1.4 christos then : 9683 1.4 christos 9684 1.4 christos else case e in #( 9685 1.4 christos e) if test "$ac_cv_type_voidp" = yes; then 9686 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 9687 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 9688 1.1 christos as_fn_error 77 "cannot compute sizeof (void*) 9689 1.4 christos See 'config.log' for more details" "$LINENO" 5; } 9690 1.1 christos else 9691 1.1 christos ac_cv_sizeof_voidp=0 9692 1.4 christos fi ;; 9693 1.4 christos esac 9694 1.1 christos fi 9695 1.4 christos ;; 9696 1.4 christos esac 9697 1.1 christos fi 9698 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 9699 1.4 christos printf "%s\n" "$ac_cv_sizeof_voidp" >&6; } 9700 1.1 christos 9701 1.1 christos 9702 1.1 christos 9703 1.4 christos printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h 9704 1.1 christos 9705 1.1 christos 9706 1.1 christos # The cast to long int works around a bug in the HP C Compiler 9707 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9708 1.4 christos # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. 9709 1.1 christos # This bug is HP SR number 8606223364. 9710 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 9711 1.4 christos printf %s "checking size of off_t... " >&6; } 9712 1.4 christos if test ${ac_cv_sizeof_off_t+y} 9713 1.4 christos then : 9714 1.4 christos printf %s "(cached) " >&6 9715 1.4 christos else case e in #( 9716 1.4 christos e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" 9717 1.4 christos then : 9718 1.4 christos 9719 1.4 christos else case e in #( 9720 1.4 christos e) if test "$ac_cv_type_off_t" = yes; then 9721 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 9722 1.4 christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 9723 1.1 christos as_fn_error 77 "cannot compute sizeof (off_t) 9724 1.4 christos See 'config.log' for more details" "$LINENO" 5; } 9725 1.1 christos else 9726 1.1 christos ac_cv_sizeof_off_t=0 9727 1.4 christos fi ;; 9728 1.4 christos esac 9729 1.1 christos fi 9730 1.4 christos ;; 9731 1.4 christos esac 9732 1.4 christos fi 9733 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 9734 1.4 christos printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } 9735 1.4 christos 9736 1.1 christos 9737 1.1 christos 9738 1.4 christos printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h 9739 1.1 christos 9740 1.1 christos 9741 1.4 christos ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 9742 1.4 christos if test "x$ac_cv_func_getrandom" = xyes 9743 1.4 christos then : 9744 1.4 christos printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 9745 1.1 christos 9746 1.4 christos fi 9747 1.4 christos ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 9748 1.4 christos if test "x$ac_cv_func_arc4random" = xyes 9749 1.4 christos then : 9750 1.4 christos printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 9751 1.1 christos 9752 1.4 christos fi 9753 1.4 christos ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 9754 1.4 christos if test "x$ac_cv_func_arc4random_uniform" = xyes 9755 1.4 christos then : 9756 1.4 christos printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 9757 1.1 christos 9758 1.1 christos fi 9759 1.1 christos 9760 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 9761 1.4 christos printf %s "checking for library containing setusercontext... " >&6; } 9762 1.4 christos if test ${ac_cv_search_setusercontext+y} 9763 1.4 christos then : 9764 1.4 christos printf %s "(cached) " >&6 9765 1.4 christos else case e in #( 9766 1.4 christos e) ac_func_search_save_LIBS=$LIBS 9767 1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9768 1.2 christos /* end confdefs.h. */ 9769 1.2 christos 9770 1.2 christos /* Override any GCC internal prototype to avoid an error. 9771 1.2 christos Use char because int might match the return type of a GCC 9772 1.4 christos builtin and then its argument prototype would still apply. 9773 1.4 christos The 'extern "C"' is for builds by C++ compilers; 9774 1.4 christos although this is not generally supported in C code supporting it here 9775 1.4 christos has little cost and some practical benefit (sr 110532). */ 9776 1.2 christos #ifdef __cplusplus 9777 1.2 christos extern "C" 9778 1.2 christos #endif 9779 1.4 christos char setusercontext (void); 9780 1.2 christos int 9781 1.4 christos main (void) 9782 1.2 christos { 9783 1.2 christos return setusercontext (); 9784 1.2 christos ; 9785 1.2 christos return 0; 9786 1.2 christos } 9787 1.2 christos _ACEOF 9788 1.4 christos for ac_lib in '' util 9789 1.4 christos do 9790 1.2 christos if test -z "$ac_lib"; then 9791 1.2 christos ac_res="none required" 9792 1.2 christos else 9793 1.2 christos ac_res=-l$ac_lib 9794 1.2 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9795 1.2 christos fi 9796 1.4 christos if ac_fn_c_try_link "$LINENO" 9797 1.4 christos then : 9798 1.2 christos ac_cv_search_setusercontext=$ac_res 9799 1.2 christos fi 9800 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9801 1.2 christos conftest$ac_exeext 9802 1.4 christos if test ${ac_cv_search_setusercontext+y} 9803 1.4 christos then : 9804 1.2 christos break 9805 1.2 christos fi 9806 1.2 christos done 9807 1.4 christos if test ${ac_cv_search_setusercontext+y} 9808 1.4 christos then : 9809 1.2 christos 9810 1.4 christos else case e in #( 9811 1.4 christos e) ac_cv_search_setusercontext=no ;; 9812 1.4 christos esac 9813 1.2 christos fi 9814 1.2 christos rm conftest.$ac_ext 9815 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 9816 1.4 christos esac 9817 1.2 christos fi 9818 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 9819 1.4 christos printf "%s\n" "$ac_cv_search_setusercontext" >&6; } 9820 1.2 christos ac_res=$ac_cv_search_setusercontext 9821 1.4 christos if test "$ac_res" != no 9822 1.4 christos then : 9823 1.2 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9824 1.2 christos ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default 9825 1.2 christos " 9826 1.4 christos if test "x$ac_cv_header_login_cap_h" = xyes 9827 1.4 christos then : 9828 1.4 christos printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h 9829 1.4 christos 9830 1.4 christos fi 9831 1.4 christos 9832 1.4 christos fi 9833 1.4 christos 9834 1.4 christos ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 9835 1.4 christos if test "x$ac_cv_func_tzset" = xyes 9836 1.4 christos then : 9837 1.4 christos printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h 9838 1.4 christos 9839 1.4 christos fi 9840 1.4 christos ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" 9841 1.4 christos if test "x$ac_cv_func_alarm" = xyes 9842 1.4 christos then : 9843 1.4 christos printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h 9844 1.4 christos 9845 1.4 christos fi 9846 1.4 christos ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 9847 1.4 christos if test "x$ac_cv_func_chroot" = xyes 9848 1.4 christos then : 9849 1.4 christos printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 9850 1.4 christos 9851 1.4 christos fi 9852 1.4 christos ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 9853 1.4 christos if test "x$ac_cv_func_dup2" = xyes 9854 1.4 christos then : 9855 1.4 christos printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h 9856 1.4 christos 9857 1.4 christos fi 9858 1.4 christos ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 9859 1.4 christos if test "x$ac_cv_func_endpwent" = xyes 9860 1.4 christos then : 9861 1.4 christos printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h 9862 1.4 christos 9863 1.4 christos fi 9864 1.4 christos ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 9865 1.4 christos if test "x$ac_cv_func_gethostname" = xyes 9866 1.4 christos then : 9867 1.4 christos printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 9868 1.4 christos 9869 1.4 christos fi 9870 1.4 christos ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 9871 1.4 christos if test "x$ac_cv_func_memset" = xyes 9872 1.4 christos then : 9873 1.4 christos printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h 9874 1.4 christos 9875 1.4 christos fi 9876 1.4 christos ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" 9877 1.4 christos if test "x$ac_cv_func_memcpy" = xyes 9878 1.4 christos then : 9879 1.4 christos printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h 9880 1.4 christos 9881 1.4 christos fi 9882 1.4 christos ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" 9883 1.4 christos if test "x$ac_cv_func_pwrite" = xyes 9884 1.4 christos then : 9885 1.4 christos printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h 9886 1.4 christos 9887 1.4 christos fi 9888 1.4 christos ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 9889 1.4 christos if test "x$ac_cv_func_socket" = xyes 9890 1.4 christos then : 9891 1.4 christos printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 9892 1.4 christos 9893 1.4 christos fi 9894 1.4 christos ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 9895 1.4 christos if test "x$ac_cv_func_strcasecmp" = xyes 9896 1.4 christos then : 9897 1.4 christos printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 9898 1.4 christos 9899 1.4 christos fi 9900 1.4 christos ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" 9901 1.4 christos if test "x$ac_cv_func_strchr" = xyes 9902 1.4 christos then : 9903 1.4 christos printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h 9904 1.4 christos 9905 1.4 christos fi 9906 1.4 christos ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 9907 1.4 christos if test "x$ac_cv_func_strdup" = xyes 9908 1.4 christos then : 9909 1.4 christos printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 9910 1.4 christos 9911 1.4 christos fi 9912 1.4 christos ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 9913 1.4 christos if test "x$ac_cv_func_strerror" = xyes 9914 1.4 christos then : 9915 1.4 christos printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h 9916 1.4 christos 9917 1.4 christos fi 9918 1.4 christos ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 9919 1.4 christos if test "x$ac_cv_func_strncasecmp" = xyes 9920 1.4 christos then : 9921 1.4 christos printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 9922 1.4 christos 9923 1.4 christos fi 9924 1.4 christos ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 9925 1.4 christos if test "x$ac_cv_func_strtol" = xyes 9926 1.4 christos then : 9927 1.4 christos printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h 9928 1.4 christos 9929 1.4 christos fi 9930 1.4 christos ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 9931 1.4 christos if test "x$ac_cv_func_writev" = xyes 9932 1.4 christos then : 9933 1.4 christos printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 9934 1.4 christos 9935 1.4 christos fi 9936 1.4 christos ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 9937 1.4 christos if test "x$ac_cv_func_getaddrinfo" = xyes 9938 1.4 christos then : 9939 1.4 christos printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 9940 1.4 christos 9941 1.4 christos fi 9942 1.4 christos ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 9943 1.4 christos if test "x$ac_cv_func_getnameinfo" = xyes 9944 1.4 christos then : 9945 1.4 christos printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 9946 1.4 christos 9947 1.4 christos fi 9948 1.4 christos ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo" 9949 1.4 christos if test "x$ac_cv_func_freeaddrinfo" = xyes 9950 1.4 christos then : 9951 1.4 christos printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h 9952 1.4 christos 9953 1.4 christos fi 9954 1.4 christos ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 9955 1.4 christos if test "x$ac_cv_func_gai_strerror" = xyes 9956 1.4 christos then : 9957 1.4 christos printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h 9958 1.4 christos 9959 1.4 christos fi 9960 1.4 christos ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 9961 1.4 christos if test "x$ac_cv_func_sigaction" = xyes 9962 1.4 christos then : 9963 1.4 christos printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 9964 1.4 christos 9965 1.4 christos fi 9966 1.4 christos ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 9967 1.4 christos if test "x$ac_cv_func_sigprocmask" = xyes 9968 1.4 christos then : 9969 1.4 christos printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 9970 1.4 christos 9971 1.4 christos fi 9972 1.4 christos ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 9973 1.4 christos if test "x$ac_cv_func_strptime" = xyes 9974 1.4 christos then : 9975 1.4 christos printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 9976 1.4 christos 9977 1.4 christos fi 9978 1.4 christos ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 9979 1.4 christos if test "x$ac_cv_func_strftime" = xyes 9980 1.4 christos then : 9981 1.4 christos printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 9982 1.4 christos 9983 1.4 christos fi 9984 1.4 christos ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 9985 1.4 christos if test "x$ac_cv_func_localtime_r" = xyes 9986 1.4 christos then : 9987 1.4 christos printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 9988 1.4 christos 9989 1.4 christos fi 9990 1.4 christos ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext" 9991 1.4 christos if test "x$ac_cv_func_setusercontext" = xyes 9992 1.4 christos then : 9993 1.4 christos printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h 9994 1.4 christos 9995 1.4 christos fi 9996 1.4 christos ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob" 9997 1.4 christos if test "x$ac_cv_func_glob" = xyes 9998 1.4 christos then : 9999 1.4 christos printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h 10000 1.4 christos 10001 1.4 christos fi 10002 1.4 christos ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 10003 1.4 christos if test "x$ac_cv_func_initgroups" = xyes 10004 1.4 christos then : 10005 1.4 christos printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 10006 1.4 christos 10007 1.4 christos fi 10008 1.4 christos ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 10009 1.4 christos if test "x$ac_cv_func_setresuid" = xyes 10010 1.4 christos then : 10011 1.4 christos printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 10012 1.4 christos 10013 1.4 christos fi 10014 1.4 christos ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 10015 1.4 christos if test "x$ac_cv_func_setreuid" = xyes 10016 1.4 christos then : 10017 1.4 christos printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 10018 1.4 christos 10019 1.4 christos fi 10020 1.4 christos ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 10021 1.4 christos if test "x$ac_cv_func_setresgid" = xyes 10022 1.4 christos then : 10023 1.4 christos printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 10024 1.4 christos 10025 1.4 christos fi 10026 1.4 christos ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 10027 1.4 christos if test "x$ac_cv_func_setregid" = xyes 10028 1.4 christos then : 10029 1.4 christos printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 10030 1.4 christos 10031 1.4 christos fi 10032 1.4 christos ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" 10033 1.4 christos if test "x$ac_cv_func_getpwnam" = xyes 10034 1.4 christos then : 10035 1.4 christos printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h 10036 1.4 christos 10037 1.4 christos fi 10038 1.4 christos ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 10039 1.4 christos if test "x$ac_cv_func_mmap" = xyes 10040 1.4 christos then : 10041 1.4 christos printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 10042 1.2 christos 10043 1.2 christos fi 10044 1.4 christos ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll" 10045 1.4 christos if test "x$ac_cv_func_ppoll" = xyes 10046 1.4 christos then : 10047 1.4 christos printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h 10048 1.2 christos 10049 1.4 christos fi 10050 1.4 christos ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 10051 1.4 christos if test "x$ac_cv_func_clock_gettime" = xyes 10052 1.4 christos then : 10053 1.4 christos printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 10054 1.2 christos 10055 1.2 christos fi 10056 1.4 christos ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 10057 1.4 christos if test "x$ac_cv_func_accept4" = xyes 10058 1.4 christos then : 10059 1.4 christos printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 10060 1.2 christos 10061 1.4 christos fi 10062 1.4 christos ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 10063 1.4 christos if test "x$ac_cv_func_getifaddrs" = xyes 10064 1.4 christos then : 10065 1.4 christos printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 10066 1.1 christos 10067 1.1 christos fi 10068 1.1 christos 10069 1.1 christos 10070 1.2 christos ac_fn_c_check_type "$LINENO" "struct mmsghdr" "ac_cv_type_struct_mmsghdr" " 10071 1.2 christos $ac_includes_default 10072 1.2 christos #include <sys/socket.h> 10073 1.2 christos 10074 1.2 christos " 10075 1.4 christos if test "x$ac_cv_type_struct_mmsghdr" = xyes 10076 1.4 christos then : 10077 1.2 christos 10078 1.4 christos printf "%s\n" "#define HAVE_MMSGHDR 1" >>confdefs.h 10079 1.2 christos 10080 1.2 christos fi 10081 1.2 christos 10082 1.2 christos 10083 1.1 christos # Check whether --enable-recvmmsg was given. 10084 1.4 christos if test ${enable_recvmmsg+y} 10085 1.4 christos then : 10086 1.1 christos enableval=$enable_recvmmsg; 10087 1.1 christos fi 10088 1.1 christos 10089 1.1 christos case "$enable_recvmmsg" in 10090 1.1 christos yes) 10091 1.1 christos ac_fn_c_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg" 10092 1.4 christos if test "x$ac_cv_func_recvmmsg" = xyes 10093 1.4 christos then : 10094 1.1 christos 10095 1.4 christos if test "$cross_compiling" = yes 10096 1.4 christos then : 10097 1.1 christos 10098 1.1 christos 10099 1.4 christos printf "%s\n" "#define HAVE_RECVMMSG 1" >>confdefs.h 10100 1.1 christos 10101 1.1 christos 10102 1.4 christos else case e in #( 10103 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10104 1.1 christos /* end confdefs.h. */ 10105 1.1 christos 10106 1.3 christos #ifdef HAVE_UNISTD_H 10107 1.3 christos #include <unistd.h> 10108 1.3 christos #endif 10109 1.1 christos #include <sys/socket.h> 10110 1.1 christos #include <errno.h> 10111 1.1 christos int main(void) 10112 1.1 christos { 10113 1.1 christos int s = socket(AF_INET, SOCK_DGRAM, 0); 10114 1.1 christos int r = recvmmsg(s, 0, 0, 0, 0) == -1 && errno == ENOSYS; 10115 1.1 christos close(s); 10116 1.1 christos return r; 10117 1.1 christos } 10118 1.1 christos 10119 1.1 christos _ACEOF 10120 1.4 christos if ac_fn_c_try_run "$LINENO" 10121 1.4 christos then : 10122 1.1 christos 10123 1.1 christos 10124 1.4 christos printf "%s\n" "#define HAVE_RECVMMSG 1" >>confdefs.h 10125 1.1 christos 10126 1.1 christos fi 10127 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10128 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10129 1.4 christos esac 10130 1.1 christos fi 10131 1.1 christos 10132 1.1 christos fi 10133 1.1 christos 10134 1.1 christos ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg" 10135 1.4 christos if test "x$ac_cv_func_sendmmsg" = xyes 10136 1.4 christos then : 10137 1.1 christos 10138 1.4 christos if test "$cross_compiling" = yes 10139 1.4 christos then : 10140 1.1 christos 10141 1.1 christos 10142 1.4 christos printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h 10143 1.1 christos 10144 1.1 christos 10145 1.4 christos else case e in #( 10146 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10147 1.1 christos /* end confdefs.h. */ 10148 1.1 christos 10149 1.3 christos #ifdef HAVE_UNISTD_H 10150 1.3 christos #include <unistd.h> 10151 1.3 christos #endif 10152 1.1 christos #include <sys/socket.h> 10153 1.1 christos #include <errno.h> 10154 1.1 christos int main(void) 10155 1.1 christos { 10156 1.1 christos int s = socket(AF_INET, SOCK_DGRAM, 0); 10157 1.1 christos int r = sendmmsg(s, 0, 0, 0) == -1 && errno == ENOSYS; 10158 1.1 christos close(s); 10159 1.1 christos return r; 10160 1.1 christos } 10161 1.1 christos 10162 1.1 christos _ACEOF 10163 1.4 christos if ac_fn_c_try_run "$LINENO" 10164 1.4 christos then : 10165 1.1 christos 10166 1.1 christos 10167 1.4 christos printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h 10168 1.1 christos 10169 1.1 christos fi 10170 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10171 1.4 christos conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10172 1.4 christos esac 10173 1.1 christos fi 10174 1.1 christos 10175 1.1 christos fi 10176 1.1 christos 10177 1.1 christos 10178 1.1 christos ;; 10179 1.1 christos no|*) 10180 1.1 christos ;; 10181 1.1 christos esac 10182 1.1 christos 10183 1.1 christos # check if setreuid en setregid fail, on MacOSX10.4(darwin8). 10184 1.2 christos if echo $target_os | $GREP -i darwin8 > /dev/null; then 10185 1.1 christos 10186 1.4 christos printf "%s\n" "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 10187 1.1 christos 10188 1.1 christos fi 10189 1.1 christos 10190 1.2 christos # GNU HURD needs _GNU_SOURCE defined for cpu affinity gear 10191 1.2 christos if echo $target_os | $EGREP -i 'linux|hurd' > /dev/null; then 10192 1.4 christos printf "%s\n" "#define _GNU_SOURCE, 1, Define this if on Linux or GNU Hurd for cpu affinity interface 1" >>confdefs.h 10193 1.2 christos 10194 1.2 christos fi 10195 1.2 christos 10196 1.2 christos # see comment on _GNU_SOURCE above 10197 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default 10198 1.2 christos " 10199 1.4 christos if test "x$ac_cv_header_sched_h" = xyes 10200 1.4 christos then : 10201 1.4 christos printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 10202 1.2 christos 10203 1.2 christos fi 10204 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default 10205 1.4 christos " 10206 1.4 christos if test "x$ac_cv_header_sys_cpuset_h" = xyes 10207 1.4 christos then : 10208 1.4 christos printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h 10209 1.2 christos 10210 1.4 christos fi 10211 1.2 christos 10212 1.2 christos 10213 1.2 christos # Check for cpu_set_t (Linux) and cpuset_t (FreeBSD and NetBSD) 10214 1.2 christos ac_fn_c_check_type "$LINENO" "cpu_set_t" "ac_cv_type_cpu_set_t" " 10215 1.2 christos $ac_includes_default 10216 1.2 christos #if HAVE_SCHED_H 10217 1.2 christos # include <sched.h> 10218 1.2 christos #endif 10219 1.2 christos #if HAVE_SYS_CPUSET_H 10220 1.2 christos # include <sys/cpuset.h> 10221 1.2 christos #endif 10222 1.2 christos 10223 1.2 christos " 10224 1.4 christos if test "x$ac_cv_type_cpu_set_t" = xyes 10225 1.4 christos then : 10226 1.2 christos 10227 1.4 christos printf "%s\n" "#define HAVE_CPU_SET_T 1" >>confdefs.h 10228 1.2 christos 10229 1.2 christos 10230 1.2 christos fi 10231 1.2 christos ac_fn_c_check_type "$LINENO" "cpuset_t" "ac_cv_type_cpuset_t" " 10232 1.2 christos $ac_includes_default 10233 1.2 christos #if HAVE_SCHED_H 10234 1.2 christos # include <sched.h> 10235 1.2 christos #endif 10236 1.2 christos #if HAVE_SYS_CPUSET_H 10237 1.2 christos # include <sys/cpuset.h> 10238 1.2 christos #endif 10239 1.2 christos 10240 1.2 christos " 10241 1.4 christos if test "x$ac_cv_type_cpuset_t" = xyes 10242 1.4 christos then : 10243 1.2 christos 10244 1.4 christos printf "%s\n" "#define HAVE_CPUSET_T 1" >>confdefs.h 10245 1.2 christos 10246 1.2 christos 10247 1.2 christos fi 10248 1.2 christos ac_fn_c_check_type "$LINENO" "cpuid_t" "ac_cv_type_cpuid_t" " 10249 1.2 christos $ac_includes_default 10250 1.2 christos #if HAVE_SCHED_H 10251 1.2 christos # include <sched.h> 10252 1.2 christos #endif 10253 1.2 christos #if HAVE_SYS_CPUSET_H 10254 1.2 christos # include <sys/cpuset.h> 10255 1.2 christos #endif 10256 1.2 christos 10257 1.2 christos " 10258 1.4 christos if test "x$ac_cv_type_cpuid_t" = xyes 10259 1.4 christos then : 10260 1.2 christos 10261 1.4 christos printf "%s\n" "#define HAVE_CPUID_T 1" >>confdefs.h 10262 1.2 christos 10263 1.2 christos 10264 1.2 christos fi 10265 1.2 christos 10266 1.2 christos 10267 1.2 christos 10268 1.2 christos 10269 1.4 christos if test x"$ac_cv_type_cpuset_t" = xyes -o x"$ac_cv_type_cpu_set_t" = xyes 10270 1.4 christos then : 10271 1.2 christos 10272 1.2 christos ac_fn_c_check_func "$LINENO" "cpuset_create" "ac_cv_func_cpuset_create" 10273 1.4 christos if test "x$ac_cv_func_cpuset_create" = xyes 10274 1.4 christos then : 10275 1.2 christos 10276 1.2 christos fi 10277 1.2 christos 10278 1.2 christos ac_fn_c_check_func "$LINENO" "cpuset_destroy" "ac_cv_func_cpuset_destroy" 10279 1.4 christos if test "x$ac_cv_func_cpuset_destroy" = xyes 10280 1.4 christos then : 10281 1.2 christos 10282 1.2 christos fi 10283 1.2 christos 10284 1.2 christos ac_fn_c_check_func "$LINENO" "cpuset_zero" "ac_cv_func_cpuset_zero" 10285 1.4 christos if test "x$ac_cv_func_cpuset_zero" = xyes 10286 1.4 christos then : 10287 1.2 christos 10288 1.2 christos fi 10289 1.2 christos 10290 1.2 christos ac_fn_c_check_func "$LINENO" "cpuset_set" "ac_cv_func_cpuset_set" 10291 1.4 christos if test "x$ac_cv_func_cpuset_set" = xyes 10292 1.4 christos then : 10293 1.2 christos 10294 1.2 christos fi 10295 1.2 christos 10296 1.2 christos ac_fn_c_check_func "$LINENO" "cpuset_clr" "ac_cv_func_cpuset_clr" 10297 1.4 christos if test "x$ac_cv_func_cpuset_clr" = xyes 10298 1.4 christos then : 10299 1.2 christos 10300 1.2 christos fi 10301 1.2 christos 10302 1.2 christos ac_fn_c_check_func "$LINENO" "cpuset_isset" "ac_cv_func_cpuset_isset" 10303 1.4 christos if test "x$ac_cv_func_cpuset_isset" = xyes 10304 1.4 christos then : 10305 1.2 christos 10306 1.2 christos fi 10307 1.2 christos 10308 1.2 christos ac_fn_c_check_func "$LINENO" "cpuset_size" "ac_cv_func_cpuset_size" 10309 1.4 christos if test "x$ac_cv_func_cpuset_size" = xyes 10310 1.4 christos then : 10311 1.2 christos 10312 1.2 christos fi 10313 1.2 christos 10314 1.2 christos case " $LIBOBJS " in 10315 1.2 christos *" cpuset.$ac_objext "* ) ;; 10316 1.2 christos *) LIBOBJS="$LIBOBJS cpuset.$ac_objext" 10317 1.2 christos ;; 10318 1.2 christos esac 10319 1.2 christos 10320 1.4 christos ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 10321 1.4 christos if test "x$ac_cv_func_sysconf" = xyes 10322 1.4 christos then : 10323 1.4 christos printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 10324 1.2 christos 10325 1.2 christos fi 10326 1.2 christos 10327 1.2 christos 10328 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CPU_OR works with three arguments" >&5 10329 1.4 christos printf %s "checking whether CPU_OR works with three arguments... " >&6; } 10330 1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331 1.2 christos /* end confdefs.h. */ 10332 1.2 christos #ifdef HAVE_SCHED_H 10333 1.2 christos # include <sched.h> 10334 1.2 christos #endif 10335 1.2 christos #ifdef HAVE_SYS_CPUSET_H 10336 1.2 christos # include <sys/cpuset.h> 10337 1.2 christos #endif 10338 1.2 christos #include <string.h> 10339 1.2 christos #ifdef HAVE_CPUSET_T 10340 1.2 christos #define MY_CPUSET_TYPE cpuset_t 10341 1.2 christos #endif 10342 1.2 christos #ifdef HAVE_CPU_SET_T 10343 1.2 christos #define MY_CPUSET_TYPE cpu_set_t 10344 1.2 christos #endif 10345 1.2 christos void testing (void) { 10346 1.2 christos MY_CPUSET_TYPE a, b; 10347 1.2 christos memset(&a, 0, sizeof(a)); 10348 1.2 christos memset(&b, 0, sizeof(b)); 10349 1.2 christos CPU_OR(&a, &a, &b); 10350 1.2 christos } 10351 1.2 christos int 10352 1.4 christos main (void) 10353 1.2 christos { 10354 1.2 christos 10355 1.2 christos testing(); 10356 1.2 christos 10357 1.2 christos ; 10358 1.2 christos return 0; 10359 1.2 christos } 10360 1.2 christos _ACEOF 10361 1.4 christos if ac_fn_c_try_compile "$LINENO" 10362 1.4 christos then : 10363 1.2 christos 10364 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10365 1.4 christos printf "%s\n" "yes" >&6; } 10366 1.2 christos 10367 1.4 christos printf "%s\n" "#define CPU_OR_THREE_ARGS 1" >>confdefs.h 10368 1.2 christos 10369 1.2 christos 10370 1.4 christos else case e in #( 10371 1.4 christos e) 10372 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10373 1.4 christos printf "%s\n" "no" >&6; } 10374 1.4 christos ;; 10375 1.4 christos esac 10376 1.2 christos fi 10377 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10378 1.2 christos 10379 1.2 christos fi 10380 1.2 christos 10381 1.2 christos # 10382 1.2 christos # sched_setaffinity must be checked using proper includes. 10383 1.2 christos # also needs _GNU_SOURCE on Linux and Hurd; see above. 10384 1.2 christos # also see https://github.com/NLnetLabs/nsd/issues/82. 10385 1.2 christos # 10386 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5 10387 1.4 christos printf %s "checking for sched_setaffinity... " >&6; } 10388 1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389 1.2 christos /* end confdefs.h. */ 10390 1.2 christos 10391 1.2 christos #ifdef HAVE_SCHED_H 10392 1.2 christos # include <sched.h> 10393 1.2 christos #endif 10394 1.2 christos #ifdef HAVE_SYS_CPUSET_H 10395 1.2 christos #include <sys/cpuset.h> 10396 1.2 christos #endif 10397 1.2 christos #ifdef HAVE_CPUSET_T 10398 1.2 christos #define MY_CPUSET_TYPE cpuset_t 10399 1.2 christos #endif 10400 1.2 christos #ifdef HAVE_CPU_SET_T 10401 1.2 christos #define MY_CPUSET_TYPE cpu_set_t 10402 1.2 christos #endif 10403 1.2 christos void testing (void) { 10404 1.2 christos MY_CPUSET_TYPE set; 10405 1.2 christos CPU_ZERO(&set); 10406 1.2 christos (void)sched_setaffinity(-1, sizeof(set), &set); 10407 1.2 christos } 10408 1.2 christos 10409 1.2 christos int 10410 1.4 christos main (void) 10411 1.2 christos { 10412 1.2 christos 10413 1.2 christos ; 10414 1.2 christos return 0; 10415 1.2 christos } 10416 1.2 christos _ACEOF 10417 1.4 christos if ac_fn_c_try_compile "$LINENO" 10418 1.4 christos then : 10419 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10420 1.4 christos printf "%s\n" "yes" >&6; } 10421 1.2 christos 10422 1.4 christos printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h 10423 1.2 christos 10424 1.4 christos else case e in #( 10425 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10426 1.4 christos printf "%s\n" "no" >&6; } ;; 10427 1.4 christos esac 10428 1.2 christos fi 10429 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10430 1.2 christos 10431 1.2 christos # 10432 1.2 christos # Checking for missing functions we can replace 10433 1.2 christos # 10434 1.2 christos ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename" 10435 1.4 christos if test "x$ac_cv_func_basename" = xyes 10436 1.4 christos then : 10437 1.4 christos printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h 10438 1.2 christos 10439 1.4 christos else case e in #( 10440 1.4 christos e) case " $LIBOBJS " in 10441 1.2 christos *" basename.$ac_objext "* ) ;; 10442 1.2 christos *) LIBOBJS="$LIBOBJS basename.$ac_objext" 10443 1.2 christos ;; 10444 1.2 christos esac 10445 1.4 christos ;; 10446 1.4 christos esac 10447 1.1 christos fi 10448 1.1 christos 10449 1.1 christos ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 10450 1.4 christos if test "x$ac_cv_func_inet_aton" = xyes 10451 1.4 christos then : 10452 1.4 christos printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 10453 1.1 christos 10454 1.4 christos else case e in #( 10455 1.4 christos e) case " $LIBOBJS " in 10456 1.1 christos *" inet_aton.$ac_objext "* ) ;; 10457 1.1 christos *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 10458 1.1 christos ;; 10459 1.1 christos esac 10460 1.4 christos ;; 10461 1.4 christos esac 10462 1.1 christos fi 10463 1.1 christos 10464 1.1 christos ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 10465 1.4 christos if test "x$ac_cv_func_inet_pton" = xyes 10466 1.4 christos then : 10467 1.4 christos printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 10468 1.1 christos 10469 1.4 christos else case e in #( 10470 1.4 christos e) case " $LIBOBJS " in 10471 1.1 christos *" inet_pton.$ac_objext "* ) ;; 10472 1.1 christos *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 10473 1.1 christos ;; 10474 1.1 christos esac 10475 1.4 christos ;; 10476 1.4 christos esac 10477 1.1 christos fi 10478 1.1 christos 10479 1.1 christos ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 10480 1.4 christos if test "x$ac_cv_func_inet_ntop" = xyes 10481 1.4 christos then : 10482 1.4 christos printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 10483 1.1 christos 10484 1.4 christos else case e in #( 10485 1.4 christos e) case " $LIBOBJS " in 10486 1.1 christos *" inet_ntop.$ac_objext "* ) ;; 10487 1.1 christos *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 10488 1.1 christos ;; 10489 1.1 christos esac 10490 1.4 christos ;; 10491 1.4 christos esac 10492 1.1 christos fi 10493 1.1 christos 10494 1.1 christos ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 10495 1.4 christos if test "x$ac_cv_func_snprintf" = xyes 10496 1.4 christos then : 10497 1.4 christos printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 10498 1.1 christos 10499 1.4 christos else case e in #( 10500 1.4 christos e) case " $LIBOBJS " in 10501 1.1 christos *" snprintf.$ac_objext "* ) ;; 10502 1.1 christos *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 10503 1.1 christos ;; 10504 1.1 christos esac 10505 1.4 christos ;; 10506 1.4 christos esac 10507 1.1 christos fi 10508 1.1 christos 10509 1.1 christos ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 10510 1.4 christos if test "x$ac_cv_func_strlcat" = xyes 10511 1.4 christos then : 10512 1.4 christos printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 10513 1.1 christos 10514 1.4 christos else case e in #( 10515 1.4 christos e) case " $LIBOBJS " in 10516 1.1 christos *" strlcat.$ac_objext "* ) ;; 10517 1.1 christos *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 10518 1.1 christos ;; 10519 1.1 christos esac 10520 1.4 christos ;; 10521 1.4 christos esac 10522 1.1 christos fi 10523 1.1 christos 10524 1.1 christos ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 10525 1.4 christos if test "x$ac_cv_func_strlcpy" = xyes 10526 1.4 christos then : 10527 1.4 christos printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 10528 1.1 christos 10529 1.4 christos else case e in #( 10530 1.4 christos e) case " $LIBOBJS " in 10531 1.1 christos *" strlcpy.$ac_objext "* ) ;; 10532 1.1 christos *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 10533 1.1 christos ;; 10534 1.1 christos esac 10535 1.4 christos ;; 10536 1.4 christos esac 10537 1.1 christos fi 10538 1.1 christos 10539 1.1 christos ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 10540 1.4 christos if test "x$ac_cv_func_strptime" = xyes 10541 1.4 christos then : 10542 1.4 christos printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 10543 1.1 christos 10544 1.4 christos else case e in #( 10545 1.4 christos e) case " $LIBOBJS " in 10546 1.1 christos *" strptime.$ac_objext "* ) ;; 10547 1.1 christos *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 10548 1.1 christos ;; 10549 1.1 christos esac 10550 1.4 christos ;; 10551 1.4 christos esac 10552 1.1 christos fi 10553 1.1 christos 10554 1.1 christos ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton" 10555 1.4 christos if test "x$ac_cv_func_b64_pton" = xyes 10556 1.4 christos then : 10557 1.4 christos printf "%s\n" "#define HAVE_B64_PTON 1" >>confdefs.h 10558 1.1 christos 10559 1.4 christos else case e in #( 10560 1.4 christos e) case " $LIBOBJS " in 10561 1.1 christos *" b64_pton.$ac_objext "* ) ;; 10562 1.1 christos *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 10563 1.1 christos ;; 10564 1.1 christos esac 10565 1.4 christos ;; 10566 1.4 christos esac 10567 1.1 christos fi 10568 1.1 christos 10569 1.1 christos ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop" 10570 1.4 christos if test "x$ac_cv_func_b64_ntop" = xyes 10571 1.4 christos then : 10572 1.4 christos printf "%s\n" "#define HAVE_B64_NTOP 1" >>confdefs.h 10573 1.1 christos 10574 1.4 christos else case e in #( 10575 1.4 christos e) case " $LIBOBJS " in 10576 1.1 christos *" b64_ntop.$ac_objext "* ) ;; 10577 1.1 christos *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 10578 1.1 christos ;; 10579 1.1 christos esac 10580 1.4 christos ;; 10581 1.4 christos esac 10582 1.1 christos fi 10583 1.1 christos 10584 1.1 christos ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect" 10585 1.4 christos if test "x$ac_cv_func_pselect" = xyes 10586 1.4 christos then : 10587 1.4 christos printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h 10588 1.1 christos 10589 1.4 christos else case e in #( 10590 1.4 christos e) case " $LIBOBJS " in 10591 1.1 christos *" pselect.$ac_objext "* ) ;; 10592 1.1 christos *) LIBOBJS="$LIBOBJS pselect.$ac_objext" 10593 1.1 christos ;; 10594 1.1 christos esac 10595 1.4 christos ;; 10596 1.4 christos esac 10597 1.1 christos fi 10598 1.1 christos 10599 1.1 christos ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 10600 1.4 christos if test "x$ac_cv_func_memmove" = xyes 10601 1.4 christos then : 10602 1.4 christos printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 10603 1.1 christos 10604 1.4 christos else case e in #( 10605 1.4 christos e) case " $LIBOBJS " in 10606 1.1 christos *" memmove.$ac_objext "* ) ;; 10607 1.1 christos *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 10608 1.1 christos ;; 10609 1.1 christos esac 10610 1.4 christos ;; 10611 1.4 christos esac 10612 1.1 christos fi 10613 1.1 christos 10614 1.2 christos ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 10615 1.4 christos if test "x$ac_cv_func_setproctitle" = xyes 10616 1.4 christos then : 10617 1.4 christos printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h 10618 1.2 christos 10619 1.4 christos else case e in #( 10620 1.4 christos e) case " $LIBOBJS " in 10621 1.2 christos *" setproctitle.$ac_objext "* ) ;; 10622 1.2 christos *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" 10623 1.2 christos ;; 10624 1.2 christos esac 10625 1.4 christos ;; 10626 1.4 christos esac 10627 1.2 christos fi 10628 1.2 christos 10629 1.2 christos ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 10630 1.4 christos if test "x$ac_cv_func_explicit_bzero" = xyes 10631 1.4 christos then : 10632 1.4 christos printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 10633 1.1 christos 10634 1.4 christos else case e in #( 10635 1.4 christos e) case " $LIBOBJS " in 10636 1.2 christos *" explicit_bzero.$ac_objext "* ) ;; 10637 1.2 christos *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 10638 1.2 christos ;; 10639 1.2 christos esac 10640 1.4 christos ;; 10641 1.4 christos esac 10642 1.2 christos fi 10643 1.2 christos 10644 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 10645 1.4 christos printf %s "checking for reallocarray... " >&6; } 10646 1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10647 1.2 christos /* end confdefs.h. */ 10648 1.2 christos 10649 1.2 christos #ifndef _OPENBSD_SOURCE 10650 1.2 christos #define _OPENBSD_SOURCE 1 10651 1.2 christos #endif 10652 1.2 christos 10653 1.2 christos $ac_includes_default 10654 1.2 christos 10655 1.2 christos #include <stdlib.h> 10656 1.2 christos int main(void) { 10657 1.2 christos void* p = reallocarray(NULL, 10, 100); 10658 1.2 christos free(p); 10659 1.2 christos return 0; 10660 1.2 christos } 10661 1.2 christos 10662 1.2 christos _ACEOF 10663 1.4 christos if ac_fn_c_try_link "$LINENO" 10664 1.4 christos then : 10665 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10666 1.4 christos printf "%s\n" "yes" >&6; } 10667 1.2 christos 10668 1.4 christos printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 10669 1.2 christos 10670 1.4 christos ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" " 10671 1.2 christos $ac_includes_default 10672 1.2 christos #include <stdlib.h> 10673 1.2 christos 10674 1.4 christos " "$ac_c_undeclared_builtin_options" "CFLAGS" 10675 1.4 christos if test "x$ac_cv_have_decl_reallocarray" = xyes 10676 1.4 christos then : 10677 1.2 christos ac_have_decl=1 10678 1.4 christos else case e in #( 10679 1.4 christos e) ac_have_decl=0 ;; 10680 1.4 christos esac 10681 1.2 christos fi 10682 1.4 christos printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h 10683 1.4 christos if test $ac_have_decl = 1 10684 1.4 christos then : 10685 1.2 christos 10686 1.4 christos else case e in #( 10687 1.4 christos e) 10688 1.2 christos 10689 1.4 christos printf "%s\n" "#define REALLOCARRAY_NEEDS_DEFINES 1" >>confdefs.h 10690 1.2 christos 10691 1.4 christos ;; 10692 1.4 christos esac 10693 1.2 christos fi 10694 1.2 christos 10695 1.2 christos 10696 1.4 christos else case e in #( 10697 1.4 christos e) 10698 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10699 1.4 christos printf "%s\n" "no" >&6; } 10700 1.2 christos case " $LIBOBJS " in 10701 1.1 christos *" reallocarray.$ac_objext "* ) ;; 10702 1.1 christos *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 10703 1.1 christos ;; 10704 1.1 christos esac 10705 1.1 christos 10706 1.4 christos ;; 10707 1.4 christos esac 10708 1.1 christos fi 10709 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10710 1.2 christos conftest$ac_exeext conftest.$ac_ext 10711 1.1 christos 10712 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pselect prototype in sys/select.h" >&5 10713 1.4 christos printf %s "checking for pselect prototype in sys/select.h... " >&6; } 10714 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10715 1.1 christos /* end confdefs.h. */ 10716 1.1 christos #include <sys/select.h> 10717 1.1 christos 10718 1.1 christos _ACEOF 10719 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10720 1.4 christos $EGREP_TRADITIONAL "[^a-zA-Z_]*pselect[^a-zA-Z_]" >/dev/null 2>&1 10721 1.4 christos then : 10722 1.1 christos 10723 1.4 christos printf "%s\n" "#define HAVE_PSELECT_PROTO 1" >>confdefs.h 10724 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10725 1.4 christos printf "%s\n" "yes" >&6; } 10726 1.4 christos else case e in #( 10727 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10728 1.4 christos printf "%s\n" "no" >&6; } ;; 10729 1.4 christos esac 10730 1.1 christos fi 10731 1.4 christos rm -rf conftest* 10732 1.1 christos 10733 1.1 christos 10734 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctime_r prototype in time.h" >&5 10735 1.4 christos printf %s "checking for ctime_r prototype in time.h... " >&6; } 10736 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10737 1.1 christos /* end confdefs.h. */ 10738 1.1 christos #include <time.h> 10739 1.1 christos 10740 1.1 christos _ACEOF 10741 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10742 1.4 christos $EGREP_TRADITIONAL "[^a-zA-Z_]*ctime_r[^a-zA-Z_]" >/dev/null 2>&1 10743 1.4 christos then : 10744 1.1 christos 10745 1.4 christos printf "%s\n" "#define HAVE_CTIME_R_PROTO 1" >>confdefs.h 10746 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10747 1.4 christos printf "%s\n" "yes" >&6; } 10748 1.4 christos else case e in #( 10749 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10750 1.4 christos printf "%s\n" "no" >&6; } ;; 10751 1.4 christos esac 10752 1.1 christos fi 10753 1.4 christos rm -rf conftest* 10754 1.1 christos 10755 1.1 christos 10756 1.1 christos ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" " 10757 1.1 christos $ac_includes_default 10758 1.1 christos #ifdef HAVE_SIGNAL_H 10759 1.1 christos #include <signal.h> 10760 1.1 christos #endif 10761 1.1 christos #ifdef HAVE_TIME_H 10762 1.1 christos #include <time.h> 10763 1.1 christos #endif 10764 1.1 christos 10765 1.1 christos " 10766 1.4 christos if test "x$ac_cv_type_struct_timespec" = xyes 10767 1.4 christos then : 10768 1.1 christos 10769 1.4 christos printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 10770 1.1 christos 10771 1.1 christos fi 10772 1.1 christos 10773 1.1 christos 10774 1.1 christos 10775 1.4 christos printf "%s\n" "#define IDENTITY \"unidentified server\"" >>confdefs.h 10776 1.4 christos 10777 1.4 christos 10778 1.4 christos printf "%s\n" "#define VERSION PACKAGE_STRING" >>confdefs.h 10779 1.4 christos 10780 1.4 christos 10781 1.4 christos case "$host" in 10782 1.4 christos *bsd*|*BSD*|*linux*|*Linux*) 10783 1.1 christos 10784 1.4 christos printf "%s\n" "#define TCP_BACKLOG -1" >>confdefs.h 10785 1.1 christos 10786 1.4 christos ;; 10787 1.4 christos *) 10788 1.1 christos 10789 1.4 christos printf "%s\n" "#define TCP_BACKLOG 256" >>confdefs.h 10790 1.1 christos 10791 1.4 christos ;; 10792 1.4 christos esac 10793 1.1 christos 10794 1.1 christos 10795 1.4 christos printf "%s\n" "#define TCP_PORT \"53\"" >>confdefs.h 10796 1.1 christos 10797 1.1 christos 10798 1.4 christos printf "%s\n" "#define TCP_MAX_MESSAGE_LEN 65535" >>confdefs.h 10799 1.1 christos 10800 1.1 christos 10801 1.4 christos printf "%s\n" "#define UDP_PORT \"53\"" >>confdefs.h 10802 1.1 christos 10803 1.1 christos 10804 1.4 christos printf "%s\n" "#define UDP_MAX_MESSAGE_LEN 512" >>confdefs.h 10805 1.1 christos 10806 1.1 christos 10807 1.4 christos printf "%s\n" "#define EDNS_MAX_MESSAGE_LEN 1232" >>confdefs.h 10808 1.2 christos 10809 1.2 christos 10810 1.4 christos printf "%s\n" "#define TLS_PORT \"853\"" >>confdefs.h 10811 1.1 christos 10812 1.1 christos 10813 1.4 christos printf "%s\n" "#define MAXSYSLOGMSGLEN 512" >>confdefs.h 10814 1.1 christos 10815 1.1 christos 10816 1.4 christos printf "%s\n" "#define NSD_CONTROL_PORT 8952" >>confdefs.h 10817 1.1 christos 10818 1.1 christos 10819 1.4 christos printf "%s\n" "#define NSD_CONTROL_VERSION 1" >>confdefs.h 10820 1.1 christos 10821 1.1 christos 10822 1.4 christos printf "%s\n" "#define VERIFY_PORT \"5347\"" >>confdefs.h 10823 1.2 christos 10824 1.2 christos 10825 1.1 christos facility=LOG_DAEMON 10826 1.1 christos 10827 1.1 christos # Check whether --with-facility was given. 10828 1.4 christos if test ${with_facility+y} 10829 1.4 christos then : 10830 1.1 christos withval=$with_facility; facility=$withval 10831 1.1 christos fi 10832 1.1 christos 10833 1.1 christos 10834 1.4 christos printf "%s\n" "#define FACILITY $facility" >>confdefs.h 10835 1.1 christos 10836 1.1 christos 10837 1.1 christos tcp_timeout=120 10838 1.1 christos 10839 1.1 christos # Check whether --with-tcp_timeout was given. 10840 1.4 christos if test ${with_tcp_timeout+y} 10841 1.4 christos then : 10842 1.1 christos withval=$with_tcp_timeout; tcp_timeout=$withval 10843 1.1 christos fi 10844 1.1 christos 10845 1.1 christos 10846 1.4 christos printf "%s\n" "#define TCP_TIMEOUT $tcp_timeout" >>confdefs.h 10847 1.1 christos 10848 1.1 christos 10849 1.1 christos # Check whether --enable-root-server was given. 10850 1.4 christos if test ${enable_root_server+y} 10851 1.4 christos then : 10852 1.1 christos enableval=$enable_root_server; 10853 1.1 christos fi 10854 1.1 christos 10855 1.1 christos 10856 1.1 christos # Check whether --enable-ipv6 was given. 10857 1.4 christos if test ${enable_ipv6+y} 10858 1.4 christos then : 10859 1.1 christos enableval=$enable_ipv6; 10860 1.1 christos fi 10861 1.1 christos 10862 1.1 christos case "$enable_ipv6" in 10863 1.1 christos no) 10864 1.1 christos ;; 10865 1.1 christos yes|*) 10866 1.1 christos 10867 1.4 christos printf "%s\n" "#define INET6 /**/" >>confdefs.h 10868 1.1 christos 10869 1.1 christos ;; 10870 1.1 christos esac 10871 1.1 christos 10872 1.1 christos # Check whether --enable-bind8-stats was given. 10873 1.4 christos if test ${enable_bind8_stats+y} 10874 1.4 christos then : 10875 1.1 christos enableval=$enable_bind8_stats; 10876 1.1 christos fi 10877 1.1 christos 10878 1.1 christos 10879 1.1 christos case "$enable_bind8_stats" in 10880 1.4 christos no) 10881 1.4 christos ;; 10882 1.4 christos yes|*) 10883 1.1 christos 10884 1.4 christos printf "%s\n" "#define BIND8_STATS /**/" >>confdefs.h 10885 1.1 christos 10886 1.1 christos ;; 10887 1.1 christos esac 10888 1.1 christos 10889 1.1 christos # Check whether --enable-zone-stats was given. 10890 1.4 christos if test ${enable_zone_stats+y} 10891 1.4 christos then : 10892 1.1 christos enableval=$enable_zone_stats; 10893 1.1 christos fi 10894 1.1 christos 10895 1.1 christos case "$enable_zone_stats" in 10896 1.4 christos no) 10897 1.4 christos ;; 10898 1.4 christos yes|*) 10899 1.1 christos 10900 1.4 christos printf "%s\n" "#define USE_ZONE_STATS /**/" >>confdefs.h 10901 1.1 christos 10902 1.1 christos 10903 1.4 christos printf "%s\n" "#define BIND8_STATS /**/" >>confdefs.h 10904 1.1 christos 10905 1.1 christos ;; 10906 1.1 christos esac 10907 1.1 christos 10908 1.1 christos # Check whether --enable-checking was given. 10909 1.4 christos if test ${enable_checking+y} 10910 1.4 christos then : 10911 1.1 christos enableval=$enable_checking; 10912 1.1 christos fi 10913 1.1 christos 10914 1.1 christos case "$enable_checking" in 10915 1.1 christos yes) 10916 1.1 christos 10917 1.1 christos 10918 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 10919 1.4 christos printf %s "checking whether $CC supports -W... " >&6; } 10920 1.2 christos cache=`echo W | $SED 'y%.=/+-%___p_%'` 10921 1.4 christos if eval test \${cv_prog_cc_flag_$cache+y} 10922 1.4 christos then : 10923 1.4 christos printf %s "(cached) " >&6 10924 1.4 christos else case e in #( 10925 1.4 christos e) 10926 1.3 christos echo 'void f(void){}' >conftest.c 10927 1.1 christos if test -z "`$CC -W -c conftest.c 2>&1`"; then 10928 1.1 christos eval "cv_prog_cc_flag_$cache=yes" 10929 1.1 christos else 10930 1.1 christos eval "cv_prog_cc_flag_$cache=no" 10931 1.1 christos fi 10932 1.1 christos rm -f conftest* 10933 1.4 christos ;; 10934 1.4 christos esac 10935 1.1 christos fi 10936 1.1 christos 10937 1.1 christos if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10938 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10939 1.4 christos printf "%s\n" "yes" >&6; } 10940 1.1 christos : 10941 1.1 christos CFLAGS="$CFLAGS -W" 10942 1.1 christos else 10943 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10944 1.4 christos printf "%s\n" "no" >&6; } 10945 1.1 christos : 10946 1.1 christos 10947 1.1 christos fi 10948 1.1 christos 10949 1.1 christos 10950 1.1 christos 10951 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 10952 1.4 christos printf %s "checking whether $CC supports -Wall... " >&6; } 10953 1.2 christos cache=`echo Wall | $SED 'y%.=/+-%___p_%'` 10954 1.4 christos if eval test \${cv_prog_cc_flag_$cache+y} 10955 1.4 christos then : 10956 1.4 christos printf %s "(cached) " >&6 10957 1.4 christos else case e in #( 10958 1.4 christos e) 10959 1.3 christos echo 'void f(void){}' >conftest.c 10960 1.1 christos if test -z "`$CC -Wall -c conftest.c 2>&1`"; then 10961 1.1 christos eval "cv_prog_cc_flag_$cache=yes" 10962 1.1 christos else 10963 1.1 christos eval "cv_prog_cc_flag_$cache=no" 10964 1.1 christos fi 10965 1.1 christos rm -f conftest* 10966 1.4 christos ;; 10967 1.4 christos esac 10968 1.1 christos fi 10969 1.1 christos 10970 1.1 christos if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10971 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10972 1.4 christos printf "%s\n" "yes" >&6; } 10973 1.1 christos : 10974 1.1 christos CFLAGS="$CFLAGS -Wall" 10975 1.1 christos else 10976 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10977 1.4 christos printf "%s\n" "no" >&6; } 10978 1.1 christos : 10979 1.1 christos 10980 1.1 christos fi 10981 1.1 christos 10982 1.1 christos 10983 1.1 christos 10984 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 10985 1.4 christos printf %s "checking whether $CC supports -Wextra... " >&6; } 10986 1.2 christos cache=`echo Wextra | $SED 'y%.=/+-%___p_%'` 10987 1.4 christos if eval test \${cv_prog_cc_flag_$cache+y} 10988 1.4 christos then : 10989 1.4 christos printf %s "(cached) " >&6 10990 1.4 christos else case e in #( 10991 1.4 christos e) 10992 1.3 christos echo 'void f(void){}' >conftest.c 10993 1.1 christos if test -z "`$CC -Wextra -c conftest.c 2>&1`"; then 10994 1.1 christos eval "cv_prog_cc_flag_$cache=yes" 10995 1.1 christos else 10996 1.1 christos eval "cv_prog_cc_flag_$cache=no" 10997 1.1 christos fi 10998 1.1 christos rm -f conftest* 10999 1.4 christos ;; 11000 1.4 christos esac 11001 1.1 christos fi 11002 1.1 christos 11003 1.1 christos if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 11004 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11005 1.4 christos printf "%s\n" "yes" >&6; } 11006 1.1 christos : 11007 1.1 christos CFLAGS="$CFLAGS -Wextra" 11008 1.1 christos else 11009 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11010 1.4 christos printf "%s\n" "no" >&6; } 11011 1.1 christos : 11012 1.1 christos 11013 1.1 christos fi 11014 1.1 christos 11015 1.1 christos 11016 1.1 christos 11017 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 11018 1.4 christos printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 11019 1.2 christos cache=`echo Wdeclaration-after-statement | $SED 'y%.=/+-%___p_%'` 11020 1.4 christos if eval test \${cv_prog_cc_flag_$cache+y} 11021 1.4 christos then : 11022 1.4 christos printf %s "(cached) " >&6 11023 1.4 christos else case e in #( 11024 1.4 christos e) 11025 1.3 christos echo 'void f(void){}' >conftest.c 11026 1.1 christos if test -z "`$CC -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 11027 1.1 christos eval "cv_prog_cc_flag_$cache=yes" 11028 1.1 christos else 11029 1.1 christos eval "cv_prog_cc_flag_$cache=no" 11030 1.1 christos fi 11031 1.1 christos rm -f conftest* 11032 1.4 christos ;; 11033 1.4 christos esac 11034 1.1 christos fi 11035 1.1 christos 11036 1.1 christos if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 11037 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11038 1.4 christos printf "%s\n" "yes" >&6; } 11039 1.1 christos : 11040 1.1 christos CFLAGS="$CFLAGS -Wdeclaration-after-statement" 11041 1.1 christos else 11042 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11043 1.4 christos printf "%s\n" "no" >&6; } 11044 1.1 christos : 11045 1.1 christos 11046 1.1 christos fi 11047 1.1 christos 11048 1.1 christos ;; 11049 1.1 christos no|*) 11050 1.1 christos 11051 1.4 christos printf "%s\n" "#define NDEBUG /**/" >>confdefs.h 11052 1.4 christos 11053 1.4 christos ;; 11054 1.4 christos esac 11055 1.4 christos 11056 1.4 christos # Check whether --enable-log-role was given. 11057 1.4 christos if test ${enable_log_role+y} 11058 1.4 christos then : 11059 1.4 christos enableval=$enable_log_role; 11060 1.4 christos fi 11061 1.4 christos 11062 1.4 christos case "$enable_log_role" in 11063 1.4 christos yes) 11064 1.4 christos 11065 1.4 christos printf "%s\n" "#define USE_LOG_PROCESS_ROLE /**/" >>confdefs.h 11066 1.1 christos 11067 1.4 christos ;; 11068 1.4 christos no|*) 11069 1.1 christos ;; 11070 1.1 christos esac 11071 1.1 christos 11072 1.4 christos 11073 1.2 christos # Check whether --enable-memclean was given. 11074 1.4 christos if test ${enable_memclean+y} 11075 1.4 christos then : 11076 1.2 christos enableval=$enable_memclean; 11077 1.2 christos fi 11078 1.2 christos 11079 1.2 christos if test "$enable_memclean" = "yes"; then 11080 1.4 christos printf "%s\n" "#define MEMCLEAN 1" >>confdefs.h 11081 1.2 christos 11082 1.2 christos fi 11083 1.2 christos 11084 1.1 christos # Check whether --enable-ratelimit was given. 11085 1.4 christos if test ${enable_ratelimit+y} 11086 1.4 christos then : 11087 1.1 christos enableval=$enable_ratelimit; 11088 1.1 christos fi 11089 1.1 christos 11090 1.1 christos case "$enable_ratelimit" in 11091 1.4 christos no) 11092 1.4 christos ;; 11093 1.4 christos yes|*) 11094 1.1 christos 11095 1.4 christos printf "%s\n" "#define RATELIMIT /**/" >>confdefs.h 11096 1.1 christos 11097 1.1 christos ;; 11098 1.1 christos esac 11099 1.1 christos 11100 1.1 christos # Check whether --enable-ratelimit-default-is-off was given. 11101 1.4 christos if test ${enable_ratelimit_default_is_off+y} 11102 1.4 christos then : 11103 1.1 christos enableval=$enable_ratelimit_default_is_off; 11104 1.1 christos fi 11105 1.1 christos 11106 1.1 christos case "$enable_ratelimit_default_is_off" in 11107 1.4 christos no) 11108 1.4 christos ratelimit_default="on" 11109 1.4 christos ;; 11110 1.4 christos yes|*) 11111 1.1 christos 11112 1.4 christos printf "%s\n" "#define RATELIMIT_DEFAULT_OFF /**/" >>confdefs.h 11113 1.1 christos 11114 1.1 christos ratelimit_default="off" 11115 1.1 christos ;; 11116 1.1 christos esac 11117 1.1 christos 11118 1.1 christos 11119 1.1 christos # we need SSL for TSIG (and maybe also for NSEC3). 11120 1.1 christos 11121 1.1 christos 11122 1.1 christos # Check whether --with-ssl was given. 11123 1.4 christos if test ${with_ssl+y} 11124 1.4 christos then : 11125 1.1 christos withval=$with_ssl; 11126 1.1 christos 11127 1.4 christos else case e in #( 11128 1.4 christos e) 11129 1.1 christos withval="yes" 11130 1.4 christos ;; 11131 1.4 christos esac 11132 1.1 christos fi 11133 1.1 christos 11134 1.1 christos if test x_$withval != x_no; then 11135 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 11136 1.4 christos printf %s "checking for SSL... " >&6; } 11137 1.4 christos if test -n "$withval"; then 11138 1.4 christos if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then 11139 1.2 christos ssldir="$withval" 11140 1.2 christos found_ssl="yes" 11141 1.2 christos withval="" 11142 1.2 christos ssldir_include="$ssldir" 11143 1.2 christos CPPFLAGS="$CPPFLAGS -I$ssldir_include"; 11144 1.2 christos ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'` 11145 1.2 christos if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 11146 1.2 christos : # found here 11147 1.2 christos else 11148 1.2 christos ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'` 11149 1.2 christos if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 11150 1.2 christos : # found here 11151 1.2 christos else 11152 1.2 christos as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5 11153 1.2 christos fi 11154 1.2 christos fi 11155 1.2 christos fi 11156 1.4 christos fi 11157 1.1 christos if test x_$withval = x_ -o x_$withval = x_yes; then 11158 1.2 christos withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/sfw /usr/local /usr /usr/local/opt/openssl" 11159 1.1 christos fi 11160 1.1 christos for dir in $withval; do 11161 1.1 christos ssldir="$dir" 11162 1.1 christos if test -f "$dir/include/openssl/ssl.h"; then 11163 1.1 christos found_ssl="yes"; 11164 1.1 christos if test x_$ssldir != x_/usr; then 11165 1.1 christos CPPFLAGS="$CPPFLAGS -I$ssldir/include"; 11166 1.1 christos fi 11167 1.4 christos ssldir_include="$ssldir/include" 11168 1.4 christos if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 11169 1.4 christos ssldir_lib="$ssldir/lib64" 11170 1.4 christos else 11171 1.4 christos ssldir_lib="$ssldir/lib" 11172 1.4 christos fi 11173 1.1 christos break; 11174 1.1 christos fi 11175 1.1 christos done 11176 1.1 christos if test x_$found_ssl != x_yes; then 11177 1.1 christos as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 11178 1.1 christos else 11179 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 11180 1.4 christos printf "%s\n" "found in $ssldir" >&6; } 11181 1.1 christos HAVE_SSL=yes 11182 1.2 christos 11183 1.4 christos printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h 11184 1.2 christos 11185 1.1 christos if test x_$ssldir != x_/usr; then 11186 1.2 christos LDFLAGS="$LDFLAGS -L$ssldir_lib"; 11187 1.1 christos fi 11188 1.4 christos if test x_$ssldir = x_/usr/sfw; then 11189 1.4 christos LDFLAGS="$LDFLAGS -R$ssldir_lib"; 11190 1.4 christos fi 11191 1.1 christos fi 11192 1.1 christos 11193 1.1 christos fi 11194 1.1 christos 11195 1.1 christos if test x$HAVE_SSL = x"yes"; then 11196 1.1 christos 11197 1.1 christos # check if libssl needs libdl 11198 1.1 christos BAKLIBS="$LIBS" 11199 1.1 christos LIBS="-lssl $LIBS" 11200 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 11201 1.4 christos printf %s "checking if libssl needs libdl... " >&6; } 11202 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11203 1.1 christos /* end confdefs.h. */ 11204 1.1 christos 11205 1.1 christos /* Override any GCC internal prototype to avoid an error. 11206 1.1 christos Use char because int might match the return type of a GCC 11207 1.4 christos builtin and then its argument prototype would still apply. 11208 1.4 christos The 'extern "C"' is for builds by C++ compilers; 11209 1.4 christos although this is not generally supported in C code supporting it here 11210 1.4 christos has little cost and some practical benefit (sr 110532). */ 11211 1.1 christos #ifdef __cplusplus 11212 1.1 christos extern "C" 11213 1.1 christos #endif 11214 1.4 christos char SSL_CTX_new (void); 11215 1.1 christos int 11216 1.4 christos main (void) 11217 1.1 christos { 11218 1.1 christos return SSL_CTX_new (); 11219 1.1 christos ; 11220 1.1 christos return 0; 11221 1.1 christos } 11222 1.1 christos _ACEOF 11223 1.4 christos if ac_fn_c_try_link "$LINENO" 11224 1.4 christos then : 11225 1.1 christos 11226 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11227 1.4 christos printf "%s\n" "no" >&6; } 11228 1.1 christos LIBS="$BAKLIBS" 11229 1.1 christos 11230 1.4 christos else case e in #( 11231 1.4 christos e) 11232 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11233 1.4 christos printf "%s\n" "yes" >&6; } 11234 1.1 christos LIBS="$BAKLIBS" 11235 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 11236 1.4 christos printf %s "checking for library containing dlopen... " >&6; } 11237 1.4 christos if test ${ac_cv_search_dlopen+y} 11238 1.4 christos then : 11239 1.4 christos printf %s "(cached) " >&6 11240 1.4 christos else case e in #( 11241 1.4 christos e) ac_func_search_save_LIBS=$LIBS 11242 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11243 1.1 christos /* end confdefs.h. */ 11244 1.1 christos 11245 1.1 christos /* Override any GCC internal prototype to avoid an error. 11246 1.1 christos Use char because int might match the return type of a GCC 11247 1.4 christos builtin and then its argument prototype would still apply. 11248 1.4 christos The 'extern "C"' is for builds by C++ compilers; 11249 1.4 christos although this is not generally supported in C code supporting it here 11250 1.4 christos has little cost and some practical benefit (sr 110532). */ 11251 1.1 christos #ifdef __cplusplus 11252 1.1 christos extern "C" 11253 1.1 christos #endif 11254 1.4 christos char dlopen (void); 11255 1.1 christos int 11256 1.4 christos main (void) 11257 1.1 christos { 11258 1.1 christos return dlopen (); 11259 1.1 christos ; 11260 1.1 christos return 0; 11261 1.1 christos } 11262 1.1 christos _ACEOF 11263 1.4 christos for ac_lib in '' dl 11264 1.4 christos do 11265 1.1 christos if test -z "$ac_lib"; then 11266 1.1 christos ac_res="none required" 11267 1.1 christos else 11268 1.1 christos ac_res=-l$ac_lib 11269 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11270 1.1 christos fi 11271 1.4 christos if ac_fn_c_try_link "$LINENO" 11272 1.4 christos then : 11273 1.1 christos ac_cv_search_dlopen=$ac_res 11274 1.1 christos fi 11275 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11276 1.1 christos conftest$ac_exeext 11277 1.4 christos if test ${ac_cv_search_dlopen+y} 11278 1.4 christos then : 11279 1.1 christos break 11280 1.1 christos fi 11281 1.1 christos done 11282 1.4 christos if test ${ac_cv_search_dlopen+y} 11283 1.4 christos then : 11284 1.1 christos 11285 1.4 christos else case e in #( 11286 1.4 christos e) ac_cv_search_dlopen=no ;; 11287 1.4 christos esac 11288 1.1 christos fi 11289 1.1 christos rm conftest.$ac_ext 11290 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 11291 1.4 christos esac 11292 1.1 christos fi 11293 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 11294 1.4 christos printf "%s\n" "$ac_cv_search_dlopen" >&6; } 11295 1.1 christos ac_res=$ac_cv_search_dlopen 11296 1.4 christos if test "$ac_res" != no 11297 1.4 christos then : 11298 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11299 1.1 christos 11300 1.1 christos fi 11301 1.1 christos 11302 1.4 christos ;; 11303 1.4 christos esac 11304 1.1 christos fi 11305 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11306 1.1 christos conftest$ac_exeext conftest.$ac_ext 11307 1.2 christos # remove space after -ldl if there. 11308 1.2 christos LIBS=`echo "$LIBS" | sed -e 's/ $//'` 11309 1.1 christos 11310 1.1 christos # Check for -pthread 11311 1.1 christos BAKLIBS="$LIBS" 11312 1.1 christos LIBS="-lcrypto $LIBS" 11313 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11314 1.1 christos /* end confdefs.h. */ 11315 1.1 christos 11316 1.1 christos int 11317 1.4 christos main (void) 11318 1.1 christos { 11319 1.1 christos 11320 1.2 christos int EVP_sha256(void); 11321 1.2 christos (void)EVP_sha256(); 11322 1.1 christos 11323 1.1 christos ; 11324 1.1 christos return 0; 11325 1.1 christos } 11326 1.1 christos _ACEOF 11327 1.4 christos if ac_fn_c_try_link "$LINENO" 11328 1.4 christos then : 11329 1.1 christos 11330 1.4 christos else case e in #( 11331 1.4 christos e) 11332 1.1 christos BAKCFLAGS="$CFLAGS" 11333 1.1 christos CFLAGS="$CFLAGS -pthread" 11334 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libcrypto needs -pthread" >&5 11335 1.4 christos printf %s "checking if libcrypto needs -pthread... " >&6; } 11336 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11337 1.1 christos /* end confdefs.h. */ 11338 1.1 christos 11339 1.1 christos /* Override any GCC internal prototype to avoid an error. 11340 1.1 christos Use char because int might match the return type of a GCC 11341 1.4 christos builtin and then its argument prototype would still apply. 11342 1.4 christos The 'extern "C"' is for builds by C++ compilers; 11343 1.4 christos although this is not generally supported in C code supporting it here 11344 1.4 christos has little cost and some practical benefit (sr 110532). */ 11345 1.1 christos #ifdef __cplusplus 11346 1.1 christos extern "C" 11347 1.1 christos #endif 11348 1.4 christos char EVP_sha256 (void); 11349 1.1 christos int 11350 1.4 christos main (void) 11351 1.1 christos { 11352 1.2 christos return EVP_sha256 (); 11353 1.1 christos ; 11354 1.1 christos return 0; 11355 1.1 christos } 11356 1.1 christos _ACEOF 11357 1.4 christos if ac_fn_c_try_link "$LINENO" 11358 1.4 christos then : 11359 1.1 christos 11360 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11361 1.4 christos printf "%s\n" "yes" >&6; } 11362 1.1 christos 11363 1.4 christos else case e in #( 11364 1.4 christos e) 11365 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11366 1.4 christos printf "%s\n" "no" >&6; } 11367 1.1 christos CFLAGS="$BAKCFLAGS" 11368 1.4 christos ;; 11369 1.4 christos esac 11370 1.1 christos fi 11371 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11372 1.1 christos conftest$ac_exeext conftest.$ac_ext 11373 1.4 christos ;; 11374 1.4 christos esac 11375 1.1 christos fi 11376 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11377 1.1 christos conftest$ac_exeext conftest.$ac_ext 11378 1.1 christos LIBS="$BAKLIBS" 11379 1.1 christos 11380 1.1 christos if test -n "$ssldir"; then 11381 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 11382 1.4 christos printf %s "checking for EVP_sha256 in -lcrypto... " >&6; } 11383 1.4 christos if test ${ac_cv_lib_crypto_EVP_sha256+y} 11384 1.4 christos then : 11385 1.4 christos printf %s "(cached) " >&6 11386 1.4 christos else case e in #( 11387 1.4 christos e) ac_check_lib_save_LIBS=$LIBS 11388 1.1 christos LIBS="-lcrypto $LIBS" 11389 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11390 1.1 christos /* end confdefs.h. */ 11391 1.1 christos 11392 1.1 christos /* Override any GCC internal prototype to avoid an error. 11393 1.1 christos Use char because int might match the return type of a GCC 11394 1.4 christos builtin and then its argument prototype would still apply. 11395 1.4 christos The 'extern "C"' is for builds by C++ compilers; 11396 1.4 christos although this is not generally supported in C code supporting it here 11397 1.4 christos has little cost and some practical benefit (sr 110532). */ 11398 1.1 christos #ifdef __cplusplus 11399 1.1 christos extern "C" 11400 1.1 christos #endif 11401 1.4 christos char EVP_sha256 (void); 11402 1.1 christos int 11403 1.4 christos main (void) 11404 1.1 christos { 11405 1.2 christos return EVP_sha256 (); 11406 1.1 christos ; 11407 1.1 christos return 0; 11408 1.1 christos } 11409 1.1 christos _ACEOF 11410 1.4 christos if ac_fn_c_try_link "$LINENO" 11411 1.4 christos then : 11412 1.2 christos ac_cv_lib_crypto_EVP_sha256=yes 11413 1.4 christos else case e in #( 11414 1.4 christos e) ac_cv_lib_crypto_EVP_sha256=no ;; 11415 1.4 christos esac 11416 1.1 christos fi 11417 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11418 1.1 christos conftest$ac_exeext conftest.$ac_ext 11419 1.4 christos LIBS=$ac_check_lib_save_LIBS ;; 11420 1.4 christos esac 11421 1.1 christos fi 11422 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sha256" >&5 11423 1.4 christos printf "%s\n" "$ac_cv_lib_crypto_EVP_sha256" >&6; } 11424 1.4 christos if test "x$ac_cv_lib_crypto_EVP_sha256" = xyes 11425 1.4 christos then : 11426 1.4 christos printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h 11427 1.1 christos 11428 1.1 christos LIBS="-lcrypto $LIBS" 11429 1.1 christos 11430 1.4 christos else case e in #( 11431 1.4 christos e) 11432 1.1 christos as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 11433 1.4 christos ;; 11434 1.4 christos esac 11435 1.1 christos fi 11436 1.1 christos 11437 1.1 christos fi 11438 1.1 christos SSL_LIBS="-lssl" 11439 1.1 christos 11440 1.4 christos ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 11441 1.4 christos " 11442 1.4 christos if test "x$ac_cv_header_openssl_ssl_h" = xyes 11443 1.4 christos then : 11444 1.4 christos printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 11445 1.4 christos 11446 1.4 christos fi 11447 1.4 christos ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 11448 1.4 christos " 11449 1.4 christos if test "x$ac_cv_header_openssl_err_h" = xyes 11450 1.4 christos then : 11451 1.4 christos printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 11452 1.4 christos 11453 1.4 christos fi 11454 1.4 christos ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 11455 1.4 christos " 11456 1.4 christos if test "x$ac_cv_header_openssl_rand_h" = xyes 11457 1.4 christos then : 11458 1.4 christos printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h 11459 1.4 christos 11460 1.4 christos fi 11461 1.4 christos ac_fn_c_check_header_compile "$LINENO" "openssl/ocsp.h" "ac_cv_header_openssl_ocsp_h" "$ac_includes_default 11462 1.4 christos " 11463 1.4 christos if test "x$ac_cv_header_openssl_ocsp_h" = xyes 11464 1.4 christos then : 11465 1.4 christos printf "%s\n" "#define HAVE_OPENSSL_OCSP_H 1" >>confdefs.h 11466 1.4 christos 11467 1.4 christos fi 11468 1.4 christos ac_fn_c_check_header_compile "$LINENO" "openssl/core_names.h" "ac_cv_header_openssl_core_names_h" "$ac_includes_default 11469 1.4 christos " 11470 1.4 christos if test "x$ac_cv_header_openssl_core_names_h" = xyes 11471 1.4 christos then : 11472 1.4 christos printf "%s\n" "#define HAVE_OPENSSL_CORE_NAMES_H 1" >>confdefs.h 11473 1.4 christos 11474 1.4 christos fi 11475 1.4 christos ac_fn_c_check_header_compile "$LINENO" "openssl/x509v3.h" "ac_cv_header_openssl_x509v3_h" "$ac_includes_default 11476 1.1 christos " 11477 1.4 christos if test "x$ac_cv_header_openssl_x509v3_h" = xyes 11478 1.4 christos then : 11479 1.4 christos printf "%s\n" "#define HAVE_OPENSSL_X509V3_H 1" >>confdefs.h 11480 1.4 christos 11481 1.4 christos fi 11482 1.4 christos 11483 1.4 christos ac_fn_c_check_func "$LINENO" "HMAC_CTX_reset" "ac_cv_func_HMAC_CTX_reset" 11484 1.4 christos if test "x$ac_cv_func_HMAC_CTX_reset" = xyes 11485 1.4 christos then : 11486 1.4 christos printf "%s\n" "#define HAVE_HMAC_CTX_RESET 1" >>confdefs.h 11487 1.4 christos 11488 1.4 christos fi 11489 1.4 christos ac_fn_c_check_func "$LINENO" "HMAC_CTX_new" "ac_cv_func_HMAC_CTX_new" 11490 1.4 christos if test "x$ac_cv_func_HMAC_CTX_new" = xyes 11491 1.4 christos then : 11492 1.4 christos printf "%s\n" "#define HAVE_HMAC_CTX_NEW 1" >>confdefs.h 11493 1.4 christos 11494 1.4 christos fi 11495 1.4 christos ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup" 11496 1.4 christos if test "x$ac_cv_func_EVP_cleanup" = xyes 11497 1.4 christos then : 11498 1.4 christos printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h 11499 1.4 christos 11500 1.4 christos fi 11501 1.4 christos ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings" 11502 1.4 christos if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes 11503 1.4 christos then : 11504 1.4 christos printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h 11505 1.4 christos 11506 1.4 christos fi 11507 1.4 christos ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 11508 1.4 christos if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 11509 1.4 christos then : 11510 1.4 christos printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 11511 1.4 christos 11512 1.4 christos fi 11513 1.4 christos ac_fn_c_check_func "$LINENO" "CRYPTO_memcmp" "ac_cv_func_CRYPTO_memcmp" 11514 1.4 christos if test "x$ac_cv_func_CRYPTO_memcmp" = xyes 11515 1.4 christos then : 11516 1.4 christos printf "%s\n" "#define HAVE_CRYPTO_MEMCMP 1" >>confdefs.h 11517 1.4 christos 11518 1.4 christos fi 11519 1.4 christos ac_fn_c_check_func "$LINENO" "EC_KEY_new_by_curve_name" "ac_cv_func_EC_KEY_new_by_curve_name" 11520 1.4 christos if test "x$ac_cv_func_EC_KEY_new_by_curve_name" = xyes 11521 1.4 christos then : 11522 1.4 christos printf "%s\n" "#define HAVE_EC_KEY_NEW_BY_CURVE_NAME 1" >>confdefs.h 11523 1.4 christos 11524 1.4 christos fi 11525 1.4 christos ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_new" "ac_cv_func_EVP_MAC_CTX_new" 11526 1.4 christos if test "x$ac_cv_func_EVP_MAC_CTX_new" = xyes 11527 1.4 christos then : 11528 1.4 christos printf "%s\n" "#define HAVE_EVP_MAC_CTX_NEW 1" >>confdefs.h 11529 1.4 christos 11530 1.4 christos fi 11531 1.4 christos ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_set_params" "ac_cv_func_EVP_MAC_CTX_set_params" 11532 1.4 christos if test "x$ac_cv_func_EVP_MAC_CTX_set_params" = xyes 11533 1.4 christos then : 11534 1.4 christos printf "%s\n" "#define HAVE_EVP_MAC_CTX_SET_PARAMS 1" >>confdefs.h 11535 1.4 christos 11536 1.4 christos fi 11537 1.4 christos ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_get_mac_size" "ac_cv_func_EVP_MAC_CTX_get_mac_size" 11538 1.4 christos if test "x$ac_cv_func_EVP_MAC_CTX_get_mac_size" = xyes 11539 1.4 christos then : 11540 1.4 christos printf "%s\n" "#define HAVE_EVP_MAC_CTX_GET_MAC_SIZE 1" >>confdefs.h 11541 1.1 christos 11542 1.1 christos fi 11543 1.4 christos ac_fn_c_check_func "$LINENO" "SHA1_Init" "ac_cv_func_SHA1_Init" 11544 1.4 christos if test "x$ac_cv_func_SHA1_Init" = xyes 11545 1.4 christos then : 11546 1.4 christos printf "%s\n" "#define HAVE_SHA1_INIT 1" >>confdefs.h 11547 1.1 christos 11548 1.4 christos fi 11549 1.4 christos ac_fn_c_check_func "$LINENO" "ASN1_STRING_get0_data" "ac_cv_func_ASN1_STRING_get0_data" 11550 1.4 christos if test "x$ac_cv_func_ASN1_STRING_get0_data" = xyes 11551 1.4 christos then : 11552 1.4 christos printf "%s\n" "#define HAVE_ASN1_STRING_GET0_DATA 1" >>confdefs.h 11553 1.1 christos 11554 1.4 christos fi 11555 1.4 christos ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_type_name" "ac_cv_func_EVP_PKEY_get0_type_name" 11556 1.4 christos if test "x$ac_cv_func_EVP_PKEY_get0_type_name" = xyes 11557 1.4 christos then : 11558 1.4 christos printf "%s\n" "#define HAVE_EVP_PKEY_GET0_TYPE_NAME 1" >>confdefs.h 11559 1.1 christos 11560 1.1 christos fi 11561 1.2 christos 11562 1.2 christos if test "$ac_cv_func_SHA1_Init" = "yes"; then 11563 1.2 christos 11564 1.2 christos 11565 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SHA1_Init is deprecated" >&5 11566 1.4 christos printf %s "checking if SHA1_Init is deprecated... " >&6; } 11567 1.2 christos cache=`echo SHA1_Init | sed 'y%.=/+-%___p_%'` 11568 1.4 christos if eval test \${cv_cc_deprecated_$cache+y} 11569 1.4 christos then : 11570 1.4 christos printf %s "(cached) " >&6 11571 1.4 christos else case e in #( 11572 1.4 christos e) 11573 1.2 christos echo ' 11574 1.2 christos #include <openssl/sha.h> 11575 1.2 christos ' >conftest.c 11576 1.3 christos echo 'void f(void){ (void)SHA1_Init(NULL); }' >>conftest.c 11577 1.2 christos if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 11578 1.2 christos eval "cv_cc_deprecated_$cache=no" 11579 1.2 christos else 11580 1.2 christos eval "cv_cc_deprecated_$cache=yes" 11581 1.2 christos fi 11582 1.2 christos rm -f conftest conftest.o conftest.c 11583 1.4 christos ;; 11584 1.4 christos esac 11585 1.2 christos fi 11586 1.2 christos 11587 1.2 christos if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 11588 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11589 1.4 christos printf "%s\n" "yes" >&6; } 11590 1.2 christos 11591 1.4 christos printf "%s\n" "#define DEPRECATED_SHA1_INIT 1" >>confdefs.h 11592 1.2 christos 11593 1.2 christos : 11594 1.2 christos 11595 1.2 christos else 11596 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11597 1.4 christos printf "%s\n" "no" >&6; } 11598 1.2 christos : 11599 1.2 christos 11600 1.2 christos fi 11601 1.2 christos 11602 1.2 christos fi 11603 1.4 christos ac_fn_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 11604 1.2 christos $ac_includes_default 11605 1.2 christos #ifdef HAVE_OPENSSL_ERR_H 11606 1.2 christos #include <openssl/err.h> 11607 1.2 christos #endif 11608 1.2 christos 11609 1.2 christos #ifdef HAVE_OPENSSL_RAND_H 11610 1.2 christos #include <openssl/rand.h> 11611 1.2 christos #endif 11612 1.1 christos 11613 1.2 christos #ifdef HAVE_OPENSSL_CONF_H 11614 1.2 christos #include <openssl/conf.h> 11615 1.2 christos #endif 11616 1.2 christos 11617 1.2 christos #ifdef HAVE_OPENSSL_ENGINE_H 11618 1.2 christos #include <openssl/engine.h> 11619 1.2 christos #endif 11620 1.2 christos #include <openssl/ssl.h> 11621 1.2 christos #include <openssl/evp.h> 11622 1.4 christos #ifdef HAVE_OPENSSL_X509V3_h 11623 1.4 christos #include <openssl/x509v3.h> 11624 1.4 christos #endif 11625 1.1 christos 11626 1.4 christos " "$ac_c_undeclared_builtin_options" "CFLAGS" 11627 1.4 christos if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes 11628 1.4 christos then : 11629 1.2 christos ac_have_decl=1 11630 1.4 christos else case e in #( 11631 1.4 christos e) ac_have_decl=0 ;; 11632 1.4 christos esac 11633 1.2 christos fi 11634 1.4 christos printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl" >>confdefs.h 11635 1.4 christos ac_fn_check_decl "$LINENO" "SSL_CTX_set_tmp_ecdh" "ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" " 11636 1.2 christos $ac_includes_default 11637 1.2 christos #ifdef HAVE_OPENSSL_ERR_H 11638 1.2 christos #include <openssl/err.h> 11639 1.2 christos #endif 11640 1.2 christos 11641 1.2 christos #ifdef HAVE_OPENSSL_RAND_H 11642 1.2 christos #include <openssl/rand.h> 11643 1.2 christos #endif 11644 1.2 christos 11645 1.2 christos #ifdef HAVE_OPENSSL_CONF_H 11646 1.2 christos #include <openssl/conf.h> 11647 1.2 christos #endif 11648 1.2 christos 11649 1.2 christos #ifdef HAVE_OPENSSL_ENGINE_H 11650 1.2 christos #include <openssl/engine.h> 11651 1.2 christos #endif 11652 1.2 christos #include <openssl/ssl.h> 11653 1.2 christos #include <openssl/evp.h> 11654 1.4 christos #ifdef HAVE_OPENSSL_X509V3_h 11655 1.4 christos #include <openssl/x509v3.h> 11656 1.4 christos #endif 11657 1.1 christos 11658 1.4 christos " "$ac_c_undeclared_builtin_options" "CFLAGS" 11659 1.4 christos if test "x$ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" = xyes 11660 1.4 christos then : 11661 1.2 christos ac_have_decl=1 11662 1.4 christos else case e in #( 11663 1.4 christos e) ac_have_decl=0 ;; 11664 1.4 christos esac 11665 1.2 christos fi 11666 1.4 christos printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_TMP_ECDH $ac_have_decl" >>confdefs.h 11667 1.2 christos 11668 1.4 christos ac_fn_check_decl "$LINENO" "TLS1_3_VERSION" "ac_cv_have_decl_TLS1_3_VERSION" "#include <openssl/ssl.h> 11669 1.4 christos " "$ac_c_undeclared_builtin_options" "CFLAGS" 11670 1.4 christos if test "x$ac_cv_have_decl_TLS1_3_VERSION" = xyes 11671 1.4 christos then : 11672 1.4 christos 11673 1.4 christos printf "%s\n" "#define HAVE_TLS_1_3 1" >>confdefs.h 11674 1.2 christos 11675 1.4 christos else case e in #( 11676 1.4 christos e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No TLS 1.3, therefore XFR-over-TLS is disabled" >&5 11677 1.4 christos printf "%s\n" "$as_me: WARNING: No TLS 1.3, therefore XFR-over-TLS is disabled" >&2;} ;; 11678 1.4 christos esac 11679 1.4 christos fi 11680 1.2 christos 11681 1.4 christos BAKLIBS="$LIBS" 11682 1.4 christos LIBS="-lssl $LIBS" 11683 1.4 christos ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 11684 1.4 christos if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 11685 1.4 christos then : 11686 1.4 christos printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 11687 1.2 christos 11688 1.1 christos fi 11689 1.4 christos ac_fn_c_check_func "$LINENO" "SSL_get1_peer_certificate" "ac_cv_func_SSL_get1_peer_certificate" 11690 1.4 christos if test "x$ac_cv_func_SSL_get1_peer_certificate" = xyes 11691 1.4 christos then : 11692 1.4 christos printf "%s\n" "#define HAVE_SSL_GET1_PEER_CERTIFICATE 1" >>confdefs.h 11693 1.1 christos 11694 1.4 christos fi 11695 1.4 christos ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level" 11696 1.4 christos if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes 11697 1.4 christos then : 11698 1.4 christos printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h 11699 1.1 christos 11700 1.4 christos fi 11701 1.4 christos ac_fn_c_check_func "$LINENO" "ERR_load_SSL_strings" "ac_cv_func_ERR_load_SSL_strings" 11702 1.4 christos if test "x$ac_cv_func_ERR_load_SSL_strings" = xyes 11703 1.4 christos then : 11704 1.4 christos printf "%s\n" "#define HAVE_ERR_LOAD_SSL_STRINGS 1" >>confdefs.h 11705 1.1 christos 11706 1.1 christos fi 11707 1.1 christos 11708 1.2 christos if test "$ac_cv_func_ERR_load_SSL_strings" = "yes"; then 11709 1.2 christos 11710 1.2 christos 11711 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ERR_load_SSL_strings is deprecated" >&5 11712 1.4 christos printf %s "checking if ERR_load_SSL_strings is deprecated... " >&6; } 11713 1.2 christos cache=`echo ERR_load_SSL_strings | sed 'y%.=/+-%___p_%'` 11714 1.4 christos if eval test \${cv_cc_deprecated_$cache+y} 11715 1.4 christos then : 11716 1.4 christos printf %s "(cached) " >&6 11717 1.4 christos else case e in #( 11718 1.4 christos e) 11719 1.2 christos echo ' 11720 1.2 christos #include <openssl/ssl.h> 11721 1.2 christos ' >conftest.c 11722 1.3 christos echo 'void f(void){ (void)ERR_load_SSL_strings(); }' >>conftest.c 11723 1.2 christos if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 11724 1.2 christos eval "cv_cc_deprecated_$cache=no" 11725 1.2 christos else 11726 1.2 christos eval "cv_cc_deprecated_$cache=yes" 11727 1.2 christos fi 11728 1.2 christos rm -f conftest conftest.o conftest.c 11729 1.4 christos ;; 11730 1.4 christos esac 11731 1.2 christos fi 11732 1.2 christos 11733 1.2 christos if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 11734 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11735 1.4 christos printf "%s\n" "yes" >&6; } 11736 1.2 christos 11737 1.4 christos printf "%s\n" "#define DEPRECATED_ERR_LOAD_SSL_STRINGS 1" >>confdefs.h 11738 1.1 christos 11739 1.2 christos : 11740 1.2 christos 11741 1.2 christos else 11742 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11743 1.4 christos printf "%s\n" "no" >&6; } 11744 1.2 christos : 11745 1.2 christos 11746 1.1 christos fi 11747 1.1 christos 11748 1.2 christos fi 11749 1.1 christos LIBS="$BAKLIBS" 11750 1.1 christos 11751 1.1 christos else 11752 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore TLS is disabled" >&5 11753 1.4 christos printf "%s\n" "$as_me: WARNING: No SSL, therefore TLS is disabled" >&2;} 11754 1.1 christos fi 11755 1.1 christos 11756 1.1 christos # Check whether --enable-nsec3 was given. 11757 1.4 christos if test ${enable_nsec3+y} 11758 1.4 christos then : 11759 1.1 christos enableval=$enable_nsec3; 11760 1.1 christos fi 11761 1.1 christos 11762 1.1 christos case "$enable_nsec3" in 11763 1.1 christos no) 11764 1.1 christos ;; 11765 1.1 christos yes) 11766 1.1 christos 11767 1.4 christos printf "%s\n" "#define NSEC3 /**/" >>confdefs.h 11768 1.1 christos 11769 1.1 christos ;; 11770 1.1 christos *) 11771 1.1 christos if test x$HAVE_SSL = x"yes"; then 11772 1.1 christos 11773 1.4 christos printf "%s\n" "#define NSEC3 /**/" >>confdefs.h 11774 1.1 christos 11775 1.1 christos else 11776 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore NSEC3 is disabled" >&5 11777 1.4 christos printf "%s\n" "$as_me: WARNING: No SSL, therefore NSEC3 is disabled" >&2;} 11778 1.1 christos fi 11779 1.1 christos ;; 11780 1.1 christos esac 11781 1.1 christos 11782 1.1 christos # Check whether --enable-minimal-responses was given. 11783 1.4 christos if test ${enable_minimal_responses+y} 11784 1.4 christos then : 11785 1.1 christos enableval=$enable_minimal_responses; 11786 1.1 christos fi 11787 1.1 christos 11788 1.1 christos case "$enable_minimal_responses" in 11789 1.1 christos no) 11790 1.1 christos ;; 11791 1.1 christos yes|*) 11792 1.1 christos 11793 1.4 christos printf "%s\n" "#define MINIMAL_RESPONSES /**/" >>confdefs.h 11794 1.1 christos 11795 1.1 christos ;; 11796 1.1 christos esac 11797 1.1 christos 11798 1.1 christos # Check whether --enable-mmap was given. 11799 1.4 christos if test ${enable_mmap+y} 11800 1.4 christos then : 11801 1.1 christos enableval=$enable_mmap; 11802 1.1 christos fi 11803 1.1 christos 11804 1.1 christos case "$enable_mmap" in 11805 1.1 christos yes) 11806 1.4 christos ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default 11807 1.2 christos " 11808 1.4 christos if test "x$ac_cv_header_sys_mman_h" = xyes 11809 1.4 christos then : 11810 1.4 christos printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 11811 1.1 christos 11812 1.1 christos fi 11813 1.1 christos 11814 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 11815 1.4 christos printf %s "checking for uintptr_t... " >&6; } 11816 1.4 christos if test ${ac_cv_type_uintptr_t+y} 11817 1.4 christos then : 11818 1.4 christos printf %s "(cached) " >&6 11819 1.4 christos else case e in #( 11820 1.4 christos e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11821 1.1 christos /* end confdefs.h. */ 11822 1.1 christos 11823 1.1 christos #include <sys/types.h> 11824 1.1 christos #include <stdlib.h> 11825 1.1 christos #include <stddef.h> 11826 1.1 christos 11827 1.1 christos #ifdef HAVE_STDINT_H 11828 1.1 christos #include <stdint.h> 11829 1.1 christos #endif 11830 1.1 christos 11831 1.1 christos #ifdef HAVE_SYS_SOCKET_H 11832 1.1 christos #include <sys/socket.h> 11833 1.1 christos #endif 11834 1.1 christos 11835 1.1 christos #ifdef HAVE_ARPA_INET_H 11836 1.1 christos #include <arpa/inet.h> 11837 1.1 christos #endif 11838 1.1 christos 11839 1.1 christos #ifdef HAVE_SIGNAL_H 11840 1.1 christos #include <signal.h> 11841 1.1 christos #endif 11842 1.1 christos 11843 1.1 christos /* For Tru64 */ 11844 1.1 christos #ifdef HAVE_SYS_BITYPES_H 11845 1.1 christos #include <sys/bitypes.h> 11846 1.1 christos #endif 11847 1.1 christos 11848 1.1 christos _ACEOF 11849 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11850 1.4 christos $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1 11851 1.4 christos then : 11852 1.1 christos ac_cv_type_uintptr_t=yes 11853 1.4 christos else case e in #( 11854 1.4 christos e) ac_cv_type_uintptr_t=no ;; 11855 1.4 christos esac 11856 1.1 christos fi 11857 1.4 christos rm -rf conftest* 11858 1.4 christos ;; 11859 1.4 christos esac 11860 1.1 christos fi 11861 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uintptr_t" >&5 11862 1.4 christos printf "%s\n" "$ac_cv_type_uintptr_t" >&6; } 11863 1.1 christos if test $ac_cv_type_uintptr_t = no; then 11864 1.1 christos 11865 1.4 christos printf "%s\n" "#define uintptr_t void*" >>confdefs.h 11866 1.1 christos 11867 1.1 christos fi 11868 1.1 christos 11869 1.4 christos ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 11870 1.4 christos if test "x$ac_cv_func_mmap" = xyes 11871 1.4 christos then : 11872 1.4 christos printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 11873 1.4 christos 11874 1.4 christos fi 11875 1.4 christos ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap" 11876 1.4 christos if test "x$ac_cv_func_munmap" = xyes 11877 1.4 christos then : 11878 1.4 christos printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h 11879 1.1 christos 11880 1.1 christos fi 11881 1.1 christos 11882 1.1 christos 11883 1.4 christos printf "%s\n" "#define USE_MMAP_ALLOC /**/" >>confdefs.h 11884 1.1 christos 11885 1.1 christos ;; 11886 1.1 christos no|*) 11887 1.1 christos ;; 11888 1.1 christos esac 11889 1.1 christos 11890 1.1 christos # Check whether --enable-radix-tree was given. 11891 1.4 christos if test ${enable_radix_tree+y} 11892 1.4 christos then : 11893 1.1 christos enableval=$enable_radix_tree; 11894 1.1 christos fi 11895 1.1 christos 11896 1.1 christos case "$enable_radix_tree" in 11897 1.1 christos no) 11898 1.1 christos ;; 11899 1.1 christos yes|*) 11900 1.1 christos 11901 1.4 christos printf "%s\n" "#define USE_RADIX_TREE /**/" >>confdefs.h 11902 1.1 christos 11903 1.1 christos ;; 11904 1.1 christos esac 11905 1.1 christos 11906 1.2 christos # Check whether --enable-packed was given. 11907 1.4 christos if test ${enable_packed+y} 11908 1.4 christos then : 11909 1.2 christos enableval=$enable_packed; 11910 1.2 christos fi 11911 1.2 christos 11912 1.2 christos case "$enable_packed" in 11913 1.2 christos yes) 11914 1.2 christos 11915 1.4 christos printf "%s\n" "#define PACKED_STRUCTS /**/" >>confdefs.h 11916 1.4 christos 11917 1.4 christos 11918 1.4 christos 11919 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-address-of-packed-member" >&5 11920 1.4 christos printf %s "checking whether $CC supports -Wno-address-of-packed-member... " >&6; } 11921 1.4 christos cache=`echo Wno-address-of-packed-member | sed 'y%.=/+-%___p_%'` 11922 1.4 christos if eval test \${cv_prog_cc_flag_$cache+y} 11923 1.4 christos then : 11924 1.4 christos printf %s "(cached) " >&6 11925 1.4 christos else case e in #( 11926 1.4 christos e) 11927 1.4 christos echo 'void f(void){}' >conftest.c 11928 1.4 christos if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-address-of-packed-member -c conftest.c 2>&1`"; then 11929 1.4 christos eval "cv_prog_cc_flag_$cache=yes" 11930 1.4 christos else 11931 1.4 christos eval "cv_prog_cc_flag_$cache=no" 11932 1.4 christos fi 11933 1.4 christos rm -f conftest conftest.o conftest.c 11934 1.4 christos ;; 11935 1.4 christos esac 11936 1.4 christos fi 11937 1.4 christos 11938 1.4 christos if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 11939 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11940 1.4 christos printf "%s\n" "yes" >&6; } 11941 1.4 christos : 11942 1.4 christos CFLAGS="$CFLAGS -Wno-address-of-packed-member" 11943 1.4 christos else 11944 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11945 1.4 christos printf "%s\n" "no" >&6; } 11946 1.4 christos : 11947 1.4 christos 11948 1.4 christos fi 11949 1.4 christos 11950 1.4 christos ;; 11951 1.4 christos no|*) 11952 1.4 christos ;; 11953 1.4 christos esac 11954 1.4 christos 11955 1.4 christos # Check whether --enable-xdp was given. 11956 1.4 christos if test ${enable_xdp+y} 11957 1.4 christos then : 11958 1.4 christos enableval=$enable_xdp; 11959 1.4 christos fi 11960 1.4 christos 11961 1.4 christos case "$enable_xdp" in 11962 1.4 christos yes) 11963 1.4 christos 11964 1.4 christos printf "%s\n" "#define USE_XDP /**/" >>confdefs.h 11965 1.4 christos 11966 1.4 christos 11967 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing xdp_program__open_file" >&5 11968 1.4 christos printf %s "checking for library containing xdp_program__open_file... " >&6; } 11969 1.4 christos if test ${ac_cv_search_xdp_program__open_file+y} 11970 1.4 christos then : 11971 1.4 christos printf %s "(cached) " >&6 11972 1.4 christos else case e in #( 11973 1.4 christos e) ac_func_search_save_LIBS=$LIBS 11974 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11975 1.4 christos /* end confdefs.h. */ 11976 1.4 christos 11977 1.4 christos /* Override any GCC internal prototype to avoid an error. 11978 1.4 christos Use char because int might match the return type of a GCC 11979 1.4 christos builtin and then its argument prototype would still apply. 11980 1.4 christos The 'extern "C"' is for builds by C++ compilers; 11981 1.4 christos although this is not generally supported in C code supporting it here 11982 1.4 christos has little cost and some practical benefit (sr 110532). */ 11983 1.4 christos #ifdef __cplusplus 11984 1.4 christos extern "C" 11985 1.4 christos #endif 11986 1.4 christos char xdp_program__open_file (void); 11987 1.4 christos int 11988 1.4 christos main (void) 11989 1.4 christos { 11990 1.4 christos return xdp_program__open_file (); 11991 1.4 christos ; 11992 1.4 christos return 0; 11993 1.4 christos } 11994 1.4 christos _ACEOF 11995 1.4 christos for ac_lib in '' xdp 11996 1.4 christos do 11997 1.4 christos if test -z "$ac_lib"; then 11998 1.4 christos ac_res="none required" 11999 1.4 christos else 12000 1.4 christos ac_res=-l$ac_lib 12001 1.4 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12002 1.4 christos fi 12003 1.4 christos if ac_fn_c_try_link "$LINENO" 12004 1.4 christos then : 12005 1.4 christos ac_cv_search_xdp_program__open_file=$ac_res 12006 1.4 christos fi 12007 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12008 1.4 christos conftest$ac_exeext 12009 1.4 christos if test ${ac_cv_search_xdp_program__open_file+y} 12010 1.4 christos then : 12011 1.4 christos break 12012 1.4 christos fi 12013 1.4 christos done 12014 1.4 christos if test ${ac_cv_search_xdp_program__open_file+y} 12015 1.4 christos then : 12016 1.4 christos 12017 1.4 christos else case e in #( 12018 1.4 christos e) ac_cv_search_xdp_program__open_file=no ;; 12019 1.4 christos esac 12020 1.4 christos fi 12021 1.4 christos rm conftest.$ac_ext 12022 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 12023 1.4 christos esac 12024 1.4 christos fi 12025 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdp_program__open_file" >&5 12026 1.4 christos printf "%s\n" "$ac_cv_search_xdp_program__open_file" >&6; } 12027 1.4 christos ac_res=$ac_cv_search_xdp_program__open_file 12028 1.4 christos if test "$ac_res" != no 12029 1.4 christos then : 12030 1.4 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12031 1.4 christos 12032 1.4 christos else case e in #( 12033 1.4 christos e) as_fn_error $? "Cannot find libxdp, but is needed for xdp support." "$LINENO" 5 ;; 12034 1.4 christos esac 12035 1.4 christos fi 12036 1.4 christos 12037 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bpf_map__fd" >&5 12038 1.4 christos printf %s "checking for library containing bpf_map__fd... " >&6; } 12039 1.4 christos if test ${ac_cv_search_bpf_map__fd+y} 12040 1.4 christos then : 12041 1.4 christos printf %s "(cached) " >&6 12042 1.4 christos else case e in #( 12043 1.4 christos e) ac_func_search_save_LIBS=$LIBS 12044 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12045 1.4 christos /* end confdefs.h. */ 12046 1.4 christos 12047 1.4 christos /* Override any GCC internal prototype to avoid an error. 12048 1.4 christos Use char because int might match the return type of a GCC 12049 1.4 christos builtin and then its argument prototype would still apply. 12050 1.4 christos The 'extern "C"' is for builds by C++ compilers; 12051 1.4 christos although this is not generally supported in C code supporting it here 12052 1.4 christos has little cost and some practical benefit (sr 110532). */ 12053 1.4 christos #ifdef __cplusplus 12054 1.4 christos extern "C" 12055 1.4 christos #endif 12056 1.4 christos char bpf_map__fd (void); 12057 1.4 christos int 12058 1.4 christos main (void) 12059 1.4 christos { 12060 1.4 christos return bpf_map__fd (); 12061 1.4 christos ; 12062 1.4 christos return 0; 12063 1.4 christos } 12064 1.4 christos _ACEOF 12065 1.4 christos for ac_lib in '' bpf 12066 1.4 christos do 12067 1.4 christos if test -z "$ac_lib"; then 12068 1.4 christos ac_res="none required" 12069 1.4 christos else 12070 1.4 christos ac_res=-l$ac_lib 12071 1.4 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12072 1.4 christos fi 12073 1.4 christos if ac_fn_c_try_link "$LINENO" 12074 1.4 christos then : 12075 1.4 christos ac_cv_search_bpf_map__fd=$ac_res 12076 1.4 christos fi 12077 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12078 1.4 christos conftest$ac_exeext 12079 1.4 christos if test ${ac_cv_search_bpf_map__fd+y} 12080 1.4 christos then : 12081 1.4 christos break 12082 1.4 christos fi 12083 1.4 christos done 12084 1.4 christos if test ${ac_cv_search_bpf_map__fd+y} 12085 1.4 christos then : 12086 1.4 christos 12087 1.4 christos else case e in #( 12088 1.4 christos e) ac_cv_search_bpf_map__fd=no ;; 12089 1.4 christos esac 12090 1.4 christos fi 12091 1.4 christos rm conftest.$ac_ext 12092 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 12093 1.4 christos esac 12094 1.4 christos fi 12095 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bpf_map__fd" >&5 12096 1.4 christos printf "%s\n" "$ac_cv_search_bpf_map__fd" >&6; } 12097 1.4 christos ac_res=$ac_cv_search_bpf_map__fd 12098 1.4 christos if test "$ac_res" != no 12099 1.4 christos then : 12100 1.4 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12101 1.4 christos 12102 1.4 christos else case e in #( 12103 1.4 christos e) as_fn_error $? "Cannot find libbpf, but is needed for xdp support." "$LINENO" 5 ;; 12104 1.4 christos esac 12105 1.4 christos fi 12106 1.4 christos 12107 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5 12108 1.4 christos printf %s "checking for library containing cap_set_proc... " >&6; } 12109 1.4 christos if test ${ac_cv_search_cap_set_proc+y} 12110 1.4 christos then : 12111 1.4 christos printf %s "(cached) " >&6 12112 1.4 christos else case e in #( 12113 1.4 christos e) ac_func_search_save_LIBS=$LIBS 12114 1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115 1.4 christos /* end confdefs.h. */ 12116 1.4 christos 12117 1.4 christos /* Override any GCC internal prototype to avoid an error. 12118 1.4 christos Use char because int might match the return type of a GCC 12119 1.4 christos builtin and then its argument prototype would still apply. 12120 1.4 christos The 'extern "C"' is for builds by C++ compilers; 12121 1.4 christos although this is not generally supported in C code supporting it here 12122 1.4 christos has little cost and some practical benefit (sr 110532). */ 12123 1.4 christos #ifdef __cplusplus 12124 1.4 christos extern "C" 12125 1.4 christos #endif 12126 1.4 christos char cap_set_proc (void); 12127 1.4 christos int 12128 1.4 christos main (void) 12129 1.4 christos { 12130 1.4 christos return cap_set_proc (); 12131 1.4 christos ; 12132 1.4 christos return 0; 12133 1.4 christos } 12134 1.4 christos _ACEOF 12135 1.4 christos for ac_lib in '' cap 12136 1.4 christos do 12137 1.4 christos if test -z "$ac_lib"; then 12138 1.4 christos ac_res="none required" 12139 1.4 christos else 12140 1.4 christos ac_res=-l$ac_lib 12141 1.4 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12142 1.4 christos fi 12143 1.4 christos if ac_fn_c_try_link "$LINENO" 12144 1.4 christos then : 12145 1.4 christos ac_cv_search_cap_set_proc=$ac_res 12146 1.4 christos fi 12147 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12148 1.4 christos conftest$ac_exeext 12149 1.4 christos if test ${ac_cv_search_cap_set_proc+y} 12150 1.4 christos then : 12151 1.4 christos break 12152 1.4 christos fi 12153 1.4 christos done 12154 1.4 christos if test ${ac_cv_search_cap_set_proc+y} 12155 1.4 christos then : 12156 1.4 christos 12157 1.4 christos else case e in #( 12158 1.4 christos e) ac_cv_search_cap_set_proc=no ;; 12159 1.4 christos esac 12160 1.4 christos fi 12161 1.4 christos rm conftest.$ac_ext 12162 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 12163 1.4 christos esac 12164 1.4 christos fi 12165 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5 12166 1.4 christos printf "%s\n" "$ac_cv_search_cap_set_proc" >&6; } 12167 1.4 christos ac_res=$ac_cv_search_cap_set_proc 12168 1.4 christos if test "$ac_res" != no 12169 1.4 christos then : 12170 1.4 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12171 1.4 christos 12172 1.4 christos else case e in #( 12173 1.4 christos e) as_fn_error $? "Cannot find libcap, but is needed for xdp support." "$LINENO" 5 ;; 12174 1.4 christos esac 12175 1.4 christos fi 12176 1.4 christos 12177 1.4 christos 12178 1.4 christos # Using ARG_VAR here because AC_PROG_xxx doesn't exist for CLANG and LLC 12179 1.4 christos 12180 1.4 christos 12181 1.4 christos # CHECK_PROG will not overwrite a variable if it is already provided by the user on the commandline 12182 1.4 christos # Extract the first word of "clang", so it can be a program name with args. 12183 1.4 christos set dummy clang; ac_word=$2 12184 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12185 1.4 christos printf %s "checking for $ac_word... " >&6; } 12186 1.4 christos if test ${ac_cv_prog_CLANG+y} 12187 1.4 christos then : 12188 1.4 christos printf %s "(cached) " >&6 12189 1.4 christos else case e in #( 12190 1.4 christos e) if test -n "$CLANG"; then 12191 1.4 christos ac_cv_prog_CLANG="$CLANG" # Let the user override the test. 12192 1.4 christos else 12193 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12194 1.4 christos for as_dir in $PATH 12195 1.4 christos do 12196 1.4 christos IFS=$as_save_IFS 12197 1.4 christos case $as_dir in #((( 12198 1.4 christos '') as_dir=./ ;; 12199 1.4 christos */) ;; 12200 1.4 christos *) as_dir=$as_dir/ ;; 12201 1.4 christos esac 12202 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 12203 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12204 1.4 christos ac_cv_prog_CLANG="clang" 12205 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12206 1.4 christos break 2 12207 1.4 christos fi 12208 1.4 christos done 12209 1.4 christos done 12210 1.4 christos IFS=$as_save_IFS 12211 1.4 christos 12212 1.4 christos fi ;; 12213 1.4 christos esac 12214 1.4 christos fi 12215 1.4 christos CLANG=$ac_cv_prog_CLANG 12216 1.4 christos if test -n "$CLANG"; then 12217 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5 12218 1.4 christos printf "%s\n" "$CLANG" >&6; } 12219 1.4 christos else 12220 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12221 1.4 christos printf "%s\n" "no" >&6; } 12222 1.4 christos fi 12223 1.4 christos 12224 1.4 christos 12225 1.4 christos # Extract the first word of "llc", so it can be a program name with args. 12226 1.4 christos set dummy llc; ac_word=$2 12227 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12228 1.4 christos printf %s "checking for $ac_word... " >&6; } 12229 1.4 christos if test ${ac_cv_prog_LLC+y} 12230 1.4 christos then : 12231 1.4 christos printf %s "(cached) " >&6 12232 1.4 christos else case e in #( 12233 1.4 christos e) if test -n "$LLC"; then 12234 1.4 christos ac_cv_prog_LLC="$LLC" # Let the user override the test. 12235 1.4 christos else 12236 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12237 1.4 christos for as_dir in $PATH 12238 1.4 christos do 12239 1.4 christos IFS=$as_save_IFS 12240 1.4 christos case $as_dir in #((( 12241 1.4 christos '') as_dir=./ ;; 12242 1.4 christos */) ;; 12243 1.4 christos *) as_dir=$as_dir/ ;; 12244 1.4 christos esac 12245 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 12246 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12247 1.4 christos ac_cv_prog_LLC="llc" 12248 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12249 1.4 christos break 2 12250 1.4 christos fi 12251 1.4 christos done 12252 1.4 christos done 12253 1.4 christos IFS=$as_save_IFS 12254 1.2 christos 12255 1.4 christos fi ;; 12256 1.4 christos esac 12257 1.4 christos fi 12258 1.4 christos LLC=$ac_cv_prog_LLC 12259 1.4 christos if test -n "$LLC"; then 12260 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLC" >&5 12261 1.4 christos printf "%s\n" "$LLC" >&6; } 12262 1.4 christos else 12263 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12264 1.4 christos printf "%s\n" "no" >&6; } 12265 1.4 christos fi 12266 1.2 christos 12267 1.2 christos 12268 1.4 christos test "$CLANG" = "" && as_fn_error $? "Cannot find clang, but is needed for xdp support." "$LINENO" 5 12269 1.4 christos test "$LLC" = "" && as_fn_error $? "Cannot find llc, but is needed for xdp support." "$LINENO" 5 12270 1.2 christos 12271 1.2 christos 12272 1.4 christos test "$BPF_CFLAGS" = "" && BPF_CFLAGS="-Wall -Wextra -Wconversion -Werror" 12273 1.2 christos 12274 1.4 christos xdp_targets="xdp-dns-redirect_kern.o xdp-dns-redirect_kern_pinned.o" 12275 1.2 christos 12276 1.2 christos 12277 1.4 christos xdp="xx" 12278 1.2 christos ;; 12279 1.2 christos no|*) 12280 1.4 christos xdp="" 12281 1.2 christos ;; 12282 1.2 christos esac 12283 1.2 christos 12284 1.2 christos # check for dnstap if requested 12285 1.2 christos 12286 1.2 christos # Check whether --enable-dnstap was given. 12287 1.4 christos if test ${enable_dnstap+y} 12288 1.4 christos then : 12289 1.2 christos enableval=$enable_dnstap; opt_dnstap=$enableval 12290 1.4 christos else case e in #( 12291 1.4 christos e) opt_dnstap=yes ;; 12292 1.4 christos esac 12293 1.2 christos fi 12294 1.2 christos 12295 1.2 christos 12296 1.2 christos 12297 1.2 christos # Check whether --with-dnstap-socket-path was given. 12298 1.4 christos if test ${with_dnstap_socket_path+y} 12299 1.4 christos then : 12300 1.2 christos withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 12301 1.4 christos else case e in #( 12302 1.4 christos e) opt_dnstap_socket_path="${localstatedir}/run/nsd-dnstap.sock" ;; 12303 1.4 christos esac 12304 1.4 christos fi 12305 1.4 christos 12306 1.4 christos 12307 1.4 christos if test "x$opt_dnstap" != "xno"; then 12308 1.4 christos # Extract the first word of "protoc", so it can be a program name with args. 12309 1.4 christos set dummy protoc; ac_word=$2 12310 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12311 1.4 christos printf %s "checking for $ac_word... " >&6; } 12312 1.4 christos if test ${ac_cv_path_PROTOC+y} 12313 1.4 christos then : 12314 1.4 christos printf %s "(cached) " >&6 12315 1.4 christos else case e in #( 12316 1.4 christos e) case $PROTOC in 12317 1.4 christos [\\/]* | ?:[\\/]*) 12318 1.4 christos ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path. 12319 1.4 christos ;; 12320 1.4 christos *) 12321 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12322 1.4 christos for as_dir in $PATH 12323 1.4 christos do 12324 1.4 christos IFS=$as_save_IFS 12325 1.4 christos case $as_dir in #((( 12326 1.4 christos '') as_dir=./ ;; 12327 1.4 christos */) ;; 12328 1.4 christos *) as_dir=$as_dir/ ;; 12329 1.4 christos esac 12330 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 12331 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12332 1.4 christos ac_cv_path_PROTOC="$as_dir$ac_word$ac_exec_ext" 12333 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12334 1.4 christos break 2 12335 1.4 christos fi 12336 1.4 christos done 12337 1.4 christos done 12338 1.4 christos IFS=$as_save_IFS 12339 1.4 christos 12340 1.4 christos ;; 12341 1.4 christos esac ;; 12342 1.4 christos esac 12343 1.4 christos fi 12344 1.4 christos PROTOC=$ac_cv_path_PROTOC 12345 1.4 christos if test -n "$PROTOC"; then 12346 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5 12347 1.4 christos printf "%s\n" "$PROTOC" >&6; } 12348 1.2 christos else 12349 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12350 1.4 christos printf "%s\n" "no" >&6; } 12351 1.2 christos fi 12352 1.2 christos 12353 1.2 christos 12354 1.4 christos # 'protoc-c' is deprecated. We use 'protoc' instead. If it can not be 12355 1.4 christos # found, try 'protoc-c'. 12356 1.4 christos if test -z "$PROTOC"; then 12357 1.4 christos # Extract the first word of "protoc-c", so it can be a program name with args. 12358 1.2 christos set dummy protoc-c; ac_word=$2 12359 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12360 1.4 christos printf %s "checking for $ac_word... " >&6; } 12361 1.4 christos if test ${ac_cv_path_PROTOC_C+y} 12362 1.4 christos then : 12363 1.4 christos printf %s "(cached) " >&6 12364 1.4 christos else case e in #( 12365 1.4 christos e) case $PROTOC_C in 12366 1.2 christos [\\/]* | ?:[\\/]*) 12367 1.2 christos ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 12368 1.2 christos ;; 12369 1.2 christos *) 12370 1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12371 1.2 christos for as_dir in $PATH 12372 1.2 christos do 12373 1.2 christos IFS=$as_save_IFS 12374 1.4 christos case $as_dir in #((( 12375 1.4 christos '') as_dir=./ ;; 12376 1.4 christos */) ;; 12377 1.4 christos *) as_dir=$as_dir/ ;; 12378 1.4 christos esac 12379 1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do 12380 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12381 1.4 christos ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext" 12382 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12383 1.2 christos break 2 12384 1.2 christos fi 12385 1.2 christos done 12386 1.2 christos done 12387 1.2 christos IFS=$as_save_IFS 12388 1.2 christos 12389 1.2 christos ;; 12390 1.4 christos esac ;; 12391 1.2 christos esac 12392 1.2 christos fi 12393 1.2 christos PROTOC_C=$ac_cv_path_PROTOC_C 12394 1.2 christos if test -n "$PROTOC_C"; then 12395 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 12396 1.4 christos printf "%s\n" "$PROTOC_C" >&6; } 12397 1.2 christos else 12398 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12399 1.4 christos printf "%s\n" "no" >&6; } 12400 1.2 christos fi 12401 1.2 christos 12402 1.2 christos 12403 1.4 christos else 12404 1.4 christos PROTOC_C="$PROTOC" 12405 1.4 christos fi 12406 1.2 christos if test -z "$PROTOC_C"; then 12407 1.4 christos as_fn_error $? "The protoc or protoc-c program was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c to provide protoc or protoc-c" "$LINENO" 5 12408 1.4 christos fi 12409 1.4 christos 12410 1.4 christos # Check for protoc-gen-c plugin 12411 1.4 christos # Extract the first word of "protoc-gen-c", so it can be a program name with args. 12412 1.4 christos set dummy protoc-gen-c; ac_word=$2 12413 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12414 1.4 christos printf %s "checking for $ac_word... " >&6; } 12415 1.4 christos if test ${ac_cv_path_PROTOC_GEN_C+y} 12416 1.4 christos then : 12417 1.4 christos printf %s "(cached) " >&6 12418 1.4 christos else case e in #( 12419 1.4 christos e) case $PROTOC_GEN_C in 12420 1.4 christos [\\/]* | ?:[\\/]*) 12421 1.4 christos ac_cv_path_PROTOC_GEN_C="$PROTOC_GEN_C" # Let the user override the test with a path. 12422 1.4 christos ;; 12423 1.4 christos *) 12424 1.4 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12425 1.4 christos for as_dir in $PATH 12426 1.4 christos do 12427 1.4 christos IFS=$as_save_IFS 12428 1.4 christos case $as_dir in #((( 12429 1.4 christos '') as_dir=./ ;; 12430 1.4 christos */) ;; 12431 1.4 christos *) as_dir=$as_dir/ ;; 12432 1.4 christos esac 12433 1.4 christos for ac_exec_ext in '' $ac_executable_extensions; do 12434 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12435 1.4 christos ac_cv_path_PROTOC_GEN_C="$as_dir$ac_word$ac_exec_ext" 12436 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12437 1.4 christos break 2 12438 1.4 christos fi 12439 1.4 christos done 12440 1.4 christos done 12441 1.4 christos IFS=$as_save_IFS 12442 1.4 christos 12443 1.4 christos ;; 12444 1.4 christos esac ;; 12445 1.4 christos esac 12446 1.4 christos fi 12447 1.4 christos PROTOC_GEN_C=$ac_cv_path_PROTOC_GEN_C 12448 1.4 christos if test -n "$PROTOC_GEN_C"; then 12449 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_GEN_C" >&5 12450 1.4 christos printf "%s\n" "$PROTOC_GEN_C" >&6; } 12451 1.4 christos else 12452 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12453 1.4 christos printf "%s\n" "no" >&6; } 12454 1.4 christos fi 12455 1.4 christos 12456 1.4 christos 12457 1.4 christos if test -z "$PROTOC_GEN_C"; then 12458 1.4 christos as_fn_error $? "The protoc-gen-c plugin was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c-compiler to provide protoc-gen-c" "$LINENO" 5 12459 1.4 christos fi 12460 1.4 christos 12461 1.4 christos # Test that protoc-gen-c actually works 12462 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if protoc-gen-c plugin works" >&5 12463 1.4 christos printf %s "checking if protoc-gen-c plugin works... " >&6; } 12464 1.4 christos cat > conftest.proto << EOF 12465 1.4 christos syntax = "proto2"; 12466 1.4 christos message TestMessage { 12467 1.4 christos optional string test_field = 1; 12468 1.4 christos } 12469 1.4 christos EOF 12470 1.4 christos if $PROTOC_C --c_out=. conftest.proto >/dev/null 2>&1; then 12471 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12472 1.4 christos printf "%s\n" "yes" >&6; } 12473 1.4 christos rm -f conftest.proto conftest.pb-c.c conftest.pb-c.h 12474 1.4 christos else 12475 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12476 1.4 christos printf "%s\n" "no" >&6; } 12477 1.4 christos rm -f conftest.proto conftest.pb-c.c conftest.pb-c.h 12478 1.4 christos as_fn_error $? "The protoc-gen-c plugin is not working properly. Please ensure protobuf-c-compiler is properly installed" "$LINENO" 5 12479 1.2 christos fi 12480 1.2 christos 12481 1.4 christos 12482 1.2 christos # Check whether --with-protobuf-c was given. 12483 1.4 christos if test ${with_protobuf_c+y} 12484 1.4 christos then : 12485 1.2 christos withval=$with_protobuf_c; 12486 1.2 christos # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 12487 1.2 christos if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 12488 1.2 christos CFLAGS="$CFLAGS -I$withval/include/google" 12489 1.2 christos else 12490 1.2 christos CFLAGS="$CFLAGS -I$withval/include" 12491 1.2 christos fi 12492 1.2 christos LDFLAGS="$LDFLAGS -L$withval/lib" 12493 1.2 christos 12494 1.4 christos else case e in #( 12495 1.4 christos e) 12496 1.2 christos # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 12497 1.2 christos if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 12498 1.2 christos CFLAGS="$CFLAGS -I/usr/include/google" 12499 1.2 christos else 12500 1.2 christos if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 12501 1.2 christos CFLAGS="$CFLAGS -I/usr/local/include/google" 12502 1.2 christos LDFLAGS="$LDFLAGS -L/usr/local/lib" 12503 1.2 christos fi 12504 1.2 christos fi 12505 1.4 christos ;; 12506 1.4 christos esac 12507 1.2 christos fi 12508 1.2 christos 12509 1.2 christos 12510 1.2 christos # Check whether --with-libfstrm was given. 12511 1.4 christos if test ${with_libfstrm+y} 12512 1.4 christos then : 12513 1.2 christos withval=$with_libfstrm; 12514 1.2 christos CFLAGS="$CFLAGS -I$withval/include" 12515 1.2 christos LDFLAGS="$LDFLAGS -L$withval/lib" 12516 1.2 christos 12517 1.2 christos fi 12518 1.2 christos 12519 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5 12520 1.4 christos printf %s "checking for library containing fstrm_iothr_init... " >&6; } 12521 1.4 christos if test ${ac_cv_search_fstrm_iothr_init+y} 12522 1.4 christos then : 12523 1.4 christos printf %s "(cached) " >&6 12524 1.4 christos else case e in #( 12525 1.4 christos e) ac_func_search_save_LIBS=$LIBS 12526 1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12527 1.2 christos /* end confdefs.h. */ 12528 1.2 christos 12529 1.2 christos /* Override any GCC internal prototype to avoid an error. 12530 1.2 christos Use char because int might match the return type of a GCC 12531 1.4 christos builtin and then its argument prototype would still apply. 12532 1.4 christos The 'extern "C"' is for builds by C++ compilers; 12533 1.4 christos although this is not generally supported in C code supporting it here 12534 1.4 christos has little cost and some practical benefit (sr 110532). */ 12535 1.2 christos #ifdef __cplusplus 12536 1.2 christos extern "C" 12537 1.2 christos #endif 12538 1.4 christos char fstrm_iothr_init (void); 12539 1.2 christos int 12540 1.4 christos main (void) 12541 1.2 christos { 12542 1.2 christos return fstrm_iothr_init (); 12543 1.2 christos ; 12544 1.2 christos return 0; 12545 1.2 christos } 12546 1.2 christos _ACEOF 12547 1.4 christos for ac_lib in '' fstrm 12548 1.4 christos do 12549 1.2 christos if test -z "$ac_lib"; then 12550 1.2 christos ac_res="none required" 12551 1.2 christos else 12552 1.2 christos ac_res=-l$ac_lib 12553 1.2 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12554 1.2 christos fi 12555 1.4 christos if ac_fn_c_try_link "$LINENO" 12556 1.4 christos then : 12557 1.2 christos ac_cv_search_fstrm_iothr_init=$ac_res 12558 1.2 christos fi 12559 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12560 1.2 christos conftest$ac_exeext 12561 1.4 christos if test ${ac_cv_search_fstrm_iothr_init+y} 12562 1.4 christos then : 12563 1.2 christos break 12564 1.2 christos fi 12565 1.2 christos done 12566 1.4 christos if test ${ac_cv_search_fstrm_iothr_init+y} 12567 1.4 christos then : 12568 1.2 christos 12569 1.4 christos else case e in #( 12570 1.4 christos e) ac_cv_search_fstrm_iothr_init=no ;; 12571 1.4 christos esac 12572 1.2 christos fi 12573 1.2 christos rm conftest.$ac_ext 12574 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 12575 1.4 christos esac 12576 1.2 christos fi 12577 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5 12578 1.4 christos printf "%s\n" "$ac_cv_search_fstrm_iothr_init" >&6; } 12579 1.2 christos ac_res=$ac_cv_search_fstrm_iothr_init 12580 1.4 christos if test "$ac_res" != no 12581 1.4 christos then : 12582 1.2 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12583 1.2 christos 12584 1.4 christos else case e in #( 12585 1.4 christos e) as_fn_error $? "The fstrm library was not found. It is needed for dnstap, use --disable-dnstap, or install fstrm-devel" "$LINENO" 5 ;; 12586 1.4 christos esac 12587 1.4 christos fi 12588 1.4 christos 12589 1.4 christos 12590 1.4 christos for ac_func in fstrm_tcp_writer_options_init 12591 1.4 christos do : 12592 1.4 christos ac_fn_c_check_func "$LINENO" "fstrm_tcp_writer_options_init" "ac_cv_func_fstrm_tcp_writer_options_init" 12593 1.4 christos if test "x$ac_cv_func_fstrm_tcp_writer_options_init" = xyes 12594 1.4 christos then : 12595 1.4 christos printf "%s\n" "#define HAVE_FSTRM_TCP_WRITER_OPTIONS_INIT 1" >>confdefs.h 12596 1.4 christos 12597 1.4 christos else case e in #( 12598 1.4 christos e) as_fn_error $? "The fstrm library >= 0.4 was not found. It is needed for dnstap, use --disable-dnstap, or install fstrm-devel" "$LINENO" 5 ;; 12599 1.4 christos esac 12600 1.2 christos fi 12601 1.2 christos 12602 1.4 christos done 12603 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 12604 1.4 christos printf %s "checking for library containing protobuf_c_message_pack... " >&6; } 12605 1.4 christos if test ${ac_cv_search_protobuf_c_message_pack+y} 12606 1.4 christos then : 12607 1.4 christos printf %s "(cached) " >&6 12608 1.4 christos else case e in #( 12609 1.4 christos e) ac_func_search_save_LIBS=$LIBS 12610 1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611 1.2 christos /* end confdefs.h. */ 12612 1.2 christos 12613 1.2 christos /* Override any GCC internal prototype to avoid an error. 12614 1.2 christos Use char because int might match the return type of a GCC 12615 1.4 christos builtin and then its argument prototype would still apply. 12616 1.4 christos The 'extern "C"' is for builds by C++ compilers; 12617 1.4 christos although this is not generally supported in C code supporting it here 12618 1.4 christos has little cost and some practical benefit (sr 110532). */ 12619 1.2 christos #ifdef __cplusplus 12620 1.2 christos extern "C" 12621 1.2 christos #endif 12622 1.4 christos char protobuf_c_message_pack (void); 12623 1.2 christos int 12624 1.4 christos main (void) 12625 1.2 christos { 12626 1.2 christos return protobuf_c_message_pack (); 12627 1.2 christos ; 12628 1.2 christos return 0; 12629 1.2 christos } 12630 1.2 christos _ACEOF 12631 1.4 christos for ac_lib in '' protobuf-c 12632 1.4 christos do 12633 1.2 christos if test -z "$ac_lib"; then 12634 1.2 christos ac_res="none required" 12635 1.2 christos else 12636 1.2 christos ac_res=-l$ac_lib 12637 1.2 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12638 1.2 christos fi 12639 1.4 christos if ac_fn_c_try_link "$LINENO" 12640 1.4 christos then : 12641 1.2 christos ac_cv_search_protobuf_c_message_pack=$ac_res 12642 1.2 christos fi 12643 1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12644 1.2 christos conftest$ac_exeext 12645 1.4 christos if test ${ac_cv_search_protobuf_c_message_pack+y} 12646 1.4 christos then : 12647 1.2 christos break 12648 1.2 christos fi 12649 1.2 christos done 12650 1.4 christos if test ${ac_cv_search_protobuf_c_message_pack+y} 12651 1.4 christos then : 12652 1.2 christos 12653 1.4 christos else case e in #( 12654 1.4 christos e) ac_cv_search_protobuf_c_message_pack=no ;; 12655 1.4 christos esac 12656 1.2 christos fi 12657 1.2 christos rm conftest.$ac_ext 12658 1.4 christos LIBS=$ac_func_search_save_LIBS ;; 12659 1.4 christos esac 12660 1.2 christos fi 12661 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 12662 1.4 christos printf "%s\n" "$ac_cv_search_protobuf_c_message_pack" >&6; } 12663 1.2 christos ac_res=$ac_cv_search_protobuf_c_message_pack 12664 1.4 christos if test "$ac_res" != no 12665 1.4 christos then : 12666 1.2 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12667 1.2 christos 12668 1.4 christos else case e in #( 12669 1.4 christos e) as_fn_error $? "The protobuf-c library was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c" "$LINENO" 5 ;; 12670 1.4 christos esac 12671 1.2 christos fi 12672 1.2 christos 12673 1.2 christos 12674 1.2 christos 12675 1.4 christos printf "%s\n" "#define USE_DNSTAP 1" >>confdefs.h 12676 1.2 christos 12677 1.2 christos ENABLE_DNSTAP=1 12678 1.2 christos 12679 1.2 christos 12680 1.2 christos 12681 1.2 christos hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 12682 1.2 christos 12683 1.2 christos 12684 1.4 christos printf "%s\n" "#define DNSTAP_SOCKET_PATH \"$hdr_dnstap_socket_path\"" >>confdefs.h 12685 1.2 christos 12686 1.2 christos 12687 1.2 christos DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_collector.c" 12688 1.2 christos 12689 1.2 christos DNSTAP_OBJ="dnstap.o dnstap_collector.o dnstap.pb-c.o" 12690 1.2 christos 12691 1.4 christos dnstap_config="dnstap/dnstap_config.h.tmp:dnstap/dnstap_config.h.in" 12692 1.4 christos dnstap_config_tmp="dnstap/dnstap_config.h.tmp" 12693 1.4 christos dnstap_config_out="dnstap/dnstap_config.h" 12694 1.2 christos 12695 1.2 christos else 12696 1.2 christos 12697 1.2 christos ENABLE_DNSTAP=0 12698 1.2 christos 12699 1.2 christos 12700 1.2 christos 12701 1.2 christos fi 12702 1.2 christos 12703 1.2 christos 12704 1.2 christos # Include systemd.m4 - begin 12705 1.2 christos # macros for configuring systemd 12706 1.2 christos # Copyright 2015, Sami Kerola, CloudFlare. 12707 1.2 christos # BSD licensed. 12708 1.2 christos # Check whether --enable-systemd was given. 12709 1.4 christos if test ${enable_systemd+y} 12710 1.4 christos then : 12711 1.2 christos enableval=$enable_systemd; 12712 1.4 christos else case e in #( 12713 1.4 christos e) enable_systemd=no ;; 12714 1.4 christos esac 12715 1.2 christos fi 12716 1.2 christos 12717 1.2 christos have_systemd=no 12718 1.2 christos 12719 1.2 christos 12720 1.2 christos 12721 1.2 christos 12722 1.2 christos 12723 1.2 christos 12724 1.2 christos 12725 1.2 christos if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12726 1.2 christos if test -n "$ac_tool_prefix"; then 12727 1.2 christos # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12728 1.2 christos set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12729 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12730 1.4 christos printf %s "checking for $ac_word... " >&6; } 12731 1.4 christos if test ${ac_cv_path_PKG_CONFIG+y} 12732 1.4 christos then : 12733 1.4 christos printf %s "(cached) " >&6 12734 1.4 christos else case e in #( 12735 1.4 christos e) case $PKG_CONFIG in 12736 1.2 christos [\\/]* | ?:[\\/]*) 12737 1.2 christos ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12738 1.2 christos ;; 12739 1.2 christos *) 12740 1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12741 1.2 christos for as_dir in $PATH 12742 1.2 christos do 12743 1.2 christos IFS=$as_save_IFS 12744 1.4 christos case $as_dir in #((( 12745 1.4 christos '') as_dir=./ ;; 12746 1.4 christos */) ;; 12747 1.4 christos *) as_dir=$as_dir/ ;; 12748 1.4 christos esac 12749 1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do 12750 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12751 1.4 christos ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12752 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12753 1.2 christos break 2 12754 1.2 christos fi 12755 1.2 christos done 12756 1.2 christos done 12757 1.2 christos IFS=$as_save_IFS 12758 1.2 christos 12759 1.2 christos ;; 12760 1.4 christos esac ;; 12761 1.2 christos esac 12762 1.2 christos fi 12763 1.2 christos PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12764 1.2 christos if test -n "$PKG_CONFIG"; then 12765 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12766 1.4 christos printf "%s\n" "$PKG_CONFIG" >&6; } 12767 1.2 christos else 12768 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12769 1.4 christos printf "%s\n" "no" >&6; } 12770 1.2 christos fi 12771 1.2 christos 12772 1.2 christos 12773 1.2 christos fi 12774 1.2 christos if test -z "$ac_cv_path_PKG_CONFIG"; then 12775 1.2 christos ac_pt_PKG_CONFIG=$PKG_CONFIG 12776 1.2 christos # Extract the first word of "pkg-config", so it can be a program name with args. 12777 1.2 christos set dummy pkg-config; ac_word=$2 12778 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12779 1.4 christos printf %s "checking for $ac_word... " >&6; } 12780 1.4 christos if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12781 1.4 christos then : 12782 1.4 christos printf %s "(cached) " >&6 12783 1.4 christos else case e in #( 12784 1.4 christos e) case $ac_pt_PKG_CONFIG in 12785 1.2 christos [\\/]* | ?:[\\/]*) 12786 1.2 christos ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12787 1.2 christos ;; 12788 1.2 christos *) 12789 1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12790 1.2 christos for as_dir in $PATH 12791 1.2 christos do 12792 1.2 christos IFS=$as_save_IFS 12793 1.4 christos case $as_dir in #((( 12794 1.4 christos '') as_dir=./ ;; 12795 1.4 christos */) ;; 12796 1.4 christos *) as_dir=$as_dir/ ;; 12797 1.4 christos esac 12798 1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do 12799 1.4 christos if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12800 1.4 christos ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12801 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12802 1.2 christos break 2 12803 1.2 christos fi 12804 1.2 christos done 12805 1.2 christos done 12806 1.2 christos IFS=$as_save_IFS 12807 1.2 christos 12808 1.2 christos ;; 12809 1.4 christos esac ;; 12810 1.2 christos esac 12811 1.2 christos fi 12812 1.2 christos ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12813 1.2 christos if test -n "$ac_pt_PKG_CONFIG"; then 12814 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12815 1.4 christos printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12816 1.2 christos else 12817 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12818 1.4 christos printf "%s\n" "no" >&6; } 12819 1.2 christos fi 12820 1.2 christos 12821 1.2 christos if test "x$ac_pt_PKG_CONFIG" = x; then 12822 1.2 christos PKG_CONFIG="" 12823 1.2 christos else 12824 1.2 christos case $cross_compiling:$ac_tool_warned in 12825 1.2 christos yes:) 12826 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12827 1.4 christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12828 1.2 christos ac_tool_warned=yes ;; 12829 1.2 christos esac 12830 1.2 christos PKG_CONFIG=$ac_pt_PKG_CONFIG 12831 1.2 christos fi 12832 1.2 christos else 12833 1.2 christos PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12834 1.2 christos fi 12835 1.2 christos 12836 1.2 christos fi 12837 1.2 christos if test -n "$PKG_CONFIG"; then 12838 1.2 christos _pkg_min_version=0.9.0 12839 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12840 1.4 christos printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12841 1.2 christos if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12842 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12843 1.4 christos printf "%s\n" "yes" >&6; } 12844 1.2 christos else 12845 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12846 1.4 christos printf "%s\n" "no" >&6; } 12847 1.2 christos PKG_CONFIG="" 12848 1.2 christos fi 12849 1.2 christos fi 12850 1.4 christos if test -z "$PKG_CONFIG"; then 12851 1.4 christos as_fn_error $? "pkg-config not found" "$LINENO" 5 12852 1.4 christos fi 12853 1.4 christos if test "x$enable_systemd" != xno 12854 1.4 christos then : 12855 1.2 christos 12856 1.2 christos 12857 1.2 christos 12858 1.2 christos pkg_failed=no 12859 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 12860 1.4 christos printf %s "checking for libsystemd... " >&6; } 12861 1.2 christos 12862 1.2 christos if test -n "$SYSTEMD_CFLAGS"; then 12863 1.2 christos pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 12864 1.2 christos elif test -n "$PKG_CONFIG"; then 12865 1.2 christos if test -n "$PKG_CONFIG" && \ 12866 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 12867 1.2 christos ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 12868 1.2 christos ac_status=$? 12869 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12870 1.2 christos test $ac_status = 0; }; then 12871 1.2 christos pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 12872 1.2 christos test "x$?" != "x0" && pkg_failed=yes 12873 1.2 christos else 12874 1.2 christos pkg_failed=yes 12875 1.2 christos fi 12876 1.2 christos else 12877 1.2 christos pkg_failed=untried 12878 1.2 christos fi 12879 1.2 christos if test -n "$SYSTEMD_LIBS"; then 12880 1.2 christos pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 12881 1.2 christos elif test -n "$PKG_CONFIG"; then 12882 1.2 christos if test -n "$PKG_CONFIG" && \ 12883 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 12884 1.2 christos ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 12885 1.2 christos ac_status=$? 12886 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12887 1.2 christos test $ac_status = 0; }; then 12888 1.2 christos pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 12889 1.2 christos test "x$?" != "x0" && pkg_failed=yes 12890 1.2 christos else 12891 1.2 christos pkg_failed=yes 12892 1.2 christos fi 12893 1.2 christos else 12894 1.2 christos pkg_failed=untried 12895 1.2 christos fi 12896 1.2 christos 12897 1.2 christos 12898 1.2 christos 12899 1.2 christos if test $pkg_failed = yes; then 12900 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12901 1.4 christos printf "%s\n" "no" >&6; } 12902 1.2 christos 12903 1.2 christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12904 1.2 christos _pkg_short_errors_supported=yes 12905 1.2 christos else 12906 1.2 christos _pkg_short_errors_supported=no 12907 1.2 christos fi 12908 1.2 christos if test $_pkg_short_errors_supported = yes; then 12909 1.4 christos SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 12910 1.2 christos else 12911 1.4 christos SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 12912 1.2 christos fi 12913 1.4 christos # Put the nasty error message in config.log where it belongs 12914 1.4 christos echo "$SYSTEMD_PKG_ERRORS" >&5 12915 1.2 christos 12916 1.4 christos have_systemd=no 12917 1.2 christos elif test $pkg_failed = untried; then 12918 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12919 1.4 christos printf "%s\n" "no" >&6; } 12920 1.4 christos have_systemd=no 12921 1.4 christos else 12922 1.4 christos SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 12923 1.4 christos SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 12924 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12925 1.4 christos printf "%s\n" "yes" >&6; } 12926 1.4 christos have_systemd=yes 12927 1.2 christos fi 12928 1.4 christos if test "x$have_systemd" != "xyes" 12929 1.4 christos then : 12930 1.2 christos 12931 1.2 christos 12932 1.2 christos pkg_failed=no 12933 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 12934 1.4 christos printf %s "checking for libsystemd-daemon... " >&6; } 12935 1.2 christos 12936 1.2 christos if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 12937 1.2 christos pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 12938 1.2 christos elif test -n "$PKG_CONFIG"; then 12939 1.2 christos if test -n "$PKG_CONFIG" && \ 12940 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 12941 1.2 christos ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 12942 1.2 christos ac_status=$? 12943 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12944 1.2 christos test $ac_status = 0; }; then 12945 1.2 christos pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 12946 1.2 christos test "x$?" != "x0" && pkg_failed=yes 12947 1.2 christos else 12948 1.2 christos pkg_failed=yes 12949 1.2 christos fi 12950 1.2 christos else 12951 1.2 christos pkg_failed=untried 12952 1.2 christos fi 12953 1.2 christos if test -n "$SYSTEMD_DAEMON_LIBS"; then 12954 1.2 christos pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 12955 1.2 christos elif test -n "$PKG_CONFIG"; then 12956 1.2 christos if test -n "$PKG_CONFIG" && \ 12957 1.4 christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 12958 1.2 christos ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 12959 1.2 christos ac_status=$? 12960 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12961 1.2 christos test $ac_status = 0; }; then 12962 1.2 christos pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 12963 1.2 christos test "x$?" != "x0" && pkg_failed=yes 12964 1.2 christos else 12965 1.2 christos pkg_failed=yes 12966 1.2 christos fi 12967 1.2 christos else 12968 1.2 christos pkg_failed=untried 12969 1.2 christos fi 12970 1.2 christos 12971 1.2 christos 12972 1.2 christos 12973 1.2 christos if test $pkg_failed = yes; then 12974 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12975 1.4 christos printf "%s\n" "no" >&6; } 12976 1.2 christos 12977 1.2 christos if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12978 1.2 christos _pkg_short_errors_supported=yes 12979 1.2 christos else 12980 1.2 christos _pkg_short_errors_supported=no 12981 1.2 christos fi 12982 1.2 christos if test $_pkg_short_errors_supported = yes; then 12983 1.4 christos SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 12984 1.2 christos else 12985 1.4 christos SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 12986 1.2 christos fi 12987 1.4 christos # Put the nasty error message in config.log where it belongs 12988 1.4 christos echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 12989 1.2 christos 12990 1.4 christos have_systemd_daemon=no 12991 1.2 christos elif test $pkg_failed = untried; then 12992 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12993 1.4 christos printf "%s\n" "no" >&6; } 12994 1.4 christos have_systemd_daemon=no 12995 1.4 christos else 12996 1.4 christos SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 12997 1.4 christos SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 12998 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12999 1.4 christos printf "%s\n" "yes" >&6; } 13000 1.4 christos have_systemd_daemon=yes 13001 1.2 christos fi 13002 1.4 christos if test "x$have_systemd_daemon" = "xyes" 13003 1.4 christos then : 13004 1.2 christos have_systemd=yes 13005 1.2 christos fi 13006 1.2 christos 13007 1.2 christos fi 13008 1.2 christos case $enable_systemd:$have_systemd in #( 13009 1.2 christos yes:no) : 13010 1.2 christos as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 13011 1.2 christos *:yes) : 13012 1.2 christos 13013 1.4 christos printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h 13014 1.2 christos 13015 1.2 christos LIBS="$LIBS $SYSTEMD_LIBS" 13016 1.2 christos 13017 1.2 christos ;; #( 13018 1.2 christos *) : 13019 1.2 christos ;; 13020 1.2 christos esac 13021 1.2 christos 13022 1.2 christos 13023 1.2 christos fi 13024 1.2 christos 13025 1.2 christos # Include systemd.m4 - end 13026 1.2 christos 13027 1.2 christos # Check whether --enable-tcp-fastopen was given. 13028 1.4 christos if test ${enable_tcp_fastopen+y} 13029 1.4 christos then : 13030 1.2 christos enableval=$enable_tcp_fastopen; 13031 1.2 christos fi 13032 1.2 christos 13033 1.2 christos case "$enable_tcp_fastopen" in 13034 1.2 christos yes) 13035 1.4 christos ac_fn_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 13036 1.2 christos #include <netinet/tcp.h> 13037 1.2 christos 13038 1.4 christos " "$ac_c_undeclared_builtin_options" "CFLAGS" 13039 1.4 christos if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes 13040 1.4 christos then : 13041 1.2 christos 13042 1.4 christos else case e in #( 13043 1.4 christos e) as_fn_error $? "TCP Fast Open is not available: please rerun without --enable-tcp-fastopen" "$LINENO" 5 ;; 13044 1.4 christos esac 13045 1.2 christos fi 13046 1.2 christos 13047 1.4 christos printf "%s\n" "#define USE_TCP_FASTOPEN 1" >>confdefs.h 13048 1.2 christos 13049 1.2 christos ;; 13050 1.2 christos no|*) 13051 1.2 christos ;; 13052 1.2 christos esac 13053 1.2 christos 13054 1.1 christos 13055 1.1 christos 13056 1.1 christos 13057 1.1 christos 13058 1.1 christos 13059 1.1 christos 13060 1.1 christos 13061 1.1 christos 13062 1.1 christos 13063 1.1 christos 13064 1.1 christos if test $ac_cv_func_getaddrinfo = no; then 13065 1.1 christos case " $LIBOBJS " in 13066 1.1 christos *" fake-rfc2553.$ac_objext "* ) ;; 13067 1.1 christos *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 13068 1.1 christos ;; 13069 1.1 christos esac 13070 1.1 christos 13071 1.1 christos fi 13072 1.1 christos 13073 1.1 christos 13074 1.1 christos 13075 1.1 christos 13076 1.1 christos 13077 1.1 christos 13078 1.1 christos 13079 1.1 christos # big fat warning 13080 1.1 christos if test "$enable_checking" = "yes"; then 13081 1.1 christos echo "************************************************" 13082 1.1 christos echo "* You have activated \"--enable-checking\" *" 13083 1.1 christos echo "* *" 13084 1.1 christos echo "* This will instruct NSD to be stricter *" 13085 1.1 christos echo "* when validating its input. This could lead *" 13086 1.1 christos echo "* to a reduced service level. *" 13087 1.1 christos echo "* *" 13088 1.1 christos echo "************************************************" 13089 1.1 christos fi 13090 1.1 christos 13091 1.2 christos ac_config_files="$ac_config_files Makefile $dnstap_config" 13092 1.1 christos 13093 1.4 christos 13094 1.4 christos # Arguments introduced specifically for simdzone. 13095 1.4 christos # Check whether --enable-westmere was given. 13096 1.4 christos if test ${enable_westmere+y} 13097 1.4 christos then : 13098 1.4 christos enableval=$enable_westmere; 13099 1.4 christos fi 13100 1.4 christos 13101 1.4 christos # Check whether --enable-haswell was given. 13102 1.4 christos if test ${enable_haswell+y} 13103 1.4 christos then : 13104 1.4 christos enableval=$enable_haswell; 13105 1.4 christos fi 13106 1.4 christos 13107 1.4 christos 13108 1.4 christos 13109 1.4 christos subdirs="$subdirs simdzone" 13110 1.4 christos 13111 1.1 christos cat >confcache <<\_ACEOF 13112 1.1 christos # This file is a shell script that caches the results of configure 13113 1.1 christos # tests run on this system so they can be shared between configure 13114 1.1 christos # scripts and configure runs, see configure's option --config-cache. 13115 1.1 christos # It is not useful on other systems. If it contains results you don't 13116 1.1 christos # want to keep, you may remove or edit it. 13117 1.1 christos # 13118 1.1 christos # config.status only pays attention to the cache file if you give it 13119 1.1 christos # the --recheck option to rerun configure. 13120 1.1 christos # 13121 1.4 christos # 'ac_cv_env_foo' variables (set or unset) will be overridden when 13122 1.4 christos # loading this file, other *unset* 'ac_cv_foo' will be assigned the 13123 1.1 christos # following values. 13124 1.1 christos 13125 1.1 christos _ACEOF 13126 1.1 christos 13127 1.1 christos # The following way of writing the cache mishandles newlines in values, 13128 1.1 christos # but we know of no workaround that is simple, portable, and efficient. 13129 1.1 christos # So, we kill variables containing newlines. 13130 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly, 13131 1.1 christos # and sets the high bit in the cache file unless we assign to the vars. 13132 1.1 christos ( 13133 1.1 christos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13134 1.1 christos eval ac_val=\$$ac_var 13135 1.1 christos case $ac_val in #( 13136 1.1 christos *${as_nl}*) 13137 1.1 christos case $ac_var in #( 13138 1.4 christos *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13139 1.4 christos printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13140 1.1 christos esac 13141 1.1 christos case $ac_var in #( 13142 1.1 christos _ | IFS | as_nl) ;; #( 13143 1.1 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13144 1.1 christos *) { eval $ac_var=; unset $ac_var;} ;; 13145 1.1 christos esac ;; 13146 1.1 christos esac 13147 1.1 christos done 13148 1.1 christos 13149 1.1 christos (set) 2>&1 | 13150 1.1 christos case $as_nl`(ac_space=' '; set) 2>&1` in #( 13151 1.1 christos *${as_nl}ac_space=\ *) 13152 1.4 christos # 'set' does not quote correctly, so add quotes: double-quote 13153 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \. 13154 1.1 christos sed -n \ 13155 1.1 christos "s/'/'\\\\''/g; 13156 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13157 1.1 christos ;; #( 13158 1.1 christos *) 13159 1.4 christos # 'set' quotes correctly as required by POSIX, so do not add quotes. 13160 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13161 1.1 christos ;; 13162 1.1 christos esac | 13163 1.1 christos sort 13164 1.1 christos ) | 13165 1.1 christos sed ' 13166 1.1 christos /^ac_cv_env_/b end 13167 1.1 christos t clear 13168 1.1 christos :clear 13169 1.4 christos s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 13170 1.1 christos t end 13171 1.1 christos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13172 1.1 christos :end' >>confcache 13173 1.1 christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13174 1.1 christos if test -w "$cache_file"; then 13175 1.1 christos if test "x$cache_file" != "x/dev/null"; then 13176 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13177 1.4 christos printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 13178 1.1 christos if test ! -f "$cache_file" || test -h "$cache_file"; then 13179 1.1 christos cat confcache >"$cache_file" 13180 1.1 christos else 13181 1.1 christos case $cache_file in #( 13182 1.1 christos */* | ?:*) 13183 1.1 christos mv -f confcache "$cache_file"$$ && 13184 1.1 christos mv -f "$cache_file"$$ "$cache_file" ;; #( 13185 1.1 christos *) 13186 1.1 christos mv -f confcache "$cache_file" ;; 13187 1.1 christos esac 13188 1.1 christos fi 13189 1.1 christos fi 13190 1.1 christos else 13191 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13192 1.4 christos printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 13193 1.1 christos fi 13194 1.1 christos fi 13195 1.1 christos rm -f confcache 13196 1.1 christos 13197 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix 13198 1.1 christos # Let make expand exec_prefix. 13199 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13200 1.1 christos 13201 1.1 christos DEFS=-DHAVE_CONFIG_H 13202 1.1 christos 13203 1.1 christos ac_libobjs= 13204 1.1 christos ac_ltlibobjs= 13205 1.1 christos U= 13206 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13207 1.1 christos # 1. Remove the extension, and $U if already installed. 13208 1.1 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13209 1.4 christos ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 13210 1.1 christos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13211 1.1 christos # will be set to the directory where LIBOBJS objects are built. 13212 1.1 christos as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13213 1.1 christos as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13214 1.1 christos done 13215 1.1 christos LIBOBJS=$ac_libobjs 13216 1.1 christos 13217 1.1 christos LTLIBOBJS=$ac_ltlibobjs 13218 1.1 christos 13219 1.1 christos 13220 1.4 christos # Check whether --enable-year2038 was given. 13221 1.4 christos if test ${enable_year2038+y} 13222 1.4 christos then : 13223 1.4 christos enableval=$enable_year2038; 13224 1.4 christos fi 13225 1.4 christos 13226 1.1 christos 13227 1.1 christos : "${CONFIG_STATUS=./config.status}" 13228 1.1 christos ac_write_fail=0 13229 1.1 christos ac_clean_files_save=$ac_clean_files 13230 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13231 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13232 1.4 christos printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 13233 1.1 christos as_write_fail=0 13234 1.1 christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13235 1.1 christos #! $SHELL 13236 1.1 christos # Generated by $as_me. 13237 1.1 christos # Run this file to recreate the current configuration. 13238 1.1 christos # Compiler output produced by configure, useful for debugging 13239 1.1 christos # configure, is in config.log if it exists. 13240 1.1 christos 13241 1.1 christos debug=false 13242 1.1 christos ac_cs_recheck=false 13243 1.1 christos ac_cs_silent=false 13244 1.1 christos 13245 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL} 13246 1.1 christos export SHELL 13247 1.1 christos _ASEOF 13248 1.1 christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13249 1.1 christos ## -------------------- ## 13250 1.1 christos ## M4sh Initialization. ## 13251 1.1 christos ## -------------------- ## 13252 1.1 christos 13253 1.1 christos # Be more Bourne compatible 13254 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh 13255 1.4 christos if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 13256 1.4 christos then : 13257 1.1 christos emulate sh 13258 1.1 christos NULLCMD=: 13259 1.1 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13260 1.1 christos # is contrary to our usage. Disable this feature. 13261 1.1 christos alias -g '${1+"$@"}'='"$@"' 13262 1.1 christos setopt NO_GLOB_SUBST 13263 1.4 christos else case e in #( 13264 1.4 christos e) case `(set -o) 2>/dev/null` in #( 13265 1.1 christos *posix*) : 13266 1.1 christos set -o posix ;; #( 13267 1.1 christos *) : 13268 1.1 christos ;; 13269 1.4 christos esac ;; 13270 1.1 christos esac 13271 1.1 christos fi 13272 1.1 christos 13273 1.1 christos 13274 1.4 christos 13275 1.4 christos # Reset variables that may have inherited troublesome values from 13276 1.4 christos # the environment. 13277 1.4 christos 13278 1.4 christos # IFS needs to be set, to space, tab, and newline, in precisely that order. 13279 1.4 christos # (If _AS_PATH_WALK were called with IFS unset, it would have the 13280 1.4 christos # side effect of setting IFS to empty, thus disabling word splitting.) 13281 1.4 christos # Quoting is to prevent editors from complaining about space-tab. 13282 1.1 christos as_nl=' 13283 1.1 christos ' 13284 1.1 christos export as_nl 13285 1.4 christos IFS=" "" $as_nl" 13286 1.4 christos 13287 1.4 christos PS1='$ ' 13288 1.4 christos PS2='> ' 13289 1.4 christos PS4='+ ' 13290 1.4 christos 13291 1.4 christos # Ensure predictable behavior from utilities with locale-dependent output. 13292 1.4 christos LC_ALL=C 13293 1.4 christos export LC_ALL 13294 1.4 christos LANGUAGE=C 13295 1.4 christos export LANGUAGE 13296 1.4 christos 13297 1.4 christos # We cannot yet rely on "unset" to work, but we need these variables 13298 1.4 christos # to be unset--not just set to an empty or harmless value--now, to 13299 1.4 christos # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 13300 1.4 christos # also avoids known problems related to "unset" and subshell syntax 13301 1.4 christos # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 13302 1.4 christos for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 13303 1.4 christos do eval test \${$as_var+y} \ 13304 1.4 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13305 1.4 christos done 13306 1.4 christos 13307 1.4 christos # Ensure that fds 0, 1, and 2 are open. 13308 1.4 christos if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 13309 1.4 christos if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 13310 1.4 christos if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 13311 1.1 christos 13312 1.1 christos # The user is always right. 13313 1.4 christos if ${PATH_SEPARATOR+false} :; then 13314 1.1 christos PATH_SEPARATOR=: 13315 1.1 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13316 1.1 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13317 1.1 christos PATH_SEPARATOR=';' 13318 1.1 christos } 13319 1.1 christos fi 13320 1.1 christos 13321 1.1 christos 13322 1.1 christos # Find who we are. Look in the path if we contain no directory separator. 13323 1.1 christos as_myself= 13324 1.1 christos case $0 in #(( 13325 1.1 christos *[\\/]* ) as_myself=$0 ;; 13326 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13327 1.1 christos for as_dir in $PATH 13328 1.1 christos do 13329 1.1 christos IFS=$as_save_IFS 13330 1.4 christos case $as_dir in #((( 13331 1.4 christos '') as_dir=./ ;; 13332 1.4 christos */) ;; 13333 1.4 christos *) as_dir=$as_dir/ ;; 13334 1.4 christos esac 13335 1.4 christos test -r "$as_dir$0" && as_myself=$as_dir$0 && break 13336 1.1 christos done 13337 1.1 christos IFS=$as_save_IFS 13338 1.1 christos 13339 1.1 christos ;; 13340 1.1 christos esac 13341 1.4 christos # We did not find ourselves, most probably we were run as 'sh COMMAND' 13342 1.1 christos # in which case we are not to be found in the path. 13343 1.1 christos if test "x$as_myself" = x; then 13344 1.1 christos as_myself=$0 13345 1.1 christos fi 13346 1.1 christos if test ! -f "$as_myself"; then 13347 1.4 christos printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13348 1.1 christos exit 1 13349 1.1 christos fi 13350 1.1 christos 13351 1.1 christos 13352 1.1 christos 13353 1.1 christos # as_fn_error STATUS ERROR [LINENO LOG_FD] 13354 1.1 christos # ---------------------------------------- 13355 1.1 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13356 1.1 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13357 1.1 christos # script with STATUS, using 1 if that was 0. 13358 1.1 christos as_fn_error () 13359 1.1 christos { 13360 1.1 christos as_status=$1; test $as_status -eq 0 && as_status=1 13361 1.1 christos if test "$4"; then 13362 1.1 christos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13363 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13364 1.1 christos fi 13365 1.4 christos printf "%s\n" "$as_me: error: $2" >&2 13366 1.1 christos as_fn_exit $as_status 13367 1.1 christos } # as_fn_error 13368 1.1 christos 13369 1.1 christos 13370 1.1 christos # as_fn_set_status STATUS 13371 1.1 christos # ----------------------- 13372 1.1 christos # Set $? to STATUS, without forking. 13373 1.1 christos as_fn_set_status () 13374 1.1 christos { 13375 1.1 christos return $1 13376 1.1 christos } # as_fn_set_status 13377 1.1 christos 13378 1.1 christos # as_fn_exit STATUS 13379 1.1 christos # ----------------- 13380 1.1 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13381 1.1 christos as_fn_exit () 13382 1.1 christos { 13383 1.1 christos set +e 13384 1.1 christos as_fn_set_status $1 13385 1.1 christos exit $1 13386 1.1 christos } # as_fn_exit 13387 1.1 christos 13388 1.1 christos # as_fn_unset VAR 13389 1.1 christos # --------------- 13390 1.1 christos # Portably unset VAR. 13391 1.1 christos as_fn_unset () 13392 1.1 christos { 13393 1.1 christos { eval $1=; unset $1;} 13394 1.1 christos } 13395 1.1 christos as_unset=as_fn_unset 13396 1.4 christos 13397 1.1 christos # as_fn_append VAR VALUE 13398 1.1 christos # ---------------------- 13399 1.1 christos # Append the text in VALUE to the end of the definition contained in VAR. Take 13400 1.1 christos # advantage of any shell optimizations that allow amortized linear growth over 13401 1.1 christos # repeated appends, instead of the typical quadratic growth present in naive 13402 1.1 christos # implementations. 13403 1.4 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 13404 1.4 christos then : 13405 1.1 christos eval 'as_fn_append () 13406 1.1 christos { 13407 1.1 christos eval $1+=\$2 13408 1.1 christos }' 13409 1.4 christos else case e in #( 13410 1.4 christos e) as_fn_append () 13411 1.1 christos { 13412 1.1 christos eval $1=\$$1\$2 13413 1.4 christos } ;; 13414 1.4 christos esac 13415 1.1 christos fi # as_fn_append 13416 1.1 christos 13417 1.1 christos # as_fn_arith ARG... 13418 1.1 christos # ------------------ 13419 1.1 christos # Perform arithmetic evaluation on the ARGs, and store the result in the 13420 1.1 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments 13421 1.1 christos # must be portable across $(()) and expr. 13422 1.4 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 13423 1.4 christos then : 13424 1.1 christos eval 'as_fn_arith () 13425 1.1 christos { 13426 1.1 christos as_val=$(( $* )) 13427 1.1 christos }' 13428 1.4 christos else case e in #( 13429 1.4 christos e) as_fn_arith () 13430 1.1 christos { 13431 1.1 christos as_val=`expr "$@" || test $? -eq 1` 13432 1.4 christos } ;; 13433 1.4 christos esac 13434 1.1 christos fi # as_fn_arith 13435 1.1 christos 13436 1.1 christos 13437 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 && 13438 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then 13439 1.1 christos as_expr=expr 13440 1.1 christos else 13441 1.1 christos as_expr=false 13442 1.1 christos fi 13443 1.1 christos 13444 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13445 1.1 christos as_basename=basename 13446 1.1 christos else 13447 1.1 christos as_basename=false 13448 1.1 christos fi 13449 1.1 christos 13450 1.1 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13451 1.1 christos as_dirname=dirname 13452 1.1 christos else 13453 1.1 christos as_dirname=false 13454 1.1 christos fi 13455 1.1 christos 13456 1.1 christos as_me=`$as_basename -- "$0" || 13457 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13458 1.1 christos X"$0" : 'X\(//\)$' \| \ 13459 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null || 13460 1.4 christos printf "%s\n" X/"$0" | 13461 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ 13462 1.1 christos s//\1/ 13463 1.1 christos q 13464 1.1 christos } 13465 1.1 christos /^X\/\(\/\/\)$/{ 13466 1.1 christos s//\1/ 13467 1.1 christos q 13468 1.1 christos } 13469 1.1 christos /^X\/\(\/\).*/{ 13470 1.1 christos s//\1/ 13471 1.1 christos q 13472 1.1 christos } 13473 1.1 christos s/.*/./; q'` 13474 1.1 christos 13475 1.1 christos # Avoid depending upon Character Ranges. 13476 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13477 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13478 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13479 1.1 christos as_cr_digits='0123456789' 13480 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits 13481 1.1 christos 13482 1.4 christos 13483 1.4 christos # Determine whether it's possible to make 'echo' print without a newline. 13484 1.4 christos # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 13485 1.4 christos # for compatibility with existing Makefiles. 13486 1.1 christos ECHO_C= ECHO_N= ECHO_T= 13487 1.1 christos case `echo -n x` in #((((( 13488 1.1 christos -n*) 13489 1.1 christos case `echo 'xy\c'` in 13490 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13491 1.1 christos xy) ECHO_C='\c';; 13492 1.1 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13493 1.1 christos ECHO_T=' ';; 13494 1.1 christos esac;; 13495 1.1 christos *) 13496 1.1 christos ECHO_N='-n';; 13497 1.1 christos esac 13498 1.1 christos 13499 1.4 christos # For backward compatibility with old third-party macros, we provide 13500 1.4 christos # the shell variables $as_echo and $as_echo_n. New code should use 13501 1.4 christos # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 13502 1.4 christos as_echo='printf %s\n' 13503 1.4 christos as_echo_n='printf %s' 13504 1.4 christos 13505 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 13506 1.1 christos if test -d conf$$.dir; then 13507 1.1 christos rm -f conf$$.dir/conf$$.file 13508 1.1 christos else 13509 1.1 christos rm -f conf$$.dir 13510 1.1 christos mkdir conf$$.dir 2>/dev/null 13511 1.1 christos fi 13512 1.1 christos if (echo >conf$$.file) 2>/dev/null; then 13513 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then 13514 1.1 christos as_ln_s='ln -s' 13515 1.1 christos # ... but there are two gotchas: 13516 1.4 christos # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 13517 1.4 christos # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 13518 1.4 christos # In both cases, we have to default to 'cp -pR'. 13519 1.1 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13520 1.1 christos as_ln_s='cp -pR' 13521 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then 13522 1.1 christos as_ln_s=ln 13523 1.1 christos else 13524 1.1 christos as_ln_s='cp -pR' 13525 1.1 christos fi 13526 1.1 christos else 13527 1.1 christos as_ln_s='cp -pR' 13528 1.1 christos fi 13529 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13530 1.1 christos rmdir conf$$.dir 2>/dev/null 13531 1.1 christos 13532 1.1 christos 13533 1.1 christos # as_fn_mkdir_p 13534 1.1 christos # ------------- 13535 1.1 christos # Create "$as_dir" as a directory, including parents if necessary. 13536 1.1 christos as_fn_mkdir_p () 13537 1.1 christos { 13538 1.1 christos 13539 1.1 christos case $as_dir in #( 13540 1.1 christos -*) as_dir=./$as_dir;; 13541 1.1 christos esac 13542 1.1 christos test -d "$as_dir" || eval $as_mkdir_p || { 13543 1.1 christos as_dirs= 13544 1.1 christos while :; do 13545 1.1 christos case $as_dir in #( 13546 1.4 christos *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13547 1.1 christos *) as_qdir=$as_dir;; 13548 1.1 christos esac 13549 1.1 christos as_dirs="'$as_qdir' $as_dirs" 13550 1.1 christos as_dir=`$as_dirname -- "$as_dir" || 13551 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13552 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 13553 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 13554 1.1 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13555 1.4 christos printf "%s\n" X"$as_dir" | 13556 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13557 1.1 christos s//\1/ 13558 1.1 christos q 13559 1.1 christos } 13560 1.1 christos /^X\(\/\/\)[^/].*/{ 13561 1.1 christos s//\1/ 13562 1.1 christos q 13563 1.1 christos } 13564 1.1 christos /^X\(\/\/\)$/{ 13565 1.1 christos s//\1/ 13566 1.1 christos q 13567 1.1 christos } 13568 1.1 christos /^X\(\/\).*/{ 13569 1.1 christos s//\1/ 13570 1.1 christos q 13571 1.1 christos } 13572 1.1 christos s/.*/./; q'` 13573 1.1 christos test -d "$as_dir" && break 13574 1.1 christos done 13575 1.1 christos test -z "$as_dirs" || eval "mkdir $as_dirs" 13576 1.1 christos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13577 1.1 christos 13578 1.1 christos 13579 1.1 christos } # as_fn_mkdir_p 13580 1.1 christos if mkdir -p . 2>/dev/null; then 13581 1.1 christos as_mkdir_p='mkdir -p "$as_dir"' 13582 1.1 christos else 13583 1.1 christos test -d ./-p && rmdir ./-p 13584 1.1 christos as_mkdir_p=false 13585 1.1 christos fi 13586 1.1 christos 13587 1.1 christos 13588 1.1 christos # as_fn_executable_p FILE 13589 1.1 christos # ----------------------- 13590 1.1 christos # Test if FILE is an executable regular file. 13591 1.1 christos as_fn_executable_p () 13592 1.1 christos { 13593 1.1 christos test -f "$1" && test -x "$1" 13594 1.1 christos } # as_fn_executable_p 13595 1.1 christos as_test_x='test -x' 13596 1.1 christos as_executable_p=as_fn_executable_p 13597 1.1 christos 13598 1.1 christos # Sed expression to map a string onto a valid CPP name. 13599 1.4 christos as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 13600 1.4 christos as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 13601 1.1 christos 13602 1.1 christos # Sed expression to map a string onto a valid variable name. 13603 1.4 christos as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 13604 1.4 christos as_tr_sh="eval sed '$as_sed_sh'" # deprecated 13605 1.1 christos 13606 1.1 christos 13607 1.1 christos exec 6>&1 13608 1.1 christos ## ----------------------------------- ## 13609 1.1 christos ## Main body of $CONFIG_STATUS script. ## 13610 1.1 christos ## ----------------------------------- ## 13611 1.1 christos _ASEOF 13612 1.1 christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13613 1.1 christos 13614 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13615 1.1 christos # Save the log message, to keep $0 and so on meaningful, and to 13616 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their 13617 1.1 christos # values after options handling. 13618 1.1 christos ac_log=" 13619 1.4 christos This file was extended by NSD $as_me 4.14.0, which was 13620 1.4 christos generated by GNU Autoconf 2.72. Invocation command line was 13621 1.1 christos 13622 1.1 christos CONFIG_FILES = $CONFIG_FILES 13623 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS 13624 1.1 christos CONFIG_LINKS = $CONFIG_LINKS 13625 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS 13626 1.1 christos $ $0 $@ 13627 1.1 christos 13628 1.1 christos on `(hostname || uname -n) 2>/dev/null | sed 1q` 13629 1.1 christos " 13630 1.1 christos 13631 1.1 christos _ACEOF 13632 1.1 christos 13633 1.1 christos case $ac_config_files in *" 13634 1.1 christos "*) set x $ac_config_files; shift; ac_config_files=$*;; 13635 1.1 christos esac 13636 1.1 christos 13637 1.1 christos case $ac_config_headers in *" 13638 1.1 christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13639 1.1 christos esac 13640 1.1 christos 13641 1.1 christos 13642 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13643 1.1 christos # Files that config.status was made for. 13644 1.1 christos config_files="$ac_config_files" 13645 1.1 christos config_headers="$ac_config_headers" 13646 1.1 christos 13647 1.1 christos _ACEOF 13648 1.1 christos 13649 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13650 1.1 christos ac_cs_usage="\ 13651 1.4 christos '$as_me' instantiates files and other configuration actions 13652 1.1 christos from templates according to the current configuration. Unless the files 13653 1.1 christos and actions are specified as TAGs, all are instantiated by default. 13654 1.1 christos 13655 1.1 christos Usage: $0 [OPTION]... [TAG]... 13656 1.1 christos 13657 1.1 christos -h, --help print this help, then exit 13658 1.1 christos -V, --version print version number and configuration settings, then exit 13659 1.1 christos --config print configuration, then exit 13660 1.1 christos -q, --quiet, --silent 13661 1.1 christos do not print progress messages 13662 1.1 christos -d, --debug don't remove temporary files 13663 1.1 christos --recheck update $as_me by reconfiguring in the same conditions 13664 1.1 christos --file=FILE[:TEMPLATE] 13665 1.1 christos instantiate the configuration file FILE 13666 1.1 christos --header=FILE[:TEMPLATE] 13667 1.1 christos instantiate the configuration header FILE 13668 1.1 christos 13669 1.1 christos Configuration files: 13670 1.1 christos $config_files 13671 1.1 christos 13672 1.1 christos Configuration headers: 13673 1.1 christos $config_headers 13674 1.1 christos 13675 1.3 christos Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs (at] nlnetlabs.nl>." 13676 1.1 christos 13677 1.1 christos _ACEOF 13678 1.4 christos ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 13679 1.4 christos ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 13680 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13681 1.4 christos ac_cs_config='$ac_cs_config_escaped' 13682 1.1 christos ac_cs_version="\\ 13683 1.4 christos NSD config.status 4.14.0 13684 1.4 christos configured by $0, generated by GNU Autoconf 2.72, 13685 1.1 christos with options \\"\$ac_cs_config\\" 13686 1.1 christos 13687 1.4 christos Copyright (C) 2023 Free Software Foundation, Inc. 13688 1.1 christos This config.status script is free software; the Free Software Foundation 13689 1.1 christos gives unlimited permission to copy, distribute and modify it." 13690 1.1 christos 13691 1.1 christos ac_pwd='$ac_pwd' 13692 1.1 christos srcdir='$srcdir' 13693 1.1 christos INSTALL='$INSTALL' 13694 1.1 christos AWK='$AWK' 13695 1.1 christos test -n "\$AWK" || AWK=awk 13696 1.1 christos _ACEOF 13697 1.1 christos 13698 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13699 1.1 christos # The default lists apply if the user does not specify any file. 13700 1.1 christos ac_need_defaults=: 13701 1.1 christos while test $# != 0 13702 1.1 christos do 13703 1.1 christos case $1 in 13704 1.1 christos --*=?*) 13705 1.1 christos ac_option=`expr "X$1" : 'X\([^=]*\)='` 13706 1.1 christos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13707 1.1 christos ac_shift=: 13708 1.1 christos ;; 13709 1.1 christos --*=) 13710 1.1 christos ac_option=`expr "X$1" : 'X\([^=]*\)='` 13711 1.1 christos ac_optarg= 13712 1.1 christos ac_shift=: 13713 1.1 christos ;; 13714 1.1 christos *) 13715 1.1 christos ac_option=$1 13716 1.1 christos ac_optarg=$2 13717 1.1 christos ac_shift=shift 13718 1.1 christos ;; 13719 1.1 christos esac 13720 1.1 christos 13721 1.1 christos case $ac_option in 13722 1.1 christos # Handling of the options. 13723 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13724 1.1 christos ac_cs_recheck=: ;; 13725 1.1 christos --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13726 1.4 christos printf "%s\n" "$ac_cs_version"; exit ;; 13727 1.1 christos --config | --confi | --conf | --con | --co | --c ) 13728 1.4 christos printf "%s\n" "$ac_cs_config"; exit ;; 13729 1.1 christos --debug | --debu | --deb | --de | --d | -d ) 13730 1.1 christos debug=: ;; 13731 1.1 christos --file | --fil | --fi | --f ) 13732 1.1 christos $ac_shift 13733 1.1 christos case $ac_optarg in 13734 1.4 christos *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13735 1.1 christos '') as_fn_error $? "missing file argument" ;; 13736 1.1 christos esac 13737 1.1 christos as_fn_append CONFIG_FILES " '$ac_optarg'" 13738 1.1 christos ac_need_defaults=false;; 13739 1.1 christos --header | --heade | --head | --hea ) 13740 1.1 christos $ac_shift 13741 1.1 christos case $ac_optarg in 13742 1.4 christos *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13743 1.1 christos esac 13744 1.1 christos as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13745 1.1 christos ac_need_defaults=false;; 13746 1.1 christos --he | --h) 13747 1.1 christos # Conflict between --help and --header 13748 1.4 christos as_fn_error $? "ambiguous option: '$1' 13749 1.4 christos Try '$0 --help' for more information.";; 13750 1.1 christos --help | --hel | -h ) 13751 1.4 christos printf "%s\n" "$ac_cs_usage"; exit ;; 13752 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13753 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s) 13754 1.1 christos ac_cs_silent=: ;; 13755 1.1 christos 13756 1.1 christos # This is an error. 13757 1.4 christos -*) as_fn_error $? "unrecognized option: '$1' 13758 1.4 christos Try '$0 --help' for more information." ;; 13759 1.1 christos 13760 1.1 christos *) as_fn_append ac_config_targets " $1" 13761 1.1 christos ac_need_defaults=false ;; 13762 1.1 christos 13763 1.1 christos esac 13764 1.1 christos shift 13765 1.1 christos done 13766 1.1 christos 13767 1.1 christos ac_configure_extra_args= 13768 1.1 christos 13769 1.1 christos if $ac_cs_silent; then 13770 1.1 christos exec 6>/dev/null 13771 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent" 13772 1.1 christos fi 13773 1.1 christos 13774 1.1 christos _ACEOF 13775 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13776 1.1 christos if \$ac_cs_recheck; then 13777 1.1 christos set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13778 1.1 christos shift 13779 1.4 christos \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 13780 1.1 christos CONFIG_SHELL='$SHELL' 13781 1.1 christos export CONFIG_SHELL 13782 1.1 christos exec "\$@" 13783 1.1 christos fi 13784 1.1 christos 13785 1.1 christos _ACEOF 13786 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13787 1.1 christos exec 5>>config.log 13788 1.1 christos { 13789 1.1 christos echo 13790 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13791 1.1 christos ## Running $as_me. ## 13792 1.1 christos _ASBOX 13793 1.4 christos printf "%s\n" "$ac_log" 13794 1.1 christos } >&5 13795 1.1 christos 13796 1.1 christos _ACEOF 13797 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13798 1.1 christos _ACEOF 13799 1.1 christos 13800 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13801 1.1 christos 13802 1.1 christos # Handling of arguments. 13803 1.1 christos for ac_config_target in $ac_config_targets 13804 1.1 christos do 13805 1.1 christos case $ac_config_target in 13806 1.1 christos "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13807 1.1 christos "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13808 1.2 christos "$dnstap_config") CONFIG_FILES="$CONFIG_FILES $dnstap_config" ;; 13809 1.1 christos 13810 1.4 christos *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13811 1.1 christos esac 13812 1.1 christos done 13813 1.1 christos 13814 1.1 christos 13815 1.1 christos # If the user did not use the arguments to specify the items to instantiate, 13816 1.1 christos # then the envvar interface is used. Set only those that are not. 13817 1.1 christos # We use the long form for the default assignment because of an extremely 13818 1.1 christos # bizarre bug on SunOS 4.1.3. 13819 1.1 christos if $ac_need_defaults; then 13820 1.4 christos test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13821 1.4 christos test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13822 1.1 christos fi 13823 1.1 christos 13824 1.1 christos # Have a temporary directory for convenience. Make it in the build tree 13825 1.1 christos # simply because there is no reason against having it here, and in addition, 13826 1.1 christos # creating and moving files from /tmp can sometimes cause problems. 13827 1.1 christos # Hook for its removal unless debugging. 13828 1.1 christos # Note that there is a small window in which the directory will not be cleaned: 13829 1.4 christos # after its creation but before its name has been assigned to '$tmp'. 13830 1.1 christos $debug || 13831 1.1 christos { 13832 1.1 christos tmp= ac_tmp= 13833 1.1 christos trap 'exit_status=$? 13834 1.1 christos : "${ac_tmp:=$tmp}" 13835 1.1 christos { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13836 1.1 christos ' 0 13837 1.1 christos trap 'as_fn_exit 1' 1 2 13 15 13838 1.1 christos } 13839 1.1 christos # Create a (secure) tmp directory for tmp files. 13840 1.1 christos 13841 1.1 christos { 13842 1.1 christos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13843 1.1 christos test -d "$tmp" 13844 1.1 christos } || 13845 1.1 christos { 13846 1.1 christos tmp=./conf$$-$RANDOM 13847 1.1 christos (umask 077 && mkdir "$tmp") 13848 1.1 christos } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13849 1.1 christos ac_tmp=$tmp 13850 1.1 christos 13851 1.1 christos # Set up the scripts for CONFIG_FILES section. 13852 1.1 christos # No need to generate them if there are no CONFIG_FILES. 13853 1.4 christos # This happens for instance with './config.status config.h'. 13854 1.1 christos if test -n "$CONFIG_FILES"; then 13855 1.1 christos 13856 1.1 christos 13857 1.1 christos ac_cr=`echo X | tr X '\015'` 13858 1.1 christos # On cygwin, bash can eat \r inside `` if the user requested igncr. 13859 1.1 christos # But we know of no other shell where ac_cr would be empty at this 13860 1.1 christos # point, so we can use a bashism as a fallback. 13861 1.1 christos if test "x$ac_cr" = x; then 13862 1.1 christos eval ac_cr=\$\'\\r\' 13863 1.1 christos fi 13864 1.1 christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13865 1.1 christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13866 1.1 christos ac_cs_awk_cr='\\r' 13867 1.1 christos else 13868 1.1 christos ac_cs_awk_cr=$ac_cr 13869 1.1 christos fi 13870 1.1 christos 13871 1.1 christos echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13872 1.1 christos _ACEOF 13873 1.1 christos 13874 1.1 christos 13875 1.1 christos { 13876 1.1 christos echo "cat >conf$$subs.awk <<_ACEOF" && 13877 1.1 christos echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13878 1.1 christos echo "_ACEOF" 13879 1.1 christos } >conf$$subs.sh || 13880 1.1 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13881 1.1 christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13882 1.1 christos ac_delim='%!_!# ' 13883 1.1 christos for ac_last_try in false false false false false :; do 13884 1.1 christos . ./conf$$subs.sh || 13885 1.1 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13886 1.1 christos 13887 1.1 christos ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13888 1.1 christos if test $ac_delim_n = $ac_delim_num; then 13889 1.1 christos break 13890 1.1 christos elif $ac_last_try; then 13891 1.1 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13892 1.1 christos else 13893 1.1 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13894 1.1 christos fi 13895 1.1 christos done 13896 1.1 christos rm -f conf$$subs.sh 13897 1.1 christos 13898 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13899 1.1 christos cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13900 1.1 christos _ACEOF 13901 1.1 christos sed -n ' 13902 1.1 christos h 13903 1.1 christos s/^/S["/; s/!.*/"]=/ 13904 1.1 christos p 13905 1.1 christos g 13906 1.1 christos s/^[^!]*!// 13907 1.1 christos :repl 13908 1.1 christos t repl 13909 1.1 christos s/'"$ac_delim"'$// 13910 1.1 christos t delim 13911 1.1 christos :nl 13912 1.1 christos h 13913 1.1 christos s/\(.\{148\}\)..*/\1/ 13914 1.1 christos t more1 13915 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13916 1.1 christos p 13917 1.1 christos n 13918 1.1 christos b repl 13919 1.1 christos :more1 13920 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13921 1.1 christos p 13922 1.1 christos g 13923 1.1 christos s/.\{148\}// 13924 1.1 christos t nl 13925 1.1 christos :delim 13926 1.1 christos h 13927 1.1 christos s/\(.\{148\}\)..*/\1/ 13928 1.1 christos t more2 13929 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/"/ 13930 1.1 christos p 13931 1.1 christos b 13932 1.1 christos :more2 13933 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13934 1.1 christos p 13935 1.1 christos g 13936 1.1 christos s/.\{148\}// 13937 1.1 christos t delim 13938 1.1 christos ' <conf$$subs.awk | sed ' 13939 1.1 christos /^[^""]/{ 13940 1.1 christos N 13941 1.1 christos s/\n// 13942 1.1 christos } 13943 1.1 christos ' >>$CONFIG_STATUS || ac_write_fail=1 13944 1.1 christos rm -f conf$$subs.awk 13945 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13946 1.1 christos _ACAWK 13947 1.1 christos cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13948 1.1 christos for (key in S) S_is_set[key] = 1 13949 1.1 christos FS = "" 13950 1.1 christos 13951 1.1 christos } 13952 1.1 christos { 13953 1.1 christos line = $ 0 13954 1.1 christos nfields = split(line, field, "@") 13955 1.1 christos substed = 0 13956 1.1 christos len = length(field[1]) 13957 1.1 christos for (i = 2; i < nfields; i++) { 13958 1.1 christos key = field[i] 13959 1.1 christos keylen = length(key) 13960 1.1 christos if (S_is_set[key]) { 13961 1.1 christos value = S[key] 13962 1.1 christos line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13963 1.1 christos len += length(value) + length(field[++i]) 13964 1.1 christos substed = 1 13965 1.1 christos } else 13966 1.1 christos len += 1 + keylen 13967 1.1 christos } 13968 1.1 christos 13969 1.1 christos print line 13970 1.1 christos } 13971 1.1 christos 13972 1.1 christos _ACAWK 13973 1.1 christos _ACEOF 13974 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13975 1.1 christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13976 1.1 christos sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13977 1.1 christos else 13978 1.1 christos cat 13979 1.1 christos fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13980 1.1 christos || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13981 1.1 christos _ACEOF 13982 1.1 christos 13983 1.1 christos # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13984 1.1 christos # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13985 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty 13986 1.1 christos # (actually we leave an empty line to preserve line numbers). 13987 1.1 christos if test "x$srcdir" = x.; then 13988 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13989 1.1 christos h 13990 1.1 christos s/// 13991 1.1 christos s/^/:/ 13992 1.1 christos s/[ ]*$/:/ 13993 1.1 christos s/:\$(srcdir):/:/g 13994 1.1 christos s/:\${srcdir}:/:/g 13995 1.1 christos s/:@srcdir@:/:/g 13996 1.1 christos s/^:*// 13997 1.1 christos s/:*$// 13998 1.1 christos x 13999 1.1 christos s/\(=[ ]*\).*/\1/ 14000 1.1 christos G 14001 1.1 christos s/\n// 14002 1.1 christos s/^[^=]*=[ ]*$// 14003 1.1 christos }' 14004 1.1 christos fi 14005 1.1 christos 14006 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14007 1.1 christos fi # test -n "$CONFIG_FILES" 14008 1.1 christos 14009 1.1 christos # Set up the scripts for CONFIG_HEADERS section. 14010 1.1 christos # No need to generate them if there are no CONFIG_HEADERS. 14011 1.4 christos # This happens for instance with './config.status Makefile'. 14012 1.1 christos if test -n "$CONFIG_HEADERS"; then 14013 1.1 christos cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14014 1.1 christos BEGIN { 14015 1.1 christos _ACEOF 14016 1.1 christos 14017 1.4 christos # Transform confdefs.h into an awk script 'defines.awk', embedded as 14018 1.1 christos # here-document in config.status, that substitutes the proper values into 14019 1.1 christos # config.h.in to produce config.h. 14020 1.1 christos 14021 1.1 christos # Create a delimiter string that does not exist in confdefs.h, to ease 14022 1.1 christos # handling of long lines. 14023 1.1 christos ac_delim='%!_!# ' 14024 1.1 christos for ac_last_try in false false :; do 14025 1.1 christos ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14026 1.1 christos if test -z "$ac_tt"; then 14027 1.1 christos break 14028 1.1 christos elif $ac_last_try; then 14029 1.1 christos as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14030 1.1 christos else 14031 1.1 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14032 1.1 christos fi 14033 1.1 christos done 14034 1.1 christos 14035 1.1 christos # For the awk script, D is an array of macro values keyed by name, 14036 1.1 christos # likewise P contains macro parameters if any. Preserve backslash 14037 1.1 christos # newline sequences. 14038 1.1 christos 14039 1.1 christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14040 1.1 christos sed -n ' 14041 1.1 christos s/.\{148\}/&'"$ac_delim"'/g 14042 1.1 christos t rset 14043 1.1 christos :rset 14044 1.1 christos s/^[ ]*#[ ]*define[ ][ ]*/ / 14045 1.1 christos t def 14046 1.1 christos d 14047 1.1 christos :def 14048 1.1 christos s/\\$// 14049 1.1 christos t bsnl 14050 1.1 christos s/["\\]/\\&/g 14051 1.1 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14052 1.1 christos D["\1"]=" \3"/p 14053 1.1 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14054 1.1 christos d 14055 1.1 christos :bsnl 14056 1.1 christos s/["\\]/\\&/g 14057 1.1 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14058 1.1 christos D["\1"]=" \3\\\\\\n"\\/p 14059 1.1 christos t cont 14060 1.1 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14061 1.1 christos t cont 14062 1.1 christos d 14063 1.1 christos :cont 14064 1.1 christos n 14065 1.1 christos s/.\{148\}/&'"$ac_delim"'/g 14066 1.1 christos t clear 14067 1.1 christos :clear 14068 1.1 christos s/\\$// 14069 1.1 christos t bsnlc 14070 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/"/p 14071 1.1 christos d 14072 1.1 christos :bsnlc 14073 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14074 1.1 christos b cont 14075 1.1 christos ' <confdefs.h | sed ' 14076 1.1 christos s/'"$ac_delim"'/"\\\ 14077 1.1 christos "/g' >>$CONFIG_STATUS || ac_write_fail=1 14078 1.1 christos 14079 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14080 1.1 christos for (key in D) D_is_set[key] = 1 14081 1.1 christos FS = "" 14082 1.1 christos } 14083 1.1 christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14084 1.1 christos line = \$ 0 14085 1.1 christos split(line, arg, " ") 14086 1.1 christos if (arg[1] == "#") { 14087 1.1 christos defundef = arg[2] 14088 1.1 christos mac1 = arg[3] 14089 1.1 christos } else { 14090 1.1 christos defundef = substr(arg[1], 2) 14091 1.1 christos mac1 = arg[2] 14092 1.1 christos } 14093 1.1 christos split(mac1, mac2, "(") #) 14094 1.1 christos macro = mac2[1] 14095 1.1 christos prefix = substr(line, 1, index(line, defundef) - 1) 14096 1.1 christos if (D_is_set[macro]) { 14097 1.1 christos # Preserve the white space surrounding the "#". 14098 1.1 christos print prefix "define", macro P[macro] D[macro] 14099 1.1 christos next 14100 1.1 christos } else { 14101 1.1 christos # Replace #undef with comments. This is necessary, for example, 14102 1.1 christos # in the case of _POSIX_SOURCE, which is predefined and required 14103 1.1 christos # on some systems where configure will not decide to define it. 14104 1.1 christos if (defundef == "undef") { 14105 1.1 christos print "/*", prefix defundef, macro, "*/" 14106 1.1 christos next 14107 1.1 christos } 14108 1.1 christos } 14109 1.1 christos } 14110 1.1 christos { print } 14111 1.1 christos _ACAWK 14112 1.1 christos _ACEOF 14113 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14114 1.1 christos as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14115 1.1 christos fi # test -n "$CONFIG_HEADERS" 14116 1.1 christos 14117 1.1 christos 14118 1.1 christos eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 14119 1.1 christos shift 14120 1.1 christos for ac_tag 14121 1.1 christos do 14122 1.1 christos case $ac_tag in 14123 1.1 christos :[FHLC]) ac_mode=$ac_tag; continue;; 14124 1.1 christos esac 14125 1.1 christos case $ac_mode$ac_tag in 14126 1.1 christos :[FHL]*:*);; 14127 1.4 christos :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 14128 1.1 christos :[FH]-) ac_tag=-:-;; 14129 1.1 christos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14130 1.1 christos esac 14131 1.1 christos ac_save_IFS=$IFS 14132 1.1 christos IFS=: 14133 1.1 christos set x $ac_tag 14134 1.1 christos IFS=$ac_save_IFS 14135 1.1 christos shift 14136 1.1 christos ac_file=$1 14137 1.1 christos shift 14138 1.1 christos 14139 1.1 christos case $ac_mode in 14140 1.1 christos :L) ac_source=$1;; 14141 1.1 christos :[FH]) 14142 1.1 christos ac_file_inputs= 14143 1.1 christos for ac_f 14144 1.1 christos do 14145 1.1 christos case $ac_f in 14146 1.1 christos -) ac_f="$ac_tmp/stdin";; 14147 1.1 christos *) # Look for the file first in the build tree, then in the source tree 14148 1.1 christos # (if the path is not absolute). The absolute path cannot be DOS-style, 14149 1.4 christos # because $ac_f cannot contain ':'. 14150 1.1 christos test -f "$ac_f" || 14151 1.1 christos case $ac_f in 14152 1.1 christos [\\/$]*) false;; 14153 1.1 christos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14154 1.1 christos esac || 14155 1.4 christos as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 14156 1.1 christos esac 14157 1.4 christos case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14158 1.1 christos as_fn_append ac_file_inputs " '$ac_f'" 14159 1.1 christos done 14160 1.1 christos 14161 1.4 christos # Let's still pretend it is 'configure' which instantiates (i.e., don't 14162 1.1 christos # use $as_me), people would be surprised to read: 14163 1.1 christos # /* config.h. Generated by config.status. */ 14164 1.1 christos configure_input='Generated from '` 14165 1.4 christos printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14166 1.1 christos `' by configure.' 14167 1.1 christos if test x"$ac_file" != x-; then 14168 1.1 christos configure_input="$ac_file. $configure_input" 14169 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14170 1.4 christos printf "%s\n" "$as_me: creating $ac_file" >&6;} 14171 1.1 christos fi 14172 1.1 christos # Neutralize special characters interpreted by sed in replacement strings. 14173 1.1 christos case $configure_input in #( 14174 1.1 christos *\&* | *\|* | *\\* ) 14175 1.4 christos ac_sed_conf_input=`printf "%s\n" "$configure_input" | 14176 1.1 christos sed 's/[\\\\&|]/\\\\&/g'`;; #( 14177 1.1 christos *) ac_sed_conf_input=$configure_input;; 14178 1.1 christos esac 14179 1.1 christos 14180 1.1 christos case $ac_tag in 14181 1.1 christos *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14182 1.1 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14183 1.1 christos esac 14184 1.1 christos ;; 14185 1.1 christos esac 14186 1.1 christos 14187 1.1 christos ac_dir=`$as_dirname -- "$ac_file" || 14188 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14189 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \ 14190 1.1 christos X"$ac_file" : 'X\(//\)$' \| \ 14191 1.1 christos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14192 1.4 christos printf "%s\n" X"$ac_file" | 14193 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14194 1.1 christos s//\1/ 14195 1.1 christos q 14196 1.1 christos } 14197 1.1 christos /^X\(\/\/\)[^/].*/{ 14198 1.1 christos s//\1/ 14199 1.1 christos q 14200 1.1 christos } 14201 1.1 christos /^X\(\/\/\)$/{ 14202 1.1 christos s//\1/ 14203 1.1 christos q 14204 1.1 christos } 14205 1.1 christos /^X\(\/\).*/{ 14206 1.1 christos s//\1/ 14207 1.1 christos q 14208 1.1 christos } 14209 1.1 christos s/.*/./; q'` 14210 1.1 christos as_dir="$ac_dir"; as_fn_mkdir_p 14211 1.1 christos ac_builddir=. 14212 1.1 christos 14213 1.1 christos case "$ac_dir" in 14214 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14215 1.1 christos *) 14216 1.4 christos ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 14217 1.1 christos # A ".." for each directory in $ac_dir_suffix. 14218 1.4 christos ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14219 1.1 christos case $ac_top_builddir_sub in 14220 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14221 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14222 1.1 christos esac ;; 14223 1.1 christos esac 14224 1.1 christos ac_abs_top_builddir=$ac_pwd 14225 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix 14226 1.1 christos # for backward compatibility: 14227 1.1 christos ac_top_builddir=$ac_top_build_prefix 14228 1.1 christos 14229 1.1 christos case $srcdir in 14230 1.1 christos .) # We are building in place. 14231 1.1 christos ac_srcdir=. 14232 1.1 christos ac_top_srcdir=$ac_top_builddir_sub 14233 1.1 christos ac_abs_top_srcdir=$ac_pwd ;; 14234 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name. 14235 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 14236 1.1 christos ac_top_srcdir=$srcdir 14237 1.1 christos ac_abs_top_srcdir=$srcdir ;; 14238 1.1 christos *) # Relative name. 14239 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14240 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir 14241 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14242 1.1 christos esac 14243 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14244 1.1 christos 14245 1.1 christos 14246 1.1 christos case $ac_mode in 14247 1.1 christos :F) 14248 1.1 christos # 14249 1.1 christos # CONFIG_FILE 14250 1.1 christos # 14251 1.1 christos 14252 1.1 christos case $INSTALL in 14253 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14254 1.1 christos *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14255 1.1 christos esac 14256 1.1 christos _ACEOF 14257 1.1 christos 14258 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14259 1.1 christos # If the template does not know about datarootdir, expand it. 14260 1.1 christos # FIXME: This hack should be removed a few years after 2.60. 14261 1.1 christos ac_datarootdir_hack=; ac_datarootdir_seen= 14262 1.1 christos ac_sed_dataroot=' 14263 1.1 christos /datarootdir/ { 14264 1.1 christos p 14265 1.1 christos q 14266 1.1 christos } 14267 1.1 christos /@datadir@/p 14268 1.1 christos /@docdir@/p 14269 1.1 christos /@infodir@/p 14270 1.1 christos /@localedir@/p 14271 1.1 christos /@mandir@/p' 14272 1.1 christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14273 1.1 christos *datarootdir*) ac_datarootdir_seen=yes;; 14274 1.1 christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14275 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14276 1.4 christos printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14277 1.1 christos _ACEOF 14278 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14279 1.1 christos ac_datarootdir_hack=' 14280 1.1 christos s&@datadir@&$datadir&g 14281 1.1 christos s&@docdir@&$docdir&g 14282 1.1 christos s&@infodir@&$infodir&g 14283 1.1 christos s&@localedir@&$localedir&g 14284 1.1 christos s&@mandir@&$mandir&g 14285 1.1 christos s&\\\${datarootdir}&$datarootdir&g' ;; 14286 1.1 christos esac 14287 1.1 christos _ACEOF 14288 1.1 christos 14289 1.4 christos # Neutralize VPATH when '$srcdir' = '.'. 14290 1.1 christos # Shell code in configure.ac might set extrasub. 14291 1.1 christos # FIXME: do we really want to maintain this feature? 14292 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14293 1.1 christos ac_sed_extra="$ac_vpsub 14294 1.1 christos $extrasub 14295 1.1 christos _ACEOF 14296 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14297 1.1 christos :t 14298 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14299 1.1 christos s|@configure_input@|$ac_sed_conf_input|;t t 14300 1.1 christos s&@top_builddir@&$ac_top_builddir_sub&;t t 14301 1.1 christos s&@top_build_prefix@&$ac_top_build_prefix&;t t 14302 1.1 christos s&@srcdir@&$ac_srcdir&;t t 14303 1.1 christos s&@abs_srcdir@&$ac_abs_srcdir&;t t 14304 1.1 christos s&@top_srcdir@&$ac_top_srcdir&;t t 14305 1.1 christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14306 1.1 christos s&@builddir@&$ac_builddir&;t t 14307 1.1 christos s&@abs_builddir@&$ac_abs_builddir&;t t 14308 1.1 christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14309 1.1 christos s&@INSTALL@&$ac_INSTALL&;t t 14310 1.1 christos $ac_datarootdir_hack 14311 1.1 christos " 14312 1.1 christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14313 1.1 christos >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14314 1.1 christos 14315 1.1 christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14316 1.1 christos { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14317 1.1 christos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14318 1.1 christos "$ac_tmp/out"`; test -z "$ac_out"; } && 14319 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 14320 1.1 christos which seems to be undefined. Please make sure it is defined" >&5 14321 1.4 christos printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 14322 1.1 christos which seems to be undefined. Please make sure it is defined" >&2;} 14323 1.1 christos 14324 1.1 christos rm -f "$ac_tmp/stdin" 14325 1.1 christos case $ac_file in 14326 1.1 christos -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14327 1.1 christos *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14328 1.1 christos esac \ 14329 1.1 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14330 1.1 christos ;; 14331 1.1 christos :H) 14332 1.1 christos # 14333 1.1 christos # CONFIG_HEADER 14334 1.1 christos # 14335 1.1 christos if test x"$ac_file" != x-; then 14336 1.1 christos { 14337 1.4 christos printf "%s\n" "/* $configure_input */" >&1 \ 14338 1.1 christos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14339 1.1 christos } >"$ac_tmp/config.h" \ 14340 1.1 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14341 1.1 christos if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14342 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14343 1.4 christos printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 14344 1.1 christos else 14345 1.1 christos rm -f "$ac_file" 14346 1.1 christos mv "$ac_tmp/config.h" "$ac_file" \ 14347 1.1 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14348 1.1 christos fi 14349 1.1 christos else 14350 1.4 christos printf "%s\n" "/* $configure_input */" >&1 \ 14351 1.1 christos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14352 1.1 christos || as_fn_error $? "could not create -" "$LINENO" 5 14353 1.1 christos fi 14354 1.1 christos ;; 14355 1.1 christos 14356 1.1 christos 14357 1.1 christos esac 14358 1.1 christos 14359 1.1 christos done # for ac_tag 14360 1.1 christos 14361 1.1 christos 14362 1.1 christos as_fn_exit 0 14363 1.1 christos _ACEOF 14364 1.1 christos ac_clean_files=$ac_clean_files_save 14365 1.1 christos 14366 1.1 christos test $ac_write_fail = 0 || 14367 1.1 christos as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14368 1.1 christos 14369 1.1 christos 14370 1.1 christos # configure is writing to config.log, and then calls config.status. 14371 1.1 christos # config.status does its own redirection, appending to config.log. 14372 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open 14373 1.1 christos # by configure, so config.status won't be able to write to it; its 14374 1.1 christos # output is simply discarded. So we exec the FD to /dev/null, 14375 1.1 christos # effectively closing config.log, so it can be properly (re)opened and 14376 1.1 christos # appended to by config.status. When coming back to configure, we 14377 1.1 christos # need to make the FD available again. 14378 1.1 christos if test "$no_create" != yes; then 14379 1.1 christos ac_cs_success=: 14380 1.1 christos ac_config_status_args= 14381 1.1 christos test "$silent" = yes && 14382 1.1 christos ac_config_status_args="$ac_config_status_args --quiet" 14383 1.1 christos exec 5>/dev/null 14384 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14385 1.1 christos exec 5>>config.log 14386 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14387 1.1 christos # would make configure fail if this is the last instruction. 14388 1.1 christos $ac_cs_success || as_fn_exit 1 14389 1.1 christos fi 14390 1.4 christos 14391 1.4 christos # 14392 1.4 christos # CONFIG_SUBDIRS section. 14393 1.4 christos # 14394 1.4 christos if test "$no_recursion" != yes; then 14395 1.4 christos 14396 1.4 christos # Remove --cache-file, --srcdir, and --disable-option-checking arguments 14397 1.4 christos # so they do not pile up. 14398 1.4 christos ac_sub_configure_args= 14399 1.4 christos ac_prev= 14400 1.4 christos eval "set x $ac_configure_args" 14401 1.4 christos shift 14402 1.4 christos for ac_arg 14403 1.4 christos do 14404 1.4 christos if test -n "$ac_prev"; then 14405 1.4 christos ac_prev= 14406 1.4 christos continue 14407 1.4 christos fi 14408 1.4 christos case $ac_arg in 14409 1.4 christos -cache-file | --cache-file | --cache-fil | --cache-fi \ 14410 1.4 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 14411 1.4 christos ac_prev=cache_file ;; 14412 1.4 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 14413 1.4 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 14414 1.4 christos | --c=*) 14415 1.4 christos ;; 14416 1.4 christos --config-cache | -C) 14417 1.4 christos ;; 14418 1.4 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 14419 1.4 christos ac_prev=srcdir ;; 14420 1.4 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 14421 1.4 christos ;; 14422 1.4 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 14423 1.4 christos ac_prev=prefix ;; 14424 1.4 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 14425 1.4 christos ;; 14426 1.4 christos --disable-option-checking) 14427 1.4 christos ;; 14428 1.4 christos *) 14429 1.4 christos case $ac_arg in 14430 1.4 christos *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 14431 1.4 christos esac 14432 1.4 christos as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 14433 1.4 christos esac 14434 1.4 christos done 14435 1.4 christos 14436 1.4 christos # Always prepend --prefix to ensure using the same prefix 14437 1.4 christos # in subdir configurations. 14438 1.4 christos ac_arg="--prefix=$prefix" 14439 1.4 christos case $ac_arg in 14440 1.4 christos *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 14441 1.4 christos esac 14442 1.4 christos ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 14443 1.4 christos 14444 1.4 christos # Pass --silent 14445 1.4 christos if test "$silent" = yes; then 14446 1.4 christos ac_sub_configure_args="--silent $ac_sub_configure_args" 14447 1.4 christos fi 14448 1.4 christos 14449 1.4 christos # Always prepend --disable-option-checking to silence warnings, since 14450 1.4 christos # different subdirs can have different --enable and --with options. 14451 1.4 christos ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 14452 1.4 christos 14453 1.4 christos ac_popdir=`pwd` 14454 1.4 christos for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 14455 1.4 christos 14456 1.4 christos # Do not complain, so a configure script can configure whichever 14457 1.4 christos # parts of a large source tree are present. 14458 1.4 christos test -d "$srcdir/$ac_dir" || continue 14459 1.4 christos 14460 1.4 christos ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 14461 1.4 christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 14462 1.4 christos printf "%s\n" "$ac_msg" >&6 14463 1.4 christos as_dir="$ac_dir"; as_fn_mkdir_p 14464 1.4 christos ac_builddir=. 14465 1.4 christos 14466 1.4 christos case "$ac_dir" in 14467 1.4 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14468 1.4 christos *) 14469 1.4 christos ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 14470 1.4 christos # A ".." for each directory in $ac_dir_suffix. 14471 1.4 christos ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14472 1.4 christos case $ac_top_builddir_sub in 14473 1.4 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14474 1.4 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14475 1.4 christos esac ;; 14476 1.4 christos esac 14477 1.4 christos ac_abs_top_builddir=$ac_pwd 14478 1.4 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix 14479 1.4 christos # for backward compatibility: 14480 1.4 christos ac_top_builddir=$ac_top_build_prefix 14481 1.4 christos 14482 1.4 christos case $srcdir in 14483 1.4 christos .) # We are building in place. 14484 1.4 christos ac_srcdir=. 14485 1.4 christos ac_top_srcdir=$ac_top_builddir_sub 14486 1.4 christos ac_abs_top_srcdir=$ac_pwd ;; 14487 1.4 christos [\\/]* | ?:[\\/]* ) # Absolute name. 14488 1.4 christos ac_srcdir=$srcdir$ac_dir_suffix; 14489 1.4 christos ac_top_srcdir=$srcdir 14490 1.4 christos ac_abs_top_srcdir=$srcdir ;; 14491 1.4 christos *) # Relative name. 14492 1.4 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14493 1.4 christos ac_top_srcdir=$ac_top_build_prefix$srcdir 14494 1.4 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14495 1.4 christos esac 14496 1.4 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14497 1.4 christos 14498 1.4 christos 14499 1.4 christos cd "$ac_dir" 14500 1.4 christos 14501 1.4 christos # Check for configure.gnu first; this name is used for a wrapper for 14502 1.4 christos # Metaconfig's "Configure" on case-insensitive file systems. 14503 1.4 christos if test -f "$ac_srcdir/configure.gnu"; then 14504 1.4 christos ac_sub_configure=$ac_srcdir/configure.gnu 14505 1.4 christos elif test -f "$ac_srcdir/configure"; then 14506 1.4 christos ac_sub_configure=$ac_srcdir/configure 14507 1.4 christos else 14508 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 14509 1.4 christos printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 14510 1.4 christos ac_sub_configure= 14511 1.4 christos fi 14512 1.4 christos 14513 1.4 christos # The recursion is here. 14514 1.4 christos if test -n "$ac_sub_configure"; then 14515 1.4 christos # Make the cache file name correct relative to the subdirectory. 14516 1.4 christos case $cache_file in 14517 1.4 christos [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 14518 1.4 christos *) # Relative name. 14519 1.4 christos ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 14520 1.4 christos esac 14521 1.4 christos 14522 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 14523 1.4 christos printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 14524 1.4 christos # The eval makes quoting arguments work. 14525 1.4 christos eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 14526 1.4 christos --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 14527 1.4 christos as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 14528 1.4 christos fi 14529 1.4 christos 14530 1.4 christos cd "$ac_popdir" 14531 1.4 christos done 14532 1.4 christos fi 14533 1.1 christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14534 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14535 1.4 christos printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14536 1.4 christos fi 14537 1.4 christos 14538 1.4 christos # If dnstap config has changed, overwrite it. 14539 1.4 christos if test -n "$dnstap_config"; then 14540 1.4 christos if test ! -f "$dnstap_config_out"; then 14541 1.4 christos mv "$dnstap_config_tmp" "$dnstap_config_out" || as_fn_error $? "Could not create $dnstap_config_out" "$LINENO" 5 14542 1.4 christos else if diff "$dnstap_config_out" "$dnstap_config_tmp" >/dev/null 2>&1; then 14543 1.4 christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: In $srcdir: $dnstap_config_out is unchanged" >&5 14544 1.4 christos printf "%s\n" "$as_me: In $srcdir: $dnstap_config_out is unchanged" >&6;} 14545 1.4 christos rm -f "$dnstap_config_tmp" 14546 1.4 christos else 14547 1.4 christos rm -f "$dnstap_config_out" 14548 1.4 christos mv "$dnstap_config_tmp" "$dnstap_config_out" || as_fn_error $? "Could not create $dnstap_config_out" "$LINENO" 5 14549 1.4 christos fi 14550 1.4 christos fi 14551 1.1 christos fi 14552 1.1 christos 14553