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