1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for NSD 3.2.15. 4# 5# Report bugs to <nsd-bugs@nlnetlabs.nl>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: nsd-bugs@nlnetlabs.nl about your system, including any 243$0: error possibly output before this message. Then install 244$0: a modern shell, or manually run the script under such a 245$0: shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error STATUS ERROR [LINENO LOG_FD] 371# ---------------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with STATUS, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540test -n "$DJDIR" || exec 7<&0 </dev/null 541exec 6>&1 542 543# Name of the host. 544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 545# so uname gets run too. 546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548# 549# Initializations. 550# 551ac_default_prefix=/usr/local 552ac_clean_files= 553ac_config_libobj_dir=. 554LIBOBJS= 555cross_compiling=no 556subdirs= 557MFLAGS= 558MAKEFLAGS= 559 560# Identity of this package. 561PACKAGE_NAME='NSD' 562PACKAGE_TARNAME='nsd' 563PACKAGE_VERSION='3.2.15' 564PACKAGE_STRING='NSD 3.2.15' 565PACKAGE_BUGREPORT='nsd-bugs@nlnetlabs.nl' 566PACKAGE_URL='' 567 568# Factoring default headers for most tests. 569ac_includes_default="\ 570#include <stdio.h> 571#ifdef HAVE_SYS_TYPES_H 572# include <sys/types.h> 573#endif 574#ifdef HAVE_SYS_STAT_H 575# include <sys/stat.h> 576#endif 577#ifdef STDC_HEADERS 578# include <stdlib.h> 579# include <stddef.h> 580#else 581# ifdef HAVE_STDLIB_H 582# include <stdlib.h> 583# endif 584#endif 585#ifdef HAVE_STRING_H 586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 587# include <memory.h> 588# endif 589# include <string.h> 590#endif 591#ifdef HAVE_STRINGS_H 592# include <strings.h> 593#endif 594#ifdef HAVE_INTTYPES_H 595# include <inttypes.h> 596#endif 597#ifdef HAVE_STDINT_H 598# include <stdint.h> 599#endif 600#ifdef HAVE_UNISTD_H 601# include <unistd.h> 602#endif" 603 604ac_subst_vars='LTLIBOBJS 605zonestatsfile 606HAVE_SSL 607ratelimit 608LIBOBJS 609YFLAGS 610YACC 611LEXLIB 612LEX_OUTPUT_ROOT 613LEX 614INSTALL_DATA 615INSTALL_SCRIPT 616INSTALL_PROGRAM 617LN_S 618AWK 619user 620xfrdfile 621difffile 622zonesdir 623piddir 624dbdir 625dbfile 626pidfile 627logfile 628kill_priority 629start_priority 630nsd_conf_file 631configdir 632EGREP 633GREP 634CPP 635OBJEXT 636EXEEXT 637ac_ct_CC 638CPPFLAGS 639LDFLAGS 640CFLAGS 641CC 642target_alias 643host_alias 644build_alias 645LIBS 646ECHO_T 647ECHO_N 648ECHO_C 649DEFS 650mandir 651localedir 652libdir 653psdir 654pdfdir 655dvidir 656htmldir 657infodir 658docdir 659oldincludedir 660includedir 661localstatedir 662sharedstatedir 663sysconfdir 664datadir 665datarootdir 666libexecdir 667sbindir 668bindir 669program_transform_name 670prefix 671exec_prefix 672PACKAGE_URL 673PACKAGE_BUGREPORT 674PACKAGE_STRING 675PACKAGE_VERSION 676PACKAGE_TARNAME 677PACKAGE_NAME 678PATH_SEPARATOR 679SHELL' 680ac_subst_files='' 681ac_user_opts=' 682enable_option_checking 683with_configdir 684with_nsd_conf_file 685with_start_priority 686with_kill_priority 687with_pidfile 688with_dbfile 689with_zonesdir 690with_difffile 691with_xfrdfile 692with_chroot 693with_user 694enable_largefile 695with_facility 696with_max_ips 697with_tcp_timeout 698enable_root_server 699enable_ipv6 700enable_bind8_stats 701enable_checking 702enable_ratelimit 703with_ssl 704enable_nsec3 705enable_full_prehash 706enable_minimal_responses 707enable_mmap 708enable_zone_stats 709' 710 ac_precious_vars='build_alias 711host_alias 712target_alias 713CC 714CFLAGS 715LDFLAGS 716LIBS 717CPPFLAGS 718CPP 719YACC 720YFLAGS' 721 722 723# Initialize some variables set by options. 724ac_init_help= 725ac_init_version=false 726ac_unrecognized_opts= 727ac_unrecognized_sep= 728# The variables have the same names as the options, with 729# dashes changed to underlines. 730cache_file=/dev/null 731exec_prefix=NONE 732no_create= 733no_recursion= 734prefix=NONE 735program_prefix=NONE 736program_suffix=NONE 737program_transform_name=s,x,x, 738silent= 739site= 740srcdir= 741verbose= 742x_includes=NONE 743x_libraries=NONE 744 745# Installation directory options. 746# These are left unexpanded so users can "make install exec_prefix=/foo" 747# and all the variables that are supposed to be based on exec_prefix 748# by default will actually change. 749# Use braces instead of parens because sh, perl, etc. also accept them. 750# (The list follows the same order as the GNU Coding Standards.) 751bindir='${exec_prefix}/bin' 752sbindir='${exec_prefix}/sbin' 753libexecdir='${exec_prefix}/libexec' 754datarootdir='${prefix}/share' 755datadir='${datarootdir}' 756sysconfdir='${prefix}/etc' 757sharedstatedir='${prefix}/com' 758localstatedir='${prefix}/var' 759includedir='${prefix}/include' 760oldincludedir='/usr/include' 761docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 762infodir='${datarootdir}/info' 763htmldir='${docdir}' 764dvidir='${docdir}' 765pdfdir='${docdir}' 766psdir='${docdir}' 767libdir='${exec_prefix}/lib' 768localedir='${datarootdir}/locale' 769mandir='${datarootdir}/man' 770 771ac_prev= 772ac_dashdash= 773for ac_option 774do 775 # If the previous option needs an argument, assign it. 776 if test -n "$ac_prev"; then 777 eval $ac_prev=\$ac_option 778 ac_prev= 779 continue 780 fi 781 782 case $ac_option in 783 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 784 *=) ac_optarg= ;; 785 *) ac_optarg=yes ;; 786 esac 787 788 # Accept the important Cygnus configure options, so we can diagnose typos. 789 790 case $ac_dashdash$ac_option in 791 --) 792 ac_dashdash=yes ;; 793 794 -bindir | --bindir | --bindi | --bind | --bin | --bi) 795 ac_prev=bindir ;; 796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 797 bindir=$ac_optarg ;; 798 799 -build | --build | --buil | --bui | --bu) 800 ac_prev=build_alias ;; 801 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 802 build_alias=$ac_optarg ;; 803 804 -cache-file | --cache-file | --cache-fil | --cache-fi \ 805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 806 ac_prev=cache_file ;; 807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 809 cache_file=$ac_optarg ;; 810 811 --config-cache | -C) 812 cache_file=config.cache ;; 813 814 -datadir | --datadir | --datadi | --datad) 815 ac_prev=datadir ;; 816 -datadir=* | --datadir=* | --datadi=* | --datad=*) 817 datadir=$ac_optarg ;; 818 819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 820 | --dataroo | --dataro | --datar) 821 ac_prev=datarootdir ;; 822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 824 datarootdir=$ac_optarg ;; 825 826 -disable-* | --disable-*) 827 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 828 # Reject names that are not valid shell variable names. 829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 830 as_fn_error $? "invalid feature name: $ac_useropt" 831 ac_useropt_orig=$ac_useropt 832 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 833 case $ac_user_opts in 834 *" 835"enable_$ac_useropt" 836"*) ;; 837 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 838 ac_unrecognized_sep=', ';; 839 esac 840 eval enable_$ac_useropt=no ;; 841 842 -docdir | --docdir | --docdi | --doc | --do) 843 ac_prev=docdir ;; 844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 845 docdir=$ac_optarg ;; 846 847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 848 ac_prev=dvidir ;; 849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 850 dvidir=$ac_optarg ;; 851 852 -enable-* | --enable-*) 853 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 854 # Reject names that are not valid shell variable names. 855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 856 as_fn_error $? "invalid feature name: $ac_useropt" 857 ac_useropt_orig=$ac_useropt 858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 859 case $ac_user_opts in 860 *" 861"enable_$ac_useropt" 862"*) ;; 863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 864 ac_unrecognized_sep=', ';; 865 esac 866 eval enable_$ac_useropt=\$ac_optarg ;; 867 868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 870 | --exec | --exe | --ex) 871 ac_prev=exec_prefix ;; 872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 874 | --exec=* | --exe=* | --ex=*) 875 exec_prefix=$ac_optarg ;; 876 877 -gas | --gas | --ga | --g) 878 # Obsolete; use --with-gas. 879 with_gas=yes ;; 880 881 -help | --help | --hel | --he | -h) 882 ac_init_help=long ;; 883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 884 ac_init_help=recursive ;; 885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 886 ac_init_help=short ;; 887 888 -host | --host | --hos | --ho) 889 ac_prev=host_alias ;; 890 -host=* | --host=* | --hos=* | --ho=*) 891 host_alias=$ac_optarg ;; 892 893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 894 ac_prev=htmldir ;; 895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 896 | --ht=*) 897 htmldir=$ac_optarg ;; 898 899 -includedir | --includedir | --includedi | --included | --include \ 900 | --includ | --inclu | --incl | --inc) 901 ac_prev=includedir ;; 902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 903 | --includ=* | --inclu=* | --incl=* | --inc=*) 904 includedir=$ac_optarg ;; 905 906 -infodir | --infodir | --infodi | --infod | --info | --inf) 907 ac_prev=infodir ;; 908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 909 infodir=$ac_optarg ;; 910 911 -libdir | --libdir | --libdi | --libd) 912 ac_prev=libdir ;; 913 -libdir=* | --libdir=* | --libdi=* | --libd=*) 914 libdir=$ac_optarg ;; 915 916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 917 | --libexe | --libex | --libe) 918 ac_prev=libexecdir ;; 919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 920 | --libexe=* | --libex=* | --libe=*) 921 libexecdir=$ac_optarg ;; 922 923 -localedir | --localedir | --localedi | --localed | --locale) 924 ac_prev=localedir ;; 925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 926 localedir=$ac_optarg ;; 927 928 -localstatedir | --localstatedir | --localstatedi | --localstated \ 929 | --localstate | --localstat | --localsta | --localst | --locals) 930 ac_prev=localstatedir ;; 931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 933 localstatedir=$ac_optarg ;; 934 935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 936 ac_prev=mandir ;; 937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 938 mandir=$ac_optarg ;; 939 940 -nfp | --nfp | --nf) 941 # Obsolete; use --without-fp. 942 with_fp=no ;; 943 944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 945 | --no-cr | --no-c | -n) 946 no_create=yes ;; 947 948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 950 no_recursion=yes ;; 951 952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 954 | --oldin | --oldi | --old | --ol | --o) 955 ac_prev=oldincludedir ;; 956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 959 oldincludedir=$ac_optarg ;; 960 961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 962 ac_prev=prefix ;; 963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 964 prefix=$ac_optarg ;; 965 966 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 967 | --program-pre | --program-pr | --program-p) 968 ac_prev=program_prefix ;; 969 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 971 program_prefix=$ac_optarg ;; 972 973 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 974 | --program-suf | --program-su | --program-s) 975 ac_prev=program_suffix ;; 976 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 978 program_suffix=$ac_optarg ;; 979 980 -program-transform-name | --program-transform-name \ 981 | --program-transform-nam | --program-transform-na \ 982 | --program-transform-n | --program-transform- \ 983 | --program-transform | --program-transfor \ 984 | --program-transfo | --program-transf \ 985 | --program-trans | --program-tran \ 986 | --progr-tra | --program-tr | --program-t) 987 ac_prev=program_transform_name ;; 988 -program-transform-name=* | --program-transform-name=* \ 989 | --program-transform-nam=* | --program-transform-na=* \ 990 | --program-transform-n=* | --program-transform-=* \ 991 | --program-transform=* | --program-transfor=* \ 992 | --program-transfo=* | --program-transf=* \ 993 | --program-trans=* | --program-tran=* \ 994 | --progr-tra=* | --program-tr=* | --program-t=*) 995 program_transform_name=$ac_optarg ;; 996 997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 998 ac_prev=pdfdir ;; 999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1000 pdfdir=$ac_optarg ;; 1001 1002 -psdir | --psdir | --psdi | --psd | --ps) 1003 ac_prev=psdir ;; 1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1005 psdir=$ac_optarg ;; 1006 1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1008 | -silent | --silent | --silen | --sile | --sil) 1009 silent=yes ;; 1010 1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1012 ac_prev=sbindir ;; 1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1014 | --sbi=* | --sb=*) 1015 sbindir=$ac_optarg ;; 1016 1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1019 | --sharedst | --shareds | --shared | --share | --shar \ 1020 | --sha | --sh) 1021 ac_prev=sharedstatedir ;; 1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1025 | --sha=* | --sh=*) 1026 sharedstatedir=$ac_optarg ;; 1027 1028 -site | --site | --sit) 1029 ac_prev=site ;; 1030 -site=* | --site=* | --sit=*) 1031 site=$ac_optarg ;; 1032 1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1034 ac_prev=srcdir ;; 1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1036 srcdir=$ac_optarg ;; 1037 1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1039 | --syscon | --sysco | --sysc | --sys | --sy) 1040 ac_prev=sysconfdir ;; 1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1043 sysconfdir=$ac_optarg ;; 1044 1045 -target | --target | --targe | --targ | --tar | --ta | --t) 1046 ac_prev=target_alias ;; 1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1048 target_alias=$ac_optarg ;; 1049 1050 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1051 verbose=yes ;; 1052 1053 -version | --version | --versio | --versi | --vers | -V) 1054 ac_init_version=: ;; 1055 1056 -with-* | --with-*) 1057 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1058 # Reject names that are not valid shell variable names. 1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1060 as_fn_error $? "invalid package name: $ac_useropt" 1061 ac_useropt_orig=$ac_useropt 1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1063 case $ac_user_opts in 1064 *" 1065"with_$ac_useropt" 1066"*) ;; 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1068 ac_unrecognized_sep=', ';; 1069 esac 1070 eval with_$ac_useropt=\$ac_optarg ;; 1071 1072 -without-* | --without-*) 1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1076 as_fn_error $? "invalid package name: $ac_useropt" 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081"with_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval with_$ac_useropt=no ;; 1087 1088 --x) 1089 # Obsolete; use --with-x. 1090 with_x=yes ;; 1091 1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1093 | --x-incl | --x-inc | --x-in | --x-i) 1094 ac_prev=x_includes ;; 1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1097 x_includes=$ac_optarg ;; 1098 1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1101 ac_prev=x_libraries ;; 1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1104 x_libraries=$ac_optarg ;; 1105 1106 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1107Try \`$0 --help' for more information" 1108 ;; 1109 1110 *=*) 1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1112 # Reject names that are not valid shell variable names. 1113 case $ac_envvar in #( 1114 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1115 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1116 esac 1117 eval $ac_envvar=\$ac_optarg 1118 export $ac_envvar ;; 1119 1120 *) 1121 # FIXME: should be removed in autoconf 3.0. 1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1125 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1126 ;; 1127 1128 esac 1129done 1130 1131if test -n "$ac_prev"; then 1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1133 as_fn_error $? "missing argument to $ac_option" 1134fi 1135 1136if test -n "$ac_unrecognized_opts"; then 1137 case $enable_option_checking in 1138 no) ;; 1139 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1140 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1141 esac 1142fi 1143 1144# Check all directory arguments for consistency. 1145for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1146 datadir sysconfdir sharedstatedir localstatedir includedir \ 1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1148 libdir localedir mandir 1149do 1150 eval ac_val=\$$ac_var 1151 # Remove trailing slashes. 1152 case $ac_val in 1153 */ ) 1154 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1155 eval $ac_var=\$ac_val;; 1156 esac 1157 # Be sure to have absolute directory names. 1158 case $ac_val in 1159 [\\/$]* | ?:[\\/]* ) continue;; 1160 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1161 esac 1162 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1163done 1164 1165# There might be people who depend on the old broken behavior: `$host' 1166# used to hold the argument of --host etc. 1167# FIXME: To remove some day. 1168build=$build_alias 1169host=$host_alias 1170target=$target_alias 1171 1172# FIXME: To remove some day. 1173if test "x$host_alias" != x; then 1174 if test "x$build_alias" = x; then 1175 cross_compiling=maybe 1176 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1177 If a cross compiler is detected then cross compile mode will be used" >&2 1178 elif test "x$build_alias" != "x$host_alias"; then 1179 cross_compiling=yes 1180 fi 1181fi 1182 1183ac_tool_prefix= 1184test -n "$host_alias" && ac_tool_prefix=$host_alias- 1185 1186test "$silent" = yes && exec 6>/dev/null 1187 1188 1189ac_pwd=`pwd` && test -n "$ac_pwd" && 1190ac_ls_di=`ls -di .` && 1191ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1192 as_fn_error $? "working directory cannot be determined" 1193test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1194 as_fn_error $? "pwd does not report name of working directory" 1195 1196 1197# Find the source files, if location was not specified. 1198if test -z "$srcdir"; then 1199 ac_srcdir_defaulted=yes 1200 # Try the directory containing this script, then the parent directory. 1201 ac_confdir=`$as_dirname -- "$as_myself" || 1202$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1203 X"$as_myself" : 'X\(//\)[^/]' \| \ 1204 X"$as_myself" : 'X\(//\)$' \| \ 1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1206$as_echo X"$as_myself" | 1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1208 s//\1/ 1209 q 1210 } 1211 /^X\(\/\/\)[^/].*/{ 1212 s//\1/ 1213 q 1214 } 1215 /^X\(\/\/\)$/{ 1216 s//\1/ 1217 q 1218 } 1219 /^X\(\/\).*/{ 1220 s//\1/ 1221 q 1222 } 1223 s/.*/./; q'` 1224 srcdir=$ac_confdir 1225 if test ! -r "$srcdir/$ac_unique_file"; then 1226 srcdir=.. 1227 fi 1228else 1229 ac_srcdir_defaulted=no 1230fi 1231if test ! -r "$srcdir/$ac_unique_file"; then 1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1233 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1234fi 1235ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1236ac_abs_confdir=`( 1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1238 pwd)` 1239# When building in place, set srcdir=. 1240if test "$ac_abs_confdir" = "$ac_pwd"; then 1241 srcdir=. 1242fi 1243# Remove unnecessary trailing slashes from srcdir. 1244# Double slashes in file names in object file debugging info 1245# mess up M-x gdb in Emacs. 1246case $srcdir in 1247*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1248esac 1249for ac_var in $ac_precious_vars; do 1250 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1251 eval ac_env_${ac_var}_value=\$${ac_var} 1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1253 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1254done 1255 1256# 1257# Report the --help message. 1258# 1259if test "$ac_init_help" = "long"; then 1260 # Omit some internal or obsolete options to make the list less imposing. 1261 # This message is too long to be a string in the A/UX 3.1 sh. 1262 cat <<_ACEOF 1263\`configure' configures NSD 3.2.15 to adapt to many kinds of systems. 1264 1265Usage: $0 [OPTION]... [VAR=VALUE]... 1266 1267To assign environment variables (e.g., CC, CFLAGS...), specify them as 1268VAR=VALUE. See below for descriptions of some of the useful variables. 1269 1270Defaults for the options are specified in brackets. 1271 1272Configuration: 1273 -h, --help display this help and exit 1274 --help=short display options specific to this package 1275 --help=recursive display the short help of all the included packages 1276 -V, --version display version information and exit 1277 -q, --quiet, --silent do not print \`checking ...' messages 1278 --cache-file=FILE cache test results in FILE [disabled] 1279 -C, --config-cache alias for \`--cache-file=config.cache' 1280 -n, --no-create do not create output files 1281 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1282 1283Installation directories: 1284 --prefix=PREFIX install architecture-independent files in PREFIX 1285 [$ac_default_prefix] 1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1287 [PREFIX] 1288 1289By default, \`make install' will install all the files in 1290\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1291an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1292for instance \`--prefix=\$HOME'. 1293 1294For better control, use the options below. 1295 1296Fine tuning of the installation directories: 1297 --bindir=DIR user executables [EPREFIX/bin] 1298 --sbindir=DIR system admin executables [EPREFIX/sbin] 1299 --libexecdir=DIR program executables [EPREFIX/libexec] 1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1303 --libdir=DIR object code libraries [EPREFIX/lib] 1304 --includedir=DIR C header files [PREFIX/include] 1305 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1308 --infodir=DIR info documentation [DATAROOTDIR/info] 1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1310 --mandir=DIR man documentation [DATAROOTDIR/man] 1311 --docdir=DIR documentation root [DATAROOTDIR/doc/nsd] 1312 --htmldir=DIR html documentation [DOCDIR] 1313 --dvidir=DIR dvi documentation [DOCDIR] 1314 --pdfdir=DIR pdf documentation [DOCDIR] 1315 --psdir=DIR ps documentation [DOCDIR] 1316_ACEOF 1317 1318 cat <<\_ACEOF 1319_ACEOF 1320fi 1321 1322if test -n "$ac_init_help"; then 1323 case $ac_init_help in 1324 short | recursive ) echo "Configuration of NSD 3.2.15:";; 1325 esac 1326 cat <<\_ACEOF 1327 1328Optional Features: 1329 --disable-option-checking ignore unrecognized --enable/--with options 1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1332 --disable-largefile omit support for large files 1333 --enable-root-server Configure NSD as a root server 1334 --disable-ipv6 Disables IPv6 support 1335 --enable-bind8-stats Enables BIND8 like NSTATS & XSTATS 1336 --enable-checking Enable internal runtime checks 1337 --enable-ratelimit Enable rate limiting 1338 --disable-nsec3 Disable NSEC3 support 1339 --disable-full-prehash Disables NSEC3 full prehashing 1340 --disable-minimal-responses 1341 Disable response minimization. More truncation. 1342 --enable-mmap Use mmap instead of malloc. Experimental. 1343 --enable-zone-stats Maintain statistics per zone, instead of global 1344 statistics. 1345 1346Optional Packages: 1347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1349 --with-configdir=dir NSD configuration directory 1350 --with-nsd_conf_file=path 1351 Pathname to the NSD configuration file 1352 --with-start_priority=number 1353 NSD startup priority 1354 --with-kill_priority=number 1355 NSD shutdown priority 1356 --with-pidfile=path Pathname to the NSD pidfile 1357 --with-dbfile=path Pathname to the NSD database 1358 --with-zonesdir=dir NSD default location for zone files 1359 --with-difffile=path Pathname to the NSD diff transfer journal file 1360 --with-xfrdfile=path Pathname to the NSD xfrd zone timer state file 1361 --with-chroot=dir NSD default chroot directory 1362 --with-user=username User name or ID to answer the queries with 1363 --with-facility=name Syslog default facility (LOG_DAEMON) 1364 --with-max-ips=number Limit on the number of ip-addresses that may be 1365 specified 1366 --with-tcp-timeout=number 1367 Limit the default tcp timeout 1368 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1369 /usr/ssl /usr/pkg /usr/sfw /usr/local /usr) 1370 1371Some influential environment variables: 1372 CC C compiler command 1373 CFLAGS C compiler flags 1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1375 nonstandard directory <lib dir> 1376 LIBS libraries to pass to the linker, e.g. -l<library> 1377 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1378 you have headers in a nonstandard directory <include dir> 1379 CPP C preprocessor 1380 YACC The `Yet Another Compiler Compiler' implementation to use. 1381 Defaults to the first program found out of: `bison -y', `byacc', 1382 `yacc'. 1383 YFLAGS The list of arguments that will be passed by default to $YACC. 1384 This script will default YFLAGS to the empty string to avoid a 1385 default value of `-d' given by some make applications. 1386 1387Use these variables to override the choices made by `configure' or to help 1388it to find libraries and programs with nonstandard names/locations. 1389 1390Report bugs to <nsd-bugs@nlnetlabs.nl>. 1391_ACEOF 1392ac_status=$? 1393fi 1394 1395if test "$ac_init_help" = "recursive"; then 1396 # If there are subdirs, report their specific --help. 1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1398 test -d "$ac_dir" || 1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1400 continue 1401 ac_builddir=. 1402 1403case "$ac_dir" in 1404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1405*) 1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1407 # A ".." for each directory in $ac_dir_suffix. 1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1409 case $ac_top_builddir_sub in 1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1412 esac ;; 1413esac 1414ac_abs_top_builddir=$ac_pwd 1415ac_abs_builddir=$ac_pwd$ac_dir_suffix 1416# for backward compatibility: 1417ac_top_builddir=$ac_top_build_prefix 1418 1419case $srcdir in 1420 .) # We are building in place. 1421 ac_srcdir=. 1422 ac_top_srcdir=$ac_top_builddir_sub 1423 ac_abs_top_srcdir=$ac_pwd ;; 1424 [\\/]* | ?:[\\/]* ) # Absolute name. 1425 ac_srcdir=$srcdir$ac_dir_suffix; 1426 ac_top_srcdir=$srcdir 1427 ac_abs_top_srcdir=$srcdir ;; 1428 *) # Relative name. 1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1430 ac_top_srcdir=$ac_top_build_prefix$srcdir 1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1432esac 1433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1434 1435 cd "$ac_dir" || { ac_status=$?; continue; } 1436 # Check for guested configure. 1437 if test -f "$ac_srcdir/configure.gnu"; then 1438 echo && 1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1440 elif test -f "$ac_srcdir/configure"; then 1441 echo && 1442 $SHELL "$ac_srcdir/configure" --help=recursive 1443 else 1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1445 fi || ac_status=$? 1446 cd "$ac_pwd" || { ac_status=$?; break; } 1447 done 1448fi 1449 1450test -n "$ac_init_help" && exit $ac_status 1451if $ac_init_version; then 1452 cat <<\_ACEOF 1453NSD configure 3.2.15 1454generated by GNU Autoconf 2.68 1455 1456Copyright (C) 2010 Free Software Foundation, Inc. 1457This configure script is free software; the Free Software Foundation 1458gives unlimited permission to copy, distribute and modify it. 1459_ACEOF 1460 exit 1461fi 1462 1463## ------------------------ ## 1464## Autoconf initialization. ## 1465## ------------------------ ## 1466 1467# ac_fn_c_try_compile LINENO 1468# -------------------------- 1469# Try to compile conftest.$ac_ext, and return whether this succeeded. 1470ac_fn_c_try_compile () 1471{ 1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1473 rm -f conftest.$ac_objext 1474 if { { ac_try="$ac_compile" 1475case "(($ac_try" in 1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1477 *) ac_try_echo=$ac_try;; 1478esac 1479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1480$as_echo "$ac_try_echo"; } >&5 1481 (eval "$ac_compile") 2>conftest.err 1482 ac_status=$? 1483 if test -s conftest.err; then 1484 grep -v '^ *+' conftest.err >conftest.er1 1485 cat conftest.er1 >&5 1486 mv -f conftest.er1 conftest.err 1487 fi 1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1489 test $ac_status = 0; } && { 1490 test -z "$ac_c_werror_flag" || 1491 test ! -s conftest.err 1492 } && test -s conftest.$ac_objext; then : 1493 ac_retval=0 1494else 1495 $as_echo "$as_me: failed program was:" >&5 1496sed 's/^/| /' conftest.$ac_ext >&5 1497 1498 ac_retval=1 1499fi 1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1501 as_fn_set_status $ac_retval 1502 1503} # ac_fn_c_try_compile 1504 1505# ac_fn_c_try_cpp LINENO 1506# ---------------------- 1507# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1508ac_fn_c_try_cpp () 1509{ 1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1511 if { { ac_try="$ac_cpp conftest.$ac_ext" 1512case "(($ac_try" in 1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1514 *) ac_try_echo=$ac_try;; 1515esac 1516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1517$as_echo "$ac_try_echo"; } >&5 1518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1519 ac_status=$? 1520 if test -s conftest.err; then 1521 grep -v '^ *+' conftest.err >conftest.er1 1522 cat conftest.er1 >&5 1523 mv -f conftest.er1 conftest.err 1524 fi 1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1526 test $ac_status = 0; } > conftest.i && { 1527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1528 test ! -s conftest.err 1529 }; then : 1530 ac_retval=0 1531else 1532 $as_echo "$as_me: failed program was:" >&5 1533sed 's/^/| /' conftest.$ac_ext >&5 1534 1535 ac_retval=1 1536fi 1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1538 as_fn_set_status $ac_retval 1539 1540} # ac_fn_c_try_cpp 1541 1542# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1543# ------------------------------------------------------- 1544# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1545# the include files in INCLUDES and setting the cache variable VAR 1546# accordingly. 1547ac_fn_c_check_header_mongrel () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 if eval \${$3+:} false; then : 1551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1552$as_echo_n "checking for $2... " >&6; } 1553if eval \${$3+:} false; then : 1554 $as_echo_n "(cached) " >&6 1555fi 1556eval ac_res=\$$3 1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1558$as_echo "$ac_res" >&6; } 1559else 1560 # Is the header compilable? 1561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1562$as_echo_n "checking $2 usability... " >&6; } 1563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1564/* end confdefs.h. */ 1565$4 1566#include <$2> 1567_ACEOF 1568if ac_fn_c_try_compile "$LINENO"; then : 1569 ac_header_compiler=yes 1570else 1571 ac_header_compiler=no 1572fi 1573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1575$as_echo "$ac_header_compiler" >&6; } 1576 1577# Is the header present? 1578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1579$as_echo_n "checking $2 presence... " >&6; } 1580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1581/* end confdefs.h. */ 1582#include <$2> 1583_ACEOF 1584if ac_fn_c_try_cpp "$LINENO"; then : 1585 ac_header_preproc=yes 1586else 1587 ac_header_preproc=no 1588fi 1589rm -f conftest.err conftest.i conftest.$ac_ext 1590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1591$as_echo "$ac_header_preproc" >&6; } 1592 1593# So? What about this header? 1594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1595 yes:no: ) 1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1597$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1599$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1600 ;; 1601 no:yes:* ) 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1603$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1605$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1607$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1609$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1611$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1612( $as_echo "## ------------------------------------ ## 1613## Report this to nsd-bugs@nlnetlabs.nl ## 1614## ------------------------------------ ##" 1615 ) | sed "s/^/$as_me: WARNING: /" >&2 1616 ;; 1617esac 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1619$as_echo_n "checking for $2... " >&6; } 1620if eval \${$3+:} false; then : 1621 $as_echo_n "(cached) " >&6 1622else 1623 eval "$3=\$ac_header_compiler" 1624fi 1625eval ac_res=\$$3 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627$as_echo "$ac_res" >&6; } 1628fi 1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1630 1631} # ac_fn_c_check_header_mongrel 1632 1633# ac_fn_c_try_run LINENO 1634# ---------------------- 1635# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1636# that executables *can* be run. 1637ac_fn_c_try_run () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 if { { ac_try="$ac_link" 1641case "(($ac_try" in 1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1643 *) ac_try_echo=$ac_try;; 1644esac 1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1646$as_echo "$ac_try_echo"; } >&5 1647 (eval "$ac_link") 2>&5 1648 ac_status=$? 1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1650 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1651 { { case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_try") 2>&5 1658 ac_status=$? 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; }; }; then : 1661 ac_retval=0 1662else 1663 $as_echo "$as_me: program exited with status $ac_status" >&5 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=$ac_status 1668fi 1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_c_try_run 1674 1675# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1676# ------------------------------------------------------- 1677# Tests whether HEADER exists and can be compiled using the include files in 1678# INCLUDES, setting the cache variable VAR accordingly. 1679ac_fn_c_check_header_compile () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1683$as_echo_n "checking for $2... " >&6; } 1684if eval \${$3+:} false; then : 1685 $as_echo_n "(cached) " >&6 1686else 1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1688/* end confdefs.h. */ 1689$4 1690#include <$2> 1691_ACEOF 1692if ac_fn_c_try_compile "$LINENO"; then : 1693 eval "$3=yes" 1694else 1695 eval "$3=no" 1696fi 1697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1698fi 1699eval ac_res=\$$3 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1701$as_echo "$ac_res" >&6; } 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 1704} # ac_fn_c_check_header_compile 1705 1706# ac_fn_c_try_link LINENO 1707# ----------------------- 1708# Try to link conftest.$ac_ext, and return whether this succeeded. 1709ac_fn_c_try_link () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 rm -f conftest.$ac_objext conftest$ac_exeext 1713 if { { ac_try="$ac_link" 1714case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717esac 1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719$as_echo "$ac_try_echo"; } >&5 1720 (eval "$ac_link") 2>conftest.err 1721 ac_status=$? 1722 if test -s conftest.err; then 1723 grep -v '^ *+' conftest.err >conftest.er1 1724 cat conftest.er1 >&5 1725 mv -f conftest.er1 conftest.err 1726 fi 1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 test $ac_status = 0; } && { 1729 test -z "$ac_c_werror_flag" || 1730 test ! -s conftest.err 1731 } && test -s conftest$ac_exeext && { 1732 test "$cross_compiling" = yes || 1733 $as_test_x conftest$ac_exeext 1734 }; then : 1735 ac_retval=0 1736else 1737 $as_echo "$as_me: failed program was:" >&5 1738sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=1 1741fi 1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1744 # interfere with the next link command; also delete a directory that is 1745 # left behind by Apple's compiler. We do this before executing the actions. 1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 as_fn_set_status $ac_retval 1749 1750} # ac_fn_c_try_link 1751 1752# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1753# ------------------------------------------- 1754# Tests whether TYPE exists after having included INCLUDES, setting cache 1755# variable VAR accordingly. 1756ac_fn_c_check_type () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1760$as_echo_n "checking for $2... " >&6; } 1761if eval \${$3+:} false; then : 1762 $as_echo_n "(cached) " >&6 1763else 1764 eval "$3=no" 1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766/* end confdefs.h. */ 1767$4 1768int 1769main () 1770{ 1771if (sizeof ($2)) 1772 return 0; 1773 ; 1774 return 0; 1775} 1776_ACEOF 1777if ac_fn_c_try_compile "$LINENO"; then : 1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1779/* end confdefs.h. */ 1780$4 1781int 1782main () 1783{ 1784if (sizeof (($2))) 1785 return 0; 1786 ; 1787 return 0; 1788} 1789_ACEOF 1790if ac_fn_c_try_compile "$LINENO"; then : 1791 1792else 1793 eval "$3=yes" 1794fi 1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1796fi 1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1798fi 1799eval ac_res=\$$3 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801$as_echo "$ac_res" >&6; } 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 1804} # ac_fn_c_check_type 1805 1806# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1807# ---------------------------------------------------- 1808# Tries to find if the field MEMBER exists in type AGGR, after including 1809# INCLUDES, setting cache variable VAR accordingly. 1810ac_fn_c_check_member () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1814$as_echo_n "checking for $2.$3... " >&6; } 1815if eval \${$4+:} false; then : 1816 $as_echo_n "(cached) " >&6 1817else 1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1819/* end confdefs.h. */ 1820$5 1821int 1822main () 1823{ 1824static $2 ac_aggr; 1825if (ac_aggr.$3) 1826return 0; 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO"; then : 1832 eval "$4=yes" 1833else 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1835/* end confdefs.h. */ 1836$5 1837int 1838main () 1839{ 1840static $2 ac_aggr; 1841if (sizeof ac_aggr.$3) 1842return 0; 1843 ; 1844 return 0; 1845} 1846_ACEOF 1847if ac_fn_c_try_compile "$LINENO"; then : 1848 eval "$4=yes" 1849else 1850 eval "$4=no" 1851fi 1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1853fi 1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1855fi 1856eval ac_res=\$$4 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 1861} # ac_fn_c_check_member 1862 1863# ac_fn_c_check_func LINENO FUNC VAR 1864# ---------------------------------- 1865# Tests whether FUNC exists, setting the cache variable VAR accordingly 1866ac_fn_c_check_func () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1870$as_echo_n "checking for $2... " >&6; } 1871if eval \${$3+:} false; then : 1872 $as_echo_n "(cached) " >&6 1873else 1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1875/* end confdefs.h. */ 1876/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1878#define $2 innocuous_$2 1879 1880/* System header to define __stub macros and hopefully few prototypes, 1881 which can conflict with char $2 (); below. 1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1883 <limits.h> exists even on freestanding compilers. */ 1884 1885#ifdef __STDC__ 1886# include <limits.h> 1887#else 1888# include <assert.h> 1889#endif 1890 1891#undef $2 1892 1893/* Override any GCC internal prototype to avoid an error. 1894 Use char because int might match the return type of a GCC 1895 builtin and then its argument prototype would still apply. */ 1896#ifdef __cplusplus 1897extern "C" 1898#endif 1899char $2 (); 1900/* The GNU C library defines this for functions which it implements 1901 to always fail with ENOSYS. Some functions are actually named 1902 something starting with __ and the normal name is an alias. */ 1903#if defined __stub_$2 || defined __stub___$2 1904choke me 1905#endif 1906 1907int 1908main () 1909{ 1910return $2 (); 1911 ; 1912 return 0; 1913} 1914_ACEOF 1915if ac_fn_c_try_link "$LINENO"; then : 1916 eval "$3=yes" 1917else 1918 eval "$3=no" 1919fi 1920rm -f core conftest.err conftest.$ac_objext \ 1921 conftest$ac_exeext conftest.$ac_ext 1922fi 1923eval ac_res=\$$3 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1925$as_echo "$ac_res" >&6; } 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 1928} # ac_fn_c_check_func 1929cat >config.log <<_ACEOF 1930This file contains any messages produced by compilers while 1931running configure, to aid debugging if configure makes a mistake. 1932 1933It was created by NSD $as_me 3.2.15, which was 1934generated by GNU Autoconf 2.68. Invocation command line was 1935 1936 $ $0 $@ 1937 1938_ACEOF 1939exec 5>>config.log 1940{ 1941cat <<_ASUNAME 1942## --------- ## 1943## Platform. ## 1944## --------- ## 1945 1946hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1947uname -m = `(uname -m) 2>/dev/null || echo unknown` 1948uname -r = `(uname -r) 2>/dev/null || echo unknown` 1949uname -s = `(uname -s) 2>/dev/null || echo unknown` 1950uname -v = `(uname -v) 2>/dev/null || echo unknown` 1951 1952/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1953/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1954 1955/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1956/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1957/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1958/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1959/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1960/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1961/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1962 1963_ASUNAME 1964 1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1966for as_dir in $PATH 1967do 1968 IFS=$as_save_IFS 1969 test -z "$as_dir" && as_dir=. 1970 $as_echo "PATH: $as_dir" 1971 done 1972IFS=$as_save_IFS 1973 1974} >&5 1975 1976cat >&5 <<_ACEOF 1977 1978 1979## ----------- ## 1980## Core tests. ## 1981## ----------- ## 1982 1983_ACEOF 1984 1985 1986# Keep a trace of the command line. 1987# Strip out --no-create and --no-recursion so they do not pile up. 1988# Strip out --silent because we don't want to record it for future runs. 1989# Also quote any args containing shell meta-characters. 1990# Make two passes to allow for proper duplicate-argument suppression. 1991ac_configure_args= 1992ac_configure_args0= 1993ac_configure_args1= 1994ac_must_keep_next=false 1995for ac_pass in 1 2 1996do 1997 for ac_arg 1998 do 1999 case $ac_arg in 2000 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2002 | -silent | --silent | --silen | --sile | --sil) 2003 continue ;; 2004 *\'*) 2005 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2006 esac 2007 case $ac_pass in 2008 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2009 2) 2010 as_fn_append ac_configure_args1 " '$ac_arg'" 2011 if test $ac_must_keep_next = true; then 2012 ac_must_keep_next=false # Got value, back to normal. 2013 else 2014 case $ac_arg in 2015 *=* | --config-cache | -C | -disable-* | --disable-* \ 2016 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2017 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2018 | -with-* | --with-* | -without-* | --without-* | --x) 2019 case "$ac_configure_args0 " in 2020 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2021 esac 2022 ;; 2023 -* ) ac_must_keep_next=true ;; 2024 esac 2025 fi 2026 as_fn_append ac_configure_args " '$ac_arg'" 2027 ;; 2028 esac 2029 done 2030done 2031{ ac_configure_args0=; unset ac_configure_args0;} 2032{ ac_configure_args1=; unset ac_configure_args1;} 2033 2034# When interrupted or exit'd, cleanup temporary files, and complete 2035# config.log. We remove comments because anyway the quotes in there 2036# would cause problems or look ugly. 2037# WARNING: Use '\'' to represent an apostrophe within the trap. 2038# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2039trap 'exit_status=$? 2040 # Save into config.log some information that might help in debugging. 2041 { 2042 echo 2043 2044 $as_echo "## ---------------- ## 2045## Cache variables. ## 2046## ---------------- ##" 2047 echo 2048 # The following way of writing the cache mishandles newlines in values, 2049( 2050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2051 eval ac_val=\$$ac_var 2052 case $ac_val in #( 2053 *${as_nl}*) 2054 case $ac_var in #( 2055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2056$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2057 esac 2058 case $ac_var in #( 2059 _ | IFS | as_nl) ;; #( 2060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2061 *) { eval $ac_var=; unset $ac_var;} ;; 2062 esac ;; 2063 esac 2064 done 2065 (set) 2>&1 | 2066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2067 *${as_nl}ac_space=\ *) 2068 sed -n \ 2069 "s/'\''/'\''\\\\'\'''\''/g; 2070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2071 ;; #( 2072 *) 2073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2074 ;; 2075 esac | 2076 sort 2077) 2078 echo 2079 2080 $as_echo "## ----------------- ## 2081## Output variables. ## 2082## ----------------- ##" 2083 echo 2084 for ac_var in $ac_subst_vars 2085 do 2086 eval ac_val=\$$ac_var 2087 case $ac_val in 2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2089 esac 2090 $as_echo "$ac_var='\''$ac_val'\''" 2091 done | sort 2092 echo 2093 2094 if test -n "$ac_subst_files"; then 2095 $as_echo "## ------------------- ## 2096## File substitutions. ## 2097## ------------------- ##" 2098 echo 2099 for ac_var in $ac_subst_files 2100 do 2101 eval ac_val=\$$ac_var 2102 case $ac_val in 2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2104 esac 2105 $as_echo "$ac_var='\''$ac_val'\''" 2106 done | sort 2107 echo 2108 fi 2109 2110 if test -s confdefs.h; then 2111 $as_echo "## ----------- ## 2112## confdefs.h. ## 2113## ----------- ##" 2114 echo 2115 cat confdefs.h 2116 echo 2117 fi 2118 test "$ac_signal" != 0 && 2119 $as_echo "$as_me: caught signal $ac_signal" 2120 $as_echo "$as_me: exit $exit_status" 2121 } >&5 2122 rm -f core *.core core.conftest.* && 2123 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2124 exit $exit_status 2125' 0 2126for ac_signal in 1 2 13 15; do 2127 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2128done 2129ac_signal=0 2130 2131# confdefs.h avoids OS command line length limits that DEFS can exceed. 2132rm -f -r conftest* confdefs.h 2133 2134$as_echo "/* confdefs.h */" > confdefs.h 2135 2136# Predefined preprocessor variables. 2137 2138cat >>confdefs.h <<_ACEOF 2139#define PACKAGE_NAME "$PACKAGE_NAME" 2140_ACEOF 2141 2142cat >>confdefs.h <<_ACEOF 2143#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2144_ACEOF 2145 2146cat >>confdefs.h <<_ACEOF 2147#define PACKAGE_VERSION "$PACKAGE_VERSION" 2148_ACEOF 2149 2150cat >>confdefs.h <<_ACEOF 2151#define PACKAGE_STRING "$PACKAGE_STRING" 2152_ACEOF 2153 2154cat >>confdefs.h <<_ACEOF 2155#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2156_ACEOF 2157 2158cat >>confdefs.h <<_ACEOF 2159#define PACKAGE_URL "$PACKAGE_URL" 2160_ACEOF 2161 2162 2163# Let the site file select an alternate cache file if it wants to. 2164# Prefer an explicitly selected file to automatically selected ones. 2165ac_site_file1=NONE 2166ac_site_file2=NONE 2167if test -n "$CONFIG_SITE"; then 2168 # We do not want a PATH search for config.site. 2169 case $CONFIG_SITE in #(( 2170 -*) ac_site_file1=./$CONFIG_SITE;; 2171 */*) ac_site_file1=$CONFIG_SITE;; 2172 *) ac_site_file1=./$CONFIG_SITE;; 2173 esac 2174elif test "x$prefix" != xNONE; then 2175 ac_site_file1=$prefix/share/config.site 2176 ac_site_file2=$prefix/etc/config.site 2177else 2178 ac_site_file1=$ac_default_prefix/share/config.site 2179 ac_site_file2=$ac_default_prefix/etc/config.site 2180fi 2181for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2182do 2183 test "x$ac_site_file" = xNONE && continue 2184 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2186$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2187 sed 's/^/| /' "$ac_site_file" >&5 2188 . "$ac_site_file" \ 2189 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2191as_fn_error $? "failed to load site script $ac_site_file 2192See \`config.log' for more details" "$LINENO" 5; } 2193 fi 2194done 2195 2196if test -r "$cache_file"; then 2197 # Some versions of bash will fail to source /dev/null (special files 2198 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2201$as_echo "$as_me: loading cache $cache_file" >&6;} 2202 case $cache_file in 2203 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2204 *) . "./$cache_file";; 2205 esac 2206 fi 2207else 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2209$as_echo "$as_me: creating cache $cache_file" >&6;} 2210 >$cache_file 2211fi 2212 2213# Check that the precious variables saved in the cache have kept the same 2214# value. 2215ac_cache_corrupted=false 2216for ac_var in $ac_precious_vars; do 2217 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2218 eval ac_new_set=\$ac_env_${ac_var}_set 2219 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2220 eval ac_new_val=\$ac_env_${ac_var}_value 2221 case $ac_old_set,$ac_new_set in 2222 set,) 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2224$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2225 ac_cache_corrupted=: ;; 2226 ,set) 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2228$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2229 ac_cache_corrupted=: ;; 2230 ,);; 2231 *) 2232 if test "x$ac_old_val" != "x$ac_new_val"; then 2233 # differences in whitespace do not lead to failure. 2234 ac_old_val_w=`echo x $ac_old_val` 2235 ac_new_val_w=`echo x $ac_new_val` 2236 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2238$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2239 ac_cache_corrupted=: 2240 else 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2242$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2243 eval $ac_var=\$ac_old_val 2244 fi 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2246$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2248$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2249 fi;; 2250 esac 2251 # Pass precious variables to config.status. 2252 if test "$ac_new_set" = set; then 2253 case $ac_new_val in 2254 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2255 *) ac_arg=$ac_var=$ac_new_val ;; 2256 esac 2257 case " $ac_configure_args " in 2258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2259 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2260 esac 2261 fi 2262done 2263if $ac_cache_corrupted; then 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2267$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2268 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2269fi 2270## -------------------- ## 2271## Main body of script. ## 2272## -------------------- ## 2273 2274ac_ext=c 2275ac_cpp='$CPP $CPPFLAGS' 2276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2278ac_compiler_gnu=$ac_cv_c_compiler_gnu 2279 2280 2281ac_config_headers="$ac_config_headers config.h" 2282 2283 2284ac_ext=c 2285ac_cpp='$CPP $CPPFLAGS' 2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2288ac_compiler_gnu=$ac_cv_c_compiler_gnu 2289if test -n "$ac_tool_prefix"; then 2290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2291set dummy ${ac_tool_prefix}gcc; ac_word=$2 2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2293$as_echo_n "checking for $ac_word... " >&6; } 2294if ${ac_cv_prog_CC+:} false; then : 2295 $as_echo_n "(cached) " >&6 2296else 2297 if test -n "$CC"; then 2298 ac_cv_prog_CC="$CC" # Let the user override the test. 2299else 2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301for as_dir in $PATH 2302do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 for ac_exec_ext in '' $ac_executable_extensions; do 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2307 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2309 break 2 2310 fi 2311done 2312 done 2313IFS=$as_save_IFS 2314 2315fi 2316fi 2317CC=$ac_cv_prog_CC 2318if test -n "$CC"; then 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2320$as_echo "$CC" >&6; } 2321else 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2323$as_echo "no" >&6; } 2324fi 2325 2326 2327fi 2328if test -z "$ac_cv_prog_CC"; then 2329 ac_ct_CC=$CC 2330 # Extract the first word of "gcc", so it can be a program name with args. 2331set dummy gcc; ac_word=$2 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2333$as_echo_n "checking for $ac_word... " >&6; } 2334if ${ac_cv_prog_ac_ct_CC+:} false; then : 2335 $as_echo_n "(cached) " >&6 2336else 2337 if test -n "$ac_ct_CC"; then 2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2339else 2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2341for as_dir in $PATH 2342do 2343 IFS=$as_save_IFS 2344 test -z "$as_dir" && as_dir=. 2345 for ac_exec_ext in '' $ac_executable_extensions; do 2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2347 ac_cv_prog_ac_ct_CC="gcc" 2348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2349 break 2 2350 fi 2351done 2352 done 2353IFS=$as_save_IFS 2354 2355fi 2356fi 2357ac_ct_CC=$ac_cv_prog_ac_ct_CC 2358if test -n "$ac_ct_CC"; then 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2360$as_echo "$ac_ct_CC" >&6; } 2361else 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2363$as_echo "no" >&6; } 2364fi 2365 2366 if test "x$ac_ct_CC" = x; then 2367 CC="" 2368 else 2369 case $cross_compiling:$ac_tool_warned in 2370yes:) 2371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2373ac_tool_warned=yes ;; 2374esac 2375 CC=$ac_ct_CC 2376 fi 2377else 2378 CC="$ac_cv_prog_CC" 2379fi 2380 2381if test -z "$CC"; then 2382 if test -n "$ac_tool_prefix"; then 2383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2384set dummy ${ac_tool_prefix}cc; ac_word=$2 2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2386$as_echo_n "checking for $ac_word... " >&6; } 2387if ${ac_cv_prog_CC+:} false; then : 2388 $as_echo_n "(cached) " >&6 2389else 2390 if test -n "$CC"; then 2391 ac_cv_prog_CC="$CC" # Let the user override the test. 2392else 2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2394for as_dir in $PATH 2395do 2396 IFS=$as_save_IFS 2397 test -z "$as_dir" && as_dir=. 2398 for ac_exec_ext in '' $ac_executable_extensions; do 2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2400 ac_cv_prog_CC="${ac_tool_prefix}cc" 2401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2402 break 2 2403 fi 2404done 2405 done 2406IFS=$as_save_IFS 2407 2408fi 2409fi 2410CC=$ac_cv_prog_CC 2411if test -n "$CC"; then 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2413$as_echo "$CC" >&6; } 2414else 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2416$as_echo "no" >&6; } 2417fi 2418 2419 2420 fi 2421fi 2422if test -z "$CC"; then 2423 # Extract the first word of "cc", so it can be a program name with args. 2424set dummy cc; ac_word=$2 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2426$as_echo_n "checking for $ac_word... " >&6; } 2427if ${ac_cv_prog_CC+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429else 2430 if test -n "$CC"; then 2431 ac_cv_prog_CC="$CC" # Let the user override the test. 2432else 2433 ac_prog_rejected=no 2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2435for as_dir in $PATH 2436do 2437 IFS=$as_save_IFS 2438 test -z "$as_dir" && as_dir=. 2439 for ac_exec_ext in '' $ac_executable_extensions; do 2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2442 ac_prog_rejected=yes 2443 continue 2444 fi 2445 ac_cv_prog_CC="cc" 2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2447 break 2 2448 fi 2449done 2450 done 2451IFS=$as_save_IFS 2452 2453if test $ac_prog_rejected = yes; then 2454 # We found a bogon in the path, so make sure we never use it. 2455 set dummy $ac_cv_prog_CC 2456 shift 2457 if test $# != 0; then 2458 # We chose a different compiler from the bogus one. 2459 # However, it has the same basename, so the bogon will be chosen 2460 # first if we set CC to just the basename; use the full file name. 2461 shift 2462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2463 fi 2464fi 2465fi 2466fi 2467CC=$ac_cv_prog_CC 2468if test -n "$CC"; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2470$as_echo "$CC" >&6; } 2471else 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2473$as_echo "no" >&6; } 2474fi 2475 2476 2477fi 2478if test -z "$CC"; then 2479 if test -n "$ac_tool_prefix"; then 2480 for ac_prog in cl.exe 2481 do 2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2483set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2485$as_echo_n "checking for $ac_word... " >&6; } 2486if ${ac_cv_prog_CC+:} false; then : 2487 $as_echo_n "(cached) " >&6 2488else 2489 if test -n "$CC"; then 2490 ac_cv_prog_CC="$CC" # Let the user override the test. 2491else 2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493for as_dir in $PATH 2494do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 for ac_exec_ext in '' $ac_executable_extensions; do 2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2501 break 2 2502 fi 2503done 2504 done 2505IFS=$as_save_IFS 2506 2507fi 2508fi 2509CC=$ac_cv_prog_CC 2510if test -n "$CC"; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2512$as_echo "$CC" >&6; } 2513else 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2515$as_echo "no" >&6; } 2516fi 2517 2518 2519 test -n "$CC" && break 2520 done 2521fi 2522if test -z "$CC"; then 2523 ac_ct_CC=$CC 2524 for ac_prog in cl.exe 2525do 2526 # Extract the first word of "$ac_prog", so it can be a program name with args. 2527set dummy $ac_prog; ac_word=$2 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2529$as_echo_n "checking for $ac_word... " >&6; } 2530if ${ac_cv_prog_ac_ct_CC+:} false; then : 2531 $as_echo_n "(cached) " >&6 2532else 2533 if test -n "$ac_ct_CC"; then 2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2535else 2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2537for as_dir in $PATH 2538do 2539 IFS=$as_save_IFS 2540 test -z "$as_dir" && as_dir=. 2541 for ac_exec_ext in '' $ac_executable_extensions; do 2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2543 ac_cv_prog_ac_ct_CC="$ac_prog" 2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2545 break 2 2546 fi 2547done 2548 done 2549IFS=$as_save_IFS 2550 2551fi 2552fi 2553ac_ct_CC=$ac_cv_prog_ac_ct_CC 2554if test -n "$ac_ct_CC"; then 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2556$as_echo "$ac_ct_CC" >&6; } 2557else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2559$as_echo "no" >&6; } 2560fi 2561 2562 2563 test -n "$ac_ct_CC" && break 2564done 2565 2566 if test "x$ac_ct_CC" = x; then 2567 CC="" 2568 else 2569 case $cross_compiling:$ac_tool_warned in 2570yes:) 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2573ac_tool_warned=yes ;; 2574esac 2575 CC=$ac_ct_CC 2576 fi 2577fi 2578 2579fi 2580 2581 2582test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2584as_fn_error $? "no acceptable C compiler found in \$PATH 2585See \`config.log' for more details" "$LINENO" 5; } 2586 2587# Provide some information about the compiler. 2588$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2589set X $ac_compile 2590ac_compiler=$2 2591for ac_option in --version -v -V -qversion; do 2592 { { ac_try="$ac_compiler $ac_option >&5" 2593case "(($ac_try" in 2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2595 *) ac_try_echo=$ac_try;; 2596esac 2597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2598$as_echo "$ac_try_echo"; } >&5 2599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2600 ac_status=$? 2601 if test -s conftest.err; then 2602 sed '10a\ 2603... rest of stderr output deleted ... 2604 10q' conftest.err >conftest.er1 2605 cat conftest.er1 >&5 2606 fi 2607 rm -f conftest.er1 conftest.err 2608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2609 test $ac_status = 0; } 2610done 2611 2612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2613/* end confdefs.h. */ 2614 2615int 2616main () 2617{ 2618 2619 ; 2620 return 0; 2621} 2622_ACEOF 2623ac_clean_files_save=$ac_clean_files 2624ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2625# Try to create an executable without -o first, disregard a.out. 2626# It will help us diagnose broken compilers, and finding out an intuition 2627# of exeext. 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2629$as_echo_n "checking whether the C compiler works... " >&6; } 2630ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2631 2632# The possible output files: 2633ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2634 2635ac_rmfiles= 2636for ac_file in $ac_files 2637do 2638 case $ac_file in 2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2640 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2641 esac 2642done 2643rm -f $ac_rmfiles 2644 2645if { { ac_try="$ac_link_default" 2646case "(($ac_try" in 2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2648 *) ac_try_echo=$ac_try;; 2649esac 2650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2651$as_echo "$ac_try_echo"; } >&5 2652 (eval "$ac_link_default") 2>&5 2653 ac_status=$? 2654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2655 test $ac_status = 0; }; then : 2656 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2657# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2658# in a Makefile. We should not override ac_cv_exeext if it was cached, 2659# so that the user can short-circuit this test for compilers unknown to 2660# Autoconf. 2661for ac_file in $ac_files '' 2662do 2663 test -f "$ac_file" || continue 2664 case $ac_file in 2665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2666 ;; 2667 [ab].out ) 2668 # We found the default executable, but exeext='' is most 2669 # certainly right. 2670 break;; 2671 *.* ) 2672 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2673 then :; else 2674 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2675 fi 2676 # We set ac_cv_exeext here because the later test for it is not 2677 # safe: cross compilers may not add the suffix if given an `-o' 2678 # argument, so we may need to know it at that point already. 2679 # Even if this section looks crufty: it has the advantage of 2680 # actually working. 2681 break;; 2682 * ) 2683 break;; 2684 esac 2685done 2686test "$ac_cv_exeext" = no && ac_cv_exeext= 2687 2688else 2689 ac_file='' 2690fi 2691if test -z "$ac_file"; then : 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2693$as_echo "no" >&6; } 2694$as_echo "$as_me: failed program was:" >&5 2695sed 's/^/| /' conftest.$ac_ext >&5 2696 2697{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2699as_fn_error 77 "C compiler cannot create executables 2700See \`config.log' for more details" "$LINENO" 5; } 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2703$as_echo "yes" >&6; } 2704fi 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2706$as_echo_n "checking for C compiler default output file name... " >&6; } 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2708$as_echo "$ac_file" >&6; } 2709ac_exeext=$ac_cv_exeext 2710 2711rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2712ac_clean_files=$ac_clean_files_save 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2714$as_echo_n "checking for suffix of executables... " >&6; } 2715if { { ac_try="$ac_link" 2716case "(($ac_try" in 2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2718 *) ac_try_echo=$ac_try;; 2719esac 2720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2721$as_echo "$ac_try_echo"; } >&5 2722 (eval "$ac_link") 2>&5 2723 ac_status=$? 2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2725 test $ac_status = 0; }; then : 2726 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2727# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2728# work properly (i.e., refer to `conftest.exe'), while it won't with 2729# `rm'. 2730for ac_file in conftest.exe conftest conftest.*; do 2731 test -f "$ac_file" || continue 2732 case $ac_file in 2733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2735 break;; 2736 * ) break;; 2737 esac 2738done 2739else 2740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2742as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2743See \`config.log' for more details" "$LINENO" 5; } 2744fi 2745rm -f conftest conftest$ac_cv_exeext 2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2747$as_echo "$ac_cv_exeext" >&6; } 2748 2749rm -f conftest.$ac_ext 2750EXEEXT=$ac_cv_exeext 2751ac_exeext=$EXEEXT 2752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2753/* end confdefs.h. */ 2754#include <stdio.h> 2755int 2756main () 2757{ 2758FILE *f = fopen ("conftest.out", "w"); 2759 return ferror (f) || fclose (f) != 0; 2760 2761 ; 2762 return 0; 2763} 2764_ACEOF 2765ac_clean_files="$ac_clean_files conftest.out" 2766# Check that the compiler produces executables we can run. If not, either 2767# the compiler is broken, or we cross compile. 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2769$as_echo_n "checking whether we are cross compiling... " >&6; } 2770if test "$cross_compiling" != yes; then 2771 { { ac_try="$ac_link" 2772case "(($ac_try" in 2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2774 *) ac_try_echo=$ac_try;; 2775esac 2776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2777$as_echo "$ac_try_echo"; } >&5 2778 (eval "$ac_link") 2>&5 2779 ac_status=$? 2780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2781 test $ac_status = 0; } 2782 if { ac_try='./conftest$ac_cv_exeext' 2783 { { case "(($ac_try" in 2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2785 *) ac_try_echo=$ac_try;; 2786esac 2787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2788$as_echo "$ac_try_echo"; } >&5 2789 (eval "$ac_try") 2>&5 2790 ac_status=$? 2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2792 test $ac_status = 0; }; }; then 2793 cross_compiling=no 2794 else 2795 if test "$cross_compiling" = maybe; then 2796 cross_compiling=yes 2797 else 2798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2800as_fn_error $? "cannot run C compiled programs. 2801If you meant to cross compile, use \`--host'. 2802See \`config.log' for more details" "$LINENO" 5; } 2803 fi 2804 fi 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2807$as_echo "$cross_compiling" >&6; } 2808 2809rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2810ac_clean_files=$ac_clean_files_save 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2812$as_echo_n "checking for suffix of object files... " >&6; } 2813if ${ac_cv_objext+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2817/* end confdefs.h. */ 2818 2819int 2820main () 2821{ 2822 2823 ; 2824 return 0; 2825} 2826_ACEOF 2827rm -f conftest.o conftest.obj 2828if { { ac_try="$ac_compile" 2829case "(($ac_try" in 2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2831 *) ac_try_echo=$ac_try;; 2832esac 2833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2834$as_echo "$ac_try_echo"; } >&5 2835 (eval "$ac_compile") 2>&5 2836 ac_status=$? 2837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2838 test $ac_status = 0; }; then : 2839 for ac_file in conftest.o conftest.obj conftest.*; do 2840 test -f "$ac_file" || continue; 2841 case $ac_file in 2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2844 break;; 2845 esac 2846done 2847else 2848 $as_echo "$as_me: failed program was:" >&5 2849sed 's/^/| /' conftest.$ac_ext >&5 2850 2851{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2853as_fn_error $? "cannot compute suffix of object files: cannot compile 2854See \`config.log' for more details" "$LINENO" 5; } 2855fi 2856rm -f conftest.$ac_cv_objext conftest.$ac_ext 2857fi 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2859$as_echo "$ac_cv_objext" >&6; } 2860OBJEXT=$ac_cv_objext 2861ac_objext=$OBJEXT 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2863$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2864if ${ac_cv_c_compiler_gnu+:} false; then : 2865 $as_echo_n "(cached) " >&6 2866else 2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2868/* end confdefs.h. */ 2869 2870int 2871main () 2872{ 2873#ifndef __GNUC__ 2874 choke me 2875#endif 2876 2877 ; 2878 return 0; 2879} 2880_ACEOF 2881if ac_fn_c_try_compile "$LINENO"; then : 2882 ac_compiler_gnu=yes 2883else 2884 ac_compiler_gnu=no 2885fi 2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2887ac_cv_c_compiler_gnu=$ac_compiler_gnu 2888 2889fi 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2891$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2892if test $ac_compiler_gnu = yes; then 2893 GCC=yes 2894else 2895 GCC= 2896fi 2897ac_test_CFLAGS=${CFLAGS+set} 2898ac_save_CFLAGS=$CFLAGS 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2900$as_echo_n "checking whether $CC accepts -g... " >&6; } 2901if ${ac_cv_prog_cc_g+:} false; then : 2902 $as_echo_n "(cached) " >&6 2903else 2904 ac_save_c_werror_flag=$ac_c_werror_flag 2905 ac_c_werror_flag=yes 2906 ac_cv_prog_cc_g=no 2907 CFLAGS="-g" 2908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2909/* end confdefs.h. */ 2910 2911int 2912main () 2913{ 2914 2915 ; 2916 return 0; 2917} 2918_ACEOF 2919if ac_fn_c_try_compile "$LINENO"; then : 2920 ac_cv_prog_cc_g=yes 2921else 2922 CFLAGS="" 2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2924/* end confdefs.h. */ 2925 2926int 2927main () 2928{ 2929 2930 ; 2931 return 0; 2932} 2933_ACEOF 2934if ac_fn_c_try_compile "$LINENO"; then : 2935 2936else 2937 ac_c_werror_flag=$ac_save_c_werror_flag 2938 CFLAGS="-g" 2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2940/* end confdefs.h. */ 2941 2942int 2943main () 2944{ 2945 2946 ; 2947 return 0; 2948} 2949_ACEOF 2950if ac_fn_c_try_compile "$LINENO"; then : 2951 ac_cv_prog_cc_g=yes 2952fi 2953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2954fi 2955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2956fi 2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2958 ac_c_werror_flag=$ac_save_c_werror_flag 2959fi 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2961$as_echo "$ac_cv_prog_cc_g" >&6; } 2962if test "$ac_test_CFLAGS" = set; then 2963 CFLAGS=$ac_save_CFLAGS 2964elif test $ac_cv_prog_cc_g = yes; then 2965 if test "$GCC" = yes; then 2966 CFLAGS="-g -O2" 2967 else 2968 CFLAGS="-g" 2969 fi 2970else 2971 if test "$GCC" = yes; then 2972 CFLAGS="-O2" 2973 else 2974 CFLAGS= 2975 fi 2976fi 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2978$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2979if ${ac_cv_prog_cc_c89+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 ac_cv_prog_cc_c89=no 2983ac_save_CC=$CC 2984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2985/* end confdefs.h. */ 2986#include <stdarg.h> 2987#include <stdio.h> 2988#include <sys/types.h> 2989#include <sys/stat.h> 2990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2991struct buf { int x; }; 2992FILE * (*rcsopen) (struct buf *, struct stat *, int); 2993static char *e (p, i) 2994 char **p; 2995 int i; 2996{ 2997 return p[i]; 2998} 2999static char *f (char * (*g) (char **, int), char **p, ...) 3000{ 3001 char *s; 3002 va_list v; 3003 va_start (v,p); 3004 s = g (p, va_arg (v,int)); 3005 va_end (v); 3006 return s; 3007} 3008 3009/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3010 function prototypes and stuff, but not '\xHH' hex character constants. 3011 These don't provoke an error unfortunately, instead are silently treated 3012 as 'x'. The following induces an error, until -std is added to get 3013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3014 array size at least. It's necessary to write '\x00'==0 to get something 3015 that's true only with -std. */ 3016int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3017 3018/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3019 inside strings and character constants. */ 3020#define FOO(x) 'x' 3021int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3022 3023int test (int i, double x); 3024struct s1 {int (*f) (int a);}; 3025struct s2 {int (*f) (double a);}; 3026int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3027int argc; 3028char **argv; 3029int 3030main () 3031{ 3032return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3033 ; 3034 return 0; 3035} 3036_ACEOF 3037for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3039do 3040 CC="$ac_save_CC $ac_arg" 3041 if ac_fn_c_try_compile "$LINENO"; then : 3042 ac_cv_prog_cc_c89=$ac_arg 3043fi 3044rm -f core conftest.err conftest.$ac_objext 3045 test "x$ac_cv_prog_cc_c89" != "xno" && break 3046done 3047rm -f conftest.$ac_ext 3048CC=$ac_save_CC 3049 3050fi 3051# AC_CACHE_VAL 3052case "x$ac_cv_prog_cc_c89" in 3053 x) 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3055$as_echo "none needed" >&6; } ;; 3056 xno) 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3058$as_echo "unsupported" >&6; } ;; 3059 *) 3060 CC="$CC $ac_cv_prog_cc_c89" 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3062$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3063esac 3064if test "x$ac_cv_prog_cc_c89" != xno; then : 3065 3066fi 3067 3068ac_ext=c 3069ac_cpp='$CPP $CPPFLAGS' 3070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3072ac_compiler_gnu=$ac_cv_c_compiler_gnu 3073 3074 3075ac_ext=c 3076ac_cpp='$CPP $CPPFLAGS' 3077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3079ac_compiler_gnu=$ac_cv_c_compiler_gnu 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3081$as_echo_n "checking how to run the C preprocessor... " >&6; } 3082# On Suns, sometimes $CPP names a directory. 3083if test -n "$CPP" && test -d "$CPP"; then 3084 CPP= 3085fi 3086if test -z "$CPP"; then 3087 if ${ac_cv_prog_CPP+:} false; then : 3088 $as_echo_n "(cached) " >&6 3089else 3090 # Double quotes because CPP needs to be expanded 3091 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3092 do 3093 ac_preproc_ok=false 3094for ac_c_preproc_warn_flag in '' yes 3095do 3096 # Use a header file that comes with gcc, so configuring glibc 3097 # with a fresh cross-compiler works. 3098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3099 # <limits.h> exists even on freestanding compilers. 3100 # On the NeXT, cc -E runs the code through the compiler's parser, 3101 # not just through cpp. "Syntax error" is here to catch this case. 3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3103/* end confdefs.h. */ 3104#ifdef __STDC__ 3105# include <limits.h> 3106#else 3107# include <assert.h> 3108#endif 3109 Syntax error 3110_ACEOF 3111if ac_fn_c_try_cpp "$LINENO"; then : 3112 3113else 3114 # Broken: fails on valid input. 3115continue 3116fi 3117rm -f conftest.err conftest.i conftest.$ac_ext 3118 3119 # OK, works on sane cases. Now check whether nonexistent headers 3120 # can be detected and how. 3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3122/* end confdefs.h. */ 3123#include <ac_nonexistent.h> 3124_ACEOF 3125if ac_fn_c_try_cpp "$LINENO"; then : 3126 # Broken: success on invalid input. 3127continue 3128else 3129 # Passes both tests. 3130ac_preproc_ok=: 3131break 3132fi 3133rm -f conftest.err conftest.i conftest.$ac_ext 3134 3135done 3136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3137rm -f conftest.i conftest.err conftest.$ac_ext 3138if $ac_preproc_ok; then : 3139 break 3140fi 3141 3142 done 3143 ac_cv_prog_CPP=$CPP 3144 3145fi 3146 CPP=$ac_cv_prog_CPP 3147else 3148 ac_cv_prog_CPP=$CPP 3149fi 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3151$as_echo "$CPP" >&6; } 3152ac_preproc_ok=false 3153for ac_c_preproc_warn_flag in '' yes 3154do 3155 # Use a header file that comes with gcc, so configuring glibc 3156 # with a fresh cross-compiler works. 3157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3158 # <limits.h> exists even on freestanding compilers. 3159 # On the NeXT, cc -E runs the code through the compiler's parser, 3160 # not just through cpp. "Syntax error" is here to catch this case. 3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3162/* end confdefs.h. */ 3163#ifdef __STDC__ 3164# include <limits.h> 3165#else 3166# include <assert.h> 3167#endif 3168 Syntax error 3169_ACEOF 3170if ac_fn_c_try_cpp "$LINENO"; then : 3171 3172else 3173 # Broken: fails on valid input. 3174continue 3175fi 3176rm -f conftest.err conftest.i conftest.$ac_ext 3177 3178 # OK, works on sane cases. Now check whether nonexistent headers 3179 # can be detected and how. 3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3181/* end confdefs.h. */ 3182#include <ac_nonexistent.h> 3183_ACEOF 3184if ac_fn_c_try_cpp "$LINENO"; then : 3185 # Broken: success on invalid input. 3186continue 3187else 3188 # Passes both tests. 3189ac_preproc_ok=: 3190break 3191fi 3192rm -f conftest.err conftest.i conftest.$ac_ext 3193 3194done 3195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3196rm -f conftest.i conftest.err conftest.$ac_ext 3197if $ac_preproc_ok; then : 3198 3199else 3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3202as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3203See \`config.log' for more details" "$LINENO" 5; } 3204fi 3205 3206ac_ext=c 3207ac_cpp='$CPP $CPPFLAGS' 3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3210ac_compiler_gnu=$ac_cv_c_compiler_gnu 3211 3212 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3214$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3215if ${ac_cv_path_GREP+:} false; then : 3216 $as_echo_n "(cached) " >&6 3217else 3218 if test -z "$GREP"; then 3219 ac_path_GREP_found=false 3220 # Loop through the user's path and test for each of PROGNAME-LIST 3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3223do 3224 IFS=$as_save_IFS 3225 test -z "$as_dir" && as_dir=. 3226 for ac_prog in grep ggrep; do 3227 for ac_exec_ext in '' $ac_executable_extensions; do 3228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3229 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3230# Check for GNU ac_path_GREP and select it if it is found. 3231 # Check for GNU $ac_path_GREP 3232case `"$ac_path_GREP" --version 2>&1` in 3233*GNU*) 3234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3235*) 3236 ac_count=0 3237 $as_echo_n 0123456789 >"conftest.in" 3238 while : 3239 do 3240 cat "conftest.in" "conftest.in" >"conftest.tmp" 3241 mv "conftest.tmp" "conftest.in" 3242 cp "conftest.in" "conftest.nl" 3243 $as_echo 'GREP' >> "conftest.nl" 3244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3246 as_fn_arith $ac_count + 1 && ac_count=$as_val 3247 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3248 # Best one so far, save it but keep looking for a better one 3249 ac_cv_path_GREP="$ac_path_GREP" 3250 ac_path_GREP_max=$ac_count 3251 fi 3252 # 10*(2^10) chars as input seems more than enough 3253 test $ac_count -gt 10 && break 3254 done 3255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3256esac 3257 3258 $ac_path_GREP_found && break 3 3259 done 3260 done 3261 done 3262IFS=$as_save_IFS 3263 if test -z "$ac_cv_path_GREP"; then 3264 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3265 fi 3266else 3267 ac_cv_path_GREP=$GREP 3268fi 3269 3270fi 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3272$as_echo "$ac_cv_path_GREP" >&6; } 3273 GREP="$ac_cv_path_GREP" 3274 3275 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3277$as_echo_n "checking for egrep... " >&6; } 3278if ${ac_cv_path_EGREP+:} false; then : 3279 $as_echo_n "(cached) " >&6 3280else 3281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3282 then ac_cv_path_EGREP="$GREP -E" 3283 else 3284 if test -z "$EGREP"; then 3285 ac_path_EGREP_found=false 3286 # Loop through the user's path and test for each of PROGNAME-LIST 3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3289do 3290 IFS=$as_save_IFS 3291 test -z "$as_dir" && as_dir=. 3292 for ac_prog in egrep; do 3293 for ac_exec_ext in '' $ac_executable_extensions; do 3294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3295 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3296# Check for GNU ac_path_EGREP and select it if it is found. 3297 # Check for GNU $ac_path_EGREP 3298case `"$ac_path_EGREP" --version 2>&1` in 3299*GNU*) 3300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3301*) 3302 ac_count=0 3303 $as_echo_n 0123456789 >"conftest.in" 3304 while : 3305 do 3306 cat "conftest.in" "conftest.in" >"conftest.tmp" 3307 mv "conftest.tmp" "conftest.in" 3308 cp "conftest.in" "conftest.nl" 3309 $as_echo 'EGREP' >> "conftest.nl" 3310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3312 as_fn_arith $ac_count + 1 && ac_count=$as_val 3313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3314 # Best one so far, save it but keep looking for a better one 3315 ac_cv_path_EGREP="$ac_path_EGREP" 3316 ac_path_EGREP_max=$ac_count 3317 fi 3318 # 10*(2^10) chars as input seems more than enough 3319 test $ac_count -gt 10 && break 3320 done 3321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3322esac 3323 3324 $ac_path_EGREP_found && break 3 3325 done 3326 done 3327 done 3328IFS=$as_save_IFS 3329 if test -z "$ac_cv_path_EGREP"; then 3330 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3331 fi 3332else 3333 ac_cv_path_EGREP=$EGREP 3334fi 3335 3336 fi 3337fi 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3339$as_echo "$ac_cv_path_EGREP" >&6; } 3340 EGREP="$ac_cv_path_EGREP" 3341 3342 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3344$as_echo_n "checking for ANSI C header files... " >&6; } 3345if ${ac_cv_header_stdc+:} false; then : 3346 $as_echo_n "(cached) " >&6 3347else 3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3349/* end confdefs.h. */ 3350#include <stdlib.h> 3351#include <stdarg.h> 3352#include <string.h> 3353#include <float.h> 3354 3355int 3356main () 3357{ 3358 3359 ; 3360 return 0; 3361} 3362_ACEOF 3363if ac_fn_c_try_compile "$LINENO"; then : 3364 ac_cv_header_stdc=yes 3365else 3366 ac_cv_header_stdc=no 3367fi 3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3369 3370if test $ac_cv_header_stdc = yes; then 3371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373/* end confdefs.h. */ 3374#include <string.h> 3375 3376_ACEOF 3377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3378 $EGREP "memchr" >/dev/null 2>&1; then : 3379 3380else 3381 ac_cv_header_stdc=no 3382fi 3383rm -f conftest* 3384 3385fi 3386 3387if test $ac_cv_header_stdc = yes; then 3388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391#include <stdlib.h> 3392 3393_ACEOF 3394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3395 $EGREP "free" >/dev/null 2>&1; then : 3396 3397else 3398 ac_cv_header_stdc=no 3399fi 3400rm -f conftest* 3401 3402fi 3403 3404if test $ac_cv_header_stdc = yes; then 3405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3406 if test "$cross_compiling" = yes; then : 3407 : 3408else 3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3410/* end confdefs.h. */ 3411#include <ctype.h> 3412#include <stdlib.h> 3413#if ((' ' & 0x0FF) == 0x020) 3414# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3415# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3416#else 3417# define ISLOWER(c) \ 3418 (('a' <= (c) && (c) <= 'i') \ 3419 || ('j' <= (c) && (c) <= 'r') \ 3420 || ('s' <= (c) && (c) <= 'z')) 3421# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3422#endif 3423 3424#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3425int 3426main () 3427{ 3428 int i; 3429 for (i = 0; i < 256; i++) 3430 if (XOR (islower (i), ISLOWER (i)) 3431 || toupper (i) != TOUPPER (i)) 3432 return 2; 3433 return 0; 3434} 3435_ACEOF 3436if ac_fn_c_try_run "$LINENO"; then : 3437 3438else 3439 ac_cv_header_stdc=no 3440fi 3441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3442 conftest.$ac_objext conftest.beam conftest.$ac_ext 3443fi 3444 3445fi 3446fi 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3448$as_echo "$ac_cv_header_stdc" >&6; } 3449if test $ac_cv_header_stdc = yes; then 3450 3451$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3452 3453fi 3454 3455# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3456for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3457 inttypes.h stdint.h unistd.h 3458do : 3459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3460ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3461" 3462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3463 cat >>confdefs.h <<_ACEOF 3464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3465_ACEOF 3466 3467fi 3468 3469done 3470 3471 3472 3473 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3474if test "x$ac_cv_header_minix_config_h" = xyes; then : 3475 MINIX=yes 3476else 3477 MINIX= 3478fi 3479 3480 3481 if test "$MINIX" = yes; then 3482 3483$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3484 3485 3486$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3487 3488 3489$as_echo "#define _MINIX 1" >>confdefs.h 3490 3491 fi 3492 3493 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3495$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3496if ${ac_cv_safe_to_define___extensions__+:} false; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3500/* end confdefs.h. */ 3501 3502# define __EXTENSIONS__ 1 3503 $ac_includes_default 3504int 3505main () 3506{ 3507 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512if ac_fn_c_try_compile "$LINENO"; then : 3513 ac_cv_safe_to_define___extensions__=yes 3514else 3515 ac_cv_safe_to_define___extensions__=no 3516fi 3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3518fi 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3520$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3521 test $ac_cv_safe_to_define___extensions__ = yes && 3522 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3523 3524 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3525 3526 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3527 3528 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3529 3530 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3531 3532 3533 3534 3535case "$prefix" in 3536 NONE) 3537 case "$sysconfdir" in 3538 '${prefix}/etc') 3539 sysconfdir=/etc 3540 ;; 3541 esac 3542 case "$localstatedir" in 3543 '${prefix}/var') 3544 localstatedir=/var 3545 ;; 3546 esac 3547 ;; 3548esac 3549 3550# 3551# Determine configuration directory 3552# 3553configdir=$sysconfdir/nsd 3554 3555# Check whether --with-configdir was given. 3556if test "${with_configdir+set}" = set; then : 3557 withval=$with_configdir; configdir=$withval 3558fi 3559 3560 3561 3562# 3563# Determine configuration file 3564nsd_conf_file=${configdir}/nsd.conf 3565 3566# Check whether --with-nsd_conf_file was given. 3567if test "${with_nsd_conf_file+set}" = set; then : 3568 withval=$with_nsd_conf_file; nsd_conf_file=$withval 3569fi 3570 3571 3572# the eval is to evaluate shell expansion twice, once 3573# for $nsd_conf_file and once for the ${prefix} within it. 3574 3575cat >>confdefs.h <<_ACEOF 3576#define CONFIGFILE "`eval echo $nsd_conf_file`" 3577_ACEOF 3578 3579 3580# 3581# Determine start and kill priorities 3582start_priority=45 3583 3584# Check whether --with-start_priority was given. 3585if test "${with_start_priority+set}" = set; then : 3586 withval=$with_start_priority; start_priority=$withval 3587fi 3588 3589 3590 3591kill_priority=74 3592 3593# Check whether --with-kill_priority was given. 3594if test "${with_kill_priority+set}" = set; then : 3595 withval=$with_kill_priority; kill_priority=$withval 3596fi 3597 3598 3599 3600# 3601# Default logfile 3602# 3603logfile=${localstatedir}/log/nsd.log 3604 3605 3606# 3607# Database directory 3608# 3609dbdir=${localstatedir}/db/nsd 3610 3611# 3612# Determine the pidfile location. Check if /var/run exists, if so set pidfile 3613# to /var/run/nsd.pid by default 3614# 3615if test -d ${localstatedir}/run; then 3616 pidfile=${localstatedir}/run/nsd.pid 3617else 3618 pidfile=${dbdir}/nsd.pid 3619fi 3620 3621# Check whether --with-pidfile was given. 3622if test "${with_pidfile+set}" = set; then : 3623 withval=$with_pidfile; pidfile=$withval 3624fi 3625 3626 3627 3628cat >>confdefs.h <<_ACEOF 3629#define PIDFILE "`eval echo $pidfile`" 3630_ACEOF 3631 3632 3633# 3634# Determine location of nsd.db 3635# 3636dbfile=${dbdir}/nsd.db 3637 3638# Check whether --with-dbfile was given. 3639if test "${with_dbfile+set}" = set; then : 3640 withval=$with_dbfile; dbfile=$withval 3641fi 3642 3643 3644 3645cat >>confdefs.h <<_ACEOF 3646#define DBFILE "`eval echo $dbfile`" 3647_ACEOF 3648 3649 3650dbdir=`dirname $dbfile` 3651 3652 3653piddir=`dirname $pidfile` 3654 3655 3656# 3657# Determine the default directory for the zone files 3658# 3659zonesdir=$configdir 3660 3661# Check whether --with-zonesdir was given. 3662if test "${with_zonesdir+set}" = set; then : 3663 withval=$with_zonesdir; zonesdir=$withval 3664fi 3665 3666 3667 3668cat >>confdefs.h <<_ACEOF 3669#define ZONESDIR "`eval echo $zonesdir`" 3670_ACEOF 3671 3672 3673# default diff file location. 3674difffile=${dbdir}/ixfr.db 3675 3676# Check whether --with-difffile was given. 3677if test "${with_difffile+set}" = set; then : 3678 withval=$with_difffile; difffile=$withval 3679fi 3680 3681 3682cat >>confdefs.h <<_ACEOF 3683#define DIFFFILE "`eval echo $difffile`" 3684_ACEOF 3685 3686 3687 3688# default xfrd file location. 3689xfrdfile=${dbdir}/xfrd.state 3690 3691# Check whether --with-xfrdfile was given. 3692if test "${with_xfrdfile+set}" = set; then : 3693 withval=$with_xfrdfile; xfrdfile=$withval 3694fi 3695 3696 3697cat >>confdefs.h <<_ACEOF 3698#define XFRDFILE "`eval echo $xfrdfile`" 3699_ACEOF 3700 3701 3702 3703# 3704# Determine default chroot directory 3705# 3706 3707# Check whether --with-chroot was given. 3708if test "${with_chroot+set}" = set; then : 3709 withval=$with_chroot; 3710 chrootdir=$withval 3711 3712cat >>confdefs.h <<_ACEOF 3713#define CHROOTDIR "`eval echo $chrootdir`" 3714_ACEOF 3715 3716 3717fi 3718 3719 3720# 3721# Determine the user name to drop privileges to 3722# 3723user=nsd 3724 3725# Check whether --with-user was given. 3726if test "${with_user+set}" = set; then : 3727 withval=$with_user; user=$withval 3728fi 3729 3730 3731 3732cat >>confdefs.h <<_ACEOF 3733#define USER "$user" 3734_ACEOF 3735 3736 3737# Checks for programs. 3738for ac_prog in gawk mawk nawk awk 3739do 3740 # Extract the first word of "$ac_prog", so it can be a program name with args. 3741set dummy $ac_prog; ac_word=$2 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3743$as_echo_n "checking for $ac_word... " >&6; } 3744if ${ac_cv_prog_AWK+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 if test -n "$AWK"; then 3748 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3749else 3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH 3752do 3753 IFS=$as_save_IFS 3754 test -z "$as_dir" && as_dir=. 3755 for ac_exec_ext in '' $ac_executable_extensions; do 3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3757 ac_cv_prog_AWK="$ac_prog" 3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3759 break 2 3760 fi 3761done 3762 done 3763IFS=$as_save_IFS 3764 3765fi 3766fi 3767AWK=$ac_cv_prog_AWK 3768if test -n "$AWK"; then 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3770$as_echo "$AWK" >&6; } 3771else 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3773$as_echo "no" >&6; } 3774fi 3775 3776 3777 test -n "$AWK" && break 3778done 3779 3780ac_ext=c 3781ac_cpp='$CPP $CPPFLAGS' 3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3784ac_compiler_gnu=$ac_cv_c_compiler_gnu 3785if test -n "$ac_tool_prefix"; then 3786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3787set dummy ${ac_tool_prefix}gcc; ac_word=$2 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3789$as_echo_n "checking for $ac_word... " >&6; } 3790if ${ac_cv_prog_CC+:} false; then : 3791 $as_echo_n "(cached) " >&6 3792else 3793 if test -n "$CC"; then 3794 ac_cv_prog_CC="$CC" # Let the user override the test. 3795else 3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3797for as_dir in $PATH 3798do 3799 IFS=$as_save_IFS 3800 test -z "$as_dir" && as_dir=. 3801 for ac_exec_ext in '' $ac_executable_extensions; do 3802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3803 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3805 break 2 3806 fi 3807done 3808 done 3809IFS=$as_save_IFS 3810 3811fi 3812fi 3813CC=$ac_cv_prog_CC 3814if test -n "$CC"; then 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3816$as_echo "$CC" >&6; } 3817else 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3819$as_echo "no" >&6; } 3820fi 3821 3822 3823fi 3824if test -z "$ac_cv_prog_CC"; then 3825 ac_ct_CC=$CC 3826 # Extract the first word of "gcc", so it can be a program name with args. 3827set dummy gcc; ac_word=$2 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3829$as_echo_n "checking for $ac_word... " >&6; } 3830if ${ac_cv_prog_ac_ct_CC+:} false; then : 3831 $as_echo_n "(cached) " >&6 3832else 3833 if test -n "$ac_ct_CC"; then 3834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3835else 3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3837for as_dir in $PATH 3838do 3839 IFS=$as_save_IFS 3840 test -z "$as_dir" && as_dir=. 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3843 ac_cv_prog_ac_ct_CC="gcc" 3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3845 break 2 3846 fi 3847done 3848 done 3849IFS=$as_save_IFS 3850 3851fi 3852fi 3853ac_ct_CC=$ac_cv_prog_ac_ct_CC 3854if test -n "$ac_ct_CC"; then 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3856$as_echo "$ac_ct_CC" >&6; } 3857else 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859$as_echo "no" >&6; } 3860fi 3861 3862 if test "x$ac_ct_CC" = x; then 3863 CC="" 3864 else 3865 case $cross_compiling:$ac_tool_warned in 3866yes:) 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3869ac_tool_warned=yes ;; 3870esac 3871 CC=$ac_ct_CC 3872 fi 3873else 3874 CC="$ac_cv_prog_CC" 3875fi 3876 3877if test -z "$CC"; then 3878 if test -n "$ac_tool_prefix"; then 3879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3880set dummy ${ac_tool_prefix}cc; ac_word=$2 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882$as_echo_n "checking for $ac_word... " >&6; } 3883if ${ac_cv_prog_CC+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 if test -n "$CC"; then 3887 ac_cv_prog_CC="$CC" # Let the user override the test. 3888else 3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3890for as_dir in $PATH 3891do 3892 IFS=$as_save_IFS 3893 test -z "$as_dir" && as_dir=. 3894 for ac_exec_ext in '' $ac_executable_extensions; do 3895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3896 ac_cv_prog_CC="${ac_tool_prefix}cc" 3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3898 break 2 3899 fi 3900done 3901 done 3902IFS=$as_save_IFS 3903 3904fi 3905fi 3906CC=$ac_cv_prog_CC 3907if test -n "$CC"; then 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3909$as_echo "$CC" >&6; } 3910else 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3912$as_echo "no" >&6; } 3913fi 3914 3915 3916 fi 3917fi 3918if test -z "$CC"; then 3919 # Extract the first word of "cc", so it can be a program name with args. 3920set dummy cc; ac_word=$2 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3922$as_echo_n "checking for $ac_word... " >&6; } 3923if ${ac_cv_prog_CC+:} false; then : 3924 $as_echo_n "(cached) " >&6 3925else 3926 if test -n "$CC"; then 3927 ac_cv_prog_CC="$CC" # Let the user override the test. 3928else 3929 ac_prog_rejected=no 3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3931for as_dir in $PATH 3932do 3933 IFS=$as_save_IFS 3934 test -z "$as_dir" && as_dir=. 3935 for ac_exec_ext in '' $ac_executable_extensions; do 3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3938 ac_prog_rejected=yes 3939 continue 3940 fi 3941 ac_cv_prog_CC="cc" 3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3943 break 2 3944 fi 3945done 3946 done 3947IFS=$as_save_IFS 3948 3949if test $ac_prog_rejected = yes; then 3950 # We found a bogon in the path, so make sure we never use it. 3951 set dummy $ac_cv_prog_CC 3952 shift 3953 if test $# != 0; then 3954 # We chose a different compiler from the bogus one. 3955 # However, it has the same basename, so the bogon will be chosen 3956 # first if we set CC to just the basename; use the full file name. 3957 shift 3958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3959 fi 3960fi 3961fi 3962fi 3963CC=$ac_cv_prog_CC 3964if test -n "$CC"; then 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3966$as_echo "$CC" >&6; } 3967else 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3969$as_echo "no" >&6; } 3970fi 3971 3972 3973fi 3974if test -z "$CC"; then 3975 if test -n "$ac_tool_prefix"; then 3976 for ac_prog in cl.exe 3977 do 3978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3979set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3981$as_echo_n "checking for $ac_word... " >&6; } 3982if ${ac_cv_prog_CC+:} false; then : 3983 $as_echo_n "(cached) " >&6 3984else 3985 if test -n "$CC"; then 3986 ac_cv_prog_CC="$CC" # Let the user override the test. 3987else 3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3989for as_dir in $PATH 3990do 3991 IFS=$as_save_IFS 3992 test -z "$as_dir" && as_dir=. 3993 for ac_exec_ext in '' $ac_executable_extensions; do 3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3997 break 2 3998 fi 3999done 4000 done 4001IFS=$as_save_IFS 4002 4003fi 4004fi 4005CC=$ac_cv_prog_CC 4006if test -n "$CC"; then 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4008$as_echo "$CC" >&6; } 4009else 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4011$as_echo "no" >&6; } 4012fi 4013 4014 4015 test -n "$CC" && break 4016 done 4017fi 4018if test -z "$CC"; then 4019 ac_ct_CC=$CC 4020 for ac_prog in cl.exe 4021do 4022 # Extract the first word of "$ac_prog", so it can be a program name with args. 4023set dummy $ac_prog; ac_word=$2 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4025$as_echo_n "checking for $ac_word... " >&6; } 4026if ${ac_cv_prog_ac_ct_CC+:} false; then : 4027 $as_echo_n "(cached) " >&6 4028else 4029 if test -n "$ac_ct_CC"; then 4030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4031else 4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4033for as_dir in $PATH 4034do 4035 IFS=$as_save_IFS 4036 test -z "$as_dir" && as_dir=. 4037 for ac_exec_ext in '' $ac_executable_extensions; do 4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4039 ac_cv_prog_ac_ct_CC="$ac_prog" 4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4041 break 2 4042 fi 4043done 4044 done 4045IFS=$as_save_IFS 4046 4047fi 4048fi 4049ac_ct_CC=$ac_cv_prog_ac_ct_CC 4050if test -n "$ac_ct_CC"; then 4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4052$as_echo "$ac_ct_CC" >&6; } 4053else 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4055$as_echo "no" >&6; } 4056fi 4057 4058 4059 test -n "$ac_ct_CC" && break 4060done 4061 4062 if test "x$ac_ct_CC" = x; then 4063 CC="" 4064 else 4065 case $cross_compiling:$ac_tool_warned in 4066yes:) 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4069ac_tool_warned=yes ;; 4070esac 4071 CC=$ac_ct_CC 4072 fi 4073fi 4074 4075fi 4076 4077 4078test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4080as_fn_error $? "no acceptable C compiler found in \$PATH 4081See \`config.log' for more details" "$LINENO" 5; } 4082 4083# Provide some information about the compiler. 4084$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4085set X $ac_compile 4086ac_compiler=$2 4087for ac_option in --version -v -V -qversion; do 4088 { { ac_try="$ac_compiler $ac_option >&5" 4089case "(($ac_try" in 4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4091 *) ac_try_echo=$ac_try;; 4092esac 4093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4094$as_echo "$ac_try_echo"; } >&5 4095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4096 ac_status=$? 4097 if test -s conftest.err; then 4098 sed '10a\ 4099... rest of stderr output deleted ... 4100 10q' conftest.err >conftest.er1 4101 cat conftest.er1 >&5 4102 fi 4103 rm -f conftest.er1 conftest.err 4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4105 test $ac_status = 0; } 4106done 4107 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4109$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4110if ${ac_cv_c_compiler_gnu+:} false; then : 4111 $as_echo_n "(cached) " >&6 4112else 4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115 4116int 4117main () 4118{ 4119#ifndef __GNUC__ 4120 choke me 4121#endif 4122 4123 ; 4124 return 0; 4125} 4126_ACEOF 4127if ac_fn_c_try_compile "$LINENO"; then : 4128 ac_compiler_gnu=yes 4129else 4130 ac_compiler_gnu=no 4131fi 4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4133ac_cv_c_compiler_gnu=$ac_compiler_gnu 4134 4135fi 4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4137$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4138if test $ac_compiler_gnu = yes; then 4139 GCC=yes 4140else 4141 GCC= 4142fi 4143ac_test_CFLAGS=${CFLAGS+set} 4144ac_save_CFLAGS=$CFLAGS 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4146$as_echo_n "checking whether $CC accepts -g... " >&6; } 4147if ${ac_cv_prog_cc_g+:} false; then : 4148 $as_echo_n "(cached) " >&6 4149else 4150 ac_save_c_werror_flag=$ac_c_werror_flag 4151 ac_c_werror_flag=yes 4152 ac_cv_prog_cc_g=no 4153 CFLAGS="-g" 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156 4157int 4158main () 4159{ 4160 4161 ; 4162 return 0; 4163} 4164_ACEOF 4165if ac_fn_c_try_compile "$LINENO"; then : 4166 ac_cv_prog_cc_g=yes 4167else 4168 CFLAGS="" 4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4170/* end confdefs.h. */ 4171 4172int 4173main () 4174{ 4175 4176 ; 4177 return 0; 4178} 4179_ACEOF 4180if ac_fn_c_try_compile "$LINENO"; then : 4181 4182else 4183 ac_c_werror_flag=$ac_save_c_werror_flag 4184 CFLAGS="-g" 4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4186/* end confdefs.h. */ 4187 4188int 4189main () 4190{ 4191 4192 ; 4193 return 0; 4194} 4195_ACEOF 4196if ac_fn_c_try_compile "$LINENO"; then : 4197 ac_cv_prog_cc_g=yes 4198fi 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4200fi 4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4202fi 4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4204 ac_c_werror_flag=$ac_save_c_werror_flag 4205fi 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4207$as_echo "$ac_cv_prog_cc_g" >&6; } 4208if test "$ac_test_CFLAGS" = set; then 4209 CFLAGS=$ac_save_CFLAGS 4210elif test $ac_cv_prog_cc_g = yes; then 4211 if test "$GCC" = yes; then 4212 CFLAGS="-g -O2" 4213 else 4214 CFLAGS="-g" 4215 fi 4216else 4217 if test "$GCC" = yes; then 4218 CFLAGS="-O2" 4219 else 4220 CFLAGS= 4221 fi 4222fi 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4224$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4225if ${ac_cv_prog_cc_c89+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 ac_cv_prog_cc_c89=no 4229ac_save_CC=$CC 4230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4231/* end confdefs.h. */ 4232#include <stdarg.h> 4233#include <stdio.h> 4234#include <sys/types.h> 4235#include <sys/stat.h> 4236/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4237struct buf { int x; }; 4238FILE * (*rcsopen) (struct buf *, struct stat *, int); 4239static char *e (p, i) 4240 char **p; 4241 int i; 4242{ 4243 return p[i]; 4244} 4245static char *f (char * (*g) (char **, int), char **p, ...) 4246{ 4247 char *s; 4248 va_list v; 4249 va_start (v,p); 4250 s = g (p, va_arg (v,int)); 4251 va_end (v); 4252 return s; 4253} 4254 4255/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4256 function prototypes and stuff, but not '\xHH' hex character constants. 4257 These don't provoke an error unfortunately, instead are silently treated 4258 as 'x'. The following induces an error, until -std is added to get 4259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4260 array size at least. It's necessary to write '\x00'==0 to get something 4261 that's true only with -std. */ 4262int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4263 4264/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4265 inside strings and character constants. */ 4266#define FOO(x) 'x' 4267int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4268 4269int test (int i, double x); 4270struct s1 {int (*f) (int a);}; 4271struct s2 {int (*f) (double a);}; 4272int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4273int argc; 4274char **argv; 4275int 4276main () 4277{ 4278return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4279 ; 4280 return 0; 4281} 4282_ACEOF 4283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4285do 4286 CC="$ac_save_CC $ac_arg" 4287 if ac_fn_c_try_compile "$LINENO"; then : 4288 ac_cv_prog_cc_c89=$ac_arg 4289fi 4290rm -f core conftest.err conftest.$ac_objext 4291 test "x$ac_cv_prog_cc_c89" != "xno" && break 4292done 4293rm -f conftest.$ac_ext 4294CC=$ac_save_CC 4295 4296fi 4297# AC_CACHE_VAL 4298case "x$ac_cv_prog_cc_c89" in 4299 x) 4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4301$as_echo "none needed" >&6; } ;; 4302 xno) 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4304$as_echo "unsupported" >&6; } ;; 4305 *) 4306 CC="$CC $ac_cv_prog_cc_c89" 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4308$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4309esac 4310if test "x$ac_cv_prog_cc_c89" != xno; then : 4311 4312fi 4313 4314ac_ext=c 4315ac_cpp='$CPP $CPPFLAGS' 4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4318ac_compiler_gnu=$ac_cv_c_compiler_gnu 4319 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4321$as_echo_n "checking whether ln -s works... " >&6; } 4322LN_S=$as_ln_s 4323if test "$LN_S" = "ln -s"; then 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4325$as_echo "yes" >&6; } 4326else 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4328$as_echo "no, using $LN_S" >&6; } 4329fi 4330 4331ac_aux_dir= 4332for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4333 if test -f "$ac_dir/install-sh"; then 4334 ac_aux_dir=$ac_dir 4335 ac_install_sh="$ac_aux_dir/install-sh -c" 4336 break 4337 elif test -f "$ac_dir/install.sh"; then 4338 ac_aux_dir=$ac_dir 4339 ac_install_sh="$ac_aux_dir/install.sh -c" 4340 break 4341 elif test -f "$ac_dir/shtool"; then 4342 ac_aux_dir=$ac_dir 4343 ac_install_sh="$ac_aux_dir/shtool install -c" 4344 break 4345 fi 4346done 4347if test -z "$ac_aux_dir"; then 4348 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4349fi 4350 4351# These three variables are undocumented and unsupported, 4352# and are intended to be withdrawn in a future Autoconf release. 4353# They can cause serious problems if a builder's source tree is in a directory 4354# whose full name contains unusual characters. 4355ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4356ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4357ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4358 4359 4360# Find a good install program. We prefer a C program (faster), 4361# so one script is as good as another. But avoid the broken or 4362# incompatible versions: 4363# SysV /etc/install, /usr/sbin/install 4364# SunOS /usr/etc/install 4365# IRIX /sbin/install 4366# AIX /bin/install 4367# AmigaOS /C/install, which installs bootblocks on floppy discs 4368# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4369# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4370# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4371# OS/2's system install, which has a completely different semantic 4372# ./install, which can be erroneously created by make from ./install.sh. 4373# Reject install programs that cannot install multiple files. 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4375$as_echo_n "checking for a BSD-compatible install... " >&6; } 4376if test -z "$INSTALL"; then 4377if ${ac_cv_path_install+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379else 4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4381for as_dir in $PATH 4382do 4383 IFS=$as_save_IFS 4384 test -z "$as_dir" && as_dir=. 4385 # Account for people who put trailing slashes in PATH elements. 4386case $as_dir/ in #(( 4387 ./ | .// | /[cC]/* | \ 4388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4389 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4390 /usr/ucb/* ) ;; 4391 *) 4392 # OSF1 and SCO ODT 3.0 have their own names for install. 4393 # Don't use installbsd from OSF since it installs stuff as root 4394 # by default. 4395 for ac_prog in ginstall scoinst install; do 4396 for ac_exec_ext in '' $ac_executable_extensions; do 4397 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4398 if test $ac_prog = install && 4399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4400 # AIX install. It has an incompatible calling convention. 4401 : 4402 elif test $ac_prog = install && 4403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4404 # program-specific install script used by HP pwplus--don't use. 4405 : 4406 else 4407 rm -rf conftest.one conftest.two conftest.dir 4408 echo one > conftest.one 4409 echo two > conftest.two 4410 mkdir conftest.dir 4411 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4412 test -s conftest.one && test -s conftest.two && 4413 test -s conftest.dir/conftest.one && 4414 test -s conftest.dir/conftest.two 4415 then 4416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4417 break 3 4418 fi 4419 fi 4420 fi 4421 done 4422 done 4423 ;; 4424esac 4425 4426 done 4427IFS=$as_save_IFS 4428 4429rm -rf conftest.one conftest.two conftest.dir 4430 4431fi 4432 if test "${ac_cv_path_install+set}" = set; then 4433 INSTALL=$ac_cv_path_install 4434 else 4435 # As a last resort, use the slow shell script. Don't cache a 4436 # value for INSTALL within a source directory, because that will 4437 # break other packages using the cache if that directory is 4438 # removed, or if the value is a relative name. 4439 INSTALL=$ac_install_sh 4440 fi 4441fi 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4443$as_echo "$INSTALL" >&6; } 4444 4445# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4446# It thinks the first close brace ends the variable substitution. 4447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4448 4449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4450 4451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4452 4453for ac_prog in flex lex 4454do 4455 # Extract the first word of "$ac_prog", so it can be a program name with args. 4456set dummy $ac_prog; ac_word=$2 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4458$as_echo_n "checking for $ac_word... " >&6; } 4459if ${ac_cv_prog_LEX+:} false; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 if test -n "$LEX"; then 4463 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4464else 4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4466for as_dir in $PATH 4467do 4468 IFS=$as_save_IFS 4469 test -z "$as_dir" && as_dir=. 4470 for ac_exec_ext in '' $ac_executable_extensions; do 4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4472 ac_cv_prog_LEX="$ac_prog" 4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4474 break 2 4475 fi 4476done 4477 done 4478IFS=$as_save_IFS 4479 4480fi 4481fi 4482LEX=$ac_cv_prog_LEX 4483if test -n "$LEX"; then 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4485$as_echo "$LEX" >&6; } 4486else 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4488$as_echo "no" >&6; } 4489fi 4490 4491 4492 test -n "$LEX" && break 4493done 4494test -n "$LEX" || LEX=":" 4495 4496if test "x$LEX" != "x:"; then 4497 cat >conftest.l <<_ACEOF 4498%% 4499a { ECHO; } 4500b { REJECT; } 4501c { yymore (); } 4502d { yyless (1); } 4503e { yyless (input () != 0); } 4504f { unput (yytext[0]); } 4505. { BEGIN INITIAL; } 4506%% 4507#ifdef YYTEXT_POINTER 4508extern char *yytext; 4509#endif 4510int 4511main (void) 4512{ 4513 return ! yylex () + ! yywrap (); 4514} 4515_ACEOF 4516{ { ac_try="$LEX conftest.l" 4517case "(($ac_try" in 4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4519 *) ac_try_echo=$ac_try;; 4520esac 4521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4522$as_echo "$ac_try_echo"; } >&5 4523 (eval "$LEX conftest.l") 2>&5 4524 ac_status=$? 4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4526 test $ac_status = 0; } 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 4528$as_echo_n "checking lex output file root... " >&6; } 4529if ${ac_cv_prog_lex_root+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 4533if test -f lex.yy.c; then 4534 ac_cv_prog_lex_root=lex.yy 4535elif test -f lexyy.c; then 4536 ac_cv_prog_lex_root=lexyy 4537else 4538 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4539fi 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4542$as_echo "$ac_cv_prog_lex_root" >&6; } 4543LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4544 4545if test -z "${LEXLIB+set}"; then 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 4547$as_echo_n "checking lex library... " >&6; } 4548if ${ac_cv_lib_lex+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 4552 ac_save_LIBS=$LIBS 4553 ac_cv_lib_lex='none needed' 4554 for ac_lib in '' -lfl -ll; do 4555 LIBS="$ac_lib $ac_save_LIBS" 4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4557/* end confdefs.h. */ 4558`cat $LEX_OUTPUT_ROOT.c` 4559_ACEOF 4560if ac_fn_c_try_link "$LINENO"; then : 4561 ac_cv_lib_lex=$ac_lib 4562fi 4563rm -f core conftest.err conftest.$ac_objext \ 4564 conftest$ac_exeext conftest.$ac_ext 4565 test "$ac_cv_lib_lex" != 'none needed' && break 4566 done 4567 LIBS=$ac_save_LIBS 4568 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4571$as_echo "$ac_cv_lib_lex" >&6; } 4572 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4573fi 4574 4575 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 4577$as_echo_n "checking whether yytext is a pointer... " >&6; } 4578if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4579 $as_echo_n "(cached) " >&6 4580else 4581 # POSIX says lex can declare yytext either as a pointer or an array; the 4582# default is implementation-dependent. Figure out which it is, since 4583# not all implementations provide the %pointer and %array declarations. 4584ac_cv_prog_lex_yytext_pointer=no 4585ac_save_LIBS=$LIBS 4586LIBS="$LEXLIB $ac_save_LIBS" 4587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588/* end confdefs.h. */ 4589 4590 #define YYTEXT_POINTER 1 4591`cat $LEX_OUTPUT_ROOT.c` 4592_ACEOF 4593if ac_fn_c_try_link "$LINENO"; then : 4594 ac_cv_prog_lex_yytext_pointer=yes 4595fi 4596rm -f core conftest.err conftest.$ac_objext \ 4597 conftest$ac_exeext conftest.$ac_ext 4598LIBS=$ac_save_LIBS 4599 4600fi 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 4602$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4603if test $ac_cv_prog_lex_yytext_pointer = yes; then 4604 4605$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4606 4607fi 4608rm -f conftest.l $LEX_OUTPUT_ROOT.c 4609 4610fi 4611for ac_prog in 'bison -y' byacc 4612do 4613 # Extract the first word of "$ac_prog", so it can be a program name with args. 4614set dummy $ac_prog; ac_word=$2 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4616$as_echo_n "checking for $ac_word... " >&6; } 4617if ${ac_cv_prog_YACC+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 if test -n "$YACC"; then 4621 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4622else 4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_exec_ext in '' $ac_executable_extensions; do 4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4630 ac_cv_prog_YACC="$ac_prog" 4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4632 break 2 4633 fi 4634done 4635 done 4636IFS=$as_save_IFS 4637 4638fi 4639fi 4640YACC=$ac_cv_prog_YACC 4641if test -n "$YACC"; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 4643$as_echo "$YACC" >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4646$as_echo "no" >&6; } 4647fi 4648 4649 4650 test -n "$YACC" && break 4651done 4652test -n "$YACC" || YACC="yacc" 4653 4654 4655 4656 4657 4658 4659 4660# Checks for typedefs, structures, and compiler characteristics. 4661 4662 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4664$as_echo_n "checking whether $CC supports -O2... " >&6; } 4665cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4666if eval \${cv_prog_cc_flag_$cache+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 4670echo 'void f(){}' >conftest.c 4671if test -z "`$CC -O2 -c conftest.c 2>&1`"; then 4672eval "cv_prog_cc_flag_$cache=yes" 4673else 4674eval "cv_prog_cc_flag_$cache=no" 4675fi 4676rm -f conftest* 4677 4678fi 4679 4680if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4682$as_echo "yes" >&6; } 4683: 4684 4685else 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687$as_echo "no" >&6; } 4688: 4689 CFLAGS=`echo $CFLAGS | sed -e "s/-O2//g"` 4690fi 4691 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4693$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4694if ${ac_cv_c_const+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4698/* end confdefs.h. */ 4699 4700int 4701main () 4702{ 4703/* FIXME: Include the comments suggested by Paul. */ 4704#ifndef __cplusplus 4705 /* Ultrix mips cc rejects this. */ 4706 typedef int charset[2]; 4707 const charset cs; 4708 /* SunOS 4.1.1 cc rejects this. */ 4709 char const *const *pcpcc; 4710 char **ppc; 4711 /* NEC SVR4.0.2 mips cc rejects this. */ 4712 struct point {int x, y;}; 4713 static struct point const zero = {0,0}; 4714 /* AIX XL C 1.02.0.0 rejects this. 4715 It does not let you subtract one const X* pointer from another in 4716 an arm of an if-expression whose if-part is not a constant 4717 expression */ 4718 const char *g = "string"; 4719 pcpcc = &g + (g ? g-g : 0); 4720 /* HPUX 7.0 cc rejects these. */ 4721 ++pcpcc; 4722 ppc = (char**) pcpcc; 4723 pcpcc = (char const *const *) ppc; 4724 { /* SCO 3.2v4 cc rejects this. */ 4725 char *t; 4726 char const *s = 0 ? (char *) 0 : (char const *) 0; 4727 4728 *t++ = 0; 4729 if (s) return 0; 4730 } 4731 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4732 int x[] = {25, 17}; 4733 const int *foo = &x[0]; 4734 ++foo; 4735 } 4736 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4737 typedef const int *iptr; 4738 iptr p = 0; 4739 ++p; 4740 } 4741 { /* AIX XL C 1.02.0.0 rejects this saying 4742 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4743 struct s { int j; const int *ap[3]; }; 4744 struct s *b; b->j = 5; 4745 } 4746 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4747 const int foo = 10; 4748 if (!foo) return 0; 4749 } 4750 return !cs[0] && !zero.x; 4751#endif 4752 4753 ; 4754 return 0; 4755} 4756_ACEOF 4757if ac_fn_c_try_compile "$LINENO"; then : 4758 ac_cv_c_const=yes 4759else 4760 ac_cv_c_const=no 4761fi 4762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4763fi 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4765$as_echo "$ac_cv_c_const" >&6; } 4766if test $ac_cv_c_const = no; then 4767 4768$as_echo "#define const /**/" >>confdefs.h 4769 4770fi 4771 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4773$as_echo_n "checking for inline... " >&6; } 4774if ${ac_cv_c_inline+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 ac_cv_c_inline=no 4778for ac_kw in inline __inline__ __inline; do 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780/* end confdefs.h. */ 4781#ifndef __cplusplus 4782typedef int foo_t; 4783static $ac_kw foo_t static_foo () {return 0; } 4784$ac_kw foo_t foo () {return 0; } 4785#endif 4786 4787_ACEOF 4788if ac_fn_c_try_compile "$LINENO"; then : 4789 ac_cv_c_inline=$ac_kw 4790fi 4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4792 test "$ac_cv_c_inline" != no && break 4793done 4794 4795fi 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4797$as_echo "$ac_cv_c_inline" >&6; } 4798 4799case $ac_cv_c_inline in 4800 inline | yes) ;; 4801 *) 4802 case $ac_cv_c_inline in 4803 no) ac_val=;; 4804 *) ac_val=$ac_cv_c_inline;; 4805 esac 4806 cat >>confdefs.h <<_ACEOF 4807#ifndef __cplusplus 4808#define inline $ac_val 4809#endif 4810_ACEOF 4811 ;; 4812esac 4813 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 4815$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 4816if ${ac_cv_type_uid_t+:} false; then : 4817 $as_echo_n "(cached) " >&6 4818else 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820/* end confdefs.h. */ 4821#include <sys/types.h> 4822 4823_ACEOF 4824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4825 $EGREP "uid_t" >/dev/null 2>&1; then : 4826 ac_cv_type_uid_t=yes 4827else 4828 ac_cv_type_uid_t=no 4829fi 4830rm -f conftest* 4831 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 4834$as_echo "$ac_cv_type_uid_t" >&6; } 4835if test $ac_cv_type_uid_t = no; then 4836 4837$as_echo "#define uid_t int" >>confdefs.h 4838 4839 4840$as_echo "#define gid_t int" >>confdefs.h 4841 4842fi 4843 4844ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 4845if test "x$ac_cv_type_pid_t" = xyes; then : 4846 4847else 4848 4849cat >>confdefs.h <<_ACEOF 4850#define pid_t int 4851_ACEOF 4852 4853fi 4854 4855ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4856if test "x$ac_cv_type_size_t" = xyes; then : 4857 4858else 4859 4860cat >>confdefs.h <<_ACEOF 4861#define size_t unsigned int 4862_ACEOF 4863 4864fi 4865 4866ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 4867if test "x$ac_cv_type_off_t" = xyes; then : 4868 4869else 4870 4871cat >>confdefs.h <<_ACEOF 4872#define off_t long int 4873_ACEOF 4874 4875fi 4876 4877 4878 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 4880$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 4881if ${ac_cv_c_format_attribute+:} false; then : 4882 $as_echo_n "(cached) " >&6 4883else 4884 ac_cv_c_format_attribute=no 4885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887#include <stdio.h> 4888void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 4889void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 4890 4891int 4892main () 4893{ 4894 4895 f ("%s", "str"); 4896 4897 ; 4898 return 0; 4899} 4900_ACEOF 4901if ac_fn_c_try_compile "$LINENO"; then : 4902 ac_cv_c_format_attribute="yes" 4903else 4904 ac_cv_c_format_attribute="no" 4905fi 4906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4907 4908fi 4909 4910 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 4912$as_echo "$ac_cv_c_format_attribute" >&6; } 4913if test $ac_cv_c_format_attribute = yes; then 4914 4915$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 4916 4917fi 4918 4919 4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 4921$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 4922if ${ac_cv_c_unused_attribute+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 ac_cv_c_unused_attribute=no 4926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928#include <stdio.h> 4929void f (char *u __attribute__((unused))); 4930 4931int 4932main () 4933{ 4934 4935 f ("x"); 4936 4937 ; 4938 return 0; 4939} 4940_ACEOF 4941if ac_fn_c_try_compile "$LINENO"; then : 4942 ac_cv_c_unused_attribute="yes" 4943else 4944 ac_cv_c_unused_attribute="no" 4945fi 4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4947 4948fi 4949 4950 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 4952$as_echo "$ac_cv_c_unused_attribute" >&6; } 4953if test $ac_cv_c_unused_attribute = yes; then 4954 4955$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 4956 4957fi 4958 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 4960$as_echo_n "checking if memcmp compares unsigned... " >&6; } 4961if test "$cross_compiling" = yes; then : 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 4963$as_echo "cross-compile no" >&6; } 4964 4965$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 4966 4967 case " $LIBOBJS " in 4968 *" memcmp.$ac_objext "* ) ;; 4969 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 4970 ;; 4971esac 4972 4973 4974else 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977 4978#include <stdio.h> 4979#include <stdlib.h> 4980#include <string.h> 4981int main(void) 4982{ 4983 char a = 255, b = 0; 4984 if(memcmp(&a, &b, 1) < 0) 4985 return 1; 4986 return 0; 4987} 4988 4989_ACEOF 4990if ac_fn_c_try_run "$LINENO"; then : 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4992$as_echo "yes" >&6; } 4993else 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4995$as_echo "no" >&6; } 4996 4997$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 4998 4999 case " $LIBOBJS " in 5000 *" memcmp.$ac_objext "* ) ;; 5001 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 5002 ;; 5003esac 5004 5005 5006fi 5007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5008 conftest.$ac_objext conftest.beam conftest.$ac_ext 5009fi 5010 5011 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctime_r works with two arguments" >&5 5013$as_echo_n "checking whether ctime_r works with two arguments... " >&6; } 5014if ${ac_cv_c_ctime_c+:} false; then : 5015 $as_echo_n "(cached) " >&6 5016else 5017 ac_cv_c_ctime_c=no 5018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020#include <time.h> 5021void testing (void) { time_t clock; char current_time[40]; ctime_r(&clock, current_time); } 5022int 5023main () 5024{ 5025 5026 testing(); 5027 5028 ; 5029 return 0; 5030} 5031_ACEOF 5032if ac_fn_c_try_compile "$LINENO"; then : 5033 ac_cv_c_ctime_c="yes" 5034else 5035 ac_cv_c_ctime_c="no" 5036fi 5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5038 5039fi 5040 5041 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ctime_c" >&5 5043$as_echo "$ac_cv_c_ctime_c" >&6; } 5044if test $ac_cv_c_ctime_c = no; then 5045 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" 5046fi 5047 5048 5049# Checks for libraries. 5050 5051# Check for SSL, original taken from 5052# http://www.gnu.org/software/ac-archive/htmldoc/check_ssl.html and 5053# modified for NSD. 5054 5055# Checks for header files. 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5057$as_echo_n "checking for ANSI C header files... " >&6; } 5058if ${ac_cv_header_stdc+:} false; then : 5059 $as_echo_n "(cached) " >&6 5060else 5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5062/* end confdefs.h. */ 5063#include <stdlib.h> 5064#include <stdarg.h> 5065#include <string.h> 5066#include <float.h> 5067 5068int 5069main () 5070{ 5071 5072 ; 5073 return 0; 5074} 5075_ACEOF 5076if ac_fn_c_try_compile "$LINENO"; then : 5077 ac_cv_header_stdc=yes 5078else 5079 ac_cv_header_stdc=no 5080fi 5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5082 5083if test $ac_cv_header_stdc = yes; then 5084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5086/* end confdefs.h. */ 5087#include <string.h> 5088 5089_ACEOF 5090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5091 $EGREP "memchr" >/dev/null 2>&1; then : 5092 5093else 5094 ac_cv_header_stdc=no 5095fi 5096rm -f conftest* 5097 5098fi 5099 5100if test $ac_cv_header_stdc = yes; then 5101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5103/* end confdefs.h. */ 5104#include <stdlib.h> 5105 5106_ACEOF 5107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5108 $EGREP "free" >/dev/null 2>&1; then : 5109 5110else 5111 ac_cv_header_stdc=no 5112fi 5113rm -f conftest* 5114 5115fi 5116 5117if test $ac_cv_header_stdc = yes; then 5118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5119 if test "$cross_compiling" = yes; then : 5120 : 5121else 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124#include <ctype.h> 5125#include <stdlib.h> 5126#if ((' ' & 0x0FF) == 0x020) 5127# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5128# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5129#else 5130# define ISLOWER(c) \ 5131 (('a' <= (c) && (c) <= 'i') \ 5132 || ('j' <= (c) && (c) <= 'r') \ 5133 || ('s' <= (c) && (c) <= 'z')) 5134# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5135#endif 5136 5137#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5138int 5139main () 5140{ 5141 int i; 5142 for (i = 0; i < 256; i++) 5143 if (XOR (islower (i), ISLOWER (i)) 5144 || toupper (i) != TOUPPER (i)) 5145 return 2; 5146 return 0; 5147} 5148_ACEOF 5149if ac_fn_c_try_run "$LINENO"; then : 5150 5151else 5152 ac_cv_header_stdc=no 5153fi 5154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5155 conftest.$ac_objext conftest.beam conftest.$ac_ext 5156fi 5157 5158fi 5159fi 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5161$as_echo "$ac_cv_header_stdc" >&6; } 5162if test $ac_cv_header_stdc = yes; then 5163 5164$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5165 5166fi 5167 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 5169$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 5170if ${ac_cv_header_sys_wait_h+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175#include <sys/types.h> 5176#include <sys/wait.h> 5177#ifndef WEXITSTATUS 5178# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 5179#endif 5180#ifndef WIFEXITED 5181# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5182#endif 5183 5184int 5185main () 5186{ 5187 int s; 5188 wait (&s); 5189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5190 ; 5191 return 0; 5192} 5193_ACEOF 5194if ac_fn_c_try_compile "$LINENO"; then : 5195 ac_cv_header_sys_wait_h=yes 5196else 5197 ac_cv_header_sys_wait_h=no 5198fi 5199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5200fi 5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 5202$as_echo "$ac_cv_header_sys_wait_h" >&6; } 5203if test $ac_cv_header_sys_wait_h = yes; then 5204 5205$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 5206 5207fi 5208 5209for ac_header in time.h arpa/inet.h signal.h string.h strings.h fcntl.h limits.h netinet/in.h stddef.h sys/param.h sys/socket.h syslog.h unistd.h sys/select.h stdarg.h stdint.h netdb.h sys/bitypes.h tcpd.h grp.h 5210do : 5211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5212ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5213if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5214 cat >>confdefs.h <<_ACEOF 5215#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5216_ACEOF 5217 5218fi 5219 5220done 5221 5222 5223 5224 5225 5226 5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for double definition of struct va_list" >&5 5228$as_echo_n "checking for double definition of struct va_list... " >&6; } 5229if ${ac_cv_c_va_list_def+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 5233cat >conftest.c <<EOF 5234#include <stdio.h> 5235#include <stdarg.h> 5236int foo(void); 5237EOF 5238if test -z "`$CC -Werror -D_XOPEN_SOURCE=600 -c conftest.c 2>&1`"; then 5239eval "ac_cv_c_va_list_def=no" 5240else 5241eval "ac_cv_c_va_list_def=yes" 5242fi 5243rm -f conftest* 5244 5245fi 5246 5247if test $ac_cv_c_va_list_def = yes; then 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5249$as_echo "yes" >&6; } 5250: 5251 5252cat >>confdefs.h <<_ACEOF 5253#define HAVE_VA_LIST_DOUBLE_DEF /**/ 5254_ACEOF 5255 5256else 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5258$as_echo "no" >&6; } 5259: 5260 5261fi 5262 5263 5264 5265 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime needs defines" >&5 5267$as_echo_n "checking whether strptime needs defines... " >&6; } 5268if ${ac_cv_c_strptime_needs_defs+:} false; then : 5269 $as_echo_n "(cached) " >&6 5270else 5271 5272cat >conftest.c <<EOF 5273#include <time.h> 5274int testing (void) { struct tm t; const char *timestr="201201"; return strptime(timestr, "%Y%m", &t)!=0; } 5275EOF 5276if test -z "`$CC -Wall -Werror -c conftest.c 2>&1`"; then 5277eval "ac_cv_c_strptime_needs_defs=no" 5278else 5279eval "ac_cv_c_strptime_needs_defs=yes" 5280fi 5281rm -f conftest* 5282 5283fi 5284 5285 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_needs_defs" >&5 5287$as_echo "$ac_cv_c_strptime_needs_defs" >&6; } 5288if test $ac_cv_c_strptime_needs_defs = yes; then 5289 5290cat >>confdefs.h <<_ACEOF 5291#define STRPTIME_NEEDS_DEFINES 1 5292_ACEOF 5293 5294fi 5295 5296 5297# check wether strptime also works 5298 5299 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 5301$as_echo_n "checking whether strptime works... " >&6; } 5302if test c${cross_compiling} = cno; then 5303if test "$cross_compiling" = yes; then : 5304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5306as_fn_error $? "cannot run test program while cross compiling 5307See \`config.log' for more details" "$LINENO" 5; } 5308else 5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5310/* end confdefs.h. */ 5311 5312#define _XOPEN_SOURCE 5313#include <time.h> 5314int main(void) { struct tm tm; char *res; 5315res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 5316if (!res) return 1; return 0; } 5317 5318_ACEOF 5319if ac_fn_c_try_run "$LINENO"; then : 5320 eval "ac_cv_c_strptime_works=yes" 5321else 5322 eval "ac_cv_c_strptime_works=no" 5323fi 5324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5325 conftest.$ac_objext conftest.beam conftest.$ac_ext 5326fi 5327 5328else 5329eval "ac_cv_c_strptime_works=maybe" 5330fi 5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 5332$as_echo "$ac_cv_c_strptime_works" >&6; } 5333if test $ac_cv_c_strptime_works = no; then 5334case " $LIBOBJS " in 5335 *" strptime.$ac_objext "* ) ;; 5336 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 5337 ;; 5338esac 5339 5340else 5341 5342cat >>confdefs.h <<_ACEOF 5343#define STRPTIME_WORKS 1 5344_ACEOF 5345 5346fi 5347 5348 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 5350$as_echo_n "checking for library containing inet_pton... " >&6; } 5351if ${ac_cv_search_inet_pton+:} false; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 ac_func_search_save_LIBS=$LIBS 5355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357 5358/* Override any GCC internal prototype to avoid an error. 5359 Use char because int might match the return type of a GCC 5360 builtin and then its argument prototype would still apply. */ 5361#ifdef __cplusplus 5362extern "C" 5363#endif 5364char inet_pton (); 5365int 5366main () 5367{ 5368return inet_pton (); 5369 ; 5370 return 0; 5371} 5372_ACEOF 5373for ac_lib in '' nsl; do 5374 if test -z "$ac_lib"; then 5375 ac_res="none required" 5376 else 5377 ac_res=-l$ac_lib 5378 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5379 fi 5380 if ac_fn_c_try_link "$LINENO"; then : 5381 ac_cv_search_inet_pton=$ac_res 5382fi 5383rm -f core conftest.err conftest.$ac_objext \ 5384 conftest$ac_exeext 5385 if ${ac_cv_search_inet_pton+:} false; then : 5386 break 5387fi 5388done 5389if ${ac_cv_search_inet_pton+:} false; then : 5390 5391else 5392 ac_cv_search_inet_pton=no 5393fi 5394rm conftest.$ac_ext 5395LIBS=$ac_func_search_save_LIBS 5396fi 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 5398$as_echo "$ac_cv_search_inet_pton" >&6; } 5399ac_res=$ac_cv_search_inet_pton 5400if test "$ac_res" != no; then : 5401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5402 5403fi 5404 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5406$as_echo_n "checking for library containing socket... " >&6; } 5407if ${ac_cv_search_socket+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 ac_func_search_save_LIBS=$LIBS 5411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413 5414/* Override any GCC internal prototype to avoid an error. 5415 Use char because int might match the return type of a GCC 5416 builtin and then its argument prototype would still apply. */ 5417#ifdef __cplusplus 5418extern "C" 5419#endif 5420char socket (); 5421int 5422main () 5423{ 5424return socket (); 5425 ; 5426 return 0; 5427} 5428_ACEOF 5429for ac_lib in '' socket; do 5430 if test -z "$ac_lib"; then 5431 ac_res="none required" 5432 else 5433 ac_res=-l$ac_lib 5434 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5435 fi 5436 if ac_fn_c_try_link "$LINENO"; then : 5437 ac_cv_search_socket=$ac_res 5438fi 5439rm -f core conftest.err conftest.$ac_objext \ 5440 conftest$ac_exeext 5441 if ${ac_cv_search_socket+:} false; then : 5442 break 5443fi 5444done 5445if ${ac_cv_search_socket+:} false; then : 5446 5447else 5448 ac_cv_search_socket=no 5449fi 5450rm conftest.$ac_ext 5451LIBS=$ac_func_search_save_LIBS 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5454$as_echo "$ac_cv_search_socket" >&6; } 5455ac_res=$ac_cv_search_socket 5456if test "$ac_res" != no; then : 5457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5458 5459fi 5460 5461 5462 5463 5464 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5 5466$as_echo_n "checking for int8_t... " >&6; } 5467if ${ac_cv_type_int8_t+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471/* end confdefs.h. */ 5472 5473#include <sys/types.h> 5474#if STDC_HEADERS 5475#include <stdlib.h> 5476#include <stddef.h> 5477#endif 5478 5479#ifdef HAVE_STDINT_H 5480#include <stdint.h> 5481#endif 5482 5483#ifdef HAVE_SYS_SOCKET_H 5484#include <sys/socket.h> 5485#endif 5486 5487#ifdef HAVE_ARPA_INET_H 5488#include <arpa/inet.h> 5489#endif 5490 5491#ifdef HAVE_SIGNAL_H 5492#include <signal.h> 5493#endif 5494 5495/* For Tru64 */ 5496#ifdef HAVE_SYS_BITYPES_H 5497#include <sys/bitypes.h> 5498#endif 5499 5500_ACEOF 5501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5502 $EGREP "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5503 ac_cv_type_int8_t=yes 5504else 5505 ac_cv_type_int8_t=no 5506fi 5507rm -f conftest* 5508 5509fi 5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int8_t" >&5 5511$as_echo "$ac_cv_type_int8_t" >&6; } 5512if test $ac_cv_type_int8_t = no; then 5513 5514$as_echo "#define int8_t char" >>confdefs.h 5515 5516fi 5517 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5 5519$as_echo_n "checking for int16_t... " >&6; } 5520if ${ac_cv_type_int16_t+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524/* end confdefs.h. */ 5525 5526#include <sys/types.h> 5527#if STDC_HEADERS 5528#include <stdlib.h> 5529#include <stddef.h> 5530#endif 5531 5532#ifdef HAVE_STDINT_H 5533#include <stdint.h> 5534#endif 5535 5536#ifdef HAVE_SYS_SOCKET_H 5537#include <sys/socket.h> 5538#endif 5539 5540#ifdef HAVE_ARPA_INET_H 5541#include <arpa/inet.h> 5542#endif 5543 5544#ifdef HAVE_SIGNAL_H 5545#include <signal.h> 5546#endif 5547 5548/* For Tru64 */ 5549#ifdef HAVE_SYS_BITYPES_H 5550#include <sys/bitypes.h> 5551#endif 5552 5553_ACEOF 5554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5555 $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5556 ac_cv_type_int16_t=yes 5557else 5558 ac_cv_type_int16_t=no 5559fi 5560rm -f conftest* 5561 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int16_t" >&5 5564$as_echo "$ac_cv_type_int16_t" >&6; } 5565if test $ac_cv_type_int16_t = no; then 5566 5567$as_echo "#define int16_t short" >>confdefs.h 5568 5569fi 5570 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 5572$as_echo_n "checking for int32_t... " >&6; } 5573if ${ac_cv_type_int32_t+:} false; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577/* end confdefs.h. */ 5578 5579#include <sys/types.h> 5580#if STDC_HEADERS 5581#include <stdlib.h> 5582#include <stddef.h> 5583#endif 5584 5585#ifdef HAVE_STDINT_H 5586#include <stdint.h> 5587#endif 5588 5589#ifdef HAVE_SYS_SOCKET_H 5590#include <sys/socket.h> 5591#endif 5592 5593#ifdef HAVE_ARPA_INET_H 5594#include <arpa/inet.h> 5595#endif 5596 5597#ifdef HAVE_SIGNAL_H 5598#include <signal.h> 5599#endif 5600 5601/* For Tru64 */ 5602#ifdef HAVE_SYS_BITYPES_H 5603#include <sys/bitypes.h> 5604#endif 5605 5606_ACEOF 5607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5608 $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5609 ac_cv_type_int32_t=yes 5610else 5611 ac_cv_type_int32_t=no 5612fi 5613rm -f conftest* 5614 5615fi 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int32_t" >&5 5617$as_echo "$ac_cv_type_int32_t" >&6; } 5618if test $ac_cv_type_int32_t = no; then 5619 5620$as_echo "#define int32_t int" >>confdefs.h 5621 5622fi 5623 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5 5625$as_echo_n "checking for int64_t... " >&6; } 5626if ${ac_cv_type_int64_t+:} false; then : 5627 $as_echo_n "(cached) " >&6 5628else 5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5630/* end confdefs.h. */ 5631 5632#include <sys/types.h> 5633#if STDC_HEADERS 5634#include <stdlib.h> 5635#include <stddef.h> 5636#endif 5637 5638#ifdef HAVE_STDINT_H 5639#include <stdint.h> 5640#endif 5641 5642#ifdef HAVE_SYS_SOCKET_H 5643#include <sys/socket.h> 5644#endif 5645 5646#ifdef HAVE_ARPA_INET_H 5647#include <arpa/inet.h> 5648#endif 5649 5650#ifdef HAVE_SIGNAL_H 5651#include <signal.h> 5652#endif 5653 5654/* For Tru64 */ 5655#ifdef HAVE_SYS_BITYPES_H 5656#include <sys/bitypes.h> 5657#endif 5658 5659_ACEOF 5660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5661 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5662 ac_cv_type_int64_t=yes 5663else 5664 ac_cv_type_int64_t=no 5665fi 5666rm -f conftest* 5667 5668fi 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int64_t" >&5 5670$as_echo "$ac_cv_type_int64_t" >&6; } 5671if test $ac_cv_type_int64_t = no; then 5672 5673$as_echo "#define int64_t long long" >>confdefs.h 5674 5675fi 5676 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5 5678$as_echo_n "checking for uint8_t... " >&6; } 5679if ${ac_cv_type_uint8_t+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681else 5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5683/* end confdefs.h. */ 5684 5685#include <sys/types.h> 5686#if STDC_HEADERS 5687#include <stdlib.h> 5688#include <stddef.h> 5689#endif 5690 5691#ifdef HAVE_STDINT_H 5692#include <stdint.h> 5693#endif 5694 5695#ifdef HAVE_SYS_SOCKET_H 5696#include <sys/socket.h> 5697#endif 5698 5699#ifdef HAVE_ARPA_INET_H 5700#include <arpa/inet.h> 5701#endif 5702 5703#ifdef HAVE_SIGNAL_H 5704#include <signal.h> 5705#endif 5706 5707/* For Tru64 */ 5708#ifdef HAVE_SYS_BITYPES_H 5709#include <sys/bitypes.h> 5710#endif 5711 5712_ACEOF 5713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5714 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5715 ac_cv_type_uint8_t=yes 5716else 5717 ac_cv_type_uint8_t=no 5718fi 5719rm -f conftest* 5720 5721fi 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5 5723$as_echo "$ac_cv_type_uint8_t" >&6; } 5724if test $ac_cv_type_uint8_t = no; then 5725 5726$as_echo "#define uint8_t unsigned char" >>confdefs.h 5727 5728fi 5729 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5 5731$as_echo_n "checking for uint16_t... " >&6; } 5732if ${ac_cv_type_uint16_t+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5736/* end confdefs.h. */ 5737 5738#include <sys/types.h> 5739#if STDC_HEADERS 5740#include <stdlib.h> 5741#include <stddef.h> 5742#endif 5743 5744#ifdef HAVE_STDINT_H 5745#include <stdint.h> 5746#endif 5747 5748#ifdef HAVE_SYS_SOCKET_H 5749#include <sys/socket.h> 5750#endif 5751 5752#ifdef HAVE_ARPA_INET_H 5753#include <arpa/inet.h> 5754#endif 5755 5756#ifdef HAVE_SIGNAL_H 5757#include <signal.h> 5758#endif 5759 5760/* For Tru64 */ 5761#ifdef HAVE_SYS_BITYPES_H 5762#include <sys/bitypes.h> 5763#endif 5764 5765_ACEOF 5766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5767 $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5768 ac_cv_type_uint16_t=yes 5769else 5770 ac_cv_type_uint16_t=no 5771fi 5772rm -f conftest* 5773 5774fi 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5 5776$as_echo "$ac_cv_type_uint16_t" >&6; } 5777if test $ac_cv_type_uint16_t = no; then 5778 5779$as_echo "#define uint16_t unsigned short" >>confdefs.h 5780 5781fi 5782 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 5784$as_echo_n "checking for uint32_t... " >&6; } 5785if ${ac_cv_type_uint32_t+:} false; then : 5786 $as_echo_n "(cached) " >&6 5787else 5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5789/* end confdefs.h. */ 5790 5791#include <sys/types.h> 5792#if STDC_HEADERS 5793#include <stdlib.h> 5794#include <stddef.h> 5795#endif 5796 5797#ifdef HAVE_STDINT_H 5798#include <stdint.h> 5799#endif 5800 5801#ifdef HAVE_SYS_SOCKET_H 5802#include <sys/socket.h> 5803#endif 5804 5805#ifdef HAVE_ARPA_INET_H 5806#include <arpa/inet.h> 5807#endif 5808 5809#ifdef HAVE_SIGNAL_H 5810#include <signal.h> 5811#endif 5812 5813/* For Tru64 */ 5814#ifdef HAVE_SYS_BITYPES_H 5815#include <sys/bitypes.h> 5816#endif 5817 5818_ACEOF 5819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5820 $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5821 ac_cv_type_uint32_t=yes 5822else 5823 ac_cv_type_uint32_t=no 5824fi 5825rm -f conftest* 5826 5827fi 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5 5829$as_echo "$ac_cv_type_uint32_t" >&6; } 5830if test $ac_cv_type_uint32_t = no; then 5831 5832$as_echo "#define uint32_t unsigned int" >>confdefs.h 5833 5834fi 5835 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5 5837$as_echo_n "checking for uint64_t... " >&6; } 5838if ${ac_cv_type_uint64_t+:} false; then : 5839 $as_echo_n "(cached) " >&6 5840else 5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843 5844#include <sys/types.h> 5845#if STDC_HEADERS 5846#include <stdlib.h> 5847#include <stddef.h> 5848#endif 5849 5850#ifdef HAVE_STDINT_H 5851#include <stdint.h> 5852#endif 5853 5854#ifdef HAVE_SYS_SOCKET_H 5855#include <sys/socket.h> 5856#endif 5857 5858#ifdef HAVE_ARPA_INET_H 5859#include <arpa/inet.h> 5860#endif 5861 5862#ifdef HAVE_SIGNAL_H 5863#include <signal.h> 5864#endif 5865 5866/* For Tru64 */ 5867#ifdef HAVE_SYS_BITYPES_H 5868#include <sys/bitypes.h> 5869#endif 5870 5871_ACEOF 5872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5873 $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5874 ac_cv_type_uint64_t=yes 5875else 5876 ac_cv_type_uint64_t=no 5877fi 5878rm -f conftest* 5879 5880fi 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5 5882$as_echo "$ac_cv_type_uint64_t" >&6; } 5883if test $ac_cv_type_uint64_t = no; then 5884 5885$as_echo "#define uint64_t unsigned long long" >>confdefs.h 5886 5887fi 5888 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 5890$as_echo_n "checking for socklen_t... " >&6; } 5891if ${ac_cv_type_socklen_t+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895/* end confdefs.h. */ 5896 5897#include <sys/types.h> 5898#if STDC_HEADERS 5899#include <stdlib.h> 5900#include <stddef.h> 5901#endif 5902 5903#ifdef HAVE_STDINT_H 5904#include <stdint.h> 5905#endif 5906 5907#ifdef HAVE_SYS_SOCKET_H 5908#include <sys/socket.h> 5909#endif 5910 5911#ifdef HAVE_ARPA_INET_H 5912#include <arpa/inet.h> 5913#endif 5914 5915#ifdef HAVE_SIGNAL_H 5916#include <signal.h> 5917#endif 5918 5919/* For Tru64 */ 5920#ifdef HAVE_SYS_BITYPES_H 5921#include <sys/bitypes.h> 5922#endif 5923 5924_ACEOF 5925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5926 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5927 ac_cv_type_socklen_t=yes 5928else 5929 ac_cv_type_socklen_t=no 5930fi 5931rm -f conftest* 5932 5933fi 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 5935$as_echo "$ac_cv_type_socklen_t" >&6; } 5936if test $ac_cv_type_socklen_t = no; then 5937 5938$as_echo "#define socklen_t int" >>confdefs.h 5939 5940fi 5941 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 5943$as_echo_n "checking for sig_atomic_t... " >&6; } 5944if ${ac_cv_type_sig_atomic_t+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946else 5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5948/* end confdefs.h. */ 5949 5950#include <sys/types.h> 5951#if STDC_HEADERS 5952#include <stdlib.h> 5953#include <stddef.h> 5954#endif 5955 5956#ifdef HAVE_STDINT_H 5957#include <stdint.h> 5958#endif 5959 5960#ifdef HAVE_SYS_SOCKET_H 5961#include <sys/socket.h> 5962#endif 5963 5964#ifdef HAVE_ARPA_INET_H 5965#include <arpa/inet.h> 5966#endif 5967 5968#ifdef HAVE_SIGNAL_H 5969#include <signal.h> 5970#endif 5971 5972/* For Tru64 */ 5973#ifdef HAVE_SYS_BITYPES_H 5974#include <sys/bitypes.h> 5975#endif 5976 5977_ACEOF 5978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5979 $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 5980 ac_cv_type_sig_atomic_t=yes 5981else 5982 ac_cv_type_sig_atomic_t=no 5983fi 5984rm -f conftest* 5985 5986fi 5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 5988$as_echo "$ac_cv_type_sig_atomic_t" >&6; } 5989if test $ac_cv_type_sig_atomic_t = no; then 5990 5991$as_echo "#define sig_atomic_t int" >>confdefs.h 5992 5993fi 5994 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 5996$as_echo_n "checking for ssize_t... " >&6; } 5997if ${ac_cv_type_ssize_t+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6001/* end confdefs.h. */ 6002 6003#include <sys/types.h> 6004#if STDC_HEADERS 6005#include <stdlib.h> 6006#include <stddef.h> 6007#endif 6008 6009#ifdef HAVE_STDINT_H 6010#include <stdint.h> 6011#endif 6012 6013#ifdef HAVE_SYS_SOCKET_H 6014#include <sys/socket.h> 6015#endif 6016 6017#ifdef HAVE_ARPA_INET_H 6018#include <arpa/inet.h> 6019#endif 6020 6021#ifdef HAVE_SIGNAL_H 6022#include <signal.h> 6023#endif 6024 6025/* For Tru64 */ 6026#ifdef HAVE_SYS_BITYPES_H 6027#include <sys/bitypes.h> 6028#endif 6029 6030_ACEOF 6031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6032 $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6033 ac_cv_type_ssize_t=yes 6034else 6035 ac_cv_type_ssize_t=no 6036fi 6037rm -f conftest* 6038 6039fi 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5 6041$as_echo "$ac_cv_type_ssize_t" >&6; } 6042if test $ac_cv_type_ssize_t = no; then 6043 6044$as_echo "#define ssize_t int" >>confdefs.h 6045 6046fi 6047 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suseconds_t" >&5 6049$as_echo_n "checking for suseconds_t... " >&6; } 6050if ${ac_cv_type_suseconds_t+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054/* end confdefs.h. */ 6055 6056#include <sys/types.h> 6057#if STDC_HEADERS 6058#include <stdlib.h> 6059#include <stddef.h> 6060#endif 6061 6062#ifdef HAVE_STDINT_H 6063#include <stdint.h> 6064#endif 6065 6066#ifdef HAVE_SYS_SOCKET_H 6067#include <sys/socket.h> 6068#endif 6069 6070#ifdef HAVE_ARPA_INET_H 6071#include <arpa/inet.h> 6072#endif 6073 6074#ifdef HAVE_SIGNAL_H 6075#include <signal.h> 6076#endif 6077 6078/* For Tru64 */ 6079#ifdef HAVE_SYS_BITYPES_H 6080#include <sys/bitypes.h> 6081#endif 6082 6083_ACEOF 6084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6085 $EGREP "(^|[^a-zA-Z_0-9])suseconds_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 6086 ac_cv_type_suseconds_t=yes 6087else 6088 ac_cv_type_suseconds_t=no 6089fi 6090rm -f conftest* 6091 6092fi 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_suseconds_t" >&5 6094$as_echo "$ac_cv_type_suseconds_t" >&6; } 6095if test $ac_cv_type_suseconds_t = no; then 6096 6097$as_echo "#define suseconds_t time_t" >>confdefs.h 6098 6099fi 6100 6101 6102ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 6103#if HAVE_SYS_TYPES_H 6104# include <sys/types.h> 6105#endif 6106#if HAVE_NETINET_IN_H 6107# include <netinet/in.h> 6108#endif 6109" 6110if test "x$ac_cv_type_in_addr_t" = xyes; then : 6111 6112else 6113 6114$as_echo "#define in_addr_t uint32_t" >>confdefs.h 6115 6116fi 6117 6118ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default 6119#ifdef HAVE_NETINET_IN_H 6120#include <netinet/in.h> 6121#endif 6122#ifdef HAVE_SYS_SOCKET_H 6123#include <sys/socket.h> 6124#endif 6125#ifdef HAVE_NETDB_H 6126#include <netdb.h> 6127#endif 6128#ifdef HAVE_ARPA_INET_H 6129#include <arpa/inet.h> 6130#endif 6131 6132" 6133if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 6134 6135else 6136 6137 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default 6138#ifdef HAVE_NETINET_IN_H 6139#include <netinet/in.h> 6140#endif 6141#ifdef HAVE_SYS_SOCKET_H 6142#include <sys/socket.h> 6143#endif 6144#ifdef HAVE_NETDB_H 6145#include <netdb.h> 6146#endif 6147#ifdef HAVE_ARPA_INET_H 6148#include <arpa/inet.h> 6149#endif 6150 6151" 6152if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 6153 6154 6155$as_echo "#define ss_family __ss_family" >>confdefs.h 6156 6157 6158fi 6159 6160 6161fi 6162 6163 6164# Checks for library functions. 6165for ac_header in unistd.h 6166do : 6167 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 6168if test "x$ac_cv_header_unistd_h" = xyes; then : 6169 cat >>confdefs.h <<_ACEOF 6170#define HAVE_UNISTD_H 1 6171_ACEOF 6172 6173fi 6174 6175done 6176 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 6178$as_echo_n "checking for working chown... " >&6; } 6179if ${ac_cv_func_chown_works+:} false; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 if test "$cross_compiling" = yes; then : 6183 ac_cv_func_chown_works=no 6184else 6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186/* end confdefs.h. */ 6187$ac_includes_default 6188#include <fcntl.h> 6189 6190int 6191main () 6192{ 6193 char *f = "conftest.chown"; 6194 struct stat before, after; 6195 6196 if (creat (f, 0600) < 0) 6197 return 1; 6198 if (stat (f, &before) < 0) 6199 return 1; 6200 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 6201 return 1; 6202 if (stat (f, &after) < 0) 6203 return 1; 6204 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 6205 6206 ; 6207 return 0; 6208} 6209_ACEOF 6210if ac_fn_c_try_run "$LINENO"; then : 6211 ac_cv_func_chown_works=yes 6212else 6213 ac_cv_func_chown_works=no 6214fi 6215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6216 conftest.$ac_objext conftest.beam conftest.$ac_ext 6217fi 6218 6219rm -f conftest.chown 6220 6221fi 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 6223$as_echo "$ac_cv_func_chown_works" >&6; } 6224if test $ac_cv_func_chown_works = yes; then 6225 6226$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 6227 6228fi 6229 6230for ac_header in vfork.h 6231do : 6232 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 6233if test "x$ac_cv_header_vfork_h" = xyes; then : 6234 cat >>confdefs.h <<_ACEOF 6235#define HAVE_VFORK_H 1 6236_ACEOF 6237 6238fi 6239 6240done 6241 6242for ac_func in fork vfork 6243do : 6244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6246if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6247 cat >>confdefs.h <<_ACEOF 6248#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6249_ACEOF 6250 6251fi 6252done 6253 6254if test "x$ac_cv_func_fork" = xyes; then 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 6256$as_echo_n "checking for working fork... " >&6; } 6257if ${ac_cv_func_fork_works+:} false; then : 6258 $as_echo_n "(cached) " >&6 6259else 6260 if test "$cross_compiling" = yes; then : 6261 ac_cv_func_fork_works=cross 6262else 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265$ac_includes_default 6266int 6267main () 6268{ 6269 6270 /* By Ruediger Kuhlmann. */ 6271 return fork () < 0; 6272 6273 ; 6274 return 0; 6275} 6276_ACEOF 6277if ac_fn_c_try_run "$LINENO"; then : 6278 ac_cv_func_fork_works=yes 6279else 6280 ac_cv_func_fork_works=no 6281fi 6282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6283 conftest.$ac_objext conftest.beam conftest.$ac_ext 6284fi 6285 6286fi 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 6288$as_echo "$ac_cv_func_fork_works" >&6; } 6289 6290else 6291 ac_cv_func_fork_works=$ac_cv_func_fork 6292fi 6293if test "x$ac_cv_func_fork_works" = xcross; then 6294 case $host in 6295 *-*-amigaos* | *-*-msdosdjgpp*) 6296 # Override, as these systems have only a dummy fork() stub 6297 ac_cv_func_fork_works=no 6298 ;; 6299 *) 6300 ac_cv_func_fork_works=yes 6301 ;; 6302 esac 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 6304$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 6305fi 6306ac_cv_func_vfork_works=$ac_cv_func_vfork 6307if test "x$ac_cv_func_vfork" = xyes; then 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 6309$as_echo_n "checking for working vfork... " >&6; } 6310if ${ac_cv_func_vfork_works+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 if test "$cross_compiling" = yes; then : 6314 ac_cv_func_vfork_works=cross 6315else 6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6317/* end confdefs.h. */ 6318/* Thanks to Paul Eggert for this test. */ 6319$ac_includes_default 6320#include <sys/wait.h> 6321#ifdef HAVE_VFORK_H 6322# include <vfork.h> 6323#endif 6324/* On some sparc systems, changes by the child to local and incoming 6325 argument registers are propagated back to the parent. The compiler 6326 is told about this with #include <vfork.h>, but some compilers 6327 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 6328 static variable whose address is put into a register that is 6329 clobbered by the vfork. */ 6330static void 6331#ifdef __cplusplus 6332sparc_address_test (int arg) 6333# else 6334sparc_address_test (arg) int arg; 6335#endif 6336{ 6337 static pid_t child; 6338 if (!child) { 6339 child = vfork (); 6340 if (child < 0) { 6341 perror ("vfork"); 6342 _exit(2); 6343 } 6344 if (!child) { 6345 arg = getpid(); 6346 write(-1, "", 0); 6347 _exit (arg); 6348 } 6349 } 6350} 6351 6352int 6353main () 6354{ 6355 pid_t parent = getpid (); 6356 pid_t child; 6357 6358 sparc_address_test (0); 6359 6360 child = vfork (); 6361 6362 if (child == 0) { 6363 /* Here is another test for sparc vfork register problems. This 6364 test uses lots of local variables, at least as many local 6365 variables as main has allocated so far including compiler 6366 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 6367 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 6368 reuse the register of parent for one of the local variables, 6369 since it will think that parent can't possibly be used any more 6370 in this routine. Assigning to the local variable will thus 6371 munge parent in the parent process. */ 6372 pid_t 6373 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 6374 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 6375 /* Convince the compiler that p..p7 are live; otherwise, it might 6376 use the same hardware register for all 8 local variables. */ 6377 if (p != p1 || p != p2 || p != p3 || p != p4 6378 || p != p5 || p != p6 || p != p7) 6379 _exit(1); 6380 6381 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 6382 from child file descriptors. If the child closes a descriptor 6383 before it execs or exits, this munges the parent's descriptor 6384 as well. Test for this by closing stdout in the child. */ 6385 _exit(close(fileno(stdout)) != 0); 6386 } else { 6387 int status; 6388 struct stat st; 6389 6390 while (wait(&status) != child) 6391 ; 6392 return ( 6393 /* Was there some problem with vforking? */ 6394 child < 0 6395 6396 /* Did the child fail? (This shouldn't happen.) */ 6397 || status 6398 6399 /* Did the vfork/compiler bug occur? */ 6400 || parent != getpid() 6401 6402 /* Did the file descriptor bug occur? */ 6403 || fstat(fileno(stdout), &st) != 0 6404 ); 6405 } 6406} 6407_ACEOF 6408if ac_fn_c_try_run "$LINENO"; then : 6409 ac_cv_func_vfork_works=yes 6410else 6411 ac_cv_func_vfork_works=no 6412fi 6413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6414 conftest.$ac_objext conftest.beam conftest.$ac_ext 6415fi 6416 6417fi 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 6419$as_echo "$ac_cv_func_vfork_works" >&6; } 6420 6421fi; 6422if test "x$ac_cv_func_fork_works" = xcross; then 6423 ac_cv_func_vfork_works=$ac_cv_func_vfork 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 6425$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 6426fi 6427 6428if test "x$ac_cv_func_vfork_works" = xyes; then 6429 6430$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 6431 6432else 6433 6434$as_echo "#define vfork fork" >>confdefs.h 6435 6436fi 6437if test "x$ac_cv_func_fork_works" = xyes; then 6438 6439$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 6440 6441fi 6442 6443for ac_header in stdlib.h 6444do : 6445 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 6446if test "x$ac_cv_header_stdlib_h" = xyes; then : 6447 cat >>confdefs.h <<_ACEOF 6448#define HAVE_STDLIB_H 1 6449_ACEOF 6450 6451fi 6452 6453done 6454 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 6456$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 6457if ${ac_cv_func_malloc_0_nonnull+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 if test "$cross_compiling" = yes; then : 6461 ac_cv_func_malloc_0_nonnull=no 6462else 6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465#if defined STDC_HEADERS || defined HAVE_STDLIB_H 6466# include <stdlib.h> 6467#else 6468char *malloc (); 6469#endif 6470 6471int 6472main () 6473{ 6474return ! malloc (0); 6475 ; 6476 return 0; 6477} 6478_ACEOF 6479if ac_fn_c_try_run "$LINENO"; then : 6480 ac_cv_func_malloc_0_nonnull=yes 6481else 6482 ac_cv_func_malloc_0_nonnull=no 6483fi 6484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6485 conftest.$ac_objext conftest.beam conftest.$ac_ext 6486fi 6487 6488fi 6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 6490$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 6491if test $ac_cv_func_malloc_0_nonnull = yes; then : 6492 6493$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 6494 6495else 6496 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 6497 6498 case " $LIBOBJS " in 6499 *" malloc.$ac_objext "* ) ;; 6500 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 6501 ;; 6502esac 6503 6504 6505$as_echo "#define malloc rpl_malloc" >>confdefs.h 6506 6507fi 6508 6509 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 6511$as_echo_n "checking return type of signal handlers... " >&6; } 6512if ${ac_cv_type_signal+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516/* end confdefs.h. */ 6517#include <sys/types.h> 6518#include <signal.h> 6519 6520int 6521main () 6522{ 6523return *(signal (0, 0)) (0) == 1; 6524 ; 6525 return 0; 6526} 6527_ACEOF 6528if ac_fn_c_try_compile "$LINENO"; then : 6529 ac_cv_type_signal=int 6530else 6531 ac_cv_type_signal=void 6532fi 6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6534fi 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 6536$as_echo "$ac_cv_type_signal" >&6; } 6537 6538cat >>confdefs.h <<_ACEOF 6539#define RETSIGTYPE $ac_cv_type_signal 6540_ACEOF 6541 6542 6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6544$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 6545if ${ac_cv_sys_largefile_source+:} false; then : 6546 $as_echo_n "(cached) " >&6 6547else 6548 while :; do 6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6550/* end confdefs.h. */ 6551#include <sys/types.h> /* for off_t */ 6552 #include <stdio.h> 6553int 6554main () 6555{ 6556int (*fp) (FILE *, off_t, int) = fseeko; 6557 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6558 ; 6559 return 0; 6560} 6561_ACEOF 6562if ac_fn_c_try_link "$LINENO"; then : 6563 ac_cv_sys_largefile_source=no; break 6564fi 6565rm -f core conftest.err conftest.$ac_objext \ 6566 conftest$ac_exeext conftest.$ac_ext 6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6568/* end confdefs.h. */ 6569#define _LARGEFILE_SOURCE 1 6570#include <sys/types.h> /* for off_t */ 6571 #include <stdio.h> 6572int 6573main () 6574{ 6575int (*fp) (FILE *, off_t, int) = fseeko; 6576 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6577 ; 6578 return 0; 6579} 6580_ACEOF 6581if ac_fn_c_try_link "$LINENO"; then : 6582 ac_cv_sys_largefile_source=1; break 6583fi 6584rm -f core conftest.err conftest.$ac_objext \ 6585 conftest$ac_exeext conftest.$ac_ext 6586 ac_cv_sys_largefile_source=unknown 6587 break 6588done 6589fi 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 6591$as_echo "$ac_cv_sys_largefile_source" >&6; } 6592case $ac_cv_sys_largefile_source in #( 6593 no | unknown) ;; 6594 *) 6595cat >>confdefs.h <<_ACEOF 6596#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6597_ACEOF 6598;; 6599esac 6600rm -rf conftest* 6601 6602# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 6603# in glibc 2.1.3, but that breaks too many other things. 6604# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 6605if test $ac_cv_sys_largefile_source != unknown; then 6606 6607$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 6608 6609fi 6610 6611# Check whether --enable-largefile was given. 6612if test "${enable_largefile+set}" = set; then : 6613 enableval=$enable_largefile; 6614fi 6615 6616if test "$enable_largefile" != no; then 6617 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6619$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6620if ${ac_cv_sys_largefile_CC+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622else 6623 ac_cv_sys_largefile_CC=no 6624 if test "$GCC" != yes; then 6625 ac_save_CC=$CC 6626 while :; do 6627 # IRIX 6.2 and later do not support large files by default, 6628 # so use the C compiler's -n32 option if that helps. 6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6630/* end confdefs.h. */ 6631#include <sys/types.h> 6632 /* Check that off_t can represent 2**63 - 1 correctly. 6633 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6634 since some C++ compilers masquerading as C compilers 6635 incorrectly reject 9223372036854775807. */ 6636#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6638 && LARGE_OFF_T % 2147483647 == 1) 6639 ? 1 : -1]; 6640int 6641main () 6642{ 6643 6644 ; 6645 return 0; 6646} 6647_ACEOF 6648 if ac_fn_c_try_compile "$LINENO"; then : 6649 break 6650fi 6651rm -f core conftest.err conftest.$ac_objext 6652 CC="$CC -n32" 6653 if ac_fn_c_try_compile "$LINENO"; then : 6654 ac_cv_sys_largefile_CC=' -n32'; break 6655fi 6656rm -f core conftest.err conftest.$ac_objext 6657 break 6658 done 6659 CC=$ac_save_CC 6660 rm -f conftest.$ac_ext 6661 fi 6662fi 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6664$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6665 if test "$ac_cv_sys_largefile_CC" != no; then 6666 CC=$CC$ac_cv_sys_largefile_CC 6667 fi 6668 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6670$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6671if ${ac_cv_sys_file_offset_bits+:} false; then : 6672 $as_echo_n "(cached) " >&6 6673else 6674 while :; do 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677#include <sys/types.h> 6678 /* Check that off_t can represent 2**63 - 1 correctly. 6679 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6680 since some C++ compilers masquerading as C compilers 6681 incorrectly reject 9223372036854775807. */ 6682#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6684 && LARGE_OFF_T % 2147483647 == 1) 6685 ? 1 : -1]; 6686int 6687main () 6688{ 6689 6690 ; 6691 return 0; 6692} 6693_ACEOF 6694if ac_fn_c_try_compile "$LINENO"; then : 6695 ac_cv_sys_file_offset_bits=no; break 6696fi 6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699/* end confdefs.h. */ 6700#define _FILE_OFFSET_BITS 64 6701#include <sys/types.h> 6702 /* Check that off_t can represent 2**63 - 1 correctly. 6703 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6704 since some C++ compilers masquerading as C compilers 6705 incorrectly reject 9223372036854775807. */ 6706#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6708 && LARGE_OFF_T % 2147483647 == 1) 6709 ? 1 : -1]; 6710int 6711main () 6712{ 6713 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_compile "$LINENO"; then : 6719 ac_cv_sys_file_offset_bits=64; break 6720fi 6721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6722 ac_cv_sys_file_offset_bits=unknown 6723 break 6724done 6725fi 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6727$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6728case $ac_cv_sys_file_offset_bits in #( 6729 no | unknown) ;; 6730 *) 6731cat >>confdefs.h <<_ACEOF 6732#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6733_ACEOF 6734;; 6735esac 6736rm -rf conftest* 6737 if test $ac_cv_sys_file_offset_bits = unknown; then 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6739$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6740if ${ac_cv_sys_large_files+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 while :; do 6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745/* end confdefs.h. */ 6746#include <sys/types.h> 6747 /* Check that off_t can represent 2**63 - 1 correctly. 6748 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6749 since some C++ compilers masquerading as C compilers 6750 incorrectly reject 9223372036854775807. */ 6751#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6753 && LARGE_OFF_T % 2147483647 == 1) 6754 ? 1 : -1]; 6755int 6756main () 6757{ 6758 6759 ; 6760 return 0; 6761} 6762_ACEOF 6763if ac_fn_c_try_compile "$LINENO"; then : 6764 ac_cv_sys_large_files=no; break 6765fi 6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6768/* end confdefs.h. */ 6769#define _LARGE_FILES 1 6770#include <sys/types.h> 6771 /* Check that off_t can represent 2**63 - 1 correctly. 6772 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6773 since some C++ compilers masquerading as C compilers 6774 incorrectly reject 9223372036854775807. */ 6775#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6777 && LARGE_OFF_T % 2147483647 == 1) 6778 ? 1 : -1]; 6779int 6780main () 6781{ 6782 6783 ; 6784 return 0; 6785} 6786_ACEOF 6787if ac_fn_c_try_compile "$LINENO"; then : 6788 ac_cv_sys_large_files=1; break 6789fi 6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6791 ac_cv_sys_large_files=unknown 6792 break 6793done 6794fi 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6796$as_echo "$ac_cv_sys_large_files" >&6; } 6797case $ac_cv_sys_large_files in #( 6798 no | unknown) ;; 6799 *) 6800cat >>confdefs.h <<_ACEOF 6801#define _LARGE_FILES $ac_cv_sys_large_files 6802_ACEOF 6803;; 6804esac 6805rm -rf conftest* 6806 fi 6807fi 6808 6809for ac_func in arc4random arc4random_uniform 6810do : 6811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6813if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6814 cat >>confdefs.h <<_ACEOF 6815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6816_ACEOF 6817 6818fi 6819done 6820 6821for ac_func in tzset alarm chroot dup2 endpwent gethostname memset memcpy socket strcasecmp strchr strdup strerror strncasecmp strtol writev getaddrinfo getnameinfo freeaddrinfo gai_strerror sigaction sigprocmask strptime setusercontext initgroups setresuid setreuid setresgid setregid getpwnam mmap 6822do : 6823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6824ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6825if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6826 cat >>confdefs.h <<_ACEOF 6827#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6828_ACEOF 6829 6830fi 6831done 6832 6833 6834# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 6835if echo $build_os | grep darwin8 > /dev/null; then 6836 6837$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 6838 6839fi 6840 6841# 6842# Checking for missing functions we can replace 6843# 6844ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename" 6845if test "x$ac_cv_func_basename" = xyes; then : 6846 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h 6847 6848else 6849 case " $LIBOBJS " in 6850 *" basename.$ac_objext "* ) ;; 6851 *) LIBOBJS="$LIBOBJS basename.$ac_objext" 6852 ;; 6853esac 6854 6855fi 6856 6857 6858ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 6859if test "x$ac_cv_func_inet_aton" = xyes; then : 6860 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 6861 6862else 6863 case " $LIBOBJS " in 6864 *" inet_aton.$ac_objext "* ) ;; 6865 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 6866 ;; 6867esac 6868 6869fi 6870 6871 6872ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 6873if test "x$ac_cv_func_inet_pton" = xyes; then : 6874 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 6875 6876else 6877 case " $LIBOBJS " in 6878 *" inet_pton.$ac_objext "* ) ;; 6879 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 6880 ;; 6881esac 6882 6883fi 6884 6885 6886ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 6887if test "x$ac_cv_func_inet_ntop" = xyes; then : 6888 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 6889 6890else 6891 case " $LIBOBJS " in 6892 *" inet_ntop.$ac_objext "* ) ;; 6893 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 6894 ;; 6895esac 6896 6897fi 6898 6899 6900ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 6901if test "x$ac_cv_func_snprintf" = xyes; then : 6902 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 6903 6904else 6905 case " $LIBOBJS " in 6906 *" snprintf.$ac_objext "* ) ;; 6907 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 6908 ;; 6909esac 6910 6911fi 6912 6913 6914ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 6915if test "x$ac_cv_func_strlcat" = xyes; then : 6916 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 6917 6918else 6919 case " $LIBOBJS " in 6920 *" strlcat.$ac_objext "* ) ;; 6921 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 6922 ;; 6923esac 6924 6925fi 6926 6927 6928ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 6929if test "x$ac_cv_func_strlcpy" = xyes; then : 6930 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 6931 6932else 6933 case " $LIBOBJS " in 6934 *" strlcpy.$ac_objext "* ) ;; 6935 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 6936 ;; 6937esac 6938 6939fi 6940 6941 6942ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 6943if test "x$ac_cv_func_strptime" = xyes; then : 6944 $as_echo "#define HAVE_STRPTIME 1" >>confdefs.h 6945 6946else 6947 case " $LIBOBJS " in 6948 *" strptime.$ac_objext "* ) ;; 6949 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 6950 ;; 6951esac 6952 6953fi 6954 6955 6956ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton" 6957if test "x$ac_cv_func_b64_pton" = xyes; then : 6958 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h 6959 6960else 6961 case " $LIBOBJS " in 6962 *" b64_pton.$ac_objext "* ) ;; 6963 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext" 6964 ;; 6965esac 6966 6967fi 6968 6969 6970ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop" 6971if test "x$ac_cv_func_b64_ntop" = xyes; then : 6972 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h 6973 6974else 6975 case " $LIBOBJS " in 6976 *" b64_ntop.$ac_objext "* ) ;; 6977 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext" 6978 ;; 6979esac 6980 6981fi 6982 6983 6984ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect" 6985if test "x$ac_cv_func_pselect" = xyes; then : 6986 $as_echo "#define HAVE_PSELECT 1" >>confdefs.h 6987 6988else 6989 case " $LIBOBJS " in 6990 *" pselect.$ac_objext "* ) ;; 6991 *) LIBOBJS="$LIBOBJS pselect.$ac_objext" 6992 ;; 6993esac 6994 6995fi 6996 6997 6998ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 6999if test "x$ac_cv_func_memmove" = xyes; then : 7000 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 7001 7002else 7003 case " $LIBOBJS " in 7004 *" memmove.$ac_objext "* ) ;; 7005 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 7006 ;; 7007esac 7008 7009fi 7010 7011 7012 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect prototype in sys/select.h" >&5 7014$as_echo_n "checking for pselect prototype in sys/select.h... " >&6; } 7015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7016/* end confdefs.h. */ 7017#include <sys/select.h> 7018 7019_ACEOF 7020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7021 $EGREP "[^a-zA-Z_]*pselect[^a-zA-Z_]" >/dev/null 2>&1; then : 7022 7023$as_echo "#define HAVE_PSELECT_PROTO 1" >>confdefs.h 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7025$as_echo "yes" >&6; } 7026else 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7028$as_echo "no" >&6; } 7029fi 7030rm -f conftest* 7031 7032 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime_r prototype in time.h" >&5 7034$as_echo_n "checking for ctime_r prototype in time.h... " >&6; } 7035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037#include <time.h> 7038 7039_ACEOF 7040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7041 $EGREP "[^a-zA-Z_]*ctime_r[^a-zA-Z_]" >/dev/null 2>&1; then : 7042 7043$as_echo "#define HAVE_CTIME_R_PROTO 1" >>confdefs.h 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7045$as_echo "yes" >&6; } 7046else 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7048$as_echo "no" >&6; } 7049fi 7050rm -f conftest* 7051 7052 7053ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" " 7054$ac_includes_default 7055#ifdef HAVE_SIGNAL_H 7056#include <signal.h> 7057#endif 7058#ifdef HAVE_TIME_H 7059#include <time.h> 7060#endif 7061 7062" 7063if test "x$ac_cv_type_struct_timespec" = xyes; then : 7064 7065$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 7066 7067fi 7068 7069 7070 7071cat >>confdefs.h <<_ACEOF 7072#define IDENTITY "unidentified server" 7073_ACEOF 7074 7075 7076cat >>confdefs.h <<_ACEOF 7077#define VERSION PACKAGE_STRING 7078_ACEOF 7079 7080 7081cat >>confdefs.h <<_ACEOF 7082#define TCP_BACKLOG 5 7083_ACEOF 7084 7085 7086cat >>confdefs.h <<_ACEOF 7087#define TCP_PORT "53" 7088_ACEOF 7089 7090 7091cat >>confdefs.h <<_ACEOF 7092#define TCP_MAX_MESSAGE_LEN 65535 7093_ACEOF 7094 7095 7096cat >>confdefs.h <<_ACEOF 7097#define UDP_PORT "53" 7098_ACEOF 7099 7100 7101cat >>confdefs.h <<_ACEOF 7102#define UDP_MAX_MESSAGE_LEN 512 7103_ACEOF 7104 7105 7106cat >>confdefs.h <<_ACEOF 7107#define EDNS_MAX_MESSAGE_LEN 4096 7108_ACEOF 7109 7110 7111cat >>confdefs.h <<_ACEOF 7112#define MAXSYSLOGMSGLEN 512 7113_ACEOF 7114 7115 7116facility=LOG_DAEMON 7117 7118# Check whether --with-facility was given. 7119if test "${with_facility+set}" = set; then : 7120 withval=$with_facility; facility=$withval 7121fi 7122 7123 7124cat >>confdefs.h <<_ACEOF 7125#define FACILITY $facility 7126_ACEOF 7127 7128 7129max_ips=8 7130 7131# Check whether --with-max_ips was given. 7132if test "${with_max_ips+set}" = set; then : 7133 withval=$with_max_ips; max_ips=$withval 7134fi 7135 7136 7137cat >>confdefs.h <<_ACEOF 7138#define MAX_INTERFACES $max_ips 7139_ACEOF 7140 7141 7142tcp_timeout=120 7143 7144# Check whether --with-tcp_timeout was given. 7145if test "${with_tcp_timeout+set}" = set; then : 7146 withval=$with_tcp_timeout; tcp_timeout=$withval 7147fi 7148 7149 7150cat >>confdefs.h <<_ACEOF 7151#define TCP_TIMEOUT $tcp_timeout 7152_ACEOF 7153 7154 7155# Check whether --enable-root-server was given. 7156if test "${enable_root_server+set}" = set; then : 7157 enableval=$enable_root_server; 7158fi 7159 7160case "$enable_root_server" in 7161 yes) 7162 7163cat >>confdefs.h <<_ACEOF 7164#define ROOT_SERVER /**/ 7165_ACEOF 7166 7167 ;; 7168 no|*) 7169 ;; 7170esac 7171 7172# Check whether --enable-ipv6 was given. 7173if test "${enable_ipv6+set}" = set; then : 7174 enableval=$enable_ipv6; 7175fi 7176 7177case "$enable_ipv6" in 7178 no) 7179 ;; 7180 yes|*) 7181 7182cat >>confdefs.h <<_ACEOF 7183#define INET6 /**/ 7184_ACEOF 7185 7186 ;; 7187esac 7188 7189# Check whether --enable-bind8-stats was given. 7190if test "${enable_bind8_stats+set}" = set; then : 7191 enableval=$enable_bind8_stats; 7192fi 7193 7194 7195case "$enable_bind8_stats" in 7196 yes|'') 7197 7198cat >>confdefs.h <<_ACEOF 7199#define BIND8_STATS /**/ 7200_ACEOF 7201 7202 ;; 7203 no|*) 7204 ;; 7205esac 7206 7207# Check whether --enable-checking was given. 7208if test "${enable_checking+set}" = set; then : 7209 enableval=$enable_checking; 7210fi 7211 7212case "$enable_checking" in 7213 yes) 7214 7215 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 7217$as_echo_n "checking whether $CC supports -W... " >&6; } 7218cache=`echo W | sed 'y%.=/+-%___p_%'` 7219if eval \${cv_prog_cc_flag_$cache+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221else 7222 7223echo 'void f(){}' >conftest.c 7224if test -z "`$CC -W -c conftest.c 2>&1`"; then 7225eval "cv_prog_cc_flag_$cache=yes" 7226else 7227eval "cv_prog_cc_flag_$cache=no" 7228fi 7229rm -f conftest* 7230 7231fi 7232 7233if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7235$as_echo "yes" >&6; } 7236: 7237 CFLAGS="$CFLAGS -W" 7238else 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7240$as_echo "no" >&6; } 7241: 7242 7243fi 7244 7245 7246 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 7248$as_echo_n "checking whether $CC supports -Wall... " >&6; } 7249cache=`echo Wall | sed 'y%.=/+-%___p_%'` 7250if eval \${cv_prog_cc_flag_$cache+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 7254echo 'void f(){}' >conftest.c 7255if test -z "`$CC -Wall -c conftest.c 2>&1`"; then 7256eval "cv_prog_cc_flag_$cache=yes" 7257else 7258eval "cv_prog_cc_flag_$cache=no" 7259fi 7260rm -f conftest* 7261 7262fi 7263 7264if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7266$as_echo "yes" >&6; } 7267: 7268 CFLAGS="$CFLAGS -Wall" 7269else 7270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7271$as_echo "no" >&6; } 7272: 7273 7274fi 7275 7276 7277 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 7279$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 7280cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 7281if eval \${cv_prog_cc_flag_$cache+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 7285echo 'void f(){}' >conftest.c 7286if test -z "`$CC -Wextra -c conftest.c 2>&1`"; then 7287eval "cv_prog_cc_flag_$cache=yes" 7288else 7289eval "cv_prog_cc_flag_$cache=no" 7290fi 7291rm -f conftest* 7292 7293fi 7294 7295if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7297$as_echo "yes" >&6; } 7298: 7299 CFLAGS="$CFLAGS -Wextra" 7300else 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7302$as_echo "no" >&6; } 7303: 7304 7305fi 7306 7307 7308 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 7310$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 7311cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 7312if eval \${cv_prog_cc_flag_$cache+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 7316echo 'void f(){}' >conftest.c 7317if test -z "`$CC -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 7318eval "cv_prog_cc_flag_$cache=yes" 7319else 7320eval "cv_prog_cc_flag_$cache=no" 7321fi 7322rm -f conftest* 7323 7324fi 7325 7326if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7328$as_echo "yes" >&6; } 7329: 7330 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7331else 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7333$as_echo "no" >&6; } 7334: 7335 7336fi 7337 7338 ;; 7339 no|*) 7340 7341$as_echo "#define NDEBUG /**/" >>confdefs.h 7342 7343 ;; 7344esac 7345 7346# Check whether --enable-ratelimit was given. 7347if test "${enable_ratelimit+set}" = set; then : 7348 enableval=$enable_ratelimit; 7349fi 7350 7351case "$enable_ratelimit" in 7352 yes) 7353 7354cat >>confdefs.h <<_ACEOF 7355#define RATELIMIT /**/ 7356_ACEOF 7357 7358 ratelimit="xx" 7359 ;; 7360 no|*) 7361 ratelimit="" 7362 ;; 7363esac 7364 7365 7366# we need SSL for TSIG (and maybe also for NSEC3). 7367 7368 7369# Check whether --with-ssl was given. 7370if test "${with_ssl+set}" = set; then : 7371 withval=$with_ssl; 7372 7373else 7374 7375 withval="yes" 7376 7377fi 7378 7379 if test x_$withval != x_no; then 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 7381$as_echo_n "checking for SSL... " >&6; } 7382 if test x_$withval = x_ -o x_$withval = x_yes; then 7383 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/sfw /usr/local /usr" 7384 fi 7385 for dir in $withval; do 7386 ssldir="$dir" 7387 if test -f "$dir/include/openssl/ssl.h"; then 7388 found_ssl="yes"; 7389 7390cat >>confdefs.h <<_ACEOF 7391#define HAVE_SSL /**/ 7392_ACEOF 7393 7394 if test x_$ssldir != x_/usr; then 7395 CPPFLAGS="$CPPFLAGS -I$ssldir/include"; 7396 fi 7397 break; 7398 fi 7399 done 7400 if test x_$found_ssl != x_yes; then 7401 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 7402 else 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 7404$as_echo "found in $ssldir" >&6; } 7405 HAVE_SSL=yes 7406 if test x_$ssldir != x_/usr; then 7407 LDFLAGS="$LDFLAGS -L$ssldir/lib"; 7408 fi 7409 if test x_$ssldir = x_/usr/sfw; then 7410 LDFLAGS="$LDFLAGS -R$ssldir/lib"; 7411 fi 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 7413$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 7414if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then : 7415 $as_echo_n "(cached) " >&6 7416else 7417 ac_check_lib_save_LIBS=$LIBS 7418LIBS="-lcrypto $LIBS" 7419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7420/* end confdefs.h. */ 7421 7422/* Override any GCC internal prototype to avoid an error. 7423 Use char because int might match the return type of a GCC 7424 builtin and then its argument prototype would still apply. */ 7425#ifdef __cplusplus 7426extern "C" 7427#endif 7428char HMAC_CTX_init (); 7429int 7430main () 7431{ 7432return HMAC_CTX_init (); 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437if ac_fn_c_try_link "$LINENO"; then : 7438 ac_cv_lib_crypto_HMAC_CTX_init=yes 7439else 7440 ac_cv_lib_crypto_HMAC_CTX_init=no 7441fi 7442rm -f core conftest.err conftest.$ac_objext \ 7443 conftest$ac_exeext conftest.$ac_ext 7444LIBS=$ac_check_lib_save_LIBS 7445fi 7446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5 7447$as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; } 7448if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then : 7449 cat >>confdefs.h <<_ACEOF 7450#define HAVE_LIBCRYPTO 1 7451_ACEOF 7452 7453 LIBS="-lcrypto $LIBS" 7454 7455else 7456 7457 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 7458 7459fi 7460 7461 for ac_func in EVP_sha1 EVP_sha256 7462do : 7463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7464ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7465if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7466 cat >>confdefs.h <<_ACEOF 7467#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7468_ACEOF 7469 7470fi 7471done 7472 7473 fi 7474 7475 fi 7476 7477 7478# Check whether --enable-nsec3 was given. 7479if test "${enable_nsec3+set}" = set; then : 7480 enableval=$enable_nsec3; 7481fi 7482 7483case "$enable_nsec3" in 7484 no) 7485 ;; 7486 yes|*) 7487 7488cat >>confdefs.h <<_ACEOF 7489#define NSEC3 /**/ 7490_ACEOF 7491 7492 ;; 7493esac 7494 7495# Check whether --enable-full-prehash was given. 7496if test "${enable_full_prehash+set}" = set; then : 7497 enableval=$enable_full_prehash; 7498fi 7499 7500case "$enable_full_prehash" in 7501 no) 7502 ;; 7503 yes|*) 7504 7505cat >>confdefs.h <<_ACEOF 7506#define FULL_PREHASH /**/ 7507_ACEOF 7508 7509 ;; 7510esac 7511 7512# Check whether --enable-minimal-responses was given. 7513if test "${enable_minimal_responses+set}" = set; then : 7514 enableval=$enable_minimal_responses; 7515fi 7516 7517case "$enable_minimal_responses" in 7518 no) 7519 ;; 7520 yes|*) 7521 7522cat >>confdefs.h <<_ACEOF 7523#define MINIMAL_RESPONSES /**/ 7524_ACEOF 7525 7526 ;; 7527esac 7528 7529# Check whether --enable-mmap was given. 7530if test "${enable_mmap+set}" = set; then : 7531 enableval=$enable_mmap; 7532fi 7533 7534case "$enable_mmap" in 7535 yes) 7536 for ac_header in sys/mman.h 7537do : 7538 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 7539if test "x$ac_cv_header_sys_mman_h" = xyes; then : 7540 cat >>confdefs.h <<_ACEOF 7541#define HAVE_SYS_MMAN_H 1 7542_ACEOF 7543 7544fi 7545 7546done 7547 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 7549$as_echo_n "checking for uintptr_t... " >&6; } 7550if ${ac_cv_type_uintptr_t+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7554/* end confdefs.h. */ 7555 7556#include <sys/types.h> 7557#if STDC_HEADERS 7558#include <stdlib.h> 7559#include <stddef.h> 7560#endif 7561 7562#ifdef HAVE_STDINT_H 7563#include <stdint.h> 7564#endif 7565 7566#ifdef HAVE_SYS_SOCKET_H 7567#include <sys/socket.h> 7568#endif 7569 7570#ifdef HAVE_ARPA_INET_H 7571#include <arpa/inet.h> 7572#endif 7573 7574#ifdef HAVE_SIGNAL_H 7575#include <signal.h> 7576#endif 7577 7578/* For Tru64 */ 7579#ifdef HAVE_SYS_BITYPES_H 7580#include <sys/bitypes.h> 7581#endif 7582 7583_ACEOF 7584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7585 $EGREP "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 7586 ac_cv_type_uintptr_t=yes 7587else 7588 ac_cv_type_uintptr_t=no 7589fi 7590rm -f conftest* 7591 7592fi 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uintptr_t" >&5 7594$as_echo "$ac_cv_type_uintptr_t" >&6; } 7595if test $ac_cv_type_uintptr_t = no; then 7596 7597$as_echo "#define uintptr_t void*" >>confdefs.h 7598 7599fi 7600 7601 for ac_func in mmap munmap 7602do : 7603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7604ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7605if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7606 cat >>confdefs.h <<_ACEOF 7607#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7608_ACEOF 7609 7610fi 7611done 7612 7613 7614cat >>confdefs.h <<_ACEOF 7615#define USE_MMAP_ALLOC /**/ 7616_ACEOF 7617 7618 ;; 7619 no|*) 7620 ;; 7621esac 7622 7623# 7624# Default zonestatsfile 7625# 7626zonestatsfile=${localstatedir}/log/nsd.stats 7627 7628 7629cat >>confdefs.h <<_ACEOF 7630#define ZONESTATSFILE "`eval echo $zonestatsfile`" 7631_ACEOF 7632 7633# Check whether --enable-zone_stats was given. 7634if test "${enable_zone_stats+set}" = set; then : 7635 enableval=$enable_zone_stats; 7636fi 7637 7638case "$enable_zone_stats" in 7639 yes) 7640 7641cat >>confdefs.h <<_ACEOF 7642#define USE_ZONE_STATS /**/ 7643_ACEOF 7644 7645 ;; 7646 no|*) 7647 ;; 7648esac 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660if test $ac_cv_func_getaddrinfo = no; then 7661case " $LIBOBJS " in 7662 *" fake-rfc2553.$ac_objext "* ) ;; 7663 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 7664 ;; 7665esac 7666 7667fi 7668 7669 7670 7671 7672 7673 7674 7675# big fat warning 7676if test "$enable_checking" = "yes"; then 7677 echo "*************************************************" 7678 echo "* You have activated \"--enable-checking\" *" 7679 echo "* *" 7680 echo "* This will instruct NSD to be stricter *" 7681 echo "* when validating its input. This could lead *" 7682 echo "* to a reduced service level. *" 7683 echo "* *" 7684 echo "*************************************************" 7685fi 7686 7687if test "$enable_zone_stats" = "yes"; then 7688 echo "*************************************************" 7689 echo "* You have activated \"--enable-zone-stats\" *" 7690 echo "* *" 7691 echo "* This will make NSD maintain statistics *" 7692 echo "* on a per zone basis. This could lead to *" 7693 echo "* a reduced service level and an *" 7694 echo "* a larger memory footprint. *" 7695 echo "* *" 7696 echo "*************************************************" 7697fi 7698 7699ac_config_files="$ac_config_files Makefile" 7700 7701cat >confcache <<\_ACEOF 7702# This file is a shell script that caches the results of configure 7703# tests run on this system so they can be shared between configure 7704# scripts and configure runs, see configure's option --config-cache. 7705# It is not useful on other systems. If it contains results you don't 7706# want to keep, you may remove or edit it. 7707# 7708# config.status only pays attention to the cache file if you give it 7709# the --recheck option to rerun configure. 7710# 7711# `ac_cv_env_foo' variables (set or unset) will be overridden when 7712# loading this file, other *unset* `ac_cv_foo' will be assigned the 7713# following values. 7714 7715_ACEOF 7716 7717# The following way of writing the cache mishandles newlines in values, 7718# but we know of no workaround that is simple, portable, and efficient. 7719# So, we kill variables containing newlines. 7720# Ultrix sh set writes to stderr and can't be redirected directly, 7721# and sets the high bit in the cache file unless we assign to the vars. 7722( 7723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7724 eval ac_val=\$$ac_var 7725 case $ac_val in #( 7726 *${as_nl}*) 7727 case $ac_var in #( 7728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7729$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7730 esac 7731 case $ac_var in #( 7732 _ | IFS | as_nl) ;; #( 7733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7734 *) { eval $ac_var=; unset $ac_var;} ;; 7735 esac ;; 7736 esac 7737 done 7738 7739 (set) 2>&1 | 7740 case $as_nl`(ac_space=' '; set) 2>&1` in #( 7741 *${as_nl}ac_space=\ *) 7742 # `set' does not quote correctly, so add quotes: double-quote 7743 # substitution turns \\\\ into \\, and sed turns \\ into \. 7744 sed -n \ 7745 "s/'/'\\\\''/g; 7746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7747 ;; #( 7748 *) 7749 # `set' quotes correctly as required by POSIX, so do not add quotes. 7750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7751 ;; 7752 esac | 7753 sort 7754) | 7755 sed ' 7756 /^ac_cv_env_/b end 7757 t clear 7758 :clear 7759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7760 t end 7761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7762 :end' >>confcache 7763if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7764 if test -w "$cache_file"; then 7765 if test "x$cache_file" != "x/dev/null"; then 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7767$as_echo "$as_me: updating cache $cache_file" >&6;} 7768 if test ! -f "$cache_file" || test -h "$cache_file"; then 7769 cat confcache >"$cache_file" 7770 else 7771 case $cache_file in #( 7772 */* | ?:*) 7773 mv -f confcache "$cache_file"$$ && 7774 mv -f "$cache_file"$$ "$cache_file" ;; #( 7775 *) 7776 mv -f confcache "$cache_file" ;; 7777 esac 7778 fi 7779 fi 7780 else 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7782$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7783 fi 7784fi 7785rm -f confcache 7786 7787test "x$prefix" = xNONE && prefix=$ac_default_prefix 7788# Let make expand exec_prefix. 7789test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7790 7791DEFS=-DHAVE_CONFIG_H 7792 7793ac_libobjs= 7794ac_ltlibobjs= 7795U= 7796for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7797 # 1. Remove the extension, and $U if already installed. 7798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7799 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7801 # will be set to the directory where LIBOBJS objects are built. 7802 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7803 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7804done 7805LIBOBJS=$ac_libobjs 7806 7807LTLIBOBJS=$ac_ltlibobjs 7808 7809 7810 7811: "${CONFIG_STATUS=./config.status}" 7812ac_write_fail=0 7813ac_clean_files_save=$ac_clean_files 7814ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7815{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7816$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7817as_write_fail=0 7818cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7819#! $SHELL 7820# Generated by $as_me. 7821# Run this file to recreate the current configuration. 7822# Compiler output produced by configure, useful for debugging 7823# configure, is in config.log if it exists. 7824 7825debug=false 7826ac_cs_recheck=false 7827ac_cs_silent=false 7828 7829SHELL=\${CONFIG_SHELL-$SHELL} 7830export SHELL 7831_ASEOF 7832cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7833## -------------------- ## 7834## M4sh Initialization. ## 7835## -------------------- ## 7836 7837# Be more Bourne compatible 7838DUALCASE=1; export DUALCASE # for MKS sh 7839if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7840 emulate sh 7841 NULLCMD=: 7842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7843 # is contrary to our usage. Disable this feature. 7844 alias -g '${1+"$@"}'='"$@"' 7845 setopt NO_GLOB_SUBST 7846else 7847 case `(set -o) 2>/dev/null` in #( 7848 *posix*) : 7849 set -o posix ;; #( 7850 *) : 7851 ;; 7852esac 7853fi 7854 7855 7856as_nl=' 7857' 7858export as_nl 7859# Printing a long string crashes Solaris 7 /usr/bin/printf. 7860as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7861as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7862as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7863# Prefer a ksh shell builtin over an external printf program on Solaris, 7864# but without wasting forks for bash or zsh. 7865if test -z "$BASH_VERSION$ZSH_VERSION" \ 7866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7867 as_echo='print -r --' 7868 as_echo_n='print -rn --' 7869elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7870 as_echo='printf %s\n' 7871 as_echo_n='printf %s' 7872else 7873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7875 as_echo_n='/usr/ucb/echo -n' 7876 else 7877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7878 as_echo_n_body='eval 7879 arg=$1; 7880 case $arg in #( 7881 *"$as_nl"*) 7882 expr "X$arg" : "X\\(.*\\)$as_nl"; 7883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7884 esac; 7885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7886 ' 7887 export as_echo_n_body 7888 as_echo_n='sh -c $as_echo_n_body as_echo' 7889 fi 7890 export as_echo_body 7891 as_echo='sh -c $as_echo_body as_echo' 7892fi 7893 7894# The user is always right. 7895if test "${PATH_SEPARATOR+set}" != set; then 7896 PATH_SEPARATOR=: 7897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7899 PATH_SEPARATOR=';' 7900 } 7901fi 7902 7903 7904# IFS 7905# We need space, tab and new line, in precisely that order. Quoting is 7906# there to prevent editors from complaining about space-tab. 7907# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7908# splitting by setting IFS to empty value.) 7909IFS=" "" $as_nl" 7910 7911# Find who we are. Look in the path if we contain no directory separator. 7912as_myself= 7913case $0 in #(( 7914 *[\\/]* ) as_myself=$0 ;; 7915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7916for as_dir in $PATH 7917do 7918 IFS=$as_save_IFS 7919 test -z "$as_dir" && as_dir=. 7920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7921 done 7922IFS=$as_save_IFS 7923 7924 ;; 7925esac 7926# We did not find ourselves, most probably we were run as `sh COMMAND' 7927# in which case we are not to be found in the path. 7928if test "x$as_myself" = x; then 7929 as_myself=$0 7930fi 7931if test ! -f "$as_myself"; then 7932 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7933 exit 1 7934fi 7935 7936# Unset variables that we do not need and which cause bugs (e.g. in 7937# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7938# suppresses any "Segmentation fault" message there. '((' could 7939# trigger a bug in pdksh 5.2.14. 7940for as_var in BASH_ENV ENV MAIL MAILPATH 7941do eval test x\${$as_var+set} = xset \ 7942 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7943done 7944PS1='$ ' 7945PS2='> ' 7946PS4='+ ' 7947 7948# NLS nuisances. 7949LC_ALL=C 7950export LC_ALL 7951LANGUAGE=C 7952export LANGUAGE 7953 7954# CDPATH. 7955(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7956 7957 7958# as_fn_error STATUS ERROR [LINENO LOG_FD] 7959# ---------------------------------------- 7960# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7961# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7962# script with STATUS, using 1 if that was 0. 7963as_fn_error () 7964{ 7965 as_status=$1; test $as_status -eq 0 && as_status=1 7966 if test "$4"; then 7967 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7968 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7969 fi 7970 $as_echo "$as_me: error: $2" >&2 7971 as_fn_exit $as_status 7972} # as_fn_error 7973 7974 7975# as_fn_set_status STATUS 7976# ----------------------- 7977# Set $? to STATUS, without forking. 7978as_fn_set_status () 7979{ 7980 return $1 7981} # as_fn_set_status 7982 7983# as_fn_exit STATUS 7984# ----------------- 7985# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7986as_fn_exit () 7987{ 7988 set +e 7989 as_fn_set_status $1 7990 exit $1 7991} # as_fn_exit 7992 7993# as_fn_unset VAR 7994# --------------- 7995# Portably unset VAR. 7996as_fn_unset () 7997{ 7998 { eval $1=; unset $1;} 7999} 8000as_unset=as_fn_unset 8001# as_fn_append VAR VALUE 8002# ---------------------- 8003# Append the text in VALUE to the end of the definition contained in VAR. Take 8004# advantage of any shell optimizations that allow amortized linear growth over 8005# repeated appends, instead of the typical quadratic growth present in naive 8006# implementations. 8007if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8008 eval 'as_fn_append () 8009 { 8010 eval $1+=\$2 8011 }' 8012else 8013 as_fn_append () 8014 { 8015 eval $1=\$$1\$2 8016 } 8017fi # as_fn_append 8018 8019# as_fn_arith ARG... 8020# ------------------ 8021# Perform arithmetic evaluation on the ARGs, and store the result in the 8022# global $as_val. Take advantage of shells that can avoid forks. The arguments 8023# must be portable across $(()) and expr. 8024if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8025 eval 'as_fn_arith () 8026 { 8027 as_val=$(( $* )) 8028 }' 8029else 8030 as_fn_arith () 8031 { 8032 as_val=`expr "$@" || test $? -eq 1` 8033 } 8034fi # as_fn_arith 8035 8036 8037if expr a : '\(a\)' >/dev/null 2>&1 && 8038 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8039 as_expr=expr 8040else 8041 as_expr=false 8042fi 8043 8044if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8045 as_basename=basename 8046else 8047 as_basename=false 8048fi 8049 8050if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8051 as_dirname=dirname 8052else 8053 as_dirname=false 8054fi 8055 8056as_me=`$as_basename -- "$0" || 8057$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8058 X"$0" : 'X\(//\)$' \| \ 8059 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8060$as_echo X/"$0" | 8061 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8062 s//\1/ 8063 q 8064 } 8065 /^X\/\(\/\/\)$/{ 8066 s//\1/ 8067 q 8068 } 8069 /^X\/\(\/\).*/{ 8070 s//\1/ 8071 q 8072 } 8073 s/.*/./; q'` 8074 8075# Avoid depending upon Character Ranges. 8076as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8077as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8078as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8079as_cr_digits='0123456789' 8080as_cr_alnum=$as_cr_Letters$as_cr_digits 8081 8082ECHO_C= ECHO_N= ECHO_T= 8083case `echo -n x` in #((((( 8084-n*) 8085 case `echo 'xy\c'` in 8086 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8087 xy) ECHO_C='\c';; 8088 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8089 ECHO_T=' ';; 8090 esac;; 8091*) 8092 ECHO_N='-n';; 8093esac 8094 8095rm -f conf$$ conf$$.exe conf$$.file 8096if test -d conf$$.dir; then 8097 rm -f conf$$.dir/conf$$.file 8098else 8099 rm -f conf$$.dir 8100 mkdir conf$$.dir 2>/dev/null 8101fi 8102if (echo >conf$$.file) 2>/dev/null; then 8103 if ln -s conf$$.file conf$$ 2>/dev/null; then 8104 as_ln_s='ln -s' 8105 # ... but there are two gotchas: 8106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8108 # In both cases, we have to default to `cp -p'. 8109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8110 as_ln_s='cp -p' 8111 elif ln conf$$.file conf$$ 2>/dev/null; then 8112 as_ln_s=ln 8113 else 8114 as_ln_s='cp -p' 8115 fi 8116else 8117 as_ln_s='cp -p' 8118fi 8119rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8120rmdir conf$$.dir 2>/dev/null 8121 8122 8123# as_fn_mkdir_p 8124# ------------- 8125# Create "$as_dir" as a directory, including parents if necessary. 8126as_fn_mkdir_p () 8127{ 8128 8129 case $as_dir in #( 8130 -*) as_dir=./$as_dir;; 8131 esac 8132 test -d "$as_dir" || eval $as_mkdir_p || { 8133 as_dirs= 8134 while :; do 8135 case $as_dir in #( 8136 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8137 *) as_qdir=$as_dir;; 8138 esac 8139 as_dirs="'$as_qdir' $as_dirs" 8140 as_dir=`$as_dirname -- "$as_dir" || 8141$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8142 X"$as_dir" : 'X\(//\)[^/]' \| \ 8143 X"$as_dir" : 'X\(//\)$' \| \ 8144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8145$as_echo X"$as_dir" | 8146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8147 s//\1/ 8148 q 8149 } 8150 /^X\(\/\/\)[^/].*/{ 8151 s//\1/ 8152 q 8153 } 8154 /^X\(\/\/\)$/{ 8155 s//\1/ 8156 q 8157 } 8158 /^X\(\/\).*/{ 8159 s//\1/ 8160 q 8161 } 8162 s/.*/./; q'` 8163 test -d "$as_dir" && break 8164 done 8165 test -z "$as_dirs" || eval "mkdir $as_dirs" 8166 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8167 8168 8169} # as_fn_mkdir_p 8170if mkdir -p . 2>/dev/null; then 8171 as_mkdir_p='mkdir -p "$as_dir"' 8172else 8173 test -d ./-p && rmdir ./-p 8174 as_mkdir_p=false 8175fi 8176 8177if test -x / >/dev/null 2>&1; then 8178 as_test_x='test -x' 8179else 8180 if ls -dL / >/dev/null 2>&1; then 8181 as_ls_L_option=L 8182 else 8183 as_ls_L_option= 8184 fi 8185 as_test_x=' 8186 eval sh -c '\'' 8187 if test -d "$1"; then 8188 test -d "$1/."; 8189 else 8190 case $1 in #( 8191 -*)set "./$1";; 8192 esac; 8193 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 8194 ???[sx]*):;;*)false;;esac;fi 8195 '\'' sh 8196 ' 8197fi 8198as_executable_p=$as_test_x 8199 8200# Sed expression to map a string onto a valid CPP name. 8201as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8202 8203# Sed expression to map a string onto a valid variable name. 8204as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8205 8206 8207exec 6>&1 8208## ----------------------------------- ## 8209## Main body of $CONFIG_STATUS script. ## 8210## ----------------------------------- ## 8211_ASEOF 8212test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8213 8214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8215# Save the log message, to keep $0 and so on meaningful, and to 8216# report actual input values of CONFIG_FILES etc. instead of their 8217# values after options handling. 8218ac_log=" 8219This file was extended by NSD $as_me 3.2.15, which was 8220generated by GNU Autoconf 2.68. Invocation command line was 8221 8222 CONFIG_FILES = $CONFIG_FILES 8223 CONFIG_HEADERS = $CONFIG_HEADERS 8224 CONFIG_LINKS = $CONFIG_LINKS 8225 CONFIG_COMMANDS = $CONFIG_COMMANDS 8226 $ $0 $@ 8227 8228on `(hostname || uname -n) 2>/dev/null | sed 1q` 8229" 8230 8231_ACEOF 8232 8233case $ac_config_files in *" 8234"*) set x $ac_config_files; shift; ac_config_files=$*;; 8235esac 8236 8237case $ac_config_headers in *" 8238"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8239esac 8240 8241 8242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8243# Files that config.status was made for. 8244config_files="$ac_config_files" 8245config_headers="$ac_config_headers" 8246 8247_ACEOF 8248 8249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8250ac_cs_usage="\ 8251\`$as_me' instantiates files and other configuration actions 8252from templates according to the current configuration. Unless the files 8253and actions are specified as TAGs, all are instantiated by default. 8254 8255Usage: $0 [OPTION]... [TAG]... 8256 8257 -h, --help print this help, then exit 8258 -V, --version print version number and configuration settings, then exit 8259 --config print configuration, then exit 8260 -q, --quiet, --silent 8261 do not print progress messages 8262 -d, --debug don't remove temporary files 8263 --recheck update $as_me by reconfiguring in the same conditions 8264 --file=FILE[:TEMPLATE] 8265 instantiate the configuration file FILE 8266 --header=FILE[:TEMPLATE] 8267 instantiate the configuration header FILE 8268 8269Configuration files: 8270$config_files 8271 8272Configuration headers: 8273$config_headers 8274 8275Report bugs to <nsd-bugs@nlnetlabs.nl>." 8276 8277_ACEOF 8278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8279ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8280ac_cs_version="\\ 8281NSD config.status 3.2.15 8282configured by $0, generated by GNU Autoconf 2.68, 8283 with options \\"\$ac_cs_config\\" 8284 8285Copyright (C) 2010 Free Software Foundation, Inc. 8286This config.status script is free software; the Free Software Foundation 8287gives unlimited permission to copy, distribute and modify it." 8288 8289ac_pwd='$ac_pwd' 8290srcdir='$srcdir' 8291INSTALL='$INSTALL' 8292AWK='$AWK' 8293test -n "\$AWK" || AWK=awk 8294_ACEOF 8295 8296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8297# The default lists apply if the user does not specify any file. 8298ac_need_defaults=: 8299while test $# != 0 8300do 8301 case $1 in 8302 --*=?*) 8303 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8304 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8305 ac_shift=: 8306 ;; 8307 --*=) 8308 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8309 ac_optarg= 8310 ac_shift=: 8311 ;; 8312 *) 8313 ac_option=$1 8314 ac_optarg=$2 8315 ac_shift=shift 8316 ;; 8317 esac 8318 8319 case $ac_option in 8320 # Handling of the options. 8321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8322 ac_cs_recheck=: ;; 8323 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8324 $as_echo "$ac_cs_version"; exit ;; 8325 --config | --confi | --conf | --con | --co | --c ) 8326 $as_echo "$ac_cs_config"; exit ;; 8327 --debug | --debu | --deb | --de | --d | -d ) 8328 debug=: ;; 8329 --file | --fil | --fi | --f ) 8330 $ac_shift 8331 case $ac_optarg in 8332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8333 '') as_fn_error $? "missing file argument" ;; 8334 esac 8335 as_fn_append CONFIG_FILES " '$ac_optarg'" 8336 ac_need_defaults=false;; 8337 --header | --heade | --head | --hea ) 8338 $ac_shift 8339 case $ac_optarg in 8340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8341 esac 8342 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8343 ac_need_defaults=false;; 8344 --he | --h) 8345 # Conflict between --help and --header 8346 as_fn_error $? "ambiguous option: \`$1' 8347Try \`$0 --help' for more information.";; 8348 --help | --hel | -h ) 8349 $as_echo "$ac_cs_usage"; exit ;; 8350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8351 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8352 ac_cs_silent=: ;; 8353 8354 # This is an error. 8355 -*) as_fn_error $? "unrecognized option: \`$1' 8356Try \`$0 --help' for more information." ;; 8357 8358 *) as_fn_append ac_config_targets " $1" 8359 ac_need_defaults=false ;; 8360 8361 esac 8362 shift 8363done 8364 8365ac_configure_extra_args= 8366 8367if $ac_cs_silent; then 8368 exec 6>/dev/null 8369 ac_configure_extra_args="$ac_configure_extra_args --silent" 8370fi 8371 8372_ACEOF 8373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8374if \$ac_cs_recheck; then 8375 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8376 shift 8377 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8378 CONFIG_SHELL='$SHELL' 8379 export CONFIG_SHELL 8380 exec "\$@" 8381fi 8382 8383_ACEOF 8384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8385exec 5>>config.log 8386{ 8387 echo 8388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8389## Running $as_me. ## 8390_ASBOX 8391 $as_echo "$ac_log" 8392} >&5 8393 8394_ACEOF 8395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8396_ACEOF 8397 8398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8399 8400# Handling of arguments. 8401for ac_config_target in $ac_config_targets 8402do 8403 case $ac_config_target in 8404 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 8405 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8406 8407 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8408 esac 8409done 8410 8411 8412# If the user did not use the arguments to specify the items to instantiate, 8413# then the envvar interface is used. Set only those that are not. 8414# We use the long form for the default assignment because of an extremely 8415# bizarre bug on SunOS 4.1.3. 8416if $ac_need_defaults; then 8417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8419fi 8420 8421# Have a temporary directory for convenience. Make it in the build tree 8422# simply because there is no reason against having it here, and in addition, 8423# creating and moving files from /tmp can sometimes cause problems. 8424# Hook for its removal unless debugging. 8425# Note that there is a small window in which the directory will not be cleaned: 8426# after its creation but before its name has been assigned to `$tmp'. 8427$debug || 8428{ 8429 tmp= ac_tmp= 8430 trap 'exit_status=$? 8431 : "${ac_tmp:=$tmp}" 8432 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8433' 0 8434 trap 'as_fn_exit 1' 1 2 13 15 8435} 8436# Create a (secure) tmp directory for tmp files. 8437 8438{ 8439 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8440 test -d "$tmp" 8441} || 8442{ 8443 tmp=./conf$$-$RANDOM 8444 (umask 077 && mkdir "$tmp") 8445} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8446ac_tmp=$tmp 8447 8448# Set up the scripts for CONFIG_FILES section. 8449# No need to generate them if there are no CONFIG_FILES. 8450# This happens for instance with `./config.status config.h'. 8451if test -n "$CONFIG_FILES"; then 8452 8453 8454ac_cr=`echo X | tr X '\015'` 8455# On cygwin, bash can eat \r inside `` if the user requested igncr. 8456# But we know of no other shell where ac_cr would be empty at this 8457# point, so we can use a bashism as a fallback. 8458if test "x$ac_cr" = x; then 8459 eval ac_cr=\$\'\\r\' 8460fi 8461ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 8462if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 8463 ac_cs_awk_cr='\\r' 8464else 8465 ac_cs_awk_cr=$ac_cr 8466fi 8467 8468echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 8469_ACEOF 8470 8471 8472{ 8473 echo "cat >conf$$subs.awk <<_ACEOF" && 8474 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 8475 echo "_ACEOF" 8476} >conf$$subs.sh || 8477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8478ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 8479ac_delim='%!_!# ' 8480for ac_last_try in false false false false false :; do 8481 . ./conf$$subs.sh || 8482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8483 8484 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 8485 if test $ac_delim_n = $ac_delim_num; then 8486 break 8487 elif $ac_last_try; then 8488 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8489 else 8490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8491 fi 8492done 8493rm -f conf$$subs.sh 8494 8495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8496cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8497_ACEOF 8498sed -n ' 8499h 8500s/^/S["/; s/!.*/"]=/ 8501p 8502g 8503s/^[^!]*!// 8504:repl 8505t repl 8506s/'"$ac_delim"'$// 8507t delim 8508:nl 8509h 8510s/\(.\{148\}\)..*/\1/ 8511t more1 8512s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8513p 8514n 8515b repl 8516:more1 8517s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8518p 8519g 8520s/.\{148\}// 8521t nl 8522:delim 8523h 8524s/\(.\{148\}\)..*/\1/ 8525t more2 8526s/["\\]/\\&/g; s/^/"/; s/$/"/ 8527p 8528b 8529:more2 8530s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8531p 8532g 8533s/.\{148\}// 8534t delim 8535' <conf$$subs.awk | sed ' 8536/^[^""]/{ 8537 N 8538 s/\n// 8539} 8540' >>$CONFIG_STATUS || ac_write_fail=1 8541rm -f conf$$subs.awk 8542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8543_ACAWK 8544cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8545 for (key in S) S_is_set[key] = 1 8546 FS = "" 8547 8548} 8549{ 8550 line = $ 0 8551 nfields = split(line, field, "@") 8552 substed = 0 8553 len = length(field[1]) 8554 for (i = 2; i < nfields; i++) { 8555 key = field[i] 8556 keylen = length(key) 8557 if (S_is_set[key]) { 8558 value = S[key] 8559 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8560 len += length(value) + length(field[++i]) 8561 substed = 1 8562 } else 8563 len += 1 + keylen 8564 } 8565 8566 print line 8567} 8568 8569_ACAWK 8570_ACEOF 8571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8572if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8573 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8574else 8575 cat 8576fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8577 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8578_ACEOF 8579 8580# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8581# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8582# trailing colons and then remove the whole line if VPATH becomes empty 8583# (actually we leave an empty line to preserve line numbers). 8584if test "x$srcdir" = x.; then 8585 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8586h 8587s/// 8588s/^/:/ 8589s/[ ]*$/:/ 8590s/:\$(srcdir):/:/g 8591s/:\${srcdir}:/:/g 8592s/:@srcdir@:/:/g 8593s/^:*// 8594s/:*$// 8595x 8596s/\(=[ ]*\).*/\1/ 8597G 8598s/\n// 8599s/^[^=]*=[ ]*$// 8600}' 8601fi 8602 8603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8604fi # test -n "$CONFIG_FILES" 8605 8606# Set up the scripts for CONFIG_HEADERS section. 8607# No need to generate them if there are no CONFIG_HEADERS. 8608# This happens for instance with `./config.status Makefile'. 8609if test -n "$CONFIG_HEADERS"; then 8610cat >"$ac_tmp/defines.awk" <<\_ACAWK || 8611BEGIN { 8612_ACEOF 8613 8614# Transform confdefs.h into an awk script `defines.awk', embedded as 8615# here-document in config.status, that substitutes the proper values into 8616# config.h.in to produce config.h. 8617 8618# Create a delimiter string that does not exist in confdefs.h, to ease 8619# handling of long lines. 8620ac_delim='%!_!# ' 8621for ac_last_try in false false :; do 8622 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 8623 if test -z "$ac_tt"; then 8624 break 8625 elif $ac_last_try; then 8626 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8627 else 8628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8629 fi 8630done 8631 8632# For the awk script, D is an array of macro values keyed by name, 8633# likewise P contains macro parameters if any. Preserve backslash 8634# newline sequences. 8635 8636ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8637sed -n ' 8638s/.\{148\}/&'"$ac_delim"'/g 8639t rset 8640:rset 8641s/^[ ]*#[ ]*define[ ][ ]*/ / 8642t def 8643d 8644:def 8645s/\\$// 8646t bsnl 8647s/["\\]/\\&/g 8648s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8649D["\1"]=" \3"/p 8650s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 8651d 8652:bsnl 8653s/["\\]/\\&/g 8654s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8655D["\1"]=" \3\\\\\\n"\\/p 8656t cont 8657s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 8658t cont 8659d 8660:cont 8661n 8662s/.\{148\}/&'"$ac_delim"'/g 8663t clear 8664:clear 8665s/\\$// 8666t bsnlc 8667s/["\\]/\\&/g; s/^/"/; s/$/"/p 8668d 8669:bsnlc 8670s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 8671b cont 8672' <confdefs.h | sed ' 8673s/'"$ac_delim"'/"\\\ 8674"/g' >>$CONFIG_STATUS || ac_write_fail=1 8675 8676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8677 for (key in D) D_is_set[key] = 1 8678 FS = "" 8679} 8680/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 8681 line = \$ 0 8682 split(line, arg, " ") 8683 if (arg[1] == "#") { 8684 defundef = arg[2] 8685 mac1 = arg[3] 8686 } else { 8687 defundef = substr(arg[1], 2) 8688 mac1 = arg[2] 8689 } 8690 split(mac1, mac2, "(") #) 8691 macro = mac2[1] 8692 prefix = substr(line, 1, index(line, defundef) - 1) 8693 if (D_is_set[macro]) { 8694 # Preserve the white space surrounding the "#". 8695 print prefix "define", macro P[macro] D[macro] 8696 next 8697 } else { 8698 # Replace #undef with comments. This is necessary, for example, 8699 # in the case of _POSIX_SOURCE, which is predefined and required 8700 # on some systems where configure will not decide to define it. 8701 if (defundef == "undef") { 8702 print "/*", prefix defundef, macro, "*/" 8703 next 8704 } 8705 } 8706} 8707{ print } 8708_ACAWK 8709_ACEOF 8710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8711 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8712fi # test -n "$CONFIG_HEADERS" 8713 8714 8715eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 8716shift 8717for ac_tag 8718do 8719 case $ac_tag in 8720 :[FHLC]) ac_mode=$ac_tag; continue;; 8721 esac 8722 case $ac_mode$ac_tag in 8723 :[FHL]*:*);; 8724 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8725 :[FH]-) ac_tag=-:-;; 8726 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8727 esac 8728 ac_save_IFS=$IFS 8729 IFS=: 8730 set x $ac_tag 8731 IFS=$ac_save_IFS 8732 shift 8733 ac_file=$1 8734 shift 8735 8736 case $ac_mode in 8737 :L) ac_source=$1;; 8738 :[FH]) 8739 ac_file_inputs= 8740 for ac_f 8741 do 8742 case $ac_f in 8743 -) ac_f="$ac_tmp/stdin";; 8744 *) # Look for the file first in the build tree, then in the source tree 8745 # (if the path is not absolute). The absolute path cannot be DOS-style, 8746 # because $ac_f cannot contain `:'. 8747 test -f "$ac_f" || 8748 case $ac_f in 8749 [\\/$]*) false;; 8750 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8751 esac || 8752 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8753 esac 8754 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8755 as_fn_append ac_file_inputs " '$ac_f'" 8756 done 8757 8758 # Let's still pretend it is `configure' which instantiates (i.e., don't 8759 # use $as_me), people would be surprised to read: 8760 # /* config.h. Generated by config.status. */ 8761 configure_input='Generated from '` 8762 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8763 `' by configure.' 8764 if test x"$ac_file" != x-; then 8765 configure_input="$ac_file. $configure_input" 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8767$as_echo "$as_me: creating $ac_file" >&6;} 8768 fi 8769 # Neutralize special characters interpreted by sed in replacement strings. 8770 case $configure_input in #( 8771 *\&* | *\|* | *\\* ) 8772 ac_sed_conf_input=`$as_echo "$configure_input" | 8773 sed 's/[\\\\&|]/\\\\&/g'`;; #( 8774 *) ac_sed_conf_input=$configure_input;; 8775 esac 8776 8777 case $ac_tag in 8778 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8780 esac 8781 ;; 8782 esac 8783 8784 ac_dir=`$as_dirname -- "$ac_file" || 8785$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8786 X"$ac_file" : 'X\(//\)[^/]' \| \ 8787 X"$ac_file" : 'X\(//\)$' \| \ 8788 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8789$as_echo X"$ac_file" | 8790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8791 s//\1/ 8792 q 8793 } 8794 /^X\(\/\/\)[^/].*/{ 8795 s//\1/ 8796 q 8797 } 8798 /^X\(\/\/\)$/{ 8799 s//\1/ 8800 q 8801 } 8802 /^X\(\/\).*/{ 8803 s//\1/ 8804 q 8805 } 8806 s/.*/./; q'` 8807 as_dir="$ac_dir"; as_fn_mkdir_p 8808 ac_builddir=. 8809 8810case "$ac_dir" in 8811.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8812*) 8813 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8814 # A ".." for each directory in $ac_dir_suffix. 8815 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8816 case $ac_top_builddir_sub in 8817 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8818 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8819 esac ;; 8820esac 8821ac_abs_top_builddir=$ac_pwd 8822ac_abs_builddir=$ac_pwd$ac_dir_suffix 8823# for backward compatibility: 8824ac_top_builddir=$ac_top_build_prefix 8825 8826case $srcdir in 8827 .) # We are building in place. 8828 ac_srcdir=. 8829 ac_top_srcdir=$ac_top_builddir_sub 8830 ac_abs_top_srcdir=$ac_pwd ;; 8831 [\\/]* | ?:[\\/]* ) # Absolute name. 8832 ac_srcdir=$srcdir$ac_dir_suffix; 8833 ac_top_srcdir=$srcdir 8834 ac_abs_top_srcdir=$srcdir ;; 8835 *) # Relative name. 8836 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8837 ac_top_srcdir=$ac_top_build_prefix$srcdir 8838 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8839esac 8840ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8841 8842 8843 case $ac_mode in 8844 :F) 8845 # 8846 # CONFIG_FILE 8847 # 8848 8849 case $INSTALL in 8850 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8851 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8852 esac 8853_ACEOF 8854 8855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8856# If the template does not know about datarootdir, expand it. 8857# FIXME: This hack should be removed a few years after 2.60. 8858ac_datarootdir_hack=; ac_datarootdir_seen= 8859ac_sed_dataroot=' 8860/datarootdir/ { 8861 p 8862 q 8863} 8864/@datadir@/p 8865/@docdir@/p 8866/@infodir@/p 8867/@localedir@/p 8868/@mandir@/p' 8869case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8870*datarootdir*) ac_datarootdir_seen=yes;; 8871*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8873$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8874_ACEOF 8875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8876 ac_datarootdir_hack=' 8877 s&@datadir@&$datadir&g 8878 s&@docdir@&$docdir&g 8879 s&@infodir@&$infodir&g 8880 s&@localedir@&$localedir&g 8881 s&@mandir@&$mandir&g 8882 s&\\\${datarootdir}&$datarootdir&g' ;; 8883esac 8884_ACEOF 8885 8886# Neutralize VPATH when `$srcdir' = `.'. 8887# Shell code in configure.ac might set extrasub. 8888# FIXME: do we really want to maintain this feature? 8889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8890ac_sed_extra="$ac_vpsub 8891$extrasub 8892_ACEOF 8893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8894:t 8895/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8896s|@configure_input@|$ac_sed_conf_input|;t t 8897s&@top_builddir@&$ac_top_builddir_sub&;t t 8898s&@top_build_prefix@&$ac_top_build_prefix&;t t 8899s&@srcdir@&$ac_srcdir&;t t 8900s&@abs_srcdir@&$ac_abs_srcdir&;t t 8901s&@top_srcdir@&$ac_top_srcdir&;t t 8902s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8903s&@builddir@&$ac_builddir&;t t 8904s&@abs_builddir@&$ac_abs_builddir&;t t 8905s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8906s&@INSTALL@&$ac_INSTALL&;t t 8907$ac_datarootdir_hack 8908" 8909eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8910 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8911 8912test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8913 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8914 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8915 "$ac_tmp/out"`; test -z "$ac_out"; } && 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8917which seems to be undefined. Please make sure it is defined" >&5 8918$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8919which seems to be undefined. Please make sure it is defined" >&2;} 8920 8921 rm -f "$ac_tmp/stdin" 8922 case $ac_file in 8923 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8924 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8925 esac \ 8926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8927 ;; 8928 :H) 8929 # 8930 # CONFIG_HEADER 8931 # 8932 if test x"$ac_file" != x-; then 8933 { 8934 $as_echo "/* $configure_input */" \ 8935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8936 } >"$ac_tmp/config.h" \ 8937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8938 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8940$as_echo "$as_me: $ac_file is unchanged" >&6;} 8941 else 8942 rm -f "$ac_file" 8943 mv "$ac_tmp/config.h" "$ac_file" \ 8944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8945 fi 8946 else 8947 $as_echo "/* $configure_input */" \ 8948 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8949 || as_fn_error $? "could not create -" "$LINENO" 5 8950 fi 8951 ;; 8952 8953 8954 esac 8955 8956done # for ac_tag 8957 8958 8959as_fn_exit 0 8960_ACEOF 8961ac_clean_files=$ac_clean_files_save 8962 8963test $ac_write_fail = 0 || 8964 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8965 8966 8967# configure is writing to config.log, and then calls config.status. 8968# config.status does its own redirection, appending to config.log. 8969# Unfortunately, on DOS this fails, as config.log is still kept open 8970# by configure, so config.status won't be able to write to it; its 8971# output is simply discarded. So we exec the FD to /dev/null, 8972# effectively closing config.log, so it can be properly (re)opened and 8973# appended to by config.status. When coming back to configure, we 8974# need to make the FD available again. 8975if test "$no_create" != yes; then 8976 ac_cs_success=: 8977 ac_config_status_args= 8978 test "$silent" = yes && 8979 ac_config_status_args="$ac_config_status_args --quiet" 8980 exec 5>/dev/null 8981 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8982 exec 5>>config.log 8983 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8984 # would make configure fail if this is the last instruction. 8985 $ac_cs_success || as_fn_exit 1 8986fi 8987if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8989$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8990fi 8991 8992