1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for NSD 3.2.8. 4# 5# Report bugs to <nsd-bugs@nlnetlabs.nl>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246# Name of the host. 247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 248# so uname gets run too. 249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250 251exec 6>&1 252 253# 254# Initializations. 255# 256ac_default_prefix=/usr/local 257ac_config_libobj_dir=. 258cross_compiling=no 259subdirs= 260MFLAGS= 261MAKEFLAGS= 262SHELL=${CONFIG_SHELL-/bin/sh} 263 264# Maximum number of lines to put in a shell here document. 265# This variable seems obsolete. It should probably be removed, and 266# only ac_max_sed_lines should be used. 267: ${ac_max_here_lines=38} 268 269# Identity of this package. 270PACKAGE_NAME='NSD' 271PACKAGE_TARNAME='nsd' 272PACKAGE_VERSION='3.2.8' 273PACKAGE_STRING='NSD 3.2.8' 274PACKAGE_BUGREPORT='nsd-bugs@nlnetlabs.nl' 275 276# Factoring default headers for most tests. 277ac_includes_default="\ 278#include <stdio.h> 279#if HAVE_SYS_TYPES_H 280# include <sys/types.h> 281#endif 282#if HAVE_SYS_STAT_H 283# include <sys/stat.h> 284#endif 285#if STDC_HEADERS 286# include <stdlib.h> 287# include <stddef.h> 288#else 289# if HAVE_STDLIB_H 290# include <stdlib.h> 291# endif 292#endif 293#if HAVE_STRING_H 294# if !STDC_HEADERS && HAVE_MEMORY_H 295# include <memory.h> 296# endif 297# include <string.h> 298#endif 299#if HAVE_STRINGS_H 300# include <strings.h> 301#endif 302#if HAVE_INTTYPES_H 303# include <inttypes.h> 304#else 305# if HAVE_STDINT_H 306# include <stdint.h> 307# endif 308#endif 309#if HAVE_UNISTD_H 310# include <unistd.h> 311#endif" 312 313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP configdir nsd_conf_file start_priority kill_priority pidfile dbfile dbdir piddir zonesdir difffile xfrdfile user AWK LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LEX LEXLIB LEX_OUTPUT_ROOT YACC LIBOBJS HAVE_SSL LTLIBOBJS' 314ac_subst_files='' 315 316# Initialize some variables set by options. 317ac_init_help= 318ac_init_version=false 319# The variables have the same names as the options, with 320# dashes changed to underlines. 321cache_file=/dev/null 322exec_prefix=NONE 323no_create= 324no_recursion= 325prefix=NONE 326program_prefix=NONE 327program_suffix=NONE 328program_transform_name=s,x,x, 329silent= 330site= 331srcdir= 332verbose= 333x_includes=NONE 334x_libraries=NONE 335 336# Installation directory options. 337# These are left unexpanded so users can "make install exec_prefix=/foo" 338# and all the variables that are supposed to be based on exec_prefix 339# by default will actually change. 340# Use braces instead of parens because sh, perl, etc. also accept them. 341bindir='${exec_prefix}/bin' 342sbindir='${exec_prefix}/sbin' 343libexecdir='${exec_prefix}/libexec' 344datadir='${prefix}/share' 345sysconfdir='${prefix}/etc' 346sharedstatedir='${prefix}/com' 347localstatedir='${prefix}/var' 348libdir='${exec_prefix}/lib' 349includedir='${prefix}/include' 350oldincludedir='/usr/include' 351infodir='${prefix}/info' 352mandir='${prefix}/man' 353 354ac_prev= 355for ac_option 356do 357 # If the previous option needs an argument, assign it. 358 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option" 360 ac_prev= 361 continue 362 fi 363 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 365 366 # Accept the important Cygnus configure options, so we can diagnose typos. 367 368 case $ac_option in 369 370 -bindir | --bindir | --bindi | --bind | --bin | --bi) 371 ac_prev=bindir ;; 372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 373 bindir=$ac_optarg ;; 374 375 -build | --build | --buil | --bui | --bu) 376 ac_prev=build_alias ;; 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 378 build_alias=$ac_optarg ;; 379 380 -cache-file | --cache-file | --cache-fil | --cache-fi \ 381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 382 ac_prev=cache_file ;; 383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 385 cache_file=$ac_optarg ;; 386 387 --config-cache | -C) 388 cache_file=config.cache ;; 389 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 391 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 394 datadir=$ac_optarg ;; 395 396 -disable-* | --disable-*) 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 404 405 -enable-* | --enable-*) 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "enable_$ac_feature='$ac_optarg'" ;; 417 418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 420 | --exec | --exe | --ex) 421 ac_prev=exec_prefix ;; 422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 424 | --exec=* | --exe=* | --ex=*) 425 exec_prefix=$ac_optarg ;; 426 427 -gas | --gas | --ga | --g) 428 # Obsolete; use --with-gas. 429 with_gas=yes ;; 430 431 -help | --help | --hel | --he | -h) 432 ac_init_help=long ;; 433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 434 ac_init_help=recursive ;; 435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 436 ac_init_help=short ;; 437 438 -host | --host | --hos | --ho) 439 ac_prev=host_alias ;; 440 -host=* | --host=* | --hos=* | --ho=*) 441 host_alias=$ac_optarg ;; 442 443 -includedir | --includedir | --includedi | --included | --include \ 444 | --includ | --inclu | --incl | --inc) 445 ac_prev=includedir ;; 446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 447 | --includ=* | --inclu=* | --incl=* | --inc=*) 448 includedir=$ac_optarg ;; 449 450 -infodir | --infodir | --infodi | --infod | --info | --inf) 451 ac_prev=infodir ;; 452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 453 infodir=$ac_optarg ;; 454 455 -libdir | --libdir | --libdi | --libd) 456 ac_prev=libdir ;; 457 -libdir=* | --libdir=* | --libdi=* | --libd=*) 458 libdir=$ac_optarg ;; 459 460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 461 | --libexe | --libex | --libe) 462 ac_prev=libexecdir ;; 463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 464 | --libexe=* | --libex=* | --libe=*) 465 libexecdir=$ac_optarg ;; 466 467 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 470 ac_prev=localstatedir ;; 471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 474 localstatedir=$ac_optarg ;; 475 476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 477 ac_prev=mandir ;; 478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 479 mandir=$ac_optarg ;; 480 481 -nfp | --nfp | --nf) 482 # Obsolete; use --without-fp. 483 with_fp=no ;; 484 485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 486 | --no-cr | --no-c | -n) 487 no_create=yes ;; 488 489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 491 no_recursion=yes ;; 492 493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 495 | --oldin | --oldi | --old | --ol | --o) 496 ac_prev=oldincludedir ;; 497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 500 oldincludedir=$ac_optarg ;; 501 502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 503 ac_prev=prefix ;; 504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 505 prefix=$ac_optarg ;; 506 507 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 508 | --program-pre | --program-pr | --program-p) 509 ac_prev=program_prefix ;; 510 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 512 program_prefix=$ac_optarg ;; 513 514 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 515 | --program-suf | --program-su | --program-s) 516 ac_prev=program_suffix ;; 517 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 519 program_suffix=$ac_optarg ;; 520 521 -program-transform-name | --program-transform-name \ 522 | --program-transform-nam | --program-transform-na \ 523 | --program-transform-n | --program-transform- \ 524 | --program-transform | --program-transfor \ 525 | --program-transfo | --program-transf \ 526 | --program-trans | --program-tran \ 527 | --progr-tra | --program-tr | --program-t) 528 ac_prev=program_transform_name ;; 529 -program-transform-name=* | --program-transform-name=* \ 530 | --program-transform-nam=* | --program-transform-na=* \ 531 | --program-transform-n=* | --program-transform-=* \ 532 | --program-transform=* | --program-transfor=* \ 533 | --program-transfo=* | --program-transf=* \ 534 | --program-trans=* | --program-tran=* \ 535 | --progr-tra=* | --program-tr=* | --program-t=*) 536 program_transform_name=$ac_optarg ;; 537 538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 | -silent | --silent | --silen | --sile | --sil) 540 silent=yes ;; 541 542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 543 ac_prev=sbindir ;; 544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 545 | --sbi=* | --sb=*) 546 sbindir=$ac_optarg ;; 547 548 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 550 | --sharedst | --shareds | --shared | --share | --shar \ 551 | --sha | --sh) 552 ac_prev=sharedstatedir ;; 553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 556 | --sha=* | --sh=*) 557 sharedstatedir=$ac_optarg ;; 558 559 -site | --site | --sit) 560 ac_prev=site ;; 561 -site=* | --site=* | --sit=*) 562 site=$ac_optarg ;; 563 564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 565 ac_prev=srcdir ;; 566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 567 srcdir=$ac_optarg ;; 568 569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 570 | --syscon | --sysco | --sysc | --sys | --sy) 571 ac_prev=sysconfdir ;; 572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 574 sysconfdir=$ac_optarg ;; 575 576 -target | --target | --targe | --targ | --tar | --ta | --t) 577 ac_prev=target_alias ;; 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 579 target_alias=$ac_optarg ;; 580 581 -v | -verbose | --verbose | --verbos | --verbo | --verb) 582 verbose=yes ;; 583 584 -version | --version | --versio | --versi | --vers | -V) 585 ac_init_version=: ;; 586 587 -with-* | --with-*) 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 597 esac 598 eval "with_$ac_package='$ac_optarg'" ;; 599 600 -without-* | --without-*) 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/-/_/g'` 607 eval "with_$ac_package=no" ;; 608 609 --x) 610 # Obsolete; use --with-x. 611 with_x=yes ;; 612 613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 614 | --x-incl | --x-inc | --x-in | --x-i) 615 ac_prev=x_includes ;; 616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 618 x_includes=$ac_optarg ;; 619 620 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 622 ac_prev=x_libraries ;; 623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 625 x_libraries=$ac_optarg ;; 626 627 -*) { echo "$as_me: error: unrecognized option: $ac_option 628Try \`$0 --help' for more information." >&2 629 { (exit 1); exit 1; }; } 630 ;; 631 632 *=*) 633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 # Reject names that are not valid shell variable names. 635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 640 export $ac_envvar ;; 641 642 *) 643 # FIXME: should be removed in autoconf 3.0. 644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 648 ;; 649 650 esac 651done 652 653if test -n "$ac_prev"; then 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 { echo "$as_me: error: missing argument to $ac_option" >&2 656 { (exit 1); exit 1; }; } 657fi 658 659# Be sure to have absolute paths. 660for ac_var in exec_prefix prefix 661do 662 eval ac_val=$`echo $ac_var` 663 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 667 esac 668done 669 670# Be sure to have absolute paths. 671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 680done 681 682# There might be people who depend on the old broken behavior: `$host' 683# used to hold the argument of --host etc. 684# FIXME: To remove some day. 685build=$build_alias 686host=$host_alias 687target=$target_alias 688 689# FIXME: To remove some day. 690if test "x$host_alias" != x; then 691 if test "x$build_alias" = x; then 692 cross_compiling=maybe 693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 If a cross compiler is detected then cross compile mode will be used." >&2 695 elif test "x$build_alias" != "x$host_alias"; then 696 cross_compiling=yes 697 fi 698fi 699 700ac_tool_prefix= 701test -n "$host_alias" && ac_tool_prefix=$host_alias- 702 703test "$silent" = yes && exec 6>/dev/null 704 705 706# Find the source files, if location was not specified. 707if test -z "$srcdir"; then 708 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent. 710 ac_confdir=`(dirname "$0") 2>/dev/null || 711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \ 713 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 716echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 722 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then 724 srcdir=.. 725 fi 726else 727 ac_srcdir_defaulted=no 728fi 729if test ! -r $srcdir/$ac_unique_file; then 730 if test "$ac_srcdir_defaulted" = yes; then 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 { (exit 1); exit 1; }; } 736 fi 737fi 738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742ac_env_build_alias_set=${build_alias+set} 743ac_env_build_alias_value=$build_alias 744ac_cv_env_build_alias_set=${build_alias+set} 745ac_cv_env_build_alias_value=$build_alias 746ac_env_host_alias_set=${host_alias+set} 747ac_env_host_alias_value=$host_alias 748ac_cv_env_host_alias_set=${host_alias+set} 749ac_cv_env_host_alias_value=$host_alias 750ac_env_target_alias_set=${target_alias+set} 751ac_env_target_alias_value=$target_alias 752ac_cv_env_target_alias_set=${target_alias+set} 753ac_cv_env_target_alias_value=$target_alias 754ac_env_CC_set=${CC+set} 755ac_env_CC_value=$CC 756ac_cv_env_CC_set=${CC+set} 757ac_cv_env_CC_value=$CC 758ac_env_CFLAGS_set=${CFLAGS+set} 759ac_env_CFLAGS_value=$CFLAGS 760ac_cv_env_CFLAGS_set=${CFLAGS+set} 761ac_cv_env_CFLAGS_value=$CFLAGS 762ac_env_LDFLAGS_set=${LDFLAGS+set} 763ac_env_LDFLAGS_value=$LDFLAGS 764ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765ac_cv_env_LDFLAGS_value=$LDFLAGS 766ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_env_CPPFLAGS_value=$CPPFLAGS 768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770ac_env_CPP_set=${CPP+set} 771ac_env_CPP_value=$CPP 772ac_cv_env_CPP_set=${CPP+set} 773ac_cv_env_CPP_value=$CPP 774 775# 776# Report the --help message. 777# 778if test "$ac_init_help" = "long"; then 779 # Omit some internal or obsolete options to make the list less imposing. 780 # This message is too long to be a string in the A/UX 3.1 sh. 781 cat <<_ACEOF 782\`configure' configures NSD 3.2.8 to adapt to many kinds of systems. 783 784Usage: $0 [OPTION]... [VAR=VALUE]... 785 786To assign environment variables (e.g., CC, CFLAGS...), specify them as 787VAR=VALUE. See below for descriptions of some of the useful variables. 788 789Defaults for the options are specified in brackets. 790 791Configuration: 792 -h, --help display this help and exit 793 --help=short display options specific to this package 794 --help=recursive display the short help of all the included packages 795 -V, --version display version information and exit 796 -q, --quiet, --silent do not print \`checking...' messages 797 --cache-file=FILE cache test results in FILE [disabled] 798 -C, --config-cache alias for \`--cache-file=config.cache' 799 -n, --no-create do not create output files 800 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 801 802_ACEOF 803 804 cat <<_ACEOF 805Installation directories: 806 --prefix=PREFIX install architecture-independent files in PREFIX 807 [$ac_default_prefix] 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 809 [PREFIX] 810 811By default, \`make install' will install all the files in 812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 813an installation prefix other than \`$ac_default_prefix' using \`--prefix', 814for instance \`--prefix=\$HOME'. 815 816For better control, use the options below. 817 818Fine tuning of the installation directories: 819 --bindir=DIR user executables [EPREFIX/bin] 820 --sbindir=DIR system admin executables [EPREFIX/sbin] 821 --libexecdir=DIR program executables [EPREFIX/libexec] 822 --datadir=DIR read-only architecture-independent data [PREFIX/share] 823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 825 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 826 --libdir=DIR object code libraries [EPREFIX/lib] 827 --includedir=DIR C header files [PREFIX/include] 828 --oldincludedir=DIR C header files for non-gcc [/usr/include] 829 --infodir=DIR info documentation [PREFIX/info] 830 --mandir=DIR man documentation [PREFIX/man] 831_ACEOF 832 833 cat <<\_ACEOF 834_ACEOF 835fi 836 837if test -n "$ac_init_help"; then 838 case $ac_init_help in 839 short | recursive ) echo "Configuration of NSD 3.2.8:";; 840 esac 841 cat <<\_ACEOF 842 843Optional Features: 844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 846 --disable-largefile omit support for large files 847 --enable-root-server Configure NSD as a root server 848 --disable-ipv6 Disables IPv6 support 849 --enable-bind8-stats Enables BIND8 like NSTATS & XSTATS 850 --enable-checking Enable internal runtime checks 851 --disable-nsec3 Disable NSEC3 support 852 --enable-mmap Use mmap instead of malloc. Experimental. 853 854Optional Packages: 855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 857 --with-configdir=dir NSD configuration directory 858 --with-nsd_conf_file=path 859 Pathname to the NSD configuration file 860 --with-start_priority=number 861 NSD startup priority 862 --with-kill_priority=number 863 NSD shutdown priority 864 --with-pidfile=path Pathname to the NSD pidfile 865 --with-dbfile=path Pathname to the NSD database 866 --with-zonesdir=dir NSD default location for zone files 867 --with-difffile=path Pathname to the NSD diff transfer journal file 868 --with-xfrdfile=path Pathname to the NSD xfrd zone timer state file 869 --with-chroot=dir NSD default chroot directory 870 --with-user=username User name or ID to answer the queries with 871 --with-facility=name Syslog default facility (LOG_DAEMON) 872 --with-max-ips=number Limit on the number of ip-addresses that may be 873 specified 874 --with-tcp-timeout=number 875 Limit the default tcp timeout 876 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 877 /usr/ssl /usr/pkg /usr/sfw /usr/local /usr) 878 879Some influential environment variables: 880 CC C compiler command 881 CFLAGS C compiler flags 882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 883 nonstandard directory <lib dir> 884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 885 headers in a nonstandard directory <include dir> 886 CPP C preprocessor 887 888Use these variables to override the choices made by `configure' or to help 889it to find libraries and programs with nonstandard names/locations. 890 891Report bugs to <nsd-bugs@nlnetlabs.nl>. 892_ACEOF 893fi 894 895if test "$ac_init_help" = "recursive"; then 896 # If there are subdirs, report their specific --help. 897 ac_popdir=`pwd` 898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 899 test -d $ac_dir || continue 900 ac_builddir=. 901 902if test "$ac_dir" != .; then 903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 904 # A "../" for each directory in $ac_dir_suffix. 905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 906else 907 ac_dir_suffix= ac_top_builddir= 908fi 909 910case $srcdir in 911 .) # No --srcdir option. We are building in place. 912 ac_srcdir=. 913 if test -z "$ac_top_builddir"; then 914 ac_top_srcdir=. 915 else 916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 917 fi ;; 918 [\\/]* | ?:[\\/]* ) # Absolute path. 919 ac_srcdir=$srcdir$ac_dir_suffix; 920 ac_top_srcdir=$srcdir ;; 921 *) # Relative path. 922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 923 ac_top_srcdir=$ac_top_builddir$srcdir ;; 924esac 925 926# Do not use `cd foo && pwd` to compute absolute paths, because 927# the directories may not exist. 928case `pwd` in 929.) ac_abs_builddir="$ac_dir";; 930*) 931 case "$ac_dir" in 932 .) ac_abs_builddir=`pwd`;; 933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 934 *) ac_abs_builddir=`pwd`/"$ac_dir";; 935 esac;; 936esac 937case $ac_abs_builddir in 938.) ac_abs_top_builddir=${ac_top_builddir}.;; 939*) 940 case ${ac_top_builddir}. in 941 .) ac_abs_top_builddir=$ac_abs_builddir;; 942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 944 esac;; 945esac 946case $ac_abs_builddir in 947.) ac_abs_srcdir=$ac_srcdir;; 948*) 949 case $ac_srcdir in 950 .) ac_abs_srcdir=$ac_abs_builddir;; 951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 953 esac;; 954esac 955case $ac_abs_builddir in 956.) ac_abs_top_srcdir=$ac_top_srcdir;; 957*) 958 case $ac_top_srcdir in 959 .) ac_abs_top_srcdir=$ac_abs_builddir;; 960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 962 esac;; 963esac 964 965 cd $ac_dir 966 # Check for guested configure; otherwise get Cygnus style configure. 967 if test -f $ac_srcdir/configure.gnu; then 968 echo 969 $SHELL $ac_srcdir/configure.gnu --help=recursive 970 elif test -f $ac_srcdir/configure; then 971 echo 972 $SHELL $ac_srcdir/configure --help=recursive 973 elif test -f $ac_srcdir/configure.ac || 974 test -f $ac_srcdir/configure.in; then 975 echo 976 $ac_configure --help 977 else 978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 979 fi 980 cd $ac_popdir 981 done 982fi 983 984test -n "$ac_init_help" && exit 0 985if $ac_init_version; then 986 cat <<\_ACEOF 987NSD configure 3.2.8 988generated by GNU Autoconf 2.59 989 990Copyright (C) 2003 Free Software Foundation, Inc. 991This configure script is free software; the Free Software Foundation 992gives unlimited permission to copy, distribute and modify it. 993_ACEOF 994 exit 0 995fi 996exec 5>config.log 997cat >&5 <<_ACEOF 998This file contains any messages produced by compilers while 999running configure, to aid debugging if configure makes a mistake. 1000 1001It was created by NSD $as_me 3.2.8, which was 1002generated by GNU Autoconf 2.59. Invocation command line was 1003 1004 $ $0 $@ 1005 1006_ACEOF 1007{ 1008cat <<_ASUNAME 1009## --------- ## 1010## Platform. ## 1011## --------- ## 1012 1013hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1014uname -m = `(uname -m) 2>/dev/null || echo unknown` 1015uname -r = `(uname -r) 2>/dev/null || echo unknown` 1016uname -s = `(uname -s) 2>/dev/null || echo unknown` 1017uname -v = `(uname -v) 2>/dev/null || echo unknown` 1018 1019/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1020/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1021 1022/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1023/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1024/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1025hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1026/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1027/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1028/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1029 1030_ASUNAME 1031 1032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1033for as_dir in $PATH 1034do 1035 IFS=$as_save_IFS 1036 test -z "$as_dir" && as_dir=. 1037 echo "PATH: $as_dir" 1038done 1039 1040} >&5 1041 1042cat >&5 <<_ACEOF 1043 1044 1045## ----------- ## 1046## Core tests. ## 1047## ----------- ## 1048 1049_ACEOF 1050 1051 1052# Keep a trace of the command line. 1053# Strip out --no-create and --no-recursion so they do not pile up. 1054# Strip out --silent because we don't want to record it for future runs. 1055# Also quote any args containing shell meta-characters. 1056# Make two passes to allow for proper duplicate-argument suppression. 1057ac_configure_args= 1058ac_configure_args0= 1059ac_configure_args1= 1060ac_sep= 1061ac_must_keep_next=false 1062for ac_pass in 1 2 1063do 1064 for ac_arg 1065 do 1066 case $ac_arg in 1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 continue ;; 1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1073 esac 1074 case $ac_pass in 1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1076 2) 1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1078 if test $ac_must_keep_next = true; then 1079 ac_must_keep_next=false # Got value, back to normal. 1080 else 1081 case $ac_arg in 1082 *=* | --config-cache | -C | -disable-* | --disable-* \ 1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1085 | -with-* | --with-* | -without-* | --without-* | --x) 1086 case "$ac_configure_args0 " in 1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1088 esac 1089 ;; 1090 -* ) ac_must_keep_next=true ;; 1091 esac 1092 fi 1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1094 # Get rid of the leading space. 1095 ac_sep=" " 1096 ;; 1097 esac 1098 done 1099done 1100$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1101$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1102 1103# When interrupted or exit'd, cleanup temporary files, and complete 1104# config.log. We remove comments because anyway the quotes in there 1105# would cause problems or look ugly. 1106# WARNING: Be sure not to use single quotes in there, as some shells, 1107# such as our DU 5.0 friend, will then `close' the trap. 1108trap 'exit_status=$? 1109 # Save into config.log some information that might help in debugging. 1110 { 1111 echo 1112 1113 cat <<\_ASBOX 1114## ---------------- ## 1115## Cache variables. ## 1116## ---------------- ## 1117_ASBOX 1118 echo 1119 # The following way of writing the cache mishandles newlines in values, 1120{ 1121 (set) 2>&1 | 1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1123 *ac_space=\ *) 1124 sed -n \ 1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1127 ;; 1128 *) 1129 sed -n \ 1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1131 ;; 1132 esac; 1133} 1134 echo 1135 1136 cat <<\_ASBOX 1137## ----------------- ## 1138## Output variables. ## 1139## ----------------- ## 1140_ASBOX 1141 echo 1142 for ac_var in $ac_subst_vars 1143 do 1144 eval ac_val=$`echo $ac_var` 1145 echo "$ac_var='"'"'$ac_val'"'"'" 1146 done | sort 1147 echo 1148 1149 if test -n "$ac_subst_files"; then 1150 cat <<\_ASBOX 1151## ------------- ## 1152## Output files. ## 1153## ------------- ## 1154_ASBOX 1155 echo 1156 for ac_var in $ac_subst_files 1157 do 1158 eval ac_val=$`echo $ac_var` 1159 echo "$ac_var='"'"'$ac_val'"'"'" 1160 done | sort 1161 echo 1162 fi 1163 1164 if test -s confdefs.h; then 1165 cat <<\_ASBOX 1166## ----------- ## 1167## confdefs.h. ## 1168## ----------- ## 1169_ASBOX 1170 echo 1171 sed "/^$/d" confdefs.h | sort 1172 echo 1173 fi 1174 test "$ac_signal" != 0 && 1175 echo "$as_me: caught signal $ac_signal" 1176 echo "$as_me: exit $exit_status" 1177 } >&5 1178 rm -f core *.core && 1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1180 exit $exit_status 1181 ' 0 1182for ac_signal in 1 2 13 15; do 1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1184done 1185ac_signal=0 1186 1187# confdefs.h avoids OS command line length limits that DEFS can exceed. 1188rm -rf conftest* confdefs.h 1189# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1190echo >confdefs.h 1191 1192# Predefined preprocessor variables. 1193 1194cat >>confdefs.h <<_ACEOF 1195#define PACKAGE_NAME "$PACKAGE_NAME" 1196_ACEOF 1197 1198 1199cat >>confdefs.h <<_ACEOF 1200#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1201_ACEOF 1202 1203 1204cat >>confdefs.h <<_ACEOF 1205#define PACKAGE_VERSION "$PACKAGE_VERSION" 1206_ACEOF 1207 1208 1209cat >>confdefs.h <<_ACEOF 1210#define PACKAGE_STRING "$PACKAGE_STRING" 1211_ACEOF 1212 1213 1214cat >>confdefs.h <<_ACEOF 1215#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1216_ACEOF 1217 1218 1219# Let the site file select an alternate cache file if it wants to. 1220# Prefer explicitly selected file to automatically selected ones. 1221if test -z "$CONFIG_SITE"; then 1222 if test "x$prefix" != xNONE; then 1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1224 else 1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1226 fi 1227fi 1228for ac_site_file in $CONFIG_SITE; do 1229 if test -r "$ac_site_file"; then 1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1231echo "$as_me: loading site script $ac_site_file" >&6;} 1232 sed 's/^/| /' "$ac_site_file" >&5 1233 . "$ac_site_file" 1234 fi 1235done 1236 1237if test -r "$cache_file"; then 1238 # Some versions of bash will fail to source /dev/null (special 1239 # files actually), so we avoid doing that. 1240 if test -f "$cache_file"; then 1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1242echo "$as_me: loading cache $cache_file" >&6;} 1243 case $cache_file in 1244 [\\/]* | ?:[\\/]* ) . $cache_file;; 1245 *) . ./$cache_file;; 1246 esac 1247 fi 1248else 1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1250echo "$as_me: creating cache $cache_file" >&6;} 1251 >$cache_file 1252fi 1253 1254# Check that the precious variables saved in the cache have kept the same 1255# value. 1256ac_cache_corrupted=false 1257for ac_var in `(set) 2>&1 | 1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1260 eval ac_new_set=\$ac_env_${ac_var}_set 1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1262 eval ac_new_val="\$ac_env_${ac_var}_value" 1263 case $ac_old_set,$ac_new_set in 1264 set,) 1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1266echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1267 ac_cache_corrupted=: ;; 1268 ,set) 1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1270echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1271 ac_cache_corrupted=: ;; 1272 ,);; 1273 *) 1274 if test "x$ac_old_val" != "x$ac_new_val"; then 1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1276echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1278echo "$as_me: former value: $ac_old_val" >&2;} 1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1280echo "$as_me: current value: $ac_new_val" >&2;} 1281 ac_cache_corrupted=: 1282 fi;; 1283 esac 1284 # Pass precious variables to config.status. 1285 if test "$ac_new_set" = set; then 1286 case $ac_new_val in 1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1289 *) ac_arg=$ac_var=$ac_new_val ;; 1290 esac 1291 case " $ac_configure_args " in 1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1294 esac 1295 fi 1296done 1297if $ac_cache_corrupted; then 1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1299echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1301echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1302 { (exit 1); exit 1; }; } 1303fi 1304 1305ac_ext=c 1306ac_cpp='$CPP $CPPFLAGS' 1307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1309ac_compiler_gnu=$ac_cv_c_compiler_gnu 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 ac_config_headers="$ac_config_headers config.h" 1338 1339 1340ac_ext=c 1341ac_cpp='$CPP $CPPFLAGS' 1342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1344ac_compiler_gnu=$ac_cv_c_compiler_gnu 1345if test -n "$ac_tool_prefix"; then 1346 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1347set dummy ${ac_tool_prefix}gcc; ac_word=$2 1348echo "$as_me:$LINENO: checking for $ac_word" >&5 1349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1350if test "${ac_cv_prog_CC+set}" = set; then 1351 echo $ECHO_N "(cached) $ECHO_C" >&6 1352else 1353 if test -n "$CC"; then 1354 ac_cv_prog_CC="$CC" # Let the user override the test. 1355else 1356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1357for as_dir in $PATH 1358do 1359 IFS=$as_save_IFS 1360 test -z "$as_dir" && as_dir=. 1361 for ac_exec_ext in '' $ac_executable_extensions; do 1362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1363 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1365 break 2 1366 fi 1367done 1368done 1369 1370fi 1371fi 1372CC=$ac_cv_prog_CC 1373if test -n "$CC"; then 1374 echo "$as_me:$LINENO: result: $CC" >&5 1375echo "${ECHO_T}$CC" >&6 1376else 1377 echo "$as_me:$LINENO: result: no" >&5 1378echo "${ECHO_T}no" >&6 1379fi 1380 1381fi 1382if test -z "$ac_cv_prog_CC"; then 1383 ac_ct_CC=$CC 1384 # Extract the first word of "gcc", so it can be a program name with args. 1385set dummy gcc; ac_word=$2 1386echo "$as_me:$LINENO: checking for $ac_word" >&5 1387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1388if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1389 echo $ECHO_N "(cached) $ECHO_C" >&6 1390else 1391 if test -n "$ac_ct_CC"; then 1392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1393else 1394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1395for as_dir in $PATH 1396do 1397 IFS=$as_save_IFS 1398 test -z "$as_dir" && as_dir=. 1399 for ac_exec_ext in '' $ac_executable_extensions; do 1400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1401 ac_cv_prog_ac_ct_CC="gcc" 1402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1403 break 2 1404 fi 1405done 1406done 1407 1408fi 1409fi 1410ac_ct_CC=$ac_cv_prog_ac_ct_CC 1411if test -n "$ac_ct_CC"; then 1412 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1413echo "${ECHO_T}$ac_ct_CC" >&6 1414else 1415 echo "$as_me:$LINENO: result: no" >&5 1416echo "${ECHO_T}no" >&6 1417fi 1418 1419 CC=$ac_ct_CC 1420else 1421 CC="$ac_cv_prog_CC" 1422fi 1423 1424if test -z "$CC"; then 1425 if test -n "$ac_tool_prefix"; then 1426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1427set dummy ${ac_tool_prefix}cc; ac_word=$2 1428echo "$as_me:$LINENO: checking for $ac_word" >&5 1429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1430if test "${ac_cv_prog_CC+set}" = set; then 1431 echo $ECHO_N "(cached) $ECHO_C" >&6 1432else 1433 if test -n "$CC"; then 1434 ac_cv_prog_CC="$CC" # Let the user override the test. 1435else 1436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1437for as_dir in $PATH 1438do 1439 IFS=$as_save_IFS 1440 test -z "$as_dir" && as_dir=. 1441 for ac_exec_ext in '' $ac_executable_extensions; do 1442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1443 ac_cv_prog_CC="${ac_tool_prefix}cc" 1444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1445 break 2 1446 fi 1447done 1448done 1449 1450fi 1451fi 1452CC=$ac_cv_prog_CC 1453if test -n "$CC"; then 1454 echo "$as_me:$LINENO: result: $CC" >&5 1455echo "${ECHO_T}$CC" >&6 1456else 1457 echo "$as_me:$LINENO: result: no" >&5 1458echo "${ECHO_T}no" >&6 1459fi 1460 1461fi 1462if test -z "$ac_cv_prog_CC"; then 1463 ac_ct_CC=$CC 1464 # Extract the first word of "cc", so it can be a program name with args. 1465set dummy cc; ac_word=$2 1466echo "$as_me:$LINENO: checking for $ac_word" >&5 1467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1469 echo $ECHO_N "(cached) $ECHO_C" >&6 1470else 1471 if test -n "$ac_ct_CC"; then 1472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1473else 1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1475for as_dir in $PATH 1476do 1477 IFS=$as_save_IFS 1478 test -z "$as_dir" && as_dir=. 1479 for ac_exec_ext in '' $ac_executable_extensions; do 1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1481 ac_cv_prog_ac_ct_CC="cc" 1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1483 break 2 1484 fi 1485done 1486done 1487 1488fi 1489fi 1490ac_ct_CC=$ac_cv_prog_ac_ct_CC 1491if test -n "$ac_ct_CC"; then 1492 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1493echo "${ECHO_T}$ac_ct_CC" >&6 1494else 1495 echo "$as_me:$LINENO: result: no" >&5 1496echo "${ECHO_T}no" >&6 1497fi 1498 1499 CC=$ac_ct_CC 1500else 1501 CC="$ac_cv_prog_CC" 1502fi 1503 1504fi 1505if test -z "$CC"; then 1506 # Extract the first word of "cc", so it can be a program name with args. 1507set dummy cc; ac_word=$2 1508echo "$as_me:$LINENO: checking for $ac_word" >&5 1509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1510if test "${ac_cv_prog_CC+set}" = set; then 1511 echo $ECHO_N "(cached) $ECHO_C" >&6 1512else 1513 if test -n "$CC"; then 1514 ac_cv_prog_CC="$CC" # Let the user override the test. 1515else 1516 ac_prog_rejected=no 1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1518for as_dir in $PATH 1519do 1520 IFS=$as_save_IFS 1521 test -z "$as_dir" && as_dir=. 1522 for ac_exec_ext in '' $ac_executable_extensions; do 1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1525 ac_prog_rejected=yes 1526 continue 1527 fi 1528 ac_cv_prog_CC="cc" 1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1530 break 2 1531 fi 1532done 1533done 1534 1535if test $ac_prog_rejected = yes; then 1536 # We found a bogon in the path, so make sure we never use it. 1537 set dummy $ac_cv_prog_CC 1538 shift 1539 if test $# != 0; then 1540 # We chose a different compiler from the bogus one. 1541 # However, it has the same basename, so the bogon will be chosen 1542 # first if we set CC to just the basename; use the full file name. 1543 shift 1544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1545 fi 1546fi 1547fi 1548fi 1549CC=$ac_cv_prog_CC 1550if test -n "$CC"; then 1551 echo "$as_me:$LINENO: result: $CC" >&5 1552echo "${ECHO_T}$CC" >&6 1553else 1554 echo "$as_me:$LINENO: result: no" >&5 1555echo "${ECHO_T}no" >&6 1556fi 1557 1558fi 1559if test -z "$CC"; then 1560 if test -n "$ac_tool_prefix"; then 1561 for ac_prog in cl 1562 do 1563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1564set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1565echo "$as_me:$LINENO: checking for $ac_word" >&5 1566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1567if test "${ac_cv_prog_CC+set}" = set; then 1568 echo $ECHO_N "(cached) $ECHO_C" >&6 1569else 1570 if test -n "$CC"; then 1571 ac_cv_prog_CC="$CC" # Let the user override the test. 1572else 1573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1574for as_dir in $PATH 1575do 1576 IFS=$as_save_IFS 1577 test -z "$as_dir" && as_dir=. 1578 for ac_exec_ext in '' $ac_executable_extensions; do 1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1582 break 2 1583 fi 1584done 1585done 1586 1587fi 1588fi 1589CC=$ac_cv_prog_CC 1590if test -n "$CC"; then 1591 echo "$as_me:$LINENO: result: $CC" >&5 1592echo "${ECHO_T}$CC" >&6 1593else 1594 echo "$as_me:$LINENO: result: no" >&5 1595echo "${ECHO_T}no" >&6 1596fi 1597 1598 test -n "$CC" && break 1599 done 1600fi 1601if test -z "$CC"; then 1602 ac_ct_CC=$CC 1603 for ac_prog in cl 1604do 1605 # Extract the first word of "$ac_prog", so it can be a program name with args. 1606set dummy $ac_prog; ac_word=$2 1607echo "$as_me:$LINENO: checking for $ac_word" >&5 1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1610 echo $ECHO_N "(cached) $ECHO_C" >&6 1611else 1612 if test -n "$ac_ct_CC"; then 1613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1614else 1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1616for as_dir in $PATH 1617do 1618 IFS=$as_save_IFS 1619 test -z "$as_dir" && as_dir=. 1620 for ac_exec_ext in '' $ac_executable_extensions; do 1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1622 ac_cv_prog_ac_ct_CC="$ac_prog" 1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1624 break 2 1625 fi 1626done 1627done 1628 1629fi 1630fi 1631ac_ct_CC=$ac_cv_prog_ac_ct_CC 1632if test -n "$ac_ct_CC"; then 1633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1634echo "${ECHO_T}$ac_ct_CC" >&6 1635else 1636 echo "$as_me:$LINENO: result: no" >&5 1637echo "${ECHO_T}no" >&6 1638fi 1639 1640 test -n "$ac_ct_CC" && break 1641done 1642 1643 CC=$ac_ct_CC 1644fi 1645 1646fi 1647 1648 1649test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1650See \`config.log' for more details." >&5 1651echo "$as_me: error: no acceptable C compiler found in \$PATH 1652See \`config.log' for more details." >&2;} 1653 { (exit 1); exit 1; }; } 1654 1655# Provide some information about the compiler. 1656echo "$as_me:$LINENO:" \ 1657 "checking for C compiler version" >&5 1658ac_compiler=`set X $ac_compile; echo $2` 1659{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1660 (eval $ac_compiler --version </dev/null >&5) 2>&5 1661 ac_status=$? 1662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1663 (exit $ac_status); } 1664{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1665 (eval $ac_compiler -v </dev/null >&5) 2>&5 1666 ac_status=$? 1667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1668 (exit $ac_status); } 1669{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1670 (eval $ac_compiler -V </dev/null >&5) 2>&5 1671 ac_status=$? 1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1673 (exit $ac_status); } 1674 1675cat >conftest.$ac_ext <<_ACEOF 1676/* confdefs.h. */ 1677_ACEOF 1678cat confdefs.h >>conftest.$ac_ext 1679cat >>conftest.$ac_ext <<_ACEOF 1680/* end confdefs.h. */ 1681 1682int 1683main () 1684{ 1685 1686 ; 1687 return 0; 1688} 1689_ACEOF 1690ac_clean_files_save=$ac_clean_files 1691ac_clean_files="$ac_clean_files a.out a.exe b.out" 1692# Try to create an executable without -o first, disregard a.out. 1693# It will help us diagnose broken compilers, and finding out an intuition 1694# of exeext. 1695echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1696echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1697ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1698if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1699 (eval $ac_link_default) 2>&5 1700 ac_status=$? 1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1702 (exit $ac_status); }; then 1703 # Find the output, starting from the most likely. This scheme is 1704# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1705# resort. 1706 1707# Be careful to initialize this variable, since it used to be cached. 1708# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1709ac_cv_exeext= 1710# b.out is created by i960 compilers. 1711for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1712do 1713 test -f "$ac_file" || continue 1714 case $ac_file in 1715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1716 ;; 1717 conftest.$ac_ext ) 1718 # This is the source file. 1719 ;; 1720 [ab].out ) 1721 # We found the default executable, but exeext='' is most 1722 # certainly right. 1723 break;; 1724 *.* ) 1725 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1726 # FIXME: I believe we export ac_cv_exeext for Libtool, 1727 # but it would be cool to find out if it's true. Does anybody 1728 # maintain Libtool? --akim. 1729 export ac_cv_exeext 1730 break;; 1731 * ) 1732 break;; 1733 esac 1734done 1735else 1736 echo "$as_me: failed program was:" >&5 1737sed 's/^/| /' conftest.$ac_ext >&5 1738 1739{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1740See \`config.log' for more details." >&5 1741echo "$as_me: error: C compiler cannot create executables 1742See \`config.log' for more details." >&2;} 1743 { (exit 77); exit 77; }; } 1744fi 1745 1746ac_exeext=$ac_cv_exeext 1747echo "$as_me:$LINENO: result: $ac_file" >&5 1748echo "${ECHO_T}$ac_file" >&6 1749 1750# Check the compiler produces executables we can run. If not, either 1751# the compiler is broken, or we cross compile. 1752echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1753echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1754# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1755# If not cross compiling, check that we can run a simple program. 1756if test "$cross_compiling" != yes; then 1757 if { ac_try='./$ac_file' 1758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1759 (eval $ac_try) 2>&5 1760 ac_status=$? 1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1762 (exit $ac_status); }; }; then 1763 cross_compiling=no 1764 else 1765 if test "$cross_compiling" = maybe; then 1766 cross_compiling=yes 1767 else 1768 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1769If you meant to cross compile, use \`--host'. 1770See \`config.log' for more details." >&5 1771echo "$as_me: error: cannot run C compiled programs. 1772If you meant to cross compile, use \`--host'. 1773See \`config.log' for more details." >&2;} 1774 { (exit 1); exit 1; }; } 1775 fi 1776 fi 1777fi 1778echo "$as_me:$LINENO: result: yes" >&5 1779echo "${ECHO_T}yes" >&6 1780 1781rm -f a.out a.exe conftest$ac_cv_exeext b.out 1782ac_clean_files=$ac_clean_files_save 1783# Check the compiler produces executables we can run. If not, either 1784# the compiler is broken, or we cross compile. 1785echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1786echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1787echo "$as_me:$LINENO: result: $cross_compiling" >&5 1788echo "${ECHO_T}$cross_compiling" >&6 1789 1790echo "$as_me:$LINENO: checking for suffix of executables" >&5 1791echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1793 (eval $ac_link) 2>&5 1794 ac_status=$? 1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1796 (exit $ac_status); }; then 1797 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1798# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1799# work properly (i.e., refer to `conftest.exe'), while it won't with 1800# `rm'. 1801for ac_file in conftest.exe conftest conftest.*; do 1802 test -f "$ac_file" || continue 1803 case $ac_file in 1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1805 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1806 export ac_cv_exeext 1807 break;; 1808 * ) break;; 1809 esac 1810done 1811else 1812 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1813See \`config.log' for more details." >&5 1814echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1815See \`config.log' for more details." >&2;} 1816 { (exit 1); exit 1; }; } 1817fi 1818 1819rm -f conftest$ac_cv_exeext 1820echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1821echo "${ECHO_T}$ac_cv_exeext" >&6 1822 1823rm -f conftest.$ac_ext 1824EXEEXT=$ac_cv_exeext 1825ac_exeext=$EXEEXT 1826echo "$as_me:$LINENO: checking for suffix of object files" >&5 1827echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1828if test "${ac_cv_objext+set}" = set; then 1829 echo $ECHO_N "(cached) $ECHO_C" >&6 1830else 1831 cat >conftest.$ac_ext <<_ACEOF 1832/* confdefs.h. */ 1833_ACEOF 1834cat confdefs.h >>conftest.$ac_ext 1835cat >>conftest.$ac_ext <<_ACEOF 1836/* end confdefs.h. */ 1837 1838int 1839main () 1840{ 1841 1842 ; 1843 return 0; 1844} 1845_ACEOF 1846rm -f conftest.o conftest.obj 1847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1848 (eval $ac_compile) 2>&5 1849 ac_status=$? 1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1851 (exit $ac_status); }; then 1852 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1853 case $ac_file in 1854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1856 break;; 1857 esac 1858done 1859else 1860 echo "$as_me: failed program was:" >&5 1861sed 's/^/| /' conftest.$ac_ext >&5 1862 1863{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1864See \`config.log' for more details." >&5 1865echo "$as_me: error: cannot compute suffix of object files: cannot compile 1866See \`config.log' for more details." >&2;} 1867 { (exit 1); exit 1; }; } 1868fi 1869 1870rm -f conftest.$ac_cv_objext conftest.$ac_ext 1871fi 1872echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1873echo "${ECHO_T}$ac_cv_objext" >&6 1874OBJEXT=$ac_cv_objext 1875ac_objext=$OBJEXT 1876echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1877echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1878if test "${ac_cv_c_compiler_gnu+set}" = set; then 1879 echo $ECHO_N "(cached) $ECHO_C" >&6 1880else 1881 cat >conftest.$ac_ext <<_ACEOF 1882/* confdefs.h. */ 1883_ACEOF 1884cat confdefs.h >>conftest.$ac_ext 1885cat >>conftest.$ac_ext <<_ACEOF 1886/* end confdefs.h. */ 1887 1888int 1889main () 1890{ 1891#ifndef __GNUC__ 1892 choke me 1893#endif 1894 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899rm -f conftest.$ac_objext 1900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1901 (eval $ac_compile) 2>conftest.er1 1902 ac_status=$? 1903 grep -v '^ *+' conftest.er1 >conftest.err 1904 rm -f conftest.er1 1905 cat conftest.err >&5 1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1907 (exit $ac_status); } && 1908 { ac_try='test -z "$ac_c_werror_flag" 1909 || test ! -s conftest.err' 1910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1911 (eval $ac_try) 2>&5 1912 ac_status=$? 1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1914 (exit $ac_status); }; } && 1915 { ac_try='test -s conftest.$ac_objext' 1916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1917 (eval $ac_try) 2>&5 1918 ac_status=$? 1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1920 (exit $ac_status); }; }; then 1921 ac_compiler_gnu=yes 1922else 1923 echo "$as_me: failed program was:" >&5 1924sed 's/^/| /' conftest.$ac_ext >&5 1925 1926ac_compiler_gnu=no 1927fi 1928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1929ac_cv_c_compiler_gnu=$ac_compiler_gnu 1930 1931fi 1932echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1933echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1934GCC=`test $ac_compiler_gnu = yes && echo yes` 1935ac_test_CFLAGS=${CFLAGS+set} 1936ac_save_CFLAGS=$CFLAGS 1937CFLAGS="-g" 1938echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1939echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1940if test "${ac_cv_prog_cc_g+set}" = set; then 1941 echo $ECHO_N "(cached) $ECHO_C" >&6 1942else 1943 cat >conftest.$ac_ext <<_ACEOF 1944/* confdefs.h. */ 1945_ACEOF 1946cat confdefs.h >>conftest.$ac_ext 1947cat >>conftest.$ac_ext <<_ACEOF 1948/* end confdefs.h. */ 1949 1950int 1951main () 1952{ 1953 1954 ; 1955 return 0; 1956} 1957_ACEOF 1958rm -f conftest.$ac_objext 1959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1960 (eval $ac_compile) 2>conftest.er1 1961 ac_status=$? 1962 grep -v '^ *+' conftest.er1 >conftest.err 1963 rm -f conftest.er1 1964 cat conftest.err >&5 1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1966 (exit $ac_status); } && 1967 { ac_try='test -z "$ac_c_werror_flag" 1968 || test ! -s conftest.err' 1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1970 (eval $ac_try) 2>&5 1971 ac_status=$? 1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1973 (exit $ac_status); }; } && 1974 { ac_try='test -s conftest.$ac_objext' 1975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1976 (eval $ac_try) 2>&5 1977 ac_status=$? 1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1979 (exit $ac_status); }; }; then 1980 ac_cv_prog_cc_g=yes 1981else 1982 echo "$as_me: failed program was:" >&5 1983sed 's/^/| /' conftest.$ac_ext >&5 1984 1985ac_cv_prog_cc_g=no 1986fi 1987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1988fi 1989echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1990echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1991if test "$ac_test_CFLAGS" = set; then 1992 CFLAGS=$ac_save_CFLAGS 1993elif test $ac_cv_prog_cc_g = yes; then 1994 if test "$GCC" = yes; then 1995 CFLAGS="-g -O2" 1996 else 1997 CFLAGS="-g" 1998 fi 1999else 2000 if test "$GCC" = yes; then 2001 CFLAGS="-O2" 2002 else 2003 CFLAGS= 2004 fi 2005fi 2006echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2007echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2008if test "${ac_cv_prog_cc_stdc+set}" = set; then 2009 echo $ECHO_N "(cached) $ECHO_C" >&6 2010else 2011 ac_cv_prog_cc_stdc=no 2012ac_save_CC=$CC 2013cat >conftest.$ac_ext <<_ACEOF 2014/* confdefs.h. */ 2015_ACEOF 2016cat confdefs.h >>conftest.$ac_ext 2017cat >>conftest.$ac_ext <<_ACEOF 2018/* end confdefs.h. */ 2019#include <stdarg.h> 2020#include <stdio.h> 2021#include <sys/types.h> 2022#include <sys/stat.h> 2023/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2024struct buf { int x; }; 2025FILE * (*rcsopen) (struct buf *, struct stat *, int); 2026static char *e (p, i) 2027 char **p; 2028 int i; 2029{ 2030 return p[i]; 2031} 2032static char *f (char * (*g) (char **, int), char **p, ...) 2033{ 2034 char *s; 2035 va_list v; 2036 va_start (v,p); 2037 s = g (p, va_arg (v,int)); 2038 va_end (v); 2039 return s; 2040} 2041 2042/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2043 function prototypes and stuff, but not '\xHH' hex character constants. 2044 These don't provoke an error unfortunately, instead are silently treated 2045 as 'x'. The following induces an error, until -std1 is added to get 2046 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2047 array size at least. It's necessary to write '\x00'==0 to get something 2048 that's true only with -std1. */ 2049int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2050 2051int test (int i, double x); 2052struct s1 {int (*f) (int a);}; 2053struct s2 {int (*f) (double a);}; 2054int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2055int argc; 2056char **argv; 2057int 2058main () 2059{ 2060return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2061 ; 2062 return 0; 2063} 2064_ACEOF 2065# Don't try gcc -ansi; that turns off useful extensions and 2066# breaks some systems' header files. 2067# AIX -qlanglvl=ansi 2068# Ultrix and OSF/1 -std1 2069# HP-UX 10.20 and later -Ae 2070# HP-UX older versions -Aa -D_HPUX_SOURCE 2071# SVR4 -Xc -D__EXTENSIONS__ 2072for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2073do 2074 CC="$ac_save_CC $ac_arg" 2075 rm -f conftest.$ac_objext 2076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2077 (eval $ac_compile) 2>conftest.er1 2078 ac_status=$? 2079 grep -v '^ *+' conftest.er1 >conftest.err 2080 rm -f conftest.er1 2081 cat conftest.err >&5 2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2083 (exit $ac_status); } && 2084 { ac_try='test -z "$ac_c_werror_flag" 2085 || test ! -s conftest.err' 2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2087 (eval $ac_try) 2>&5 2088 ac_status=$? 2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2090 (exit $ac_status); }; } && 2091 { ac_try='test -s conftest.$ac_objext' 2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2093 (eval $ac_try) 2>&5 2094 ac_status=$? 2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2096 (exit $ac_status); }; }; then 2097 ac_cv_prog_cc_stdc=$ac_arg 2098break 2099else 2100 echo "$as_me: failed program was:" >&5 2101sed 's/^/| /' conftest.$ac_ext >&5 2102 2103fi 2104rm -f conftest.err conftest.$ac_objext 2105done 2106rm -f conftest.$ac_ext conftest.$ac_objext 2107CC=$ac_save_CC 2108 2109fi 2110 2111case "x$ac_cv_prog_cc_stdc" in 2112 x|xno) 2113 echo "$as_me:$LINENO: result: none needed" >&5 2114echo "${ECHO_T}none needed" >&6 ;; 2115 *) 2116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2117echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2118 CC="$CC $ac_cv_prog_cc_stdc" ;; 2119esac 2120 2121# Some people use a C++ compiler to compile C. Since we use `exit', 2122# in C++ we need to declare it. In case someone uses the same compiler 2123# for both compiling C and C++ we need to have the C++ compiler decide 2124# the declaration of exit, since it's the most demanding environment. 2125cat >conftest.$ac_ext <<_ACEOF 2126#ifndef __cplusplus 2127 choke me 2128#endif 2129_ACEOF 2130rm -f conftest.$ac_objext 2131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2132 (eval $ac_compile) 2>conftest.er1 2133 ac_status=$? 2134 grep -v '^ *+' conftest.er1 >conftest.err 2135 rm -f conftest.er1 2136 cat conftest.err >&5 2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2138 (exit $ac_status); } && 2139 { ac_try='test -z "$ac_c_werror_flag" 2140 || test ! -s conftest.err' 2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2142 (eval $ac_try) 2>&5 2143 ac_status=$? 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); }; } && 2146 { ac_try='test -s conftest.$ac_objext' 2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2148 (eval $ac_try) 2>&5 2149 ac_status=$? 2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2151 (exit $ac_status); }; }; then 2152 for ac_declaration in \ 2153 '' \ 2154 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2155 'extern "C" void std::exit (int); using std::exit;' \ 2156 'extern "C" void exit (int) throw ();' \ 2157 'extern "C" void exit (int);' \ 2158 'void exit (int);' 2159do 2160 cat >conftest.$ac_ext <<_ACEOF 2161/* confdefs.h. */ 2162_ACEOF 2163cat confdefs.h >>conftest.$ac_ext 2164cat >>conftest.$ac_ext <<_ACEOF 2165/* end confdefs.h. */ 2166$ac_declaration 2167#include <stdlib.h> 2168int 2169main () 2170{ 2171exit (42); 2172 ; 2173 return 0; 2174} 2175_ACEOF 2176rm -f conftest.$ac_objext 2177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2178 (eval $ac_compile) 2>conftest.er1 2179 ac_status=$? 2180 grep -v '^ *+' conftest.er1 >conftest.err 2181 rm -f conftest.er1 2182 cat conftest.err >&5 2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2184 (exit $ac_status); } && 2185 { ac_try='test -z "$ac_c_werror_flag" 2186 || test ! -s conftest.err' 2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2188 (eval $ac_try) 2>&5 2189 ac_status=$? 2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191 (exit $ac_status); }; } && 2192 { ac_try='test -s conftest.$ac_objext' 2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2194 (eval $ac_try) 2>&5 2195 ac_status=$? 2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2197 (exit $ac_status); }; }; then 2198 : 2199else 2200 echo "$as_me: failed program was:" >&5 2201sed 's/^/| /' conftest.$ac_ext >&5 2202 2203continue 2204fi 2205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2206 cat >conftest.$ac_ext <<_ACEOF 2207/* confdefs.h. */ 2208_ACEOF 2209cat confdefs.h >>conftest.$ac_ext 2210cat >>conftest.$ac_ext <<_ACEOF 2211/* end confdefs.h. */ 2212$ac_declaration 2213int 2214main () 2215{ 2216exit (42); 2217 ; 2218 return 0; 2219} 2220_ACEOF 2221rm -f conftest.$ac_objext 2222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2223 (eval $ac_compile) 2>conftest.er1 2224 ac_status=$? 2225 grep -v '^ *+' conftest.er1 >conftest.err 2226 rm -f conftest.er1 2227 cat conftest.err >&5 2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2229 (exit $ac_status); } && 2230 { ac_try='test -z "$ac_c_werror_flag" 2231 || test ! -s conftest.err' 2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2233 (eval $ac_try) 2>&5 2234 ac_status=$? 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2236 (exit $ac_status); }; } && 2237 { ac_try='test -s conftest.$ac_objext' 2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2239 (eval $ac_try) 2>&5 2240 ac_status=$? 2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2242 (exit $ac_status); }; }; then 2243 break 2244else 2245 echo "$as_me: failed program was:" >&5 2246sed 's/^/| /' conftest.$ac_ext >&5 2247 2248fi 2249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2250done 2251rm -f conftest* 2252if test -n "$ac_declaration"; then 2253 echo '#ifdef __cplusplus' >>confdefs.h 2254 echo $ac_declaration >>confdefs.h 2255 echo '#endif' >>confdefs.h 2256fi 2257 2258else 2259 echo "$as_me: failed program was:" >&5 2260sed 's/^/| /' conftest.$ac_ext >&5 2261 2262fi 2263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2264ac_ext=c 2265ac_cpp='$CPP $CPPFLAGS' 2266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2268ac_compiler_gnu=$ac_cv_c_compiler_gnu 2269 2270 2271ac_ext=c 2272ac_cpp='$CPP $CPPFLAGS' 2273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2275ac_compiler_gnu=$ac_cv_c_compiler_gnu 2276echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2277echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2278# On Suns, sometimes $CPP names a directory. 2279if test -n "$CPP" && test -d "$CPP"; then 2280 CPP= 2281fi 2282if test -z "$CPP"; then 2283 if test "${ac_cv_prog_CPP+set}" = set; then 2284 echo $ECHO_N "(cached) $ECHO_C" >&6 2285else 2286 # Double quotes because CPP needs to be expanded 2287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2288 do 2289 ac_preproc_ok=false 2290for ac_c_preproc_warn_flag in '' yes 2291do 2292 # Use a header file that comes with gcc, so configuring glibc 2293 # with a fresh cross-compiler works. 2294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2295 # <limits.h> exists even on freestanding compilers. 2296 # On the NeXT, cc -E runs the code through the compiler's parser, 2297 # not just through cpp. "Syntax error" is here to catch this case. 2298 cat >conftest.$ac_ext <<_ACEOF 2299/* confdefs.h. */ 2300_ACEOF 2301cat confdefs.h >>conftest.$ac_ext 2302cat >>conftest.$ac_ext <<_ACEOF 2303/* end confdefs.h. */ 2304#ifdef __STDC__ 2305# include <limits.h> 2306#else 2307# include <assert.h> 2308#endif 2309 Syntax error 2310_ACEOF 2311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2313 ac_status=$? 2314 grep -v '^ *+' conftest.er1 >conftest.err 2315 rm -f conftest.er1 2316 cat conftest.err >&5 2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2318 (exit $ac_status); } >/dev/null; then 2319 if test -s conftest.err; then 2320 ac_cpp_err=$ac_c_preproc_warn_flag 2321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2322 else 2323 ac_cpp_err= 2324 fi 2325else 2326 ac_cpp_err=yes 2327fi 2328if test -z "$ac_cpp_err"; then 2329 : 2330else 2331 echo "$as_me: failed program was:" >&5 2332sed 's/^/| /' conftest.$ac_ext >&5 2333 2334 # Broken: fails on valid input. 2335continue 2336fi 2337rm -f conftest.err conftest.$ac_ext 2338 2339 # OK, works on sane cases. Now check whether non-existent headers 2340 # can be detected and how. 2341 cat >conftest.$ac_ext <<_ACEOF 2342/* confdefs.h. */ 2343_ACEOF 2344cat confdefs.h >>conftest.$ac_ext 2345cat >>conftest.$ac_ext <<_ACEOF 2346/* end confdefs.h. */ 2347#include <ac_nonexistent.h> 2348_ACEOF 2349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2351 ac_status=$? 2352 grep -v '^ *+' conftest.er1 >conftest.err 2353 rm -f conftest.er1 2354 cat conftest.err >&5 2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2356 (exit $ac_status); } >/dev/null; then 2357 if test -s conftest.err; then 2358 ac_cpp_err=$ac_c_preproc_warn_flag 2359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2360 else 2361 ac_cpp_err= 2362 fi 2363else 2364 ac_cpp_err=yes 2365fi 2366if test -z "$ac_cpp_err"; then 2367 # Broken: success on invalid input. 2368continue 2369else 2370 echo "$as_me: failed program was:" >&5 2371sed 's/^/| /' conftest.$ac_ext >&5 2372 2373 # Passes both tests. 2374ac_preproc_ok=: 2375break 2376fi 2377rm -f conftest.err conftest.$ac_ext 2378 2379done 2380# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2381rm -f conftest.err conftest.$ac_ext 2382if $ac_preproc_ok; then 2383 break 2384fi 2385 2386 done 2387 ac_cv_prog_CPP=$CPP 2388 2389fi 2390 CPP=$ac_cv_prog_CPP 2391else 2392 ac_cv_prog_CPP=$CPP 2393fi 2394echo "$as_me:$LINENO: result: $CPP" >&5 2395echo "${ECHO_T}$CPP" >&6 2396ac_preproc_ok=false 2397for ac_c_preproc_warn_flag in '' yes 2398do 2399 # Use a header file that comes with gcc, so configuring glibc 2400 # with a fresh cross-compiler works. 2401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2402 # <limits.h> exists even on freestanding compilers. 2403 # On the NeXT, cc -E runs the code through the compiler's parser, 2404 # not just through cpp. "Syntax error" is here to catch this case. 2405 cat >conftest.$ac_ext <<_ACEOF 2406/* confdefs.h. */ 2407_ACEOF 2408cat confdefs.h >>conftest.$ac_ext 2409cat >>conftest.$ac_ext <<_ACEOF 2410/* end confdefs.h. */ 2411#ifdef __STDC__ 2412# include <limits.h> 2413#else 2414# include <assert.h> 2415#endif 2416 Syntax error 2417_ACEOF 2418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2420 ac_status=$? 2421 grep -v '^ *+' conftest.er1 >conftest.err 2422 rm -f conftest.er1 2423 cat conftest.err >&5 2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2425 (exit $ac_status); } >/dev/null; then 2426 if test -s conftest.err; then 2427 ac_cpp_err=$ac_c_preproc_warn_flag 2428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2429 else 2430 ac_cpp_err= 2431 fi 2432else 2433 ac_cpp_err=yes 2434fi 2435if test -z "$ac_cpp_err"; then 2436 : 2437else 2438 echo "$as_me: failed program was:" >&5 2439sed 's/^/| /' conftest.$ac_ext >&5 2440 2441 # Broken: fails on valid input. 2442continue 2443fi 2444rm -f conftest.err conftest.$ac_ext 2445 2446 # OK, works on sane cases. Now check whether non-existent headers 2447 # can be detected and how. 2448 cat >conftest.$ac_ext <<_ACEOF 2449/* confdefs.h. */ 2450_ACEOF 2451cat confdefs.h >>conftest.$ac_ext 2452cat >>conftest.$ac_ext <<_ACEOF 2453/* end confdefs.h. */ 2454#include <ac_nonexistent.h> 2455_ACEOF 2456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2458 ac_status=$? 2459 grep -v '^ *+' conftest.er1 >conftest.err 2460 rm -f conftest.er1 2461 cat conftest.err >&5 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); } >/dev/null; then 2464 if test -s conftest.err; then 2465 ac_cpp_err=$ac_c_preproc_warn_flag 2466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2467 else 2468 ac_cpp_err= 2469 fi 2470else 2471 ac_cpp_err=yes 2472fi 2473if test -z "$ac_cpp_err"; then 2474 # Broken: success on invalid input. 2475continue 2476else 2477 echo "$as_me: failed program was:" >&5 2478sed 's/^/| /' conftest.$ac_ext >&5 2479 2480 # Passes both tests. 2481ac_preproc_ok=: 2482break 2483fi 2484rm -f conftest.err conftest.$ac_ext 2485 2486done 2487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2488rm -f conftest.err conftest.$ac_ext 2489if $ac_preproc_ok; then 2490 : 2491else 2492 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2493See \`config.log' for more details." >&5 2494echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2495See \`config.log' for more details." >&2;} 2496 { (exit 1); exit 1; }; } 2497fi 2498 2499ac_ext=c 2500ac_cpp='$CPP $CPPFLAGS' 2501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2503ac_compiler_gnu=$ac_cv_c_compiler_gnu 2504 2505 2506echo "$as_me:$LINENO: checking for egrep" >&5 2507echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2508if test "${ac_cv_prog_egrep+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510else 2511 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2512 then ac_cv_prog_egrep='grep -E' 2513 else ac_cv_prog_egrep='egrep' 2514 fi 2515fi 2516echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2517echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2518 EGREP=$ac_cv_prog_egrep 2519 2520 2521 2522echo "$as_me:$LINENO: checking for AIX" >&5 2523echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2524cat >conftest.$ac_ext <<_ACEOF 2525/* confdefs.h. */ 2526_ACEOF 2527cat confdefs.h >>conftest.$ac_ext 2528cat >>conftest.$ac_ext <<_ACEOF 2529/* end confdefs.h. */ 2530#ifdef _AIX 2531 yes 2532#endif 2533 2534_ACEOF 2535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2536 $EGREP "yes" >/dev/null 2>&1; then 2537 echo "$as_me:$LINENO: result: yes" >&5 2538echo "${ECHO_T}yes" >&6 2539cat >>confdefs.h <<\_ACEOF 2540#define _ALL_SOURCE 1 2541_ACEOF 2542 2543else 2544 echo "$as_me:$LINENO: result: no" >&5 2545echo "${ECHO_T}no" >&6 2546fi 2547rm -f conftest* 2548 2549 2550 2551case "$prefix" in 2552 NONE) 2553 case "$sysconfdir" in 2554 '${prefix}/etc') 2555 sysconfdir=/etc 2556 ;; 2557 esac 2558 case "$localstatedir" in 2559 '${prefix}/var') 2560 localstatedir=/var 2561 ;; 2562 esac 2563 ;; 2564esac 2565 2566# 2567# Determine configuration directory 2568# 2569configdir=$sysconfdir/nsd 2570 2571# Check whether --with-configdir or --without-configdir was given. 2572if test "${with_configdir+set}" = set; then 2573 withval="$with_configdir" 2574 configdir=$withval 2575fi; 2576 2577 2578# 2579# Determine configuration file 2580nsd_conf_file=${configdir}/nsd.conf 2581 2582# Check whether --with-nsd_conf_file or --without-nsd_conf_file was given. 2583if test "${with_nsd_conf_file+set}" = set; then 2584 withval="$with_nsd_conf_file" 2585 nsd_conf_file=$withval 2586fi; 2587 2588# the eval is to evaluate shell expansion twice, once 2589# for $nsd_conf_file and once for the ${prefix} within it. 2590 2591cat >>confdefs.h <<_ACEOF 2592#define CONFIGFILE "`eval echo $nsd_conf_file`" 2593_ACEOF 2594 2595 2596# 2597# Determine start and kill priorities 2598start_priority=45 2599 2600# Check whether --with-start_priority or --without-start_priority was given. 2601if test "${with_start_priority+set}" = set; then 2602 withval="$with_start_priority" 2603 start_priority=$withval 2604fi; 2605 2606 2607kill_priority=74 2608 2609# Check whether --with-kill_priority or --without-kill_priority was given. 2610if test "${with_kill_priority+set}" = set; then 2611 withval="$with_kill_priority" 2612 kill_priority=$withval 2613fi; 2614 2615 2616# 2617# Default logfile 2618# 2619logfile=${localstatedir}/log/nsd.log 2620 2621# 2622# Database directory 2623# 2624dbdir=${localstatedir}/db/nsd 2625 2626# 2627# Determine the pidfile location. Check if /var/run exists, if so set pidfile 2628# to /var/run/nsd.pid by default 2629# 2630if test -d ${localstatedir}/run; then 2631 pidfile=${localstatedir}/run/nsd.pid 2632else 2633 pidfile=${dbdir}/nsd.pid 2634fi 2635 2636# Check whether --with-pidfile or --without-pidfile was given. 2637if test "${with_pidfile+set}" = set; then 2638 withval="$with_pidfile" 2639 pidfile=$withval 2640fi; 2641 2642 2643cat >>confdefs.h <<_ACEOF 2644#define PIDFILE "`eval echo $pidfile`" 2645_ACEOF 2646 2647 2648# 2649# Determine location of nsd.db 2650# 2651dbfile=${dbdir}/nsd.db 2652 2653# Check whether --with-dbfile or --without-dbfile was given. 2654if test "${with_dbfile+set}" = set; then 2655 withval="$with_dbfile" 2656 dbfile=$withval 2657fi; 2658 2659 2660cat >>confdefs.h <<_ACEOF 2661#define DBFILE "`eval echo $dbfile`" 2662_ACEOF 2663 2664 2665dbdir=`dirname $dbfile` 2666 2667 2668piddir=`dirname $pidfile` 2669 2670 2671# 2672# Determine the default directory for the zone files 2673# 2674zonesdir=$configdir 2675 2676# Check whether --with-zonesdir or --without-zonesdir was given. 2677if test "${with_zonesdir+set}" = set; then 2678 withval="$with_zonesdir" 2679 zonesdir=$withval 2680fi; 2681 2682 2683cat >>confdefs.h <<_ACEOF 2684#define ZONESDIR "`eval echo $zonesdir`" 2685_ACEOF 2686 2687 2688# default diff file location. 2689difffile=${dbdir}/ixfr.db 2690 2691# Check whether --with-difffile or --without-difffile was given. 2692if test "${with_difffile+set}" = set; then 2693 withval="$with_difffile" 2694 difffile=$withval 2695fi; 2696 2697cat >>confdefs.h <<_ACEOF 2698#define DIFFFILE "`eval echo $difffile`" 2699_ACEOF 2700 2701 2702 2703# default xfrd file location. 2704xfrdfile=${dbdir}/xfrd.state 2705 2706# Check whether --with-xfrdfile or --without-xfrdfile was given. 2707if test "${with_xfrdfile+set}" = set; then 2708 withval="$with_xfrdfile" 2709 xfrdfile=$withval 2710fi; 2711 2712cat >>confdefs.h <<_ACEOF 2713#define XFRDFILE "`eval echo $xfrdfile`" 2714_ACEOF 2715 2716 2717 2718# 2719# Determine default chroot directory 2720# 2721 2722# Check whether --with-chroot or --without-chroot was given. 2723if test "${with_chroot+set}" = set; then 2724 withval="$with_chroot" 2725 2726 chrootdir=$withval 2727 2728cat >>confdefs.h <<_ACEOF 2729#define CHROOTDIR "`eval echo $chrootdir`" 2730_ACEOF 2731 2732 2733fi; 2734 2735# 2736# Determine the user name to drop privileges to 2737# 2738user=nsd 2739 2740# Check whether --with-user or --without-user was given. 2741if test "${with_user+set}" = set; then 2742 withval="$with_user" 2743 user=$withval 2744fi; 2745 2746 2747cat >>confdefs.h <<_ACEOF 2748#define USER "$user" 2749_ACEOF 2750 2751 2752# Checks for programs. 2753for ac_prog in gawk mawk nawk awk 2754do 2755 # Extract the first word of "$ac_prog", so it can be a program name with args. 2756set dummy $ac_prog; ac_word=$2 2757echo "$as_me:$LINENO: checking for $ac_word" >&5 2758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2759if test "${ac_cv_prog_AWK+set}" = set; then 2760 echo $ECHO_N "(cached) $ECHO_C" >&6 2761else 2762 if test -n "$AWK"; then 2763 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2764else 2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766for as_dir in $PATH 2767do 2768 IFS=$as_save_IFS 2769 test -z "$as_dir" && as_dir=. 2770 for ac_exec_ext in '' $ac_executable_extensions; do 2771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2772 ac_cv_prog_AWK="$ac_prog" 2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2774 break 2 2775 fi 2776done 2777done 2778 2779fi 2780fi 2781AWK=$ac_cv_prog_AWK 2782if test -n "$AWK"; then 2783 echo "$as_me:$LINENO: result: $AWK" >&5 2784echo "${ECHO_T}$AWK" >&6 2785else 2786 echo "$as_me:$LINENO: result: no" >&5 2787echo "${ECHO_T}no" >&6 2788fi 2789 2790 test -n "$AWK" && break 2791done 2792 2793ac_ext=c 2794ac_cpp='$CPP $CPPFLAGS' 2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2797ac_compiler_gnu=$ac_cv_c_compiler_gnu 2798if test -n "$ac_tool_prefix"; then 2799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2800set dummy ${ac_tool_prefix}gcc; ac_word=$2 2801echo "$as_me:$LINENO: checking for $ac_word" >&5 2802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2803if test "${ac_cv_prog_CC+set}" = set; then 2804 echo $ECHO_N "(cached) $ECHO_C" >&6 2805else 2806 if test -n "$CC"; then 2807 ac_cv_prog_CC="$CC" # Let the user override the test. 2808else 2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_exec_ext in '' $ac_executable_extensions; do 2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2816 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2818 break 2 2819 fi 2820done 2821done 2822 2823fi 2824fi 2825CC=$ac_cv_prog_CC 2826if test -n "$CC"; then 2827 echo "$as_me:$LINENO: result: $CC" >&5 2828echo "${ECHO_T}$CC" >&6 2829else 2830 echo "$as_me:$LINENO: result: no" >&5 2831echo "${ECHO_T}no" >&6 2832fi 2833 2834fi 2835if test -z "$ac_cv_prog_CC"; then 2836 ac_ct_CC=$CC 2837 # Extract the first word of "gcc", so it can be a program name with args. 2838set dummy gcc; ac_word=$2 2839echo "$as_me:$LINENO: checking for $ac_word" >&5 2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2841if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2842 echo $ECHO_N "(cached) $ECHO_C" >&6 2843else 2844 if test -n "$ac_ct_CC"; then 2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 test -z "$as_dir" && as_dir=. 2852 for ac_exec_ext in '' $ac_executable_extensions; do 2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2854 ac_cv_prog_ac_ct_CC="gcc" 2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2856 break 2 2857 fi 2858done 2859done 2860 2861fi 2862fi 2863ac_ct_CC=$ac_cv_prog_ac_ct_CC 2864if test -n "$ac_ct_CC"; then 2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2866echo "${ECHO_T}$ac_ct_CC" >&6 2867else 2868 echo "$as_me:$LINENO: result: no" >&5 2869echo "${ECHO_T}no" >&6 2870fi 2871 2872 CC=$ac_ct_CC 2873else 2874 CC="$ac_cv_prog_CC" 2875fi 2876 2877if test -z "$CC"; then 2878 if test -n "$ac_tool_prefix"; then 2879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2880set dummy ${ac_tool_prefix}cc; ac_word=$2 2881echo "$as_me:$LINENO: checking for $ac_word" >&5 2882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2883if test "${ac_cv_prog_CC+set}" = set; then 2884 echo $ECHO_N "(cached) $ECHO_C" >&6 2885else 2886 if test -n "$CC"; then 2887 ac_cv_prog_CC="$CC" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2896 ac_cv_prog_CC="${ac_tool_prefix}cc" 2897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901done 2902 2903fi 2904fi 2905CC=$ac_cv_prog_CC 2906if test -n "$CC"; then 2907 echo "$as_me:$LINENO: result: $CC" >&5 2908echo "${ECHO_T}$CC" >&6 2909else 2910 echo "$as_me:$LINENO: result: no" >&5 2911echo "${ECHO_T}no" >&6 2912fi 2913 2914fi 2915if test -z "$ac_cv_prog_CC"; then 2916 ac_ct_CC=$CC 2917 # Extract the first word of "cc", so it can be a program name with args. 2918set dummy cc; ac_word=$2 2919echo "$as_me:$LINENO: checking for $ac_word" >&5 2920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2922 echo $ECHO_N "(cached) $ECHO_C" >&6 2923else 2924 if test -n "$ac_ct_CC"; then 2925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2926else 2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2928for as_dir in $PATH 2929do 2930 IFS=$as_save_IFS 2931 test -z "$as_dir" && as_dir=. 2932 for ac_exec_ext in '' $ac_executable_extensions; do 2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2934 ac_cv_prog_ac_ct_CC="cc" 2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2936 break 2 2937 fi 2938done 2939done 2940 2941fi 2942fi 2943ac_ct_CC=$ac_cv_prog_ac_ct_CC 2944if test -n "$ac_ct_CC"; then 2945 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2946echo "${ECHO_T}$ac_ct_CC" >&6 2947else 2948 echo "$as_me:$LINENO: result: no" >&5 2949echo "${ECHO_T}no" >&6 2950fi 2951 2952 CC=$ac_ct_CC 2953else 2954 CC="$ac_cv_prog_CC" 2955fi 2956 2957fi 2958if test -z "$CC"; then 2959 # Extract the first word of "cc", so it can be a program name with args. 2960set dummy cc; ac_word=$2 2961echo "$as_me:$LINENO: checking for $ac_word" >&5 2962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2963if test "${ac_cv_prog_CC+set}" = set; then 2964 echo $ECHO_N "(cached) $ECHO_C" >&6 2965else 2966 if test -n "$CC"; then 2967 ac_cv_prog_CC="$CC" # Let the user override the test. 2968else 2969 ac_prog_rejected=no 2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2971for as_dir in $PATH 2972do 2973 IFS=$as_save_IFS 2974 test -z "$as_dir" && as_dir=. 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2978 ac_prog_rejected=yes 2979 continue 2980 fi 2981 ac_cv_prog_CC="cc" 2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2983 break 2 2984 fi 2985done 2986done 2987 2988if test $ac_prog_rejected = yes; then 2989 # We found a bogon in the path, so make sure we never use it. 2990 set dummy $ac_cv_prog_CC 2991 shift 2992 if test $# != 0; then 2993 # We chose a different compiler from the bogus one. 2994 # However, it has the same basename, so the bogon will be chosen 2995 # first if we set CC to just the basename; use the full file name. 2996 shift 2997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2998 fi 2999fi 3000fi 3001fi 3002CC=$ac_cv_prog_CC 3003if test -n "$CC"; then 3004 echo "$as_me:$LINENO: result: $CC" >&5 3005echo "${ECHO_T}$CC" >&6 3006else 3007 echo "$as_me:$LINENO: result: no" >&5 3008echo "${ECHO_T}no" >&6 3009fi 3010 3011fi 3012if test -z "$CC"; then 3013 if test -n "$ac_tool_prefix"; then 3014 for ac_prog in cl 3015 do 3016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3017set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3018echo "$as_me:$LINENO: checking for $ac_word" >&5 3019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3020if test "${ac_cv_prog_CC+set}" = set; then 3021 echo $ECHO_N "(cached) $ECHO_C" >&6 3022else 3023 if test -n "$CC"; then 3024 ac_cv_prog_CC="$CC" # Let the user override the test. 3025else 3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027for as_dir in $PATH 3028do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037done 3038done 3039 3040fi 3041fi 3042CC=$ac_cv_prog_CC 3043if test -n "$CC"; then 3044 echo "$as_me:$LINENO: result: $CC" >&5 3045echo "${ECHO_T}$CC" >&6 3046else 3047 echo "$as_me:$LINENO: result: no" >&5 3048echo "${ECHO_T}no" >&6 3049fi 3050 3051 test -n "$CC" && break 3052 done 3053fi 3054if test -z "$CC"; then 3055 ac_ct_CC=$CC 3056 for ac_prog in cl 3057do 3058 # Extract the first word of "$ac_prog", so it can be a program name with args. 3059set dummy $ac_prog; ac_word=$2 3060echo "$as_me:$LINENO: checking for $ac_word" >&5 3061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3062if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3063 echo $ECHO_N "(cached) $ECHO_C" >&6 3064else 3065 if test -n "$ac_ct_CC"; then 3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3067else 3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069for as_dir in $PATH 3070do 3071 IFS=$as_save_IFS 3072 test -z "$as_dir" && as_dir=. 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3075 ac_cv_prog_ac_ct_CC="$ac_prog" 3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079done 3080done 3081 3082fi 3083fi 3084ac_ct_CC=$ac_cv_prog_ac_ct_CC 3085if test -n "$ac_ct_CC"; then 3086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3087echo "${ECHO_T}$ac_ct_CC" >&6 3088else 3089 echo "$as_me:$LINENO: result: no" >&5 3090echo "${ECHO_T}no" >&6 3091fi 3092 3093 test -n "$ac_ct_CC" && break 3094done 3095 3096 CC=$ac_ct_CC 3097fi 3098 3099fi 3100 3101 3102test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3103See \`config.log' for more details." >&5 3104echo "$as_me: error: no acceptable C compiler found in \$PATH 3105See \`config.log' for more details." >&2;} 3106 { (exit 1); exit 1; }; } 3107 3108# Provide some information about the compiler. 3109echo "$as_me:$LINENO:" \ 3110 "checking for C compiler version" >&5 3111ac_compiler=`set X $ac_compile; echo $2` 3112{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3113 (eval $ac_compiler --version </dev/null >&5) 2>&5 3114 ac_status=$? 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); } 3117{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3118 (eval $ac_compiler -v </dev/null >&5) 2>&5 3119 ac_status=$? 3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3121 (exit $ac_status); } 3122{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3123 (eval $ac_compiler -V </dev/null >&5) 2>&5 3124 ac_status=$? 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); } 3127 3128echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3129echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3130if test "${ac_cv_c_compiler_gnu+set}" = set; then 3131 echo $ECHO_N "(cached) $ECHO_C" >&6 3132else 3133 cat >conftest.$ac_ext <<_ACEOF 3134/* confdefs.h. */ 3135_ACEOF 3136cat confdefs.h >>conftest.$ac_ext 3137cat >>conftest.$ac_ext <<_ACEOF 3138/* end confdefs.h. */ 3139 3140int 3141main () 3142{ 3143#ifndef __GNUC__ 3144 choke me 3145#endif 3146 3147 ; 3148 return 0; 3149} 3150_ACEOF 3151rm -f conftest.$ac_objext 3152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3153 (eval $ac_compile) 2>conftest.er1 3154 ac_status=$? 3155 grep -v '^ *+' conftest.er1 >conftest.err 3156 rm -f conftest.er1 3157 cat conftest.err >&5 3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3159 (exit $ac_status); } && 3160 { ac_try='test -z "$ac_c_werror_flag" 3161 || test ! -s conftest.err' 3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3163 (eval $ac_try) 2>&5 3164 ac_status=$? 3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3166 (exit $ac_status); }; } && 3167 { ac_try='test -s conftest.$ac_objext' 3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3169 (eval $ac_try) 2>&5 3170 ac_status=$? 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); }; }; then 3173 ac_compiler_gnu=yes 3174else 3175 echo "$as_me: failed program was:" >&5 3176sed 's/^/| /' conftest.$ac_ext >&5 3177 3178ac_compiler_gnu=no 3179fi 3180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3181ac_cv_c_compiler_gnu=$ac_compiler_gnu 3182 3183fi 3184echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3185echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3186GCC=`test $ac_compiler_gnu = yes && echo yes` 3187ac_test_CFLAGS=${CFLAGS+set} 3188ac_save_CFLAGS=$CFLAGS 3189CFLAGS="-g" 3190echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3191echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3192if test "${ac_cv_prog_cc_g+set}" = set; then 3193 echo $ECHO_N "(cached) $ECHO_C" >&6 3194else 3195 cat >conftest.$ac_ext <<_ACEOF 3196/* confdefs.h. */ 3197_ACEOF 3198cat confdefs.h >>conftest.$ac_ext 3199cat >>conftest.$ac_ext <<_ACEOF 3200/* end confdefs.h. */ 3201 3202int 3203main () 3204{ 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210rm -f conftest.$ac_objext 3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3212 (eval $ac_compile) 2>conftest.er1 3213 ac_status=$? 3214 grep -v '^ *+' conftest.er1 >conftest.err 3215 rm -f conftest.er1 3216 cat conftest.err >&5 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); } && 3219 { ac_try='test -z "$ac_c_werror_flag" 3220 || test ! -s conftest.err' 3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3222 (eval $ac_try) 2>&5 3223 ac_status=$? 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3225 (exit $ac_status); }; } && 3226 { ac_try='test -s conftest.$ac_objext' 3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3228 (eval $ac_try) 2>&5 3229 ac_status=$? 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); }; }; then 3232 ac_cv_prog_cc_g=yes 3233else 3234 echo "$as_me: failed program was:" >&5 3235sed 's/^/| /' conftest.$ac_ext >&5 3236 3237ac_cv_prog_cc_g=no 3238fi 3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3240fi 3241echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3242echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3243if test "$ac_test_CFLAGS" = set; then 3244 CFLAGS=$ac_save_CFLAGS 3245elif test $ac_cv_prog_cc_g = yes; then 3246 if test "$GCC" = yes; then 3247 CFLAGS="-g -O2" 3248 else 3249 CFLAGS="-g" 3250 fi 3251else 3252 if test "$GCC" = yes; then 3253 CFLAGS="-O2" 3254 else 3255 CFLAGS= 3256 fi 3257fi 3258echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3259echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3260if test "${ac_cv_prog_cc_stdc+set}" = set; then 3261 echo $ECHO_N "(cached) $ECHO_C" >&6 3262else 3263 ac_cv_prog_cc_stdc=no 3264ac_save_CC=$CC 3265cat >conftest.$ac_ext <<_ACEOF 3266/* confdefs.h. */ 3267_ACEOF 3268cat confdefs.h >>conftest.$ac_ext 3269cat >>conftest.$ac_ext <<_ACEOF 3270/* end confdefs.h. */ 3271#include <stdarg.h> 3272#include <stdio.h> 3273#include <sys/types.h> 3274#include <sys/stat.h> 3275/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3276struct buf { int x; }; 3277FILE * (*rcsopen) (struct buf *, struct stat *, int); 3278static char *e (p, i) 3279 char **p; 3280 int i; 3281{ 3282 return p[i]; 3283} 3284static char *f (char * (*g) (char **, int), char **p, ...) 3285{ 3286 char *s; 3287 va_list v; 3288 va_start (v,p); 3289 s = g (p, va_arg (v,int)); 3290 va_end (v); 3291 return s; 3292} 3293 3294/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3295 function prototypes and stuff, but not '\xHH' hex character constants. 3296 These don't provoke an error unfortunately, instead are silently treated 3297 as 'x'. The following induces an error, until -std1 is added to get 3298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3299 array size at least. It's necessary to write '\x00'==0 to get something 3300 that's true only with -std1. */ 3301int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3302 3303int test (int i, double x); 3304struct s1 {int (*f) (int a);}; 3305struct s2 {int (*f) (double a);}; 3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3307int argc; 3308char **argv; 3309int 3310main () 3311{ 3312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3313 ; 3314 return 0; 3315} 3316_ACEOF 3317# Don't try gcc -ansi; that turns off useful extensions and 3318# breaks some systems' header files. 3319# AIX -qlanglvl=ansi 3320# Ultrix and OSF/1 -std1 3321# HP-UX 10.20 and later -Ae 3322# HP-UX older versions -Aa -D_HPUX_SOURCE 3323# SVR4 -Xc -D__EXTENSIONS__ 3324for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3325do 3326 CC="$ac_save_CC $ac_arg" 3327 rm -f conftest.$ac_objext 3328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3329 (eval $ac_compile) 2>conftest.er1 3330 ac_status=$? 3331 grep -v '^ *+' conftest.er1 >conftest.err 3332 rm -f conftest.er1 3333 cat conftest.err >&5 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } && 3336 { ac_try='test -z "$ac_c_werror_flag" 3337 || test ! -s conftest.err' 3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3339 (eval $ac_try) 2>&5 3340 ac_status=$? 3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3342 (exit $ac_status); }; } && 3343 { ac_try='test -s conftest.$ac_objext' 3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3345 (eval $ac_try) 2>&5 3346 ac_status=$? 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); }; }; then 3349 ac_cv_prog_cc_stdc=$ac_arg 3350break 3351else 3352 echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355fi 3356rm -f conftest.err conftest.$ac_objext 3357done 3358rm -f conftest.$ac_ext conftest.$ac_objext 3359CC=$ac_save_CC 3360 3361fi 3362 3363case "x$ac_cv_prog_cc_stdc" in 3364 x|xno) 3365 echo "$as_me:$LINENO: result: none needed" >&5 3366echo "${ECHO_T}none needed" >&6 ;; 3367 *) 3368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3369echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3370 CC="$CC $ac_cv_prog_cc_stdc" ;; 3371esac 3372 3373# Some people use a C++ compiler to compile C. Since we use `exit', 3374# in C++ we need to declare it. In case someone uses the same compiler 3375# for both compiling C and C++ we need to have the C++ compiler decide 3376# the declaration of exit, since it's the most demanding environment. 3377cat >conftest.$ac_ext <<_ACEOF 3378#ifndef __cplusplus 3379 choke me 3380#endif 3381_ACEOF 3382rm -f conftest.$ac_objext 3383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3384 (eval $ac_compile) 2>conftest.er1 3385 ac_status=$? 3386 grep -v '^ *+' conftest.er1 >conftest.err 3387 rm -f conftest.er1 3388 cat conftest.err >&5 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } && 3391 { ac_try='test -z "$ac_c_werror_flag" 3392 || test ! -s conftest.err' 3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3394 (eval $ac_try) 2>&5 3395 ac_status=$? 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); }; } && 3398 { ac_try='test -s conftest.$ac_objext' 3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3400 (eval $ac_try) 2>&5 3401 ac_status=$? 3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3403 (exit $ac_status); }; }; then 3404 for ac_declaration in \ 3405 '' \ 3406 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3407 'extern "C" void std::exit (int); using std::exit;' \ 3408 'extern "C" void exit (int) throw ();' \ 3409 'extern "C" void exit (int);' \ 3410 'void exit (int);' 3411do 3412 cat >conftest.$ac_ext <<_ACEOF 3413/* confdefs.h. */ 3414_ACEOF 3415cat confdefs.h >>conftest.$ac_ext 3416cat >>conftest.$ac_ext <<_ACEOF 3417/* end confdefs.h. */ 3418$ac_declaration 3419#include <stdlib.h> 3420int 3421main () 3422{ 3423exit (42); 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428rm -f conftest.$ac_objext 3429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3430 (eval $ac_compile) 2>conftest.er1 3431 ac_status=$? 3432 grep -v '^ *+' conftest.er1 >conftest.err 3433 rm -f conftest.er1 3434 cat conftest.err >&5 3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3436 (exit $ac_status); } && 3437 { ac_try='test -z "$ac_c_werror_flag" 3438 || test ! -s conftest.err' 3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3440 (eval $ac_try) 2>&5 3441 ac_status=$? 3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3443 (exit $ac_status); }; } && 3444 { ac_try='test -s conftest.$ac_objext' 3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3446 (eval $ac_try) 2>&5 3447 ac_status=$? 3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 (exit $ac_status); }; }; then 3450 : 3451else 3452 echo "$as_me: failed program was:" >&5 3453sed 's/^/| /' conftest.$ac_ext >&5 3454 3455continue 3456fi 3457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3458 cat >conftest.$ac_ext <<_ACEOF 3459/* confdefs.h. */ 3460_ACEOF 3461cat confdefs.h >>conftest.$ac_ext 3462cat >>conftest.$ac_ext <<_ACEOF 3463/* end confdefs.h. */ 3464$ac_declaration 3465int 3466main () 3467{ 3468exit (42); 3469 ; 3470 return 0; 3471} 3472_ACEOF 3473rm -f conftest.$ac_objext 3474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3475 (eval $ac_compile) 2>conftest.er1 3476 ac_status=$? 3477 grep -v '^ *+' conftest.er1 >conftest.err 3478 rm -f conftest.er1 3479 cat conftest.err >&5 3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3481 (exit $ac_status); } && 3482 { ac_try='test -z "$ac_c_werror_flag" 3483 || test ! -s conftest.err' 3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3485 (eval $ac_try) 2>&5 3486 ac_status=$? 3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3488 (exit $ac_status); }; } && 3489 { ac_try='test -s conftest.$ac_objext' 3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3491 (eval $ac_try) 2>&5 3492 ac_status=$? 3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3494 (exit $ac_status); }; }; then 3495 break 3496else 3497 echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500fi 3501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3502done 3503rm -f conftest* 3504if test -n "$ac_declaration"; then 3505 echo '#ifdef __cplusplus' >>confdefs.h 3506 echo $ac_declaration >>confdefs.h 3507 echo '#endif' >>confdefs.h 3508fi 3509 3510else 3511 echo "$as_me: failed program was:" >&5 3512sed 's/^/| /' conftest.$ac_ext >&5 3513 3514fi 3515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3516ac_ext=c 3517ac_cpp='$CPP $CPPFLAGS' 3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3520ac_compiler_gnu=$ac_cv_c_compiler_gnu 3521 3522echo "$as_me:$LINENO: checking whether ln -s works" >&5 3523echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3524LN_S=$as_ln_s 3525if test "$LN_S" = "ln -s"; then 3526 echo "$as_me:$LINENO: result: yes" >&5 3527echo "${ECHO_T}yes" >&6 3528else 3529 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3530echo "${ECHO_T}no, using $LN_S" >&6 3531fi 3532 3533ac_aux_dir= 3534for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 3535 if test -f $ac_dir/install-sh; then 3536 ac_aux_dir=$ac_dir 3537 ac_install_sh="$ac_aux_dir/install-sh -c" 3538 break 3539 elif test -f $ac_dir/install.sh; then 3540 ac_aux_dir=$ac_dir 3541 ac_install_sh="$ac_aux_dir/install.sh -c" 3542 break 3543 elif test -f $ac_dir/shtool; then 3544 ac_aux_dir=$ac_dir 3545 ac_install_sh="$ac_aux_dir/shtool install -c" 3546 break 3547 fi 3548done 3549if test -z "$ac_aux_dir"; then 3550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 3551echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 3552 { (exit 1); exit 1; }; } 3553fi 3554ac_config_guess="$SHELL $ac_aux_dir/config.guess" 3555ac_config_sub="$SHELL $ac_aux_dir/config.sub" 3556ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 3557 3558# Find a good install program. We prefer a C program (faster), 3559# so one script is as good as another. But avoid the broken or 3560# incompatible versions: 3561# SysV /etc/install, /usr/sbin/install 3562# SunOS /usr/etc/install 3563# IRIX /sbin/install 3564# AIX /bin/install 3565# AmigaOS /C/install, which installs bootblocks on floppy discs 3566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3567# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3569# OS/2's system install, which has a completely different semantic 3570# ./install, which can be erroneously created by make from ./install.sh. 3571echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3572echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3573if test -z "$INSTALL"; then 3574if test "${ac_cv_path_install+set}" = set; then 3575 echo $ECHO_N "(cached) $ECHO_C" >&6 3576else 3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3578for as_dir in $PATH 3579do 3580 IFS=$as_save_IFS 3581 test -z "$as_dir" && as_dir=. 3582 # Account for people who put trailing slashes in PATH elements. 3583case $as_dir/ in 3584 ./ | .// | /cC/* | \ 3585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3586 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3587 /usr/ucb/* ) ;; 3588 *) 3589 # OSF1 and SCO ODT 3.0 have their own names for install. 3590 # Don't use installbsd from OSF since it installs stuff as root 3591 # by default. 3592 for ac_prog in ginstall scoinst install; do 3593 for ac_exec_ext in '' $ac_executable_extensions; do 3594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3595 if test $ac_prog = install && 3596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3597 # AIX install. It has an incompatible calling convention. 3598 : 3599 elif test $ac_prog = install && 3600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3601 # program-specific install script used by HP pwplus--don't use. 3602 : 3603 else 3604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3605 break 3 3606 fi 3607 fi 3608 done 3609 done 3610 ;; 3611esac 3612done 3613 3614 3615fi 3616 if test "${ac_cv_path_install+set}" = set; then 3617 INSTALL=$ac_cv_path_install 3618 else 3619 # As a last resort, use the slow shell script. We don't cache a 3620 # path for INSTALL within a source directory, because that will 3621 # break other packages using the cache if that directory is 3622 # removed, or if the path is relative. 3623 INSTALL=$ac_install_sh 3624 fi 3625fi 3626echo "$as_me:$LINENO: result: $INSTALL" >&5 3627echo "${ECHO_T}$INSTALL" >&6 3628 3629# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3630# It thinks the first close brace ends the variable substitution. 3631test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3632 3633test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3634 3635test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3636 3637for ac_prog in flex lex 3638do 3639 # Extract the first word of "$ac_prog", so it can be a program name with args. 3640set dummy $ac_prog; ac_word=$2 3641echo "$as_me:$LINENO: checking for $ac_word" >&5 3642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3643if test "${ac_cv_prog_LEX+set}" = set; then 3644 echo $ECHO_N "(cached) $ECHO_C" >&6 3645else 3646 if test -n "$LEX"; then 3647 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3648else 3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3650for as_dir in $PATH 3651do 3652 IFS=$as_save_IFS 3653 test -z "$as_dir" && as_dir=. 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3656 ac_cv_prog_LEX="$ac_prog" 3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3658 break 2 3659 fi 3660done 3661done 3662 3663fi 3664fi 3665LEX=$ac_cv_prog_LEX 3666if test -n "$LEX"; then 3667 echo "$as_me:$LINENO: result: $LEX" >&5 3668echo "${ECHO_T}$LEX" >&6 3669else 3670 echo "$as_me:$LINENO: result: no" >&5 3671echo "${ECHO_T}no" >&6 3672fi 3673 3674 test -n "$LEX" && break 3675done 3676test -n "$LEX" || LEX=":" 3677 3678if test -z "$LEXLIB" 3679then 3680 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 3681echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 3682if test "${ac_cv_lib_fl_yywrap+set}" = set; then 3683 echo $ECHO_N "(cached) $ECHO_C" >&6 3684else 3685 ac_check_lib_save_LIBS=$LIBS 3686LIBS="-lfl $LIBS" 3687cat >conftest.$ac_ext <<_ACEOF 3688/* confdefs.h. */ 3689_ACEOF 3690cat confdefs.h >>conftest.$ac_ext 3691cat >>conftest.$ac_ext <<_ACEOF 3692/* end confdefs.h. */ 3693 3694/* Override any gcc2 internal prototype to avoid an error. */ 3695#ifdef __cplusplus 3696extern "C" 3697#endif 3698/* We use char because int might match the return type of a gcc2 3699 builtin and then its argument prototype would still apply. */ 3700char yywrap (); 3701int 3702main () 3703{ 3704yywrap (); 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709rm -f conftest.$ac_objext conftest$ac_exeext 3710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3711 (eval $ac_link) 2>conftest.er1 3712 ac_status=$? 3713 grep -v '^ *+' conftest.er1 >conftest.err 3714 rm -f conftest.er1 3715 cat conftest.err >&5 3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3717 (exit $ac_status); } && 3718 { ac_try='test -z "$ac_c_werror_flag" 3719 || test ! -s conftest.err' 3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3721 (eval $ac_try) 2>&5 3722 ac_status=$? 3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3724 (exit $ac_status); }; } && 3725 { ac_try='test -s conftest$ac_exeext' 3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3727 (eval $ac_try) 2>&5 3728 ac_status=$? 3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3730 (exit $ac_status); }; }; then 3731 ac_cv_lib_fl_yywrap=yes 3732else 3733 echo "$as_me: failed program was:" >&5 3734sed 's/^/| /' conftest.$ac_ext >&5 3735 3736ac_cv_lib_fl_yywrap=no 3737fi 3738rm -f conftest.err conftest.$ac_objext \ 3739 conftest$ac_exeext conftest.$ac_ext 3740LIBS=$ac_check_lib_save_LIBS 3741fi 3742echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 3743echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 3744if test $ac_cv_lib_fl_yywrap = yes; then 3745 LEXLIB="-lfl" 3746else 3747 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 3748echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 3749if test "${ac_cv_lib_l_yywrap+set}" = set; then 3750 echo $ECHO_N "(cached) $ECHO_C" >&6 3751else 3752 ac_check_lib_save_LIBS=$LIBS 3753LIBS="-ll $LIBS" 3754cat >conftest.$ac_ext <<_ACEOF 3755/* confdefs.h. */ 3756_ACEOF 3757cat confdefs.h >>conftest.$ac_ext 3758cat >>conftest.$ac_ext <<_ACEOF 3759/* end confdefs.h. */ 3760 3761/* Override any gcc2 internal prototype to avoid an error. */ 3762#ifdef __cplusplus 3763extern "C" 3764#endif 3765/* We use char because int might match the return type of a gcc2 3766 builtin and then its argument prototype would still apply. */ 3767char yywrap (); 3768int 3769main () 3770{ 3771yywrap (); 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776rm -f conftest.$ac_objext conftest$ac_exeext 3777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3778 (eval $ac_link) 2>conftest.er1 3779 ac_status=$? 3780 grep -v '^ *+' conftest.er1 >conftest.err 3781 rm -f conftest.er1 3782 cat conftest.err >&5 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); } && 3785 { ac_try='test -z "$ac_c_werror_flag" 3786 || test ! -s conftest.err' 3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3788 (eval $ac_try) 2>&5 3789 ac_status=$? 3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3791 (exit $ac_status); }; } && 3792 { ac_try='test -s conftest$ac_exeext' 3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3794 (eval $ac_try) 2>&5 3795 ac_status=$? 3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3797 (exit $ac_status); }; }; then 3798 ac_cv_lib_l_yywrap=yes 3799else 3800 echo "$as_me: failed program was:" >&5 3801sed 's/^/| /' conftest.$ac_ext >&5 3802 3803ac_cv_lib_l_yywrap=no 3804fi 3805rm -f conftest.err conftest.$ac_objext \ 3806 conftest$ac_exeext conftest.$ac_ext 3807LIBS=$ac_check_lib_save_LIBS 3808fi 3809echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 3810echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 3811if test $ac_cv_lib_l_yywrap = yes; then 3812 LEXLIB="-ll" 3813fi 3814 3815fi 3816 3817fi 3818 3819if test "x$LEX" != "x:"; then 3820 echo "$as_me:$LINENO: checking lex output file root" >&5 3821echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 3822if test "${ac_cv_prog_lex_root+set}" = set; then 3823 echo $ECHO_N "(cached) $ECHO_C" >&6 3824else 3825 # The minimal lex program is just a single line: %%. But some broken lexes 3826# (Solaris, I think it was) want two %% lines, so accommodate them. 3827cat >conftest.l <<_ACEOF 3828%% 3829%% 3830_ACEOF 3831{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 3832 (eval $LEX conftest.l) 2>&5 3833 ac_status=$? 3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3835 (exit $ac_status); } 3836if test -f lex.yy.c; then 3837 ac_cv_prog_lex_root=lex.yy 3838elif test -f lexyy.c; then 3839 ac_cv_prog_lex_root=lexyy 3840else 3841 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 3842echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 3843 { (exit 1); exit 1; }; } 3844fi 3845fi 3846echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 3847echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 3848rm -f conftest.l 3849LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3850 3851echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 3852echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 3853if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 3854 echo $ECHO_N "(cached) $ECHO_C" >&6 3855else 3856 # POSIX says lex can declare yytext either as a pointer or an array; the 3857# default is implementation-dependent. Figure out which it is, since 3858# not all implementations provide the %pointer and %array declarations. 3859ac_cv_prog_lex_yytext_pointer=no 3860echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 3861ac_save_LIBS=$LIBS 3862LIBS="$LIBS $LEXLIB" 3863cat >conftest.$ac_ext <<_ACEOF 3864`cat $LEX_OUTPUT_ROOT.c` 3865_ACEOF 3866rm -f conftest.$ac_objext conftest$ac_exeext 3867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3868 (eval $ac_link) 2>conftest.er1 3869 ac_status=$? 3870 grep -v '^ *+' conftest.er1 >conftest.err 3871 rm -f conftest.er1 3872 cat conftest.err >&5 3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3874 (exit $ac_status); } && 3875 { ac_try='test -z "$ac_c_werror_flag" 3876 || test ! -s conftest.err' 3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3878 (eval $ac_try) 2>&5 3879 ac_status=$? 3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3881 (exit $ac_status); }; } && 3882 { ac_try='test -s conftest$ac_exeext' 3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3884 (eval $ac_try) 2>&5 3885 ac_status=$? 3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3887 (exit $ac_status); }; }; then 3888 ac_cv_prog_lex_yytext_pointer=yes 3889else 3890 echo "$as_me: failed program was:" >&5 3891sed 's/^/| /' conftest.$ac_ext >&5 3892 3893fi 3894rm -f conftest.err conftest.$ac_objext \ 3895 conftest$ac_exeext conftest.$ac_ext 3896LIBS=$ac_save_LIBS 3897rm -f "${LEX_OUTPUT_ROOT}.c" 3898 3899fi 3900echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 3901echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 3902if test $ac_cv_prog_lex_yytext_pointer = yes; then 3903 3904cat >>confdefs.h <<\_ACEOF 3905#define YYTEXT_POINTER 1 3906_ACEOF 3907 3908fi 3909 3910fi 3911for ac_prog in 'bison -y' byacc 3912do 3913 # Extract the first word of "$ac_prog", so it can be a program name with args. 3914set dummy $ac_prog; ac_word=$2 3915echo "$as_me:$LINENO: checking for $ac_word" >&5 3916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3917if test "${ac_cv_prog_YACC+set}" = set; then 3918 echo $ECHO_N "(cached) $ECHO_C" >&6 3919else 3920 if test -n "$YACC"; then 3921 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3922else 3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH 3925do 3926 IFS=$as_save_IFS 3927 test -z "$as_dir" && as_dir=. 3928 for ac_exec_ext in '' $ac_executable_extensions; do 3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3930 ac_cv_prog_YACC="$ac_prog" 3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3932 break 2 3933 fi 3934done 3935done 3936 3937fi 3938fi 3939YACC=$ac_cv_prog_YACC 3940if test -n "$YACC"; then 3941 echo "$as_me:$LINENO: result: $YACC" >&5 3942echo "${ECHO_T}$YACC" >&6 3943else 3944 echo "$as_me:$LINENO: result: no" >&5 3945echo "${ECHO_T}no" >&6 3946fi 3947 3948 test -n "$YACC" && break 3949done 3950test -n "$YACC" || YACC="yacc" 3951 3952 3953 3954 3955 3956 3957 3958# Checks for typedefs, structures, and compiler characteristics. 3959 3960 3961echo "$as_me:$LINENO: checking whether $CC supports -O2" >&5 3962echo $ECHO_N "checking whether $CC supports -O2... $ECHO_C" >&6 3963cache=`echo O2 | sed 'y%.=/+-%___p_%'` 3964if eval "test \"\${cv_prog_cc_flag_$cache+set}\" = set"; then 3965 echo $ECHO_N "(cached) $ECHO_C" >&6 3966else 3967 3968echo 'void f(){}' >conftest.c 3969if test -z "`$CC -O2 -c conftest.c 2>&1`"; then 3970eval "cv_prog_cc_flag_$cache=yes" 3971else 3972eval "cv_prog_cc_flag_$cache=no" 3973fi 3974rm -f conftest* 3975 3976fi 3977 3978if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 3979echo "$as_me:$LINENO: result: yes" >&5 3980echo "${ECHO_T}yes" >&6 3981: 3982 3983else 3984echo "$as_me:$LINENO: result: no" >&5 3985echo "${ECHO_T}no" >&6 3986: 3987 CFLAGS=`echo $CFLAGS | sed -e "s/-O2//g"` 3988fi 3989 3990echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3991echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3992if test "${ac_cv_c_const+set}" = set; then 3993 echo $ECHO_N "(cached) $ECHO_C" >&6 3994else 3995 cat >conftest.$ac_ext <<_ACEOF 3996/* confdefs.h. */ 3997_ACEOF 3998cat confdefs.h >>conftest.$ac_ext 3999cat >>conftest.$ac_ext <<_ACEOF 4000/* end confdefs.h. */ 4001 4002int 4003main () 4004{ 4005/* FIXME: Include the comments suggested by Paul. */ 4006#ifndef __cplusplus 4007 /* Ultrix mips cc rejects this. */ 4008 typedef int charset[2]; 4009 const charset x; 4010 /* SunOS 4.1.1 cc rejects this. */ 4011 char const *const *ccp; 4012 char **p; 4013 /* NEC SVR4.0.2 mips cc rejects this. */ 4014 struct point {int x, y;}; 4015 static struct point const zero = {0,0}; 4016 /* AIX XL C 1.02.0.0 rejects this. 4017 It does not let you subtract one const X* pointer from another in 4018 an arm of an if-expression whose if-part is not a constant 4019 expression */ 4020 const char *g = "string"; 4021 ccp = &g + (g ? g-g : 0); 4022 /* HPUX 7.0 cc rejects these. */ 4023 ++ccp; 4024 p = (char**) ccp; 4025 ccp = (char const *const *) p; 4026 { /* SCO 3.2v4 cc rejects this. */ 4027 char *t; 4028 char const *s = 0 ? (char *) 0 : (char const *) 0; 4029 4030 *t++ = 0; 4031 } 4032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4033 int x[] = {25, 17}; 4034 const int *foo = &x[0]; 4035 ++foo; 4036 } 4037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4038 typedef const int *iptr; 4039 iptr p = 0; 4040 ++p; 4041 } 4042 { /* AIX XL C 1.02.0.0 rejects this saying 4043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4044 struct s { int j; const int *ap[3]; }; 4045 struct s *b; b->j = 5; 4046 } 4047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4048 const int foo = 10; 4049 } 4050#endif 4051 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056rm -f conftest.$ac_objext 4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4058 (eval $ac_compile) 2>conftest.er1 4059 ac_status=$? 4060 grep -v '^ *+' conftest.er1 >conftest.err 4061 rm -f conftest.er1 4062 cat conftest.err >&5 4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4064 (exit $ac_status); } && 4065 { ac_try='test -z "$ac_c_werror_flag" 4066 || test ! -s conftest.err' 4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4068 (eval $ac_try) 2>&5 4069 ac_status=$? 4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 (exit $ac_status); }; } && 4072 { ac_try='test -s conftest.$ac_objext' 4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4074 (eval $ac_try) 2>&5 4075 ac_status=$? 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); }; }; then 4078 ac_cv_c_const=yes 4079else 4080 echo "$as_me: failed program was:" >&5 4081sed 's/^/| /' conftest.$ac_ext >&5 4082 4083ac_cv_c_const=no 4084fi 4085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4086fi 4087echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4088echo "${ECHO_T}$ac_cv_c_const" >&6 4089if test $ac_cv_c_const = no; then 4090 4091cat >>confdefs.h <<\_ACEOF 4092#define const 4093_ACEOF 4094 4095fi 4096 4097echo "$as_me:$LINENO: checking for inline" >&5 4098echo $ECHO_N "checking for inline... $ECHO_C" >&6 4099if test "${ac_cv_c_inline+set}" = set; then 4100 echo $ECHO_N "(cached) $ECHO_C" >&6 4101else 4102 ac_cv_c_inline=no 4103for ac_kw in inline __inline__ __inline; do 4104 cat >conftest.$ac_ext <<_ACEOF 4105/* confdefs.h. */ 4106_ACEOF 4107cat confdefs.h >>conftest.$ac_ext 4108cat >>conftest.$ac_ext <<_ACEOF 4109/* end confdefs.h. */ 4110#ifndef __cplusplus 4111typedef int foo_t; 4112static $ac_kw foo_t static_foo () {return 0; } 4113$ac_kw foo_t foo () {return 0; } 4114#endif 4115 4116_ACEOF 4117rm -f conftest.$ac_objext 4118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4119 (eval $ac_compile) 2>conftest.er1 4120 ac_status=$? 4121 grep -v '^ *+' conftest.er1 >conftest.err 4122 rm -f conftest.er1 4123 cat conftest.err >&5 4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4125 (exit $ac_status); } && 4126 { ac_try='test -z "$ac_c_werror_flag" 4127 || test ! -s conftest.err' 4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4129 (eval $ac_try) 2>&5 4130 ac_status=$? 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); }; } && 4133 { ac_try='test -s conftest.$ac_objext' 4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4135 (eval $ac_try) 2>&5 4136 ac_status=$? 4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4138 (exit $ac_status); }; }; then 4139 ac_cv_c_inline=$ac_kw; break 4140else 4141 echo "$as_me: failed program was:" >&5 4142sed 's/^/| /' conftest.$ac_ext >&5 4143 4144fi 4145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4146done 4147 4148fi 4149echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4150echo "${ECHO_T}$ac_cv_c_inline" >&6 4151 4152 4153case $ac_cv_c_inline in 4154 inline | yes) ;; 4155 *) 4156 case $ac_cv_c_inline in 4157 no) ac_val=;; 4158 *) ac_val=$ac_cv_c_inline;; 4159 esac 4160 cat >>confdefs.h <<_ACEOF 4161#ifndef __cplusplus 4162#define inline $ac_val 4163#endif 4164_ACEOF 4165 ;; 4166esac 4167 4168echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 4169echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 4170if test "${ac_cv_type_uid_t+set}" = set; then 4171 echo $ECHO_N "(cached) $ECHO_C" >&6 4172else 4173 cat >conftest.$ac_ext <<_ACEOF 4174/* confdefs.h. */ 4175_ACEOF 4176cat confdefs.h >>conftest.$ac_ext 4177cat >>conftest.$ac_ext <<_ACEOF 4178/* end confdefs.h. */ 4179#include <sys/types.h> 4180 4181_ACEOF 4182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4183 $EGREP "uid_t" >/dev/null 2>&1; then 4184 ac_cv_type_uid_t=yes 4185else 4186 ac_cv_type_uid_t=no 4187fi 4188rm -f conftest* 4189 4190fi 4191echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 4192echo "${ECHO_T}$ac_cv_type_uid_t" >&6 4193if test $ac_cv_type_uid_t = no; then 4194 4195cat >>confdefs.h <<\_ACEOF 4196#define uid_t int 4197_ACEOF 4198 4199 4200cat >>confdefs.h <<\_ACEOF 4201#define gid_t int 4202_ACEOF 4203 4204fi 4205 4206echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4207echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4208if test "${ac_cv_header_stdc+set}" = set; then 4209 echo $ECHO_N "(cached) $ECHO_C" >&6 4210else 4211 cat >conftest.$ac_ext <<_ACEOF 4212/* confdefs.h. */ 4213_ACEOF 4214cat confdefs.h >>conftest.$ac_ext 4215cat >>conftest.$ac_ext <<_ACEOF 4216/* end confdefs.h. */ 4217#include <stdlib.h> 4218#include <stdarg.h> 4219#include <string.h> 4220#include <float.h> 4221 4222int 4223main () 4224{ 4225 4226 ; 4227 return 0; 4228} 4229_ACEOF 4230rm -f conftest.$ac_objext 4231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4232 (eval $ac_compile) 2>conftest.er1 4233 ac_status=$? 4234 grep -v '^ *+' conftest.er1 >conftest.err 4235 rm -f conftest.er1 4236 cat conftest.err >&5 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4238 (exit $ac_status); } && 4239 { ac_try='test -z "$ac_c_werror_flag" 4240 || test ! -s conftest.err' 4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4242 (eval $ac_try) 2>&5 4243 ac_status=$? 4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4245 (exit $ac_status); }; } && 4246 { ac_try='test -s conftest.$ac_objext' 4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4248 (eval $ac_try) 2>&5 4249 ac_status=$? 4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4251 (exit $ac_status); }; }; then 4252 ac_cv_header_stdc=yes 4253else 4254 echo "$as_me: failed program was:" >&5 4255sed 's/^/| /' conftest.$ac_ext >&5 4256 4257ac_cv_header_stdc=no 4258fi 4259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4260 4261if test $ac_cv_header_stdc = yes; then 4262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4263 cat >conftest.$ac_ext <<_ACEOF 4264/* confdefs.h. */ 4265_ACEOF 4266cat confdefs.h >>conftest.$ac_ext 4267cat >>conftest.$ac_ext <<_ACEOF 4268/* end confdefs.h. */ 4269#include <string.h> 4270 4271_ACEOF 4272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4273 $EGREP "memchr" >/dev/null 2>&1; then 4274 : 4275else 4276 ac_cv_header_stdc=no 4277fi 4278rm -f conftest* 4279 4280fi 4281 4282if test $ac_cv_header_stdc = yes; then 4283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4284 cat >conftest.$ac_ext <<_ACEOF 4285/* confdefs.h. */ 4286_ACEOF 4287cat confdefs.h >>conftest.$ac_ext 4288cat >>conftest.$ac_ext <<_ACEOF 4289/* end confdefs.h. */ 4290#include <stdlib.h> 4291 4292_ACEOF 4293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4294 $EGREP "free" >/dev/null 2>&1; then 4295 : 4296else 4297 ac_cv_header_stdc=no 4298fi 4299rm -f conftest* 4300 4301fi 4302 4303if test $ac_cv_header_stdc = yes; then 4304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4305 if test "$cross_compiling" = yes; then 4306 : 4307else 4308 cat >conftest.$ac_ext <<_ACEOF 4309/* confdefs.h. */ 4310_ACEOF 4311cat confdefs.h >>conftest.$ac_ext 4312cat >>conftest.$ac_ext <<_ACEOF 4313/* end confdefs.h. */ 4314#include <ctype.h> 4315#if ((' ' & 0x0FF) == 0x020) 4316# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4317# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4318#else 4319# define ISLOWER(c) \ 4320 (('a' <= (c) && (c) <= 'i') \ 4321 || ('j' <= (c) && (c) <= 'r') \ 4322 || ('s' <= (c) && (c) <= 'z')) 4323# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4324#endif 4325 4326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4327int 4328main () 4329{ 4330 int i; 4331 for (i = 0; i < 256; i++) 4332 if (XOR (islower (i), ISLOWER (i)) 4333 || toupper (i) != TOUPPER (i)) 4334 exit(2); 4335 exit (0); 4336} 4337_ACEOF 4338rm -f conftest$ac_exeext 4339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4340 (eval $ac_link) 2>&5 4341 ac_status=$? 4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4345 (eval $ac_try) 2>&5 4346 ac_status=$? 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); }; }; then 4349 : 4350else 4351 echo "$as_me: program exited with status $ac_status" >&5 4352echo "$as_me: failed program was:" >&5 4353sed 's/^/| /' conftest.$ac_ext >&5 4354 4355( exit $ac_status ) 4356ac_cv_header_stdc=no 4357fi 4358rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4359fi 4360fi 4361fi 4362echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4363echo "${ECHO_T}$ac_cv_header_stdc" >&6 4364if test $ac_cv_header_stdc = yes; then 4365 4366cat >>confdefs.h <<\_ACEOF 4367#define STDC_HEADERS 1 4368_ACEOF 4369 4370fi 4371 4372# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4383 inttypes.h stdint.h unistd.h 4384do 4385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4386echo "$as_me:$LINENO: checking for $ac_header" >&5 4387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4388if eval "test \"\${$as_ac_Header+set}\" = set"; then 4389 echo $ECHO_N "(cached) $ECHO_C" >&6 4390else 4391 cat >conftest.$ac_ext <<_ACEOF 4392/* confdefs.h. */ 4393_ACEOF 4394cat confdefs.h >>conftest.$ac_ext 4395cat >>conftest.$ac_ext <<_ACEOF 4396/* end confdefs.h. */ 4397$ac_includes_default 4398 4399#include <$ac_header> 4400_ACEOF 4401rm -f conftest.$ac_objext 4402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4403 (eval $ac_compile) 2>conftest.er1 4404 ac_status=$? 4405 grep -v '^ *+' conftest.er1 >conftest.err 4406 rm -f conftest.er1 4407 cat conftest.err >&5 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); } && 4410 { ac_try='test -z "$ac_c_werror_flag" 4411 || test ! -s conftest.err' 4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4413 (eval $ac_try) 2>&5 4414 ac_status=$? 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); }; } && 4417 { ac_try='test -s conftest.$ac_objext' 4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4419 (eval $ac_try) 2>&5 4420 ac_status=$? 4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4422 (exit $ac_status); }; }; then 4423 eval "$as_ac_Header=yes" 4424else 4425 echo "$as_me: failed program was:" >&5 4426sed 's/^/| /' conftest.$ac_ext >&5 4427 4428eval "$as_ac_Header=no" 4429fi 4430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4431fi 4432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4434if test `eval echo '${'$as_ac_Header'}'` = yes; then 4435 cat >>confdefs.h <<_ACEOF 4436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4437_ACEOF 4438 4439fi 4440 4441done 4442 4443 4444echo "$as_me:$LINENO: checking for pid_t" >&5 4445echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 4446if test "${ac_cv_type_pid_t+set}" = set; then 4447 echo $ECHO_N "(cached) $ECHO_C" >&6 4448else 4449 cat >conftest.$ac_ext <<_ACEOF 4450/* confdefs.h. */ 4451_ACEOF 4452cat confdefs.h >>conftest.$ac_ext 4453cat >>conftest.$ac_ext <<_ACEOF 4454/* end confdefs.h. */ 4455$ac_includes_default 4456int 4457main () 4458{ 4459if ((pid_t *) 0) 4460 return 0; 4461if (sizeof (pid_t)) 4462 return 0; 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467rm -f conftest.$ac_objext 4468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4469 (eval $ac_compile) 2>conftest.er1 4470 ac_status=$? 4471 grep -v '^ *+' conftest.er1 >conftest.err 4472 rm -f conftest.er1 4473 cat conftest.err >&5 4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4475 (exit $ac_status); } && 4476 { ac_try='test -z "$ac_c_werror_flag" 4477 || test ! -s conftest.err' 4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4479 (eval $ac_try) 2>&5 4480 ac_status=$? 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); }; } && 4483 { ac_try='test -s conftest.$ac_objext' 4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4485 (eval $ac_try) 2>&5 4486 ac_status=$? 4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4488 (exit $ac_status); }; }; then 4489 ac_cv_type_pid_t=yes 4490else 4491 echo "$as_me: failed program was:" >&5 4492sed 's/^/| /' conftest.$ac_ext >&5 4493 4494ac_cv_type_pid_t=no 4495fi 4496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4497fi 4498echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 4499echo "${ECHO_T}$ac_cv_type_pid_t" >&6 4500if test $ac_cv_type_pid_t = yes; then 4501 : 4502else 4503 4504cat >>confdefs.h <<_ACEOF 4505#define pid_t int 4506_ACEOF 4507 4508fi 4509 4510echo "$as_me:$LINENO: checking for size_t" >&5 4511echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4512if test "${ac_cv_type_size_t+set}" = set; then 4513 echo $ECHO_N "(cached) $ECHO_C" >&6 4514else 4515 cat >conftest.$ac_ext <<_ACEOF 4516/* confdefs.h. */ 4517_ACEOF 4518cat confdefs.h >>conftest.$ac_ext 4519cat >>conftest.$ac_ext <<_ACEOF 4520/* end confdefs.h. */ 4521$ac_includes_default 4522int 4523main () 4524{ 4525if ((size_t *) 0) 4526 return 0; 4527if (sizeof (size_t)) 4528 return 0; 4529 ; 4530 return 0; 4531} 4532_ACEOF 4533rm -f conftest.$ac_objext 4534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4535 (eval $ac_compile) 2>conftest.er1 4536 ac_status=$? 4537 grep -v '^ *+' conftest.er1 >conftest.err 4538 rm -f conftest.er1 4539 cat conftest.err >&5 4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4541 (exit $ac_status); } && 4542 { ac_try='test -z "$ac_c_werror_flag" 4543 || test ! -s conftest.err' 4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4545 (eval $ac_try) 2>&5 4546 ac_status=$? 4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4548 (exit $ac_status); }; } && 4549 { ac_try='test -s conftest.$ac_objext' 4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4551 (eval $ac_try) 2>&5 4552 ac_status=$? 4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4554 (exit $ac_status); }; }; then 4555 ac_cv_type_size_t=yes 4556else 4557 echo "$as_me: failed program was:" >&5 4558sed 's/^/| /' conftest.$ac_ext >&5 4559 4560ac_cv_type_size_t=no 4561fi 4562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4563fi 4564echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4565echo "${ECHO_T}$ac_cv_type_size_t" >&6 4566if test $ac_cv_type_size_t = yes; then 4567 : 4568else 4569 4570cat >>confdefs.h <<_ACEOF 4571#define size_t unsigned 4572_ACEOF 4573 4574fi 4575 4576echo "$as_me:$LINENO: checking for off_t" >&5 4577echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4578if test "${ac_cv_type_off_t+set}" = set; then 4579 echo $ECHO_N "(cached) $ECHO_C" >&6 4580else 4581 cat >conftest.$ac_ext <<_ACEOF 4582/* confdefs.h. */ 4583_ACEOF 4584cat confdefs.h >>conftest.$ac_ext 4585cat >>conftest.$ac_ext <<_ACEOF 4586/* end confdefs.h. */ 4587$ac_includes_default 4588int 4589main () 4590{ 4591if ((off_t *) 0) 4592 return 0; 4593if (sizeof (off_t)) 4594 return 0; 4595 ; 4596 return 0; 4597} 4598_ACEOF 4599rm -f conftest.$ac_objext 4600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4601 (eval $ac_compile) 2>conftest.er1 4602 ac_status=$? 4603 grep -v '^ *+' conftest.er1 >conftest.err 4604 rm -f conftest.er1 4605 cat conftest.err >&5 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4607 (exit $ac_status); } && 4608 { ac_try='test -z "$ac_c_werror_flag" 4609 || test ! -s conftest.err' 4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4611 (eval $ac_try) 2>&5 4612 ac_status=$? 4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4614 (exit $ac_status); }; } && 4615 { ac_try='test -s conftest.$ac_objext' 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4617 (eval $ac_try) 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; }; then 4621 ac_cv_type_off_t=yes 4622else 4623 echo "$as_me: failed program was:" >&5 4624sed 's/^/| /' conftest.$ac_ext >&5 4625 4626ac_cv_type_off_t=no 4627fi 4628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4629fi 4630echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4631echo "${ECHO_T}$ac_cv_type_off_t" >&6 4632if test $ac_cv_type_off_t = yes; then 4633 : 4634else 4635 4636cat >>confdefs.h <<_ACEOF 4637#define off_t long 4638_ACEOF 4639 4640fi 4641 4642 4643 4644echo "$as_me:$LINENO: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 4645echo $ECHO_N "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... $ECHO_C" >&6 4646if test "${ac_cv_c_format_attribute+set}" = set; then 4647 echo $ECHO_N "(cached) $ECHO_C" >&6 4648else 4649 ac_cv_c_format_attribute=no 4650cat >conftest.$ac_ext <<_ACEOF 4651/* confdefs.h. */ 4652_ACEOF 4653cat confdefs.h >>conftest.$ac_ext 4654cat >>conftest.$ac_ext <<_ACEOF 4655/* end confdefs.h. */ 4656#include <stdio.h> 4657void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 4658void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 4659 4660int 4661main () 4662{ 4663 4664 f ("%s", "str"); 4665 4666 ; 4667 return 0; 4668} 4669_ACEOF 4670rm -f conftest.$ac_objext 4671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4672 (eval $ac_compile) 2>conftest.er1 4673 ac_status=$? 4674 grep -v '^ *+' conftest.er1 >conftest.err 4675 rm -f conftest.er1 4676 cat conftest.err >&5 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4678 (exit $ac_status); } && 4679 { ac_try='test -z "$ac_c_werror_flag" 4680 || test ! -s conftest.err' 4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4682 (eval $ac_try) 2>&5 4683 ac_status=$? 4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4685 (exit $ac_status); }; } && 4686 { ac_try='test -s conftest.$ac_objext' 4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4688 (eval $ac_try) 2>&5 4689 ac_status=$? 4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4691 (exit $ac_status); }; }; then 4692 ac_cv_c_format_attribute="yes" 4693else 4694 echo "$as_me: failed program was:" >&5 4695sed 's/^/| /' conftest.$ac_ext >&5 4696 4697ac_cv_c_format_attribute="no" 4698fi 4699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4700 4701fi 4702 4703 4704echo "$as_me:$LINENO: result: $ac_cv_c_format_attribute" >&5 4705echo "${ECHO_T}$ac_cv_c_format_attribute" >&6 4706if test $ac_cv_c_format_attribute = yes; then 4707 4708cat >>confdefs.h <<\_ACEOF 4709#define HAVE_ATTR_FORMAT 1 4710_ACEOF 4711 4712fi 4713 4714 4715echo "$as_me:$LINENO: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 4716echo $ECHO_N "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... $ECHO_C" >&6 4717if test "${ac_cv_c_unused_attribute+set}" = set; then 4718 echo $ECHO_N "(cached) $ECHO_C" >&6 4719else 4720 ac_cv_c_unused_attribute=no 4721cat >conftest.$ac_ext <<_ACEOF 4722/* confdefs.h. */ 4723_ACEOF 4724cat confdefs.h >>conftest.$ac_ext 4725cat >>conftest.$ac_ext <<_ACEOF 4726/* end confdefs.h. */ 4727#include <stdio.h> 4728void f (char *u __attribute__((unused))); 4729 4730int 4731main () 4732{ 4733 4734 f ("x"); 4735 4736 ; 4737 return 0; 4738} 4739_ACEOF 4740rm -f conftest.$ac_objext 4741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4742 (eval $ac_compile) 2>conftest.er1 4743 ac_status=$? 4744 grep -v '^ *+' conftest.er1 >conftest.err 4745 rm -f conftest.er1 4746 cat conftest.err >&5 4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4748 (exit $ac_status); } && 4749 { ac_try='test -z "$ac_c_werror_flag" 4750 || test ! -s conftest.err' 4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4752 (eval $ac_try) 2>&5 4753 ac_status=$? 4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4755 (exit $ac_status); }; } && 4756 { ac_try='test -s conftest.$ac_objext' 4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4758 (eval $ac_try) 2>&5 4759 ac_status=$? 4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4761 (exit $ac_status); }; }; then 4762 ac_cv_c_unused_attribute="yes" 4763else 4764 echo "$as_me: failed program was:" >&5 4765sed 's/^/| /' conftest.$ac_ext >&5 4766 4767ac_cv_c_unused_attribute="no" 4768fi 4769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4770 4771fi 4772 4773 4774echo "$as_me:$LINENO: result: $ac_cv_c_unused_attribute" >&5 4775echo "${ECHO_T}$ac_cv_c_unused_attribute" >&6 4776if test $ac_cv_c_unused_attribute = yes; then 4777 4778cat >>confdefs.h <<\_ACEOF 4779#define HAVE_ATTR_UNUSED 1 4780_ACEOF 4781 4782fi 4783 4784echo "$as_me:$LINENO: checking if memcmp compares unsigned" >&5 4785echo $ECHO_N "checking if memcmp compares unsigned... $ECHO_C" >&6 4786if test "$cross_compiling" = yes; then 4787 echo "$as_me:$LINENO: result: cross-compile no" >&5 4788echo "${ECHO_T}cross-compile no" >&6 4789 4790cat >>confdefs.h <<\_ACEOF 4791#define MEMCMP_IS_BROKEN 1 4792_ACEOF 4793 4794 case $LIBOBJS in 4795 "memcmp.$ac_objext" | \ 4796 *" memcmp.$ac_objext" | \ 4797 "memcmp.$ac_objext "* | \ 4798 *" memcmp.$ac_objext "* ) ;; 4799 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 4800esac 4801 4802 4803else 4804 cat >conftest.$ac_ext <<_ACEOF 4805/* confdefs.h. */ 4806_ACEOF 4807cat confdefs.h >>conftest.$ac_ext 4808cat >>conftest.$ac_ext <<_ACEOF 4809/* end confdefs.h. */ 4810 4811#include <stdio.h> 4812#include <stdlib.h> 4813#include <string.h> 4814int main(void) 4815{ 4816 char a = 255, b = 0; 4817 if(memcmp(&a, &b, 1) < 0) 4818 return 1; 4819 return 0; 4820} 4821 4822_ACEOF 4823rm -f conftest$ac_exeext 4824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4825 (eval $ac_link) 2>&5 4826 ac_status=$? 4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4830 (eval $ac_try) 2>&5 4831 ac_status=$? 4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4833 (exit $ac_status); }; }; then 4834 echo "$as_me:$LINENO: result: yes" >&5 4835echo "${ECHO_T}yes" >&6 4836else 4837 echo "$as_me: program exited with status $ac_status" >&5 4838echo "$as_me: failed program was:" >&5 4839sed 's/^/| /' conftest.$ac_ext >&5 4840 4841( exit $ac_status ) 4842 echo "$as_me:$LINENO: result: no" >&5 4843echo "${ECHO_T}no" >&6 4844 4845cat >>confdefs.h <<\_ACEOF 4846#define MEMCMP_IS_BROKEN 1 4847_ACEOF 4848 4849 case $LIBOBJS in 4850 "memcmp.$ac_objext" | \ 4851 *" memcmp.$ac_objext" | \ 4852 "memcmp.$ac_objext "* | \ 4853 *" memcmp.$ac_objext "* ) ;; 4854 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 4855esac 4856 4857 4858fi 4859rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4860fi 4861 4862echo "$as_me:$LINENO: checking whether ctime_r works with two arguments" >&5 4863echo $ECHO_N "checking whether ctime_r works with two arguments... $ECHO_C" >&6 4864if test "${ac_cv_c_ctime_c+set}" = set; then 4865 echo $ECHO_N "(cached) $ECHO_C" >&6 4866else 4867 ac_cv_c_ctime_c=no 4868cat >conftest.$ac_ext <<_ACEOF 4869/* confdefs.h. */ 4870_ACEOF 4871cat confdefs.h >>conftest.$ac_ext 4872cat >>conftest.$ac_ext <<_ACEOF 4873/* end confdefs.h. */ 4874#include <time.h> 4875void testing (void) { time_t clock; char current_time[40]; ctime_r(&clock, current_time); } 4876int 4877main () 4878{ 4879 4880 testing(); 4881 4882 ; 4883 return 0; 4884} 4885_ACEOF 4886rm -f conftest.$ac_objext 4887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4888 (eval $ac_compile) 2>conftest.er1 4889 ac_status=$? 4890 grep -v '^ *+' conftest.er1 >conftest.err 4891 rm -f conftest.er1 4892 cat conftest.err >&5 4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4894 (exit $ac_status); } && 4895 { ac_try='test -z "$ac_c_werror_flag" 4896 || test ! -s conftest.err' 4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4898 (eval $ac_try) 2>&5 4899 ac_status=$? 4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4901 (exit $ac_status); }; } && 4902 { ac_try='test -s conftest.$ac_objext' 4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4904 (eval $ac_try) 2>&5 4905 ac_status=$? 4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4907 (exit $ac_status); }; }; then 4908 ac_cv_c_ctime_c="yes" 4909else 4910 echo "$as_me: failed program was:" >&5 4911sed 's/^/| /' conftest.$ac_ext >&5 4912 4913ac_cv_c_ctime_c="no" 4914fi 4915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4916 4917fi 4918 4919 4920echo "$as_me:$LINENO: result: $ac_cv_c_ctime_c" >&5 4921echo "${ECHO_T}$ac_cv_c_ctime_c" >&6 4922if test $ac_cv_c_ctime_c = no; then 4923 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" 4924fi 4925 4926 4927# Checks for libraries. 4928 4929# Check for SSL, original taken from 4930# http://www.gnu.org/software/ac-archive/htmldoc/check_ssl.html and 4931# modified for NSD. 4932 4933# Checks for header files. 4934echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4935echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4936if test "${ac_cv_header_stdc+set}" = set; then 4937 echo $ECHO_N "(cached) $ECHO_C" >&6 4938else 4939 cat >conftest.$ac_ext <<_ACEOF 4940/* confdefs.h. */ 4941_ACEOF 4942cat confdefs.h >>conftest.$ac_ext 4943cat >>conftest.$ac_ext <<_ACEOF 4944/* end confdefs.h. */ 4945#include <stdlib.h> 4946#include <stdarg.h> 4947#include <string.h> 4948#include <float.h> 4949 4950int 4951main () 4952{ 4953 4954 ; 4955 return 0; 4956} 4957_ACEOF 4958rm -f conftest.$ac_objext 4959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4960 (eval $ac_compile) 2>conftest.er1 4961 ac_status=$? 4962 grep -v '^ *+' conftest.er1 >conftest.err 4963 rm -f conftest.er1 4964 cat conftest.err >&5 4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4966 (exit $ac_status); } && 4967 { ac_try='test -z "$ac_c_werror_flag" 4968 || test ! -s conftest.err' 4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4970 (eval $ac_try) 2>&5 4971 ac_status=$? 4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4973 (exit $ac_status); }; } && 4974 { ac_try='test -s conftest.$ac_objext' 4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4976 (eval $ac_try) 2>&5 4977 ac_status=$? 4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4979 (exit $ac_status); }; }; then 4980 ac_cv_header_stdc=yes 4981else 4982 echo "$as_me: failed program was:" >&5 4983sed 's/^/| /' conftest.$ac_ext >&5 4984 4985ac_cv_header_stdc=no 4986fi 4987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4988 4989if test $ac_cv_header_stdc = yes; then 4990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4991 cat >conftest.$ac_ext <<_ACEOF 4992/* confdefs.h. */ 4993_ACEOF 4994cat confdefs.h >>conftest.$ac_ext 4995cat >>conftest.$ac_ext <<_ACEOF 4996/* end confdefs.h. */ 4997#include <string.h> 4998 4999_ACEOF 5000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5001 $EGREP "memchr" >/dev/null 2>&1; then 5002 : 5003else 5004 ac_cv_header_stdc=no 5005fi 5006rm -f conftest* 5007 5008fi 5009 5010if test $ac_cv_header_stdc = yes; then 5011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5012 cat >conftest.$ac_ext <<_ACEOF 5013/* confdefs.h. */ 5014_ACEOF 5015cat confdefs.h >>conftest.$ac_ext 5016cat >>conftest.$ac_ext <<_ACEOF 5017/* end confdefs.h. */ 5018#include <stdlib.h> 5019 5020_ACEOF 5021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5022 $EGREP "free" >/dev/null 2>&1; then 5023 : 5024else 5025 ac_cv_header_stdc=no 5026fi 5027rm -f conftest* 5028 5029fi 5030 5031if test $ac_cv_header_stdc = yes; then 5032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5033 if test "$cross_compiling" = yes; then 5034 : 5035else 5036 cat >conftest.$ac_ext <<_ACEOF 5037/* confdefs.h. */ 5038_ACEOF 5039cat confdefs.h >>conftest.$ac_ext 5040cat >>conftest.$ac_ext <<_ACEOF 5041/* end confdefs.h. */ 5042#include <ctype.h> 5043#if ((' ' & 0x0FF) == 0x020) 5044# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5045# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5046#else 5047# define ISLOWER(c) \ 5048 (('a' <= (c) && (c) <= 'i') \ 5049 || ('j' <= (c) && (c) <= 'r') \ 5050 || ('s' <= (c) && (c) <= 'z')) 5051# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5052#endif 5053 5054#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5055int 5056main () 5057{ 5058 int i; 5059 for (i = 0; i < 256; i++) 5060 if (XOR (islower (i), ISLOWER (i)) 5061 || toupper (i) != TOUPPER (i)) 5062 exit(2); 5063 exit (0); 5064} 5065_ACEOF 5066rm -f conftest$ac_exeext 5067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5068 (eval $ac_link) 2>&5 5069 ac_status=$? 5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5073 (eval $ac_try) 2>&5 5074 ac_status=$? 5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5076 (exit $ac_status); }; }; then 5077 : 5078else 5079 echo "$as_me: program exited with status $ac_status" >&5 5080echo "$as_me: failed program was:" >&5 5081sed 's/^/| /' conftest.$ac_ext >&5 5082 5083( exit $ac_status ) 5084ac_cv_header_stdc=no 5085fi 5086rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5087fi 5088fi 5089fi 5090echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5091echo "${ECHO_T}$ac_cv_header_stdc" >&6 5092if test $ac_cv_header_stdc = yes; then 5093 5094cat >>confdefs.h <<\_ACEOF 5095#define STDC_HEADERS 1 5096_ACEOF 5097 5098fi 5099 5100echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 5101echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 5102if test "${ac_cv_header_sys_wait_h+set}" = set; then 5103 echo $ECHO_N "(cached) $ECHO_C" >&6 5104else 5105 cat >conftest.$ac_ext <<_ACEOF 5106/* confdefs.h. */ 5107_ACEOF 5108cat confdefs.h >>conftest.$ac_ext 5109cat >>conftest.$ac_ext <<_ACEOF 5110/* end confdefs.h. */ 5111#include <sys/types.h> 5112#include <sys/wait.h> 5113#ifndef WEXITSTATUS 5114# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 5115#endif 5116#ifndef WIFEXITED 5117# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5118#endif 5119 5120int 5121main () 5122{ 5123 int s; 5124 wait (&s); 5125 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5126 ; 5127 return 0; 5128} 5129_ACEOF 5130rm -f conftest.$ac_objext 5131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5132 (eval $ac_compile) 2>conftest.er1 5133 ac_status=$? 5134 grep -v '^ *+' conftest.er1 >conftest.err 5135 rm -f conftest.er1 5136 cat conftest.err >&5 5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5138 (exit $ac_status); } && 5139 { ac_try='test -z "$ac_c_werror_flag" 5140 || test ! -s conftest.err' 5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5142 (eval $ac_try) 2>&5 5143 ac_status=$? 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); }; } && 5146 { ac_try='test -s conftest.$ac_objext' 5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5148 (eval $ac_try) 2>&5 5149 ac_status=$? 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5151 (exit $ac_status); }; }; then 5152 ac_cv_header_sys_wait_h=yes 5153else 5154 echo "$as_me: failed program was:" >&5 5155sed 's/^/| /' conftest.$ac_ext >&5 5156 5157ac_cv_header_sys_wait_h=no 5158fi 5159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5160fi 5161echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5162echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5163if test $ac_cv_header_sys_wait_h = yes; then 5164 5165cat >>confdefs.h <<\_ACEOF 5166#define HAVE_SYS_WAIT_H 1 5167_ACEOF 5168 5169fi 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191for 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 5192do 5193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5194if eval "test \"\${$as_ac_Header+set}\" = set"; then 5195 echo "$as_me:$LINENO: checking for $ac_header" >&5 5196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5197if eval "test \"\${$as_ac_Header+set}\" = set"; then 5198 echo $ECHO_N "(cached) $ECHO_C" >&6 5199fi 5200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5202else 5203 # Is the header compilable? 5204echo "$as_me:$LINENO: checking $ac_header usability" >&5 5205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5206cat >conftest.$ac_ext <<_ACEOF 5207/* confdefs.h. */ 5208_ACEOF 5209cat confdefs.h >>conftest.$ac_ext 5210cat >>conftest.$ac_ext <<_ACEOF 5211/* end confdefs.h. */ 5212$ac_includes_default 5213#include <$ac_header> 5214_ACEOF 5215rm -f conftest.$ac_objext 5216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5217 (eval $ac_compile) 2>conftest.er1 5218 ac_status=$? 5219 grep -v '^ *+' conftest.er1 >conftest.err 5220 rm -f conftest.er1 5221 cat conftest.err >&5 5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5223 (exit $ac_status); } && 5224 { ac_try='test -z "$ac_c_werror_flag" 5225 || test ! -s conftest.err' 5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5227 (eval $ac_try) 2>&5 5228 ac_status=$? 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); }; } && 5231 { ac_try='test -s conftest.$ac_objext' 5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5233 (eval $ac_try) 2>&5 5234 ac_status=$? 5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5236 (exit $ac_status); }; }; then 5237 ac_header_compiler=yes 5238else 5239 echo "$as_me: failed program was:" >&5 5240sed 's/^/| /' conftest.$ac_ext >&5 5241 5242ac_header_compiler=no 5243fi 5244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5246echo "${ECHO_T}$ac_header_compiler" >&6 5247 5248# Is the header present? 5249echo "$as_me:$LINENO: checking $ac_header presence" >&5 5250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5251cat >conftest.$ac_ext <<_ACEOF 5252/* confdefs.h. */ 5253_ACEOF 5254cat confdefs.h >>conftest.$ac_ext 5255cat >>conftest.$ac_ext <<_ACEOF 5256/* end confdefs.h. */ 5257#include <$ac_header> 5258_ACEOF 5259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5261 ac_status=$? 5262 grep -v '^ *+' conftest.er1 >conftest.err 5263 rm -f conftest.er1 5264 cat conftest.err >&5 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 (exit $ac_status); } >/dev/null; then 5267 if test -s conftest.err; then 5268 ac_cpp_err=$ac_c_preproc_warn_flag 5269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5270 else 5271 ac_cpp_err= 5272 fi 5273else 5274 ac_cpp_err=yes 5275fi 5276if test -z "$ac_cpp_err"; then 5277 ac_header_preproc=yes 5278else 5279 echo "$as_me: failed program was:" >&5 5280sed 's/^/| /' conftest.$ac_ext >&5 5281 5282 ac_header_preproc=no 5283fi 5284rm -f conftest.err conftest.$ac_ext 5285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5286echo "${ECHO_T}$ac_header_preproc" >&6 5287 5288# So? What about this header? 5289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5290 yes:no: ) 5291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5295 ac_header_preproc=yes 5296 ;; 5297 no:yes:* ) 5298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5310 ( 5311 cat <<\_ASBOX 5312## ------------------------------------ ## 5313## Report this to nsd-bugs@nlnetlabs.nl ## 5314## ------------------------------------ ## 5315_ASBOX 5316 ) | 5317 sed "s/^/$as_me: WARNING: /" >&2 5318 ;; 5319esac 5320echo "$as_me:$LINENO: checking for $ac_header" >&5 5321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5322if eval "test \"\${$as_ac_Header+set}\" = set"; then 5323 echo $ECHO_N "(cached) $ECHO_C" >&6 5324else 5325 eval "$as_ac_Header=\$ac_header_preproc" 5326fi 5327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5329 5330fi 5331if test `eval echo '${'$as_ac_Header'}'` = yes; then 5332 cat >>confdefs.h <<_ACEOF 5333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5334_ACEOF 5335 5336fi 5337 5338done 5339 5340 5341 5342 5343 5344 5345echo "$as_me:$LINENO: checking for double definition of struct va_list" >&5 5346echo $ECHO_N "checking for double definition of struct va_list... $ECHO_C" >&6 5347if test "${ac_cv_c_va_list_def+set}" = set; then 5348 echo $ECHO_N "(cached) $ECHO_C" >&6 5349else 5350 5351cat >conftest.c <<EOF 5352#include <stdio.h> 5353#include <stdarg.h> 5354int foo(void); 5355EOF 5356if test -z "`$CC -Werror -D_XOPEN_SOURCE=600 -c conftest.c 2>&1`"; then 5357eval "ac_cv_c_va_list_def=no" 5358else 5359eval "ac_cv_c_va_list_def=yes" 5360fi 5361rm -f conftest* 5362 5363fi 5364 5365if test $ac_cv_c_va_list_def = yes; then 5366echo "$as_me:$LINENO: result: yes" >&5 5367echo "${ECHO_T}yes" >&6 5368: 5369 5370cat >>confdefs.h <<_ACEOF 5371#define HAVE_VA_LIST_DOUBLE_DEF 5372_ACEOF 5373 5374else 5375echo "$as_me:$LINENO: result: no" >&5 5376echo "${ECHO_T}no" >&6 5377: 5378 5379fi 5380 5381 5382 5383 5384echo "$as_me:$LINENO: checking whether strptime needs defines" >&5 5385echo $ECHO_N "checking whether strptime needs defines... $ECHO_C" >&6 5386if test "${ac_cv_c_strptime_needs_defs+set}" = set; then 5387 echo $ECHO_N "(cached) $ECHO_C" >&6 5388else 5389 5390cat >conftest.c <<EOF 5391#include <time.h> 5392void testing (void) { struct tm t; char *timestr; strptime(timestr, "%Y%m", &t); } 5393EOF 5394if test -z "`$CC -Wall -Werror -c conftest.c 2>&1`"; then 5395eval "ac_cv_c_strptime_needs_defs=no" 5396else 5397eval "ac_cv_c_strptime_needs_defs=yes" 5398fi 5399rm -f conftest* 5400 5401fi 5402 5403 5404echo "$as_me:$LINENO: result: $ac_cv_c_strptime_needs_defs" >&5 5405echo "${ECHO_T}$ac_cv_c_strptime_needs_defs" >&6 5406if test $ac_cv_c_strptime_needs_defs = yes; then 5407 5408cat >>confdefs.h <<_ACEOF 5409#define STRPTIME_NEEDS_DEFINES 1 5410_ACEOF 5411 5412fi 5413 5414 5415# check wether strptime also works 5416 5417 5418echo "$as_me:$LINENO: checking whether strptime works" >&5 5419echo $ECHO_N "checking whether strptime works... $ECHO_C" >&6 5420if test c${cross_compiling} = cno; then 5421if test "$cross_compiling" = yes; then 5422 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5423See \`config.log' for more details." >&5 5424echo "$as_me: error: cannot run test program while cross compiling 5425See \`config.log' for more details." >&2;} 5426 { (exit 1); exit 1; }; } 5427else 5428 cat >conftest.$ac_ext <<_ACEOF 5429/* confdefs.h. */ 5430_ACEOF 5431cat confdefs.h >>conftest.$ac_ext 5432cat >>conftest.$ac_ext <<_ACEOF 5433/* end confdefs.h. */ 5434 5435#define _XOPEN_SOURCE 5436#include <time.h> 5437int main(void) { struct tm tm; char *res; 5438res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 5439if (!res) return 1; return 0; } 5440 5441_ACEOF 5442rm -f conftest$ac_exeext 5443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5444 (eval $ac_link) 2>&5 5445 ac_status=$? 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5449 (eval $ac_try) 2>&5 5450 ac_status=$? 5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5452 (exit $ac_status); }; }; then 5453 eval "ac_cv_c_strptime_works=yes" 5454else 5455 echo "$as_me: program exited with status $ac_status" >&5 5456echo "$as_me: failed program was:" >&5 5457sed 's/^/| /' conftest.$ac_ext >&5 5458 5459( exit $ac_status ) 5460eval "ac_cv_c_strptime_works=no" 5461fi 5462rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5463fi 5464else 5465eval "ac_cv_c_strptime_works=maybe" 5466fi 5467echo "$as_me:$LINENO: result: $ac_cv_c_strptime_works" >&5 5468echo "${ECHO_T}$ac_cv_c_strptime_works" >&6 5469if test $ac_cv_c_strptime_works = no; then 5470case $LIBOBJS in 5471 "strptime.$ac_objext" | \ 5472 *" strptime.$ac_objext" | \ 5473 "strptime.$ac_objext "* | \ 5474 *" strptime.$ac_objext "* ) ;; 5475 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" ;; 5476esac 5477 5478else 5479 5480cat >>confdefs.h <<_ACEOF 5481#define STRPTIME_WORKS 1 5482_ACEOF 5483 5484fi 5485 5486 5487echo "$as_me:$LINENO: checking for library containing inet_pton" >&5 5488echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6 5489if test "${ac_cv_search_inet_pton+set}" = set; then 5490 echo $ECHO_N "(cached) $ECHO_C" >&6 5491else 5492 ac_func_search_save_LIBS=$LIBS 5493ac_cv_search_inet_pton=no 5494cat >conftest.$ac_ext <<_ACEOF 5495/* confdefs.h. */ 5496_ACEOF 5497cat confdefs.h >>conftest.$ac_ext 5498cat >>conftest.$ac_ext <<_ACEOF 5499/* end confdefs.h. */ 5500 5501/* Override any gcc2 internal prototype to avoid an error. */ 5502#ifdef __cplusplus 5503extern "C" 5504#endif 5505/* We use char because int might match the return type of a gcc2 5506 builtin and then its argument prototype would still apply. */ 5507char inet_pton (); 5508int 5509main () 5510{ 5511inet_pton (); 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516rm -f conftest.$ac_objext conftest$ac_exeext 5517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5518 (eval $ac_link) 2>conftest.er1 5519 ac_status=$? 5520 grep -v '^ *+' conftest.er1 >conftest.err 5521 rm -f conftest.er1 5522 cat conftest.err >&5 5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5524 (exit $ac_status); } && 5525 { ac_try='test -z "$ac_c_werror_flag" 5526 || test ! -s conftest.err' 5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5528 (eval $ac_try) 2>&5 5529 ac_status=$? 5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5531 (exit $ac_status); }; } && 5532 { ac_try='test -s conftest$ac_exeext' 5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5534 (eval $ac_try) 2>&5 5535 ac_status=$? 5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5537 (exit $ac_status); }; }; then 5538 ac_cv_search_inet_pton="none required" 5539else 5540 echo "$as_me: failed program was:" >&5 5541sed 's/^/| /' conftest.$ac_ext >&5 5542 5543fi 5544rm -f conftest.err conftest.$ac_objext \ 5545 conftest$ac_exeext conftest.$ac_ext 5546if test "$ac_cv_search_inet_pton" = no; then 5547 for ac_lib in nsl; do 5548 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5549 cat >conftest.$ac_ext <<_ACEOF 5550/* confdefs.h. */ 5551_ACEOF 5552cat confdefs.h >>conftest.$ac_ext 5553cat >>conftest.$ac_ext <<_ACEOF 5554/* end confdefs.h. */ 5555 5556/* Override any gcc2 internal prototype to avoid an error. */ 5557#ifdef __cplusplus 5558extern "C" 5559#endif 5560/* We use char because int might match the return type of a gcc2 5561 builtin and then its argument prototype would still apply. */ 5562char inet_pton (); 5563int 5564main () 5565{ 5566inet_pton (); 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571rm -f conftest.$ac_objext conftest$ac_exeext 5572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5573 (eval $ac_link) 2>conftest.er1 5574 ac_status=$? 5575 grep -v '^ *+' conftest.er1 >conftest.err 5576 rm -f conftest.er1 5577 cat conftest.err >&5 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); } && 5580 { ac_try='test -z "$ac_c_werror_flag" 5581 || test ! -s conftest.err' 5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5583 (eval $ac_try) 2>&5 5584 ac_status=$? 5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5586 (exit $ac_status); }; } && 5587 { ac_try='test -s conftest$ac_exeext' 5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5589 (eval $ac_try) 2>&5 5590 ac_status=$? 5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5592 (exit $ac_status); }; }; then 5593 ac_cv_search_inet_pton="-l$ac_lib" 5594break 5595else 5596 echo "$as_me: failed program was:" >&5 5597sed 's/^/| /' conftest.$ac_ext >&5 5598 5599fi 5600rm -f conftest.err conftest.$ac_objext \ 5601 conftest$ac_exeext conftest.$ac_ext 5602 done 5603fi 5604LIBS=$ac_func_search_save_LIBS 5605fi 5606echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5 5607echo "${ECHO_T}$ac_cv_search_inet_pton" >&6 5608if test "$ac_cv_search_inet_pton" != no; then 5609 test "$ac_cv_search_inet_pton" = "none required" || LIBS="$ac_cv_search_inet_pton $LIBS" 5610 5611fi 5612 5613echo "$as_me:$LINENO: checking for library containing socket" >&5 5614echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 5615if test "${ac_cv_search_socket+set}" = set; then 5616 echo $ECHO_N "(cached) $ECHO_C" >&6 5617else 5618 ac_func_search_save_LIBS=$LIBS 5619ac_cv_search_socket=no 5620cat >conftest.$ac_ext <<_ACEOF 5621/* confdefs.h. */ 5622_ACEOF 5623cat confdefs.h >>conftest.$ac_ext 5624cat >>conftest.$ac_ext <<_ACEOF 5625/* end confdefs.h. */ 5626 5627/* Override any gcc2 internal prototype to avoid an error. */ 5628#ifdef __cplusplus 5629extern "C" 5630#endif 5631/* We use char because int might match the return type of a gcc2 5632 builtin and then its argument prototype would still apply. */ 5633char socket (); 5634int 5635main () 5636{ 5637socket (); 5638 ; 5639 return 0; 5640} 5641_ACEOF 5642rm -f conftest.$ac_objext conftest$ac_exeext 5643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5644 (eval $ac_link) 2>conftest.er1 5645 ac_status=$? 5646 grep -v '^ *+' conftest.er1 >conftest.err 5647 rm -f conftest.er1 5648 cat conftest.err >&5 5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5650 (exit $ac_status); } && 5651 { ac_try='test -z "$ac_c_werror_flag" 5652 || test ! -s conftest.err' 5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5654 (eval $ac_try) 2>&5 5655 ac_status=$? 5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5657 (exit $ac_status); }; } && 5658 { ac_try='test -s conftest$ac_exeext' 5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5660 (eval $ac_try) 2>&5 5661 ac_status=$? 5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5663 (exit $ac_status); }; }; then 5664 ac_cv_search_socket="none required" 5665else 5666 echo "$as_me: failed program was:" >&5 5667sed 's/^/| /' conftest.$ac_ext >&5 5668 5669fi 5670rm -f conftest.err conftest.$ac_objext \ 5671 conftest$ac_exeext conftest.$ac_ext 5672if test "$ac_cv_search_socket" = no; then 5673 for ac_lib in socket; do 5674 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5675 cat >conftest.$ac_ext <<_ACEOF 5676/* confdefs.h. */ 5677_ACEOF 5678cat confdefs.h >>conftest.$ac_ext 5679cat >>conftest.$ac_ext <<_ACEOF 5680/* end confdefs.h. */ 5681 5682/* Override any gcc2 internal prototype to avoid an error. */ 5683#ifdef __cplusplus 5684extern "C" 5685#endif 5686/* We use char because int might match the return type of a gcc2 5687 builtin and then its argument prototype would still apply. */ 5688char socket (); 5689int 5690main () 5691{ 5692socket (); 5693 ; 5694 return 0; 5695} 5696_ACEOF 5697rm -f conftest.$ac_objext conftest$ac_exeext 5698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5699 (eval $ac_link) 2>conftest.er1 5700 ac_status=$? 5701 grep -v '^ *+' conftest.er1 >conftest.err 5702 rm -f conftest.er1 5703 cat conftest.err >&5 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); } && 5706 { ac_try='test -z "$ac_c_werror_flag" 5707 || test ! -s conftest.err' 5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5709 (eval $ac_try) 2>&5 5710 ac_status=$? 5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5712 (exit $ac_status); }; } && 5713 { ac_try='test -s conftest$ac_exeext' 5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5715 (eval $ac_try) 2>&5 5716 ac_status=$? 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); }; }; then 5719 ac_cv_search_socket="-l$ac_lib" 5720break 5721else 5722 echo "$as_me: failed program was:" >&5 5723sed 's/^/| /' conftest.$ac_ext >&5 5724 5725fi 5726rm -f conftest.err conftest.$ac_objext \ 5727 conftest$ac_exeext conftest.$ac_ext 5728 done 5729fi 5730LIBS=$ac_func_search_save_LIBS 5731fi 5732echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 5733echo "${ECHO_T}$ac_cv_search_socket" >&6 5734if test "$ac_cv_search_socket" != no; then 5735 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 5736 5737fi 5738 5739 5740 5741 5742 5743echo "$as_me:$LINENO: checking for int8_t" >&5 5744echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 5745if test "${ac_cv_type_int8_t+set}" = set; then 5746 echo $ECHO_N "(cached) $ECHO_C" >&6 5747else 5748 cat >conftest.$ac_ext <<_ACEOF 5749/* confdefs.h. */ 5750_ACEOF 5751cat confdefs.h >>conftest.$ac_ext 5752cat >>conftest.$ac_ext <<_ACEOF 5753/* end confdefs.h. */ 5754 5755#include <sys/types.h> 5756#if STDC_HEADERS 5757#include <stdlib.h> 5758#include <stddef.h> 5759#endif 5760 5761#ifdef HAVE_STDINT_H 5762#include <stdint.h> 5763#endif 5764 5765#ifdef HAVE_SYS_SOCKET_H 5766#include <sys/socket.h> 5767#endif 5768 5769#ifdef HAVE_ARPA_INET_H 5770#include <arpa/inet.h> 5771#endif 5772 5773#ifdef HAVE_SIGNAL_H 5774#include <signal.h> 5775#endif 5776 5777/* For Tru64 */ 5778#ifdef HAVE_SYS_BITYPES_H 5779#include <sys/bitypes.h> 5780#endif 5781 5782_ACEOF 5783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5784 $EGREP "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5785 ac_cv_type_int8_t=yes 5786else 5787 ac_cv_type_int8_t=no 5788fi 5789rm -f conftest* 5790 5791fi 5792echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 5793echo "${ECHO_T}$ac_cv_type_int8_t" >&6 5794if test $ac_cv_type_int8_t = no; then 5795 5796cat >>confdefs.h <<\_ACEOF 5797#define int8_t char 5798_ACEOF 5799 5800fi 5801 5802echo "$as_me:$LINENO: checking for int16_t" >&5 5803echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 5804if test "${ac_cv_type_int16_t+set}" = set; then 5805 echo $ECHO_N "(cached) $ECHO_C" >&6 5806else 5807 cat >conftest.$ac_ext <<_ACEOF 5808/* confdefs.h. */ 5809_ACEOF 5810cat confdefs.h >>conftest.$ac_ext 5811cat >>conftest.$ac_ext <<_ACEOF 5812/* end confdefs.h. */ 5813 5814#include <sys/types.h> 5815#if STDC_HEADERS 5816#include <stdlib.h> 5817#include <stddef.h> 5818#endif 5819 5820#ifdef HAVE_STDINT_H 5821#include <stdint.h> 5822#endif 5823 5824#ifdef HAVE_SYS_SOCKET_H 5825#include <sys/socket.h> 5826#endif 5827 5828#ifdef HAVE_ARPA_INET_H 5829#include <arpa/inet.h> 5830#endif 5831 5832#ifdef HAVE_SIGNAL_H 5833#include <signal.h> 5834#endif 5835 5836/* For Tru64 */ 5837#ifdef HAVE_SYS_BITYPES_H 5838#include <sys/bitypes.h> 5839#endif 5840 5841_ACEOF 5842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5843 $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5844 ac_cv_type_int16_t=yes 5845else 5846 ac_cv_type_int16_t=no 5847fi 5848rm -f conftest* 5849 5850fi 5851echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 5852echo "${ECHO_T}$ac_cv_type_int16_t" >&6 5853if test $ac_cv_type_int16_t = no; then 5854 5855cat >>confdefs.h <<\_ACEOF 5856#define int16_t short 5857_ACEOF 5858 5859fi 5860 5861echo "$as_me:$LINENO: checking for int32_t" >&5 5862echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 5863if test "${ac_cv_type_int32_t+set}" = set; then 5864 echo $ECHO_N "(cached) $ECHO_C" >&6 5865else 5866 cat >conftest.$ac_ext <<_ACEOF 5867/* confdefs.h. */ 5868_ACEOF 5869cat confdefs.h >>conftest.$ac_ext 5870cat >>conftest.$ac_ext <<_ACEOF 5871/* end confdefs.h. */ 5872 5873#include <sys/types.h> 5874#if STDC_HEADERS 5875#include <stdlib.h> 5876#include <stddef.h> 5877#endif 5878 5879#ifdef HAVE_STDINT_H 5880#include <stdint.h> 5881#endif 5882 5883#ifdef HAVE_SYS_SOCKET_H 5884#include <sys/socket.h> 5885#endif 5886 5887#ifdef HAVE_ARPA_INET_H 5888#include <arpa/inet.h> 5889#endif 5890 5891#ifdef HAVE_SIGNAL_H 5892#include <signal.h> 5893#endif 5894 5895/* For Tru64 */ 5896#ifdef HAVE_SYS_BITYPES_H 5897#include <sys/bitypes.h> 5898#endif 5899 5900_ACEOF 5901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5902 $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5903 ac_cv_type_int32_t=yes 5904else 5905 ac_cv_type_int32_t=no 5906fi 5907rm -f conftest* 5908 5909fi 5910echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 5911echo "${ECHO_T}$ac_cv_type_int32_t" >&6 5912if test $ac_cv_type_int32_t = no; then 5913 5914cat >>confdefs.h <<\_ACEOF 5915#define int32_t int 5916_ACEOF 5917 5918fi 5919 5920echo "$as_me:$LINENO: checking for int64_t" >&5 5921echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 5922if test "${ac_cv_type_int64_t+set}" = set; then 5923 echo $ECHO_N "(cached) $ECHO_C" >&6 5924else 5925 cat >conftest.$ac_ext <<_ACEOF 5926/* confdefs.h. */ 5927_ACEOF 5928cat confdefs.h >>conftest.$ac_ext 5929cat >>conftest.$ac_ext <<_ACEOF 5930/* end confdefs.h. */ 5931 5932#include <sys/types.h> 5933#if STDC_HEADERS 5934#include <stdlib.h> 5935#include <stddef.h> 5936#endif 5937 5938#ifdef HAVE_STDINT_H 5939#include <stdint.h> 5940#endif 5941 5942#ifdef HAVE_SYS_SOCKET_H 5943#include <sys/socket.h> 5944#endif 5945 5946#ifdef HAVE_ARPA_INET_H 5947#include <arpa/inet.h> 5948#endif 5949 5950#ifdef HAVE_SIGNAL_H 5951#include <signal.h> 5952#endif 5953 5954/* For Tru64 */ 5955#ifdef HAVE_SYS_BITYPES_H 5956#include <sys/bitypes.h> 5957#endif 5958 5959_ACEOF 5960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5961 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5962 ac_cv_type_int64_t=yes 5963else 5964 ac_cv_type_int64_t=no 5965fi 5966rm -f conftest* 5967 5968fi 5969echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 5970echo "${ECHO_T}$ac_cv_type_int64_t" >&6 5971if test $ac_cv_type_int64_t = no; then 5972 5973cat >>confdefs.h <<\_ACEOF 5974#define int64_t long long 5975_ACEOF 5976 5977fi 5978 5979echo "$as_me:$LINENO: checking for uint8_t" >&5 5980echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 5981if test "${ac_cv_type_uint8_t+set}" = set; then 5982 echo $ECHO_N "(cached) $ECHO_C" >&6 5983else 5984 cat >conftest.$ac_ext <<_ACEOF 5985/* confdefs.h. */ 5986_ACEOF 5987cat confdefs.h >>conftest.$ac_ext 5988cat >>conftest.$ac_ext <<_ACEOF 5989/* end confdefs.h. */ 5990 5991#include <sys/types.h> 5992#if STDC_HEADERS 5993#include <stdlib.h> 5994#include <stddef.h> 5995#endif 5996 5997#ifdef HAVE_STDINT_H 5998#include <stdint.h> 5999#endif 6000 6001#ifdef HAVE_SYS_SOCKET_H 6002#include <sys/socket.h> 6003#endif 6004 6005#ifdef HAVE_ARPA_INET_H 6006#include <arpa/inet.h> 6007#endif 6008 6009#ifdef HAVE_SIGNAL_H 6010#include <signal.h> 6011#endif 6012 6013/* For Tru64 */ 6014#ifdef HAVE_SYS_BITYPES_H 6015#include <sys/bitypes.h> 6016#endif 6017 6018_ACEOF 6019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6020 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6021 ac_cv_type_uint8_t=yes 6022else 6023 ac_cv_type_uint8_t=no 6024fi 6025rm -f conftest* 6026 6027fi 6028echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 6029echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 6030if test $ac_cv_type_uint8_t = no; then 6031 6032cat >>confdefs.h <<\_ACEOF 6033#define uint8_t unsigned char 6034_ACEOF 6035 6036fi 6037 6038echo "$as_me:$LINENO: checking for uint16_t" >&5 6039echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 6040if test "${ac_cv_type_uint16_t+set}" = set; then 6041 echo $ECHO_N "(cached) $ECHO_C" >&6 6042else 6043 cat >conftest.$ac_ext <<_ACEOF 6044/* confdefs.h. */ 6045_ACEOF 6046cat confdefs.h >>conftest.$ac_ext 6047cat >>conftest.$ac_ext <<_ACEOF 6048/* end confdefs.h. */ 6049 6050#include <sys/types.h> 6051#if STDC_HEADERS 6052#include <stdlib.h> 6053#include <stddef.h> 6054#endif 6055 6056#ifdef HAVE_STDINT_H 6057#include <stdint.h> 6058#endif 6059 6060#ifdef HAVE_SYS_SOCKET_H 6061#include <sys/socket.h> 6062#endif 6063 6064#ifdef HAVE_ARPA_INET_H 6065#include <arpa/inet.h> 6066#endif 6067 6068#ifdef HAVE_SIGNAL_H 6069#include <signal.h> 6070#endif 6071 6072/* For Tru64 */ 6073#ifdef HAVE_SYS_BITYPES_H 6074#include <sys/bitypes.h> 6075#endif 6076 6077_ACEOF 6078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6079 $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6080 ac_cv_type_uint16_t=yes 6081else 6082 ac_cv_type_uint16_t=no 6083fi 6084rm -f conftest* 6085 6086fi 6087echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 6088echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 6089if test $ac_cv_type_uint16_t = no; then 6090 6091cat >>confdefs.h <<\_ACEOF 6092#define uint16_t unsigned short 6093_ACEOF 6094 6095fi 6096 6097echo "$as_me:$LINENO: checking for uint32_t" >&5 6098echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 6099if test "${ac_cv_type_uint32_t+set}" = set; then 6100 echo $ECHO_N "(cached) $ECHO_C" >&6 6101else 6102 cat >conftest.$ac_ext <<_ACEOF 6103/* confdefs.h. */ 6104_ACEOF 6105cat confdefs.h >>conftest.$ac_ext 6106cat >>conftest.$ac_ext <<_ACEOF 6107/* end confdefs.h. */ 6108 6109#include <sys/types.h> 6110#if STDC_HEADERS 6111#include <stdlib.h> 6112#include <stddef.h> 6113#endif 6114 6115#ifdef HAVE_STDINT_H 6116#include <stdint.h> 6117#endif 6118 6119#ifdef HAVE_SYS_SOCKET_H 6120#include <sys/socket.h> 6121#endif 6122 6123#ifdef HAVE_ARPA_INET_H 6124#include <arpa/inet.h> 6125#endif 6126 6127#ifdef HAVE_SIGNAL_H 6128#include <signal.h> 6129#endif 6130 6131/* For Tru64 */ 6132#ifdef HAVE_SYS_BITYPES_H 6133#include <sys/bitypes.h> 6134#endif 6135 6136_ACEOF 6137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6138 $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6139 ac_cv_type_uint32_t=yes 6140else 6141 ac_cv_type_uint32_t=no 6142fi 6143rm -f conftest* 6144 6145fi 6146echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 6147echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 6148if test $ac_cv_type_uint32_t = no; then 6149 6150cat >>confdefs.h <<\_ACEOF 6151#define uint32_t unsigned int 6152_ACEOF 6153 6154fi 6155 6156echo "$as_me:$LINENO: checking for uint64_t" >&5 6157echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 6158if test "${ac_cv_type_uint64_t+set}" = set; then 6159 echo $ECHO_N "(cached) $ECHO_C" >&6 6160else 6161 cat >conftest.$ac_ext <<_ACEOF 6162/* confdefs.h. */ 6163_ACEOF 6164cat confdefs.h >>conftest.$ac_ext 6165cat >>conftest.$ac_ext <<_ACEOF 6166/* end confdefs.h. */ 6167 6168#include <sys/types.h> 6169#if STDC_HEADERS 6170#include <stdlib.h> 6171#include <stddef.h> 6172#endif 6173 6174#ifdef HAVE_STDINT_H 6175#include <stdint.h> 6176#endif 6177 6178#ifdef HAVE_SYS_SOCKET_H 6179#include <sys/socket.h> 6180#endif 6181 6182#ifdef HAVE_ARPA_INET_H 6183#include <arpa/inet.h> 6184#endif 6185 6186#ifdef HAVE_SIGNAL_H 6187#include <signal.h> 6188#endif 6189 6190/* For Tru64 */ 6191#ifdef HAVE_SYS_BITYPES_H 6192#include <sys/bitypes.h> 6193#endif 6194 6195_ACEOF 6196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6197 $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6198 ac_cv_type_uint64_t=yes 6199else 6200 ac_cv_type_uint64_t=no 6201fi 6202rm -f conftest* 6203 6204fi 6205echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 6206echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 6207if test $ac_cv_type_uint64_t = no; then 6208 6209cat >>confdefs.h <<\_ACEOF 6210#define uint64_t unsigned long long 6211_ACEOF 6212 6213fi 6214 6215echo "$as_me:$LINENO: checking for socklen_t" >&5 6216echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 6217if test "${ac_cv_type_socklen_t+set}" = set; then 6218 echo $ECHO_N "(cached) $ECHO_C" >&6 6219else 6220 cat >conftest.$ac_ext <<_ACEOF 6221/* confdefs.h. */ 6222_ACEOF 6223cat confdefs.h >>conftest.$ac_ext 6224cat >>conftest.$ac_ext <<_ACEOF 6225/* end confdefs.h. */ 6226 6227#include <sys/types.h> 6228#if STDC_HEADERS 6229#include <stdlib.h> 6230#include <stddef.h> 6231#endif 6232 6233#ifdef HAVE_STDINT_H 6234#include <stdint.h> 6235#endif 6236 6237#ifdef HAVE_SYS_SOCKET_H 6238#include <sys/socket.h> 6239#endif 6240 6241#ifdef HAVE_ARPA_INET_H 6242#include <arpa/inet.h> 6243#endif 6244 6245#ifdef HAVE_SIGNAL_H 6246#include <signal.h> 6247#endif 6248 6249/* For Tru64 */ 6250#ifdef HAVE_SYS_BITYPES_H 6251#include <sys/bitypes.h> 6252#endif 6253 6254_ACEOF 6255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6256 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6257 ac_cv_type_socklen_t=yes 6258else 6259 ac_cv_type_socklen_t=no 6260fi 6261rm -f conftest* 6262 6263fi 6264echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 6265echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 6266if test $ac_cv_type_socklen_t = no; then 6267 6268cat >>confdefs.h <<\_ACEOF 6269#define socklen_t int 6270_ACEOF 6271 6272fi 6273 6274echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 6275echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 6276if test "${ac_cv_type_sig_atomic_t+set}" = set; then 6277 echo $ECHO_N "(cached) $ECHO_C" >&6 6278else 6279 cat >conftest.$ac_ext <<_ACEOF 6280/* confdefs.h. */ 6281_ACEOF 6282cat confdefs.h >>conftest.$ac_ext 6283cat >>conftest.$ac_ext <<_ACEOF 6284/* end confdefs.h. */ 6285 6286#include <sys/types.h> 6287#if STDC_HEADERS 6288#include <stdlib.h> 6289#include <stddef.h> 6290#endif 6291 6292#ifdef HAVE_STDINT_H 6293#include <stdint.h> 6294#endif 6295 6296#ifdef HAVE_SYS_SOCKET_H 6297#include <sys/socket.h> 6298#endif 6299 6300#ifdef HAVE_ARPA_INET_H 6301#include <arpa/inet.h> 6302#endif 6303 6304#ifdef HAVE_SIGNAL_H 6305#include <signal.h> 6306#endif 6307 6308/* For Tru64 */ 6309#ifdef HAVE_SYS_BITYPES_H 6310#include <sys/bitypes.h> 6311#endif 6312 6313_ACEOF 6314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6315 $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6316 ac_cv_type_sig_atomic_t=yes 6317else 6318 ac_cv_type_sig_atomic_t=no 6319fi 6320rm -f conftest* 6321 6322fi 6323echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 6324echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 6325if test $ac_cv_type_sig_atomic_t = no; then 6326 6327cat >>confdefs.h <<\_ACEOF 6328#define sig_atomic_t int 6329_ACEOF 6330 6331fi 6332 6333echo "$as_me:$LINENO: checking for ssize_t" >&5 6334echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 6335if test "${ac_cv_type_ssize_t+set}" = set; then 6336 echo $ECHO_N "(cached) $ECHO_C" >&6 6337else 6338 cat >conftest.$ac_ext <<_ACEOF 6339/* confdefs.h. */ 6340_ACEOF 6341cat confdefs.h >>conftest.$ac_ext 6342cat >>conftest.$ac_ext <<_ACEOF 6343/* end confdefs.h. */ 6344 6345#include <sys/types.h> 6346#if STDC_HEADERS 6347#include <stdlib.h> 6348#include <stddef.h> 6349#endif 6350 6351#ifdef HAVE_STDINT_H 6352#include <stdint.h> 6353#endif 6354 6355#ifdef HAVE_SYS_SOCKET_H 6356#include <sys/socket.h> 6357#endif 6358 6359#ifdef HAVE_ARPA_INET_H 6360#include <arpa/inet.h> 6361#endif 6362 6363#ifdef HAVE_SIGNAL_H 6364#include <signal.h> 6365#endif 6366 6367/* For Tru64 */ 6368#ifdef HAVE_SYS_BITYPES_H 6369#include <sys/bitypes.h> 6370#endif 6371 6372_ACEOF 6373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6374 $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6375 ac_cv_type_ssize_t=yes 6376else 6377 ac_cv_type_ssize_t=no 6378fi 6379rm -f conftest* 6380 6381fi 6382echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 6383echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 6384if test $ac_cv_type_ssize_t = no; then 6385 6386cat >>confdefs.h <<\_ACEOF 6387#define ssize_t int 6388_ACEOF 6389 6390fi 6391 6392echo "$as_me:$LINENO: checking for suseconds_t" >&5 6393echo $ECHO_N "checking for suseconds_t... $ECHO_C" >&6 6394if test "${ac_cv_type_suseconds_t+set}" = set; then 6395 echo $ECHO_N "(cached) $ECHO_C" >&6 6396else 6397 cat >conftest.$ac_ext <<_ACEOF 6398/* confdefs.h. */ 6399_ACEOF 6400cat confdefs.h >>conftest.$ac_ext 6401cat >>conftest.$ac_ext <<_ACEOF 6402/* end confdefs.h. */ 6403 6404#include <sys/types.h> 6405#if STDC_HEADERS 6406#include <stdlib.h> 6407#include <stddef.h> 6408#endif 6409 6410#ifdef HAVE_STDINT_H 6411#include <stdint.h> 6412#endif 6413 6414#ifdef HAVE_SYS_SOCKET_H 6415#include <sys/socket.h> 6416#endif 6417 6418#ifdef HAVE_ARPA_INET_H 6419#include <arpa/inet.h> 6420#endif 6421 6422#ifdef HAVE_SIGNAL_H 6423#include <signal.h> 6424#endif 6425 6426/* For Tru64 */ 6427#ifdef HAVE_SYS_BITYPES_H 6428#include <sys/bitypes.h> 6429#endif 6430 6431_ACEOF 6432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6433 $EGREP "(^|[^a-zA-Z_0-9])suseconds_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6434 ac_cv_type_suseconds_t=yes 6435else 6436 ac_cv_type_suseconds_t=no 6437fi 6438rm -f conftest* 6439 6440fi 6441echo "$as_me:$LINENO: result: $ac_cv_type_suseconds_t" >&5 6442echo "${ECHO_T}$ac_cv_type_suseconds_t" >&6 6443if test $ac_cv_type_suseconds_t = no; then 6444 6445cat >>confdefs.h <<\_ACEOF 6446#define suseconds_t time_t 6447_ACEOF 6448 6449fi 6450 6451 6452echo "$as_me:$LINENO: checking for in_addr_t" >&5 6453echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6 6454if test "${ac_cv_type_in_addr_t+set}" = set; then 6455 echo $ECHO_N "(cached) $ECHO_C" >&6 6456else 6457 cat >conftest.$ac_ext <<_ACEOF 6458/* confdefs.h. */ 6459_ACEOF 6460cat confdefs.h >>conftest.$ac_ext 6461cat >>conftest.$ac_ext <<_ACEOF 6462/* end confdefs.h. */ 6463 6464#if HAVE_SYS_TYPES_H 6465# include <sys/types.h> 6466#endif 6467#if HAVE_NETINET_IN_H 6468# include <netinet/in.h> 6469#endif 6470 6471int 6472main () 6473{ 6474if ((in_addr_t *) 0) 6475 return 0; 6476if (sizeof (in_addr_t)) 6477 return 0; 6478 ; 6479 return 0; 6480} 6481_ACEOF 6482rm -f conftest.$ac_objext 6483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6484 (eval $ac_compile) 2>conftest.er1 6485 ac_status=$? 6486 grep -v '^ *+' conftest.er1 >conftest.err 6487 rm -f conftest.er1 6488 cat conftest.err >&5 6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6490 (exit $ac_status); } && 6491 { ac_try='test -z "$ac_c_werror_flag" 6492 || test ! -s conftest.err' 6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6494 (eval $ac_try) 2>&5 6495 ac_status=$? 6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6497 (exit $ac_status); }; } && 6498 { ac_try='test -s conftest.$ac_objext' 6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6500 (eval $ac_try) 2>&5 6501 ac_status=$? 6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6503 (exit $ac_status); }; }; then 6504 ac_cv_type_in_addr_t=yes 6505else 6506 echo "$as_me: failed program was:" >&5 6507sed 's/^/| /' conftest.$ac_ext >&5 6508 6509ac_cv_type_in_addr_t=no 6510fi 6511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6512fi 6513echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 6514echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6 6515if test $ac_cv_type_in_addr_t = yes; then 6516 : 6517else 6518 6519cat >>confdefs.h <<\_ACEOF 6520#define in_addr_t uint32_t 6521_ACEOF 6522 6523fi 6524 6525echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5 6526echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6 6527if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then 6528 echo $ECHO_N "(cached) $ECHO_C" >&6 6529else 6530 cat >conftest.$ac_ext <<_ACEOF 6531/* confdefs.h. */ 6532_ACEOF 6533cat confdefs.h >>conftest.$ac_ext 6534cat >>conftest.$ac_ext <<_ACEOF 6535/* end confdefs.h. */ 6536$ac_includes_default 6537#ifdef HAVE_NETINET_IN_H 6538#include <netinet/in.h> 6539#endif 6540#ifdef HAVE_SYS_SOCKET_H 6541#include <sys/socket.h> 6542#endif 6543#ifdef HAVE_NETDB_H 6544#include <netdb.h> 6545#endif 6546#ifdef HAVE_ARPA_INET_H 6547#include <arpa/inet.h> 6548#endif 6549 6550 6551int 6552main () 6553{ 6554static struct sockaddr_storage ac_aggr; 6555if (ac_aggr.ss_family) 6556return 0; 6557 ; 6558 return 0; 6559} 6560_ACEOF 6561rm -f conftest.$ac_objext 6562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6563 (eval $ac_compile) 2>conftest.er1 6564 ac_status=$? 6565 grep -v '^ *+' conftest.er1 >conftest.err 6566 rm -f conftest.er1 6567 cat conftest.err >&5 6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6569 (exit $ac_status); } && 6570 { ac_try='test -z "$ac_c_werror_flag" 6571 || test ! -s conftest.err' 6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6573 (eval $ac_try) 2>&5 6574 ac_status=$? 6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6576 (exit $ac_status); }; } && 6577 { ac_try='test -s conftest.$ac_objext' 6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6579 (eval $ac_try) 2>&5 6580 ac_status=$? 6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6582 (exit $ac_status); }; }; then 6583 ac_cv_member_struct_sockaddr_storage_ss_family=yes 6584else 6585 echo "$as_me: failed program was:" >&5 6586sed 's/^/| /' conftest.$ac_ext >&5 6587 6588cat >conftest.$ac_ext <<_ACEOF 6589/* confdefs.h. */ 6590_ACEOF 6591cat confdefs.h >>conftest.$ac_ext 6592cat >>conftest.$ac_ext <<_ACEOF 6593/* end confdefs.h. */ 6594$ac_includes_default 6595#ifdef HAVE_NETINET_IN_H 6596#include <netinet/in.h> 6597#endif 6598#ifdef HAVE_SYS_SOCKET_H 6599#include <sys/socket.h> 6600#endif 6601#ifdef HAVE_NETDB_H 6602#include <netdb.h> 6603#endif 6604#ifdef HAVE_ARPA_INET_H 6605#include <arpa/inet.h> 6606#endif 6607 6608 6609int 6610main () 6611{ 6612static struct sockaddr_storage ac_aggr; 6613if (sizeof ac_aggr.ss_family) 6614return 0; 6615 ; 6616 return 0; 6617} 6618_ACEOF 6619rm -f conftest.$ac_objext 6620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6621 (eval $ac_compile) 2>conftest.er1 6622 ac_status=$? 6623 grep -v '^ *+' conftest.er1 >conftest.err 6624 rm -f conftest.er1 6625 cat conftest.err >&5 6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && 6628 { ac_try='test -z "$ac_c_werror_flag" 6629 || test ! -s conftest.err' 6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6631 (eval $ac_try) 2>&5 6632 ac_status=$? 6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6634 (exit $ac_status); }; } && 6635 { ac_try='test -s conftest.$ac_objext' 6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6637 (eval $ac_try) 2>&5 6638 ac_status=$? 6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6640 (exit $ac_status); }; }; then 6641 ac_cv_member_struct_sockaddr_storage_ss_family=yes 6642else 6643 echo "$as_me: failed program was:" >&5 6644sed 's/^/| /' conftest.$ac_ext >&5 6645 6646ac_cv_member_struct_sockaddr_storage_ss_family=no 6647fi 6648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6649fi 6650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6651fi 6652echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5 6653echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6 6654if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then 6655 : 6656else 6657 6658 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5 6659echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6 6660if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then 6661 echo $ECHO_N "(cached) $ECHO_C" >&6 6662else 6663 cat >conftest.$ac_ext <<_ACEOF 6664/* confdefs.h. */ 6665_ACEOF 6666cat confdefs.h >>conftest.$ac_ext 6667cat >>conftest.$ac_ext <<_ACEOF 6668/* end confdefs.h. */ 6669$ac_includes_default 6670#ifdef HAVE_NETINET_IN_H 6671#include <netinet/in.h> 6672#endif 6673#ifdef HAVE_SYS_SOCKET_H 6674#include <sys/socket.h> 6675#endif 6676#ifdef HAVE_NETDB_H 6677#include <netdb.h> 6678#endif 6679#ifdef HAVE_ARPA_INET_H 6680#include <arpa/inet.h> 6681#endif 6682 6683 6684int 6685main () 6686{ 6687static struct sockaddr_storage ac_aggr; 6688if (ac_aggr.__ss_family) 6689return 0; 6690 ; 6691 return 0; 6692} 6693_ACEOF 6694rm -f conftest.$ac_objext 6695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6696 (eval $ac_compile) 2>conftest.er1 6697 ac_status=$? 6698 grep -v '^ *+' conftest.er1 >conftest.err 6699 rm -f conftest.er1 6700 cat conftest.err >&5 6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6702 (exit $ac_status); } && 6703 { ac_try='test -z "$ac_c_werror_flag" 6704 || test ! -s conftest.err' 6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6706 (eval $ac_try) 2>&5 6707 ac_status=$? 6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6709 (exit $ac_status); }; } && 6710 { ac_try='test -s conftest.$ac_objext' 6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6712 (eval $ac_try) 2>&5 6713 ac_status=$? 6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6715 (exit $ac_status); }; }; then 6716 ac_cv_member_struct_sockaddr_storage___ss_family=yes 6717else 6718 echo "$as_me: failed program was:" >&5 6719sed 's/^/| /' conftest.$ac_ext >&5 6720 6721cat >conftest.$ac_ext <<_ACEOF 6722/* confdefs.h. */ 6723_ACEOF 6724cat confdefs.h >>conftest.$ac_ext 6725cat >>conftest.$ac_ext <<_ACEOF 6726/* end confdefs.h. */ 6727$ac_includes_default 6728#ifdef HAVE_NETINET_IN_H 6729#include <netinet/in.h> 6730#endif 6731#ifdef HAVE_SYS_SOCKET_H 6732#include <sys/socket.h> 6733#endif 6734#ifdef HAVE_NETDB_H 6735#include <netdb.h> 6736#endif 6737#ifdef HAVE_ARPA_INET_H 6738#include <arpa/inet.h> 6739#endif 6740 6741 6742int 6743main () 6744{ 6745static struct sockaddr_storage ac_aggr; 6746if (sizeof ac_aggr.__ss_family) 6747return 0; 6748 ; 6749 return 0; 6750} 6751_ACEOF 6752rm -f conftest.$ac_objext 6753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6754 (eval $ac_compile) 2>conftest.er1 6755 ac_status=$? 6756 grep -v '^ *+' conftest.er1 >conftest.err 6757 rm -f conftest.er1 6758 cat conftest.err >&5 6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6760 (exit $ac_status); } && 6761 { ac_try='test -z "$ac_c_werror_flag" 6762 || test ! -s conftest.err' 6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6764 (eval $ac_try) 2>&5 6765 ac_status=$? 6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6767 (exit $ac_status); }; } && 6768 { ac_try='test -s conftest.$ac_objext' 6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6770 (eval $ac_try) 2>&5 6771 ac_status=$? 6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6773 (exit $ac_status); }; }; then 6774 ac_cv_member_struct_sockaddr_storage___ss_family=yes 6775else 6776 echo "$as_me: failed program was:" >&5 6777sed 's/^/| /' conftest.$ac_ext >&5 6778 6779ac_cv_member_struct_sockaddr_storage___ss_family=no 6780fi 6781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6782fi 6783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6784fi 6785echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5 6786echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6 6787if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then 6788 6789 6790cat >>confdefs.h <<\_ACEOF 6791#define ss_family __ss_family 6792_ACEOF 6793 6794 6795fi 6796 6797 6798fi 6799 6800 6801# Checks for library functions. 6802 6803for ac_header in unistd.h 6804do 6805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6806if eval "test \"\${$as_ac_Header+set}\" = set"; then 6807 echo "$as_me:$LINENO: checking for $ac_header" >&5 6808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6809if eval "test \"\${$as_ac_Header+set}\" = set"; then 6810 echo $ECHO_N "(cached) $ECHO_C" >&6 6811fi 6812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6814else 6815 # Is the header compilable? 6816echo "$as_me:$LINENO: checking $ac_header usability" >&5 6817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6818cat >conftest.$ac_ext <<_ACEOF 6819/* confdefs.h. */ 6820_ACEOF 6821cat confdefs.h >>conftest.$ac_ext 6822cat >>conftest.$ac_ext <<_ACEOF 6823/* end confdefs.h. */ 6824$ac_includes_default 6825#include <$ac_header> 6826_ACEOF 6827rm -f conftest.$ac_objext 6828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6829 (eval $ac_compile) 2>conftest.er1 6830 ac_status=$? 6831 grep -v '^ *+' conftest.er1 >conftest.err 6832 rm -f conftest.er1 6833 cat conftest.err >&5 6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6835 (exit $ac_status); } && 6836 { ac_try='test -z "$ac_c_werror_flag" 6837 || test ! -s conftest.err' 6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6839 (eval $ac_try) 2>&5 6840 ac_status=$? 6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6842 (exit $ac_status); }; } && 6843 { ac_try='test -s conftest.$ac_objext' 6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6845 (eval $ac_try) 2>&5 6846 ac_status=$? 6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6848 (exit $ac_status); }; }; then 6849 ac_header_compiler=yes 6850else 6851 echo "$as_me: failed program was:" >&5 6852sed 's/^/| /' conftest.$ac_ext >&5 6853 6854ac_header_compiler=no 6855fi 6856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6858echo "${ECHO_T}$ac_header_compiler" >&6 6859 6860# Is the header present? 6861echo "$as_me:$LINENO: checking $ac_header presence" >&5 6862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6863cat >conftest.$ac_ext <<_ACEOF 6864/* confdefs.h. */ 6865_ACEOF 6866cat confdefs.h >>conftest.$ac_ext 6867cat >>conftest.$ac_ext <<_ACEOF 6868/* end confdefs.h. */ 6869#include <$ac_header> 6870_ACEOF 6871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6873 ac_status=$? 6874 grep -v '^ *+' conftest.er1 >conftest.err 6875 rm -f conftest.er1 6876 cat conftest.err >&5 6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6878 (exit $ac_status); } >/dev/null; then 6879 if test -s conftest.err; then 6880 ac_cpp_err=$ac_c_preproc_warn_flag 6881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6882 else 6883 ac_cpp_err= 6884 fi 6885else 6886 ac_cpp_err=yes 6887fi 6888if test -z "$ac_cpp_err"; then 6889 ac_header_preproc=yes 6890else 6891 echo "$as_me: failed program was:" >&5 6892sed 's/^/| /' conftest.$ac_ext >&5 6893 6894 ac_header_preproc=no 6895fi 6896rm -f conftest.err conftest.$ac_ext 6897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6898echo "${ECHO_T}$ac_header_preproc" >&6 6899 6900# So? What about this header? 6901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6902 yes:no: ) 6903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6907 ac_header_preproc=yes 6908 ;; 6909 no:yes:* ) 6910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6922 ( 6923 cat <<\_ASBOX 6924## ------------------------------------ ## 6925## Report this to nsd-bugs@nlnetlabs.nl ## 6926## ------------------------------------ ## 6927_ASBOX 6928 ) | 6929 sed "s/^/$as_me: WARNING: /" >&2 6930 ;; 6931esac 6932echo "$as_me:$LINENO: checking for $ac_header" >&5 6933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6934if eval "test \"\${$as_ac_Header+set}\" = set"; then 6935 echo $ECHO_N "(cached) $ECHO_C" >&6 6936else 6937 eval "$as_ac_Header=\$ac_header_preproc" 6938fi 6939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6941 6942fi 6943if test `eval echo '${'$as_ac_Header'}'` = yes; then 6944 cat >>confdefs.h <<_ACEOF 6945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6946_ACEOF 6947 6948fi 6949 6950done 6951 6952echo "$as_me:$LINENO: checking for working chown" >&5 6953echo $ECHO_N "checking for working chown... $ECHO_C" >&6 6954if test "${ac_cv_func_chown_works+set}" = set; then 6955 echo $ECHO_N "(cached) $ECHO_C" >&6 6956else 6957 if test "$cross_compiling" = yes; then 6958 ac_cv_func_chown_works=no 6959else 6960 cat >conftest.$ac_ext <<_ACEOF 6961/* confdefs.h. */ 6962_ACEOF 6963cat confdefs.h >>conftest.$ac_ext 6964cat >>conftest.$ac_ext <<_ACEOF 6965/* end confdefs.h. */ 6966$ac_includes_default 6967#include <fcntl.h> 6968 6969int 6970main () 6971{ 6972 char *f = "conftest.chown"; 6973 struct stat before, after; 6974 6975 if (creat (f, 0600) < 0) 6976 exit (1); 6977 if (stat (f, &before) < 0) 6978 exit (1); 6979 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 6980 exit (1); 6981 if (stat (f, &after) < 0) 6982 exit (1); 6983 exit ((before.st_uid == after.st_uid 6984 && before.st_gid == after.st_gid) ? 0 : 1); 6985 6986 ; 6987 return 0; 6988} 6989_ACEOF 6990rm -f conftest$ac_exeext 6991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6992 (eval $ac_link) 2>&5 6993 ac_status=$? 6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6997 (eval $ac_try) 2>&5 6998 ac_status=$? 6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7000 (exit $ac_status); }; }; then 7001 ac_cv_func_chown_works=yes 7002else 7003 echo "$as_me: program exited with status $ac_status" >&5 7004echo "$as_me: failed program was:" >&5 7005sed 's/^/| /' conftest.$ac_ext >&5 7006 7007( exit $ac_status ) 7008ac_cv_func_chown_works=no 7009fi 7010rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7011fi 7012rm -f conftest.chown 7013 7014fi 7015echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 7016echo "${ECHO_T}$ac_cv_func_chown_works" >&6 7017if test $ac_cv_func_chown_works = yes; then 7018 7019cat >>confdefs.h <<\_ACEOF 7020#define HAVE_CHOWN 1 7021_ACEOF 7022 7023fi 7024 7025 7026 7027for ac_header in unistd.h vfork.h 7028do 7029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7030if eval "test \"\${$as_ac_Header+set}\" = set"; then 7031 echo "$as_me:$LINENO: checking for $ac_header" >&5 7032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7033if eval "test \"\${$as_ac_Header+set}\" = set"; then 7034 echo $ECHO_N "(cached) $ECHO_C" >&6 7035fi 7036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7038else 7039 # Is the header compilable? 7040echo "$as_me:$LINENO: checking $ac_header usability" >&5 7041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7042cat >conftest.$ac_ext <<_ACEOF 7043/* confdefs.h. */ 7044_ACEOF 7045cat confdefs.h >>conftest.$ac_ext 7046cat >>conftest.$ac_ext <<_ACEOF 7047/* end confdefs.h. */ 7048$ac_includes_default 7049#include <$ac_header> 7050_ACEOF 7051rm -f conftest.$ac_objext 7052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7053 (eval $ac_compile) 2>conftest.er1 7054 ac_status=$? 7055 grep -v '^ *+' conftest.er1 >conftest.err 7056 rm -f conftest.er1 7057 cat conftest.err >&5 7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7059 (exit $ac_status); } && 7060 { ac_try='test -z "$ac_c_werror_flag" 7061 || test ! -s conftest.err' 7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7063 (eval $ac_try) 2>&5 7064 ac_status=$? 7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7066 (exit $ac_status); }; } && 7067 { ac_try='test -s conftest.$ac_objext' 7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7069 (eval $ac_try) 2>&5 7070 ac_status=$? 7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7072 (exit $ac_status); }; }; then 7073 ac_header_compiler=yes 7074else 7075 echo "$as_me: failed program was:" >&5 7076sed 's/^/| /' conftest.$ac_ext >&5 7077 7078ac_header_compiler=no 7079fi 7080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7082echo "${ECHO_T}$ac_header_compiler" >&6 7083 7084# Is the header present? 7085echo "$as_me:$LINENO: checking $ac_header presence" >&5 7086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7087cat >conftest.$ac_ext <<_ACEOF 7088/* confdefs.h. */ 7089_ACEOF 7090cat confdefs.h >>conftest.$ac_ext 7091cat >>conftest.$ac_ext <<_ACEOF 7092/* end confdefs.h. */ 7093#include <$ac_header> 7094_ACEOF 7095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7097 ac_status=$? 7098 grep -v '^ *+' conftest.er1 >conftest.err 7099 rm -f conftest.er1 7100 cat conftest.err >&5 7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7102 (exit $ac_status); } >/dev/null; then 7103 if test -s conftest.err; then 7104 ac_cpp_err=$ac_c_preproc_warn_flag 7105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7106 else 7107 ac_cpp_err= 7108 fi 7109else 7110 ac_cpp_err=yes 7111fi 7112if test -z "$ac_cpp_err"; then 7113 ac_header_preproc=yes 7114else 7115 echo "$as_me: failed program was:" >&5 7116sed 's/^/| /' conftest.$ac_ext >&5 7117 7118 ac_header_preproc=no 7119fi 7120rm -f conftest.err conftest.$ac_ext 7121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7122echo "${ECHO_T}$ac_header_preproc" >&6 7123 7124# So? What about this header? 7125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7126 yes:no: ) 7127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7131 ac_header_preproc=yes 7132 ;; 7133 no:yes:* ) 7134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7146 ( 7147 cat <<\_ASBOX 7148## ------------------------------------ ## 7149## Report this to nsd-bugs@nlnetlabs.nl ## 7150## ------------------------------------ ## 7151_ASBOX 7152 ) | 7153 sed "s/^/$as_me: WARNING: /" >&2 7154 ;; 7155esac 7156echo "$as_me:$LINENO: checking for $ac_header" >&5 7157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7158if eval "test \"\${$as_ac_Header+set}\" = set"; then 7159 echo $ECHO_N "(cached) $ECHO_C" >&6 7160else 7161 eval "$as_ac_Header=\$ac_header_preproc" 7162fi 7163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7165 7166fi 7167if test `eval echo '${'$as_ac_Header'}'` = yes; then 7168 cat >>confdefs.h <<_ACEOF 7169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7170_ACEOF 7171 7172fi 7173 7174done 7175 7176 7177 7178for ac_func in fork vfork 7179do 7180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7181echo "$as_me:$LINENO: checking for $ac_func" >&5 7182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7183if eval "test \"\${$as_ac_var+set}\" = set"; then 7184 echo $ECHO_N "(cached) $ECHO_C" >&6 7185else 7186 cat >conftest.$ac_ext <<_ACEOF 7187/* confdefs.h. */ 7188_ACEOF 7189cat confdefs.h >>conftest.$ac_ext 7190cat >>conftest.$ac_ext <<_ACEOF 7191/* end confdefs.h. */ 7192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7193 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7194#define $ac_func innocuous_$ac_func 7195 7196/* System header to define __stub macros and hopefully few prototypes, 7197 which can conflict with char $ac_func (); below. 7198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7199 <limits.h> exists even on freestanding compilers. */ 7200 7201#ifdef __STDC__ 7202# include <limits.h> 7203#else 7204# include <assert.h> 7205#endif 7206 7207#undef $ac_func 7208 7209/* Override any gcc2 internal prototype to avoid an error. */ 7210#ifdef __cplusplus 7211extern "C" 7212{ 7213#endif 7214/* We use char because int might match the return type of a gcc2 7215 builtin and then its argument prototype would still apply. */ 7216char $ac_func (); 7217/* The GNU C library defines this for functions which it implements 7218 to always fail with ENOSYS. Some functions are actually named 7219 something starting with __ and the normal name is an alias. */ 7220#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7221choke me 7222#else 7223char (*f) () = $ac_func; 7224#endif 7225#ifdef __cplusplus 7226} 7227#endif 7228 7229int 7230main () 7231{ 7232return f != $ac_func; 7233 ; 7234 return 0; 7235} 7236_ACEOF 7237rm -f conftest.$ac_objext conftest$ac_exeext 7238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7239 (eval $ac_link) 2>conftest.er1 7240 ac_status=$? 7241 grep -v '^ *+' conftest.er1 >conftest.err 7242 rm -f conftest.er1 7243 cat conftest.err >&5 7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7245 (exit $ac_status); } && 7246 { ac_try='test -z "$ac_c_werror_flag" 7247 || test ! -s conftest.err' 7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7249 (eval $ac_try) 2>&5 7250 ac_status=$? 7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7252 (exit $ac_status); }; } && 7253 { ac_try='test -s conftest$ac_exeext' 7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7255 (eval $ac_try) 2>&5 7256 ac_status=$? 7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7258 (exit $ac_status); }; }; then 7259 eval "$as_ac_var=yes" 7260else 7261 echo "$as_me: failed program was:" >&5 7262sed 's/^/| /' conftest.$ac_ext >&5 7263 7264eval "$as_ac_var=no" 7265fi 7266rm -f conftest.err conftest.$ac_objext \ 7267 conftest$ac_exeext conftest.$ac_ext 7268fi 7269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7271if test `eval echo '${'$as_ac_var'}'` = yes; then 7272 cat >>confdefs.h <<_ACEOF 7273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7274_ACEOF 7275 7276fi 7277done 7278 7279if test "x$ac_cv_func_fork" = xyes; then 7280 echo "$as_me:$LINENO: checking for working fork" >&5 7281echo $ECHO_N "checking for working fork... $ECHO_C" >&6 7282if test "${ac_cv_func_fork_works+set}" = set; then 7283 echo $ECHO_N "(cached) $ECHO_C" >&6 7284else 7285 if test "$cross_compiling" = yes; then 7286 ac_cv_func_fork_works=cross 7287else 7288 cat >conftest.$ac_ext <<_ACEOF 7289/* By Ruediger Kuhlmann. */ 7290 #include <sys/types.h> 7291 #if HAVE_UNISTD_H 7292 # include <unistd.h> 7293 #endif 7294 /* Some systems only have a dummy stub for fork() */ 7295 int main () 7296 { 7297 if (fork() < 0) 7298 exit (1); 7299 exit (0); 7300 } 7301_ACEOF 7302rm -f conftest$ac_exeext 7303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7304 (eval $ac_link) 2>&5 7305 ac_status=$? 7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7309 (eval $ac_try) 2>&5 7310 ac_status=$? 7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7312 (exit $ac_status); }; }; then 7313 ac_cv_func_fork_works=yes 7314else 7315 echo "$as_me: program exited with status $ac_status" >&5 7316echo "$as_me: failed program was:" >&5 7317sed 's/^/| /' conftest.$ac_ext >&5 7318 7319( exit $ac_status ) 7320ac_cv_func_fork_works=no 7321fi 7322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7323fi 7324fi 7325echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 7326echo "${ECHO_T}$ac_cv_func_fork_works" >&6 7327 7328else 7329 ac_cv_func_fork_works=$ac_cv_func_fork 7330fi 7331if test "x$ac_cv_func_fork_works" = xcross; then 7332 case $host in 7333 *-*-amigaos* | *-*-msdosdjgpp*) 7334 # Override, as these systems have only a dummy fork() stub 7335 ac_cv_func_fork_works=no 7336 ;; 7337 *) 7338 ac_cv_func_fork_works=yes 7339 ;; 7340 esac 7341 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 7342echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 7343fi 7344ac_cv_func_vfork_works=$ac_cv_func_vfork 7345if test "x$ac_cv_func_vfork" = xyes; then 7346 echo "$as_me:$LINENO: checking for working vfork" >&5 7347echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 7348if test "${ac_cv_func_vfork_works+set}" = set; then 7349 echo $ECHO_N "(cached) $ECHO_C" >&6 7350else 7351 if test "$cross_compiling" = yes; then 7352 ac_cv_func_vfork_works=cross 7353else 7354 cat >conftest.$ac_ext <<_ACEOF 7355/* confdefs.h. */ 7356_ACEOF 7357cat confdefs.h >>conftest.$ac_ext 7358cat >>conftest.$ac_ext <<_ACEOF 7359/* end confdefs.h. */ 7360/* Thanks to Paul Eggert for this test. */ 7361#include <stdio.h> 7362#include <stdlib.h> 7363#include <sys/types.h> 7364#include <sys/stat.h> 7365#include <sys/wait.h> 7366#if HAVE_UNISTD_H 7367# include <unistd.h> 7368#endif 7369#if HAVE_VFORK_H 7370# include <vfork.h> 7371#endif 7372/* On some sparc systems, changes by the child to local and incoming 7373 argument registers are propagated back to the parent. The compiler 7374 is told about this with #include <vfork.h>, but some compilers 7375 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 7376 static variable whose address is put into a register that is 7377 clobbered by the vfork. */ 7378static void 7379#ifdef __cplusplus 7380sparc_address_test (int arg) 7381# else 7382sparc_address_test (arg) int arg; 7383#endif 7384{ 7385 static pid_t child; 7386 if (!child) { 7387 child = vfork (); 7388 if (child < 0) { 7389 perror ("vfork"); 7390 _exit(2); 7391 } 7392 if (!child) { 7393 arg = getpid(); 7394 write(-1, "", 0); 7395 _exit (arg); 7396 } 7397 } 7398} 7399 7400int 7401main () 7402{ 7403 pid_t parent = getpid (); 7404 pid_t child; 7405 7406 sparc_address_test (0); 7407 7408 child = vfork (); 7409 7410 if (child == 0) { 7411 /* Here is another test for sparc vfork register problems. This 7412 test uses lots of local variables, at least as many local 7413 variables as main has allocated so far including compiler 7414 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 7415 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 7416 reuse the register of parent for one of the local variables, 7417 since it will think that parent can't possibly be used any more 7418 in this routine. Assigning to the local variable will thus 7419 munge parent in the parent process. */ 7420 pid_t 7421 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 7422 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 7423 /* Convince the compiler that p..p7 are live; otherwise, it might 7424 use the same hardware register for all 8 local variables. */ 7425 if (p != p1 || p != p2 || p != p3 || p != p4 7426 || p != p5 || p != p6 || p != p7) 7427 _exit(1); 7428 7429 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 7430 from child file descriptors. If the child closes a descriptor 7431 before it execs or exits, this munges the parent's descriptor 7432 as well. Test for this by closing stdout in the child. */ 7433 _exit(close(fileno(stdout)) != 0); 7434 } else { 7435 int status; 7436 struct stat st; 7437 7438 while (wait(&status) != child) 7439 ; 7440 exit( 7441 /* Was there some problem with vforking? */ 7442 child < 0 7443 7444 /* Did the child fail? (This shouldn't happen.) */ 7445 || status 7446 7447 /* Did the vfork/compiler bug occur? */ 7448 || parent != getpid() 7449 7450 /* Did the file descriptor bug occur? */ 7451 || fstat(fileno(stdout), &st) != 0 7452 ); 7453 } 7454} 7455_ACEOF 7456rm -f conftest$ac_exeext 7457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7458 (eval $ac_link) 2>&5 7459 ac_status=$? 7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7463 (eval $ac_try) 2>&5 7464 ac_status=$? 7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7466 (exit $ac_status); }; }; then 7467 ac_cv_func_vfork_works=yes 7468else 7469 echo "$as_me: program exited with status $ac_status" >&5 7470echo "$as_me: failed program was:" >&5 7471sed 's/^/| /' conftest.$ac_ext >&5 7472 7473( exit $ac_status ) 7474ac_cv_func_vfork_works=no 7475fi 7476rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7477fi 7478fi 7479echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 7480echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 7481 7482fi; 7483if test "x$ac_cv_func_fork_works" = xcross; then 7484 ac_cv_func_vfork_works=$ac_cv_func_vfork 7485 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 7486echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 7487fi 7488 7489if test "x$ac_cv_func_vfork_works" = xyes; then 7490 7491cat >>confdefs.h <<\_ACEOF 7492#define HAVE_WORKING_VFORK 1 7493_ACEOF 7494 7495else 7496 7497cat >>confdefs.h <<\_ACEOF 7498#define vfork fork 7499_ACEOF 7500 7501fi 7502if test "x$ac_cv_func_fork_works" = xyes; then 7503 7504cat >>confdefs.h <<\_ACEOF 7505#define HAVE_WORKING_FORK 1 7506_ACEOF 7507 7508fi 7509 7510 7511for ac_header in stdlib.h 7512do 7513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7514if eval "test \"\${$as_ac_Header+set}\" = set"; then 7515 echo "$as_me:$LINENO: checking for $ac_header" >&5 7516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7517if eval "test \"\${$as_ac_Header+set}\" = set"; then 7518 echo $ECHO_N "(cached) $ECHO_C" >&6 7519fi 7520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7522else 7523 # Is the header compilable? 7524echo "$as_me:$LINENO: checking $ac_header usability" >&5 7525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7526cat >conftest.$ac_ext <<_ACEOF 7527/* confdefs.h. */ 7528_ACEOF 7529cat confdefs.h >>conftest.$ac_ext 7530cat >>conftest.$ac_ext <<_ACEOF 7531/* end confdefs.h. */ 7532$ac_includes_default 7533#include <$ac_header> 7534_ACEOF 7535rm -f conftest.$ac_objext 7536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7537 (eval $ac_compile) 2>conftest.er1 7538 ac_status=$? 7539 grep -v '^ *+' conftest.er1 >conftest.err 7540 rm -f conftest.er1 7541 cat conftest.err >&5 7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7543 (exit $ac_status); } && 7544 { ac_try='test -z "$ac_c_werror_flag" 7545 || test ! -s conftest.err' 7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7547 (eval $ac_try) 2>&5 7548 ac_status=$? 7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7550 (exit $ac_status); }; } && 7551 { ac_try='test -s conftest.$ac_objext' 7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7553 (eval $ac_try) 2>&5 7554 ac_status=$? 7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7556 (exit $ac_status); }; }; then 7557 ac_header_compiler=yes 7558else 7559 echo "$as_me: failed program was:" >&5 7560sed 's/^/| /' conftest.$ac_ext >&5 7561 7562ac_header_compiler=no 7563fi 7564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7566echo "${ECHO_T}$ac_header_compiler" >&6 7567 7568# Is the header present? 7569echo "$as_me:$LINENO: checking $ac_header presence" >&5 7570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7571cat >conftest.$ac_ext <<_ACEOF 7572/* confdefs.h. */ 7573_ACEOF 7574cat confdefs.h >>conftest.$ac_ext 7575cat >>conftest.$ac_ext <<_ACEOF 7576/* end confdefs.h. */ 7577#include <$ac_header> 7578_ACEOF 7579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7581 ac_status=$? 7582 grep -v '^ *+' conftest.er1 >conftest.err 7583 rm -f conftest.er1 7584 cat conftest.err >&5 7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7586 (exit $ac_status); } >/dev/null; then 7587 if test -s conftest.err; then 7588 ac_cpp_err=$ac_c_preproc_warn_flag 7589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7590 else 7591 ac_cpp_err= 7592 fi 7593else 7594 ac_cpp_err=yes 7595fi 7596if test -z "$ac_cpp_err"; then 7597 ac_header_preproc=yes 7598else 7599 echo "$as_me: failed program was:" >&5 7600sed 's/^/| /' conftest.$ac_ext >&5 7601 7602 ac_header_preproc=no 7603fi 7604rm -f conftest.err conftest.$ac_ext 7605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7606echo "${ECHO_T}$ac_header_preproc" >&6 7607 7608# So? What about this header? 7609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7610 yes:no: ) 7611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7615 ac_header_preproc=yes 7616 ;; 7617 no:yes:* ) 7618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7630 ( 7631 cat <<\_ASBOX 7632## ------------------------------------ ## 7633## Report this to nsd-bugs@nlnetlabs.nl ## 7634## ------------------------------------ ## 7635_ASBOX 7636 ) | 7637 sed "s/^/$as_me: WARNING: /" >&2 7638 ;; 7639esac 7640echo "$as_me:$LINENO: checking for $ac_header" >&5 7641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7642if eval "test \"\${$as_ac_Header+set}\" = set"; then 7643 echo $ECHO_N "(cached) $ECHO_C" >&6 7644else 7645 eval "$as_ac_Header=\$ac_header_preproc" 7646fi 7647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7649 7650fi 7651if test `eval echo '${'$as_ac_Header'}'` = yes; then 7652 cat >>confdefs.h <<_ACEOF 7653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7654_ACEOF 7655 7656fi 7657 7658done 7659 7660echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 7661echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 7662if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 7663 echo $ECHO_N "(cached) $ECHO_C" >&6 7664else 7665 if test "$cross_compiling" = yes; then 7666 ac_cv_func_malloc_0_nonnull=no 7667else 7668 cat >conftest.$ac_ext <<_ACEOF 7669/* confdefs.h. */ 7670_ACEOF 7671cat confdefs.h >>conftest.$ac_ext 7672cat >>conftest.$ac_ext <<_ACEOF 7673/* end confdefs.h. */ 7674#if STDC_HEADERS || HAVE_STDLIB_H 7675# include <stdlib.h> 7676#else 7677char *malloc (); 7678#endif 7679 7680int 7681main () 7682{ 7683exit (malloc (0) ? 0 : 1); 7684 ; 7685 return 0; 7686} 7687_ACEOF 7688rm -f conftest$ac_exeext 7689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7690 (eval $ac_link) 2>&5 7691 ac_status=$? 7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7695 (eval $ac_try) 2>&5 7696 ac_status=$? 7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7698 (exit $ac_status); }; }; then 7699 ac_cv_func_malloc_0_nonnull=yes 7700else 7701 echo "$as_me: program exited with status $ac_status" >&5 7702echo "$as_me: failed program was:" >&5 7703sed 's/^/| /' conftest.$ac_ext >&5 7704 7705( exit $ac_status ) 7706ac_cv_func_malloc_0_nonnull=no 7707fi 7708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7709fi 7710fi 7711echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 7712echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 7713if test $ac_cv_func_malloc_0_nonnull = yes; then 7714 7715cat >>confdefs.h <<\_ACEOF 7716#define HAVE_MALLOC 1 7717_ACEOF 7718 7719else 7720 cat >>confdefs.h <<\_ACEOF 7721#define HAVE_MALLOC 0 7722_ACEOF 7723 7724 case $LIBOBJS in 7725 "malloc.$ac_objext" | \ 7726 *" malloc.$ac_objext" | \ 7727 "malloc.$ac_objext "* | \ 7728 *" malloc.$ac_objext "* ) ;; 7729 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 7730esac 7731 7732 7733cat >>confdefs.h <<\_ACEOF 7734#define malloc rpl_malloc 7735_ACEOF 7736 7737fi 7738 7739 7740 7741echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7742echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 7743if test "${ac_cv_type_signal+set}" = set; then 7744 echo $ECHO_N "(cached) $ECHO_C" >&6 7745else 7746 cat >conftest.$ac_ext <<_ACEOF 7747/* confdefs.h. */ 7748_ACEOF 7749cat confdefs.h >>conftest.$ac_ext 7750cat >>conftest.$ac_ext <<_ACEOF 7751/* end confdefs.h. */ 7752#include <sys/types.h> 7753#include <signal.h> 7754#ifdef signal 7755# undef signal 7756#endif 7757#ifdef __cplusplus 7758extern "C" void (*signal (int, void (*)(int)))(int); 7759#else 7760void (*signal ()) (); 7761#endif 7762 7763int 7764main () 7765{ 7766int i; 7767 ; 7768 return 0; 7769} 7770_ACEOF 7771rm -f conftest.$ac_objext 7772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7773 (eval $ac_compile) 2>conftest.er1 7774 ac_status=$? 7775 grep -v '^ *+' conftest.er1 >conftest.err 7776 rm -f conftest.er1 7777 cat conftest.err >&5 7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7779 (exit $ac_status); } && 7780 { ac_try='test -z "$ac_c_werror_flag" 7781 || test ! -s conftest.err' 7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7783 (eval $ac_try) 2>&5 7784 ac_status=$? 7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7786 (exit $ac_status); }; } && 7787 { ac_try='test -s conftest.$ac_objext' 7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7789 (eval $ac_try) 2>&5 7790 ac_status=$? 7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7792 (exit $ac_status); }; }; then 7793 ac_cv_type_signal=void 7794else 7795 echo "$as_me: failed program was:" >&5 7796sed 's/^/| /' conftest.$ac_ext >&5 7797 7798ac_cv_type_signal=int 7799fi 7800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7801fi 7802echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7803echo "${ECHO_T}$ac_cv_type_signal" >&6 7804 7805cat >>confdefs.h <<_ACEOF 7806#define RETSIGTYPE $ac_cv_type_signal 7807_ACEOF 7808 7809 7810echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 7811echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 7812if test "${ac_cv_sys_largefile_source+set}" = set; then 7813 echo $ECHO_N "(cached) $ECHO_C" >&6 7814else 7815 while :; do 7816 ac_cv_sys_largefile_source=no 7817 cat >conftest.$ac_ext <<_ACEOF 7818/* confdefs.h. */ 7819_ACEOF 7820cat confdefs.h >>conftest.$ac_ext 7821cat >>conftest.$ac_ext <<_ACEOF 7822/* end confdefs.h. */ 7823#include <stdio.h> 7824int 7825main () 7826{ 7827return !fseeko; 7828 ; 7829 return 0; 7830} 7831_ACEOF 7832rm -f conftest.$ac_objext 7833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7834 (eval $ac_compile) 2>conftest.er1 7835 ac_status=$? 7836 grep -v '^ *+' conftest.er1 >conftest.err 7837 rm -f conftest.er1 7838 cat conftest.err >&5 7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7840 (exit $ac_status); } && 7841 { ac_try='test -z "$ac_c_werror_flag" 7842 || test ! -s conftest.err' 7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7844 (eval $ac_try) 2>&5 7845 ac_status=$? 7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7847 (exit $ac_status); }; } && 7848 { ac_try='test -s conftest.$ac_objext' 7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7850 (eval $ac_try) 2>&5 7851 ac_status=$? 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 (exit $ac_status); }; }; then 7854 break 7855else 7856 echo "$as_me: failed program was:" >&5 7857sed 's/^/| /' conftest.$ac_ext >&5 7858 7859fi 7860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7861 cat >conftest.$ac_ext <<_ACEOF 7862/* confdefs.h. */ 7863_ACEOF 7864cat confdefs.h >>conftest.$ac_ext 7865cat >>conftest.$ac_ext <<_ACEOF 7866/* end confdefs.h. */ 7867#define _LARGEFILE_SOURCE 1 7868#include <stdio.h> 7869int 7870main () 7871{ 7872return !fseeko; 7873 ; 7874 return 0; 7875} 7876_ACEOF 7877rm -f conftest.$ac_objext 7878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7879 (eval $ac_compile) 2>conftest.er1 7880 ac_status=$? 7881 grep -v '^ *+' conftest.er1 >conftest.err 7882 rm -f conftest.er1 7883 cat conftest.err >&5 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); } && 7886 { ac_try='test -z "$ac_c_werror_flag" 7887 || test ! -s conftest.err' 7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7889 (eval $ac_try) 2>&5 7890 ac_status=$? 7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7892 (exit $ac_status); }; } && 7893 { ac_try='test -s conftest.$ac_objext' 7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7895 (eval $ac_try) 2>&5 7896 ac_status=$? 7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7898 (exit $ac_status); }; }; then 7899 ac_cv_sys_largefile_source=1; break 7900else 7901 echo "$as_me: failed program was:" >&5 7902sed 's/^/| /' conftest.$ac_ext >&5 7903 7904fi 7905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7906 break 7907done 7908fi 7909echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 7910echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 7911if test "$ac_cv_sys_largefile_source" != no; then 7912 7913cat >>confdefs.h <<_ACEOF 7914#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 7915_ACEOF 7916 7917fi 7918rm -f conftest* 7919 7920# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 7921# in glibc 2.1.3, but that breaks too many other things. 7922# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 7923echo "$as_me:$LINENO: checking for fseeko" >&5 7924echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 7925if test "${ac_cv_func_fseeko+set}" = set; then 7926 echo $ECHO_N "(cached) $ECHO_C" >&6 7927else 7928 cat >conftest.$ac_ext <<_ACEOF 7929/* confdefs.h. */ 7930_ACEOF 7931cat confdefs.h >>conftest.$ac_ext 7932cat >>conftest.$ac_ext <<_ACEOF 7933/* end confdefs.h. */ 7934#include <stdio.h> 7935int 7936main () 7937{ 7938return fseeko && fseeko (stdin, 0, 0); 7939 ; 7940 return 0; 7941} 7942_ACEOF 7943rm -f conftest.$ac_objext conftest$ac_exeext 7944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7945 (eval $ac_link) 2>conftest.er1 7946 ac_status=$? 7947 grep -v '^ *+' conftest.er1 >conftest.err 7948 rm -f conftest.er1 7949 cat conftest.err >&5 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951 (exit $ac_status); } && 7952 { ac_try='test -z "$ac_c_werror_flag" 7953 || test ! -s conftest.err' 7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7955 (eval $ac_try) 2>&5 7956 ac_status=$? 7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 (exit $ac_status); }; } && 7959 { ac_try='test -s conftest$ac_exeext' 7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7961 (eval $ac_try) 2>&5 7962 ac_status=$? 7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7964 (exit $ac_status); }; }; then 7965 ac_cv_func_fseeko=yes 7966else 7967 echo "$as_me: failed program was:" >&5 7968sed 's/^/| /' conftest.$ac_ext >&5 7969 7970ac_cv_func_fseeko=no 7971fi 7972rm -f conftest.err conftest.$ac_objext \ 7973 conftest$ac_exeext conftest.$ac_ext 7974fi 7975echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 7976echo "${ECHO_T}$ac_cv_func_fseeko" >&6 7977if test $ac_cv_func_fseeko = yes; then 7978 7979cat >>confdefs.h <<\_ACEOF 7980#define HAVE_FSEEKO 1 7981_ACEOF 7982 7983fi 7984 7985# Check whether --enable-largefile or --disable-largefile was given. 7986if test "${enable_largefile+set}" = set; then 7987 enableval="$enable_largefile" 7988 7989fi; 7990if test "$enable_largefile" != no; then 7991 7992 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 7993echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 7994if test "${ac_cv_sys_largefile_CC+set}" = set; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996else 7997 ac_cv_sys_largefile_CC=no 7998 if test "$GCC" != yes; then 7999 ac_save_CC=$CC 8000 while :; do 8001 # IRIX 6.2 and later do not support large files by default, 8002 # so use the C compiler's -n32 option if that helps. 8003 cat >conftest.$ac_ext <<_ACEOF 8004/* confdefs.h. */ 8005_ACEOF 8006cat confdefs.h >>conftest.$ac_ext 8007cat >>conftest.$ac_ext <<_ACEOF 8008/* end confdefs.h. */ 8009#include <sys/types.h> 8010 /* Check that off_t can represent 2**63 - 1 correctly. 8011 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8012 since some C++ compilers masquerading as C compilers 8013 incorrectly reject 9223372036854775807. */ 8014#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8016 && LARGE_OFF_T % 2147483647 == 1) 8017 ? 1 : -1]; 8018int 8019main () 8020{ 8021 8022 ; 8023 return 0; 8024} 8025_ACEOF 8026 rm -f conftest.$ac_objext 8027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8028 (eval $ac_compile) 2>conftest.er1 8029 ac_status=$? 8030 grep -v '^ *+' conftest.er1 >conftest.err 8031 rm -f conftest.er1 8032 cat conftest.err >&5 8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8034 (exit $ac_status); } && 8035 { ac_try='test -z "$ac_c_werror_flag" 8036 || test ! -s conftest.err' 8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8038 (eval $ac_try) 2>&5 8039 ac_status=$? 8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8041 (exit $ac_status); }; } && 8042 { ac_try='test -s conftest.$ac_objext' 8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8044 (eval $ac_try) 2>&5 8045 ac_status=$? 8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8047 (exit $ac_status); }; }; then 8048 break 8049else 8050 echo "$as_me: failed program was:" >&5 8051sed 's/^/| /' conftest.$ac_ext >&5 8052 8053fi 8054rm -f conftest.err conftest.$ac_objext 8055 CC="$CC -n32" 8056 rm -f conftest.$ac_objext 8057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8058 (eval $ac_compile) 2>conftest.er1 8059 ac_status=$? 8060 grep -v '^ *+' conftest.er1 >conftest.err 8061 rm -f conftest.er1 8062 cat conftest.err >&5 8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8064 (exit $ac_status); } && 8065 { ac_try='test -z "$ac_c_werror_flag" 8066 || test ! -s conftest.err' 8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8068 (eval $ac_try) 2>&5 8069 ac_status=$? 8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8071 (exit $ac_status); }; } && 8072 { ac_try='test -s conftest.$ac_objext' 8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8074 (eval $ac_try) 2>&5 8075 ac_status=$? 8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8077 (exit $ac_status); }; }; then 8078 ac_cv_sys_largefile_CC=' -n32'; break 8079else 8080 echo "$as_me: failed program was:" >&5 8081sed 's/^/| /' conftest.$ac_ext >&5 8082 8083fi 8084rm -f conftest.err conftest.$ac_objext 8085 break 8086 done 8087 CC=$ac_save_CC 8088 rm -f conftest.$ac_ext 8089 fi 8090fi 8091echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 8092echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 8093 if test "$ac_cv_sys_largefile_CC" != no; then 8094 CC=$CC$ac_cv_sys_largefile_CC 8095 fi 8096 8097 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 8098echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 8099if test "${ac_cv_sys_file_offset_bits+set}" = set; then 8100 echo $ECHO_N "(cached) $ECHO_C" >&6 8101else 8102 while :; do 8103 ac_cv_sys_file_offset_bits=no 8104 cat >conftest.$ac_ext <<_ACEOF 8105/* confdefs.h. */ 8106_ACEOF 8107cat confdefs.h >>conftest.$ac_ext 8108cat >>conftest.$ac_ext <<_ACEOF 8109/* end confdefs.h. */ 8110#include <sys/types.h> 8111 /* Check that off_t can represent 2**63 - 1 correctly. 8112 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8113 since some C++ compilers masquerading as C compilers 8114 incorrectly reject 9223372036854775807. */ 8115#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8117 && LARGE_OFF_T % 2147483647 == 1) 8118 ? 1 : -1]; 8119int 8120main () 8121{ 8122 8123 ; 8124 return 0; 8125} 8126_ACEOF 8127rm -f conftest.$ac_objext 8128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8129 (eval $ac_compile) 2>conftest.er1 8130 ac_status=$? 8131 grep -v '^ *+' conftest.er1 >conftest.err 8132 rm -f conftest.er1 8133 cat conftest.err >&5 8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8135 (exit $ac_status); } && 8136 { ac_try='test -z "$ac_c_werror_flag" 8137 || test ! -s conftest.err' 8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8139 (eval $ac_try) 2>&5 8140 ac_status=$? 8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8142 (exit $ac_status); }; } && 8143 { ac_try='test -s conftest.$ac_objext' 8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8145 (eval $ac_try) 2>&5 8146 ac_status=$? 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8148 (exit $ac_status); }; }; then 8149 break 8150else 8151 echo "$as_me: failed program was:" >&5 8152sed 's/^/| /' conftest.$ac_ext >&5 8153 8154fi 8155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8156 cat >conftest.$ac_ext <<_ACEOF 8157/* confdefs.h. */ 8158_ACEOF 8159cat confdefs.h >>conftest.$ac_ext 8160cat >>conftest.$ac_ext <<_ACEOF 8161/* end confdefs.h. */ 8162#define _FILE_OFFSET_BITS 64 8163#include <sys/types.h> 8164 /* Check that off_t can represent 2**63 - 1 correctly. 8165 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8166 since some C++ compilers masquerading as C compilers 8167 incorrectly reject 9223372036854775807. */ 8168#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8170 && LARGE_OFF_T % 2147483647 == 1) 8171 ? 1 : -1]; 8172int 8173main () 8174{ 8175 8176 ; 8177 return 0; 8178} 8179_ACEOF 8180rm -f conftest.$ac_objext 8181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8182 (eval $ac_compile) 2>conftest.er1 8183 ac_status=$? 8184 grep -v '^ *+' conftest.er1 >conftest.err 8185 rm -f conftest.er1 8186 cat conftest.err >&5 8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8188 (exit $ac_status); } && 8189 { ac_try='test -z "$ac_c_werror_flag" 8190 || test ! -s conftest.err' 8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8192 (eval $ac_try) 2>&5 8193 ac_status=$? 8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8195 (exit $ac_status); }; } && 8196 { ac_try='test -s conftest.$ac_objext' 8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8198 (eval $ac_try) 2>&5 8199 ac_status=$? 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8201 (exit $ac_status); }; }; then 8202 ac_cv_sys_file_offset_bits=64; break 8203else 8204 echo "$as_me: failed program was:" >&5 8205sed 's/^/| /' conftest.$ac_ext >&5 8206 8207fi 8208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8209 break 8210done 8211fi 8212echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 8213echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 8214if test "$ac_cv_sys_file_offset_bits" != no; then 8215 8216cat >>confdefs.h <<_ACEOF 8217#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 8218_ACEOF 8219 8220fi 8221rm -f conftest* 8222 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 8223echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 8224if test "${ac_cv_sys_large_files+set}" = set; then 8225 echo $ECHO_N "(cached) $ECHO_C" >&6 8226else 8227 while :; do 8228 ac_cv_sys_large_files=no 8229 cat >conftest.$ac_ext <<_ACEOF 8230/* confdefs.h. */ 8231_ACEOF 8232cat confdefs.h >>conftest.$ac_ext 8233cat >>conftest.$ac_ext <<_ACEOF 8234/* end confdefs.h. */ 8235#include <sys/types.h> 8236 /* Check that off_t can represent 2**63 - 1 correctly. 8237 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8238 since some C++ compilers masquerading as C compilers 8239 incorrectly reject 9223372036854775807. */ 8240#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8242 && LARGE_OFF_T % 2147483647 == 1) 8243 ? 1 : -1]; 8244int 8245main () 8246{ 8247 8248 ; 8249 return 0; 8250} 8251_ACEOF 8252rm -f conftest.$ac_objext 8253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8254 (eval $ac_compile) 2>conftest.er1 8255 ac_status=$? 8256 grep -v '^ *+' conftest.er1 >conftest.err 8257 rm -f conftest.er1 8258 cat conftest.err >&5 8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8260 (exit $ac_status); } && 8261 { ac_try='test -z "$ac_c_werror_flag" 8262 || test ! -s conftest.err' 8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8264 (eval $ac_try) 2>&5 8265 ac_status=$? 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8267 (exit $ac_status); }; } && 8268 { ac_try='test -s conftest.$ac_objext' 8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8270 (eval $ac_try) 2>&5 8271 ac_status=$? 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 (exit $ac_status); }; }; then 8274 break 8275else 8276 echo "$as_me: failed program was:" >&5 8277sed 's/^/| /' conftest.$ac_ext >&5 8278 8279fi 8280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8281 cat >conftest.$ac_ext <<_ACEOF 8282/* confdefs.h. */ 8283_ACEOF 8284cat confdefs.h >>conftest.$ac_ext 8285cat >>conftest.$ac_ext <<_ACEOF 8286/* end confdefs.h. */ 8287#define _LARGE_FILES 1 8288#include <sys/types.h> 8289 /* Check that off_t can represent 2**63 - 1 correctly. 8290 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8291 since some C++ compilers masquerading as C compilers 8292 incorrectly reject 9223372036854775807. */ 8293#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8295 && LARGE_OFF_T % 2147483647 == 1) 8296 ? 1 : -1]; 8297int 8298main () 8299{ 8300 8301 ; 8302 return 0; 8303} 8304_ACEOF 8305rm -f conftest.$ac_objext 8306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8307 (eval $ac_compile) 2>conftest.er1 8308 ac_status=$? 8309 grep -v '^ *+' conftest.er1 >conftest.err 8310 rm -f conftest.er1 8311 cat conftest.err >&5 8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8313 (exit $ac_status); } && 8314 { ac_try='test -z "$ac_c_werror_flag" 8315 || test ! -s conftest.err' 8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8317 (eval $ac_try) 2>&5 8318 ac_status=$? 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); }; } && 8321 { ac_try='test -s conftest.$ac_objext' 8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8323 (eval $ac_try) 2>&5 8324 ac_status=$? 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 (exit $ac_status); }; }; then 8327 ac_cv_sys_large_files=1; break 8328else 8329 echo "$as_me: failed program was:" >&5 8330sed 's/^/| /' conftest.$ac_ext >&5 8331 8332fi 8333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8334 break 8335done 8336fi 8337echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 8338echo "${ECHO_T}$ac_cv_sys_large_files" >&6 8339if test "$ac_cv_sys_large_files" != no; then 8340 8341cat >>confdefs.h <<_ACEOF 8342#define _LARGE_FILES $ac_cv_sys_large_files 8343_ACEOF 8344 8345fi 8346rm -f conftest* 8347fi 8348 8349 8350 8351for ac_func in arc4random arc4random_uniform 8352do 8353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8354echo "$as_me:$LINENO: checking for $ac_func" >&5 8355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8356if eval "test \"\${$as_ac_var+set}\" = set"; then 8357 echo $ECHO_N "(cached) $ECHO_C" >&6 8358else 8359 cat >conftest.$ac_ext <<_ACEOF 8360/* confdefs.h. */ 8361_ACEOF 8362cat confdefs.h >>conftest.$ac_ext 8363cat >>conftest.$ac_ext <<_ACEOF 8364/* end confdefs.h. */ 8365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8366 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8367#define $ac_func innocuous_$ac_func 8368 8369/* System header to define __stub macros and hopefully few prototypes, 8370 which can conflict with char $ac_func (); below. 8371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8372 <limits.h> exists even on freestanding compilers. */ 8373 8374#ifdef __STDC__ 8375# include <limits.h> 8376#else 8377# include <assert.h> 8378#endif 8379 8380#undef $ac_func 8381 8382/* Override any gcc2 internal prototype to avoid an error. */ 8383#ifdef __cplusplus 8384extern "C" 8385{ 8386#endif 8387/* We use char because int might match the return type of a gcc2 8388 builtin and then its argument prototype would still apply. */ 8389char $ac_func (); 8390/* The GNU C library defines this for functions which it implements 8391 to always fail with ENOSYS. Some functions are actually named 8392 something starting with __ and the normal name is an alias. */ 8393#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8394choke me 8395#else 8396char (*f) () = $ac_func; 8397#endif 8398#ifdef __cplusplus 8399} 8400#endif 8401 8402int 8403main () 8404{ 8405return f != $ac_func; 8406 ; 8407 return 0; 8408} 8409_ACEOF 8410rm -f conftest.$ac_objext conftest$ac_exeext 8411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8412 (eval $ac_link) 2>conftest.er1 8413 ac_status=$? 8414 grep -v '^ *+' conftest.er1 >conftest.err 8415 rm -f conftest.er1 8416 cat conftest.err >&5 8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8418 (exit $ac_status); } && 8419 { ac_try='test -z "$ac_c_werror_flag" 8420 || test ! -s conftest.err' 8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8422 (eval $ac_try) 2>&5 8423 ac_status=$? 8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8425 (exit $ac_status); }; } && 8426 { ac_try='test -s conftest$ac_exeext' 8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8428 (eval $ac_try) 2>&5 8429 ac_status=$? 8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8431 (exit $ac_status); }; }; then 8432 eval "$as_ac_var=yes" 8433else 8434 echo "$as_me: failed program was:" >&5 8435sed 's/^/| /' conftest.$ac_ext >&5 8436 8437eval "$as_ac_var=no" 8438fi 8439rm -f conftest.err conftest.$ac_objext \ 8440 conftest$ac_exeext conftest.$ac_ext 8441fi 8442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8443echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8444if test `eval echo '${'$as_ac_var'}'` = yes; then 8445 cat >>confdefs.h <<_ACEOF 8446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8447_ACEOF 8448 8449fi 8450done 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480for ac_func in alarm chroot dup2 endpwent gethostname memset memcpy socket strcasecmp strchr strdup strerror strncasecmp strtol getaddrinfo getnameinfo freeaddrinfo gai_strerror sigaction sigprocmask strptime setusercontext initgroups setresuid setreuid setresgid setregid getpwnam 8481do 8482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8483echo "$as_me:$LINENO: checking for $ac_func" >&5 8484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8485if eval "test \"\${$as_ac_var+set}\" = set"; then 8486 echo $ECHO_N "(cached) $ECHO_C" >&6 8487else 8488 cat >conftest.$ac_ext <<_ACEOF 8489/* confdefs.h. */ 8490_ACEOF 8491cat confdefs.h >>conftest.$ac_ext 8492cat >>conftest.$ac_ext <<_ACEOF 8493/* end confdefs.h. */ 8494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8495 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8496#define $ac_func innocuous_$ac_func 8497 8498/* System header to define __stub macros and hopefully few prototypes, 8499 which can conflict with char $ac_func (); below. 8500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8501 <limits.h> exists even on freestanding compilers. */ 8502 8503#ifdef __STDC__ 8504# include <limits.h> 8505#else 8506# include <assert.h> 8507#endif 8508 8509#undef $ac_func 8510 8511/* Override any gcc2 internal prototype to avoid an error. */ 8512#ifdef __cplusplus 8513extern "C" 8514{ 8515#endif 8516/* We use char because int might match the return type of a gcc2 8517 builtin and then its argument prototype would still apply. */ 8518char $ac_func (); 8519/* The GNU C library defines this for functions which it implements 8520 to always fail with ENOSYS. Some functions are actually named 8521 something starting with __ and the normal name is an alias. */ 8522#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8523choke me 8524#else 8525char (*f) () = $ac_func; 8526#endif 8527#ifdef __cplusplus 8528} 8529#endif 8530 8531int 8532main () 8533{ 8534return f != $ac_func; 8535 ; 8536 return 0; 8537} 8538_ACEOF 8539rm -f conftest.$ac_objext conftest$ac_exeext 8540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8541 (eval $ac_link) 2>conftest.er1 8542 ac_status=$? 8543 grep -v '^ *+' conftest.er1 >conftest.err 8544 rm -f conftest.er1 8545 cat conftest.err >&5 8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8547 (exit $ac_status); } && 8548 { ac_try='test -z "$ac_c_werror_flag" 8549 || test ! -s conftest.err' 8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8551 (eval $ac_try) 2>&5 8552 ac_status=$? 8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8554 (exit $ac_status); }; } && 8555 { ac_try='test -s conftest$ac_exeext' 8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8557 (eval $ac_try) 2>&5 8558 ac_status=$? 8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8560 (exit $ac_status); }; }; then 8561 eval "$as_ac_var=yes" 8562else 8563 echo "$as_me: failed program was:" >&5 8564sed 's/^/| /' conftest.$ac_ext >&5 8565 8566eval "$as_ac_var=no" 8567fi 8568rm -f conftest.err conftest.$ac_objext \ 8569 conftest$ac_exeext conftest.$ac_ext 8570fi 8571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8573if test `eval echo '${'$as_ac_var'}'` = yes; then 8574 cat >>confdefs.h <<_ACEOF 8575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8576_ACEOF 8577 8578fi 8579done 8580 8581 8582# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 8583if echo $build_os | grep darwin8 > /dev/null; then 8584 8585cat >>confdefs.h <<\_ACEOF 8586#define DARWIN_BROKEN_SETREUID 1 8587_ACEOF 8588 8589fi 8590 8591# 8592# Checking for missing functions we can replace 8593# 8594 8595for ac_func in basename 8596do 8597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8598echo "$as_me:$LINENO: checking for $ac_func" >&5 8599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8600if eval "test \"\${$as_ac_var+set}\" = set"; then 8601 echo $ECHO_N "(cached) $ECHO_C" >&6 8602else 8603 cat >conftest.$ac_ext <<_ACEOF 8604/* confdefs.h. */ 8605_ACEOF 8606cat confdefs.h >>conftest.$ac_ext 8607cat >>conftest.$ac_ext <<_ACEOF 8608/* end confdefs.h. */ 8609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8610 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8611#define $ac_func innocuous_$ac_func 8612 8613/* System header to define __stub macros and hopefully few prototypes, 8614 which can conflict with char $ac_func (); below. 8615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8616 <limits.h> exists even on freestanding compilers. */ 8617 8618#ifdef __STDC__ 8619# include <limits.h> 8620#else 8621# include <assert.h> 8622#endif 8623 8624#undef $ac_func 8625 8626/* Override any gcc2 internal prototype to avoid an error. */ 8627#ifdef __cplusplus 8628extern "C" 8629{ 8630#endif 8631/* We use char because int might match the return type of a gcc2 8632 builtin and then its argument prototype would still apply. */ 8633char $ac_func (); 8634/* The GNU C library defines this for functions which it implements 8635 to always fail with ENOSYS. Some functions are actually named 8636 something starting with __ and the normal name is an alias. */ 8637#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8638choke me 8639#else 8640char (*f) () = $ac_func; 8641#endif 8642#ifdef __cplusplus 8643} 8644#endif 8645 8646int 8647main () 8648{ 8649return f != $ac_func; 8650 ; 8651 return 0; 8652} 8653_ACEOF 8654rm -f conftest.$ac_objext conftest$ac_exeext 8655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8656 (eval $ac_link) 2>conftest.er1 8657 ac_status=$? 8658 grep -v '^ *+' conftest.er1 >conftest.err 8659 rm -f conftest.er1 8660 cat conftest.err >&5 8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8662 (exit $ac_status); } && 8663 { ac_try='test -z "$ac_c_werror_flag" 8664 || test ! -s conftest.err' 8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8666 (eval $ac_try) 2>&5 8667 ac_status=$? 8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8669 (exit $ac_status); }; } && 8670 { ac_try='test -s conftest$ac_exeext' 8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8672 (eval $ac_try) 2>&5 8673 ac_status=$? 8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8675 (exit $ac_status); }; }; then 8676 eval "$as_ac_var=yes" 8677else 8678 echo "$as_me: failed program was:" >&5 8679sed 's/^/| /' conftest.$ac_ext >&5 8680 8681eval "$as_ac_var=no" 8682fi 8683rm -f conftest.err conftest.$ac_objext \ 8684 conftest$ac_exeext conftest.$ac_ext 8685fi 8686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8687echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8688if test `eval echo '${'$as_ac_var'}'` = yes; then 8689 cat >>confdefs.h <<_ACEOF 8690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8691_ACEOF 8692 8693else 8694 case $LIBOBJS in 8695 "$ac_func.$ac_objext" | \ 8696 *" $ac_func.$ac_objext" | \ 8697 "$ac_func.$ac_objext "* | \ 8698 *" $ac_func.$ac_objext "* ) ;; 8699 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 8700esac 8701 8702fi 8703done 8704 8705 8706 8707for ac_func in inet_aton 8708do 8709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8710echo "$as_me:$LINENO: checking for $ac_func" >&5 8711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8712if eval "test \"\${$as_ac_var+set}\" = set"; then 8713 echo $ECHO_N "(cached) $ECHO_C" >&6 8714else 8715 cat >conftest.$ac_ext <<_ACEOF 8716/* confdefs.h. */ 8717_ACEOF 8718cat confdefs.h >>conftest.$ac_ext 8719cat >>conftest.$ac_ext <<_ACEOF 8720/* end confdefs.h. */ 8721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8722 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8723#define $ac_func innocuous_$ac_func 8724 8725/* System header to define __stub macros and hopefully few prototypes, 8726 which can conflict with char $ac_func (); below. 8727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8728 <limits.h> exists even on freestanding compilers. */ 8729 8730#ifdef __STDC__ 8731# include <limits.h> 8732#else 8733# include <assert.h> 8734#endif 8735 8736#undef $ac_func 8737 8738/* Override any gcc2 internal prototype to avoid an error. */ 8739#ifdef __cplusplus 8740extern "C" 8741{ 8742#endif 8743/* We use char because int might match the return type of a gcc2 8744 builtin and then its argument prototype would still apply. */ 8745char $ac_func (); 8746/* The GNU C library defines this for functions which it implements 8747 to always fail with ENOSYS. Some functions are actually named 8748 something starting with __ and the normal name is an alias. */ 8749#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8750choke me 8751#else 8752char (*f) () = $ac_func; 8753#endif 8754#ifdef __cplusplus 8755} 8756#endif 8757 8758int 8759main () 8760{ 8761return f != $ac_func; 8762 ; 8763 return 0; 8764} 8765_ACEOF 8766rm -f conftest.$ac_objext conftest$ac_exeext 8767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8768 (eval $ac_link) 2>conftest.er1 8769 ac_status=$? 8770 grep -v '^ *+' conftest.er1 >conftest.err 8771 rm -f conftest.er1 8772 cat conftest.err >&5 8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8774 (exit $ac_status); } && 8775 { ac_try='test -z "$ac_c_werror_flag" 8776 || test ! -s conftest.err' 8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8778 (eval $ac_try) 2>&5 8779 ac_status=$? 8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8781 (exit $ac_status); }; } && 8782 { ac_try='test -s conftest$ac_exeext' 8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8784 (eval $ac_try) 2>&5 8785 ac_status=$? 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8787 (exit $ac_status); }; }; then 8788 eval "$as_ac_var=yes" 8789else 8790 echo "$as_me: failed program was:" >&5 8791sed 's/^/| /' conftest.$ac_ext >&5 8792 8793eval "$as_ac_var=no" 8794fi 8795rm -f conftest.err conftest.$ac_objext \ 8796 conftest$ac_exeext conftest.$ac_ext 8797fi 8798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8799echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8800if test `eval echo '${'$as_ac_var'}'` = yes; then 8801 cat >>confdefs.h <<_ACEOF 8802#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8803_ACEOF 8804 8805else 8806 case $LIBOBJS in 8807 "$ac_func.$ac_objext" | \ 8808 *" $ac_func.$ac_objext" | \ 8809 "$ac_func.$ac_objext "* | \ 8810 *" $ac_func.$ac_objext "* ) ;; 8811 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 8812esac 8813 8814fi 8815done 8816 8817 8818 8819for ac_func in inet_pton 8820do 8821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8822echo "$as_me:$LINENO: checking for $ac_func" >&5 8823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8824if eval "test \"\${$as_ac_var+set}\" = set"; then 8825 echo $ECHO_N "(cached) $ECHO_C" >&6 8826else 8827 cat >conftest.$ac_ext <<_ACEOF 8828/* confdefs.h. */ 8829_ACEOF 8830cat confdefs.h >>conftest.$ac_ext 8831cat >>conftest.$ac_ext <<_ACEOF 8832/* end confdefs.h. */ 8833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8834 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8835#define $ac_func innocuous_$ac_func 8836 8837/* System header to define __stub macros and hopefully few prototypes, 8838 which can conflict with char $ac_func (); below. 8839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8840 <limits.h> exists even on freestanding compilers. */ 8841 8842#ifdef __STDC__ 8843# include <limits.h> 8844#else 8845# include <assert.h> 8846#endif 8847 8848#undef $ac_func 8849 8850/* Override any gcc2 internal prototype to avoid an error. */ 8851#ifdef __cplusplus 8852extern "C" 8853{ 8854#endif 8855/* We use char because int might match the return type of a gcc2 8856 builtin and then its argument prototype would still apply. */ 8857char $ac_func (); 8858/* The GNU C library defines this for functions which it implements 8859 to always fail with ENOSYS. Some functions are actually named 8860 something starting with __ and the normal name is an alias. */ 8861#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8862choke me 8863#else 8864char (*f) () = $ac_func; 8865#endif 8866#ifdef __cplusplus 8867} 8868#endif 8869 8870int 8871main () 8872{ 8873return f != $ac_func; 8874 ; 8875 return 0; 8876} 8877_ACEOF 8878rm -f conftest.$ac_objext conftest$ac_exeext 8879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8880 (eval $ac_link) 2>conftest.er1 8881 ac_status=$? 8882 grep -v '^ *+' conftest.er1 >conftest.err 8883 rm -f conftest.er1 8884 cat conftest.err >&5 8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8886 (exit $ac_status); } && 8887 { ac_try='test -z "$ac_c_werror_flag" 8888 || test ! -s conftest.err' 8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8890 (eval $ac_try) 2>&5 8891 ac_status=$? 8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8893 (exit $ac_status); }; } && 8894 { ac_try='test -s conftest$ac_exeext' 8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8896 (eval $ac_try) 2>&5 8897 ac_status=$? 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 (exit $ac_status); }; }; then 8900 eval "$as_ac_var=yes" 8901else 8902 echo "$as_me: failed program was:" >&5 8903sed 's/^/| /' conftest.$ac_ext >&5 8904 8905eval "$as_ac_var=no" 8906fi 8907rm -f conftest.err conftest.$ac_objext \ 8908 conftest$ac_exeext conftest.$ac_ext 8909fi 8910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8912if test `eval echo '${'$as_ac_var'}'` = yes; then 8913 cat >>confdefs.h <<_ACEOF 8914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8915_ACEOF 8916 8917else 8918 case $LIBOBJS in 8919 "$ac_func.$ac_objext" | \ 8920 *" $ac_func.$ac_objext" | \ 8921 "$ac_func.$ac_objext "* | \ 8922 *" $ac_func.$ac_objext "* ) ;; 8923 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 8924esac 8925 8926fi 8927done 8928 8929 8930 8931for ac_func in inet_ntop 8932do 8933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8934echo "$as_me:$LINENO: checking for $ac_func" >&5 8935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8936if eval "test \"\${$as_ac_var+set}\" = set"; then 8937 echo $ECHO_N "(cached) $ECHO_C" >&6 8938else 8939 cat >conftest.$ac_ext <<_ACEOF 8940/* confdefs.h. */ 8941_ACEOF 8942cat confdefs.h >>conftest.$ac_ext 8943cat >>conftest.$ac_ext <<_ACEOF 8944/* end confdefs.h. */ 8945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8946 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8947#define $ac_func innocuous_$ac_func 8948 8949/* System header to define __stub macros and hopefully few prototypes, 8950 which can conflict with char $ac_func (); below. 8951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8952 <limits.h> exists even on freestanding compilers. */ 8953 8954#ifdef __STDC__ 8955# include <limits.h> 8956#else 8957# include <assert.h> 8958#endif 8959 8960#undef $ac_func 8961 8962/* Override any gcc2 internal prototype to avoid an error. */ 8963#ifdef __cplusplus 8964extern "C" 8965{ 8966#endif 8967/* We use char because int might match the return type of a gcc2 8968 builtin and then its argument prototype would still apply. */ 8969char $ac_func (); 8970/* The GNU C library defines this for functions which it implements 8971 to always fail with ENOSYS. Some functions are actually named 8972 something starting with __ and the normal name is an alias. */ 8973#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8974choke me 8975#else 8976char (*f) () = $ac_func; 8977#endif 8978#ifdef __cplusplus 8979} 8980#endif 8981 8982int 8983main () 8984{ 8985return f != $ac_func; 8986 ; 8987 return 0; 8988} 8989_ACEOF 8990rm -f conftest.$ac_objext conftest$ac_exeext 8991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8992 (eval $ac_link) 2>conftest.er1 8993 ac_status=$? 8994 grep -v '^ *+' conftest.er1 >conftest.err 8995 rm -f conftest.er1 8996 cat conftest.err >&5 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 (exit $ac_status); } && 8999 { ac_try='test -z "$ac_c_werror_flag" 9000 || test ! -s conftest.err' 9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9002 (eval $ac_try) 2>&5 9003 ac_status=$? 9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 (exit $ac_status); }; } && 9006 { ac_try='test -s conftest$ac_exeext' 9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9008 (eval $ac_try) 2>&5 9009 ac_status=$? 9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9011 (exit $ac_status); }; }; then 9012 eval "$as_ac_var=yes" 9013else 9014 echo "$as_me: failed program was:" >&5 9015sed 's/^/| /' conftest.$ac_ext >&5 9016 9017eval "$as_ac_var=no" 9018fi 9019rm -f conftest.err conftest.$ac_objext \ 9020 conftest$ac_exeext conftest.$ac_ext 9021fi 9022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9024if test `eval echo '${'$as_ac_var'}'` = yes; then 9025 cat >>confdefs.h <<_ACEOF 9026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9027_ACEOF 9028 9029else 9030 case $LIBOBJS in 9031 "$ac_func.$ac_objext" | \ 9032 *" $ac_func.$ac_objext" | \ 9033 "$ac_func.$ac_objext "* | \ 9034 *" $ac_func.$ac_objext "* ) ;; 9035 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9036esac 9037 9038fi 9039done 9040 9041 9042 9043for ac_func in snprintf 9044do 9045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9046echo "$as_me:$LINENO: checking for $ac_func" >&5 9047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9048if eval "test \"\${$as_ac_var+set}\" = set"; then 9049 echo $ECHO_N "(cached) $ECHO_C" >&6 9050else 9051 cat >conftest.$ac_ext <<_ACEOF 9052/* confdefs.h. */ 9053_ACEOF 9054cat confdefs.h >>conftest.$ac_ext 9055cat >>conftest.$ac_ext <<_ACEOF 9056/* end confdefs.h. */ 9057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9058 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9059#define $ac_func innocuous_$ac_func 9060 9061/* System header to define __stub macros and hopefully few prototypes, 9062 which can conflict with char $ac_func (); below. 9063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9064 <limits.h> exists even on freestanding compilers. */ 9065 9066#ifdef __STDC__ 9067# include <limits.h> 9068#else 9069# include <assert.h> 9070#endif 9071 9072#undef $ac_func 9073 9074/* Override any gcc2 internal prototype to avoid an error. */ 9075#ifdef __cplusplus 9076extern "C" 9077{ 9078#endif 9079/* We use char because int might match the return type of a gcc2 9080 builtin and then its argument prototype would still apply. */ 9081char $ac_func (); 9082/* The GNU C library defines this for functions which it implements 9083 to always fail with ENOSYS. Some functions are actually named 9084 something starting with __ and the normal name is an alias. */ 9085#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9086choke me 9087#else 9088char (*f) () = $ac_func; 9089#endif 9090#ifdef __cplusplus 9091} 9092#endif 9093 9094int 9095main () 9096{ 9097return f != $ac_func; 9098 ; 9099 return 0; 9100} 9101_ACEOF 9102rm -f conftest.$ac_objext conftest$ac_exeext 9103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9104 (eval $ac_link) 2>conftest.er1 9105 ac_status=$? 9106 grep -v '^ *+' conftest.er1 >conftest.err 9107 rm -f conftest.er1 9108 cat conftest.err >&5 9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9110 (exit $ac_status); } && 9111 { ac_try='test -z "$ac_c_werror_flag" 9112 || test ! -s conftest.err' 9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9114 (eval $ac_try) 2>&5 9115 ac_status=$? 9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9117 (exit $ac_status); }; } && 9118 { ac_try='test -s conftest$ac_exeext' 9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9120 (eval $ac_try) 2>&5 9121 ac_status=$? 9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9123 (exit $ac_status); }; }; then 9124 eval "$as_ac_var=yes" 9125else 9126 echo "$as_me: failed program was:" >&5 9127sed 's/^/| /' conftest.$ac_ext >&5 9128 9129eval "$as_ac_var=no" 9130fi 9131rm -f conftest.err conftest.$ac_objext \ 9132 conftest$ac_exeext conftest.$ac_ext 9133fi 9134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9136if test `eval echo '${'$as_ac_var'}'` = yes; then 9137 cat >>confdefs.h <<_ACEOF 9138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9139_ACEOF 9140 9141else 9142 case $LIBOBJS in 9143 "$ac_func.$ac_objext" | \ 9144 *" $ac_func.$ac_objext" | \ 9145 "$ac_func.$ac_objext "* | \ 9146 *" $ac_func.$ac_objext "* ) ;; 9147 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9148esac 9149 9150fi 9151done 9152 9153 9154 9155for ac_func in strlcat 9156do 9157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9158echo "$as_me:$LINENO: checking for $ac_func" >&5 9159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9160if eval "test \"\${$as_ac_var+set}\" = set"; then 9161 echo $ECHO_N "(cached) $ECHO_C" >&6 9162else 9163 cat >conftest.$ac_ext <<_ACEOF 9164/* confdefs.h. */ 9165_ACEOF 9166cat confdefs.h >>conftest.$ac_ext 9167cat >>conftest.$ac_ext <<_ACEOF 9168/* end confdefs.h. */ 9169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9170 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9171#define $ac_func innocuous_$ac_func 9172 9173/* System header to define __stub macros and hopefully few prototypes, 9174 which can conflict with char $ac_func (); below. 9175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9176 <limits.h> exists even on freestanding compilers. */ 9177 9178#ifdef __STDC__ 9179# include <limits.h> 9180#else 9181# include <assert.h> 9182#endif 9183 9184#undef $ac_func 9185 9186/* Override any gcc2 internal prototype to avoid an error. */ 9187#ifdef __cplusplus 9188extern "C" 9189{ 9190#endif 9191/* We use char because int might match the return type of a gcc2 9192 builtin and then its argument prototype would still apply. */ 9193char $ac_func (); 9194/* The GNU C library defines this for functions which it implements 9195 to always fail with ENOSYS. Some functions are actually named 9196 something starting with __ and the normal name is an alias. */ 9197#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9198choke me 9199#else 9200char (*f) () = $ac_func; 9201#endif 9202#ifdef __cplusplus 9203} 9204#endif 9205 9206int 9207main () 9208{ 9209return f != $ac_func; 9210 ; 9211 return 0; 9212} 9213_ACEOF 9214rm -f conftest.$ac_objext conftest$ac_exeext 9215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9216 (eval $ac_link) 2>conftest.er1 9217 ac_status=$? 9218 grep -v '^ *+' conftest.er1 >conftest.err 9219 rm -f conftest.er1 9220 cat conftest.err >&5 9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9222 (exit $ac_status); } && 9223 { ac_try='test -z "$ac_c_werror_flag" 9224 || test ! -s conftest.err' 9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9226 (eval $ac_try) 2>&5 9227 ac_status=$? 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9229 (exit $ac_status); }; } && 9230 { ac_try='test -s conftest$ac_exeext' 9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9232 (eval $ac_try) 2>&5 9233 ac_status=$? 9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9235 (exit $ac_status); }; }; then 9236 eval "$as_ac_var=yes" 9237else 9238 echo "$as_me: failed program was:" >&5 9239sed 's/^/| /' conftest.$ac_ext >&5 9240 9241eval "$as_ac_var=no" 9242fi 9243rm -f conftest.err conftest.$ac_objext \ 9244 conftest$ac_exeext conftest.$ac_ext 9245fi 9246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9248if test `eval echo '${'$as_ac_var'}'` = yes; then 9249 cat >>confdefs.h <<_ACEOF 9250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9251_ACEOF 9252 9253else 9254 case $LIBOBJS in 9255 "$ac_func.$ac_objext" | \ 9256 *" $ac_func.$ac_objext" | \ 9257 "$ac_func.$ac_objext "* | \ 9258 *" $ac_func.$ac_objext "* ) ;; 9259 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9260esac 9261 9262fi 9263done 9264 9265 9266 9267for ac_func in strlcpy 9268do 9269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9270echo "$as_me:$LINENO: checking for $ac_func" >&5 9271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9272if eval "test \"\${$as_ac_var+set}\" = set"; then 9273 echo $ECHO_N "(cached) $ECHO_C" >&6 9274else 9275 cat >conftest.$ac_ext <<_ACEOF 9276/* confdefs.h. */ 9277_ACEOF 9278cat confdefs.h >>conftest.$ac_ext 9279cat >>conftest.$ac_ext <<_ACEOF 9280/* end confdefs.h. */ 9281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9282 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9283#define $ac_func innocuous_$ac_func 9284 9285/* System header to define __stub macros and hopefully few prototypes, 9286 which can conflict with char $ac_func (); below. 9287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9288 <limits.h> exists even on freestanding compilers. */ 9289 9290#ifdef __STDC__ 9291# include <limits.h> 9292#else 9293# include <assert.h> 9294#endif 9295 9296#undef $ac_func 9297 9298/* Override any gcc2 internal prototype to avoid an error. */ 9299#ifdef __cplusplus 9300extern "C" 9301{ 9302#endif 9303/* We use char because int might match the return type of a gcc2 9304 builtin and then its argument prototype would still apply. */ 9305char $ac_func (); 9306/* The GNU C library defines this for functions which it implements 9307 to always fail with ENOSYS. Some functions are actually named 9308 something starting with __ and the normal name is an alias. */ 9309#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9310choke me 9311#else 9312char (*f) () = $ac_func; 9313#endif 9314#ifdef __cplusplus 9315} 9316#endif 9317 9318int 9319main () 9320{ 9321return f != $ac_func; 9322 ; 9323 return 0; 9324} 9325_ACEOF 9326rm -f conftest.$ac_objext conftest$ac_exeext 9327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9328 (eval $ac_link) 2>conftest.er1 9329 ac_status=$? 9330 grep -v '^ *+' conftest.er1 >conftest.err 9331 rm -f conftest.er1 9332 cat conftest.err >&5 9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9334 (exit $ac_status); } && 9335 { ac_try='test -z "$ac_c_werror_flag" 9336 || test ! -s conftest.err' 9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9338 (eval $ac_try) 2>&5 9339 ac_status=$? 9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9341 (exit $ac_status); }; } && 9342 { ac_try='test -s conftest$ac_exeext' 9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9344 (eval $ac_try) 2>&5 9345 ac_status=$? 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9347 (exit $ac_status); }; }; then 9348 eval "$as_ac_var=yes" 9349else 9350 echo "$as_me: failed program was:" >&5 9351sed 's/^/| /' conftest.$ac_ext >&5 9352 9353eval "$as_ac_var=no" 9354fi 9355rm -f conftest.err conftest.$ac_objext \ 9356 conftest$ac_exeext conftest.$ac_ext 9357fi 9358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9359echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9360if test `eval echo '${'$as_ac_var'}'` = yes; then 9361 cat >>confdefs.h <<_ACEOF 9362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9363_ACEOF 9364 9365else 9366 case $LIBOBJS in 9367 "$ac_func.$ac_objext" | \ 9368 *" $ac_func.$ac_objext" | \ 9369 "$ac_func.$ac_objext "* | \ 9370 *" $ac_func.$ac_objext "* ) ;; 9371 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9372esac 9373 9374fi 9375done 9376 9377 9378 9379for ac_func in strptime 9380do 9381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9382echo "$as_me:$LINENO: checking for $ac_func" >&5 9383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9384if eval "test \"\${$as_ac_var+set}\" = set"; then 9385 echo $ECHO_N "(cached) $ECHO_C" >&6 9386else 9387 cat >conftest.$ac_ext <<_ACEOF 9388/* confdefs.h. */ 9389_ACEOF 9390cat confdefs.h >>conftest.$ac_ext 9391cat >>conftest.$ac_ext <<_ACEOF 9392/* end confdefs.h. */ 9393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9394 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9395#define $ac_func innocuous_$ac_func 9396 9397/* System header to define __stub macros and hopefully few prototypes, 9398 which can conflict with char $ac_func (); below. 9399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9400 <limits.h> exists even on freestanding compilers. */ 9401 9402#ifdef __STDC__ 9403# include <limits.h> 9404#else 9405# include <assert.h> 9406#endif 9407 9408#undef $ac_func 9409 9410/* Override any gcc2 internal prototype to avoid an error. */ 9411#ifdef __cplusplus 9412extern "C" 9413{ 9414#endif 9415/* We use char because int might match the return type of a gcc2 9416 builtin and then its argument prototype would still apply. */ 9417char $ac_func (); 9418/* The GNU C library defines this for functions which it implements 9419 to always fail with ENOSYS. Some functions are actually named 9420 something starting with __ and the normal name is an alias. */ 9421#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9422choke me 9423#else 9424char (*f) () = $ac_func; 9425#endif 9426#ifdef __cplusplus 9427} 9428#endif 9429 9430int 9431main () 9432{ 9433return f != $ac_func; 9434 ; 9435 return 0; 9436} 9437_ACEOF 9438rm -f conftest.$ac_objext conftest$ac_exeext 9439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9440 (eval $ac_link) 2>conftest.er1 9441 ac_status=$? 9442 grep -v '^ *+' conftest.er1 >conftest.err 9443 rm -f conftest.er1 9444 cat conftest.err >&5 9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9446 (exit $ac_status); } && 9447 { ac_try='test -z "$ac_c_werror_flag" 9448 || test ! -s conftest.err' 9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9450 (eval $ac_try) 2>&5 9451 ac_status=$? 9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9453 (exit $ac_status); }; } && 9454 { ac_try='test -s conftest$ac_exeext' 9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9456 (eval $ac_try) 2>&5 9457 ac_status=$? 9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9459 (exit $ac_status); }; }; then 9460 eval "$as_ac_var=yes" 9461else 9462 echo "$as_me: failed program was:" >&5 9463sed 's/^/| /' conftest.$ac_ext >&5 9464 9465eval "$as_ac_var=no" 9466fi 9467rm -f conftest.err conftest.$ac_objext \ 9468 conftest$ac_exeext conftest.$ac_ext 9469fi 9470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9472if test `eval echo '${'$as_ac_var'}'` = yes; then 9473 cat >>confdefs.h <<_ACEOF 9474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9475_ACEOF 9476 9477else 9478 case $LIBOBJS in 9479 "$ac_func.$ac_objext" | \ 9480 *" $ac_func.$ac_objext" | \ 9481 "$ac_func.$ac_objext "* | \ 9482 *" $ac_func.$ac_objext "* ) ;; 9483 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9484esac 9485 9486fi 9487done 9488 9489 9490 9491for ac_func in b64_pton 9492do 9493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9494echo "$as_me:$LINENO: checking for $ac_func" >&5 9495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9496if eval "test \"\${$as_ac_var+set}\" = set"; then 9497 echo $ECHO_N "(cached) $ECHO_C" >&6 9498else 9499 cat >conftest.$ac_ext <<_ACEOF 9500/* confdefs.h. */ 9501_ACEOF 9502cat confdefs.h >>conftest.$ac_ext 9503cat >>conftest.$ac_ext <<_ACEOF 9504/* end confdefs.h. */ 9505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9506 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9507#define $ac_func innocuous_$ac_func 9508 9509/* System header to define __stub macros and hopefully few prototypes, 9510 which can conflict with char $ac_func (); below. 9511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9512 <limits.h> exists even on freestanding compilers. */ 9513 9514#ifdef __STDC__ 9515# include <limits.h> 9516#else 9517# include <assert.h> 9518#endif 9519 9520#undef $ac_func 9521 9522/* Override any gcc2 internal prototype to avoid an error. */ 9523#ifdef __cplusplus 9524extern "C" 9525{ 9526#endif 9527/* We use char because int might match the return type of a gcc2 9528 builtin and then its argument prototype would still apply. */ 9529char $ac_func (); 9530/* The GNU C library defines this for functions which it implements 9531 to always fail with ENOSYS. Some functions are actually named 9532 something starting with __ and the normal name is an alias. */ 9533#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9534choke me 9535#else 9536char (*f) () = $ac_func; 9537#endif 9538#ifdef __cplusplus 9539} 9540#endif 9541 9542int 9543main () 9544{ 9545return f != $ac_func; 9546 ; 9547 return 0; 9548} 9549_ACEOF 9550rm -f conftest.$ac_objext conftest$ac_exeext 9551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9552 (eval $ac_link) 2>conftest.er1 9553 ac_status=$? 9554 grep -v '^ *+' conftest.er1 >conftest.err 9555 rm -f conftest.er1 9556 cat conftest.err >&5 9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9558 (exit $ac_status); } && 9559 { ac_try='test -z "$ac_c_werror_flag" 9560 || test ! -s conftest.err' 9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9562 (eval $ac_try) 2>&5 9563 ac_status=$? 9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9565 (exit $ac_status); }; } && 9566 { ac_try='test -s conftest$ac_exeext' 9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9568 (eval $ac_try) 2>&5 9569 ac_status=$? 9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9571 (exit $ac_status); }; }; then 9572 eval "$as_ac_var=yes" 9573else 9574 echo "$as_me: failed program was:" >&5 9575sed 's/^/| /' conftest.$ac_ext >&5 9576 9577eval "$as_ac_var=no" 9578fi 9579rm -f conftest.err conftest.$ac_objext \ 9580 conftest$ac_exeext conftest.$ac_ext 9581fi 9582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9584if test `eval echo '${'$as_ac_var'}'` = yes; then 9585 cat >>confdefs.h <<_ACEOF 9586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9587_ACEOF 9588 9589else 9590 case $LIBOBJS in 9591 "$ac_func.$ac_objext" | \ 9592 *" $ac_func.$ac_objext" | \ 9593 "$ac_func.$ac_objext "* | \ 9594 *" $ac_func.$ac_objext "* ) ;; 9595 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9596esac 9597 9598fi 9599done 9600 9601 9602 9603for ac_func in b64_ntop 9604do 9605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9606echo "$as_me:$LINENO: checking for $ac_func" >&5 9607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9608if eval "test \"\${$as_ac_var+set}\" = set"; then 9609 echo $ECHO_N "(cached) $ECHO_C" >&6 9610else 9611 cat >conftest.$ac_ext <<_ACEOF 9612/* confdefs.h. */ 9613_ACEOF 9614cat confdefs.h >>conftest.$ac_ext 9615cat >>conftest.$ac_ext <<_ACEOF 9616/* end confdefs.h. */ 9617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9619#define $ac_func innocuous_$ac_func 9620 9621/* System header to define __stub macros and hopefully few prototypes, 9622 which can conflict with char $ac_func (); below. 9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9624 <limits.h> exists even on freestanding compilers. */ 9625 9626#ifdef __STDC__ 9627# include <limits.h> 9628#else 9629# include <assert.h> 9630#endif 9631 9632#undef $ac_func 9633 9634/* Override any gcc2 internal prototype to avoid an error. */ 9635#ifdef __cplusplus 9636extern "C" 9637{ 9638#endif 9639/* We use char because int might match the return type of a gcc2 9640 builtin and then its argument prototype would still apply. */ 9641char $ac_func (); 9642/* The GNU C library defines this for functions which it implements 9643 to always fail with ENOSYS. Some functions are actually named 9644 something starting with __ and the normal name is an alias. */ 9645#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9646choke me 9647#else 9648char (*f) () = $ac_func; 9649#endif 9650#ifdef __cplusplus 9651} 9652#endif 9653 9654int 9655main () 9656{ 9657return f != $ac_func; 9658 ; 9659 return 0; 9660} 9661_ACEOF 9662rm -f conftest.$ac_objext conftest$ac_exeext 9663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9664 (eval $ac_link) 2>conftest.er1 9665 ac_status=$? 9666 grep -v '^ *+' conftest.er1 >conftest.err 9667 rm -f conftest.er1 9668 cat conftest.err >&5 9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9670 (exit $ac_status); } && 9671 { ac_try='test -z "$ac_c_werror_flag" 9672 || test ! -s conftest.err' 9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9674 (eval $ac_try) 2>&5 9675 ac_status=$? 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9677 (exit $ac_status); }; } && 9678 { ac_try='test -s conftest$ac_exeext' 9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9680 (eval $ac_try) 2>&5 9681 ac_status=$? 9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9683 (exit $ac_status); }; }; then 9684 eval "$as_ac_var=yes" 9685else 9686 echo "$as_me: failed program was:" >&5 9687sed 's/^/| /' conftest.$ac_ext >&5 9688 9689eval "$as_ac_var=no" 9690fi 9691rm -f conftest.err conftest.$ac_objext \ 9692 conftest$ac_exeext conftest.$ac_ext 9693fi 9694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9696if test `eval echo '${'$as_ac_var'}'` = yes; then 9697 cat >>confdefs.h <<_ACEOF 9698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9699_ACEOF 9700 9701else 9702 case $LIBOBJS in 9703 "$ac_func.$ac_objext" | \ 9704 *" $ac_func.$ac_objext" | \ 9705 "$ac_func.$ac_objext "* | \ 9706 *" $ac_func.$ac_objext "* ) ;; 9707 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9708esac 9709 9710fi 9711done 9712 9713 9714 9715for ac_func in pselect 9716do 9717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9718echo "$as_me:$LINENO: checking for $ac_func" >&5 9719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9720if eval "test \"\${$as_ac_var+set}\" = set"; then 9721 echo $ECHO_N "(cached) $ECHO_C" >&6 9722else 9723 cat >conftest.$ac_ext <<_ACEOF 9724/* confdefs.h. */ 9725_ACEOF 9726cat confdefs.h >>conftest.$ac_ext 9727cat >>conftest.$ac_ext <<_ACEOF 9728/* end confdefs.h. */ 9729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9731#define $ac_func innocuous_$ac_func 9732 9733/* System header to define __stub macros and hopefully few prototypes, 9734 which can conflict with char $ac_func (); below. 9735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9736 <limits.h> exists even on freestanding compilers. */ 9737 9738#ifdef __STDC__ 9739# include <limits.h> 9740#else 9741# include <assert.h> 9742#endif 9743 9744#undef $ac_func 9745 9746/* Override any gcc2 internal prototype to avoid an error. */ 9747#ifdef __cplusplus 9748extern "C" 9749{ 9750#endif 9751/* We use char because int might match the return type of a gcc2 9752 builtin and then its argument prototype would still apply. */ 9753char $ac_func (); 9754/* The GNU C library defines this for functions which it implements 9755 to always fail with ENOSYS. Some functions are actually named 9756 something starting with __ and the normal name is an alias. */ 9757#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9758choke me 9759#else 9760char (*f) () = $ac_func; 9761#endif 9762#ifdef __cplusplus 9763} 9764#endif 9765 9766int 9767main () 9768{ 9769return f != $ac_func; 9770 ; 9771 return 0; 9772} 9773_ACEOF 9774rm -f conftest.$ac_objext conftest$ac_exeext 9775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9776 (eval $ac_link) 2>conftest.er1 9777 ac_status=$? 9778 grep -v '^ *+' conftest.er1 >conftest.err 9779 rm -f conftest.er1 9780 cat conftest.err >&5 9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9782 (exit $ac_status); } && 9783 { ac_try='test -z "$ac_c_werror_flag" 9784 || test ! -s conftest.err' 9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9786 (eval $ac_try) 2>&5 9787 ac_status=$? 9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9789 (exit $ac_status); }; } && 9790 { ac_try='test -s conftest$ac_exeext' 9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9792 (eval $ac_try) 2>&5 9793 ac_status=$? 9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9795 (exit $ac_status); }; }; then 9796 eval "$as_ac_var=yes" 9797else 9798 echo "$as_me: failed program was:" >&5 9799sed 's/^/| /' conftest.$ac_ext >&5 9800 9801eval "$as_ac_var=no" 9802fi 9803rm -f conftest.err conftest.$ac_objext \ 9804 conftest$ac_exeext conftest.$ac_ext 9805fi 9806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9808if test `eval echo '${'$as_ac_var'}'` = yes; then 9809 cat >>confdefs.h <<_ACEOF 9810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9811_ACEOF 9812 9813else 9814 case $LIBOBJS in 9815 "$ac_func.$ac_objext" | \ 9816 *" $ac_func.$ac_objext" | \ 9817 "$ac_func.$ac_objext "* | \ 9818 *" $ac_func.$ac_objext "* ) ;; 9819 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9820esac 9821 9822fi 9823done 9824 9825 9826 9827for ac_func in memmove 9828do 9829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9830echo "$as_me:$LINENO: checking for $ac_func" >&5 9831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9832if eval "test \"\${$as_ac_var+set}\" = set"; then 9833 echo $ECHO_N "(cached) $ECHO_C" >&6 9834else 9835 cat >conftest.$ac_ext <<_ACEOF 9836/* confdefs.h. */ 9837_ACEOF 9838cat confdefs.h >>conftest.$ac_ext 9839cat >>conftest.$ac_ext <<_ACEOF 9840/* end confdefs.h. */ 9841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9842 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9843#define $ac_func innocuous_$ac_func 9844 9845/* System header to define __stub macros and hopefully few prototypes, 9846 which can conflict with char $ac_func (); below. 9847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9848 <limits.h> exists even on freestanding compilers. */ 9849 9850#ifdef __STDC__ 9851# include <limits.h> 9852#else 9853# include <assert.h> 9854#endif 9855 9856#undef $ac_func 9857 9858/* Override any gcc2 internal prototype to avoid an error. */ 9859#ifdef __cplusplus 9860extern "C" 9861{ 9862#endif 9863/* We use char because int might match the return type of a gcc2 9864 builtin and then its argument prototype would still apply. */ 9865char $ac_func (); 9866/* The GNU C library defines this for functions which it implements 9867 to always fail with ENOSYS. Some functions are actually named 9868 something starting with __ and the normal name is an alias. */ 9869#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9870choke me 9871#else 9872char (*f) () = $ac_func; 9873#endif 9874#ifdef __cplusplus 9875} 9876#endif 9877 9878int 9879main () 9880{ 9881return f != $ac_func; 9882 ; 9883 return 0; 9884} 9885_ACEOF 9886rm -f conftest.$ac_objext conftest$ac_exeext 9887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9888 (eval $ac_link) 2>conftest.er1 9889 ac_status=$? 9890 grep -v '^ *+' conftest.er1 >conftest.err 9891 rm -f conftest.er1 9892 cat conftest.err >&5 9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9894 (exit $ac_status); } && 9895 { ac_try='test -z "$ac_c_werror_flag" 9896 || test ! -s conftest.err' 9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9898 (eval $ac_try) 2>&5 9899 ac_status=$? 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); }; } && 9902 { ac_try='test -s conftest$ac_exeext' 9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9904 (eval $ac_try) 2>&5 9905 ac_status=$? 9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9907 (exit $ac_status); }; }; then 9908 eval "$as_ac_var=yes" 9909else 9910 echo "$as_me: failed program was:" >&5 9911sed 's/^/| /' conftest.$ac_ext >&5 9912 9913eval "$as_ac_var=no" 9914fi 9915rm -f conftest.err conftest.$ac_objext \ 9916 conftest$ac_exeext conftest.$ac_ext 9917fi 9918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9919echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9920if test `eval echo '${'$as_ac_var'}'` = yes; then 9921 cat >>confdefs.h <<_ACEOF 9922#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9923_ACEOF 9924 9925else 9926 case $LIBOBJS in 9927 "$ac_func.$ac_objext" | \ 9928 *" $ac_func.$ac_objext" | \ 9929 "$ac_func.$ac_objext "* | \ 9930 *" $ac_func.$ac_objext "* ) ;; 9931 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9932esac 9933 9934fi 9935done 9936 9937 9938 9939echo "$as_me:$LINENO: checking for pselect prototype in sys/select.h" >&5 9940echo $ECHO_N "checking for pselect prototype in sys/select.h... $ECHO_C" >&6 9941cat >conftest.$ac_ext <<_ACEOF 9942/* confdefs.h. */ 9943_ACEOF 9944cat confdefs.h >>conftest.$ac_ext 9945cat >>conftest.$ac_ext <<_ACEOF 9946/* end confdefs.h. */ 9947#include <sys/select.h> 9948 9949_ACEOF 9950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9951 $EGREP "[^a-zA-Z_]*pselect[^a-zA-Z_]" >/dev/null 2>&1; then 9952 9953cat >>confdefs.h <<\_ACEOF 9954#define HAVE_PSELECT_PROTO 1 9955_ACEOF 9956 echo "$as_me:$LINENO: result: yes" >&5 9957echo "${ECHO_T}yes" >&6 9958else 9959 echo "$as_me:$LINENO: result: no" >&5 9960echo "${ECHO_T}no" >&6 9961fi 9962rm -f conftest* 9963 9964 9965echo "$as_me:$LINENO: checking for ctime_r prototype in time.h" >&5 9966echo $ECHO_N "checking for ctime_r prototype in time.h... $ECHO_C" >&6 9967cat >conftest.$ac_ext <<_ACEOF 9968/* confdefs.h. */ 9969_ACEOF 9970cat confdefs.h >>conftest.$ac_ext 9971cat >>conftest.$ac_ext <<_ACEOF 9972/* end confdefs.h. */ 9973#include <time.h> 9974 9975_ACEOF 9976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9977 $EGREP "[^a-zA-Z_]*ctime_r[^a-zA-Z_]" >/dev/null 2>&1; then 9978 9979cat >>confdefs.h <<\_ACEOF 9980#define HAVE_CTIME_R_PROTO 1 9981_ACEOF 9982 echo "$as_me:$LINENO: result: yes" >&5 9983echo "${ECHO_T}yes" >&6 9984else 9985 echo "$as_me:$LINENO: result: no" >&5 9986echo "${ECHO_T}no" >&6 9987fi 9988rm -f conftest* 9989 9990 9991echo "$as_me:$LINENO: checking for struct timespec" >&5 9992echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 9993if test "${ac_cv_type_struct_timespec+set}" = set; then 9994 echo $ECHO_N "(cached) $ECHO_C" >&6 9995else 9996 cat >conftest.$ac_ext <<_ACEOF 9997/* confdefs.h. */ 9998_ACEOF 9999cat confdefs.h >>conftest.$ac_ext 10000cat >>conftest.$ac_ext <<_ACEOF 10001/* end confdefs.h. */ 10002 10003$ac_includes_default 10004#ifdef HAVE_SIGNAL_H 10005#include <signal.h> 10006#endif 10007#ifdef HAVE_TIME_H 10008#include <time.h> 10009#endif 10010 10011 10012int 10013main () 10014{ 10015if ((struct timespec *) 0) 10016 return 0; 10017if (sizeof (struct timespec)) 10018 return 0; 10019 ; 10020 return 0; 10021} 10022_ACEOF 10023rm -f conftest.$ac_objext 10024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10025 (eval $ac_compile) 2>conftest.er1 10026 ac_status=$? 10027 grep -v '^ *+' conftest.er1 >conftest.err 10028 rm -f conftest.er1 10029 cat conftest.err >&5 10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10031 (exit $ac_status); } && 10032 { ac_try='test -z "$ac_c_werror_flag" 10033 || test ! -s conftest.err' 10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10035 (eval $ac_try) 2>&5 10036 ac_status=$? 10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10038 (exit $ac_status); }; } && 10039 { ac_try='test -s conftest.$ac_objext' 10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10041 (eval $ac_try) 2>&5 10042 ac_status=$? 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10044 (exit $ac_status); }; }; then 10045 ac_cv_type_struct_timespec=yes 10046else 10047 echo "$as_me: failed program was:" >&5 10048sed 's/^/| /' conftest.$ac_ext >&5 10049 10050ac_cv_type_struct_timespec=no 10051fi 10052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10053fi 10054echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 10055echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 10056if test $ac_cv_type_struct_timespec = yes; then 10057 10058cat >>confdefs.h <<\_ACEOF 10059#define HAVE_STRUCT_TIMESPEC 1 10060_ACEOF 10061 10062fi 10063 10064 10065 10066cat >>confdefs.h <<_ACEOF 10067#define IDENTITY "unidentified server" 10068_ACEOF 10069 10070 10071cat >>confdefs.h <<_ACEOF 10072#define VERSION PACKAGE_STRING 10073_ACEOF 10074 10075 10076cat >>confdefs.h <<_ACEOF 10077#define TCP_BACKLOG 5 10078_ACEOF 10079 10080 10081cat >>confdefs.h <<_ACEOF 10082#define TCP_PORT "53" 10083_ACEOF 10084 10085 10086cat >>confdefs.h <<_ACEOF 10087#define TCP_MAX_MESSAGE_LEN 65535 10088_ACEOF 10089 10090 10091cat >>confdefs.h <<_ACEOF 10092#define UDP_PORT "53" 10093_ACEOF 10094 10095 10096cat >>confdefs.h <<_ACEOF 10097#define UDP_MAX_MESSAGE_LEN 512 10098_ACEOF 10099 10100 10101cat >>confdefs.h <<_ACEOF 10102#define EDNS_MAX_MESSAGE_LEN 4096 10103_ACEOF 10104 10105 10106cat >>confdefs.h <<_ACEOF 10107#define MAXSYSLOGMSGLEN 512 10108_ACEOF 10109 10110 10111facility=LOG_DAEMON 10112 10113# Check whether --with-facility or --without-facility was given. 10114if test "${with_facility+set}" = set; then 10115 withval="$with_facility" 10116 facility=$withval 10117fi; 10118 10119cat >>confdefs.h <<_ACEOF 10120#define FACILITY $facility 10121_ACEOF 10122 10123 10124max_ips=8 10125 10126# Check whether --with-max_ips or --without-max_ips was given. 10127if test "${with_max_ips+set}" = set; then 10128 withval="$with_max_ips" 10129 max_ips=$withval 10130fi; 10131 10132cat >>confdefs.h <<_ACEOF 10133#define MAX_INTERFACES $max_ips 10134_ACEOF 10135 10136 10137tcp_timeout=120 10138 10139# Check whether --with-tcp_timeout or --without-tcp_timeout was given. 10140if test "${with_tcp_timeout+set}" = set; then 10141 withval="$with_tcp_timeout" 10142 tcp_timeout=$withval 10143fi; 10144 10145cat >>confdefs.h <<_ACEOF 10146#define TCP_TIMEOUT $tcp_timeout 10147_ACEOF 10148 10149 10150# Check whether --enable-root-server or --disable-root-server was given. 10151if test "${enable_root_server+set}" = set; then 10152 enableval="$enable_root_server" 10153 10154fi; 10155case "$enable_root_server" in 10156 yes) 10157 10158cat >>confdefs.h <<_ACEOF 10159#define ROOT_SERVER 10160_ACEOF 10161 10162 ;; 10163 no|*) 10164 ;; 10165esac 10166 10167# Check whether --enable-ipv6 or --disable-ipv6 was given. 10168if test "${enable_ipv6+set}" = set; then 10169 enableval="$enable_ipv6" 10170 10171fi; 10172case "$enable_ipv6" in 10173 no) 10174 ;; 10175 yes|*) 10176 10177cat >>confdefs.h <<_ACEOF 10178#define INET6 10179_ACEOF 10180 10181 ;; 10182esac 10183 10184# Check whether --enable-bind8-stats or --disable-bind8-stats was given. 10185if test "${enable_bind8_stats+set}" = set; then 10186 enableval="$enable_bind8_stats" 10187 10188fi; 10189 10190case "$enable_bind8_stats" in 10191 yes|'') 10192 10193cat >>confdefs.h <<_ACEOF 10194#define BIND8_STATS 10195_ACEOF 10196 10197 ;; 10198 no|*) 10199 ;; 10200esac 10201 10202# Check whether --enable-checking or --disable-checking was given. 10203if test "${enable_checking+set}" = set; then 10204 enableval="$enable_checking" 10205 10206fi; 10207case "$enable_checking" in 10208 yes) 10209 10210 10211echo "$as_me:$LINENO: checking whether $CC supports -W" >&5 10212echo $ECHO_N "checking whether $CC supports -W... $ECHO_C" >&6 10213cache=`echo W | sed 'y%.=/+-%___p_%'` 10214if eval "test \"\${cv_prog_cc_flag_$cache+set}\" = set"; then 10215 echo $ECHO_N "(cached) $ECHO_C" >&6 10216else 10217 10218echo 'void f(){}' >conftest.c 10219if test -z "`$CC -W -c conftest.c 2>&1`"; then 10220eval "cv_prog_cc_flag_$cache=yes" 10221else 10222eval "cv_prog_cc_flag_$cache=no" 10223fi 10224rm -f conftest* 10225 10226fi 10227 10228if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10229echo "$as_me:$LINENO: result: yes" >&5 10230echo "${ECHO_T}yes" >&6 10231: 10232 CFLAGS="$CFLAGS -W" 10233else 10234echo "$as_me:$LINENO: result: no" >&5 10235echo "${ECHO_T}no" >&6 10236: 10237 10238fi 10239 10240 10241 10242echo "$as_me:$LINENO: checking whether $CC supports -Wall" >&5 10243echo $ECHO_N "checking whether $CC supports -Wall... $ECHO_C" >&6 10244cache=`echo Wall | sed 'y%.=/+-%___p_%'` 10245if eval "test \"\${cv_prog_cc_flag_$cache+set}\" = set"; then 10246 echo $ECHO_N "(cached) $ECHO_C" >&6 10247else 10248 10249echo 'void f(){}' >conftest.c 10250if test -z "`$CC -Wall -c conftest.c 2>&1`"; then 10251eval "cv_prog_cc_flag_$cache=yes" 10252else 10253eval "cv_prog_cc_flag_$cache=no" 10254fi 10255rm -f conftest* 10256 10257fi 10258 10259if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10260echo "$as_me:$LINENO: result: yes" >&5 10261echo "${ECHO_T}yes" >&6 10262: 10263 CFLAGS="$CFLAGS -Wall" 10264else 10265echo "$as_me:$LINENO: result: no" >&5 10266echo "${ECHO_T}no" >&6 10267: 10268 10269fi 10270 10271 10272 10273echo "$as_me:$LINENO: checking whether $CC supports -Wextra" >&5 10274echo $ECHO_N "checking whether $CC supports -Wextra... $ECHO_C" >&6 10275cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 10276if eval "test \"\${cv_prog_cc_flag_$cache+set}\" = set"; then 10277 echo $ECHO_N "(cached) $ECHO_C" >&6 10278else 10279 10280echo 'void f(){}' >conftest.c 10281if test -z "`$CC -Wextra -c conftest.c 2>&1`"; then 10282eval "cv_prog_cc_flag_$cache=yes" 10283else 10284eval "cv_prog_cc_flag_$cache=no" 10285fi 10286rm -f conftest* 10287 10288fi 10289 10290if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 10291echo "$as_me:$LINENO: result: yes" >&5 10292echo "${ECHO_T}yes" >&6 10293: 10294 CFLAGS="$CFLAGS -Wextra" 10295else 10296echo "$as_me:$LINENO: result: no" >&5 10297echo "${ECHO_T}no" >&6 10298: 10299 10300fi 10301 10302 ;; 10303 no|*) 10304 10305cat >>confdefs.h <<\_ACEOF 10306#define NDEBUG 10307_ACEOF 10308 10309 ;; 10310esac 10311 10312# we need SSL for TSIG (and maybe also for NSEC3). 10313 10314 10315# Check whether --with-ssl or --without-ssl was given. 10316if test "${with_ssl+set}" = set; then 10317 withval="$with_ssl" 10318 10319 10320else 10321 10322 withval="yes" 10323 10324fi; 10325 if test x_$withval != x_no; then 10326 echo "$as_me:$LINENO: checking for SSL" >&5 10327echo $ECHO_N "checking for SSL... $ECHO_C" >&6 10328 if test x_$withval = x_ -o x_$withval = x_yes; then 10329 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/sfw /usr/local /usr" 10330 fi 10331 for dir in $withval; do 10332 ssldir="$dir" 10333 if test -f "$dir/include/openssl/ssl.h"; then 10334 found_ssl="yes"; 10335 10336cat >>confdefs.h <<_ACEOF 10337#define HAVE_SSL 10338_ACEOF 10339 10340 if test x_$ssldir != x_/usr; then 10341 CPPFLAGS="$CPPFLAGS -I$ssldir/include"; 10342 fi 10343 break; 10344 fi 10345 done 10346 if test x_$found_ssl != x_yes; then 10347 { { echo "$as_me:$LINENO: error: Cannot find the SSL libraries in $withval" >&5 10348echo "$as_me: error: Cannot find the SSL libraries in $withval" >&2;} 10349 { (exit 1); exit 1; }; } 10350 else 10351 echo "$as_me:$LINENO: result: found in $ssldir" >&5 10352echo "${ECHO_T}found in $ssldir" >&6 10353 HAVE_SSL=yes 10354 if test x_$ssldir != x_/usr; then 10355 LDFLAGS="$LDFLAGS -L$ssldir/lib"; 10356 fi 10357 if test x_$ssldir = x_/usr/sfw; then 10358 LDFLAGS="$LDFLAGS -R$ssldir/lib"; 10359 fi 10360 10361echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5 10362echo $ECHO_N "checking for HMAC_CTX_init in -lcrypto... $ECHO_C" >&6 10363if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then 10364 echo $ECHO_N "(cached) $ECHO_C" >&6 10365else 10366 ac_check_lib_save_LIBS=$LIBS 10367LIBS="-lcrypto $LIBS" 10368cat >conftest.$ac_ext <<_ACEOF 10369/* confdefs.h. */ 10370_ACEOF 10371cat confdefs.h >>conftest.$ac_ext 10372cat >>conftest.$ac_ext <<_ACEOF 10373/* end confdefs.h. */ 10374 10375/* Override any gcc2 internal prototype to avoid an error. */ 10376#ifdef __cplusplus 10377extern "C" 10378#endif 10379/* We use char because int might match the return type of a gcc2 10380 builtin and then its argument prototype would still apply. */ 10381char HMAC_CTX_init (); 10382int 10383main () 10384{ 10385HMAC_CTX_init (); 10386 ; 10387 return 0; 10388} 10389_ACEOF 10390rm -f conftest.$ac_objext conftest$ac_exeext 10391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10392 (eval $ac_link) 2>conftest.er1 10393 ac_status=$? 10394 grep -v '^ *+' conftest.er1 >conftest.err 10395 rm -f conftest.er1 10396 cat conftest.err >&5 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10398 (exit $ac_status); } && 10399 { ac_try='test -z "$ac_c_werror_flag" 10400 || test ! -s conftest.err' 10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10402 (eval $ac_try) 2>&5 10403 ac_status=$? 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10405 (exit $ac_status); }; } && 10406 { ac_try='test -s conftest$ac_exeext' 10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10408 (eval $ac_try) 2>&5 10409 ac_status=$? 10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10411 (exit $ac_status); }; }; then 10412 ac_cv_lib_crypto_HMAC_CTX_init=yes 10413else 10414 echo "$as_me: failed program was:" >&5 10415sed 's/^/| /' conftest.$ac_ext >&5 10416 10417ac_cv_lib_crypto_HMAC_CTX_init=no 10418fi 10419rm -f conftest.err conftest.$ac_objext \ 10420 conftest$ac_exeext conftest.$ac_ext 10421LIBS=$ac_check_lib_save_LIBS 10422fi 10423echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5 10424echo "${ECHO_T}$ac_cv_lib_crypto_HMAC_CTX_init" >&6 10425if test $ac_cv_lib_crypto_HMAC_CTX_init = yes; then 10426 cat >>confdefs.h <<_ACEOF 10427#define HAVE_LIBCRYPTO 1 10428_ACEOF 10429 10430 LIBS="-lcrypto $LIBS" 10431 10432else 10433 10434 { { echo "$as_me:$LINENO: error: OpenSSL found in $ssldir, but version 0.9.7 or higher is required" >&5 10435echo "$as_me: error: OpenSSL found in $ssldir, but version 0.9.7 or higher is required" >&2;} 10436 { (exit 1); exit 1; }; } 10437 10438fi 10439 10440 10441 10442for ac_func in EVP_sha1 EVP_sha256 10443do 10444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10445echo "$as_me:$LINENO: checking for $ac_func" >&5 10446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10447if eval "test \"\${$as_ac_var+set}\" = set"; then 10448 echo $ECHO_N "(cached) $ECHO_C" >&6 10449else 10450 cat >conftest.$ac_ext <<_ACEOF 10451/* confdefs.h. */ 10452_ACEOF 10453cat confdefs.h >>conftest.$ac_ext 10454cat >>conftest.$ac_ext <<_ACEOF 10455/* end confdefs.h. */ 10456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10457 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10458#define $ac_func innocuous_$ac_func 10459 10460/* System header to define __stub macros and hopefully few prototypes, 10461 which can conflict with char $ac_func (); below. 10462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10463 <limits.h> exists even on freestanding compilers. */ 10464 10465#ifdef __STDC__ 10466# include <limits.h> 10467#else 10468# include <assert.h> 10469#endif 10470 10471#undef $ac_func 10472 10473/* Override any gcc2 internal prototype to avoid an error. */ 10474#ifdef __cplusplus 10475extern "C" 10476{ 10477#endif 10478/* We use char because int might match the return type of a gcc2 10479 builtin and then its argument prototype would still apply. */ 10480char $ac_func (); 10481/* The GNU C library defines this for functions which it implements 10482 to always fail with ENOSYS. Some functions are actually named 10483 something starting with __ and the normal name is an alias. */ 10484#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10485choke me 10486#else 10487char (*f) () = $ac_func; 10488#endif 10489#ifdef __cplusplus 10490} 10491#endif 10492 10493int 10494main () 10495{ 10496return f != $ac_func; 10497 ; 10498 return 0; 10499} 10500_ACEOF 10501rm -f conftest.$ac_objext conftest$ac_exeext 10502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10503 (eval $ac_link) 2>conftest.er1 10504 ac_status=$? 10505 grep -v '^ *+' conftest.er1 >conftest.err 10506 rm -f conftest.er1 10507 cat conftest.err >&5 10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10509 (exit $ac_status); } && 10510 { ac_try='test -z "$ac_c_werror_flag" 10511 || test ! -s conftest.err' 10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10513 (eval $ac_try) 2>&5 10514 ac_status=$? 10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10516 (exit $ac_status); }; } && 10517 { ac_try='test -s conftest$ac_exeext' 10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10519 (eval $ac_try) 2>&5 10520 ac_status=$? 10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10522 (exit $ac_status); }; }; then 10523 eval "$as_ac_var=yes" 10524else 10525 echo "$as_me: failed program was:" >&5 10526sed 's/^/| /' conftest.$ac_ext >&5 10527 10528eval "$as_ac_var=no" 10529fi 10530rm -f conftest.err conftest.$ac_objext \ 10531 conftest$ac_exeext conftest.$ac_ext 10532fi 10533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10534echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10535if test `eval echo '${'$as_ac_var'}'` = yes; then 10536 cat >>confdefs.h <<_ACEOF 10537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10538_ACEOF 10539 10540fi 10541done 10542 10543 fi 10544 10545 fi 10546 10547 10548# Check whether --enable-nsec3 or --disable-nsec3 was given. 10549if test "${enable_nsec3+set}" = set; then 10550 enableval="$enable_nsec3" 10551 10552fi; 10553case "$enable_nsec3" in 10554 no) 10555 ;; 10556 yes|*) 10557 10558cat >>confdefs.h <<_ACEOF 10559#define NSEC3 10560_ACEOF 10561 10562 ;; 10563esac 10564 10565# Check whether --enable-mmap or --disable-mmap was given. 10566if test "${enable_mmap+set}" = set; then 10567 enableval="$enable_mmap" 10568 10569fi; 10570case "$enable_mmap" in 10571 yes) 10572 10573for ac_header in sys/mman.h 10574do 10575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10576if eval "test \"\${$as_ac_Header+set}\" = set"; then 10577 echo "$as_me:$LINENO: checking for $ac_header" >&5 10578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10579if eval "test \"\${$as_ac_Header+set}\" = set"; then 10580 echo $ECHO_N "(cached) $ECHO_C" >&6 10581fi 10582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10584else 10585 # Is the header compilable? 10586echo "$as_me:$LINENO: checking $ac_header usability" >&5 10587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10588cat >conftest.$ac_ext <<_ACEOF 10589/* confdefs.h. */ 10590_ACEOF 10591cat confdefs.h >>conftest.$ac_ext 10592cat >>conftest.$ac_ext <<_ACEOF 10593/* end confdefs.h. */ 10594$ac_includes_default 10595#include <$ac_header> 10596_ACEOF 10597rm -f conftest.$ac_objext 10598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10599 (eval $ac_compile) 2>conftest.er1 10600 ac_status=$? 10601 grep -v '^ *+' conftest.er1 >conftest.err 10602 rm -f conftest.er1 10603 cat conftest.err >&5 10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10605 (exit $ac_status); } && 10606 { ac_try='test -z "$ac_c_werror_flag" 10607 || test ! -s conftest.err' 10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10609 (eval $ac_try) 2>&5 10610 ac_status=$? 10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10612 (exit $ac_status); }; } && 10613 { ac_try='test -s conftest.$ac_objext' 10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10615 (eval $ac_try) 2>&5 10616 ac_status=$? 10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10618 (exit $ac_status); }; }; then 10619 ac_header_compiler=yes 10620else 10621 echo "$as_me: failed program was:" >&5 10622sed 's/^/| /' conftest.$ac_ext >&5 10623 10624ac_header_compiler=no 10625fi 10626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10628echo "${ECHO_T}$ac_header_compiler" >&6 10629 10630# Is the header present? 10631echo "$as_me:$LINENO: checking $ac_header presence" >&5 10632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10633cat >conftest.$ac_ext <<_ACEOF 10634/* confdefs.h. */ 10635_ACEOF 10636cat confdefs.h >>conftest.$ac_ext 10637cat >>conftest.$ac_ext <<_ACEOF 10638/* end confdefs.h. */ 10639#include <$ac_header> 10640_ACEOF 10641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10643 ac_status=$? 10644 grep -v '^ *+' conftest.er1 >conftest.err 10645 rm -f conftest.er1 10646 cat conftest.err >&5 10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10648 (exit $ac_status); } >/dev/null; then 10649 if test -s conftest.err; then 10650 ac_cpp_err=$ac_c_preproc_warn_flag 10651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10652 else 10653 ac_cpp_err= 10654 fi 10655else 10656 ac_cpp_err=yes 10657fi 10658if test -z "$ac_cpp_err"; then 10659 ac_header_preproc=yes 10660else 10661 echo "$as_me: failed program was:" >&5 10662sed 's/^/| /' conftest.$ac_ext >&5 10663 10664 ac_header_preproc=no 10665fi 10666rm -f conftest.err conftest.$ac_ext 10667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10668echo "${ECHO_T}$ac_header_preproc" >&6 10669 10670# So? What about this header? 10671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10672 yes:no: ) 10673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10677 ac_header_preproc=yes 10678 ;; 10679 no:yes:* ) 10680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10692 ( 10693 cat <<\_ASBOX 10694## ------------------------------------ ## 10695## Report this to nsd-bugs@nlnetlabs.nl ## 10696## ------------------------------------ ## 10697_ASBOX 10698 ) | 10699 sed "s/^/$as_me: WARNING: /" >&2 10700 ;; 10701esac 10702echo "$as_me:$LINENO: checking for $ac_header" >&5 10703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10704if eval "test \"\${$as_ac_Header+set}\" = set"; then 10705 echo $ECHO_N "(cached) $ECHO_C" >&6 10706else 10707 eval "$as_ac_Header=\$ac_header_preproc" 10708fi 10709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10711 10712fi 10713if test `eval echo '${'$as_ac_Header'}'` = yes; then 10714 cat >>confdefs.h <<_ACEOF 10715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10716_ACEOF 10717 10718fi 10719 10720done 10721 10722 echo "$as_me:$LINENO: checking for uintptr_t" >&5 10723echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 10724if test "${ac_cv_type_uintptr_t+set}" = set; then 10725 echo $ECHO_N "(cached) $ECHO_C" >&6 10726else 10727 cat >conftest.$ac_ext <<_ACEOF 10728/* confdefs.h. */ 10729_ACEOF 10730cat confdefs.h >>conftest.$ac_ext 10731cat >>conftest.$ac_ext <<_ACEOF 10732/* end confdefs.h. */ 10733 10734#include <sys/types.h> 10735#if STDC_HEADERS 10736#include <stdlib.h> 10737#include <stddef.h> 10738#endif 10739 10740#ifdef HAVE_STDINT_H 10741#include <stdint.h> 10742#endif 10743 10744#ifdef HAVE_SYS_SOCKET_H 10745#include <sys/socket.h> 10746#endif 10747 10748#ifdef HAVE_ARPA_INET_H 10749#include <arpa/inet.h> 10750#endif 10751 10752#ifdef HAVE_SIGNAL_H 10753#include <signal.h> 10754#endif 10755 10756/* For Tru64 */ 10757#ifdef HAVE_SYS_BITYPES_H 10758#include <sys/bitypes.h> 10759#endif 10760 10761_ACEOF 10762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10763 $EGREP "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 10764 ac_cv_type_uintptr_t=yes 10765else 10766 ac_cv_type_uintptr_t=no 10767fi 10768rm -f conftest* 10769 10770fi 10771echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 10772echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 10773if test $ac_cv_type_uintptr_t = no; then 10774 10775cat >>confdefs.h <<\_ACEOF 10776#define uintptr_t void* 10777_ACEOF 10778 10779fi 10780 10781 10782 10783for ac_func in mmap munmap 10784do 10785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10786echo "$as_me:$LINENO: checking for $ac_func" >&5 10787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10788if eval "test \"\${$as_ac_var+set}\" = set"; then 10789 echo $ECHO_N "(cached) $ECHO_C" >&6 10790else 10791 cat >conftest.$ac_ext <<_ACEOF 10792/* confdefs.h. */ 10793_ACEOF 10794cat confdefs.h >>conftest.$ac_ext 10795cat >>conftest.$ac_ext <<_ACEOF 10796/* end confdefs.h. */ 10797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10798 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10799#define $ac_func innocuous_$ac_func 10800 10801/* System header to define __stub macros and hopefully few prototypes, 10802 which can conflict with char $ac_func (); below. 10803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10804 <limits.h> exists even on freestanding compilers. */ 10805 10806#ifdef __STDC__ 10807# include <limits.h> 10808#else 10809# include <assert.h> 10810#endif 10811 10812#undef $ac_func 10813 10814/* Override any gcc2 internal prototype to avoid an error. */ 10815#ifdef __cplusplus 10816extern "C" 10817{ 10818#endif 10819/* We use char because int might match the return type of a gcc2 10820 builtin and then its argument prototype would still apply. */ 10821char $ac_func (); 10822/* The GNU C library defines this for functions which it implements 10823 to always fail with ENOSYS. Some functions are actually named 10824 something starting with __ and the normal name is an alias. */ 10825#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10826choke me 10827#else 10828char (*f) () = $ac_func; 10829#endif 10830#ifdef __cplusplus 10831} 10832#endif 10833 10834int 10835main () 10836{ 10837return f != $ac_func; 10838 ; 10839 return 0; 10840} 10841_ACEOF 10842rm -f conftest.$ac_objext conftest$ac_exeext 10843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10844 (eval $ac_link) 2>conftest.er1 10845 ac_status=$? 10846 grep -v '^ *+' conftest.er1 >conftest.err 10847 rm -f conftest.er1 10848 cat conftest.err >&5 10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10850 (exit $ac_status); } && 10851 { ac_try='test -z "$ac_c_werror_flag" 10852 || test ! -s conftest.err' 10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10854 (eval $ac_try) 2>&5 10855 ac_status=$? 10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10857 (exit $ac_status); }; } && 10858 { ac_try='test -s conftest$ac_exeext' 10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10860 (eval $ac_try) 2>&5 10861 ac_status=$? 10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10863 (exit $ac_status); }; }; then 10864 eval "$as_ac_var=yes" 10865else 10866 echo "$as_me: failed program was:" >&5 10867sed 's/^/| /' conftest.$ac_ext >&5 10868 10869eval "$as_ac_var=no" 10870fi 10871rm -f conftest.err conftest.$ac_objext \ 10872 conftest$ac_exeext conftest.$ac_ext 10873fi 10874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10876if test `eval echo '${'$as_ac_var'}'` = yes; then 10877 cat >>confdefs.h <<_ACEOF 10878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10879_ACEOF 10880 10881fi 10882done 10883 10884 10885cat >>confdefs.h <<_ACEOF 10886#define USE_MMAP_ALLOC 10887_ACEOF 10888 10889 ;; 10890 no|*) 10891 ;; 10892esac 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909if test $ac_cv_func_getaddrinfo = no; then 10910case $LIBOBJS in 10911 "fake-rfc2553.$ac_objext" | \ 10912 *" fake-rfc2553.$ac_objext" | \ 10913 "fake-rfc2553.$ac_objext "* | \ 10914 *" fake-rfc2553.$ac_objext "* ) ;; 10915 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" ;; 10916esac 10917 10918fi 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930# big fat warning 10931if test "$enable_checking" = "yes"; then 10932 echo "************************************************" 10933 echo "* You have activated \"--enable-checking\" *" 10934 echo "* *" 10935 echo "* This will instruct NSD to be stricter *" 10936 echo "* when validating its input. This could lead *" 10937 echo "* to a reduced service level. *" 10938 echo "* *" 10939 echo "************************************************" 10940fi 10941 10942 ac_config_files="$ac_config_files Makefile" 10943 10944cat >confcache <<\_ACEOF 10945# This file is a shell script that caches the results of configure 10946# tests run on this system so they can be shared between configure 10947# scripts and configure runs, see configure's option --config-cache. 10948# It is not useful on other systems. If it contains results you don't 10949# want to keep, you may remove or edit it. 10950# 10951# config.status only pays attention to the cache file if you give it 10952# the --recheck option to rerun configure. 10953# 10954# `ac_cv_env_foo' variables (set or unset) will be overridden when 10955# loading this file, other *unset* `ac_cv_foo' will be assigned the 10956# following values. 10957 10958_ACEOF 10959 10960# The following way of writing the cache mishandles newlines in values, 10961# but we know of no workaround that is simple, portable, and efficient. 10962# So, don't put newlines in cache variables' values. 10963# Ultrix sh set writes to stderr and can't be redirected directly, 10964# and sets the high bit in the cache file unless we assign to the vars. 10965{ 10966 (set) 2>&1 | 10967 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10968 *ac_space=\ *) 10969 # `set' does not quote correctly, so add quotes (double-quote 10970 # substitution turns \\\\ into \\, and sed turns \\ into \). 10971 sed -n \ 10972 "s/'/'\\\\''/g; 10973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10974 ;; 10975 *) 10976 # `set' quotes correctly as required by POSIX, so do not add quotes. 10977 sed -n \ 10978 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 10979 ;; 10980 esac; 10981} | 10982 sed ' 10983 t clear 10984 : clear 10985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10986 t end 10987 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10988 : end' >>confcache 10989if diff $cache_file confcache >/dev/null 2>&1; then :; else 10990 if test -w $cache_file; then 10991 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 10992 cat confcache >$cache_file 10993 else 10994 echo "not updating unwritable cache $cache_file" 10995 fi 10996fi 10997rm -f confcache 10998 10999test "x$prefix" = xNONE && prefix=$ac_default_prefix 11000# Let make expand exec_prefix. 11001test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11002 11003# VPATH may cause trouble with some makes, so we remove $(srcdir), 11004# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11005# trailing colons and then remove the whole line if VPATH becomes empty 11006# (actually we leave an empty line to preserve line numbers). 11007if test "x$srcdir" = x.; then 11008 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11009s/:*\$(srcdir):*/:/; 11010s/:*\${srcdir}:*/:/; 11011s/:*@srcdir@:*/:/; 11012s/^\([^=]*=[ ]*\):*/\1/; 11013s/:*$//; 11014s/^[^=]*=[ ]*$//; 11015}' 11016fi 11017 11018DEFS=-DHAVE_CONFIG_H 11019 11020ac_libobjs= 11021ac_ltlibobjs= 11022for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11023 # 1. Remove the extension, and $U if already installed. 11024 ac_i=`echo "$ac_i" | 11025 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11026 # 2. Add them. 11027 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11028 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11029done 11030LIBOBJS=$ac_libobjs 11031 11032LTLIBOBJS=$ac_ltlibobjs 11033 11034 11035 11036: ${CONFIG_STATUS=./config.status} 11037ac_clean_files_save=$ac_clean_files 11038ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11039{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11040echo "$as_me: creating $CONFIG_STATUS" >&6;} 11041cat >$CONFIG_STATUS <<_ACEOF 11042#! $SHELL 11043# Generated by $as_me. 11044# Run this file to recreate the current configuration. 11045# Compiler output produced by configure, useful for debugging 11046# configure, is in config.log if it exists. 11047 11048debug=false 11049ac_cs_recheck=false 11050ac_cs_silent=false 11051SHELL=\${CONFIG_SHELL-$SHELL} 11052_ACEOF 11053 11054cat >>$CONFIG_STATUS <<\_ACEOF 11055## --------------------- ## 11056## M4sh Initialization. ## 11057## --------------------- ## 11058 11059# Be Bourne compatible 11060if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11061 emulate sh 11062 NULLCMD=: 11063 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11064 # is contrary to our usage. Disable this feature. 11065 alias -g '${1+"$@"}'='"$@"' 11066elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11067 set -o posix 11068fi 11069DUALCASE=1; export DUALCASE # for MKS sh 11070 11071# Support unset when possible. 11072if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11073 as_unset=unset 11074else 11075 as_unset=false 11076fi 11077 11078 11079# Work around bugs in pre-3.0 UWIN ksh. 11080$as_unset ENV MAIL MAILPATH 11081PS1='$ ' 11082PS2='> ' 11083PS4='+ ' 11084 11085# NLS nuisances. 11086for as_var in \ 11087 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11088 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11089 LC_TELEPHONE LC_TIME 11090do 11091 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11092 eval $as_var=C; export $as_var 11093 else 11094 $as_unset $as_var 11095 fi 11096done 11097 11098# Required to use basename. 11099if expr a : '\(a\)' >/dev/null 2>&1; then 11100 as_expr=expr 11101else 11102 as_expr=false 11103fi 11104 11105if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11106 as_basename=basename 11107else 11108 as_basename=false 11109fi 11110 11111 11112# Name of the executable. 11113as_me=`$as_basename "$0" || 11114$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11115 X"$0" : 'X\(//\)$' \| \ 11116 X"$0" : 'X\(/\)$' \| \ 11117 . : '\(.\)' 2>/dev/null || 11118echo X/"$0" | 11119 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11120 /^X\/\(\/\/\)$/{ s//\1/; q; } 11121 /^X\/\(\/\).*/{ s//\1/; q; } 11122 s/.*/./; q'` 11123 11124 11125# PATH needs CR, and LINENO needs CR and PATH. 11126# Avoid depending upon Character Ranges. 11127as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11129as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11130as_cr_digits='0123456789' 11131as_cr_alnum=$as_cr_Letters$as_cr_digits 11132 11133# The user is always right. 11134if test "${PATH_SEPARATOR+set}" != set; then 11135 echo "#! /bin/sh" >conf$$.sh 11136 echo "exit 0" >>conf$$.sh 11137 chmod +x conf$$.sh 11138 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11139 PATH_SEPARATOR=';' 11140 else 11141 PATH_SEPARATOR=: 11142 fi 11143 rm -f conf$$.sh 11144fi 11145 11146 11147 as_lineno_1=$LINENO 11148 as_lineno_2=$LINENO 11149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11150 test "x$as_lineno_1" != "x$as_lineno_2" && 11151 test "x$as_lineno_3" = "x$as_lineno_2" || { 11152 # Find who we are. Look in the path if we contain no path at all 11153 # relative or not. 11154 case $0 in 11155 *[\\/]* ) as_myself=$0 ;; 11156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11157for as_dir in $PATH 11158do 11159 IFS=$as_save_IFS 11160 test -z "$as_dir" && as_dir=. 11161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11162done 11163 11164 ;; 11165 esac 11166 # We did not find ourselves, most probably we were run as `sh COMMAND' 11167 # in which case we are not to be found in the path. 11168 if test "x$as_myself" = x; then 11169 as_myself=$0 11170 fi 11171 if test ! -f "$as_myself"; then 11172 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11173echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11174 { (exit 1); exit 1; }; } 11175 fi 11176 case $CONFIG_SHELL in 11177 '') 11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11179for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11180do 11181 IFS=$as_save_IFS 11182 test -z "$as_dir" && as_dir=. 11183 for as_base in sh bash ksh sh5; do 11184 case $as_dir in 11185 /*) 11186 if ("$as_dir/$as_base" -c ' 11187 as_lineno_1=$LINENO 11188 as_lineno_2=$LINENO 11189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11190 test "x$as_lineno_1" != "x$as_lineno_2" && 11191 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11192 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11193 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11194 CONFIG_SHELL=$as_dir/$as_base 11195 export CONFIG_SHELL 11196 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11197 fi;; 11198 esac 11199 done 11200done 11201;; 11202 esac 11203 11204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11205 # uniformly replaced by the line number. The first 'sed' inserts a 11206 # line-number line before each line; the second 'sed' does the real 11207 # work. The second script uses 'N' to pair each line-number line 11208 # with the numbered line, and appends trailing '-' during 11209 # substitution so that $LINENO is not a special case at line end. 11210 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11211 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11212 sed '=' <$as_myself | 11213 sed ' 11214 N 11215 s,$,-, 11216 : loop 11217 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11218 t loop 11219 s,-$,, 11220 s,^['$as_cr_digits']*\n,, 11221 ' >$as_me.lineno && 11222 chmod +x $as_me.lineno || 11223 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11224echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11225 { (exit 1); exit 1; }; } 11226 11227 # Don't try to exec as it changes $[0], causing all sort of problems 11228 # (the dirname of $[0] is not the place where we might find the 11229 # original and so on. Autoconf is especially sensible to this). 11230 . ./$as_me.lineno 11231 # Exit status is that of the last command. 11232 exit 11233} 11234 11235 11236case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11237 *c*,-n*) ECHO_N= ECHO_C=' 11238' ECHO_T=' ' ;; 11239 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11240 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11241esac 11242 11243if expr a : '\(a\)' >/dev/null 2>&1; then 11244 as_expr=expr 11245else 11246 as_expr=false 11247fi 11248 11249rm -f conf$$ conf$$.exe conf$$.file 11250echo >conf$$.file 11251if ln -s conf$$.file conf$$ 2>/dev/null; then 11252 # We could just check for DJGPP; but this test a) works b) is more generic 11253 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11254 if test -f conf$$.exe; then 11255 # Don't use ln at all; we don't have any links 11256 as_ln_s='cp -p' 11257 else 11258 as_ln_s='ln -s' 11259 fi 11260elif ln conf$$.file conf$$ 2>/dev/null; then 11261 as_ln_s=ln 11262else 11263 as_ln_s='cp -p' 11264fi 11265rm -f conf$$ conf$$.exe conf$$.file 11266 11267if mkdir -p . 2>/dev/null; then 11268 as_mkdir_p=: 11269else 11270 test -d ./-p && rmdir ./-p 11271 as_mkdir_p=false 11272fi 11273 11274as_executable_p="test -f" 11275 11276# Sed expression to map a string onto a valid CPP name. 11277as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11278 11279# Sed expression to map a string onto a valid variable name. 11280as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11281 11282 11283# IFS 11284# We need space, tab and new line, in precisely that order. 11285as_nl=' 11286' 11287IFS=" $as_nl" 11288 11289# CDPATH. 11290$as_unset CDPATH 11291 11292exec 6>&1 11293 11294# Open the log real soon, to keep \$[0] and so on meaningful, and to 11295# report actual input values of CONFIG_FILES etc. instead of their 11296# values after options handling. Logging --version etc. is OK. 11297exec 5>>config.log 11298{ 11299 echo 11300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11301## Running $as_me. ## 11302_ASBOX 11303} >&5 11304cat >&5 <<_CSEOF 11305 11306This file was extended by NSD $as_me 3.2.8, which was 11307generated by GNU Autoconf 2.59. Invocation command line was 11308 11309 CONFIG_FILES = $CONFIG_FILES 11310 CONFIG_HEADERS = $CONFIG_HEADERS 11311 CONFIG_LINKS = $CONFIG_LINKS 11312 CONFIG_COMMANDS = $CONFIG_COMMANDS 11313 $ $0 $@ 11314 11315_CSEOF 11316echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11317echo >&5 11318_ACEOF 11319 11320# Files that config.status was made for. 11321if test -n "$ac_config_files"; then 11322 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11323fi 11324 11325if test -n "$ac_config_headers"; then 11326 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11327fi 11328 11329if test -n "$ac_config_links"; then 11330 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11331fi 11332 11333if test -n "$ac_config_commands"; then 11334 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11335fi 11336 11337cat >>$CONFIG_STATUS <<\_ACEOF 11338 11339ac_cs_usage="\ 11340\`$as_me' instantiates files from templates according to the 11341current configuration. 11342 11343Usage: $0 [OPTIONS] [FILE]... 11344 11345 -h, --help print this help, then exit 11346 -V, --version print version number, then exit 11347 -q, --quiet do not print progress messages 11348 -d, --debug don't remove temporary files 11349 --recheck update $as_me by reconfiguring in the same conditions 11350 --file=FILE[:TEMPLATE] 11351 instantiate the configuration file FILE 11352 --header=FILE[:TEMPLATE] 11353 instantiate the configuration header FILE 11354 11355Configuration files: 11356$config_files 11357 11358Configuration headers: 11359$config_headers 11360 11361Report bugs to <bug-autoconf@gnu.org>." 11362_ACEOF 11363 11364cat >>$CONFIG_STATUS <<_ACEOF 11365ac_cs_version="\\ 11366NSD config.status 3.2.8 11367configured by $0, generated by GNU Autoconf 2.59, 11368 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11369 11370Copyright (C) 2003 Free Software Foundation, Inc. 11371This config.status script is free software; the Free Software Foundation 11372gives unlimited permission to copy, distribute and modify it." 11373srcdir=$srcdir 11374INSTALL="$INSTALL" 11375_ACEOF 11376 11377cat >>$CONFIG_STATUS <<\_ACEOF 11378# If no file are specified by the user, then we need to provide default 11379# value. By we need to know if files were specified by the user. 11380ac_need_defaults=: 11381while test $# != 0 11382do 11383 case $1 in 11384 --*=*) 11385 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11386 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11387 ac_shift=: 11388 ;; 11389 -*) 11390 ac_option=$1 11391 ac_optarg=$2 11392 ac_shift=shift 11393 ;; 11394 *) # This is not an option, so the user has probably given explicit 11395 # arguments. 11396 ac_option=$1 11397 ac_need_defaults=false;; 11398 esac 11399 11400 case $ac_option in 11401 # Handling of the options. 11402_ACEOF 11403cat >>$CONFIG_STATUS <<\_ACEOF 11404 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11405 ac_cs_recheck=: ;; 11406 --version | --vers* | -V ) 11407 echo "$ac_cs_version"; exit 0 ;; 11408 --he | --h) 11409 # Conflict between --help and --header 11410 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11411Try \`$0 --help' for more information." >&5 11412echo "$as_me: error: ambiguous option: $1 11413Try \`$0 --help' for more information." >&2;} 11414 { (exit 1); exit 1; }; };; 11415 --help | --hel | -h ) 11416 echo "$ac_cs_usage"; exit 0 ;; 11417 --debug | --d* | -d ) 11418 debug=: ;; 11419 --file | --fil | --fi | --f ) 11420 $ac_shift 11421 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11422 ac_need_defaults=false;; 11423 --header | --heade | --head | --hea ) 11424 $ac_shift 11425 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11426 ac_need_defaults=false;; 11427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11428 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11429 ac_cs_silent=: ;; 11430 11431 # This is an error. 11432 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11433Try \`$0 --help' for more information." >&5 11434echo "$as_me: error: unrecognized option: $1 11435Try \`$0 --help' for more information." >&2;} 11436 { (exit 1); exit 1; }; } ;; 11437 11438 *) ac_config_targets="$ac_config_targets $1" ;; 11439 11440 esac 11441 shift 11442done 11443 11444ac_configure_extra_args= 11445 11446if $ac_cs_silent; then 11447 exec 6>/dev/null 11448 ac_configure_extra_args="$ac_configure_extra_args --silent" 11449fi 11450 11451_ACEOF 11452cat >>$CONFIG_STATUS <<_ACEOF 11453if \$ac_cs_recheck; then 11454 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11455 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11456fi 11457 11458_ACEOF 11459 11460 11461 11462 11463 11464cat >>$CONFIG_STATUS <<\_ACEOF 11465for ac_config_target in $ac_config_targets 11466do 11467 case "$ac_config_target" in 11468 # Handling of arguments. 11469 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11470 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11472echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11473 { (exit 1); exit 1; }; };; 11474 esac 11475done 11476 11477# If the user did not use the arguments to specify the items to instantiate, 11478# then the envvar interface is used. Set only those that are not. 11479# We use the long form for the default assignment because of an extremely 11480# bizarre bug on SunOS 4.1.3. 11481if $ac_need_defaults; then 11482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11484fi 11485 11486# Have a temporary directory for convenience. Make it in the build tree 11487# simply because there is no reason to put it here, and in addition, 11488# creating and moving files from /tmp can sometimes cause problems. 11489# Create a temporary directory, and hook for its removal unless debugging. 11490$debug || 11491{ 11492 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 11493 trap '{ (exit 1); exit 1; }' 1 2 13 15 11494} 11495 11496# Create a (secure) tmp directory for tmp files. 11497 11498{ 11499 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 11500 test -n "$tmp" && test -d "$tmp" 11501} || 11502{ 11503 tmp=./confstat$$-$RANDOM 11504 (umask 077 && mkdir $tmp) 11505} || 11506{ 11507 echo "$me: cannot create a temporary directory in ." >&2 11508 { (exit 1); exit 1; } 11509} 11510 11511_ACEOF 11512 11513cat >>$CONFIG_STATUS <<_ACEOF 11514 11515# 11516# CONFIG_FILES section. 11517# 11518 11519# No need to generate the scripts if there are no CONFIG_FILES. 11520# This happens for instance when ./config.status config.h 11521if test -n "\$CONFIG_FILES"; then 11522 # Protect against being on the right side of a sed subst in config.status. 11523 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11524 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11525s,@SHELL@,$SHELL,;t t 11526s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11527s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11528s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11529s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11530s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11531s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11532s,@exec_prefix@,$exec_prefix,;t t 11533s,@prefix@,$prefix,;t t 11534s,@program_transform_name@,$program_transform_name,;t t 11535s,@bindir@,$bindir,;t t 11536s,@sbindir@,$sbindir,;t t 11537s,@libexecdir@,$libexecdir,;t t 11538s,@datadir@,$datadir,;t t 11539s,@sysconfdir@,$sysconfdir,;t t 11540s,@sharedstatedir@,$sharedstatedir,;t t 11541s,@localstatedir@,$localstatedir,;t t 11542s,@libdir@,$libdir,;t t 11543s,@includedir@,$includedir,;t t 11544s,@oldincludedir@,$oldincludedir,;t t 11545s,@infodir@,$infodir,;t t 11546s,@mandir@,$mandir,;t t 11547s,@build_alias@,$build_alias,;t t 11548s,@host_alias@,$host_alias,;t t 11549s,@target_alias@,$target_alias,;t t 11550s,@DEFS@,$DEFS,;t t 11551s,@ECHO_C@,$ECHO_C,;t t 11552s,@ECHO_N@,$ECHO_N,;t t 11553s,@ECHO_T@,$ECHO_T,;t t 11554s,@LIBS@,$LIBS,;t t 11555s,@CC@,$CC,;t t 11556s,@CFLAGS@,$CFLAGS,;t t 11557s,@LDFLAGS@,$LDFLAGS,;t t 11558s,@CPPFLAGS@,$CPPFLAGS,;t t 11559s,@ac_ct_CC@,$ac_ct_CC,;t t 11560s,@EXEEXT@,$EXEEXT,;t t 11561s,@OBJEXT@,$OBJEXT,;t t 11562s,@CPP@,$CPP,;t t 11563s,@EGREP@,$EGREP,;t t 11564s,@configdir@,$configdir,;t t 11565s,@nsd_conf_file@,$nsd_conf_file,;t t 11566s,@start_priority@,$start_priority,;t t 11567s,@kill_priority@,$kill_priority,;t t 11568s,@pidfile@,$pidfile,;t t 11569s,@dbfile@,$dbfile,;t t 11570s,@dbdir@,$dbdir,;t t 11571s,@piddir@,$piddir,;t t 11572s,@zonesdir@,$zonesdir,;t t 11573s,@difffile@,$difffile,;t t 11574s,@xfrdfile@,$xfrdfile,;t t 11575s,@user@,$user,;t t 11576s,@AWK@,$AWK,;t t 11577s,@LN_S@,$LN_S,;t t 11578s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11579s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 11580s,@INSTALL_DATA@,$INSTALL_DATA,;t t 11581s,@LEX@,$LEX,;t t 11582s,@LEXLIB@,$LEXLIB,;t t 11583s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 11584s,@YACC@,$YACC,;t t 11585s,@LIBOBJS@,$LIBOBJS,;t t 11586s,@HAVE_SSL@,$HAVE_SSL,;t t 11587s,@LTLIBOBJS@,$LTLIBOBJS,;t t 11588CEOF 11589 11590_ACEOF 11591 11592 cat >>$CONFIG_STATUS <<\_ACEOF 11593 # Split the substitutions into bite-sized pieces for seds with 11594 # small command number limits, like on Digital OSF/1 and HP-UX. 11595 ac_max_sed_lines=48 11596 ac_sed_frag=1 # Number of current file. 11597 ac_beg=1 # First line for current file. 11598 ac_end=$ac_max_sed_lines # Line after last line for current file. 11599 ac_more_lines=: 11600 ac_sed_cmds= 11601 while $ac_more_lines; do 11602 if test $ac_beg -gt 1; then 11603 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11604 else 11605 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11606 fi 11607 if test ! -s $tmp/subs.frag; then 11608 ac_more_lines=false 11609 else 11610 # The purpose of the label and of the branching condition is to 11611 # speed up the sed processing (if there are no `@' at all, there 11612 # is no need to browse any of the substitutions). 11613 # These are the two extra sed commands mentioned above. 11614 (echo ':t 11615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 11616 if test -z "$ac_sed_cmds"; then 11617 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 11618 else 11619 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 11620 fi 11621 ac_sed_frag=`expr $ac_sed_frag + 1` 11622 ac_beg=$ac_end 11623 ac_end=`expr $ac_end + $ac_max_sed_lines` 11624 fi 11625 done 11626 if test -z "$ac_sed_cmds"; then 11627 ac_sed_cmds=cat 11628 fi 11629fi # test -n "$CONFIG_FILES" 11630 11631_ACEOF 11632cat >>$CONFIG_STATUS <<\_ACEOF 11633for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 11634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11635 case $ac_file in 11636 - | *:- | *:-:* ) # input from stdin 11637 cat >$tmp/stdin 11638 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11639 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11640 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11642 * ) ac_file_in=$ac_file.in ;; 11643 esac 11644 11645 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 11646 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11647$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11648 X"$ac_file" : 'X\(//\)[^/]' \| \ 11649 X"$ac_file" : 'X\(//\)$' \| \ 11650 X"$ac_file" : 'X\(/\)' \| \ 11651 . : '\(.\)' 2>/dev/null || 11652echo X"$ac_file" | 11653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11654 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11655 /^X\(\/\/\)$/{ s//\1/; q; } 11656 /^X\(\/\).*/{ s//\1/; q; } 11657 s/.*/./; q'` 11658 { if $as_mkdir_p; then 11659 mkdir -p "$ac_dir" 11660 else 11661 as_dir="$ac_dir" 11662 as_dirs= 11663 while test ! -d "$as_dir"; do 11664 as_dirs="$as_dir $as_dirs" 11665 as_dir=`(dirname "$as_dir") 2>/dev/null || 11666$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11667 X"$as_dir" : 'X\(//\)[^/]' \| \ 11668 X"$as_dir" : 'X\(//\)$' \| \ 11669 X"$as_dir" : 'X\(/\)' \| \ 11670 . : '\(.\)' 2>/dev/null || 11671echo X"$as_dir" | 11672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11673 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11674 /^X\(\/\/\)$/{ s//\1/; q; } 11675 /^X\(\/\).*/{ s//\1/; q; } 11676 s/.*/./; q'` 11677 done 11678 test ! -n "$as_dirs" || mkdir $as_dirs 11679 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11680echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11681 { (exit 1); exit 1; }; }; } 11682 11683 ac_builddir=. 11684 11685if test "$ac_dir" != .; then 11686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11687 # A "../" for each directory in $ac_dir_suffix. 11688 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11689else 11690 ac_dir_suffix= ac_top_builddir= 11691fi 11692 11693case $srcdir in 11694 .) # No --srcdir option. We are building in place. 11695 ac_srcdir=. 11696 if test -z "$ac_top_builddir"; then 11697 ac_top_srcdir=. 11698 else 11699 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11700 fi ;; 11701 [\\/]* | ?:[\\/]* ) # Absolute path. 11702 ac_srcdir=$srcdir$ac_dir_suffix; 11703 ac_top_srcdir=$srcdir ;; 11704 *) # Relative path. 11705 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11706 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11707esac 11708 11709# Do not use `cd foo && pwd` to compute absolute paths, because 11710# the directories may not exist. 11711case `pwd` in 11712.) ac_abs_builddir="$ac_dir";; 11713*) 11714 case "$ac_dir" in 11715 .) ac_abs_builddir=`pwd`;; 11716 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 11717 *) ac_abs_builddir=`pwd`/"$ac_dir";; 11718 esac;; 11719esac 11720case $ac_abs_builddir in 11721.) ac_abs_top_builddir=${ac_top_builddir}.;; 11722*) 11723 case ${ac_top_builddir}. in 11724 .) ac_abs_top_builddir=$ac_abs_builddir;; 11725 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 11726 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 11727 esac;; 11728esac 11729case $ac_abs_builddir in 11730.) ac_abs_srcdir=$ac_srcdir;; 11731*) 11732 case $ac_srcdir in 11733 .) ac_abs_srcdir=$ac_abs_builddir;; 11734 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 11735 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 11736 esac;; 11737esac 11738case $ac_abs_builddir in 11739.) ac_abs_top_srcdir=$ac_top_srcdir;; 11740*) 11741 case $ac_top_srcdir in 11742 .) ac_abs_top_srcdir=$ac_abs_builddir;; 11743 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 11744 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 11745 esac;; 11746esac 11747 11748 11749 case $INSTALL in 11750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11751 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 11752 esac 11753 11754 if test x"$ac_file" != x-; then 11755 { echo "$as_me:$LINENO: creating $ac_file" >&5 11756echo "$as_me: creating $ac_file" >&6;} 11757 rm -f "$ac_file" 11758 fi 11759 # Let's still pretend it is `configure' which instantiates (i.e., don't 11760 # use $as_me), people would be surprised to read: 11761 # /* config.h. Generated by config.status. */ 11762 if test x"$ac_file" = x-; then 11763 configure_input= 11764 else 11765 configure_input="$ac_file. " 11766 fi 11767 configure_input=$configure_input"Generated from `echo $ac_file_in | 11768 sed 's,.*/,,'` by configure." 11769 11770 # First look for the input files in the build tree, otherwise in the 11771 # src tree. 11772 ac_file_inputs=`IFS=: 11773 for f in $ac_file_in; do 11774 case $f in 11775 -) echo $tmp/stdin ;; 11776 [\\/$]*) 11777 # Absolute (can't be DOS-style, as IFS=:) 11778 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11779echo "$as_me: error: cannot find input file: $f" >&2;} 11780 { (exit 1); exit 1; }; } 11781 echo "$f";; 11782 *) # Relative 11783 if test -f "$f"; then 11784 # Build tree 11785 echo "$f" 11786 elif test -f "$srcdir/$f"; then 11787 # Source tree 11788 echo "$srcdir/$f" 11789 else 11790 # /dev/null tree 11791 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11792echo "$as_me: error: cannot find input file: $f" >&2;} 11793 { (exit 1); exit 1; }; } 11794 fi;; 11795 esac 11796 done` || { (exit 1); exit 1; } 11797_ACEOF 11798cat >>$CONFIG_STATUS <<_ACEOF 11799 sed "$ac_vpsub 11800$extrasub 11801_ACEOF 11802cat >>$CONFIG_STATUS <<\_ACEOF 11803:t 11804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11805s,@configure_input@,$configure_input,;t t 11806s,@srcdir@,$ac_srcdir,;t t 11807s,@abs_srcdir@,$ac_abs_srcdir,;t t 11808s,@top_srcdir@,$ac_top_srcdir,;t t 11809s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 11810s,@builddir@,$ac_builddir,;t t 11811s,@abs_builddir@,$ac_abs_builddir,;t t 11812s,@top_builddir@,$ac_top_builddir,;t t 11813s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 11814s,@INSTALL@,$ac_INSTALL,;t t 11815" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 11816 rm -f $tmp/stdin 11817 if test x"$ac_file" != x-; then 11818 mv $tmp/out $ac_file 11819 else 11820 cat $tmp/out 11821 rm -f $tmp/out 11822 fi 11823 11824done 11825_ACEOF 11826cat >>$CONFIG_STATUS <<\_ACEOF 11827 11828# 11829# CONFIG_HEADER section. 11830# 11831 11832# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 11833# NAME is the cpp macro being defined and VALUE is the value it is being given. 11834# 11835# ac_d sets the value in "#define NAME VALUE" lines. 11836ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 11837ac_dB='[ ].*$,\1#\2' 11838ac_dC=' ' 11839ac_dD=',;t' 11840# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 11841ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 11842ac_uB='$,\1#\2define\3' 11843ac_uC=' ' 11844ac_uD=',;t' 11845 11846for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 11847 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11848 case $ac_file in 11849 - | *:- | *:-:* ) # input from stdin 11850 cat >$tmp/stdin 11851 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11853 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11855 * ) ac_file_in=$ac_file.in ;; 11856 esac 11857 11858 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 11859echo "$as_me: creating $ac_file" >&6;} 11860 11861 # First look for the input files in the build tree, otherwise in the 11862 # src tree. 11863 ac_file_inputs=`IFS=: 11864 for f in $ac_file_in; do 11865 case $f in 11866 -) echo $tmp/stdin ;; 11867 [\\/$]*) 11868 # Absolute (can't be DOS-style, as IFS=:) 11869 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11870echo "$as_me: error: cannot find input file: $f" >&2;} 11871 { (exit 1); exit 1; }; } 11872 # Do quote $f, to prevent DOS paths from being IFS'd. 11873 echo "$f";; 11874 *) # Relative 11875 if test -f "$f"; then 11876 # Build tree 11877 echo "$f" 11878 elif test -f "$srcdir/$f"; then 11879 # Source tree 11880 echo "$srcdir/$f" 11881 else 11882 # /dev/null tree 11883 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11884echo "$as_me: error: cannot find input file: $f" >&2;} 11885 { (exit 1); exit 1; }; } 11886 fi;; 11887 esac 11888 done` || { (exit 1); exit 1; } 11889 # Remove the trailing spaces. 11890 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 11891 11892_ACEOF 11893 11894# Transform confdefs.h into two sed scripts, `conftest.defines' and 11895# `conftest.undefs', that substitutes the proper values into 11896# config.h.in to produce config.h. The first handles `#define' 11897# templates, and the second `#undef' templates. 11898# And first: Protect against being on the right side of a sed subst in 11899# config.status. Protect against being in an unquoted here document 11900# in config.status. 11901rm -f conftest.defines conftest.undefs 11902# Using a here document instead of a string reduces the quoting nightmare. 11903# Putting comments in sed scripts is not portable. 11904# 11905# `end' is used to avoid that the second main sed command (meant for 11906# 0-ary CPP macros) applies to n-ary macro definitions. 11907# See the Autoconf documentation for `clear'. 11908cat >confdef2sed.sed <<\_ACEOF 11909s/[\\&,]/\\&/g 11910s,[\\$`],\\&,g 11911t clear 11912: clear 11913s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 11914t end 11915s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 11916: end 11917_ACEOF 11918# If some macros were called several times there might be several times 11919# the same #defines, which is useless. Nevertheless, we may not want to 11920# sort them, since we want the *last* AC-DEFINE to be honored. 11921uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 11922sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 11923rm -f confdef2sed.sed 11924 11925# This sed command replaces #undef with comments. This is necessary, for 11926# example, in the case of _POSIX_SOURCE, which is predefined and required 11927# on some systems where configure will not decide to define it. 11928cat >>conftest.undefs <<\_ACEOF 11929s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 11930_ACEOF 11931 11932# Break up conftest.defines because some shells have a limit on the size 11933# of here documents, and old seds have small limits too (100 cmds). 11934echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 11935echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 11936echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 11937echo ' :' >>$CONFIG_STATUS 11938rm -f conftest.tail 11939while grep . conftest.defines >/dev/null 11940do 11941 # Write a limited-size here document to $tmp/defines.sed. 11942 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 11943 # Speed up: don't consider the non `#define' lines. 11944 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 11945 # Work around the forget-to-reset-the-flag bug. 11946 echo 't clr' >>$CONFIG_STATUS 11947 echo ': clr' >>$CONFIG_STATUS 11948 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 11949 echo 'CEOF 11950 sed -f $tmp/defines.sed $tmp/in >$tmp/out 11951 rm -f $tmp/in 11952 mv $tmp/out $tmp/in 11953' >>$CONFIG_STATUS 11954 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 11955 rm -f conftest.defines 11956 mv conftest.tail conftest.defines 11957done 11958rm -f conftest.defines 11959echo ' fi # grep' >>$CONFIG_STATUS 11960echo >>$CONFIG_STATUS 11961 11962# Break up conftest.undefs because some shells have a limit on the size 11963# of here documents, and old seds have small limits too (100 cmds). 11964echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 11965rm -f conftest.tail 11966while grep . conftest.undefs >/dev/null 11967do 11968 # Write a limited-size here document to $tmp/undefs.sed. 11969 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 11970 # Speed up: don't consider the non `#undef' 11971 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 11972 # Work around the forget-to-reset-the-flag bug. 11973 echo 't clr' >>$CONFIG_STATUS 11974 echo ': clr' >>$CONFIG_STATUS 11975 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 11976 echo 'CEOF 11977 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 11978 rm -f $tmp/in 11979 mv $tmp/out $tmp/in 11980' >>$CONFIG_STATUS 11981 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 11982 rm -f conftest.undefs 11983 mv conftest.tail conftest.undefs 11984done 11985rm -f conftest.undefs 11986 11987cat >>$CONFIG_STATUS <<\_ACEOF 11988 # Let's still pretend it is `configure' which instantiates (i.e., don't 11989 # use $as_me), people would be surprised to read: 11990 # /* config.h. Generated by config.status. */ 11991 if test x"$ac_file" = x-; then 11992 echo "/* Generated by configure. */" >$tmp/config.h 11993 else 11994 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 11995 fi 11996 cat $tmp/in >>$tmp/config.h 11997 rm -f $tmp/in 11998 if test x"$ac_file" != x-; then 11999 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 12000 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12001echo "$as_me: $ac_file is unchanged" >&6;} 12002 else 12003 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12004$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12005 X"$ac_file" : 'X\(//\)[^/]' \| \ 12006 X"$ac_file" : 'X\(//\)$' \| \ 12007 X"$ac_file" : 'X\(/\)' \| \ 12008 . : '\(.\)' 2>/dev/null || 12009echo X"$ac_file" | 12010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12011 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12012 /^X\(\/\/\)$/{ s//\1/; q; } 12013 /^X\(\/\).*/{ s//\1/; q; } 12014 s/.*/./; q'` 12015 { if $as_mkdir_p; then 12016 mkdir -p "$ac_dir" 12017 else 12018 as_dir="$ac_dir" 12019 as_dirs= 12020 while test ! -d "$as_dir"; do 12021 as_dirs="$as_dir $as_dirs" 12022 as_dir=`(dirname "$as_dir") 2>/dev/null || 12023$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12024 X"$as_dir" : 'X\(//\)[^/]' \| \ 12025 X"$as_dir" : 'X\(//\)$' \| \ 12026 X"$as_dir" : 'X\(/\)' \| \ 12027 . : '\(.\)' 2>/dev/null || 12028echo X"$as_dir" | 12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12030 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12031 /^X\(\/\/\)$/{ s//\1/; q; } 12032 /^X\(\/\).*/{ s//\1/; q; } 12033 s/.*/./; q'` 12034 done 12035 test ! -n "$as_dirs" || mkdir $as_dirs 12036 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12037echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12038 { (exit 1); exit 1; }; }; } 12039 12040 rm -f $ac_file 12041 mv $tmp/config.h $ac_file 12042 fi 12043 else 12044 cat $tmp/config.h 12045 rm -f $tmp/config.h 12046 fi 12047done 12048_ACEOF 12049 12050cat >>$CONFIG_STATUS <<\_ACEOF 12051 12052{ (exit 0); exit 0; } 12053_ACEOF 12054chmod +x $CONFIG_STATUS 12055ac_clean_files=$ac_clean_files_save 12056 12057 12058# configure is writing to config.log, and then calls config.status. 12059# config.status does its own redirection, appending to config.log. 12060# Unfortunately, on DOS this fails, as config.log is still kept open 12061# by configure, so config.status won't be able to write to it; its 12062# output is simply discarded. So we exec the FD to /dev/null, 12063# effectively closing config.log, so it can be properly (re)opened and 12064# appended to by config.status. When coming back to configure, we 12065# need to make the FD available again. 12066if test "$no_create" != yes; then 12067 ac_cs_success=: 12068 ac_config_status_args= 12069 test "$silent" = yes && 12070 ac_config_status_args="$ac_config_status_args --quiet" 12071 exec 5>/dev/null 12072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12073 exec 5>>config.log 12074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12075 # would make configure fail if this is the last instruction. 12076 $ac_cs_success || { (exit 1); exit 1; } 12077fi 12078 12079