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