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