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