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