1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for NSD 4.9.1. 4# 5# Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://github.com/NLnetLabs/nsd/issues or 272$0: nsd-bugs@nlnetlabs.nl about your system, including any 273$0: error possibly output before this message. Then install 274$0: a modern shell, or manually run the script under such a 275$0: shell if you do have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592test -n "$DJDIR" || exec 7<&0 </dev/null 593exec 6>&1 594 595# Name of the host. 596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597# so uname gets run too. 598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600# 601# Initializations. 602# 603ac_default_prefix=/usr/local 604ac_clean_files= 605ac_config_libobj_dir=. 606LIBOBJS= 607cross_compiling=no 608subdirs= 609MFLAGS= 610MAKEFLAGS= 611 612# Identity of this package. 613PACKAGE_NAME='NSD' 614PACKAGE_TARNAME='nsd' 615PACKAGE_VERSION='4.9.1' 616PACKAGE_STRING='NSD 4.9.1' 617PACKAGE_BUGREPORT='https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl' 618PACKAGE_URL='' 619 620# Factoring default headers for most tests. 621ac_includes_default="\ 622#include <stddef.h> 623#ifdef HAVE_STDIO_H 624# include <stdio.h> 625#endif 626#ifdef HAVE_STDLIB_H 627# include <stdlib.h> 628#endif 629#ifdef HAVE_STRING_H 630# include <string.h> 631#endif 632#ifdef HAVE_INTTYPES_H 633# include <inttypes.h> 634#endif 635#ifdef HAVE_STDINT_H 636# include <stdint.h> 637#endif 638#ifdef HAVE_STRINGS_H 639# include <strings.h> 640#endif 641#ifdef HAVE_SYS_TYPES_H 642# include <sys/types.h> 643#endif 644#ifdef HAVE_SYS_STAT_H 645# include <sys/stat.h> 646#endif 647#ifdef HAVE_UNISTD_H 648# include <unistd.h> 649#endif" 650 651ac_header_c_list= 652ac_func_c_list= 653ac_subst_vars='LTLIBOBJS 654SYSTEMD_DAEMON_LIBS 655SYSTEMD_DAEMON_CFLAGS 656SYSTEMD_LIBS 657SYSTEMD_CFLAGS 658PKG_CONFIG_LIBDIR 659PKG_CONFIG_PATH 660PKG_CONFIG 661DNSTAP_OBJ 662DNSTAP_SRC 663opt_dnstap_socket_path 664ENABLE_DNSTAP 665PROTOC_C 666SSL_LIBS 667HAVE_SSL 668ratelimit_default 669ratelimit 670host_os 671host_vendor 672host_cpu 673host 674build_os 675build_vendor 676build_cpu 677build 678LIBOBJS 679CPP 680INSTALL_DATA 681INSTALL_SCRIPT 682INSTALL_PROGRAM 683LN_S 684YFLAGS 685LEXLIB 686LEX_OUTPUT_ROOT 687user 688chrootdir 689xfrdir 690zonelistfile 691xfrdfile 692zonesdir 693piddir 694pidfile 695logfile 696nsd_conf_file 697configdir 698OBJEXT 699EXEEXT 700ac_ct_CC 701CPPFLAGS 702LDFLAGS 703CFLAGS 704CC 705YACC 706LEX 707EGREP 708GREP 709AWK 710SED 711target_alias 712host_alias 713build_alias 714LIBS 715ECHO_T 716ECHO_N 717ECHO_C 718DEFS 719mandir 720localedir 721libdir 722psdir 723pdfdir 724dvidir 725htmldir 726infodir 727docdir 728oldincludedir 729includedir 730runstatedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_URL 743PACKAGE_BUGREPORT 744PACKAGE_STRING 745PACKAGE_VERSION 746PACKAGE_TARNAME 747PACKAGE_NAME 748PATH_SEPARATOR 749SHELL' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753with_configdir 754with_nsd_conf_file 755with_logfile 756with_pidfile 757with_dbfile 758with_zonesdir 759with_xfrdfile 760with_zonelistfile 761with_xfrdir 762with_chroot 763with_user 764enable_flto 765enable_pie 766enable_relro_now 767with_libevent 768enable_largefile 769enable_recvmmsg 770with_facility 771with_tcp_timeout 772enable_root_server 773enable_ipv6 774enable_bind8_stats 775enable_zone_stats 776enable_checking 777enable_log_role 778enable_memclean 779enable_ratelimit 780enable_ratelimit_default_is_off 781with_ssl 782enable_nsec3 783enable_minimal_responses 784enable_mmap 785enable_radix_tree 786enable_packed 787enable_dnstap 788with_dnstap_socket_path 789with_protobuf_c 790with_libfstrm 791enable_systemd 792enable_tcp_fastopen 793' 794 ac_precious_vars='build_alias 795host_alias 796target_alias 797SED 798AWK 799GREP 800EGREP 801LEX 802YACC 803CC 804CFLAGS 805LDFLAGS 806LIBS 807CPPFLAGS 808YFLAGS 809CPP 810PKG_CONFIG 811PKG_CONFIG_PATH 812PKG_CONFIG_LIBDIR 813SYSTEMD_CFLAGS 814SYSTEMD_LIBS 815SYSTEMD_DAEMON_CFLAGS 816SYSTEMD_DAEMON_LIBS' 817 818 819# Initialize some variables set by options. 820ac_init_help= 821ac_init_version=false 822ac_unrecognized_opts= 823ac_unrecognized_sep= 824# The variables have the same names as the options, with 825# dashes changed to underlines. 826cache_file=/dev/null 827exec_prefix=NONE 828no_create= 829no_recursion= 830prefix=NONE 831program_prefix=NONE 832program_suffix=NONE 833program_transform_name=s,x,x, 834silent= 835site= 836srcdir= 837verbose= 838x_includes=NONE 839x_libraries=NONE 840 841# Installation directory options. 842# These are left unexpanded so users can "make install exec_prefix=/foo" 843# and all the variables that are supposed to be based on exec_prefix 844# by default will actually change. 845# Use braces instead of parens because sh, perl, etc. also accept them. 846# (The list follows the same order as the GNU Coding Standards.) 847bindir='${exec_prefix}/bin' 848sbindir='${exec_prefix}/sbin' 849libexecdir='${exec_prefix}/libexec' 850datarootdir='${prefix}/share' 851datadir='${datarootdir}' 852sysconfdir='${prefix}/etc' 853sharedstatedir='${prefix}/com' 854localstatedir='${prefix}/var' 855runstatedir='${localstatedir}/run' 856includedir='${prefix}/include' 857oldincludedir='/usr/include' 858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 859infodir='${datarootdir}/info' 860htmldir='${docdir}' 861dvidir='${docdir}' 862pdfdir='${docdir}' 863psdir='${docdir}' 864libdir='${exec_prefix}/lib' 865localedir='${datarootdir}/locale' 866mandir='${datarootdir}/man' 867 868ac_prev= 869ac_dashdash= 870for ac_option 871do 872 # If the previous option needs an argument, assign it. 873 if test -n "$ac_prev"; then 874 eval $ac_prev=\$ac_option 875 ac_prev= 876 continue 877 fi 878 879 case $ac_option in 880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 881 *=) ac_optarg= ;; 882 *) ac_optarg=yes ;; 883 esac 884 885 case $ac_dashdash$ac_option in 886 --) 887 ac_dashdash=yes ;; 888 889 -bindir | --bindir | --bindi | --bind | --bin | --bi) 890 ac_prev=bindir ;; 891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 892 bindir=$ac_optarg ;; 893 894 -build | --build | --buil | --bui | --bu) 895 ac_prev=build_alias ;; 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 897 build_alias=$ac_optarg ;; 898 899 -cache-file | --cache-file | --cache-fil | --cache-fi \ 900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 901 ac_prev=cache_file ;; 902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 904 cache_file=$ac_optarg ;; 905 906 --config-cache | -C) 907 cache_file=config.cache ;; 908 909 -datadir | --datadir | --datadi | --datad) 910 ac_prev=datadir ;; 911 -datadir=* | --datadir=* | --datadi=* | --datad=*) 912 datadir=$ac_optarg ;; 913 914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 915 | --dataroo | --dataro | --datar) 916 ac_prev=datarootdir ;; 917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 919 datarootdir=$ac_optarg ;; 920 921 -disable-* | --disable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: \`$ac_useropt'" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=no ;; 936 937 -docdir | --docdir | --docdi | --doc | --do) 938 ac_prev=docdir ;; 939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 940 docdir=$ac_optarg ;; 941 942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 943 ac_prev=dvidir ;; 944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 945 dvidir=$ac_optarg ;; 946 947 -enable-* | --enable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error $? "invalid feature name: \`$ac_useropt'" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956"enable_$ac_useropt" 957"*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=\$ac_optarg ;; 962 963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 965 | --exec | --exe | --ex) 966 ac_prev=exec_prefix ;; 967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 969 | --exec=* | --exe=* | --ex=*) 970 exec_prefix=$ac_optarg ;; 971 972 -gas | --gas | --ga | --g) 973 # Obsolete; use --with-gas. 974 with_gas=yes ;; 975 976 -help | --help | --hel | --he | -h) 977 ac_init_help=long ;; 978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 979 ac_init_help=recursive ;; 980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 981 ac_init_help=short ;; 982 983 -host | --host | --hos | --ho) 984 ac_prev=host_alias ;; 985 -host=* | --host=* | --hos=* | --ho=*) 986 host_alias=$ac_optarg ;; 987 988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 989 ac_prev=htmldir ;; 990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 991 | --ht=*) 992 htmldir=$ac_optarg ;; 993 994 -includedir | --includedir | --includedi | --included | --include \ 995 | --includ | --inclu | --incl | --inc) 996 ac_prev=includedir ;; 997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 998 | --includ=* | --inclu=* | --incl=* | --inc=*) 999 includedir=$ac_optarg ;; 1000 1001 -infodir | --infodir | --infodi | --infod | --info | --inf) 1002 ac_prev=infodir ;; 1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1004 infodir=$ac_optarg ;; 1005 1006 -libdir | --libdir | --libdi | --libd) 1007 ac_prev=libdir ;; 1008 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1009 libdir=$ac_optarg ;; 1010 1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1012 | --libexe | --libex | --libe) 1013 ac_prev=libexecdir ;; 1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1015 | --libexe=* | --libex=* | --libe=*) 1016 libexecdir=$ac_optarg ;; 1017 1018 -localedir | --localedir | --localedi | --localed | --locale) 1019 ac_prev=localedir ;; 1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1021 localedir=$ac_optarg ;; 1022 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1024 | --localstate | --localstat | --localsta | --localst | --locals) 1025 ac_prev=localstatedir ;; 1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1028 localstatedir=$ac_optarg ;; 1029 1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1031 ac_prev=mandir ;; 1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1033 mandir=$ac_optarg ;; 1034 1035 -nfp | --nfp | --nf) 1036 # Obsolete; use --without-fp. 1037 with_fp=no ;; 1038 1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1040 | --no-cr | --no-c | -n) 1041 no_create=yes ;; 1042 1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1045 no_recursion=yes ;; 1046 1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1049 | --oldin | --oldi | --old | --ol | --o) 1050 ac_prev=oldincludedir ;; 1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1054 oldincludedir=$ac_optarg ;; 1055 1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1057 ac_prev=prefix ;; 1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1059 prefix=$ac_optarg ;; 1060 1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1062 | --program-pre | --program-pr | --program-p) 1063 ac_prev=program_prefix ;; 1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1066 program_prefix=$ac_optarg ;; 1067 1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1069 | --program-suf | --program-su | --program-s) 1070 ac_prev=program_suffix ;; 1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1073 program_suffix=$ac_optarg ;; 1074 1075 -program-transform-name | --program-transform-name \ 1076 | --program-transform-nam | --program-transform-na \ 1077 | --program-transform-n | --program-transform- \ 1078 | --program-transform | --program-transfor \ 1079 | --program-transfo | --program-transf \ 1080 | --program-trans | --program-tran \ 1081 | --progr-tra | --program-tr | --program-t) 1082 ac_prev=program_transform_name ;; 1083 -program-transform-name=* | --program-transform-name=* \ 1084 | --program-transform-nam=* | --program-transform-na=* \ 1085 | --program-transform-n=* | --program-transform-=* \ 1086 | --program-transform=* | --program-transfor=* \ 1087 | --program-transfo=* | --program-transf=* \ 1088 | --program-trans=* | --program-tran=* \ 1089 | --progr-tra=* | --program-tr=* | --program-t=*) 1090 program_transform_name=$ac_optarg ;; 1091 1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1093 ac_prev=pdfdir ;; 1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1095 pdfdir=$ac_optarg ;; 1096 1097 -psdir | --psdir | --psdi | --psd | --ps) 1098 ac_prev=psdir ;; 1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1100 psdir=$ac_optarg ;; 1101 1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1103 | -silent | --silent | --silen | --sile | --sil) 1104 silent=yes ;; 1105 1106 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1107 | --runstate | --runstat | --runsta | --runst | --runs \ 1108 | --run | --ru | --r) 1109 ac_prev=runstatedir ;; 1110 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1111 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1112 | --run=* | --ru=* | --r=*) 1113 runstatedir=$ac_optarg ;; 1114 1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1116 ac_prev=sbindir ;; 1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1118 | --sbi=* | --sb=*) 1119 sbindir=$ac_optarg ;; 1120 1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1123 | --sharedst | --shareds | --shared | --share | --shar \ 1124 | --sha | --sh) 1125 ac_prev=sharedstatedir ;; 1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1129 | --sha=* | --sh=*) 1130 sharedstatedir=$ac_optarg ;; 1131 1132 -site | --site | --sit) 1133 ac_prev=site ;; 1134 -site=* | --site=* | --sit=*) 1135 site=$ac_optarg ;; 1136 1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1138 ac_prev=srcdir ;; 1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1140 srcdir=$ac_optarg ;; 1141 1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1143 | --syscon | --sysco | --sysc | --sys | --sy) 1144 ac_prev=sysconfdir ;; 1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1147 sysconfdir=$ac_optarg ;; 1148 1149 -target | --target | --targe | --targ | --tar | --ta | --t) 1150 ac_prev=target_alias ;; 1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1152 target_alias=$ac_optarg ;; 1153 1154 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1155 verbose=yes ;; 1156 1157 -version | --version | --versio | --versi | --vers | -V) 1158 ac_init_version=: ;; 1159 1160 -with-* | --with-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: \`$ac_useropt'" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"with_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=\$ac_optarg ;; 1175 1176 -without-* | --without-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: \`$ac_useropt'" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=no ;; 1191 1192 --x) 1193 # Obsolete; use --with-x. 1194 with_x=yes ;; 1195 1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1197 | --x-incl | --x-inc | --x-in | --x-i) 1198 ac_prev=x_includes ;; 1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1201 x_includes=$ac_optarg ;; 1202 1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1205 ac_prev=x_libraries ;; 1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1208 x_libraries=$ac_optarg ;; 1209 1210 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1211Try \`$0 --help' for more information" 1212 ;; 1213 1214 *=*) 1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1216 # Reject names that are not valid shell variable names. 1217 case $ac_envvar in #( 1218 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1220 esac 1221 eval $ac_envvar=\$ac_optarg 1222 export $ac_envvar ;; 1223 1224 *) 1225 # FIXME: should be removed in autoconf 3.0. 1226 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1228 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1230 ;; 1231 1232 esac 1233done 1234 1235if test -n "$ac_prev"; then 1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1237 as_fn_error $? "missing argument to $ac_option" 1238fi 1239 1240if test -n "$ac_unrecognized_opts"; then 1241 case $enable_option_checking in 1242 no) ;; 1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1244 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1245 esac 1246fi 1247 1248# Check all directory arguments for consistency. 1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1250 datadir sysconfdir sharedstatedir localstatedir includedir \ 1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1252 libdir localedir mandir runstatedir 1253do 1254 eval ac_val=\$$ac_var 1255 # Remove trailing slashes. 1256 case $ac_val in 1257 */ ) 1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1259 eval $ac_var=\$ac_val;; 1260 esac 1261 # Be sure to have absolute directory names. 1262 case $ac_val in 1263 [\\/$]* | ?:[\\/]* ) continue;; 1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1265 esac 1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1267done 1268 1269# There might be people who depend on the old broken behavior: `$host' 1270# used to hold the argument of --host etc. 1271# FIXME: To remove some day. 1272build=$build_alias 1273host=$host_alias 1274target=$target_alias 1275 1276# FIXME: To remove some day. 1277if test "x$host_alias" != x; then 1278 if test "x$build_alias" = x; then 1279 cross_compiling=maybe 1280 elif test "x$build_alias" != "x$host_alias"; then 1281 cross_compiling=yes 1282 fi 1283fi 1284 1285ac_tool_prefix= 1286test -n "$host_alias" && ac_tool_prefix=$host_alias- 1287 1288test "$silent" = yes && exec 6>/dev/null 1289 1290 1291ac_pwd=`pwd` && test -n "$ac_pwd" && 1292ac_ls_di=`ls -di .` && 1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1294 as_fn_error $? "working directory cannot be determined" 1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1296 as_fn_error $? "pwd does not report name of working directory" 1297 1298 1299# Find the source files, if location was not specified. 1300if test -z "$srcdir"; then 1301 ac_srcdir_defaulted=yes 1302 # Try the directory containing this script, then the parent directory. 1303 ac_confdir=`$as_dirname -- "$as_myself" || 1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1305 X"$as_myself" : 'X\(//\)[^/]' \| \ 1306 X"$as_myself" : 'X\(//\)$' \| \ 1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1308printf "%s\n" X"$as_myself" | 1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)[^/].*/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)$/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\).*/{ 1322 s//\1/ 1323 q 1324 } 1325 s/.*/./; q'` 1326 srcdir=$ac_confdir 1327 if test ! -r "$srcdir/$ac_unique_file"; then 1328 srcdir=.. 1329 fi 1330else 1331 ac_srcdir_defaulted=no 1332fi 1333if test ! -r "$srcdir/$ac_unique_file"; then 1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1336fi 1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1338ac_abs_confdir=`( 1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1340 pwd)` 1341# When building in place, set srcdir=. 1342if test "$ac_abs_confdir" = "$ac_pwd"; then 1343 srcdir=. 1344fi 1345# Remove unnecessary trailing slashes from srcdir. 1346# Double slashes in file names in object file debugging info 1347# mess up M-x gdb in Emacs. 1348case $srcdir in 1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1350esac 1351for ac_var in $ac_precious_vars; do 1352 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_env_${ac_var}_value=\$${ac_var} 1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1356done 1357 1358# 1359# Report the --help message. 1360# 1361if test "$ac_init_help" = "long"; then 1362 # Omit some internal or obsolete options to make the list less imposing. 1363 # This message is too long to be a string in the A/UX 3.1 sh. 1364 cat <<_ACEOF 1365\`configure' configures NSD 4.9.1 to adapt to many kinds of systems. 1366 1367Usage: $0 [OPTION]... [VAR=VALUE]... 1368 1369To assign environment variables (e.g., CC, CFLAGS...), specify them as 1370VAR=VALUE. See below for descriptions of some of the useful variables. 1371 1372Defaults for the options are specified in brackets. 1373 1374Configuration: 1375 -h, --help display this help and exit 1376 --help=short display options specific to this package 1377 --help=recursive display the short help of all the included packages 1378 -V, --version display version information and exit 1379 -q, --quiet, --silent do not print \`checking ...' messages 1380 --cache-file=FILE cache test results in FILE [disabled] 1381 -C, --config-cache alias for \`--cache-file=config.cache' 1382 -n, --no-create do not create output files 1383 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1384 1385Installation directories: 1386 --prefix=PREFIX install architecture-independent files in PREFIX 1387 [$ac_default_prefix] 1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1389 [PREFIX] 1390 1391By default, \`make install' will install all the files in 1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1393an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1394for instance \`--prefix=\$HOME'. 1395 1396For better control, use the options below. 1397 1398Fine tuning of the installation directories: 1399 --bindir=DIR user executables [EPREFIX/bin] 1400 --sbindir=DIR system admin executables [EPREFIX/sbin] 1401 --libexecdir=DIR program executables [EPREFIX/libexec] 1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1405 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1406 --libdir=DIR object code libraries [EPREFIX/lib] 1407 --includedir=DIR C header files [PREFIX/include] 1408 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1411 --infodir=DIR info documentation [DATAROOTDIR/info] 1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1413 --mandir=DIR man documentation [DATAROOTDIR/man] 1414 --docdir=DIR documentation root [DATAROOTDIR/doc/nsd] 1415 --htmldir=DIR html documentation [DOCDIR] 1416 --dvidir=DIR dvi documentation [DOCDIR] 1417 --pdfdir=DIR pdf documentation [DOCDIR] 1418 --psdir=DIR ps documentation [DOCDIR] 1419_ACEOF 1420 1421 cat <<\_ACEOF 1422 1423System types: 1424 --build=BUILD configure for building on BUILD [guessed] 1425 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1426_ACEOF 1427fi 1428 1429if test -n "$ac_init_help"; then 1430 case $ac_init_help in 1431 short | recursive ) echo "Configuration of NSD 4.9.1:";; 1432 esac 1433 cat <<\_ACEOF 1434 1435Optional Features: 1436 --disable-option-checking ignore unrecognized --enable/--with options 1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1439 --disable-flto Disable link-time optimization (gcc specific option) 1440 --enable-pie Enable Position-Independent Executable (eg. to fully 1441 benefit from ASLR, small performance penalty) 1442 --enable-relro-now Enable full relocation binding at load-time (RELRO 1443 NOW, to protect GOT and .dtor areas) 1444 --disable-largefile omit support for large files 1445 --enable-recvmmsg Enable recvmmsg and sendmmsg compilation, faster but 1446 some kernel versions may have implementation 1447 problems for IPv6 1448 --enable-root-server Configure NSD as a root server (obsolete) 1449 --disable-ipv6 Disables IPv6 support 1450 --enable-bind8-stats Enables BIND8 like NSTATS & XSTATS and statistics in 1451 nsd-control 1452 --enable-zone-stats Enable per-zone statistics gathering (needs 1453 --enable-bind8-stats) 1454 --enable-checking Enable internal runtime checks 1455 --enable-log-role Shows the role of processes in the logfile (enable 1456 this only for debugging purposes) 1457 --enable-memclean Cleanup memory (at exit) for eg. valgrind, memcheck 1458 --enable-ratelimit Enable rate limiting 1459 --enable-ratelimit-default-is-off 1460 Enable this to set default of ratelimit to off 1461 (enable in nsd.conf), otherwise ratelimit is enabled 1462 by default if --enable-ratelimit is enabled 1463 --disable-nsec3 Disable NSEC3 support 1464 --disable-minimal-responses 1465 Disable response minimization. More truncation. 1466 --enable-mmap Use mmap instead of malloc. Experimental. 1467 --disable-radix-tree You can disable the radix tree and use the red-black 1468 tree for the main lookups, the red-black tree uses 1469 less memory, but uses some more CPU. 1470 --enable-packed Enable packed structure alignment, uses less memory, 1471 but unaligned reads. 1472 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c) 1473 --enable-systemd compile with systemd support 1474 --enable-tcp-fastopen Enable TCP Fast Open 1475 1476Optional Packages: 1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1479 --with-configdir=dir NSD configuration directory 1480 --with-nsd_conf_file=path 1481 Pathname to the NSD configuration file 1482 --with-logfile=path Pathname to the default log file 1483 --with-pidfile=path Pathname to the NSD pidfile 1484 --with-dbfile=path Pathname to the NSD database (obsolete) 1485 --with-zonesdir=dir NSD default location for zone files 1486 --with-xfrdfile=path Pathname to the NSD xfrd zone timer state file 1487 --with-zonelistfile=path 1488 Pathname to the NSD zone list file 1489 --with-xfrdir=path Pathname to where the NSD transfer dir is created 1490 --with-chroot=dir NSD default chroot directory 1491 --with-user=username User name or ID to answer the queries with 1492 --with-libevent=pathname 1493 use libevent (will check /usr/local /opt/local 1494 /usr/lib /usr/pkg /usr/sfw /usr 1495 /usr/local/opt/libevent or you can specify an 1496 explicit path), useful when the zone count is high. 1497 --with-facility=name Syslog default facility (LOG_DAEMON) 1498 --with-tcp-timeout=number 1499 Limit the default tcp timeout 1500 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1501 /usr/ssl /usr/pkg /usr/sfw /usr/local /usr 1502 /usr/local/opt/openssl) 1503 --with-dnstap-socket-path=pathname 1504 set default dnstap socket path 1505 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1506 --with-libfstrm=path Path where libfstrm is installed, for dnstap 1507 1508Some influential environment variables: 1509 SED location of the sed program 1510 AWK location of the awk program 1511 GREP location of the grep program 1512 EGREP location of the egrep program 1513 LEX location of the lex program with GNU extensions (flex) 1514 YACC location of the yacc program with GNU extensions (bison) 1515 CC C compiler command 1516 CFLAGS C compiler flags 1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1518 nonstandard directory <lib dir> 1519 LIBS libraries to pass to the linker, e.g. -l<library> 1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1521 you have headers in a nonstandard directory <include dir> 1522 YFLAGS The list of arguments that will be passed by default to $YACC. 1523 This script will default YFLAGS to the empty string to avoid a 1524 default value of `-d' given by some make applications. 1525 CPP C preprocessor 1526 PKG_CONFIG path to pkg-config utility 1527 PKG_CONFIG_PATH 1528 directories to add to pkg-config's search path 1529 PKG_CONFIG_LIBDIR 1530 path overriding pkg-config's built-in search path 1531 SYSTEMD_CFLAGS 1532 C compiler flags for SYSTEMD, overriding pkg-config 1533 SYSTEMD_LIBS 1534 linker flags for SYSTEMD, overriding pkg-config 1535 SYSTEMD_DAEMON_CFLAGS 1536 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1537 SYSTEMD_DAEMON_LIBS 1538 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1539 1540Use these variables to override the choices made by `configure' or to help 1541it to find libraries and programs with nonstandard names/locations. 1542 1543Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>. 1544_ACEOF 1545ac_status=$? 1546fi 1547 1548if test "$ac_init_help" = "recursive"; then 1549 # If there are subdirs, report their specific --help. 1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1551 test -d "$ac_dir" || 1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1553 continue 1554 ac_builddir=. 1555 1556case "$ac_dir" in 1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558*) 1559 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1560 # A ".." for each directory in $ac_dir_suffix. 1561 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1562 case $ac_top_builddir_sub in 1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1565 esac ;; 1566esac 1567ac_abs_top_builddir=$ac_pwd 1568ac_abs_builddir=$ac_pwd$ac_dir_suffix 1569# for backward compatibility: 1570ac_top_builddir=$ac_top_build_prefix 1571 1572case $srcdir in 1573 .) # We are building in place. 1574 ac_srcdir=. 1575 ac_top_srcdir=$ac_top_builddir_sub 1576 ac_abs_top_srcdir=$ac_pwd ;; 1577 [\\/]* | ?:[\\/]* ) # Absolute name. 1578 ac_srcdir=$srcdir$ac_dir_suffix; 1579 ac_top_srcdir=$srcdir 1580 ac_abs_top_srcdir=$srcdir ;; 1581 *) # Relative name. 1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1583 ac_top_srcdir=$ac_top_build_prefix$srcdir 1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1585esac 1586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1587 1588 cd "$ac_dir" || { ac_status=$?; continue; } 1589 # Check for configure.gnu first; this name is used for a wrapper for 1590 # Metaconfig's "Configure" on case-insensitive file systems. 1591 if test -f "$ac_srcdir/configure.gnu"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1594 elif test -f "$ac_srcdir/configure"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure" --help=recursive 1597 else 1598 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1599 fi || ac_status=$? 1600 cd "$ac_pwd" || { ac_status=$?; break; } 1601 done 1602fi 1603 1604test -n "$ac_init_help" && exit $ac_status 1605if $ac_init_version; then 1606 cat <<\_ACEOF 1607NSD configure 4.9.1 1608generated by GNU Autoconf 2.71 1609 1610Copyright (C) 2021 Free Software Foundation, Inc. 1611This configure script is free software; the Free Software Foundation 1612gives unlimited permission to copy, distribute and modify it. 1613_ACEOF 1614 exit 1615fi 1616 1617## ------------------------ ## 1618## Autoconf initialization. ## 1619## ------------------------ ## 1620 1621# ac_fn_c_try_compile LINENO 1622# -------------------------- 1623# Try to compile conftest.$ac_ext, and return whether this succeeded. 1624ac_fn_c_try_compile () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 rm -f conftest.$ac_objext conftest.beam 1628 if { { ac_try="$ac_compile" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634printf "%s\n" "$ac_try_echo"; } >&5 1635 (eval "$ac_compile") 2>conftest.err 1636 ac_status=$? 1637 if test -s conftest.err; then 1638 grep -v '^ *+' conftest.err >conftest.er1 1639 cat conftest.er1 >&5 1640 mv -f conftest.er1 conftest.err 1641 fi 1642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; } && { 1644 test -z "$ac_c_werror_flag" || 1645 test ! -s conftest.err 1646 } && test -s conftest.$ac_objext 1647then : 1648 ac_retval=0 1649else $as_nop 1650 printf "%s\n" "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_compile 1659 1660# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1661# ------------------------------------------------------- 1662# Tests whether HEADER exists and can be compiled using the include files in 1663# INCLUDES, setting the cache variable VAR accordingly. 1664ac_fn_c_check_header_compile () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1668printf %s "checking for $2... " >&6; } 1669if eval test \${$3+y} 1670then : 1671 printf %s "(cached) " >&6 1672else $as_nop 1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674/* end confdefs.h. */ 1675$4 1676#include <$2> 1677_ACEOF 1678if ac_fn_c_try_compile "$LINENO" 1679then : 1680 eval "$3=yes" 1681else $as_nop 1682 eval "$3=no" 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1685fi 1686eval ac_res=\$$3 1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1688printf "%s\n" "$ac_res" >&6; } 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 1691} # ac_fn_c_check_header_compile 1692 1693# ac_fn_c_try_link LINENO 1694# ----------------------- 1695# Try to link conftest.$ac_ext, and return whether this succeeded. 1696ac_fn_c_try_link () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706printf "%s\n" "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>conftest.err 1708 ac_status=$? 1709 if test -s conftest.err; then 1710 grep -v '^ *+' conftest.err >conftest.er1 1711 cat conftest.er1 >&5 1712 mv -f conftest.er1 conftest.err 1713 fi 1714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } && { 1716 test -z "$ac_c_werror_flag" || 1717 test ! -s conftest.err 1718 } && test -s conftest$ac_exeext && { 1719 test "$cross_compiling" = yes || 1720 test -x conftest$ac_exeext 1721 } 1722then : 1723 ac_retval=0 1724else $as_nop 1725 printf "%s\n" "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=1 1729fi 1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1732 # interfere with the next link command; also delete a directory that is 1733 # left behind by Apple's compiler. We do this before executing the actions. 1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_c_try_link 1739 1740# ac_fn_c_try_cpp LINENO 1741# ---------------------- 1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1743ac_fn_c_try_cpp () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 if { { ac_try="$ac_cpp conftest.$ac_ext" 1747case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750esac 1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752printf "%s\n" "$ac_try_echo"; } >&5 1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1754 ac_status=$? 1755 if test -s conftest.err; then 1756 grep -v '^ *+' conftest.err >conftest.er1 1757 cat conftest.er1 >&5 1758 mv -f conftest.er1 conftest.err 1759 fi 1760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; } > conftest.i && { 1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1763 test ! -s conftest.err 1764 } 1765then : 1766 ac_retval=0 1767else $as_nop 1768 printf "%s\n" "$as_me: failed program was:" >&5 1769sed 's/^/| /' conftest.$ac_ext >&5 1770 1771 ac_retval=1 1772fi 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 as_fn_set_status $ac_retval 1775 1776} # ac_fn_c_try_cpp 1777 1778# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1779# ------------------------------------------- 1780# Tests whether TYPE exists after having included INCLUDES, setting cache 1781# variable VAR accordingly. 1782ac_fn_c_check_type () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786printf %s "checking for $2... " >&6; } 1787if eval test \${$3+y} 1788then : 1789 printf %s "(cached) " >&6 1790else $as_nop 1791 eval "$3=no" 1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1793/* end confdefs.h. */ 1794$4 1795int 1796main (void) 1797{ 1798if (sizeof ($2)) 1799 return 0; 1800 ; 1801 return 0; 1802} 1803_ACEOF 1804if ac_fn_c_try_compile "$LINENO" 1805then : 1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808$4 1809int 1810main (void) 1811{ 1812if (sizeof (($2))) 1813 return 0; 1814 ; 1815 return 0; 1816} 1817_ACEOF 1818if ac_fn_c_try_compile "$LINENO" 1819then : 1820 1821else $as_nop 1822 eval "$3=yes" 1823fi 1824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1825fi 1826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1827fi 1828eval ac_res=\$$3 1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830printf "%s\n" "$ac_res" >&6; } 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1832 1833} # ac_fn_c_check_type 1834 1835# ac_fn_c_try_run LINENO 1836# ---------------------- 1837# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1838# executables *can* be run. 1839ac_fn_c_try_run () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 if { { ac_try="$ac_link" 1843case "(($ac_try" in 1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1845 *) ac_try_echo=$ac_try;; 1846esac 1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1848printf "%s\n" "$ac_try_echo"; } >&5 1849 (eval "$ac_link") 2>&5 1850 ac_status=$? 1851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1853 { { case "(($ac_try" in 1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1855 *) ac_try_echo=$ac_try;; 1856esac 1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1858printf "%s\n" "$ac_try_echo"; } >&5 1859 (eval "$ac_try") 2>&5 1860 ac_status=$? 1861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; }; } 1863then : 1864 ac_retval=0 1865else $as_nop 1866 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1867 printf "%s\n" "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=$ac_status 1871fi 1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 as_fn_set_status $ac_retval 1875 1876} # ac_fn_c_try_run 1877 1878# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1879# ------------------------------------------------------------------ 1880# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1881# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1882ac_fn_check_decl () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 as_decl_name=`echo $2|sed 's/ *(.*//'` 1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1887printf %s "checking whether $as_decl_name is declared... " >&6; } 1888if eval test \${$3+y} 1889then : 1890 printf %s "(cached) " >&6 1891else $as_nop 1892 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1893 eval ac_save_FLAGS=\$$6 1894 as_fn_append $6 " $5" 1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1896/* end confdefs.h. */ 1897$4 1898int 1899main (void) 1900{ 1901#ifndef $as_decl_name 1902#ifdef __cplusplus 1903 (void) $as_decl_use; 1904#else 1905 (void) $as_decl_name; 1906#endif 1907#endif 1908 1909 ; 1910 return 0; 1911} 1912_ACEOF 1913if ac_fn_c_try_compile "$LINENO" 1914then : 1915 eval "$3=yes" 1916else $as_nop 1917 eval "$3=no" 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1920 eval $6=\$ac_save_FLAGS 1921 1922fi 1923eval ac_res=\$$3 1924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1925printf "%s\n" "$ac_res" >&6; } 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 1928} # ac_fn_check_decl 1929 1930# ac_fn_c_check_func LINENO FUNC VAR 1931# ---------------------------------- 1932# Tests whether FUNC exists, setting the cache variable VAR accordingly 1933ac_fn_c_check_func () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937printf %s "checking for $2... " >&6; } 1938if eval test \${$3+y} 1939then : 1940 printf %s "(cached) " >&6 1941else $as_nop 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1946#define $2 innocuous_$2 1947 1948/* System header to define __stub macros and hopefully few prototypes, 1949 which can conflict with char $2 (); below. */ 1950 1951#include <limits.h> 1952#undef $2 1953 1954/* Override any GCC internal prototype to avoid an error. 1955 Use char because int might match the return type of a GCC 1956 builtin and then its argument prototype would still apply. */ 1957#ifdef __cplusplus 1958extern "C" 1959#endif 1960char $2 (); 1961/* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964#if defined __stub_$2 || defined __stub___$2 1965choke me 1966#endif 1967 1968int 1969main (void) 1970{ 1971return $2 (); 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_link "$LINENO" 1977then : 1978 eval "$3=yes" 1979else $as_nop 1980 eval "$3=no" 1981fi 1982rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1983 conftest$ac_exeext conftest.$ac_ext 1984fi 1985eval ac_res=\$$3 1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1987printf "%s\n" "$ac_res" >&6; } 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 1990} # ac_fn_c_check_func 1991 1992# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1993# ---------------------------------------------------- 1994# Tries to find if the field MEMBER exists in type AGGR, after including 1995# INCLUDES, setting cache variable VAR accordingly. 1996ac_fn_c_check_member () 1997{ 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2000printf %s "checking for $2.$3... " >&6; } 2001if eval test \${$4+y} 2002then : 2003 printf %s "(cached) " >&6 2004else $as_nop 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2006/* end confdefs.h. */ 2007$5 2008int 2009main (void) 2010{ 2011static $2 ac_aggr; 2012if (ac_aggr.$3) 2013return 0; 2014 ; 2015 return 0; 2016} 2017_ACEOF 2018if ac_fn_c_try_compile "$LINENO" 2019then : 2020 eval "$4=yes" 2021else $as_nop 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024$5 2025int 2026main (void) 2027{ 2028static $2 ac_aggr; 2029if (sizeof ac_aggr.$3) 2030return 0; 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO" 2036then : 2037 eval "$4=yes" 2038else $as_nop 2039 eval "$4=no" 2040fi 2041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2042fi 2043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2044fi 2045eval ac_res=\$$4 2046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2047printf "%s\n" "$ac_res" >&6; } 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2049 2050} # ac_fn_c_check_member 2051 2052# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2053# -------------------------------------------- 2054# Tries to find the compile-time value of EXPR in a program that includes 2055# INCLUDES, setting VAR accordingly. Returns whether the value could be 2056# computed 2057ac_fn_c_compute_int () 2058{ 2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2060 if test "$cross_compiling" = yes; then 2061 # Depending upon the size, compute the lo and hi bounds. 2062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063/* end confdefs.h. */ 2064$4 2065int 2066main (void) 2067{ 2068static int test_array [1 - 2 * !(($2) >= 0)]; 2069test_array [0] = 0; 2070return test_array [0]; 2071 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO" 2077then : 2078 ac_lo=0 ac_mid=0 2079 while :; do 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083int 2084main (void) 2085{ 2086static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2087test_array [0] = 0; 2088return test_array [0]; 2089 2090 ; 2091 return 0; 2092} 2093_ACEOF 2094if ac_fn_c_try_compile "$LINENO" 2095then : 2096 ac_hi=$ac_mid; break 2097else $as_nop 2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2099 if test $ac_lo -le $ac_mid; then 2100 ac_lo= ac_hi= 2101 break 2102 fi 2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2104fi 2105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2106 done 2107else $as_nop 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110$4 2111int 2112main (void) 2113{ 2114static int test_array [1 - 2 * !(($2) < 0)]; 2115test_array [0] = 0; 2116return test_array [0]; 2117 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_compile "$LINENO" 2123then : 2124 ac_hi=-1 ac_mid=-1 2125 while :; do 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$4 2129int 2130main (void) 2131{ 2132static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2133test_array [0] = 0; 2134return test_array [0]; 2135 2136 ; 2137 return 0; 2138} 2139_ACEOF 2140if ac_fn_c_try_compile "$LINENO" 2141then : 2142 ac_lo=$ac_mid; break 2143else $as_nop 2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2145 if test $ac_mid -le $ac_hi; then 2146 ac_lo= ac_hi= 2147 break 2148 fi 2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2150fi 2151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2152 done 2153else $as_nop 2154 ac_lo= ac_hi= 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2157fi 2158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2159# Binary search between lo and hi bounds. 2160while test "x$ac_lo" != "x$ac_hi"; do 2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2163/* end confdefs.h. */ 2164$4 2165int 2166main (void) 2167{ 2168static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2169test_array [0] = 0; 2170return test_array [0]; 2171 2172 ; 2173 return 0; 2174} 2175_ACEOF 2176if ac_fn_c_try_compile "$LINENO" 2177then : 2178 ac_hi=$ac_mid 2179else $as_nop 2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2183done 2184case $ac_lo in #(( 2185?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2186'') ac_retval=1 ;; 2187esac 2188 else 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190/* end confdefs.h. */ 2191$4 2192static long int longval (void) { return $2; } 2193static unsigned long int ulongval (void) { return $2; } 2194#include <stdio.h> 2195#include <stdlib.h> 2196int 2197main (void) 2198{ 2199 2200 FILE *f = fopen ("conftest.val", "w"); 2201 if (! f) 2202 return 1; 2203 if (($2) < 0) 2204 { 2205 long int i = longval (); 2206 if (i != ($2)) 2207 return 1; 2208 fprintf (f, "%ld", i); 2209 } 2210 else 2211 { 2212 unsigned long int i = ulongval (); 2213 if (i != ($2)) 2214 return 1; 2215 fprintf (f, "%lu", i); 2216 } 2217 /* Do not output a trailing newline, as this causes \r\n confusion 2218 on some platforms. */ 2219 return ferror (f) || fclose (f) != 0; 2220 2221 ; 2222 return 0; 2223} 2224_ACEOF 2225if ac_fn_c_try_run "$LINENO" 2226then : 2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2228else $as_nop 2229 ac_retval=1 2230fi 2231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2232 conftest.$ac_objext conftest.beam conftest.$ac_ext 2233rm -f conftest.val 2234 2235 fi 2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2237 as_fn_set_status $ac_retval 2238 2239} # ac_fn_c_compute_int 2240ac_configure_args_raw= 2241for ac_arg 2242do 2243 case $ac_arg in 2244 *\'*) 2245 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2246 esac 2247 as_fn_append ac_configure_args_raw " '$ac_arg'" 2248done 2249 2250case $ac_configure_args_raw in 2251 *$as_nl*) 2252 ac_safe_unquote= ;; 2253 *) 2254 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2255 ac_unsafe_a="$ac_unsafe_z#~" 2256 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2257 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2258esac 2259 2260cat >config.log <<_ACEOF 2261This file contains any messages produced by compilers while 2262running configure, to aid debugging if configure makes a mistake. 2263 2264It was created by NSD $as_me 4.9.1, which was 2265generated by GNU Autoconf 2.71. Invocation command line was 2266 2267 $ $0$ac_configure_args_raw 2268 2269_ACEOF 2270exec 5>>config.log 2271{ 2272cat <<_ASUNAME 2273## --------- ## 2274## Platform. ## 2275## --------- ## 2276 2277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2278uname -m = `(uname -m) 2>/dev/null || echo unknown` 2279uname -r = `(uname -r) 2>/dev/null || echo unknown` 2280uname -s = `(uname -s) 2>/dev/null || echo unknown` 2281uname -v = `(uname -v) 2>/dev/null || echo unknown` 2282 2283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2284/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2285 2286/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2287/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2289/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2290/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2291/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2292/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2293 2294_ASUNAME 2295 2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2297for as_dir in $PATH 2298do 2299 IFS=$as_save_IFS 2300 case $as_dir in #((( 2301 '') as_dir=./ ;; 2302 */) ;; 2303 *) as_dir=$as_dir/ ;; 2304 esac 2305 printf "%s\n" "PATH: $as_dir" 2306 done 2307IFS=$as_save_IFS 2308 2309} >&5 2310 2311cat >&5 <<_ACEOF 2312 2313 2314## ----------- ## 2315## Core tests. ## 2316## ----------- ## 2317 2318_ACEOF 2319 2320 2321# Keep a trace of the command line. 2322# Strip out --no-create and --no-recursion so they do not pile up. 2323# Strip out --silent because we don't want to record it for future runs. 2324# Also quote any args containing shell meta-characters. 2325# Make two passes to allow for proper duplicate-argument suppression. 2326ac_configure_args= 2327ac_configure_args0= 2328ac_configure_args1= 2329ac_must_keep_next=false 2330for ac_pass in 1 2 2331do 2332 for ac_arg 2333 do 2334 case $ac_arg in 2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2337 | -silent | --silent | --silen | --sile | --sil) 2338 continue ;; 2339 *\'*) 2340 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2341 esac 2342 case $ac_pass in 2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2344 2) 2345 as_fn_append ac_configure_args1 " '$ac_arg'" 2346 if test $ac_must_keep_next = true; then 2347 ac_must_keep_next=false # Got value, back to normal. 2348 else 2349 case $ac_arg in 2350 *=* | --config-cache | -C | -disable-* | --disable-* \ 2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2353 | -with-* | --with-* | -without-* | --without-* | --x) 2354 case "$ac_configure_args0 " in 2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2356 esac 2357 ;; 2358 -* ) ac_must_keep_next=true ;; 2359 esac 2360 fi 2361 as_fn_append ac_configure_args " '$ac_arg'" 2362 ;; 2363 esac 2364 done 2365done 2366{ ac_configure_args0=; unset ac_configure_args0;} 2367{ ac_configure_args1=; unset ac_configure_args1;} 2368 2369# When interrupted or exit'd, cleanup temporary files, and complete 2370# config.log. We remove comments because anyway the quotes in there 2371# would cause problems or look ugly. 2372# WARNING: Use '\'' to represent an apostrophe within the trap. 2373# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2374trap 'exit_status=$? 2375 # Sanitize IFS. 2376 IFS=" "" $as_nl" 2377 # Save into config.log some information that might help in debugging. 2378 { 2379 echo 2380 2381 printf "%s\n" "## ---------------- ## 2382## Cache variables. ## 2383## ---------------- ##" 2384 echo 2385 # The following way of writing the cache mishandles newlines in values, 2386( 2387 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2388 eval ac_val=\$$ac_var 2389 case $ac_val in #( 2390 *${as_nl}*) 2391 case $ac_var in #( 2392 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2393printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2394 esac 2395 case $ac_var in #( 2396 _ | IFS | as_nl) ;; #( 2397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2398 *) { eval $ac_var=; unset $ac_var;} ;; 2399 esac ;; 2400 esac 2401 done 2402 (set) 2>&1 | 2403 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2404 *${as_nl}ac_space=\ *) 2405 sed -n \ 2406 "s/'\''/'\''\\\\'\'''\''/g; 2407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2408 ;; #( 2409 *) 2410 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2411 ;; 2412 esac | 2413 sort 2414) 2415 echo 2416 2417 printf "%s\n" "## ----------------- ## 2418## Output variables. ## 2419## ----------------- ##" 2420 echo 2421 for ac_var in $ac_subst_vars 2422 do 2423 eval ac_val=\$$ac_var 2424 case $ac_val in 2425 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2426 esac 2427 printf "%s\n" "$ac_var='\''$ac_val'\''" 2428 done | sort 2429 echo 2430 2431 if test -n "$ac_subst_files"; then 2432 printf "%s\n" "## ------------------- ## 2433## File substitutions. ## 2434## ------------------- ##" 2435 echo 2436 for ac_var in $ac_subst_files 2437 do 2438 eval ac_val=\$$ac_var 2439 case $ac_val in 2440 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2441 esac 2442 printf "%s\n" "$ac_var='\''$ac_val'\''" 2443 done | sort 2444 echo 2445 fi 2446 2447 if test -s confdefs.h; then 2448 printf "%s\n" "## ----------- ## 2449## confdefs.h. ## 2450## ----------- ##" 2451 echo 2452 cat confdefs.h 2453 echo 2454 fi 2455 test "$ac_signal" != 0 && 2456 printf "%s\n" "$as_me: caught signal $ac_signal" 2457 printf "%s\n" "$as_me: exit $exit_status" 2458 } >&5 2459 rm -f core *.core core.conftest.* && 2460 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2461 exit $exit_status 2462' 0 2463for ac_signal in 1 2 13 15; do 2464 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2465done 2466ac_signal=0 2467 2468# confdefs.h avoids OS command line length limits that DEFS can exceed. 2469rm -f -r conftest* confdefs.h 2470 2471printf "%s\n" "/* confdefs.h */" > confdefs.h 2472 2473# Predefined preprocessor variables. 2474 2475printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2476 2477printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2478 2479printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2480 2481printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2482 2483printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2484 2485printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2486 2487 2488# Let the site file select an alternate cache file if it wants to. 2489# Prefer an explicitly selected file to automatically selected ones. 2490if test -n "$CONFIG_SITE"; then 2491 ac_site_files="$CONFIG_SITE" 2492elif test "x$prefix" != xNONE; then 2493 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2494else 2495 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2496fi 2497 2498for ac_site_file in $ac_site_files 2499do 2500 case $ac_site_file in #( 2501 */*) : 2502 ;; #( 2503 *) : 2504 ac_site_file=./$ac_site_file ;; 2505esac 2506 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2508printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2509 sed 's/^/| /' "$ac_site_file" >&5 2510 . "$ac_site_file" \ 2511 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2512printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2513as_fn_error $? "failed to load site script $ac_site_file 2514See \`config.log' for more details" "$LINENO" 5; } 2515 fi 2516done 2517 2518if test -r "$cache_file"; then 2519 # Some versions of bash will fail to source /dev/null (special files 2520 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2521 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2523printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2524 case $cache_file in 2525 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2526 *) . "./$cache_file";; 2527 esac 2528 fi 2529else 2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2531printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2532 >$cache_file 2533fi 2534 2535as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2536# Test code for whether the C compiler supports C89 (global declarations) 2537ac_c_conftest_c89_globals=' 2538/* Does the compiler advertise C89 conformance? 2539 Do not test the value of __STDC__, because some compilers set it to 0 2540 while being otherwise adequately conformant. */ 2541#if !defined __STDC__ 2542# error "Compiler does not advertise C89 conformance" 2543#endif 2544 2545#include <stddef.h> 2546#include <stdarg.h> 2547struct stat; 2548/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2549struct buf { int x; }; 2550struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2551static char *e (p, i) 2552 char **p; 2553 int i; 2554{ 2555 return p[i]; 2556} 2557static char *f (char * (*g) (char **, int), char **p, ...) 2558{ 2559 char *s; 2560 va_list v; 2561 va_start (v,p); 2562 s = g (p, va_arg (v,int)); 2563 va_end (v); 2564 return s; 2565} 2566 2567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2568 function prototypes and stuff, but not \xHH hex character constants. 2569 These do not provoke an error unfortunately, instead are silently treated 2570 as an "x". The following induces an error, until -std is added to get 2571 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2572 array size at least. It is necessary to write \x00 == 0 to get something 2573 that is true only with -std. */ 2574int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2575 2576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2577 inside strings and character constants. */ 2578#define FOO(x) '\''x'\'' 2579int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2580 2581int test (int i, double x); 2582struct s1 {int (*f) (int a);}; 2583struct s2 {int (*f) (double a);}; 2584int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2585 int, int);' 2586 2587# Test code for whether the C compiler supports C89 (body of main). 2588ac_c_conftest_c89_main=' 2589ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2590' 2591 2592# Test code for whether the C compiler supports C99 (global declarations) 2593ac_c_conftest_c99_globals=' 2594// Does the compiler advertise C99 conformance? 2595#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2596# error "Compiler does not advertise C99 conformance" 2597#endif 2598 2599#include <stdbool.h> 2600extern int puts (const char *); 2601extern int printf (const char *, ...); 2602extern int dprintf (int, const char *, ...); 2603extern void *malloc (size_t); 2604 2605// Check varargs macros. These examples are taken from C99 6.10.3.5. 2606// dprintf is used instead of fprintf to avoid needing to declare 2607// FILE and stderr. 2608#define debug(...) dprintf (2, __VA_ARGS__) 2609#define showlist(...) puts (#__VA_ARGS__) 2610#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2611static void 2612test_varargs_macros (void) 2613{ 2614 int x = 1234; 2615 int y = 5678; 2616 debug ("Flag"); 2617 debug ("X = %d\n", x); 2618 showlist (The first, second, and third items.); 2619 report (x>y, "x is %d but y is %d", x, y); 2620} 2621 2622// Check long long types. 2623#define BIG64 18446744073709551615ull 2624#define BIG32 4294967295ul 2625#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2626#if !BIG_OK 2627 #error "your preprocessor is broken" 2628#endif 2629#if BIG_OK 2630#else 2631 #error "your preprocessor is broken" 2632#endif 2633static long long int bignum = -9223372036854775807LL; 2634static unsigned long long int ubignum = BIG64; 2635 2636struct incomplete_array 2637{ 2638 int datasize; 2639 double data[]; 2640}; 2641 2642struct named_init { 2643 int number; 2644 const wchar_t *name; 2645 double average; 2646}; 2647 2648typedef const char *ccp; 2649 2650static inline int 2651test_restrict (ccp restrict text) 2652{ 2653 // See if C++-style comments work. 2654 // Iterate through items via the restricted pointer. 2655 // Also check for declarations in for loops. 2656 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2657 continue; 2658 return 0; 2659} 2660 2661// Check varargs and va_copy. 2662static bool 2663test_varargs (const char *format, ...) 2664{ 2665 va_list args; 2666 va_start (args, format); 2667 va_list args_copy; 2668 va_copy (args_copy, args); 2669 2670 const char *str = ""; 2671 int number = 0; 2672 float fnumber = 0; 2673 2674 while (*format) 2675 { 2676 switch (*format++) 2677 { 2678 case '\''s'\'': // string 2679 str = va_arg (args_copy, const char *); 2680 break; 2681 case '\''d'\'': // int 2682 number = va_arg (args_copy, int); 2683 break; 2684 case '\''f'\'': // float 2685 fnumber = va_arg (args_copy, double); 2686 break; 2687 default: 2688 break; 2689 } 2690 } 2691 va_end (args_copy); 2692 va_end (args); 2693 2694 return *str && number && fnumber; 2695} 2696' 2697 2698# Test code for whether the C compiler supports C99 (body of main). 2699ac_c_conftest_c99_main=' 2700 // Check bool. 2701 _Bool success = false; 2702 success |= (argc != 0); 2703 2704 // Check restrict. 2705 if (test_restrict ("String literal") == 0) 2706 success = true; 2707 char *restrict newvar = "Another string"; 2708 2709 // Check varargs. 2710 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2711 test_varargs_macros (); 2712 2713 // Check flexible array members. 2714 struct incomplete_array *ia = 2715 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2716 ia->datasize = 10; 2717 for (int i = 0; i < ia->datasize; ++i) 2718 ia->data[i] = i * 1.234; 2719 2720 // Check named initializers. 2721 struct named_init ni = { 2722 .number = 34, 2723 .name = L"Test wide string", 2724 .average = 543.34343, 2725 }; 2726 2727 ni.number = 58; 2728 2729 int dynamic_array[ni.number]; 2730 dynamic_array[0] = argv[0][0]; 2731 dynamic_array[ni.number - 1] = 543; 2732 2733 // work around unused variable warnings 2734 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2735 || dynamic_array[ni.number - 1] != 543); 2736' 2737 2738# Test code for whether the C compiler supports C11 (global declarations) 2739ac_c_conftest_c11_globals=' 2740// Does the compiler advertise C11 conformance? 2741#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2742# error "Compiler does not advertise C11 conformance" 2743#endif 2744 2745// Check _Alignas. 2746char _Alignas (double) aligned_as_double; 2747char _Alignas (0) no_special_alignment; 2748extern char aligned_as_int; 2749char _Alignas (0) _Alignas (int) aligned_as_int; 2750 2751// Check _Alignof. 2752enum 2753{ 2754 int_alignment = _Alignof (int), 2755 int_array_alignment = _Alignof (int[100]), 2756 char_alignment = _Alignof (char) 2757}; 2758_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2759 2760// Check _Noreturn. 2761int _Noreturn does_not_return (void) { for (;;) continue; } 2762 2763// Check _Static_assert. 2764struct test_static_assert 2765{ 2766 int x; 2767 _Static_assert (sizeof (int) <= sizeof (long int), 2768 "_Static_assert does not work in struct"); 2769 long int y; 2770}; 2771 2772// Check UTF-8 literals. 2773#define u8 syntax error! 2774char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2775 2776// Check duplicate typedefs. 2777typedef long *long_ptr; 2778typedef long int *long_ptr; 2779typedef long_ptr long_ptr; 2780 2781// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2782struct anonymous 2783{ 2784 union { 2785 struct { int i; int j; }; 2786 struct { int k; long int l; } w; 2787 }; 2788 int m; 2789} v1; 2790' 2791 2792# Test code for whether the C compiler supports C11 (body of main). 2793ac_c_conftest_c11_main=' 2794 _Static_assert ((offsetof (struct anonymous, i) 2795 == offsetof (struct anonymous, w.k)), 2796 "Anonymous union alignment botch"); 2797 v1.i = 2; 2798 v1.w.k = 5; 2799 ok |= v1.i != 5; 2800' 2801 2802# Test code for whether the C compiler supports C11 (complete). 2803ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2804${ac_c_conftest_c99_globals} 2805${ac_c_conftest_c11_globals} 2806 2807int 2808main (int argc, char **argv) 2809{ 2810 int ok = 0; 2811 ${ac_c_conftest_c89_main} 2812 ${ac_c_conftest_c99_main} 2813 ${ac_c_conftest_c11_main} 2814 return ok; 2815} 2816" 2817 2818# Test code for whether the C compiler supports C99 (complete). 2819ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2820${ac_c_conftest_c99_globals} 2821 2822int 2823main (int argc, char **argv) 2824{ 2825 int ok = 0; 2826 ${ac_c_conftest_c89_main} 2827 ${ac_c_conftest_c99_main} 2828 return ok; 2829} 2830" 2831 2832# Test code for whether the C compiler supports C89 (complete). 2833ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2834 2835int 2836main (int argc, char **argv) 2837{ 2838 int ok = 0; 2839 ${ac_c_conftest_c89_main} 2840 return ok; 2841} 2842" 2843 2844as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2845as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2846as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2847as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2848as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2849as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2850as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2851as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2852as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2853as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2854as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2855as_fn_append ac_func_c_list " fork HAVE_FORK" 2856as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2857 2858# Auxiliary files required by this configure script. 2859ac_aux_files="config.guess config.sub install-sh" 2860 2861# Locations in which to look for auxiliary files. 2862ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2863 2864# Search for a directory containing all of the required auxiliary files, 2865# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2866# If we don't find one directory that contains all the files we need, 2867# we report the set of missing files from the *first* directory in 2868# $ac_aux_dir_candidates and give up. 2869ac_missing_aux_files="" 2870ac_first_candidate=: 2871printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873as_found=false 2874for as_dir in $ac_aux_dir_candidates 2875do 2876 IFS=$as_save_IFS 2877 case $as_dir in #((( 2878 '') as_dir=./ ;; 2879 */) ;; 2880 *) as_dir=$as_dir/ ;; 2881 esac 2882 as_found=: 2883 2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2885 ac_aux_dir_found=yes 2886 ac_install_sh= 2887 for ac_aux in $ac_aux_files 2888 do 2889 # As a special case, if "install-sh" is required, that requirement 2890 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2891 # and $ac_install_sh is set appropriately for whichever one is found. 2892 if test x"$ac_aux" = x"install-sh" 2893 then 2894 if test -f "${as_dir}install-sh"; then 2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2896 ac_install_sh="${as_dir}install-sh -c" 2897 elif test -f "${as_dir}install.sh"; then 2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2899 ac_install_sh="${as_dir}install.sh -c" 2900 elif test -f "${as_dir}shtool"; then 2901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2902 ac_install_sh="${as_dir}shtool install -c" 2903 else 2904 ac_aux_dir_found=no 2905 if $ac_first_candidate; then 2906 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2907 else 2908 break 2909 fi 2910 fi 2911 else 2912 if test -f "${as_dir}${ac_aux}"; then 2913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2914 else 2915 ac_aux_dir_found=no 2916 if $ac_first_candidate; then 2917 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2918 else 2919 break 2920 fi 2921 fi 2922 fi 2923 done 2924 if test "$ac_aux_dir_found" = yes; then 2925 ac_aux_dir="$as_dir" 2926 break 2927 fi 2928 ac_first_candidate=false 2929 2930 as_found=false 2931done 2932IFS=$as_save_IFS 2933if $as_found 2934then : 2935 2936else $as_nop 2937 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2938fi 2939 2940 2941# These three variables are undocumented and unsupported, 2942# and are intended to be withdrawn in a future Autoconf release. 2943# They can cause serious problems if a builder's source tree is in a directory 2944# whose full name contains unusual characters. 2945if test -f "${ac_aux_dir}config.guess"; then 2946 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2947fi 2948if test -f "${ac_aux_dir}config.sub"; then 2949 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2950fi 2951if test -f "$ac_aux_dir/configure"; then 2952 ac_configure="$SHELL ${ac_aux_dir}configure" 2953fi 2954 2955# Check that the precious variables saved in the cache have kept the same 2956# value. 2957ac_cache_corrupted=false 2958for ac_var in $ac_precious_vars; do 2959 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2960 eval ac_new_set=\$ac_env_${ac_var}_set 2961 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2962 eval ac_new_val=\$ac_env_${ac_var}_value 2963 case $ac_old_set,$ac_new_set in 2964 set,) 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2966printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2967 ac_cache_corrupted=: ;; 2968 ,set) 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2970printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2971 ac_cache_corrupted=: ;; 2972 ,);; 2973 *) 2974 if test "x$ac_old_val" != "x$ac_new_val"; then 2975 # differences in whitespace do not lead to failure. 2976 ac_old_val_w=`echo x $ac_old_val` 2977 ac_new_val_w=`echo x $ac_new_val` 2978 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2980printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2981 ac_cache_corrupted=: 2982 else 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2984printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2985 eval $ac_var=\$ac_old_val 2986 fi 2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2988printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2990printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2991 fi;; 2992 esac 2993 # Pass precious variables to config.status. 2994 if test "$ac_new_set" = set; then 2995 case $ac_new_val in 2996 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2997 *) ac_arg=$ac_var=$ac_new_val ;; 2998 esac 2999 case " $ac_configure_args " in 3000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3001 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3002 esac 3003 fi 3004done 3005if $ac_cache_corrupted; then 3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3007printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3009printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3010 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3011 and start over" "$LINENO" 5 3012fi 3013## -------------------- ## 3014## Main body of script. ## 3015## -------------------- ## 3016 3017ac_ext=c 3018ac_cpp='$CPP $CPPFLAGS' 3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3021ac_compiler_gnu=$ac_cv_c_compiler_gnu 3022 3023 3024ac_config_headers="$ac_config_headers config.h" 3025 3026 3027# 3028# Setup the standard programs 3029# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html 3030 3031 3032 3033 3034 3035 3036 3037 3038cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 3039 3040printf "%s\n" "#define CONFCMDLINE \"$cmdln\"" >>confdefs.h 3041 3042 3043CFLAGS="$CFLAGS" 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053ac_ext=c 3054ac_cpp='$CPP $CPPFLAGS' 3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3057ac_compiler_gnu=$ac_cv_c_compiler_gnu 3058if test -n "$ac_tool_prefix"; then 3059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3060set dummy ${ac_tool_prefix}gcc; ac_word=$2 3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062printf %s "checking for $ac_word... " >&6; } 3063if test ${ac_cv_prog_CC+y} 3064then : 3065 printf %s "(cached) " >&6 3066else $as_nop 3067 if test -n "$CC"; then 3068 ac_cv_prog_CC="$CC" # Let the user override the test. 3069else 3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071for as_dir in $PATH 3072do 3073 IFS=$as_save_IFS 3074 case $as_dir in #((( 3075 '') as_dir=./ ;; 3076 */) ;; 3077 *) as_dir=$as_dir/ ;; 3078 esac 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3081 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085done 3086 done 3087IFS=$as_save_IFS 3088 3089fi 3090fi 3091CC=$ac_cv_prog_CC 3092if test -n "$CC"; then 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3094printf "%s\n" "$CC" >&6; } 3095else 3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097printf "%s\n" "no" >&6; } 3098fi 3099 3100 3101fi 3102if test -z "$ac_cv_prog_CC"; then 3103 ac_ct_CC=$CC 3104 # Extract the first word of "gcc", so it can be a program name with args. 3105set dummy gcc; ac_word=$2 3106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3107printf %s "checking for $ac_word... " >&6; } 3108if test ${ac_cv_prog_ac_ct_CC+y} 3109then : 3110 printf %s "(cached) " >&6 3111else $as_nop 3112 if test -n "$ac_ct_CC"; then 3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3114else 3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3116for as_dir in $PATH 3117do 3118 IFS=$as_save_IFS 3119 case $as_dir in #((( 3120 '') as_dir=./ ;; 3121 */) ;; 3122 *) as_dir=$as_dir/ ;; 3123 esac 3124 for ac_exec_ext in '' $ac_executable_extensions; do 3125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3126 ac_cv_prog_ac_ct_CC="gcc" 3127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3128 break 2 3129 fi 3130done 3131 done 3132IFS=$as_save_IFS 3133 3134fi 3135fi 3136ac_ct_CC=$ac_cv_prog_ac_ct_CC 3137if test -n "$ac_ct_CC"; then 3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3139printf "%s\n" "$ac_ct_CC" >&6; } 3140else 3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3142printf "%s\n" "no" >&6; } 3143fi 3144 3145 if test "x$ac_ct_CC" = x; then 3146 CC="" 3147 else 3148 case $cross_compiling:$ac_tool_warned in 3149yes:) 3150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3151printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3152ac_tool_warned=yes ;; 3153esac 3154 CC=$ac_ct_CC 3155 fi 3156else 3157 CC="$ac_cv_prog_CC" 3158fi 3159 3160if test -z "$CC"; then 3161 if test -n "$ac_tool_prefix"; then 3162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3163set dummy ${ac_tool_prefix}cc; ac_word=$2 3164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3165printf %s "checking for $ac_word... " >&6; } 3166if test ${ac_cv_prog_CC+y} 3167then : 3168 printf %s "(cached) " >&6 3169else $as_nop 3170 if test -n "$CC"; then 3171 ac_cv_prog_CC="$CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 case $as_dir in #((( 3178 '') as_dir=./ ;; 3179 */) ;; 3180 *) as_dir=$as_dir/ ;; 3181 esac 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3184 ac_cv_prog_CC="${ac_tool_prefix}cc" 3185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3186 break 2 3187 fi 3188done 3189 done 3190IFS=$as_save_IFS 3191 3192fi 3193fi 3194CC=$ac_cv_prog_CC 3195if test -n "$CC"; then 3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3197printf "%s\n" "$CC" >&6; } 3198else 3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200printf "%s\n" "no" >&6; } 3201fi 3202 3203 3204 fi 3205fi 3206if test -z "$CC"; then 3207 # Extract the first word of "cc", so it can be a program name with args. 3208set dummy cc; ac_word=$2 3209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3210printf %s "checking for $ac_word... " >&6; } 3211if test ${ac_cv_prog_CC+y} 3212then : 3213 printf %s "(cached) " >&6 3214else $as_nop 3215 if test -n "$CC"; then 3216 ac_cv_prog_CC="$CC" # Let the user override the test. 3217else 3218 ac_prog_rejected=no 3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3220for as_dir in $PATH 3221do 3222 IFS=$as_save_IFS 3223 case $as_dir in #((( 3224 '') as_dir=./ ;; 3225 */) ;; 3226 *) as_dir=$as_dir/ ;; 3227 esac 3228 for ac_exec_ext in '' $ac_executable_extensions; do 3229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3230 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3231 ac_prog_rejected=yes 3232 continue 3233 fi 3234 ac_cv_prog_CC="cc" 3235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3236 break 2 3237 fi 3238done 3239 done 3240IFS=$as_save_IFS 3241 3242if test $ac_prog_rejected = yes; then 3243 # We found a bogon in the path, so make sure we never use it. 3244 set dummy $ac_cv_prog_CC 3245 shift 3246 if test $# != 0; then 3247 # We chose a different compiler from the bogus one. 3248 # However, it has the same basename, so the bogon will be chosen 3249 # first if we set CC to just the basename; use the full file name. 3250 shift 3251 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3252 fi 3253fi 3254fi 3255fi 3256CC=$ac_cv_prog_CC 3257if test -n "$CC"; then 3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3259printf "%s\n" "$CC" >&6; } 3260else 3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3262printf "%s\n" "no" >&6; } 3263fi 3264 3265 3266fi 3267if test -z "$CC"; then 3268 if test -n "$ac_tool_prefix"; then 3269 for ac_prog in cl.exe 3270 do 3271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3272set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3274printf %s "checking for $ac_word... " >&6; } 3275if test ${ac_cv_prog_CC+y} 3276then : 3277 printf %s "(cached) " >&6 3278else $as_nop 3279 if test -n "$CC"; then 3280 ac_cv_prog_CC="$CC" # Let the user override the test. 3281else 3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283for as_dir in $PATH 3284do 3285 IFS=$as_save_IFS 3286 case $as_dir in #((( 3287 '') as_dir=./ ;; 3288 */) ;; 3289 *) as_dir=$as_dir/ ;; 3290 esac 3291 for ac_exec_ext in '' $ac_executable_extensions; do 3292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3295 break 2 3296 fi 3297done 3298 done 3299IFS=$as_save_IFS 3300 3301fi 3302fi 3303CC=$ac_cv_prog_CC 3304if test -n "$CC"; then 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3306printf "%s\n" "$CC" >&6; } 3307else 3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3309printf "%s\n" "no" >&6; } 3310fi 3311 3312 3313 test -n "$CC" && break 3314 done 3315fi 3316if test -z "$CC"; then 3317 ac_ct_CC=$CC 3318 for ac_prog in cl.exe 3319do 3320 # Extract the first word of "$ac_prog", so it can be a program name with args. 3321set dummy $ac_prog; ac_word=$2 3322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3323printf %s "checking for $ac_word... " >&6; } 3324if test ${ac_cv_prog_ac_ct_CC+y} 3325then : 3326 printf %s "(cached) " >&6 3327else $as_nop 3328 if test -n "$ac_ct_CC"; then 3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3330else 3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3332for as_dir in $PATH 3333do 3334 IFS=$as_save_IFS 3335 case $as_dir in #((( 3336 '') as_dir=./ ;; 3337 */) ;; 3338 *) as_dir=$as_dir/ ;; 3339 esac 3340 for ac_exec_ext in '' $ac_executable_extensions; do 3341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3342 ac_cv_prog_ac_ct_CC="$ac_prog" 3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3344 break 2 3345 fi 3346done 3347 done 3348IFS=$as_save_IFS 3349 3350fi 3351fi 3352ac_ct_CC=$ac_cv_prog_ac_ct_CC 3353if test -n "$ac_ct_CC"; then 3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3355printf "%s\n" "$ac_ct_CC" >&6; } 3356else 3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3358printf "%s\n" "no" >&6; } 3359fi 3360 3361 3362 test -n "$ac_ct_CC" && break 3363done 3364 3365 if test "x$ac_ct_CC" = x; then 3366 CC="" 3367 else 3368 case $cross_compiling:$ac_tool_warned in 3369yes:) 3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3371printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3372ac_tool_warned=yes ;; 3373esac 3374 CC=$ac_ct_CC 3375 fi 3376fi 3377 3378fi 3379if test -z "$CC"; then 3380 if test -n "$ac_tool_prefix"; then 3381 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3382set dummy ${ac_tool_prefix}clang; ac_word=$2 3383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3384printf %s "checking for $ac_word... " >&6; } 3385if test ${ac_cv_prog_CC+y} 3386then : 3387 printf %s "(cached) " >&6 3388else $as_nop 3389 if test -n "$CC"; then 3390 ac_cv_prog_CC="$CC" # Let the user override the test. 3391else 3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393for as_dir in $PATH 3394do 3395 IFS=$as_save_IFS 3396 case $as_dir in #((( 3397 '') as_dir=./ ;; 3398 */) ;; 3399 *) as_dir=$as_dir/ ;; 3400 esac 3401 for ac_exec_ext in '' $ac_executable_extensions; do 3402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3403 ac_cv_prog_CC="${ac_tool_prefix}clang" 3404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3405 break 2 3406 fi 3407done 3408 done 3409IFS=$as_save_IFS 3410 3411fi 3412fi 3413CC=$ac_cv_prog_CC 3414if test -n "$CC"; then 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3416printf "%s\n" "$CC" >&6; } 3417else 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419printf "%s\n" "no" >&6; } 3420fi 3421 3422 3423fi 3424if test -z "$ac_cv_prog_CC"; then 3425 ac_ct_CC=$CC 3426 # Extract the first word of "clang", so it can be a program name with args. 3427set dummy clang; ac_word=$2 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3429printf %s "checking for $ac_word... " >&6; } 3430if test ${ac_cv_prog_ac_ct_CC+y} 3431then : 3432 printf %s "(cached) " >&6 3433else $as_nop 3434 if test -n "$ac_ct_CC"; then 3435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 case $as_dir in #((( 3442 '') as_dir=./ ;; 3443 */) ;; 3444 *) as_dir=$as_dir/ ;; 3445 esac 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_ac_ct_CC="clang" 3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452done 3453 done 3454IFS=$as_save_IFS 3455 3456fi 3457fi 3458ac_ct_CC=$ac_cv_prog_ac_ct_CC 3459if test -n "$ac_ct_CC"; then 3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3461printf "%s\n" "$ac_ct_CC" >&6; } 3462else 3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464printf "%s\n" "no" >&6; } 3465fi 3466 3467 if test "x$ac_ct_CC" = x; then 3468 CC="" 3469 else 3470 case $cross_compiling:$ac_tool_warned in 3471yes:) 3472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3473printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3474ac_tool_warned=yes ;; 3475esac 3476 CC=$ac_ct_CC 3477 fi 3478else 3479 CC="$ac_cv_prog_CC" 3480fi 3481 3482fi 3483 3484 3485test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3486printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3487as_fn_error $? "no acceptable C compiler found in \$PATH 3488See \`config.log' for more details" "$LINENO" 5; } 3489 3490# Provide some information about the compiler. 3491printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3492set X $ac_compile 3493ac_compiler=$2 3494for ac_option in --version -v -V -qversion -version; do 3495 { { ac_try="$ac_compiler $ac_option >&5" 3496case "(($ac_try" in 3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3498 *) ac_try_echo=$ac_try;; 3499esac 3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3501printf "%s\n" "$ac_try_echo"; } >&5 3502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3503 ac_status=$? 3504 if test -s conftest.err; then 3505 sed '10a\ 3506... rest of stderr output deleted ... 3507 10q' conftest.err >conftest.er1 3508 cat conftest.er1 >&5 3509 fi 3510 rm -f conftest.er1 conftest.err 3511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3512 test $ac_status = 0; } 3513done 3514 3515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517 3518int 3519main (void) 3520{ 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526ac_clean_files_save=$ac_clean_files 3527ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3528# Try to create an executable without -o first, disregard a.out. 3529# It will help us diagnose broken compilers, and finding out an intuition 3530# of exeext. 3531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3532printf %s "checking whether the C compiler works... " >&6; } 3533ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3534 3535# The possible output files: 3536ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3537 3538ac_rmfiles= 3539for ac_file in $ac_files 3540do 3541 case $ac_file in 3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3543 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3544 esac 3545done 3546rm -f $ac_rmfiles 3547 3548if { { ac_try="$ac_link_default" 3549case "(($ac_try" in 3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3551 *) ac_try_echo=$ac_try;; 3552esac 3553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3554printf "%s\n" "$ac_try_echo"; } >&5 3555 (eval "$ac_link_default") 2>&5 3556 ac_status=$? 3557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3558 test $ac_status = 0; } 3559then : 3560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3561# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3562# in a Makefile. We should not override ac_cv_exeext if it was cached, 3563# so that the user can short-circuit this test for compilers unknown to 3564# Autoconf. 3565for ac_file in $ac_files '' 3566do 3567 test -f "$ac_file" || continue 3568 case $ac_file in 3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3570 ;; 3571 [ab].out ) 3572 # We found the default executable, but exeext='' is most 3573 # certainly right. 3574 break;; 3575 *.* ) 3576 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3577 then :; else 3578 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3579 fi 3580 # We set ac_cv_exeext here because the later test for it is not 3581 # safe: cross compilers may not add the suffix if given an `-o' 3582 # argument, so we may need to know it at that point already. 3583 # Even if this section looks crufty: it has the advantage of 3584 # actually working. 3585 break;; 3586 * ) 3587 break;; 3588 esac 3589done 3590test "$ac_cv_exeext" = no && ac_cv_exeext= 3591 3592else $as_nop 3593 ac_file='' 3594fi 3595if test -z "$ac_file" 3596then : 3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3598printf "%s\n" "no" >&6; } 3599printf "%s\n" "$as_me: failed program was:" >&5 3600sed 's/^/| /' conftest.$ac_ext >&5 3601 3602{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3603printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3604as_fn_error 77 "C compiler cannot create executables 3605See \`config.log' for more details" "$LINENO" 5; } 3606else $as_nop 3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3608printf "%s\n" "yes" >&6; } 3609fi 3610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3611printf %s "checking for C compiler default output file name... " >&6; } 3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3613printf "%s\n" "$ac_file" >&6; } 3614ac_exeext=$ac_cv_exeext 3615 3616rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3617ac_clean_files=$ac_clean_files_save 3618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3619printf %s "checking for suffix of executables... " >&6; } 3620if { { ac_try="$ac_link" 3621case "(($ac_try" in 3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3623 *) ac_try_echo=$ac_try;; 3624esac 3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3626printf "%s\n" "$ac_try_echo"; } >&5 3627 (eval "$ac_link") 2>&5 3628 ac_status=$? 3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3630 test $ac_status = 0; } 3631then : 3632 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3633# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3634# work properly (i.e., refer to `conftest.exe'), while it won't with 3635# `rm'. 3636for ac_file in conftest.exe conftest conftest.*; do 3637 test -f "$ac_file" || continue 3638 case $ac_file in 3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3641 break;; 3642 * ) break;; 3643 esac 3644done 3645else $as_nop 3646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3647printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3648as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3649See \`config.log' for more details" "$LINENO" 5; } 3650fi 3651rm -f conftest conftest$ac_cv_exeext 3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3653printf "%s\n" "$ac_cv_exeext" >&6; } 3654 3655rm -f conftest.$ac_ext 3656EXEEXT=$ac_cv_exeext 3657ac_exeext=$EXEEXT 3658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3659/* end confdefs.h. */ 3660#include <stdio.h> 3661int 3662main (void) 3663{ 3664FILE *f = fopen ("conftest.out", "w"); 3665 return ferror (f) || fclose (f) != 0; 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671ac_clean_files="$ac_clean_files conftest.out" 3672# Check that the compiler produces executables we can run. If not, either 3673# the compiler is broken, or we cross compile. 3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3675printf %s "checking whether we are cross compiling... " >&6; } 3676if test "$cross_compiling" != yes; then 3677 { { ac_try="$ac_link" 3678case "(($ac_try" in 3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3680 *) ac_try_echo=$ac_try;; 3681esac 3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3683printf "%s\n" "$ac_try_echo"; } >&5 3684 (eval "$ac_link") 2>&5 3685 ac_status=$? 3686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3687 test $ac_status = 0; } 3688 if { ac_try='./conftest$ac_cv_exeext' 3689 { { case "(($ac_try" in 3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3691 *) ac_try_echo=$ac_try;; 3692esac 3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3694printf "%s\n" "$ac_try_echo"; } >&5 3695 (eval "$ac_try") 2>&5 3696 ac_status=$? 3697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3698 test $ac_status = 0; }; }; then 3699 cross_compiling=no 3700 else 3701 if test "$cross_compiling" = maybe; then 3702 cross_compiling=yes 3703 else 3704 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3705printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3706as_fn_error 77 "cannot run C compiled programs. 3707If you meant to cross compile, use \`--host'. 3708See \`config.log' for more details" "$LINENO" 5; } 3709 fi 3710 fi 3711fi 3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3713printf "%s\n" "$cross_compiling" >&6; } 3714 3715rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3716ac_clean_files=$ac_clean_files_save 3717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3718printf %s "checking for suffix of object files... " >&6; } 3719if test ${ac_cv_objext+y} 3720then : 3721 printf %s "(cached) " >&6 3722else $as_nop 3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726int 3727main (void) 3728{ 3729 3730 ; 3731 return 0; 3732} 3733_ACEOF 3734rm -f conftest.o conftest.obj 3735if { { ac_try="$ac_compile" 3736case "(($ac_try" in 3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3738 *) ac_try_echo=$ac_try;; 3739esac 3740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3741printf "%s\n" "$ac_try_echo"; } >&5 3742 (eval "$ac_compile") 2>&5 3743 ac_status=$? 3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3745 test $ac_status = 0; } 3746then : 3747 for ac_file in conftest.o conftest.obj conftest.*; do 3748 test -f "$ac_file" || continue; 3749 case $ac_file in 3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3751 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3752 break;; 3753 esac 3754done 3755else $as_nop 3756 printf "%s\n" "$as_me: failed program was:" >&5 3757sed 's/^/| /' conftest.$ac_ext >&5 3758 3759{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3760printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3761as_fn_error $? "cannot compute suffix of object files: cannot compile 3762See \`config.log' for more details" "$LINENO" 5; } 3763fi 3764rm -f conftest.$ac_cv_objext conftest.$ac_ext 3765fi 3766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3767printf "%s\n" "$ac_cv_objext" >&6; } 3768OBJEXT=$ac_cv_objext 3769ac_objext=$OBJEXT 3770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3771printf %s "checking whether the compiler supports GNU C... " >&6; } 3772if test ${ac_cv_c_compiler_gnu+y} 3773then : 3774 printf %s "(cached) " >&6 3775else $as_nop 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3777/* end confdefs.h. */ 3778 3779int 3780main (void) 3781{ 3782#ifndef __GNUC__ 3783 choke me 3784#endif 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790if ac_fn_c_try_compile "$LINENO" 3791then : 3792 ac_compiler_gnu=yes 3793else $as_nop 3794 ac_compiler_gnu=no 3795fi 3796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3797ac_cv_c_compiler_gnu=$ac_compiler_gnu 3798 3799fi 3800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3801printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3802ac_compiler_gnu=$ac_cv_c_compiler_gnu 3803 3804if test $ac_compiler_gnu = yes; then 3805 GCC=yes 3806else 3807 GCC= 3808fi 3809ac_test_CFLAGS=${CFLAGS+y} 3810ac_save_CFLAGS=$CFLAGS 3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3812printf %s "checking whether $CC accepts -g... " >&6; } 3813if test ${ac_cv_prog_cc_g+y} 3814then : 3815 printf %s "(cached) " >&6 3816else $as_nop 3817 ac_save_c_werror_flag=$ac_c_werror_flag 3818 ac_c_werror_flag=yes 3819 ac_cv_prog_cc_g=no 3820 CFLAGS="-g" 3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822/* end confdefs.h. */ 3823 3824int 3825main (void) 3826{ 3827 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832if ac_fn_c_try_compile "$LINENO" 3833then : 3834 ac_cv_prog_cc_g=yes 3835else $as_nop 3836 CFLAGS="" 3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838/* end confdefs.h. */ 3839 3840int 3841main (void) 3842{ 3843 3844 ; 3845 return 0; 3846} 3847_ACEOF 3848if ac_fn_c_try_compile "$LINENO" 3849then : 3850 3851else $as_nop 3852 ac_c_werror_flag=$ac_save_c_werror_flag 3853 CFLAGS="-g" 3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3855/* end confdefs.h. */ 3856 3857int 3858main (void) 3859{ 3860 3861 ; 3862 return 0; 3863} 3864_ACEOF 3865if ac_fn_c_try_compile "$LINENO" 3866then : 3867 ac_cv_prog_cc_g=yes 3868fi 3869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3870fi 3871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3872fi 3873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3874 ac_c_werror_flag=$ac_save_c_werror_flag 3875fi 3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3877printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3878if test $ac_test_CFLAGS; then 3879 CFLAGS=$ac_save_CFLAGS 3880elif test $ac_cv_prog_cc_g = yes; then 3881 if test "$GCC" = yes; then 3882 CFLAGS="-g -O2" 3883 else 3884 CFLAGS="-g" 3885 fi 3886else 3887 if test "$GCC" = yes; then 3888 CFLAGS="-O2" 3889 else 3890 CFLAGS= 3891 fi 3892fi 3893ac_prog_cc_stdc=no 3894if test x$ac_prog_cc_stdc = xno 3895then : 3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3897printf %s "checking for $CC option to enable C11 features... " >&6; } 3898if test ${ac_cv_prog_cc_c11+y} 3899then : 3900 printf %s "(cached) " >&6 3901else $as_nop 3902 ac_cv_prog_cc_c11=no 3903ac_save_CC=$CC 3904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905/* end confdefs.h. */ 3906$ac_c_conftest_c11_program 3907_ACEOF 3908for ac_arg in '' -std=gnu11 3909do 3910 CC="$ac_save_CC $ac_arg" 3911 if ac_fn_c_try_compile "$LINENO" 3912then : 3913 ac_cv_prog_cc_c11=$ac_arg 3914fi 3915rm -f core conftest.err conftest.$ac_objext conftest.beam 3916 test "x$ac_cv_prog_cc_c11" != "xno" && break 3917done 3918rm -f conftest.$ac_ext 3919CC=$ac_save_CC 3920fi 3921 3922if test "x$ac_cv_prog_cc_c11" = xno 3923then : 3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3925printf "%s\n" "unsupported" >&6; } 3926else $as_nop 3927 if test "x$ac_cv_prog_cc_c11" = x 3928then : 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3930printf "%s\n" "none needed" >&6; } 3931else $as_nop 3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3933printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3934 CC="$CC $ac_cv_prog_cc_c11" 3935fi 3936 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3937 ac_prog_cc_stdc=c11 3938fi 3939fi 3940if test x$ac_prog_cc_stdc = xno 3941then : 3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3943printf %s "checking for $CC option to enable C99 features... " >&6; } 3944if test ${ac_cv_prog_cc_c99+y} 3945then : 3946 printf %s "(cached) " >&6 3947else $as_nop 3948 ac_cv_prog_cc_c99=no 3949ac_save_CC=$CC 3950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3951/* end confdefs.h. */ 3952$ac_c_conftest_c99_program 3953_ACEOF 3954for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3955do 3956 CC="$ac_save_CC $ac_arg" 3957 if ac_fn_c_try_compile "$LINENO" 3958then : 3959 ac_cv_prog_cc_c99=$ac_arg 3960fi 3961rm -f core conftest.err conftest.$ac_objext conftest.beam 3962 test "x$ac_cv_prog_cc_c99" != "xno" && break 3963done 3964rm -f conftest.$ac_ext 3965CC=$ac_save_CC 3966fi 3967 3968if test "x$ac_cv_prog_cc_c99" = xno 3969then : 3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3971printf "%s\n" "unsupported" >&6; } 3972else $as_nop 3973 if test "x$ac_cv_prog_cc_c99" = x 3974then : 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3976printf "%s\n" "none needed" >&6; } 3977else $as_nop 3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3979printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3980 CC="$CC $ac_cv_prog_cc_c99" 3981fi 3982 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3983 ac_prog_cc_stdc=c99 3984fi 3985fi 3986if test x$ac_prog_cc_stdc = xno 3987then : 3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3989printf %s "checking for $CC option to enable C89 features... " >&6; } 3990if test ${ac_cv_prog_cc_c89+y} 3991then : 3992 printf %s "(cached) " >&6 3993else $as_nop 3994 ac_cv_prog_cc_c89=no 3995ac_save_CC=$CC 3996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997/* end confdefs.h. */ 3998$ac_c_conftest_c89_program 3999_ACEOF 4000for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4001do 4002 CC="$ac_save_CC $ac_arg" 4003 if ac_fn_c_try_compile "$LINENO" 4004then : 4005 ac_cv_prog_cc_c89=$ac_arg 4006fi 4007rm -f core conftest.err conftest.$ac_objext conftest.beam 4008 test "x$ac_cv_prog_cc_c89" != "xno" && break 4009done 4010rm -f conftest.$ac_ext 4011CC=$ac_save_CC 4012fi 4013 4014if test "x$ac_cv_prog_cc_c89" = xno 4015then : 4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4017printf "%s\n" "unsupported" >&6; } 4018else $as_nop 4019 if test "x$ac_cv_prog_cc_c89" = x 4020then : 4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4022printf "%s\n" "none needed" >&6; } 4023else $as_nop 4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4025printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4026 CC="$CC $ac_cv_prog_cc_c89" 4027fi 4028 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4029 ac_prog_cc_stdc=c89 4030fi 4031fi 4032 4033ac_ext=c 4034ac_cpp='$CPP $CPPFLAGS' 4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4037ac_compiler_gnu=$ac_cv_c_compiler_gnu 4038 4039 4040ac_header= ac_cache= 4041for ac_item in $ac_header_c_list 4042do 4043 if test $ac_cache; then 4044 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4045 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4046 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4047 fi 4048 ac_header= ac_cache= 4049 elif test $ac_header; then 4050 ac_cache=$ac_item 4051 else 4052 ac_header=$ac_item 4053 fi 4054done 4055 4056 4057 4058 4059 4060 4061 4062 4063if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4064then : 4065 4066printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4067 4068fi 4069 4070 4071 4072 4073 4074 4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4076printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4077if test ${ac_cv_safe_to_define___extensions__+y} 4078then : 4079 printf %s "(cached) " >&6 4080else $as_nop 4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083 4084# define __EXTENSIONS__ 1 4085 $ac_includes_default 4086int 4087main (void) 4088{ 4089 4090 ; 4091 return 0; 4092} 4093_ACEOF 4094if ac_fn_c_try_compile "$LINENO" 4095then : 4096 ac_cv_safe_to_define___extensions__=yes 4097else $as_nop 4098 ac_cv_safe_to_define___extensions__=no 4099fi 4100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4101fi 4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4103printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4104 4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4106printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4107if test ${ac_cv_should_define__xopen_source+y} 4108then : 4109 printf %s "(cached) " >&6 4110else $as_nop 4111 ac_cv_should_define__xopen_source=no 4112 if test $ac_cv_header_wchar_h = yes 4113then : 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116 4117 #include <wchar.h> 4118 mbstate_t x; 4119int 4120main (void) 4121{ 4122 4123 ; 4124 return 0; 4125} 4126_ACEOF 4127if ac_fn_c_try_compile "$LINENO" 4128then : 4129 4130else $as_nop 4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132/* end confdefs.h. */ 4133 4134 #define _XOPEN_SOURCE 500 4135 #include <wchar.h> 4136 mbstate_t x; 4137int 4138main (void) 4139{ 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145if ac_fn_c_try_compile "$LINENO" 4146then : 4147 ac_cv_should_define__xopen_source=yes 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4150fi 4151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4152fi 4153fi 4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4155printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4156 4157 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4158 4159 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4160 4161 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4162 4163 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4164 4165 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4166 4167 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4168 4169 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4170 4171 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4172 4173 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4174 4175 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4176 4177 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4178 4179 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4180 4181 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4182 4183 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4184 4185 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4186 4187 if test $ac_cv_header_minix_config_h = yes 4188then : 4189 MINIX=yes 4190 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4191 4192 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4193 4194 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4195 4196else $as_nop 4197 MINIX= 4198fi 4199 if test $ac_cv_safe_to_define___extensions__ = yes 4200then : 4201 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4202 4203fi 4204 if test $ac_cv_should_define__xopen_source = yes 4205then : 4206 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4207 4208fi 4209 4210if test "$ac_cv_header_minix_config_h" = "yes"; then 4211 4212printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4213 4214fi 4215 4216case "$prefix" in 4217 NONE) 4218 case "$sysconfdir" in 4219 '${prefix}/etc') 4220 sysconfdir=/etc 4221 ;; 4222 esac 4223 case "$localstatedir" in 4224 '${prefix}/var') 4225 localstatedir=/var 4226 ;; 4227 esac 4228 ;; 4229esac 4230 4231# 4232# Determine configuration directory 4233# 4234configdir=$sysconfdir/nsd 4235 4236# Check whether --with-configdir was given. 4237if test ${with_configdir+y} 4238then : 4239 withval=$with_configdir; configdir=$withval 4240fi 4241 4242 4243cat >>confdefs.h <<_ACEOF 4244#define CONFIGDIR "`eval echo $configdir`" 4245_ACEOF 4246 4247 4248 4249# 4250# Determine configuration file 4251nsd_conf_file=${configdir}/nsd.conf 4252 4253# Check whether --with-nsd_conf_file was given. 4254if test ${with_nsd_conf_file+y} 4255then : 4256 withval=$with_nsd_conf_file; nsd_conf_file=$withval 4257fi 4258 4259 4260# the eval is to evaluate shell expansion twice, once 4261# for $nsd_conf_file and once for the ${prefix} within it. 4262 4263cat >>confdefs.h <<_ACEOF 4264#define CONFIGFILE "`eval echo $nsd_conf_file`" 4265_ACEOF 4266 4267 4268# 4269# Default logfile 4270# 4271logfile=${localstatedir}/log/nsd.log 4272 4273# Check whether --with-logfile was given. 4274if test ${with_logfile+y} 4275then : 4276 withval=$with_logfile; logfile=$withval 4277fi 4278 4279 4280 4281# 4282# Database directory 4283# 4284dbdir=${localstatedir}/db/nsd 4285 4286# 4287# Determine the pidfile location. Check if /var/run exists, if so set pidfile 4288# to /var/run/nsd.pid by default 4289# 4290if test -d ${localstatedir}/run; then 4291 pidfile=${localstatedir}/run/nsd.pid 4292else 4293 pidfile=${dbdir}/nsd.pid 4294fi 4295 4296# Check whether --with-pidfile was given. 4297if test ${with_pidfile+y} 4298then : 4299 withval=$with_pidfile; pidfile=$withval 4300fi 4301 4302 4303 4304cat >>confdefs.h <<_ACEOF 4305#define PIDFILE "`eval echo $pidfile`" 4306_ACEOF 4307 4308 4309 4310# Check whether --with-dbfile was given. 4311if test ${with_dbfile+y} 4312then : 4313 withval=$with_dbfile; 4314fi 4315 4316 4317piddir=`dirname $pidfile` 4318 4319 4320# 4321# Determine the default directory for the zone files 4322# 4323zonesdir=$configdir 4324 4325# Check whether --with-zonesdir was given. 4326if test ${with_zonesdir+y} 4327then : 4328 withval=$with_zonesdir; zonesdir=$withval 4329fi 4330 4331 4332 4333cat >>confdefs.h <<_ACEOF 4334#define ZONESDIR "`eval echo $zonesdir`" 4335_ACEOF 4336 4337 4338# default xfrd file location. 4339xfrdfile=${dbdir}/xfrd.state 4340 4341# Check whether --with-xfrdfile was given. 4342if test ${with_xfrdfile+y} 4343then : 4344 withval=$with_xfrdfile; xfrdfile=$withval 4345fi 4346 4347 4348cat >>confdefs.h <<_ACEOF 4349#define XFRDFILE "`eval echo $xfrdfile`" 4350_ACEOF 4351 4352 4353 4354# default zonelist file location. 4355zonelistfile=${dbdir}/zone.list 4356 4357# Check whether --with-zonelistfile was given. 4358if test ${with_zonelistfile+y} 4359then : 4360 withval=$with_zonelistfile; zonelistfile=$withval 4361fi 4362 4363 4364cat >>confdefs.h <<_ACEOF 4365#define ZONELISTFILE "`eval echo $zonelistfile`" 4366_ACEOF 4367 4368 4369 4370# default xfr dir location. 4371xfrdir="/tmp" 4372 4373# Check whether --with-xfrdir was given. 4374if test ${with_xfrdir+y} 4375then : 4376 withval=$with_xfrdir; xfrdir=$withval 4377fi 4378 4379 4380cat >>confdefs.h <<_ACEOF 4381#define XFRDIR "`eval echo $xfrdir`" 4382_ACEOF 4383 4384 4385 4386# nsd sbin location. tmpinstantiate execprefix with defaults if not yet done. 4387if test "x${exec_prefix}" = "xNONE"; then 4388 if test "x${prefix}" = "xNONE"; then exec_prefix="$ac_default_prefix" 4389 else exec_prefix="${prefix}"; fi 4390 nsd_start_path="`eval echo $sbindir`/nsd" 4391 exec_prefix="NONE" 4392else 4393 nsd_start_path="`eval echo $sbindir`/nsd" 4394fi 4395 4396printf "%s\n" "#define NSD_START_PATH \"$nsd_start_path\"" >>confdefs.h 4397 4398 4399# 4400# Determine default chroot directory 4401# 4402 4403# Check whether --with-chroot was given. 4404if test ${with_chroot+y} 4405then : 4406 withval=$with_chroot; 4407 chrootdir=$withval 4408 4409cat >>confdefs.h <<_ACEOF 4410#define CHROOTDIR "`eval echo $chrootdir`" 4411_ACEOF 4412 4413 4414fi 4415 4416 4417 4418# 4419# Determine the user name to drop privileges to 4420# 4421user=nsd 4422 4423# Check whether --with-user was given. 4424if test ${with_user+y} 4425then : 4426 withval=$with_user; user=$withval 4427fi 4428 4429 4430 4431printf "%s\n" "#define USER \"$user\"" >>confdefs.h 4432 4433 4434ac_ext=c 4435ac_cpp='$CPP $CPPFLAGS' 4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4438ac_compiler_gnu=$ac_cv_c_compiler_gnu 4439if test -n "$ac_tool_prefix"; then 4440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4441set dummy ${ac_tool_prefix}gcc; ac_word=$2 4442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4443printf %s "checking for $ac_word... " >&6; } 4444if test ${ac_cv_prog_CC+y} 4445then : 4446 printf %s "(cached) " >&6 4447else $as_nop 4448 if test -n "$CC"; then 4449 ac_cv_prog_CC="$CC" # Let the user override the test. 4450else 4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4452for as_dir in $PATH 4453do 4454 IFS=$as_save_IFS 4455 case $as_dir in #((( 4456 '') as_dir=./ ;; 4457 */) ;; 4458 *) as_dir=$as_dir/ ;; 4459 esac 4460 for ac_exec_ext in '' $ac_executable_extensions; do 4461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4462 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4464 break 2 4465 fi 4466done 4467 done 4468IFS=$as_save_IFS 4469 4470fi 4471fi 4472CC=$ac_cv_prog_CC 4473if test -n "$CC"; then 4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4475printf "%s\n" "$CC" >&6; } 4476else 4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4478printf "%s\n" "no" >&6; } 4479fi 4480 4481 4482fi 4483if test -z "$ac_cv_prog_CC"; then 4484 ac_ct_CC=$CC 4485 # Extract the first word of "gcc", so it can be a program name with args. 4486set dummy gcc; ac_word=$2 4487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4488printf %s "checking for $ac_word... " >&6; } 4489if test ${ac_cv_prog_ac_ct_CC+y} 4490then : 4491 printf %s "(cached) " >&6 4492else $as_nop 4493 if test -n "$ac_ct_CC"; then 4494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4495else 4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497for as_dir in $PATH 4498do 4499 IFS=$as_save_IFS 4500 case $as_dir in #((( 4501 '') as_dir=./ ;; 4502 */) ;; 4503 *) as_dir=$as_dir/ ;; 4504 esac 4505 for ac_exec_ext in '' $ac_executable_extensions; do 4506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4507 ac_cv_prog_ac_ct_CC="gcc" 4508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4509 break 2 4510 fi 4511done 4512 done 4513IFS=$as_save_IFS 4514 4515fi 4516fi 4517ac_ct_CC=$ac_cv_prog_ac_ct_CC 4518if test -n "$ac_ct_CC"; then 4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4520printf "%s\n" "$ac_ct_CC" >&6; } 4521else 4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4523printf "%s\n" "no" >&6; } 4524fi 4525 4526 if test "x$ac_ct_CC" = x; then 4527 CC="" 4528 else 4529 case $cross_compiling:$ac_tool_warned in 4530yes:) 4531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4532printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4533ac_tool_warned=yes ;; 4534esac 4535 CC=$ac_ct_CC 4536 fi 4537else 4538 CC="$ac_cv_prog_CC" 4539fi 4540 4541if test -z "$CC"; then 4542 if test -n "$ac_tool_prefix"; then 4543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4544set dummy ${ac_tool_prefix}cc; ac_word=$2 4545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4546printf %s "checking for $ac_word... " >&6; } 4547if test ${ac_cv_prog_CC+y} 4548then : 4549 printf %s "(cached) " >&6 4550else $as_nop 4551 if test -n "$CC"; then 4552 ac_cv_prog_CC="$CC" # Let the user override the test. 4553else 4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4555for as_dir in $PATH 4556do 4557 IFS=$as_save_IFS 4558 case $as_dir in #((( 4559 '') as_dir=./ ;; 4560 */) ;; 4561 *) as_dir=$as_dir/ ;; 4562 esac 4563 for ac_exec_ext in '' $ac_executable_extensions; do 4564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4565 ac_cv_prog_CC="${ac_tool_prefix}cc" 4566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4567 break 2 4568 fi 4569done 4570 done 4571IFS=$as_save_IFS 4572 4573fi 4574fi 4575CC=$ac_cv_prog_CC 4576if test -n "$CC"; then 4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4578printf "%s\n" "$CC" >&6; } 4579else 4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4581printf "%s\n" "no" >&6; } 4582fi 4583 4584 4585 fi 4586fi 4587if test -z "$CC"; then 4588 # Extract the first word of "cc", so it can be a program name with args. 4589set dummy cc; ac_word=$2 4590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4591printf %s "checking for $ac_word... " >&6; } 4592if test ${ac_cv_prog_CC+y} 4593then : 4594 printf %s "(cached) " >&6 4595else $as_nop 4596 if test -n "$CC"; then 4597 ac_cv_prog_CC="$CC" # Let the user override the test. 4598else 4599 ac_prog_rejected=no 4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH 4602do 4603 IFS=$as_save_IFS 4604 case $as_dir in #((( 4605 '') as_dir=./ ;; 4606 */) ;; 4607 *) as_dir=$as_dir/ ;; 4608 esac 4609 for ac_exec_ext in '' $ac_executable_extensions; do 4610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4611 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4612 ac_prog_rejected=yes 4613 continue 4614 fi 4615 ac_cv_prog_CC="cc" 4616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4617 break 2 4618 fi 4619done 4620 done 4621IFS=$as_save_IFS 4622 4623if test $ac_prog_rejected = yes; then 4624 # We found a bogon in the path, so make sure we never use it. 4625 set dummy $ac_cv_prog_CC 4626 shift 4627 if test $# != 0; then 4628 # We chose a different compiler from the bogus one. 4629 # However, it has the same basename, so the bogon will be chosen 4630 # first if we set CC to just the basename; use the full file name. 4631 shift 4632 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4633 fi 4634fi 4635fi 4636fi 4637CC=$ac_cv_prog_CC 4638if test -n "$CC"; then 4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4640printf "%s\n" "$CC" >&6; } 4641else 4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4643printf "%s\n" "no" >&6; } 4644fi 4645 4646 4647fi 4648if test -z "$CC"; then 4649 if test -n "$ac_tool_prefix"; then 4650 for ac_prog in cl.exe 4651 do 4652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4653set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4655printf %s "checking for $ac_word... " >&6; } 4656if test ${ac_cv_prog_CC+y} 4657then : 4658 printf %s "(cached) " >&6 4659else $as_nop 4660 if test -n "$CC"; then 4661 ac_cv_prog_CC="$CC" # Let the user override the test. 4662else 4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4664for as_dir in $PATH 4665do 4666 IFS=$as_save_IFS 4667 case $as_dir in #((( 4668 '') as_dir=./ ;; 4669 */) ;; 4670 *) as_dir=$as_dir/ ;; 4671 esac 4672 for ac_exec_ext in '' $ac_executable_extensions; do 4673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4676 break 2 4677 fi 4678done 4679 done 4680IFS=$as_save_IFS 4681 4682fi 4683fi 4684CC=$ac_cv_prog_CC 4685if test -n "$CC"; then 4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4687printf "%s\n" "$CC" >&6; } 4688else 4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4690printf "%s\n" "no" >&6; } 4691fi 4692 4693 4694 test -n "$CC" && break 4695 done 4696fi 4697if test -z "$CC"; then 4698 ac_ct_CC=$CC 4699 for ac_prog in cl.exe 4700do 4701 # Extract the first word of "$ac_prog", so it can be a program name with args. 4702set dummy $ac_prog; ac_word=$2 4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4704printf %s "checking for $ac_word... " >&6; } 4705if test ${ac_cv_prog_ac_ct_CC+y} 4706then : 4707 printf %s "(cached) " >&6 4708else $as_nop 4709 if test -n "$ac_ct_CC"; then 4710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4711else 4712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4713for as_dir in $PATH 4714do 4715 IFS=$as_save_IFS 4716 case $as_dir in #((( 4717 '') as_dir=./ ;; 4718 */) ;; 4719 *) as_dir=$as_dir/ ;; 4720 esac 4721 for ac_exec_ext in '' $ac_executable_extensions; do 4722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4723 ac_cv_prog_ac_ct_CC="$ac_prog" 4724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4725 break 2 4726 fi 4727done 4728 done 4729IFS=$as_save_IFS 4730 4731fi 4732fi 4733ac_ct_CC=$ac_cv_prog_ac_ct_CC 4734if test -n "$ac_ct_CC"; then 4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4736printf "%s\n" "$ac_ct_CC" >&6; } 4737else 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4739printf "%s\n" "no" >&6; } 4740fi 4741 4742 4743 test -n "$ac_ct_CC" && break 4744done 4745 4746 if test "x$ac_ct_CC" = x; then 4747 CC="" 4748 else 4749 case $cross_compiling:$ac_tool_warned in 4750yes:) 4751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4752printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4753ac_tool_warned=yes ;; 4754esac 4755 CC=$ac_ct_CC 4756 fi 4757fi 4758 4759fi 4760if test -z "$CC"; then 4761 if test -n "$ac_tool_prefix"; then 4762 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4763set dummy ${ac_tool_prefix}clang; ac_word=$2 4764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4765printf %s "checking for $ac_word... " >&6; } 4766if test ${ac_cv_prog_CC+y} 4767then : 4768 printf %s "(cached) " >&6 4769else $as_nop 4770 if test -n "$CC"; then 4771 ac_cv_prog_CC="$CC" # Let the user override the test. 4772else 4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH 4775do 4776 IFS=$as_save_IFS 4777 case $as_dir in #((( 4778 '') as_dir=./ ;; 4779 */) ;; 4780 *) as_dir=$as_dir/ ;; 4781 esac 4782 for ac_exec_ext in '' $ac_executable_extensions; do 4783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4784 ac_cv_prog_CC="${ac_tool_prefix}clang" 4785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4786 break 2 4787 fi 4788done 4789 done 4790IFS=$as_save_IFS 4791 4792fi 4793fi 4794CC=$ac_cv_prog_CC 4795if test -n "$CC"; then 4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4797printf "%s\n" "$CC" >&6; } 4798else 4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4800printf "%s\n" "no" >&6; } 4801fi 4802 4803 4804fi 4805if test -z "$ac_cv_prog_CC"; then 4806 ac_ct_CC=$CC 4807 # Extract the first word of "clang", so it can be a program name with args. 4808set dummy clang; ac_word=$2 4809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4810printf %s "checking for $ac_word... " >&6; } 4811if test ${ac_cv_prog_ac_ct_CC+y} 4812then : 4813 printf %s "(cached) " >&6 4814else $as_nop 4815 if test -n "$ac_ct_CC"; then 4816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4817else 4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4819for as_dir in $PATH 4820do 4821 IFS=$as_save_IFS 4822 case $as_dir in #((( 4823 '') as_dir=./ ;; 4824 */) ;; 4825 *) as_dir=$as_dir/ ;; 4826 esac 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4829 ac_cv_prog_ac_ct_CC="clang" 4830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833done 4834 done 4835IFS=$as_save_IFS 4836 4837fi 4838fi 4839ac_ct_CC=$ac_cv_prog_ac_ct_CC 4840if test -n "$ac_ct_CC"; then 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4842printf "%s\n" "$ac_ct_CC" >&6; } 4843else 4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4845printf "%s\n" "no" >&6; } 4846fi 4847 4848 if test "x$ac_ct_CC" = x; then 4849 CC="" 4850 else 4851 case $cross_compiling:$ac_tool_warned in 4852yes:) 4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4854printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4855ac_tool_warned=yes ;; 4856esac 4857 CC=$ac_ct_CC 4858 fi 4859else 4860 CC="$ac_cv_prog_CC" 4861fi 4862 4863fi 4864 4865 4866test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4867printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4868as_fn_error $? "no acceptable C compiler found in \$PATH 4869See \`config.log' for more details" "$LINENO" 5; } 4870 4871# Provide some information about the compiler. 4872printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4873set X $ac_compile 4874ac_compiler=$2 4875for ac_option in --version -v -V -qversion -version; do 4876 { { ac_try="$ac_compiler $ac_option >&5" 4877case "(($ac_try" in 4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4879 *) ac_try_echo=$ac_try;; 4880esac 4881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4882printf "%s\n" "$ac_try_echo"; } >&5 4883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4884 ac_status=$? 4885 if test -s conftest.err; then 4886 sed '10a\ 4887... rest of stderr output deleted ... 4888 10q' conftest.err >conftest.er1 4889 cat conftest.er1 >&5 4890 fi 4891 rm -f conftest.er1 conftest.err 4892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4893 test $ac_status = 0; } 4894done 4895 4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4897printf %s "checking whether the compiler supports GNU C... " >&6; } 4898if test ${ac_cv_c_compiler_gnu+y} 4899then : 4900 printf %s "(cached) " >&6 4901else $as_nop 4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4903/* end confdefs.h. */ 4904 4905int 4906main (void) 4907{ 4908#ifndef __GNUC__ 4909 choke me 4910#endif 4911 4912 ; 4913 return 0; 4914} 4915_ACEOF 4916if ac_fn_c_try_compile "$LINENO" 4917then : 4918 ac_compiler_gnu=yes 4919else $as_nop 4920 ac_compiler_gnu=no 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4923ac_cv_c_compiler_gnu=$ac_compiler_gnu 4924 4925fi 4926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4927printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4928ac_compiler_gnu=$ac_cv_c_compiler_gnu 4929 4930if test $ac_compiler_gnu = yes; then 4931 GCC=yes 4932else 4933 GCC= 4934fi 4935ac_test_CFLAGS=${CFLAGS+y} 4936ac_save_CFLAGS=$CFLAGS 4937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4938printf %s "checking whether $CC accepts -g... " >&6; } 4939if test ${ac_cv_prog_cc_g+y} 4940then : 4941 printf %s "(cached) " >&6 4942else $as_nop 4943 ac_save_c_werror_flag=$ac_c_werror_flag 4944 ac_c_werror_flag=yes 4945 ac_cv_prog_cc_g=no 4946 CFLAGS="-g" 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949 4950int 4951main (void) 4952{ 4953 4954 ; 4955 return 0; 4956} 4957_ACEOF 4958if ac_fn_c_try_compile "$LINENO" 4959then : 4960 ac_cv_prog_cc_g=yes 4961else $as_nop 4962 CFLAGS="" 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965 4966int 4967main (void) 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974if ac_fn_c_try_compile "$LINENO" 4975then : 4976 4977else $as_nop 4978 ac_c_werror_flag=$ac_save_c_werror_flag 4979 CFLAGS="-g" 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4981/* end confdefs.h. */ 4982 4983int 4984main (void) 4985{ 4986 4987 ; 4988 return 0; 4989} 4990_ACEOF 4991if ac_fn_c_try_compile "$LINENO" 4992then : 4993 ac_cv_prog_cc_g=yes 4994fi 4995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4996fi 4997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4998fi 4999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5000 ac_c_werror_flag=$ac_save_c_werror_flag 5001fi 5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5003printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5004if test $ac_test_CFLAGS; then 5005 CFLAGS=$ac_save_CFLAGS 5006elif test $ac_cv_prog_cc_g = yes; then 5007 if test "$GCC" = yes; then 5008 CFLAGS="-g -O2" 5009 else 5010 CFLAGS="-g" 5011 fi 5012else 5013 if test "$GCC" = yes; then 5014 CFLAGS="-O2" 5015 else 5016 CFLAGS= 5017 fi 5018fi 5019ac_prog_cc_stdc=no 5020if test x$ac_prog_cc_stdc = xno 5021then : 5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5023printf %s "checking for $CC option to enable C11 features... " >&6; } 5024if test ${ac_cv_prog_cc_c11+y} 5025then : 5026 printf %s "(cached) " >&6 5027else $as_nop 5028 ac_cv_prog_cc_c11=no 5029ac_save_CC=$CC 5030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5031/* end confdefs.h. */ 5032$ac_c_conftest_c11_program 5033_ACEOF 5034for ac_arg in '' -std=gnu11 5035do 5036 CC="$ac_save_CC $ac_arg" 5037 if ac_fn_c_try_compile "$LINENO" 5038then : 5039 ac_cv_prog_cc_c11=$ac_arg 5040fi 5041rm -f core conftest.err conftest.$ac_objext conftest.beam 5042 test "x$ac_cv_prog_cc_c11" != "xno" && break 5043done 5044rm -f conftest.$ac_ext 5045CC=$ac_save_CC 5046fi 5047 5048if test "x$ac_cv_prog_cc_c11" = xno 5049then : 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5051printf "%s\n" "unsupported" >&6; } 5052else $as_nop 5053 if test "x$ac_cv_prog_cc_c11" = x 5054then : 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5056printf "%s\n" "none needed" >&6; } 5057else $as_nop 5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5059printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5060 CC="$CC $ac_cv_prog_cc_c11" 5061fi 5062 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5063 ac_prog_cc_stdc=c11 5064fi 5065fi 5066if test x$ac_prog_cc_stdc = xno 5067then : 5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5069printf %s "checking for $CC option to enable C99 features... " >&6; } 5070if test ${ac_cv_prog_cc_c99+y} 5071then : 5072 printf %s "(cached) " >&6 5073else $as_nop 5074 ac_cv_prog_cc_c99=no 5075ac_save_CC=$CC 5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5077/* end confdefs.h. */ 5078$ac_c_conftest_c99_program 5079_ACEOF 5080for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5081do 5082 CC="$ac_save_CC $ac_arg" 5083 if ac_fn_c_try_compile "$LINENO" 5084then : 5085 ac_cv_prog_cc_c99=$ac_arg 5086fi 5087rm -f core conftest.err conftest.$ac_objext conftest.beam 5088 test "x$ac_cv_prog_cc_c99" != "xno" && break 5089done 5090rm -f conftest.$ac_ext 5091CC=$ac_save_CC 5092fi 5093 5094if test "x$ac_cv_prog_cc_c99" = xno 5095then : 5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5097printf "%s\n" "unsupported" >&6; } 5098else $as_nop 5099 if test "x$ac_cv_prog_cc_c99" = x 5100then : 5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5102printf "%s\n" "none needed" >&6; } 5103else $as_nop 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5105printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5106 CC="$CC $ac_cv_prog_cc_c99" 5107fi 5108 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5109 ac_prog_cc_stdc=c99 5110fi 5111fi 5112if test x$ac_prog_cc_stdc = xno 5113then : 5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5115printf %s "checking for $CC option to enable C89 features... " >&6; } 5116if test ${ac_cv_prog_cc_c89+y} 5117then : 5118 printf %s "(cached) " >&6 5119else $as_nop 5120 ac_cv_prog_cc_c89=no 5121ac_save_CC=$CC 5122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124$ac_c_conftest_c89_program 5125_ACEOF 5126for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5127do 5128 CC="$ac_save_CC $ac_arg" 5129 if ac_fn_c_try_compile "$LINENO" 5130then : 5131 ac_cv_prog_cc_c89=$ac_arg 5132fi 5133rm -f core conftest.err conftest.$ac_objext conftest.beam 5134 test "x$ac_cv_prog_cc_c89" != "xno" && break 5135done 5136rm -f conftest.$ac_ext 5137CC=$ac_save_CC 5138fi 5139 5140if test "x$ac_cv_prog_cc_c89" = xno 5141then : 5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5143printf "%s\n" "unsupported" >&6; } 5144else $as_nop 5145 if test "x$ac_cv_prog_cc_c89" = x 5146then : 5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5148printf "%s\n" "none needed" >&6; } 5149else $as_nop 5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5151printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5152 CC="$CC $ac_cv_prog_cc_c89" 5153fi 5154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5155 ac_prog_cc_stdc=c89 5156fi 5157fi 5158 5159ac_ext=c 5160ac_cpp='$CPP $CPPFLAGS' 5161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5163ac_compiler_gnu=$ac_cv_c_compiler_gnu 5164 5165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5166printf %s "checking for a sed that does not truncate output... " >&6; } 5167if test ${ac_cv_path_SED+y} 5168then : 5169 printf %s "(cached) " >&6 5170else $as_nop 5171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5172 for ac_i in 1 2 3 4 5 6 7; do 5173 ac_script="$ac_script$as_nl$ac_script" 5174 done 5175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5176 { ac_script=; unset ac_script;} 5177 if test -z "$SED"; then 5178 ac_path_SED_found=false 5179 # Loop through the user's path and test for each of PROGNAME-LIST 5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5181for as_dir in $PATH 5182do 5183 IFS=$as_save_IFS 5184 case $as_dir in #((( 5185 '') as_dir=./ ;; 5186 */) ;; 5187 *) as_dir=$as_dir/ ;; 5188 esac 5189 for ac_prog in sed gsed 5190 do 5191 for ac_exec_ext in '' $ac_executable_extensions; do 5192 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5193 as_fn_executable_p "$ac_path_SED" || continue 5194# Check for GNU ac_path_SED and select it if it is found. 5195 # Check for GNU $ac_path_SED 5196case `"$ac_path_SED" --version 2>&1` in 5197*GNU*) 5198 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5199*) 5200 ac_count=0 5201 printf %s 0123456789 >"conftest.in" 5202 while : 5203 do 5204 cat "conftest.in" "conftest.in" >"conftest.tmp" 5205 mv "conftest.tmp" "conftest.in" 5206 cp "conftest.in" "conftest.nl" 5207 printf "%s\n" '' >> "conftest.nl" 5208 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5210 as_fn_arith $ac_count + 1 && ac_count=$as_val 5211 if test $ac_count -gt ${ac_path_SED_max-0}; then 5212 # Best one so far, save it but keep looking for a better one 5213 ac_cv_path_SED="$ac_path_SED" 5214 ac_path_SED_max=$ac_count 5215 fi 5216 # 10*(2^10) chars as input seems more than enough 5217 test $ac_count -gt 10 && break 5218 done 5219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5220esac 5221 5222 $ac_path_SED_found && break 3 5223 done 5224 done 5225 done 5226IFS=$as_save_IFS 5227 if test -z "$ac_cv_path_SED"; then 5228 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5229 fi 5230else 5231 ac_cv_path_SED=$SED 5232fi 5233 5234fi 5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5236printf "%s\n" "$ac_cv_path_SED" >&6; } 5237 SED="$ac_cv_path_SED" 5238 rm -f conftest.sed 5239 5240for ac_prog in gawk mawk nawk awk 5241do 5242 # Extract the first word of "$ac_prog", so it can be a program name with args. 5243set dummy $ac_prog; ac_word=$2 5244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5245printf %s "checking for $ac_word... " >&6; } 5246if test ${ac_cv_prog_AWK+y} 5247then : 5248 printf %s "(cached) " >&6 5249else $as_nop 5250 if test -n "$AWK"; then 5251 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5252else 5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5254for as_dir in $PATH 5255do 5256 IFS=$as_save_IFS 5257 case $as_dir in #((( 5258 '') as_dir=./ ;; 5259 */) ;; 5260 *) as_dir=$as_dir/ ;; 5261 esac 5262 for ac_exec_ext in '' $ac_executable_extensions; do 5263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5264 ac_cv_prog_AWK="$ac_prog" 5265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5266 break 2 5267 fi 5268done 5269 done 5270IFS=$as_save_IFS 5271 5272fi 5273fi 5274AWK=$ac_cv_prog_AWK 5275if test -n "$AWK"; then 5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5277printf "%s\n" "$AWK" >&6; } 5278else 5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280printf "%s\n" "no" >&6; } 5281fi 5282 5283 5284 test -n "$AWK" && break 5285done 5286 5287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5288printf %s "checking for grep that handles long lines and -e... " >&6; } 5289if test ${ac_cv_path_GREP+y} 5290then : 5291 printf %s "(cached) " >&6 5292else $as_nop 5293 if test -z "$GREP"; then 5294 ac_path_GREP_found=false 5295 # Loop through the user's path and test for each of PROGNAME-LIST 5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5298do 5299 IFS=$as_save_IFS 5300 case $as_dir in #((( 5301 '') as_dir=./ ;; 5302 */) ;; 5303 *) as_dir=$as_dir/ ;; 5304 esac 5305 for ac_prog in grep ggrep 5306 do 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5309 as_fn_executable_p "$ac_path_GREP" || continue 5310# Check for GNU ac_path_GREP and select it if it is found. 5311 # Check for GNU $ac_path_GREP 5312case `"$ac_path_GREP" --version 2>&1` in 5313*GNU*) 5314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5315*) 5316 ac_count=0 5317 printf %s 0123456789 >"conftest.in" 5318 while : 5319 do 5320 cat "conftest.in" "conftest.in" >"conftest.tmp" 5321 mv "conftest.tmp" "conftest.in" 5322 cp "conftest.in" "conftest.nl" 5323 printf "%s\n" 'GREP' >> "conftest.nl" 5324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5326 as_fn_arith $ac_count + 1 && ac_count=$as_val 5327 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5328 # Best one so far, save it but keep looking for a better one 5329 ac_cv_path_GREP="$ac_path_GREP" 5330 ac_path_GREP_max=$ac_count 5331 fi 5332 # 10*(2^10) chars as input seems more than enough 5333 test $ac_count -gt 10 && break 5334 done 5335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5336esac 5337 5338 $ac_path_GREP_found && break 3 5339 done 5340 done 5341 done 5342IFS=$as_save_IFS 5343 if test -z "$ac_cv_path_GREP"; then 5344 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5345 fi 5346else 5347 ac_cv_path_GREP=$GREP 5348fi 5349 5350fi 5351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5352printf "%s\n" "$ac_cv_path_GREP" >&6; } 5353 GREP="$ac_cv_path_GREP" 5354 5355 5356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5357printf %s "checking for egrep... " >&6; } 5358if test ${ac_cv_path_EGREP+y} 5359then : 5360 printf %s "(cached) " >&6 5361else $as_nop 5362 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5363 then ac_cv_path_EGREP="$GREP -E" 5364 else 5365 if test -z "$EGREP"; then 5366 ac_path_EGREP_found=false 5367 # Loop through the user's path and test for each of PROGNAME-LIST 5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5370do 5371 IFS=$as_save_IFS 5372 case $as_dir in #((( 5373 '') as_dir=./ ;; 5374 */) ;; 5375 *) as_dir=$as_dir/ ;; 5376 esac 5377 for ac_prog in egrep 5378 do 5379 for ac_exec_ext in '' $ac_executable_extensions; do 5380 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5381 as_fn_executable_p "$ac_path_EGREP" || continue 5382# Check for GNU ac_path_EGREP and select it if it is found. 5383 # Check for GNU $ac_path_EGREP 5384case `"$ac_path_EGREP" --version 2>&1` in 5385*GNU*) 5386 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5387*) 5388 ac_count=0 5389 printf %s 0123456789 >"conftest.in" 5390 while : 5391 do 5392 cat "conftest.in" "conftest.in" >"conftest.tmp" 5393 mv "conftest.tmp" "conftest.in" 5394 cp "conftest.in" "conftest.nl" 5395 printf "%s\n" 'EGREP' >> "conftest.nl" 5396 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5398 as_fn_arith $ac_count + 1 && ac_count=$as_val 5399 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5400 # Best one so far, save it but keep looking for a better one 5401 ac_cv_path_EGREP="$ac_path_EGREP" 5402 ac_path_EGREP_max=$ac_count 5403 fi 5404 # 10*(2^10) chars as input seems more than enough 5405 test $ac_count -gt 10 && break 5406 done 5407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5408esac 5409 5410 $ac_path_EGREP_found && break 3 5411 done 5412 done 5413 done 5414IFS=$as_save_IFS 5415 if test -z "$ac_cv_path_EGREP"; then 5416 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5417 fi 5418else 5419 ac_cv_path_EGREP=$EGREP 5420fi 5421 5422 fi 5423fi 5424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5425printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5426 EGREP="$ac_cv_path_EGREP" 5427 5428 5429for ac_prog in flex lex 5430do 5431 # Extract the first word of "$ac_prog", so it can be a program name with args. 5432set dummy $ac_prog; ac_word=$2 5433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5434printf %s "checking for $ac_word... " >&6; } 5435if test ${ac_cv_prog_LEX+y} 5436then : 5437 printf %s "(cached) " >&6 5438else $as_nop 5439 if test -n "$LEX"; then 5440 ac_cv_prog_LEX="$LEX" # Let the user override the test. 5441else 5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5443for as_dir in $PATH 5444do 5445 IFS=$as_save_IFS 5446 case $as_dir in #((( 5447 '') as_dir=./ ;; 5448 */) ;; 5449 *) as_dir=$as_dir/ ;; 5450 esac 5451 for ac_exec_ext in '' $ac_executable_extensions; do 5452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5453 ac_cv_prog_LEX="$ac_prog" 5454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5455 break 2 5456 fi 5457done 5458 done 5459IFS=$as_save_IFS 5460 5461fi 5462fi 5463LEX=$ac_cv_prog_LEX 5464if test -n "$LEX"; then 5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5466printf "%s\n" "$LEX" >&6; } 5467else 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5469printf "%s\n" "no" >&6; } 5470fi 5471 5472 5473 test -n "$LEX" && break 5474done 5475test -n "$LEX" || LEX=":" 5476 5477 if test "x$LEX" != "x:"; then 5478 cat >conftest.l <<_ACEOF 5479%{ 5480#ifdef __cplusplus 5481extern "C" 5482#endif 5483int yywrap(void); 5484%} 5485%% 5486a { ECHO; } 5487b { REJECT; } 5488c { yymore (); } 5489d { yyless (1); } 5490e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 5491#ifdef __cplusplus 5492 yyless ((yyinput () != 0)); 5493#else 5494 yyless ((input () != 0)); 5495#endif 5496 } 5497f { unput (yytext[0]); } 5498. { BEGIN INITIAL; } 5499%% 5500#ifdef YYTEXT_POINTER 5501extern char *yytext; 5502#endif 5503int 5504yywrap (void) 5505{ 5506 return 1; 5507} 5508int 5509main (void) 5510{ 5511 return ! yylex (); 5512} 5513_ACEOF 5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 5515printf %s "checking for lex output file root... " >&6; } 5516if test ${ac_cv_prog_lex_root+y} 5517then : 5518 printf %s "(cached) " >&6 5519else $as_nop 5520 5521ac_cv_prog_lex_root=unknown 5522{ { ac_try="$LEX conftest.l" 5523case "(($ac_try" in 5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5525 *) ac_try_echo=$ac_try;; 5526esac 5527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5528printf "%s\n" "$ac_try_echo"; } >&5 5529 (eval "$LEX conftest.l") 2>&5 5530 ac_status=$? 5531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5532 test $ac_status = 0; } && 5533if test -f lex.yy.c; then 5534 ac_cv_prog_lex_root=lex.yy 5535elif test -f lexyy.c; then 5536 ac_cv_prog_lex_root=lexyy 5537fi 5538fi 5539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 5540printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 5541if test "$ac_cv_prog_lex_root" = unknown 5542then : 5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 5544printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 5545 LEX=: LEXLIB= 5546fi 5547LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 5548 5549if test ${LEXLIB+y} 5550then : 5551 5552else $as_nop 5553 5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 5555printf %s "checking for lex library... " >&6; } 5556if test ${ac_cv_lib_lex+y} 5557then : 5558 printf %s "(cached) " >&6 5559else $as_nop 5560 5561 ac_save_LIBS="$LIBS" 5562 ac_found=false 5563 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 5564 case $ac_cv_lib_lex in #( 5565 'none needed') : 5566 ;; #( 5567 'not found') : 5568 break ;; #( 5569 *) : 5570 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 5571 *) : 5572 ;; 5573esac 5574 5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576/* end confdefs.h. */ 5577`cat $LEX_OUTPUT_ROOT.c` 5578_ACEOF 5579if ac_fn_c_try_link "$LINENO" 5580then : 5581 ac_found=: 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5584 conftest$ac_exeext conftest.$ac_ext 5585 if $ac_found; then 5586 break 5587 fi 5588 done 5589 LIBS="$ac_save_LIBS" 5590 5591fi 5592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 5593printf "%s\n" "$ac_cv_lib_lex" >&6; } 5594 if test "$ac_cv_lib_lex" = 'not found' 5595then : 5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 5597printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 5598 LEX=: LEXLIB= 5599elif test "$ac_cv_lib_lex" = 'none needed' 5600then : 5601 LEXLIB='' 5602else $as_nop 5603 LEXLIB=$ac_cv_lib_lex 5604fi 5605 5606fi 5607 5608 5609if test "$LEX" != : 5610then : 5611 5612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5613printf %s "checking whether yytext is a pointer... " >&6; } 5614if test ${ac_cv_prog_lex_yytext_pointer+y} 5615then : 5616 printf %s "(cached) " >&6 5617else $as_nop 5618 # POSIX says lex can declare yytext either as a pointer or an array; the 5619# default is implementation-dependent. Figure out which it is, since 5620# not all implementations provide the %pointer and %array declarations. 5621ac_cv_prog_lex_yytext_pointer=no 5622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5623/* end confdefs.h. */ 5624 5625 #define YYTEXT_POINTER 1 5626`cat $LEX_OUTPUT_ROOT.c` 5627_ACEOF 5628if ac_fn_c_try_compile "$LINENO" 5629then : 5630 ac_cv_prog_lex_yytext_pointer=yes 5631fi 5632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5633 5634fi 5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5636printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 5637if test $ac_cv_prog_lex_yytext_pointer = yes; then 5638 5639printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 5640 5641fi 5642 5643fi 5644rm -f conftest.l $LEX_OUTPUT_ROOT.c 5645 5646fi 5647for ac_prog in 'bison -y' byacc 5648do 5649 # Extract the first word of "$ac_prog", so it can be a program name with args. 5650set dummy $ac_prog; ac_word=$2 5651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5652printf %s "checking for $ac_word... " >&6; } 5653if test ${ac_cv_prog_YACC+y} 5654then : 5655 printf %s "(cached) " >&6 5656else $as_nop 5657 if test -n "$YACC"; then 5658 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5659else 5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5661for as_dir in $PATH 5662do 5663 IFS=$as_save_IFS 5664 case $as_dir in #((( 5665 '') as_dir=./ ;; 5666 */) ;; 5667 *) as_dir=$as_dir/ ;; 5668 esac 5669 for ac_exec_ext in '' $ac_executable_extensions; do 5670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5671 ac_cv_prog_YACC="$ac_prog" 5672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5673 break 2 5674 fi 5675done 5676 done 5677IFS=$as_save_IFS 5678 5679fi 5680fi 5681YACC=$ac_cv_prog_YACC 5682if test -n "$YACC"; then 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5684printf "%s\n" "$YACC" >&6; } 5685else 5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5687printf "%s\n" "no" >&6; } 5688fi 5689 5690 5691 test -n "$YACC" && break 5692done 5693test -n "$YACC" || YACC="yacc" 5694 5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5696printf %s "checking whether ln -s works... " >&6; } 5697LN_S=$as_ln_s 5698if test "$LN_S" = "ln -s"; then 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5700printf "%s\n" "yes" >&6; } 5701else 5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5703printf "%s\n" "no, using $LN_S" >&6; } 5704fi 5705 5706 5707 5708 # Find a good install program. We prefer a C program (faster), 5709# so one script is as good as another. But avoid the broken or 5710# incompatible versions: 5711# SysV /etc/install, /usr/sbin/install 5712# SunOS /usr/etc/install 5713# IRIX /sbin/install 5714# AIX /bin/install 5715# AmigaOS /C/install, which installs bootblocks on floppy discs 5716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5717# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5719# OS/2's system install, which has a completely different semantic 5720# ./install, which can be erroneously created by make from ./install.sh. 5721# Reject install programs that cannot install multiple files. 5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5723printf %s "checking for a BSD-compatible install... " >&6; } 5724if test -z "$INSTALL"; then 5725if test ${ac_cv_path_install+y} 5726then : 5727 printf %s "(cached) " >&6 5728else $as_nop 5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5730for as_dir in $PATH 5731do 5732 IFS=$as_save_IFS 5733 case $as_dir in #((( 5734 '') as_dir=./ ;; 5735 */) ;; 5736 *) as_dir=$as_dir/ ;; 5737 esac 5738 # Account for fact that we put trailing slashes in our PATH walk. 5739case $as_dir in #(( 5740 ./ | /[cC]/* | \ 5741 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5742 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5743 /usr/ucb/* ) ;; 5744 *) 5745 # OSF1 and SCO ODT 3.0 have their own names for install. 5746 # Don't use installbsd from OSF since it installs stuff as root 5747 # by default. 5748 for ac_prog in ginstall scoinst install; do 5749 for ac_exec_ext in '' $ac_executable_extensions; do 5750 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 5751 if test $ac_prog = install && 5752 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5753 # AIX install. It has an incompatible calling convention. 5754 : 5755 elif test $ac_prog = install && 5756 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5757 # program-specific install script used by HP pwplus--don't use. 5758 : 5759 else 5760 rm -rf conftest.one conftest.two conftest.dir 5761 echo one > conftest.one 5762 echo two > conftest.two 5763 mkdir conftest.dir 5764 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 5765 test -s conftest.one && test -s conftest.two && 5766 test -s conftest.dir/conftest.one && 5767 test -s conftest.dir/conftest.two 5768 then 5769 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 5770 break 3 5771 fi 5772 fi 5773 fi 5774 done 5775 done 5776 ;; 5777esac 5778 5779 done 5780IFS=$as_save_IFS 5781 5782rm -rf conftest.one conftest.two conftest.dir 5783 5784fi 5785 if test ${ac_cv_path_install+y}; then 5786 INSTALL=$ac_cv_path_install 5787 else 5788 # As a last resort, use the slow shell script. Don't cache a 5789 # value for INSTALL within a source directory, because that will 5790 # break other packages using the cache if that directory is 5791 # removed, or if the value is a relative name. 5792 INSTALL=$ac_install_sh 5793 fi 5794fi 5795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5796printf "%s\n" "$INSTALL" >&6; } 5797 5798# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5799# It thinks the first close brace ends the variable substitution. 5800test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5801 5802test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5803 5804test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5805 5806 5807if test "$LEX" != ":" -a "$LEX" != ""; then 5808# Solaris provides anemic tools, and they don't offer GNU extensions like 5809# 'flex -i'. Solaris also does not offer GNU replacements in /usr/gnu/bin. 5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lex accepts -i" >&5 5811printf %s "checking whether lex accepts -i... " >&6; } 5812if echo "%%" | $LEX -i -t >/dev/null 2>&1 5813then : 5814 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5816printf "%s\n" "yes" >&6; } 5817 5818else $as_nop 5819 5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5821printf "%s\n" "no" >&6; } 5822 as_fn_error $? "unable to find a lexer that supports -i. If one is available then set the LEX variable" "$LINENO" 5 5823 5824 5825fi 5826 5827 # Check if lex defines yy_current_buffer, because 2.4.6 and older use it, 5828 # but later could define it as a macro and then we should not redefine it. 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lex defines yy_current_buffer" >&5 5830printf %s "checking if lex defines yy_current_buffer... " >&6; } 5831 cat <<EOF >conftest.lex 5832%% 5833EOF 5834 $LEX -i -t conftest.lex >> conftest.c 2>/dev/null 5835 if $GREP "^#define yy_current_buffer" conftest.c >/dev/null; then 5836 5837printf "%s\n" "#define LEX_DEFINES_YY_CURRENT_BUFFER 1" >>confdefs.h 5838 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5840printf "%s\n" "yes" >&6; } 5841 else 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5843printf "%s\n" "no" >&6; } 5844 fi 5845 rm -f conftest.lex conftest.c 5846fi 5847 5848 5849 5850 5851 5852 5853 5854 5855# Checks for typedefs, structures, and compiler characteristics. 5856# allow user to override the -g -O2 flags. 5857if test "x$CFLAGS" = "x" ; then 5858 5859 5860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 5861printf %s "checking whether $CC supports -g... " >&6; } 5862cache=`echo g | sed 'y%.=/+-%___p_%'` 5863if eval test \${cv_prog_cc_flag_$cache+y} 5864then : 5865 printf %s "(cached) " >&6 5866else $as_nop 5867 5868echo 'void f(void){}' >conftest.c 5869if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 5870eval "cv_prog_cc_flag_$cache=yes" 5871else 5872eval "cv_prog_cc_flag_$cache=no" 5873fi 5874rm -f conftest conftest.o conftest.c 5875 5876fi 5877 5878if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5880printf "%s\n" "yes" >&6; } 5881: 5882CFLAGS="$CFLAGS -g" 5883else 5884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885printf "%s\n" "no" >&6; } 5886: 5887 5888fi 5889 5890 # we do not use O3 because it causes miscompilations. 5891 5892 5893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 5894printf %s "checking whether $CC supports -O2... " >&6; } 5895cache=`echo O2 | sed 'y%.=/+-%___p_%'` 5896if eval test \${cv_prog_cc_flag_$cache+y} 5897then : 5898 printf %s "(cached) " >&6 5899else $as_nop 5900 5901echo 'void f(void){}' >conftest.c 5902if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 5903eval "cv_prog_cc_flag_$cache=yes" 5904else 5905eval "cv_prog_cc_flag_$cache=no" 5906fi 5907rm -f conftest conftest.o conftest.c 5908 5909fi 5910 5911if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5913printf "%s\n" "yes" >&6; } 5914: 5915CFLAGS="$CFLAGS -O2" 5916else 5917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5918printf "%s\n" "no" >&6; } 5919: 5920 5921fi 5922 5923 5924 # Check whether --enable-flto was given. 5925if test ${enable_flto+y} 5926then : 5927 enableval=$enable_flto; 5928fi 5929 5930 if test "x$enable_flto" != "xno" 5931then : 5932 5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5934printf %s "checking if $CC supports -flto... " >&6; } 5935 BAKCFLAGS="$CFLAGS" 5936 CFLAGS="$CFLAGS -flto" 5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5938/* end confdefs.h. */ 5939 5940int 5941main (void) 5942{ 5943 5944 ; 5945 return 0; 5946} 5947_ACEOF 5948if ac_fn_c_try_link "$LINENO" 5949then : 5950 5951 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 5952 CFLAGS="$BAKCFLAGS" 5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5954printf "%s\n" "no" >&6; } 5955 else 5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5957printf "%s\n" "yes" >&6; } 5958 fi 5959 rm -f conftest conftest.c conftest.o 5960 5961else $as_nop 5962 CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5963printf "%s\n" "no" >&6; } 5964fi 5965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5966 conftest$ac_exeext conftest.$ac_ext 5967 5968fi 5969 5970 5971 # Check whether --enable-pie was given. 5972if test ${enable_pie+y} 5973then : 5974 enableval=$enable_pie; 5975fi 5976 5977 if test "x$enable_pie" = "xyes" 5978then : 5979 5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 5981printf %s "checking if $CC supports PIE... " >&6; } 5982 BAKLDFLAGS="$LDFLAGS" 5983 BAKCFLAGS="$CFLAGS" 5984 LDFLAGS="$LDFLAGS -pie" 5985 CFLAGS="$CFLAGS -fPIE" 5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5987/* end confdefs.h. */ 5988 5989int 5990main (void) 5991{ 5992 5993 ; 5994 return 0; 5995} 5996_ACEOF 5997if ac_fn_c_try_link "$LINENO" 5998then : 5999 6000 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6001 LDFLAGS="$BAKLDFLAGS" 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6003printf "%s\n" "no" >&6; } 6004 else 6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6006printf "%s\n" "yes" >&6; } 6007 fi 6008 rm -f conftest conftest.c conftest.o 6009 6010else $as_nop 6011 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6012printf "%s\n" "no" >&6; } 6013fi 6014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6015 conftest$ac_exeext conftest.$ac_ext 6016 6017fi 6018 6019 6020 # Check whether --enable-relro_now was given. 6021if test ${enable_relro_now+y} 6022then : 6023 enableval=$enable_relro_now; 6024fi 6025 6026 if test "x$enable_relro_now" = "xyes" 6027then : 6028 6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6030printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6031 BAKLDFLAGS="$LDFLAGS" 6032 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6034/* end confdefs.h. */ 6035 6036int 6037main (void) 6038{ 6039 6040 ; 6041 return 0; 6042} 6043_ACEOF 6044if ac_fn_c_try_link "$LINENO" 6045then : 6046 6047 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6048 LDFLAGS="$BAKLDFLAGS" 6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6050printf "%s\n" "no" >&6; } 6051 else 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6053printf "%s\n" "yes" >&6; } 6054 fi 6055 rm -f conftest conftest.c conftest.o 6056 6057else $as_nop 6058 LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6059printf "%s\n" "no" >&6; } 6060fi 6061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6062 conftest$ac_exeext conftest.$ac_ext 6063 6064fi 6065 6066fi 6067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6068printf %s "checking for an ANSI C-conforming const... " >&6; } 6069if test ${ac_cv_c_const+y} 6070then : 6071 printf %s "(cached) " >&6 6072else $as_nop 6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6074/* end confdefs.h. */ 6075 6076int 6077main (void) 6078{ 6079 6080#ifndef __cplusplus 6081 /* Ultrix mips cc rejects this sort of thing. */ 6082 typedef int charset[2]; 6083 const charset cs = { 0, 0 }; 6084 /* SunOS 4.1.1 cc rejects this. */ 6085 char const *const *pcpcc; 6086 char **ppc; 6087 /* NEC SVR4.0.2 mips cc rejects this. */ 6088 struct point {int x, y;}; 6089 static struct point const zero = {0,0}; 6090 /* IBM XL C 1.02.0.0 rejects this. 6091 It does not let you subtract one const X* pointer from another in 6092 an arm of an if-expression whose if-part is not a constant 6093 expression */ 6094 const char *g = "string"; 6095 pcpcc = &g + (g ? g-g : 0); 6096 /* HPUX 7.0 cc rejects these. */ 6097 ++pcpcc; 6098 ppc = (char**) pcpcc; 6099 pcpcc = (char const *const *) ppc; 6100 { /* SCO 3.2v4 cc rejects this sort of thing. */ 6101 char tx; 6102 char *t = &tx; 6103 char const *s = 0 ? (char *) 0 : (char const *) 0; 6104 6105 *t++ = 0; 6106 if (s) return 0; 6107 } 6108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6109 int x[] = {25, 17}; 6110 const int *foo = &x[0]; 6111 ++foo; 6112 } 6113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6114 typedef const int *iptr; 6115 iptr p = 0; 6116 ++p; 6117 } 6118 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 6119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6120 struct s { int j; const int *ap[3]; } bx; 6121 struct s *b = &bx; b->j = 5; 6122 } 6123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6124 const int foo = 10; 6125 if (!foo) return 0; 6126 } 6127 return !cs[0] && !zero.x; 6128#endif 6129 6130 ; 6131 return 0; 6132} 6133_ACEOF 6134if ac_fn_c_try_compile "$LINENO" 6135then : 6136 ac_cv_c_const=yes 6137else $as_nop 6138 ac_cv_c_const=no 6139fi 6140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6141fi 6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6143printf "%s\n" "$ac_cv_c_const" >&6; } 6144if test $ac_cv_c_const = no; then 6145 6146printf "%s\n" "#define const /**/" >>confdefs.h 6147 6148fi 6149 6150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6151printf %s "checking for inline... " >&6; } 6152if test ${ac_cv_c_inline+y} 6153then : 6154 printf %s "(cached) " >&6 6155else $as_nop 6156 ac_cv_c_inline=no 6157for ac_kw in inline __inline__ __inline; do 6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6159/* end confdefs.h. */ 6160#ifndef __cplusplus 6161typedef int foo_t; 6162static $ac_kw foo_t static_foo (void) {return 0; } 6163$ac_kw foo_t foo (void) {return 0; } 6164#endif 6165 6166_ACEOF 6167if ac_fn_c_try_compile "$LINENO" 6168then : 6169 ac_cv_c_inline=$ac_kw 6170fi 6171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6172 test "$ac_cv_c_inline" != no && break 6173done 6174 6175fi 6176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6177printf "%s\n" "$ac_cv_c_inline" >&6; } 6178 6179case $ac_cv_c_inline in 6180 inline | yes) ;; 6181 *) 6182 case $ac_cv_c_inline in 6183 no) ac_val=;; 6184 *) ac_val=$ac_cv_c_inline;; 6185 esac 6186 cat >>confdefs.h <<_ACEOF 6187#ifndef __cplusplus 6188#define inline $ac_val 6189#endif 6190_ACEOF 6191 ;; 6192esac 6193 6194ac_ext=c 6195ac_cpp='$CPP $CPPFLAGS' 6196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6198ac_compiler_gnu=$ac_cv_c_compiler_gnu 6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6200printf %s "checking how to run the C preprocessor... " >&6; } 6201# On Suns, sometimes $CPP names a directory. 6202if test -n "$CPP" && test -d "$CPP"; then 6203 CPP= 6204fi 6205if test -z "$CPP"; then 6206 if test ${ac_cv_prog_CPP+y} 6207then : 6208 printf %s "(cached) " >&6 6209else $as_nop 6210 # Double quotes because $CC needs to be expanded 6211 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 6212 do 6213 ac_preproc_ok=false 6214for ac_c_preproc_warn_flag in '' yes 6215do 6216 # Use a header file that comes with gcc, so configuring glibc 6217 # with a fresh cross-compiler works. 6218 # On the NeXT, cc -E runs the code through the compiler's parser, 6219 # not just through cpp. "Syntax error" is here to catch this case. 6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221/* end confdefs.h. */ 6222#include <limits.h> 6223 Syntax error 6224_ACEOF 6225if ac_fn_c_try_cpp "$LINENO" 6226then : 6227 6228else $as_nop 6229 # Broken: fails on valid input. 6230continue 6231fi 6232rm -f conftest.err conftest.i conftest.$ac_ext 6233 6234 # OK, works on sane cases. Now check whether nonexistent headers 6235 # can be detected and how. 6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6237/* end confdefs.h. */ 6238#include <ac_nonexistent.h> 6239_ACEOF 6240if ac_fn_c_try_cpp "$LINENO" 6241then : 6242 # Broken: success on invalid input. 6243continue 6244else $as_nop 6245 # Passes both tests. 6246ac_preproc_ok=: 6247break 6248fi 6249rm -f conftest.err conftest.i conftest.$ac_ext 6250 6251done 6252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6253rm -f conftest.i conftest.err conftest.$ac_ext 6254if $ac_preproc_ok 6255then : 6256 break 6257fi 6258 6259 done 6260 ac_cv_prog_CPP=$CPP 6261 6262fi 6263 CPP=$ac_cv_prog_CPP 6264else 6265 ac_cv_prog_CPP=$CPP 6266fi 6267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6268printf "%s\n" "$CPP" >&6; } 6269ac_preproc_ok=false 6270for ac_c_preproc_warn_flag in '' yes 6271do 6272 # Use a header file that comes with gcc, so configuring glibc 6273 # with a fresh cross-compiler works. 6274 # On the NeXT, cc -E runs the code through the compiler's parser, 6275 # not just through cpp. "Syntax error" is here to catch this case. 6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6277/* end confdefs.h. */ 6278#include <limits.h> 6279 Syntax error 6280_ACEOF 6281if ac_fn_c_try_cpp "$LINENO" 6282then : 6283 6284else $as_nop 6285 # Broken: fails on valid input. 6286continue 6287fi 6288rm -f conftest.err conftest.i conftest.$ac_ext 6289 6290 # OK, works on sane cases. Now check whether nonexistent headers 6291 # can be detected and how. 6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6293/* end confdefs.h. */ 6294#include <ac_nonexistent.h> 6295_ACEOF 6296if ac_fn_c_try_cpp "$LINENO" 6297then : 6298 # Broken: success on invalid input. 6299continue 6300else $as_nop 6301 # Passes both tests. 6302ac_preproc_ok=: 6303break 6304fi 6305rm -f conftest.err conftest.i conftest.$ac_ext 6306 6307done 6308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6309rm -f conftest.i conftest.err conftest.$ac_ext 6310if $ac_preproc_ok 6311then : 6312 6313else $as_nop 6314 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6315printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6316as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6317See \`config.log' for more details" "$LINENO" 5; } 6318fi 6319 6320ac_ext=c 6321ac_cpp='$CPP $CPPFLAGS' 6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6324ac_compiler_gnu=$ac_cv_c_compiler_gnu 6325 6326 6327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 6328printf %s "checking for uid_t in sys/types.h... " >&6; } 6329if test ${ac_cv_type_uid_t+y} 6330then : 6331 printf %s "(cached) " >&6 6332else $as_nop 6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335#include <sys/types.h> 6336 6337_ACEOF 6338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6339 $EGREP "uid_t" >/dev/null 2>&1 6340then : 6341 ac_cv_type_uid_t=yes 6342else $as_nop 6343 ac_cv_type_uid_t=no 6344fi 6345rm -rf conftest* 6346 6347fi 6348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 6349printf "%s\n" "$ac_cv_type_uid_t" >&6; } 6350if test $ac_cv_type_uid_t = no; then 6351 6352printf "%s\n" "#define uid_t int" >>confdefs.h 6353 6354 6355printf "%s\n" "#define gid_t int" >>confdefs.h 6356 6357fi 6358 6359 6360 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 6361" 6362if test "x$ac_cv_type_pid_t" = xyes 6363then : 6364 6365else $as_nop 6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6367/* end confdefs.h. */ 6368 6369 #if defined _WIN64 && !defined __CYGWIN__ 6370 LLP64 6371 #endif 6372 6373int 6374main (void) 6375{ 6376 6377 ; 6378 return 0; 6379} 6380 6381_ACEOF 6382if ac_fn_c_try_compile "$LINENO" 6383then : 6384 ac_pid_type='int' 6385else $as_nop 6386 ac_pid_type='__int64' 6387fi 6388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6389 6390printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 6391 6392 6393fi 6394 6395 6396ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6397if test "x$ac_cv_type_size_t" = xyes 6398then : 6399 6400else $as_nop 6401 6402printf "%s\n" "#define size_t unsigned int" >>confdefs.h 6403 6404fi 6405 6406ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 6407if test "x$ac_cv_type_off_t" = xyes 6408then : 6409 6410else $as_nop 6411 6412printf "%s\n" "#define off_t long int" >>confdefs.h 6413 6414fi 6415 6416 6417 6418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6419printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6420if test ${ac_cv_c_format_attribute+y} 6421then : 6422 printf %s "(cached) " >&6 6423else $as_nop 6424 ac_cv_c_format_attribute=no 6425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426/* end confdefs.h. */ 6427#include <stdio.h> 6428void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6429void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6430 6431int 6432main (void) 6433{ 6434 6435 f ("%s", "str"); 6436 6437 ; 6438 return 0; 6439} 6440_ACEOF 6441if ac_fn_c_try_compile "$LINENO" 6442then : 6443 ac_cv_c_format_attribute="yes" 6444else $as_nop 6445 ac_cv_c_format_attribute="no" 6446fi 6447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6448 6449fi 6450 6451 6452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6453printf "%s\n" "$ac_cv_c_format_attribute" >&6; } 6454if test $ac_cv_c_format_attribute = yes; then 6455 6456printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6457 6458fi 6459 6460 6461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6462printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6463if test ${ac_cv_c_unused_attribute+y} 6464then : 6465 printf %s "(cached) " >&6 6466else $as_nop 6467 ac_cv_c_unused_attribute=no 6468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6469/* end confdefs.h. */ 6470#include <stdio.h> 6471void f (char *u __attribute__((unused))); 6472 6473int 6474main (void) 6475{ 6476 6477 f ("x"); 6478 6479 ; 6480 return 0; 6481} 6482_ACEOF 6483if ac_fn_c_try_compile "$LINENO" 6484then : 6485 ac_cv_c_unused_attribute="yes" 6486else $as_nop 6487 ac_cv_c_unused_attribute="no" 6488fi 6489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6490 6491fi 6492 6493 6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6495printf "%s\n" "$ac_cv_c_unused_attribute" >&6; } 6496if test $ac_cv_c_unused_attribute = yes; then 6497 6498printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6499 6500fi 6501 6502 6503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6504printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6505if test ${ac_cv_c_weak_attribute+y} 6506then : 6507 printf %s "(cached) " >&6 6508else $as_nop 6509 ac_cv_c_weak_attribute=no 6510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6511/* end confdefs.h. */ 6512 #include <stdio.h> 6513__attribute__((weak)) void f(int x) { printf("%d", x); } 6514 6515int 6516main (void) 6517{ 6518 6519 f(1); 6520 6521 ; 6522 return 0; 6523} 6524_ACEOF 6525if ac_fn_c_try_compile "$LINENO" 6526then : 6527 ac_cv_c_weak_attribute="yes" 6528else $as_nop 6529 ac_cv_c_weak_attribute="no" 6530fi 6531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6532 6533fi 6534 6535 6536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6537printf "%s\n" "$ac_cv_c_weak_attribute" >&6; } 6538if test $ac_cv_c_weak_attribute = yes; then 6539 6540printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6541 6542 6543printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6544 6545fi 6546 6547 6548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6549printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6550if test ${ac_cv_c_noreturn_attribute+y} 6551then : 6552 printf %s "(cached) " >&6 6553else $as_nop 6554 ac_cv_c_noreturn_attribute=no 6555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6556/* end confdefs.h. */ 6557 #include <stdio.h> 6558__attribute__((noreturn)) void f(int x) { printf("%d", x); } 6559 6560int 6561main (void) 6562{ 6563 6564 f(1); 6565 6566 ; 6567 return 0; 6568} 6569_ACEOF 6570if ac_fn_c_try_compile "$LINENO" 6571then : 6572 ac_cv_c_noreturn_attribute="yes" 6573else $as_nop 6574 ac_cv_c_noreturn_attribute="no" 6575fi 6576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6577 6578fi 6579 6580 6581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 6582printf "%s\n" "$ac_cv_c_noreturn_attribute" >&6; } 6583if test $ac_cv_c_noreturn_attribute = yes; then 6584 6585printf "%s\n" "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 6586 6587 6588printf "%s\n" "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 6589 6590fi 6591 6592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 6593printf %s "checking if memcmp compares unsigned... " >&6; } 6594if test "$cross_compiling" = yes 6595then : 6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 6597printf "%s\n" "cross-compile no" >&6; } 6598 6599printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 6600 6601 case " $LIBOBJS " in 6602 *" memcmp.$ac_objext "* ) ;; 6603 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 6604 ;; 6605esac 6606 6607 6608else $as_nop 6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6610/* end confdefs.h. */ 6611 6612#include <stdio.h> 6613#include <stdlib.h> 6614#include <string.h> 6615int main(void) 6616{ 6617 char a = 255, b = 0; 6618 if(memcmp(&a, &b, 1) < 0) 6619 return 1; 6620 return 0; 6621} 6622 6623_ACEOF 6624if ac_fn_c_try_run "$LINENO" 6625then : 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6627printf "%s\n" "yes" >&6; } 6628else $as_nop 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630printf "%s\n" "no" >&6; } 6631 6632printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 6633 6634 case " $LIBOBJS " in 6635 *" memcmp.$ac_objext "* ) ;; 6636 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 6637 ;; 6638esac 6639 6640 6641fi 6642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6643 conftest.$ac_objext conftest.beam conftest.$ac_ext 6644fi 6645 6646 6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctime_r works with two arguments" >&5 6648printf %s "checking whether ctime_r works with two arguments... " >&6; } 6649if test ${ac_cv_c_ctime_c+y} 6650then : 6651 printf %s "(cached) " >&6 6652else $as_nop 6653 ac_cv_c_ctime_c=no 6654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656#include <time.h> 6657void testing (void) { time_t clock; char current_time[40]; ctime_r(&clock, current_time); } 6658int 6659main (void) 6660{ 6661 6662 testing(); 6663 6664 ; 6665 return 0; 6666} 6667_ACEOF 6668if ac_fn_c_try_compile "$LINENO" 6669then : 6670 ac_cv_c_ctime_c="yes" 6671else $as_nop 6672 ac_cv_c_ctime_c="no" 6673fi 6674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6675 6676fi 6677 6678 6679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ctime_c" >&5 6680printf "%s\n" "$ac_cv_c_ctime_c" >&6; } 6681if test $ac_cv_c_ctime_c = no; then 6682 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" 6683fi 6684 6685 6686# Checks for libraries. 6687 6688# Check for SSL, original taken from 6689# http://www.gnu.org/software/ac-archive/htmldoc/check_ssl.html and 6690# modified for NSD. 6691 6692# check for libevent 6693 6694# Check whether --with-libevent was given. 6695if test ${with_libevent+y} 6696then : 6697 withval=$with_libevent; 6698else $as_nop 6699 withval="yes" 6700fi 6701 6702if test x_$withval = x_yes -o x_$withval != x_no; then 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 6704printf %s "checking for libevent... " >&6; } 6705 if test x_$withval = x_ -o x_$withval = x_yes; then 6706 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr /usr/local/opt/libevent" 6707 fi 6708 for dir in $withval; do 6709 thedir="$dir" 6710 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 6711 found_libevent="yes" 6712 if test "$thedir" != "/usr"; then 6713 CPPFLAGS="$CPPFLAGS -I$thedir/include" 6714 fi 6715 break; 6716 fi 6717 done 6718 if test x_$found_libevent != x_yes; then 6719 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 6720 # libevent source directory 6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 6722printf "%s\n" "found in $thedir" >&6; } 6723 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 6724 # remove evdns from linking 6725 ev_files_o=`ls $thedir/*.o | $GREP -v evdns\.o | $GREP -v bufferevent_openssl\.o` 6726 cp $ev_files_o . 6727 LDFLAGS="$ev_files_o $LDFLAGS -lm" 6728 else 6729 as_fn_error $? "Cannot find the libevent library. 6730You can restart ./configure --with-libevent=no to use a builtin alternative." "$LINENO" 5 6731 fi 6732 else 6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 6734printf "%s\n" "found in $thedir" >&6; } 6735 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 6736 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 6737 6738 if test "x$enable_rpath" = xyes; then 6739 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 6740 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 6741 fi 6742 fi 6743 6744 else 6745 if test "$thedir" != "/usr" -a "$thedir" != ""; then 6746 LDFLAGS="$LDFLAGS -L$thedir/lib" 6747 6748 if test "x$enable_rpath" = xyes; then 6749 if echo "$thedir/lib" | grep "^/" >/dev/null; then 6750 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 6751 fi 6752 fi 6753 6754 fi 6755 fi 6756 fi 6757 # check for library used by libevent after 1.3c 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 6759printf %s "checking for library containing clock_gettime... " >&6; } 6760if test ${ac_cv_search_clock_gettime+y} 6761then : 6762 printf %s "(cached) " >&6 6763else $as_nop 6764 ac_func_search_save_LIBS=$LIBS 6765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6766/* end confdefs.h. */ 6767 6768/* Override any GCC internal prototype to avoid an error. 6769 Use char because int might match the return type of a GCC 6770 builtin and then its argument prototype would still apply. */ 6771char clock_gettime (); 6772int 6773main (void) 6774{ 6775return clock_gettime (); 6776 ; 6777 return 0; 6778} 6779_ACEOF 6780for ac_lib in '' rt 6781do 6782 if test -z "$ac_lib"; then 6783 ac_res="none required" 6784 else 6785 ac_res=-l$ac_lib 6786 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6787 fi 6788 if ac_fn_c_try_link "$LINENO" 6789then : 6790 ac_cv_search_clock_gettime=$ac_res 6791fi 6792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6793 conftest$ac_exeext 6794 if test ${ac_cv_search_clock_gettime+y} 6795then : 6796 break 6797fi 6798done 6799if test ${ac_cv_search_clock_gettime+y} 6800then : 6801 6802else $as_nop 6803 ac_cv_search_clock_gettime=no 6804fi 6805rm conftest.$ac_ext 6806LIBS=$ac_func_search_save_LIBS 6807fi 6808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 6809printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 6810ac_res=$ac_cv_search_clock_gettime 6811if test "$ac_res" != no 6812then : 6813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6814 6815fi 6816 6817 6818 # is the event.h header libev or libevent? 6819 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 6820" 6821if test "x$ac_cv_header_event_h" = xyes 6822then : 6823 printf "%s\n" "#define HAVE_EVENT_H 1" >>confdefs.h 6824 6825fi 6826 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 6828printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 6829if test ${ac_cv_c_undeclared_builtin_options+y} 6830then : 6831 printf %s "(cached) " >&6 6832else $as_nop 6833 ac_save_CFLAGS=$CFLAGS 6834 ac_cv_c_undeclared_builtin_options='cannot detect' 6835 for ac_arg in '' -fno-builtin; do 6836 CFLAGS="$ac_save_CFLAGS $ac_arg" 6837 # This test program should *not* compile successfully. 6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6839/* end confdefs.h. */ 6840 6841int 6842main (void) 6843{ 6844(void) strchr; 6845 ; 6846 return 0; 6847} 6848_ACEOF 6849if ac_fn_c_try_compile "$LINENO" 6850then : 6851 6852else $as_nop 6853 # This test program should compile successfully. 6854 # No library function is consistently available on 6855 # freestanding implementations, so test against a dummy 6856 # declaration. Include always-available headers on the 6857 # off chance that they somehow elicit warnings. 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860#include <float.h> 6861#include <limits.h> 6862#include <stdarg.h> 6863#include <stddef.h> 6864extern void ac_decl (int, char *); 6865 6866int 6867main (void) 6868{ 6869(void) ac_decl (0, (char *) 0); 6870 (void) ac_decl; 6871 6872 ; 6873 return 0; 6874} 6875_ACEOF 6876if ac_fn_c_try_compile "$LINENO" 6877then : 6878 if test x"$ac_arg" = x 6879then : 6880 ac_cv_c_undeclared_builtin_options='none needed' 6881else $as_nop 6882 ac_cv_c_undeclared_builtin_options=$ac_arg 6883fi 6884 break 6885fi 6886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6887fi 6888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6889 done 6890 CFLAGS=$ac_save_CFLAGS 6891 6892fi 6893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6894printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6895 case $ac_cv_c_undeclared_builtin_options in #( 6896 'cannot detect') : 6897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6898printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6899as_fn_error $? "cannot make $CC report undeclared builtins 6900See \`config.log' for more details" "$LINENO" 5; } ;; #( 6901 'none needed') : 6902 ac_c_undeclared_builtin_options='' ;; #( 6903 *) : 6904 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6905esac 6906 6907ac_fn_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 6908#include <event.h> 6909 6910" "$ac_c_undeclared_builtin_options" "CFLAGS" 6911if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes 6912then : 6913 6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 6915printf %s "checking for library containing event_set... " >&6; } 6916if test ${ac_cv_search_event_set+y} 6917then : 6918 printf %s "(cached) " >&6 6919else $as_nop 6920 ac_func_search_save_LIBS=$LIBS 6921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6922/* end confdefs.h. */ 6923 6924/* Override any GCC internal prototype to avoid an error. 6925 Use char because int might match the return type of a GCC 6926 builtin and then its argument prototype would still apply. */ 6927char event_set (); 6928int 6929main (void) 6930{ 6931return event_set (); 6932 ; 6933 return 0; 6934} 6935_ACEOF 6936for ac_lib in '' ev 6937do 6938 if test -z "$ac_lib"; then 6939 ac_res="none required" 6940 else 6941 ac_res=-l$ac_lib 6942 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6943 fi 6944 if ac_fn_c_try_link "$LINENO" 6945then : 6946 ac_cv_search_event_set=$ac_res 6947fi 6948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6949 conftest$ac_exeext 6950 if test ${ac_cv_search_event_set+y} 6951then : 6952 break 6953fi 6954done 6955if test ${ac_cv_search_event_set+y} 6956then : 6957 6958else $as_nop 6959 ac_cv_search_event_set=no 6960fi 6961rm conftest.$ac_ext 6962LIBS=$ac_func_search_save_LIBS 6963fi 6964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 6965printf "%s\n" "$ac_cv_search_event_set" >&6; } 6966ac_res=$ac_cv_search_event_set 6967if test "$ac_res" != no 6968then : 6969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6970 6971fi 6972 6973 6974else $as_nop 6975 6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 6977printf %s "checking for library containing event_set... " >&6; } 6978if test ${ac_cv_search_event_set+y} 6979then : 6980 printf %s "(cached) " >&6 6981else $as_nop 6982 ac_func_search_save_LIBS=$LIBS 6983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984/* end confdefs.h. */ 6985 6986/* Override any GCC internal prototype to avoid an error. 6987 Use char because int might match the return type of a GCC 6988 builtin and then its argument prototype would still apply. */ 6989char event_set (); 6990int 6991main (void) 6992{ 6993return event_set (); 6994 ; 6995 return 0; 6996} 6997_ACEOF 6998for ac_lib in '' event 6999do 7000 if test -z "$ac_lib"; then 7001 ac_res="none required" 7002 else 7003 ac_res=-l$ac_lib 7004 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7005 fi 7006 if ac_fn_c_try_link "$LINENO" 7007then : 7008 ac_cv_search_event_set=$ac_res 7009fi 7010rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7011 conftest$ac_exeext 7012 if test ${ac_cv_search_event_set+y} 7013then : 7014 break 7015fi 7016done 7017if test ${ac_cv_search_event_set+y} 7018then : 7019 7020else $as_nop 7021 ac_cv_search_event_set=no 7022fi 7023rm conftest.$ac_ext 7024LIBS=$ac_func_search_save_LIBS 7025fi 7026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 7027printf "%s\n" "$ac_cv_search_event_set" >&6; } 7028ac_res=$ac_cv_search_event_set 7029if test "$ac_res" != no 7030then : 7031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7032 7033fi 7034 7035 7036fi 7037 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 7038if test "x$ac_cv_func_event_base_free" = xyes 7039then : 7040 printf "%s\n" "#define HAVE_EVENT_BASE_FREE 1" >>confdefs.h 7041 7042fi 7043 # only in libevent 1.2 and later 7044 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 7045if test "x$ac_cv_func_event_base_once" = xyes 7046then : 7047 printf "%s\n" "#define HAVE_EVENT_BASE_ONCE 1" >>confdefs.h 7048 7049fi 7050 # only in libevent 1.4.1 and later 7051 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 7052if test "x$ac_cv_func_event_base_new" = xyes 7053then : 7054 printf "%s\n" "#define HAVE_EVENT_BASE_NEW 1" >>confdefs.h 7055 7056fi 7057 # only in libevent 1.4.1 and later 7058 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 7059if test "x$ac_cv_func_event_base_get_method" = xyes 7060then : 7061 printf "%s\n" "#define HAVE_EVENT_BASE_GET_METHOD 1" >>confdefs.h 7062 7063fi 7064 # only in libevent 1.4.3 and later 7065 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 7066if test "x$ac_cv_func_ev_loop" = xyes 7067then : 7068 printf "%s\n" "#define HAVE_EV_LOOP 1" >>confdefs.h 7069 7070fi 7071 # only in libev. (tested on 3.51) 7072 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 7073if test "x$ac_cv_func_ev_default_loop" = xyes 7074then : 7075 printf "%s\n" "#define HAVE_EV_DEFAULT_LOOP 1" >>confdefs.h 7076 7077fi 7078 # only in libev. (tested on 4.00) 7079else 7080 7081printf "%s\n" "#define USE_MINI_EVENT 1" >>confdefs.h 7082 7083fi 7084 7085# Checks for header files. 7086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7087printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7088if test ${ac_cv_header_sys_wait_h+y} 7089then : 7090 printf %s "(cached) " >&6 7091else $as_nop 7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093/* end confdefs.h. */ 7094#include <sys/types.h> 7095#include <sys/wait.h> 7096#ifndef WEXITSTATUS 7097# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 7098#endif 7099#ifndef WIFEXITED 7100# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7101#endif 7102 7103int 7104main (void) 7105{ 7106 int s; 7107 wait (&s); 7108 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7109 ; 7110 return 0; 7111} 7112_ACEOF 7113if ac_fn_c_try_compile "$LINENO" 7114then : 7115 ac_cv_header_sys_wait_h=yes 7116else $as_nop 7117 ac_cv_header_sys_wait_h=no 7118fi 7119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7120fi 7121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7122printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } 7123if test $ac_cv_header_sys_wait_h = yes; then 7124 7125printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7126 7127fi 7128 7129ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 7130" 7131if test "x$ac_cv_header_time_h" = xyes 7132then : 7133 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 7134 7135fi 7136ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default 7137" 7138if test "x$ac_cv_header_arpa_inet_h" = xyes 7139then : 7140 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 7141 7142fi 7143ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default 7144" 7145if test "x$ac_cv_header_signal_h" = xyes 7146then : 7147 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 7148 7149fi 7150ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default 7151" 7152if test "x$ac_cv_header_string_h" = xyes 7153then : 7154 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h 7155 7156fi 7157ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default 7158" 7159if test "x$ac_cv_header_strings_h" = xyes 7160then : 7161 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 7162 7163fi 7164ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default 7165" 7166if test "x$ac_cv_header_fcntl_h" = xyes 7167then : 7168 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 7169 7170fi 7171ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default 7172" 7173if test "x$ac_cv_header_limits_h" = xyes 7174then : 7175 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 7176 7177fi 7178ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default 7179" 7180if test "x$ac_cv_header_netinet_in_h" = xyes 7181then : 7182 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 7183 7184fi 7185ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default 7186" 7187if test "x$ac_cv_header_netinet_tcp_h" = xyes 7188then : 7189 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 7190 7191fi 7192ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default 7193" 7194if test "x$ac_cv_header_stddef_h" = xyes 7195then : 7196 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h 7197 7198fi 7199ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default 7200" 7201if test "x$ac_cv_header_sys_param_h" = xyes 7202then : 7203 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 7204 7205fi 7206ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 7207" 7208if test "x$ac_cv_header_sys_socket_h" = xyes 7209then : 7210 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 7211 7212fi 7213ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default 7214" 7215if test "x$ac_cv_header_sys_un_h" = xyes 7216then : 7217 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 7218 7219fi 7220ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default 7221" 7222if test "x$ac_cv_header_syslog_h" = xyes 7223then : 7224 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 7225 7226fi 7227ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 7228" 7229if test "x$ac_cv_header_unistd_h" = xyes 7230then : 7231 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 7232 7233fi 7234ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default 7235" 7236if test "x$ac_cv_header_sys_select_h" = xyes 7237then : 7238 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 7239 7240fi 7241ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default 7242" 7243if test "x$ac_cv_header_stdarg_h" = xyes 7244then : 7245 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 7246 7247fi 7248ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default 7249" 7250if test "x$ac_cv_header_stdint_h" = xyes 7251then : 7252 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 7253 7254fi 7255ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 7256" 7257if test "x$ac_cv_header_netdb_h" = xyes 7258then : 7259 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 7260 7261fi 7262ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default 7263" 7264if test "x$ac_cv_header_sys_bitypes_h" = xyes 7265then : 7266 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h 7267 7268fi 7269ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default 7270" 7271if test "x$ac_cv_header_tcpd_h" = xyes 7272then : 7273 printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h 7274 7275fi 7276ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default 7277" 7278if test "x$ac_cv_header_glob_h" = xyes 7279then : 7280 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h 7281 7282fi 7283ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default 7284" 7285if test "x$ac_cv_header_grp_h" = xyes 7286then : 7287 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 7288 7289fi 7290ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default 7291" 7292if test "x$ac_cv_header_endian_h" = xyes 7293then : 7294 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 7295 7296fi 7297ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default 7298" 7299if test "x$ac_cv_header_sys_random_h" = xyes 7300then : 7301 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 7302 7303fi 7304ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default 7305" 7306if test "x$ac_cv_header_ifaddrs_h" = xyes 7307then : 7308 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 7309 7310fi 7311 7312 7313 7314 7315 7316 7317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for double definition of struct va_list" >&5 7318printf %s "checking for double definition of struct va_list... " >&6; } 7319if test ${ac_cv_c_va_list_def+y} 7320then : 7321 printf %s "(cached) " >&6 7322else $as_nop 7323 7324cat >conftest.c <<EOF 7325#include <stdio.h> 7326#include <stdarg.h> 7327int foo(void); 7328EOF 7329if test -z "`$CC -Werror -D_XOPEN_SOURCE=600 -c conftest.c 2>&1`"; then 7330eval "ac_cv_c_va_list_def=no" 7331else 7332eval "ac_cv_c_va_list_def=yes" 7333fi 7334rm -f conftest* 7335 7336fi 7337 7338if test $ac_cv_c_va_list_def = yes; then 7339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7340printf "%s\n" "yes" >&6; } 7341: 7342 7343printf "%s\n" "#define HAVE_VA_LIST_DOUBLE_DEF /**/" >>confdefs.h 7344 7345else 7346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7347printf "%s\n" "no" >&6; } 7348: 7349 7350fi 7351 7352 7353 7354 7355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime needs defines" >&5 7356printf %s "checking whether strptime needs defines... " >&6; } 7357if test ${ac_cv_c_strptime_needs_defs+y} 7358then : 7359 printf %s "(cached) " >&6 7360else $as_nop 7361 7362cat >conftest.c <<EOF 7363#include <time.h> 7364int testing (void) { struct tm t; const char *timestr="201201"; return strptime(timestr, "%Y%m", &t) != 0; } 7365EOF 7366if test -z "`$CC -Wall -Werror -c conftest.c 2>&1`"; then 7367eval "ac_cv_c_strptime_needs_defs=no" 7368else 7369eval "ac_cv_c_strptime_needs_defs=yes" 7370fi 7371rm -f conftest* 7372 7373fi 7374 7375 7376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_needs_defs" >&5 7377printf "%s\n" "$ac_cv_c_strptime_needs_defs" >&6; } 7378if test $ac_cv_c_strptime_needs_defs = yes; then 7379 7380printf "%s\n" "#define STRPTIME_NEEDS_DEFINES 1" >>confdefs.h 7381 7382fi 7383 7384 7385# check wether strptime also works 7386 7387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 7388printf %s "checking for library containing inet_pton... " >&6; } 7389if test ${ac_cv_search_inet_pton+y} 7390then : 7391 printf %s "(cached) " >&6 7392else $as_nop 7393 ac_func_search_save_LIBS=$LIBS 7394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395/* end confdefs.h. */ 7396 7397/* Override any GCC internal prototype to avoid an error. 7398 Use char because int might match the return type of a GCC 7399 builtin and then its argument prototype would still apply. */ 7400char inet_pton (); 7401int 7402main (void) 7403{ 7404return inet_pton (); 7405 ; 7406 return 0; 7407} 7408_ACEOF 7409for ac_lib in '' nsl 7410do 7411 if test -z "$ac_lib"; then 7412 ac_res="none required" 7413 else 7414 ac_res=-l$ac_lib 7415 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7416 fi 7417 if ac_fn_c_try_link "$LINENO" 7418then : 7419 ac_cv_search_inet_pton=$ac_res 7420fi 7421rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7422 conftest$ac_exeext 7423 if test ${ac_cv_search_inet_pton+y} 7424then : 7425 break 7426fi 7427done 7428if test ${ac_cv_search_inet_pton+y} 7429then : 7430 7431else $as_nop 7432 ac_cv_search_inet_pton=no 7433fi 7434rm conftest.$ac_ext 7435LIBS=$ac_func_search_save_LIBS 7436fi 7437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 7438printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 7439ac_res=$ac_cv_search_inet_pton 7440if test "$ac_res" != no 7441then : 7442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7443 7444fi 7445 7446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 7447printf %s "checking for library containing socket... " >&6; } 7448if test ${ac_cv_search_socket+y} 7449then : 7450 printf %s "(cached) " >&6 7451else $as_nop 7452 ac_func_search_save_LIBS=$LIBS 7453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455 7456/* Override any GCC internal prototype to avoid an error. 7457 Use char because int might match the return type of a GCC 7458 builtin and then its argument prototype would still apply. */ 7459char socket (); 7460int 7461main (void) 7462{ 7463return socket (); 7464 ; 7465 return 0; 7466} 7467_ACEOF 7468for ac_lib in '' socket 7469do 7470 if test -z "$ac_lib"; then 7471 ac_res="none required" 7472 else 7473 ac_res=-l$ac_lib 7474 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7475 fi 7476 if ac_fn_c_try_link "$LINENO" 7477then : 7478 ac_cv_search_socket=$ac_res 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7481 conftest$ac_exeext 7482 if test ${ac_cv_search_socket+y} 7483then : 7484 break 7485fi 7486done 7487if test ${ac_cv_search_socket+y} 7488then : 7489 7490else $as_nop 7491 ac_cv_search_socket=no 7492fi 7493rm conftest.$ac_ext 7494LIBS=$ac_func_search_save_LIBS 7495fi 7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 7497printf "%s\n" "$ac_cv_search_socket" >&6; } 7498ac_res=$ac_cv_search_socket 7499if test "$ac_res" != no 7500then : 7501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7502 7503fi 7504 7505 7506 7507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 7508printf %s "checking whether strptime works... " >&6; } 7509if test c${cross_compiling} = cno; then 7510if test "$cross_compiling" = yes 7511then : 7512 eval "ac_cv_c_strptime_works=maybe" 7513else $as_nop 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516 7517#define _XOPEN_SOURCE 600 7518#include <time.h> 7519int main(void) { struct tm tm; char *res; 7520res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 7521if (!res) return 1; return 0; } 7522 7523_ACEOF 7524if ac_fn_c_try_run "$LINENO" 7525then : 7526 eval "ac_cv_c_strptime_works=yes" 7527else $as_nop 7528 eval "ac_cv_c_strptime_works=no" 7529fi 7530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7531 conftest.$ac_objext conftest.beam conftest.$ac_ext 7532fi 7533 7534else 7535eval "ac_cv_c_strptime_works=maybe" 7536fi 7537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 7538printf "%s\n" "$ac_cv_c_strptime_works" >&6; } 7539if test $ac_cv_c_strptime_works = no; then 7540case " $LIBOBJS " in 7541 *" strptime.$ac_objext "* ) ;; 7542 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 7543 ;; 7544esac 7545 7546else 7547 7548printf "%s\n" "#define STRPTIME_WORKS 1" >>confdefs.h 7549 7550fi 7551 7552 7553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 7554printf %s "checking if nonblocking sockets work... " >&6; } 7555if echo $host | grep mingw >/dev/null; then 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 7557printf "%s\n" "no (windows)" >&6; } 7558 7559printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 7560 7561else 7562if test "$cross_compiling" = yes 7563then : 7564 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 7566printf "%s\n" "crosscompile(yes)" >&6; } 7567 7568else $as_nop 7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570/* end confdefs.h. */ 7571 7572 7573#include <stdio.h> 7574#include <string.h> 7575#include <stdlib.h> 7576#include <fcntl.h> 7577#include <errno.h> 7578#ifdef HAVE_SYS_TYPES_H 7579#include <sys/types.h> 7580#endif 7581#ifdef HAVE_SYS_SELECT_H 7582#include <sys/select.h> 7583#endif 7584#ifdef HAVE_SYS_SOCKET_H 7585#include <sys/socket.h> 7586#endif 7587#ifdef HAVE_NETINET_IN_H 7588#include <netinet/in.h> 7589#endif 7590#ifdef HAVE_ARPA_INET_H 7591#include <arpa/inet.h> 7592#endif 7593#ifdef HAVE_UNISTD_H 7594#include <unistd.h> 7595#endif 7596#ifdef HAVE_TIME_H 7597#include <time.h> 7598#endif 7599 7600int main(void) 7601{ 7602 int port; 7603 int sfd, cfd; 7604 int num = 10; 7605 int i, p; 7606 struct sockaddr_in a; 7607 /* test if select and nonblocking reads work well together */ 7608 /* open port. 7609 fork child to send 10 messages. 7610 select to read. 7611 then try to nonblocking read the 10 messages 7612 then, nonblocking read must give EAGAIN 7613 */ 7614 7615 port = 12345 + (time(0)%32); 7616 sfd = socket(PF_INET, SOCK_DGRAM, 0); 7617 if(sfd == -1) { 7618 perror("socket"); 7619 return 1; 7620 } 7621 memset(&a, 0, sizeof(a)); 7622 a.sin_family = AF_INET; 7623 a.sin_port = htons(port); 7624 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 7625 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 7626 perror("bind"); 7627 return 1; 7628 } 7629 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 7630 perror("fcntl"); 7631 return 1; 7632 } 7633 7634 cfd = socket(PF_INET, SOCK_DGRAM, 0); 7635 if(cfd == -1) { 7636 perror("client socket"); 7637 return 1; 7638 } 7639 a.sin_port = 0; 7640 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 7641 perror("client bind"); 7642 return 1; 7643 } 7644 a.sin_port = htons(port); 7645 7646 /* no handler, causes exit in 10 seconds */ 7647 alarm(10); 7648 7649 /* send and receive on the socket */ 7650 if((p=fork()) == 0) { 7651 for(i=0; i<num; i++) { 7652 if(sendto(cfd, &i, sizeof(i), 0, 7653 (struct sockaddr*)&a, sizeof(a)) < 0) { 7654 perror("sendto"); 7655 return 1; 7656 } 7657 } 7658 } else { 7659 /* parent */ 7660 fd_set rset; 7661 int x; 7662 if(p == -1) { 7663 perror("fork"); 7664 return 1; 7665 } 7666 FD_ZERO(&rset); 7667 FD_SET(sfd, &rset); 7668 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 7669 perror("select"); 7670 return 1; 7671 } 7672 i = 0; 7673 while(i < num) { 7674 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 7675 if(errno == EAGAIN) 7676 continue; 7677 perror("recv"); 7678 return 1; 7679 } 7680 i++; 7681 } 7682 /* now we want to get EAGAIN: nonblocking goodness */ 7683 errno = 0; 7684 recv(sfd, &x, sizeof(x), 0); 7685 if(errno != EAGAIN) { 7686 perror("trying to recv again"); 7687 return 1; 7688 } 7689 /* EAGAIN encountered */ 7690 } 7691 7692 close(sfd); 7693 close(cfd); 7694 return 0; 7695} 7696 7697_ACEOF 7698if ac_fn_c_try_run "$LINENO" 7699then : 7700 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7702printf "%s\n" "yes" >&6; } 7703 7704else $as_nop 7705 7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7707printf "%s\n" "no" >&6; } 7708 7709printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 7710 7711 7712fi 7713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7714 conftest.$ac_objext conftest.beam conftest.$ac_ext 7715fi 7716 7717fi 7718 7719 7720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 7721printf %s "checking whether mkdir has one arg... " >&6; } 7722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7723/* end confdefs.h. */ 7724 7725#include <stdio.h> 7726#include <unistd.h> 7727#ifdef HAVE_WINSOCK2_H 7728#include <winsock2.h> 7729#endif 7730#ifdef HAVE_SYS_STAT_H 7731#include <sys/stat.h> 7732#endif 7733 7734int 7735main (void) 7736{ 7737 7738 (void)mkdir("directory"); 7739 7740 ; 7741 return 0; 7742} 7743_ACEOF 7744if ac_fn_c_try_compile "$LINENO" 7745then : 7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7747printf "%s\n" "yes" >&6; } 7748 7749printf "%s\n" "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 7750 7751 7752else $as_nop 7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754printf "%s\n" "no" >&6; } 7755 7756fi 7757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7758 7759 7760# set -I. and -Isrcdir 7761if test -n "$CPPFLAGS"; then 7762 CPPFLAGS="$CPPFLAGS -I." 7763else 7764 CPPFLAGS="-I." 7765fi 7766if test "$srcdir" != "."; then 7767 CPPFLAGS="$CPPFLAGS -I$srcdir" 7768 if test -f $srcdir/config.h; then 7769 as_fn_error $? "$srcdir/config.h is in the way, please remove it" "$LINENO" 5 7770 fi 7771fi 7772 7773 7774 7775 7776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5 7777printf %s "checking for int8_t... " >&6; } 7778if test ${ac_cv_type_int8_t+y} 7779then : 7780 printf %s "(cached) " >&6 7781else $as_nop 7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7783/* end confdefs.h. */ 7784 7785#include <sys/types.h> 7786#include <stdlib.h> 7787#include <stddef.h> 7788 7789#ifdef HAVE_STDINT_H 7790#include <stdint.h> 7791#endif 7792 7793#ifdef HAVE_SYS_SOCKET_H 7794#include <sys/socket.h> 7795#endif 7796 7797#ifdef HAVE_ARPA_INET_H 7798#include <arpa/inet.h> 7799#endif 7800 7801#ifdef HAVE_SIGNAL_H 7802#include <signal.h> 7803#endif 7804 7805/* For Tru64 */ 7806#ifdef HAVE_SYS_BITYPES_H 7807#include <sys/bitypes.h> 7808#endif 7809 7810_ACEOF 7811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7812 $EGREP "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1 7813then : 7814 ac_cv_type_int8_t=yes 7815else $as_nop 7816 ac_cv_type_int8_t=no 7817fi 7818rm -rf conftest* 7819 7820fi 7821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int8_t" >&5 7822printf "%s\n" "$ac_cv_type_int8_t" >&6; } 7823if test $ac_cv_type_int8_t = no; then 7824 7825printf "%s\n" "#define int8_t char" >>confdefs.h 7826 7827fi 7828 7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5 7830printf %s "checking for int16_t... " >&6; } 7831if test ${ac_cv_type_int16_t+y} 7832then : 7833 printf %s "(cached) " >&6 7834else $as_nop 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7836/* end confdefs.h. */ 7837 7838#include <sys/types.h> 7839#include <stdlib.h> 7840#include <stddef.h> 7841 7842#ifdef HAVE_STDINT_H 7843#include <stdint.h> 7844#endif 7845 7846#ifdef HAVE_SYS_SOCKET_H 7847#include <sys/socket.h> 7848#endif 7849 7850#ifdef HAVE_ARPA_INET_H 7851#include <arpa/inet.h> 7852#endif 7853 7854#ifdef HAVE_SIGNAL_H 7855#include <signal.h> 7856#endif 7857 7858/* For Tru64 */ 7859#ifdef HAVE_SYS_BITYPES_H 7860#include <sys/bitypes.h> 7861#endif 7862 7863_ACEOF 7864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7865 $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1 7866then : 7867 ac_cv_type_int16_t=yes 7868else $as_nop 7869 ac_cv_type_int16_t=no 7870fi 7871rm -rf conftest* 7872 7873fi 7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int16_t" >&5 7875printf "%s\n" "$ac_cv_type_int16_t" >&6; } 7876if test $ac_cv_type_int16_t = no; then 7877 7878printf "%s\n" "#define int16_t short" >>confdefs.h 7879 7880fi 7881 7882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 7883printf %s "checking for int32_t... " >&6; } 7884if test ${ac_cv_type_int32_t+y} 7885then : 7886 printf %s "(cached) " >&6 7887else $as_nop 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890 7891#include <sys/types.h> 7892#include <stdlib.h> 7893#include <stddef.h> 7894 7895#ifdef HAVE_STDINT_H 7896#include <stdint.h> 7897#endif 7898 7899#ifdef HAVE_SYS_SOCKET_H 7900#include <sys/socket.h> 7901#endif 7902 7903#ifdef HAVE_ARPA_INET_H 7904#include <arpa/inet.h> 7905#endif 7906 7907#ifdef HAVE_SIGNAL_H 7908#include <signal.h> 7909#endif 7910 7911/* For Tru64 */ 7912#ifdef HAVE_SYS_BITYPES_H 7913#include <sys/bitypes.h> 7914#endif 7915 7916_ACEOF 7917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7918 $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1 7919then : 7920 ac_cv_type_int32_t=yes 7921else $as_nop 7922 ac_cv_type_int32_t=no 7923fi 7924rm -rf conftest* 7925 7926fi 7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int32_t" >&5 7928printf "%s\n" "$ac_cv_type_int32_t" >&6; } 7929if test $ac_cv_type_int32_t = no; then 7930 7931printf "%s\n" "#define int32_t int" >>confdefs.h 7932 7933fi 7934 7935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5 7936printf %s "checking for int64_t... " >&6; } 7937if test ${ac_cv_type_int64_t+y} 7938then : 7939 printf %s "(cached) " >&6 7940else $as_nop 7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7942/* end confdefs.h. */ 7943 7944#include <sys/types.h> 7945#include <stdlib.h> 7946#include <stddef.h> 7947 7948#ifdef HAVE_STDINT_H 7949#include <stdint.h> 7950#endif 7951 7952#ifdef HAVE_SYS_SOCKET_H 7953#include <sys/socket.h> 7954#endif 7955 7956#ifdef HAVE_ARPA_INET_H 7957#include <arpa/inet.h> 7958#endif 7959 7960#ifdef HAVE_SIGNAL_H 7961#include <signal.h> 7962#endif 7963 7964/* For Tru64 */ 7965#ifdef HAVE_SYS_BITYPES_H 7966#include <sys/bitypes.h> 7967#endif 7968 7969_ACEOF 7970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7971 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1 7972then : 7973 ac_cv_type_int64_t=yes 7974else $as_nop 7975 ac_cv_type_int64_t=no 7976fi 7977rm -rf conftest* 7978 7979fi 7980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int64_t" >&5 7981printf "%s\n" "$ac_cv_type_int64_t" >&6; } 7982if test $ac_cv_type_int64_t = no; then 7983 7984printf "%s\n" "#define int64_t long long" >>confdefs.h 7985 7986fi 7987 7988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5 7989printf %s "checking for uint8_t... " >&6; } 7990if test ${ac_cv_type_uint8_t+y} 7991then : 7992 printf %s "(cached) " >&6 7993else $as_nop 7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995/* end confdefs.h. */ 7996 7997#include <sys/types.h> 7998#include <stdlib.h> 7999#include <stddef.h> 8000 8001#ifdef HAVE_STDINT_H 8002#include <stdint.h> 8003#endif 8004 8005#ifdef HAVE_SYS_SOCKET_H 8006#include <sys/socket.h> 8007#endif 8008 8009#ifdef HAVE_ARPA_INET_H 8010#include <arpa/inet.h> 8011#endif 8012 8013#ifdef HAVE_SIGNAL_H 8014#include <signal.h> 8015#endif 8016 8017/* For Tru64 */ 8018#ifdef HAVE_SYS_BITYPES_H 8019#include <sys/bitypes.h> 8020#endif 8021 8022_ACEOF 8023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8024 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8025then : 8026 ac_cv_type_uint8_t=yes 8027else $as_nop 8028 ac_cv_type_uint8_t=no 8029fi 8030rm -rf conftest* 8031 8032fi 8033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5 8034printf "%s\n" "$ac_cv_type_uint8_t" >&6; } 8035if test $ac_cv_type_uint8_t = no; then 8036 8037printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h 8038 8039fi 8040 8041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5 8042printf %s "checking for uint16_t... " >&6; } 8043if test ${ac_cv_type_uint16_t+y} 8044then : 8045 printf %s "(cached) " >&6 8046else $as_nop 8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8048/* end confdefs.h. */ 8049 8050#include <sys/types.h> 8051#include <stdlib.h> 8052#include <stddef.h> 8053 8054#ifdef HAVE_STDINT_H 8055#include <stdint.h> 8056#endif 8057 8058#ifdef HAVE_SYS_SOCKET_H 8059#include <sys/socket.h> 8060#endif 8061 8062#ifdef HAVE_ARPA_INET_H 8063#include <arpa/inet.h> 8064#endif 8065 8066#ifdef HAVE_SIGNAL_H 8067#include <signal.h> 8068#endif 8069 8070/* For Tru64 */ 8071#ifdef HAVE_SYS_BITYPES_H 8072#include <sys/bitypes.h> 8073#endif 8074 8075_ACEOF 8076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8077 $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8078then : 8079 ac_cv_type_uint16_t=yes 8080else $as_nop 8081 ac_cv_type_uint16_t=no 8082fi 8083rm -rf conftest* 8084 8085fi 8086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5 8087printf "%s\n" "$ac_cv_type_uint16_t" >&6; } 8088if test $ac_cv_type_uint16_t = no; then 8089 8090printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h 8091 8092fi 8093 8094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 8095printf %s "checking for uint32_t... " >&6; } 8096if test ${ac_cv_type_uint32_t+y} 8097then : 8098 printf %s "(cached) " >&6 8099else $as_nop 8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8101/* end confdefs.h. */ 8102 8103#include <sys/types.h> 8104#include <stdlib.h> 8105#include <stddef.h> 8106 8107#ifdef HAVE_STDINT_H 8108#include <stdint.h> 8109#endif 8110 8111#ifdef HAVE_SYS_SOCKET_H 8112#include <sys/socket.h> 8113#endif 8114 8115#ifdef HAVE_ARPA_INET_H 8116#include <arpa/inet.h> 8117#endif 8118 8119#ifdef HAVE_SIGNAL_H 8120#include <signal.h> 8121#endif 8122 8123/* For Tru64 */ 8124#ifdef HAVE_SYS_BITYPES_H 8125#include <sys/bitypes.h> 8126#endif 8127 8128_ACEOF 8129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8130 $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8131then : 8132 ac_cv_type_uint32_t=yes 8133else $as_nop 8134 ac_cv_type_uint32_t=no 8135fi 8136rm -rf conftest* 8137 8138fi 8139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5 8140printf "%s\n" "$ac_cv_type_uint32_t" >&6; } 8141if test $ac_cv_type_uint32_t = no; then 8142 8143printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h 8144 8145fi 8146 8147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5 8148printf %s "checking for uint64_t... " >&6; } 8149if test ${ac_cv_type_uint64_t+y} 8150then : 8151 printf %s "(cached) " >&6 8152else $as_nop 8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8154/* end confdefs.h. */ 8155 8156#include <sys/types.h> 8157#include <stdlib.h> 8158#include <stddef.h> 8159 8160#ifdef HAVE_STDINT_H 8161#include <stdint.h> 8162#endif 8163 8164#ifdef HAVE_SYS_SOCKET_H 8165#include <sys/socket.h> 8166#endif 8167 8168#ifdef HAVE_ARPA_INET_H 8169#include <arpa/inet.h> 8170#endif 8171 8172#ifdef HAVE_SIGNAL_H 8173#include <signal.h> 8174#endif 8175 8176/* For Tru64 */ 8177#ifdef HAVE_SYS_BITYPES_H 8178#include <sys/bitypes.h> 8179#endif 8180 8181_ACEOF 8182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8183 $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8184then : 8185 ac_cv_type_uint64_t=yes 8186else $as_nop 8187 ac_cv_type_uint64_t=no 8188fi 8189rm -rf conftest* 8190 8191fi 8192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5 8193printf "%s\n" "$ac_cv_type_uint64_t" >&6; } 8194if test $ac_cv_type_uint64_t = no; then 8195 8196printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h 8197 8198fi 8199 8200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 8201printf %s "checking for socklen_t... " >&6; } 8202if test ${ac_cv_type_socklen_t+y} 8203then : 8204 printf %s "(cached) " >&6 8205else $as_nop 8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208 8209#include <sys/types.h> 8210#include <stdlib.h> 8211#include <stddef.h> 8212 8213#ifdef HAVE_STDINT_H 8214#include <stdint.h> 8215#endif 8216 8217#ifdef HAVE_SYS_SOCKET_H 8218#include <sys/socket.h> 8219#endif 8220 8221#ifdef HAVE_ARPA_INET_H 8222#include <arpa/inet.h> 8223#endif 8224 8225#ifdef HAVE_SIGNAL_H 8226#include <signal.h> 8227#endif 8228 8229/* For Tru64 */ 8230#ifdef HAVE_SYS_BITYPES_H 8231#include <sys/bitypes.h> 8232#endif 8233 8234_ACEOF 8235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8236 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8237then : 8238 ac_cv_type_socklen_t=yes 8239else $as_nop 8240 ac_cv_type_socklen_t=no 8241fi 8242rm -rf conftest* 8243 8244fi 8245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 8246printf "%s\n" "$ac_cv_type_socklen_t" >&6; } 8247if test $ac_cv_type_socklen_t = no; then 8248 8249printf "%s\n" "#define socklen_t int" >>confdefs.h 8250 8251fi 8252 8253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 8254printf %s "checking for sig_atomic_t... " >&6; } 8255if test ${ac_cv_type_sig_atomic_t+y} 8256then : 8257 printf %s "(cached) " >&6 8258else $as_nop 8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8260/* end confdefs.h. */ 8261 8262#include <sys/types.h> 8263#include <stdlib.h> 8264#include <stddef.h> 8265 8266#ifdef HAVE_STDINT_H 8267#include <stdint.h> 8268#endif 8269 8270#ifdef HAVE_SYS_SOCKET_H 8271#include <sys/socket.h> 8272#endif 8273 8274#ifdef HAVE_ARPA_INET_H 8275#include <arpa/inet.h> 8276#endif 8277 8278#ifdef HAVE_SIGNAL_H 8279#include <signal.h> 8280#endif 8281 8282/* For Tru64 */ 8283#ifdef HAVE_SYS_BITYPES_H 8284#include <sys/bitypes.h> 8285#endif 8286 8287_ACEOF 8288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8289 $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8290then : 8291 ac_cv_type_sig_atomic_t=yes 8292else $as_nop 8293 ac_cv_type_sig_atomic_t=no 8294fi 8295rm -rf conftest* 8296 8297fi 8298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 8299printf "%s\n" "$ac_cv_type_sig_atomic_t" >&6; } 8300if test $ac_cv_type_sig_atomic_t = no; then 8301 8302printf "%s\n" "#define sig_atomic_t int" >>confdefs.h 8303 8304fi 8305 8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 8307printf %s "checking for ssize_t... " >&6; } 8308if test ${ac_cv_type_ssize_t+y} 8309then : 8310 printf %s "(cached) " >&6 8311else $as_nop 8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313/* end confdefs.h. */ 8314 8315#include <sys/types.h> 8316#include <stdlib.h> 8317#include <stddef.h> 8318 8319#ifdef HAVE_STDINT_H 8320#include <stdint.h> 8321#endif 8322 8323#ifdef HAVE_SYS_SOCKET_H 8324#include <sys/socket.h> 8325#endif 8326 8327#ifdef HAVE_ARPA_INET_H 8328#include <arpa/inet.h> 8329#endif 8330 8331#ifdef HAVE_SIGNAL_H 8332#include <signal.h> 8333#endif 8334 8335/* For Tru64 */ 8336#ifdef HAVE_SYS_BITYPES_H 8337#include <sys/bitypes.h> 8338#endif 8339 8340_ACEOF 8341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8342 $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8343then : 8344 ac_cv_type_ssize_t=yes 8345else $as_nop 8346 ac_cv_type_ssize_t=no 8347fi 8348rm -rf conftest* 8349 8350fi 8351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5 8352printf "%s\n" "$ac_cv_type_ssize_t" >&6; } 8353if test $ac_cv_type_ssize_t = no; then 8354 8355printf "%s\n" "#define ssize_t int" >>confdefs.h 8356 8357fi 8358 8359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suseconds_t" >&5 8360printf %s "checking for suseconds_t... " >&6; } 8361if test ${ac_cv_type_suseconds_t+y} 8362then : 8363 printf %s "(cached) " >&6 8364else $as_nop 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367 8368#include <sys/types.h> 8369#include <stdlib.h> 8370#include <stddef.h> 8371 8372#ifdef HAVE_STDINT_H 8373#include <stdint.h> 8374#endif 8375 8376#ifdef HAVE_SYS_SOCKET_H 8377#include <sys/socket.h> 8378#endif 8379 8380#ifdef HAVE_ARPA_INET_H 8381#include <arpa/inet.h> 8382#endif 8383 8384#ifdef HAVE_SIGNAL_H 8385#include <signal.h> 8386#endif 8387 8388/* For Tru64 */ 8389#ifdef HAVE_SYS_BITYPES_H 8390#include <sys/bitypes.h> 8391#endif 8392 8393_ACEOF 8394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8395 $EGREP "(^|[^a-zA-Z_0-9])suseconds_t[^a-zA-Z_0-9]" >/dev/null 2>&1 8396then : 8397 ac_cv_type_suseconds_t=yes 8398else $as_nop 8399 ac_cv_type_suseconds_t=no 8400fi 8401rm -rf conftest* 8402 8403fi 8404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_suseconds_t" >&5 8405printf "%s\n" "$ac_cv_type_suseconds_t" >&6; } 8406if test $ac_cv_type_suseconds_t = no; then 8407 8408printf "%s\n" "#define suseconds_t time_t" >>confdefs.h 8409 8410fi 8411 8412 8413ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 8414#if HAVE_SYS_TYPES_H 8415# include <sys/types.h> 8416#endif 8417#if HAVE_NETINET_IN_H 8418# include <netinet/in.h> 8419#endif 8420" 8421if test "x$ac_cv_type_in_addr_t" = xyes 8422then : 8423 8424else $as_nop 8425 8426printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h 8427 8428fi 8429 8430ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 8431#ifdef HAVE_NETINET_IN_H 8432#include <netinet/in.h> 8433#endif 8434#ifdef HAVE_SYS_SOCKET_H 8435#include <sys/socket.h> 8436#endif 8437#ifdef HAVE_NETDB_H 8438#include <netdb.h> 8439#endif 8440#ifdef HAVE_ARPA_INET_H 8441#include <arpa/inet.h> 8442#endif 8443 8444" 8445if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes 8446then : 8447 8448else $as_nop 8449 8450 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 8451#ifdef HAVE_NETINET_IN_H 8452#include <netinet/in.h> 8453#endif 8454#ifdef HAVE_SYS_SOCKET_H 8455#include <sys/socket.h> 8456#endif 8457#ifdef HAVE_NETDB_H 8458#include <netdb.h> 8459#endif 8460#ifdef HAVE_ARPA_INET_H 8461#include <arpa/inet.h> 8462#endif 8463 8464" 8465if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes 8466then : 8467 8468 8469printf "%s\n" "#define ss_family __ss_family" >>confdefs.h 8470 8471 8472fi 8473 8474 8475fi 8476 8477ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" 8478if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes 8479then : 8480 8481printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h 8482 8483 8484fi 8485ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default" 8486if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes 8487then : 8488 8489printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h 8490 8491 8492fi 8493 8494ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 8495$ac_includes_default 8496#ifdef HAVE_SYS_UN_H 8497#include <sys/un.h> 8498#endif 8499 8500" 8501if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes 8502then : 8503 8504printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h 8505 8506 8507fi 8508 8509 8510# Checks for library functions. 8511 8512 8513 # Make sure we can run config.sub. 8514$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 8515 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 8516 8517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 8518printf %s "checking build system type... " >&6; } 8519if test ${ac_cv_build+y} 8520then : 8521 printf %s "(cached) " >&6 8522else $as_nop 8523 ac_build_alias=$build_alias 8524test "x$ac_build_alias" = x && 8525 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 8526test "x$ac_build_alias" = x && 8527 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 8528ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 8529 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 8530 8531fi 8532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 8533printf "%s\n" "$ac_cv_build" >&6; } 8534case $ac_cv_build in 8535*-*-*) ;; 8536*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 8537esac 8538build=$ac_cv_build 8539ac_save_IFS=$IFS; IFS='-' 8540set x $ac_cv_build 8541shift 8542build_cpu=$1 8543build_vendor=$2 8544shift; shift 8545# Remember, the first character of IFS is used to create $*, 8546# except with old shells: 8547build_os=$* 8548IFS=$ac_save_IFS 8549case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 8550 8551 8552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 8553printf %s "checking host system type... " >&6; } 8554if test ${ac_cv_host+y} 8555then : 8556 printf %s "(cached) " >&6 8557else $as_nop 8558 if test "x$host_alias" = x; then 8559 ac_cv_host=$ac_cv_build 8560else 8561 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 8562 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 8563fi 8564 8565fi 8566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 8567printf "%s\n" "$ac_cv_host" >&6; } 8568case $ac_cv_host in 8569*-*-*) ;; 8570*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 8571esac 8572host=$ac_cv_host 8573ac_save_IFS=$IFS; IFS='-' 8574set x $ac_cv_host 8575shift 8576host_cpu=$1 8577host_vendor=$2 8578shift; shift 8579# Remember, the first character of IFS is used to create $*, 8580# except with old shells: 8581host_os=$* 8582IFS=$ac_save_IFS 8583case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 8584 8585 8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 8587printf %s "checking for working chown... " >&6; } 8588if test ${ac_cv_func_chown_works+y} 8589then : 8590 printf %s "(cached) " >&6 8591else $as_nop 8592 if test "$cross_compiling" = yes 8593then : 8594 case "$host_os" in # (( 8595 # Guess yes on glibc systems. 8596 *-gnu*) ac_cv_func_chown_works=yes ;; 8597 # If we don't know, assume the worst. 8598 *) ac_cv_func_chown_works=no ;; 8599 esac 8600else $as_nop 8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8602/* end confdefs.h. */ 8603$ac_includes_default 8604#include <fcntl.h> 8605 8606int 8607main (void) 8608{ 8609 char *f = "conftest.chown"; 8610 struct stat before, after; 8611 8612 if (creat (f, 0600) < 0) 8613 return 1; 8614 if (stat (f, &before) < 0) 8615 return 1; 8616 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 8617 return 1; 8618 if (stat (f, &after) < 0) 8619 return 1; 8620 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 8621 8622 ; 8623 return 0; 8624} 8625_ACEOF 8626if ac_fn_c_try_run "$LINENO" 8627then : 8628 ac_cv_func_chown_works=yes 8629else $as_nop 8630 ac_cv_func_chown_works=no 8631fi 8632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8633 conftest.$ac_objext conftest.beam conftest.$ac_ext 8634fi 8635 8636rm -f conftest.chown 8637 8638fi 8639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 8640printf "%s\n" "$ac_cv_func_chown_works" >&6; } 8641if test $ac_cv_func_chown_works = yes; then 8642 8643printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 8644 8645fi 8646 8647 8648ac_func= 8649for ac_item in $ac_func_c_list 8650do 8651 if test $ac_func; then 8652 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 8653 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 8654 echo "#define $ac_item 1" >> confdefs.h 8655 fi 8656 ac_func= 8657 else 8658 ac_func=$ac_item 8659 fi 8660done 8661 8662 8663 8664if test "x$ac_cv_func_fork" = xyes; then 8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 8666printf %s "checking for working fork... " >&6; } 8667if test ${ac_cv_func_fork_works+y} 8668then : 8669 printf %s "(cached) " >&6 8670else $as_nop 8671 if test "$cross_compiling" = yes 8672then : 8673 ac_cv_func_fork_works=cross 8674else $as_nop 8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8676/* end confdefs.h. */ 8677$ac_includes_default 8678int 8679main (void) 8680{ 8681 8682 /* By Ruediger Kuhlmann. */ 8683 return fork () < 0; 8684 8685 ; 8686 return 0; 8687} 8688_ACEOF 8689if ac_fn_c_try_run "$LINENO" 8690then : 8691 ac_cv_func_fork_works=yes 8692else $as_nop 8693 ac_cv_func_fork_works=no 8694fi 8695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8696 conftest.$ac_objext conftest.beam conftest.$ac_ext 8697fi 8698 8699fi 8700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 8701printf "%s\n" "$ac_cv_func_fork_works" >&6; } 8702 8703else 8704 ac_cv_func_fork_works=$ac_cv_func_fork 8705fi 8706if test "x$ac_cv_func_fork_works" = xcross; then 8707 case $host in 8708 *-*-amigaos* | *-*-msdosdjgpp*) 8709 # Override, as these systems have only a dummy fork() stub 8710 ac_cv_func_fork_works=no 8711 ;; 8712 *) 8713 ac_cv_func_fork_works=yes 8714 ;; 8715 esac 8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8717printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8718fi 8719ac_cv_func_vfork_works=$ac_cv_func_vfork 8720if test "x$ac_cv_func_vfork" = xyes; then 8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8722printf %s "checking for working vfork... " >&6; } 8723if test ${ac_cv_func_vfork_works+y} 8724then : 8725 printf %s "(cached) " >&6 8726else $as_nop 8727 if test "$cross_compiling" = yes 8728then : 8729 ac_cv_func_vfork_works=cross 8730else $as_nop 8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8732/* end confdefs.h. */ 8733/* Thanks to Paul Eggert for this test. */ 8734$ac_includes_default 8735#include <signal.h> 8736#include <sys/wait.h> 8737#ifdef HAVE_VFORK_H 8738# include <vfork.h> 8739#endif 8740 8741static void 8742do_nothing (int sig) 8743{ 8744 (void) sig; 8745} 8746 8747/* On some sparc systems, changes by the child to local and incoming 8748 argument registers are propagated back to the parent. The compiler 8749 is told about this with #include <vfork.h>, but some compilers 8750 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8751 static variable whose address is put into a register that is 8752 clobbered by the vfork. */ 8753static void 8754sparc_address_test (int arg) 8755{ 8756 static pid_t child; 8757 if (!child) { 8758 child = vfork (); 8759 if (child < 0) { 8760 perror ("vfork"); 8761 _exit(2); 8762 } 8763 if (!child) { 8764 arg = getpid(); 8765 write(-1, "", 0); 8766 _exit (arg); 8767 } 8768 } 8769} 8770 8771int 8772main (void) 8773{ 8774 pid_t parent = getpid (); 8775 pid_t child; 8776 8777 sparc_address_test (0); 8778 8779 /* On Solaris 2.4, changes by the child to the signal handler 8780 also munge signal handlers in the parent. To detect this, 8781 start by putting the parent's handler in a known state. */ 8782 signal (SIGTERM, SIG_DFL); 8783 8784 child = vfork (); 8785 8786 if (child == 0) { 8787 /* Here is another test for sparc vfork register problems. This 8788 test uses lots of local variables, at least as many local 8789 variables as main has allocated so far including compiler 8790 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8791 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8792 reuse the register of parent for one of the local variables, 8793 since it will think that parent can't possibly be used any more 8794 in this routine. Assigning to the local variable will thus 8795 munge parent in the parent process. */ 8796 pid_t 8797 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8798 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8799 /* Convince the compiler that p..p7 are live; otherwise, it might 8800 use the same hardware register for all 8 local variables. */ 8801 if (p != p1 || p != p2 || p != p3 || p != p4 8802 || p != p5 || p != p6 || p != p7) 8803 _exit(1); 8804 8805 /* Alter the child's signal handler. */ 8806 if (signal (SIGTERM, do_nothing) != SIG_DFL) 8807 _exit(1); 8808 8809 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8810 from child file descriptors. If the child closes a descriptor 8811 before it execs or exits, this munges the parent's descriptor 8812 as well. Test for this by closing stdout in the child. */ 8813 _exit(close(fileno(stdout)) != 0); 8814 } else { 8815 int status; 8816 struct stat st; 8817 8818 while (wait(&status) != child) 8819 ; 8820 return ( 8821 /* Was there some problem with vforking? */ 8822 child < 0 8823 8824 /* Did the child munge the parent's signal handler? */ 8825 || signal (SIGTERM, SIG_DFL) != SIG_DFL 8826 8827 /* Did the child fail? (This shouldn't happen.) */ 8828 || status 8829 8830 /* Did the vfork/compiler bug occur? */ 8831 || parent != getpid() 8832 8833 /* Did the file descriptor bug occur? */ 8834 || fstat(fileno(stdout), &st) != 0 8835 ); 8836 } 8837} 8838_ACEOF 8839if ac_fn_c_try_run "$LINENO" 8840then : 8841 ac_cv_func_vfork_works=yes 8842else $as_nop 8843 ac_cv_func_vfork_works=no 8844fi 8845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8846 conftest.$ac_objext conftest.beam conftest.$ac_ext 8847fi 8848 8849fi 8850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8851printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 8852 8853fi; 8854if test "x$ac_cv_func_fork_works" = xcross; then 8855 ac_cv_func_vfork_works=$ac_cv_func_vfork 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8857printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8858fi 8859 8860if test "x$ac_cv_func_vfork_works" = xyes; then 8861 8862printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 8863 8864else 8865 8866printf "%s\n" "#define vfork fork" >>confdefs.h 8867 8868fi 8869if test "x$ac_cv_func_fork_works" = xyes; then 8870 8871printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 8872 8873fi 8874 8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 8876printf %s "checking for GNU libc compatible malloc... " >&6; } 8877if test ${ac_cv_func_malloc_0_nonnull+y} 8878then : 8879 printf %s "(cached) " >&6 8880else $as_nop 8881 if test "$cross_compiling" = yes 8882then : 8883 case "$host_os" in # (( 8884 # Guess yes on platforms where we know the result. 8885 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ 8886 | hpux* | solaris* | cygwin* | mingw* | msys* ) 8887 ac_cv_func_malloc_0_nonnull=yes ;; 8888 # If we don't know, assume the worst. 8889 *) ac_cv_func_malloc_0_nonnull=no ;; 8890 esac 8891else $as_nop 8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8893/* end confdefs.h. */ 8894#include <stdlib.h> 8895 8896int 8897main (void) 8898{ 8899void *p = malloc (0); 8900 int result = !p; 8901 free (p); 8902 return result; 8903 ; 8904 return 0; 8905} 8906_ACEOF 8907if ac_fn_c_try_run "$LINENO" 8908then : 8909 ac_cv_func_malloc_0_nonnull=yes 8910else $as_nop 8911 ac_cv_func_malloc_0_nonnull=no 8912fi 8913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8914 conftest.$ac_objext conftest.beam conftest.$ac_ext 8915fi 8916 8917fi 8918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 8919printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } 8920if test $ac_cv_func_malloc_0_nonnull = yes 8921then : 8922 8923printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h 8924 8925else $as_nop 8926 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h 8927 8928 case " $LIBOBJS " in 8929 *" malloc.$ac_objext "* ) ;; 8930 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 8931 ;; 8932esac 8933 8934 8935printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h 8936 8937fi 8938 8939 8940 8941printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h 8942 8943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 8944printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 8945if test ${ac_cv_sys_largefile_source+y} 8946then : 8947 printf %s "(cached) " >&6 8948else $as_nop 8949 while :; do 8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8951/* end confdefs.h. */ 8952#include <sys/types.h> /* for off_t */ 8953 #include <stdio.h> 8954int 8955main (void) 8956{ 8957int (*fp) (FILE *, off_t, int) = fseeko; 8958 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 8959 ; 8960 return 0; 8961} 8962_ACEOF 8963if ac_fn_c_try_link "$LINENO" 8964then : 8965 ac_cv_sys_largefile_source=no; break 8966fi 8967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8968 conftest$ac_exeext conftest.$ac_ext 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970/* end confdefs.h. */ 8971#define _LARGEFILE_SOURCE 1 8972#include <sys/types.h> /* for off_t */ 8973 #include <stdio.h> 8974int 8975main (void) 8976{ 8977int (*fp) (FILE *, off_t, int) = fseeko; 8978 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 8979 ; 8980 return 0; 8981} 8982_ACEOF 8983if ac_fn_c_try_link "$LINENO" 8984then : 8985 ac_cv_sys_largefile_source=1; break 8986fi 8987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8988 conftest$ac_exeext conftest.$ac_ext 8989 ac_cv_sys_largefile_source=unknown 8990 break 8991done 8992fi 8993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 8994printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } 8995case $ac_cv_sys_largefile_source in #( 8996 no | unknown) ;; 8997 *) 8998printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h 8999;; 9000esac 9001rm -rf conftest* 9002 9003# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 9004# in glibc 2.1.3, but that breaks too many other things. 9005# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 9006if test $ac_cv_sys_largefile_source != unknown; then 9007 9008printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 9009 9010fi 9011 9012# Check whether --enable-largefile was given. 9013if test ${enable_largefile+y} 9014then : 9015 enableval=$enable_largefile; 9016fi 9017 9018if test "$enable_largefile" != no; then 9019 9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 9021printf %s "checking for special C compiler options needed for large files... " >&6; } 9022if test ${ac_cv_sys_largefile_CC+y} 9023then : 9024 printf %s "(cached) " >&6 9025else $as_nop 9026 ac_cv_sys_largefile_CC=no 9027 if test "$GCC" != yes; then 9028 ac_save_CC=$CC 9029 while :; do 9030 # IRIX 6.2 and later do not support large files by default, 9031 # so use the C compiler's -n32 option if that helps. 9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9033/* end confdefs.h. */ 9034#include <sys/types.h> 9035 /* Check that off_t can represent 2**63 - 1 correctly. 9036 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9037 since some C++ compilers masquerading as C compilers 9038 incorrectly reject 9223372036854775807. */ 9039#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9040 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9041 && LARGE_OFF_T % 2147483647 == 1) 9042 ? 1 : -1]; 9043int 9044main (void) 9045{ 9046 9047 ; 9048 return 0; 9049} 9050_ACEOF 9051 if ac_fn_c_try_compile "$LINENO" 9052then : 9053 break 9054fi 9055rm -f core conftest.err conftest.$ac_objext conftest.beam 9056 CC="$CC -n32" 9057 if ac_fn_c_try_compile "$LINENO" 9058then : 9059 ac_cv_sys_largefile_CC=' -n32'; break 9060fi 9061rm -f core conftest.err conftest.$ac_objext conftest.beam 9062 break 9063 done 9064 CC=$ac_save_CC 9065 rm -f conftest.$ac_ext 9066 fi 9067fi 9068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 9069printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 9070 if test "$ac_cv_sys_largefile_CC" != no; then 9071 CC=$CC$ac_cv_sys_largefile_CC 9072 fi 9073 9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 9075printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 9076if test ${ac_cv_sys_file_offset_bits+y} 9077then : 9078 printf %s "(cached) " >&6 9079else $as_nop 9080 while :; do 9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9082/* end confdefs.h. */ 9083#include <sys/types.h> 9084 /* Check that off_t can represent 2**63 - 1 correctly. 9085 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9086 since some C++ compilers masquerading as C compilers 9087 incorrectly reject 9223372036854775807. */ 9088#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9090 && LARGE_OFF_T % 2147483647 == 1) 9091 ? 1 : -1]; 9092int 9093main (void) 9094{ 9095 9096 ; 9097 return 0; 9098} 9099_ACEOF 9100if ac_fn_c_try_compile "$LINENO" 9101then : 9102 ac_cv_sys_file_offset_bits=no; break 9103fi 9104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107#define _FILE_OFFSET_BITS 64 9108#include <sys/types.h> 9109 /* Check that off_t can represent 2**63 - 1 correctly. 9110 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9111 since some C++ compilers masquerading as C compilers 9112 incorrectly reject 9223372036854775807. */ 9113#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9115 && LARGE_OFF_T % 2147483647 == 1) 9116 ? 1 : -1]; 9117int 9118main (void) 9119{ 9120 9121 ; 9122 return 0; 9123} 9124_ACEOF 9125if ac_fn_c_try_compile "$LINENO" 9126then : 9127 ac_cv_sys_file_offset_bits=64; break 9128fi 9129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9130 ac_cv_sys_file_offset_bits=unknown 9131 break 9132done 9133fi 9134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 9135printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 9136case $ac_cv_sys_file_offset_bits in #( 9137 no | unknown) ;; 9138 *) 9139printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 9140;; 9141esac 9142rm -rf conftest* 9143 if test $ac_cv_sys_file_offset_bits = unknown; then 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 9145printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 9146if test ${ac_cv_sys_large_files+y} 9147then : 9148 printf %s "(cached) " >&6 9149else $as_nop 9150 while :; do 9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9152/* end confdefs.h. */ 9153#include <sys/types.h> 9154 /* Check that off_t can represent 2**63 - 1 correctly. 9155 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9156 since some C++ compilers masquerading as C compilers 9157 incorrectly reject 9223372036854775807. */ 9158#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9160 && LARGE_OFF_T % 2147483647 == 1) 9161 ? 1 : -1]; 9162int 9163main (void) 9164{ 9165 9166 ; 9167 return 0; 9168} 9169_ACEOF 9170if ac_fn_c_try_compile "$LINENO" 9171then : 9172 ac_cv_sys_large_files=no; break 9173fi 9174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177#define _LARGE_FILES 1 9178#include <sys/types.h> 9179 /* Check that off_t can represent 2**63 - 1 correctly. 9180 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9181 since some C++ compilers masquerading as C compilers 9182 incorrectly reject 9223372036854775807. */ 9183#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9185 && LARGE_OFF_T % 2147483647 == 1) 9186 ? 1 : -1]; 9187int 9188main (void) 9189{ 9190 9191 ; 9192 return 0; 9193} 9194_ACEOF 9195if ac_fn_c_try_compile "$LINENO" 9196then : 9197 ac_cv_sys_large_files=1; break 9198fi 9199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9200 ac_cv_sys_large_files=unknown 9201 break 9202done 9203fi 9204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 9205printf "%s\n" "$ac_cv_sys_large_files" >&6; } 9206case $ac_cv_sys_large_files in #( 9207 no | unknown) ;; 9208 *) 9209printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 9210;; 9211esac 9212rm -rf conftest* 9213 fi 9214fi 9215 9216# The cast to long int works around a bug in the HP C Compiler 9217# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9218# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9219# This bug is HP SR number 8606223364. 9220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 9221printf %s "checking size of void*... " >&6; } 9222if test ${ac_cv_sizeof_voidp+y} 9223then : 9224 printf %s "(cached) " >&6 9225else $as_nop 9226 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default" 9227then : 9228 9229else $as_nop 9230 if test "$ac_cv_type_voidp" = yes; then 9231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9232printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 9233as_fn_error 77 "cannot compute sizeof (void*) 9234See \`config.log' for more details" "$LINENO" 5; } 9235 else 9236 ac_cv_sizeof_voidp=0 9237 fi 9238fi 9239 9240fi 9241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 9242printf "%s\n" "$ac_cv_sizeof_voidp" >&6; } 9243 9244 9245 9246printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h 9247 9248 9249# The cast to long int works around a bug in the HP C Compiler 9250# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9251# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9252# This bug is HP SR number 8606223364. 9253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 9254printf %s "checking size of off_t... " >&6; } 9255if test ${ac_cv_sizeof_off_t+y} 9256then : 9257 printf %s "(cached) " >&6 9258else $as_nop 9259 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" 9260then : 9261 9262else $as_nop 9263 if test "$ac_cv_type_off_t" = yes; then 9264 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9265printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 9266as_fn_error 77 "cannot compute sizeof (off_t) 9267See \`config.log' for more details" "$LINENO" 5; } 9268 else 9269 ac_cv_sizeof_off_t=0 9270 fi 9271fi 9272 9273fi 9274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 9275printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } 9276 9277 9278 9279printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h 9280 9281 9282ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 9283if test "x$ac_cv_func_getrandom" = xyes 9284then : 9285 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 9286 9287fi 9288ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 9289if test "x$ac_cv_func_arc4random" = xyes 9290then : 9291 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 9292 9293fi 9294ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 9295if test "x$ac_cv_func_arc4random_uniform" = xyes 9296then : 9297 printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 9298 9299fi 9300 9301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 9302printf %s "checking for library containing setusercontext... " >&6; } 9303if test ${ac_cv_search_setusercontext+y} 9304then : 9305 printf %s "(cached) " >&6 9306else $as_nop 9307 ac_func_search_save_LIBS=$LIBS 9308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9309/* end confdefs.h. */ 9310 9311/* Override any GCC internal prototype to avoid an error. 9312 Use char because int might match the return type of a GCC 9313 builtin and then its argument prototype would still apply. */ 9314char setusercontext (); 9315int 9316main (void) 9317{ 9318return setusercontext (); 9319 ; 9320 return 0; 9321} 9322_ACEOF 9323for ac_lib in '' util 9324do 9325 if test -z "$ac_lib"; then 9326 ac_res="none required" 9327 else 9328 ac_res=-l$ac_lib 9329 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9330 fi 9331 if ac_fn_c_try_link "$LINENO" 9332then : 9333 ac_cv_search_setusercontext=$ac_res 9334fi 9335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9336 conftest$ac_exeext 9337 if test ${ac_cv_search_setusercontext+y} 9338then : 9339 break 9340fi 9341done 9342if test ${ac_cv_search_setusercontext+y} 9343then : 9344 9345else $as_nop 9346 ac_cv_search_setusercontext=no 9347fi 9348rm conftest.$ac_ext 9349LIBS=$ac_func_search_save_LIBS 9350fi 9351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 9352printf "%s\n" "$ac_cv_search_setusercontext" >&6; } 9353ac_res=$ac_cv_search_setusercontext 9354if test "$ac_res" != no 9355then : 9356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9357 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default 9358" 9359if test "x$ac_cv_header_login_cap_h" = xyes 9360then : 9361 printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h 9362 9363fi 9364 9365fi 9366 9367ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 9368if test "x$ac_cv_func_tzset" = xyes 9369then : 9370 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h 9371 9372fi 9373ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" 9374if test "x$ac_cv_func_alarm" = xyes 9375then : 9376 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h 9377 9378fi 9379ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 9380if test "x$ac_cv_func_chroot" = xyes 9381then : 9382 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 9383 9384fi 9385ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 9386if test "x$ac_cv_func_dup2" = xyes 9387then : 9388 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h 9389 9390fi 9391ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 9392if test "x$ac_cv_func_endpwent" = xyes 9393then : 9394 printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h 9395 9396fi 9397ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 9398if test "x$ac_cv_func_gethostname" = xyes 9399then : 9400 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 9401 9402fi 9403ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 9404if test "x$ac_cv_func_memset" = xyes 9405then : 9406 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h 9407 9408fi 9409ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" 9410if test "x$ac_cv_func_memcpy" = xyes 9411then : 9412 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h 9413 9414fi 9415ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" 9416if test "x$ac_cv_func_pwrite" = xyes 9417then : 9418 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h 9419 9420fi 9421ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 9422if test "x$ac_cv_func_socket" = xyes 9423then : 9424 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 9425 9426fi 9427ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 9428if test "x$ac_cv_func_strcasecmp" = xyes 9429then : 9430 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 9431 9432fi 9433ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" 9434if test "x$ac_cv_func_strchr" = xyes 9435then : 9436 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h 9437 9438fi 9439ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 9440if test "x$ac_cv_func_strdup" = xyes 9441then : 9442 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 9443 9444fi 9445ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 9446if test "x$ac_cv_func_strerror" = xyes 9447then : 9448 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h 9449 9450fi 9451ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 9452if test "x$ac_cv_func_strncasecmp" = xyes 9453then : 9454 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 9455 9456fi 9457ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 9458if test "x$ac_cv_func_strtol" = xyes 9459then : 9460 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h 9461 9462fi 9463ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 9464if test "x$ac_cv_func_writev" = xyes 9465then : 9466 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 9467 9468fi 9469ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 9470if test "x$ac_cv_func_getaddrinfo" = xyes 9471then : 9472 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 9473 9474fi 9475ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 9476if test "x$ac_cv_func_getnameinfo" = xyes 9477then : 9478 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 9479 9480fi 9481ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo" 9482if test "x$ac_cv_func_freeaddrinfo" = xyes 9483then : 9484 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h 9485 9486fi 9487ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 9488if test "x$ac_cv_func_gai_strerror" = xyes 9489then : 9490 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h 9491 9492fi 9493ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 9494if test "x$ac_cv_func_sigaction" = xyes 9495then : 9496 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 9497 9498fi 9499ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 9500if test "x$ac_cv_func_sigprocmask" = xyes 9501then : 9502 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 9503 9504fi 9505ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 9506if test "x$ac_cv_func_strptime" = xyes 9507then : 9508 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 9509 9510fi 9511ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 9512if test "x$ac_cv_func_strftime" = xyes 9513then : 9514 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 9515 9516fi 9517ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 9518if test "x$ac_cv_func_localtime_r" = xyes 9519then : 9520 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 9521 9522fi 9523ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext" 9524if test "x$ac_cv_func_setusercontext" = xyes 9525then : 9526 printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h 9527 9528fi 9529ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob" 9530if test "x$ac_cv_func_glob" = xyes 9531then : 9532 printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h 9533 9534fi 9535ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 9536if test "x$ac_cv_func_initgroups" = xyes 9537then : 9538 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 9539 9540fi 9541ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 9542if test "x$ac_cv_func_setresuid" = xyes 9543then : 9544 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 9545 9546fi 9547ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 9548if test "x$ac_cv_func_setreuid" = xyes 9549then : 9550 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 9551 9552fi 9553ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 9554if test "x$ac_cv_func_setresgid" = xyes 9555then : 9556 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 9557 9558fi 9559ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 9560if test "x$ac_cv_func_setregid" = xyes 9561then : 9562 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 9563 9564fi 9565ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" 9566if test "x$ac_cv_func_getpwnam" = xyes 9567then : 9568 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h 9569 9570fi 9571ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 9572if test "x$ac_cv_func_mmap" = xyes 9573then : 9574 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 9575 9576fi 9577ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll" 9578if test "x$ac_cv_func_ppoll" = xyes 9579then : 9580 printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h 9581 9582fi 9583ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 9584if test "x$ac_cv_func_clock_gettime" = xyes 9585then : 9586 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 9587 9588fi 9589ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 9590if test "x$ac_cv_func_accept4" = xyes 9591then : 9592 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 9593 9594fi 9595ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 9596if test "x$ac_cv_func_getifaddrs" = xyes 9597then : 9598 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 9599 9600fi 9601 9602 9603ac_fn_c_check_type "$LINENO" "struct mmsghdr" "ac_cv_type_struct_mmsghdr" " 9604$ac_includes_default 9605#include <sys/socket.h> 9606 9607" 9608if test "x$ac_cv_type_struct_mmsghdr" = xyes 9609then : 9610 9611printf "%s\n" "#define HAVE_MMSGHDR 1" >>confdefs.h 9612 9613fi 9614 9615 9616# Check whether --enable-recvmmsg was given. 9617if test ${enable_recvmmsg+y} 9618then : 9619 enableval=$enable_recvmmsg; 9620fi 9621 9622case "$enable_recvmmsg" in 9623 yes) 9624 ac_fn_c_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg" 9625if test "x$ac_cv_func_recvmmsg" = xyes 9626then : 9627 9628if test "$cross_compiling" = yes 9629then : 9630 9631 9632printf "%s\n" "#define HAVE_RECVMMSG 1" >>confdefs.h 9633 9634 9635else $as_nop 9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9637/* end confdefs.h. */ 9638 9639#ifdef HAVE_UNISTD_H 9640#include <unistd.h> 9641#endif 9642#include <sys/socket.h> 9643#include <errno.h> 9644int main(void) 9645{ 9646 int s = socket(AF_INET, SOCK_DGRAM, 0); 9647 int r = recvmmsg(s, 0, 0, 0, 0) == -1 && errno == ENOSYS; 9648 close(s); 9649 return r; 9650} 9651 9652_ACEOF 9653if ac_fn_c_try_run "$LINENO" 9654then : 9655 9656 9657printf "%s\n" "#define HAVE_RECVMMSG 1" >>confdefs.h 9658 9659fi 9660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9661 conftest.$ac_objext conftest.beam conftest.$ac_ext 9662fi 9663 9664fi 9665 9666 ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg" 9667if test "x$ac_cv_func_sendmmsg" = xyes 9668then : 9669 9670if test "$cross_compiling" = yes 9671then : 9672 9673 9674printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h 9675 9676 9677else $as_nop 9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9679/* end confdefs.h. */ 9680 9681#ifdef HAVE_UNISTD_H 9682#include <unistd.h> 9683#endif 9684#include <sys/socket.h> 9685#include <errno.h> 9686int main(void) 9687{ 9688 int s = socket(AF_INET, SOCK_DGRAM, 0); 9689 int r = sendmmsg(s, 0, 0, 0) == -1 && errno == ENOSYS; 9690 close(s); 9691 return r; 9692} 9693 9694_ACEOF 9695if ac_fn_c_try_run "$LINENO" 9696then : 9697 9698 9699printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h 9700 9701fi 9702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9703 conftest.$ac_objext conftest.beam conftest.$ac_ext 9704fi 9705 9706fi 9707 9708 9709 ;; 9710 no|*) 9711 ;; 9712esac 9713 9714# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 9715if echo $target_os | $GREP -i darwin8 > /dev/null; then 9716 9717printf "%s\n" "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 9718 9719fi 9720 9721# GNU HURD needs _GNU_SOURCE defined for cpu affinity gear 9722if echo $target_os | $EGREP -i 'linux|hurd' > /dev/null; then 9723 printf "%s\n" "#define _GNU_SOURCE, 1, Define this if on Linux or GNU Hurd for cpu affinity interface 1" >>confdefs.h 9724 9725fi 9726 9727# see comment on _GNU_SOURCE above 9728ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default 9729" 9730if test "x$ac_cv_header_sched_h" = xyes 9731then : 9732 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 9733 9734fi 9735ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default 9736" 9737if test "x$ac_cv_header_sys_cpuset_h" = xyes 9738then : 9739 printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h 9740 9741fi 9742 9743 9744# Check for cpu_set_t (Linux) and cpuset_t (FreeBSD and NetBSD) 9745ac_fn_c_check_type "$LINENO" "cpu_set_t" "ac_cv_type_cpu_set_t" " 9746$ac_includes_default 9747#if HAVE_SCHED_H 9748# include <sched.h> 9749#endif 9750#if HAVE_SYS_CPUSET_H 9751# include <sys/cpuset.h> 9752#endif 9753 9754" 9755if test "x$ac_cv_type_cpu_set_t" = xyes 9756then : 9757 9758printf "%s\n" "#define HAVE_CPU_SET_T 1" >>confdefs.h 9759 9760 9761fi 9762ac_fn_c_check_type "$LINENO" "cpuset_t" "ac_cv_type_cpuset_t" " 9763$ac_includes_default 9764#if HAVE_SCHED_H 9765# include <sched.h> 9766#endif 9767#if HAVE_SYS_CPUSET_H 9768# include <sys/cpuset.h> 9769#endif 9770 9771" 9772if test "x$ac_cv_type_cpuset_t" = xyes 9773then : 9774 9775printf "%s\n" "#define HAVE_CPUSET_T 1" >>confdefs.h 9776 9777 9778fi 9779ac_fn_c_check_type "$LINENO" "cpuid_t" "ac_cv_type_cpuid_t" " 9780$ac_includes_default 9781#if HAVE_SCHED_H 9782# include <sched.h> 9783#endif 9784#if HAVE_SYS_CPUSET_H 9785# include <sys/cpuset.h> 9786#endif 9787 9788" 9789if test "x$ac_cv_type_cpuid_t" = xyes 9790then : 9791 9792printf "%s\n" "#define HAVE_CPUID_T 1" >>confdefs.h 9793 9794 9795fi 9796 9797 9798 9799 9800if test x"$ac_cv_type_cpuset_t" = xyes -o x"$ac_cv_type_cpu_set_t" = xyes 9801then : 9802 9803 ac_fn_c_check_func "$LINENO" "cpuset_create" "ac_cv_func_cpuset_create" 9804if test "x$ac_cv_func_cpuset_create" = xyes 9805then : 9806 9807fi 9808 9809 ac_fn_c_check_func "$LINENO" "cpuset_destroy" "ac_cv_func_cpuset_destroy" 9810if test "x$ac_cv_func_cpuset_destroy" = xyes 9811then : 9812 9813fi 9814 9815 ac_fn_c_check_func "$LINENO" "cpuset_zero" "ac_cv_func_cpuset_zero" 9816if test "x$ac_cv_func_cpuset_zero" = xyes 9817then : 9818 9819fi 9820 9821 ac_fn_c_check_func "$LINENO" "cpuset_set" "ac_cv_func_cpuset_set" 9822if test "x$ac_cv_func_cpuset_set" = xyes 9823then : 9824 9825fi 9826 9827 ac_fn_c_check_func "$LINENO" "cpuset_clr" "ac_cv_func_cpuset_clr" 9828if test "x$ac_cv_func_cpuset_clr" = xyes 9829then : 9830 9831fi 9832 9833 ac_fn_c_check_func "$LINENO" "cpuset_isset" "ac_cv_func_cpuset_isset" 9834if test "x$ac_cv_func_cpuset_isset" = xyes 9835then : 9836 9837fi 9838 9839 ac_fn_c_check_func "$LINENO" "cpuset_size" "ac_cv_func_cpuset_size" 9840if test "x$ac_cv_func_cpuset_size" = xyes 9841then : 9842 9843fi 9844 9845 case " $LIBOBJS " in 9846 *" cpuset.$ac_objext "* ) ;; 9847 *) LIBOBJS="$LIBOBJS cpuset.$ac_objext" 9848 ;; 9849esac 9850 9851 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 9852if test "x$ac_cv_func_sysconf" = xyes 9853then : 9854 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 9855 9856fi 9857 9858 9859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CPU_OR works with three arguments" >&5 9860printf %s "checking whether CPU_OR works with three arguments... " >&6; } 9861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9862/* end confdefs.h. */ 9863#ifdef HAVE_SCHED_H 9864# include <sched.h> 9865#endif 9866#ifdef HAVE_SYS_CPUSET_H 9867# include <sys/cpuset.h> 9868#endif 9869#include <string.h> 9870#ifdef HAVE_CPUSET_T 9871#define MY_CPUSET_TYPE cpuset_t 9872#endif 9873#ifdef HAVE_CPU_SET_T 9874#define MY_CPUSET_TYPE cpu_set_t 9875#endif 9876void testing (void) { 9877 MY_CPUSET_TYPE a, b; 9878 memset(&a, 0, sizeof(a)); 9879 memset(&b, 0, sizeof(b)); 9880 CPU_OR(&a, &a, &b); 9881} 9882int 9883main (void) 9884{ 9885 9886 testing(); 9887 9888 ; 9889 return 0; 9890} 9891_ACEOF 9892if ac_fn_c_try_compile "$LINENO" 9893then : 9894 9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9896printf "%s\n" "yes" >&6; } 9897 9898printf "%s\n" "#define CPU_OR_THREE_ARGS 1" >>confdefs.h 9899 9900 9901else $as_nop 9902 9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9904printf "%s\n" "no" >&6; } 9905 9906fi 9907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9908 9909fi 9910 9911# 9912# sched_setaffinity must be checked using proper includes. 9913# also needs _GNU_SOURCE on Linux and Hurd; see above. 9914# also see https://github.com/NLnetLabs/nsd/issues/82. 9915# 9916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5 9917printf %s "checking for sched_setaffinity... " >&6; } 9918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9919/* end confdefs.h. */ 9920 9921 #ifdef HAVE_SCHED_H 9922 # include <sched.h> 9923 #endif 9924 #ifdef HAVE_SYS_CPUSET_H 9925 #include <sys/cpuset.h> 9926 #endif 9927 #ifdef HAVE_CPUSET_T 9928 #define MY_CPUSET_TYPE cpuset_t 9929 #endif 9930 #ifdef HAVE_CPU_SET_T 9931 #define MY_CPUSET_TYPE cpu_set_t 9932 #endif 9933 void testing (void) { 9934 MY_CPUSET_TYPE set; 9935 CPU_ZERO(&set); 9936 (void)sched_setaffinity(-1, sizeof(set), &set); 9937 } 9938 9939int 9940main (void) 9941{ 9942 9943 ; 9944 return 0; 9945} 9946_ACEOF 9947if ac_fn_c_try_compile "$LINENO" 9948then : 9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9950printf "%s\n" "yes" >&6; } 9951 9952printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h 9953 9954else $as_nop 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9956printf "%s\n" "no" >&6; } 9957fi 9958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9959 9960# 9961# Checking for missing functions we can replace 9962# 9963ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename" 9964if test "x$ac_cv_func_basename" = xyes 9965then : 9966 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h 9967 9968else $as_nop 9969 case " $LIBOBJS " in 9970 *" basename.$ac_objext "* ) ;; 9971 *) LIBOBJS="$LIBOBJS basename.$ac_objext" 9972 ;; 9973esac 9974 9975fi 9976 9977ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 9978if test "x$ac_cv_func_inet_aton" = xyes 9979then : 9980 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 9981 9982else $as_nop 9983 case " $LIBOBJS " in 9984 *" inet_aton.$ac_objext "* ) ;; 9985 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 9986 ;; 9987esac 9988 9989fi 9990 9991ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 9992if test "x$ac_cv_func_inet_pton" = xyes 9993then : 9994 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 9995 9996else $as_nop 9997 case " $LIBOBJS " in 9998 *" inet_pton.$ac_objext "* ) ;; 9999 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 10000 ;; 10001esac 10002 10003fi 10004 10005ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 10006if test "x$ac_cv_func_inet_ntop" = xyes 10007then : 10008 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 10009 10010else $as_nop 10011 case " $LIBOBJS " in 10012 *" inet_ntop.$ac_objext "* ) ;; 10013 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 10014 ;; 10015esac 10016 10017fi 10018 10019ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 10020if test "x$ac_cv_func_snprintf" = xyes 10021then : 10022 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 10023 10024else $as_nop 10025 case " $LIBOBJS " in 10026 *" snprintf.$ac_objext "* ) ;; 10027 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 10028 ;; 10029esac 10030 10031fi 10032 10033ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 10034if test "x$ac_cv_func_strlcat" = xyes 10035then : 10036 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 10037 10038else $as_nop 10039 case " $LIBOBJS " in 10040 *" strlcat.$ac_objext "* ) ;; 10041 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 10042 ;; 10043esac 10044 10045fi 10046 10047ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 10048if test "x$ac_cv_func_strlcpy" = xyes 10049then : 10050 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 10051 10052else $as_nop 10053 case " $LIBOBJS " in 10054 *" strlcpy.$ac_objext "* ) ;; 10055 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 10056 ;; 10057esac 10058 10059fi 10060 10061ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 10062if test "x$ac_cv_func_strptime" = xyes 10063then : 10064 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 10065 10066else $as_nop 10067 case " $LIBOBJS " in 10068 *" strptime.$ac_objext "* ) ;; 10069 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 10070 ;; 10071esac 10072 10073fi 10074 10075ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect" 10076if test "x$ac_cv_func_pselect" = xyes 10077then : 10078 printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h 10079 10080else $as_nop 10081 case " $LIBOBJS " in 10082 *" pselect.$ac_objext "* ) ;; 10083 *) LIBOBJS="$LIBOBJS pselect.$ac_objext" 10084 ;; 10085esac 10086 10087fi 10088 10089ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 10090if test "x$ac_cv_func_memmove" = xyes 10091then : 10092 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 10093 10094else $as_nop 10095 case " $LIBOBJS " in 10096 *" memmove.$ac_objext "* ) ;; 10097 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 10098 ;; 10099esac 10100 10101fi 10102 10103ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 10104if test "x$ac_cv_func_setproctitle" = xyes 10105then : 10106 printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h 10107 10108else $as_nop 10109 case " $LIBOBJS " in 10110 *" setproctitle.$ac_objext "* ) ;; 10111 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" 10112 ;; 10113esac 10114 10115fi 10116 10117ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 10118if test "x$ac_cv_func_explicit_bzero" = xyes 10119then : 10120 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 10121 10122else $as_nop 10123 case " $LIBOBJS " in 10124 *" explicit_bzero.$ac_objext "* ) ;; 10125 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 10126 ;; 10127esac 10128 10129fi 10130 10131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 10132printf %s "checking for reallocarray... " >&6; } 10133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10134/* end confdefs.h. */ 10135 10136#ifndef _OPENBSD_SOURCE 10137#define _OPENBSD_SOURCE 1 10138#endif 10139 10140$ac_includes_default 10141 10142#include <stdlib.h> 10143int main(void) { 10144 void* p = reallocarray(NULL, 10, 100); 10145 free(p); 10146 return 0; 10147} 10148 10149_ACEOF 10150if ac_fn_c_try_link "$LINENO" 10151then : 10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10153printf "%s\n" "yes" >&6; } 10154 10155printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 10156 10157 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" " 10158$ac_includes_default 10159#include <stdlib.h> 10160 10161" "$ac_c_undeclared_builtin_options" "CFLAGS" 10162if test "x$ac_cv_have_decl_reallocarray" = xyes 10163then : 10164 ac_have_decl=1 10165else $as_nop 10166 ac_have_decl=0 10167fi 10168printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h 10169if test $ac_have_decl = 1 10170then : 10171 10172else $as_nop 10173 10174 10175printf "%s\n" "#define REALLOCARRAY_NEEDS_DEFINES 1" >>confdefs.h 10176 10177 10178fi 10179 10180 10181else $as_nop 10182 10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10184printf "%s\n" "no" >&6; } 10185 case " $LIBOBJS " in 10186 *" reallocarray.$ac_objext "* ) ;; 10187 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 10188 ;; 10189esac 10190 10191 10192fi 10193rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10194 conftest$ac_exeext conftest.$ac_ext 10195 10196# 10197# Check for b64_ntop (and assume result applies to b64_pton as well). 10198# The functions are actually prefixed with __ and resolv.h defines 10199# macros for the unprefixed versions, however including this header 10200# causes conflicts with our T_xx defines. 10201# 10202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __b64_ntop" >&5 10203printf %s "checking for __b64_ntop... " >&6; } 10204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10205/* end confdefs.h. */ 10206#include <stddef.h> 10207int 10208main (void) 10209{ 10210__b64_ntop(NULL, 0, NULL, 0); 10211 ; 10212 return 0; 10213} 10214_ACEOF 10215if ac_fn_c_try_link "$LINENO" 10216then : 10217 found_b64_ntop=yes 10218else $as_nop 10219 found_b64_ntop=no 10220 10221fi 10222rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10223 conftest$ac_exeext conftest.$ac_ext 10224if test "x$found_b64_ntop" = xno; then 10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10226printf "%s\n" "no" >&6; } 10227 10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __b64_ntop with -lresolv" >&5 10229printf %s "checking for __b64_ntop with -lresolv... " >&6; } 10230 LIBS="$LIBS -lresolv" 10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10232/* end confdefs.h. */ 10233#include <stddef.h> 10234int 10235main (void) 10236{ 10237__b64_ntop(NULL, 0, NULL, 0); 10238 ; 10239 return 0; 10240} 10241_ACEOF 10242if ac_fn_c_try_link "$LINENO" 10243then : 10244 found_b64_ntop=yes 10245else $as_nop 10246 found_b64_ntop=no 10247 10248fi 10249rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10250 conftest$ac_exeext conftest.$ac_ext 10251 if test "x$found_b64_ntop" = xno; then 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10253printf "%s\n" "no" >&6; } 10254 fi 10255fi 10256if test "x$found_b64_ntop" = xyes; then 10257 10258printf "%s\n" "#define HAVE_B64_NTOP 1" >>confdefs.h 10259 10260 10261printf "%s\n" "#define HAVE_B64_PTON 1" >>confdefs.h 10262 10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10264printf "%s\n" "yes" >&6; } 10265else 10266 case " $LIBOBJS " in 10267 *" b64_ntop.$ac_objext "* ) ;; 10268 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 10269 ;; 10270esac 10271 10272 case " $LIBOBJS " in 10273 *" b64_pton.$ac_objext "* ) ;; 10274 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 10275 ;; 10276esac 10277 10278fi 10279 10280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pselect prototype in sys/select.h" >&5 10281printf %s "checking for pselect prototype in sys/select.h... " >&6; } 10282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10283/* end confdefs.h. */ 10284#include <sys/select.h> 10285 10286_ACEOF 10287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10288 $EGREP "[^a-zA-Z_]*pselect[^a-zA-Z_]" >/dev/null 2>&1 10289then : 10290 10291printf "%s\n" "#define HAVE_PSELECT_PROTO 1" >>confdefs.h 10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10293printf "%s\n" "yes" >&6; } 10294else $as_nop 10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10296printf "%s\n" "no" >&6; } 10297fi 10298rm -rf conftest* 10299 10300 10301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctime_r prototype in time.h" >&5 10302printf %s "checking for ctime_r prototype in time.h... " >&6; } 10303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10304/* end confdefs.h. */ 10305#include <time.h> 10306 10307_ACEOF 10308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10309 $EGREP "[^a-zA-Z_]*ctime_r[^a-zA-Z_]" >/dev/null 2>&1 10310then : 10311 10312printf "%s\n" "#define HAVE_CTIME_R_PROTO 1" >>confdefs.h 10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10314printf "%s\n" "yes" >&6; } 10315else $as_nop 10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10317printf "%s\n" "no" >&6; } 10318fi 10319rm -rf conftest* 10320 10321 10322ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" " 10323$ac_includes_default 10324#ifdef HAVE_SIGNAL_H 10325#include <signal.h> 10326#endif 10327#ifdef HAVE_TIME_H 10328#include <time.h> 10329#endif 10330 10331" 10332if test "x$ac_cv_type_struct_timespec" = xyes 10333then : 10334 10335printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 10336 10337fi 10338 10339 10340 10341printf "%s\n" "#define IDENTITY \"unidentified server\"" >>confdefs.h 10342 10343 10344printf "%s\n" "#define VERSION PACKAGE_STRING" >>confdefs.h 10345 10346 10347printf "%s\n" "#define TCP_BACKLOG 256" >>confdefs.h 10348 10349 10350printf "%s\n" "#define TCP_PORT \"53\"" >>confdefs.h 10351 10352 10353printf "%s\n" "#define TCP_MAX_MESSAGE_LEN 65535" >>confdefs.h 10354 10355 10356printf "%s\n" "#define UDP_PORT \"53\"" >>confdefs.h 10357 10358 10359printf "%s\n" "#define UDP_MAX_MESSAGE_LEN 512" >>confdefs.h 10360 10361 10362printf "%s\n" "#define EDNS_MAX_MESSAGE_LEN 1232" >>confdefs.h 10363 10364 10365printf "%s\n" "#define TLS_PORT \"853\"" >>confdefs.h 10366 10367 10368printf "%s\n" "#define MAXSYSLOGMSGLEN 512" >>confdefs.h 10369 10370 10371printf "%s\n" "#define NSD_CONTROL_PORT 8952" >>confdefs.h 10372 10373 10374printf "%s\n" "#define NSD_CONTROL_VERSION 1" >>confdefs.h 10375 10376 10377printf "%s\n" "#define VERIFY_PORT \"5347\"" >>confdefs.h 10378 10379 10380facility=LOG_DAEMON 10381 10382# Check whether --with-facility was given. 10383if test ${with_facility+y} 10384then : 10385 withval=$with_facility; facility=$withval 10386fi 10387 10388 10389printf "%s\n" "#define FACILITY $facility" >>confdefs.h 10390 10391 10392tcp_timeout=120 10393 10394# Check whether --with-tcp_timeout was given. 10395if test ${with_tcp_timeout+y} 10396then : 10397 withval=$with_tcp_timeout; tcp_timeout=$withval 10398fi 10399 10400 10401printf "%s\n" "#define TCP_TIMEOUT $tcp_timeout" >>confdefs.h 10402 10403 10404# Check whether --enable-root-server was given. 10405if test ${enable_root_server+y} 10406then : 10407 enableval=$enable_root_server; 10408fi 10409 10410 10411# Check whether --enable-ipv6 was given. 10412if test ${enable_ipv6+y} 10413then : 10414 enableval=$enable_ipv6; 10415fi 10416 10417case "$enable_ipv6" in 10418 no) 10419 ;; 10420 yes|*) 10421 10422printf "%s\n" "#define INET6 /**/" >>confdefs.h 10423 10424 ;; 10425esac 10426 10427# Check whether --enable-bind8-stats was given. 10428if test ${enable_bind8_stats+y} 10429then : 10430 enableval=$enable_bind8_stats; 10431fi 10432 10433 10434case "$enable_bind8_stats" in 10435 yes|'') 10436 10437printf "%s\n" "#define BIND8_STATS /**/" >>confdefs.h 10438 10439 ;; 10440 no|*) 10441 ;; 10442esac 10443 10444# Check whether --enable-zone-stats was given. 10445if test ${enable_zone_stats+y} 10446then : 10447 enableval=$enable_zone_stats; 10448fi 10449 10450case "$enable_zone_stats" in 10451 yes) 10452 10453printf "%s\n" "#define USE_ZONE_STATS /**/" >>confdefs.h 10454 10455 10456printf "%s\n" "#define BIND8_STATS /**/" >>confdefs.h 10457 10458 ;; 10459 no|''|*) 10460 ;; 10461esac 10462 10463# Check whether --enable-checking was given. 10464if test ${enable_checking+y} 10465then : 10466 enableval=$enable_checking; 10467fi 10468 10469case "$enable_checking" in 10470 yes) 10471 10472 10473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 10474printf %s "checking whether $CC supports -W... " >&6; } 10475cache=`echo W | $SED 'y%.=/+-%___p_%'` 10476if eval test \${cv_prog_cc_flag_$cache+y} 10477then : 10478 printf %s "(cached) " >&6 10479else $as_nop 10480 10481echo 'void f(void){}' >conftest.c 10482if test -z "`$CC -W -c conftest.c 2>&1`"; then 10483eval "cv_prog_cc_flag_$cache=yes" 10484else 10485eval "cv_prog_cc_flag_$cache=no" 10486fi 10487rm -f conftest* 10488 10489fi 10490 10491if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10493printf "%s\n" "yes" >&6; } 10494: 10495 CFLAGS="$CFLAGS -W" 10496else 10497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10498printf "%s\n" "no" >&6; } 10499: 10500 10501fi 10502 10503 10504 10505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 10506printf %s "checking whether $CC supports -Wall... " >&6; } 10507cache=`echo Wall | $SED 'y%.=/+-%___p_%'` 10508if eval test \${cv_prog_cc_flag_$cache+y} 10509then : 10510 printf %s "(cached) " >&6 10511else $as_nop 10512 10513echo 'void f(void){}' >conftest.c 10514if test -z "`$CC -Wall -c conftest.c 2>&1`"; then 10515eval "cv_prog_cc_flag_$cache=yes" 10516else 10517eval "cv_prog_cc_flag_$cache=no" 10518fi 10519rm -f conftest* 10520 10521fi 10522 10523if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10525printf "%s\n" "yes" >&6; } 10526: 10527 CFLAGS="$CFLAGS -Wall" 10528else 10529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10530printf "%s\n" "no" >&6; } 10531: 10532 10533fi 10534 10535 10536 10537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 10538printf %s "checking whether $CC supports -Wextra... " >&6; } 10539cache=`echo Wextra | $SED 'y%.=/+-%___p_%'` 10540if eval test \${cv_prog_cc_flag_$cache+y} 10541then : 10542 printf %s "(cached) " >&6 10543else $as_nop 10544 10545echo 'void f(void){}' >conftest.c 10546if test -z "`$CC -Wextra -c conftest.c 2>&1`"; then 10547eval "cv_prog_cc_flag_$cache=yes" 10548else 10549eval "cv_prog_cc_flag_$cache=no" 10550fi 10551rm -f conftest* 10552 10553fi 10554 10555if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10557printf "%s\n" "yes" >&6; } 10558: 10559 CFLAGS="$CFLAGS -Wextra" 10560else 10561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10562printf "%s\n" "no" >&6; } 10563: 10564 10565fi 10566 10567 10568 10569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 10570printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 10571cache=`echo Wdeclaration-after-statement | $SED 'y%.=/+-%___p_%'` 10572if eval test \${cv_prog_cc_flag_$cache+y} 10573then : 10574 printf %s "(cached) " >&6 10575else $as_nop 10576 10577echo 'void f(void){}' >conftest.c 10578if test -z "`$CC -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 10579eval "cv_prog_cc_flag_$cache=yes" 10580else 10581eval "cv_prog_cc_flag_$cache=no" 10582fi 10583rm -f conftest* 10584 10585fi 10586 10587if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10589printf "%s\n" "yes" >&6; } 10590: 10591 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 10592else 10593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10594printf "%s\n" "no" >&6; } 10595: 10596 10597fi 10598 10599 ;; 10600 no|*) 10601 10602printf "%s\n" "#define NDEBUG /**/" >>confdefs.h 10603 10604 ;; 10605esac 10606 10607# Check whether --enable-log-role was given. 10608if test ${enable_log_role+y} 10609then : 10610 enableval=$enable_log_role; 10611fi 10612 10613case "$enable_log_role" in 10614 yes) 10615 10616printf "%s\n" "#define USE_LOG_PROCESS_ROLE /**/" >>confdefs.h 10617 10618 ;; 10619 no|*) 10620 ;; 10621esac 10622 10623 10624# Check whether --enable-memclean was given. 10625if test ${enable_memclean+y} 10626then : 10627 enableval=$enable_memclean; 10628fi 10629 10630if test "$enable_memclean" = "yes"; then 10631printf "%s\n" "#define MEMCLEAN 1" >>confdefs.h 10632 10633fi 10634 10635# Check whether --enable-ratelimit was given. 10636if test ${enable_ratelimit+y} 10637then : 10638 enableval=$enable_ratelimit; 10639fi 10640 10641case "$enable_ratelimit" in 10642 yes) 10643 10644printf "%s\n" "#define RATELIMIT /**/" >>confdefs.h 10645 10646 ratelimit="xx" 10647 ;; 10648 no|*) 10649 ratelimit="" 10650 ;; 10651esac 10652 10653 10654# Check whether --enable-ratelimit-default-is-off was given. 10655if test ${enable_ratelimit_default_is_off+y} 10656then : 10657 enableval=$enable_ratelimit_default_is_off; 10658fi 10659 10660case "$enable_ratelimit_default_is_off" in 10661 yes) 10662 10663printf "%s\n" "#define RATELIMIT_DEFAULT_OFF /**/" >>confdefs.h 10664 10665 ratelimit_default="off" 10666 ;; 10667 no|*) 10668 ratelimit_default="on" 10669 ;; 10670esac 10671 10672 10673# we need SSL for TSIG (and maybe also for NSEC3). 10674 10675 10676# Check whether --with-ssl was given. 10677if test ${with_ssl+y} 10678then : 10679 withval=$with_ssl; 10680 10681else $as_nop 10682 10683 withval="yes" 10684 10685fi 10686 10687 if test x_$withval != x_no; then 10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 10689printf %s "checking for SSL... " >&6; } 10690 if test -n "$withval"; then 10691 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then 10692 ssldir="$withval" 10693 found_ssl="yes" 10694 withval="" 10695 ssldir_include="$ssldir" 10696 CPPFLAGS="$CPPFLAGS -I$ssldir_include"; 10697 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'` 10698 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 10699 : # found here 10700 else 10701 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'` 10702 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 10703 : # found here 10704 else 10705 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5 10706 fi 10707 fi 10708 fi 10709 fi 10710 if test x_$withval = x_ -o x_$withval = x_yes; then 10711 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/sfw /usr/local /usr /usr/local/opt/openssl" 10712 fi 10713 for dir in $withval; do 10714 ssldir="$dir" 10715 if test -f "$dir/include/openssl/ssl.h"; then 10716 found_ssl="yes"; 10717 if test x_$ssldir != x_/usr; then 10718 CPPFLAGS="$CPPFLAGS -I$ssldir/include"; 10719 fi 10720 ssldir_include="$ssldir/include" 10721 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 10722 ssldir_lib="$ssldir/lib64" 10723 else 10724 ssldir_lib="$ssldir/lib" 10725 fi 10726 break; 10727 fi 10728 done 10729 if test x_$found_ssl != x_yes; then 10730 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 10731 else 10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 10733printf "%s\n" "found in $ssldir" >&6; } 10734 HAVE_SSL=yes 10735 10736printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h 10737 10738 if test x_$ssldir != x_/usr; then 10739 LDFLAGS="$LDFLAGS -L$ssldir_lib"; 10740 fi 10741 if test x_$ssldir = x_/usr/sfw; then 10742 LDFLAGS="$LDFLAGS -R$ssldir_lib"; 10743 fi 10744 fi 10745 10746 fi 10747 10748if test x$HAVE_SSL = x"yes"; then 10749 10750# check if libssl needs libdl 10751BAKLIBS="$LIBS" 10752LIBS="-lssl $LIBS" 10753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 10754printf %s "checking if libssl needs libdl... " >&6; } 10755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10756/* end confdefs.h. */ 10757 10758/* Override any GCC internal prototype to avoid an error. 10759 Use char because int might match the return type of a GCC 10760 builtin and then its argument prototype would still apply. */ 10761char SSL_CTX_new (); 10762int 10763main (void) 10764{ 10765return SSL_CTX_new (); 10766 ; 10767 return 0; 10768} 10769_ACEOF 10770if ac_fn_c_try_link "$LINENO" 10771then : 10772 10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10774printf "%s\n" "no" >&6; } 10775 LIBS="$BAKLIBS" 10776 10777else $as_nop 10778 10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10780printf "%s\n" "yes" >&6; } 10781 LIBS="$BAKLIBS" 10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 10783printf %s "checking for library containing dlopen... " >&6; } 10784if test ${ac_cv_search_dlopen+y} 10785then : 10786 printf %s "(cached) " >&6 10787else $as_nop 10788 ac_func_search_save_LIBS=$LIBS 10789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10790/* end confdefs.h. */ 10791 10792/* Override any GCC internal prototype to avoid an error. 10793 Use char because int might match the return type of a GCC 10794 builtin and then its argument prototype would still apply. */ 10795char dlopen (); 10796int 10797main (void) 10798{ 10799return dlopen (); 10800 ; 10801 return 0; 10802} 10803_ACEOF 10804for ac_lib in '' dl 10805do 10806 if test -z "$ac_lib"; then 10807 ac_res="none required" 10808 else 10809 ac_res=-l$ac_lib 10810 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10811 fi 10812 if ac_fn_c_try_link "$LINENO" 10813then : 10814 ac_cv_search_dlopen=$ac_res 10815fi 10816rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10817 conftest$ac_exeext 10818 if test ${ac_cv_search_dlopen+y} 10819then : 10820 break 10821fi 10822done 10823if test ${ac_cv_search_dlopen+y} 10824then : 10825 10826else $as_nop 10827 ac_cv_search_dlopen=no 10828fi 10829rm conftest.$ac_ext 10830LIBS=$ac_func_search_save_LIBS 10831fi 10832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 10833printf "%s\n" "$ac_cv_search_dlopen" >&6; } 10834ac_res=$ac_cv_search_dlopen 10835if test "$ac_res" != no 10836then : 10837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10838 10839fi 10840 10841 10842fi 10843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10844 conftest$ac_exeext conftest.$ac_ext 10845 # remove space after -ldl if there. 10846 LIBS=`echo "$LIBS" | sed -e 's/ $//'` 10847 10848 # Check for -pthread 10849 BAKLIBS="$LIBS" 10850 LIBS="-lcrypto $LIBS" 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853 10854int 10855main (void) 10856{ 10857 10858 int EVP_sha256(void); 10859 (void)EVP_sha256(); 10860 10861 ; 10862 return 0; 10863} 10864_ACEOF 10865if ac_fn_c_try_link "$LINENO" 10866then : 10867 10868else $as_nop 10869 10870 BAKCFLAGS="$CFLAGS" 10871 CFLAGS="$CFLAGS -pthread" 10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libcrypto needs -pthread" >&5 10873printf %s "checking if libcrypto needs -pthread... " >&6; } 10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10875/* end confdefs.h. */ 10876 10877/* Override any GCC internal prototype to avoid an error. 10878 Use char because int might match the return type of a GCC 10879 builtin and then its argument prototype would still apply. */ 10880char EVP_sha256 (); 10881int 10882main (void) 10883{ 10884return EVP_sha256 (); 10885 ; 10886 return 0; 10887} 10888_ACEOF 10889if ac_fn_c_try_link "$LINENO" 10890then : 10891 10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10893printf "%s\n" "yes" >&6; } 10894 10895else $as_nop 10896 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10898printf "%s\n" "no" >&6; } 10899 CFLAGS="$BAKCFLAGS" 10900 10901fi 10902rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10903 conftest$ac_exeext conftest.$ac_ext 10904 10905fi 10906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10907 conftest$ac_exeext conftest.$ac_ext 10908 LIBS="$BAKLIBS" 10909 10910 if test -n "$ssldir"; then 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 10912printf %s "checking for EVP_sha256 in -lcrypto... " >&6; } 10913if test ${ac_cv_lib_crypto_EVP_sha256+y} 10914then : 10915 printf %s "(cached) " >&6 10916else $as_nop 10917 ac_check_lib_save_LIBS=$LIBS 10918LIBS="-lcrypto $LIBS" 10919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10920/* end confdefs.h. */ 10921 10922/* Override any GCC internal prototype to avoid an error. 10923 Use char because int might match the return type of a GCC 10924 builtin and then its argument prototype would still apply. */ 10925char EVP_sha256 (); 10926int 10927main (void) 10928{ 10929return EVP_sha256 (); 10930 ; 10931 return 0; 10932} 10933_ACEOF 10934if ac_fn_c_try_link "$LINENO" 10935then : 10936 ac_cv_lib_crypto_EVP_sha256=yes 10937else $as_nop 10938 ac_cv_lib_crypto_EVP_sha256=no 10939fi 10940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10941 conftest$ac_exeext conftest.$ac_ext 10942LIBS=$ac_check_lib_save_LIBS 10943fi 10944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sha256" >&5 10945printf "%s\n" "$ac_cv_lib_crypto_EVP_sha256" >&6; } 10946if test "x$ac_cv_lib_crypto_EVP_sha256" = xyes 10947then : 10948 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h 10949 10950 LIBS="-lcrypto $LIBS" 10951 10952else $as_nop 10953 10954 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 10955 10956fi 10957 10958 fi 10959 SSL_LIBS="-lssl" 10960 10961 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 10962" 10963if test "x$ac_cv_header_openssl_ssl_h" = xyes 10964then : 10965 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 10966 10967fi 10968ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 10969" 10970if test "x$ac_cv_header_openssl_err_h" = xyes 10971then : 10972 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 10973 10974fi 10975ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 10976" 10977if test "x$ac_cv_header_openssl_rand_h" = xyes 10978then : 10979 printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h 10980 10981fi 10982ac_fn_c_check_header_compile "$LINENO" "openssl/ocsp.h" "ac_cv_header_openssl_ocsp_h" "$ac_includes_default 10983" 10984if test "x$ac_cv_header_openssl_ocsp_h" = xyes 10985then : 10986 printf "%s\n" "#define HAVE_OPENSSL_OCSP_H 1" >>confdefs.h 10987 10988fi 10989ac_fn_c_check_header_compile "$LINENO" "openssl/core_names.h" "ac_cv_header_openssl_core_names_h" "$ac_includes_default 10990" 10991if test "x$ac_cv_header_openssl_core_names_h" = xyes 10992then : 10993 printf "%s\n" "#define HAVE_OPENSSL_CORE_NAMES_H 1" >>confdefs.h 10994 10995fi 10996 10997 ac_fn_c_check_func "$LINENO" "HMAC_CTX_reset" "ac_cv_func_HMAC_CTX_reset" 10998if test "x$ac_cv_func_HMAC_CTX_reset" = xyes 10999then : 11000 printf "%s\n" "#define HAVE_HMAC_CTX_RESET 1" >>confdefs.h 11001 11002fi 11003ac_fn_c_check_func "$LINENO" "HMAC_CTX_new" "ac_cv_func_HMAC_CTX_new" 11004if test "x$ac_cv_func_HMAC_CTX_new" = xyes 11005then : 11006 printf "%s\n" "#define HAVE_HMAC_CTX_NEW 1" >>confdefs.h 11007 11008fi 11009ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup" 11010if test "x$ac_cv_func_EVP_cleanup" = xyes 11011then : 11012 printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h 11013 11014fi 11015ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings" 11016if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes 11017then : 11018 printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h 11019 11020fi 11021ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 11022if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 11023then : 11024 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 11025 11026fi 11027ac_fn_c_check_func "$LINENO" "CRYPTO_memcmp" "ac_cv_func_CRYPTO_memcmp" 11028if test "x$ac_cv_func_CRYPTO_memcmp" = xyes 11029then : 11030 printf "%s\n" "#define HAVE_CRYPTO_MEMCMP 1" >>confdefs.h 11031 11032fi 11033ac_fn_c_check_func "$LINENO" "EC_KEY_new_by_curve_name" "ac_cv_func_EC_KEY_new_by_curve_name" 11034if test "x$ac_cv_func_EC_KEY_new_by_curve_name" = xyes 11035then : 11036 printf "%s\n" "#define HAVE_EC_KEY_NEW_BY_CURVE_NAME 1" >>confdefs.h 11037 11038fi 11039ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_new" "ac_cv_func_EVP_MAC_CTX_new" 11040if test "x$ac_cv_func_EVP_MAC_CTX_new" = xyes 11041then : 11042 printf "%s\n" "#define HAVE_EVP_MAC_CTX_NEW 1" >>confdefs.h 11043 11044fi 11045ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_set_params" "ac_cv_func_EVP_MAC_CTX_set_params" 11046if test "x$ac_cv_func_EVP_MAC_CTX_set_params" = xyes 11047then : 11048 printf "%s\n" "#define HAVE_EVP_MAC_CTX_SET_PARAMS 1" >>confdefs.h 11049 11050fi 11051ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_get_mac_size" "ac_cv_func_EVP_MAC_CTX_get_mac_size" 11052if test "x$ac_cv_func_EVP_MAC_CTX_get_mac_size" = xyes 11053then : 11054 printf "%s\n" "#define HAVE_EVP_MAC_CTX_GET_MAC_SIZE 1" >>confdefs.h 11055 11056fi 11057ac_fn_c_check_func "$LINENO" "SHA1_Init" "ac_cv_func_SHA1_Init" 11058if test "x$ac_cv_func_SHA1_Init" = xyes 11059then : 11060 printf "%s\n" "#define HAVE_SHA1_INIT 1" >>confdefs.h 11061 11062fi 11063 11064 if test "$ac_cv_func_SHA1_Init" = "yes"; then 11065 11066 11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SHA1_Init is deprecated" >&5 11068printf %s "checking if SHA1_Init is deprecated... " >&6; } 11069cache=`echo SHA1_Init | sed 'y%.=/+-%___p_%'` 11070if eval test \${cv_cc_deprecated_$cache+y} 11071then : 11072 printf %s "(cached) " >&6 11073else $as_nop 11074 11075echo ' 11076#include <openssl/sha.h> 11077' >conftest.c 11078echo 'void f(void){ (void)SHA1_Init(NULL); }' >>conftest.c 11079if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 11080eval "cv_cc_deprecated_$cache=no" 11081else 11082eval "cv_cc_deprecated_$cache=yes" 11083fi 11084rm -f conftest conftest.o conftest.c 11085 11086fi 11087 11088if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 11089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11090printf "%s\n" "yes" >&6; } 11091 11092printf "%s\n" "#define DEPRECATED_SHA1_INIT 1" >>confdefs.h 11093 11094: 11095 11096else 11097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11098printf "%s\n" "no" >&6; } 11099: 11100 11101fi 11102 11103 fi 11104 ac_fn_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 11105$ac_includes_default 11106#ifdef HAVE_OPENSSL_ERR_H 11107#include <openssl/err.h> 11108#endif 11109 11110#ifdef HAVE_OPENSSL_RAND_H 11111#include <openssl/rand.h> 11112#endif 11113 11114#ifdef HAVE_OPENSSL_CONF_H 11115#include <openssl/conf.h> 11116#endif 11117 11118#ifdef HAVE_OPENSSL_ENGINE_H 11119#include <openssl/engine.h> 11120#endif 11121#include <openssl/ssl.h> 11122#include <openssl/evp.h> 11123 11124" "$ac_c_undeclared_builtin_options" "CFLAGS" 11125if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes 11126then : 11127 ac_have_decl=1 11128else $as_nop 11129 ac_have_decl=0 11130fi 11131printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl" >>confdefs.h 11132ac_fn_check_decl "$LINENO" "SSL_CTX_set_tmp_ecdh" "ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" " 11133$ac_includes_default 11134#ifdef HAVE_OPENSSL_ERR_H 11135#include <openssl/err.h> 11136#endif 11137 11138#ifdef HAVE_OPENSSL_RAND_H 11139#include <openssl/rand.h> 11140#endif 11141 11142#ifdef HAVE_OPENSSL_CONF_H 11143#include <openssl/conf.h> 11144#endif 11145 11146#ifdef HAVE_OPENSSL_ENGINE_H 11147#include <openssl/engine.h> 11148#endif 11149#include <openssl/ssl.h> 11150#include <openssl/evp.h> 11151 11152" "$ac_c_undeclared_builtin_options" "CFLAGS" 11153if test "x$ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" = xyes 11154then : 11155 ac_have_decl=1 11156else $as_nop 11157 ac_have_decl=0 11158fi 11159printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_TMP_ECDH $ac_have_decl" >>confdefs.h 11160 11161 ac_fn_check_decl "$LINENO" "TLS1_3_VERSION" "ac_cv_have_decl_TLS1_3_VERSION" "#include <openssl/ssl.h> 11162" "$ac_c_undeclared_builtin_options" "CFLAGS" 11163if test "x$ac_cv_have_decl_TLS1_3_VERSION" = xyes 11164then : 11165 11166printf "%s\n" "#define HAVE_TLS_1_3 1" >>confdefs.h 11167 11168else $as_nop 11169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No TLS 1.3, therefore XFR-over-TLS is disabled" >&5 11170printf "%s\n" "$as_me: WARNING: No TLS 1.3, therefore XFR-over-TLS is disabled" >&2;} 11171fi 11172 11173 BAKLIBS="$LIBS" 11174 LIBS="-lssl $LIBS" 11175 ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 11176if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 11177then : 11178 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 11179 11180fi 11181ac_fn_c_check_func "$LINENO" "SSL_get1_peer_certificate" "ac_cv_func_SSL_get1_peer_certificate" 11182if test "x$ac_cv_func_SSL_get1_peer_certificate" = xyes 11183then : 11184 printf "%s\n" "#define HAVE_SSL_GET1_PEER_CERTIFICATE 1" >>confdefs.h 11185 11186fi 11187ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level" 11188if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes 11189then : 11190 printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h 11191 11192fi 11193ac_fn_c_check_func "$LINENO" "ERR_load_SSL_strings" "ac_cv_func_ERR_load_SSL_strings" 11194if test "x$ac_cv_func_ERR_load_SSL_strings" = xyes 11195then : 11196 printf "%s\n" "#define HAVE_ERR_LOAD_SSL_STRINGS 1" >>confdefs.h 11197 11198fi 11199 11200 if test "$ac_cv_func_ERR_load_SSL_strings" = "yes"; then 11201 11202 11203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ERR_load_SSL_strings is deprecated" >&5 11204printf %s "checking if ERR_load_SSL_strings is deprecated... " >&6; } 11205cache=`echo ERR_load_SSL_strings | sed 'y%.=/+-%___p_%'` 11206if eval test \${cv_cc_deprecated_$cache+y} 11207then : 11208 printf %s "(cached) " >&6 11209else $as_nop 11210 11211echo ' 11212#include <openssl/ssl.h> 11213' >conftest.c 11214echo 'void f(void){ (void)ERR_load_SSL_strings(); }' >>conftest.c 11215if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 11216eval "cv_cc_deprecated_$cache=no" 11217else 11218eval "cv_cc_deprecated_$cache=yes" 11219fi 11220rm -f conftest conftest.o conftest.c 11221 11222fi 11223 11224if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 11225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11226printf "%s\n" "yes" >&6; } 11227 11228printf "%s\n" "#define DEPRECATED_ERR_LOAD_SSL_STRINGS 1" >>confdefs.h 11229 11230: 11231 11232else 11233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11234printf "%s\n" "no" >&6; } 11235: 11236 11237fi 11238 11239 fi 11240 LIBS="$BAKLIBS" 11241 11242else 11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore TLS is disabled" >&5 11244printf "%s\n" "$as_me: WARNING: No SSL, therefore TLS is disabled" >&2;} 11245fi 11246 11247# Check whether --enable-nsec3 was given. 11248if test ${enable_nsec3+y} 11249then : 11250 enableval=$enable_nsec3; 11251fi 11252 11253case "$enable_nsec3" in 11254 no) 11255 ;; 11256 yes) 11257 11258printf "%s\n" "#define NSEC3 /**/" >>confdefs.h 11259 11260 ;; 11261 *) 11262 if test x$HAVE_SSL = x"yes"; then 11263 11264printf "%s\n" "#define NSEC3 /**/" >>confdefs.h 11265 11266 else 11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore NSEC3 is disabled" >&5 11268printf "%s\n" "$as_me: WARNING: No SSL, therefore NSEC3 is disabled" >&2;} 11269 fi 11270 ;; 11271esac 11272 11273# Check whether --enable-minimal-responses was given. 11274if test ${enable_minimal_responses+y} 11275then : 11276 enableval=$enable_minimal_responses; 11277fi 11278 11279case "$enable_minimal_responses" in 11280 no) 11281 ;; 11282 yes|*) 11283 11284printf "%s\n" "#define MINIMAL_RESPONSES /**/" >>confdefs.h 11285 11286 ;; 11287esac 11288 11289# Check whether --enable-mmap was given. 11290if test ${enable_mmap+y} 11291then : 11292 enableval=$enable_mmap; 11293fi 11294 11295case "$enable_mmap" in 11296 yes) 11297 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default 11298" 11299if test "x$ac_cv_header_sys_mman_h" = xyes 11300then : 11301 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 11302 11303fi 11304 11305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 11306printf %s "checking for uintptr_t... " >&6; } 11307if test ${ac_cv_type_uintptr_t+y} 11308then : 11309 printf %s "(cached) " >&6 11310else $as_nop 11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11312/* end confdefs.h. */ 11313 11314#include <sys/types.h> 11315#include <stdlib.h> 11316#include <stddef.h> 11317 11318#ifdef HAVE_STDINT_H 11319#include <stdint.h> 11320#endif 11321 11322#ifdef HAVE_SYS_SOCKET_H 11323#include <sys/socket.h> 11324#endif 11325 11326#ifdef HAVE_ARPA_INET_H 11327#include <arpa/inet.h> 11328#endif 11329 11330#ifdef HAVE_SIGNAL_H 11331#include <signal.h> 11332#endif 11333 11334/* For Tru64 */ 11335#ifdef HAVE_SYS_BITYPES_H 11336#include <sys/bitypes.h> 11337#endif 11338 11339_ACEOF 11340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11341 $EGREP "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1 11342then : 11343 ac_cv_type_uintptr_t=yes 11344else $as_nop 11345 ac_cv_type_uintptr_t=no 11346fi 11347rm -rf conftest* 11348 11349fi 11350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uintptr_t" >&5 11351printf "%s\n" "$ac_cv_type_uintptr_t" >&6; } 11352if test $ac_cv_type_uintptr_t = no; then 11353 11354printf "%s\n" "#define uintptr_t void*" >>confdefs.h 11355 11356fi 11357 11358 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 11359if test "x$ac_cv_func_mmap" = xyes 11360then : 11361 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 11362 11363fi 11364ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap" 11365if test "x$ac_cv_func_munmap" = xyes 11366then : 11367 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h 11368 11369fi 11370 11371 11372printf "%s\n" "#define USE_MMAP_ALLOC /**/" >>confdefs.h 11373 11374 ;; 11375 no|*) 11376 ;; 11377esac 11378 11379# Check whether --enable-radix-tree was given. 11380if test ${enable_radix_tree+y} 11381then : 11382 enableval=$enable_radix_tree; 11383fi 11384 11385case "$enable_radix_tree" in 11386 no) 11387 ;; 11388 yes|*) 11389 11390printf "%s\n" "#define USE_RADIX_TREE /**/" >>confdefs.h 11391 11392 ;; 11393esac 11394 11395# Check whether --enable-packed was given. 11396if test ${enable_packed+y} 11397then : 11398 enableval=$enable_packed; 11399fi 11400 11401case "$enable_packed" in 11402 yes) 11403 11404printf "%s\n" "#define PACKED_STRUCTS /**/" >>confdefs.h 11405 11406 11407 11408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-address-of-packed-member" >&5 11409printf %s "checking whether $CC supports -Wno-address-of-packed-member... " >&6; } 11410cache=`echo Wno-address-of-packed-member | sed 'y%.=/+-%___p_%'` 11411if eval test \${cv_prog_cc_flag_$cache+y} 11412then : 11413 printf %s "(cached) " >&6 11414else $as_nop 11415 11416echo 'void f(void){}' >conftest.c 11417if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-address-of-packed-member -c conftest.c 2>&1`"; then 11418eval "cv_prog_cc_flag_$cache=yes" 11419else 11420eval "cv_prog_cc_flag_$cache=no" 11421fi 11422rm -f conftest conftest.o conftest.c 11423 11424fi 11425 11426if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 11427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11428printf "%s\n" "yes" >&6; } 11429: 11430CFLAGS="$CFLAGS -Wno-address-of-packed-member" 11431else 11432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11433printf "%s\n" "no" >&6; } 11434: 11435 11436fi 11437 11438 ;; 11439 no|*) 11440 ;; 11441esac 11442 11443# check for dnstap if requested 11444 11445 # Check whether --enable-dnstap was given. 11446if test ${enable_dnstap+y} 11447then : 11448 enableval=$enable_dnstap; opt_dnstap=$enableval 11449else $as_nop 11450 opt_dnstap=no 11451fi 11452 11453 11454 11455# Check whether --with-dnstap-socket-path was given. 11456if test ${with_dnstap_socket_path+y} 11457then : 11458 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 11459else $as_nop 11460 opt_dnstap_socket_path="${localstatedir}/run/nsd-dnstap.sock" 11461fi 11462 11463 11464 if test "x$opt_dnstap" != "xno"; then 11465 # Extract the first word of "protoc-c", so it can be a program name with args. 11466set dummy protoc-c; ac_word=$2 11467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11468printf %s "checking for $ac_word... " >&6; } 11469if test ${ac_cv_path_PROTOC_C+y} 11470then : 11471 printf %s "(cached) " >&6 11472else $as_nop 11473 case $PROTOC_C in 11474 [\\/]* | ?:[\\/]*) 11475 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 11476 ;; 11477 *) 11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11479for as_dir in $PATH 11480do 11481 IFS=$as_save_IFS 11482 case $as_dir in #((( 11483 '') as_dir=./ ;; 11484 */) ;; 11485 *) as_dir=$as_dir/ ;; 11486 esac 11487 for ac_exec_ext in '' $ac_executable_extensions; do 11488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11489 ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext" 11490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11491 break 2 11492 fi 11493done 11494 done 11495IFS=$as_save_IFS 11496 11497 ;; 11498esac 11499fi 11500PROTOC_C=$ac_cv_path_PROTOC_C 11501if test -n "$PROTOC_C"; then 11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 11503printf "%s\n" "$PROTOC_C" >&6; } 11504else 11505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11506printf "%s\n" "no" >&6; } 11507fi 11508 11509 11510 if test -z "$PROTOC_C"; then 11511 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 11512 fi 11513 11514# Check whether --with-protobuf-c was given. 11515if test ${with_protobuf_c+y} 11516then : 11517 withval=$with_protobuf_c; 11518 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 11519 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 11520 CFLAGS="$CFLAGS -I$withval/include/google" 11521 else 11522 CFLAGS="$CFLAGS -I$withval/include" 11523 fi 11524 LDFLAGS="$LDFLAGS -L$withval/lib" 11525 11526else $as_nop 11527 11528 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 11529 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 11530 CFLAGS="$CFLAGS -I/usr/include/google" 11531 else 11532 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 11533 CFLAGS="$CFLAGS -I/usr/local/include/google" 11534 LDFLAGS="$LDFLAGS -L/usr/local/lib" 11535 fi 11536 fi 11537 11538fi 11539 11540 11541# Check whether --with-libfstrm was given. 11542if test ${with_libfstrm+y} 11543then : 11544 withval=$with_libfstrm; 11545 CFLAGS="$CFLAGS -I$withval/include" 11546 LDFLAGS="$LDFLAGS -L$withval/lib" 11547 11548fi 11549 11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5 11551printf %s "checking for library containing fstrm_iothr_init... " >&6; } 11552if test ${ac_cv_search_fstrm_iothr_init+y} 11553then : 11554 printf %s "(cached) " >&6 11555else $as_nop 11556 ac_func_search_save_LIBS=$LIBS 11557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11558/* end confdefs.h. */ 11559 11560/* Override any GCC internal prototype to avoid an error. 11561 Use char because int might match the return type of a GCC 11562 builtin and then its argument prototype would still apply. */ 11563char fstrm_iothr_init (); 11564int 11565main (void) 11566{ 11567return fstrm_iothr_init (); 11568 ; 11569 return 0; 11570} 11571_ACEOF 11572for ac_lib in '' fstrm 11573do 11574 if test -z "$ac_lib"; then 11575 ac_res="none required" 11576 else 11577 ac_res=-l$ac_lib 11578 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11579 fi 11580 if ac_fn_c_try_link "$LINENO" 11581then : 11582 ac_cv_search_fstrm_iothr_init=$ac_res 11583fi 11584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11585 conftest$ac_exeext 11586 if test ${ac_cv_search_fstrm_iothr_init+y} 11587then : 11588 break 11589fi 11590done 11591if test ${ac_cv_search_fstrm_iothr_init+y} 11592then : 11593 11594else $as_nop 11595 ac_cv_search_fstrm_iothr_init=no 11596fi 11597rm conftest.$ac_ext 11598LIBS=$ac_func_search_save_LIBS 11599fi 11600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5 11601printf "%s\n" "$ac_cv_search_fstrm_iothr_init" >&6; } 11602ac_res=$ac_cv_search_fstrm_iothr_init 11603if test "$ac_res" != no 11604then : 11605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11606 11607else $as_nop 11608 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5 11609fi 11610 11611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 11612printf %s "checking for library containing protobuf_c_message_pack... " >&6; } 11613if test ${ac_cv_search_protobuf_c_message_pack+y} 11614then : 11615 printf %s "(cached) " >&6 11616else $as_nop 11617 ac_func_search_save_LIBS=$LIBS 11618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11619/* end confdefs.h. */ 11620 11621/* Override any GCC internal prototype to avoid an error. 11622 Use char because int might match the return type of a GCC 11623 builtin and then its argument prototype would still apply. */ 11624char protobuf_c_message_pack (); 11625int 11626main (void) 11627{ 11628return protobuf_c_message_pack (); 11629 ; 11630 return 0; 11631} 11632_ACEOF 11633for ac_lib in '' protobuf-c 11634do 11635 if test -z "$ac_lib"; then 11636 ac_res="none required" 11637 else 11638 ac_res=-l$ac_lib 11639 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11640 fi 11641 if ac_fn_c_try_link "$LINENO" 11642then : 11643 ac_cv_search_protobuf_c_message_pack=$ac_res 11644fi 11645rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11646 conftest$ac_exeext 11647 if test ${ac_cv_search_protobuf_c_message_pack+y} 11648then : 11649 break 11650fi 11651done 11652if test ${ac_cv_search_protobuf_c_message_pack+y} 11653then : 11654 11655else $as_nop 11656 ac_cv_search_protobuf_c_message_pack=no 11657fi 11658rm conftest.$ac_ext 11659LIBS=$ac_func_search_save_LIBS 11660fi 11661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 11662printf "%s\n" "$ac_cv_search_protobuf_c_message_pack" >&6; } 11663ac_res=$ac_cv_search_protobuf_c_message_pack 11664if test "$ac_res" != no 11665then : 11666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11667 11668else $as_nop 11669 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 11670fi 11671 11672 11673 11674printf "%s\n" "#define USE_DNSTAP 1" >>confdefs.h 11675 11676 ENABLE_DNSTAP=1 11677 11678 11679 11680 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 11681 11682 11683printf "%s\n" "#define DNSTAP_SOCKET_PATH \"$hdr_dnstap_socket_path\"" >>confdefs.h 11684 11685 11686 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_collector.c" 11687 11688 DNSTAP_OBJ="dnstap.o dnstap_collector.o dnstap.pb-c.o" 11689 11690 dnstap_config="dnstap/dnstap_config.h" 11691 11692 else 11693 11694 ENABLE_DNSTAP=0 11695 11696 11697 11698 fi 11699 11700 11701# Include systemd.m4 - begin 11702# macros for configuring systemd 11703# Copyright 2015, Sami Kerola, CloudFlare. 11704# BSD licensed. 11705# Check whether --enable-systemd was given. 11706if test ${enable_systemd+y} 11707then : 11708 enableval=$enable_systemd; 11709else $as_nop 11710 enable_systemd=no 11711fi 11712 11713have_systemd=no 11714 11715 11716 11717 11718 11719 11720 11721if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11722 if test -n "$ac_tool_prefix"; then 11723 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11724set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11726printf %s "checking for $ac_word... " >&6; } 11727if test ${ac_cv_path_PKG_CONFIG+y} 11728then : 11729 printf %s "(cached) " >&6 11730else $as_nop 11731 case $PKG_CONFIG in 11732 [\\/]* | ?:[\\/]*) 11733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11734 ;; 11735 *) 11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11737for as_dir in $PATH 11738do 11739 IFS=$as_save_IFS 11740 case $as_dir in #((( 11741 '') as_dir=./ ;; 11742 */) ;; 11743 *) as_dir=$as_dir/ ;; 11744 esac 11745 for ac_exec_ext in '' $ac_executable_extensions; do 11746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11747 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 11748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11749 break 2 11750 fi 11751done 11752 done 11753IFS=$as_save_IFS 11754 11755 ;; 11756esac 11757fi 11758PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11759if test -n "$PKG_CONFIG"; then 11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11761printf "%s\n" "$PKG_CONFIG" >&6; } 11762else 11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11764printf "%s\n" "no" >&6; } 11765fi 11766 11767 11768fi 11769if test -z "$ac_cv_path_PKG_CONFIG"; then 11770 ac_pt_PKG_CONFIG=$PKG_CONFIG 11771 # Extract the first word of "pkg-config", so it can be a program name with args. 11772set dummy pkg-config; ac_word=$2 11773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11774printf %s "checking for $ac_word... " >&6; } 11775if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 11776then : 11777 printf %s "(cached) " >&6 11778else $as_nop 11779 case $ac_pt_PKG_CONFIG in 11780 [\\/]* | ?:[\\/]*) 11781 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11782 ;; 11783 *) 11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11785for as_dir in $PATH 11786do 11787 IFS=$as_save_IFS 11788 case $as_dir in #((( 11789 '') as_dir=./ ;; 11790 */) ;; 11791 *) as_dir=$as_dir/ ;; 11792 esac 11793 for ac_exec_ext in '' $ac_executable_extensions; do 11794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11795 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 11796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11797 break 2 11798 fi 11799done 11800 done 11801IFS=$as_save_IFS 11802 11803 ;; 11804esac 11805fi 11806ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11807if test -n "$ac_pt_PKG_CONFIG"; then 11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11809printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 11810else 11811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11812printf "%s\n" "no" >&6; } 11813fi 11814 11815 if test "x$ac_pt_PKG_CONFIG" = x; then 11816 PKG_CONFIG="" 11817 else 11818 case $cross_compiling:$ac_tool_warned in 11819yes:) 11820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11822ac_tool_warned=yes ;; 11823esac 11824 PKG_CONFIG=$ac_pt_PKG_CONFIG 11825 fi 11826else 11827 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11828fi 11829 11830fi 11831if test -n "$PKG_CONFIG"; then 11832 _pkg_min_version=0.9.0 11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11834printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11835 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11837printf "%s\n" "yes" >&6; } 11838 else 11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11840printf "%s\n" "no" >&6; } 11841 PKG_CONFIG="" 11842 fi 11843fi 11844if test "x$enable_systemd" != xno 11845then : 11846 11847 11848 11849pkg_failed=no 11850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 11851printf %s "checking for libsystemd... " >&6; } 11852 11853if test -n "$SYSTEMD_CFLAGS"; then 11854 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 11855 elif test -n "$PKG_CONFIG"; then 11856 if test -n "$PKG_CONFIG" && \ 11857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 11858 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 11859 ac_status=$? 11860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11861 test $ac_status = 0; }; then 11862 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 11863 test "x$?" != "x0" && pkg_failed=yes 11864else 11865 pkg_failed=yes 11866fi 11867 else 11868 pkg_failed=untried 11869fi 11870if test -n "$SYSTEMD_LIBS"; then 11871 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 11872 elif test -n "$PKG_CONFIG"; then 11873 if test -n "$PKG_CONFIG" && \ 11874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 11875 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 11876 ac_status=$? 11877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11878 test $ac_status = 0; }; then 11879 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 11880 test "x$?" != "x0" && pkg_failed=yes 11881else 11882 pkg_failed=yes 11883fi 11884 else 11885 pkg_failed=untried 11886fi 11887 11888 11889 11890if test $pkg_failed = yes; then 11891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11892printf "%s\n" "no" >&6; } 11893 11894if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11895 _pkg_short_errors_supported=yes 11896else 11897 _pkg_short_errors_supported=no 11898fi 11899 if test $_pkg_short_errors_supported = yes; then 11900 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 11901 else 11902 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 11903 fi 11904 # Put the nasty error message in config.log where it belongs 11905 echo "$SYSTEMD_PKG_ERRORS" >&5 11906 11907 have_systemd=no 11908elif test $pkg_failed = untried; then 11909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11910printf "%s\n" "no" >&6; } 11911 have_systemd=no 11912else 11913 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 11914 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11916printf "%s\n" "yes" >&6; } 11917 have_systemd=yes 11918fi 11919 if test "x$have_systemd" != "xyes" 11920then : 11921 11922 11923pkg_failed=no 11924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 11925printf %s "checking for libsystemd-daemon... " >&6; } 11926 11927if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 11928 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 11929 elif test -n "$PKG_CONFIG"; then 11930 if test -n "$PKG_CONFIG" && \ 11931 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 11932 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 11933 ac_status=$? 11934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11935 test $ac_status = 0; }; then 11936 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 11937 test "x$?" != "x0" && pkg_failed=yes 11938else 11939 pkg_failed=yes 11940fi 11941 else 11942 pkg_failed=untried 11943fi 11944if test -n "$SYSTEMD_DAEMON_LIBS"; then 11945 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 11946 elif test -n "$PKG_CONFIG"; then 11947 if test -n "$PKG_CONFIG" && \ 11948 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 11949 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 11950 ac_status=$? 11951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11952 test $ac_status = 0; }; then 11953 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 11954 test "x$?" != "x0" && pkg_failed=yes 11955else 11956 pkg_failed=yes 11957fi 11958 else 11959 pkg_failed=untried 11960fi 11961 11962 11963 11964if test $pkg_failed = yes; then 11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11966printf "%s\n" "no" >&6; } 11967 11968if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11969 _pkg_short_errors_supported=yes 11970else 11971 _pkg_short_errors_supported=no 11972fi 11973 if test $_pkg_short_errors_supported = yes; then 11974 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 11975 else 11976 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 11977 fi 11978 # Put the nasty error message in config.log where it belongs 11979 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 11980 11981 have_systemd_daemon=no 11982elif test $pkg_failed = untried; then 11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11984printf "%s\n" "no" >&6; } 11985 have_systemd_daemon=no 11986else 11987 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 11988 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11990printf "%s\n" "yes" >&6; } 11991 have_systemd_daemon=yes 11992fi 11993 if test "x$have_systemd_daemon" = "xyes" 11994then : 11995 have_systemd=yes 11996fi 11997 11998fi 11999 case $enable_systemd:$have_systemd in #( 12000 yes:no) : 12001 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 12002 *:yes) : 12003 12004printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h 12005 12006 LIBS="$LIBS $SYSTEMD_LIBS" 12007 12008 ;; #( 12009 *) : 12010 ;; 12011esac 12012 12013 12014fi 12015 12016# Include systemd.m4 - end 12017 12018# Check whether --enable-tcp-fastopen was given. 12019if test ${enable_tcp_fastopen+y} 12020then : 12021 enableval=$enable_tcp_fastopen; 12022fi 12023 12024case "$enable_tcp_fastopen" in 12025 yes) 12026 ac_fn_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 12027#include <netinet/tcp.h> 12028 12029" "$ac_c_undeclared_builtin_options" "CFLAGS" 12030if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes 12031then : 12032 12033else $as_nop 12034 as_fn_error $? "TCP Fast Open is not available: please rerun without --enable-tcp-fastopen" "$LINENO" 5 12035fi 12036 12037printf "%s\n" "#define USE_TCP_FASTOPEN 1" >>confdefs.h 12038 12039 ;; 12040 no|*) 12041 ;; 12042esac 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054if test $ac_cv_func_getaddrinfo = no; then 12055case " $LIBOBJS " in 12056 *" fake-rfc2553.$ac_objext "* ) ;; 12057 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 12058 ;; 12059esac 12060 12061fi 12062 12063 12064 12065 12066 12067 12068 12069 12070# big fat warning 12071if test "$enable_checking" = "yes"; then 12072 echo "************************************************" 12073 echo "* You have activated \"--enable-checking\" *" 12074 echo "* *" 12075 echo "* This will instruct NSD to be stricter *" 12076 echo "* when validating its input. This could lead *" 12077 echo "* to a reduced service level. *" 12078 echo "* *" 12079 echo "************************************************" 12080fi 12081 12082ac_config_files="$ac_config_files Makefile $dnstap_config" 12083 12084cat >confcache <<\_ACEOF 12085# This file is a shell script that caches the results of configure 12086# tests run on this system so they can be shared between configure 12087# scripts and configure runs, see configure's option --config-cache. 12088# It is not useful on other systems. If it contains results you don't 12089# want to keep, you may remove or edit it. 12090# 12091# config.status only pays attention to the cache file if you give it 12092# the --recheck option to rerun configure. 12093# 12094# `ac_cv_env_foo' variables (set or unset) will be overridden when 12095# loading this file, other *unset* `ac_cv_foo' will be assigned the 12096# following values. 12097 12098_ACEOF 12099 12100# The following way of writing the cache mishandles newlines in values, 12101# but we know of no workaround that is simple, portable, and efficient. 12102# So, we kill variables containing newlines. 12103# Ultrix sh set writes to stderr and can't be redirected directly, 12104# and sets the high bit in the cache file unless we assign to the vars. 12105( 12106 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12107 eval ac_val=\$$ac_var 12108 case $ac_val in #( 12109 *${as_nl}*) 12110 case $ac_var in #( 12111 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12112printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12113 esac 12114 case $ac_var in #( 12115 _ | IFS | as_nl) ;; #( 12116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12117 *) { eval $ac_var=; unset $ac_var;} ;; 12118 esac ;; 12119 esac 12120 done 12121 12122 (set) 2>&1 | 12123 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12124 *${as_nl}ac_space=\ *) 12125 # `set' does not quote correctly, so add quotes: double-quote 12126 # substitution turns \\\\ into \\, and sed turns \\ into \. 12127 sed -n \ 12128 "s/'/'\\\\''/g; 12129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12130 ;; #( 12131 *) 12132 # `set' quotes correctly as required by POSIX, so do not add quotes. 12133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12134 ;; 12135 esac | 12136 sort 12137) | 12138 sed ' 12139 /^ac_cv_env_/b end 12140 t clear 12141 :clear 12142 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12143 t end 12144 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12145 :end' >>confcache 12146if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12147 if test -w "$cache_file"; then 12148 if test "x$cache_file" != "x/dev/null"; then 12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12150printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12151 if test ! -f "$cache_file" || test -h "$cache_file"; then 12152 cat confcache >"$cache_file" 12153 else 12154 case $cache_file in #( 12155 */* | ?:*) 12156 mv -f confcache "$cache_file"$$ && 12157 mv -f "$cache_file"$$ "$cache_file" ;; #( 12158 *) 12159 mv -f confcache "$cache_file" ;; 12160 esac 12161 fi 12162 fi 12163 else 12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12165printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12166 fi 12167fi 12168rm -f confcache 12169 12170test "x$prefix" = xNONE && prefix=$ac_default_prefix 12171# Let make expand exec_prefix. 12172test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12173 12174DEFS=-DHAVE_CONFIG_H 12175 12176ac_libobjs= 12177ac_ltlibobjs= 12178U= 12179for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12180 # 1. Remove the extension, and $U if already installed. 12181 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12182 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12183 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12184 # will be set to the directory where LIBOBJS objects are built. 12185 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12186 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12187done 12188LIBOBJS=$ac_libobjs 12189 12190LTLIBOBJS=$ac_ltlibobjs 12191 12192 12193 12194: "${CONFIG_STATUS=./config.status}" 12195ac_write_fail=0 12196ac_clean_files_save=$ac_clean_files 12197ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12199printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12200as_write_fail=0 12201cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12202#! $SHELL 12203# Generated by $as_me. 12204# Run this file to recreate the current configuration. 12205# Compiler output produced by configure, useful for debugging 12206# configure, is in config.log if it exists. 12207 12208debug=false 12209ac_cs_recheck=false 12210ac_cs_silent=false 12211 12212SHELL=\${CONFIG_SHELL-$SHELL} 12213export SHELL 12214_ASEOF 12215cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12216## -------------------- ## 12217## M4sh Initialization. ## 12218## -------------------- ## 12219 12220# Be more Bourne compatible 12221DUALCASE=1; export DUALCASE # for MKS sh 12222as_nop=: 12223if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12224then : 12225 emulate sh 12226 NULLCMD=: 12227 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12228 # is contrary to our usage. Disable this feature. 12229 alias -g '${1+"$@"}'='"$@"' 12230 setopt NO_GLOB_SUBST 12231else $as_nop 12232 case `(set -o) 2>/dev/null` in #( 12233 *posix*) : 12234 set -o posix ;; #( 12235 *) : 12236 ;; 12237esac 12238fi 12239 12240 12241 12242# Reset variables that may have inherited troublesome values from 12243# the environment. 12244 12245# IFS needs to be set, to space, tab, and newline, in precisely that order. 12246# (If _AS_PATH_WALK were called with IFS unset, it would have the 12247# side effect of setting IFS to empty, thus disabling word splitting.) 12248# Quoting is to prevent editors from complaining about space-tab. 12249as_nl=' 12250' 12251export as_nl 12252IFS=" "" $as_nl" 12253 12254PS1='$ ' 12255PS2='> ' 12256PS4='+ ' 12257 12258# Ensure predictable behavior from utilities with locale-dependent output. 12259LC_ALL=C 12260export LC_ALL 12261LANGUAGE=C 12262export LANGUAGE 12263 12264# We cannot yet rely on "unset" to work, but we need these variables 12265# to be unset--not just set to an empty or harmless value--now, to 12266# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12267# also avoids known problems related to "unset" and subshell syntax 12268# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12269for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12270do eval test \${$as_var+y} \ 12271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12272done 12273 12274# Ensure that fds 0, 1, and 2 are open. 12275if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12276if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12277if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12278 12279# The user is always right. 12280if ${PATH_SEPARATOR+false} :; then 12281 PATH_SEPARATOR=: 12282 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12283 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12284 PATH_SEPARATOR=';' 12285 } 12286fi 12287 12288 12289# Find who we are. Look in the path if we contain no directory separator. 12290as_myself= 12291case $0 in #(( 12292 *[\\/]* ) as_myself=$0 ;; 12293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12294for as_dir in $PATH 12295do 12296 IFS=$as_save_IFS 12297 case $as_dir in #((( 12298 '') as_dir=./ ;; 12299 */) ;; 12300 *) as_dir=$as_dir/ ;; 12301 esac 12302 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12303 done 12304IFS=$as_save_IFS 12305 12306 ;; 12307esac 12308# We did not find ourselves, most probably we were run as `sh COMMAND' 12309# in which case we are not to be found in the path. 12310if test "x$as_myself" = x; then 12311 as_myself=$0 12312fi 12313if test ! -f "$as_myself"; then 12314 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12315 exit 1 12316fi 12317 12318 12319 12320# as_fn_error STATUS ERROR [LINENO LOG_FD] 12321# ---------------------------------------- 12322# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12323# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12324# script with STATUS, using 1 if that was 0. 12325as_fn_error () 12326{ 12327 as_status=$1; test $as_status -eq 0 && as_status=1 12328 if test "$4"; then 12329 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12331 fi 12332 printf "%s\n" "$as_me: error: $2" >&2 12333 as_fn_exit $as_status 12334} # as_fn_error 12335 12336 12337 12338# as_fn_set_status STATUS 12339# ----------------------- 12340# Set $? to STATUS, without forking. 12341as_fn_set_status () 12342{ 12343 return $1 12344} # as_fn_set_status 12345 12346# as_fn_exit STATUS 12347# ----------------- 12348# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12349as_fn_exit () 12350{ 12351 set +e 12352 as_fn_set_status $1 12353 exit $1 12354} # as_fn_exit 12355 12356# as_fn_unset VAR 12357# --------------- 12358# Portably unset VAR. 12359as_fn_unset () 12360{ 12361 { eval $1=; unset $1;} 12362} 12363as_unset=as_fn_unset 12364 12365# as_fn_append VAR VALUE 12366# ---------------------- 12367# Append the text in VALUE to the end of the definition contained in VAR. Take 12368# advantage of any shell optimizations that allow amortized linear growth over 12369# repeated appends, instead of the typical quadratic growth present in naive 12370# implementations. 12371if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12372then : 12373 eval 'as_fn_append () 12374 { 12375 eval $1+=\$2 12376 }' 12377else $as_nop 12378 as_fn_append () 12379 { 12380 eval $1=\$$1\$2 12381 } 12382fi # as_fn_append 12383 12384# as_fn_arith ARG... 12385# ------------------ 12386# Perform arithmetic evaluation on the ARGs, and store the result in the 12387# global $as_val. Take advantage of shells that can avoid forks. The arguments 12388# must be portable across $(()) and expr. 12389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12390then : 12391 eval 'as_fn_arith () 12392 { 12393 as_val=$(( $* )) 12394 }' 12395else $as_nop 12396 as_fn_arith () 12397 { 12398 as_val=`expr "$@" || test $? -eq 1` 12399 } 12400fi # as_fn_arith 12401 12402 12403if expr a : '\(a\)' >/dev/null 2>&1 && 12404 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12405 as_expr=expr 12406else 12407 as_expr=false 12408fi 12409 12410if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12411 as_basename=basename 12412else 12413 as_basename=false 12414fi 12415 12416if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12417 as_dirname=dirname 12418else 12419 as_dirname=false 12420fi 12421 12422as_me=`$as_basename -- "$0" || 12423$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12424 X"$0" : 'X\(//\)$' \| \ 12425 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12426printf "%s\n" X/"$0" | 12427 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12428 s//\1/ 12429 q 12430 } 12431 /^X\/\(\/\/\)$/{ 12432 s//\1/ 12433 q 12434 } 12435 /^X\/\(\/\).*/{ 12436 s//\1/ 12437 q 12438 } 12439 s/.*/./; q'` 12440 12441# Avoid depending upon Character Ranges. 12442as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12443as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12444as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12445as_cr_digits='0123456789' 12446as_cr_alnum=$as_cr_Letters$as_cr_digits 12447 12448 12449# Determine whether it's possible to make 'echo' print without a newline. 12450# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12451# for compatibility with existing Makefiles. 12452ECHO_C= ECHO_N= ECHO_T= 12453case `echo -n x` in #((((( 12454-n*) 12455 case `echo 'xy\c'` in 12456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12457 xy) ECHO_C='\c';; 12458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12459 ECHO_T=' ';; 12460 esac;; 12461*) 12462 ECHO_N='-n';; 12463esac 12464 12465# For backward compatibility with old third-party macros, we provide 12466# the shell variables $as_echo and $as_echo_n. New code should use 12467# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12468as_echo='printf %s\n' 12469as_echo_n='printf %s' 12470 12471rm -f conf$$ conf$$.exe conf$$.file 12472if test -d conf$$.dir; then 12473 rm -f conf$$.dir/conf$$.file 12474else 12475 rm -f conf$$.dir 12476 mkdir conf$$.dir 2>/dev/null 12477fi 12478if (echo >conf$$.file) 2>/dev/null; then 12479 if ln -s conf$$.file conf$$ 2>/dev/null; then 12480 as_ln_s='ln -s' 12481 # ... but there are two gotchas: 12482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12484 # In both cases, we have to default to `cp -pR'. 12485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12486 as_ln_s='cp -pR' 12487 elif ln conf$$.file conf$$ 2>/dev/null; then 12488 as_ln_s=ln 12489 else 12490 as_ln_s='cp -pR' 12491 fi 12492else 12493 as_ln_s='cp -pR' 12494fi 12495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12496rmdir conf$$.dir 2>/dev/null 12497 12498 12499# as_fn_mkdir_p 12500# ------------- 12501# Create "$as_dir" as a directory, including parents if necessary. 12502as_fn_mkdir_p () 12503{ 12504 12505 case $as_dir in #( 12506 -*) as_dir=./$as_dir;; 12507 esac 12508 test -d "$as_dir" || eval $as_mkdir_p || { 12509 as_dirs= 12510 while :; do 12511 case $as_dir in #( 12512 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12513 *) as_qdir=$as_dir;; 12514 esac 12515 as_dirs="'$as_qdir' $as_dirs" 12516 as_dir=`$as_dirname -- "$as_dir" || 12517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12518 X"$as_dir" : 'X\(//\)[^/]' \| \ 12519 X"$as_dir" : 'X\(//\)$' \| \ 12520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12521printf "%s\n" X"$as_dir" | 12522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12523 s//\1/ 12524 q 12525 } 12526 /^X\(\/\/\)[^/].*/{ 12527 s//\1/ 12528 q 12529 } 12530 /^X\(\/\/\)$/{ 12531 s//\1/ 12532 q 12533 } 12534 /^X\(\/\).*/{ 12535 s//\1/ 12536 q 12537 } 12538 s/.*/./; q'` 12539 test -d "$as_dir" && break 12540 done 12541 test -z "$as_dirs" || eval "mkdir $as_dirs" 12542 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12543 12544 12545} # as_fn_mkdir_p 12546if mkdir -p . 2>/dev/null; then 12547 as_mkdir_p='mkdir -p "$as_dir"' 12548else 12549 test -d ./-p && rmdir ./-p 12550 as_mkdir_p=false 12551fi 12552 12553 12554# as_fn_executable_p FILE 12555# ----------------------- 12556# Test if FILE is an executable regular file. 12557as_fn_executable_p () 12558{ 12559 test -f "$1" && test -x "$1" 12560} # as_fn_executable_p 12561as_test_x='test -x' 12562as_executable_p=as_fn_executable_p 12563 12564# Sed expression to map a string onto a valid CPP name. 12565as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12566 12567# Sed expression to map a string onto a valid variable name. 12568as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12569 12570 12571exec 6>&1 12572## ----------------------------------- ## 12573## Main body of $CONFIG_STATUS script. ## 12574## ----------------------------------- ## 12575_ASEOF 12576test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12577 12578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12579# Save the log message, to keep $0 and so on meaningful, and to 12580# report actual input values of CONFIG_FILES etc. instead of their 12581# values after options handling. 12582ac_log=" 12583This file was extended by NSD $as_me 4.9.1, which was 12584generated by GNU Autoconf 2.71. Invocation command line was 12585 12586 CONFIG_FILES = $CONFIG_FILES 12587 CONFIG_HEADERS = $CONFIG_HEADERS 12588 CONFIG_LINKS = $CONFIG_LINKS 12589 CONFIG_COMMANDS = $CONFIG_COMMANDS 12590 $ $0 $@ 12591 12592on `(hostname || uname -n) 2>/dev/null | sed 1q` 12593" 12594 12595_ACEOF 12596 12597case $ac_config_files in *" 12598"*) set x $ac_config_files; shift; ac_config_files=$*;; 12599esac 12600 12601case $ac_config_headers in *" 12602"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12603esac 12604 12605 12606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12607# Files that config.status was made for. 12608config_files="$ac_config_files" 12609config_headers="$ac_config_headers" 12610 12611_ACEOF 12612 12613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12614ac_cs_usage="\ 12615\`$as_me' instantiates files and other configuration actions 12616from templates according to the current configuration. Unless the files 12617and actions are specified as TAGs, all are instantiated by default. 12618 12619Usage: $0 [OPTION]... [TAG]... 12620 12621 -h, --help print this help, then exit 12622 -V, --version print version number and configuration settings, then exit 12623 --config print configuration, then exit 12624 -q, --quiet, --silent 12625 do not print progress messages 12626 -d, --debug don't remove temporary files 12627 --recheck update $as_me by reconfiguring in the same conditions 12628 --file=FILE[:TEMPLATE] 12629 instantiate the configuration file FILE 12630 --header=FILE[:TEMPLATE] 12631 instantiate the configuration header FILE 12632 12633Configuration files: 12634$config_files 12635 12636Configuration headers: 12637$config_headers 12638 12639Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>." 12640 12641_ACEOF 12642ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12643ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12645ac_cs_config='$ac_cs_config_escaped' 12646ac_cs_version="\\ 12647NSD config.status 4.9.1 12648configured by $0, generated by GNU Autoconf 2.71, 12649 with options \\"\$ac_cs_config\\" 12650 12651Copyright (C) 2021 Free Software Foundation, Inc. 12652This config.status script is free software; the Free Software Foundation 12653gives unlimited permission to copy, distribute and modify it." 12654 12655ac_pwd='$ac_pwd' 12656srcdir='$srcdir' 12657INSTALL='$INSTALL' 12658AWK='$AWK' 12659test -n "\$AWK" || AWK=awk 12660_ACEOF 12661 12662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12663# The default lists apply if the user does not specify any file. 12664ac_need_defaults=: 12665while test $# != 0 12666do 12667 case $1 in 12668 --*=?*) 12669 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12671 ac_shift=: 12672 ;; 12673 --*=) 12674 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12675 ac_optarg= 12676 ac_shift=: 12677 ;; 12678 *) 12679 ac_option=$1 12680 ac_optarg=$2 12681 ac_shift=shift 12682 ;; 12683 esac 12684 12685 case $ac_option in 12686 # Handling of the options. 12687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12688 ac_cs_recheck=: ;; 12689 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12690 printf "%s\n" "$ac_cs_version"; exit ;; 12691 --config | --confi | --conf | --con | --co | --c ) 12692 printf "%s\n" "$ac_cs_config"; exit ;; 12693 --debug | --debu | --deb | --de | --d | -d ) 12694 debug=: ;; 12695 --file | --fil | --fi | --f ) 12696 $ac_shift 12697 case $ac_optarg in 12698 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12699 '') as_fn_error $? "missing file argument" ;; 12700 esac 12701 as_fn_append CONFIG_FILES " '$ac_optarg'" 12702 ac_need_defaults=false;; 12703 --header | --heade | --head | --hea ) 12704 $ac_shift 12705 case $ac_optarg in 12706 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12707 esac 12708 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12709 ac_need_defaults=false;; 12710 --he | --h) 12711 # Conflict between --help and --header 12712 as_fn_error $? "ambiguous option: \`$1' 12713Try \`$0 --help' for more information.";; 12714 --help | --hel | -h ) 12715 printf "%s\n" "$ac_cs_usage"; exit ;; 12716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12717 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12718 ac_cs_silent=: ;; 12719 12720 # This is an error. 12721 -*) as_fn_error $? "unrecognized option: \`$1' 12722Try \`$0 --help' for more information." ;; 12723 12724 *) as_fn_append ac_config_targets " $1" 12725 ac_need_defaults=false ;; 12726 12727 esac 12728 shift 12729done 12730 12731ac_configure_extra_args= 12732 12733if $ac_cs_silent; then 12734 exec 6>/dev/null 12735 ac_configure_extra_args="$ac_configure_extra_args --silent" 12736fi 12737 12738_ACEOF 12739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12740if \$ac_cs_recheck; then 12741 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12742 shift 12743 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12744 CONFIG_SHELL='$SHELL' 12745 export CONFIG_SHELL 12746 exec "\$@" 12747fi 12748 12749_ACEOF 12750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12751exec 5>>config.log 12752{ 12753 echo 12754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12755## Running $as_me. ## 12756_ASBOX 12757 printf "%s\n" "$ac_log" 12758} >&5 12759 12760_ACEOF 12761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12762_ACEOF 12763 12764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12765 12766# Handling of arguments. 12767for ac_config_target in $ac_config_targets 12768do 12769 case $ac_config_target in 12770 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12772 "$dnstap_config") CONFIG_FILES="$CONFIG_FILES $dnstap_config" ;; 12773 12774 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12775 esac 12776done 12777 12778 12779# If the user did not use the arguments to specify the items to instantiate, 12780# then the envvar interface is used. Set only those that are not. 12781# We use the long form for the default assignment because of an extremely 12782# bizarre bug on SunOS 4.1.3. 12783if $ac_need_defaults; then 12784 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12785 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12786fi 12787 12788# Have a temporary directory for convenience. Make it in the build tree 12789# simply because there is no reason against having it here, and in addition, 12790# creating and moving files from /tmp can sometimes cause problems. 12791# Hook for its removal unless debugging. 12792# Note that there is a small window in which the directory will not be cleaned: 12793# after its creation but before its name has been assigned to `$tmp'. 12794$debug || 12795{ 12796 tmp= ac_tmp= 12797 trap 'exit_status=$? 12798 : "${ac_tmp:=$tmp}" 12799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12800' 0 12801 trap 'as_fn_exit 1' 1 2 13 15 12802} 12803# Create a (secure) tmp directory for tmp files. 12804 12805{ 12806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12807 test -d "$tmp" 12808} || 12809{ 12810 tmp=./conf$$-$RANDOM 12811 (umask 077 && mkdir "$tmp") 12812} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12813ac_tmp=$tmp 12814 12815# Set up the scripts for CONFIG_FILES section. 12816# No need to generate them if there are no CONFIG_FILES. 12817# This happens for instance with `./config.status config.h'. 12818if test -n "$CONFIG_FILES"; then 12819 12820 12821ac_cr=`echo X | tr X '\015'` 12822# On cygwin, bash can eat \r inside `` if the user requested igncr. 12823# But we know of no other shell where ac_cr would be empty at this 12824# point, so we can use a bashism as a fallback. 12825if test "x$ac_cr" = x; then 12826 eval ac_cr=\$\'\\r\' 12827fi 12828ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12829if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12830 ac_cs_awk_cr='\\r' 12831else 12832 ac_cs_awk_cr=$ac_cr 12833fi 12834 12835echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12836_ACEOF 12837 12838 12839{ 12840 echo "cat >conf$$subs.awk <<_ACEOF" && 12841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12842 echo "_ACEOF" 12843} >conf$$subs.sh || 12844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12845ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12846ac_delim='%!_!# ' 12847for ac_last_try in false false false false false :; do 12848 . ./conf$$subs.sh || 12849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12850 12851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12852 if test $ac_delim_n = $ac_delim_num; then 12853 break 12854 elif $ac_last_try; then 12855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12856 else 12857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12858 fi 12859done 12860rm -f conf$$subs.sh 12861 12862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12863cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12864_ACEOF 12865sed -n ' 12866h 12867s/^/S["/; s/!.*/"]=/ 12868p 12869g 12870s/^[^!]*!// 12871:repl 12872t repl 12873s/'"$ac_delim"'$// 12874t delim 12875:nl 12876h 12877s/\(.\{148\}\)..*/\1/ 12878t more1 12879s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12880p 12881n 12882b repl 12883:more1 12884s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12885p 12886g 12887s/.\{148\}// 12888t nl 12889:delim 12890h 12891s/\(.\{148\}\)..*/\1/ 12892t more2 12893s/["\\]/\\&/g; s/^/"/; s/$/"/ 12894p 12895b 12896:more2 12897s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12898p 12899g 12900s/.\{148\}// 12901t delim 12902' <conf$$subs.awk | sed ' 12903/^[^""]/{ 12904 N 12905 s/\n// 12906} 12907' >>$CONFIG_STATUS || ac_write_fail=1 12908rm -f conf$$subs.awk 12909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12910_ACAWK 12911cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12912 for (key in S) S_is_set[key] = 1 12913 FS = "" 12914 12915} 12916{ 12917 line = $ 0 12918 nfields = split(line, field, "@") 12919 substed = 0 12920 len = length(field[1]) 12921 for (i = 2; i < nfields; i++) { 12922 key = field[i] 12923 keylen = length(key) 12924 if (S_is_set[key]) { 12925 value = S[key] 12926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12927 len += length(value) + length(field[++i]) 12928 substed = 1 12929 } else 12930 len += 1 + keylen 12931 } 12932 12933 print line 12934} 12935 12936_ACAWK 12937_ACEOF 12938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12939if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12941else 12942 cat 12943fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12945_ACEOF 12946 12947# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12948# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12949# trailing colons and then remove the whole line if VPATH becomes empty 12950# (actually we leave an empty line to preserve line numbers). 12951if test "x$srcdir" = x.; then 12952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12953h 12954s/// 12955s/^/:/ 12956s/[ ]*$/:/ 12957s/:\$(srcdir):/:/g 12958s/:\${srcdir}:/:/g 12959s/:@srcdir@:/:/g 12960s/^:*// 12961s/:*$// 12962x 12963s/\(=[ ]*\).*/\1/ 12964G 12965s/\n// 12966s/^[^=]*=[ ]*$// 12967}' 12968fi 12969 12970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12971fi # test -n "$CONFIG_FILES" 12972 12973# Set up the scripts for CONFIG_HEADERS section. 12974# No need to generate them if there are no CONFIG_HEADERS. 12975# This happens for instance with `./config.status Makefile'. 12976if test -n "$CONFIG_HEADERS"; then 12977cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12978BEGIN { 12979_ACEOF 12980 12981# Transform confdefs.h into an awk script `defines.awk', embedded as 12982# here-document in config.status, that substitutes the proper values into 12983# config.h.in to produce config.h. 12984 12985# Create a delimiter string that does not exist in confdefs.h, to ease 12986# handling of long lines. 12987ac_delim='%!_!# ' 12988for ac_last_try in false false :; do 12989 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12990 if test -z "$ac_tt"; then 12991 break 12992 elif $ac_last_try; then 12993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12994 else 12995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12996 fi 12997done 12998 12999# For the awk script, D is an array of macro values keyed by name, 13000# likewise P contains macro parameters if any. Preserve backslash 13001# newline sequences. 13002 13003ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13004sed -n ' 13005s/.\{148\}/&'"$ac_delim"'/g 13006t rset 13007:rset 13008s/^[ ]*#[ ]*define[ ][ ]*/ / 13009t def 13010d 13011:def 13012s/\\$// 13013t bsnl 13014s/["\\]/\\&/g 13015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13016D["\1"]=" \3"/p 13017s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13018d 13019:bsnl 13020s/["\\]/\\&/g 13021s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13022D["\1"]=" \3\\\\\\n"\\/p 13023t cont 13024s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13025t cont 13026d 13027:cont 13028n 13029s/.\{148\}/&'"$ac_delim"'/g 13030t clear 13031:clear 13032s/\\$// 13033t bsnlc 13034s/["\\]/\\&/g; s/^/"/; s/$/"/p 13035d 13036:bsnlc 13037s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13038b cont 13039' <confdefs.h | sed ' 13040s/'"$ac_delim"'/"\\\ 13041"/g' >>$CONFIG_STATUS || ac_write_fail=1 13042 13043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13044 for (key in D) D_is_set[key] = 1 13045 FS = "" 13046} 13047/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13048 line = \$ 0 13049 split(line, arg, " ") 13050 if (arg[1] == "#") { 13051 defundef = arg[2] 13052 mac1 = arg[3] 13053 } else { 13054 defundef = substr(arg[1], 2) 13055 mac1 = arg[2] 13056 } 13057 split(mac1, mac2, "(") #) 13058 macro = mac2[1] 13059 prefix = substr(line, 1, index(line, defundef) - 1) 13060 if (D_is_set[macro]) { 13061 # Preserve the white space surrounding the "#". 13062 print prefix "define", macro P[macro] D[macro] 13063 next 13064 } else { 13065 # Replace #undef with comments. This is necessary, for example, 13066 # in the case of _POSIX_SOURCE, which is predefined and required 13067 # on some systems where configure will not decide to define it. 13068 if (defundef == "undef") { 13069 print "/*", prefix defundef, macro, "*/" 13070 next 13071 } 13072 } 13073} 13074{ print } 13075_ACAWK 13076_ACEOF 13077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13079fi # test -n "$CONFIG_HEADERS" 13080 13081 13082eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 13083shift 13084for ac_tag 13085do 13086 case $ac_tag in 13087 :[FHLC]) ac_mode=$ac_tag; continue;; 13088 esac 13089 case $ac_mode$ac_tag in 13090 :[FHL]*:*);; 13091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13092 :[FH]-) ac_tag=-:-;; 13093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13094 esac 13095 ac_save_IFS=$IFS 13096 IFS=: 13097 set x $ac_tag 13098 IFS=$ac_save_IFS 13099 shift 13100 ac_file=$1 13101 shift 13102 13103 case $ac_mode in 13104 :L) ac_source=$1;; 13105 :[FH]) 13106 ac_file_inputs= 13107 for ac_f 13108 do 13109 case $ac_f in 13110 -) ac_f="$ac_tmp/stdin";; 13111 *) # Look for the file first in the build tree, then in the source tree 13112 # (if the path is not absolute). The absolute path cannot be DOS-style, 13113 # because $ac_f cannot contain `:'. 13114 test -f "$ac_f" || 13115 case $ac_f in 13116 [\\/$]*) false;; 13117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13118 esac || 13119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13120 esac 13121 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13122 as_fn_append ac_file_inputs " '$ac_f'" 13123 done 13124 13125 # Let's still pretend it is `configure' which instantiates (i.e., don't 13126 # use $as_me), people would be surprised to read: 13127 # /* config.h. Generated by config.status. */ 13128 configure_input='Generated from '` 13129 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13130 `' by configure.' 13131 if test x"$ac_file" != x-; then 13132 configure_input="$ac_file. $configure_input" 13133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13134printf "%s\n" "$as_me: creating $ac_file" >&6;} 13135 fi 13136 # Neutralize special characters interpreted by sed in replacement strings. 13137 case $configure_input in #( 13138 *\&* | *\|* | *\\* ) 13139 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13140 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13141 *) ac_sed_conf_input=$configure_input;; 13142 esac 13143 13144 case $ac_tag in 13145 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13147 esac 13148 ;; 13149 esac 13150 13151 ac_dir=`$as_dirname -- "$ac_file" || 13152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13153 X"$ac_file" : 'X\(//\)[^/]' \| \ 13154 X"$ac_file" : 'X\(//\)$' \| \ 13155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13156printf "%s\n" X"$ac_file" | 13157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13158 s//\1/ 13159 q 13160 } 13161 /^X\(\/\/\)[^/].*/{ 13162 s//\1/ 13163 q 13164 } 13165 /^X\(\/\/\)$/{ 13166 s//\1/ 13167 q 13168 } 13169 /^X\(\/\).*/{ 13170 s//\1/ 13171 q 13172 } 13173 s/.*/./; q'` 13174 as_dir="$ac_dir"; as_fn_mkdir_p 13175 ac_builddir=. 13176 13177case "$ac_dir" in 13178.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13179*) 13180 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13181 # A ".." for each directory in $ac_dir_suffix. 13182 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13183 case $ac_top_builddir_sub in 13184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13186 esac ;; 13187esac 13188ac_abs_top_builddir=$ac_pwd 13189ac_abs_builddir=$ac_pwd$ac_dir_suffix 13190# for backward compatibility: 13191ac_top_builddir=$ac_top_build_prefix 13192 13193case $srcdir in 13194 .) # We are building in place. 13195 ac_srcdir=. 13196 ac_top_srcdir=$ac_top_builddir_sub 13197 ac_abs_top_srcdir=$ac_pwd ;; 13198 [\\/]* | ?:[\\/]* ) # Absolute name. 13199 ac_srcdir=$srcdir$ac_dir_suffix; 13200 ac_top_srcdir=$srcdir 13201 ac_abs_top_srcdir=$srcdir ;; 13202 *) # Relative name. 13203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13204 ac_top_srcdir=$ac_top_build_prefix$srcdir 13205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13206esac 13207ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13208 13209 13210 case $ac_mode in 13211 :F) 13212 # 13213 # CONFIG_FILE 13214 # 13215 13216 case $INSTALL in 13217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13219 esac 13220_ACEOF 13221 13222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13223# If the template does not know about datarootdir, expand it. 13224# FIXME: This hack should be removed a few years after 2.60. 13225ac_datarootdir_hack=; ac_datarootdir_seen= 13226ac_sed_dataroot=' 13227/datarootdir/ { 13228 p 13229 q 13230} 13231/@datadir@/p 13232/@docdir@/p 13233/@infodir@/p 13234/@localedir@/p 13235/@mandir@/p' 13236case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13237*datarootdir*) ac_datarootdir_seen=yes;; 13238*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13240printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13241_ACEOF 13242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13243 ac_datarootdir_hack=' 13244 s&@datadir@&$datadir&g 13245 s&@docdir@&$docdir&g 13246 s&@infodir@&$infodir&g 13247 s&@localedir@&$localedir&g 13248 s&@mandir@&$mandir&g 13249 s&\\\${datarootdir}&$datarootdir&g' ;; 13250esac 13251_ACEOF 13252 13253# Neutralize VPATH when `$srcdir' = `.'. 13254# Shell code in configure.ac might set extrasub. 13255# FIXME: do we really want to maintain this feature? 13256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13257ac_sed_extra="$ac_vpsub 13258$extrasub 13259_ACEOF 13260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13261:t 13262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13263s|@configure_input@|$ac_sed_conf_input|;t t 13264s&@top_builddir@&$ac_top_builddir_sub&;t t 13265s&@top_build_prefix@&$ac_top_build_prefix&;t t 13266s&@srcdir@&$ac_srcdir&;t t 13267s&@abs_srcdir@&$ac_abs_srcdir&;t t 13268s&@top_srcdir@&$ac_top_srcdir&;t t 13269s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13270s&@builddir@&$ac_builddir&;t t 13271s&@abs_builddir@&$ac_abs_builddir&;t t 13272s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13273s&@INSTALL@&$ac_INSTALL&;t t 13274$ac_datarootdir_hack 13275" 13276eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13277 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13278 13279test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13280 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13282 "$ac_tmp/out"`; test -z "$ac_out"; } && 13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13284which seems to be undefined. Please make sure it is defined" >&5 13285printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13286which seems to be undefined. Please make sure it is defined" >&2;} 13287 13288 rm -f "$ac_tmp/stdin" 13289 case $ac_file in 13290 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13291 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13292 esac \ 13293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13294 ;; 13295 :H) 13296 # 13297 # CONFIG_HEADER 13298 # 13299 if test x"$ac_file" != x-; then 13300 { 13301 printf "%s\n" "/* $configure_input */" >&1 \ 13302 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13303 } >"$ac_tmp/config.h" \ 13304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13305 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13307printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13308 else 13309 rm -f "$ac_file" 13310 mv "$ac_tmp/config.h" "$ac_file" \ 13311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13312 fi 13313 else 13314 printf "%s\n" "/* $configure_input */" >&1 \ 13315 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13316 || as_fn_error $? "could not create -" "$LINENO" 5 13317 fi 13318 ;; 13319 13320 13321 esac 13322 13323done # for ac_tag 13324 13325 13326as_fn_exit 0 13327_ACEOF 13328ac_clean_files=$ac_clean_files_save 13329 13330test $ac_write_fail = 0 || 13331 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13332 13333 13334# configure is writing to config.log, and then calls config.status. 13335# config.status does its own redirection, appending to config.log. 13336# Unfortunately, on DOS this fails, as config.log is still kept open 13337# by configure, so config.status won't be able to write to it; its 13338# output is simply discarded. So we exec the FD to /dev/null, 13339# effectively closing config.log, so it can be properly (re)opened and 13340# appended to by config.status. When coming back to configure, we 13341# need to make the FD available again. 13342if test "$no_create" != yes; then 13343 ac_cs_success=: 13344 ac_config_status_args= 13345 test "$silent" = yes && 13346 ac_config_status_args="$ac_config_status_args --quiet" 13347 exec 5>/dev/null 13348 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13349 exec 5>>config.log 13350 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13351 # would make configure fail if this is the last instruction. 13352 $ac_cs_success || as_fn_exit 1 13353fi 13354if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13356printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13357fi 13358 13359