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