#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for LDMud 3.6.7.
#
# Report bugs to <https://mantis.ldmud.eu/mantis/>.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else $as_nop
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi



# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl='
'
export as_nl
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi

# The user is always right.
if ${PATH_SEPARATOR+false} :; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi


# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="as_nop=:
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else \$as_nop
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
then :

else \$as_nop
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1
blah=\$(echo \$(echo blah))
test x\"\$blah\" = xblah || exit 1
test -x / || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null
then :
  as_have_required=yes
else $as_nop
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :

else $as_nop
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else $as_nop
  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi
fi


      if test "x$CONFIG_SHELL" != x
then :
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
fi

    if test x$as_have_required = xno
then :
  printf "%s\n" "$0: This script requires a shell more modern than all"
  printf "%s\n" "$0: the shells that I found on your system."
  if test ${ZSH_VERSION+y} ; then
    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  else
    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
$0: https://mantis.ldmud.eu/mantis/ about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else $as_nop
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else $as_nop
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith

# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop

# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  printf "%s\n" "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'


rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='LDMud'
PACKAGE_TARNAME='ldmud'
PACKAGE_VERSION='3.6.7'
PACKAGE_STRING='LDMud 3.6.7'
PACKAGE_BUGREPORT='https://mantis.ldmud.eu/mantis/'
PACKAGE_URL='http://www.ldmud.eu/'

ac_default_prefix=/usr/local/mud
# Factoring default headers for most tests.
ac_includes_default="\
#include <stddef.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_header_c_list=
ac_func_c_list=
ac_subst_vars='LTLIBOBJS
ERQ_LIBS
PKGLIBS
erq_sub
val_valgrind_redzone
val_python_script
val_tls_password
val_tls_crldirectory
val_tls_crlfile
val_tls_trustdirectory
val_tls_trustfile
val_tls_certfile
val_tls_keydirectory
val_tls_keyfile
val_random_period_length
val_max_net_connects
val_pcre_recursion_limit
val_re_recursion_limit
val_wizlist_file
val_total_trace_length
val_soft_malloc_limit
val_hard_malloc_limit
val_min_small_malloced
val_min_malloced
val_malloc
val_set_buffer_size_max
val_udp_port
val_max_byte_transfer
val_input_escape
val_master_name
val_rxcache_table
val_apply_cache_bits
val_defmax
val_ttable_size
val_otable_size
val_itable_size
val_htable_size
val_reserved_system_size
val_reserved_master_size
val_reserved_user_size
val_max_command_length
val_allowed_ed_cmds
val_max_players
val_max_callouts
val_max_mapping_size
val_max_mapping_keys
val_max_array_size
val_swap_file
val_master_reserved_cost
val_catch_reserved_cost
val_max_local
val_max_cost
val_maxnumports
val_portno
val_max_bits
val_compiler_stack_size
val_max_trace
val_max_user_trace
val_evaluator_stack_size
val_heart_beat_interval
val_alarm_time
val_time_to_reset
val_time_to_swap_variables
val_time_to_swap
val_time_to_clean_up
val_read_file_max_size
val_write_buffer_max_size
val_erq_debug
val_erq_max_send
val_erq_max_reply
val_access_log
val_access_file
cdef_valgrind
cdef_dump_gc_refs
cdef_check_object_gc_ref
cdef_check_object_ref
cdef_check_mapping_total
cdef_check_object_stat
cdef_swap_efun
cdef_debug_malloc_allocs
cdef_debug_telnet
cdef_no_inlines
cdef_yydebug
cdef_debug
cdef_verbose_opcprof
cdef_opcprof
cdef_python_script
cdef_tls_password
cdef_tls_crldirectory
cdef_tls_crlfile
cdef_tls_trustdirectory
cdef_tls_trustfile
cdef_tls_certfile
cdef_tls_keydirectory
cdef_tls_keyfile
cdef_synchronous_heart_beat
cdef_wizlist_file
cdef_rxcache_table
cdef_eval_cost_trace
cdef_dynamic_costs
cdef_allocator_wrappers
cdef_malloc_replaceable
cdef_malloc_sbrk_trace
cdef_malloc_lpc_trace
cdef_malloc_trace
cdef_malloc_check
cdef_malloc_sbrk
cdef_apply_cache_stat
cdef_trace_code
cdef_comm_stat
cdef_use_process_string
cdef_use_parse_command
cdef_use_gcrypt
cdef_use_tls
cdef_use_deprecated
cdef_use_pcre
cdef_use_mccp
cdef_use_xml
cdef_use_python
cdef_use_json
cdef_use_sqlite
cdef_use_pgsql
cdef_use_mysql
cdef_use_ipv6
cdef_keyword_in
cdef_share_variables
cdef_filename_spaces
cdef_strict_euids
cdef_compat_mode
cdef_access_log
cdef_access_control
cdef_erq_demon
CONFIG_SHELL
OPTIMIZE_LINKING
EXTRA_CFLAGS
DCFLAGS
MCFLAGS
LCFLAGS
OCFLAGS
WCFLAGS
val_optimize
IKSEMEL_LIBS
IKSEMEL_CFLAGS
XML2_LIBS
XML2_CFLAGS
PYTHON_LIBS
PYTHON_CFLAGS
PYTHON_EMBED_LIBS
PYTHON_EMBED_CFLAGS
JSONC_LIBS
JSONC_CFLAGS
SQLITE3_LIBS
SQLITE3_CFLAGS
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH
PKG_CONFIG
ALLOCA
LIBOBJS
BISON
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
EGREP
GREP
CPP
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
runstatedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_erq
enable_access_control
enable_access_log
enable_compat_mode
enable_strict_euids
enable_filename_spaces
enable_share_variables
enable_keyword_in
enable_use_ipv6
enable_use_mccp
enable_use_mysql
enable_use_pgsql
enable_use_sqlite
enable_use_json
enable_use_pcre
enable_use_xml
with_xml_path
enable_use_deprecated
enable_use_tls
with_tls_path
with_tls_keyfile
with_tls_keydirectory
with_tls_certfile
with_tls_trustfile
with_tls_trustdirectory
with_tls_crlfile
with_tls_crldirectory
with_tls_password
enable_use_gcrypt
enable_use_python
with_python_script
enable_use_parse_command
enable_use_process_string
enable_comm_stat
enable_apply_cache_stat
enable_malloc_sbrk
enable_malloc_check
enable_malloc_trace
enable_malloc_lpc_trace
enable_malloc_sbrk_trace
enable_malloc_replaceable
enable_allocator_wrappers
enable_dynamic_costs
enable_eval_cost_trace
enable_trace_code
enable_rxcache_table
enable_synchronous_heart_beat
enable_opcprof
enable_verbose_opcprof
enable_debug
enable_yydebug
enable_no_inlines
enable_debug_telnet
enable_debug_malloc_allocs
enable_swap_efun
enable_check_object_stat
enable_check_mapping_total
enable_check_object_ref
enable_check_object_gc_ref
enable_dump_gc_refs
enable_valgrind
with_optimize
with_access_file
with_access_log
with_write_buffer_max_size
with_erq_max_reply
with_erq_max_send
with_erq_debug
with_read_file_max_size
with_master_name
with_input_escape
with_time_to_clean_up
with_time_to_swap
with_time_to_swap_variables
with_time_to_reset
with_alarm_time
with_heart_beat_interval
with_evaluator_stack_size
with_max_user_trace
with_max_trace
with_compiler_stack_size
with_max_bits
with_portno
with_udp_port
with_maxnumports
with_max_cost
with_catch_reserved_cost
with_master_reserved_cost
with_swap_file
with_max_array_size
with_max_mapping_keys
with_max_mapping_size
with_max_callouts
with_max_players
with_max_local
with_allowed_ed_cmds
with_max_command_length
with_reserved_user_size
with_reserved_master_size
with_reserved_system_size
with_htable_size
with_itable_size
with_otable_size
with_ttable_size
with_defmax
with_apply_cache_bits
with_rxcache_table
with_max_byte_transfer
with_set_buffer_size_max
with_malloc
with_min_malloced
with_min_small_malloced
with_hard_malloc_limit
with_soft_malloc_limit
with_total_trace_length
with_re_recursion_limit
with_pcre_recursion_limit
with_wizlist_file
with_max_net_connects
with_random_period_length
with_valgrind_redzone
with_setting
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
PKG_CONFIG
PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
SQLITE3_CFLAGS
SQLITE3_LIBS
JSONC_CFLAGS
JSONC_LIBS
PYTHON_EMBED_CFLAGS
PYTHON_EMBED_LIBS
PYTHON_CFLAGS
PYTHON_LIBS
XML2_CFLAGS
XML2_LIBS
IKSEMEL_CFLAGS
IKSEMEL_LIBS'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
  esac

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -runstatedir | --runstatedir | --runstatedi | --runstated \
  | --runstate | --runstat | --runsta | --runst | --runs \
  | --run | --ru | --r)
    ac_prev=runstatedir ;;
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  | --run=* | --ru=* | --r=*)
    runstatedir=$ac_optarg ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: \`$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: \`$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir runstatedir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures LDMud 3.6.7 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ldmud]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of LDMud 3.6.7:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-erq=(no/erq/xerq)  default=enabled(erq)
        Enables and or selects ERQ demon
  --enable-access-control  default=enabled
        Enable access control
  --enable-access-log  default=disabled
        Log all connection attempts
  --enable-compat-mode  default=disabled
        Enable compat mode
  --enable-strict-euids  default=disabled
        Enforce euids for loading objects
  --enable-filename-spaces  default=disabled
        Allow space characters in filenames
  --enable-share-variables  default=disabled
        Enable clone initialization from blueprint variable values
  --enable-keyword-in  default=disabled
        Enable 'in' as a keyword
  --enable-use-ipv6  default=disabled
        Enables support for IPv6
  --enable-use-mccp  default=disabled
        Enables MCCP support
  --enable-use-mysql  default=disabled
        Enables mySQL support
  --enable-use-pgsql  default=disabled
        Enables PostgreSQL support
  --enable-use-sqlite  default=disabled
        Enables SQLite support
  --enable-use-json  default=disabled
        Enables JSON-C Support
  --enable-use-pcre  default=enabled
        Use PCRE per default: no/yes
  --enable-use-xml  default=disabled
        Enables XML support: no/xml2/iksemel/yes
  --enable-use-deprecated  default=enabled
        Enables obsolete and deprecated efuns
  --enable-use-tls  default=disabled
        Enables Transport Layer Security over Telnet: no/gnu/ssl/yes
  --enable-use-gcrypt  default=enabled
        Enables support for libgcrypt
  --enable-use-python  default=disabled
        Enables Python extension
  --enable-use-parse-command  default=enabled
        Enables efun parse_command()
  --enable-use-process-string  default=enabled
        Enables efun process_string()
  --enable-comm-stat  default=enabled
        Enable statistics for outgoing packets
  --enable-apply-cache_stat  default=enabled
        Enable statistics for apply cache
  --enable-malloc-sbrk  default=enabled
        Use sbrk() if possible (smalloc,slaballoc)
  --enable-malloc-check  default=enabled
        Enable simple malloc checks (smalloc,slaballoc)
  --enable-malloc-trace  default=disabled
        Annotate allocations with source file:line
  --enable-malloc-lpc-trace  default=disabled
        Annotate allocations with LPC object info
  --enable-malloc-sbrk-trace  default=disabled
        Log all esbrk() calls (smalloc,slaballoc)
  --enable-malloc-replaceable  default=disabled
        Try to replace system malloc by our own (dangerous!)
  --enable-allocator-wrappers  default=enabled
        Wrap third party library memory allocators with our own
  --enable-dynamic-costs  default=disabled
        Assign eval costs dynamically
  --enable-eval-cost-trace  default=disabled
        Writes the evaluation costs in the stracktrace
  --enable-trace-code  default=enabled
        trace the most recently executed bytecode
  --enable-rxcache_table  default=enabled
        Cache compiled regular expressions
  --enable-synchronous-heart-beat  default=enabled
        Do all heart beats at once.
  --enable-opcprof  default=disabled
        create VM instruction usage statistics
  --enable-verbose-opcprof  default=disabled
        with opcprof: include instruction names
  --enable-debug  default=enabled
        enable sanity checks
  --enable-yydebug  default=disabled
        enable LPC compiler debug output
  --enable-no-inlines  default=disabled
        disable inlining
  --enable-debug-telnet  default=disabled
        enable telnet machine diagnostics
  --enable-debug-malloc-allocs  default=disabled
        enable small block diagnostics
  --enable-swap-efun  default=disabled
        Enable swap() efun for testing purposes
  --enable-check-object-stat  default=disabled
        trace changes to the object statistics
  --enable-check-mapping-total  default=disabled
        check the mapping statistic
  --enable-check-object-ref  default=disabled
        check object references
  --enable-check-object-gc-ref  default=enabled
        check object references in GC
  --enable-dump-gc-refs  default=disabled
        trace GC references
  --enable-valgrind  default=disabled
        instrument allocators with valgrind client requests?

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-xml-path=VALUE
        Optional location of the XML include/ and lib/ directory
  --with-tls-path=VALUE
        Optional location of the TLS include/ and lib/ directory
  --with-tls-keyfile=VALUE  default=key.pem
        Default x509 keyfile
  --with-tls-keydirectory=VALUE  default=no
        Default directory holding keys and certificates
  --with-tls-certfile=VALUE  default=cert.pem
        Default x509 certificate file
  --with-tls-trustfile=VALUE  default=no
        Default filename holding trusted PEM certificates
  --with-tls-trustdirectory=VALUE  default=no
        Default directory holding trusted PEM certificates
  --with-tls-crlfile=VALUE  default=no
        Default filename holding certificate revocation lists
  --with-tls-crldirectory=VALUE  default=no
        Default directory holding certificate revocation lists
  --with-tls-password=pass:PASSWORD / env:VARIABLE / file:PATHNAME / fd:DESCRIPTOR / stdin / none  default=none
        Default password for the keyfile
  --with-python-script=VALUE  default=startup.py
        Startup python script
  --with-optimize=VALUE  default=med
        Optimization level: no/low/med/high
  --with-access-file=VALUE  default=ACCESS.ALLOW
        access permissions file
  --with-access-log=VALUE  default=access.allow.log
        access log file
  --with-write-buffer-max-size=VALUE  default=100000
        max size of write buffer per interactive
  --with-erq-max-reply=VALUE  default=1024
        max size of replies from ERQ
  --with-erq-max-send=VALUE  default=1024
        max size of commands sent to ERQ, xerq only
  --with-erq-debug=VALUE  default=0
        ERQ debug level
  --with-read-file-max-size=BYTES  default=50000
        maximum size of a file allowed to be read by 'read_file()'
  --with-master-name=VALUE  default=secure/master
        name of the master object
  --with-input-escape=VALUE  default="!"
        input escape character
  --with-time-to-clean_up=SECONDS  default=3600
        time before cleaning up unused objects
  --with-time-to-swap=SECONDS  default=900
        time before swapping out unused objects
  --with-time-to-swap-variables=SECONDS  default=1800
        time before swapping out variables
  --with-time-to-reset=SECONDS  default=1800
        time between resetting objects
  --with-alarm-time=SECONDS  default=2
        timer granularity
  --with-heart-beat-interval=SECONDS  default=2
        time between heartbeats
  --with-evaluator-stack-size=VALUE  default=2000
        virtual machine stack size
  --with-max-user-trace=VALUE  default=60
        maximum user function call depth
  --with-max-trace=VALUE  default=65
        maximum function call depth during error handling
  --with-compiler-stack-size=VALUE  default=400
        depth of parser stack
  --with-max-bits=VALUE  default=6144
        maximum number of bits in a bit string
  --with-portno=VALUE  default=4242
        tcp port to listen on
  --with-udp-port=VALUE  default=4246
        udp port to listen on
  --with-maxnumports=VALUE  default=20
        maximum number of tcp ports to listen on
  --with-max-cost=VALUE  default=1000000
        maximum eval cost for a single evaluation
  --with-catch-reserved-cost=VALUE  default=2000
        eval cost reserved for catch()
  --with-master-reserved-cost=VALUE  default=512
        eval cost reserved for master
  --with-swap-file=VALUE  default=LP_SWAP
        name of the swap file
  --with-max-array-size=VALUE  default=5000
        max number of array elements
  --with-max-mapping-keys=VALUE  default=5000
        max number of mapping entries
  --with-max-mapping-size=VALUE  default=15000
        max number of mapping elements
  --with-max-callouts=VALUE  default=0
        max number of callouts; 0=unlimited
  --with-max-players=VALUE  default=50
        maximum number of simultaneous players
  --with-max-local=VALUE  default=50
        maximum number of local variables per function
  --with-allowed-ed-cmds=VALUE  default=20
        number of ed commands per backend cycle
  --with-max-command-length=VALUE  default=1000
        maximum length of a command
  --with-reserved-user-size=VALUE  default=700000
        memory reserved for user usage
  --with-reserved-master-size=VALUE  default=100000
        memory reserved for master usage
  --with-reserved-system-size=VALUE  default=200000
        memory reserved for internal usage
  --with-htable-size=VALUE  default=4096
        shared string hash table size
  --with-itable-size=VALUE  default=256
        identifier hash table size
  --with-otable-size=VALUE  default=1024
        object hash table size
  --with-ttable-size=VALUE  default=OTABLE_SIZE
        maximum named object type hash table size
  --with-defmax=VALUE  default=65000
        maximum expanded size of preprocessor macro
  --with-apply-cache-bits=VALUE  default=12
        2^N = size of apply cache
  --with-rxcache-table=VALUE  default=8192
        cache size for compiled regular expressions
  --with-max-byte-transfer=VALUE  default=50000
        maximum write/read size for read/write_bytes
  --with-set-buffer-size-max=VALUE  default=65536
        maximum size of socket send buffer
  --with-malloc=default/smalloc/slaballoc/sysmalloc  default=default
        memory manager to use
  --with-min-malloced=VALUE  default=0
        amount of memory to allocate on startup
  --with-min-small-malloced=VALUE  default=0
        amount of memory to allocate for small blocks on startup
  --with-hard-malloc-limit=VALUE  default=0x4000000
        maximum amount of memory to allocate; 0=unlimited
  --with-soft-malloc-limit=VALUE  default=0
        soft limit for the amount of memory to allocate; 0=unlimited
  --with-total-trace-length=VALUE  default=4096
        number of operations stored in bytecode trace
  --with-re-recursion-limit=VALUE  default=10000
        maximum number of recursions in traditional regexp engine
  --with-pcre-recursion-limit=VALUE  default=3000
        maximum number of recursions in PCRE package
  --with-wizlist-file=VALUE  default=WIZLIST
        name of the wizlist file
  --with-max_net_connects=VALUE  default=10
        maximum number of concurrent connection attempts
  --with-random-period-length=607 / 1279 / 2281 / 4253 / 11213 / 19937 / 44497 / 86243 / 132049 / 216091  default=19937
        period length of the random number generator
  --with-valgrind-redzone=VALUE  default=0
        add an unused buffer at the begin and end of each memory block in words
  --with-setting=SETTING  include a predefined setting

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  SQLITE3_CFLAGS
              C compiler flags for SQLITE3, overriding pkg-config
  SQLITE3_LIBS
              linker flags for SQLITE3, overriding pkg-config
  JSONC_CFLAGS
              C compiler flags for JSONC, overriding pkg-config
  JSONC_LIBS  linker flags for JSONC, overriding pkg-config
  PYTHON_EMBED_CFLAGS
              C compiler flags for PYTHON_EMBED, overriding pkg-config
  PYTHON_EMBED_LIBS
              linker flags for PYTHON_EMBED, overriding pkg-config
  PYTHON_CFLAGS
              C compiler flags for PYTHON, overriding pkg-config
  PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
  XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
  XML2_LIBS   linker flags for XML2, overriding pkg-config
  IKSEMEL_CFLAGS
              C compiler flags for IKSEMEL, overriding pkg-config
  IKSEMEL_LIBS
              linker flags for IKSEMEL, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <https://mantis.ldmud.eu/mantis/>.
LDMud home page: <http://www.ldmud.eu/>.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
LDMud configure 3.6.7
generated by GNU Autoconf 2.71

Copyright (C) 2021 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_try_run LINENO
# ----------------------
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
# executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
       printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$3=yes"
else $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_find_intX_t LINENO BITS VAR
# -----------------------------------
# Finds a signed integer type with width BITS, setting cache variable VAR
# accordingly.
ac_fn_c_find_intX_t ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
printf %s "checking for int$2_t... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  eval "$3=no"
     # Order is important - never check a type that is potentially smaller
     # than half of the expected target width.
     for ac_type in int$2_t 'int' 'long int' \
	 'long long int' 'short int' 'signed char'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	     enum { N = $2 / 2 - 1 };
int
main (void)
{
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	        enum { N = $2 / 2 - 1 };
int
main (void)
{
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  case $ac_type in #(
  int$2_t) :
    eval "$3=yes" ;; #(
  *) :
    eval "$3=\$ac_type" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       if eval test \"x\$"$3"\" = x"no"
then :

else $as_nop
  break
fi
     done
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_find_intX_t

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 test -x conftest$ac_exeext
       }
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_find_uintX_t LINENO BITS VAR
# ------------------------------------
# Finds an unsigned integer type with width BITS, setting cache variable VAR
# accordingly.
ac_fn_c_find_uintX_t ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
printf %s "checking for uint$2_t... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  eval "$3=no"
     # Order is important - never check a type that is potentially smaller
     # than half of the expected target width.
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main (void)
{
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  case $ac_type in #(
  uint$2_t) :
    eval "$3=yes" ;; #(
  *) :
    eval "$3=\$ac_type" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       if eval test \"x\$"$3"\" = x"no"
then :

else $as_nop
  break
fi
     done
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_find_uintX_t

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_hi=$ac_mid; break
else $as_nop
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_lo=$ac_mid; break
else $as_nop
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
else $as_nop
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_hi=$ac_mid
else $as_nop
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval (void) { return $2; }
static unsigned long int ulongval (void) { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main (void)
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else $as_nop
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
   which can conflict with char $2 (); below.  */

#include <limits.h>
#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main (void)
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "$3=yes"
else $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func
ac_configure_args_raw=
for ac_arg
do
  case $ac_arg in
  *\'*)
    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  as_fn_append ac_configure_args_raw " '$ac_arg'"
done

case $ac_configure_args_raw in
  *$as_nl*)
    ac_safe_unquote= ;;
  *)
    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
    ac_unsafe_a="$ac_unsafe_z#~"
    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
esac

cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by LDMud $as_me 3.6.7, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ $0$ac_configure_args_raw

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    printf "%s\n" "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Sanitize IFS.
  IFS=" ""	$as_nl"
  # Save into config.log some information that might help in debugging.
  {
    echo

    printf "%s\n" "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    printf "%s\n" "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      printf "%s\n" "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      printf "%s\n" "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	printf "%s\n" "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      printf "%s\n" "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      printf "%s\n" "$as_me: caught signal $ac_signal"
    printf "%s\n" "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

printf "%s\n" "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
if test -n "$CONFIG_SITE"; then
  ac_site_files="$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
else
  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi

for ac_site_file in $ac_site_files
do
  case $ac_site_file in #(
  */*) :
     ;; #(
  *) :
    ac_site_file=./$ac_site_file ;;
esac
  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Test code for whether the C compiler supports C89 (global declarations)
ac_c_conftest_c89_globals='
/* Does the compiler advertise C89 conformance?
   Do not test the value of __STDC__, because some compilers set it to 0
   while being otherwise adequately conformant. */
#if !defined __STDC__
# error "Compiler does not advertise C89 conformance"
#endif

#include <stddef.h>
#include <stdarg.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
struct buf { int x; };
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not \xHH hex character constants.
   These do not provoke an error unfortunately, instead are silently treated
   as an "x".  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   array size at least.  It is necessary to write \x00 == 0 to get something
   that is true only with -std.  */
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) '\''x'\''
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
               int, int);'

# Test code for whether the C compiler supports C89 (body of main).
ac_c_conftest_c89_main='
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
'

# Test code for whether the C compiler supports C99 (global declarations)
ac_c_conftest_c99_globals='
// Does the compiler advertise C99 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
# error "Compiler does not advertise C99 conformance"
#endif

#include <stdbool.h>
extern int puts (const char *);
extern int printf (const char *, ...);
extern int dprintf (int, const char *, ...);
extern void *malloc (size_t);

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
// dprintf is used instead of fprintf to avoid needing to declare
// FILE and stderr.
#define debug(...) dprintf (2, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  #error "your preprocessor is broken"
#endif
#if BIG_OK
#else
  #error "your preprocessor is broken"
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static bool
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str = "";
  int number = 0;
  float fnumber = 0;

  while (*format)
    {
      switch (*format++)
	{
	case '\''s'\'': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case '\''d'\'': // int
	  number = va_arg (args_copy, int);
	  break;
	case '\''f'\'': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);

  return *str && number && fnumber;
}
'

# Test code for whether the C compiler supports C99 (body of main).
ac_c_conftest_c99_main='
  // Check bool.
  _Bool success = false;
  success |= (argc != 0);

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[0] = argv[0][0];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
	 || dynamic_array[ni.number - 1] != 543);
'

# Test code for whether the C compiler supports C11 (global declarations)
ac_c_conftest_c11_globals='
// Does the compiler advertise C11 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
# error "Compiler does not advertise C11 conformance"
#endif

// Check _Alignas.
char _Alignas (double) aligned_as_double;
char _Alignas (0) no_special_alignment;
extern char aligned_as_int;
char _Alignas (0) _Alignas (int) aligned_as_int;

// Check _Alignof.
enum
{
  int_alignment = _Alignof (int),
  int_array_alignment = _Alignof (int[100]),
  char_alignment = _Alignof (char)
};
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");

// Check _Noreturn.
int _Noreturn does_not_return (void) { for (;;) continue; }

// Check _Static_assert.
struct test_static_assert
{
  int x;
  _Static_assert (sizeof (int) <= sizeof (long int),
                  "_Static_assert does not work in struct");
  long int y;
};

// Check UTF-8 literals.
#define u8 syntax error!
char const utf8_literal[] = u8"happens to be ASCII" "another string";

// Check duplicate typedefs.
typedef long *long_ptr;
typedef long int *long_ptr;
typedef long_ptr long_ptr;

// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
struct anonymous
{
  union {
    struct { int i; int j; };
    struct { int k; long int l; } w;
  };
  int m;
} v1;
'

# Test code for whether the C compiler supports C11 (body of main).
ac_c_conftest_c11_main='
  _Static_assert ((offsetof (struct anonymous, i)
		   == offsetof (struct anonymous, w.k)),
		  "Anonymous union alignment botch");
  v1.i = 2;
  v1.w.k = 5;
  ok |= v1.i != 5;
'

# Test code for whether the C compiler supports C11 (complete).
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}
${ac_c_conftest_c11_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  ${ac_c_conftest_c11_main}
  return ok;
}
"

# Test code for whether the C compiler supports C99 (complete).
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  return ok;
}
"

# Test code for whether the C compiler supports C89 (complete).
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  return ok;
}
"

as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
as_fn_append ac_func_c_list " alarm HAVE_ALARM"

# Auxiliary files required by this configure script.
ac_aux_files="install-sh"

# Locations in which to look for auxiliary files.
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."

# Search for a directory containing all of the required auxiliary files,
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
# If we don't find one directory that contains all the files we need,
# we report the set of missing files from the *first* directory in
# $ac_aux_dir_candidates and give up.
ac_missing_aux_files=""
ac_first_candidate=:
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in $ac_aux_dir_candidates
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:

  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
  ac_aux_dir_found=yes
  ac_install_sh=
  for ac_aux in $ac_aux_files
  do
    # As a special case, if "install-sh" is required, that requirement
    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
    # and $ac_install_sh is set appropriately for whichever one is found.
    if test x"$ac_aux" = x"install-sh"
    then
      if test -f "${as_dir}install-sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
        ac_install_sh="${as_dir}install-sh -c"
      elif test -f "${as_dir}install.sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
        ac_install_sh="${as_dir}install.sh -c"
      elif test -f "${as_dir}shtool"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
        ac_install_sh="${as_dir}shtool install -c"
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
        else
          break
        fi
      fi
    else
      if test -f "${as_dir}${ac_aux}"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
        else
          break
        fi
      fi
    fi
  done
  if test "$ac_aux_dir_found" = yes; then
    ac_aux_dir="$as_dir"
    break
  fi
  ac_first_candidate=false

  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else $as_nop
  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
fi


# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
if test -f "${ac_aux_dir}config.guess"; then
  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
fi
if test -f "${ac_aux_dir}config.sub"; then
  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
fi
if test -f "$ac_aux_dir/configure"; then
  ac_configure="$SHELL ${ac_aux_dir}configure"
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
	    and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu






not_available=""


DEFAULTenable_erq=erq
# Check whether --enable-erq was given.
if test ${enable_erq+y}
then :
  enableval=$enable_erq;
fi


DEFAULTenable_access_control=yes
# Check whether --enable-access-control was given.
if test ${enable_access_control+y}
then :
  enableval=$enable_access_control;
fi


DEFAULTenable_access_log=no
# Check whether --enable-access-log was given.
if test ${enable_access_log+y}
then :
  enableval=$enable_access_log;
fi


DEFAULTenable_compat_mode=no
# Check whether --enable-compat-mode was given.
if test ${enable_compat_mode+y}
then :
  enableval=$enable_compat_mode;
fi


DEFAULTenable_strict_euids=no
# Check whether --enable-strict-euids was given.
if test ${enable_strict_euids+y}
then :
  enableval=$enable_strict_euids;
fi


DEFAULTenable_filename_spaces=no
# Check whether --enable-filename-spaces was given.
if test ${enable_filename_spaces+y}
then :
  enableval=$enable_filename_spaces;
fi


DEFAULTenable_share_variables=no
# Check whether --enable-share-variables was given.
if test ${enable_share_variables+y}
then :
  enableval=$enable_share_variables;
fi


DEFAULTenable_keyword_in=no
# Check whether --enable-keyword-in was given.
if test ${enable_keyword_in+y}
then :
  enableval=$enable_keyword_in;
fi


DEFAULTenable_use_ipv6=no
# Check whether --enable-use-ipv6 was given.
if test ${enable_use_ipv6+y}
then :
  enableval=$enable_use_ipv6;
fi


DEFAULTenable_use_mccp=no
# Check whether --enable-use-mccp was given.
if test ${enable_use_mccp+y}
then :
  enableval=$enable_use_mccp;
fi


DEFAULTenable_use_mysql=no
# Check whether --enable-use-mysql was given.
if test ${enable_use_mysql+y}
then :
  enableval=$enable_use_mysql;
fi


DEFAULTenable_use_pgsql=no
# Check whether --enable-use-pgsql was given.
if test ${enable_use_pgsql+y}
then :
  enableval=$enable_use_pgsql;
fi


DEFAULTenable_use_sqlite=no
# Check whether --enable-use-sqlite was given.
if test ${enable_use_sqlite+y}
then :
  enableval=$enable_use_sqlite;
fi


DEFAULTenable_use_json=no
# Check whether --enable-use-json was given.
if test ${enable_use_json+y}
then :
  enableval=$enable_use_json;
fi


DEFAULTenable_use_pcre=yes
# Check whether --enable-use-pcre was given.
if test ${enable_use_pcre+y}
then :
  enableval=$enable_use_pcre;
fi


DEFAULTenable_use_xml=no
# Check whether --enable-use-xml was given.
if test ${enable_use_xml+y}
then :
  enableval=$enable_use_xml;
fi


DEFAULTwith_xml_path=

# Check whether --with-xml-path was given.
if test ${with_xml_path+y}
then :
  withval=$with_xml_path;
fi


DEFAULTenable_use_deprecated=yes
# Check whether --enable-use-deprecated was given.
if test ${enable_use_deprecated+y}
then :
  enableval=$enable_use_deprecated;
fi


DEFAULTenable_use_tls=no
# Check whether --enable-use-tls was given.
if test ${enable_use_tls+y}
then :
  enableval=$enable_use_tls;
fi


DEFAULTwith_tls_path=

# Check whether --with-tls-path was given.
if test ${with_tls_path+y}
then :
  withval=$with_tls_path;
fi


DEFAULTwith_tls_keyfile=key.pem

# Check whether --with-tls-keyfile was given.
if test ${with_tls_keyfile+y}
then :
  withval=$with_tls_keyfile;
fi


DEFAULTwith_tls_keydirectory=no

# Check whether --with-tls-keydirectory was given.
if test ${with_tls_keydirectory+y}
then :
  withval=$with_tls_keydirectory;
fi


DEFAULTwith_tls_certfile=cert.pem

# Check whether --with-tls-certfile was given.
if test ${with_tls_certfile+y}
then :
  withval=$with_tls_certfile;
fi


DEFAULTwith_tls_trustfile=no

# Check whether --with-tls-trustfile was given.
if test ${with_tls_trustfile+y}
then :
  withval=$with_tls_trustfile;
fi


DEFAULTwith_tls_trustdirectory=no

# Check whether --with-tls-trustdirectory was given.
if test ${with_tls_trustdirectory+y}
then :
  withval=$with_tls_trustdirectory;
fi


DEFAULTwith_tls_crlfile=no

# Check whether --with-tls-crlfile was given.
if test ${with_tls_crlfile+y}
then :
  withval=$with_tls_crlfile;
fi


DEFAULTwith_tls_crldirectory=no

# Check whether --with-tls-crldirectory was given.
if test ${with_tls_crldirectory+y}
then :
  withval=$with_tls_crldirectory;
fi


DEFAULTwith_tls_password=none

# Check whether --with-tls-password was given.
if test ${with_tls_password+y}
then :
  withval=$with_tls_password;
fi


DEFAULTenable_use_gcrypt=yes
# Check whether --enable-use-gcrypt was given.
if test ${enable_use_gcrypt+y}
then :
  enableval=$enable_use_gcrypt;
fi


DEFAULTenable_use_python=no
# Check whether --enable-use-python was given.
if test ${enable_use_python+y}
then :
  enableval=$enable_use_python;
fi


DEFAULTwith_python_script=startup.py

# Check whether --with-python-script was given.
if test ${with_python_script+y}
then :
  withval=$with_python_script;
fi


DEFAULTenable_use_parse_command=yes
# Check whether --enable-use-parse-command was given.
if test ${enable_use_parse_command+y}
then :
  enableval=$enable_use_parse_command;
fi


DEFAULTenable_use_process_string=yes
# Check whether --enable-use-process-string was given.
if test ${enable_use_process_string+y}
then :
  enableval=$enable_use_process_string;
fi


DEFAULTenable_comm_stat=yes
# Check whether --enable-comm-stat was given.
if test ${enable_comm_stat+y}
then :
  enableval=$enable_comm_stat;
fi


DEFAULTenable_apply_cache_stat=yes
# Check whether --enable-apply-cache_stat was given.
if test ${enable_apply_cache_stat+y}
then :
  enableval=$enable_apply_cache_stat;
fi


DEFAULTenable_malloc_sbrk=yes
# Check whether --enable-malloc-sbrk was given.
if test ${enable_malloc_sbrk+y}
then :
  enableval=$enable_malloc_sbrk;
fi


DEFAULTenable_malloc_check=yes
# Check whether --enable-malloc-check was given.
if test ${enable_malloc_check+y}
then :
  enableval=$enable_malloc_check;
fi


DEFAULTenable_malloc_trace=no
# Check whether --enable-malloc-trace was given.
if test ${enable_malloc_trace+y}
then :
  enableval=$enable_malloc_trace;
fi


DEFAULTenable_malloc_lpc_trace=no
# Check whether --enable-malloc-lpc-trace was given.
if test ${enable_malloc_lpc_trace+y}
then :
  enableval=$enable_malloc_lpc_trace;
fi


DEFAULTenable_malloc_sbrk_trace=no
# Check whether --enable-malloc-sbrk-trace was given.
if test ${enable_malloc_sbrk_trace+y}
then :
  enableval=$enable_malloc_sbrk_trace;
fi


DEFAULTenable_malloc_replaceable=no
# Check whether --enable-malloc-replaceable was given.
if test ${enable_malloc_replaceable+y}
then :
  enableval=$enable_malloc_replaceable;
fi


DEFAULTenable_allocator_wrappers=yes
# Check whether --enable-allocator-wrappers was given.
if test ${enable_allocator_wrappers+y}
then :
  enableval=$enable_allocator_wrappers;
fi


DEFAULTenable_dynamic_costs=no
# Check whether --enable-dynamic-costs was given.
if test ${enable_dynamic_costs+y}
then :
  enableval=$enable_dynamic_costs;
fi


DEFAULTenable_eval_cost_trace=no
# Check whether --enable-eval-cost-trace was given.
if test ${enable_eval_cost_trace+y}
then :
  enableval=$enable_eval_cost_trace;
fi


DEFAULTenable_trace_code=yes
# Check whether --enable-trace-code was given.
if test ${enable_trace_code+y}
then :
  enableval=$enable_trace_code;
fi



DEFAULTenable_rxcache_table=yes
# Check whether --enable-rxcache_table was given.
if test ${enable_rxcache_table+y}
then :
  enableval=$enable_rxcache_table;
fi


DEFAULTenable_synchronous_heart_beat=yes
# Check whether --enable-synchronous-heart-beat was given.
if test ${enable_synchronous_heart_beat+y}
then :
  enableval=$enable_synchronous_heart_beat;
fi



DEFAULTenable_opcprof=no
# Check whether --enable-opcprof was given.
if test ${enable_opcprof+y}
then :
  enableval=$enable_opcprof;
fi


DEFAULTenable_verbose_opcprof=no
# Check whether --enable-verbose-opcprof was given.
if test ${enable_verbose_opcprof+y}
then :
  enableval=$enable_verbose_opcprof;
fi


DEFAULTenable_debug=yes
# Check whether --enable-debug was given.
if test ${enable_debug+y}
then :
  enableval=$enable_debug;
fi


DEFAULTenable_yydebug=no
# Check whether --enable-yydebug was given.
if test ${enable_yydebug+y}
then :
  enableval=$enable_yydebug;
fi


DEFAULTenable_no_inlines=no
# Check whether --enable-no-inlines was given.
if test ${enable_no_inlines+y}
then :
  enableval=$enable_no_inlines;
fi


DEFAULTenable_debug_telnet=no
# Check whether --enable-debug-telnet was given.
if test ${enable_debug_telnet+y}
then :
  enableval=$enable_debug_telnet;
fi


DEFAULTenable_debug_malloc_allocs=no
# Check whether --enable-debug-malloc-allocs was given.
if test ${enable_debug_malloc_allocs+y}
then :
  enableval=$enable_debug_malloc_allocs;
fi


DEFAULTenable_swap_efun=no
# Check whether --enable-swap-efun was given.
if test ${enable_swap_efun+y}
then :
  enableval=$enable_swap_efun;
fi



DEFAULTenable_check_object_stat=no
# Check whether --enable-check-object-stat was given.
if test ${enable_check_object_stat+y}
then :
  enableval=$enable_check_object_stat;
fi


DEFAULTenable_check_mapping_total=no
# Check whether --enable-check-mapping-total was given.
if test ${enable_check_mapping_total+y}
then :
  enableval=$enable_check_mapping_total;
fi


DEFAULTenable_check_object_ref=no
# Check whether --enable-check-object-ref was given.
if test ${enable_check_object_ref+y}
then :
  enableval=$enable_check_object_ref;
fi


DEFAULTenable_check_object_gc_ref=yes
# Check whether --enable-check-object-gc-ref was given.
if test ${enable_check_object_gc_ref+y}
then :
  enableval=$enable_check_object_gc_ref;
fi


DEFAULTenable_dump_gc_refs=no
# Check whether --enable-dump-gc-refs was given.
if test ${enable_dump_gc_refs+y}
then :
  enableval=$enable_dump_gc_refs;
fi


DEFAULTenable_valgrind=no
# Check whether --enable-valgrind was given.
if test ${enable_valgrind+y}
then :
  enableval=$enable_valgrind;
fi



DEFAULTwith_optimize=med

# Check whether --with-optimize was given.
if test ${with_optimize+y}
then :
  withval=$with_optimize;
fi



DEFAULTwith_access_file=ACCESS.ALLOW

# Check whether --with-access-file was given.
if test ${with_access_file+y}
then :
  withval=$with_access_file;
fi


DEFAULTwith_access_log=access.allow.log

# Check whether --with-access-log was given.
if test ${with_access_log+y}
then :
  withval=$with_access_log;
fi



DEFAULTwith_write_buffer_max_size=100000

# Check whether --with-write-buffer-max-size was given.
if test ${with_write_buffer_max_size+y}
then :
  withval=$with_write_buffer_max_size;
fi


DEFAULTwith_erq_max_reply=1024

# Check whether --with-erq-max-reply was given.
if test ${with_erq_max_reply+y}
then :
  withval=$with_erq_max_reply;
fi


DEFAULTwith_erq_max_send=1024

# Check whether --with-erq-max-send was given.
if test ${with_erq_max_send+y}
then :
  withval=$with_erq_max_send;
fi


DEFAULTwith_erq_debug=0

# Check whether --with-erq-debug was given.
if test ${with_erq_debug+y}
then :
  withval=$with_erq_debug;
fi



DEFAULTwith_read_file_max_size=50000

# Check whether --with-read-file-max-size was given.
if test ${with_read_file_max_size+y}
then :
  withval=$with_read_file_max_size;
fi



DEFAULTwith_master_name=secure/master

# Check whether --with-master-name was given.
if test ${with_master_name+y}
then :
  withval=$with_master_name;
fi


DEFAULTwith_input_escape="!"

# Check whether --with-input-escape was given.
if test ${with_input_escape+y}
then :
  withval=$with_input_escape;
fi


DEFAULTwith_time_to_clean_up=3600

# Check whether --with-time-to-clean_up was given.
if test ${with_time_to_clean_up+y}
then :
  withval=$with_time_to_clean_up;
fi


DEFAULTwith_time_to_swap=900

# Check whether --with-time-to-swap was given.
if test ${with_time_to_swap+y}
then :
  withval=$with_time_to_swap;
fi


DEFAULTwith_time_to_swap_variables=1800

# Check whether --with-time-to-swap-variables was given.
if test ${with_time_to_swap_variables+y}
then :
  withval=$with_time_to_swap_variables;
fi


DEFAULTwith_time_to_reset=1800

# Check whether --with-time-to-reset was given.
if test ${with_time_to_reset+y}
then :
  withval=$with_time_to_reset;
fi


DEFAULTwith_alarm_time=2

# Check whether --with-alarm-time was given.
if test ${with_alarm_time+y}
then :
  withval=$with_alarm_time;
fi


DEFAULTwith_heart_beat_interval=2

# Check whether --with-heart-beat-interval was given.
if test ${with_heart_beat_interval+y}
then :
  withval=$with_heart_beat_interval;
fi


DEFAULTwith_evaluator_stack_size=2000

# Check whether --with-evaluator-stack-size was given.
if test ${with_evaluator_stack_size+y}
then :
  withval=$with_evaluator_stack_size;
fi


DEFAULTwith_max_user_trace=60

# Check whether --with-max-user-trace was given.
if test ${with_max_user_trace+y}
then :
  withval=$with_max_user_trace;
fi


DEFAULTwith_max_trace=65

# Check whether --with-max-trace was given.
if test ${with_max_trace+y}
then :
  withval=$with_max_trace;
fi


DEFAULTwith_compiler_stack_size=400

# Check whether --with-compiler-stack-size was given.
if test ${with_compiler_stack_size+y}
then :
  withval=$with_compiler_stack_size;
fi


DEFAULTwith_max_bits=6144

# Check whether --with-max-bits was given.
if test ${with_max_bits+y}
then :
  withval=$with_max_bits;
fi


DEFAULTwith_portno=4242

# Check whether --with-portno was given.
if test ${with_portno+y}
then :
  withval=$with_portno;
fi


DEFAULTwith_udp_port=4246

# Check whether --with-udp-port was given.
if test ${with_udp_port+y}
then :
  withval=$with_udp_port;
fi


DEFAULTwith_maxnumports=20

# Check whether --with-maxnumports was given.
if test ${with_maxnumports+y}
then :
  withval=$with_maxnumports;
fi


DEFAULTwith_max_cost=1000000

# Check whether --with-max-cost was given.
if test ${with_max_cost+y}
then :
  withval=$with_max_cost;
fi


DEFAULTwith_catch_reserved_cost=2000

# Check whether --with-catch-reserved-cost was given.
if test ${with_catch_reserved_cost+y}
then :
  withval=$with_catch_reserved_cost;
fi


DEFAULTwith_master_reserved_cost=512

# Check whether --with-master-reserved-cost was given.
if test ${with_master_reserved_cost+y}
then :
  withval=$with_master_reserved_cost;
fi


DEFAULTwith_swap_file=LP_SWAP

# Check whether --with-swap-file was given.
if test ${with_swap_file+y}
then :
  withval=$with_swap_file;
fi


DEFAULTwith_max_array_size=5000

# Check whether --with-max-array-size was given.
if test ${with_max_array_size+y}
then :
  withval=$with_max_array_size;
fi


DEFAULTwith_max_mapping_keys=5000

# Check whether --with-max-mapping-keys was given.
if test ${with_max_mapping_keys+y}
then :
  withval=$with_max_mapping_keys;
fi


DEFAULTwith_max_mapping_size=15000

# Check whether --with-max-mapping-size was given.
if test ${with_max_mapping_size+y}
then :
  withval=$with_max_mapping_size;
fi


DEFAULTwith_max_callouts=0

# Check whether --with-max-callouts was given.
if test ${with_max_callouts+y}
then :
  withval=$with_max_callouts;
fi


DEFAULTwith_max_players=50

# Check whether --with-max-players was given.
if test ${with_max_players+y}
then :
  withval=$with_max_players;
fi


DEFAULTwith_max_local=50

# Check whether --with-max-local was given.
if test ${with_max_local+y}
then :
  withval=$with_max_local;
fi


DEFAULTwith_allowed_ed_cmds=20

# Check whether --with-allowed-ed-cmds was given.
if test ${with_allowed_ed_cmds+y}
then :
  withval=$with_allowed_ed_cmds;
fi


DEFAULTwith_max_command_length=1000

# Check whether --with-max-command-length was given.
if test ${with_max_command_length+y}
then :
  withval=$with_max_command_length;
fi


DEFAULTwith_reserved_user_size=700000

# Check whether --with-reserved-user-size was given.
if test ${with_reserved_user_size+y}
then :
  withval=$with_reserved_user_size;
fi


DEFAULTwith_reserved_master_size=100000

# Check whether --with-reserved-master-size was given.
if test ${with_reserved_master_size+y}
then :
  withval=$with_reserved_master_size;
fi


DEFAULTwith_reserved_system_size=200000

# Check whether --with-reserved-system-size was given.
if test ${with_reserved_system_size+y}
then :
  withval=$with_reserved_system_size;
fi


DEFAULTwith_htable_size=4096

# Check whether --with-htable-size was given.
if test ${with_htable_size+y}
then :
  withval=$with_htable_size;
fi


DEFAULTwith_itable_size=256

# Check whether --with-itable-size was given.
if test ${with_itable_size+y}
then :
  withval=$with_itable_size;
fi


DEFAULTwith_otable_size=1024

# Check whether --with-otable-size was given.
if test ${with_otable_size+y}
then :
  withval=$with_otable_size;
fi


DEFAULTwith_ttable_size=OTABLE_SIZE

# Check whether --with-ttable-size was given.
if test ${with_ttable_size+y}
then :
  withval=$with_ttable_size;
fi


DEFAULTwith_defmax=65000

# Check whether --with-defmax was given.
if test ${with_defmax+y}
then :
  withval=$with_defmax;
fi


DEFAULTwith_apply_cache_bits=12

# Check whether --with-apply-cache-bits was given.
if test ${with_apply_cache_bits+y}
then :
  withval=$with_apply_cache_bits;
fi


DEFAULTwith_rxcache_table=8192

# Check whether --with-rxcache-table was given.
if test ${with_rxcache_table+y}
then :
  withval=$with_rxcache_table;
fi


DEFAULTwith_max_byte_transfer=50000

# Check whether --with-max-byte-transfer was given.
if test ${with_max_byte_transfer+y}
then :
  withval=$with_max_byte_transfer;
fi


DEFAULTwith_set_buffer_size_max=65536

# Check whether --with-set-buffer-size-max was given.
if test ${with_set_buffer_size_max+y}
then :
  withval=$with_set_buffer_size_max;
fi


DEFAULTwith_malloc=default

# Check whether --with-malloc was given.
if test ${with_malloc+y}
then :
  withval=$with_malloc;
fi


DEFAULTwith_min_malloced=0

# Check whether --with-min-malloced was given.
if test ${with_min_malloced+y}
then :
  withval=$with_min_malloced;
fi


DEFAULTwith_min_small_malloced=0

# Check whether --with-min-small-malloced was given.
if test ${with_min_small_malloced+y}
then :
  withval=$with_min_small_malloced;
fi


DEFAULTwith_hard_malloc_limit=0x4000000

# Check whether --with-hard-malloc-limit was given.
if test ${with_hard_malloc_limit+y}
then :
  withval=$with_hard_malloc_limit;
fi


DEFAULTwith_soft_malloc_limit=0

# Check whether --with-soft-malloc-limit was given.
if test ${with_soft_malloc_limit+y}
then :
  withval=$with_soft_malloc_limit;
fi


DEFAULTwith_total_trace_length=4096

# Check whether --with-total-trace-length was given.
if test ${with_total_trace_length+y}
then :
  withval=$with_total_trace_length;
fi


DEFAULTwith_re_recursion_limit=10000

# Check whether --with-re-recursion-limit was given.
if test ${with_re_recursion_limit+y}
then :
  withval=$with_re_recursion_limit;
fi


DEFAULTwith_pcre_recursion_limit=3000

# Check whether --with-pcre-recursion-limit was given.
if test ${with_pcre_recursion_limit+y}
then :
  withval=$with_pcre_recursion_limit;
fi


DEFAULTwith_wizlist_file=WIZLIST

# Check whether --with-wizlist-file was given.
if test ${with_wizlist_file+y}
then :
  withval=$with_wizlist_file;
fi


DEFAULTwith_max_net_connects=10

# Check whether --with-max_net_connects was given.
if test ${with_max_net_connects+y}
then :
  withval=$with_max_net_connects;
fi


DEFAULTwith_random_period_length=19937

# Check whether --with-random-period-length was given.
if test ${with_random_period_length+y}
then :
  withval=$with_random_period_length;
fi


DEFAULTwith_valgrind_redzone=0

# Check whether --with-valgrind-redzone was given.
if test ${with_valgrind_redzone+y}
then :
  withval=$with_valgrind_redzone;
fi




# Check whether --with-setting was given.
if test ${with_setting+y}
then :
  withval=$with_setting;
if test -f "settings/$withval" ; then
cat >conftest.sed <<\EOF
/^#.*/ d
/^[ \t]*$/ d
s/#.*$//
s/disable_\([^= \t]*\)/enable_\1=no/
/^enable_/ s/^/DEFAULT/p
/^with_/ s/^/DEFAULT/p

EOF
eval `sed -n -f conftest.sed <settings/$withval`
rm conftest.sed
else
as_fn_error $? "Setting \"$withval\" not available" "$LINENO" 5
fi

fi



if test "x$enable_erq" = "x" && test "x$DEFAULTenable_erq" != "x"; then
  enable_erq=$DEFAULTenable_erq
fi

if test "x$enable_erq" = "xerq" || test "x$enable_erq" = "xyes"; then
  cdef_erq_demon="#define"
  erq_sub=erq

printf "%s\n" "#define ERQ_INCLUDE \"util/erq/erq.h\"" >>confdefs.h

elif test "x$enable_erq" = "xxerq"; then
  cdef_erq_demon="#define"
  erq_sub=xerq
  printf "%s\n" "#define ERQ_INCLUDE \"util/xerq/erq.h\"" >>confdefs.h

else
  cdef_erq_demon="#undef"
  erq_sub=
fi

if test "x$enable_use_pcre" = "x" && test "x$DEFAULTenable_use_pcre" != "x"; then
  enable_use_pcre=$DEFAULTenable_use_pcre
fi

if test "x$enable_use_pcre" = "x" || test "x$enable_use_pcre" = "xyes"; then
  cdef_use_pcre="#define"
else
  cdef_use_pcre="#undef"
  enable_use_pcre="no"
fi

if test "x$enable_use_mysql" = "x" && test "x$DEFAULTenable_use_mysql" != "x"; then
  enable_use_mysql=$DEFAULTenable_use_mysql
fi

if test "x$enable_use_mysql" = "x" || test "x$enable_use_mysql" = "xyes"; then
  cdef_use_mysql="#define"
  mysql_path=
  enable_use_mysql="yes"
elif test "x$enable_use_mysql" = "xno"; then
  cdef_use_mysql="#undef"
  mysql_path=
else
  cdef_use_mysql="#define"
  mysql_path="$enable_use_mysql"
  enable_use_mysql="yes"
fi

if test "x$enable_use_pgsql" = "x" && test "x$DEFAULTenable_use_pgsql" != "x"; then
  enable_use_pgsql=$DEFAULTenable_use_pgsql
fi

if test "x$enable_use_pgsql" = "x" || test "x$enable_use_pgsql" = "xyes"; then
  cdef_use_pgsql="#define"
  pgsql_path=
  enable_use_pgsql="yes"
elif test "x$enable_use_pgsql" = "xno"; then
  cdef_use_pgsql="#undef"
  pgsql_path=
else
  cdef_use_pgsql="#define"
  pgsql_path="$enable_use_pgsql"
  enable_use_pgsql="yes"
fi

if test "x$enable_use_sqlite" = "x" && test "x$DEFAULTenable_use_sqlite" != "x"; then
  enable_use_sqlite=$DEFAULTenable_use_sqlite
fi

if test "x$enable_use_sqlite" = "x" || test "x$enable_use_sqlite" = "xyes"; then
  cdef_use_sqlite="#define"
  sqlite_path=
  enable_use_sqlite="yes"
elif test "x$enable_use_sqlite" = "xno"; then
  cdef_use_sqlite="#undef"
  sqlite_path=
else
  cdef_use_sqlite="#define"
  sqlite_path="$enable_use_sqlite"
  enable_use_sqlite="yes"
fi

if test "x$enable_use_xml" = "x" && test "x$DEFAULTenable_use_xml" != "x"; then
  enable_use_xml=$DEFAULTenable_use_xml
fi

if test "x$enable_use_xml" = "x" || test "x$enable_use_xml" = "xyes"; then
  cdef_use_xml="#define"
  xml_package="any"
  enable_use_xml="yes"
elif test "x$enable_use_xml" = "xno"; then
  cdef_use_xml="#undef"
  xml_package="any"
else
  cdef_use_xml="#define"
  xml_package="$enable_use_xml"
  enable_use_xml="yes"
fi
if test "x$with_xml_path" = "x" && test "x$DEFAULTwith_xml_path" != "x"; then
  with_xml_path=$DEFAULTwith_xml_path
fi

if test "x$with_xml_path" = "x" -o "x$with_xml_path" = "xno" ; then
  xml_path=""
else
  xml_path="$with_xml_path"
fi

if test "x$enable_use_json" = "x" && test "x$DEFAULTenable_use_json" != "x"; then
  enable_use_json=$DEFAULTenable_use_json
fi

if test "x$enable_use_json" = "x" || test "x$enable_use_json" = "xyes"; then
  cdef_use_json="#define"
  json_path=
  enable_use_json="yes"
elif test "x$enable_use_json" = "xno"; then
  cdef_use_json="#undef"
  json_path=
else
  cdef_use_json="#define"
  json_path="$enable_use_json"
  enable_use_json="yes"
fi

if test "x$enable_use_python" = "x" && test "x$DEFAULTenable_use_python" != "x"; then
  enable_use_python=$DEFAULTenable_use_python
fi

if test "x$enable_use_python" = "x" || test "x$enable_use_python" = "xyes"; then
  cdef_use_python="#define"
  python_path=
  enable_use_python="yes"
elif test "x$enable_use_python" = "xno"; then
  cdef_use_python="#undef"
  python_path=
else
  cdef_use_python="#define"
  python_path="$enable_use_python"
  enable_use_python="yes"
fi

if test "x$enable_use_tls" = "x" && test "x$DEFAULTenable_use_tls" != "x"; then
  enable_use_tls=$DEFAULTenable_use_tls
fi

if test "x$enable_use_tls" = "x" || test "x$enable_use_tls" = "xyes"; then
  cdef_use_tls="#define"
  tls_package="any"
  enable_use_tls="yes"
elif test "x$enable_use_tls" = "xno"; then
  cdef_use_tls="#undef"
  tls_package="any"
else
  cdef_use_tls="#define"
  tls_package="$enable_use_tls"
  enable_use_tls="yes"
fi
if test "x$with_tls_path" = "x" && test "x$DEFAULTwith_tls_path" != "x"; then
  with_tls_path=$DEFAULTwith_tls_path
fi

if test "x$with_tls_path" = "x" -o "x$with_tls_path" = "xno" ; then
  tls_include_path=""
  tls_lib_path=""
else
  tls_include_path="${with_tls_path}/include"
  tls_lib_path="${with_tls_path}/lib"
fi
if test "x$enable_use_gcrypt" = "x" && test "x$DEFAULTenable_use_gcrypt" != "x"; then
  enable_use_gcrypt=$DEFAULTenable_use_gcrypt
fi

if test "x$enable_use_gcrypt" = "x" || test "x$enable_use_gcrypt" = "xyes"; then
  cdef_use_gcrypt="#define"
  gcrypt_path=
  enable_use_gcrypt="yes"
elif test "x$enable_use_gcrypt" = "xno"; then
  cdef_use_gcrypt="#undef"
  gcrypt_path=
else
  cdef_use_gcrypt="#define"
  gcrypt_path="$enable_use_gcrypt"
  enable_use_gcrypt="yes"
fi

if test "x$enable_access_control" = "x" && test "x$DEFAULTenable_access_control" != "x"; then
  enable_access_control=$DEFAULTenable_access_control
fi

if test "x$enable_access_control" = "xyes"; then
  cdef_access_control="#define"
else
  cdef_access_control="#undef"
fi

if test "x$enable_access_log" = "x" && test "x$DEFAULTenable_access_log" != "x"; then
  enable_access_log=$DEFAULTenable_access_log
fi

if test "x$enable_access_log" = "xyes"; then
  cdef_access_log="#define"
else
  cdef_access_log="#undef"
fi

if test "x$enable_compat_mode" = "x" && test "x$DEFAULTenable_compat_mode" != "x"; then
  enable_compat_mode=$DEFAULTenable_compat_mode
fi

if test "x$enable_compat_mode" = "xyes"; then
  cdef_compat_mode="#define"
else
  cdef_compat_mode="#undef"
fi

if test "x$enable_strict_euids" = "x" && test "x$DEFAULTenable_strict_euids" != "x"; then
  enable_strict_euids=$DEFAULTenable_strict_euids
fi

if test "x$enable_strict_euids" = "xyes"; then
  cdef_strict_euids="#define"
else
  cdef_strict_euids="#undef"
fi

if test "x$enable_filename_spaces" = "x" && test "x$DEFAULTenable_filename_spaces" != "x"; then
  enable_filename_spaces=$DEFAULTenable_filename_spaces
fi

if test "x$enable_filename_spaces" = "xyes"; then
  cdef_filename_spaces="#define"
else
  cdef_filename_spaces="#undef"
fi

if test "x$enable_share_variables" = "x" && test "x$DEFAULTenable_share_variables" != "x"; then
  enable_share_variables=$DEFAULTenable_share_variables
fi

if test "x$enable_share_variables" = "xyes"; then
  cdef_share_variables="#define"
else
  cdef_share_variables="#undef"
fi

if test "x$enable_keyword_in" = "x" && test "x$DEFAULTenable_keyword_in" != "x"; then
  enable_keyword_in=$DEFAULTenable_keyword_in
fi

if test "x$enable_keyword_in" = "xyes"; then
  cdef_keyword_in="#define"
else
  cdef_keyword_in="#undef"
fi

if test "x$enable_use_mccp" = "x" && test "x$DEFAULTenable_use_mccp" != "x"; then
  enable_use_mccp=$DEFAULTenable_use_mccp
fi

if test "x$enable_use_mccp" = "xyes"; then
  cdef_use_mccp="#define"
else
  cdef_use_mccp="#undef"
fi

if test "x$enable_use_ipv6" = "x" && test "x$DEFAULTenable_use_ipv6" != "x"; then
  enable_use_ipv6=$DEFAULTenable_use_ipv6
fi

if test "x$enable_use_ipv6" = "xyes"; then
  cdef_use_ipv6="#define"
else
  cdef_use_ipv6="#undef"
fi

if test "x$enable_use_deprecated" = "x" && test "x$DEFAULTenable_use_deprecated" != "x"; then
  enable_use_deprecated=$DEFAULTenable_use_deprecated
fi

if test "x$enable_use_deprecated" = "xyes"; then
  cdef_use_deprecated="#define"
else
  cdef_use_deprecated="#undef"
fi

if test "x$enable_use_parse_command" = "x" && test "x$DEFAULTenable_use_parse_command" != "x"; then
  enable_use_parse_command=$DEFAULTenable_use_parse_command
fi

if test "x$enable_use_parse_command" = "xyes"; then
  cdef_use_parse_command="#define"
else
  cdef_use_parse_command="#undef"
fi

if test "x$enable_use_process_string" = "x" && test "x$DEFAULTenable_use_process_string" != "x"; then
  enable_use_process_string=$DEFAULTenable_use_process_string
fi

if test "x$enable_use_process_string" = "xyes"; then
  cdef_use_process_string="#define"
else
  cdef_use_process_string="#undef"
fi

if test "x$enable_comm_stat" = "x" && test "x$DEFAULTenable_comm_stat" != "x"; then
  enable_comm_stat=$DEFAULTenable_comm_stat
fi

if test "x$enable_comm_stat" = "xyes"; then
  cdef_comm_stat="#define"
else
  cdef_comm_stat="#undef"
fi

if test "x$enable_apply_cache_stat" = "x" && test "x$DEFAULTenable_apply_cache_stat" != "x"; then
  enable_apply_cache_stat=$DEFAULTenable_apply_cache_stat
fi

if test "x$enable_apply_cache_stat" = "xyes"; then
  cdef_apply_cache_stat="#define"
else
  cdef_apply_cache_stat="#undef"
fi

if test "x$enable_malloc_sbrk" = "x" && test "x$DEFAULTenable_malloc_sbrk" != "x"; then
  enable_malloc_sbrk=$DEFAULTenable_malloc_sbrk
fi

if test "x$enable_malloc_sbrk" = "xyes"; then
  cdef_malloc_sbrk="#define"
else
  cdef_malloc_sbrk="#undef"
fi

if test "x$enable_malloc_check" = "x" && test "x$DEFAULTenable_malloc_check" != "x"; then
  enable_malloc_check=$DEFAULTenable_malloc_check
fi

if test "x$enable_malloc_check" = "xyes"; then
  cdef_malloc_check="#define"
else
  cdef_malloc_check="#undef"
fi

if test "x$enable_malloc_trace" = "x" && test "x$DEFAULTenable_malloc_trace" != "x"; then
  enable_malloc_trace=$DEFAULTenable_malloc_trace
fi

if test "x$enable_malloc_trace" = "xyes"; then
  cdef_malloc_trace="#define"
else
  cdef_malloc_trace="#undef"
fi

if test "x$enable_malloc_lpc_trace" = "x" && test "x$DEFAULTenable_malloc_lpc_trace" != "x"; then
  enable_malloc_lpc_trace=$DEFAULTenable_malloc_lpc_trace
fi

if test "x$enable_malloc_lpc_trace" = "xyes"; then
  cdef_malloc_lpc_trace="#define"
else
  cdef_malloc_lpc_trace="#undef"
fi

if test "x$enable_malloc_sbrk_trace" = "x" && test "x$DEFAULTenable_malloc_sbrk_trace" != "x"; then
  enable_malloc_sbrk_trace=$DEFAULTenable_malloc_sbrk_trace
fi

if test "x$enable_malloc_sbrk_trace" = "xyes"; then
  cdef_malloc_sbrk_trace="#define"
else
  cdef_malloc_sbrk_trace="#undef"
fi

if test "x$enable_malloc_replaceable" = "x" && test "x$DEFAULTenable_malloc_replaceable" != "x"; then
  enable_malloc_replaceable=$DEFAULTenable_malloc_replaceable
fi

if test "x$enable_malloc_replaceable" = "xyes"; then
  cdef_malloc_replaceable="#define"
else
  cdef_malloc_replaceable="#undef"
fi

if test "x$enable_allocator_wrappers" = "x" && test "x$DEFAULTenable_allocator_wrappers" != "x"; then
  enable_allocator_wrappers=$DEFAULTenable_allocator_wrappers
fi

if test "x$enable_allocator_wrappers" = "xyes"; then
  cdef_allocator_wrappers="#define"
else
  cdef_allocator_wrappers="#undef"
fi

if test "x$enable_dynamic_costs" = "x" && test "x$DEFAULTenable_dynamic_costs" != "x"; then
  enable_dynamic_costs=$DEFAULTenable_dynamic_costs
fi

if test "x$enable_dynamic_costs" = "xyes"; then
  cdef_dynamic_costs="#define"
else
  cdef_dynamic_costs="#undef"
fi

if test "x$enable_eval_cost_trace" = "x" && test "x$DEFAULTenable_eval_cost_trace" != "x"; then
  enable_eval_cost_trace=$DEFAULTenable_eval_cost_trace
fi

if test "x$enable_eval_cost_trace" = "xyes"; then
  cdef_eval_cost_trace="#define"
else
  cdef_eval_cost_trace="#undef"
fi

if test "x$enable_trace_code" = "x" && test "x$DEFAULTenable_trace_code" != "x"; then
  enable_trace_code=$DEFAULTenable_trace_code
fi

if test "x$enable_trace_code" = "xyes"; then
  cdef_trace_code="#define"
else
  cdef_trace_code="#undef"
fi


if test "x$enable_rxcache_table" = "x" && test "x$DEFAULTenable_rxcache_table" != "x"; then
  enable_rxcache_table=$DEFAULTenable_rxcache_table
fi

if test "x$enable_rxcache_table" = "xyes"; then
  cdef_rxcache_table="#define"
else
  cdef_rxcache_table="#undef"
fi

if test "x$enable_synchronous_heart_beat" = "x" && test "x$DEFAULTenable_synchronous_heart_beat" != "x"; then
  enable_synchronous_heart_beat=$DEFAULTenable_synchronous_heart_beat
fi

if test "x$enable_synchronous_heart_beat" = "xyes"; then
  cdef_synchronous_heart_beat="#define"
else
  cdef_synchronous_heart_beat="#undef"
fi


if test "x$enable_opcprof" = "x" && test "x$DEFAULTenable_opcprof" != "x"; then
  enable_opcprof=$DEFAULTenable_opcprof
fi

if test "x$enable_opcprof" = "xyes"; then
  cdef_opcprof="#define"
else
  cdef_opcprof="#undef"
fi

if test "x$enable_verbose_opcprof" = "x" && test "x$DEFAULTenable_verbose_opcprof" != "x"; then
  enable_verbose_opcprof=$DEFAULTenable_verbose_opcprof
fi

if test "x$enable_verbose_opcprof" = "xyes"; then
  cdef_verbose_opcprof="#define"
else
  cdef_verbose_opcprof="#undef"
fi

if test "x$enable_debug" = "x" && test "x$DEFAULTenable_debug" != "x"; then
  enable_debug=$DEFAULTenable_debug
fi

if test "x$enable_debug" = "xyes"; then
  cdef_debug="#define"
else
  cdef_debug="#undef"
fi

if test "x$enable_yydebug" = "x" && test "x$DEFAULTenable_yydebug" != "x"; then
  enable_yydebug=$DEFAULTenable_yydebug
fi

if test "x$enable_yydebug" = "xyes"; then
  cdef_yydebug="#define"
else
  cdef_yydebug="#undef"
fi

if test "x$enable_no_inlines" = "x" && test "x$DEFAULTenable_no_inlines" != "x"; then
  enable_no_inlines=$DEFAULTenable_no_inlines
fi

if test "x$enable_no_inlines" = "xyes"; then
  cdef_no_inlines="#define"
else
  cdef_no_inlines="#undef"
fi

if test "x$enable_debug_telnet" = "x" && test "x$DEFAULTenable_debug_telnet" != "x"; then
  enable_debug_telnet=$DEFAULTenable_debug_telnet
fi

if test "x$enable_debug_telnet" = "xyes"; then
  cdef_debug_telnet="#define"
else
  cdef_debug_telnet="#undef"
fi

if test "x$enable_debug_malloc_allocs" = "x" && test "x$DEFAULTenable_debug_malloc_allocs" != "x"; then
  enable_debug_malloc_allocs=$DEFAULTenable_debug_malloc_allocs
fi

if test "x$enable_debug_malloc_allocs" = "xyes"; then
  cdef_debug_malloc_allocs="#define"
else
  cdef_debug_malloc_allocs="#undef"
fi

if test "x$enable_swap_efun" = "x" && test "x$DEFAULTenable_swap_efun" != "x"; then
  enable_swap_efun=$DEFAULTenable_swap_efun
fi

if test "x$enable_swap_efun" = "xyes"; then
  cdef_swap_efun="#define"
else
  cdef_swap_efun="#undef"
fi


if test "x$enable_check_object_stat" = "x" && test "x$DEFAULTenable_check_object_stat" != "x"; then
  enable_check_object_stat=$DEFAULTenable_check_object_stat
fi

if test "x$enable_check_object_stat" = "xyes"; then
  cdef_check_object_stat="#define"
else
  cdef_check_object_stat="#undef"
fi

if test "x$enable_check_mapping_total" = "x" && test "x$DEFAULTenable_check_mapping_total" != "x"; then
  enable_check_mapping_total=$DEFAULTenable_check_mapping_total
fi

if test "x$enable_check_mapping_total" = "xyes"; then
  cdef_check_mapping_total="#define"
else
  cdef_check_mapping_total="#undef"
fi

if test "x$enable_check_object_ref" = "x" && test "x$DEFAULTenable_check_object_ref" != "x"; then
  enable_check_object_ref=$DEFAULTenable_check_object_ref
fi

if test "x$enable_check_object_ref" = "xyes"; then
  cdef_check_object_ref="#define"
else
  cdef_check_object_ref="#undef"
fi

if test "x$enable_check_object_gc_ref" = "x" && test "x$DEFAULTenable_check_object_gc_ref" != "x"; then
  enable_check_object_gc_ref=$DEFAULTenable_check_object_gc_ref
fi

if test "x$enable_check_object_gc_ref" = "xyes"; then
  cdef_check_object_gc_ref="#define"
else
  cdef_check_object_gc_ref="#undef"
fi

if test "x$enable_dump_gc_refs" = "x" && test "x$DEFAULTenable_dump_gc_refs" != "x"; then
  enable_dump_gc_refs=$DEFAULTenable_dump_gc_refs
fi

if test "x$enable_dump_gc_refs" = "xyes"; then
  cdef_dump_gc_refs="#define"
else
  cdef_dump_gc_refs="#undef"
fi

if test "x$enable_valgrind" = "x" && test "x$DEFAULTenable_valgrind" != "x"; then
  enable_valgrind=$DEFAULTenable_valgrind
fi

if test "x$enable_valgrind" = "xyes"; then
  cdef_valgrind="#define"
else
  cdef_valgrind="#undef"
fi


if test "x$with_optimize" != "x"; then
  with_optimize=`echo $with_optimize|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_optimize" = "x" && test "x$DEFAULTwith_optimize" != "x"; then
  with_optimize=$DEFAULTwith_optimize
fi

val_optimize="$with_optimize"


if test "x$with_access_file" != "x"; then
  with_access_file=`echo $with_access_file|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_access_file" = "x" && test "x$DEFAULTwith_access_file" != "x"; then
  with_access_file=$DEFAULTwith_access_file
fi

val_access_file="\"$with_access_file\""

if test "x$with_access_log" != "x"; then
  with_access_log=`echo $with_access_log|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_access_log" = "x" && test "x$DEFAULTwith_access_log" != "x"; then
  with_access_log=$DEFAULTwith_access_log
fi

val_access_log="\"$with_access_log\""

if test "x$with_swap_file" != "x"; then
  with_swap_file=`echo $with_swap_file|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_swap_file" = "x" && test "x$DEFAULTwith_swap_file" != "x"; then
  with_swap_file=$DEFAULTwith_swap_file
fi

val_swap_file="\"$with_swap_file\""

if test "x$with_wizlist_file" != "x"; then
  with_wizlist_file=`echo $with_wizlist_file|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_wizlist_file" = "x" && test "x$DEFAULTwith_wizlist_file" != "x"; then
  with_wizlist_file=$DEFAULTwith_wizlist_file
fi

val_wizlist_file="\"$with_wizlist_file\""

if test "x$with_master_name" != "x"; then
  with_master_name=`echo $with_master_name|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_master_name" = "x" && test "x$DEFAULTwith_master_name" != "x"; then
  with_master_name=$DEFAULTwith_master_name
fi

val_master_name="\"$with_master_name\""

if test "x$with_input_escape" != "x"; then
  with_input_escape=`echo $with_input_escape|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_input_escape" = "x" && test "x$DEFAULTwith_input_escape" != "x"; then
  with_input_escape=$DEFAULTwith_input_escape
fi

val_input_escape="\"$with_input_escape\""

if test "x$with_tls_keyfile" != "x"; then
  with_tls_keyfile=`echo $with_tls_keyfile|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_tls_keyfile" = "x" && test "x$DEFAULTwith_tls_keyfile" != "x"; then
  with_tls_keyfile=$DEFAULTwith_tls_keyfile
fi

val_tls_keyfile="\"$with_tls_keyfile\""

if test "x$with_tls_keydirectory" != "x"; then
  with_tls_keydirectory=`echo $with_tls_keydirectory|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_tls_keydirectory" = "x" && test "x$DEFAULTwith_tls_keydirectory" != "x"; then
  with_tls_keydirectory=$DEFAULTwith_tls_keydirectory
fi

val_tls_keydirectory="\"$with_tls_keydirectory\""

if test "x$with_tls_certfile" != "x"; then
  with_tls_certfile=`echo $with_tls_certfile|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_tls_certfile" = "x" && test "x$DEFAULTwith_tls_certfile" != "x"; then
  with_tls_certfile=$DEFAULTwith_tls_certfile
fi

val_tls_certfile="\"$with_tls_certfile\""

if test "x$with_tls_trustfile" != "x"; then
  with_tls_trustfile=`echo $with_tls_trustfile|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_tls_trustfile" = "x" && test "x$DEFAULTwith_tls_trustfile" != "x"; then
  with_tls_trustfile=$DEFAULTwith_tls_trustfile
fi

val_tls_trustfile="\"$with_tls_trustfile\""

if test "x$with_tls_trustdirectory" != "x"; then
  with_tls_trustdirectory=`echo $with_tls_trustdirectory|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_tls_trustdirectory" = "x" && test "x$DEFAULTwith_tls_trustdirectory" != "x"; then
  with_tls_trustdirectory=$DEFAULTwith_tls_trustdirectory
fi

val_tls_trustdirectory="\"$with_tls_trustdirectory\""

if test "x$with_tls_crlfile" != "x"; then
  with_tls_crlfile=`echo $with_tls_crlfile|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_tls_crlfile" = "x" && test "x$DEFAULTwith_tls_crlfile" != "x"; then
  with_tls_crlfile=$DEFAULTwith_tls_crlfile
fi

val_tls_crlfile="\"$with_tls_crlfile\""

if test "x$with_tls_crldirectory" != "x"; then
  with_tls_crldirectory=`echo $with_tls_crldirectory|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_tls_crldirectory" = "x" && test "x$DEFAULTwith_tls_crldirectory" != "x"; then
  with_tls_crldirectory=$DEFAULTwith_tls_crldirectory
fi

val_tls_crldirectory="\"$with_tls_crldirectory\""

if test "x$with_tls_password" != "x"; then
  with_tls_password=`echo $with_tls_password|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_tls_password" = "x" && test "x$DEFAULTwith_tls_password" != "x"; then
  with_tls_password=$DEFAULTwith_tls_password
fi

val_tls_password="\"$with_tls_password\""


if test "x$with_python_script" != "x"; then
  with_python_script=`echo $with_python_script|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_python_script" = "x" && test "x$DEFAULTwith_python_script" != "x"; then
  with_python_script=$DEFAULTwith_python_script
fi

val_python_script="\"$with_python_script\""


if test "x$with_malloc" != "x"; then
  with_malloc=`echo $with_malloc|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_malloc" = "x" && test "x$DEFAULTwith_malloc" != "x"; then
  with_malloc=$DEFAULTwith_malloc
fi

val_malloc="$with_malloc"


if test "x$with_write_buffer_max_size" != "x"; then
  with_write_buffer_max_size=`echo $with_write_buffer_max_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_write_buffer_max_size" = "x" && test "x$DEFAULTwith_write_buffer_max_size" != "x"; then
  with_write_buffer_max_size=$DEFAULTwith_write_buffer_max_size
fi

val_write_buffer_max_size=$with_write_buffer_max_size

if test "x$with_erq_max_reply" != "x"; then
  with_erq_max_reply=`echo $with_erq_max_reply|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_erq_max_reply" = "x" && test "x$DEFAULTwith_erq_max_reply" != "x"; then
  with_erq_max_reply=$DEFAULTwith_erq_max_reply
fi

val_erq_max_reply=$with_erq_max_reply

if test "x$with_erq_max_send" != "x"; then
  with_erq_max_send=`echo $with_erq_max_send|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_erq_max_send" = "x" && test "x$DEFAULTwith_erq_max_send" != "x"; then
  with_erq_max_send=$DEFAULTwith_erq_max_send
fi

val_erq_max_send=$with_erq_max_send

if test "x$with_erq_debug" != "x"; then
  with_erq_debug=`echo $with_erq_debug|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_erq_debug" = "x" && test "x$DEFAULTwith_erq_debug" != "x"; then
  with_erq_debug=$DEFAULTwith_erq_debug
fi

val_erq_debug=$with_erq_debug

if test "x$with_read_file_max_size" != "x"; then
  with_read_file_max_size=`echo $with_read_file_max_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_read_file_max_size" = "x" && test "x$DEFAULTwith_read_file_max_size" != "x"; then
  with_read_file_max_size=$DEFAULTwith_read_file_max_size
fi

val_read_file_max_size=$with_read_file_max_size

if test "x$with_time_to_clean_up" != "x"; then
  with_time_to_clean_up=`echo $with_time_to_clean_up|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_time_to_clean_up" = "x" && test "x$DEFAULTwith_time_to_clean_up" != "x"; then
  with_time_to_clean_up=$DEFAULTwith_time_to_clean_up
fi

val_time_to_clean_up=$with_time_to_clean_up

if test "x$with_time_to_swap" != "x"; then
  with_time_to_swap=`echo $with_time_to_swap|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_time_to_swap" = "x" && test "x$DEFAULTwith_time_to_swap" != "x"; then
  with_time_to_swap=$DEFAULTwith_time_to_swap
fi

val_time_to_swap=$with_time_to_swap

if test "x$with_time_to_swap_variables" != "x"; then
  with_time_to_swap_variables=`echo $with_time_to_swap_variables|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_time_to_swap_variables" = "x" && test "x$DEFAULTwith_time_to_swap_variables" != "x"; then
  with_time_to_swap_variables=$DEFAULTwith_time_to_swap_variables
fi

val_time_to_swap_variables=$with_time_to_swap_variables

if test "x$with_time_to_reset" != "x"; then
  with_time_to_reset=`echo $with_time_to_reset|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_time_to_reset" = "x" && test "x$DEFAULTwith_time_to_reset" != "x"; then
  with_time_to_reset=$DEFAULTwith_time_to_reset
fi

val_time_to_reset=$with_time_to_reset

if test "x$with_alarm_time" != "x"; then
  with_alarm_time=`echo $with_alarm_time|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_alarm_time" = "x" && test "x$DEFAULTwith_alarm_time" != "x"; then
  with_alarm_time=$DEFAULTwith_alarm_time
fi

val_alarm_time=$with_alarm_time

if test "x$with_heart_beat_interval" != "x"; then
  with_heart_beat_interval=`echo $with_heart_beat_interval|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_heart_beat_interval" = "x" && test "x$DEFAULTwith_heart_beat_interval" != "x"; then
  with_heart_beat_interval=$DEFAULTwith_heart_beat_interval
fi

val_heart_beat_interval=$with_heart_beat_interval

if test "x$with_evaluator_stack_size" != "x"; then
  with_evaluator_stack_size=`echo $with_evaluator_stack_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_evaluator_stack_size" = "x" && test "x$DEFAULTwith_evaluator_stack_size" != "x"; then
  with_evaluator_stack_size=$DEFAULTwith_evaluator_stack_size
fi

val_evaluator_stack_size=$with_evaluator_stack_size

if test "x$with_max_user_trace" != "x"; then
  with_max_user_trace=`echo $with_max_user_trace|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_user_trace" = "x" && test "x$DEFAULTwith_max_user_trace" != "x"; then
  with_max_user_trace=$DEFAULTwith_max_user_trace
fi

val_max_user_trace=$with_max_user_trace

if test "x$with_max_trace" != "x"; then
  with_max_trace=`echo $with_max_trace|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_trace" = "x" && test "x$DEFAULTwith_max_trace" != "x"; then
  with_max_trace=$DEFAULTwith_max_trace
fi

val_max_trace=$with_max_trace

if test "x$with_compiler_stack_size" != "x"; then
  with_compiler_stack_size=`echo $with_compiler_stack_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_compiler_stack_size" = "x" && test "x$DEFAULTwith_compiler_stack_size" != "x"; then
  with_compiler_stack_size=$DEFAULTwith_compiler_stack_size
fi

val_compiler_stack_size=$with_compiler_stack_size

if test "x$with_max_bits" != "x"; then
  with_max_bits=`echo $with_max_bits|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_bits" = "x" && test "x$DEFAULTwith_max_bits" != "x"; then
  with_max_bits=$DEFAULTwith_max_bits
fi

val_max_bits=$with_max_bits

if test "x$with_portno" != "x"; then
  with_portno=`echo $with_portno|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_portno" = "x" && test "x$DEFAULTwith_portno" != "x"; then
  with_portno=$DEFAULTwith_portno
fi

val_portno=$with_portno

if test "x$with_maxnumports" != "x"; then
  with_maxnumports=`echo $with_maxnumports|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_maxnumports" = "x" && test "x$DEFAULTwith_maxnumports" != "x"; then
  with_maxnumports=$DEFAULTwith_maxnumports
fi

val_maxnumports=$with_maxnumports

if test "x$with_max_cost" != "x"; then
  with_max_cost=`echo $with_max_cost|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_cost" = "x" && test "x$DEFAULTwith_max_cost" != "x"; then
  with_max_cost=$DEFAULTwith_max_cost
fi

val_max_cost=$with_max_cost

if test "x$with_catch_reserved_cost" != "x"; then
  with_catch_reserved_cost=`echo $with_catch_reserved_cost|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_catch_reserved_cost" = "x" && test "x$DEFAULTwith_catch_reserved_cost" != "x"; then
  with_catch_reserved_cost=$DEFAULTwith_catch_reserved_cost
fi

val_catch_reserved_cost=$with_catch_reserved_cost

if test "x$with_master_reserved_cost" != "x"; then
  with_master_reserved_cost=`echo $with_master_reserved_cost|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_master_reserved_cost" = "x" && test "x$DEFAULTwith_master_reserved_cost" != "x"; then
  with_master_reserved_cost=$DEFAULTwith_master_reserved_cost
fi

val_master_reserved_cost=$with_master_reserved_cost

if test "x$with_max_array_size" != "x"; then
  with_max_array_size=`echo $with_max_array_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_array_size" = "x" && test "x$DEFAULTwith_max_array_size" != "x"; then
  with_max_array_size=$DEFAULTwith_max_array_size
fi

val_max_array_size=$with_max_array_size

if test "x$with_max_mapping_keys" != "x"; then
  with_max_mapping_keys=`echo $with_max_mapping_keys|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_mapping_keys" = "x" && test "x$DEFAULTwith_max_mapping_keys" != "x"; then
  with_max_mapping_keys=$DEFAULTwith_max_mapping_keys
fi

val_max_mapping_keys=$with_max_mapping_keys

if test "x$with_max_mapping_size" != "x"; then
  with_max_mapping_size=`echo $with_max_mapping_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_mapping_size" = "x" && test "x$DEFAULTwith_max_mapping_size" != "x"; then
  with_max_mapping_size=$DEFAULTwith_max_mapping_size
fi

val_max_mapping_size=$with_max_mapping_size

if test "x$with_max_callouts" != "x"; then
  with_max_callouts=`echo $with_max_callouts|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_callouts" = "x" && test "x$DEFAULTwith_max_callouts" != "x"; then
  with_max_callouts=$DEFAULTwith_max_callouts
fi

val_max_callouts=$with_max_callouts

if test "x$with_max_players" != "x"; then
  with_max_players=`echo $with_max_players|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_players" = "x" && test "x$DEFAULTwith_max_players" != "x"; then
  with_max_players=$DEFAULTwith_max_players
fi

val_max_players=$with_max_players

if test "x$with_max_local" != "x"; then
  with_max_local=`echo $with_max_local|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_local" = "x" && test "x$DEFAULTwith_max_local" != "x"; then
  with_max_local=$DEFAULTwith_max_local
fi

val_max_local=$with_max_local

if test "x$with_allowed_ed_cmds" != "x"; then
  with_allowed_ed_cmds=`echo $with_allowed_ed_cmds|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_allowed_ed_cmds" = "x" && test "x$DEFAULTwith_allowed_ed_cmds" != "x"; then
  with_allowed_ed_cmds=$DEFAULTwith_allowed_ed_cmds
fi

val_allowed_ed_cmds=$with_allowed_ed_cmds

if test "x$with_max_command_length" != "x"; then
  with_max_command_length=`echo $with_max_command_length|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_command_length" = "x" && test "x$DEFAULTwith_max_command_length" != "x"; then
  with_max_command_length=$DEFAULTwith_max_command_length
fi

val_max_command_length=$with_max_command_length

if test "x$with_reserved_user_size" != "x"; then
  with_reserved_user_size=`echo $with_reserved_user_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_reserved_user_size" = "x" && test "x$DEFAULTwith_reserved_user_size" != "x"; then
  with_reserved_user_size=$DEFAULTwith_reserved_user_size
fi

val_reserved_user_size=$with_reserved_user_size

if test "x$with_reserved_master_size" != "x"; then
  with_reserved_master_size=`echo $with_reserved_master_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_reserved_master_size" = "x" && test "x$DEFAULTwith_reserved_master_size" != "x"; then
  with_reserved_master_size=$DEFAULTwith_reserved_master_size
fi

val_reserved_master_size=$with_reserved_master_size

if test "x$with_reserved_system_size" != "x"; then
  with_reserved_system_size=`echo $with_reserved_system_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_reserved_system_size" = "x" && test "x$DEFAULTwith_reserved_system_size" != "x"; then
  with_reserved_system_size=$DEFAULTwith_reserved_system_size
fi

val_reserved_system_size=$with_reserved_system_size

if test "x$with_htable_size" != "x"; then
  with_htable_size=`echo $with_htable_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_htable_size" = "x" && test "x$DEFAULTwith_htable_size" != "x"; then
  with_htable_size=$DEFAULTwith_htable_size
fi

val_htable_size=$with_htable_size

if test "x$with_itable_size" != "x"; then
  with_itable_size=`echo $with_itable_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_itable_size" = "x" && test "x$DEFAULTwith_itable_size" != "x"; then
  with_itable_size=$DEFAULTwith_itable_size
fi

val_itable_size=$with_itable_size

if test "x$with_otable_size" != "x"; then
  with_otable_size=`echo $with_otable_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_otable_size" = "x" && test "x$DEFAULTwith_otable_size" != "x"; then
  with_otable_size=$DEFAULTwith_otable_size
fi

val_otable_size=$with_otable_size

if test "x$with_ttable_size" != "x"; then
  with_ttable_size=`echo $with_ttable_size|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_ttable_size" = "x" && test "x$DEFAULTwith_ttable_size" != "x"; then
  with_ttable_size=$DEFAULTwith_ttable_size
fi

val_ttable_size=$with_ttable_size

if test "x$with_defmax" != "x"; then
  with_defmax=`echo $with_defmax|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_defmax" = "x" && test "x$DEFAULTwith_defmax" != "x"; then
  with_defmax=$DEFAULTwith_defmax
fi

val_defmax=$with_defmax

if test "x$with_apply_cache_bits" != "x"; then
  with_apply_cache_bits=`echo $with_apply_cache_bits|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_apply_cache_bits" = "x" && test "x$DEFAULTwith_apply_cache_bits" != "x"; then
  with_apply_cache_bits=$DEFAULTwith_apply_cache_bits
fi

val_apply_cache_bits=$with_apply_cache_bits

if test "x$with_rxcache_table" != "x"; then
  with_rxcache_table=`echo $with_rxcache_table|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_rxcache_table" = "x" && test "x$DEFAULTwith_rxcache_table" != "x"; then
  with_rxcache_table=$DEFAULTwith_rxcache_table
fi

val_rxcache_table=$with_rxcache_table

if test "x$with_max_byte_transfer" != "x"; then
  with_max_byte_transfer=`echo $with_max_byte_transfer|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_byte_transfer" = "x" && test "x$DEFAULTwith_max_byte_transfer" != "x"; then
  with_max_byte_transfer=$DEFAULTwith_max_byte_transfer
fi

val_max_byte_transfer=$with_max_byte_transfer

if test "x$with_udp_port" != "x"; then
  with_udp_port=`echo $with_udp_port|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_udp_port" = "x" && test "x$DEFAULTwith_udp_port" != "x"; then
  with_udp_port=$DEFAULTwith_udp_port
fi

val_udp_port=$with_udp_port

if test "x$with_set_buffer_size_max" != "x"; then
  with_set_buffer_size_max=`echo $with_set_buffer_size_max|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_set_buffer_size_max" = "x" && test "x$DEFAULTwith_set_buffer_size_max" != "x"; then
  with_set_buffer_size_max=$DEFAULTwith_set_buffer_size_max
fi

val_set_buffer_size_max=$with_set_buffer_size_max

if test "x$with_min_malloced" != "x"; then
  with_min_malloced=`echo $with_min_malloced|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_min_malloced" = "x" && test "x$DEFAULTwith_min_malloced" != "x"; then
  with_min_malloced=$DEFAULTwith_min_malloced
fi

val_min_malloced=$with_min_malloced

if test "x$with_min_small_malloced" != "x"; then
  with_min_small_malloced=`echo $with_min_small_malloced|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_min_small_malloced" = "x" && test "x$DEFAULTwith_min_small_malloced" != "x"; then
  with_min_small_malloced=$DEFAULTwith_min_small_malloced
fi

val_min_small_malloced=$with_min_small_malloced

if test "x$with_hard_malloc_limit" != "x"; then
  with_hard_malloc_limit=`echo $with_hard_malloc_limit|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_hard_malloc_limit" = "x" && test "x$DEFAULTwith_hard_malloc_limit" != "x"; then
  with_hard_malloc_limit=$DEFAULTwith_hard_malloc_limit
fi

val_hard_malloc_limit=$with_hard_malloc_limit

if test "x$with_soft_malloc_limit" != "x"; then
  with_soft_malloc_limit=`echo $with_soft_malloc_limit|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_soft_malloc_limit" = "x" && test "x$DEFAULTwith_soft_malloc_limit" != "x"; then
  with_soft_malloc_limit=$DEFAULTwith_soft_malloc_limit
fi

val_soft_malloc_limit=$with_soft_malloc_limit

if test "x$with_total_trace_length" != "x"; then
  with_total_trace_length=`echo $with_total_trace_length|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_total_trace_length" = "x" && test "x$DEFAULTwith_total_trace_length" != "x"; then
  with_total_trace_length=$DEFAULTwith_total_trace_length
fi

val_total_trace_length=$with_total_trace_length

if test "x$with_re_recursion_limit" != "x"; then
  with_re_recursion_limit=`echo $with_re_recursion_limit|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_re_recursion_limit" = "x" && test "x$DEFAULTwith_re_recursion_limit" != "x"; then
  with_re_recursion_limit=$DEFAULTwith_re_recursion_limit
fi

val_re_recursion_limit=$with_re_recursion_limit

if test "x$with_pcre_recursion_limit" != "x"; then
  with_pcre_recursion_limit=`echo $with_pcre_recursion_limit|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_pcre_recursion_limit" = "x" && test "x$DEFAULTwith_pcre_recursion_limit" != "x"; then
  with_pcre_recursion_limit=$DEFAULTwith_pcre_recursion_limit
fi

val_pcre_recursion_limit=$with_pcre_recursion_limit

if test "x$with_max_net_connects" != "x"; then
  with_max_net_connects=`echo $with_max_net_connects|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_max_net_connects" = "x" && test "x$DEFAULTwith_max_net_connects" != "x"; then
  with_max_net_connects=$DEFAULTwith_max_net_connects
fi

val_max_net_connects=$with_max_net_connects

if test "x$with_random_period_length" != "x"; then
  with_random_period_length=`echo $with_random_period_length|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_random_period_length" = "x" && test "x$DEFAULTwith_random_period_length" != "x"; then
  with_random_period_length=$DEFAULTwith_random_period_length
fi

val_random_period_length=$with_random_period_length

if test "x$with_valgrind_redzone" != "x"; then
  with_valgrind_redzone=`echo $with_valgrind_redzone|
             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
fi
if test "x$with_valgrind_redzone" = "x" && test "x$DEFAULTwith_valgrind_redzone" != "x"; then
  with_valgrind_redzone=$DEFAULTwith_valgrind_redzone
fi

val_valgrind_redzone=$with_valgrind_redzone


if test "x$cdef_access_control" = "x#undef"; then
  cdef_access_log="#undef"
  val_access_file=
  val_access_log=
fi

if test "x$cdef_access_log" = "x#undef"; then
  val_access_log=
fi

if test "x$cdef_rxcache_table" = "x#undef"; then
  val_rxcache_table=
fi

if test "x$with_wizlist_file" != "xno"; then
  cdef_wizlist_file="#define"
  if test "x$with_wizlist_file" = "xyes"; then
    with_wizlist_file=""
  fi
else
  cdef_wizlist_file="#undef"
fi

if test "x$cdef_wizlist_file" = "x#undef"; then
  val_wizlist_file=
fi

if test "x$with_tls_keyfile" != "xno"; then
  cdef_tls_keyfile="#define"
else
  cdef_tls_keyfile="#undef"
fi

if test "x$cdef_tls_keyfile" = "x#undef"; then
  val_tls_keyfile=
fi

if test "x$with_tls_keydirectory" != "xno"; then
  cdef_tls_keydirectory="#define"
else
  cdef_tls_keydirectory="#undef"
fi

if test "x$cdef_tls_keydirectory" = "x#undef"; then
  val_tls_keydirectory=
fi

if test "x$with_tls_certfile" != "xno"; then
  cdef_tls_certfile="#define"
else
  cdef_tls_certfile="#undef"
fi

if test "x$cdef_tls_certfile" = "x#undef"; then
  val_tls_certfile=
fi

if test "x$with_tls_trustfile" != "xno"; then
  cdef_tls_trustfile="#define"
else
  cdef_tls_trustfile="#undef"
fi

if test "x$cdef_tls_trustfile" = "x#undef"; then
  val_tls_trustfile=
fi

if test "x$with_tls_trustdirectory" != "xno"; then
  cdef_tls_trustdirectory="#define"
else
  cdef_tls_trustdirectory="#undef"
fi

if test "x$cdef_tls_trustdirectory" = "x#undef"; then
  val_tls_trustdirectory=
fi

if test "x$with_tls_crlfile" != "xno"; then
  cdef_tls_crlfile="#define"
else
  cdef_tls_crlfile="#undef"
fi

if test "x$cdef_tls_crlfile" = "x#undef"; then
  val_tls_crlfile=
fi

if test "x$with_tls_crldirectory" != "xno"; then
  cdef_tls_crldirectory="#define"
else
  cdef_tls_crldirectory="#undef"
fi

if test "x$cdef_tls_crldirectory" = "x#undef"; then
  val_tls_crldirectory=
fi

if test "x$with_tls_password" != "xnone"; then
  cdef_tls_password="#define"
else
  cdef_tls_password="#undef"
fi

if test "x$cdef_tls_password" = "x#undef"; then
  val_tls_password=
fi

if test "x$with_python_script" != "xno"; then
  cdef_python_script="#define"
else
  cdef_python_script="#undef"
fi

if test "x$cdef_python_script" = "x#undef"; then
  val_python_script=
fi

if test "x$cdef_opcprof" = "x#undef"; then
  cdef_verbose_opcprof="#undef"
fi

val_optimize=`echo ${val_optimize} | tr 'a-z' 'A-Z'`











ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
set dummy ${ac_tool_prefix}clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "clang", so it can be a program name with args.
set dummy clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

fi


test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion -version; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
printf %s "checking whether the C compiler works... " >&6; }
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else $as_nop
  ac_file=''
fi
if test -z "$ac_file"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
printf %s "checking for C compiler default output file name... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
printf "%s\n" "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
printf %s "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
printf "%s\n" "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main (void)
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
printf %s "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
printf "%s\n" "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
printf %s "checking for suffix of object files... " >&6; }
if test ${ac_cv_objext+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
printf "%s\n" "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
printf %s "checking whether the compiler supports GNU C... " >&6; }
if test ${ac_cv_c_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_compiler_gnu=yes
else $as_nop
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+y}
ac_save_CFLAGS=$CFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
printf %s "checking whether $CC accepts -g... " >&6; }
if test ${ac_cv_prog_cc_g+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_g=yes
else $as_nop
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
ac_prog_cc_stdc=no
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
printf %s "checking for $CC option to enable C11 features... " >&6; }
if test ${ac_cv_prog_cc_c11+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c11=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c11_program
_ACEOF
for ac_arg in '' -std=gnu11
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c11" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi

if test "x$ac_cv_prog_cc_c11" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c11" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
     CC="$CC $ac_cv_prog_cc_c11"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  ac_prog_cc_stdc=c11
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
printf %s "checking for $CC option to enable C99 features... " >&6; }
if test ${ac_cv_prog_cc_c99+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c99_program
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi

if test "x$ac_cv_prog_cc_c99" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c99" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
     CC="$CC $ac_cv_prog_cc_c99"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  ac_prog_cc_stdc=c99
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
printf %s "checking for $CC option to enable C89 features... " >&6; }
if test ${ac_cv_prog_cc_c89+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c89_program
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi

if test "x$ac_cv_prog_cc_c89" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c89" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
     CC="$CC $ac_cv_prog_cc_c89"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  ac_prog_cc_stdc=c89
fi
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# --- check for support of various command line switches ---
# -fwrapv is currently needed to enforce defined signed integr overflow (wrap)
# in gcc.


    ld_cc_switch_savecflags="$CFLAGS"
    CFLAGS="${CFLAGS} -fwrapv"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fwrapv" >&5
printf %s "checking whether compiler supports -fwrapv... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"
      for v in EXTRA_CFLAGS CFLAGS; do
           todo="$v=\"\$$v -fwrapv\""
           eval "$todo";
      done
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


# gcc should warn about optimizations based on the assumption, signed integers
# do not overflow/wrap.

    ld_cc_switch_savecflags="$CFLAGS"
    CFLAGS="${CFLAGS} -Wall"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
printf %s "checking whether compiler supports -Wall... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"
      for v in WCFLAGS; do
           todo="$v=\"\$$v -Wall\""
           eval "$todo";
      done
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext



    ld_cc_switch_savecflags="$CFLAGS"
    CFLAGS="${CFLAGS} -Wparentheses"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wparentheses" >&5
printf %s "checking whether compiler supports -Wparentheses... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"
      for v in WCFLAGS; do
           todo="$v=\"\$$v -Wparentheses\""
           eval "$todo";
      done
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext



    ld_cc_switch_savecflags="$CFLAGS"
    CFLAGS="${CFLAGS} -Wshadow"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshadow" >&5
printf %s "checking whether compiler supports -Wshadow... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"
      for v in WCFLAGS; do
           todo="$v=\"\$$v -Wshadow\""
           eval "$todo";
      done
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext



    ld_cc_switch_savecflags="$CFLAGS"
    CFLAGS="${CFLAGS} -Wstrict-overflow=2"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wstrict-overflow=2" >&5
printf %s "checking whether compiler supports -Wstrict-overflow=2... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"
      for v in WCFLAGS; do
           todo="$v=\"\$$v -Wstrict-overflow=2\""
           eval "$todo";
      done
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      CFLAGS="$ld_cc_switch_savecflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking warning CFLAGS" >&5
printf %s "checking warning CFLAGS... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WCFLAGS" >&5
printf "%s\n" "$WCFLAGS" >&6; }

# does the compile have an inline keyword?
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
printf %s "checking for inline... " >&6; }
if test ${ac_cv_c_inline+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo (void) {return 0; }
$ac_kw foo_t foo (void) {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
printf "%s\n" "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac

if test "x$ac_cv_c_inline" != "xno"; then

printf "%s\n" "#define HAS_INLINE 1" >>confdefs.h

fi

# does the compile have an restrict keyword?
# temporarily deactivated because it introduces an #if defined x into
# machine.h and mkfunc.c can't deal with 'defined' without parentheses.
#AC_C_RESTRICT

# does the compile have an typeof keyword?

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
printf %s "checking for typeof syntax and keyword spelling... " >&6; }
if test ${ac_cv_c_typeof+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_c_typeof=no
     for ac_kw in typeof __typeof__ no; do
       test $ac_kw = no && break
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

	   int value;
	   typedef struct {
		   char a [1
			   + ! (($ac_kw (value))
				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
				 ? ($ac_kw (value)) - 1
				 : ~ (~ ($ac_kw (value)) 0
				      << sizeof ($ac_kw (value)))))]; }
	      ac__typeof_type_;
	   return
	     (! ((void) ((ac__typeof_type_ *) 0), 0));

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_typeof=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       test $ac_cv_c_typeof != no && break
     done
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
printf "%s\n" "$ac_cv_c_typeof" >&6; }
  if test $ac_cv_c_typeof != no; then

printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h

    if test $ac_cv_c_typeof != typeof; then

printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h

    fi
  fi


# does the preprocessor support the stringenizing operator?
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test ${ac_cv_prog_CPP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
      # Double quotes because $CC needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else $as_nop
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else $as_nop
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else $as_nop
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else $as_nop
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :

else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; }
if test ${ac_cv_path_GREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in grep ggrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
printf %s "checking for preprocessor stringizing operator... " >&6; }
if test ${ac_cv_c_stringize+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define x(y) #y

char *s = x(teststring);
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "#teststring" >/dev/null 2>&1
then :
  ac_cv_c_stringize=no
else $as_nop
  ac_cv_c_stringize=yes
fi
rm -rf conftest*

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
printf "%s\n" "$ac_cv_c_stringize" >&6; }
if test $ac_cv_c_stringize = yes; then

printf "%s\n" "#define HAVE_STRINGIZE 1" >>confdefs.h

fi


# does the compiler support variable length arrays?

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
printf %s "checking for variable-length arrays... " >&6; }
if test ${ac_cv_c_vararrays+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC_NO_VLA__
	defined
	#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "defined" >/dev/null 2>&1
then :
  ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Test for VLA support.  This test is partly inspired
		  from examples in the C standard.  Use at least two VLA
		  functions to detect the GCC 3.4.3 bug described in:
		  https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
		  */
	       #ifdef __STDC_NO_VLA__
		syntax error;
	       #else
		 extern int n;
		 int B[100];
		 int fvla (int m, int C[m][m]);

		 int
		 simple (int count, int all[static count])
		 {
		   return all[count - 1];
		 }

		 int
		 fvla (int m, int C[m][m])
		 {
		   typedef int VLA[m][m];
		   VLA x;
		   int D[m];
		   static int (*q)[m] = &B;
		   int (*s)[n] = q;
		   return C && &x[0][0] == &D[0] && &D[0] == s[0];
		 }
	       #endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_vararrays=yes
else $as_nop
  ac_cv_c_vararrays=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -rf conftest*

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
printf "%s\n" "$ac_cv_c_vararrays" >&6; }
  if test "$ac_cv_c_vararrays" = yes; then

printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h

  elif test "$ac_cv_c_vararrays" = no; then

printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h

  fi


# does the compuler support the volatile keyword?
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
printf %s "checking for working volatile... " >&6; }
if test ${ac_cv_c_volatile+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_volatile=yes
else $as_nop
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
printf "%s\n" "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then

printf "%s\n" "#define volatile /**/" >>confdefs.h

fi


# check for endianness (defines WORDS_BIGENDIAN if big endian).
ac_header= ac_cache=
for ac_item in $ac_header_c_list
do
  if test $ac_cache; then
    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
      printf "%s\n" "#define $ac_item 1" >> confdefs.h
    fi
    ac_header= ac_cache=
  elif test $ac_header; then
    ac_cache=$ac_item
  else
    ac_header=$ac_item
  fi
done








if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :

printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h

fi
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
printf %s "checking whether byte ordering is bigendian... " >&6; }
if test ${ac_cv_c_bigendian+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main (void)
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main (void)
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_bigendian=yes
else $as_nop
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main (void)
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main (void)
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_bigendian=yes
else $as_nop
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes
then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
unsigned short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		unsigned short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		unsigned short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		unsigned short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main (void)
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main (void)
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ac_cv_c_bigendian=no
else $as_nop
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
printf "%s\n" "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac


# check for some types
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
case $ac_cv_c_int8_t in #(
  no|yes) ;; #(
  *)

printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
;;
esac

ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
case $ac_cv_c_int16_t in #(
  no|yes) ;; #(
  *)

printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
;;
esac

ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
case $ac_cv_c_int32_t in #(
  no|yes) ;; #(
  *)

printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
;;
esac

ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
case $ac_cv_c_int64_t in #(
  no|yes) ;; #(
  *)

printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
;;
esac


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
printf %s "checking for unsigned long long int... " >&6; }
if test ${ac_cv_type_unsigned_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_type_unsigned_long_long_int=yes
     case $ac_prog_cc_stdc in
       no | c89) ;;
       *)
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main (void)
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

else $as_nop
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext;;
     esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
printf %s "checking for long long int... " >&6; }
if test ${ac_cv_type_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_type_long_long_int=yes
      case $ac_prog_cc_stdc in
	no | c89) ;;
	*)
	  ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	  if test $ac_cv_type_long_long_int = yes; then
	    	    	    	    if test "$cross_compiling" = yes
then :
  :
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		   #ifndef LLONG_MAX
		   # define HALF \
			    (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		   # define LLONG_MAX (HALF - 1 + HALF)
		   #endif
int
main (void)
{
long long int n = 1;
		   int i;
		   for (i = 0; ; i++)
		     {
		       long long int m = n << i;
		       if (m >> i != n)
			 return 1;
		       if (LLONG_MAX / 2 < m)
			 break;
		     }
		   return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

else $as_nop
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	  fi;;
      esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes
then :

printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h

else $as_nop
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h

fi



  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes
then :

printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h

else $as_nop
  for ac_type in 'int' 'long int' 'long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main (void)
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
case $ac_cv_c_uint8_t in #(
  no|yes) ;; #(
  *)

printf "%s\n" "#define _UINT8_T 1" >>confdefs.h


printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
;;
  esac

ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
case $ac_cv_c_uint16_t in #(
  no|yes) ;; #(
  *)


printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
;;
  esac

ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
case $ac_cv_c_uint32_t in #(
  no|yes) ;; #(
  *)

printf "%s\n" "#define _UINT32_T 1" >>confdefs.h


printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
;;
  esac

ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
case $ac_cv_c_uint64_t in #(
  no|yes) ;; #(
  *)

printf "%s\n" "#define _UINT64_T 1" >>confdefs.h


printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
;;
  esac



  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes
then :

printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h

else $as_nop
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes
then :

printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h

else $as_nop
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main (void)
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
printf %s "checking for long long int... " >&6; }
if test ${ac_cv_type_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_type_long_long_int=yes
      case $ac_prog_cc_stdc in
	no | c89) ;;
	*)
	  ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	  if test $ac_cv_type_long_long_int = yes; then
	    	    	    	    if test "$cross_compiling" = yes
then :
  :
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		   #ifndef LLONG_MAX
		   # define HALF \
			    (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		   # define LLONG_MAX (HALF - 1 + HALF)
		   #endif
int
main (void)
{
long long int n = 1;
		   int i;
		   for (i = 0; ; i++)
		     {
		       long long int m = n << i;
		       if (m >> i != n)
			 return 1;
		       if (LLONG_MAX / 2 < m)
			 break;
		     }
		   return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

else $as_nop
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	  fi;;
      esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
printf %s "checking for unsigned long long int... " >&6; }
if test ${ac_cv_type_unsigned_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_type_unsigned_long_long_int=yes
     case $ac_prog_cc_stdc in
       no | c89) ;;
       *)
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main (void)
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

else $as_nop
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext;;
     esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
printf %s "checking for long double... " >&6; }
if test ${ac_cv_type_long_double+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main (void)
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_long_double=yes
else $as_nop
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
printf "%s\n" "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
printf %s "checking for long double with more range or precision than double... " >&6; }
if test ${ac_cv_type_long_double_wider+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <float.h>
	    long double const a[] =
	      {
		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
	      };
	    long double
	    f (long double x)
	    {
	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
			+ (x ? f (x) : 'c'));
	    }

int
main (void)
{
static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
	    && (int) LDBL_EPSILON == 0
	  )];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_long_double_wider=yes
else $as_nop
  ac_cv_type_long_double_wider=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
printf "%s\n" "$ac_cv_type_long_double_wider" >&6; }
  if test $ac_cv_type_long_double_wider = yes; then

printf "%s\n" "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h

  fi

ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
if test "x$ac_cv_type_ssize_t" = xyes
then :

else $as_nop

printf "%s\n" "#define ssize_t int" >>confdefs.h

fi

ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes
then :

else $as_nop

printf "%s\n" "#define size_t unsigned int" >>confdefs.h

fi

ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes
then :

else $as_nop

printf "%s\n" "#define off_t long int" >>confdefs.h

fi

ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
if test "x$ac_cv_type_mode_t" = xyes
then :

else $as_nop

printf "%s\n" "#define mode_t int" >>confdefs.h

fi


  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
"
if test "x$ac_cv_type_pid_t" = xyes
then :

else $as_nop
                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

          #if defined _WIN64 && !defined __CYGWIN__
          LLP64
          #endif

int
main (void)
{

  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_pid_type='int'
else $as_nop
  ac_pid_type='__int64'
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h


fi



# Check some sizes
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
printf %s "checking size of char *... " >&6; }
if test ${ac_cv_sizeof_char_p+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_char_p" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char *)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_char_p=0
   fi
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }



printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
printf %s "checking size of int... " >&6; }
if test ${ac_cv_sizeof_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_int" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }



printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
printf %s "checking size of short... " >&6; }
if test ${ac_cv_sizeof_short+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_short" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }



printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_long" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }



printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
printf %s "checking size of long long... " >&6; }
if test ${ac_cv_sizeof_long_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_long_long" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }



printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5
printf %s "checking size of intptr_t... " >&6; }
if test ${ac_cv_sizeof_intptr_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_intptr_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (intptr_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_intptr_t=0
   fi
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5
printf "%s\n" "$ac_cv_sizeof_intptr_t" >&6; }



printf "%s\n" "#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t" >>confdefs.h


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
printf %s "checking size of intmax_t... " >&6; }
if test ${ac_cv_sizeof_intmax_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_intmax_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (intmax_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_intmax_t=0
   fi
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
printf "%s\n" "$ac_cv_sizeof_intmax_t" >&6; }



printf "%s\n" "#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t" >>confdefs.h


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
printf %s "checking size of double... " >&6; }
if test ${ac_cv_sizeof_double+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_double" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (double)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_double=0
   fi
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
printf "%s\n" "$ac_cv_sizeof_double" >&6; }



printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h




# Checking for programs


  # Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
printf %s "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test ${ac_cv_path_install+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    # Account for fact that we put trailing slashes in our PATH walk.
case $as_dir in #((
  ./ | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test ${ac_cv_path_install+y}; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
printf "%s\n" "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

ac_config_headers="$ac_config_headers machine.h"

for ac_prog in bison
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_BISON+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$BISON"; then
  ac_cv_prog_BISON="$BISON" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_BISON="$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
BISON=$ac_cv_prog_BISON
if test -n "$BISON"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
printf "%s\n" "$BISON" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$BISON" && break
done

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test ${ac_cv_prog_CPP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
      # Double quotes because $CC needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else $as_nop
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else $as_nop
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else $as_nop
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else $as_nop
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :

else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu






cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__CYGWIN32__) || defined(__CYGWIN__)
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1
then :
   EXTRA_CFLAGS="${EXTRA_CFLAGS} -DMSWIN"
fi
rm -rf conftest*


ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes
then :

printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h


fi

   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
printf %s "checking for stdbool.h that conforms to C99... " >&6; }
if test ${ac_cv_header_stdbool_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdbool.h>

             #ifndef __bool_true_false_are_defined
               #error "__bool_true_false_are_defined is not defined"
             #endif
             char a[__bool_true_false_are_defined == 1 ? 1 : -1];

             /* Regardless of whether this is C++ or "_Bool" is a
                valid type name, "true" and "false" should be usable
                in #if expressions and integer constant expressions,
                and "bool" should be a valid type name.  */

             #if !true
               #error "'true' is not true"
             #endif
             #if true != 1
               #error "'true' is not equal to 1"
             #endif
             char b[true == 1 ? 1 : -1];
             char c[true];

             #if false
               #error "'false' is not false"
             #endif
             #if false != 0
               #error "'false' is not equal to 0"
             #endif
             char d[false == 0 ? 1 : -1];

             enum { e = false, f = true, g = false * true, h = true * 256 };

             char i[(bool) 0.5 == true ? 1 : -1];
             char j[(bool) 0.0 == false ? 1 : -1];
             char k[sizeof (bool) > 0 ? 1 : -1];

             struct sb { bool s: 1; bool t; } s;
             char l[sizeof s.t > 0 ? 1 : -1];

             /* The following fails for
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
             bool m[h];
             char n[sizeof m == h * sizeof m[0] ? 1 : -1];
             char o[-1 - (bool) 0 < 0 ? 1 : -1];
             /* Catch a bug in an HP-UX C compiler.  See
         https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
         https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
              */
             bool p = true;
             bool *pp = &p;

             /* C 1999 specifies that bool, true, and false are to be
                macros, but C++ 2011 and later overrule this.  */
             #if __cplusplus < 201103
              #ifndef bool
               #error "bool is not defined"
              #endif
              #ifndef false
               #error "false is not defined"
              #endif
              #ifndef true
               #error "true is not defined"
              #endif
             #endif

             /* If _Bool is available, repeat with it all the tests
                above that used bool.  */
             #ifdef HAVE__BOOL
               struct sB { _Bool s: 1; _Bool t; } t;

               char q[(_Bool) 0.5 == true ? 1 : -1];
               char r[(_Bool) 0.0 == false ? 1 : -1];
               char u[sizeof (_Bool) > 0 ? 1 : -1];
               char v[sizeof t.t > 0 ? 1 : -1];

               _Bool w[h];
               char x[sizeof m == h * sizeof m[0] ? 1 : -1];
               char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
               _Bool z = true;
               _Bool *pz = &p;
             #endif

int
main (void)
{

             bool ps = &s;
             *pp |= p;
             *pp |= ! p;

             #ifdef HAVE__BOOL
               _Bool pt = &t;
               *pz |= z;
               *pz |= ! z;
             #endif

             /* Refer to every declared value, so they cannot be
                discarded as unused.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
                     + !l + !m + !n + !o + !p + !pp + !ps
             #ifdef HAVE__BOOL
                     + !q + !r + !u + !v + !w + !x + !y + !z + !pt
             #endif
                    );

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_header_stdbool_h=yes
else $as_nop
  ac_cv_header_stdbool_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }

if test $ac_cv_header_stdbool_h = yes; then

printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi

ac_fn_c_check_header_compile "$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_rusage_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_RUSAGE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_types_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
if test "x$ac_cv_header_stdlib_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libc.h" "ac_cv_header_libc_h" "$ac_includes_default"
if test "x$ac_cv_header_libc_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBC_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
if test "x$ac_cv_header_memory_h" = xyes
then :
  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h

fi

ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
if test "x$ac_cv_header_string_h" = xyes
then :
  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes
then :
  printf "%s\n" "#define HAVE_BSTRING_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
if test "x$ac_cv_header_netdb_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
if test "x$ac_cv_header_crypt_h" = xyes
then :
  printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/termios.h" "ac_cv_header_sys_termios_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_termios_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TERMIOS_H 1" >>confdefs.h

fi

ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
if test "x$ac_cv_header_arpa_nameser_h" = xyes
then :
  printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h

fi


ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
if test "x$ac_cv_header_limits_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h

fi

ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
printf %s "checking for $ac_hdr that defines DIR... " >&6; }
if eval test \${$as_ac_Header+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main (void)
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$as_ac_Header=yes"
else $as_nop
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
  cat >>confdefs.h <<_ACEOF
#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main (void)
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir
do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_opendir+y}
then :
  break
fi
done
if test ${ac_cv_search_opendir+y}
then :

else $as_nop
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
printf "%s\n" "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no
then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main (void)
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x
do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_opendir+y}
then :
  break
fi
done
if test ${ac_cv_search_opendir+y}
then :

else $as_nop
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
printf "%s\n" "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no
then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi




ac_func=
for ac_item in $ac_func_c_list
do
  if test $ac_func; then
    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
      echo "#define $ac_item 1" >> confdefs.h
    fi
    ac_func=
  else
    ac_func=$ac_item
  fi
done


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
printf %s "checking for working mktime... " >&6; }
if test ${ac_cv_func_working_mktime+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  ac_cv_func_working_mktime=no
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Test program from Paul Eggert and Tony Leneis.  */
#include <time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif

#include <limits.h>
#include <stdlib.h>

#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

#ifndef HAVE_ALARM
# define alarm(X) /* empty */
#endif

/* Work around redefinition to rpl_putenv by other config tests.  */
#undef putenv

static time_t time_t_max;
static time_t time_t_min;

/* Values we'll use to set the TZ environment variable.  */
static const char *tz_strings[] = {
  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
};
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))

/* Return 0 if mktime fails to convert a date in the spring-forward gap.
   Based on a problem report from Andreas Jaeger.  */
static int
spring_forward_gap ()
{
  /* glibc (up to about 1998-10-07) failed this test. */
  struct tm tm;

  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
     instead of "TZ=America/Vancouver" in order to detect the bug even
     on systems that don't support the Olson extension, or don't have the
     full zoneinfo tables installed.  */
  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");

  tm.tm_year = 98;
  tm.tm_mon = 3;
  tm.tm_mday = 5;
  tm.tm_hour = 2;
  tm.tm_min = 0;
  tm.tm_sec = 0;
  tm.tm_isdst = -1;
  return mktime (&tm) != (time_t) -1;
}

static int
mktime_test1 (time_t now)
{
  struct tm *lt;
  return ! (lt = localtime (&now)) || mktime (lt) == now;
}

static int
mktime_test (time_t now)
{
  return (mktime_test1 (now)
	  && mktime_test1 ((time_t) (time_t_max - now))
	  && mktime_test1 ((time_t) (time_t_min + now)));
}

static int
irix_6_4_bug ()
{
  /* Based on code from Ariel Faigon.  */
  struct tm tm;
  tm.tm_year = 96;
  tm.tm_mon = 3;
  tm.tm_mday = 0;
  tm.tm_hour = 0;
  tm.tm_min = 0;
  tm.tm_sec = 0;
  tm.tm_isdst = -1;
  mktime (&tm);
  return tm.tm_mon == 2 && tm.tm_mday == 31;
}

static int
bigtime_test (int j)
{
  struct tm tm;
  time_t now;
  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  now = mktime (&tm);
  if (now != (time_t) -1)
    {
      struct tm *lt = localtime (&now);
      if (! (lt
	     && lt->tm_year == tm.tm_year
	     && lt->tm_mon == tm.tm_mon
	     && lt->tm_mday == tm.tm_mday
	     && lt->tm_hour == tm.tm_hour
	     && lt->tm_min == tm.tm_min
	     && lt->tm_sec == tm.tm_sec
	     && lt->tm_yday == tm.tm_yday
	     && lt->tm_wday == tm.tm_wday
	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
	return 0;
    }
  return 1;
}

static int
year_2050_test ()
{
  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
     ignoring leap seconds.  */
  unsigned long int answer = 2527315200UL;

  struct tm tm;
  time_t t;
  tm.tm_year = 2050 - 1900;
  tm.tm_mon = 2 - 1;
  tm.tm_mday = 1;
  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  tm.tm_isdst = -1;

  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
     instead of "TZ=America/Vancouver" in order to detect the bug even
     on systems that don't support the Olson extension, or don't have the
     full zoneinfo tables installed.  */
  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");

  t = mktime (&tm);

  /* Check that the result is either a failure, or close enough
     to the correct answer that we can assume the discrepancy is
     due to leap seconds.  */
  return (t == (time_t) -1
	  || (0 < t && answer - 120 <= t && t <= answer + 120));
}

int
main (void)
{
  time_t t, delta;
  int i, j;

  /* This test makes some buggy mktime implementations loop.
     Give up after 60 seconds; a mktime slower than that
     isn't worth using anyway.  */
  alarm (60);

  for (;;)
    {
      t = (time_t_max << 1) + 1;
      if (t <= time_t_max)
	break;
      time_t_max = t;
    }
  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;

  delta = time_t_max / 997; /* a suitable prime number */
  for (i = 0; i < N_STRINGS; i++)
    {
      if (tz_strings[i])
	putenv ((char*) tz_strings[i]);

      for (t = 0; t <= time_t_max - delta; t += delta)
	if (! mktime_test (t))
	  return 1;
      if (! (mktime_test ((time_t) 1)
	     && mktime_test ((time_t) (60 * 60))
	     && mktime_test ((time_t) (60 * 60 * 24))))
	return 1;

      for (j = 1; ; j <<= 1)
	if (! bigtime_test (j))
	  return 1;
	else if (INT_MAX / 2 < j)
	  break;
      if (! bigtime_test (INT_MAX))
	return 1;
    }
  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ac_cv_func_working_mktime=yes
else $as_nop
  ac_cv_func_working_mktime=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
if test $ac_cv_func_working_mktime = no; then
  case " $LIBOBJS " in
  *" mktime.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
 ;;
esac

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
printf %s "checking for working alloca.h... " >&6; }
if test ${ac_cv_working_alloca_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main (void)
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_working_alloca_h=yes
else $as_nop
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
printf %s "checking for alloca... " >&6; }
if test ${ac_cv_func_alloca_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test $ac_cv_working_alloca_h = yes; then
  ac_cv_func_alloca_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stddef.h>
#ifndef alloca
# ifdef __GNUC__
#  define alloca __builtin_alloca
# elif defined _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef  __cplusplus
extern "C"
#  endif
void *alloca (size_t);
# endif
#endif

int
main (void)
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_alloca_works=yes
else $as_nop
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
fi

if test $ac_cv_func_alloca_works = yes; then

printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
printf %s "checking stack direction for C alloca... " >&6; }
if test ${ac_cv_c_stack_direction+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  ac_cv_c_stack_direction=0
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction (int *addr, int depth)
{
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
}

int
main (int argc, char **argv)
{
  return find_stack_direction (0, argc + !argv + 20) < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ac_cv_c_stack_direction=1
else $as_nop
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h


fi

ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
if test "x$ac_cv_func_fchmod" = xyes
then :
  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
if test "x$ac_cv_func_getrusage" = xyes
then :
  printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
if test "x$ac_cv_func_memmem" = xyes
then :
  printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
if test "x$ac_cv_func_getcwd" = xyes
then :
  printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
if test "x$ac_cv_func_sysconf" = xyes
then :
  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
if test "x$ac_cv_func_gettimeofday" = xyes
then :
  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
if test "x$ac_cv_func_wait3" = xyes
then :
  printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
if test "x$ac_cv_func_waitpid" = xyes
then :
  printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
if test "x$ac_cv_func_fcntl" = xyes
then :
  printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
if test "x$ac_cv_func_getdomainname" = xyes
then :
  printf "%s\n" "#define HAVE_GETDOMAINNAME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
if test "x$ac_cv_func_poll" = xyes
then :
  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
if test "x$ac_cv_func_trunc" = xyes
then :
  printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
if test "x$ac_cv_func_mmap" = xyes
then :
  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
if test "x$ac_cv_func_getpagesize" = xyes
then :
  printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h

fi


# --- Check for common system libraries ---

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
printf %s "checking for main in -lm... " >&6; }
if test ${ac_cv_lib_m_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_m_main=yes
else $as_nop
  ac_cv_lib_m_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
printf "%s\n" "$ac_cv_lib_m_main" >&6; }
if test "x$ac_cv_lib_m_main" = xyes
then :
  printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h

  LIBS="-lm $LIBS"

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
printf %s "checking for main in -lsocket... " >&6; }
if test ${ac_cv_lib_socket_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_socket_main=yes
else $as_nop
  ac_cv_lib_socket_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
if test "x$ac_cv_lib_socket_main" = xyes
then :
  printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h

  LIBS="-lsocket $LIBS"

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
printf %s "checking for main in -lnsl... " >&6; }
if test ${ac_cv_lib_nsl_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_nsl_main=yes
else $as_nop
  ac_cv_lib_nsl_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
if test "x$ac_cv_lib_nsl_main" = xyes
then :
  printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h

  LIBS="-lnsl $LIBS"

fi


ERQ_LIBS="$LIBS"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lucb" >&5
printf %s "checking for main in -lucb... " >&6; }
if test ${ac_cv_lib_ucb_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lucb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_ucb_main=yes
else $as_nop
  ac_cv_lib_ucb_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_main" >&5
printf "%s\n" "$ac_cv_lib_ucb_main" >&6; }
if test "x$ac_cv_lib_ucb_main" = xyes
then :
  LIBS="$LIBS -lc -lucb"
fi

if test "$ac_cv_lib_socket_main" = "yes" || test "$ac_cv_lib_ucb_main" = "yes"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
printf %s "checking for main in -lnsl... " >&6; }
if test ${ac_cv_lib_nsl_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_nsl_main=yes
else $as_nop
  ac_cv_lib_nsl_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
if test "x$ac_cv_lib_nsl_main" = xyes
then :
  printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h

  LIBS="-lnsl $LIBS"

fi

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lresolv is needed" >&5
printf %s "checking if -lresolv is needed... " >&6; }
if test ${lp_cv_need_lib_resolv+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <netdb.h>
void t (void)
{
    herror("foo");
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_resolv=no
else $as_nop
  lp_cv_need_lib_resolv=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_resolv" >&5
printf "%s\n" "$lp_cv_need_lib_resolv" >&6; }
if test "$lp_cv_need_lib_resolv" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
printf %s "checking for main in -lresolv... " >&6; }
if test ${ac_cv_lib_resolv_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_resolv_main=yes
else $as_nop
  ac_cv_lib_resolv_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
printf "%s\n" "$ac_cv_lib_resolv_main" >&6; }
if test "x$ac_cv_lib_resolv_main" = xyes
then :
  LIBS="$LIBS -lresolv"
fi

fi

# --- Check if we need the crypto libraries ---
ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
if test "x$ac_cv_func_crypt" = xyes
then :
  printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "_crypt" "ac_cv_func__crypt"
if test "x$ac_cv_func__crypt" = xyes
then :
  printf "%s\n" "#define HAVE__CRYPT 1" >>confdefs.h

fi

for lp_lib in crypt crypto; do
    if test "$ac_cv_func_crypt" != "yes" -a "$ac_cv_func__crypt" != "yes"; then
        # Try linking with lib$lp_lib
        unset ac_cv_func_crypt
        unset ac_cv_func__crypt
        lp_save_libs="$LIBS"
        as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lp_lib""_main" | $as_tr_sh`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l$lp_lib" >&5
printf %s "checking for main in -l$lp_lib... " >&6; }
if eval test \${$as_ac_Lib+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$lp_lib  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "$as_ac_Lib=yes"
else $as_nop
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Lib"\" = x"yes"
then :
  LIBS="$LIBS -l$lp_lib"
fi


        if test "$SAVE_LIBS" != "$LIBS" ; then
            ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
if test "x$ac_cv_func_crypt" = xyes
then :
  printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "_crypt" "ac_cv_func__crypt"
if test "x$ac_cv_func__crypt" = xyes
then :
  printf "%s\n" "#define HAVE__CRYPT 1" >>confdefs.h

fi

            if test "$ac_cv_func_crypt" != "yes" -a "$ac_cv_func__crypt" != "yes"; then
                # They are not in this library
                LIBS="$lp_save_libs"
            else
                eval "lp_cv_need_lib_${lp_lib}=yes"
            fi
        fi
    fi
done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa() ok" >&5
printf %s "checking if inet_ntoa() ok... " >&6; }
if test ${lp_cv_func_inet_ntoa_ok+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined(sun) && !defined(__svr4__)
	#include <sys/types.h> /* needed for netinet/in.h */
	#include <netinet/in.h>
	#include <arpa/inet.h>
	char *inet_ntoa(ad)
	    struct in_addr ad;
	{
	    static char addr[[20]];
	    return addr;
	}
	#else
	use inet_ntoa() from the library.
	#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_func_inet_ntoa_ok=no
else $as_nop
  lp_cv_func_inet_ntoa_ok=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <sys/types.h> /* needed for netinet/in.h */
	#include <netinet/in.h>
	#include <arpa/inet.h>
	main() {
	    char addr1[] = "176.88.1.16";
	    char addr2[] = "88.176.128.2";
	    struct in_addr tmp;

	#if SIZEOF_INT == 4
	#define ADDR_TYPE unsigned int
	#else
	#define ADDR_TYPE unsigned long
	#endif
	    *((ADDR_TYPE *)&tmp) = inet_addr(addr1);
	    if (strcmp(addr1, inet_ntoa(tmp)))
	        exit(1);
	    *((ADDR_TYPE *)&tmp) = inet_addr(addr2);
	    if (strcmp(addr2, inet_ntoa(tmp)))
	        exit(1);
	    exit(0);
	}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_func_inet_ntoa_ok=yes
else $as_nop
  lp_cv_func_inet_ntoa_ok=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_func_inet_ntoa_ok" >&5
printf "%s\n" "$lp_cv_func_inet_ntoa_ok" >&6; }
if test "$lp_cv_func_inet_ntoa_ok" = "yes" ; then

printf "%s\n" "#define INET_NTOA_OK 1" >>confdefs.h

fi

# --- IPV6 ---

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
printf %s "checking for IPv6 support... " >&6; }
if test ${lp_cv_has_ipv6+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  saveflags="$CFLAGS"
    CFLAGS="$CFLAGS -I/usr/inet6/include"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <netinet/in.h>

struct sockaddr_in6 foo(void)
{
    static struct sockaddr_in6 ad;

    return ad;
}

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_ipv6=yes
else $as_nop
  lp_cv_has_ipv6=no
    CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_ipv6" >&5
printf "%s\n" "$lp_cv_has_ipv6" >&6; }
if test "$lp_cv_has_ipv6" = "yes"; then

printf "%s\n" "#define HAS_IPV6 1" >>confdefs.h

    if test "$enable_use_ipv6" = "yes"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -linet6 is needed" >&5
printf %s "checking if -linet6 is needed... " >&6; }
if test ${lp_cv_need_lib_inet6+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <netinet/in.h>
void t (void)
{
    struct sockaddr_in6 ad;
    inet6_ntoa(ad.sin_addr);
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_inet6=no
else $as_nop
  lp_cv_need_lib_inet6=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_inet6" >&5
printf "%s\n" "$lp_cv_need_lib_inet6" >&6; }
        if test "$lp_cv_need_lib_inet6" = "yes"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -linet6" >&5
printf %s "checking for main in -linet6... " >&6; }
if test ${ac_cv_lib_inet6_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_inet6_main=yes
else $as_nop
  ac_cv_lib_inet6_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_main" >&5
printf "%s\n" "$ac_cv_lib_inet6_main" >&6; }
if test "x$ac_cv_lib_inet6_main" = xyes
then :
  LIBS="$LIBS -linet6"
fi

        fi
    fi
else
    if test "$enable_use_ipv6" = "yes"; then
        echo "IPV6 not supported - disabling IPV6 support."
        if test "x$not_available" = "x"; then
    not_available="use-ipv6"
else
    not_available="$not_available, use-ipv6"
fi
    fi
    cdef_use_ipv6="#undef"
    enable_use_ipv6=no
fi

# --- TLS ---

has_tls=no

saveflags="$CFLAGS"
saveeflags="$EXTRA_CFLAGS"
savelibs="$LIBS"
savepkglibs="$PKGLIBS"

# Check for OpenSSL unless not desired
# Check for the libraries only if tls is actually enabled.

if test ! "x${tls_include_path}" = "x"; then
    CFLAGS="$CFLAGS -I${tls_include_path}"
    EXTRA_CFLAGS="$EXTRA_CFLAGS -I${tls_include_path}"
fi

if test ! "x${tls_lib_path}" = "x"; then
    LIBS="$LIBS -L${tls_lib_path}"
    PKGLIBS="$PKGLIBS -L${tls_lib_path}"
fi

if test "$tls_package" = "any" -o "$tls_package" = "ssl"; then

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5
printf %s "checking for OpenSSL support... " >&6; }
if test ${lp_cv_has_openssl+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <openssl/ssl.h>

    void foo(void)
    {
        int i = SSL_MAX_SSL_SESSION_ID_LENGTH;
    }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_openssl=yes
else $as_nop
  lp_cv_has_openssl=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_openssl" >&5
printf "%s\n" "$lp_cv_has_openssl" >&6; }

    if test "$lp_cv_has_openssl" = "yes"; then
        has_tls=yes
        tls_package=ssl

printf "%s\n" "#define HAS_OPENSSL 1" >>confdefs.h


        if test "$enable_use_tls" = "yes"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lssl or similar is needed" >&5
printf %s "checking if -lssl or similar is needed... " >&6; }
if test ${lp_cv_need_lib_ssl+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <openssl/ssl.h>
    void t (void)
    {
        SSL_library_init();
    }
    int main(void)
    {
        return 0;
    }

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_ssl=no
else $as_nop
  lp_cv_need_lib_ssl=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_ssl" >&5
printf "%s\n" "$lp_cv_need_lib_ssl" >&6; }
            if test "$lp_cv_need_lib_ssl" = "yes"; then
                lp_cv_has_lib_ssl=no
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
printf %s "checking for SSL_new in -lssl... " >&6; }
if test ${ac_cv_lib_ssl_SSL_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lssl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char SSL_new ();
int
main (void)
{
return SSL_new ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_ssl_SSL_new=yes
else $as_nop
  ac_cv_lib_ssl_SSL_new=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
printf "%s\n" "$ac_cv_lib_ssl_SSL_new" >&6; }
if test "x$ac_cv_lib_ssl_SSL_new" = xyes
then :
  PKGLIBS="$PKGLIBS -lssl"
                             lp_cv_has_lib_ssl=yes

fi

            fi

            if test "x$lp_cv_need_lib_crypto" != "xyes"; then
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto is needed for SSL" >&5
printf %s "checking if -lcrypto is needed for SSL... " >&6; }
if test ${lp_cv_need_lib_crypto+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <openssl/ssl.h>
void t (void)
{
    DH *dhe1024 = NULL;
    DH_free(dhe1024);
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_crypto=no
else $as_nop
  lp_cv_need_lib_crypto=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_crypto" >&5
printf "%s\n" "$lp_cv_need_lib_crypto" >&6; }
                if test "$lp_cv_need_lib_crypto" = "yes"; then
                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
printf %s "checking for main in -lcrypto... " >&6; }
if test ${ac_cv_lib_crypto_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypto  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_crypto_main=yes
else $as_nop
  ac_cv_lib_crypto_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
printf "%s\n" "$ac_cv_lib_crypto_main" >&6; }
if test "x$ac_cv_lib_crypto_main" = xyes
then :
  PKGLIBS="$PKGLIBS -lcrypto"
fi

                fi
            fi
        fi
    else
        has_tls=no
    fi
fi

# Check for GnuTLS unless not desired

if test "$tls_package" = "any" -o "$tls_package" = "gnu"; then

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GnuTLS support" >&5
printf %s "checking for GnuTLS support... " >&6; }
if test ${lp_cv_has_gnutls+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <gnutls/gnutls.h>

    void foo(void)
    {
        int i = GNUTLS_CIPHER_RIJNDAEL_256_CBC;
    }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_gnutls=yes
else $as_nop
  lp_cv_has_gnutls=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_gnutls" >&5
printf "%s\n" "$lp_cv_has_gnutls" >&6; }

    if test "$lp_cv_has_gnutls" = "yes"; then
        has_tls=yes
        tls_package=gnu

printf "%s\n" "#define HAS_GNUTLS 1" >>confdefs.h


        if test "$enable_use_tls" = "yes"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lgnutls or similar is needed" >&5
printf %s "checking if -lgnutls or similar is needed... " >&6; }
if test ${lp_cv_need_lib_gnutls+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <gnutls/gnutls.h>
    void t (void)
    {
        gnutls_global_init();
        gnutls_global_deinit();
    }
    int main(void)
    {
        return 0;
    }

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_gnutls=no
else $as_nop
  lp_cv_need_lib_gnutls=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_gnutls" >&5
printf "%s\n" "$lp_cv_need_lib_gnutls" >&6; }
            if test "$lp_cv_need_lib_gnutls" = "yes"; then
                lp_cv_has_lib_gnutls=no
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
printf %s "checking for gnutls_global_init in -lgnutls... " >&6; }
if test ${ac_cv_lib_gnutls_gnutls_global_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgnutls  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char gnutls_global_init ();
int
main (void)
{
return gnutls_global_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_gnutls_gnutls_global_init=yes
else $as_nop
  ac_cv_lib_gnutls_gnutls_global_init=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
printf "%s\n" "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes
then :
  PKGLIBS="$PKGLIBS -lgnutls"
                             lp_cv_has_lib_gnutls=yes

fi

            fi

        fi

    else
        has_tls=no
    fi
fi

# Evaluate the results of the checks

if test "$has_tls" = "no"; then
    if test "$enable_use_tls" = "yes"; then
        echo "TLS not supported - disabling TLS support."
        if test "x$not_available" = "x"; then
    not_available="use-tls"
else
    not_available="$not_available, use-tls"
fi
    fi
    cdef_use_tls="#undef"
    enable_use_tls=no
    EXTRA_CFLAGS="$saveeflags"
    PKGLIBS="$savepkglibs"
fi

CFLAGS="$saveflags"
LIBS="$savelibs"

# --- Gcrypt ---

if test "$tls_package" != "ssl"; then

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
printf %s "checking for libgcrypt... " >&6; }
if test ${lp_cv_has_gcrypt+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  for TESTPATH in "" "$gcrypt_path" "$gcrypt_path/include" "/usr/local/include" ; do
        saveflags="$CFLAGS"
        if test "x$TESTPATH" != "x"; then
            CFLAGS="$saveflags -I$TESTPATH"
        fi
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <gcrypt.h>

    void foo(void)
    {
        int algo = GCRY_MD_SHA1;
    }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_gcrypt=yes
    if test "x$TESTPATH" != "x"; then
        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
    fi
    break;

else $as_nop
  lp_cv_has_gcrypt=no
    CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_gcrypt" >&5
printf "%s\n" "$lp_cv_has_gcrypt" >&6; }

    if test "$lp_cv_has_gcrypt" = "yes"; then
      saveflags="$CFLAGS"

printf "%s\n" "#define HAS_GCRYPT 1" >>confdefs.h


      if test "$enable_use_gcrypt" = "yes"; then
        tmp=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
printf %s "checking for gcry_check_version in -lgcrypt... " >&6; }
if test ${ac_cv_lib_gcrypt_gcry_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcrypt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char gcry_check_version ();
int
main (void)
{
return gcry_check_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_gcrypt_gcry_check_version=yes
else $as_nop
  ac_cv_lib_gcrypt_gcry_check_version=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
printf "%s\n" "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes
then :
  tmp="$PKGLIBS -lgcrypt"
fi


        if test "x$tmp" = "x" && test "x$gcrypt_path" != "x"; then
            unset ac_cv_lib_gcrypt_main
            if test -d "${gcrypt_path}/lib/gcrypt"; then
                CFLAGS="$saveflags -L${gcrypt_path}/lib/gcrypt"
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
printf %s "checking for gcry_check_version in -lgcrypt... " >&6; }
if test ${ac_cv_lib_gcrypt_gcry_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcrypt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char gcry_check_version ();
int
main (void)
{
return gcry_check_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_gcrypt_gcry_check_version=yes
else $as_nop
  ac_cv_lib_gcrypt_gcry_check_version=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
printf "%s\n" "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes
then :
  tmp="$PKGLIBS -L${gcrypt_path}/lib/gcrypt -lgcrypt"
fi

            elif test -d "${gcrypt_path}/lib"; then
                CFLAGS="$saveflags -L${gcrypt_path}/lib"
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
printf %s "checking for gcry_check_version in -lgcrypt... " >&6; }
if test ${ac_cv_lib_gcrypt_gcry_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcrypt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char gcry_check_version ();
int
main (void)
{
return gcry_check_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_gcrypt_gcry_check_version=yes
else $as_nop
  ac_cv_lib_gcrypt_gcry_check_version=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
printf "%s\n" "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes
then :
  tmp="$PKGLIBS -L${gcrypt_path}/lib -lgcrypt"
fi

            elif test -d "${gcrypt_patch}"; then
                CFLAGS="$saveflags -L$gcrypt_path"
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
printf %s "checking for gcry_check_version in -lgcrypt... " >&6; }
if test ${ac_cv_lib_gcrypt_gcry_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcrypt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char gcry_check_version ();
int
main (void)
{
return gcry_check_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_gcrypt_gcry_check_version=yes
else $as_nop
  ac_cv_lib_gcrypt_gcry_check_version=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
printf "%s\n" "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes
then :
  tmp="$PKGLIBS -L$gcrypt_path -lgcrypt"
fi

            fi
        fi

        if test "x$tmp" = "x"; then
            echo "libgcrypt library not found - disabling gcrypt support"
            if test "x$not_available" = "x"; then
    not_available="use-gcrypt"
else
    not_available="$not_available, use-gcrypt"
fi
            cdef_use_gcrypt="#undef"
            enable_use_gcrypt="no"
            lp_cv_has_gcrypt="no"
        else
            PKGLIBS="$tmp"
        fi
      fi

      CFLAGS="$saveflags"
    else
      if test "$enable_use_gcrypt" = "yes"; then
          if test "x$not_available" = "x"; then
    not_available="use-gcrypt"
else
    not_available="$not_available, use-gcrypt"
fi
          cdef_use_gcrypt="#undef"
          enable_use_gcrypt=no
      fi
    fi
else
  cdef_use_gcrypt="#undef"
  enable_use_gcrypt=no
fi

# --- PCRE ---

lp_cv_has_pcre_lib="no"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpcre" >&5
printf %s "checking for main in -lpcre... " >&6; }
if test ${ac_cv_lib_pcre_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpcre  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_pcre_main=yes
else $as_nop
  ac_cv_lib_pcre_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_main" >&5
printf "%s\n" "$ac_cv_lib_pcre_main" >&6; }
if test "x$ac_cv_lib_pcre_main" = xyes
then :
  lp_cv_has_pcre_lib="yes"
fi


if test "$lp_cv_has_pcre_lib" = "yes"; then
    savelibs="$LIBS"
    LIBS="$LIBS -lpcre"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCRE usability" >&5
printf %s "checking for PCRE usability... " >&6; }
if test ${lp_cv_has_pcre+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pcre.h>

pcre_extra foo(void)
{
    pcre_version();
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_has_pcre=yes
else $as_nop
  lp_cv_has_pcre=no

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_pcre" >&5
printf "%s\n" "$lp_cv_has_pcre" >&6; }
    LIBS="$savelibs"

    if test "$lp_cv_has_pcre" = "yes"; then

printf "%s\n" "#define HAS_PCRE 1" >>confdefs.h

        PKGLIBS="$PKGLIBS -lpcre"
    fi
else
    lp_cv_has_pcre=no
fi
if test "$lp_cv_has_pcre" = "no" && test "x$enable_use_pcre" = "xyes"; then
  if test "x$not_available" = "x"; then
    not_available="use-pcre"
else
    not_available="$not_available, use-pcre"
fi
fi

# --- iconv ---
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
printf %s "checking for iconv... " >&6; }
if test ${lp_cv_has_iconv+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  for TESTPATH in "" "/usr/local/include"; do
    saveflags="$CFLAGS"
    if test "x$TESTPATH" != "x"; then
        CFLAGS="-I$TESTPATH $saveflags"
    fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <iconv.h>

iconv_t * foo(void)
{
    return 0;
}

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_iconv=yes
if test "x$TESTPATH" != "x"; then
    EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
fi
break;

else $as_nop
  lp_cv_has_iconv=no
CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
done

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_iconv" >&5
printf "%s\n" "$lp_cv_has_iconv" >&6; }


# The system has the include files - now perform further checks
if test "x$lp_cv_has_iconv" = "xyes"; then
    saveflags="$CFLAGS"

    # Some systems define iconv() to take a non-const 'char**' as first arg.
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if iconv takes a non-const char**" >&5
printf %s "checking if iconv takes a non-const char**... " >&6; }

    CFLAGS="$CFLAGS $EXTRA_CFLAGS"
    tcomp2='${CC-cc} ${CFLAGS} -o conftest.o -c conftest.c 2>&1'
    cat > conftest.c <<EOF
#include <stdlib.h>
#include <iconv.h>

int foo(void)
{
    const char * in;

    return iconv(NULL, &in, NULL, NULL, NULL);
}
EOF


    if echo `eval $tcomp2` | egrep '[a-z]' >/dev/null; then
      # Success means 'we got output' here :-(
        lp_cv_has_iconv_nonconst_in=yes
    else
        lp_cv_has_iconv_nonconst_in=no
    fi
    CFLAGS="$saveflags"


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_iconv_nonconst_in" >&5
printf "%s\n" "$lp_cv_has_iconv_nonconst_in" >&6; }

    # Does the system need to link in libiconv?
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed" >&5
printf %s "checking if -liconv is needed... " >&6; }
if test ${lp_cv_need_lib_iconv+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <iconv.h>
int t (void)
{
    return iconv(NULL, NULL, NULL, NULL, NULL);
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_iconv=no
else $as_nop
  lp_cv_need_lib_iconv=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_iconv" >&5
printf "%s\n" "$lp_cv_need_lib_iconv" >&6; }
    if test "$lp_cv_need_lib_iconv" = "yes"; then
        # Search the libraries

        tmp=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv_close in -liconv" >&5
printf %s "checking for libiconv_close in -liconv... " >&6; }
if test ${ac_cv_lib_iconv_libiconv_close+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liconv  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char libiconv_close ();
int
main (void)
{
return libiconv_close ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_iconv_libiconv_close=yes
else $as_nop
  ac_cv_lib_iconv_libiconv_close=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_close" >&5
printf "%s\n" "$ac_cv_lib_iconv_libiconv_close" >&6; }
if test "x$ac_cv_lib_iconv_libiconv_close" = xyes
then :
  tmp="$PKGLIBS -liconv"
fi


        if test "x$tmp" = "x"; then
            CFLAGS="$saveflags -L/usr/local/lib"
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv_close in -liconv" >&5
printf %s "checking for libiconv_close in -liconv... " >&6; }
if test ${ac_cv_lib_iconv_libiconv_close+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liconv  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char libiconv_close ();
int
main (void)
{
return libiconv_close ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_iconv_libiconv_close=yes
else $as_nop
  ac_cv_lib_iconv_libiconv_close=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_close" >&5
printf "%s\n" "$ac_cv_lib_iconv_libiconv_close" >&6; }
if test "x$ac_cv_lib_iconv_libiconv_close" = xyes
then :
  tmp="$PKGLIBS -L/usr/local/lib -liconv"
fi

        fi

        if test "x$tmp" = "x"; then
            echo "iconv library not found."
            lp_cv_has_iconv="no"
        else
            PKGLIBS="$tmp"
        fi

        CFLAGS="$saveflags"
    fi
fi

if test "x$lp_cv_has_iconv" = "xyes"; then

printf "%s\n" "#define HAS_ICONV 1" >>confdefs.h

fi

if test "x$lp_cv_has_iconv_nonconst_in" = "xyes"; then

printf "%s\n" "#define HAS_ICONV_NONCONST_IN 1" >>confdefs.h

fi

# --- libidn ---
ac_fn_c_check_header_compile "$LINENO" "idna.h" "ac_cv_header_idna_h" "$ac_includes_default"
if test "x$ac_cv_header_idna_h" = xyes
then :
  lp_cv_has_idn=yes
else $as_nop
  lp_cv_has_idn=no
fi

ac_fn_c_check_header_compile "$LINENO" "stringprep.h" "ac_cv_header_stringprep_h" "$ac_includes_default"
if test "x$ac_cv_header_stringprep_h" = xyes
then :
  lp_cv_has_idn=yes
else $as_nop
  lp_cv_has_idn=no
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stringprep_check_version in -lidn" >&5
printf %s "checking for stringprep_check_version in -lidn... " >&6; }
if test ${ac_cv_lib_idn_stringprep_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lidn  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char stringprep_check_version ();
int
main (void)
{
return stringprep_check_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_idn_stringprep_check_version=yes
else $as_nop
  ac_cv_lib_idn_stringprep_check_version=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_stringprep_check_version" >&5
printf "%s\n" "$ac_cv_lib_idn_stringprep_check_version" >&6; }
if test "x$ac_cv_lib_idn_stringprep_check_version" = xyes
then :
  lp_cv_has_idn=yes LIBS="${LIBS} -lidn"
else $as_nop
  lp_cv_has_idn=no
fi

if test "x$lp_cv_has_idn" = "xyes"; then

printf "%s\n" "#define HAS_IDN 1" >>confdefs.h

fi

# --- mySQL ---

# Note: Some compilers don't have /usr/local/include in their standard
# searchpath.
# Note: Some systems require zlib together with mysqlclient, but don't
# like it if -lz precedes the -lmysqlclient in the link command.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mySQL" >&5
printf %s "checking for mySQL... " >&6; }
if test ${lp_cv_has_mysql+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  for TESTPATH in "" "${mysql_path}/include/mysql" "${mysql_path}/include" "${mysql_path}" "/usr/local/mysql/include/mysql" "/usr/local/mysql/include" "/usr/local/include/mysql" "/usr/local/include" "/usr/lib/mysql/include" "/usr/lib/mysql/mysql" "/usr/lib/mysql" "/usr/include/mysql"; do
    saveflags="$CFLAGS"
    if test "x$TESTPATH" != "x"; then
        CFLAGS="-I$TESTPATH $saveflags"
    fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <mysql.h>
#include <errmsg.h>

struct MYSQL * foo(void)
{
    static MYSQL var;

    return &var;
}

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_mysql=yes
if test "x$TESTPATH" != "x"; then
    EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
fi
break;

else $as_nop
  lp_cv_has_mysql=no
CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
done

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_mysql" >&5
printf "%s\n" "$lp_cv_has_mysql" >&6; }

# The system has the include files - now search for the libraries.
if test "$lp_cv_has_mysql" = "yes"; then
  saveflags="$CFLAGS"

printf "%s\n" "#define HAS_MYSQL 1" >>confdefs.h


  if test "$enable_use_mysql" = "yes"; then
    tmp=""

    if test "x$mysql_path" = "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
printf %s "checking for main in -lmysqlclient... " >&6; }
if test ${ac_cv_lib_mysqlclient_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_mysqlclient_main=yes
else $as_nop
  ac_cv_lib_mysqlclient_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
printf "%s\n" "$ac_cv_lib_mysqlclient_main" >&6; }
if test "x$ac_cv_lib_mysqlclient_main" = xyes
then :
  tmp="$PKGLIBS -lmysqlclient"
fi

        if test "x$tmp" = "x"; then
            if test -d "/usr/local/mysql/lib/mysql"; then
                unset ac_cv_lib_mysqlclient_main
                CFLAGS="$saveflags -L/usr/local/mysql/lib/mysql"
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
printf %s "checking for main in -lmysqlclient... " >&6; }
if test ${ac_cv_lib_mysqlclient_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_mysqlclient_main=yes
else $as_nop
  ac_cv_lib_mysqlclient_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
printf "%s\n" "$ac_cv_lib_mysqlclient_main" >&6; }
if test "x$ac_cv_lib_mysqlclient_main" = xyes
then :
  tmp="$PKGLIBS -L/usr/local/mysql/lib/mysql -lmysqlclient"
fi

            elif test -d "/usr/local/mysql/lib"; then
                unset ac_cv_lib_mysqlclient_main
                CFLAGS="$saveflags -L/usr/local/mysql/lib"
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
printf %s "checking for main in -lmysqlclient... " >&6; }
if test ${ac_cv_lib_mysqlclient_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_mysqlclient_main=yes
else $as_nop
  ac_cv_lib_mysqlclient_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
printf "%s\n" "$ac_cv_lib_mysqlclient_main" >&6; }
if test "x$ac_cv_lib_mysqlclient_main" = xyes
then :
  tmp="$PKGLIBS -L/usr/local/mysql/lib -lmysqlclient"
fi

            elif test -d "/usr/local/lib"; then
                unset ac_cv_lib_mysqlclient_main
                CFLAGS="$saveflags -L/usr/local/lib"
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
printf %s "checking for main in -lmysqlclient... " >&6; }
if test ${ac_cv_lib_mysqlclient_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_mysqlclient_main=yes
else $as_nop
  ac_cv_lib_mysqlclient_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
printf "%s\n" "$ac_cv_lib_mysqlclient_main" >&6; }
if test "x$ac_cv_lib_mysqlclient_main" = xyes
then :
  tmp="$PKGLIBS -L/usr/local/lib -lmysqlclient"
fi

            elif test -d "/usr/lib/mysql/lib"; then
                unset ac_cv_lib_mysqlclient_main
                CFLAGS="$saveflags -L/usr/lib/mysql/lib"
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
printf %s "checking for main in -lmysqlclient... " >&6; }
if test ${ac_cv_lib_mysqlclient_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_mysqlclient_main=yes
else $as_nop
  ac_cv_lib_mysqlclient_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
printf "%s\n" "$ac_cv_lib_mysqlclient_main" >&6; }
if test "x$ac_cv_lib_mysqlclient_main" = xyes
then :
  tmp="$PKGLIBS -L/usr/lib/mysql/lib -lmysqlclient"
fi

            fi
        fi
    else
        if test -d "${mysql_path}/lib/mysql"; then
            CFLAGS="$saveflags -L${mysql_path}/lib/mysql"
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
printf %s "checking for main in -lmysqlclient... " >&6; }
if test ${ac_cv_lib_mysqlclient_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_mysqlclient_main=yes
else $as_nop
  ac_cv_lib_mysqlclient_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
printf "%s\n" "$ac_cv_lib_mysqlclient_main" >&6; }
if test "x$ac_cv_lib_mysqlclient_main" = xyes
then :
  tmp="$PKGLIBS -L${mysql_path}/lib/mysql -lmysqlclient"
fi

        elif test -d "${mysql_path}/lib"; then
            CFLAGS="$saveflags -L${mysql_path}/lib"
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
printf %s "checking for main in -lmysqlclient... " >&6; }
if test ${ac_cv_lib_mysqlclient_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_mysqlclient_main=yes
else $as_nop
  ac_cv_lib_mysqlclient_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
printf "%s\n" "$ac_cv_lib_mysqlclient_main" >&6; }
if test "x$ac_cv_lib_mysqlclient_main" = xyes
then :
  tmp="$PKGLIBS -L${mysql_path}/lib -lmysqlclient"
fi

        else
            CFLAGS="$saveflags -L$mysql_path"
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
printf %s "checking for main in -lmysqlclient... " >&6; }
if test ${ac_cv_lib_mysqlclient_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_mysqlclient_main=yes
else $as_nop
  ac_cv_lib_mysqlclient_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
printf "%s\n" "$ac_cv_lib_mysqlclient_main" >&6; }
if test "x$ac_cv_lib_mysqlclient_main" = xyes
then :
  tmp="$PKGLIBS -L$mysql_path -lmysqlclient"
fi

        fi
    fi

    if test "x$tmp" = "x"; then
        echo "mysqlclient library not found - disabling mySQL support"
        if test "x$not_available" = "x"; then
    not_available="use-mysql"
else
    not_available="$not_available, use-mysql"
fi
        cdef_use_mysql="#undef"
        enable_use_mysql="no"
        mysql_path=
        lp_cv_has_mysql="no"
    else
        PKGLIBS="$tmp"
    fi
  fi

  if test "$enable_use_mysql" = "yes"; then
      # Some systems need additional libraries
      savelibs="$LIBS"
      LIBS="$LIBS $PKGLIBS"

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lz is needed" >&5
printf %s "checking if -lz is needed... " >&6; }
if test ${lp_cv_need_lib_z+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <mysql/mysql.h>
void t (void)
{
    MYSQL *dat;

    mysql_real_connect(dat, "localhost", "user", "pwd", "db", 0, 0, 0);
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_z=no
else $as_nop
  lp_cv_need_lib_z=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_z" >&5
printf "%s\n" "$lp_cv_need_lib_z" >&6; }
      if test "$lp_cv_need_lib_z" = "yes"; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
printf %s "checking for main in -lz... " >&6; }
if test ${ac_cv_lib_z_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_z_main=yes
else $as_nop
  ac_cv_lib_z_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
printf "%s\n" "$ac_cv_lib_z_main" >&6; }
if test "x$ac_cv_lib_z_main" = xyes
then :
  PKGLIBS="$PKGLIBS -lz"
fi

      fi

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lnsl is needed" >&5
printf %s "checking if -lnsl is needed... " >&6; }
if test ${lp_cv_need_lib_nsl+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <mysql/mysql.h>
void t (void)
{
    MYSQL *dat;

    mysql_real_connect(dat, "localhost", "user", "pwd", "db", 0, 0, 0);
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_nsl=no
else $as_nop
  lp_cv_need_lib_nsl=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_nsl" >&5
printf "%s\n" "$lp_cv_need_lib_nsl" >&6; }
      if test "$lp_cv_need_lib_nsl" = "yes"; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
printf %s "checking for main in -lnsl... " >&6; }
if test ${ac_cv_lib_nsl_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_nsl_main=yes
else $as_nop
  ac_cv_lib_nsl_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
if test "x$ac_cv_lib_nsl_main" = xyes
then :
  PKGLIBS="$PKGLIBS -lnsl"
fi

      fi

      LIBS="$savelibs"
  fi

  CFLAGS="$saveflags"
else
  if test "$enable_use_mysql" = "yes"; then
      if test "x$not_available" = "x"; then
    not_available="use-mysql"
else
    not_available="$not_available, use-mysql"
fi
      cdef_use_mysql="#undef"
      enable_use_mysql=no
  fi
fi

# ---

# --- PostgreSQL ---

# Note: Some compilers don't have /usr/local/include in their standard
# searchpath.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PostgresSQL" >&5
printf %s "checking for PostgresSQL... " >&6; }
if test ${lp_cv_has_pgsql+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  for TESTPATH in "" "$pgsql_path" "$pgsql_path/include" "/usr/local/pgsql/include" "/usr/local/include/pgsql" "/usr/include/pgsql" "/usr/include/postgresql" "/usr/local/include/postgresql" "/usr/lib/pgsql" "/usr/local/include"; do
    saveflags="$CFLAGS"
    if test "x$TESTPATH" != "x"; then
        CFLAGS="$saveflags -I$TESTPATH"
    fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <libpq-fe.h>

PGconn * foo(void)
{
    static PGconn * var;

    return var;
}

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_pgsql=yes
if test "x$TESTPATH" != "x"; then
    EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
fi
break;

else $as_nop
  lp_cv_has_pgsql=no
CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
done

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_pgsql" >&5
printf "%s\n" "$lp_cv_has_pgsql" >&6; }

# The system has the include files - now search for the libraries.
if test "$lp_cv_has_pgsql" = "yes"; then
  saveflags="$CFLAGS"

printf "%s\n" "#define HAS_PGSQL 1" >>confdefs.h


  if test "$enable_use_pgsql" = "yes"; then
    tmp=""

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
printf %s "checking for main in -lpq... " >&6; }
if test ${ac_cv_lib_pq_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_pq_main=yes
else $as_nop
  ac_cv_lib_pq_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
printf "%s\n" "$ac_cv_lib_pq_main" >&6; }
if test "x$ac_cv_lib_pq_main" = xyes
then :
  tmp="$PKGLIBS -lpq"
fi


    if test "x$pgsql_path" = "x"; then
        unset ac_cv_lib_pq_main
        if test -d "${pgsql_path}/lib/pgsql"; then
            CFLAGS="$saveflags -L${pgsql_path}/lib/pgsql"
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
printf %s "checking for main in -lpq... " >&6; }
if test ${ac_cv_lib_pq_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_pq_main=yes
else $as_nop
  ac_cv_lib_pq_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
printf "%s\n" "$ac_cv_lib_pq_main" >&6; }
if test "x$ac_cv_lib_pq_main" = xyes
then :
  tmp="$PKGLIBS -L${pgsql_path}/lib/pgsql -lpq"
fi

        elif test -d "${pgsql_path}/lib"; then
            CFLAGS="$saveflags -L${pgsql_path}/lib"
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
printf %s "checking for main in -lpq... " >&6; }
if test ${ac_cv_lib_pq_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_pq_main=yes
else $as_nop
  ac_cv_lib_pq_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
printf "%s\n" "$ac_cv_lib_pq_main" >&6; }
if test "x$ac_cv_lib_pq_main" = xyes
then :
  tmp="$PKGLIBS -L${pgsql_path}/lib -lpq"
fi

        elif test -d "${pgsql_patch}"; then
            CFLAGS="$saveflags -L$pgsql_path"
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
printf %s "checking for main in -lpq... " >&6; }
if test ${ac_cv_lib_pq_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_pq_main=yes
else $as_nop
  ac_cv_lib_pq_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
printf "%s\n" "$ac_cv_lib_pq_main" >&6; }
if test "x$ac_cv_lib_pq_main" = xyes
then :
  tmp="$PKGLIBS -L$pgsql_path -lpq"
fi

        fi
    fi

    if test "x$tmp" = "x"; then
        unset ac_cv_lib_pq_main
        if test -d "/usr/local/pgsql/lib"; then
            CFLAGS="$saveflags -L/usr/local/pgsql/lib"
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
printf %s "checking for main in -lpq... " >&6; }
if test ${ac_cv_lib_pq_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_pq_main=yes
else $as_nop
  ac_cv_lib_pq_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
printf "%s\n" "$ac_cv_lib_pq_main" >&6; }
if test "x$ac_cv_lib_pq_main" = xyes
then :
  tmp="$PKGLIBS -L/usr/local/pgsql/lib -lpq"
fi

        fi
    fi

    if test "x$tmp" = "x"; then
        echo "libpq library not found - disabling PostgreSQL support"
        if test "x$not_available" = "x"; then
    not_available="use-pgsql"
else
    not_available="$not_available, use-pgsql"
fi
        cdef_use_pgsql="#undef"
        enable_use_pgsql="no"
        pgsql_path=
        lp_cv_has_pgsql="no"
    else
        PKGLIBS="$tmp"
    fi
  fi

  if test "x$enable_use_pgsql" = "xyes"; then
      # Some systems need additional libraries
      savelibs="$LIBS"
      LIBS="$LIBS $PKGLIBS"

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lssl is needed" >&5
printf %s "checking if -lssl is needed... " >&6; }
if test ${lp_cv_need_lib_ssl+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <libpq-fe.h>
void t (void)
{
    PQconnectStart("");
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_ssl=no
else $as_nop
  lp_cv_need_lib_ssl=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_ssl" >&5
printf "%s\n" "$lp_cv_need_lib_ssl" >&6; }
      if test "$lp_cv_need_lib_ssl" = "yes"; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lssl" >&5
printf %s "checking for main in -lssl... " >&6; }
if test ${ac_cv_lib_ssl_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lssl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_ssl_main=yes
else $as_nop
  ac_cv_lib_ssl_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_main" >&5
printf "%s\n" "$ac_cv_lib_ssl_main" >&6; }
if test "x$ac_cv_lib_ssl_main" = xyes
then :
  PKGLIBS="$PKGLIBS -lssl"
fi

      fi

      if test "x$lp_cv_need_lib_crypto" != "xyes"; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto is needed" >&5
printf %s "checking if -lcrypto is needed... " >&6; }
if test ${lp_cv_need_lib_crypto+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <libpq-fe.h>
void t (void)
{
    PQconnectStart("");
}
int main(void)
{
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_need_lib_crypto=no
else $as_nop
  lp_cv_need_lib_crypto=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_crypto" >&5
printf "%s\n" "$lp_cv_need_lib_crypto" >&6; }
          if test "$lp_cv_need_lib_crypto" = "yes"; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
printf %s "checking for main in -lcrypto... " >&6; }
if test ${ac_cv_lib_crypto_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypto  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_crypto_main=yes
else $as_nop
  ac_cv_lib_crypto_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
printf "%s\n" "$ac_cv_lib_crypto_main" >&6; }
if test "x$ac_cv_lib_crypto_main" = xyes
then :
  PKGLIBS="$PKGLIBS -lcrypto"
fi

          fi
      fi

      LIBS="$savelibs"
  fi

  CFLAGS="$saveflags"
else
  if test "$enable_use_pgsql" = "yes"; then
      if test "x$not_available" = "x"; then
    not_available="use-pgsql"
else
    not_available="$not_available, use-pgsql"
fi
      cdef_use_pgsql="#undef"
      enable_use_pgsql=no
  fi
fi

# --- SQLite3 ---








if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
printf "%s\n" "$PKG_CONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

fi
if test -n "$PKG_CONFIG"; then
	_pkg_min_version=0.9.0
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	else
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
		PKG_CONFIG=""
	fi
fi


    if test "x$enable_use_sqlite" = "xyes"; then
        saveflags="$CFLAGS"
        saveeflags="$EXTRA_CFLAGS"



pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
printf %s "checking for sqlite3... " >&6; }

if test -n "$SQLITE3_CFLAGS"; then
    pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$SQLITE3_LIBS"; then
    pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
                SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
        else
                SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
        echo "$SQLITE3_PKG_ERRORS" >&5

        lp_cv_has_sqlite3=no
elif test $pkg_failed = untried; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
        lp_cv_has_sqlite3=no
else
        SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
        SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        lp_cv_has_sqlite3=yes
fi


        # No pkg-config, search manually.
        if test "$lp_cv_has_sqlite3" = "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 support" >&5
printf %s "checking for sqlite3 support... " >&6; }
            for TESTPATH in "" "${xml_path}" "${xml_path}/include" "${xml_path}/include/sqlite3" "/usr/include/sqlite3" "/usr/local/include" "/usr/local/include/sqlite3" ; do
                if test "x$TESTPATH" != "x"; then
                    CFLAGS="$saveflags -I$TESTPATH"
                else
                    CFLAGS="$saveflags"
                fi
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <sqlite3.h>

    sqlite3 * foo(void)
    {
        return (sqlite3*)0;
    }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_sqlite3=yes
                    if test "x$TESTPATH" != "x"; then
                        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
                    fi
                    break;

else $as_nop
  CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
            done
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_sqlite3" >&5
printf "%s\n" "$lp_cv_has_sqlite3" >&6; }
        elif test "x$SQLITE3_CFLAGS" != "x"; then
            EXTRA_CFLAGS="$SQLITE3_CFLAGS $EXTRA_CFLAGS"
        fi

        if test "$lp_cv_has_sqlite3" = "yes"; then
            if test "x$SQLITE3_LIBS" != "x"; then
                PKGLIBS="$PKGLIBS $SQLITE3_LIBS"
            else
                tmp=""

                for TESTPATH in "" "${xml_path}" "${xml_path}/lib" "${xml_path}/lib/sqlite3" "/usr/lib/sqlite3" "/usr/local/lib" "/usr/local/lib/sqlite3" ; do
                    if test "x$TESTPATH" != "x"; then
                        CFLAGS="$saveflags -L$TESTPATH"
                    else
                        CFLAGS="$saveflags"
                    fi

                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_exec in -lsqlite3" >&5
printf %s "checking for sqlite3_exec in -lsqlite3... " >&6; }
if test ${ac_cv_lib_sqlite3_sqlite3_exec+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite3  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char sqlite3_exec ();
int
main (void)
{
return sqlite3_exec ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_sqlite3_sqlite3_exec=yes
else $as_nop
  ac_cv_lib_sqlite3_sqlite3_exec=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_exec" >&5
printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_exec" >&6; }
if test "x$ac_cv_lib_sqlite3_sqlite3_exec" = xyes
then :
  if test "x$TESTPATH" != "x"; then
                            tmp="$PKGLIBS -L$TESTPATH -lsqlite3"
                        else
                            tmp="$PKGLIBS -lsqlite3"
                        fi
                        break

fi

                done

                if test "x$tmp" = "x"; then
                    lp_cv_has_sqlite3=no

                    EXTRA_CFLAGS="$saveeflags"
                else
                    PKGLIBS="$tmp"
                fi
            fi

            CFLAGS="$saveflags"
        fi
    fi



if test "$lp_cv_has_sqlite3" = "yes"; then

printf "%s\n" "#define HAS_SQLITE3 1" >>confdefs.h


    if test "x$enable_use_sqlite" = "xyes"; then
        savelibs="$LIBS"
        LIBS="$LIBS $PKGLIBS"

        # Check if it uses pthreads

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
printf %s "checking for library containing pthread_create... " >&6; }
if test ${ac_cv_search_pthread_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char pthread_create ();
int
main (void)
{
return pthread_create ();
  ;
  return 0;
}
_ACEOF
for ac_lib in ''
do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_pthread_create=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_pthread_create+y}
then :
  break
fi
done
if test ${ac_cv_search_pthread_create+y}
then :

else $as_nop
  ac_cv_search_pthread_create=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
ac_res=$ac_cv_search_pthread_create
if test "$ac_res" != no
then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  lp_cv_sqlite3_uses_pthreads=yes
else $as_nop
  lp_cv_sqlite3_uses_pthreads=no

fi


        if test "$lp_cv_sqlite3_uses_pthreads" = "yes" ; then

printf "%s\n" "#define SQLITE3_USES_PTHREADS 1" >>confdefs.h

        fi

        LIBS="$savelibs"
    fi
else
    if test "$enable_use_sqlite" = "yes"; then
        echo "libsqlite3 library not found - disabling SQLite support"
        if test "x$not_available" = "x"; then
    not_available="use-sqlite"
else
    not_available="$not_available, use-sqlite"
fi
    fi

    cdef_use_sqlite="#undef"
    enable_use_sqlite="no"
    sqlite=
fi

# --- JSON ---

    if test "x$enable_use_json" = "xyes"; then
        saveflags="$CFLAGS"
        saveeflags="$EXTRA_CFLAGS"



pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.12" >&5
printf %s "checking for json-c >= 0.12... " >&6; }

if test -n "$JSONC_CFLAGS"; then
    pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5
  ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.12" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$JSONC_LIBS"; then
    pkg_cv_JSONC_LIBS="$JSONC_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5
  ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c >= 0.12" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
                JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.12" 2>&1`
        else
                JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.12" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
        echo "$JSONC_PKG_ERRORS" >&5

        lp_cv_has_jsonc=no
elif test $pkg_failed = untried; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
        lp_cv_has_jsonc=no
else
        JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
        JSONC_LIBS=$pkg_cv_JSONC_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        lp_cv_has_jsonc=yes
fi


        # No pkg-config, search manually.
        if test "$lp_cv_has_jsonc" = "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.12 support" >&5
printf %s "checking for json-c >= 0.12 support... " >&6; }
            for TESTPATH in "" "${json_path}" "${json_path}/include" "${json_path}/include/json-c >= 0.12" "/usr/include/json-c >= 0.12" "/usr/local/include" "/usr/local/include/json-c >= 0.12" ; do
                if test "x$TESTPATH" != "x"; then
                    CFLAGS="$saveflags -I$TESTPATH"
                else
                    CFLAGS="$saveflags"
                fi
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <json-c/json.h>

    #if JSON_C_VERSION_NUM < 0x000c00
    #error libjson-c >= 0.12 is needed.
    #endif

    json_object *foo(void)
    {
        struct json_object *ob;
        return ob=json_object_new_int(1);
    }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_jsonc=yes
                    if test "x$TESTPATH" != "x"; then
                        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
                    fi
                    break;

else $as_nop
  CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
            done
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_jsonc" >&5
printf "%s\n" "$lp_cv_has_jsonc" >&6; }
        elif test "x$JSONC_CFLAGS" != "x"; then
            EXTRA_CFLAGS="$JSONC_CFLAGS $EXTRA_CFLAGS"
        fi

        if test "$lp_cv_has_jsonc" = "yes"; then
            if test "x$JSONC_LIBS" != "x"; then
                PKGLIBS="$PKGLIBS $JSONC_LIBS"
            else
                tmp=""

                for TESTPATH in "" "${json_path}" "${json_path}/lib" "${json_path}/lib/json-c >= 0.12" "/usr/lib/json-c >= 0.12" "/usr/local/lib" "/usr/local/lib/json-c >= 0.12" ; do
                    if test "x$TESTPATH" != "x"; then
                        CFLAGS="$saveflags -L$TESTPATH"
                    else
                        CFLAGS="$saveflags"
                    fi

                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json_object_get_type in -ljson-c" >&5
printf %s "checking for json_object_get_type in -ljson-c... " >&6; }
if test ${ac_cv_lib_json_c_json_object_get_type+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ljson-c  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char json_object_get_type ();
int
main (void)
{
return json_object_get_type ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_json_c_json_object_get_type=yes
else $as_nop
  ac_cv_lib_json_c_json_object_get_type=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_json_c_json_object_get_type" >&5
printf "%s\n" "$ac_cv_lib_json_c_json_object_get_type" >&6; }
if test "x$ac_cv_lib_json_c_json_object_get_type" = xyes
then :
  if test "x$TESTPATH" != "x"; then
                            tmp="$PKGLIBS -L$TESTPATH -ljson-c"
                        else
                            tmp="$PKGLIBS -ljson-c"
                        fi
                        break

fi

                done

                if test "x$tmp" = "x"; then
                    lp_cv_has_jsonc=no

                    EXTRA_CFLAGS="$saveeflags"
                else
                    PKGLIBS="$tmp"
                fi
            fi

            CFLAGS="$saveflags"
        fi
    fi


if test "$lp_cv_has_jsonc" = "yes"; then

printf "%s\n" "#define HAS_JSONC 1" >>confdefs.h

else
    if test "$enable_use_json" = "yes"; then
        echo "libjson-c library (>= 0.12) not found - disabling JSON support"
        if test "x$not_available" = "x"; then
    not_available="use-json"
else
    not_available="$not_available, use-json"
fi
    fi

    cdef_use_json="#undef"
    enable_use_json="no"
fi

# --- PYTHON ---

# Newer versions use python3-embed instead of python3 in pkg-config.
python3_pkg_name=python3


pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3-embed" >&5
printf %s "checking for python3-embed... " >&6; }

if test -n "$PYTHON_EMBED_CFLAGS"; then
    pkg_cv_PYTHON_EMBED_CFLAGS="$PYTHON_EMBED_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3-embed\""; } >&5
  ($PKG_CONFIG --exists --print-errors "python3-embed") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_PYTHON_EMBED_CFLAGS=`$PKG_CONFIG --cflags "python3-embed" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$PYTHON_EMBED_LIBS"; then
    pkg_cv_PYTHON_EMBED_LIBS="$PYTHON_EMBED_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3-embed\""; } >&5
  ($PKG_CONFIG --exists --print-errors "python3-embed") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_PYTHON_EMBED_LIBS=`$PKG_CONFIG --libs "python3-embed" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
                PYTHON_EMBED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python3-embed" 2>&1`
        else
                PYTHON_EMBED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python3-embed" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
        echo "$PYTHON_EMBED_PKG_ERRORS" >&5

        python3_pkg_name=python3
elif test $pkg_failed = untried; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
        python3_pkg_name=python3
else
        PYTHON_EMBED_CFLAGS=$pkg_cv_PYTHON_EMBED_CFLAGS
        PYTHON_EMBED_LIBS=$pkg_cv_PYTHON_EMBED_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        python3_pkg_name=python3-embed
fi



    if test "x$enable_use_python" = "xyes"; then
        saveflags="$CFLAGS"
        saveeflags="$EXTRA_CFLAGS"



pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"$python3_pkg_name\"" >&5
printf %s "checking for \"$python3_pkg_name\"... " >&6; }

if test -n "$PYTHON_CFLAGS"; then
    pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$python3_pkg_name\"\""; } >&5
  ($PKG_CONFIG --exists --print-errors ""$python3_pkg_name"") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags ""$python3_pkg_name"" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$PYTHON_LIBS"; then
    pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$python3_pkg_name\"\""; } >&5
  ($PKG_CONFIG --exists --print-errors ""$python3_pkg_name"") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs ""$python3_pkg_name"" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
                PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$python3_pkg_name"" 2>&1`
        else
                PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$python3_pkg_name"" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
        echo "$PYTHON_PKG_ERRORS" >&5

        lp_cv_has_python3=no
elif test $pkg_failed = untried; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
        lp_cv_has_python3=no
else
        PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
        PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        lp_cv_has_python3=yes
fi


        # No pkg-config, search manually.
        if test "$lp_cv_has_python3" = "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 support" >&5
printf %s "checking for python3 support... " >&6; }
            for TESTPATH in "" "${python_path}" "${python_path}/include" "${python_path}/include/python3" "/usr/include/python3" "/usr/local/include" "/usr/local/include/python3" ; do
                if test "x$TESTPATH" != "x"; then
                    CFLAGS="$saveflags -I$TESTPATH"
                else
                    CFLAGS="$saveflags"
                fi
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <Python.h>

    void init(void)
    {
        Py_Initialize();
        Py_Finalize();
    }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_python3=yes
                    if test "x$TESTPATH" != "x"; then
                        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
                    fi
                    break;

else $as_nop
  CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
            done
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_python3" >&5
printf "%s\n" "$lp_cv_has_python3" >&6; }
        elif test "x$PYTHON_CFLAGS" != "x"; then
            EXTRA_CFLAGS="$PYTHON_CFLAGS $EXTRA_CFLAGS"
        fi

        if test "$lp_cv_has_python3" = "yes"; then
            if test "x$PYTHON_LIBS" != "x"; then
                PKGLIBS="$PKGLIBS $PYTHON_LIBS"
            else
                tmp=""

                for TESTPATH in "" "${python_path}" "${python_path}/lib" "${python_path}/lib/python3" "/usr/lib/python3" "/usr/local/lib" "/usr/local/lib/python3" ; do
                    if test "x$TESTPATH" != "x"; then
                        CFLAGS="$saveflags -L$TESTPATH"
                    else
                        CFLAGS="$saveflags"
                    fi

                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Py_Initialize in -lpython3" >&5
printf %s "checking for Py_Initialize in -lpython3... " >&6; }
if test ${ac_cv_lib_python3_Py_Initialize+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpython3  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char Py_Initialize ();
int
main (void)
{
return Py_Initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_python3_Py_Initialize=yes
else $as_nop
  ac_cv_lib_python3_Py_Initialize=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_python3_Py_Initialize" >&5
printf "%s\n" "$ac_cv_lib_python3_Py_Initialize" >&6; }
if test "x$ac_cv_lib_python3_Py_Initialize" = xyes
then :
  if test "x$TESTPATH" != "x"; then
                            tmp="$PKGLIBS -L$TESTPATH -lpython3"
                        else
                            tmp="$PKGLIBS -lpython3"
                        fi
                        break

fi

                done

                if test "x$tmp" = "x"; then
                    lp_cv_has_python3=no

                    EXTRA_CFLAGS="$saveeflags"
                else
                    PKGLIBS="$tmp"
                fi
            fi

            CFLAGS="$saveflags"
        fi
    fi


if test "$lp_cv_has_python3" = "yes"; then

printf "%s\n" "#define HAS_PYTHON3 1" >>confdefs.h

else
    if test "$enable_use_python" = "yes"; then
        echo "Python3 library not found - disabling Python support"
        if test "x$not_available" = "x"; then
    not_available="use-python"
else
    not_available="$not_available, use-python"
fi
    fi

    cdef_use_python="#undef"
    enable_use_python="no"
fi

# --- XML ---

has_xml=no

if test "$xml_package" = "any" -o "$xml_package" = "xml2"; then


    if test "x$enable_use_xml" = "xyes"; then
        saveflags="$CFLAGS"
        saveeflags="$EXTRA_CFLAGS"



pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
printf %s "checking for libxml-2.0... " >&6; }

if test -n "$XML2_CFLAGS"; then
    pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$XML2_LIBS"; then
    pkg_cv_XML2_LIBS="$XML2_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
                XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
        else
                XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
        echo "$XML2_PKG_ERRORS" >&5

        lp_cv_has_xml2=no
elif test $pkg_failed = untried; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
        lp_cv_has_xml2=no
else
        XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
        XML2_LIBS=$pkg_cv_XML2_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        lp_cv_has_xml2=yes
fi


        # No pkg-config, search manually.
        if test "$lp_cv_has_xml2" = "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
printf %s "checking for libxml2 support... " >&6; }
            for TESTPATH in "" "${xml_path}" "${xml_path}/include" "${xml_path}/include/libxml2" "/usr/include/libxml2" "/usr/local/include" "/usr/local/include/libxml2" ; do
                if test "x$TESTPATH" != "x"; then
                    CFLAGS="$saveflags -I$TESTPATH"
                else
                    CFLAGS="$saveflags"
                fi
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        #include <libxml/parser.h>

        void foo(void)
        {
            xmlElementType type = XML_ELEMENT_NODE;
        }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_xml2=yes
                    if test "x$TESTPATH" != "x"; then
                        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
                    fi
                    break;

else $as_nop
  CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
            done
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_xml2" >&5
printf "%s\n" "$lp_cv_has_xml2" >&6; }
        elif test "x$XML2_CFLAGS" != "x"; then
            EXTRA_CFLAGS="$XML2_CFLAGS $EXTRA_CFLAGS"
        fi

        if test "$lp_cv_has_xml2" = "yes"; then
            if test "x$XML2_LIBS" != "x"; then
                PKGLIBS="$PKGLIBS $XML2_LIBS"
            else
                tmp=""

                for TESTPATH in "" "${xml_path}" "${xml_path}/lib" "${xml_path}/lib/libxml2" "/usr/lib/libxml2" "/usr/local/lib" "/usr/local/lib/libxml2" ; do
                    if test "x$TESTPATH" != "x"; then
                        CFLAGS="$saveflags -L$TESTPATH"
                    else
                        CFLAGS="$saveflags"
                    fi

                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
printf %s "checking for xmlParseFile in -lxml2... " >&6; }
if test ${ac_cv_lib_xml2_xmlParseFile+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lxml2  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char xmlParseFile ();
int
main (void)
{
return xmlParseFile ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_xml2_xmlParseFile=yes
else $as_nop
  ac_cv_lib_xml2_xmlParseFile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
printf "%s\n" "$ac_cv_lib_xml2_xmlParseFile" >&6; }
if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes
then :
  if test "x$TESTPATH" != "x"; then
                            tmp="$PKGLIBS -L$TESTPATH -lxml2"
                        else
                            tmp="$PKGLIBS -lxml2"
                        fi
                        break

fi

                done

                if test "x$tmp" = "x"; then
                    lp_cv_has_xml2=no

                    EXTRA_CFLAGS="$saveeflags"
                else
                    PKGLIBS="$tmp"
                fi
            fi

            CFLAGS="$saveflags"
        fi
    fi


    if test "$lp_cv_has_xml2" = "yes"; then
        if test "$enable_use_xml" = "yes"; then
            has_xml=yes
            xml_package=xml2

printf "%s\n" "#define HAS_XML2 1" >>confdefs.h

        fi
    fi
fi

if test "$xml_package" = "any" -o "$xml_package" = "iksemel"; then


    if test "x$enable_use_xml" = "xyes"; then
        saveflags="$CFLAGS"
        saveeflags="$EXTRA_CFLAGS"



pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iksemel" >&5
printf %s "checking for iksemel... " >&6; }

if test -n "$IKSEMEL_CFLAGS"; then
    pkg_cv_IKSEMEL_CFLAGS="$IKSEMEL_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iksemel\""; } >&5
  ($PKG_CONFIG --exists --print-errors "iksemel") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_IKSEMEL_CFLAGS=`$PKG_CONFIG --cflags "iksemel" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$IKSEMEL_LIBS"; then
    pkg_cv_IKSEMEL_LIBS="$IKSEMEL_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iksemel\""; } >&5
  ($PKG_CONFIG --exists --print-errors "iksemel") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_IKSEMEL_LIBS=`$PKG_CONFIG --libs "iksemel" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
                IKSEMEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "iksemel" 2>&1`
        else
                IKSEMEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "iksemel" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
        echo "$IKSEMEL_PKG_ERRORS" >&5

        lp_cv_has_iksemel=no
elif test $pkg_failed = untried; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
        lp_cv_has_iksemel=no
else
        IKSEMEL_CFLAGS=$pkg_cv_IKSEMEL_CFLAGS
        IKSEMEL_LIBS=$pkg_cv_IKSEMEL_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        lp_cv_has_iksemel=yes
fi


        # No pkg-config, search manually.
        if test "$lp_cv_has_iksemel" = "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iksemel support" >&5
printf %s "checking for iksemel support... " >&6; }
            for TESTPATH in "" "${xml_path}" "${xml_path}/include" "${xml_path}/include/iksemel" "/usr/include/iksemel" "/usr/local/include" "/usr/local/include/iksemel" ; do
                if test "x$TESTPATH" != "x"; then
                    CFLAGS="$saveflags -I$TESTPATH"
                else
                    CFLAGS="$saveflags"
                fi
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        #include <iksemel.h>

        iks * foo(void)
        {
            return (iks*)0;
        }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_has_iksemel=yes
                    if test "x$TESTPATH" != "x"; then
                        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
                    fi
                    break;

else $as_nop
  CFLAGS="$saveflags"

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
            done
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_iksemel" >&5
printf "%s\n" "$lp_cv_has_iksemel" >&6; }
        elif test "x$IKSEMEL_CFLAGS" != "x"; then
            EXTRA_CFLAGS="$IKSEMEL_CFLAGS $EXTRA_CFLAGS"
        fi

        if test "$lp_cv_has_iksemel" = "yes"; then
            if test "x$IKSEMEL_LIBS" != "x"; then
                PKGLIBS="$PKGLIBS $IKSEMEL_LIBS"
            else
                tmp=""

                for TESTPATH in "" "${xml_path}" "${xml_path}/lib" "${xml_path}/lib/iksemel" "/usr/lib/iksemel" "/usr/local/lib" "/usr/local/lib/iksemel" ; do
                    if test "x$TESTPATH" != "x"; then
                        CFLAGS="$saveflags -L$TESTPATH"
                    else
                        CFLAGS="$saveflags"
                    fi

                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iks_parse in -liksemel" >&5
printf %s "checking for iks_parse in -liksemel... " >&6; }
if test ${ac_cv_lib_iksemel_iks_parse+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liksemel  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char iks_parse ();
int
main (void)
{
return iks_parse ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_iksemel_iks_parse=yes
else $as_nop
  ac_cv_lib_iksemel_iks_parse=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iksemel_iks_parse" >&5
printf "%s\n" "$ac_cv_lib_iksemel_iks_parse" >&6; }
if test "x$ac_cv_lib_iksemel_iks_parse" = xyes
then :
  if test "x$TESTPATH" != "x"; then
                            tmp="$PKGLIBS -L$TESTPATH -liksemel"
                        else
                            tmp="$PKGLIBS -liksemel"
                        fi
                        break

fi

                done

                if test "x$tmp" = "x"; then
                    lp_cv_has_iksemel=no

                    EXTRA_CFLAGS="$saveeflags"
                else
                    PKGLIBS="$tmp"
                fi
            fi

            CFLAGS="$saveflags"
        fi
    fi


    if test "$lp_cv_has_iksemel" = "yes"; then
        if test "$enable_use_xml" = "yes"; then
            has_xml=yes
            xml_package=iksemel

printf "%s\n" "#define HAS_IKSEMEL 1" >>confdefs.h

        fi
    fi
fi

if test "$has_xml" = "no"; then
    if test "$enable_use_xml" = "yes"; then
        echo "XML not supported - disabling XML support."
        if test "x$not_available" = "x"; then
    not_available="use-xml"
else
    not_available="$not_available, use-xml"
fi
    fi

    cdef_use_xml="#undef"
    enable_use_xml=no
fi

# --- Check if we need zlib libraries for mccp ---

if test "x$enable_use_mccp" = "x" || test "x$enable_use_mccp" = "xyes"; then
    if test "$lp_cv_need_lib_z" != "yes"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
printf %s "checking for main in -lz... " >&6; }
if test ${ac_cv_lib_z_main+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_z_main=yes
else $as_nop
  ac_cv_lib_z_main=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
printf "%s\n" "$ac_cv_lib_z_main" >&6; }
if test "x$ac_cv_lib_z_main" = xyes
then :
  PKGLIBS="$PKGLIBS -lz"
                     lp_cv_need_lib_z="yes"

fi

    fi
    if test "$lp_cv_need_lib_z" != "yes"; then
        echo "libz library not found - disabling MCCP support"
        if test "x$not_available" = "x"; then
    not_available="use-mccp"
else
    not_available="$not_available, use-mccp"
fi
        cdef_use_mccp="#undef"
        enable_use_mccp="no"
    fi
fi

# ---

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rename handles directories" >&5
printf %s "checking if rename handles directories... " >&6; }
if test ${lp_cv_sys_rename_handles_directories+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

main() {
    mkdir("conftestdirfrom", 0770);
    exit(rename("conftestdirfrom", "conftestdirto"));
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_sys_rename_handles_directories=yes
else $as_nop
  lp_cv_sys_rename_handles_directories=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_sys_rename_handles_directories" >&5
printf "%s\n" "$lp_cv_sys_rename_handles_directories" >&6; }
if test "$lp_cv_sys_rename_handles_directories" = "yes"; then

printf "%s\n" "#define RENAME_HANDLES_DIRECTORIES 1" >>confdefs.h

fi
rmdir conftestdirfrom conftestdirto 2> /dev/null

if test "$ac_cv_func_getrusage" = "yes" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking full availability of struct rusage members" >&5
printf %s "checking full availability of struct rusage members... " >&6; }
if test ${lp_cv_struct_rusage_full+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h> /* BSDI 2.0.1 / 2.1 needs this for resource.h */
#include <sys/time.h>
#ifdef HAVE_SYS_RUSAGE_H
#include <sys/rusage.h>
#endif
#include <sys/resource.h>
#ifndef RUSAGE_SELF
#define RUSAGE_SELF     0
#endif

int
main (void)
{

    struct rusage rus;
    long *v = (long *)main;
    getrusage(RUSAGE_SELF, &rus);
    *v++ = rus.ru_maxrss;
    *v++ = rus.ru_ixrss;
    *v++ = rus.ru_idrss;
    *v++ = rus.ru_isrss;
    *v++ = rus.ru_minflt;
    *v++ = rus.ru_majflt;
    *v++ = rus.ru_nswap;
    *v++ = rus.ru_inblock;
    *v++ = rus.ru_oublock;
    *v++ = rus.ru_msgsnd;
    *v++ = rus.ru_msgrcv;
    *v++ = rus.ru_nsignals;
    *v++ = rus.ru_nvcsw;
    *v++ = rus.ru_nivcsw;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_struct_rusage_full=yes
else $as_nop
  lp_cv_struct_rusage_full=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_struct_rusage_full" >&5
printf "%s\n" "$lp_cv_struct_rusage_full" >&6; }
if test "$lp_cv_struct_rusage_full" = "no"; then

printf "%s\n" "#define GETRUSAGE_RESTRICTED 1" >>confdefs.h

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct rusage timeval members with tv_usec" >&5
printf %s "checking struct rusage timeval members with tv_usec... " >&6; }
if test ${lp_cv_struct_rusage_usec+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h> /* BSDI 2.0.1 / 2.1 needs this for resource.h */
#include <sys/time.h>
#ifdef HAVE_SYS_RUSAGE_H
#include <sys/rusage.h>
#endif
#include <sys/resource.h>
#ifndef RUSAGE_SELF
#define RUSAGE_SELF     0
#endif

int
main (void)
{

    struct rusage rus;
    long *v = (long *)main;
    getrusage(RUSAGE_SELF, &rus);
    *v++ = rus.ru_utime.tv_sec * 1000 + rus.ru_utime.tv_usec / 1000;
    *v++ = rus.ru_stime.tv_sec * 1000 + rus.ru_stime.tv_usec / 1000;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_struct_rusage_usec=yes
else $as_nop
  lp_cv_struct_rusage_usec=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_struct_rusage_usec" >&5
printf "%s\n" "$lp_cv_struct_rusage_usec" >&6; }
if test "$lp_cv_struct_rusage_usec" = "yes"; then

printf "%s\n" "#define RUSAGE_USEC 1" >>confdefs.h

fi
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrusage() via syscall()" >&5
printf %s "checking for getrusage() via syscall()... " >&6; }
if test ${lp_cv_func_getrusage_via_syscall+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h> /* BSDI 2.0.1 / 2.1 needs this for resource.h */
#include <sys/syscall.h>
#include <sys/resource.h>
#ifndef RUSAGE_SELF
#define RUSAGE_SELF     0
#endif

int
main (void)
{

struct rusage rus;
syscall(SYS_GETRUSAGE, RUSAGE_SELF, rus);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_func_getrusage_via_syscall=yes
else $as_nop
  lp_cv_func_getrusage_via_syscall=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_func_getrusage_via_syscall" >&5
printf "%s\n" "$lp_cv_func_getrusage_via_syscall" >&6; }
if test "$lp_cv_func_getrusage_via_syscall" = "yes"; then

printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h


printf "%s\n" "#define GETRUSAGE_VIA_SYSCALL 1" >>confdefs.h

fi
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if return type of free is void" >&5
printf %s "checking if return type of free is void... " >&6; }
if test ${lp_cv_prop_free_returns_void+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
#include <memory.h>
#endif
void free();

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_prop_free_returns_void=yes
else $as_nop
  lp_cv_prop_free_returns_void=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_free_returns_void" >&5
printf "%s\n" "$lp_cv_prop_free_returns_void" >&6; }
if test "$lp_cv_prop_free_returns_void" = "yes"; then

printf "%s\n" "#define FREE_RETURNS_VOID 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if void* or char* from malloc" >&5
printf %s "checking if void* or char* from malloc... " >&6; }
if test ${lp_cv_prop_malloc_return_type+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
#include <memory.h>
#endif
#ifdef __STDC__
#define PROT(x) x
#else
#define PROT(x) ()
#endif
#define POINTER void *
POINTER malloc(size_t);
#ifdef FREE_RETURNS_VOID
void free PROT((POINTER));
#else
int free PROT((POINTER));
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_prop_malloc_return_type="void *"
else $as_nop
  lp_cv_prop_malloc_return_type="char *"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_malloc_return_type" >&5
printf "%s\n" "$lp_cv_prop_malloc_return_type" >&6; }

printf "%s\n" "#define POINTER $lp_cv_prop_malloc_return_type" >>confdefs.h


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CHAR_BIT == 8 or undef" >&5
printf %s "checking if CHAR_BIT == 8 or undef... " >&6; }
if test ${lp_cv_prop_charbits_eq_8+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#ifdef HAVE_VALUES_H
#include <values.h>
#endif
int i=1/(CHAR_BIT-8);

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  lp_cv_prop_charbits_eq_8=no
else $as_nop
  lp_cv_prop_charbits_eq_8=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_charbits_eq_8" >&5
printf "%s\n" "$lp_cv_prop_charbits_eq_8" >&6; }
if test "$lp_cv_prop_charbits_eq_8" = "yes"; then

printf "%s\n" "#define CHARBIT_MASK 0xff" >>confdefs.h

else
  printf "%s\n" "#define CHARBIT_MASK CHAR_BIT" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking nonblocking using ioctl with FIONBIO" >&5
printf %s "checking nonblocking using ioctl with FIONBIO... " >&6; }
if test ${lp_cv_prop_use_ioctl_fionbio+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  lp_cv_prop_use_ioctl_fionbio=unknown
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have to supply the correct way to set sockets non-blocking by hand." >&5
printf "%s\n" "$as_me: WARNING: You have to supply the correct way to set sockets non-blocking by hand." >&2;}

else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h> /* needed for netinet/in.h */
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
main() {
    int port, tmp, s;
    struct sockaddr_in my_sin;
    struct hostent *hp;
    char *host_name;

    host_name = malloc(100);
    if (gethostname(host_name, 100) == -1) exit(1);
    hp = gethostbyname(host_name);
    if (hp == 0) exit(1);
    memset((char *)&my_sin, '\0', sizeof my_sin);
    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
    my_sin.sin_family = hp->h_addrtype;
    my_sin.sin_addr.s_addr = INADDR_ANY;
    alarm(10);
    for (port = 2000; port < 10000; port++) {
        my_sin.sin_port = htons((u_short)port);
        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
        if (s == -1) exit(1);
        tmp = 1;
        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
                        (char *) &tmp, sizeof (tmp)) < 0)
            exit (1);
        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
            if (errno == EADDRINUSE) {
                close(s);
		continue;
            }
            exit(1);
        }
	if (listen(s, 5) == -1) exit(1);
	tmp = 1;
	if (ioctl(s, FIONBIO, &tmp) == -1) exit(1);
        tmp = sizeof my_sin;
        s = accept(s, (struct sockaddr *)&my_sin, &tmp);
	if (s == -1) {
	    if (errno == EWOULDBLOCK ||
		errno == EAGAIN)
	    {
		/* hpux has special problems with sockets from pipe() */
		int sockets[2];
		FILE *fp_read;

		if(pipe(sockets) < 0)
		    exit(1);
		fp_read = fdopen(sockets[0], "r");
		if (fp_read == NULL)
		    exit(1);
		if (ioctl(fileno(fp_read) , FIONBIO, &tmp) == -1)
		    exit(1);
		exit(0);
	    }
	    if (errno == EINTR) { close(s); continue; }
	}
	break;
    }
    exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_prop_use_ioctl_fionbio=yes
else $as_nop
  lp_cv_prop_use_ioctl_fionbio=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_ioctl_fionbio" >&5
printf "%s\n" "$lp_cv_prop_use_ioctl_fionbio" >&6; }
if test "$lp_cv_prop_use_ioctl_fionbio" = "yes"; then

printf "%s\n" "#define USE_IOCTL_FIONBIO 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking nonblocking using fcntl with O_NDELAY" >&5
printf %s "checking nonblocking using fcntl with O_NDELAY... " >&6; }
if test ${lp_cv_prop_use_fnctl_o_ndelay+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  lp_cv_prop_use_fnctl_o_ndelay=unknown
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h> /* needed for netinet/in.h */
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
main() {
    int port, tmp, s;
    struct sockaddr_in my_sin;
    struct hostent *hp;
    char *host_name;

    host_name = malloc(100);
    if (gethostname(host_name, 100) == -1) exit(1);
    hp = gethostbyname(host_name);
    if (hp == 0) exit(1);
    memset((char *)&my_sin, '\0', sizeof my_sin);
    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
    my_sin.sin_family = hp->h_addrtype;
    my_sin.sin_addr.s_addr = INADDR_ANY;
    alarm(10);
    for (port = 2000; port < 10000; port++) {
        my_sin.sin_port = htons((u_short)port);
        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
        if (s == -1) exit(1);
        tmp = 1;
        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
                        (char *) &tmp, sizeof (tmp)) < 0)
            exit (1);
        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
            if (errno == EADDRINUSE) {
                close(s);
		continue;
            }
            exit(1);
        }
	if (listen(s, 5) == -1) exit(1);
	if (fcntl(s, F_SETFL, O_NDELAY) == -1) exit(1);
        tmp = sizeof my_sin;
        s = accept(s, (struct sockaddr *)&my_sin, &tmp);
	if (s == -1) {
	    if (errno == EWOULDBLOCK) exit(0);
	    if (errno == EAGAIN) exit(0);
	    if (errno == EINTR) { close(s); continue; }
	}
	break;
    }
    exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_prop_use_fnctl_o_ndelay=yes
else $as_nop
  lp_cv_prop_use_fnctl_o_ndelay=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_fnctl_o_ndelay" >&5
printf "%s\n" "$lp_cv_prop_use_fnctl_o_ndelay" >&6; }
if test "$lp_cv_prop_use_fnctl_o_ndelay" = "yes"; then

printf "%s\n" "#define USE_FCNTL_O_NDELAY 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking nonblocking using fcntl with FNDELAY" >&5
printf %s "checking nonblocking using fcntl with FNDELAY... " >&6; }
if test ${lp_cv_prop_use_fcntl_fndelay+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  lp_cv_prop_use_fcntl_fndelay=unknown
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h> /* needed for netinet/in.h */
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
main() {
    int port, tmp, s;
    struct sockaddr_in my_sin;
    struct hostent *hp;
    char *host_name;

    host_name = malloc(100);
    if (gethostname(host_name, 100) == -1) exit(1);
    hp = gethostbyname(host_name);
    if (hp == 0) exit(1);
    memset((char *)&my_sin, '\0', sizeof my_sin);
    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
    my_sin.sin_family = hp->h_addrtype;
    my_sin.sin_addr.s_addr = INADDR_ANY;
    alarm(10);
    for (port = 2000; port < 10000; port++) {
        my_sin.sin_port = htons((u_short)port);
        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
        if (s == -1) exit(1);
        tmp = 1;
        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
                        (char *) &tmp, sizeof (tmp)) < 0)
            exit (1);
        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
            if (errno == EADDRINUSE) {
                close(s);
		continue;
            }
            exit(1);
        }
	if (listen(s, 5) == -1) exit(1);
	if (fcntl(s, F_SETFL, FNDELAY) == -1) exit(1);
        tmp = sizeof my_sin;
        s = accept(s, (struct sockaddr *)&my_sin, &tmp);
	if (s == -1) {
	    if (errno == EWOULDBLOCK) exit(0);
	    if (errno == EAGAIN) exit(0);
	    if (errno == EINTR) { close(s); continue; }
	}
	break;
    }
    exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_prop_use_fcntl_fndelay=yes
else $as_nop
  lp_cv_prop_use_fcntl_fndelay=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_fcntl_fndelay" >&5
printf "%s\n" "$lp_cv_prop_use_fcntl_fndelay" >&6; }
if test "$lp_cv_prop_use_fcntl_fndelay" = "yes"; then

printf "%s\n" "#define USE_FCNTL_FNDELAY 1" >>confdefs.h

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl with SETOWN works" >&5
printf %s "checking if fcntl with SETOWN works... " >&6; }
if test ${lp_cv_prop_use_fcntl_setown+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  lp_cv_prop_use_fcntl_setown=unknown
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h> /* needed for netinet/in.h */
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
main() {
    int port, tmp, s;
    struct sockaddr_in my_sin;
    struct hostent *hp;
    char *host_name;

    host_name = malloc(100);
    if (gethostname(host_name, 100) == -1) exit(1);
    hp = gethostbyname(host_name);
    if (hp == 0) exit(1);
    memset((char *)&my_sin, '\0', sizeof my_sin);
    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
    my_sin.sin_family = hp->h_addrtype;
    my_sin.sin_addr.s_addr = INADDR_ANY;
    alarm(10);
    for (port = 2000; port < 10000; port++) {
        my_sin.sin_port = htons((u_short)port);
        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
        if (s == -1) exit(1);
        tmp = 1;
        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
                        (char *) &tmp, sizeof (tmp)) < 0)
            exit (1);
        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
            if (errno == EADDRINUSE) {
                close(s);
		continue;
            }
            exit(1);
        }
	if (listen(s, 5) == -1) exit(1);
#ifndef F_SETOWN
        exit(1);
#else
	if (fcntl(s, F_SETOWN, getpid()) == -1) exit(1);
        exit(0);
#endif
    }
    exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_prop_use_fcntl_setown=yes
else $as_nop
  lp_cv_prop_use_fcntl_setown=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_fcntl_setown" >&5
printf "%s\n" "$lp_cv_prop_use_fcntl_setown" >&6; }
if test "$lp_cv_prop_use_fcntl_setown" = "yes"; then

printf "%s\n" "#define USE_FCNTL_SETOWN 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OOBINLINE works" >&5
printf %s "checking if OOBINLINE works... " >&6; }
if test ${lp_cv_prop_use_oobinline+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  lp_cv_prop_use_oobinline=unknown
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h> /* needed for netinet/in.h */
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
main() {
    int port, tmp, s;
    struct sockaddr_in my_sin;
    struct hostent *hp;
    char *host_name;

    host_name = malloc(100);
    if (gethostname(host_name, 100) == -1) exit(1);
    hp = gethostbyname(host_name);
    if (hp == 0) exit(1);
    memset((char *)&my_sin, '\0', sizeof my_sin);
    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
    my_sin.sin_family = hp->h_addrtype;
    my_sin.sin_addr.s_addr = INADDR_ANY;
    alarm(10);
    for (port = 2000; port < 10000; port++) {
        int on;
        my_sin.sin_port = htons((u_short)port);
        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
        if (s == -1) exit(1);
        tmp = 1;
        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
                        (char *) &tmp, sizeof (tmp)) < 0)
            exit (1);
        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
            if (errno == EADDRINUSE) {
                close(s);
		continue;
            }
            exit(1);
        }
	if (listen(s, 5) == -1) exit(1);
#ifndef SO_OOBINLINE
        exit(1);
#else
        on = 1;
        if (setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (char *)&on, sizeof on) == -1)
            exit(1);
        exit(0);
#endif
    }
    exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  lp_cv_prop_use_oobinline=yes
else $as_nop
  lp_cv_prop_use_oobinline=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_oobinline" >&5
printf "%s\n" "$lp_cv_prop_use_oobinline" >&6; }
if test "$lp_cv_prop_use_oobinline" = "yes"; then

printf "%s\n" "#define USE_OOBINLINE 1" >>confdefs.h

fi

# --- Check for compiler options ---

tcomp='${CC-cc} ${CFLAGS} ${TESTFLAG} -o conftest conftest.c >/dev/null 2>&1'
tcomp2='${CC-cc} ${CFLAGS} ${TESTFLAG} -o conftest conftest.c 2>&1'
tcomp3='${CC-cc} ${CFLAGS} ${TESTFLAG} -c conftest.c >/dev/null 2>&1'

cat > conftest.c <<EOF
#include <stdio.h>
#include <math.h>
double d = 4.5;
int main(void) { printf("hello world\n"); return 0; }
EOF

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking low optimization CFLAGS" >&5
printf %s "checking low optimization CFLAGS... " >&6; }
for TESTFLAG in -O; do
  if eval $tcomp; then
    if echo `eval $tcomp2` | egrep '[uU]n(recognized|known) [oO]ption' >/dev/null; then
      :
      #the [e]grep option -v will not give a failure exit status on the atari
    else
      if eval $tcomp; then
        CFLAGS=$TESTFLAG
        break
      fi
    fi
  fi
done
for TESTFLAG in -g; do
  if eval $tcomp; then
    CFLAGS="$CFLAGS $TESTFLAG"
  fi
done
LCFLAGS=$CFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCFLAGS" >&5
printf "%s\n" "$LCFLAGS" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking medium optimization CFLAGS" >&5
printf %s "checking medium optimization CFLAGS... " >&6; }
for TESTFLAG in -O2 -O; do
  if eval $tcomp; then
    if echo `eval $tcomp2` | egrep '[uU]n(recognized|known) [oO]ption' >/dev/null; then
      :
      #the [e]grep option -v will not give a failure exit status on the atari
    else
      if eval $tcomp; then
        CFLAGS=$TESTFLAG
        break
      fi
    fi
  fi
done
for TESTFLAG in -g; do
  if eval $tcomp; then
    OPTFLAGS="$OPTFLAGS $TESTFLAG"
    CFLAGS="$CFLAGS $TESTFLAG"
  fi
done
MCFLAGS=$CFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MCFLAGS" >&5
printf "%s\n" "$MCFLAGS" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking highest optimization CFLAGS" >&5
printf %s "checking highest optimization CFLAGS... " >&6; }
for TESTFLAG in -O4 -O3 -O2 -O; do
  if eval $tcomp; then
    if echo `eval $tcomp2` | egrep '[uU]n(recognized|known) [oO]ption' >/dev/null; then
      :
      #the [e]grep option -v will not give a failure exit status on the atari
    else
      if eval $tcomp; then
        CFLAGS=$TESTFLAG
        break
      fi
    fi
  fi
done
if test "$ac_cv_c_compiler_gnu" = "no"; then
  for TESTFLAG in -qstrict -qipa -ipo; do
    if eval $tcomp; then
      if echo `eval $tcomp2` | egrep '[uU]n(recognized|known) [oO]ption' >/dev/null; then
        :
        #the [e]grep option -v will not give a failure exit status on the atari
      else
        if eval $tcomp; then
          CFLAGS="$CFLAGS $TESTFLAG"
          break
        fi
      fi
    fi
  done
fi
# -funroll-all-loops causes some versions of gcc to produce buggy code
for TESTFLAG in -fomit-frame-pointer; do
  if eval $tcomp; then
    CFLAGS="$CFLAGS $TESTFLAG"
  fi
done
OCFLAGS="$CFLAGS $OPTFLAGS"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCFLAGS" >&5
printf "%s\n" "$OCFLAGS" >&6; }
if ${CC-cc} -g -c conftest.c ; then
  DCFLAGS='-g'
else
  DCFLAGS=''
fi
OPTIMIZE_LINKING=''
if ${CC-cc} $OFLAGS -o conftest conftest.c ; then
  OPTIMIZE_LINKING='$(OPTIMIZE)'
fi

rm -f conftest.c

if test "$ac_cv_lib_socket_main" = "yes"; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(sun)
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1
then :
   EXTRA_CFLAGS="${EXTRA_CFLAGS} -Dsolaris"
fi
rm -rf conftest*

fi

# Some Unixes require the -n parameter for tail to work properly
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tail accepts the -n parameter" >&5
printf %s "checking if tail accepts the -n parameter... " >&6; }
TAIL_N=""
if tail -n +2 confdefs.h > /dev/null 2>&1; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
    TAIL_N="-n"
else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

# check for a working sbrk().
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working sbrk()" >&5
printf %s "checking for a working sbrk()... " >&6; }
if test "$cross_compiling" = yes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

     $ac_includes_default
int
main (void)
{

    alarm(2); // a crash can be an infinite loop...
    void *ptr = sbrk(0);
    if ((intptr_t)ptr <= 0)
        exit(1); // SBRK not OK!
    for (int i = 0 ; i < 50 ; ++i) {
        ptr = brk(ptr + 1048576);
        if ((intptr_t)ptr == -1)
            exit(1); // SBRK not OK!
    }
    return 0; // SBRK_OK

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

printf "%s\n" "#define SBRK_OK 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


case "$EXTRA_CFLAGS" in
 *-Dsolaris*)
  if test "$ac_cv_lib_ucb_main" = "yes"; then
      LIBS="${LDFLAGS} -lm -lgcc -lc -lnsl -lgcc -lc -ldl_stubs\
        -lnswnis -lnswnisplus -lnswfiles -lnswcompat -lstraddr -lswitch\
        -ltcpip -lsocket -lnsl -lgcc -lc /usr/ucblib/libucb.a"
      LDFLAGS= "-u dgettext -lintl"
  fi ;;
 *-MSWIN*)
      LDFLAGS= "$LDFLAGS -luser32 -lwinmm -lkernel32 -lwsock32"
      ;;
esac

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking malloc overhead" >&5
printf %s "checking malloc overhead... " >&6; }
if test ${lp_cv_sys_malloc_overhead+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat > conftest.c <<EOF
#include "confdefs.h"
#include "${srcdir}/util/overhead.c"
EOF
${CC-cc} -o conftest conftest.c
lp_cv_sys_malloc_overhead=`./conftest --terse`
rm -f conftest*

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lp_cv_sys_malloc_overhead" >&5
printf "%s\n" "$lp_cv_sys_malloc_overhead" >&6; }

printf "%s\n" "#define EXTERN_MALLOC_OVERHEAD $lp_cv_sys_malloc_overhead" >>confdefs.h


if test -z "${CONFIG_SHELL}"; then
  CONFIG_SHELL='/bin/sh'
fi



if test "x$with_malloc" = "x" && test "x$DEFAULTwith_malloc" != "x"; then
  with_malloc=$DEFAULTwith_malloc
fi

if test "x$with_malloc" = "x" || test "x$with_malloc" = "xdefault"; then
    with_malloc="slaballoc"
    if test "x$with_malloc" != "x"; then
  with_malloc=`echo $with_malloc|
             sed -e 's/^\([^"]*\)\?.*$/\1/'`
fi
if test "x$with_malloc" = "x" && test "x$DEFAULTwith_malloc" != "x"; then
  with_malloc=$DEFAULTwith_malloc
fi

val_malloc="$with_malloc"

fi


























































































































































ac_config_files="$ac_config_files Makefile config.h util/Makefile util/indent/Makefile util/xerq/Makefile util/erq/Makefile"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs




: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else $as_nop
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi



# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl='
'
export as_nl
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi

# The user is always right.
if ${PATH_SEPARATOR+false} :; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi



# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  printf "%s\n" "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error



# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else $as_nop
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else $as_nop
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi


# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by LDMud $as_me 3.6.7, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Report bugs to <https://mantis.ldmud.eu/mantis/>.
LDMud home page: <http://www.ldmud.eu/>."

_ACEOF
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
LDMud config.status 3.6.7
configured by $0, generated by GNU Autoconf 2.71,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2021 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    printf "%s\n" "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    printf "%s\n" "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    printf "%s\n" "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  printf "%s\n" "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "machine.h") CONFIG_HEADERS="$CONFIG_HEADERS machine.h" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
    "util/indent/Makefile") CONFIG_FILES="$CONFIG_FILES util/indent/Makefile" ;;
    "util/xerq/Makefile") CONFIG_FILES="$CONFIG_FILES util/xerq/Makefile" ;;
    "util/erq/Makefile") CONFIG_FILES="$CONFIG_FILES util/erq/Makefile" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
printf "%s\n" "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      printf "%s\n" "/* $configure_input  */" >&1 \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    printf "%s\n" "/* $configure_input  */" >&1 \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
 ;;


  esac

done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi


if test "x$not_available" != "x"; then
    echo ""
    echo "WARNING: The following options were disabled because the system"
    echo "lacked the necessary support: $not_available."
    exit 1
fi

