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