1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for NSD 4.8.0. 4# 5# Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 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'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://github.com/NLnetLabs/nsd/issues or 271$0: nsd-bugs@nlnetlabs.nl about your system, including any 272$0: error possibly output before this message. Then install 273$0: a modern shell, or manually run the script under such a 274$0: shell if you do have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='NSD' 583PACKAGE_TARNAME='nsd' 584PACKAGE_VERSION='4.8.0' 585PACKAGE_STRING='NSD 4.8.0' 586PACKAGE_BUGREPORT='https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl' 587PACKAGE_URL='' 588 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='LTLIBOBJS 626SYSTEMD_DAEMON_LIBS 627SYSTEMD_DAEMON_CFLAGS 628SYSTEMD_LIBS 629SYSTEMD_CFLAGS 630PKG_CONFIG_LIBDIR 631PKG_CONFIG_PATH 632PKG_CONFIG 633DNSTAP_OBJ 634DNSTAP_SRC 635opt_dnstap_socket_path 636ENABLE_DNSTAP 637PROTOC_C 638SSL_LIBS 639HAVE_SSL 640ratelimit_default 641ratelimit 642LIBOBJS 643INSTALL_DATA 644INSTALL_SCRIPT 645INSTALL_PROGRAM 646LN_S 647YFLAGS 648LEXLIB 649LEX_OUTPUT_ROOT 650user 651chrootdir 652xfrdir 653zonelistfile 654xfrdfile 655zonesdir 656piddir 657pidfile 658logfile 659nsd_conf_file 660configdir 661CPP 662OBJEXT 663EXEEXT 664ac_ct_CC 665CPPFLAGS 666LDFLAGS 667CFLAGS 668CC 669YACC 670LEX 671EGREP 672GREP 673AWK 674SED 675target_alias 676host_alias 677build_alias 678LIBS 679ECHO_T 680ECHO_N 681ECHO_C 682DEFS 683mandir 684localedir 685libdir 686psdir 687pdfdir 688dvidir 689htmldir 690infodir 691docdir 692oldincludedir 693includedir 694runstatedir 695localstatedir 696sharedstatedir 697sysconfdir 698datadir 699datarootdir 700libexecdir 701sbindir 702bindir 703program_transform_name 704prefix 705exec_prefix 706PACKAGE_URL 707PACKAGE_BUGREPORT 708PACKAGE_STRING 709PACKAGE_VERSION 710PACKAGE_TARNAME 711PACKAGE_NAME 712PATH_SEPARATOR 713SHELL' 714ac_subst_files='' 715ac_user_opts=' 716enable_option_checking 717with_configdir 718with_nsd_conf_file 719with_logfile 720with_pidfile 721with_dbfile 722with_zonesdir 723with_xfrdfile 724with_zonelistfile 725with_xfrdir 726with_chroot 727with_user 728enable_flto 729enable_pie 730enable_relro_now 731with_libevent 732enable_largefile 733enable_recvmmsg 734with_facility 735with_tcp_timeout 736enable_root_server 737enable_ipv6 738enable_bind8_stats 739enable_zone_stats 740enable_checking 741enable_memclean 742enable_ratelimit 743enable_ratelimit_default_is_off 744with_ssl 745enable_nsec3 746enable_minimal_responses 747enable_mmap 748enable_radix_tree 749enable_packed 750enable_dnstap 751with_dnstap_socket_path 752with_protobuf_c 753with_libfstrm 754enable_systemd 755enable_tcp_fastopen 756' 757 ac_precious_vars='build_alias 758host_alias 759target_alias 760SED 761AWK 762GREP 763EGREP 764LEX 765YACC 766CC 767CFLAGS 768LDFLAGS 769LIBS 770CPPFLAGS 771CPP 772YFLAGS 773PKG_CONFIG 774PKG_CONFIG_PATH 775PKG_CONFIG_LIBDIR 776SYSTEMD_CFLAGS 777SYSTEMD_LIBS 778SYSTEMD_DAEMON_CFLAGS 779SYSTEMD_DAEMON_LIBS' 780 781 782# Initialize some variables set by options. 783ac_init_help= 784ac_init_version=false 785ac_unrecognized_opts= 786ac_unrecognized_sep= 787# The variables have the same names as the options, with 788# dashes changed to underlines. 789cache_file=/dev/null 790exec_prefix=NONE 791no_create= 792no_recursion= 793prefix=NONE 794program_prefix=NONE 795program_suffix=NONE 796program_transform_name=s,x,x, 797silent= 798site= 799srcdir= 800verbose= 801x_includes=NONE 802x_libraries=NONE 803 804# Installation directory options. 805# These are left unexpanded so users can "make install exec_prefix=/foo" 806# and all the variables that are supposed to be based on exec_prefix 807# by default will actually change. 808# Use braces instead of parens because sh, perl, etc. also accept them. 809# (The list follows the same order as the GNU Coding Standards.) 810bindir='${exec_prefix}/bin' 811sbindir='${exec_prefix}/sbin' 812libexecdir='${exec_prefix}/libexec' 813datarootdir='${prefix}/share' 814datadir='${datarootdir}' 815sysconfdir='${prefix}/etc' 816sharedstatedir='${prefix}/com' 817localstatedir='${prefix}/var' 818runstatedir='${localstatedir}/run' 819includedir='${prefix}/include' 820oldincludedir='/usr/include' 821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 822infodir='${datarootdir}/info' 823htmldir='${docdir}' 824dvidir='${docdir}' 825pdfdir='${docdir}' 826psdir='${docdir}' 827libdir='${exec_prefix}/lib' 828localedir='${datarootdir}/locale' 829mandir='${datarootdir}/man' 830 831ac_prev= 832ac_dashdash= 833for ac_option 834do 835 # If the previous option needs an argument, assign it. 836 if test -n "$ac_prev"; then 837 eval $ac_prev=\$ac_option 838 ac_prev= 839 continue 840 fi 841 842 case $ac_option in 843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 844 *=) ac_optarg= ;; 845 *) ac_optarg=yes ;; 846 esac 847 848 # Accept the important Cygnus configure options, so we can diagnose typos. 849 850 case $ac_dashdash$ac_option in 851 --) 852 ac_dashdash=yes ;; 853 854 -bindir | --bindir | --bindi | --bind | --bin | --bi) 855 ac_prev=bindir ;; 856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 857 bindir=$ac_optarg ;; 858 859 -build | --build | --buil | --bui | --bu) 860 ac_prev=build_alias ;; 861 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 862 build_alias=$ac_optarg ;; 863 864 -cache-file | --cache-file | --cache-fil | --cache-fi \ 865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 866 ac_prev=cache_file ;; 867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 869 cache_file=$ac_optarg ;; 870 871 --config-cache | -C) 872 cache_file=config.cache ;; 873 874 -datadir | --datadir | --datadi | --datad) 875 ac_prev=datadir ;; 876 -datadir=* | --datadir=* | --datadi=* | --datad=*) 877 datadir=$ac_optarg ;; 878 879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 880 | --dataroo | --dataro | --datar) 881 ac_prev=datarootdir ;; 882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 884 datarootdir=$ac_optarg ;; 885 886 -disable-* | --disable-*) 887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 888 # Reject names that are not valid shell variable names. 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 890 as_fn_error $? "invalid feature name: $ac_useropt" 891 ac_useropt_orig=$ac_useropt 892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 893 case $ac_user_opts in 894 *" 895"enable_$ac_useropt" 896"*) ;; 897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 898 ac_unrecognized_sep=', ';; 899 esac 900 eval enable_$ac_useropt=no ;; 901 902 -docdir | --docdir | --docdi | --doc | --do) 903 ac_prev=docdir ;; 904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 905 docdir=$ac_optarg ;; 906 907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 908 ac_prev=dvidir ;; 909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 910 dvidir=$ac_optarg ;; 911 912 -enable-* | --enable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error $? "invalid feature name: $ac_useropt" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921"enable_$ac_useropt" 922"*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=\$ac_optarg ;; 927 928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 930 | --exec | --exe | --ex) 931 ac_prev=exec_prefix ;; 932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 934 | --exec=* | --exe=* | --ex=*) 935 exec_prefix=$ac_optarg ;; 936 937 -gas | --gas | --ga | --g) 938 # Obsolete; use --with-gas. 939 with_gas=yes ;; 940 941 -help | --help | --hel | --he | -h) 942 ac_init_help=long ;; 943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 944 ac_init_help=recursive ;; 945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 946 ac_init_help=short ;; 947 948 -host | --host | --hos | --ho) 949 ac_prev=host_alias ;; 950 -host=* | --host=* | --hos=* | --ho=*) 951 host_alias=$ac_optarg ;; 952 953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 954 ac_prev=htmldir ;; 955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 956 | --ht=*) 957 htmldir=$ac_optarg ;; 958 959 -includedir | --includedir | --includedi | --included | --include \ 960 | --includ | --inclu | --incl | --inc) 961 ac_prev=includedir ;; 962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 963 | --includ=* | --inclu=* | --incl=* | --inc=*) 964 includedir=$ac_optarg ;; 965 966 -infodir | --infodir | --infodi | --infod | --info | --inf) 967 ac_prev=infodir ;; 968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 969 infodir=$ac_optarg ;; 970 971 -libdir | --libdir | --libdi | --libd) 972 ac_prev=libdir ;; 973 -libdir=* | --libdir=* | --libdi=* | --libd=*) 974 libdir=$ac_optarg ;; 975 976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 977 | --libexe | --libex | --libe) 978 ac_prev=libexecdir ;; 979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 980 | --libexe=* | --libex=* | --libe=*) 981 libexecdir=$ac_optarg ;; 982 983 -localedir | --localedir | --localedi | --localed | --locale) 984 ac_prev=localedir ;; 985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 986 localedir=$ac_optarg ;; 987 988 -localstatedir | --localstatedir | --localstatedi | --localstated \ 989 | --localstate | --localstat | --localsta | --localst | --locals) 990 ac_prev=localstatedir ;; 991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 993 localstatedir=$ac_optarg ;; 994 995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 996 ac_prev=mandir ;; 997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 998 mandir=$ac_optarg ;; 999 1000 -nfp | --nfp | --nf) 1001 # Obsolete; use --without-fp. 1002 with_fp=no ;; 1003 1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1005 | --no-cr | --no-c | -n) 1006 no_create=yes ;; 1007 1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1010 no_recursion=yes ;; 1011 1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1014 | --oldin | --oldi | --old | --ol | --o) 1015 ac_prev=oldincludedir ;; 1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1019 oldincludedir=$ac_optarg ;; 1020 1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1022 ac_prev=prefix ;; 1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1024 prefix=$ac_optarg ;; 1025 1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1027 | --program-pre | --program-pr | --program-p) 1028 ac_prev=program_prefix ;; 1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1031 program_prefix=$ac_optarg ;; 1032 1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1034 | --program-suf | --program-su | --program-s) 1035 ac_prev=program_suffix ;; 1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1038 program_suffix=$ac_optarg ;; 1039 1040 -program-transform-name | --program-transform-name \ 1041 | --program-transform-nam | --program-transform-na \ 1042 | --program-transform-n | --program-transform- \ 1043 | --program-transform | --program-transfor \ 1044 | --program-transfo | --program-transf \ 1045 | --program-trans | --program-tran \ 1046 | --progr-tra | --program-tr | --program-t) 1047 ac_prev=program_transform_name ;; 1048 -program-transform-name=* | --program-transform-name=* \ 1049 | --program-transform-nam=* | --program-transform-na=* \ 1050 | --program-transform-n=* | --program-transform-=* \ 1051 | --program-transform=* | --program-transfor=* \ 1052 | --program-transfo=* | --program-transf=* \ 1053 | --program-trans=* | --program-tran=* \ 1054 | --progr-tra=* | --program-tr=* | --program-t=*) 1055 program_transform_name=$ac_optarg ;; 1056 1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1058 ac_prev=pdfdir ;; 1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1060 pdfdir=$ac_optarg ;; 1061 1062 -psdir | --psdir | --psdi | --psd | --ps) 1063 ac_prev=psdir ;; 1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1065 psdir=$ac_optarg ;; 1066 1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1068 | -silent | --silent | --silen | --sile | --sil) 1069 silent=yes ;; 1070 1071 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1072 | --runstate | --runstat | --runsta | --runst | --runs \ 1073 | --run | --ru | --r) 1074 ac_prev=runstatedir ;; 1075 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1076 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1077 | --run=* | --ru=* | --r=*) 1078 runstatedir=$ac_optarg ;; 1079 1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1081 ac_prev=sbindir ;; 1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1083 | --sbi=* | --sb=*) 1084 sbindir=$ac_optarg ;; 1085 1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1088 | --sharedst | --shareds | --shared | --share | --shar \ 1089 | --sha | --sh) 1090 ac_prev=sharedstatedir ;; 1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1094 | --sha=* | --sh=*) 1095 sharedstatedir=$ac_optarg ;; 1096 1097 -site | --site | --sit) 1098 ac_prev=site ;; 1099 -site=* | --site=* | --sit=*) 1100 site=$ac_optarg ;; 1101 1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1103 ac_prev=srcdir ;; 1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1105 srcdir=$ac_optarg ;; 1106 1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1108 | --syscon | --sysco | --sysc | --sys | --sy) 1109 ac_prev=sysconfdir ;; 1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1112 sysconfdir=$ac_optarg ;; 1113 1114 -target | --target | --targe | --targ | --tar | --ta | --t) 1115 ac_prev=target_alias ;; 1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1117 target_alias=$ac_optarg ;; 1118 1119 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1120 verbose=yes ;; 1121 1122 -version | --version | --versio | --versi | --vers | -V) 1123 ac_init_version=: ;; 1124 1125 -with-* | --with-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=\$ac_optarg ;; 1140 1141 -without-* | --without-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=no ;; 1156 1157 --x) 1158 # Obsolete; use --with-x. 1159 with_x=yes ;; 1160 1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1162 | --x-incl | --x-inc | --x-in | --x-i) 1163 ac_prev=x_includes ;; 1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1166 x_includes=$ac_optarg ;; 1167 1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1170 ac_prev=x_libraries ;; 1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1173 x_libraries=$ac_optarg ;; 1174 1175 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1176Try \`$0 --help' for more information" 1177 ;; 1178 1179 *=*) 1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1181 # Reject names that are not valid shell variable names. 1182 case $ac_envvar in #( 1183 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1185 esac 1186 eval $ac_envvar=\$ac_optarg 1187 export $ac_envvar ;; 1188 1189 *) 1190 # FIXME: should be removed in autoconf 3.0. 1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1195 ;; 1196 1197 esac 1198done 1199 1200if test -n "$ac_prev"; then 1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1202 as_fn_error $? "missing argument to $ac_option" 1203fi 1204 1205if test -n "$ac_unrecognized_opts"; then 1206 case $enable_option_checking in 1207 no) ;; 1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1210 esac 1211fi 1212 1213# Check all directory arguments for consistency. 1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1215 datadir sysconfdir sharedstatedir localstatedir includedir \ 1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1217 libdir localedir mandir runstatedir 1218do 1219 eval ac_val=\$$ac_var 1220 # Remove trailing slashes. 1221 case $ac_val in 1222 */ ) 1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1224 eval $ac_var=\$ac_val;; 1225 esac 1226 # Be sure to have absolute directory names. 1227 case $ac_val in 1228 [\\/$]* | ?:[\\/]* ) continue;; 1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1230 esac 1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1232done 1233 1234# There might be people who depend on the old broken behavior: `$host' 1235# used to hold the argument of --host etc. 1236# FIXME: To remove some day. 1237build=$build_alias 1238host=$host_alias 1239target=$target_alias 1240 1241# FIXME: To remove some day. 1242if test "x$host_alias" != x; then 1243 if test "x$build_alias" = x; then 1244 cross_compiling=maybe 1245 elif test "x$build_alias" != "x$host_alias"; then 1246 cross_compiling=yes 1247 fi 1248fi 1249 1250ac_tool_prefix= 1251test -n "$host_alias" && ac_tool_prefix=$host_alias- 1252 1253test "$silent" = yes && exec 6>/dev/null 1254 1255 1256ac_pwd=`pwd` && test -n "$ac_pwd" && 1257ac_ls_di=`ls -di .` && 1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1259 as_fn_error $? "working directory cannot be determined" 1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1261 as_fn_error $? "pwd does not report name of working directory" 1262 1263 1264# Find the source files, if location was not specified. 1265if test -z "$srcdir"; then 1266 ac_srcdir_defaulted=yes 1267 # Try the directory containing this script, then the parent directory. 1268 ac_confdir=`$as_dirname -- "$as_myself" || 1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1270 X"$as_myself" : 'X\(//\)[^/]' \| \ 1271 X"$as_myself" : 'X\(//\)$' \| \ 1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1273$as_echo X"$as_myself" | 1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)[^/].*/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\).*/{ 1287 s//\1/ 1288 q 1289 } 1290 s/.*/./; q'` 1291 srcdir=$ac_confdir 1292 if test ! -r "$srcdir/$ac_unique_file"; then 1293 srcdir=.. 1294 fi 1295else 1296 ac_srcdir_defaulted=no 1297fi 1298if test ! -r "$srcdir/$ac_unique_file"; then 1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1301fi 1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1303ac_abs_confdir=`( 1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1305 pwd)` 1306# When building in place, set srcdir=. 1307if test "$ac_abs_confdir" = "$ac_pwd"; then 1308 srcdir=. 1309fi 1310# Remove unnecessary trailing slashes from srcdir. 1311# Double slashes in file names in object file debugging info 1312# mess up M-x gdb in Emacs. 1313case $srcdir in 1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1315esac 1316for ac_var in $ac_precious_vars; do 1317 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_env_${ac_var}_value=\$${ac_var} 1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1321done 1322 1323# 1324# Report the --help message. 1325# 1326if test "$ac_init_help" = "long"; then 1327 # Omit some internal or obsolete options to make the list less imposing. 1328 # This message is too long to be a string in the A/UX 3.1 sh. 1329 cat <<_ACEOF 1330\`configure' configures NSD 4.8.0 to adapt to many kinds of systems. 1331 1332Usage: $0 [OPTION]... [VAR=VALUE]... 1333 1334To assign environment variables (e.g., CC, CFLAGS...), specify them as 1335VAR=VALUE. See below for descriptions of some of the useful variables. 1336 1337Defaults for the options are specified in brackets. 1338 1339Configuration: 1340 -h, --help display this help and exit 1341 --help=short display options specific to this package 1342 --help=recursive display the short help of all the included packages 1343 -V, --version display version information and exit 1344 -q, --quiet, --silent do not print \`checking ...' messages 1345 --cache-file=FILE cache test results in FILE [disabled] 1346 -C, --config-cache alias for \`--cache-file=config.cache' 1347 -n, --no-create do not create output files 1348 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1349 1350Installation directories: 1351 --prefix=PREFIX install architecture-independent files in PREFIX 1352 [$ac_default_prefix] 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1354 [PREFIX] 1355 1356By default, \`make install' will install all the files in 1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1358an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1359for instance \`--prefix=\$HOME'. 1360 1361For better control, use the options below. 1362 1363Fine tuning of the installation directories: 1364 --bindir=DIR user executables [EPREFIX/bin] 1365 --sbindir=DIR system admin executables [EPREFIX/sbin] 1366 --libexecdir=DIR program executables [EPREFIX/libexec] 1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1370 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1371 --libdir=DIR object code libraries [EPREFIX/lib] 1372 --includedir=DIR C header files [PREFIX/include] 1373 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376 --infodir=DIR info documentation [DATAROOTDIR/info] 1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378 --mandir=DIR man documentation [DATAROOTDIR/man] 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/nsd] 1380 --htmldir=DIR html documentation [DOCDIR] 1381 --dvidir=DIR dvi documentation [DOCDIR] 1382 --pdfdir=DIR pdf documentation [DOCDIR] 1383 --psdir=DIR ps documentation [DOCDIR] 1384_ACEOF 1385 1386 cat <<\_ACEOF 1387_ACEOF 1388fi 1389 1390if test -n "$ac_init_help"; then 1391 case $ac_init_help in 1392 short | recursive ) echo "Configuration of NSD 4.8.0:";; 1393 esac 1394 cat <<\_ACEOF 1395 1396Optional Features: 1397 --disable-option-checking ignore unrecognized --enable/--with options 1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1400 --disable-flto Disable link-time optimization (gcc specific option) 1401 --enable-pie Enable Position-Independent Executable (eg. to fully 1402 benefit from ASLR, small performance penalty) 1403 --enable-relro-now Enable full relocation binding at load-time (RELRO 1404 NOW, to protect GOT and .dtor areas) 1405 --disable-largefile omit support for large files 1406 --enable-recvmmsg Enable recvmmsg and sendmmsg compilation, faster but 1407 some kernel versions may have implementation 1408 problems for IPv6 1409 --enable-root-server Configure NSD as a root server (obsolete) 1410 --disable-ipv6 Disables IPv6 support 1411 --enable-bind8-stats Enables BIND8 like NSTATS & XSTATS and statistics in 1412 nsd-control 1413 --enable-zone-stats Enable per-zone statistics gathering (needs 1414 --enable-bind8-stats) 1415 --enable-checking Enable internal runtime checks 1416 --enable-memclean Cleanup memory (at exit) for eg. valgrind, memcheck 1417 --enable-ratelimit Enable rate limiting 1418 --enable-ratelimit-default-is-off 1419 Enable this to set default of ratelimit to off 1420 (enable in nsd.conf), otherwise ratelimit is enabled 1421 by default if --enable-ratelimit is enabled 1422 --disable-nsec3 Disable NSEC3 support 1423 --disable-minimal-responses 1424 Disable response minimization. More truncation. 1425 --enable-mmap Use mmap instead of malloc. Experimental. 1426 --disable-radix-tree You can disable the radix tree and use the red-black 1427 tree for the main lookups, the red-black tree uses 1428 less memory, but uses some more CPU. 1429 --enable-packed Enable packed structure alignment, uses less memory, 1430 but unaligned reads. 1431 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c) 1432 --enable-systemd compile with systemd support 1433 --enable-tcp-fastopen Enable TCP Fast Open 1434 1435Optional Packages: 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1438 --with-configdir=dir NSD configuration directory 1439 --with-nsd_conf_file=path 1440 Pathname to the NSD configuration file 1441 --with-logfile=path Pathname to the default log file 1442 --with-pidfile=path Pathname to the NSD pidfile 1443 --with-dbfile=path Pathname to the NSD database (obsolete) 1444 --with-zonesdir=dir NSD default location for zone files 1445 --with-xfrdfile=path Pathname to the NSD xfrd zone timer state file 1446 --with-zonelistfile=path 1447 Pathname to the NSD zone list file 1448 --with-xfrdir=path Pathname to where the NSD transfer dir is created 1449 --with-chroot=dir NSD default chroot directory 1450 --with-user=username User name or ID to answer the queries with 1451 --with-libevent=pathname 1452 use libevent (will check /usr/local /opt/local 1453 /usr/lib /usr/sfw /usr 1454 /usr/local/opt/libevent or you can specify an 1455 explicit path), useful when the zone count is high. 1456 --with-facility=name Syslog default facility (LOG_DAEMON) 1457 --with-tcp-timeout=number 1458 Limit the default tcp timeout 1459 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1460 /usr/ssl /usr/sfw /usr/local /usr 1461 /usr/local/opt/openssl) 1462 --with-dnstap-socket-path=pathname 1463 set default dnstap socket path 1464 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1465 --with-libfstrm=path Path where libfstrm is installed, for dnstap 1466 1467Some influential environment variables: 1468 SED location of the sed program 1469 AWK location of the awk program 1470 GREP location of the grep program 1471 EGREP location of the egrep program 1472 LEX location of the lex program with GNU extensions (flex) 1473 YACC location of the yacc program with GNU extensions (bison) 1474 CC C compiler command 1475 CFLAGS C compiler flags 1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1477 nonstandard directory <lib dir> 1478 LIBS libraries to pass to the linker, e.g. -l<library> 1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1480 you have headers in a nonstandard directory <include dir> 1481 CPP C preprocessor 1482 YFLAGS The list of arguments that will be passed by default to $YACC. 1483 This script will default YFLAGS to the empty string to avoid a 1484 default value of `-d' given by some make applications. 1485 PKG_CONFIG path to pkg-config utility 1486 PKG_CONFIG_PATH 1487 directories to add to pkg-config's search path 1488 PKG_CONFIG_LIBDIR 1489 path overriding pkg-config's built-in search path 1490 SYSTEMD_CFLAGS 1491 C compiler flags for SYSTEMD, overriding pkg-config 1492 SYSTEMD_LIBS 1493 linker flags for SYSTEMD, overriding pkg-config 1494 SYSTEMD_DAEMON_CFLAGS 1495 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1496 SYSTEMD_DAEMON_LIBS 1497 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1498 1499Use these variables to override the choices made by `configure' or to help 1500it to find libraries and programs with nonstandard names/locations. 1501 1502Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>. 1503_ACEOF 1504ac_status=$? 1505fi 1506 1507if test "$ac_init_help" = "recursive"; then 1508 # If there are subdirs, report their specific --help. 1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1510 test -d "$ac_dir" || 1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1512 continue 1513 ac_builddir=. 1514 1515case "$ac_dir" in 1516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1517*) 1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1519 # A ".." for each directory in $ac_dir_suffix. 1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1521 case $ac_top_builddir_sub in 1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1524 esac ;; 1525esac 1526ac_abs_top_builddir=$ac_pwd 1527ac_abs_builddir=$ac_pwd$ac_dir_suffix 1528# for backward compatibility: 1529ac_top_builddir=$ac_top_build_prefix 1530 1531case $srcdir in 1532 .) # We are building in place. 1533 ac_srcdir=. 1534 ac_top_srcdir=$ac_top_builddir_sub 1535 ac_abs_top_srcdir=$ac_pwd ;; 1536 [\\/]* | ?:[\\/]* ) # Absolute name. 1537 ac_srcdir=$srcdir$ac_dir_suffix; 1538 ac_top_srcdir=$srcdir 1539 ac_abs_top_srcdir=$srcdir ;; 1540 *) # Relative name. 1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1542 ac_top_srcdir=$ac_top_build_prefix$srcdir 1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1544esac 1545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1546 1547 cd "$ac_dir" || { ac_status=$?; continue; } 1548 # Check for guested configure. 1549 if test -f "$ac_srcdir/configure.gnu"; then 1550 echo && 1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1552 elif test -f "$ac_srcdir/configure"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure" --help=recursive 1555 else 1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1557 fi || ac_status=$? 1558 cd "$ac_pwd" || { ac_status=$?; break; } 1559 done 1560fi 1561 1562test -n "$ac_init_help" && exit $ac_status 1563if $ac_init_version; then 1564 cat <<\_ACEOF 1565NSD configure 4.8.0 1566generated by GNU Autoconf 2.69 1567 1568Copyright (C) 2012 Free Software Foundation, Inc. 1569This configure script is free software; the Free Software Foundation 1570gives unlimited permission to copy, distribute and modify it. 1571_ACEOF 1572 exit 1573fi 1574 1575## ------------------------ ## 1576## Autoconf initialization. ## 1577## ------------------------ ## 1578 1579# ac_fn_c_try_compile LINENO 1580# -------------------------- 1581# Try to compile conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_compile () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 rm -f conftest.$ac_objext 1586 if { { ac_try="$ac_compile" 1587case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590esac 1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592$as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_compile") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } && { 1602 test -z "$ac_c_werror_flag" || 1603 test ! -s conftest.err 1604 } && test -s conftest.$ac_objext; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 as_fn_set_status $ac_retval 1614 1615} # ac_fn_c_try_compile 1616 1617# ac_fn_c_try_cpp LINENO 1618# ---------------------- 1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1620ac_fn_c_try_cpp () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 if { { ac_try="$ac_cpp conftest.$ac_ext" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1631 ac_status=$? 1632 if test -s conftest.err; then 1633 grep -v '^ *+' conftest.err >conftest.er1 1634 cat conftest.er1 >&5 1635 mv -f conftest.er1 conftest.err 1636 fi 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } > conftest.i && { 1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1640 test ! -s conftest.err 1641 }; then : 1642 ac_retval=0 1643else 1644 $as_echo "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=1 1648fi 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652} # ac_fn_c_try_cpp 1653 1654# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1655# ------------------------------------------------------- 1656# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1657# the include files in INCLUDES and setting the cache variable VAR 1658# accordingly. 1659ac_fn_c_check_header_mongrel () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if eval \${$3+:} false; then : 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1664$as_echo_n "checking for $2... " >&6; } 1665if eval \${$3+:} false; then : 1666 $as_echo_n "(cached) " >&6 1667fi 1668eval ac_res=\$$3 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1670$as_echo "$ac_res" >&6; } 1671else 1672 # Is the header compilable? 1673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1674$as_echo_n "checking $2 usability... " >&6; } 1675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676/* end confdefs.h. */ 1677$4 1678#include <$2> 1679_ACEOF 1680if ac_fn_c_try_compile "$LINENO"; then : 1681 ac_header_compiler=yes 1682else 1683 ac_header_compiler=no 1684fi 1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1687$as_echo "$ac_header_compiler" >&6; } 1688 1689# Is the header present? 1690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1691$as_echo_n "checking $2 presence... " >&6; } 1692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1693/* end confdefs.h. */ 1694#include <$2> 1695_ACEOF 1696if ac_fn_c_try_cpp "$LINENO"; then : 1697 ac_header_preproc=yes 1698else 1699 ac_header_preproc=no 1700fi 1701rm -f conftest.err conftest.i conftest.$ac_ext 1702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1703$as_echo "$ac_header_preproc" >&6; } 1704 1705# So? What about this header? 1706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1707 yes:no: ) 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1709$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1711$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1712 ;; 1713 no:yes:* ) 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1715$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1717$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1719$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1721$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1723$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1724( $as_echo "## ------------------------------------------------------------------------------- ## 1725## Report this to https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl ## 1726## ------------------------------------------------------------------------------- ##" 1727 ) | sed "s/^/$as_me: WARNING: /" >&2 1728 ;; 1729esac 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731$as_echo_n "checking for $2... " >&6; } 1732if eval \${$3+:} false; then : 1733 $as_echo_n "(cached) " >&6 1734else 1735 eval "$3=\$ac_header_compiler" 1736fi 1737eval ac_res=\$$3 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1739$as_echo "$ac_res" >&6; } 1740fi 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 1743} # ac_fn_c_check_header_mongrel 1744 1745# ac_fn_c_try_run LINENO 1746# ---------------------- 1747# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1748# that executables *can* be run. 1749ac_fn_c_try_run () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 if { { ac_try="$ac_link" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_link") 2>&5 1760 ac_status=$? 1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1763 { { case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768$as_echo "$ac_try_echo"; } >&5 1769 (eval "$ac_try") 2>&5 1770 ac_status=$? 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; }; }; then : 1773 ac_retval=0 1774else 1775 $as_echo "$as_me: program exited with status $ac_status" >&5 1776 $as_echo "$as_me: failed program was:" >&5 1777sed 's/^/| /' conftest.$ac_ext >&5 1778 1779 ac_retval=$ac_status 1780fi 1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 as_fn_set_status $ac_retval 1784 1785} # ac_fn_c_try_run 1786 1787# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1788# ------------------------------------------------------- 1789# Tests whether HEADER exists and can be compiled using the include files in 1790# INCLUDES, setting the cache variable VAR accordingly. 1791ac_fn_c_check_header_compile () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802#include <$2> 1803_ACEOF 1804if ac_fn_c_try_compile "$LINENO"; then : 1805 eval "$3=yes" 1806else 1807 eval "$3=no" 1808fi 1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1810fi 1811eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813$as_echo "$ac_res" >&6; } 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 1816} # ac_fn_c_check_header_compile 1817 1818# ac_fn_c_try_link LINENO 1819# ----------------------- 1820# Try to link conftest.$ac_ext, and return whether this succeeded. 1821ac_fn_c_try_link () 1822{ 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 rm -f conftest.$ac_objext conftest$ac_exeext 1825 if { { ac_try="$ac_link" 1826case "(($ac_try" in 1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1828 *) ac_try_echo=$ac_try;; 1829esac 1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1831$as_echo "$ac_try_echo"; } >&5 1832 (eval "$ac_link") 2>conftest.err 1833 ac_status=$? 1834 if test -s conftest.err; then 1835 grep -v '^ *+' conftest.err >conftest.er1 1836 cat conftest.er1 >&5 1837 mv -f conftest.er1 conftest.err 1838 fi 1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1840 test $ac_status = 0; } && { 1841 test -z "$ac_c_werror_flag" || 1842 test ! -s conftest.err 1843 } && test -s conftest$ac_exeext && { 1844 test "$cross_compiling" = yes || 1845 test -x conftest$ac_exeext 1846 }; then : 1847 ac_retval=0 1848else 1849 $as_echo "$as_me: failed program was:" >&5 1850sed 's/^/| /' conftest.$ac_ext >&5 1851 1852 ac_retval=1 1853fi 1854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1856 # interfere with the next link command; also delete a directory that is 1857 # left behind by Apple's compiler. We do this before executing the actions. 1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 as_fn_set_status $ac_retval 1861 1862} # ac_fn_c_try_link 1863 1864# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1865# ------------------------------------------- 1866# Tests whether TYPE exists after having included INCLUDES, setting cache 1867# variable VAR accordingly. 1868ac_fn_c_check_type () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1872$as_echo_n "checking for $2... " >&6; } 1873if eval \${$3+:} false; then : 1874 $as_echo_n "(cached) " >&6 1875else 1876 eval "$3=no" 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878/* end confdefs.h. */ 1879$4 1880int 1881main () 1882{ 1883if (sizeof ($2)) 1884 return 0; 1885 ; 1886 return 0; 1887} 1888_ACEOF 1889if ac_fn_c_try_compile "$LINENO"; then : 1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1891/* end confdefs.h. */ 1892$4 1893int 1894main () 1895{ 1896if (sizeof (($2))) 1897 return 0; 1898 ; 1899 return 0; 1900} 1901_ACEOF 1902if ac_fn_c_try_compile "$LINENO"; then : 1903 1904else 1905 eval "$3=yes" 1906fi 1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1908fi 1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1910fi 1911eval ac_res=\$$3 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1913$as_echo "$ac_res" >&6; } 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 1916} # ac_fn_c_check_type 1917 1918# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1919# --------------------------------------------- 1920# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1921# accordingly. 1922ac_fn_c_check_decl () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 as_decl_name=`echo $2|sed 's/ *(.*//'` 1926 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1928$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1929if eval \${$3+:} false; then : 1930 $as_echo_n "(cached) " >&6 1931else 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934$4 1935int 1936main () 1937{ 1938#ifndef $as_decl_name 1939#ifdef __cplusplus 1940 (void) $as_decl_use; 1941#else 1942 (void) $as_decl_name; 1943#endif 1944#endif 1945 1946 ; 1947 return 0; 1948} 1949_ACEOF 1950if ac_fn_c_try_compile "$LINENO"; then : 1951 eval "$3=yes" 1952else 1953 eval "$3=no" 1954fi 1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1956fi 1957eval ac_res=\$$3 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1959$as_echo "$ac_res" >&6; } 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1961 1962} # ac_fn_c_check_decl 1963 1964# ac_fn_c_check_func LINENO FUNC VAR 1965# ---------------------------------- 1966# Tests whether FUNC exists, setting the cache variable VAR accordingly 1967ac_fn_c_check_func () 1968{ 1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1971$as_echo_n "checking for $2... " >&6; } 1972if eval \${$3+:} false; then : 1973 $as_echo_n "(cached) " >&6 1974else 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1978 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1979#define $2 innocuous_$2 1980 1981/* System header to define __stub macros and hopefully few prototypes, 1982 which can conflict with char $2 (); below. 1983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1984 <limits.h> exists even on freestanding compilers. */ 1985 1986#ifdef __STDC__ 1987# include <limits.h> 1988#else 1989# include <assert.h> 1990#endif 1991 1992#undef $2 1993 1994/* Override any GCC internal prototype to avoid an error. 1995 Use char because int might match the return type of a GCC 1996 builtin and then its argument prototype would still apply. */ 1997#ifdef __cplusplus 1998extern "C" 1999#endif 2000char $2 (); 2001/* The GNU C library defines this for functions which it implements 2002 to always fail with ENOSYS. Some functions are actually named 2003 something starting with __ and the normal name is an alias. */ 2004#if defined __stub_$2 || defined __stub___$2 2005choke me 2006#endif 2007 2008int 2009main () 2010{ 2011return $2 (); 2012 ; 2013 return 0; 2014} 2015_ACEOF 2016if ac_fn_c_try_link "$LINENO"; then : 2017 eval "$3=yes" 2018else 2019 eval "$3=no" 2020fi 2021rm -f core conftest.err conftest.$ac_objext \ 2022 conftest$ac_exeext conftest.$ac_ext 2023fi 2024eval ac_res=\$$3 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2026$as_echo "$ac_res" >&6; } 2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2028 2029} # ac_fn_c_check_func 2030 2031# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2032# ---------------------------------------------------- 2033# Tries to find if the field MEMBER exists in type AGGR, after including 2034# INCLUDES, setting cache variable VAR accordingly. 2035ac_fn_c_check_member () 2036{ 2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2039$as_echo_n "checking for $2.$3... " >&6; } 2040if eval \${$4+:} false; then : 2041 $as_echo_n "(cached) " >&6 2042else 2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2044/* end confdefs.h. */ 2045$5 2046int 2047main () 2048{ 2049static $2 ac_aggr; 2050if (ac_aggr.$3) 2051return 0; 2052 ; 2053 return 0; 2054} 2055_ACEOF 2056if ac_fn_c_try_compile "$LINENO"; then : 2057 eval "$4=yes" 2058else 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061$5 2062int 2063main () 2064{ 2065static $2 ac_aggr; 2066if (sizeof ac_aggr.$3) 2067return 0; 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_compile "$LINENO"; then : 2073 eval "$4=yes" 2074else 2075 eval "$4=no" 2076fi 2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2078fi 2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2080fi 2081eval ac_res=\$$4 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2083$as_echo "$ac_res" >&6; } 2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2085 2086} # ac_fn_c_check_member 2087 2088# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2089# -------------------------------------------- 2090# Tries to find the compile-time value of EXPR in a program that includes 2091# INCLUDES, setting VAR accordingly. Returns whether the value could be 2092# computed 2093ac_fn_c_compute_int () 2094{ 2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2096 if test "$cross_compiling" = yes; then 2097 # Depending upon the size, compute the lo and hi bounds. 2098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2099/* end confdefs.h. */ 2100$4 2101int 2102main () 2103{ 2104static int test_array [1 - 2 * !(($2) >= 0)]; 2105test_array [0] = 0; 2106return test_array [0]; 2107 2108 ; 2109 return 0; 2110} 2111_ACEOF 2112if ac_fn_c_try_compile "$LINENO"; then : 2113 ac_lo=0 ac_mid=0 2114 while :; do 2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2116/* end confdefs.h. */ 2117$4 2118int 2119main () 2120{ 2121static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2122test_array [0] = 0; 2123return test_array [0]; 2124 2125 ; 2126 return 0; 2127} 2128_ACEOF 2129if ac_fn_c_try_compile "$LINENO"; then : 2130 ac_hi=$ac_mid; break 2131else 2132 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2133 if test $ac_lo -le $ac_mid; then 2134 ac_lo= ac_hi= 2135 break 2136 fi 2137 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2138fi 2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2140 done 2141else 2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2143/* end confdefs.h. */ 2144$4 2145int 2146main () 2147{ 2148static int test_array [1 - 2 * !(($2) < 0)]; 2149test_array [0] = 0; 2150return test_array [0]; 2151 2152 ; 2153 return 0; 2154} 2155_ACEOF 2156if ac_fn_c_try_compile "$LINENO"; then : 2157 ac_hi=-1 ac_mid=-1 2158 while :; do 2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2160/* end confdefs.h. */ 2161$4 2162int 2163main () 2164{ 2165static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2166test_array [0] = 0; 2167return test_array [0]; 2168 2169 ; 2170 return 0; 2171} 2172_ACEOF 2173if ac_fn_c_try_compile "$LINENO"; then : 2174 ac_lo=$ac_mid; break 2175else 2176 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2177 if test $ac_mid -le $ac_hi; then 2178 ac_lo= ac_hi= 2179 break 2180 fi 2181 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184 done 2185else 2186 ac_lo= ac_hi= 2187fi 2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2191# Binary search between lo and hi bounds. 2192while test "x$ac_lo" != "x$ac_hi"; do 2193 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2195/* end confdefs.h. */ 2196$4 2197int 2198main () 2199{ 2200static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2201test_array [0] = 0; 2202return test_array [0]; 2203 2204 ; 2205 return 0; 2206} 2207_ACEOF 2208if ac_fn_c_try_compile "$LINENO"; then : 2209 ac_hi=$ac_mid 2210else 2211 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214done 2215case $ac_lo in #(( 2216?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2217'') ac_retval=1 ;; 2218esac 2219 else 2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2221/* end confdefs.h. */ 2222$4 2223static long int longval () { return $2; } 2224static unsigned long int ulongval () { return $2; } 2225#include <stdio.h> 2226#include <stdlib.h> 2227int 2228main () 2229{ 2230 2231 FILE *f = fopen ("conftest.val", "w"); 2232 if (! f) 2233 return 1; 2234 if (($2) < 0) 2235 { 2236 long int i = longval (); 2237 if (i != ($2)) 2238 return 1; 2239 fprintf (f, "%ld", i); 2240 } 2241 else 2242 { 2243 unsigned long int i = ulongval (); 2244 if (i != ($2)) 2245 return 1; 2246 fprintf (f, "%lu", i); 2247 } 2248 /* Do not output a trailing newline, as this causes \r\n confusion 2249 on some platforms. */ 2250 return ferror (f) || fclose (f) != 0; 2251 2252 ; 2253 return 0; 2254} 2255_ACEOF 2256if ac_fn_c_try_run "$LINENO"; then : 2257 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2258else 2259 ac_retval=1 2260fi 2261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2262 conftest.$ac_objext conftest.beam conftest.$ac_ext 2263rm -f conftest.val 2264 2265 fi 2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2267 as_fn_set_status $ac_retval 2268 2269} # ac_fn_c_compute_int 2270cat >config.log <<_ACEOF 2271This file contains any messages produced by compilers while 2272running configure, to aid debugging if configure makes a mistake. 2273 2274It was created by NSD $as_me 4.8.0, which was 2275generated by GNU Autoconf 2.69. Invocation command line was 2276 2277 $ $0 $@ 2278 2279_ACEOF 2280exec 5>>config.log 2281{ 2282cat <<_ASUNAME 2283## --------- ## 2284## Platform. ## 2285## --------- ## 2286 2287hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2288uname -m = `(uname -m) 2>/dev/null || echo unknown` 2289uname -r = `(uname -r) 2>/dev/null || echo unknown` 2290uname -s = `(uname -s) 2>/dev/null || echo unknown` 2291uname -v = `(uname -v) 2>/dev/null || echo unknown` 2292 2293/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2294/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2295 2296/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2297/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2298/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2299/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2300/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2301/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2302/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2303 2304_ASUNAME 2305 2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2307for as_dir in $PATH 2308do 2309 IFS=$as_save_IFS 2310 test -z "$as_dir" && as_dir=. 2311 $as_echo "PATH: $as_dir" 2312 done 2313IFS=$as_save_IFS 2314 2315} >&5 2316 2317cat >&5 <<_ACEOF 2318 2319 2320## ----------- ## 2321## Core tests. ## 2322## ----------- ## 2323 2324_ACEOF 2325 2326 2327# Keep a trace of the command line. 2328# Strip out --no-create and --no-recursion so they do not pile up. 2329# Strip out --silent because we don't want to record it for future runs. 2330# Also quote any args containing shell meta-characters. 2331# Make two passes to allow for proper duplicate-argument suppression. 2332ac_configure_args= 2333ac_configure_args0= 2334ac_configure_args1= 2335ac_must_keep_next=false 2336for ac_pass in 1 2 2337do 2338 for ac_arg 2339 do 2340 case $ac_arg in 2341 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2343 | -silent | --silent | --silen | --sile | --sil) 2344 continue ;; 2345 *\'*) 2346 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2347 esac 2348 case $ac_pass in 2349 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2350 2) 2351 as_fn_append ac_configure_args1 " '$ac_arg'" 2352 if test $ac_must_keep_next = true; then 2353 ac_must_keep_next=false # Got value, back to normal. 2354 else 2355 case $ac_arg in 2356 *=* | --config-cache | -C | -disable-* | --disable-* \ 2357 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2358 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2359 | -with-* | --with-* | -without-* | --without-* | --x) 2360 case "$ac_configure_args0 " in 2361 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2362 esac 2363 ;; 2364 -* ) ac_must_keep_next=true ;; 2365 esac 2366 fi 2367 as_fn_append ac_configure_args " '$ac_arg'" 2368 ;; 2369 esac 2370 done 2371done 2372{ ac_configure_args0=; unset ac_configure_args0;} 2373{ ac_configure_args1=; unset ac_configure_args1;} 2374 2375# When interrupted or exit'd, cleanup temporary files, and complete 2376# config.log. We remove comments because anyway the quotes in there 2377# would cause problems or look ugly. 2378# WARNING: Use '\'' to represent an apostrophe within the trap. 2379# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2380trap 'exit_status=$? 2381 # Save into config.log some information that might help in debugging. 2382 { 2383 echo 2384 2385 $as_echo "## ---------------- ## 2386## Cache variables. ## 2387## ---------------- ##" 2388 echo 2389 # The following way of writing the cache mishandles newlines in values, 2390( 2391 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2392 eval ac_val=\$$ac_var 2393 case $ac_val in #( 2394 *${as_nl}*) 2395 case $ac_var in #( 2396 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2397$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2398 esac 2399 case $ac_var in #( 2400 _ | IFS | as_nl) ;; #( 2401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2402 *) { eval $ac_var=; unset $ac_var;} ;; 2403 esac ;; 2404 esac 2405 done 2406 (set) 2>&1 | 2407 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2408 *${as_nl}ac_space=\ *) 2409 sed -n \ 2410 "s/'\''/'\''\\\\'\'''\''/g; 2411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2412 ;; #( 2413 *) 2414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2415 ;; 2416 esac | 2417 sort 2418) 2419 echo 2420 2421 $as_echo "## ----------------- ## 2422## Output variables. ## 2423## ----------------- ##" 2424 echo 2425 for ac_var in $ac_subst_vars 2426 do 2427 eval ac_val=\$$ac_var 2428 case $ac_val in 2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2430 esac 2431 $as_echo "$ac_var='\''$ac_val'\''" 2432 done | sort 2433 echo 2434 2435 if test -n "$ac_subst_files"; then 2436 $as_echo "## ------------------- ## 2437## File substitutions. ## 2438## ------------------- ##" 2439 echo 2440 for ac_var in $ac_subst_files 2441 do 2442 eval ac_val=\$$ac_var 2443 case $ac_val in 2444 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2445 esac 2446 $as_echo "$ac_var='\''$ac_val'\''" 2447 done | sort 2448 echo 2449 fi 2450 2451 if test -s confdefs.h; then 2452 $as_echo "## ----------- ## 2453## confdefs.h. ## 2454## ----------- ##" 2455 echo 2456 cat confdefs.h 2457 echo 2458 fi 2459 test "$ac_signal" != 0 && 2460 $as_echo "$as_me: caught signal $ac_signal" 2461 $as_echo "$as_me: exit $exit_status" 2462 } >&5 2463 rm -f core *.core core.conftest.* && 2464 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2465 exit $exit_status 2466' 0 2467for ac_signal in 1 2 13 15; do 2468 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2469done 2470ac_signal=0 2471 2472# confdefs.h avoids OS command line length limits that DEFS can exceed. 2473rm -f -r conftest* confdefs.h 2474 2475$as_echo "/* confdefs.h */" > confdefs.h 2476 2477# Predefined preprocessor variables. 2478 2479cat >>confdefs.h <<_ACEOF 2480#define PACKAGE_NAME "$PACKAGE_NAME" 2481_ACEOF 2482 2483cat >>confdefs.h <<_ACEOF 2484#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2485_ACEOF 2486 2487cat >>confdefs.h <<_ACEOF 2488#define PACKAGE_VERSION "$PACKAGE_VERSION" 2489_ACEOF 2490 2491cat >>confdefs.h <<_ACEOF 2492#define PACKAGE_STRING "$PACKAGE_STRING" 2493_ACEOF 2494 2495cat >>confdefs.h <<_ACEOF 2496#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2497_ACEOF 2498 2499cat >>confdefs.h <<_ACEOF 2500#define PACKAGE_URL "$PACKAGE_URL" 2501_ACEOF 2502 2503 2504# Let the site file select an alternate cache file if it wants to. 2505# Prefer an explicitly selected file to automatically selected ones. 2506ac_site_file1=NONE 2507ac_site_file2=NONE 2508if test -n "$CONFIG_SITE"; then 2509 # We do not want a PATH search for config.site. 2510 case $CONFIG_SITE in #(( 2511 -*) ac_site_file1=./$CONFIG_SITE;; 2512 */*) ac_site_file1=$CONFIG_SITE;; 2513 *) ac_site_file1=./$CONFIG_SITE;; 2514 esac 2515elif test "x$prefix" != xNONE; then 2516 ac_site_file1=$prefix/share/config.site 2517 ac_site_file2=$prefix/etc/config.site 2518else 2519 ac_site_file1=$ac_default_prefix/share/config.site 2520 ac_site_file2=$ac_default_prefix/etc/config.site 2521fi 2522for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2523do 2524 test "x$ac_site_file" = xNONE && continue 2525 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2527$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2528 sed 's/^/| /' "$ac_site_file" >&5 2529 . "$ac_site_file" \ 2530 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2532as_fn_error $? "failed to load site script $ac_site_file 2533See \`config.log' for more details" "$LINENO" 5; } 2534 fi 2535done 2536 2537if test -r "$cache_file"; then 2538 # Some versions of bash will fail to source /dev/null (special files 2539 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2540 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2542$as_echo "$as_me: loading cache $cache_file" >&6;} 2543 case $cache_file in 2544 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2545 *) . "./$cache_file";; 2546 esac 2547 fi 2548else 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2550$as_echo "$as_me: creating cache $cache_file" >&6;} 2551 >$cache_file 2552fi 2553 2554# Check that the precious variables saved in the cache have kept the same 2555# value. 2556ac_cache_corrupted=false 2557for ac_var in $ac_precious_vars; do 2558 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2559 eval ac_new_set=\$ac_env_${ac_var}_set 2560 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2561 eval ac_new_val=\$ac_env_${ac_var}_value 2562 case $ac_old_set,$ac_new_set in 2563 set,) 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2565$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2566 ac_cache_corrupted=: ;; 2567 ,set) 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2569$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2570 ac_cache_corrupted=: ;; 2571 ,);; 2572 *) 2573 if test "x$ac_old_val" != "x$ac_new_val"; then 2574 # differences in whitespace do not lead to failure. 2575 ac_old_val_w=`echo x $ac_old_val` 2576 ac_new_val_w=`echo x $ac_new_val` 2577 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2579$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2580 ac_cache_corrupted=: 2581 else 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2583$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2584 eval $ac_var=\$ac_old_val 2585 fi 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2587$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2589$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2590 fi;; 2591 esac 2592 # Pass precious variables to config.status. 2593 if test "$ac_new_set" = set; then 2594 case $ac_new_val in 2595 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2596 *) ac_arg=$ac_var=$ac_new_val ;; 2597 esac 2598 case " $ac_configure_args " in 2599 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2600 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2601 esac 2602 fi 2603done 2604if $ac_cache_corrupted; then 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2608$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2609 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2610fi 2611## -------------------- ## 2612## Main body of script. ## 2613## -------------------- ## 2614 2615ac_ext=c 2616ac_cpp='$CPP $CPPFLAGS' 2617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2619ac_compiler_gnu=$ac_cv_c_compiler_gnu 2620 2621 2622ac_config_headers="$ac_config_headers config.h" 2623 2624 2625# 2626# Setup the standard programs 2627# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html 2628 2629 2630 2631 2632 2633 2634 2635 2636cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 2637 2638cat >>confdefs.h <<_ACEOF 2639#define CONFCMDLINE "$cmdln" 2640_ACEOF 2641 2642 2643CFLAGS="$CFLAGS" 2644ac_ext=c 2645ac_cpp='$CPP $CPPFLAGS' 2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2648ac_compiler_gnu=$ac_cv_c_compiler_gnu 2649if test -n "$ac_tool_prefix"; then 2650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2651set dummy ${ac_tool_prefix}gcc; ac_word=$2 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2653$as_echo_n "checking for $ac_word... " >&6; } 2654if ${ac_cv_prog_CC+:} false; then : 2655 $as_echo_n "(cached) " >&6 2656else 2657 if test -n "$CC"; then 2658 ac_cv_prog_CC="$CC" # Let the user override the test. 2659else 2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2661for as_dir in $PATH 2662do 2663 IFS=$as_save_IFS 2664 test -z "$as_dir" && as_dir=. 2665 for ac_exec_ext in '' $ac_executable_extensions; do 2666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2667 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2669 break 2 2670 fi 2671done 2672 done 2673IFS=$as_save_IFS 2674 2675fi 2676fi 2677CC=$ac_cv_prog_CC 2678if test -n "$CC"; then 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2680$as_echo "$CC" >&6; } 2681else 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2683$as_echo "no" >&6; } 2684fi 2685 2686 2687fi 2688if test -z "$ac_cv_prog_CC"; then 2689 ac_ct_CC=$CC 2690 # Extract the first word of "gcc", so it can be a program name with args. 2691set dummy gcc; ac_word=$2 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2693$as_echo_n "checking for $ac_word... " >&6; } 2694if ${ac_cv_prog_ac_ct_CC+:} false; then : 2695 $as_echo_n "(cached) " >&6 2696else 2697 if test -n "$ac_ct_CC"; then 2698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2699else 2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2701for as_dir in $PATH 2702do 2703 IFS=$as_save_IFS 2704 test -z "$as_dir" && as_dir=. 2705 for ac_exec_ext in '' $ac_executable_extensions; do 2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2707 ac_cv_prog_ac_ct_CC="gcc" 2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2709 break 2 2710 fi 2711done 2712 done 2713IFS=$as_save_IFS 2714 2715fi 2716fi 2717ac_ct_CC=$ac_cv_prog_ac_ct_CC 2718if test -n "$ac_ct_CC"; then 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2720$as_echo "$ac_ct_CC" >&6; } 2721else 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2723$as_echo "no" >&6; } 2724fi 2725 2726 if test "x$ac_ct_CC" = x; then 2727 CC="" 2728 else 2729 case $cross_compiling:$ac_tool_warned in 2730yes:) 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2733ac_tool_warned=yes ;; 2734esac 2735 CC=$ac_ct_CC 2736 fi 2737else 2738 CC="$ac_cv_prog_CC" 2739fi 2740 2741if test -z "$CC"; then 2742 if test -n "$ac_tool_prefix"; then 2743 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2744set dummy ${ac_tool_prefix}cc; ac_word=$2 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2746$as_echo_n "checking for $ac_word... " >&6; } 2747if ${ac_cv_prog_CC+:} false; then : 2748 $as_echo_n "(cached) " >&6 2749else 2750 if test -n "$CC"; then 2751 ac_cv_prog_CC="$CC" # Let the user override the test. 2752else 2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2754for as_dir in $PATH 2755do 2756 IFS=$as_save_IFS 2757 test -z "$as_dir" && as_dir=. 2758 for ac_exec_ext in '' $ac_executable_extensions; do 2759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2760 ac_cv_prog_CC="${ac_tool_prefix}cc" 2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2762 break 2 2763 fi 2764done 2765 done 2766IFS=$as_save_IFS 2767 2768fi 2769fi 2770CC=$ac_cv_prog_CC 2771if test -n "$CC"; then 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2773$as_echo "$CC" >&6; } 2774else 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2776$as_echo "no" >&6; } 2777fi 2778 2779 2780 fi 2781fi 2782if test -z "$CC"; then 2783 # Extract the first word of "cc", so it can be a program name with args. 2784set dummy cc; ac_word=$2 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2786$as_echo_n "checking for $ac_word... " >&6; } 2787if ${ac_cv_prog_CC+:} false; then : 2788 $as_echo_n "(cached) " >&6 2789else 2790 if test -n "$CC"; then 2791 ac_cv_prog_CC="$CC" # Let the user override the test. 2792else 2793 ac_prog_rejected=no 2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795for as_dir in $PATH 2796do 2797 IFS=$as_save_IFS 2798 test -z "$as_dir" && as_dir=. 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2801 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2802 ac_prog_rejected=yes 2803 continue 2804 fi 2805 ac_cv_prog_CC="cc" 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809done 2810 done 2811IFS=$as_save_IFS 2812 2813if test $ac_prog_rejected = yes; then 2814 # We found a bogon in the path, so make sure we never use it. 2815 set dummy $ac_cv_prog_CC 2816 shift 2817 if test $# != 0; then 2818 # We chose a different compiler from the bogus one. 2819 # However, it has the same basename, so the bogon will be chosen 2820 # first if we set CC to just the basename; use the full file name. 2821 shift 2822 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2823 fi 2824fi 2825fi 2826fi 2827CC=$ac_cv_prog_CC 2828if test -n "$CC"; then 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2830$as_echo "$CC" >&6; } 2831else 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2833$as_echo "no" >&6; } 2834fi 2835 2836 2837fi 2838if test -z "$CC"; then 2839 if test -n "$ac_tool_prefix"; then 2840 for ac_prog in cl.exe 2841 do 2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2843set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2845$as_echo_n "checking for $ac_word... " >&6; } 2846if ${ac_cv_prog_CC+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848else 2849 if test -n "$CC"; then 2850 ac_cv_prog_CC="$CC" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 2855 IFS=$as_save_IFS 2856 test -z "$as_dir" && as_dir=. 2857 for ac_exec_ext in '' $ac_executable_extensions; do 2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2861 break 2 2862 fi 2863done 2864 done 2865IFS=$as_save_IFS 2866 2867fi 2868fi 2869CC=$ac_cv_prog_CC 2870if test -n "$CC"; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2872$as_echo "$CC" >&6; } 2873else 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2875$as_echo "no" >&6; } 2876fi 2877 2878 2879 test -n "$CC" && break 2880 done 2881fi 2882if test -z "$CC"; then 2883 ac_ct_CC=$CC 2884 for ac_prog in cl.exe 2885do 2886 # Extract the first word of "$ac_prog", so it can be a program name with args. 2887set dummy $ac_prog; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if ${ac_cv_prog_ac_ct_CC+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$ac_ct_CC"; then 2894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_ac_ct_CC="$ac_prog" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913ac_ct_CC=$ac_cv_prog_ac_ct_CC 2914if test -n "$ac_ct_CC"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2916$as_echo "$ac_ct_CC" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 2923 test -n "$ac_ct_CC" && break 2924done 2925 2926 if test "x$ac_ct_CC" = x; then 2927 CC="" 2928 else 2929 case $cross_compiling:$ac_tool_warned in 2930yes:) 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2933ac_tool_warned=yes ;; 2934esac 2935 CC=$ac_ct_CC 2936 fi 2937fi 2938 2939fi 2940 2941 2942test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2944as_fn_error $? "no acceptable C compiler found in \$PATH 2945See \`config.log' for more details" "$LINENO" 5; } 2946 2947# Provide some information about the compiler. 2948$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2949set X $ac_compile 2950ac_compiler=$2 2951for ac_option in --version -v -V -qversion; do 2952 { { ac_try="$ac_compiler $ac_option >&5" 2953case "(($ac_try" in 2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2955 *) ac_try_echo=$ac_try;; 2956esac 2957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2958$as_echo "$ac_try_echo"; } >&5 2959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2960 ac_status=$? 2961 if test -s conftest.err; then 2962 sed '10a\ 2963... rest of stderr output deleted ... 2964 10q' conftest.err >conftest.er1 2965 cat conftest.er1 >&5 2966 fi 2967 rm -f conftest.er1 conftest.err 2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2969 test $ac_status = 0; } 2970done 2971 2972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2973/* end confdefs.h. */ 2974 2975int 2976main () 2977{ 2978 2979 ; 2980 return 0; 2981} 2982_ACEOF 2983ac_clean_files_save=$ac_clean_files 2984ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2985# Try to create an executable without -o first, disregard a.out. 2986# It will help us diagnose broken compilers, and finding out an intuition 2987# of exeext. 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2989$as_echo_n "checking whether the C compiler works... " >&6; } 2990ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2991 2992# The possible output files: 2993ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2994 2995ac_rmfiles= 2996for ac_file in $ac_files 2997do 2998 case $ac_file in 2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3000 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3001 esac 3002done 3003rm -f $ac_rmfiles 3004 3005if { { ac_try="$ac_link_default" 3006case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009esac 3010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3011$as_echo "$ac_try_echo"; } >&5 3012 (eval "$ac_link_default") 2>&5 3013 ac_status=$? 3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3015 test $ac_status = 0; }; then : 3016 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3017# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3018# in a Makefile. We should not override ac_cv_exeext if it was cached, 3019# so that the user can short-circuit this test for compilers unknown to 3020# Autoconf. 3021for ac_file in $ac_files '' 3022do 3023 test -f "$ac_file" || continue 3024 case $ac_file in 3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3026 ;; 3027 [ab].out ) 3028 # We found the default executable, but exeext='' is most 3029 # certainly right. 3030 break;; 3031 *.* ) 3032 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3033 then :; else 3034 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3035 fi 3036 # We set ac_cv_exeext here because the later test for it is not 3037 # safe: cross compilers may not add the suffix if given an `-o' 3038 # argument, so we may need to know it at that point already. 3039 # Even if this section looks crufty: it has the advantage of 3040 # actually working. 3041 break;; 3042 * ) 3043 break;; 3044 esac 3045done 3046test "$ac_cv_exeext" = no && ac_cv_exeext= 3047 3048else 3049 ac_file='' 3050fi 3051if test -z "$ac_file"; then : 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054$as_echo "$as_me: failed program was:" >&5 3055sed 's/^/| /' conftest.$ac_ext >&5 3056 3057{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3059as_fn_error 77 "C compiler cannot create executables 3060See \`config.log' for more details" "$LINENO" 5; } 3061else 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3063$as_echo "yes" >&6; } 3064fi 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3066$as_echo_n "checking for C compiler default output file name... " >&6; } 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3068$as_echo "$ac_file" >&6; } 3069ac_exeext=$ac_cv_exeext 3070 3071rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3072ac_clean_files=$ac_clean_files_save 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3074$as_echo_n "checking for suffix of executables... " >&6; } 3075if { { ac_try="$ac_link" 3076case "(($ac_try" in 3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3078 *) ac_try_echo=$ac_try;; 3079esac 3080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3081$as_echo "$ac_try_echo"; } >&5 3082 (eval "$ac_link") 2>&5 3083 ac_status=$? 3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3085 test $ac_status = 0; }; then : 3086 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3087# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3088# work properly (i.e., refer to `conftest.exe'), while it won't with 3089# `rm'. 3090for ac_file in conftest.exe conftest conftest.*; do 3091 test -f "$ac_file" || continue 3092 case $ac_file in 3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3095 break;; 3096 * ) break;; 3097 esac 3098done 3099else 3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3102as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3103See \`config.log' for more details" "$LINENO" 5; } 3104fi 3105rm -f conftest conftest$ac_cv_exeext 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3107$as_echo "$ac_cv_exeext" >&6; } 3108 3109rm -f conftest.$ac_ext 3110EXEEXT=$ac_cv_exeext 3111ac_exeext=$EXEEXT 3112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3113/* end confdefs.h. */ 3114#include <stdio.h> 3115int 3116main () 3117{ 3118FILE *f = fopen ("conftest.out", "w"); 3119 return ferror (f) || fclose (f) != 0; 3120 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125ac_clean_files="$ac_clean_files conftest.out" 3126# Check that the compiler produces executables we can run. If not, either 3127# the compiler is broken, or we cross compile. 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3129$as_echo_n "checking whether we are cross compiling... " >&6; } 3130if test "$cross_compiling" != yes; then 3131 { { ac_try="$ac_link" 3132case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135esac 3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3137$as_echo "$ac_try_echo"; } >&5 3138 (eval "$ac_link") 2>&5 3139 ac_status=$? 3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3141 test $ac_status = 0; } 3142 if { ac_try='./conftest$ac_cv_exeext' 3143 { { case "(($ac_try" in 3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145 *) ac_try_echo=$ac_try;; 3146esac 3147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3148$as_echo "$ac_try_echo"; } >&5 3149 (eval "$ac_try") 2>&5 3150 ac_status=$? 3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3152 test $ac_status = 0; }; }; then 3153 cross_compiling=no 3154 else 3155 if test "$cross_compiling" = maybe; then 3156 cross_compiling=yes 3157 else 3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3160as_fn_error $? "cannot run C compiled programs. 3161If you meant to cross compile, use \`--host'. 3162See \`config.log' for more details" "$LINENO" 5; } 3163 fi 3164 fi 3165fi 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3167$as_echo "$cross_compiling" >&6; } 3168 3169rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3170ac_clean_files=$ac_clean_files_save 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3172$as_echo_n "checking for suffix of object files... " >&6; } 3173if ${ac_cv_objext+:} false; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3177/* end confdefs.h. */ 3178 3179int 3180main () 3181{ 3182 3183 ; 3184 return 0; 3185} 3186_ACEOF 3187rm -f conftest.o conftest.obj 3188if { { ac_try="$ac_compile" 3189case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3194$as_echo "$ac_try_echo"; } >&5 3195 (eval "$ac_compile") 2>&5 3196 ac_status=$? 3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3198 test $ac_status = 0; }; then : 3199 for ac_file in conftest.o conftest.obj conftest.*; do 3200 test -f "$ac_file" || continue; 3201 case $ac_file in 3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3203 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3204 break;; 3205 esac 3206done 3207else 3208 $as_echo "$as_me: failed program was:" >&5 3209sed 's/^/| /' conftest.$ac_ext >&5 3210 3211{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3213as_fn_error $? "cannot compute suffix of object files: cannot compile 3214See \`config.log' for more details" "$LINENO" 5; } 3215fi 3216rm -f conftest.$ac_cv_objext conftest.$ac_ext 3217fi 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3219$as_echo "$ac_cv_objext" >&6; } 3220OBJEXT=$ac_cv_objext 3221ac_objext=$OBJEXT 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3223$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3224if ${ac_cv_c_compiler_gnu+:} false; then : 3225 $as_echo_n "(cached) " >&6 3226else 3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3228/* end confdefs.h. */ 3229 3230int 3231main () 3232{ 3233#ifndef __GNUC__ 3234 choke me 3235#endif 3236 3237 ; 3238 return 0; 3239} 3240_ACEOF 3241if ac_fn_c_try_compile "$LINENO"; then : 3242 ac_compiler_gnu=yes 3243else 3244 ac_compiler_gnu=no 3245fi 3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3247ac_cv_c_compiler_gnu=$ac_compiler_gnu 3248 3249fi 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3251$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3252if test $ac_compiler_gnu = yes; then 3253 GCC=yes 3254else 3255 GCC= 3256fi 3257ac_test_CFLAGS=${CFLAGS+set} 3258ac_save_CFLAGS=$CFLAGS 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3260$as_echo_n "checking whether $CC accepts -g... " >&6; } 3261if ${ac_cv_prog_cc_g+:} false; then : 3262 $as_echo_n "(cached) " >&6 3263else 3264 ac_save_c_werror_flag=$ac_c_werror_flag 3265 ac_c_werror_flag=yes 3266 ac_cv_prog_cc_g=no 3267 CFLAGS="-g" 3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3269/* end confdefs.h. */ 3270 3271int 3272main () 3273{ 3274 3275 ; 3276 return 0; 3277} 3278_ACEOF 3279if ac_fn_c_try_compile "$LINENO"; then : 3280 ac_cv_prog_cc_g=yes 3281else 3282 CFLAGS="" 3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284/* end confdefs.h. */ 3285 3286int 3287main () 3288{ 3289 3290 ; 3291 return 0; 3292} 3293_ACEOF 3294if ac_fn_c_try_compile "$LINENO"; then : 3295 3296else 3297 ac_c_werror_flag=$ac_save_c_werror_flag 3298 CFLAGS="-g" 3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3300/* end confdefs.h. */ 3301 3302int 3303main () 3304{ 3305 3306 ; 3307 return 0; 3308} 3309_ACEOF 3310if ac_fn_c_try_compile "$LINENO"; then : 3311 ac_cv_prog_cc_g=yes 3312fi 3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3314fi 3315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3316fi 3317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3318 ac_c_werror_flag=$ac_save_c_werror_flag 3319fi 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3321$as_echo "$ac_cv_prog_cc_g" >&6; } 3322if test "$ac_test_CFLAGS" = set; then 3323 CFLAGS=$ac_save_CFLAGS 3324elif test $ac_cv_prog_cc_g = yes; then 3325 if test "$GCC" = yes; then 3326 CFLAGS="-g -O2" 3327 else 3328 CFLAGS="-g" 3329 fi 3330else 3331 if test "$GCC" = yes; then 3332 CFLAGS="-O2" 3333 else 3334 CFLAGS= 3335 fi 3336fi 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3338$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3339if ${ac_cv_prog_cc_c89+:} false; then : 3340 $as_echo_n "(cached) " >&6 3341else 3342 ac_cv_prog_cc_c89=no 3343ac_save_CC=$CC 3344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3345/* end confdefs.h. */ 3346#include <stdarg.h> 3347#include <stdio.h> 3348struct stat; 3349/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3350struct buf { int x; }; 3351FILE * (*rcsopen) (struct buf *, struct stat *, int); 3352static char *e (p, i) 3353 char **p; 3354 int i; 3355{ 3356 return p[i]; 3357} 3358static char *f (char * (*g) (char **, int), char **p, ...) 3359{ 3360 char *s; 3361 va_list v; 3362 va_start (v,p); 3363 s = g (p, va_arg (v,int)); 3364 va_end (v); 3365 return s; 3366} 3367 3368/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3369 function prototypes and stuff, but not '\xHH' hex character constants. 3370 These don't provoke an error unfortunately, instead are silently treated 3371 as 'x'. The following induces an error, until -std is added to get 3372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3373 array size at least. It's necessary to write '\x00'==0 to get something 3374 that's true only with -std. */ 3375int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3376 3377/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3378 inside strings and character constants. */ 3379#define FOO(x) 'x' 3380int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3381 3382int test (int i, double x); 3383struct s1 {int (*f) (int a);}; 3384struct s2 {int (*f) (double a);}; 3385int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3386int argc; 3387char **argv; 3388int 3389main () 3390{ 3391return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3392 ; 3393 return 0; 3394} 3395_ACEOF 3396for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3398do 3399 CC="$ac_save_CC $ac_arg" 3400 if ac_fn_c_try_compile "$LINENO"; then : 3401 ac_cv_prog_cc_c89=$ac_arg 3402fi 3403rm -f core conftest.err conftest.$ac_objext 3404 test "x$ac_cv_prog_cc_c89" != "xno" && break 3405done 3406rm -f conftest.$ac_ext 3407CC=$ac_save_CC 3408 3409fi 3410# AC_CACHE_VAL 3411case "x$ac_cv_prog_cc_c89" in 3412 x) 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3414$as_echo "none needed" >&6; } ;; 3415 xno) 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3417$as_echo "unsupported" >&6; } ;; 3418 *) 3419 CC="$CC $ac_cv_prog_cc_c89" 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3421$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3422esac 3423if test "x$ac_cv_prog_cc_c89" != xno; then : 3424 3425fi 3426 3427ac_ext=c 3428ac_cpp='$CPP $CPPFLAGS' 3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3431ac_compiler_gnu=$ac_cv_c_compiler_gnu 3432 3433 3434ac_ext=c 3435ac_cpp='$CPP $CPPFLAGS' 3436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3438ac_compiler_gnu=$ac_cv_c_compiler_gnu 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3440$as_echo_n "checking how to run the C preprocessor... " >&6; } 3441# On Suns, sometimes $CPP names a directory. 3442if test -n "$CPP" && test -d "$CPP"; then 3443 CPP= 3444fi 3445if test -z "$CPP"; then 3446 if ${ac_cv_prog_CPP+:} false; then : 3447 $as_echo_n "(cached) " >&6 3448else 3449 # Double quotes because CPP needs to be expanded 3450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3451 do 3452 ac_preproc_ok=false 3453for ac_c_preproc_warn_flag in '' yes 3454do 3455 # Use a header file that comes with gcc, so configuring glibc 3456 # with a fresh cross-compiler works. 3457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3458 # <limits.h> exists even on freestanding compilers. 3459 # On the NeXT, cc -E runs the code through the compiler's parser, 3460 # not just through cpp. "Syntax error" is here to catch this case. 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463#ifdef __STDC__ 3464# include <limits.h> 3465#else 3466# include <assert.h> 3467#endif 3468 Syntax error 3469_ACEOF 3470if ac_fn_c_try_cpp "$LINENO"; then : 3471 3472else 3473 # Broken: fails on valid input. 3474continue 3475fi 3476rm -f conftest.err conftest.i conftest.$ac_ext 3477 3478 # OK, works on sane cases. Now check whether nonexistent headers 3479 # can be detected and how. 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482#include <ac_nonexistent.h> 3483_ACEOF 3484if ac_fn_c_try_cpp "$LINENO"; then : 3485 # Broken: success on invalid input. 3486continue 3487else 3488 # Passes both tests. 3489ac_preproc_ok=: 3490break 3491fi 3492rm -f conftest.err conftest.i conftest.$ac_ext 3493 3494done 3495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3496rm -f conftest.i conftest.err conftest.$ac_ext 3497if $ac_preproc_ok; then : 3498 break 3499fi 3500 3501 done 3502 ac_cv_prog_CPP=$CPP 3503 3504fi 3505 CPP=$ac_cv_prog_CPP 3506else 3507 ac_cv_prog_CPP=$CPP 3508fi 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3510$as_echo "$CPP" >&6; } 3511ac_preproc_ok=false 3512for ac_c_preproc_warn_flag in '' yes 3513do 3514 # Use a header file that comes with gcc, so configuring glibc 3515 # with a fresh cross-compiler works. 3516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3517 # <limits.h> exists even on freestanding compilers. 3518 # On the NeXT, cc -E runs the code through the compiler's parser, 3519 # not just through cpp. "Syntax error" is here to catch this case. 3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3521/* end confdefs.h. */ 3522#ifdef __STDC__ 3523# include <limits.h> 3524#else 3525# include <assert.h> 3526#endif 3527 Syntax error 3528_ACEOF 3529if ac_fn_c_try_cpp "$LINENO"; then : 3530 3531else 3532 # Broken: fails on valid input. 3533continue 3534fi 3535rm -f conftest.err conftest.i conftest.$ac_ext 3536 3537 # OK, works on sane cases. Now check whether nonexistent headers 3538 # can be detected and how. 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540/* end confdefs.h. */ 3541#include <ac_nonexistent.h> 3542_ACEOF 3543if ac_fn_c_try_cpp "$LINENO"; then : 3544 # Broken: success on invalid input. 3545continue 3546else 3547 # Passes both tests. 3548ac_preproc_ok=: 3549break 3550fi 3551rm -f conftest.err conftest.i conftest.$ac_ext 3552 3553done 3554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3555rm -f conftest.i conftest.err conftest.$ac_ext 3556if $ac_preproc_ok; then : 3557 3558else 3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3561as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3562See \`config.log' for more details" "$LINENO" 5; } 3563fi 3564 3565ac_ext=c 3566ac_cpp='$CPP $CPPFLAGS' 3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3569ac_compiler_gnu=$ac_cv_c_compiler_gnu 3570 3571 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3573$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3574if ${ac_cv_path_GREP+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 if test -z "$GREP"; then 3578 ac_path_GREP_found=false 3579 # Loop through the user's path and test for each of PROGNAME-LIST 3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3582do 3583 IFS=$as_save_IFS 3584 test -z "$as_dir" && as_dir=. 3585 for ac_prog in grep ggrep; do 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3588 as_fn_executable_p "$ac_path_GREP" || continue 3589# Check for GNU ac_path_GREP and select it if it is found. 3590 # Check for GNU $ac_path_GREP 3591case `"$ac_path_GREP" --version 2>&1` in 3592*GNU*) 3593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3594*) 3595 ac_count=0 3596 $as_echo_n 0123456789 >"conftest.in" 3597 while : 3598 do 3599 cat "conftest.in" "conftest.in" >"conftest.tmp" 3600 mv "conftest.tmp" "conftest.in" 3601 cp "conftest.in" "conftest.nl" 3602 $as_echo 'GREP' >> "conftest.nl" 3603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3605 as_fn_arith $ac_count + 1 && ac_count=$as_val 3606 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3607 # Best one so far, save it but keep looking for a better one 3608 ac_cv_path_GREP="$ac_path_GREP" 3609 ac_path_GREP_max=$ac_count 3610 fi 3611 # 10*(2^10) chars as input seems more than enough 3612 test $ac_count -gt 10 && break 3613 done 3614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3615esac 3616 3617 $ac_path_GREP_found && break 3 3618 done 3619 done 3620 done 3621IFS=$as_save_IFS 3622 if test -z "$ac_cv_path_GREP"; then 3623 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3624 fi 3625else 3626 ac_cv_path_GREP=$GREP 3627fi 3628 3629fi 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3631$as_echo "$ac_cv_path_GREP" >&6; } 3632 GREP="$ac_cv_path_GREP" 3633 3634 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3636$as_echo_n "checking for egrep... " >&6; } 3637if ${ac_cv_path_EGREP+:} false; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3641 then ac_cv_path_EGREP="$GREP -E" 3642 else 3643 if test -z "$EGREP"; then 3644 ac_path_EGREP_found=false 3645 # Loop through the user's path and test for each of PROGNAME-LIST 3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3648do 3649 IFS=$as_save_IFS 3650 test -z "$as_dir" && as_dir=. 3651 for ac_prog in egrep; do 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3654 as_fn_executable_p "$ac_path_EGREP" || continue 3655# Check for GNU ac_path_EGREP and select it if it is found. 3656 # Check for GNU $ac_path_EGREP 3657case `"$ac_path_EGREP" --version 2>&1` in 3658*GNU*) 3659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3660*) 3661 ac_count=0 3662 $as_echo_n 0123456789 >"conftest.in" 3663 while : 3664 do 3665 cat "conftest.in" "conftest.in" >"conftest.tmp" 3666 mv "conftest.tmp" "conftest.in" 3667 cp "conftest.in" "conftest.nl" 3668 $as_echo 'EGREP' >> "conftest.nl" 3669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3671 as_fn_arith $ac_count + 1 && ac_count=$as_val 3672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3673 # Best one so far, save it but keep looking for a better one 3674 ac_cv_path_EGREP="$ac_path_EGREP" 3675 ac_path_EGREP_max=$ac_count 3676 fi 3677 # 10*(2^10) chars as input seems more than enough 3678 test $ac_count -gt 10 && break 3679 done 3680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3681esac 3682 3683 $ac_path_EGREP_found && break 3 3684 done 3685 done 3686 done 3687IFS=$as_save_IFS 3688 if test -z "$ac_cv_path_EGREP"; then 3689 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3690 fi 3691else 3692 ac_cv_path_EGREP=$EGREP 3693fi 3694 3695 fi 3696fi 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3698$as_echo "$ac_cv_path_EGREP" >&6; } 3699 EGREP="$ac_cv_path_EGREP" 3700 3701 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3703$as_echo_n "checking for ANSI C header files... " >&6; } 3704if ${ac_cv_header_stdc+:} false; then : 3705 $as_echo_n "(cached) " >&6 3706else 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709#include <stdlib.h> 3710#include <stdarg.h> 3711#include <string.h> 3712#include <float.h> 3713 3714int 3715main () 3716{ 3717 3718 ; 3719 return 0; 3720} 3721_ACEOF 3722if ac_fn_c_try_compile "$LINENO"; then : 3723 ac_cv_header_stdc=yes 3724else 3725 ac_cv_header_stdc=no 3726fi 3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3728 3729if test $ac_cv_header_stdc = yes; then 3730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3732/* end confdefs.h. */ 3733#include <string.h> 3734 3735_ACEOF 3736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3737 $EGREP "memchr" >/dev/null 2>&1; then : 3738 3739else 3740 ac_cv_header_stdc=no 3741fi 3742rm -f conftest* 3743 3744fi 3745 3746if test $ac_cv_header_stdc = yes; then 3747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749/* end confdefs.h. */ 3750#include <stdlib.h> 3751 3752_ACEOF 3753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3754 $EGREP "free" >/dev/null 2>&1; then : 3755 3756else 3757 ac_cv_header_stdc=no 3758fi 3759rm -f conftest* 3760 3761fi 3762 3763if test $ac_cv_header_stdc = yes; then 3764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3765 if test "$cross_compiling" = yes; then : 3766 : 3767else 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770#include <ctype.h> 3771#include <stdlib.h> 3772#if ((' ' & 0x0FF) == 0x020) 3773# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3774# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3775#else 3776# define ISLOWER(c) \ 3777 (('a' <= (c) && (c) <= 'i') \ 3778 || ('j' <= (c) && (c) <= 'r') \ 3779 || ('s' <= (c) && (c) <= 'z')) 3780# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3781#endif 3782 3783#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3784int 3785main () 3786{ 3787 int i; 3788 for (i = 0; i < 256; i++) 3789 if (XOR (islower (i), ISLOWER (i)) 3790 || toupper (i) != TOUPPER (i)) 3791 return 2; 3792 return 0; 3793} 3794_ACEOF 3795if ac_fn_c_try_run "$LINENO"; then : 3796 3797else 3798 ac_cv_header_stdc=no 3799fi 3800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3801 conftest.$ac_objext conftest.beam conftest.$ac_ext 3802fi 3803 3804fi 3805fi 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3807$as_echo "$ac_cv_header_stdc" >&6; } 3808if test $ac_cv_header_stdc = yes; then 3809 3810$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3811 3812fi 3813 3814# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3815for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3816 inttypes.h stdint.h unistd.h 3817do : 3818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3819ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3820" 3821if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3822 cat >>confdefs.h <<_ACEOF 3823#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3824_ACEOF 3825 3826fi 3827 3828done 3829 3830 3831 3832 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3833if test "x$ac_cv_header_minix_config_h" = xyes; then : 3834 MINIX=yes 3835else 3836 MINIX= 3837fi 3838 3839 3840 if test "$MINIX" = yes; then 3841 3842$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3843 3844 3845$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3846 3847 3848$as_echo "#define _MINIX 1" >>confdefs.h 3849 3850 fi 3851 3852 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3854$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3855if ${ac_cv_safe_to_define___extensions__+:} false; then : 3856 $as_echo_n "(cached) " >&6 3857else 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859/* end confdefs.h. */ 3860 3861# define __EXTENSIONS__ 1 3862 $ac_includes_default 3863int 3864main () 3865{ 3866 3867 ; 3868 return 0; 3869} 3870_ACEOF 3871if ac_fn_c_try_compile "$LINENO"; then : 3872 ac_cv_safe_to_define___extensions__=yes 3873else 3874 ac_cv_safe_to_define___extensions__=no 3875fi 3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3877fi 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3879$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3880 test $ac_cv_safe_to_define___extensions__ = yes && 3881 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3882 3883 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3884 3885 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3886 3887 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3888 3889 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3890 3891 3892if test "$ac_cv_header_minix_config_h" = "yes"; then 3893 3894$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 3895 3896fi 3897 3898case "$prefix" in 3899 NONE) 3900 case "$sysconfdir" in 3901 '${prefix}/etc') 3902 sysconfdir=/etc 3903 ;; 3904 esac 3905 case "$localstatedir" in 3906 '${prefix}/var') 3907 localstatedir=/var 3908 ;; 3909 esac 3910 ;; 3911esac 3912 3913# 3914# Determine configuration directory 3915# 3916configdir=$sysconfdir/nsd 3917 3918# Check whether --with-configdir was given. 3919if test "${with_configdir+set}" = set; then : 3920 withval=$with_configdir; configdir=$withval 3921fi 3922 3923 3924cat >>confdefs.h <<_ACEOF 3925#define CONFIGDIR "`eval echo $configdir`" 3926_ACEOF 3927 3928 3929 3930# 3931# Determine configuration file 3932nsd_conf_file=${configdir}/nsd.conf 3933 3934# Check whether --with-nsd_conf_file was given. 3935if test "${with_nsd_conf_file+set}" = set; then : 3936 withval=$with_nsd_conf_file; nsd_conf_file=$withval 3937fi 3938 3939 3940# the eval is to evaluate shell expansion twice, once 3941# for $nsd_conf_file and once for the ${prefix} within it. 3942 3943cat >>confdefs.h <<_ACEOF 3944#define CONFIGFILE "`eval echo $nsd_conf_file`" 3945_ACEOF 3946 3947 3948# 3949# Default logfile 3950# 3951logfile=${localstatedir}/log/nsd.log 3952 3953# Check whether --with-logfile was given. 3954if test "${with_logfile+set}" = set; then : 3955 withval=$with_logfile; logfile=$withval 3956fi 3957 3958 3959 3960# 3961# Database directory 3962# 3963dbdir=${localstatedir}/db/nsd 3964 3965# 3966# Determine the pidfile location. Check if /var/run exists, if so set pidfile 3967# to /var/run/nsd.pid by default 3968# 3969if test -d ${localstatedir}/run; then 3970 pidfile=${localstatedir}/run/nsd.pid 3971else 3972 pidfile=${dbdir}/nsd.pid 3973fi 3974 3975# Check whether --with-pidfile was given. 3976if test "${with_pidfile+set}" = set; then : 3977 withval=$with_pidfile; pidfile=$withval 3978fi 3979 3980 3981 3982cat >>confdefs.h <<_ACEOF 3983#define PIDFILE "`eval echo $pidfile`" 3984_ACEOF 3985 3986 3987 3988# Check whether --with-dbfile was given. 3989if test "${with_dbfile+set}" = set; then : 3990 withval=$with_dbfile; 3991fi 3992 3993 3994piddir=`dirname $pidfile` 3995 3996 3997# 3998# Determine the default directory for the zone files 3999# 4000zonesdir=$configdir 4001 4002# Check whether --with-zonesdir was given. 4003if test "${with_zonesdir+set}" = set; then : 4004 withval=$with_zonesdir; zonesdir=$withval 4005fi 4006 4007 4008 4009cat >>confdefs.h <<_ACEOF 4010#define ZONESDIR "`eval echo $zonesdir`" 4011_ACEOF 4012 4013 4014# default xfrd file location. 4015xfrdfile=${dbdir}/xfrd.state 4016 4017# Check whether --with-xfrdfile was given. 4018if test "${with_xfrdfile+set}" = set; then : 4019 withval=$with_xfrdfile; xfrdfile=$withval 4020fi 4021 4022 4023cat >>confdefs.h <<_ACEOF 4024#define XFRDFILE "`eval echo $xfrdfile`" 4025_ACEOF 4026 4027 4028 4029# default zonelist file location. 4030zonelistfile=${dbdir}/zone.list 4031 4032# Check whether --with-zonelistfile was given. 4033if test "${with_zonelistfile+set}" = set; then : 4034 withval=$with_zonelistfile; zonelistfile=$withval 4035fi 4036 4037 4038cat >>confdefs.h <<_ACEOF 4039#define ZONELISTFILE "`eval echo $zonelistfile`" 4040_ACEOF 4041 4042 4043 4044# default xfr dir location. 4045xfrdir="/tmp" 4046 4047# Check whether --with-xfrdir was given. 4048if test "${with_xfrdir+set}" = set; then : 4049 withval=$with_xfrdir; xfrdir=$withval 4050fi 4051 4052 4053cat >>confdefs.h <<_ACEOF 4054#define XFRDIR "`eval echo $xfrdir`" 4055_ACEOF 4056 4057 4058 4059# nsd sbin location. tmpinstantiate execprefix with defaults if not yet done. 4060if test "x${exec_prefix}" = "xNONE"; then 4061 if test "x${prefix}" = "xNONE"; then exec_prefix="$ac_default_prefix" 4062 else exec_prefix="${prefix}"; fi 4063 nsd_start_path="`eval echo $sbindir`/nsd" 4064 exec_prefix="NONE" 4065else 4066 nsd_start_path="`eval echo $sbindir`/nsd" 4067fi 4068 4069cat >>confdefs.h <<_ACEOF 4070#define NSD_START_PATH "$nsd_start_path" 4071_ACEOF 4072 4073 4074# 4075# Determine default chroot directory 4076# 4077 4078# Check whether --with-chroot was given. 4079if test "${with_chroot+set}" = set; then : 4080 withval=$with_chroot; 4081 chrootdir=$withval 4082 4083cat >>confdefs.h <<_ACEOF 4084#define CHROOTDIR "`eval echo $chrootdir`" 4085_ACEOF 4086 4087 4088fi 4089 4090 4091 4092# 4093# Determine the user name to drop privileges to 4094# 4095user=nsd 4096 4097# Check whether --with-user was given. 4098if test "${with_user+set}" = set; then : 4099 withval=$with_user; user=$withval 4100fi 4101 4102 4103 4104cat >>confdefs.h <<_ACEOF 4105#define USER "$user" 4106_ACEOF 4107 4108 4109 case $ac_cv_prog_cc_stdc in #( 4110 no) : 4111 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4112 *) : 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4114$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4115if ${ac_cv_prog_cc_c99+:} false; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 ac_cv_prog_cc_c99=no 4119ac_save_CC=$CC 4120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122#include <stdarg.h> 4123#include <stdbool.h> 4124#include <stdlib.h> 4125#include <wchar.h> 4126#include <stdio.h> 4127 4128// Check varargs macros. These examples are taken from C99 6.10.3.5. 4129#define debug(...) fprintf (stderr, __VA_ARGS__) 4130#define showlist(...) puts (#__VA_ARGS__) 4131#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4132static void 4133test_varargs_macros (void) 4134{ 4135 int x = 1234; 4136 int y = 5678; 4137 debug ("Flag"); 4138 debug ("X = %d\n", x); 4139 showlist (The first, second, and third items.); 4140 report (x>y, "x is %d but y is %d", x, y); 4141} 4142 4143// Check long long types. 4144#define BIG64 18446744073709551615ull 4145#define BIG32 4294967295ul 4146#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4147#if !BIG_OK 4148 your preprocessor is broken; 4149#endif 4150#if BIG_OK 4151#else 4152 your preprocessor is broken; 4153#endif 4154static long long int bignum = -9223372036854775807LL; 4155static unsigned long long int ubignum = BIG64; 4156 4157struct incomplete_array 4158{ 4159 int datasize; 4160 double data[]; 4161}; 4162 4163struct named_init { 4164 int number; 4165 const wchar_t *name; 4166 double average; 4167}; 4168 4169typedef const char *ccp; 4170 4171static inline int 4172test_restrict (ccp restrict text) 4173{ 4174 // See if C++-style comments work. 4175 // Iterate through items via the restricted pointer. 4176 // Also check for declarations in for loops. 4177 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4178 continue; 4179 return 0; 4180} 4181 4182// Check varargs and va_copy. 4183static void 4184test_varargs (const char *format, ...) 4185{ 4186 va_list args; 4187 va_start (args, format); 4188 va_list args_copy; 4189 va_copy (args_copy, args); 4190 4191 const char *str; 4192 int number; 4193 float fnumber; 4194 4195 while (*format) 4196 { 4197 switch (*format++) 4198 { 4199 case 's': // string 4200 str = va_arg (args_copy, const char *); 4201 break; 4202 case 'd': // int 4203 number = va_arg (args_copy, int); 4204 break; 4205 case 'f': // float 4206 fnumber = va_arg (args_copy, double); 4207 break; 4208 default: 4209 break; 4210 } 4211 } 4212 va_end (args_copy); 4213 va_end (args); 4214} 4215 4216int 4217main () 4218{ 4219 4220 // Check bool. 4221 _Bool success = false; 4222 4223 // Check restrict. 4224 if (test_restrict ("String literal") == 0) 4225 success = true; 4226 char *restrict newvar = "Another string"; 4227 4228 // Check varargs. 4229 test_varargs ("s, d' f .", "string", 65, 34.234); 4230 test_varargs_macros (); 4231 4232 // Check flexible array members. 4233 struct incomplete_array *ia = 4234 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4235 ia->datasize = 10; 4236 for (int i = 0; i < ia->datasize; ++i) 4237 ia->data[i] = i * 1.234; 4238 4239 // Check named initializers. 4240 struct named_init ni = { 4241 .number = 34, 4242 .name = L"Test wide string", 4243 .average = 543.34343, 4244 }; 4245 4246 ni.number = 58; 4247 4248 int dynamic_array[ni.number]; 4249 dynamic_array[ni.number - 1] = 543; 4250 4251 // work around unused variable warnings 4252 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4253 || dynamic_array[ni.number - 1] != 543); 4254 4255 ; 4256 return 0; 4257} 4258_ACEOF 4259for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4260do 4261 CC="$ac_save_CC $ac_arg" 4262 if ac_fn_c_try_compile "$LINENO"; then : 4263 ac_cv_prog_cc_c99=$ac_arg 4264fi 4265rm -f core conftest.err conftest.$ac_objext 4266 test "x$ac_cv_prog_cc_c99" != "xno" && break 4267done 4268rm -f conftest.$ac_ext 4269CC=$ac_save_CC 4270 4271fi 4272# AC_CACHE_VAL 4273case "x$ac_cv_prog_cc_c99" in 4274 x) 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4276$as_echo "none needed" >&6; } ;; 4277 xno) 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4279$as_echo "unsupported" >&6; } ;; 4280 *) 4281 CC="$CC $ac_cv_prog_cc_c99" 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4283$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4284esac 4285if test "x$ac_cv_prog_cc_c99" != xno; then : 4286 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4287else 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4289$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4290if ${ac_cv_prog_cc_c89+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 ac_cv_prog_cc_c89=no 4294ac_save_CC=$CC 4295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296/* end confdefs.h. */ 4297#include <stdarg.h> 4298#include <stdio.h> 4299struct stat; 4300/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4301struct buf { int x; }; 4302FILE * (*rcsopen) (struct buf *, struct stat *, int); 4303static char *e (p, i) 4304 char **p; 4305 int i; 4306{ 4307 return p[i]; 4308} 4309static char *f (char * (*g) (char **, int), char **p, ...) 4310{ 4311 char *s; 4312 va_list v; 4313 va_start (v,p); 4314 s = g (p, va_arg (v,int)); 4315 va_end (v); 4316 return s; 4317} 4318 4319/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4320 function prototypes and stuff, but not '\xHH' hex character constants. 4321 These don't provoke an error unfortunately, instead are silently treated 4322 as 'x'. The following induces an error, until -std is added to get 4323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4324 array size at least. It's necessary to write '\x00'==0 to get something 4325 that's true only with -std. */ 4326int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4327 4328/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4329 inside strings and character constants. */ 4330#define FOO(x) 'x' 4331int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4332 4333int test (int i, double x); 4334struct s1 {int (*f) (int a);}; 4335struct s2 {int (*f) (double a);}; 4336int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4337int argc; 4338char **argv; 4339int 4340main () 4341{ 4342return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4343 ; 4344 return 0; 4345} 4346_ACEOF 4347for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4349do 4350 CC="$ac_save_CC $ac_arg" 4351 if ac_fn_c_try_compile "$LINENO"; then : 4352 ac_cv_prog_cc_c89=$ac_arg 4353fi 4354rm -f core conftest.err conftest.$ac_objext 4355 test "x$ac_cv_prog_cc_c89" != "xno" && break 4356done 4357rm -f conftest.$ac_ext 4358CC=$ac_save_CC 4359 4360fi 4361# AC_CACHE_VAL 4362case "x$ac_cv_prog_cc_c89" in 4363 x) 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4365$as_echo "none needed" >&6; } ;; 4366 xno) 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4368$as_echo "unsupported" >&6; } ;; 4369 *) 4370 CC="$CC $ac_cv_prog_cc_c89" 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4372$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4373esac 4374if test "x$ac_cv_prog_cc_c89" != xno; then : 4375 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4376else 4377 ac_cv_prog_cc_stdc=no 4378fi 4379 4380fi 4381 ;; 4382esac 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4384$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4385 if ${ac_cv_prog_cc_stdc+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387fi 4388 4389 case $ac_cv_prog_cc_stdc in #( 4390 no) : 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4392$as_echo "unsupported" >&6; } ;; #( 4393 '') : 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4395$as_echo "none needed" >&6; } ;; #( 4396 *) : 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4398$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4399esac 4400 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4402$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4403if ${ac_cv_path_SED+:} false; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4407 for ac_i in 1 2 3 4 5 6 7; do 4408 ac_script="$ac_script$as_nl$ac_script" 4409 done 4410 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4411 { ac_script=; unset ac_script;} 4412 if test -z "$SED"; then 4413 ac_path_SED_found=false 4414 # Loop through the user's path and test for each of PROGNAME-LIST 4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4416for as_dir in $PATH 4417do 4418 IFS=$as_save_IFS 4419 test -z "$as_dir" && as_dir=. 4420 for ac_prog in sed gsed; do 4421 for ac_exec_ext in '' $ac_executable_extensions; do 4422 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4423 as_fn_executable_p "$ac_path_SED" || continue 4424# Check for GNU ac_path_SED and select it if it is found. 4425 # Check for GNU $ac_path_SED 4426case `"$ac_path_SED" --version 2>&1` in 4427*GNU*) 4428 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4429*) 4430 ac_count=0 4431 $as_echo_n 0123456789 >"conftest.in" 4432 while : 4433 do 4434 cat "conftest.in" "conftest.in" >"conftest.tmp" 4435 mv "conftest.tmp" "conftest.in" 4436 cp "conftest.in" "conftest.nl" 4437 $as_echo '' >> "conftest.nl" 4438 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4440 as_fn_arith $ac_count + 1 && ac_count=$as_val 4441 if test $ac_count -gt ${ac_path_SED_max-0}; then 4442 # Best one so far, save it but keep looking for a better one 4443 ac_cv_path_SED="$ac_path_SED" 4444 ac_path_SED_max=$ac_count 4445 fi 4446 # 10*(2^10) chars as input seems more than enough 4447 test $ac_count -gt 10 && break 4448 done 4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4450esac 4451 4452 $ac_path_SED_found && break 3 4453 done 4454 done 4455 done 4456IFS=$as_save_IFS 4457 if test -z "$ac_cv_path_SED"; then 4458 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4459 fi 4460else 4461 ac_cv_path_SED=$SED 4462fi 4463 4464fi 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4466$as_echo "$ac_cv_path_SED" >&6; } 4467 SED="$ac_cv_path_SED" 4468 rm -f conftest.sed 4469 4470for ac_prog in gawk mawk nawk awk 4471do 4472 # Extract the first word of "$ac_prog", so it can be a program name with args. 4473set dummy $ac_prog; ac_word=$2 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4475$as_echo_n "checking for $ac_word... " >&6; } 4476if ${ac_cv_prog_AWK+:} false; then : 4477 $as_echo_n "(cached) " >&6 4478else 4479 if test -n "$AWK"; then 4480 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4481else 4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483for as_dir in $PATH 4484do 4485 IFS=$as_save_IFS 4486 test -z "$as_dir" && as_dir=. 4487 for ac_exec_ext in '' $ac_executable_extensions; do 4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4489 ac_cv_prog_AWK="$ac_prog" 4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4491 break 2 4492 fi 4493done 4494 done 4495IFS=$as_save_IFS 4496 4497fi 4498fi 4499AWK=$ac_cv_prog_AWK 4500if test -n "$AWK"; then 4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4502$as_echo "$AWK" >&6; } 4503else 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4505$as_echo "no" >&6; } 4506fi 4507 4508 4509 test -n "$AWK" && break 4510done 4511 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4513$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4514if ${ac_cv_path_GREP+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 if test -z "$GREP"; then 4518 ac_path_GREP_found=false 4519 # Loop through the user's path and test for each of PROGNAME-LIST 4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4521for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4522do 4523 IFS=$as_save_IFS 4524 test -z "$as_dir" && as_dir=. 4525 for ac_prog in grep ggrep; do 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4528 as_fn_executable_p "$ac_path_GREP" || continue 4529# Check for GNU ac_path_GREP and select it if it is found. 4530 # Check for GNU $ac_path_GREP 4531case `"$ac_path_GREP" --version 2>&1` in 4532*GNU*) 4533 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4534*) 4535 ac_count=0 4536 $as_echo_n 0123456789 >"conftest.in" 4537 while : 4538 do 4539 cat "conftest.in" "conftest.in" >"conftest.tmp" 4540 mv "conftest.tmp" "conftest.in" 4541 cp "conftest.in" "conftest.nl" 4542 $as_echo 'GREP' >> "conftest.nl" 4543 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4545 as_fn_arith $ac_count + 1 && ac_count=$as_val 4546 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4547 # Best one so far, save it but keep looking for a better one 4548 ac_cv_path_GREP="$ac_path_GREP" 4549 ac_path_GREP_max=$ac_count 4550 fi 4551 # 10*(2^10) chars as input seems more than enough 4552 test $ac_count -gt 10 && break 4553 done 4554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4555esac 4556 4557 $ac_path_GREP_found && break 3 4558 done 4559 done 4560 done 4561IFS=$as_save_IFS 4562 if test -z "$ac_cv_path_GREP"; then 4563 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4564 fi 4565else 4566 ac_cv_path_GREP=$GREP 4567fi 4568 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4571$as_echo "$ac_cv_path_GREP" >&6; } 4572 GREP="$ac_cv_path_GREP" 4573 4574 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4576$as_echo_n "checking for egrep... " >&6; } 4577if ${ac_cv_path_EGREP+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4581 then ac_cv_path_EGREP="$GREP -E" 4582 else 4583 if test -z "$EGREP"; then 4584 ac_path_EGREP_found=false 4585 # Loop through the user's path and test for each of PROGNAME-LIST 4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4588do 4589 IFS=$as_save_IFS 4590 test -z "$as_dir" && as_dir=. 4591 for ac_prog in egrep; do 4592 for ac_exec_ext in '' $ac_executable_extensions; do 4593 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4594 as_fn_executable_p "$ac_path_EGREP" || continue 4595# Check for GNU ac_path_EGREP and select it if it is found. 4596 # Check for GNU $ac_path_EGREP 4597case `"$ac_path_EGREP" --version 2>&1` in 4598*GNU*) 4599 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4600*) 4601 ac_count=0 4602 $as_echo_n 0123456789 >"conftest.in" 4603 while : 4604 do 4605 cat "conftest.in" "conftest.in" >"conftest.tmp" 4606 mv "conftest.tmp" "conftest.in" 4607 cp "conftest.in" "conftest.nl" 4608 $as_echo 'EGREP' >> "conftest.nl" 4609 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4611 as_fn_arith $ac_count + 1 && ac_count=$as_val 4612 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4613 # Best one so far, save it but keep looking for a better one 4614 ac_cv_path_EGREP="$ac_path_EGREP" 4615 ac_path_EGREP_max=$ac_count 4616 fi 4617 # 10*(2^10) chars as input seems more than enough 4618 test $ac_count -gt 10 && break 4619 done 4620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4621esac 4622 4623 $ac_path_EGREP_found && break 3 4624 done 4625 done 4626 done 4627IFS=$as_save_IFS 4628 if test -z "$ac_cv_path_EGREP"; then 4629 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4630 fi 4631else 4632 ac_cv_path_EGREP=$EGREP 4633fi 4634 4635 fi 4636fi 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4638$as_echo "$ac_cv_path_EGREP" >&6; } 4639 EGREP="$ac_cv_path_EGREP" 4640 4641 4642for ac_prog in flex lex 4643do 4644 # Extract the first word of "$ac_prog", so it can be a program name with args. 4645set dummy $ac_prog; ac_word=$2 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4647$as_echo_n "checking for $ac_word... " >&6; } 4648if ${ac_cv_prog_LEX+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 if test -n "$LEX"; then 4652 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4653else 4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4655for as_dir in $PATH 4656do 4657 IFS=$as_save_IFS 4658 test -z "$as_dir" && as_dir=. 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4661 ac_cv_prog_LEX="$ac_prog" 4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4663 break 2 4664 fi 4665done 4666 done 4667IFS=$as_save_IFS 4668 4669fi 4670fi 4671LEX=$ac_cv_prog_LEX 4672if test -n "$LEX"; then 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4674$as_echo "$LEX" >&6; } 4675else 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4677$as_echo "no" >&6; } 4678fi 4679 4680 4681 test -n "$LEX" && break 4682done 4683test -n "$LEX" || LEX=":" 4684 4685if test "x$LEX" != "x:"; then 4686 cat >conftest.l <<_ACEOF 4687%% 4688a { ECHO; } 4689b { REJECT; } 4690c { yymore (); } 4691d { yyless (1); } 4692e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 4693 yyless ((input () != 0)); } 4694f { unput (yytext[0]); } 4695. { BEGIN INITIAL; } 4696%% 4697#ifdef YYTEXT_POINTER 4698extern char *yytext; 4699#endif 4700int 4701main (void) 4702{ 4703 return ! yylex () + ! yywrap (); 4704} 4705_ACEOF 4706{ { ac_try="$LEX conftest.l" 4707case "(($ac_try" in 4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4709 *) ac_try_echo=$ac_try;; 4710esac 4711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4712$as_echo "$ac_try_echo"; } >&5 4713 (eval "$LEX conftest.l") 2>&5 4714 ac_status=$? 4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4716 test $ac_status = 0; } 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 4718$as_echo_n "checking lex output file root... " >&6; } 4719if ${ac_cv_prog_lex_root+:} false; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 4723if test -f lex.yy.c; then 4724 ac_cv_prog_lex_root=lex.yy 4725elif test -f lexyy.c; then 4726 ac_cv_prog_lex_root=lexyy 4727else 4728 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4729fi 4730fi 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4732$as_echo "$ac_cv_prog_lex_root" >&6; } 4733LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4734 4735if test -z "${LEXLIB+set}"; then 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 4737$as_echo_n "checking lex library... " >&6; } 4738if ${ac_cv_lib_lex+:} false; then : 4739 $as_echo_n "(cached) " >&6 4740else 4741 4742 ac_save_LIBS=$LIBS 4743 ac_cv_lib_lex='none needed' 4744 for ac_lib in '' -lfl -ll; do 4745 LIBS="$ac_lib $ac_save_LIBS" 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748`cat $LEX_OUTPUT_ROOT.c` 4749_ACEOF 4750if ac_fn_c_try_link "$LINENO"; then : 4751 ac_cv_lib_lex=$ac_lib 4752fi 4753rm -f core conftest.err conftest.$ac_objext \ 4754 conftest$ac_exeext conftest.$ac_ext 4755 test "$ac_cv_lib_lex" != 'none needed' && break 4756 done 4757 LIBS=$ac_save_LIBS 4758 4759fi 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4761$as_echo "$ac_cv_lib_lex" >&6; } 4762 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4763fi 4764 4765 4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 4767$as_echo_n "checking whether yytext is a pointer... " >&6; } 4768if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4769 $as_echo_n "(cached) " >&6 4770else 4771 # POSIX says lex can declare yytext either as a pointer or an array; the 4772# default is implementation-dependent. Figure out which it is, since 4773# not all implementations provide the %pointer and %array declarations. 4774ac_cv_prog_lex_yytext_pointer=no 4775ac_save_LIBS=$LIBS 4776LIBS="$LEXLIB $ac_save_LIBS" 4777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4778/* end confdefs.h. */ 4779 4780 #define YYTEXT_POINTER 1 4781`cat $LEX_OUTPUT_ROOT.c` 4782_ACEOF 4783if ac_fn_c_try_link "$LINENO"; then : 4784 ac_cv_prog_lex_yytext_pointer=yes 4785fi 4786rm -f core conftest.err conftest.$ac_objext \ 4787 conftest$ac_exeext conftest.$ac_ext 4788LIBS=$ac_save_LIBS 4789 4790fi 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 4792$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4793if test $ac_cv_prog_lex_yytext_pointer = yes; then 4794 4795$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4796 4797fi 4798rm -f conftest.l $LEX_OUTPUT_ROOT.c 4799 4800fi 4801for ac_prog in 'bison -y' byacc 4802do 4803 # Extract the first word of "$ac_prog", so it can be a program name with args. 4804set dummy $ac_prog; ac_word=$2 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4806$as_echo_n "checking for $ac_word... " >&6; } 4807if ${ac_cv_prog_YACC+:} false; then : 4808 $as_echo_n "(cached) " >&6 4809else 4810 if test -n "$YACC"; then 4811 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4812else 4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4814for as_dir in $PATH 4815do 4816 IFS=$as_save_IFS 4817 test -z "$as_dir" && as_dir=. 4818 for ac_exec_ext in '' $ac_executable_extensions; do 4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4820 ac_cv_prog_YACC="$ac_prog" 4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4822 break 2 4823 fi 4824done 4825 done 4826IFS=$as_save_IFS 4827 4828fi 4829fi 4830YACC=$ac_cv_prog_YACC 4831if test -n "$YACC"; then 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 4833$as_echo "$YACC" >&6; } 4834else 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4836$as_echo "no" >&6; } 4837fi 4838 4839 4840 test -n "$YACC" && break 4841done 4842test -n "$YACC" || YACC="yacc" 4843 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4845$as_echo_n "checking whether ln -s works... " >&6; } 4846LN_S=$as_ln_s 4847if test "$LN_S" = "ln -s"; then 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4849$as_echo "yes" >&6; } 4850else 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4852$as_echo "no, using $LN_S" >&6; } 4853fi 4854 4855ac_aux_dir= 4856for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4857 if test -f "$ac_dir/install-sh"; then 4858 ac_aux_dir=$ac_dir 4859 ac_install_sh="$ac_aux_dir/install-sh -c" 4860 break 4861 elif test -f "$ac_dir/install.sh"; then 4862 ac_aux_dir=$ac_dir 4863 ac_install_sh="$ac_aux_dir/install.sh -c" 4864 break 4865 elif test -f "$ac_dir/shtool"; then 4866 ac_aux_dir=$ac_dir 4867 ac_install_sh="$ac_aux_dir/shtool install -c" 4868 break 4869 fi 4870done 4871if test -z "$ac_aux_dir"; then 4872 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4873fi 4874 4875# These three variables are undocumented and unsupported, 4876# and are intended to be withdrawn in a future Autoconf release. 4877# They can cause serious problems if a builder's source tree is in a directory 4878# whose full name contains unusual characters. 4879ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4880ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4881ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4882 4883 4884# Find a good install program. We prefer a C program (faster), 4885# so one script is as good as another. But avoid the broken or 4886# incompatible versions: 4887# SysV /etc/install, /usr/sbin/install 4888# SunOS /usr/etc/install 4889# IRIX /sbin/install 4890# AIX /bin/install 4891# AmigaOS /C/install, which installs bootblocks on floppy discs 4892# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4893# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4894# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4895# OS/2's system install, which has a completely different semantic 4896# ./install, which can be erroneously created by make from ./install.sh. 4897# Reject install programs that cannot install multiple files. 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4899$as_echo_n "checking for a BSD-compatible install... " >&6; } 4900if test -z "$INSTALL"; then 4901if ${ac_cv_path_install+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4905for as_dir in $PATH 4906do 4907 IFS=$as_save_IFS 4908 test -z "$as_dir" && as_dir=. 4909 # Account for people who put trailing slashes in PATH elements. 4910case $as_dir/ in #(( 4911 ./ | .// | /[cC]/* | \ 4912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4913 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4914 /usr/ucb/* ) ;; 4915 *) 4916 # OSF1 and SCO ODT 3.0 have their own names for install. 4917 # Don't use installbsd from OSF since it installs stuff as root 4918 # by default. 4919 for ac_prog in ginstall scoinst install; do 4920 for ac_exec_ext in '' $ac_executable_extensions; do 4921 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4922 if test $ac_prog = install && 4923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4924 # AIX install. It has an incompatible calling convention. 4925 : 4926 elif test $ac_prog = install && 4927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4928 # program-specific install script used by HP pwplus--don't use. 4929 : 4930 else 4931 rm -rf conftest.one conftest.two conftest.dir 4932 echo one > conftest.one 4933 echo two > conftest.two 4934 mkdir conftest.dir 4935 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4936 test -s conftest.one && test -s conftest.two && 4937 test -s conftest.dir/conftest.one && 4938 test -s conftest.dir/conftest.two 4939 then 4940 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4941 break 3 4942 fi 4943 fi 4944 fi 4945 done 4946 done 4947 ;; 4948esac 4949 4950 done 4951IFS=$as_save_IFS 4952 4953rm -rf conftest.one conftest.two conftest.dir 4954 4955fi 4956 if test "${ac_cv_path_install+set}" = set; then 4957 INSTALL=$ac_cv_path_install 4958 else 4959 # As a last resort, use the slow shell script. Don't cache a 4960 # value for INSTALL within a source directory, because that will 4961 # break other packages using the cache if that directory is 4962 # removed, or if the value is a relative name. 4963 INSTALL=$ac_install_sh 4964 fi 4965fi 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4967$as_echo "$INSTALL" >&6; } 4968 4969# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4970# It thinks the first close brace ends the variable substitution. 4971test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4972 4973test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4974 4975test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4976 4977 4978if test "$LEX" != ":" -a "$LEX" != ""; then 4979# Solaris provides anemic tools, and they don't offer GNU extensions like 4980# 'flex -i'. Solaris also does not offer GNU replacements in /usr/gnu/bin. 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex accepts -i" >&5 4982$as_echo_n "checking whether lex accepts -i... " >&6; } 4983if echo "%%" | $LEX -i -t >/dev/null 2>&1; then : 4984 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4986$as_echo "yes" >&6; } 4987 4988else 4989 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4991$as_echo "no" >&6; } 4992 as_fn_error $? "unable to find a lexer that supports -i. If one is available then set the LEX variable" "$LINENO" 5 4993 4994 4995fi 4996 4997 # Check if lex defines yy_current_buffer, because 2.4.6 and older use it, 4998 # but later could define it as a macro and then we should not redefine it. 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex defines yy_current_buffer" >&5 5000$as_echo_n "checking if lex defines yy_current_buffer... " >&6; } 5001 cat <<EOF >conftest.lex 5002%% 5003EOF 5004 $LEX -i -t conftest.lex >> conftest.c 2>/dev/null 5005 if $GREP "^#define yy_current_buffer" conftest.c >/dev/null; then 5006 5007cat >>confdefs.h <<_ACEOF 5008#define LEX_DEFINES_YY_CURRENT_BUFFER 1 5009_ACEOF 5010 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5012$as_echo "yes" >&6; } 5013 else 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5015$as_echo "no" >&6; } 5016 fi 5017 rm -f conftest.lex conftest.c 5018fi 5019 5020 5021 5022 5023 5024 5025 5026 5027# Checks for typedefs, structures, and compiler characteristics. 5028# allow user to override the -g -O2 flags. 5029if test "x$CFLAGS" = "x" ; then 5030 5031 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 5033$as_echo_n "checking whether $CC supports -g... " >&6; } 5034cache=`echo g | sed 'y%.=/+-%___p_%'` 5035if eval \${cv_prog_cc_flag_$cache+:} false; then : 5036 $as_echo_n "(cached) " >&6 5037else 5038 5039echo 'void f(void){}' >conftest.c 5040if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 5041eval "cv_prog_cc_flag_$cache=yes" 5042else 5043eval "cv_prog_cc_flag_$cache=no" 5044fi 5045rm -f conftest conftest.o conftest.c 5046 5047fi 5048 5049if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5051$as_echo "yes" >&6; } 5052: 5053CFLAGS="$CFLAGS -g" 5054else 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5056$as_echo "no" >&6; } 5057: 5058 5059fi 5060 5061 # we do not use O3 because it causes miscompilations. 5062 5063 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 5065$as_echo_n "checking whether $CC supports -O2... " >&6; } 5066cache=`echo O2 | sed 'y%.=/+-%___p_%'` 5067if eval \${cv_prog_cc_flag_$cache+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 5071echo 'void f(void){}' >conftest.c 5072if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 5073eval "cv_prog_cc_flag_$cache=yes" 5074else 5075eval "cv_prog_cc_flag_$cache=no" 5076fi 5077rm -f conftest conftest.o conftest.c 5078 5079fi 5080 5081if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5083$as_echo "yes" >&6; } 5084: 5085CFLAGS="$CFLAGS -O2" 5086else 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5088$as_echo "no" >&6; } 5089: 5090 5091fi 5092 5093 5094 # Check whether --enable-flto was given. 5095if test "${enable_flto+set}" = set; then : 5096 enableval=$enable_flto; 5097fi 5098 5099 if test "x$enable_flto" != "xno"; then : 5100 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5102$as_echo_n "checking if $CC supports -flto... " >&6; } 5103 BAKCFLAGS="$CFLAGS" 5104 CFLAGS="$CFLAGS -flto" 5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5106/* end confdefs.h. */ 5107 5108int 5109main () 5110{ 5111 5112 ; 5113 return 0; 5114} 5115_ACEOF 5116if ac_fn_c_try_link "$LINENO"; then : 5117 5118 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 5119 CFLAGS="$BAKCFLAGS" 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5121$as_echo "no" >&6; } 5122 else 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5124$as_echo "yes" >&6; } 5125 fi 5126 rm -f conftest conftest.c conftest.o 5127 5128else 5129 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5130$as_echo "no" >&6; } 5131fi 5132rm -f core conftest.err conftest.$ac_objext \ 5133 conftest$ac_exeext conftest.$ac_ext 5134 5135fi 5136 5137 5138 # Check whether --enable-pie was given. 5139if test "${enable_pie+set}" = set; then : 5140 enableval=$enable_pie; 5141fi 5142 5143 if test "x$enable_pie" = "xyes"; then : 5144 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 5146$as_echo_n "checking if $CC supports PIE... " >&6; } 5147 BAKLDFLAGS="$LDFLAGS" 5148 BAKCFLAGS="$CFLAGS" 5149 LDFLAGS="$LDFLAGS -pie" 5150 CFLAGS="$CFLAGS -fPIE" 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152/* end confdefs.h. */ 5153 5154int 5155main () 5156{ 5157 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162if ac_fn_c_try_link "$LINENO"; then : 5163 5164 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5165 LDFLAGS="$BAKLDFLAGS" 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5167$as_echo "no" >&6; } 5168 else 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5170$as_echo "yes" >&6; } 5171 fi 5172 rm -f conftest conftest.c conftest.o 5173 5174else 5175 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5176$as_echo "no" >&6; } 5177fi 5178rm -f core conftest.err conftest.$ac_objext \ 5179 conftest$ac_exeext conftest.$ac_ext 5180 5181fi 5182 5183 5184 # Check whether --enable-relro_now was given. 5185if test "${enable_relro_now+set}" = set; then : 5186 enableval=$enable_relro_now; 5187fi 5188 5189 if test "x$enable_relro_now" = "xyes"; then : 5190 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 5192$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 5193 BAKLDFLAGS="$LDFLAGS" 5194 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197 5198int 5199main () 5200{ 5201 5202 ; 5203 return 0; 5204} 5205_ACEOF 5206if ac_fn_c_try_link "$LINENO"; then : 5207 5208 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5209 LDFLAGS="$BAKLDFLAGS" 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5211$as_echo "no" >&6; } 5212 else 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5214$as_echo "yes" >&6; } 5215 fi 5216 rm -f conftest conftest.c conftest.o 5217 5218else 5219 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5220$as_echo "no" >&6; } 5221fi 5222rm -f core conftest.err conftest.$ac_objext \ 5223 conftest$ac_exeext conftest.$ac_ext 5224 5225fi 5226 5227fi 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5229$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5230if ${ac_cv_c_const+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235 5236int 5237main () 5238{ 5239 5240#ifndef __cplusplus 5241 /* Ultrix mips cc rejects this sort of thing. */ 5242 typedef int charset[2]; 5243 const charset cs = { 0, 0 }; 5244 /* SunOS 4.1.1 cc rejects this. */ 5245 char const *const *pcpcc; 5246 char **ppc; 5247 /* NEC SVR4.0.2 mips cc rejects this. */ 5248 struct point {int x, y;}; 5249 static struct point const zero = {0,0}; 5250 /* AIX XL C 1.02.0.0 rejects this. 5251 It does not let you subtract one const X* pointer from another in 5252 an arm of an if-expression whose if-part is not a constant 5253 expression */ 5254 const char *g = "string"; 5255 pcpcc = &g + (g ? g-g : 0); 5256 /* HPUX 7.0 cc rejects these. */ 5257 ++pcpcc; 5258 ppc = (char**) pcpcc; 5259 pcpcc = (char const *const *) ppc; 5260 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5261 char tx; 5262 char *t = &tx; 5263 char const *s = 0 ? (char *) 0 : (char const *) 0; 5264 5265 *t++ = 0; 5266 if (s) return 0; 5267 } 5268 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5269 int x[] = {25, 17}; 5270 const int *foo = &x[0]; 5271 ++foo; 5272 } 5273 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5274 typedef const int *iptr; 5275 iptr p = 0; 5276 ++p; 5277 } 5278 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5279 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5280 struct s { int j; const int *ap[3]; } bx; 5281 struct s *b = &bx; b->j = 5; 5282 } 5283 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5284 const int foo = 10; 5285 if (!foo) return 0; 5286 } 5287 return !cs[0] && !zero.x; 5288#endif 5289 5290 ; 5291 return 0; 5292} 5293_ACEOF 5294if ac_fn_c_try_compile "$LINENO"; then : 5295 ac_cv_c_const=yes 5296else 5297 ac_cv_c_const=no 5298fi 5299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5300fi 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5302$as_echo "$ac_cv_c_const" >&6; } 5303if test $ac_cv_c_const = no; then 5304 5305$as_echo "#define const /**/" >>confdefs.h 5306 5307fi 5308 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5310$as_echo_n "checking for inline... " >&6; } 5311if ${ac_cv_c_inline+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 ac_cv_c_inline=no 5315for ac_kw in inline __inline__ __inline; do 5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5317/* end confdefs.h. */ 5318#ifndef __cplusplus 5319typedef int foo_t; 5320static $ac_kw foo_t static_foo () {return 0; } 5321$ac_kw foo_t foo () {return 0; } 5322#endif 5323 5324_ACEOF 5325if ac_fn_c_try_compile "$LINENO"; then : 5326 ac_cv_c_inline=$ac_kw 5327fi 5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5329 test "$ac_cv_c_inline" != no && break 5330done 5331 5332fi 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5334$as_echo "$ac_cv_c_inline" >&6; } 5335 5336case $ac_cv_c_inline in 5337 inline | yes) ;; 5338 *) 5339 case $ac_cv_c_inline in 5340 no) ac_val=;; 5341 *) ac_val=$ac_cv_c_inline;; 5342 esac 5343 cat >>confdefs.h <<_ACEOF 5344#ifndef __cplusplus 5345#define inline $ac_val 5346#endif 5347_ACEOF 5348 ;; 5349esac 5350 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 5352$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 5353if ${ac_cv_type_uid_t+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358#include <sys/types.h> 5359 5360_ACEOF 5361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5362 $EGREP "uid_t" >/dev/null 2>&1; then : 5363 ac_cv_type_uid_t=yes 5364else 5365 ac_cv_type_uid_t=no 5366fi 5367rm -f conftest* 5368 5369fi 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 5371$as_echo "$ac_cv_type_uid_t" >&6; } 5372if test $ac_cv_type_uid_t = no; then 5373 5374$as_echo "#define uid_t int" >>confdefs.h 5375 5376 5377$as_echo "#define gid_t int" >>confdefs.h 5378 5379fi 5380 5381ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 5382if test "x$ac_cv_type_pid_t" = xyes; then : 5383 5384else 5385 5386cat >>confdefs.h <<_ACEOF 5387#define pid_t int 5388_ACEOF 5389 5390fi 5391 5392ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5393if test "x$ac_cv_type_size_t" = xyes; then : 5394 5395else 5396 5397cat >>confdefs.h <<_ACEOF 5398#define size_t unsigned int 5399_ACEOF 5400 5401fi 5402 5403ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 5404if test "x$ac_cv_type_off_t" = xyes; then : 5405 5406else 5407 5408cat >>confdefs.h <<_ACEOF 5409#define off_t long int 5410_ACEOF 5411 5412fi 5413 5414 5415 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 5417$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 5418if ${ac_cv_c_format_attribute+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 ac_cv_c_format_attribute=no 5422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424#include <stdio.h> 5425void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5426void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5427 5428int 5429main () 5430{ 5431 5432 f ("%s", "str"); 5433 5434 ; 5435 return 0; 5436} 5437_ACEOF 5438if ac_fn_c_try_compile "$LINENO"; then : 5439 ac_cv_c_format_attribute="yes" 5440else 5441 ac_cv_c_format_attribute="no" 5442fi 5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5444 5445fi 5446 5447 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 5449$as_echo "$ac_cv_c_format_attribute" >&6; } 5450if test $ac_cv_c_format_attribute = yes; then 5451 5452$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 5453 5454fi 5455 5456 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 5458$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 5459if ${ac_cv_c_unused_attribute+:} false; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 ac_cv_c_unused_attribute=no 5463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464/* end confdefs.h. */ 5465#include <stdio.h> 5466void f (char *u __attribute__((unused))); 5467 5468int 5469main () 5470{ 5471 5472 f ("x"); 5473 5474 ; 5475 return 0; 5476} 5477_ACEOF 5478if ac_fn_c_try_compile "$LINENO"; then : 5479 ac_cv_c_unused_attribute="yes" 5480else 5481 ac_cv_c_unused_attribute="no" 5482fi 5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5484 5485fi 5486 5487 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 5489$as_echo "$ac_cv_c_unused_attribute" >&6; } 5490if test $ac_cv_c_unused_attribute = yes; then 5491 5492$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 5493 5494fi 5495 5496 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 5498$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 5499if ${ac_cv_c_weak_attribute+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501else 5502 ac_cv_c_weak_attribute=no 5503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5504/* end confdefs.h. */ 5505 #include <stdio.h> 5506__attribute__((weak)) void f(int x) { printf("%d", x); } 5507 5508int 5509main () 5510{ 5511 5512 f(1); 5513 5514 ; 5515 return 0; 5516} 5517_ACEOF 5518if ac_fn_c_try_compile "$LINENO"; then : 5519 ac_cv_c_weak_attribute="yes" 5520else 5521 ac_cv_c_weak_attribute="no" 5522fi 5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5524 5525fi 5526 5527 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 5529$as_echo "$ac_cv_c_weak_attribute" >&6; } 5530if test $ac_cv_c_weak_attribute = yes; then 5531 5532$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h 5533 5534 5535$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 5536 5537fi 5538 5539 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 5541$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 5542if ${ac_cv_c_noreturn_attribute+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 ac_cv_c_noreturn_attribute=no 5546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5547/* end confdefs.h. */ 5548 #include <stdio.h> 5549__attribute__((noreturn)) void f(int x) { printf("%d", x); } 5550 5551int 5552main () 5553{ 5554 5555 f(1); 5556 5557 ; 5558 return 0; 5559} 5560_ACEOF 5561if ac_fn_c_try_compile "$LINENO"; then : 5562 ac_cv_c_noreturn_attribute="yes" 5563else 5564 ac_cv_c_noreturn_attribute="no" 5565fi 5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5567 5568fi 5569 5570 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 5572$as_echo "$ac_cv_c_noreturn_attribute" >&6; } 5573if test $ac_cv_c_noreturn_attribute = yes; then 5574 5575$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 5576 5577 5578$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 5579 5580fi 5581 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 5583$as_echo_n "checking if memcmp compares unsigned... " >&6; } 5584if test "$cross_compiling" = yes; then : 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 5586$as_echo "cross-compile no" >&6; } 5587 5588$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 5589 5590 case " $LIBOBJS " in 5591 *" memcmp.$ac_objext "* ) ;; 5592 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 5593 ;; 5594esac 5595 5596 5597else 5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5599/* end confdefs.h. */ 5600 5601#include <stdio.h> 5602#include <stdlib.h> 5603#include <string.h> 5604int main(void) 5605{ 5606 char a = 255, b = 0; 5607 if(memcmp(&a, &b, 1) < 0) 5608 return 1; 5609 return 0; 5610} 5611 5612_ACEOF 5613if ac_fn_c_try_run "$LINENO"; then : 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5615$as_echo "yes" >&6; } 5616else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618$as_echo "no" >&6; } 5619 5620$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 5621 5622 case " $LIBOBJS " in 5623 *" memcmp.$ac_objext "* ) ;; 5624 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 5625 ;; 5626esac 5627 5628 5629fi 5630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5631 conftest.$ac_objext conftest.beam conftest.$ac_ext 5632fi 5633 5634 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctime_r works with two arguments" >&5 5636$as_echo_n "checking whether ctime_r works with two arguments... " >&6; } 5637if ${ac_cv_c_ctime_c+:} false; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 ac_cv_c_ctime_c=no 5641cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643#include <time.h> 5644void testing (void) { time_t clock; char current_time[40]; ctime_r(&clock, current_time); } 5645int 5646main () 5647{ 5648 5649 testing(); 5650 5651 ; 5652 return 0; 5653} 5654_ACEOF 5655if ac_fn_c_try_compile "$LINENO"; then : 5656 ac_cv_c_ctime_c="yes" 5657else 5658 ac_cv_c_ctime_c="no" 5659fi 5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5661 5662fi 5663 5664 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ctime_c" >&5 5666$as_echo "$ac_cv_c_ctime_c" >&6; } 5667if test $ac_cv_c_ctime_c = no; then 5668 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" 5669fi 5670 5671 5672# Checks for libraries. 5673 5674# Check for SSL, original taken from 5675# http://www.gnu.org/software/ac-archive/htmldoc/check_ssl.html and 5676# modified for NSD. 5677 5678# check for libevent 5679 5680# Check whether --with-libevent was given. 5681if test "${with_libevent+set}" = set; then : 5682 withval=$with_libevent; 5683else 5684 withval="yes" 5685fi 5686 5687if test x_$withval = x_yes -o x_$withval != x_no; then 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 5689$as_echo_n "checking for libevent... " >&6; } 5690 if test x_$withval = x_ -o x_$withval = x_yes; then 5691 withval="/usr/local /opt/local /usr/lib /usr/sfw /usr /usr/local/opt/libevent" 5692 fi 5693 for dir in $withval; do 5694 thedir="$dir" 5695 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 5696 found_libevent="yes" 5697 if test "$thedir" != "/usr"; then 5698 CPPFLAGS="$CPPFLAGS -I$thedir/include" 5699 fi 5700 break; 5701 fi 5702 done 5703 if test x_$found_libevent != x_yes; then 5704 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 5705 # libevent source directory 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 5707$as_echo "found in $thedir" >&6; } 5708 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 5709 # remove evdns from linking 5710 ev_files_o=`ls $thedir/*.o | $GREP -v evdns\.o | $GREP -v bufferevent_openssl\.o` 5711 cp $ev_files_o . 5712 LDFLAGS="$ev_files_o $LDFLAGS -lm" 5713 else 5714 as_fn_error $? "Cannot find the libevent library. 5715You can restart ./configure --with-libevent=no to use a builtin alternative." "$LINENO" 5 5716 fi 5717 else 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 5719$as_echo "found in $thedir" >&6; } 5720 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 5721 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 5722 5723 if test "x$enable_rpath" = xyes; then 5724 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 5725 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 5726 fi 5727 fi 5728 5729 else 5730 if test "$thedir" != "/usr" -a "$thedir" != ""; then 5731 LDFLAGS="$LDFLAGS -L$thedir/lib" 5732 5733 if test "x$enable_rpath" = xyes; then 5734 if echo "$thedir/lib" | grep "^/" >/dev/null; then 5735 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 5736 fi 5737 fi 5738 5739 fi 5740 fi 5741 fi 5742 # check for library used by libevent after 1.3c 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 5744$as_echo_n "checking for library containing clock_gettime... " >&6; } 5745if ${ac_cv_search_clock_gettime+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 ac_func_search_save_LIBS=$LIBS 5749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750/* end confdefs.h. */ 5751 5752/* Override any GCC internal prototype to avoid an error. 5753 Use char because int might match the return type of a GCC 5754 builtin and then its argument prototype would still apply. */ 5755#ifdef __cplusplus 5756extern "C" 5757#endif 5758char clock_gettime (); 5759int 5760main () 5761{ 5762return clock_gettime (); 5763 ; 5764 return 0; 5765} 5766_ACEOF 5767for ac_lib in '' rt; do 5768 if test -z "$ac_lib"; then 5769 ac_res="none required" 5770 else 5771 ac_res=-l$ac_lib 5772 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5773 fi 5774 if ac_fn_c_try_link "$LINENO"; then : 5775 ac_cv_search_clock_gettime=$ac_res 5776fi 5777rm -f core conftest.err conftest.$ac_objext \ 5778 conftest$ac_exeext 5779 if ${ac_cv_search_clock_gettime+:} false; then : 5780 break 5781fi 5782done 5783if ${ac_cv_search_clock_gettime+:} false; then : 5784 5785else 5786 ac_cv_search_clock_gettime=no 5787fi 5788rm conftest.$ac_ext 5789LIBS=$ac_func_search_save_LIBS 5790fi 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 5792$as_echo "$ac_cv_search_clock_gettime" >&6; } 5793ac_res=$ac_cv_search_clock_gettime 5794if test "$ac_res" != no; then : 5795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5796 5797fi 5798 5799 5800 # is the event.h header libev or libevent? 5801 for ac_header in event.h 5802do : 5803 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 5804" 5805if test "x$ac_cv_header_event_h" = xyes; then : 5806 cat >>confdefs.h <<_ACEOF 5807#define HAVE_EVENT_H 1 5808_ACEOF 5809 5810fi 5811 5812done 5813 5814 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 5815#include <event.h> 5816 5817" 5818if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 5819 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 5821$as_echo_n "checking for library containing event_set... " >&6; } 5822if ${ac_cv_search_event_set+:} false; then : 5823 $as_echo_n "(cached) " >&6 5824else 5825 ac_func_search_save_LIBS=$LIBS 5826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827/* end confdefs.h. */ 5828 5829/* Override any GCC internal prototype to avoid an error. 5830 Use char because int might match the return type of a GCC 5831 builtin and then its argument prototype would still apply. */ 5832#ifdef __cplusplus 5833extern "C" 5834#endif 5835char event_set (); 5836int 5837main () 5838{ 5839return event_set (); 5840 ; 5841 return 0; 5842} 5843_ACEOF 5844for ac_lib in '' ev; do 5845 if test -z "$ac_lib"; then 5846 ac_res="none required" 5847 else 5848 ac_res=-l$ac_lib 5849 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5850 fi 5851 if ac_fn_c_try_link "$LINENO"; then : 5852 ac_cv_search_event_set=$ac_res 5853fi 5854rm -f core conftest.err conftest.$ac_objext \ 5855 conftest$ac_exeext 5856 if ${ac_cv_search_event_set+:} false; then : 5857 break 5858fi 5859done 5860if ${ac_cv_search_event_set+:} false; then : 5861 5862else 5863 ac_cv_search_event_set=no 5864fi 5865rm conftest.$ac_ext 5866LIBS=$ac_func_search_save_LIBS 5867fi 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 5869$as_echo "$ac_cv_search_event_set" >&6; } 5870ac_res=$ac_cv_search_event_set 5871if test "$ac_res" != no; then : 5872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5873 5874fi 5875 5876 5877else 5878 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 5880$as_echo_n "checking for library containing event_set... " >&6; } 5881if ${ac_cv_search_event_set+:} false; then : 5882 $as_echo_n "(cached) " >&6 5883else 5884 ac_func_search_save_LIBS=$LIBS 5885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5886/* end confdefs.h. */ 5887 5888/* Override any GCC internal prototype to avoid an error. 5889 Use char because int might match the return type of a GCC 5890 builtin and then its argument prototype would still apply. */ 5891#ifdef __cplusplus 5892extern "C" 5893#endif 5894char event_set (); 5895int 5896main () 5897{ 5898return event_set (); 5899 ; 5900 return 0; 5901} 5902_ACEOF 5903for ac_lib in '' event; do 5904 if test -z "$ac_lib"; then 5905 ac_res="none required" 5906 else 5907 ac_res=-l$ac_lib 5908 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5909 fi 5910 if ac_fn_c_try_link "$LINENO"; then : 5911 ac_cv_search_event_set=$ac_res 5912fi 5913rm -f core conftest.err conftest.$ac_objext \ 5914 conftest$ac_exeext 5915 if ${ac_cv_search_event_set+:} false; then : 5916 break 5917fi 5918done 5919if ${ac_cv_search_event_set+:} false; then : 5920 5921else 5922 ac_cv_search_event_set=no 5923fi 5924rm conftest.$ac_ext 5925LIBS=$ac_func_search_save_LIBS 5926fi 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 5928$as_echo "$ac_cv_search_event_set" >&6; } 5929ac_res=$ac_cv_search_event_set 5930if test "$ac_res" != no; then : 5931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5932 5933fi 5934 5935 5936fi 5937 5938 for ac_func in event_base_free 5939do : 5940 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 5941if test "x$ac_cv_func_event_base_free" = xyes; then : 5942 cat >>confdefs.h <<_ACEOF 5943#define HAVE_EVENT_BASE_FREE 1 5944_ACEOF 5945 5946fi 5947done 5948 # only in libevent 1.2 and later 5949 for ac_func in event_base_once 5950do : 5951 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 5952if test "x$ac_cv_func_event_base_once" = xyes; then : 5953 cat >>confdefs.h <<_ACEOF 5954#define HAVE_EVENT_BASE_ONCE 1 5955_ACEOF 5956 5957fi 5958done 5959 # only in libevent 1.4.1 and later 5960 for ac_func in event_base_new 5961do : 5962 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 5963if test "x$ac_cv_func_event_base_new" = xyes; then : 5964 cat >>confdefs.h <<_ACEOF 5965#define HAVE_EVENT_BASE_NEW 1 5966_ACEOF 5967 5968fi 5969done 5970 # only in libevent 1.4.1 and later 5971 for ac_func in event_base_get_method 5972do : 5973 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 5974if test "x$ac_cv_func_event_base_get_method" = xyes; then : 5975 cat >>confdefs.h <<_ACEOF 5976#define HAVE_EVENT_BASE_GET_METHOD 1 5977_ACEOF 5978 5979fi 5980done 5981 # only in libevent 1.4.3 and later 5982 for ac_func in ev_loop 5983do : 5984 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 5985if test "x$ac_cv_func_ev_loop" = xyes; then : 5986 cat >>confdefs.h <<_ACEOF 5987#define HAVE_EV_LOOP 1 5988_ACEOF 5989 5990fi 5991done 5992 # only in libev. (tested on 3.51) 5993 for ac_func in ev_default_loop 5994do : 5995 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 5996if test "x$ac_cv_func_ev_default_loop" = xyes; then : 5997 cat >>confdefs.h <<_ACEOF 5998#define HAVE_EV_DEFAULT_LOOP 1 5999_ACEOF 6000 6001fi 6002done 6003 # only in libev. (tested on 4.00) 6004else 6005 6006$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 6007 6008fi 6009 6010# Checks for header files. 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 6012$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 6013if ${ac_cv_header_sys_wait_h+:} false; then : 6014 $as_echo_n "(cached) " >&6 6015else 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017/* end confdefs.h. */ 6018#include <sys/types.h> 6019#include <sys/wait.h> 6020#ifndef WEXITSTATUS 6021# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 6022#endif 6023#ifndef WIFEXITED 6024# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 6025#endif 6026 6027int 6028main () 6029{ 6030 int s; 6031 wait (&s); 6032 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 6033 ; 6034 return 0; 6035} 6036_ACEOF 6037if ac_fn_c_try_compile "$LINENO"; then : 6038 ac_cv_header_sys_wait_h=yes 6039else 6040 ac_cv_header_sys_wait_h=no 6041fi 6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6043fi 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 6045$as_echo "$ac_cv_header_sys_wait_h" >&6; } 6046if test $ac_cv_header_sys_wait_h = yes; then 6047 6048$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 6049 6050fi 6051 6052for ac_header in time.h arpa/inet.h signal.h string.h strings.h fcntl.h limits.h netinet/in.h netinet/tcp.h stddef.h sys/param.h sys/socket.h sys/un.h syslog.h unistd.h sys/select.h stdarg.h stdint.h netdb.h sys/bitypes.h tcpd.h glob.h grp.h endian.h sys/random.h ifaddrs.h 6053do : 6054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6055ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6056" 6057if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6058 cat >>confdefs.h <<_ACEOF 6059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6060_ACEOF 6061 6062fi 6063 6064done 6065 6066 6067 6068 6069 6070 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for double definition of struct va_list" >&5 6072$as_echo_n "checking for double definition of struct va_list... " >&6; } 6073if ${ac_cv_c_va_list_def+:} false; then : 6074 $as_echo_n "(cached) " >&6 6075else 6076 6077cat >conftest.c <<EOF 6078#include <stdio.h> 6079#include <stdarg.h> 6080int foo(void); 6081EOF 6082if test -z "`$CC -Werror -D_XOPEN_SOURCE=600 -c conftest.c 2>&1`"; then 6083eval "ac_cv_c_va_list_def=no" 6084else 6085eval "ac_cv_c_va_list_def=yes" 6086fi 6087rm -f conftest* 6088 6089fi 6090 6091if test $ac_cv_c_va_list_def = yes; then 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6093$as_echo "yes" >&6; } 6094: 6095 6096cat >>confdefs.h <<_ACEOF 6097#define HAVE_VA_LIST_DOUBLE_DEF /**/ 6098_ACEOF 6099 6100else 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6102$as_echo "no" >&6; } 6103: 6104 6105fi 6106 6107 6108 6109 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime needs defines" >&5 6111$as_echo_n "checking whether strptime needs defines... " >&6; } 6112if ${ac_cv_c_strptime_needs_defs+:} false; then : 6113 $as_echo_n "(cached) " >&6 6114else 6115 6116cat >conftest.c <<EOF 6117#include <time.h> 6118int testing (void) { struct tm t; const char *timestr="201201"; return strptime(timestr, "%Y%m", &t) != 0; } 6119EOF 6120if test -z "`$CC -Wall -Werror -c conftest.c 2>&1`"; then 6121eval "ac_cv_c_strptime_needs_defs=no" 6122else 6123eval "ac_cv_c_strptime_needs_defs=yes" 6124fi 6125rm -f conftest* 6126 6127fi 6128 6129 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_needs_defs" >&5 6131$as_echo "$ac_cv_c_strptime_needs_defs" >&6; } 6132if test $ac_cv_c_strptime_needs_defs = yes; then 6133 6134cat >>confdefs.h <<_ACEOF 6135#define STRPTIME_NEEDS_DEFINES 1 6136_ACEOF 6137 6138fi 6139 6140 6141# check wether strptime also works 6142 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 6144$as_echo_n "checking for library containing inet_pton... " >&6; } 6145if ${ac_cv_search_inet_pton+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 ac_func_search_save_LIBS=$LIBS 6149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6150/* end confdefs.h. */ 6151 6152/* Override any GCC internal prototype to avoid an error. 6153 Use char because int might match the return type of a GCC 6154 builtin and then its argument prototype would still apply. */ 6155#ifdef __cplusplus 6156extern "C" 6157#endif 6158char inet_pton (); 6159int 6160main () 6161{ 6162return inet_pton (); 6163 ; 6164 return 0; 6165} 6166_ACEOF 6167for ac_lib in '' nsl; do 6168 if test -z "$ac_lib"; then 6169 ac_res="none required" 6170 else 6171 ac_res=-l$ac_lib 6172 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6173 fi 6174 if ac_fn_c_try_link "$LINENO"; then : 6175 ac_cv_search_inet_pton=$ac_res 6176fi 6177rm -f core conftest.err conftest.$ac_objext \ 6178 conftest$ac_exeext 6179 if ${ac_cv_search_inet_pton+:} false; then : 6180 break 6181fi 6182done 6183if ${ac_cv_search_inet_pton+:} false; then : 6184 6185else 6186 ac_cv_search_inet_pton=no 6187fi 6188rm conftest.$ac_ext 6189LIBS=$ac_func_search_save_LIBS 6190fi 6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 6192$as_echo "$ac_cv_search_inet_pton" >&6; } 6193ac_res=$ac_cv_search_inet_pton 6194if test "$ac_res" != no; then : 6195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6196 6197fi 6198 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 6200$as_echo_n "checking for library containing socket... " >&6; } 6201if ${ac_cv_search_socket+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 ac_func_search_save_LIBS=$LIBS 6205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207 6208/* Override any GCC internal prototype to avoid an error. 6209 Use char because int might match the return type of a GCC 6210 builtin and then its argument prototype would still apply. */ 6211#ifdef __cplusplus 6212extern "C" 6213#endif 6214char socket (); 6215int 6216main () 6217{ 6218return socket (); 6219 ; 6220 return 0; 6221} 6222_ACEOF 6223for ac_lib in '' socket; do 6224 if test -z "$ac_lib"; then 6225 ac_res="none required" 6226 else 6227 ac_res=-l$ac_lib 6228 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6229 fi 6230 if ac_fn_c_try_link "$LINENO"; then : 6231 ac_cv_search_socket=$ac_res 6232fi 6233rm -f core conftest.err conftest.$ac_objext \ 6234 conftest$ac_exeext 6235 if ${ac_cv_search_socket+:} false; then : 6236 break 6237fi 6238done 6239if ${ac_cv_search_socket+:} false; then : 6240 6241else 6242 ac_cv_search_socket=no 6243fi 6244rm conftest.$ac_ext 6245LIBS=$ac_func_search_save_LIBS 6246fi 6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 6248$as_echo "$ac_cv_search_socket" >&6; } 6249ac_res=$ac_cv_search_socket 6250if test "$ac_res" != no; then : 6251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6252 6253fi 6254 6255 6256 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 6258$as_echo_n "checking whether strptime works... " >&6; } 6259if test c${cross_compiling} = cno; then 6260if test "$cross_compiling" = yes; then : 6261 eval "ac_cv_c_strptime_works=maybe" 6262else 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265 6266#define _XOPEN_SOURCE 600 6267#include <time.h> 6268int main(void) { struct tm tm; char *res; 6269res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 6270if (!res) return 1; return 0; } 6271 6272_ACEOF 6273if ac_fn_c_try_run "$LINENO"; then : 6274 eval "ac_cv_c_strptime_works=yes" 6275else 6276 eval "ac_cv_c_strptime_works=no" 6277fi 6278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6279 conftest.$ac_objext conftest.beam conftest.$ac_ext 6280fi 6281 6282else 6283eval "ac_cv_c_strptime_works=maybe" 6284fi 6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 6286$as_echo "$ac_cv_c_strptime_works" >&6; } 6287if test $ac_cv_c_strptime_works = no; then 6288case " $LIBOBJS " in 6289 *" strptime.$ac_objext "* ) ;; 6290 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 6291 ;; 6292esac 6293 6294else 6295 6296cat >>confdefs.h <<_ACEOF 6297#define STRPTIME_WORKS 1 6298_ACEOF 6299 6300fi 6301 6302 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 6304$as_echo_n "checking if nonblocking sockets work... " >&6; } 6305if echo $host | grep mingw >/dev/null; then 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 6307$as_echo "no (windows)" >&6; } 6308 6309$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 6310 6311else 6312if test "$cross_compiling" = yes; then : 6313 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 6315$as_echo "crosscompile(yes)" >&6; } 6316 6317else 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320 6321 6322#include <stdio.h> 6323#include <string.h> 6324#include <stdlib.h> 6325#include <fcntl.h> 6326#include <errno.h> 6327#ifdef HAVE_SYS_TYPES_H 6328#include <sys/types.h> 6329#endif 6330#ifdef HAVE_SYS_SELECT_H 6331#include <sys/select.h> 6332#endif 6333#ifdef HAVE_SYS_SOCKET_H 6334#include <sys/socket.h> 6335#endif 6336#ifdef HAVE_NETINET_IN_H 6337#include <netinet/in.h> 6338#endif 6339#ifdef HAVE_ARPA_INET_H 6340#include <arpa/inet.h> 6341#endif 6342#ifdef HAVE_UNISTD_H 6343#include <unistd.h> 6344#endif 6345#ifdef HAVE_TIME_H 6346#include <time.h> 6347#endif 6348 6349int main(void) 6350{ 6351 int port; 6352 int sfd, cfd; 6353 int num = 10; 6354 int i, p; 6355 struct sockaddr_in a; 6356 /* test if select and nonblocking reads work well together */ 6357 /* open port. 6358 fork child to send 10 messages. 6359 select to read. 6360 then try to nonblocking read the 10 messages 6361 then, nonblocking read must give EAGAIN 6362 */ 6363 6364 port = 12345 + (time(0)%32); 6365 sfd = socket(PF_INET, SOCK_DGRAM, 0); 6366 if(sfd == -1) { 6367 perror("socket"); 6368 return 1; 6369 } 6370 memset(&a, 0, sizeof(a)); 6371 a.sin_family = AF_INET; 6372 a.sin_port = htons(port); 6373 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 6374 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 6375 perror("bind"); 6376 return 1; 6377 } 6378 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 6379 perror("fcntl"); 6380 return 1; 6381 } 6382 6383 cfd = socket(PF_INET, SOCK_DGRAM, 0); 6384 if(cfd == -1) { 6385 perror("client socket"); 6386 return 1; 6387 } 6388 a.sin_port = 0; 6389 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 6390 perror("client bind"); 6391 return 1; 6392 } 6393 a.sin_port = htons(port); 6394 6395 /* no handler, causes exit in 10 seconds */ 6396 alarm(10); 6397 6398 /* send and receive on the socket */ 6399 if((p=fork()) == 0) { 6400 for(i=0; i<num; i++) { 6401 if(sendto(cfd, &i, sizeof(i), 0, 6402 (struct sockaddr*)&a, sizeof(a)) < 0) { 6403 perror("sendto"); 6404 return 1; 6405 } 6406 } 6407 } else { 6408 /* parent */ 6409 fd_set rset; 6410 int x; 6411 if(p == -1) { 6412 perror("fork"); 6413 return 1; 6414 } 6415 FD_ZERO(&rset); 6416 FD_SET(sfd, &rset); 6417 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 6418 perror("select"); 6419 return 1; 6420 } 6421 i = 0; 6422 while(i < num) { 6423 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 6424 if(errno == EAGAIN) 6425 continue; 6426 perror("recv"); 6427 return 1; 6428 } 6429 i++; 6430 } 6431 /* now we want to get EAGAIN: nonblocking goodness */ 6432 errno = 0; 6433 recv(sfd, &x, sizeof(x), 0); 6434 if(errno != EAGAIN) { 6435 perror("trying to recv again"); 6436 return 1; 6437 } 6438 /* EAGAIN encountered */ 6439 } 6440 6441 close(sfd); 6442 close(cfd); 6443 return 0; 6444} 6445 6446_ACEOF 6447if ac_fn_c_try_run "$LINENO"; then : 6448 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6450$as_echo "yes" >&6; } 6451 6452else 6453 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6455$as_echo "no" >&6; } 6456 6457$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 6458 6459 6460fi 6461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6462 conftest.$ac_objext conftest.beam conftest.$ac_ext 6463fi 6464 6465fi 6466 6467 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 6469$as_echo_n "checking whether mkdir has one arg... " >&6; } 6470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6471/* end confdefs.h. */ 6472 6473#include <stdio.h> 6474#include <unistd.h> 6475#ifdef HAVE_WINSOCK2_H 6476#include <winsock2.h> 6477#endif 6478#ifdef HAVE_SYS_STAT_H 6479#include <sys/stat.h> 6480#endif 6481 6482int 6483main () 6484{ 6485 6486 (void)mkdir("directory"); 6487 6488 ; 6489 return 0; 6490} 6491_ACEOF 6492if ac_fn_c_try_compile "$LINENO"; then : 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6494$as_echo "yes" >&6; } 6495 6496$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 6497 6498 6499else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501$as_echo "no" >&6; } 6502 6503fi 6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6505 6506 6507# set -I. and -Isrcdir 6508if test -n "$CPPFLAGS"; then 6509 CPPFLAGS="$CPPFLAGS -I." 6510else 6511 CPPFLAGS="-I." 6512fi 6513if test "$srcdir" != "."; then 6514 CPPFLAGS="$CPPFLAGS -I$srcdir" 6515 if test -f $srcdir/config.h; then 6516 as_fn_error $? "$srcdir/config.h is in the way, please remove it" "$LINENO" 5 6517 fi 6518fi 6519 6520 6521 6522 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5 6524$as_echo_n "checking for int8_t... " >&6; } 6525if ${ac_cv_type_int8_t+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530 6531#include <sys/types.h> 6532#include <stdlib.h> 6533#include <stddef.h> 6534 6535#ifdef HAVE_STDINT_H 6536#include <stdint.h> 6537#endif 6538 6539#ifdef HAVE_SYS_SOCKET_H 6540#include <sys/socket.h> 6541#endif 6542 6543#ifdef HAVE_ARPA_INET_H 6544#include <arpa/inet.h> 6545#endif 6546 6547#ifdef HAVE_SIGNAL_H 6548#include <signal.h> 6549#endif 6550 6551/* For Tru64 */ 6552#ifdef HAVE_SYS_BITYPES_H 6553#include <sys/bitypes.h> 6554#endif 6555 6556_ACEOF 6557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6558 $EGREP "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6559 ac_cv_type_int8_t=yes 6560else 6561 ac_cv_type_int8_t=no 6562fi 6563rm -f conftest* 6564 6565fi 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int8_t" >&5 6567$as_echo "$ac_cv_type_int8_t" >&6; } 6568if test $ac_cv_type_int8_t = no; then 6569 6570$as_echo "#define int8_t char" >>confdefs.h 6571 6572fi 6573 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5 6575$as_echo_n "checking for int16_t... " >&6; } 6576if ${ac_cv_type_int16_t+:} false; then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580/* end confdefs.h. */ 6581 6582#include <sys/types.h> 6583#include <stdlib.h> 6584#include <stddef.h> 6585 6586#ifdef HAVE_STDINT_H 6587#include <stdint.h> 6588#endif 6589 6590#ifdef HAVE_SYS_SOCKET_H 6591#include <sys/socket.h> 6592#endif 6593 6594#ifdef HAVE_ARPA_INET_H 6595#include <arpa/inet.h> 6596#endif 6597 6598#ifdef HAVE_SIGNAL_H 6599#include <signal.h> 6600#endif 6601 6602/* For Tru64 */ 6603#ifdef HAVE_SYS_BITYPES_H 6604#include <sys/bitypes.h> 6605#endif 6606 6607_ACEOF 6608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6609 $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6610 ac_cv_type_int16_t=yes 6611else 6612 ac_cv_type_int16_t=no 6613fi 6614rm -f conftest* 6615 6616fi 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int16_t" >&5 6618$as_echo "$ac_cv_type_int16_t" >&6; } 6619if test $ac_cv_type_int16_t = no; then 6620 6621$as_echo "#define int16_t short" >>confdefs.h 6622 6623fi 6624 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 6626$as_echo_n "checking for int32_t... " >&6; } 6627if ${ac_cv_type_int32_t+:} false; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6631/* end confdefs.h. */ 6632 6633#include <sys/types.h> 6634#include <stdlib.h> 6635#include <stddef.h> 6636 6637#ifdef HAVE_STDINT_H 6638#include <stdint.h> 6639#endif 6640 6641#ifdef HAVE_SYS_SOCKET_H 6642#include <sys/socket.h> 6643#endif 6644 6645#ifdef HAVE_ARPA_INET_H 6646#include <arpa/inet.h> 6647#endif 6648 6649#ifdef HAVE_SIGNAL_H 6650#include <signal.h> 6651#endif 6652 6653/* For Tru64 */ 6654#ifdef HAVE_SYS_BITYPES_H 6655#include <sys/bitypes.h> 6656#endif 6657 6658_ACEOF 6659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6660 $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6661 ac_cv_type_int32_t=yes 6662else 6663 ac_cv_type_int32_t=no 6664fi 6665rm -f conftest* 6666 6667fi 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int32_t" >&5 6669$as_echo "$ac_cv_type_int32_t" >&6; } 6670if test $ac_cv_type_int32_t = no; then 6671 6672$as_echo "#define int32_t int" >>confdefs.h 6673 6674fi 6675 6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5 6677$as_echo_n "checking for int64_t... " >&6; } 6678if ${ac_cv_type_int64_t+:} false; then : 6679 $as_echo_n "(cached) " >&6 6680else 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683 6684#include <sys/types.h> 6685#include <stdlib.h> 6686#include <stddef.h> 6687 6688#ifdef HAVE_STDINT_H 6689#include <stdint.h> 6690#endif 6691 6692#ifdef HAVE_SYS_SOCKET_H 6693#include <sys/socket.h> 6694#endif 6695 6696#ifdef HAVE_ARPA_INET_H 6697#include <arpa/inet.h> 6698#endif 6699 6700#ifdef HAVE_SIGNAL_H 6701#include <signal.h> 6702#endif 6703 6704/* For Tru64 */ 6705#ifdef HAVE_SYS_BITYPES_H 6706#include <sys/bitypes.h> 6707#endif 6708 6709_ACEOF 6710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6711 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6712 ac_cv_type_int64_t=yes 6713else 6714 ac_cv_type_int64_t=no 6715fi 6716rm -f conftest* 6717 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int64_t" >&5 6720$as_echo "$ac_cv_type_int64_t" >&6; } 6721if test $ac_cv_type_int64_t = no; then 6722 6723$as_echo "#define int64_t long long" >>confdefs.h 6724 6725fi 6726 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5 6728$as_echo_n "checking for uint8_t... " >&6; } 6729if ${ac_cv_type_uint8_t+:} false; then : 6730 $as_echo_n "(cached) " >&6 6731else 6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6733/* end confdefs.h. */ 6734 6735#include <sys/types.h> 6736#include <stdlib.h> 6737#include <stddef.h> 6738 6739#ifdef HAVE_STDINT_H 6740#include <stdint.h> 6741#endif 6742 6743#ifdef HAVE_SYS_SOCKET_H 6744#include <sys/socket.h> 6745#endif 6746 6747#ifdef HAVE_ARPA_INET_H 6748#include <arpa/inet.h> 6749#endif 6750 6751#ifdef HAVE_SIGNAL_H 6752#include <signal.h> 6753#endif 6754 6755/* For Tru64 */ 6756#ifdef HAVE_SYS_BITYPES_H 6757#include <sys/bitypes.h> 6758#endif 6759 6760_ACEOF 6761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6762 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6763 ac_cv_type_uint8_t=yes 6764else 6765 ac_cv_type_uint8_t=no 6766fi 6767rm -f conftest* 6768 6769fi 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5 6771$as_echo "$ac_cv_type_uint8_t" >&6; } 6772if test $ac_cv_type_uint8_t = no; then 6773 6774$as_echo "#define uint8_t unsigned char" >>confdefs.h 6775 6776fi 6777 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5 6779$as_echo_n "checking for uint16_t... " >&6; } 6780if ${ac_cv_type_uint16_t+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785 6786#include <sys/types.h> 6787#include <stdlib.h> 6788#include <stddef.h> 6789 6790#ifdef HAVE_STDINT_H 6791#include <stdint.h> 6792#endif 6793 6794#ifdef HAVE_SYS_SOCKET_H 6795#include <sys/socket.h> 6796#endif 6797 6798#ifdef HAVE_ARPA_INET_H 6799#include <arpa/inet.h> 6800#endif 6801 6802#ifdef HAVE_SIGNAL_H 6803#include <signal.h> 6804#endif 6805 6806/* For Tru64 */ 6807#ifdef HAVE_SYS_BITYPES_H 6808#include <sys/bitypes.h> 6809#endif 6810 6811_ACEOF 6812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6813 $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6814 ac_cv_type_uint16_t=yes 6815else 6816 ac_cv_type_uint16_t=no 6817fi 6818rm -f conftest* 6819 6820fi 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5 6822$as_echo "$ac_cv_type_uint16_t" >&6; } 6823if test $ac_cv_type_uint16_t = no; then 6824 6825$as_echo "#define uint16_t unsigned short" >>confdefs.h 6826 6827fi 6828 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 6830$as_echo_n "checking for uint32_t... " >&6; } 6831if ${ac_cv_type_uint32_t+:} false; then : 6832 $as_echo_n "(cached) " >&6 6833else 6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835/* end confdefs.h. */ 6836 6837#include <sys/types.h> 6838#include <stdlib.h> 6839#include <stddef.h> 6840 6841#ifdef HAVE_STDINT_H 6842#include <stdint.h> 6843#endif 6844 6845#ifdef HAVE_SYS_SOCKET_H 6846#include <sys/socket.h> 6847#endif 6848 6849#ifdef HAVE_ARPA_INET_H 6850#include <arpa/inet.h> 6851#endif 6852 6853#ifdef HAVE_SIGNAL_H 6854#include <signal.h> 6855#endif 6856 6857/* For Tru64 */ 6858#ifdef HAVE_SYS_BITYPES_H 6859#include <sys/bitypes.h> 6860#endif 6861 6862_ACEOF 6863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6864 $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6865 ac_cv_type_uint32_t=yes 6866else 6867 ac_cv_type_uint32_t=no 6868fi 6869rm -f conftest* 6870 6871fi 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5 6873$as_echo "$ac_cv_type_uint32_t" >&6; } 6874if test $ac_cv_type_uint32_t = no; then 6875 6876$as_echo "#define uint32_t unsigned int" >>confdefs.h 6877 6878fi 6879 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5 6881$as_echo_n "checking for uint64_t... " >&6; } 6882if ${ac_cv_type_uint64_t+:} false; then : 6883 $as_echo_n "(cached) " >&6 6884else 6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6886/* end confdefs.h. */ 6887 6888#include <sys/types.h> 6889#include <stdlib.h> 6890#include <stddef.h> 6891 6892#ifdef HAVE_STDINT_H 6893#include <stdint.h> 6894#endif 6895 6896#ifdef HAVE_SYS_SOCKET_H 6897#include <sys/socket.h> 6898#endif 6899 6900#ifdef HAVE_ARPA_INET_H 6901#include <arpa/inet.h> 6902#endif 6903 6904#ifdef HAVE_SIGNAL_H 6905#include <signal.h> 6906#endif 6907 6908/* For Tru64 */ 6909#ifdef HAVE_SYS_BITYPES_H 6910#include <sys/bitypes.h> 6911#endif 6912 6913_ACEOF 6914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6915 $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6916 ac_cv_type_uint64_t=yes 6917else 6918 ac_cv_type_uint64_t=no 6919fi 6920rm -f conftest* 6921 6922fi 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5 6924$as_echo "$ac_cv_type_uint64_t" >&6; } 6925if test $ac_cv_type_uint64_t = no; then 6926 6927$as_echo "#define uint64_t unsigned long long" >>confdefs.h 6928 6929fi 6930 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 6932$as_echo_n "checking for socklen_t... " >&6; } 6933if ${ac_cv_type_socklen_t+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6937/* end confdefs.h. */ 6938 6939#include <sys/types.h> 6940#include <stdlib.h> 6941#include <stddef.h> 6942 6943#ifdef HAVE_STDINT_H 6944#include <stdint.h> 6945#endif 6946 6947#ifdef HAVE_SYS_SOCKET_H 6948#include <sys/socket.h> 6949#endif 6950 6951#ifdef HAVE_ARPA_INET_H 6952#include <arpa/inet.h> 6953#endif 6954 6955#ifdef HAVE_SIGNAL_H 6956#include <signal.h> 6957#endif 6958 6959/* For Tru64 */ 6960#ifdef HAVE_SYS_BITYPES_H 6961#include <sys/bitypes.h> 6962#endif 6963 6964_ACEOF 6965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6966 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6967 ac_cv_type_socklen_t=yes 6968else 6969 ac_cv_type_socklen_t=no 6970fi 6971rm -f conftest* 6972 6973fi 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 6975$as_echo "$ac_cv_type_socklen_t" >&6; } 6976if test $ac_cv_type_socklen_t = no; then 6977 6978$as_echo "#define socklen_t int" >>confdefs.h 6979 6980fi 6981 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 6983$as_echo_n "checking for sig_atomic_t... " >&6; } 6984if ${ac_cv_type_sig_atomic_t+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986else 6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988/* end confdefs.h. */ 6989 6990#include <sys/types.h> 6991#include <stdlib.h> 6992#include <stddef.h> 6993 6994#ifdef HAVE_STDINT_H 6995#include <stdint.h> 6996#endif 6997 6998#ifdef HAVE_SYS_SOCKET_H 6999#include <sys/socket.h> 7000#endif 7001 7002#ifdef HAVE_ARPA_INET_H 7003#include <arpa/inet.h> 7004#endif 7005 7006#ifdef HAVE_SIGNAL_H 7007#include <signal.h> 7008#endif 7009 7010/* For Tru64 */ 7011#ifdef HAVE_SYS_BITYPES_H 7012#include <sys/bitypes.h> 7013#endif 7014 7015_ACEOF 7016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7017 $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 7018 ac_cv_type_sig_atomic_t=yes 7019else 7020 ac_cv_type_sig_atomic_t=no 7021fi 7022rm -f conftest* 7023 7024fi 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 7026$as_echo "$ac_cv_type_sig_atomic_t" >&6; } 7027if test $ac_cv_type_sig_atomic_t = no; then 7028 7029$as_echo "#define sig_atomic_t int" >>confdefs.h 7030 7031fi 7032 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 7034$as_echo_n "checking for ssize_t... " >&6; } 7035if ${ac_cv_type_ssize_t+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040 7041#include <sys/types.h> 7042#include <stdlib.h> 7043#include <stddef.h> 7044 7045#ifdef HAVE_STDINT_H 7046#include <stdint.h> 7047#endif 7048 7049#ifdef HAVE_SYS_SOCKET_H 7050#include <sys/socket.h> 7051#endif 7052 7053#ifdef HAVE_ARPA_INET_H 7054#include <arpa/inet.h> 7055#endif 7056 7057#ifdef HAVE_SIGNAL_H 7058#include <signal.h> 7059#endif 7060 7061/* For Tru64 */ 7062#ifdef HAVE_SYS_BITYPES_H 7063#include <sys/bitypes.h> 7064#endif 7065 7066_ACEOF 7067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7068 $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 7069 ac_cv_type_ssize_t=yes 7070else 7071 ac_cv_type_ssize_t=no 7072fi 7073rm -f conftest* 7074 7075fi 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5 7077$as_echo "$ac_cv_type_ssize_t" >&6; } 7078if test $ac_cv_type_ssize_t = no; then 7079 7080$as_echo "#define ssize_t int" >>confdefs.h 7081 7082fi 7083 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suseconds_t" >&5 7085$as_echo_n "checking for suseconds_t... " >&6; } 7086if ${ac_cv_type_suseconds_t+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090/* end confdefs.h. */ 7091 7092#include <sys/types.h> 7093#include <stdlib.h> 7094#include <stddef.h> 7095 7096#ifdef HAVE_STDINT_H 7097#include <stdint.h> 7098#endif 7099 7100#ifdef HAVE_SYS_SOCKET_H 7101#include <sys/socket.h> 7102#endif 7103 7104#ifdef HAVE_ARPA_INET_H 7105#include <arpa/inet.h> 7106#endif 7107 7108#ifdef HAVE_SIGNAL_H 7109#include <signal.h> 7110#endif 7111 7112/* For Tru64 */ 7113#ifdef HAVE_SYS_BITYPES_H 7114#include <sys/bitypes.h> 7115#endif 7116 7117_ACEOF 7118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7119 $EGREP "(^|[^a-zA-Z_0-9])suseconds_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 7120 ac_cv_type_suseconds_t=yes 7121else 7122 ac_cv_type_suseconds_t=no 7123fi 7124rm -f conftest* 7125 7126fi 7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_suseconds_t" >&5 7128$as_echo "$ac_cv_type_suseconds_t" >&6; } 7129if test $ac_cv_type_suseconds_t = no; then 7130 7131$as_echo "#define suseconds_t time_t" >>confdefs.h 7132 7133fi 7134 7135 7136ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 7137#if HAVE_SYS_TYPES_H 7138# include <sys/types.h> 7139#endif 7140#if HAVE_NETINET_IN_H 7141# include <netinet/in.h> 7142#endif 7143" 7144if test "x$ac_cv_type_in_addr_t" = xyes; then : 7145 7146else 7147 7148$as_echo "#define in_addr_t uint32_t" >>confdefs.h 7149 7150fi 7151 7152ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 7153#ifdef HAVE_NETINET_IN_H 7154#include <netinet/in.h> 7155#endif 7156#ifdef HAVE_SYS_SOCKET_H 7157#include <sys/socket.h> 7158#endif 7159#ifdef HAVE_NETDB_H 7160#include <netdb.h> 7161#endif 7162#ifdef HAVE_ARPA_INET_H 7163#include <arpa/inet.h> 7164#endif 7165 7166" 7167if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 7168 7169else 7170 7171 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 7172#ifdef HAVE_NETINET_IN_H 7173#include <netinet/in.h> 7174#endif 7175#ifdef HAVE_SYS_SOCKET_H 7176#include <sys/socket.h> 7177#endif 7178#ifdef HAVE_NETDB_H 7179#include <netdb.h> 7180#endif 7181#ifdef HAVE_ARPA_INET_H 7182#include <arpa/inet.h> 7183#endif 7184 7185" 7186if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 7187 7188 7189$as_echo "#define ss_family __ss_family" >>confdefs.h 7190 7191 7192fi 7193 7194 7195fi 7196 7197ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" 7198if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then : 7199 7200cat >>confdefs.h <<_ACEOF 7201#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 7202_ACEOF 7203 7204 7205fi 7206ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default" 7207if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then : 7208 7209cat >>confdefs.h <<_ACEOF 7210#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 7211_ACEOF 7212 7213 7214fi 7215 7216ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 7217$ac_includes_default 7218#ifdef HAVE_SYS_UN_H 7219#include <sys/un.h> 7220#endif 7221 7222" 7223if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 7224 7225cat >>confdefs.h <<_ACEOF 7226#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 7227_ACEOF 7228 7229 7230fi 7231 7232 7233# Checks for library functions. 7234for ac_header in unistd.h 7235do : 7236 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 7237if test "x$ac_cv_header_unistd_h" = xyes; then : 7238 cat >>confdefs.h <<_ACEOF 7239#define HAVE_UNISTD_H 1 7240_ACEOF 7241 7242fi 7243 7244done 7245 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 7247$as_echo_n "checking for working chown... " >&6; } 7248if ${ac_cv_func_chown_works+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 if test "$cross_compiling" = yes; then : 7252 ac_cv_func_chown_works=no 7253else 7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7255/* end confdefs.h. */ 7256$ac_includes_default 7257#include <fcntl.h> 7258 7259int 7260main () 7261{ 7262 char *f = "conftest.chown"; 7263 struct stat before, after; 7264 7265 if (creat (f, 0600) < 0) 7266 return 1; 7267 if (stat (f, &before) < 0) 7268 return 1; 7269 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 7270 return 1; 7271 if (stat (f, &after) < 0) 7272 return 1; 7273 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 7274 7275 ; 7276 return 0; 7277} 7278_ACEOF 7279if ac_fn_c_try_run "$LINENO"; then : 7280 ac_cv_func_chown_works=yes 7281else 7282 ac_cv_func_chown_works=no 7283fi 7284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7285 conftest.$ac_objext conftest.beam conftest.$ac_ext 7286fi 7287 7288rm -f conftest.chown 7289 7290fi 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 7292$as_echo "$ac_cv_func_chown_works" >&6; } 7293if test $ac_cv_func_chown_works = yes; then 7294 7295$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 7296 7297fi 7298 7299for ac_header in vfork.h 7300do : 7301 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 7302if test "x$ac_cv_header_vfork_h" = xyes; then : 7303 cat >>confdefs.h <<_ACEOF 7304#define HAVE_VFORK_H 1 7305_ACEOF 7306 7307fi 7308 7309done 7310 7311for ac_func in fork vfork 7312do : 7313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7314ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7315if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7316 cat >>confdefs.h <<_ACEOF 7317#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7318_ACEOF 7319 7320fi 7321done 7322 7323if test "x$ac_cv_func_fork" = xyes; then 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 7325$as_echo_n "checking for working fork... " >&6; } 7326if ${ac_cv_func_fork_works+:} false; then : 7327 $as_echo_n "(cached) " >&6 7328else 7329 if test "$cross_compiling" = yes; then : 7330 ac_cv_func_fork_works=cross 7331else 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334$ac_includes_default 7335int 7336main () 7337{ 7338 7339 /* By Ruediger Kuhlmann. */ 7340 return fork () < 0; 7341 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346if ac_fn_c_try_run "$LINENO"; then : 7347 ac_cv_func_fork_works=yes 7348else 7349 ac_cv_func_fork_works=no 7350fi 7351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7352 conftest.$ac_objext conftest.beam conftest.$ac_ext 7353fi 7354 7355fi 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 7357$as_echo "$ac_cv_func_fork_works" >&6; } 7358 7359else 7360 ac_cv_func_fork_works=$ac_cv_func_fork 7361fi 7362if test "x$ac_cv_func_fork_works" = xcross; then 7363 case $host in 7364 *-*-amigaos* | *-*-msdosdjgpp*) 7365 # Override, as these systems have only a dummy fork() stub 7366 ac_cv_func_fork_works=no 7367 ;; 7368 *) 7369 ac_cv_func_fork_works=yes 7370 ;; 7371 esac 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 7373$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 7374fi 7375ac_cv_func_vfork_works=$ac_cv_func_vfork 7376if test "x$ac_cv_func_vfork" = xyes; then 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 7378$as_echo_n "checking for working vfork... " >&6; } 7379if ${ac_cv_func_vfork_works+:} false; then : 7380 $as_echo_n "(cached) " >&6 7381else 7382 if test "$cross_compiling" = yes; then : 7383 ac_cv_func_vfork_works=cross 7384else 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387/* Thanks to Paul Eggert for this test. */ 7388$ac_includes_default 7389#include <sys/wait.h> 7390#ifdef HAVE_VFORK_H 7391# include <vfork.h> 7392#endif 7393/* On some sparc systems, changes by the child to local and incoming 7394 argument registers are propagated back to the parent. The compiler 7395 is told about this with #include <vfork.h>, but some compilers 7396 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 7397 static variable whose address is put into a register that is 7398 clobbered by the vfork. */ 7399static void 7400#ifdef __cplusplus 7401sparc_address_test (int arg) 7402# else 7403sparc_address_test (arg) int arg; 7404#endif 7405{ 7406 static pid_t child; 7407 if (!child) { 7408 child = vfork (); 7409 if (child < 0) { 7410 perror ("vfork"); 7411 _exit(2); 7412 } 7413 if (!child) { 7414 arg = getpid(); 7415 write(-1, "", 0); 7416 _exit (arg); 7417 } 7418 } 7419} 7420 7421int 7422main () 7423{ 7424 pid_t parent = getpid (); 7425 pid_t child; 7426 7427 sparc_address_test (0); 7428 7429 child = vfork (); 7430 7431 if (child == 0) { 7432 /* Here is another test for sparc vfork register problems. This 7433 test uses lots of local variables, at least as many local 7434 variables as main has allocated so far including compiler 7435 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 7436 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 7437 reuse the register of parent for one of the local variables, 7438 since it will think that parent can't possibly be used any more 7439 in this routine. Assigning to the local variable will thus 7440 munge parent in the parent process. */ 7441 pid_t 7442 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 7443 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 7444 /* Convince the compiler that p..p7 are live; otherwise, it might 7445 use the same hardware register for all 8 local variables. */ 7446 if (p != p1 || p != p2 || p != p3 || p != p4 7447 || p != p5 || p != p6 || p != p7) 7448 _exit(1); 7449 7450 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 7451 from child file descriptors. If the child closes a descriptor 7452 before it execs or exits, this munges the parent's descriptor 7453 as well. Test for this by closing stdout in the child. */ 7454 _exit(close(fileno(stdout)) != 0); 7455 } else { 7456 int status; 7457 struct stat st; 7458 7459 while (wait(&status) != child) 7460 ; 7461 return ( 7462 /* Was there some problem with vforking? */ 7463 child < 0 7464 7465 /* Did the child fail? (This shouldn't happen.) */ 7466 || status 7467 7468 /* Did the vfork/compiler bug occur? */ 7469 || parent != getpid() 7470 7471 /* Did the file descriptor bug occur? */ 7472 || fstat(fileno(stdout), &st) != 0 7473 ); 7474 } 7475} 7476_ACEOF 7477if ac_fn_c_try_run "$LINENO"; then : 7478 ac_cv_func_vfork_works=yes 7479else 7480 ac_cv_func_vfork_works=no 7481fi 7482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7483 conftest.$ac_objext conftest.beam conftest.$ac_ext 7484fi 7485 7486fi 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 7488$as_echo "$ac_cv_func_vfork_works" >&6; } 7489 7490fi; 7491if test "x$ac_cv_func_fork_works" = xcross; then 7492 ac_cv_func_vfork_works=$ac_cv_func_vfork 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 7494$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 7495fi 7496 7497if test "x$ac_cv_func_vfork_works" = xyes; then 7498 7499$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 7500 7501else 7502 7503$as_echo "#define vfork fork" >>confdefs.h 7504 7505fi 7506if test "x$ac_cv_func_fork_works" = xyes; then 7507 7508$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 7509 7510fi 7511 7512for ac_header in stdlib.h 7513do : 7514 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 7515if test "x$ac_cv_header_stdlib_h" = xyes; then : 7516 cat >>confdefs.h <<_ACEOF 7517#define HAVE_STDLIB_H 1 7518_ACEOF 7519 7520fi 7521 7522done 7523 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 7525$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 7526if ${ac_cv_func_malloc_0_nonnull+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528else 7529 if test "$cross_compiling" = yes; then : 7530 ac_cv_func_malloc_0_nonnull=no 7531else 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534#if defined STDC_HEADERS || defined HAVE_STDLIB_H 7535# include <stdlib.h> 7536#else 7537char *malloc (); 7538#endif 7539 7540int 7541main () 7542{ 7543return ! malloc (0); 7544 ; 7545 return 0; 7546} 7547_ACEOF 7548if ac_fn_c_try_run "$LINENO"; then : 7549 ac_cv_func_malloc_0_nonnull=yes 7550else 7551 ac_cv_func_malloc_0_nonnull=no 7552fi 7553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7554 conftest.$ac_objext conftest.beam conftest.$ac_ext 7555fi 7556 7557fi 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 7559$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 7560if test $ac_cv_func_malloc_0_nonnull = yes; then : 7561 7562$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 7563 7564else 7565 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 7566 7567 case " $LIBOBJS " in 7568 *" malloc.$ac_objext "* ) ;; 7569 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 7570 ;; 7571esac 7572 7573 7574$as_echo "#define malloc rpl_malloc" >>confdefs.h 7575 7576fi 7577 7578 7579 7580$as_echo "#define RETSIGTYPE void" >>confdefs.h 7581 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 7583$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 7584if ${ac_cv_sys_largefile_source+:} false; then : 7585 $as_echo_n "(cached) " >&6 7586else 7587 while :; do 7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590#include <sys/types.h> /* for off_t */ 7591 #include <stdio.h> 7592int 7593main () 7594{ 7595int (*fp) (FILE *, off_t, int) = fseeko; 7596 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 7597 ; 7598 return 0; 7599} 7600_ACEOF 7601if ac_fn_c_try_link "$LINENO"; then : 7602 ac_cv_sys_largefile_source=no; break 7603fi 7604rm -f core conftest.err conftest.$ac_objext \ 7605 conftest$ac_exeext conftest.$ac_ext 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607/* end confdefs.h. */ 7608#define _LARGEFILE_SOURCE 1 7609#include <sys/types.h> /* for off_t */ 7610 #include <stdio.h> 7611int 7612main () 7613{ 7614int (*fp) (FILE *, off_t, int) = fseeko; 7615 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 7616 ; 7617 return 0; 7618} 7619_ACEOF 7620if ac_fn_c_try_link "$LINENO"; then : 7621 ac_cv_sys_largefile_source=1; break 7622fi 7623rm -f core conftest.err conftest.$ac_objext \ 7624 conftest$ac_exeext conftest.$ac_ext 7625 ac_cv_sys_largefile_source=unknown 7626 break 7627done 7628fi 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 7630$as_echo "$ac_cv_sys_largefile_source" >&6; } 7631case $ac_cv_sys_largefile_source in #( 7632 no | unknown) ;; 7633 *) 7634cat >>confdefs.h <<_ACEOF 7635#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 7636_ACEOF 7637;; 7638esac 7639rm -rf conftest* 7640 7641# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 7642# in glibc 2.1.3, but that breaks too many other things. 7643# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 7644if test $ac_cv_sys_largefile_source != unknown; then 7645 7646$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 7647 7648fi 7649 7650# Check whether --enable-largefile was given. 7651if test "${enable_largefile+set}" = set; then : 7652 enableval=$enable_largefile; 7653fi 7654 7655if test "$enable_largefile" != no; then 7656 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 7658$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 7659if ${ac_cv_sys_largefile_CC+:} false; then : 7660 $as_echo_n "(cached) " >&6 7661else 7662 ac_cv_sys_largefile_CC=no 7663 if test "$GCC" != yes; then 7664 ac_save_CC=$CC 7665 while :; do 7666 # IRIX 6.2 and later do not support large files by default, 7667 # so use the C compiler's -n32 option if that helps. 7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670#include <sys/types.h> 7671 /* Check that off_t can represent 2**63 - 1 correctly. 7672 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7673 since some C++ compilers masquerading as C compilers 7674 incorrectly reject 9223372036854775807. */ 7675#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7676 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7677 && LARGE_OFF_T % 2147483647 == 1) 7678 ? 1 : -1]; 7679int 7680main () 7681{ 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687 if ac_fn_c_try_compile "$LINENO"; then : 7688 break 7689fi 7690rm -f core conftest.err conftest.$ac_objext 7691 CC="$CC -n32" 7692 if ac_fn_c_try_compile "$LINENO"; then : 7693 ac_cv_sys_largefile_CC=' -n32'; break 7694fi 7695rm -f core conftest.err conftest.$ac_objext 7696 break 7697 done 7698 CC=$ac_save_CC 7699 rm -f conftest.$ac_ext 7700 fi 7701fi 7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 7703$as_echo "$ac_cv_sys_largefile_CC" >&6; } 7704 if test "$ac_cv_sys_largefile_CC" != no; then 7705 CC=$CC$ac_cv_sys_largefile_CC 7706 fi 7707 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7709$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7710if ${ac_cv_sys_file_offset_bits+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 while :; do 7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7715/* end confdefs.h. */ 7716#include <sys/types.h> 7717 /* Check that off_t can represent 2**63 - 1 correctly. 7718 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7719 since some C++ compilers masquerading as C compilers 7720 incorrectly reject 9223372036854775807. */ 7721#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7723 && LARGE_OFF_T % 2147483647 == 1) 7724 ? 1 : -1]; 7725int 7726main () 7727{ 7728 7729 ; 7730 return 0; 7731} 7732_ACEOF 7733if ac_fn_c_try_compile "$LINENO"; then : 7734 ac_cv_sys_file_offset_bits=no; break 7735fi 7736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738/* end confdefs.h. */ 7739#define _FILE_OFFSET_BITS 64 7740#include <sys/types.h> 7741 /* Check that off_t can represent 2**63 - 1 correctly. 7742 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7743 since some C++ compilers masquerading as C compilers 7744 incorrectly reject 9223372036854775807. */ 7745#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7747 && LARGE_OFF_T % 2147483647 == 1) 7748 ? 1 : -1]; 7749int 7750main () 7751{ 7752 7753 ; 7754 return 0; 7755} 7756_ACEOF 7757if ac_fn_c_try_compile "$LINENO"; then : 7758 ac_cv_sys_file_offset_bits=64; break 7759fi 7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7761 ac_cv_sys_file_offset_bits=unknown 7762 break 7763done 7764fi 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7766$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 7767case $ac_cv_sys_file_offset_bits in #( 7768 no | unknown) ;; 7769 *) 7770cat >>confdefs.h <<_ACEOF 7771#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 7772_ACEOF 7773;; 7774esac 7775rm -rf conftest* 7776 if test $ac_cv_sys_file_offset_bits = unknown; then 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7778$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 7779if ${ac_cv_sys_large_files+:} false; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 while :; do 7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7784/* end confdefs.h. */ 7785#include <sys/types.h> 7786 /* Check that off_t can represent 2**63 - 1 correctly. 7787 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7788 since some C++ compilers masquerading as C compilers 7789 incorrectly reject 9223372036854775807. */ 7790#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7792 && LARGE_OFF_T % 2147483647 == 1) 7793 ? 1 : -1]; 7794int 7795main () 7796{ 7797 7798 ; 7799 return 0; 7800} 7801_ACEOF 7802if ac_fn_c_try_compile "$LINENO"; then : 7803 ac_cv_sys_large_files=no; break 7804fi 7805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808#define _LARGE_FILES 1 7809#include <sys/types.h> 7810 /* Check that off_t can represent 2**63 - 1 correctly. 7811 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7812 since some C++ compilers masquerading as C compilers 7813 incorrectly reject 9223372036854775807. */ 7814#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7816 && LARGE_OFF_T % 2147483647 == 1) 7817 ? 1 : -1]; 7818int 7819main () 7820{ 7821 7822 ; 7823 return 0; 7824} 7825_ACEOF 7826if ac_fn_c_try_compile "$LINENO"; then : 7827 ac_cv_sys_large_files=1; break 7828fi 7829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7830 ac_cv_sys_large_files=unknown 7831 break 7832done 7833fi 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7835$as_echo "$ac_cv_sys_large_files" >&6; } 7836case $ac_cv_sys_large_files in #( 7837 no | unknown) ;; 7838 *) 7839cat >>confdefs.h <<_ACEOF 7840#define _LARGE_FILES $ac_cv_sys_large_files 7841_ACEOF 7842;; 7843esac 7844rm -rf conftest* 7845 fi 7846 7847 7848fi 7849 7850# The cast to long int works around a bug in the HP C Compiler 7851# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7852# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7853# This bug is HP SR number 8606223364. 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 7855$as_echo_n "checking size of void*... " >&6; } 7856if ${ac_cv_sizeof_voidp+:} false; then : 7857 $as_echo_n "(cached) " >&6 7858else 7859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 7860 7861else 7862 if test "$ac_cv_type_voidp" = yes; then 7863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7865as_fn_error 77 "cannot compute sizeof (void*) 7866See \`config.log' for more details" "$LINENO" 5; } 7867 else 7868 ac_cv_sizeof_voidp=0 7869 fi 7870fi 7871 7872fi 7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 7874$as_echo "$ac_cv_sizeof_voidp" >&6; } 7875 7876 7877 7878cat >>confdefs.h <<_ACEOF 7879#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 7880_ACEOF 7881 7882 7883# The cast to long int works around a bug in the HP C Compiler 7884# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7885# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7886# This bug is HP SR number 8606223364. 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 7888$as_echo_n "checking size of off_t... " >&6; } 7889if ${ac_cv_sizeof_off_t+:} false; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 7893 7894else 7895 if test "$ac_cv_type_off_t" = yes; then 7896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7898as_fn_error 77 "cannot compute sizeof (off_t) 7899See \`config.log' for more details" "$LINENO" 5; } 7900 else 7901 ac_cv_sizeof_off_t=0 7902 fi 7903fi 7904 7905fi 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 7907$as_echo "$ac_cv_sizeof_off_t" >&6; } 7908 7909 7910 7911cat >>confdefs.h <<_ACEOF 7912#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 7913_ACEOF 7914 7915 7916for ac_func in getrandom arc4random arc4random_uniform 7917do : 7918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7919ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7920if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7921 cat >>confdefs.h <<_ACEOF 7922#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7923_ACEOF 7924 7925fi 7926done 7927 7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 7929$as_echo_n "checking for library containing setusercontext... " >&6; } 7930if ${ac_cv_search_setusercontext+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932else 7933 ac_func_search_save_LIBS=$LIBS 7934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936 7937/* Override any GCC internal prototype to avoid an error. 7938 Use char because int might match the return type of a GCC 7939 builtin and then its argument prototype would still apply. */ 7940#ifdef __cplusplus 7941extern "C" 7942#endif 7943char setusercontext (); 7944int 7945main () 7946{ 7947return setusercontext (); 7948 ; 7949 return 0; 7950} 7951_ACEOF 7952for ac_lib in '' util; do 7953 if test -z "$ac_lib"; then 7954 ac_res="none required" 7955 else 7956 ac_res=-l$ac_lib 7957 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7958 fi 7959 if ac_fn_c_try_link "$LINENO"; then : 7960 ac_cv_search_setusercontext=$ac_res 7961fi 7962rm -f core conftest.err conftest.$ac_objext \ 7963 conftest$ac_exeext 7964 if ${ac_cv_search_setusercontext+:} false; then : 7965 break 7966fi 7967done 7968if ${ac_cv_search_setusercontext+:} false; then : 7969 7970else 7971 ac_cv_search_setusercontext=no 7972fi 7973rm conftest.$ac_ext 7974LIBS=$ac_func_search_save_LIBS 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 7977$as_echo "$ac_cv_search_setusercontext" >&6; } 7978ac_res=$ac_cv_search_setusercontext 7979if test "$ac_res" != no; then : 7980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7981 for ac_header in login_cap.h 7982do : 7983 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default 7984" 7985if test "x$ac_cv_header_login_cap_h" = xyes; then : 7986 cat >>confdefs.h <<_ACEOF 7987#define HAVE_LOGIN_CAP_H 1 7988_ACEOF 7989 7990fi 7991 7992done 7993 7994fi 7995 7996for ac_func in tzset alarm chroot dup2 endpwent gethostname memset memcpy pwrite socket strcasecmp strchr strdup strerror strncasecmp strtol writev getaddrinfo getnameinfo freeaddrinfo gai_strerror sigaction sigprocmask strptime strftime localtime_r setusercontext glob initgroups setresuid setreuid setresgid setregid getpwnam mmap ppoll clock_gettime accept4 getifaddrs 7997do : 7998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7999ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8000if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8001 cat >>confdefs.h <<_ACEOF 8002#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8003_ACEOF 8004 8005fi 8006done 8007 8008 8009ac_fn_c_check_type "$LINENO" "struct mmsghdr" "ac_cv_type_struct_mmsghdr" " 8010$ac_includes_default 8011#include <sys/socket.h> 8012 8013" 8014if test "x$ac_cv_type_struct_mmsghdr" = xyes; then : 8015 8016$as_echo "#define HAVE_MMSGHDR 1" >>confdefs.h 8017 8018fi 8019 8020 8021# Check whether --enable-recvmmsg was given. 8022if test "${enable_recvmmsg+set}" = set; then : 8023 enableval=$enable_recvmmsg; 8024fi 8025 8026case "$enable_recvmmsg" in 8027 yes) 8028 ac_fn_c_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg" 8029if test "x$ac_cv_func_recvmmsg" = xyes; then : 8030 8031if test "$cross_compiling" = yes; then : 8032 8033 8034$as_echo "#define HAVE_RECVMMSG 1" >>confdefs.h 8035 8036 8037else 8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039/* end confdefs.h. */ 8040 8041#ifdef HAVE_UNISTD_H 8042#include <unistd.h> 8043#endif 8044#include <sys/socket.h> 8045#include <errno.h> 8046int main(void) 8047{ 8048 int s = socket(AF_INET, SOCK_DGRAM, 0); 8049 int r = recvmmsg(s, 0, 0, 0, 0) == -1 && errno == ENOSYS; 8050 close(s); 8051 return r; 8052} 8053 8054_ACEOF 8055if ac_fn_c_try_run "$LINENO"; then : 8056 8057 8058$as_echo "#define HAVE_RECVMMSG 1" >>confdefs.h 8059 8060fi 8061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8062 conftest.$ac_objext conftest.beam conftest.$ac_ext 8063fi 8064 8065fi 8066 8067 ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg" 8068if test "x$ac_cv_func_sendmmsg" = xyes; then : 8069 8070if test "$cross_compiling" = yes; then : 8071 8072 8073$as_echo "#define HAVE_SENDMMSG 1" >>confdefs.h 8074 8075 8076else 8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079 8080#ifdef HAVE_UNISTD_H 8081#include <unistd.h> 8082#endif 8083#include <sys/socket.h> 8084#include <errno.h> 8085int main(void) 8086{ 8087 int s = socket(AF_INET, SOCK_DGRAM, 0); 8088 int r = sendmmsg(s, 0, 0, 0) == -1 && errno == ENOSYS; 8089 close(s); 8090 return r; 8091} 8092 8093_ACEOF 8094if ac_fn_c_try_run "$LINENO"; then : 8095 8096 8097$as_echo "#define HAVE_SENDMMSG 1" >>confdefs.h 8098 8099fi 8100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8101 conftest.$ac_objext conftest.beam conftest.$ac_ext 8102fi 8103 8104fi 8105 8106 8107 ;; 8108 no|*) 8109 ;; 8110esac 8111 8112# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 8113if echo $target_os | $GREP -i darwin8 > /dev/null; then 8114 8115$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 8116 8117fi 8118 8119# GNU HURD needs _GNU_SOURCE defined for cpu affinity gear 8120if echo $target_os | $EGREP -i 'linux|hurd' > /dev/null; then 8121 $as_echo "#define _GNU_SOURCE, 1, Define this if on Linux or GNU Hurd for cpu affinity interface 1" >>confdefs.h 8122 8123fi 8124 8125# see comment on _GNU_SOURCE above 8126for ac_header in sched.h sys/cpuset.h 8127do : 8128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8129ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8130" 8131if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8132 cat >>confdefs.h <<_ACEOF 8133#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8134_ACEOF 8135 8136fi 8137 8138done 8139 8140 8141# Check for cpu_set_t (Linux) and cpuset_t (FreeBSD and NetBSD) 8142ac_fn_c_check_type "$LINENO" "cpu_set_t" "ac_cv_type_cpu_set_t" " 8143$ac_includes_default 8144#if HAVE_SCHED_H 8145# include <sched.h> 8146#endif 8147#if HAVE_SYS_CPUSET_H 8148# include <sys/cpuset.h> 8149#endif 8150 8151" 8152if test "x$ac_cv_type_cpu_set_t" = xyes; then : 8153 8154cat >>confdefs.h <<_ACEOF 8155#define HAVE_CPU_SET_T 1 8156_ACEOF 8157 8158 8159fi 8160ac_fn_c_check_type "$LINENO" "cpuset_t" "ac_cv_type_cpuset_t" " 8161$ac_includes_default 8162#if HAVE_SCHED_H 8163# include <sched.h> 8164#endif 8165#if HAVE_SYS_CPUSET_H 8166# include <sys/cpuset.h> 8167#endif 8168 8169" 8170if test "x$ac_cv_type_cpuset_t" = xyes; then : 8171 8172cat >>confdefs.h <<_ACEOF 8173#define HAVE_CPUSET_T 1 8174_ACEOF 8175 8176 8177fi 8178ac_fn_c_check_type "$LINENO" "cpuid_t" "ac_cv_type_cpuid_t" " 8179$ac_includes_default 8180#if HAVE_SCHED_H 8181# include <sched.h> 8182#endif 8183#if HAVE_SYS_CPUSET_H 8184# include <sys/cpuset.h> 8185#endif 8186 8187" 8188if test "x$ac_cv_type_cpuid_t" = xyes; then : 8189 8190cat >>confdefs.h <<_ACEOF 8191#define HAVE_CPUID_T 1 8192_ACEOF 8193 8194 8195fi 8196 8197 8198 8199 8200if test x"$ac_cv_type_cpuset_t" = xyes -o x"$ac_cv_type_cpu_set_t" = xyes ; then : 8201 8202 ac_fn_c_check_func "$LINENO" "cpuset_create" "ac_cv_func_cpuset_create" 8203if test "x$ac_cv_func_cpuset_create" = xyes; then : 8204 8205fi 8206 8207 ac_fn_c_check_func "$LINENO" "cpuset_destroy" "ac_cv_func_cpuset_destroy" 8208if test "x$ac_cv_func_cpuset_destroy" = xyes; then : 8209 8210fi 8211 8212 ac_fn_c_check_func "$LINENO" "cpuset_zero" "ac_cv_func_cpuset_zero" 8213if test "x$ac_cv_func_cpuset_zero" = xyes; then : 8214 8215fi 8216 8217 ac_fn_c_check_func "$LINENO" "cpuset_set" "ac_cv_func_cpuset_set" 8218if test "x$ac_cv_func_cpuset_set" = xyes; then : 8219 8220fi 8221 8222 ac_fn_c_check_func "$LINENO" "cpuset_clr" "ac_cv_func_cpuset_clr" 8223if test "x$ac_cv_func_cpuset_clr" = xyes; then : 8224 8225fi 8226 8227 ac_fn_c_check_func "$LINENO" "cpuset_isset" "ac_cv_func_cpuset_isset" 8228if test "x$ac_cv_func_cpuset_isset" = xyes; then : 8229 8230fi 8231 8232 ac_fn_c_check_func "$LINENO" "cpuset_size" "ac_cv_func_cpuset_size" 8233if test "x$ac_cv_func_cpuset_size" = xyes; then : 8234 8235fi 8236 8237 case " $LIBOBJS " in 8238 *" cpuset.$ac_objext "* ) ;; 8239 *) LIBOBJS="$LIBOBJS cpuset.$ac_objext" 8240 ;; 8241esac 8242 8243 for ac_func in sysconf 8244do : 8245 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 8246if test "x$ac_cv_func_sysconf" = xyes; then : 8247 cat >>confdefs.h <<_ACEOF 8248#define HAVE_SYSCONF 1 8249_ACEOF 8250 8251fi 8252done 8253 8254 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CPU_OR works with three arguments" >&5 8256$as_echo_n "checking whether CPU_OR works with three arguments... " >&6; } 8257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8258/* end confdefs.h. */ 8259#ifdef HAVE_SCHED_H 8260# include <sched.h> 8261#endif 8262#ifdef HAVE_SYS_CPUSET_H 8263# include <sys/cpuset.h> 8264#endif 8265#include <string.h> 8266#ifdef HAVE_CPUSET_T 8267#define MY_CPUSET_TYPE cpuset_t 8268#endif 8269#ifdef HAVE_CPU_SET_T 8270#define MY_CPUSET_TYPE cpu_set_t 8271#endif 8272void testing (void) { 8273 MY_CPUSET_TYPE a, b; 8274 memset(&a, 0, sizeof(a)); 8275 memset(&b, 0, sizeof(b)); 8276 CPU_OR(&a, &a, &b); 8277} 8278int 8279main () 8280{ 8281 8282 testing(); 8283 8284 ; 8285 return 0; 8286} 8287_ACEOF 8288if ac_fn_c_try_compile "$LINENO"; then : 8289 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8291$as_echo "yes" >&6; } 8292 8293$as_echo "#define CPU_OR_THREE_ARGS 1" >>confdefs.h 8294 8295 8296else 8297 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8299$as_echo "no" >&6; } 8300 8301fi 8302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8303 8304fi 8305 8306# 8307# sched_setaffinity must be checked using proper includes. 8308# also needs _GNU_SOURCE on Linux and Hurd; see above. 8309# also see https://github.com/NLnetLabs/nsd/issues/82. 8310# 8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5 8312$as_echo_n "checking for sched_setaffinity... " >&6; } 8313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315 8316 #ifdef HAVE_SCHED_H 8317 # include <sched.h> 8318 #endif 8319 #ifdef HAVE_SYS_CPUSET_H 8320 #include <sys/cpuset.h> 8321 #endif 8322 #ifdef HAVE_CPUSET_T 8323 #define MY_CPUSET_TYPE cpuset_t 8324 #endif 8325 #ifdef HAVE_CPU_SET_T 8326 #define MY_CPUSET_TYPE cpu_set_t 8327 #endif 8328 void testing (void) { 8329 MY_CPUSET_TYPE set; 8330 CPU_ZERO(&set); 8331 (void)sched_setaffinity(-1, sizeof(set), &set); 8332 } 8333 8334int 8335main () 8336{ 8337 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_compile "$LINENO"; then : 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8344$as_echo "yes" >&6; } 8345 8346$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h 8347 8348else 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8350$as_echo "no" >&6; } 8351fi 8352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8353 8354# 8355# Checking for missing functions we can replace 8356# 8357ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename" 8358if test "x$ac_cv_func_basename" = xyes; then : 8359 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h 8360 8361else 8362 case " $LIBOBJS " in 8363 *" basename.$ac_objext "* ) ;; 8364 *) LIBOBJS="$LIBOBJS basename.$ac_objext" 8365 ;; 8366esac 8367 8368fi 8369 8370 8371ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 8372if test "x$ac_cv_func_inet_aton" = xyes; then : 8373 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 8374 8375else 8376 case " $LIBOBJS " in 8377 *" inet_aton.$ac_objext "* ) ;; 8378 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 8379 ;; 8380esac 8381 8382fi 8383 8384 8385ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 8386if test "x$ac_cv_func_inet_pton" = xyes; then : 8387 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 8388 8389else 8390 case " $LIBOBJS " in 8391 *" inet_pton.$ac_objext "* ) ;; 8392 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 8393 ;; 8394esac 8395 8396fi 8397 8398 8399ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 8400if test "x$ac_cv_func_inet_ntop" = xyes; then : 8401 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 8402 8403else 8404 case " $LIBOBJS " in 8405 *" inet_ntop.$ac_objext "* ) ;; 8406 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 8407 ;; 8408esac 8409 8410fi 8411 8412 8413ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 8414if test "x$ac_cv_func_snprintf" = xyes; then : 8415 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 8416 8417else 8418 case " $LIBOBJS " in 8419 *" snprintf.$ac_objext "* ) ;; 8420 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 8421 ;; 8422esac 8423 8424fi 8425 8426 8427ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 8428if test "x$ac_cv_func_strlcat" = xyes; then : 8429 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 8430 8431else 8432 case " $LIBOBJS " in 8433 *" strlcat.$ac_objext "* ) ;; 8434 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 8435 ;; 8436esac 8437 8438fi 8439 8440 8441ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 8442if test "x$ac_cv_func_strlcpy" = xyes; then : 8443 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 8444 8445else 8446 case " $LIBOBJS " in 8447 *" strlcpy.$ac_objext "* ) ;; 8448 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 8449 ;; 8450esac 8451 8452fi 8453 8454 8455ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 8456if test "x$ac_cv_func_strptime" = xyes; then : 8457 $as_echo "#define HAVE_STRPTIME 1" >>confdefs.h 8458 8459else 8460 case " $LIBOBJS " in 8461 *" strptime.$ac_objext "* ) ;; 8462 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 8463 ;; 8464esac 8465 8466fi 8467 8468 8469ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton" 8470if test "x$ac_cv_func_b64_pton" = xyes; then : 8471 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h 8472 8473else 8474 case " $LIBOBJS " in 8475 *" b64_pton.$ac_objext "* ) ;; 8476 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 8477 ;; 8478esac 8479 8480fi 8481 8482 8483ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop" 8484if test "x$ac_cv_func_b64_ntop" = xyes; then : 8485 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h 8486 8487else 8488 case " $LIBOBJS " in 8489 *" b64_ntop.$ac_objext "* ) ;; 8490 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 8491 ;; 8492esac 8493 8494fi 8495 8496 8497ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect" 8498if test "x$ac_cv_func_pselect" = xyes; then : 8499 $as_echo "#define HAVE_PSELECT 1" >>confdefs.h 8500 8501else 8502 case " $LIBOBJS " in 8503 *" pselect.$ac_objext "* ) ;; 8504 *) LIBOBJS="$LIBOBJS pselect.$ac_objext" 8505 ;; 8506esac 8507 8508fi 8509 8510 8511ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 8512if test "x$ac_cv_func_memmove" = xyes; then : 8513 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 8514 8515else 8516 case " $LIBOBJS " in 8517 *" memmove.$ac_objext "* ) ;; 8518 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 8519 ;; 8520esac 8521 8522fi 8523 8524 8525ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 8526if test "x$ac_cv_func_setproctitle" = xyes; then : 8527 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h 8528 8529else 8530 case " $LIBOBJS " in 8531 *" setproctitle.$ac_objext "* ) ;; 8532 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" 8533 ;; 8534esac 8535 8536fi 8537 8538 8539ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 8540if test "x$ac_cv_func_explicit_bzero" = xyes; then : 8541 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 8542 8543else 8544 case " $LIBOBJS " in 8545 *" explicit_bzero.$ac_objext "* ) ;; 8546 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 8547 ;; 8548esac 8549 8550fi 8551 8552 8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 8554$as_echo_n "checking for reallocarray... " >&6; } 8555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557 8558#ifndef _OPENBSD_SOURCE 8559#define _OPENBSD_SOURCE 1 8560#endif 8561 8562$ac_includes_default 8563 8564#include <stdlib.h> 8565int main(void) { 8566 void* p = reallocarray(NULL, 10, 100); 8567 free(p); 8568 return 0; 8569} 8570 8571_ACEOF 8572if ac_fn_c_try_link "$LINENO"; then : 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8574$as_echo "yes" >&6; } 8575 8576$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 8577 8578 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" " 8579$ac_includes_default 8580#include <stdlib.h> 8581 8582" 8583if test "x$ac_cv_have_decl_reallocarray" = xyes; then : 8584 ac_have_decl=1 8585else 8586 ac_have_decl=0 8587fi 8588 8589cat >>confdefs.h <<_ACEOF 8590#define HAVE_DECL_REALLOCARRAY $ac_have_decl 8591_ACEOF 8592if test $ac_have_decl = 1; then : 8593 8594else 8595 8596 8597$as_echo "#define REALLOCARRAY_NEEDS_DEFINES 1" >>confdefs.h 8598 8599 8600fi 8601 8602 8603else 8604 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8606$as_echo "no" >&6; } 8607 case " $LIBOBJS " in 8608 *" reallocarray.$ac_objext "* ) ;; 8609 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 8610 ;; 8611esac 8612 8613 8614fi 8615rm -f core conftest.err conftest.$ac_objext \ 8616 conftest$ac_exeext conftest.$ac_ext 8617 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect prototype in sys/select.h" >&5 8619$as_echo_n "checking for pselect prototype in sys/select.h... " >&6; } 8620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8621/* end confdefs.h. */ 8622#include <sys/select.h> 8623 8624_ACEOF 8625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8626 $EGREP "[^a-zA-Z_]*pselect[^a-zA-Z_]" >/dev/null 2>&1; then : 8627 8628$as_echo "#define HAVE_PSELECT_PROTO 1" >>confdefs.h 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8630$as_echo "yes" >&6; } 8631else 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8633$as_echo "no" >&6; } 8634fi 8635rm -f conftest* 8636 8637 8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime_r prototype in time.h" >&5 8639$as_echo_n "checking for ctime_r prototype in time.h... " >&6; } 8640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641/* end confdefs.h. */ 8642#include <time.h> 8643 8644_ACEOF 8645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8646 $EGREP "[^a-zA-Z_]*ctime_r[^a-zA-Z_]" >/dev/null 2>&1; then : 8647 8648$as_echo "#define HAVE_CTIME_R_PROTO 1" >>confdefs.h 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8650$as_echo "yes" >&6; } 8651else 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8653$as_echo "no" >&6; } 8654fi 8655rm -f conftest* 8656 8657 8658ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" " 8659$ac_includes_default 8660#ifdef HAVE_SIGNAL_H 8661#include <signal.h> 8662#endif 8663#ifdef HAVE_TIME_H 8664#include <time.h> 8665#endif 8666 8667" 8668if test "x$ac_cv_type_struct_timespec" = xyes; then : 8669 8670$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 8671 8672fi 8673 8674 8675 8676cat >>confdefs.h <<_ACEOF 8677#define IDENTITY "unidentified server" 8678_ACEOF 8679 8680 8681cat >>confdefs.h <<_ACEOF 8682#define VERSION PACKAGE_STRING 8683_ACEOF 8684 8685 8686cat >>confdefs.h <<_ACEOF 8687#define TCP_BACKLOG 256 8688_ACEOF 8689 8690 8691cat >>confdefs.h <<_ACEOF 8692#define TCP_PORT "53" 8693_ACEOF 8694 8695 8696cat >>confdefs.h <<_ACEOF 8697#define TCP_MAX_MESSAGE_LEN 65535 8698_ACEOF 8699 8700 8701cat >>confdefs.h <<_ACEOF 8702#define UDP_PORT "53" 8703_ACEOF 8704 8705 8706cat >>confdefs.h <<_ACEOF 8707#define UDP_MAX_MESSAGE_LEN 512 8708_ACEOF 8709 8710 8711cat >>confdefs.h <<_ACEOF 8712#define EDNS_MAX_MESSAGE_LEN 1232 8713_ACEOF 8714 8715 8716cat >>confdefs.h <<_ACEOF 8717#define TLS_PORT "853" 8718_ACEOF 8719 8720 8721cat >>confdefs.h <<_ACEOF 8722#define MAXSYSLOGMSGLEN 512 8723_ACEOF 8724 8725 8726cat >>confdefs.h <<_ACEOF 8727#define NSD_CONTROL_PORT 8952 8728_ACEOF 8729 8730 8731cat >>confdefs.h <<_ACEOF 8732#define NSD_CONTROL_VERSION 1 8733_ACEOF 8734 8735 8736cat >>confdefs.h <<_ACEOF 8737#define VERIFY_PORT "5347" 8738_ACEOF 8739 8740 8741facility=LOG_DAEMON 8742 8743# Check whether --with-facility was given. 8744if test "${with_facility+set}" = set; then : 8745 withval=$with_facility; facility=$withval 8746fi 8747 8748 8749cat >>confdefs.h <<_ACEOF 8750#define FACILITY $facility 8751_ACEOF 8752 8753 8754tcp_timeout=120 8755 8756# Check whether --with-tcp_timeout was given. 8757if test "${with_tcp_timeout+set}" = set; then : 8758 withval=$with_tcp_timeout; tcp_timeout=$withval 8759fi 8760 8761 8762cat >>confdefs.h <<_ACEOF 8763#define TCP_TIMEOUT $tcp_timeout 8764_ACEOF 8765 8766 8767# Check whether --enable-root-server was given. 8768if test "${enable_root_server+set}" = set; then : 8769 enableval=$enable_root_server; 8770fi 8771 8772 8773# Check whether --enable-ipv6 was given. 8774if test "${enable_ipv6+set}" = set; then : 8775 enableval=$enable_ipv6; 8776fi 8777 8778case "$enable_ipv6" in 8779 no) 8780 ;; 8781 yes|*) 8782 8783cat >>confdefs.h <<_ACEOF 8784#define INET6 /**/ 8785_ACEOF 8786 8787 ;; 8788esac 8789 8790# Check whether --enable-bind8-stats was given. 8791if test "${enable_bind8_stats+set}" = set; then : 8792 enableval=$enable_bind8_stats; 8793fi 8794 8795 8796case "$enable_bind8_stats" in 8797 yes|'') 8798 8799cat >>confdefs.h <<_ACEOF 8800#define BIND8_STATS /**/ 8801_ACEOF 8802 8803 ;; 8804 no|*) 8805 ;; 8806esac 8807 8808# Check whether --enable-zone-stats was given. 8809if test "${enable_zone_stats+set}" = set; then : 8810 enableval=$enable_zone_stats; 8811fi 8812 8813case "$enable_zone_stats" in 8814 yes) 8815 8816cat >>confdefs.h <<_ACEOF 8817#define USE_ZONE_STATS /**/ 8818_ACEOF 8819 8820 8821cat >>confdefs.h <<_ACEOF 8822#define BIND8_STATS /**/ 8823_ACEOF 8824 8825 ;; 8826 no|''|*) 8827 ;; 8828esac 8829 8830# Check whether --enable-checking was given. 8831if test "${enable_checking+set}" = set; then : 8832 enableval=$enable_checking; 8833fi 8834 8835case "$enable_checking" in 8836 yes) 8837 8838 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 8840$as_echo_n "checking whether $CC supports -W... " >&6; } 8841cache=`echo W | $SED 'y%.=/+-%___p_%'` 8842if eval \${cv_prog_cc_flag_$cache+:} false; then : 8843 $as_echo_n "(cached) " >&6 8844else 8845 8846echo 'void f(void){}' >conftest.c 8847if test -z "`$CC -W -c conftest.c 2>&1`"; then 8848eval "cv_prog_cc_flag_$cache=yes" 8849else 8850eval "cv_prog_cc_flag_$cache=no" 8851fi 8852rm -f conftest* 8853 8854fi 8855 8856if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8858$as_echo "yes" >&6; } 8859: 8860 CFLAGS="$CFLAGS -W" 8861else 8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8863$as_echo "no" >&6; } 8864: 8865 8866fi 8867 8868 8869 8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 8871$as_echo_n "checking whether $CC supports -Wall... " >&6; } 8872cache=`echo Wall | $SED 'y%.=/+-%___p_%'` 8873if eval \${cv_prog_cc_flag_$cache+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 8877echo 'void f(void){}' >conftest.c 8878if test -z "`$CC -Wall -c conftest.c 2>&1`"; then 8879eval "cv_prog_cc_flag_$cache=yes" 8880else 8881eval "cv_prog_cc_flag_$cache=no" 8882fi 8883rm -f conftest* 8884 8885fi 8886 8887if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8889$as_echo "yes" >&6; } 8890: 8891 CFLAGS="$CFLAGS -Wall" 8892else 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8894$as_echo "no" >&6; } 8895: 8896 8897fi 8898 8899 8900 8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 8902$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 8903cache=`echo Wextra | $SED 'y%.=/+-%___p_%'` 8904if eval \${cv_prog_cc_flag_$cache+:} false; then : 8905 $as_echo_n "(cached) " >&6 8906else 8907 8908echo 'void f(void){}' >conftest.c 8909if test -z "`$CC -Wextra -c conftest.c 2>&1`"; then 8910eval "cv_prog_cc_flag_$cache=yes" 8911else 8912eval "cv_prog_cc_flag_$cache=no" 8913fi 8914rm -f conftest* 8915 8916fi 8917 8918if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8920$as_echo "yes" >&6; } 8921: 8922 CFLAGS="$CFLAGS -Wextra" 8923else 8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8925$as_echo "no" >&6; } 8926: 8927 8928fi 8929 8930 8931 8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 8933$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 8934cache=`echo Wdeclaration-after-statement | $SED 'y%.=/+-%___p_%'` 8935if eval \${cv_prog_cc_flag_$cache+:} false; then : 8936 $as_echo_n "(cached) " >&6 8937else 8938 8939echo 'void f(void){}' >conftest.c 8940if test -z "`$CC -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 8941eval "cv_prog_cc_flag_$cache=yes" 8942else 8943eval "cv_prog_cc_flag_$cache=no" 8944fi 8945rm -f conftest* 8946 8947fi 8948 8949if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8951$as_echo "yes" >&6; } 8952: 8953 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 8954else 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8956$as_echo "no" >&6; } 8957: 8958 8959fi 8960 8961 ;; 8962 no|*) 8963 8964$as_echo "#define NDEBUG /**/" >>confdefs.h 8965 8966 ;; 8967esac 8968 8969# Check whether --enable-memclean was given. 8970if test "${enable_memclean+set}" = set; then : 8971 enableval=$enable_memclean; 8972fi 8973 8974if test "$enable_memclean" = "yes"; then 8975cat >>confdefs.h <<_ACEOF 8976#define MEMCLEAN 1 8977_ACEOF 8978 8979fi 8980 8981# Check whether --enable-ratelimit was given. 8982if test "${enable_ratelimit+set}" = set; then : 8983 enableval=$enable_ratelimit; 8984fi 8985 8986case "$enable_ratelimit" in 8987 yes) 8988 8989cat >>confdefs.h <<_ACEOF 8990#define RATELIMIT /**/ 8991_ACEOF 8992 8993 ratelimit="xx" 8994 ;; 8995 no|*) 8996 ratelimit="" 8997 ;; 8998esac 8999 9000 9001# Check whether --enable-ratelimit-default-is-off was given. 9002if test "${enable_ratelimit_default_is_off+set}" = set; then : 9003 enableval=$enable_ratelimit_default_is_off; 9004fi 9005 9006case "$enable_ratelimit_default_is_off" in 9007 yes) 9008 9009cat >>confdefs.h <<_ACEOF 9010#define RATELIMIT_DEFAULT_OFF /**/ 9011_ACEOF 9012 9013 ratelimit_default="off" 9014 ;; 9015 no|*) 9016 ratelimit_default="on" 9017 ;; 9018esac 9019 9020 9021# we need SSL for TSIG (and maybe also for NSEC3). 9022 9023 9024# Check whether --with-ssl was given. 9025if test "${with_ssl+set}" = set; then : 9026 withval=$with_ssl; 9027 9028else 9029 9030 withval="yes" 9031 9032fi 9033 9034 if test x_$withval != x_no; then 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 9036$as_echo_n "checking for SSL... " >&6; } 9037 if test -n "$withval"; then 9038 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then 9039 ssldir="$withval" 9040 found_ssl="yes" 9041 withval="" 9042 ssldir_include="$ssldir" 9043 CPPFLAGS="$CPPFLAGS -I$ssldir_include"; 9044 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'` 9045 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 9046 : # found here 9047 else 9048 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'` 9049 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 9050 : # found here 9051 else 9052 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5 9053 fi 9054 fi 9055 fi 9056 fi 9057 if test x_$withval = x_ -o x_$withval = x_yes; then 9058 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/sfw /usr/local /usr /usr/local/opt/openssl" 9059 fi 9060 for dir in $withval; do 9061 ssldir="$dir" 9062 if test -f "$dir/include/openssl/ssl.h"; then 9063 found_ssl="yes"; 9064 if test x_$ssldir != x_/usr; then 9065 CPPFLAGS="$CPPFLAGS -I$ssldir/include"; 9066 fi 9067 ssldir_include="$ssldir/include" 9068 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 9069 ssldir_lib="$ssldir/lib64" 9070 else 9071 ssldir_lib="$ssldir/lib" 9072 fi 9073 break; 9074 fi 9075 done 9076 if test x_$found_ssl != x_yes; then 9077 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 9078 else 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 9080$as_echo "found in $ssldir" >&6; } 9081 HAVE_SSL=yes 9082 9083cat >>confdefs.h <<_ACEOF 9084#define HAVE_SSL /**/ 9085_ACEOF 9086 9087 if test x_$ssldir != x_/usr; then 9088 LDFLAGS="$LDFLAGS -L$ssldir_lib"; 9089 fi 9090 if test x_$ssldir = x_/usr/sfw; then 9091 LDFLAGS="$LDFLAGS -R$ssldir_lib"; 9092 fi 9093 fi 9094 9095 fi 9096 9097if test x$HAVE_SSL = x"yes"; then 9098 9099# check if libssl needs libdl 9100BAKLIBS="$LIBS" 9101LIBS="-lssl $LIBS" 9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 9103$as_echo_n "checking if libssl needs libdl... " >&6; } 9104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9105/* end confdefs.h. */ 9106 9107/* Override any GCC internal prototype to avoid an error. 9108 Use char because int might match the return type of a GCC 9109 builtin and then its argument prototype would still apply. */ 9110#ifdef __cplusplus 9111extern "C" 9112#endif 9113char SSL_CTX_new (); 9114int 9115main () 9116{ 9117return SSL_CTX_new (); 9118 ; 9119 return 0; 9120} 9121_ACEOF 9122if ac_fn_c_try_link "$LINENO"; then : 9123 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9125$as_echo "no" >&6; } 9126 LIBS="$BAKLIBS" 9127 9128else 9129 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9131$as_echo "yes" >&6; } 9132 LIBS="$BAKLIBS" 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 9134$as_echo_n "checking for library containing dlopen... " >&6; } 9135if ${ac_cv_search_dlopen+:} false; then : 9136 $as_echo_n "(cached) " >&6 9137else 9138 ac_func_search_save_LIBS=$LIBS 9139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140/* end confdefs.h. */ 9141 9142/* Override any GCC internal prototype to avoid an error. 9143 Use char because int might match the return type of a GCC 9144 builtin and then its argument prototype would still apply. */ 9145#ifdef __cplusplus 9146extern "C" 9147#endif 9148char dlopen (); 9149int 9150main () 9151{ 9152return dlopen (); 9153 ; 9154 return 0; 9155} 9156_ACEOF 9157for ac_lib in '' dl; do 9158 if test -z "$ac_lib"; then 9159 ac_res="none required" 9160 else 9161 ac_res=-l$ac_lib 9162 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9163 fi 9164 if ac_fn_c_try_link "$LINENO"; then : 9165 ac_cv_search_dlopen=$ac_res 9166fi 9167rm -f core conftest.err conftest.$ac_objext \ 9168 conftest$ac_exeext 9169 if ${ac_cv_search_dlopen+:} false; then : 9170 break 9171fi 9172done 9173if ${ac_cv_search_dlopen+:} false; then : 9174 9175else 9176 ac_cv_search_dlopen=no 9177fi 9178rm conftest.$ac_ext 9179LIBS=$ac_func_search_save_LIBS 9180fi 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 9182$as_echo "$ac_cv_search_dlopen" >&6; } 9183ac_res=$ac_cv_search_dlopen 9184if test "$ac_res" != no; then : 9185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9186 9187fi 9188 9189 9190fi 9191rm -f core conftest.err conftest.$ac_objext \ 9192 conftest$ac_exeext conftest.$ac_ext 9193 # remove space after -ldl if there. 9194 LIBS=`echo "$LIBS" | sed -e 's/ $//'` 9195 9196 # Check for -pthread 9197 BAKLIBS="$LIBS" 9198 LIBS="-lcrypto $LIBS" 9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9200/* end confdefs.h. */ 9201 9202int 9203main () 9204{ 9205 9206 int EVP_sha256(void); 9207 (void)EVP_sha256(); 9208 9209 ; 9210 return 0; 9211} 9212_ACEOF 9213if ac_fn_c_try_link "$LINENO"; then : 9214 9215else 9216 9217 BAKCFLAGS="$CFLAGS" 9218 CFLAGS="$CFLAGS -pthread" 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcrypto needs -pthread" >&5 9220$as_echo_n "checking if libcrypto needs -pthread... " >&6; } 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9222/* end confdefs.h. */ 9223 9224/* Override any GCC internal prototype to avoid an error. 9225 Use char because int might match the return type of a GCC 9226 builtin and then its argument prototype would still apply. */ 9227#ifdef __cplusplus 9228extern "C" 9229#endif 9230char EVP_sha256 (); 9231int 9232main () 9233{ 9234return EVP_sha256 (); 9235 ; 9236 return 0; 9237} 9238_ACEOF 9239if ac_fn_c_try_link "$LINENO"; then : 9240 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9242$as_echo "yes" >&6; } 9243 9244else 9245 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9247$as_echo "no" >&6; } 9248 CFLAGS="$BAKCFLAGS" 9249 9250fi 9251rm -f core conftest.err conftest.$ac_objext \ 9252 conftest$ac_exeext conftest.$ac_ext 9253 9254fi 9255rm -f core conftest.err conftest.$ac_objext \ 9256 conftest$ac_exeext conftest.$ac_ext 9257 LIBS="$BAKLIBS" 9258 9259 if test -n "$ssldir"; then 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 9261$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; } 9262if ${ac_cv_lib_crypto_EVP_sha256+:} false; then : 9263 $as_echo_n "(cached) " >&6 9264else 9265 ac_check_lib_save_LIBS=$LIBS 9266LIBS="-lcrypto $LIBS" 9267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9268/* end confdefs.h. */ 9269 9270/* Override any GCC internal prototype to avoid an error. 9271 Use char because int might match the return type of a GCC 9272 builtin and then its argument prototype would still apply. */ 9273#ifdef __cplusplus 9274extern "C" 9275#endif 9276char EVP_sha256 (); 9277int 9278main () 9279{ 9280return EVP_sha256 (); 9281 ; 9282 return 0; 9283} 9284_ACEOF 9285if ac_fn_c_try_link "$LINENO"; then : 9286 ac_cv_lib_crypto_EVP_sha256=yes 9287else 9288 ac_cv_lib_crypto_EVP_sha256=no 9289fi 9290rm -f core conftest.err conftest.$ac_objext \ 9291 conftest$ac_exeext conftest.$ac_ext 9292LIBS=$ac_check_lib_save_LIBS 9293fi 9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sha256" >&5 9295$as_echo "$ac_cv_lib_crypto_EVP_sha256" >&6; } 9296if test "x$ac_cv_lib_crypto_EVP_sha256" = xyes; then : 9297 cat >>confdefs.h <<_ACEOF 9298#define HAVE_LIBCRYPTO 1 9299_ACEOF 9300 9301 LIBS="-lcrypto $LIBS" 9302 9303else 9304 9305 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 9306 9307fi 9308 9309 fi 9310 SSL_LIBS="-lssl" 9311 9312 for ac_header in openssl/ssl.h openssl/err.h openssl/rand.h openssl/ocsp.h openssl/core_names.h 9313do : 9314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9315ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9316" 9317if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9318 cat >>confdefs.h <<_ACEOF 9319#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9320_ACEOF 9321 9322fi 9323 9324done 9325 9326 for ac_func in HMAC_CTX_reset HMAC_CTX_new EVP_cleanup ERR_load_crypto_strings OPENSSL_init_crypto CRYPTO_memcmp EC_KEY_new_by_curve_name EVP_MAC_CTX_new EVP_MAC_CTX_set_params EVP_MAC_CTX_get_mac_size SHA1_Init 9327do : 9328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9329ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9330if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9331 cat >>confdefs.h <<_ACEOF 9332#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9333_ACEOF 9334 9335fi 9336done 9337 9338 if test "$ac_cv_func_SHA1_Init" = "yes"; then 9339 9340 9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SHA1_Init is deprecated" >&5 9342$as_echo_n "checking if SHA1_Init is deprecated... " >&6; } 9343cache=`echo SHA1_Init | sed 'y%.=/+-%___p_%'` 9344if eval \${cv_cc_deprecated_$cache+:} false; then : 9345 $as_echo_n "(cached) " >&6 9346else 9347 9348echo ' 9349#include <openssl/sha.h> 9350' >conftest.c 9351echo 'void f(void){ (void)SHA1_Init(NULL); }' >>conftest.c 9352if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 9353eval "cv_cc_deprecated_$cache=no" 9354else 9355eval "cv_cc_deprecated_$cache=yes" 9356fi 9357rm -f conftest conftest.o conftest.c 9358 9359fi 9360 9361if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9363$as_echo "yes" >&6; } 9364 9365cat >>confdefs.h <<_ACEOF 9366#define DEPRECATED_SHA1_INIT 1 9367_ACEOF 9368 9369: 9370 9371else 9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9373$as_echo "no" >&6; } 9374: 9375 9376fi 9377 9378 fi 9379 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 9380$ac_includes_default 9381#ifdef HAVE_OPENSSL_ERR_H 9382#include <openssl/err.h> 9383#endif 9384 9385#ifdef HAVE_OPENSSL_RAND_H 9386#include <openssl/rand.h> 9387#endif 9388 9389#ifdef HAVE_OPENSSL_CONF_H 9390#include <openssl/conf.h> 9391#endif 9392 9393#ifdef HAVE_OPENSSL_ENGINE_H 9394#include <openssl/engine.h> 9395#endif 9396#include <openssl/ssl.h> 9397#include <openssl/evp.h> 9398 9399" 9400if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then : 9401 ac_have_decl=1 9402else 9403 ac_have_decl=0 9404fi 9405 9406cat >>confdefs.h <<_ACEOF 9407#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl 9408_ACEOF 9409ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_tmp_ecdh" "ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" " 9410$ac_includes_default 9411#ifdef HAVE_OPENSSL_ERR_H 9412#include <openssl/err.h> 9413#endif 9414 9415#ifdef HAVE_OPENSSL_RAND_H 9416#include <openssl/rand.h> 9417#endif 9418 9419#ifdef HAVE_OPENSSL_CONF_H 9420#include <openssl/conf.h> 9421#endif 9422 9423#ifdef HAVE_OPENSSL_ENGINE_H 9424#include <openssl/engine.h> 9425#endif 9426#include <openssl/ssl.h> 9427#include <openssl/evp.h> 9428 9429" 9430if test "x$ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" = xyes; then : 9431 ac_have_decl=1 9432else 9433 ac_have_decl=0 9434fi 9435 9436cat >>confdefs.h <<_ACEOF 9437#define HAVE_DECL_SSL_CTX_SET_TMP_ECDH $ac_have_decl 9438_ACEOF 9439 9440 ac_fn_c_check_decl "$LINENO" "TLS1_3_VERSION" "ac_cv_have_decl_TLS1_3_VERSION" "#include <openssl/ssl.h> 9441" 9442if test "x$ac_cv_have_decl_TLS1_3_VERSION" = xyes; then : 9443 9444$as_echo "#define HAVE_TLS_1_3 1" >>confdefs.h 9445 9446else 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TLS 1.3, therefore XFR-over-TLS is disabled" >&5 9448$as_echo "$as_me: WARNING: No TLS 1.3, therefore XFR-over-TLS is disabled" >&2;} 9449fi 9450 9451 9452 BAKLIBS="$LIBS" 9453 LIBS="-lssl $LIBS" 9454 for ac_func in OPENSSL_init_ssl SSL_get1_peer_certificate SSL_CTX_set_security_level ERR_load_SSL_strings 9455do : 9456 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9457ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9458if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9459 cat >>confdefs.h <<_ACEOF 9460#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9461_ACEOF 9462 9463fi 9464done 9465 9466 if test "$ac_cv_func_ERR_load_SSL_strings" = "yes"; then 9467 9468 9469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ERR_load_SSL_strings is deprecated" >&5 9470$as_echo_n "checking if ERR_load_SSL_strings is deprecated... " >&6; } 9471cache=`echo ERR_load_SSL_strings | sed 'y%.=/+-%___p_%'` 9472if eval \${cv_cc_deprecated_$cache+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 9476echo ' 9477#include <openssl/ssl.h> 9478' >conftest.c 9479echo 'void f(void){ (void)ERR_load_SSL_strings(); }' >>conftest.c 9480if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 9481eval "cv_cc_deprecated_$cache=no" 9482else 9483eval "cv_cc_deprecated_$cache=yes" 9484fi 9485rm -f conftest conftest.o conftest.c 9486 9487fi 9488 9489if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9491$as_echo "yes" >&6; } 9492 9493cat >>confdefs.h <<_ACEOF 9494#define DEPRECATED_ERR_LOAD_SSL_STRINGS 1 9495_ACEOF 9496 9497: 9498 9499else 9500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9501$as_echo "no" >&6; } 9502: 9503 9504fi 9505 9506 fi 9507 LIBS="$BAKLIBS" 9508 9509else 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore TLS is disabled" >&5 9511$as_echo "$as_me: WARNING: No SSL, therefore TLS is disabled" >&2;} 9512fi 9513 9514# Check whether --enable-nsec3 was given. 9515if test "${enable_nsec3+set}" = set; then : 9516 enableval=$enable_nsec3; 9517fi 9518 9519case "$enable_nsec3" in 9520 no) 9521 ;; 9522 yes) 9523 9524cat >>confdefs.h <<_ACEOF 9525#define NSEC3 /**/ 9526_ACEOF 9527 9528 ;; 9529 *) 9530 if test x$HAVE_SSL = x"yes"; then 9531 9532cat >>confdefs.h <<_ACEOF 9533#define NSEC3 /**/ 9534_ACEOF 9535 9536 else 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore NSEC3 is disabled" >&5 9538$as_echo "$as_me: WARNING: No SSL, therefore NSEC3 is disabled" >&2;} 9539 fi 9540 ;; 9541esac 9542 9543# Check whether --enable-minimal-responses was given. 9544if test "${enable_minimal_responses+set}" = set; then : 9545 enableval=$enable_minimal_responses; 9546fi 9547 9548case "$enable_minimal_responses" in 9549 no) 9550 ;; 9551 yes|*) 9552 9553cat >>confdefs.h <<_ACEOF 9554#define MINIMAL_RESPONSES /**/ 9555_ACEOF 9556 9557 ;; 9558esac 9559 9560# Check whether --enable-mmap was given. 9561if test "${enable_mmap+set}" = set; then : 9562 enableval=$enable_mmap; 9563fi 9564 9565case "$enable_mmap" in 9566 yes) 9567 for ac_header in sys/mman.h 9568do : 9569 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default 9570" 9571if test "x$ac_cv_header_sys_mman_h" = xyes; then : 9572 cat >>confdefs.h <<_ACEOF 9573#define HAVE_SYS_MMAN_H 1 9574_ACEOF 9575 9576fi 9577 9578done 9579 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 9581$as_echo_n "checking for uintptr_t... " >&6; } 9582if ${ac_cv_type_uintptr_t+:} false; then : 9583 $as_echo_n "(cached) " >&6 9584else 9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9586/* end confdefs.h. */ 9587 9588#include <sys/types.h> 9589#include <stdlib.h> 9590#include <stddef.h> 9591 9592#ifdef HAVE_STDINT_H 9593#include <stdint.h> 9594#endif 9595 9596#ifdef HAVE_SYS_SOCKET_H 9597#include <sys/socket.h> 9598#endif 9599 9600#ifdef HAVE_ARPA_INET_H 9601#include <arpa/inet.h> 9602#endif 9603 9604#ifdef HAVE_SIGNAL_H 9605#include <signal.h> 9606#endif 9607 9608/* For Tru64 */ 9609#ifdef HAVE_SYS_BITYPES_H 9610#include <sys/bitypes.h> 9611#endif 9612 9613_ACEOF 9614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9615 $EGREP "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 9616 ac_cv_type_uintptr_t=yes 9617else 9618 ac_cv_type_uintptr_t=no 9619fi 9620rm -f conftest* 9621 9622fi 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uintptr_t" >&5 9624$as_echo "$ac_cv_type_uintptr_t" >&6; } 9625if test $ac_cv_type_uintptr_t = no; then 9626 9627$as_echo "#define uintptr_t void*" >>confdefs.h 9628 9629fi 9630 9631 for ac_func in mmap munmap 9632do : 9633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9634ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9635if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9636 cat >>confdefs.h <<_ACEOF 9637#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9638_ACEOF 9639 9640fi 9641done 9642 9643 9644cat >>confdefs.h <<_ACEOF 9645#define USE_MMAP_ALLOC /**/ 9646_ACEOF 9647 9648 ;; 9649 no|*) 9650 ;; 9651esac 9652 9653# Check whether --enable-radix-tree was given. 9654if test "${enable_radix_tree+set}" = set; then : 9655 enableval=$enable_radix_tree; 9656fi 9657 9658case "$enable_radix_tree" in 9659 no) 9660 ;; 9661 yes|*) 9662 9663cat >>confdefs.h <<_ACEOF 9664#define USE_RADIX_TREE /**/ 9665_ACEOF 9666 9667 ;; 9668esac 9669 9670# Check whether --enable-packed was given. 9671if test "${enable_packed+set}" = set; then : 9672 enableval=$enable_packed; 9673fi 9674 9675case "$enable_packed" in 9676 yes) 9677 9678cat >>confdefs.h <<_ACEOF 9679#define PACKED_STRUCTS /**/ 9680_ACEOF 9681 9682 9683 9684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-address-of-packed-member" >&5 9685$as_echo_n "checking whether $CC supports -Wno-address-of-packed-member... " >&6; } 9686cache=`echo Wno-address-of-packed-member | sed 'y%.=/+-%___p_%'` 9687if eval \${cv_prog_cc_flag_$cache+:} false; then : 9688 $as_echo_n "(cached) " >&6 9689else 9690 9691echo 'void f(void){}' >conftest.c 9692if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-address-of-packed-member -c conftest.c 2>&1`"; then 9693eval "cv_prog_cc_flag_$cache=yes" 9694else 9695eval "cv_prog_cc_flag_$cache=no" 9696fi 9697rm -f conftest conftest.o conftest.c 9698 9699fi 9700 9701if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9703$as_echo "yes" >&6; } 9704: 9705CFLAGS="$CFLAGS -Wno-address-of-packed-member" 9706else 9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9708$as_echo "no" >&6; } 9709: 9710 9711fi 9712 9713 ;; 9714 no|*) 9715 ;; 9716esac 9717 9718# check for dnstap if requested 9719 9720 # Check whether --enable-dnstap was given. 9721if test "${enable_dnstap+set}" = set; then : 9722 enableval=$enable_dnstap; opt_dnstap=$enableval 9723else 9724 opt_dnstap=no 9725fi 9726 9727 9728 9729# Check whether --with-dnstap-socket-path was given. 9730if test "${with_dnstap_socket_path+set}" = set; then : 9731 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 9732else 9733 opt_dnstap_socket_path="${localstatedir}/run/nsd-dnstap.sock" 9734fi 9735 9736 9737 if test "x$opt_dnstap" != "xno"; then 9738 # Extract the first word of "protoc-c", so it can be a program name with args. 9739set dummy protoc-c; ac_word=$2 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9741$as_echo_n "checking for $ac_word... " >&6; } 9742if ${ac_cv_path_PROTOC_C+:} false; then : 9743 $as_echo_n "(cached) " >&6 9744else 9745 case $PROTOC_C in 9746 [\\/]* | ?:[\\/]*) 9747 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 9748 ;; 9749 *) 9750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9751for as_dir in $PATH 9752do 9753 IFS=$as_save_IFS 9754 test -z "$as_dir" && as_dir=. 9755 for ac_exec_ext in '' $ac_executable_extensions; do 9756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9757 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 9758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9759 break 2 9760 fi 9761done 9762 done 9763IFS=$as_save_IFS 9764 9765 ;; 9766esac 9767fi 9768PROTOC_C=$ac_cv_path_PROTOC_C 9769if test -n "$PROTOC_C"; then 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 9771$as_echo "$PROTOC_C" >&6; } 9772else 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9774$as_echo "no" >&6; } 9775fi 9776 9777 9778 if test -z "$PROTOC_C"; then 9779 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 9780 fi 9781 9782# Check whether --with-protobuf-c was given. 9783if test "${with_protobuf_c+set}" = set; then : 9784 withval=$with_protobuf_c; 9785 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 9786 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 9787 CFLAGS="$CFLAGS -I$withval/include/google" 9788 else 9789 CFLAGS="$CFLAGS -I$withval/include" 9790 fi 9791 LDFLAGS="$LDFLAGS -L$withval/lib" 9792 9793else 9794 9795 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 9796 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 9797 CFLAGS="$CFLAGS -I/usr/include/google" 9798 else 9799 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 9800 CFLAGS="$CFLAGS -I/usr/local/include/google" 9801 LDFLAGS="$LDFLAGS -L/usr/local/lib" 9802 fi 9803 fi 9804 9805fi 9806 9807 9808# Check whether --with-libfstrm was given. 9809if test "${with_libfstrm+set}" = set; then : 9810 withval=$with_libfstrm; 9811 CFLAGS="$CFLAGS -I$withval/include" 9812 LDFLAGS="$LDFLAGS -L$withval/lib" 9813 9814fi 9815 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5 9817$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; } 9818if ${ac_cv_search_fstrm_iothr_init+:} false; then : 9819 $as_echo_n "(cached) " >&6 9820else 9821 ac_func_search_save_LIBS=$LIBS 9822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823/* end confdefs.h. */ 9824 9825/* Override any GCC internal prototype to avoid an error. 9826 Use char because int might match the return type of a GCC 9827 builtin and then its argument prototype would still apply. */ 9828#ifdef __cplusplus 9829extern "C" 9830#endif 9831char fstrm_iothr_init (); 9832int 9833main () 9834{ 9835return fstrm_iothr_init (); 9836 ; 9837 return 0; 9838} 9839_ACEOF 9840for ac_lib in '' fstrm; do 9841 if test -z "$ac_lib"; then 9842 ac_res="none required" 9843 else 9844 ac_res=-l$ac_lib 9845 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9846 fi 9847 if ac_fn_c_try_link "$LINENO"; then : 9848 ac_cv_search_fstrm_iothr_init=$ac_res 9849fi 9850rm -f core conftest.err conftest.$ac_objext \ 9851 conftest$ac_exeext 9852 if ${ac_cv_search_fstrm_iothr_init+:} false; then : 9853 break 9854fi 9855done 9856if ${ac_cv_search_fstrm_iothr_init+:} false; then : 9857 9858else 9859 ac_cv_search_fstrm_iothr_init=no 9860fi 9861rm conftest.$ac_ext 9862LIBS=$ac_func_search_save_LIBS 9863fi 9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5 9865$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; } 9866ac_res=$ac_cv_search_fstrm_iothr_init 9867if test "$ac_res" != no; then : 9868 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9869 9870else 9871 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5 9872fi 9873 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 9875$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 9876if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 9877 $as_echo_n "(cached) " >&6 9878else 9879 ac_func_search_save_LIBS=$LIBS 9880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9881/* end confdefs.h. */ 9882 9883/* Override any GCC internal prototype to avoid an error. 9884 Use char because int might match the return type of a GCC 9885 builtin and then its argument prototype would still apply. */ 9886#ifdef __cplusplus 9887extern "C" 9888#endif 9889char protobuf_c_message_pack (); 9890int 9891main () 9892{ 9893return protobuf_c_message_pack (); 9894 ; 9895 return 0; 9896} 9897_ACEOF 9898for ac_lib in '' protobuf-c; do 9899 if test -z "$ac_lib"; then 9900 ac_res="none required" 9901 else 9902 ac_res=-l$ac_lib 9903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9904 fi 9905 if ac_fn_c_try_link "$LINENO"; then : 9906 ac_cv_search_protobuf_c_message_pack=$ac_res 9907fi 9908rm -f core conftest.err conftest.$ac_objext \ 9909 conftest$ac_exeext 9910 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 9911 break 9912fi 9913done 9914if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 9915 9916else 9917 ac_cv_search_protobuf_c_message_pack=no 9918fi 9919rm conftest.$ac_ext 9920LIBS=$ac_func_search_save_LIBS 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 9923$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 9924ac_res=$ac_cv_search_protobuf_c_message_pack 9925if test "$ac_res" != no; then : 9926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9927 9928else 9929 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 9930fi 9931 9932 9933 9934$as_echo "#define USE_DNSTAP 1" >>confdefs.h 9935 9936 ENABLE_DNSTAP=1 9937 9938 9939 9940 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 9941 9942 9943cat >>confdefs.h <<_ACEOF 9944#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 9945_ACEOF 9946 9947 9948 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_collector.c" 9949 9950 DNSTAP_OBJ="dnstap.o dnstap_collector.o dnstap.pb-c.o" 9951 9952 dnstap_config="dnstap/dnstap_config.h" 9953 9954 else 9955 9956 ENABLE_DNSTAP=0 9957 9958 9959 9960 fi 9961 9962 9963# Include systemd.m4 - begin 9964# macros for configuring systemd 9965# Copyright 2015, Sami Kerola, CloudFlare. 9966# BSD licensed. 9967# Check whether --enable-systemd was given. 9968if test "${enable_systemd+set}" = set; then : 9969 enableval=$enable_systemd; 9970else 9971 enable_systemd=no 9972fi 9973 9974have_systemd=no 9975 9976 9977 9978 9979 9980 9981 9982if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9983 if test -n "$ac_tool_prefix"; then 9984 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9985set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9987$as_echo_n "checking for $ac_word... " >&6; } 9988if ${ac_cv_path_PKG_CONFIG+:} false; then : 9989 $as_echo_n "(cached) " >&6 9990else 9991 case $PKG_CONFIG in 9992 [\\/]* | ?:[\\/]*) 9993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9994 ;; 9995 *) 9996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9997for as_dir in $PATH 9998do 9999 IFS=$as_save_IFS 10000 test -z "$as_dir" && as_dir=. 10001 for ac_exec_ext in '' $ac_executable_extensions; do 10002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10005 break 2 10006 fi 10007done 10008 done 10009IFS=$as_save_IFS 10010 10011 ;; 10012esac 10013fi 10014PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10015if test -n "$PKG_CONFIG"; then 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10017$as_echo "$PKG_CONFIG" >&6; } 10018else 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10020$as_echo "no" >&6; } 10021fi 10022 10023 10024fi 10025if test -z "$ac_cv_path_PKG_CONFIG"; then 10026 ac_pt_PKG_CONFIG=$PKG_CONFIG 10027 # Extract the first word of "pkg-config", so it can be a program name with args. 10028set dummy pkg-config; ac_word=$2 10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10030$as_echo_n "checking for $ac_word... " >&6; } 10031if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 case $ac_pt_PKG_CONFIG in 10035 [\\/]* | ?:[\\/]*) 10036 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10037 ;; 10038 *) 10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10040for as_dir in $PATH 10041do 10042 IFS=$as_save_IFS 10043 test -z "$as_dir" && as_dir=. 10044 for ac_exec_ext in '' $ac_executable_extensions; do 10045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10046 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10048 break 2 10049 fi 10050done 10051 done 10052IFS=$as_save_IFS 10053 10054 ;; 10055esac 10056fi 10057ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10058if test -n "$ac_pt_PKG_CONFIG"; then 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10060$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10061else 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10063$as_echo "no" >&6; } 10064fi 10065 10066 if test "x$ac_pt_PKG_CONFIG" = x; then 10067 PKG_CONFIG="" 10068 else 10069 case $cross_compiling:$ac_tool_warned in 10070yes:) 10071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10073ac_tool_warned=yes ;; 10074esac 10075 PKG_CONFIG=$ac_pt_PKG_CONFIG 10076 fi 10077else 10078 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10079fi 10080 10081fi 10082if test -n "$PKG_CONFIG"; then 10083 _pkg_min_version=0.9.0 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10085$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10086 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10088$as_echo "yes" >&6; } 10089 else 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10091$as_echo "no" >&6; } 10092 PKG_CONFIG="" 10093 fi 10094fi 10095if test "x$enable_systemd" != xno; then : 10096 10097 10098 10099pkg_failed=no 10100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 10101$as_echo_n "checking for SYSTEMD... " >&6; } 10102 10103if test -n "$SYSTEMD_CFLAGS"; then 10104 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 10105 elif test -n "$PKG_CONFIG"; then 10106 if test -n "$PKG_CONFIG" && \ 10107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 10108 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 10109 ac_status=$? 10110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10111 test $ac_status = 0; }; then 10112 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 10113 test "x$?" != "x0" && pkg_failed=yes 10114else 10115 pkg_failed=yes 10116fi 10117 else 10118 pkg_failed=untried 10119fi 10120if test -n "$SYSTEMD_LIBS"; then 10121 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 10122 elif test -n "$PKG_CONFIG"; then 10123 if test -n "$PKG_CONFIG" && \ 10124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 10125 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 10126 ac_status=$? 10127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10128 test $ac_status = 0; }; then 10129 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 10130 test "x$?" != "x0" && pkg_failed=yes 10131else 10132 pkg_failed=yes 10133fi 10134 else 10135 pkg_failed=untried 10136fi 10137 10138 10139 10140if test $pkg_failed = yes; then 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10142$as_echo "no" >&6; } 10143 10144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10145 _pkg_short_errors_supported=yes 10146else 10147 _pkg_short_errors_supported=no 10148fi 10149 if test $_pkg_short_errors_supported = yes; then 10150 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 10151 else 10152 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 10153 fi 10154 # Put the nasty error message in config.log where it belongs 10155 echo "$SYSTEMD_PKG_ERRORS" >&5 10156 10157 have_systemd=no 10158elif test $pkg_failed = untried; then 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10160$as_echo "no" >&6; } 10161 have_systemd=no 10162else 10163 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 10164 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10166$as_echo "yes" >&6; } 10167 have_systemd=yes 10168fi 10169 if test "x$have_systemd" != "xyes"; then : 10170 10171 10172pkg_failed=no 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 10174$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 10175 10176if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 10177 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 10178 elif test -n "$PKG_CONFIG"; then 10179 if test -n "$PKG_CONFIG" && \ 10180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 10181 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 10182 ac_status=$? 10183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10184 test $ac_status = 0; }; then 10185 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 10186 test "x$?" != "x0" && pkg_failed=yes 10187else 10188 pkg_failed=yes 10189fi 10190 else 10191 pkg_failed=untried 10192fi 10193if test -n "$SYSTEMD_DAEMON_LIBS"; then 10194 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 10195 elif test -n "$PKG_CONFIG"; then 10196 if test -n "$PKG_CONFIG" && \ 10197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 10198 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 10199 ac_status=$? 10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10201 test $ac_status = 0; }; then 10202 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 10203 test "x$?" != "x0" && pkg_failed=yes 10204else 10205 pkg_failed=yes 10206fi 10207 else 10208 pkg_failed=untried 10209fi 10210 10211 10212 10213if test $pkg_failed = yes; then 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10215$as_echo "no" >&6; } 10216 10217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10218 _pkg_short_errors_supported=yes 10219else 10220 _pkg_short_errors_supported=no 10221fi 10222 if test $_pkg_short_errors_supported = yes; then 10223 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 10224 else 10225 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 10226 fi 10227 # Put the nasty error message in config.log where it belongs 10228 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 10229 10230 have_systemd_daemon=no 10231elif test $pkg_failed = untried; then 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10233$as_echo "no" >&6; } 10234 have_systemd_daemon=no 10235else 10236 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 10237 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10239$as_echo "yes" >&6; } 10240 have_systemd_daemon=yes 10241fi 10242 if test "x$have_systemd_daemon" = "xyes"; then : 10243 have_systemd=yes 10244fi 10245 10246fi 10247 case $enable_systemd:$have_systemd in #( 10248 yes:no) : 10249 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 10250 *:yes) : 10251 10252$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h 10253 10254 LIBS="$LIBS $SYSTEMD_LIBS" 10255 10256 ;; #( 10257 *) : 10258 ;; 10259esac 10260 10261 10262fi 10263 10264# Include systemd.m4 - end 10265 10266# Check whether --enable-tcp-fastopen was given. 10267if test "${enable_tcp_fastopen+set}" = set; then : 10268 enableval=$enable_tcp_fastopen; 10269fi 10270 10271case "$enable_tcp_fastopen" in 10272 yes) 10273 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 10274#include <netinet/tcp.h> 10275 10276" 10277if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then : 10278 10279else 10280 as_fn_error $? "TCP Fast Open is not available: please rerun without --enable-tcp-fastopen" "$LINENO" 5 10281fi 10282 10283 10284cat >>confdefs.h <<_ACEOF 10285#define USE_TCP_FASTOPEN 1 10286_ACEOF 10287 10288 ;; 10289 no|*) 10290 ;; 10291esac 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303if test $ac_cv_func_getaddrinfo = no; then 10304case " $LIBOBJS " in 10305 *" fake-rfc2553.$ac_objext "* ) ;; 10306 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 10307 ;; 10308esac 10309 10310fi 10311 10312 10313 10314 10315 10316 10317 10318# big fat warning 10319if test "$enable_checking" = "yes"; then 10320 echo "************************************************" 10321 echo "* You have activated \"--enable-checking\" *" 10322 echo "* *" 10323 echo "* This will instruct NSD to be stricter *" 10324 echo "* when validating its input. This could lead *" 10325 echo "* to a reduced service level. *" 10326 echo "* *" 10327 echo "************************************************" 10328fi 10329 10330ac_config_files="$ac_config_files Makefile $dnstap_config" 10331 10332cat >confcache <<\_ACEOF 10333# This file is a shell script that caches the results of configure 10334# tests run on this system so they can be shared between configure 10335# scripts and configure runs, see configure's option --config-cache. 10336# It is not useful on other systems. If it contains results you don't 10337# want to keep, you may remove or edit it. 10338# 10339# config.status only pays attention to the cache file if you give it 10340# the --recheck option to rerun configure. 10341# 10342# `ac_cv_env_foo' variables (set or unset) will be overridden when 10343# loading this file, other *unset* `ac_cv_foo' will be assigned the 10344# following values. 10345 10346_ACEOF 10347 10348# The following way of writing the cache mishandles newlines in values, 10349# but we know of no workaround that is simple, portable, and efficient. 10350# So, we kill variables containing newlines. 10351# Ultrix sh set writes to stderr and can't be redirected directly, 10352# and sets the high bit in the cache file unless we assign to the vars. 10353( 10354 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10355 eval ac_val=\$$ac_var 10356 case $ac_val in #( 10357 *${as_nl}*) 10358 case $ac_var in #( 10359 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10360$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10361 esac 10362 case $ac_var in #( 10363 _ | IFS | as_nl) ;; #( 10364 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10365 *) { eval $ac_var=; unset $ac_var;} ;; 10366 esac ;; 10367 esac 10368 done 10369 10370 (set) 2>&1 | 10371 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10372 *${as_nl}ac_space=\ *) 10373 # `set' does not quote correctly, so add quotes: double-quote 10374 # substitution turns \\\\ into \\, and sed turns \\ into \. 10375 sed -n \ 10376 "s/'/'\\\\''/g; 10377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10378 ;; #( 10379 *) 10380 # `set' quotes correctly as required by POSIX, so do not add quotes. 10381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10382 ;; 10383 esac | 10384 sort 10385) | 10386 sed ' 10387 /^ac_cv_env_/b end 10388 t clear 10389 :clear 10390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10391 t end 10392 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10393 :end' >>confcache 10394if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10395 if test -w "$cache_file"; then 10396 if test "x$cache_file" != "x/dev/null"; then 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10398$as_echo "$as_me: updating cache $cache_file" >&6;} 10399 if test ! -f "$cache_file" || test -h "$cache_file"; then 10400 cat confcache >"$cache_file" 10401 else 10402 case $cache_file in #( 10403 */* | ?:*) 10404 mv -f confcache "$cache_file"$$ && 10405 mv -f "$cache_file"$$ "$cache_file" ;; #( 10406 *) 10407 mv -f confcache "$cache_file" ;; 10408 esac 10409 fi 10410 fi 10411 else 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10413$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10414 fi 10415fi 10416rm -f confcache 10417 10418test "x$prefix" = xNONE && prefix=$ac_default_prefix 10419# Let make expand exec_prefix. 10420test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10421 10422DEFS=-DHAVE_CONFIG_H 10423 10424ac_libobjs= 10425ac_ltlibobjs= 10426U= 10427for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10428 # 1. Remove the extension, and $U if already installed. 10429 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10430 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10431 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10432 # will be set to the directory where LIBOBJS objects are built. 10433 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10434 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10435done 10436LIBOBJS=$ac_libobjs 10437 10438LTLIBOBJS=$ac_ltlibobjs 10439 10440 10441 10442: "${CONFIG_STATUS=./config.status}" 10443ac_write_fail=0 10444ac_clean_files_save=$ac_clean_files 10445ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10446{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10447$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10448as_write_fail=0 10449cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10450#! $SHELL 10451# Generated by $as_me. 10452# Run this file to recreate the current configuration. 10453# Compiler output produced by configure, useful for debugging 10454# configure, is in config.log if it exists. 10455 10456debug=false 10457ac_cs_recheck=false 10458ac_cs_silent=false 10459 10460SHELL=\${CONFIG_SHELL-$SHELL} 10461export SHELL 10462_ASEOF 10463cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10464## -------------------- ## 10465## M4sh Initialization. ## 10466## -------------------- ## 10467 10468# Be more Bourne compatible 10469DUALCASE=1; export DUALCASE # for MKS sh 10470if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10471 emulate sh 10472 NULLCMD=: 10473 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10474 # is contrary to our usage. Disable this feature. 10475 alias -g '${1+"$@"}'='"$@"' 10476 setopt NO_GLOB_SUBST 10477else 10478 case `(set -o) 2>/dev/null` in #( 10479 *posix*) : 10480 set -o posix ;; #( 10481 *) : 10482 ;; 10483esac 10484fi 10485 10486 10487as_nl=' 10488' 10489export as_nl 10490# Printing a long string crashes Solaris 7 /usr/bin/printf. 10491as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10493as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10494# Prefer a ksh shell builtin over an external printf program on Solaris, 10495# but without wasting forks for bash or zsh. 10496if test -z "$BASH_VERSION$ZSH_VERSION" \ 10497 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10498 as_echo='print -r --' 10499 as_echo_n='print -rn --' 10500elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10501 as_echo='printf %s\n' 10502 as_echo_n='printf %s' 10503else 10504 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10505 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10506 as_echo_n='/usr/ucb/echo -n' 10507 else 10508 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10509 as_echo_n_body='eval 10510 arg=$1; 10511 case $arg in #( 10512 *"$as_nl"*) 10513 expr "X$arg" : "X\\(.*\\)$as_nl"; 10514 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10515 esac; 10516 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10517 ' 10518 export as_echo_n_body 10519 as_echo_n='sh -c $as_echo_n_body as_echo' 10520 fi 10521 export as_echo_body 10522 as_echo='sh -c $as_echo_body as_echo' 10523fi 10524 10525# The user is always right. 10526if test "${PATH_SEPARATOR+set}" != set; then 10527 PATH_SEPARATOR=: 10528 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10529 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10530 PATH_SEPARATOR=';' 10531 } 10532fi 10533 10534 10535# IFS 10536# We need space, tab and new line, in precisely that order. Quoting is 10537# there to prevent editors from complaining about space-tab. 10538# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10539# splitting by setting IFS to empty value.) 10540IFS=" "" $as_nl" 10541 10542# Find who we are. Look in the path if we contain no directory separator. 10543as_myself= 10544case $0 in #(( 10545 *[\\/]* ) as_myself=$0 ;; 10546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10547for as_dir in $PATH 10548do 10549 IFS=$as_save_IFS 10550 test -z "$as_dir" && as_dir=. 10551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10552 done 10553IFS=$as_save_IFS 10554 10555 ;; 10556esac 10557# We did not find ourselves, most probably we were run as `sh COMMAND' 10558# in which case we are not to be found in the path. 10559if test "x$as_myself" = x; then 10560 as_myself=$0 10561fi 10562if test ! -f "$as_myself"; then 10563 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10564 exit 1 10565fi 10566 10567# Unset variables that we do not need and which cause bugs (e.g. in 10568# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10569# suppresses any "Segmentation fault" message there. '((' could 10570# trigger a bug in pdksh 5.2.14. 10571for as_var in BASH_ENV ENV MAIL MAILPATH 10572do eval test x\${$as_var+set} = xset \ 10573 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10574done 10575PS1='$ ' 10576PS2='> ' 10577PS4='+ ' 10578 10579# NLS nuisances. 10580LC_ALL=C 10581export LC_ALL 10582LANGUAGE=C 10583export LANGUAGE 10584 10585# CDPATH. 10586(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10587 10588 10589# as_fn_error STATUS ERROR [LINENO LOG_FD] 10590# ---------------------------------------- 10591# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10592# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10593# script with STATUS, using 1 if that was 0. 10594as_fn_error () 10595{ 10596 as_status=$1; test $as_status -eq 0 && as_status=1 10597 if test "$4"; then 10598 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10599 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10600 fi 10601 $as_echo "$as_me: error: $2" >&2 10602 as_fn_exit $as_status 10603} # as_fn_error 10604 10605 10606# as_fn_set_status STATUS 10607# ----------------------- 10608# Set $? to STATUS, without forking. 10609as_fn_set_status () 10610{ 10611 return $1 10612} # as_fn_set_status 10613 10614# as_fn_exit STATUS 10615# ----------------- 10616# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10617as_fn_exit () 10618{ 10619 set +e 10620 as_fn_set_status $1 10621 exit $1 10622} # as_fn_exit 10623 10624# as_fn_unset VAR 10625# --------------- 10626# Portably unset VAR. 10627as_fn_unset () 10628{ 10629 { eval $1=; unset $1;} 10630} 10631as_unset=as_fn_unset 10632# as_fn_append VAR VALUE 10633# ---------------------- 10634# Append the text in VALUE to the end of the definition contained in VAR. Take 10635# advantage of any shell optimizations that allow amortized linear growth over 10636# repeated appends, instead of the typical quadratic growth present in naive 10637# implementations. 10638if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10639 eval 'as_fn_append () 10640 { 10641 eval $1+=\$2 10642 }' 10643else 10644 as_fn_append () 10645 { 10646 eval $1=\$$1\$2 10647 } 10648fi # as_fn_append 10649 10650# as_fn_arith ARG... 10651# ------------------ 10652# Perform arithmetic evaluation on the ARGs, and store the result in the 10653# global $as_val. Take advantage of shells that can avoid forks. The arguments 10654# must be portable across $(()) and expr. 10655if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10656 eval 'as_fn_arith () 10657 { 10658 as_val=$(( $* )) 10659 }' 10660else 10661 as_fn_arith () 10662 { 10663 as_val=`expr "$@" || test $? -eq 1` 10664 } 10665fi # as_fn_arith 10666 10667 10668if expr a : '\(a\)' >/dev/null 2>&1 && 10669 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10670 as_expr=expr 10671else 10672 as_expr=false 10673fi 10674 10675if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10676 as_basename=basename 10677else 10678 as_basename=false 10679fi 10680 10681if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10682 as_dirname=dirname 10683else 10684 as_dirname=false 10685fi 10686 10687as_me=`$as_basename -- "$0" || 10688$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10689 X"$0" : 'X\(//\)$' \| \ 10690 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10691$as_echo X/"$0" | 10692 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10693 s//\1/ 10694 q 10695 } 10696 /^X\/\(\/\/\)$/{ 10697 s//\1/ 10698 q 10699 } 10700 /^X\/\(\/\).*/{ 10701 s//\1/ 10702 q 10703 } 10704 s/.*/./; q'` 10705 10706# Avoid depending upon Character Ranges. 10707as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10709as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10710as_cr_digits='0123456789' 10711as_cr_alnum=$as_cr_Letters$as_cr_digits 10712 10713ECHO_C= ECHO_N= ECHO_T= 10714case `echo -n x` in #((((( 10715-n*) 10716 case `echo 'xy\c'` in 10717 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10718 xy) ECHO_C='\c';; 10719 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10720 ECHO_T=' ';; 10721 esac;; 10722*) 10723 ECHO_N='-n';; 10724esac 10725 10726rm -f conf$$ conf$$.exe conf$$.file 10727if test -d conf$$.dir; then 10728 rm -f conf$$.dir/conf$$.file 10729else 10730 rm -f conf$$.dir 10731 mkdir conf$$.dir 2>/dev/null 10732fi 10733if (echo >conf$$.file) 2>/dev/null; then 10734 if ln -s conf$$.file conf$$ 2>/dev/null; then 10735 as_ln_s='ln -s' 10736 # ... but there are two gotchas: 10737 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10738 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10739 # In both cases, we have to default to `cp -pR'. 10740 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10741 as_ln_s='cp -pR' 10742 elif ln conf$$.file conf$$ 2>/dev/null; then 10743 as_ln_s=ln 10744 else 10745 as_ln_s='cp -pR' 10746 fi 10747else 10748 as_ln_s='cp -pR' 10749fi 10750rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10751rmdir conf$$.dir 2>/dev/null 10752 10753 10754# as_fn_mkdir_p 10755# ------------- 10756# Create "$as_dir" as a directory, including parents if necessary. 10757as_fn_mkdir_p () 10758{ 10759 10760 case $as_dir in #( 10761 -*) as_dir=./$as_dir;; 10762 esac 10763 test -d "$as_dir" || eval $as_mkdir_p || { 10764 as_dirs= 10765 while :; do 10766 case $as_dir in #( 10767 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10768 *) as_qdir=$as_dir;; 10769 esac 10770 as_dirs="'$as_qdir' $as_dirs" 10771 as_dir=`$as_dirname -- "$as_dir" || 10772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10773 X"$as_dir" : 'X\(//\)[^/]' \| \ 10774 X"$as_dir" : 'X\(//\)$' \| \ 10775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10776$as_echo X"$as_dir" | 10777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10778 s//\1/ 10779 q 10780 } 10781 /^X\(\/\/\)[^/].*/{ 10782 s//\1/ 10783 q 10784 } 10785 /^X\(\/\/\)$/{ 10786 s//\1/ 10787 q 10788 } 10789 /^X\(\/\).*/{ 10790 s//\1/ 10791 q 10792 } 10793 s/.*/./; q'` 10794 test -d "$as_dir" && break 10795 done 10796 test -z "$as_dirs" || eval "mkdir $as_dirs" 10797 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10798 10799 10800} # as_fn_mkdir_p 10801if mkdir -p . 2>/dev/null; then 10802 as_mkdir_p='mkdir -p "$as_dir"' 10803else 10804 test -d ./-p && rmdir ./-p 10805 as_mkdir_p=false 10806fi 10807 10808 10809# as_fn_executable_p FILE 10810# ----------------------- 10811# Test if FILE is an executable regular file. 10812as_fn_executable_p () 10813{ 10814 test -f "$1" && test -x "$1" 10815} # as_fn_executable_p 10816as_test_x='test -x' 10817as_executable_p=as_fn_executable_p 10818 10819# Sed expression to map a string onto a valid CPP name. 10820as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10821 10822# Sed expression to map a string onto a valid variable name. 10823as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10824 10825 10826exec 6>&1 10827## ----------------------------------- ## 10828## Main body of $CONFIG_STATUS script. ## 10829## ----------------------------------- ## 10830_ASEOF 10831test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10832 10833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10834# Save the log message, to keep $0 and so on meaningful, and to 10835# report actual input values of CONFIG_FILES etc. instead of their 10836# values after options handling. 10837ac_log=" 10838This file was extended by NSD $as_me 4.8.0, which was 10839generated by GNU Autoconf 2.69. Invocation command line was 10840 10841 CONFIG_FILES = $CONFIG_FILES 10842 CONFIG_HEADERS = $CONFIG_HEADERS 10843 CONFIG_LINKS = $CONFIG_LINKS 10844 CONFIG_COMMANDS = $CONFIG_COMMANDS 10845 $ $0 $@ 10846 10847on `(hostname || uname -n) 2>/dev/null | sed 1q` 10848" 10849 10850_ACEOF 10851 10852case $ac_config_files in *" 10853"*) set x $ac_config_files; shift; ac_config_files=$*;; 10854esac 10855 10856case $ac_config_headers in *" 10857"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10858esac 10859 10860 10861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10862# Files that config.status was made for. 10863config_files="$ac_config_files" 10864config_headers="$ac_config_headers" 10865 10866_ACEOF 10867 10868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10869ac_cs_usage="\ 10870\`$as_me' instantiates files and other configuration actions 10871from templates according to the current configuration. Unless the files 10872and actions are specified as TAGs, all are instantiated by default. 10873 10874Usage: $0 [OPTION]... [TAG]... 10875 10876 -h, --help print this help, then exit 10877 -V, --version print version number and configuration settings, then exit 10878 --config print configuration, then exit 10879 -q, --quiet, --silent 10880 do not print progress messages 10881 -d, --debug don't remove temporary files 10882 --recheck update $as_me by reconfiguring in the same conditions 10883 --file=FILE[:TEMPLATE] 10884 instantiate the configuration file FILE 10885 --header=FILE[:TEMPLATE] 10886 instantiate the configuration header FILE 10887 10888Configuration files: 10889$config_files 10890 10891Configuration headers: 10892$config_headers 10893 10894Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>." 10895 10896_ACEOF 10897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10898ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10899ac_cs_version="\\ 10900NSD config.status 4.8.0 10901configured by $0, generated by GNU Autoconf 2.69, 10902 with options \\"\$ac_cs_config\\" 10903 10904Copyright (C) 2012 Free Software Foundation, Inc. 10905This config.status script is free software; the Free Software Foundation 10906gives unlimited permission to copy, distribute and modify it." 10907 10908ac_pwd='$ac_pwd' 10909srcdir='$srcdir' 10910INSTALL='$INSTALL' 10911AWK='$AWK' 10912test -n "\$AWK" || AWK=awk 10913_ACEOF 10914 10915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10916# The default lists apply if the user does not specify any file. 10917ac_need_defaults=: 10918while test $# != 0 10919do 10920 case $1 in 10921 --*=?*) 10922 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10923 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10924 ac_shift=: 10925 ;; 10926 --*=) 10927 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10928 ac_optarg= 10929 ac_shift=: 10930 ;; 10931 *) 10932 ac_option=$1 10933 ac_optarg=$2 10934 ac_shift=shift 10935 ;; 10936 esac 10937 10938 case $ac_option in 10939 # Handling of the options. 10940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10941 ac_cs_recheck=: ;; 10942 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10943 $as_echo "$ac_cs_version"; exit ;; 10944 --config | --confi | --conf | --con | --co | --c ) 10945 $as_echo "$ac_cs_config"; exit ;; 10946 --debug | --debu | --deb | --de | --d | -d ) 10947 debug=: ;; 10948 --file | --fil | --fi | --f ) 10949 $ac_shift 10950 case $ac_optarg in 10951 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10952 '') as_fn_error $? "missing file argument" ;; 10953 esac 10954 as_fn_append CONFIG_FILES " '$ac_optarg'" 10955 ac_need_defaults=false;; 10956 --header | --heade | --head | --hea ) 10957 $ac_shift 10958 case $ac_optarg in 10959 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10960 esac 10961 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10962 ac_need_defaults=false;; 10963 --he | --h) 10964 # Conflict between --help and --header 10965 as_fn_error $? "ambiguous option: \`$1' 10966Try \`$0 --help' for more information.";; 10967 --help | --hel | -h ) 10968 $as_echo "$ac_cs_usage"; exit ;; 10969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10970 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10971 ac_cs_silent=: ;; 10972 10973 # This is an error. 10974 -*) as_fn_error $? "unrecognized option: \`$1' 10975Try \`$0 --help' for more information." ;; 10976 10977 *) as_fn_append ac_config_targets " $1" 10978 ac_need_defaults=false ;; 10979 10980 esac 10981 shift 10982done 10983 10984ac_configure_extra_args= 10985 10986if $ac_cs_silent; then 10987 exec 6>/dev/null 10988 ac_configure_extra_args="$ac_configure_extra_args --silent" 10989fi 10990 10991_ACEOF 10992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10993if \$ac_cs_recheck; then 10994 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10995 shift 10996 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10997 CONFIG_SHELL='$SHELL' 10998 export CONFIG_SHELL 10999 exec "\$@" 11000fi 11001 11002_ACEOF 11003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11004exec 5>>config.log 11005{ 11006 echo 11007 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11008## Running $as_me. ## 11009_ASBOX 11010 $as_echo "$ac_log" 11011} >&5 11012 11013_ACEOF 11014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11015_ACEOF 11016 11017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11018 11019# Handling of arguments. 11020for ac_config_target in $ac_config_targets 11021do 11022 case $ac_config_target in 11023 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11024 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11025 "$dnstap_config") CONFIG_FILES="$CONFIG_FILES $dnstap_config" ;; 11026 11027 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11028 esac 11029done 11030 11031 11032# If the user did not use the arguments to specify the items to instantiate, 11033# then the envvar interface is used. Set only those that are not. 11034# We use the long form for the default assignment because of an extremely 11035# bizarre bug on SunOS 4.1.3. 11036if $ac_need_defaults; then 11037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11039fi 11040 11041# Have a temporary directory for convenience. Make it in the build tree 11042# simply because there is no reason against having it here, and in addition, 11043# creating and moving files from /tmp can sometimes cause problems. 11044# Hook for its removal unless debugging. 11045# Note that there is a small window in which the directory will not be cleaned: 11046# after its creation but before its name has been assigned to `$tmp'. 11047$debug || 11048{ 11049 tmp= ac_tmp= 11050 trap 'exit_status=$? 11051 : "${ac_tmp:=$tmp}" 11052 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11053' 0 11054 trap 'as_fn_exit 1' 1 2 13 15 11055} 11056# Create a (secure) tmp directory for tmp files. 11057 11058{ 11059 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11060 test -d "$tmp" 11061} || 11062{ 11063 tmp=./conf$$-$RANDOM 11064 (umask 077 && mkdir "$tmp") 11065} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11066ac_tmp=$tmp 11067 11068# Set up the scripts for CONFIG_FILES section. 11069# No need to generate them if there are no CONFIG_FILES. 11070# This happens for instance with `./config.status config.h'. 11071if test -n "$CONFIG_FILES"; then 11072 11073 11074ac_cr=`echo X | tr X '\015'` 11075# On cygwin, bash can eat \r inside `` if the user requested igncr. 11076# But we know of no other shell where ac_cr would be empty at this 11077# point, so we can use a bashism as a fallback. 11078if test "x$ac_cr" = x; then 11079 eval ac_cr=\$\'\\r\' 11080fi 11081ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11082if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11083 ac_cs_awk_cr='\\r' 11084else 11085 ac_cs_awk_cr=$ac_cr 11086fi 11087 11088echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11089_ACEOF 11090 11091 11092{ 11093 echo "cat >conf$$subs.awk <<_ACEOF" && 11094 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11095 echo "_ACEOF" 11096} >conf$$subs.sh || 11097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11098ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11099ac_delim='%!_!# ' 11100for ac_last_try in false false false false false :; do 11101 . ./conf$$subs.sh || 11102 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11103 11104 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11105 if test $ac_delim_n = $ac_delim_num; then 11106 break 11107 elif $ac_last_try; then 11108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11109 else 11110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11111 fi 11112done 11113rm -f conf$$subs.sh 11114 11115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11116cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11117_ACEOF 11118sed -n ' 11119h 11120s/^/S["/; s/!.*/"]=/ 11121p 11122g 11123s/^[^!]*!// 11124:repl 11125t repl 11126s/'"$ac_delim"'$// 11127t delim 11128:nl 11129h 11130s/\(.\{148\}\)..*/\1/ 11131t more1 11132s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11133p 11134n 11135b repl 11136:more1 11137s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11138p 11139g 11140s/.\{148\}// 11141t nl 11142:delim 11143h 11144s/\(.\{148\}\)..*/\1/ 11145t more2 11146s/["\\]/\\&/g; s/^/"/; s/$/"/ 11147p 11148b 11149:more2 11150s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11151p 11152g 11153s/.\{148\}// 11154t delim 11155' <conf$$subs.awk | sed ' 11156/^[^""]/{ 11157 N 11158 s/\n// 11159} 11160' >>$CONFIG_STATUS || ac_write_fail=1 11161rm -f conf$$subs.awk 11162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11163_ACAWK 11164cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11165 for (key in S) S_is_set[key] = 1 11166 FS = "" 11167 11168} 11169{ 11170 line = $ 0 11171 nfields = split(line, field, "@") 11172 substed = 0 11173 len = length(field[1]) 11174 for (i = 2; i < nfields; i++) { 11175 key = field[i] 11176 keylen = length(key) 11177 if (S_is_set[key]) { 11178 value = S[key] 11179 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11180 len += length(value) + length(field[++i]) 11181 substed = 1 11182 } else 11183 len += 1 + keylen 11184 } 11185 11186 print line 11187} 11188 11189_ACAWK 11190_ACEOF 11191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11192if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11193 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11194else 11195 cat 11196fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11197 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11198_ACEOF 11199 11200# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11201# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11202# trailing colons and then remove the whole line if VPATH becomes empty 11203# (actually we leave an empty line to preserve line numbers). 11204if test "x$srcdir" = x.; then 11205 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11206h 11207s/// 11208s/^/:/ 11209s/[ ]*$/:/ 11210s/:\$(srcdir):/:/g 11211s/:\${srcdir}:/:/g 11212s/:@srcdir@:/:/g 11213s/^:*// 11214s/:*$// 11215x 11216s/\(=[ ]*\).*/\1/ 11217G 11218s/\n// 11219s/^[^=]*=[ ]*$// 11220}' 11221fi 11222 11223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11224fi # test -n "$CONFIG_FILES" 11225 11226# Set up the scripts for CONFIG_HEADERS section. 11227# No need to generate them if there are no CONFIG_HEADERS. 11228# This happens for instance with `./config.status Makefile'. 11229if test -n "$CONFIG_HEADERS"; then 11230cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11231BEGIN { 11232_ACEOF 11233 11234# Transform confdefs.h into an awk script `defines.awk', embedded as 11235# here-document in config.status, that substitutes the proper values into 11236# config.h.in to produce config.h. 11237 11238# Create a delimiter string that does not exist in confdefs.h, to ease 11239# handling of long lines. 11240ac_delim='%!_!# ' 11241for ac_last_try in false false :; do 11242 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11243 if test -z "$ac_tt"; then 11244 break 11245 elif $ac_last_try; then 11246 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11247 else 11248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11249 fi 11250done 11251 11252# For the awk script, D is an array of macro values keyed by name, 11253# likewise P contains macro parameters if any. Preserve backslash 11254# newline sequences. 11255 11256ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11257sed -n ' 11258s/.\{148\}/&'"$ac_delim"'/g 11259t rset 11260:rset 11261s/^[ ]*#[ ]*define[ ][ ]*/ / 11262t def 11263d 11264:def 11265s/\\$// 11266t bsnl 11267s/["\\]/\\&/g 11268s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11269D["\1"]=" \3"/p 11270s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11271d 11272:bsnl 11273s/["\\]/\\&/g 11274s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11275D["\1"]=" \3\\\\\\n"\\/p 11276t cont 11277s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11278t cont 11279d 11280:cont 11281n 11282s/.\{148\}/&'"$ac_delim"'/g 11283t clear 11284:clear 11285s/\\$// 11286t bsnlc 11287s/["\\]/\\&/g; s/^/"/; s/$/"/p 11288d 11289:bsnlc 11290s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11291b cont 11292' <confdefs.h | sed ' 11293s/'"$ac_delim"'/"\\\ 11294"/g' >>$CONFIG_STATUS || ac_write_fail=1 11295 11296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11297 for (key in D) D_is_set[key] = 1 11298 FS = "" 11299} 11300/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11301 line = \$ 0 11302 split(line, arg, " ") 11303 if (arg[1] == "#") { 11304 defundef = arg[2] 11305 mac1 = arg[3] 11306 } else { 11307 defundef = substr(arg[1], 2) 11308 mac1 = arg[2] 11309 } 11310 split(mac1, mac2, "(") #) 11311 macro = mac2[1] 11312 prefix = substr(line, 1, index(line, defundef) - 1) 11313 if (D_is_set[macro]) { 11314 # Preserve the white space surrounding the "#". 11315 print prefix "define", macro P[macro] D[macro] 11316 next 11317 } else { 11318 # Replace #undef with comments. This is necessary, for example, 11319 # in the case of _POSIX_SOURCE, which is predefined and required 11320 # on some systems where configure will not decide to define it. 11321 if (defundef == "undef") { 11322 print "/*", prefix defundef, macro, "*/" 11323 next 11324 } 11325 } 11326} 11327{ print } 11328_ACAWK 11329_ACEOF 11330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11331 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11332fi # test -n "$CONFIG_HEADERS" 11333 11334 11335eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 11336shift 11337for ac_tag 11338do 11339 case $ac_tag in 11340 :[FHLC]) ac_mode=$ac_tag; continue;; 11341 esac 11342 case $ac_mode$ac_tag in 11343 :[FHL]*:*);; 11344 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11345 :[FH]-) ac_tag=-:-;; 11346 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11347 esac 11348 ac_save_IFS=$IFS 11349 IFS=: 11350 set x $ac_tag 11351 IFS=$ac_save_IFS 11352 shift 11353 ac_file=$1 11354 shift 11355 11356 case $ac_mode in 11357 :L) ac_source=$1;; 11358 :[FH]) 11359 ac_file_inputs= 11360 for ac_f 11361 do 11362 case $ac_f in 11363 -) ac_f="$ac_tmp/stdin";; 11364 *) # Look for the file first in the build tree, then in the source tree 11365 # (if the path is not absolute). The absolute path cannot be DOS-style, 11366 # because $ac_f cannot contain `:'. 11367 test -f "$ac_f" || 11368 case $ac_f in 11369 [\\/$]*) false;; 11370 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11371 esac || 11372 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11373 esac 11374 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11375 as_fn_append ac_file_inputs " '$ac_f'" 11376 done 11377 11378 # Let's still pretend it is `configure' which instantiates (i.e., don't 11379 # use $as_me), people would be surprised to read: 11380 # /* config.h. Generated by config.status. */ 11381 configure_input='Generated from '` 11382 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11383 `' by configure.' 11384 if test x"$ac_file" != x-; then 11385 configure_input="$ac_file. $configure_input" 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11387$as_echo "$as_me: creating $ac_file" >&6;} 11388 fi 11389 # Neutralize special characters interpreted by sed in replacement strings. 11390 case $configure_input in #( 11391 *\&* | *\|* | *\\* ) 11392 ac_sed_conf_input=`$as_echo "$configure_input" | 11393 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11394 *) ac_sed_conf_input=$configure_input;; 11395 esac 11396 11397 case $ac_tag in 11398 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11400 esac 11401 ;; 11402 esac 11403 11404 ac_dir=`$as_dirname -- "$ac_file" || 11405$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11406 X"$ac_file" : 'X\(//\)[^/]' \| \ 11407 X"$ac_file" : 'X\(//\)$' \| \ 11408 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11409$as_echo X"$ac_file" | 11410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11411 s//\1/ 11412 q 11413 } 11414 /^X\(\/\/\)[^/].*/{ 11415 s//\1/ 11416 q 11417 } 11418 /^X\(\/\/\)$/{ 11419 s//\1/ 11420 q 11421 } 11422 /^X\(\/\).*/{ 11423 s//\1/ 11424 q 11425 } 11426 s/.*/./; q'` 11427 as_dir="$ac_dir"; as_fn_mkdir_p 11428 ac_builddir=. 11429 11430case "$ac_dir" in 11431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11432*) 11433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11434 # A ".." for each directory in $ac_dir_suffix. 11435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11436 case $ac_top_builddir_sub in 11437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11439 esac ;; 11440esac 11441ac_abs_top_builddir=$ac_pwd 11442ac_abs_builddir=$ac_pwd$ac_dir_suffix 11443# for backward compatibility: 11444ac_top_builddir=$ac_top_build_prefix 11445 11446case $srcdir in 11447 .) # We are building in place. 11448 ac_srcdir=. 11449 ac_top_srcdir=$ac_top_builddir_sub 11450 ac_abs_top_srcdir=$ac_pwd ;; 11451 [\\/]* | ?:[\\/]* ) # Absolute name. 11452 ac_srcdir=$srcdir$ac_dir_suffix; 11453 ac_top_srcdir=$srcdir 11454 ac_abs_top_srcdir=$srcdir ;; 11455 *) # Relative name. 11456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11457 ac_top_srcdir=$ac_top_build_prefix$srcdir 11458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11459esac 11460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11461 11462 11463 case $ac_mode in 11464 :F) 11465 # 11466 # CONFIG_FILE 11467 # 11468 11469 case $INSTALL in 11470 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11471 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11472 esac 11473_ACEOF 11474 11475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11476# If the template does not know about datarootdir, expand it. 11477# FIXME: This hack should be removed a few years after 2.60. 11478ac_datarootdir_hack=; ac_datarootdir_seen= 11479ac_sed_dataroot=' 11480/datarootdir/ { 11481 p 11482 q 11483} 11484/@datadir@/p 11485/@docdir@/p 11486/@infodir@/p 11487/@localedir@/p 11488/@mandir@/p' 11489case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11490*datarootdir*) ac_datarootdir_seen=yes;; 11491*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11493$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11494_ACEOF 11495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11496 ac_datarootdir_hack=' 11497 s&@datadir@&$datadir&g 11498 s&@docdir@&$docdir&g 11499 s&@infodir@&$infodir&g 11500 s&@localedir@&$localedir&g 11501 s&@mandir@&$mandir&g 11502 s&\\\${datarootdir}&$datarootdir&g' ;; 11503esac 11504_ACEOF 11505 11506# Neutralize VPATH when `$srcdir' = `.'. 11507# Shell code in configure.ac might set extrasub. 11508# FIXME: do we really want to maintain this feature? 11509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11510ac_sed_extra="$ac_vpsub 11511$extrasub 11512_ACEOF 11513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11514:t 11515/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11516s|@configure_input@|$ac_sed_conf_input|;t t 11517s&@top_builddir@&$ac_top_builddir_sub&;t t 11518s&@top_build_prefix@&$ac_top_build_prefix&;t t 11519s&@srcdir@&$ac_srcdir&;t t 11520s&@abs_srcdir@&$ac_abs_srcdir&;t t 11521s&@top_srcdir@&$ac_top_srcdir&;t t 11522s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11523s&@builddir@&$ac_builddir&;t t 11524s&@abs_builddir@&$ac_abs_builddir&;t t 11525s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11526s&@INSTALL@&$ac_INSTALL&;t t 11527$ac_datarootdir_hack 11528" 11529eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11530 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11531 11532test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11533 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11535 "$ac_tmp/out"`; test -z "$ac_out"; } && 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11537which seems to be undefined. Please make sure it is defined" >&5 11538$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11539which seems to be undefined. Please make sure it is defined" >&2;} 11540 11541 rm -f "$ac_tmp/stdin" 11542 case $ac_file in 11543 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11544 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11545 esac \ 11546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11547 ;; 11548 :H) 11549 # 11550 # CONFIG_HEADER 11551 # 11552 if test x"$ac_file" != x-; then 11553 { 11554 $as_echo "/* $configure_input */" \ 11555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11556 } >"$ac_tmp/config.h" \ 11557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11558 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11560$as_echo "$as_me: $ac_file is unchanged" >&6;} 11561 else 11562 rm -f "$ac_file" 11563 mv "$ac_tmp/config.h" "$ac_file" \ 11564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11565 fi 11566 else 11567 $as_echo "/* $configure_input */" \ 11568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11569 || as_fn_error $? "could not create -" "$LINENO" 5 11570 fi 11571 ;; 11572 11573 11574 esac 11575 11576done # for ac_tag 11577 11578 11579as_fn_exit 0 11580_ACEOF 11581ac_clean_files=$ac_clean_files_save 11582 11583test $ac_write_fail = 0 || 11584 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11585 11586 11587# configure is writing to config.log, and then calls config.status. 11588# config.status does its own redirection, appending to config.log. 11589# Unfortunately, on DOS this fails, as config.log is still kept open 11590# by configure, so config.status won't be able to write to it; its 11591# output is simply discarded. So we exec the FD to /dev/null, 11592# effectively closing config.log, so it can be properly (re)opened and 11593# appended to by config.status. When coming back to configure, we 11594# need to make the FD available again. 11595if test "$no_create" != yes; then 11596 ac_cs_success=: 11597 ac_config_status_args= 11598 test "$silent" = yes && 11599 ac_config_status_args="$ac_config_status_args --quiet" 11600 exec 5>/dev/null 11601 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11602 exec 5>>config.log 11603 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11604 # would make configure fail if this is the last instruction. 11605 $ac_cs_success || as_fn_exit 1 11606fi 11607if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11609$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11610fi 11611 11612