1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176  if (eval "$as_required") 2>/dev/null; then :
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188  IFS=$as_save_IFS
189  test -z "$as_dir" && as_dir=.
190  as_found=:
191  case $as_dir in #(
192	 /*)
193	   for as_base in sh bash ksh sh5; do
194	     # Try only shells that exist, to save several forks.
195	     as_shell=$as_dir/$as_base
196	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198  CONFIG_SHELL=$as_shell as_have_required=yes
199		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  break 2
201fi
202fi
203	   done;;
204       esac
205  as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209  CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214      if test "x$CONFIG_SHELL" != x; then :
215  # We cannot yet assume a decent shell, so we have to provide a
216	# neutralization value for shells without unset; and this also
217	# works around shells that cannot unset nonexistent variables.
218	# Preserve -v and -x to the replacement shell.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	case $- in # ((((
224	  *v*x* | *x*v* ) as_opts=-vx ;;
225	  *v* ) as_opts=-v ;;
226	  *x* ) as_opts=-x ;;
227	  * ) as_opts= ;;
228	esac
229	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230fi
231
232    if test x$as_have_required = xno; then :
233  $as_echo "$0: This script requires a shell more modern than all"
234  $as_echo "$0: the shells that I found on your system."
235  if test x${ZSH_VERSION+set} = xset ; then
236    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238  else
239    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243  fi
244  exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262  { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271  return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279  set +e
280  as_fn_set_status $1
281  exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290  case $as_dir in #(
291  -*) as_dir=./$as_dir;;
292  esac
293  test -d "$as_dir" || eval $as_mkdir_p || {
294    as_dirs=
295    while :; do
296      case $as_dir in #(
297      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298      *) as_qdir=$as_dir;;
299      esac
300      as_dirs="'$as_qdir' $as_dirs"
301      as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303	 X"$as_dir" : 'X\(//\)[^/]' \| \
304	 X"$as_dir" : 'X\(//\)$' \| \
305	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)[^/].*/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\).*/{
320	    s//\1/
321	    q
322	  }
323	  s/.*/./; q'`
324      test -d "$as_dir" && break
325    done
326    test -z "$as_dirs" || eval "mkdir $as_dirs"
327  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338  eval 'as_fn_append ()
339  {
340    eval $1+=\$2
341  }'
342else
343  as_fn_append ()
344  {
345    eval $1=\$$1\$2
346  }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355  eval 'as_fn_arith ()
356  {
357    as_val=$(( $* ))
358  }'
359else
360  as_fn_arith ()
361  {
362    as_val=`expr "$@" || test $? -eq 1`
363  }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374  as_status=$1; test $as_status -eq 0 && as_status=1
375  if test "$4"; then
376    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378  fi
379  $as_echo "$as_me: error: $2" >&2
380  as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384   test "X`expr 00001 : '.*\(...\)'`" = X001; then
385  as_expr=expr
386else
387  as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391  as_basename=basename
392else
393  as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397  as_dirname=dirname
398else
399  as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404	 X"$0" : 'X\(//\)$' \| \
405	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407    sed '/^.*\/\([^/][^/]*\)\/*$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\/\)$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\).*/{
416	    s//\1/
417	    q
418	  }
419	  s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429  as_lineno_1=$LINENO as_lineno_1a=$LINENO
430  as_lineno_2=$LINENO as_lineno_2a=$LINENO
431  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452  # Don't try to exec as it changes $[0], causing all sort of problems
453  # (the dirname of $[0] is not the place where we might find the
454  # original and so on.  Autoconf is especially sensitive to this).
455  . "./$as_me.lineno"
456  # Exit status is that of the last command.
457  exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463  case `echo 'xy\c'` in
464  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
465  xy)  ECHO_C='\c';;
466  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467       ECHO_T='	';;
468  esac;;
469*)
470  ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475  rm -f conf$$.dir/conf$$.file
476else
477  rm -f conf$$.dir
478  mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481  if ln -s conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s='ln -s'
483    # ... but there are two gotchas:
484    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486    # In both cases, we have to default to `cp -p'.
487    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488      as_ln_s='cp -p'
489  elif ln conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s=ln
491  else
492    as_ln_s='cp -p'
493  fi
494else
495  as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501  as_mkdir_p='mkdir -p "$as_dir"'
502else
503  test -d ./-p && rmdir ./-p
504  as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508  as_test_x='test -x'
509else
510  if ls -dL / >/dev/null 2>&1; then
511    as_ls_L_option=L
512  else
513    as_ls_L_option=
514  fi
515  as_test_x='
516    eval sh -c '\''
517      if test -d "$1"; then
518	test -d "$1/.";
519      else
520	case $1 in #(
521	-*)set "./$1";;
522	esac;
523	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524	???[sx]*):;;*)false;;esac;fi
525    '\'' sh
526  '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537test -n "$DJDIR" || exec 7<&0 </dev/null
538exec 6>&1
539
540# Name of the host.
541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563PACKAGE_URL=
564
565ac_unique_file="prolang.y"
566ac_default_prefix=/usr/local/mud
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#ifdef HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#ifdef HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#ifdef STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# ifdef HAVE_STDLIB_H
581#  include <stdlib.h>
582# endif
583#endif
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586#  include <memory.h>
587# endif
588# include <string.h>
589#endif
590#ifdef HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#ifdef HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_header_list=
604ac_func_list=
605ac_subst_vars='LTLIBOBJS
606ERQ_LIBS
607PKGLIBS
608erq_sub
609val_tls_crldirectory
610val_tls_crlfile
611val_tls_trustdirectory
612val_tls_trustfile
613val_tls_certfile
614val_tls_keyfile
615val_random_period_length
616val_max_net_connects
617val_pcre_recursion_limit
618val_wizlist_file
619val_total_trace_length
620val_soft_malloc_limit
621val_hard_malloc_limit
622val_min_small_malloced
623val_min_malloced
624val_malloc
625val_set_buffer_size_max
626val_udp_port
627val_max_byte_transfer
628val_input_escape
629val_master_name
630val_rxcache_table
631val_apply_cache_bits
632val_defmax
633val_otable_size
634val_itable_size
635val_htable_size
636val_reserved_system_size
637val_reserved_master_size
638val_reserved_user_size
639val_max_command_length
640val_allowed_ed_cmds
641val_max_players
642val_max_callouts
643val_max_mapping_size
644val_max_mapping_keys
645val_max_array_size
646val_swap_file
647val_master_reserved_cost
648val_catch_reserved_cost
649val_max_local
650val_max_cost
651val_maxnumports
652val_portno
653val_max_bits
654val_compiler_stack_size
655val_max_trace
656val_max_user_trace
657val_evaluator_stack_size
658val_heart_beat_interval
659val_alarm_time
660val_time_to_reset
661val_time_to_swap_variables
662val_time_to_swap
663val_time_to_clean_up
664val_read_file_max_size
665val_write_buffer_max_size
666val_erq_debug
667val_erq_max_send
668val_erq_max_reply
669val_access_log
670val_access_file
671cdef_dump_gc_refs
672cdef_check_object_gc_ref
673cdef_check_object_ref
674cdef_check_mapping_total
675cdef_check_object_stat
676cdef_debug_malloc_allocs
677cdef_debug_telnet
678cdef_no_inlines
679cdef_yydebug
680cdef_debug
681cdef_verbose_opcprof
682cdef_opcprof
683cdef_tls_crldirectory
684cdef_tls_crlfile
685cdef_tls_trustdirectory
686cdef_tls_trustfile
687cdef_tls_certfile
688cdef_tls_keyfile
689cdef_synchronous_heart_beat
690cdef_wizlist_file
691cdef_rxcache_table
692cdef_eval_cost_trace
693cdef_dynamic_costs
694cdef_malloc_sbrk_trace
695cdef_malloc_lpc_trace
696cdef_malloc_trace
697cdef_malloc_check
698cdef_malloc_sbrk
699cdef_apply_cache_stat
700cdef_trace_code
701cdef_comm_stat
702cdef_lpc_array_calls
703cdef_use_process_string
704cdef_use_parse_command
705cdef_use_set_is_wizard
706cdef_use_set_light
707cdef_use_new_inlines
708cdef_use_gcrypt
709cdef_use_tls
710cdef_use_structs
711cdef_use_deprecated
712cdef_use_builtin_pcre
713cdef_use_pcre
714cdef_use_mccp
715cdef_use_alists
716cdef_use_xml
717cdef_use_sqlite
718cdef_use_pgsql
719cdef_use_mysql
720cdef_use_ipv6
721cdef_share_variables
722cdef_filename_spaces
723cdef_strict_euids
724cdef_compat_mode
725cdef_access_log
726cdef_access_control
727cdef_erq_demon
728CONFIG_SHELL
729YACCTAB
730CLEAN_YACC_TAB
731MOVE_YACC_TAB
732OPTIMIZE_LINKING
733EXTRA_CFLAGS
734DCFLAGS
735MCFLAGS
736LCFLAGS
737OCFLAGS
738WCFLAGS
739val_optimize
740IKSEMEL_LIBS
741IKSEMEL_CFLAGS
742XML2_LIBS
743XML2_CFLAGS
744SQLITE3_LIBS
745SQLITE3_CFLAGS
746PKG_CONFIG_LIBDIR
747PKG_CONFIG_PATH
748PKG_CONFIG
749ALLOCA
750LIBOBJS
751YACC
752INSTALL_DATA
753INSTALL_SCRIPT
754INSTALL_PROGRAM
755EGREP
756GREP
757CPP
758OBJEXT
759EXEEXT
760ac_ct_CC
761CPPFLAGS
762LDFLAGS
763CFLAGS
764CC
765target_alias
766host_alias
767build_alias
768LIBS
769ECHO_T
770ECHO_N
771ECHO_C
772DEFS
773mandir
774localedir
775libdir
776psdir
777pdfdir
778dvidir
779htmldir
780infodir
781docdir
782oldincludedir
783includedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL'
803ac_subst_files=''
804ac_user_opts='
805enable_option_checking
806enable_erq
807enable_access_control
808enable_access_log
809enable_compat_mode
810enable_strict_euids
811enable_filename_spaces
812enable_share_variables
813enable_use_ipv6
814enable_use_alists
815enable_use_mccp
816enable_use_mysql
817enable_use_pgsql
818enable_use_sqlite
819enable_use_pcre
820enable_use_xml
821with_xml_path
822enable_use_deprecated
823enable_use_structs
824enable_use_tls
825with_tls_path
826with_tls_keyfile
827with_tls_certfile
828with_tls_trustfile
829with_tls_trustdirectory
830with_tls_crlfile
831with_tls_crldirectory
832enable_use_gcrypt
833enable_use_new_inlines
834enable_use_set_light
835enable_use_set_is_wizard
836enable_use_parse_command
837enable_use_process_string
838enable_lpc_array_calls
839enable_comm_stat
840enable_apply_cache_stat
841enable_malloc_sbrk
842enable_malloc_check
843enable_malloc_trace
844enable_malloc_lpc_trace
845enable_malloc_sbrk_trace
846enable_dynamic_costs
847enable_eval_cost_trace
848enable_trace_code
849enable_rxcache_table
850enable_synchronous_heart_beat
851enable_opcprof
852enable_verbose_opcprof
853enable_debug
854enable_yydebug
855enable_no_inlines
856enable_debug_telnet
857enable_debug_malloc_allocs
858enable_check_object_stat
859enable_check_mapping_total
860enable_check_object_ref
861enable_check_object_gc_ref
862enable_dump_gc_refs
863with_optimize
864with_access_file
865with_access_log
866with_write_buffer_max_size
867with_erq_max_reply
868with_erq_max_send
869with_erq_debug
870with_read_file_max_size
871with_master_name
872with_input_escape
873with_time_to_clean_up
874with_time_to_swap
875with_time_to_swap_variables
876with_time_to_reset
877with_alarm_time
878with_heart_beat_interval
879with_evaluator_stack_size
880with_max_user_trace
881with_max_trace
882with_compiler_stack_size
883with_max_bits
884with_portno
885with_udp_port
886with_maxnumports
887with_max_cost
888with_catch_reserved_cost
889with_master_reserved_cost
890with_swap_file
891with_max_array_size
892with_max_mapping_keys
893with_max_mapping_size
894with_max_callouts
895with_max_players
896with_max_local
897with_allowed_ed_cmds
898with_max_command_length
899with_reserved_user_size
900with_reserved_master_size
901with_reserved_system_size
902with_htable_size
903with_itable_size
904with_otable_size
905with_defmax
906with_apply_cache_bits
907with_rxcache_table
908with_max_byte_transfer
909with_set_buffer_size_max
910with_malloc
911with_min_malloced
912with_min_small_malloced
913with_hard_malloc_limit
914with_soft_malloc_limit
915with_total_trace_length
916with_pcre_recursion_limit
917with_wizlist_file
918with_max_net_connects
919with_random_period_length
920with_setting
921'
922      ac_precious_vars='build_alias
923host_alias
924target_alias
925CC
926CFLAGS
927LDFLAGS
928LIBS
929CPPFLAGS
930CPP
931CPPFLAGS
932CPP
933CPPFLAGS
934PKG_CONFIG
935PKG_CONFIG_PATH
936PKG_CONFIG_LIBDIR
937SQLITE3_CFLAGS
938SQLITE3_LIBS
939XML2_CFLAGS
940XML2_LIBS
941IKSEMEL_CFLAGS
942IKSEMEL_LIBS'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948ac_unrecognized_opts=
949ac_unrecognized_sep=
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
972# (The list follows the same order as the GNU Coding Standards.)
973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
981includedir='${prefix}/include'
982oldincludedir='/usr/include'
983docdir='${datarootdir}/doc/${PACKAGE}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
992
993ac_prev=
994ac_dashdash=
995for ac_option
996do
997  # If the previous option needs an argument, assign it.
998  if test -n "$ac_prev"; then
999    eval $ac_prev=\$ac_option
1000    ac_prev=
1001    continue
1002  fi
1003
1004  case $ac_option in
1005  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006  *=)   ac_optarg= ;;
1007  *)    ac_optarg=yes ;;
1008  esac
1009
1010  # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012  case $ac_dashdash$ac_option in
1013  --)
1014    ac_dashdash=yes ;;
1015
1016  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017    ac_prev=bindir ;;
1018  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019    bindir=$ac_optarg ;;
1020
1021  -build | --build | --buil | --bui | --bu)
1022    ac_prev=build_alias ;;
1023  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024    build_alias=$ac_optarg ;;
1025
1026  -cache-file | --cache-file | --cache-fil | --cache-fi \
1027  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028    ac_prev=cache_file ;;
1029  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031    cache_file=$ac_optarg ;;
1032
1033  --config-cache | -C)
1034    cache_file=config.cache ;;
1035
1036  -datadir | --datadir | --datadi | --datad)
1037    ac_prev=datadir ;;
1038  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039    datadir=$ac_optarg ;;
1040
1041  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042  | --dataroo | --dataro | --datar)
1043    ac_prev=datarootdir ;;
1044  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046    datarootdir=$ac_optarg ;;
1047
1048  -disable-* | --disable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error $? "invalid feature name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=no ;;
1063
1064  -docdir | --docdir | --docdi | --doc | --do)
1065    ac_prev=docdir ;;
1066  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067    docdir=$ac_optarg ;;
1068
1069  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070    ac_prev=dvidir ;;
1071  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072    dvidir=$ac_optarg ;;
1073
1074  -enable-* | --enable-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      as_fn_error $? "invalid feature name: $ac_useropt"
1079    ac_useropt_orig=$ac_useropt
1080    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081    case $ac_user_opts in
1082      *"
1083"enable_$ac_useropt"
1084"*) ;;
1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086	 ac_unrecognized_sep=', ';;
1087    esac
1088    eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092  | --exec | --exe | --ex)
1093    ac_prev=exec_prefix ;;
1094  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096  | --exec=* | --exe=* | --ex=*)
1097    exec_prefix=$ac_optarg ;;
1098
1099  -gas | --gas | --ga | --g)
1100    # Obsolete; use --with-gas.
1101    with_gas=yes ;;
1102
1103  -help | --help | --hel | --he | -h)
1104    ac_init_help=long ;;
1105  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106    ac_init_help=recursive ;;
1107  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108    ac_init_help=short ;;
1109
1110  -host | --host | --hos | --ho)
1111    ac_prev=host_alias ;;
1112  -host=* | --host=* | --hos=* | --ho=*)
1113    host_alias=$ac_optarg ;;
1114
1115  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116    ac_prev=htmldir ;;
1117  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118  | --ht=*)
1119    htmldir=$ac_optarg ;;
1120
1121  -includedir | --includedir | --includedi | --included | --include \
1122  | --includ | --inclu | --incl | --inc)
1123    ac_prev=includedir ;;
1124  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125  | --includ=* | --inclu=* | --incl=* | --inc=*)
1126    includedir=$ac_optarg ;;
1127
1128  -infodir | --infodir | --infodi | --infod | --info | --inf)
1129    ac_prev=infodir ;;
1130  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131    infodir=$ac_optarg ;;
1132
1133  -libdir | --libdir | --libdi | --libd)
1134    ac_prev=libdir ;;
1135  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136    libdir=$ac_optarg ;;
1137
1138  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139  | --libexe | --libex | --libe)
1140    ac_prev=libexecdir ;;
1141  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142  | --libexe=* | --libex=* | --libe=*)
1143    libexecdir=$ac_optarg ;;
1144
1145  -localedir | --localedir | --localedi | --localed | --locale)
1146    ac_prev=localedir ;;
1147  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148    localedir=$ac_optarg ;;
1149
1150  -localstatedir | --localstatedir | --localstatedi | --localstated \
1151  | --localstate | --localstat | --localsta | --localst | --locals)
1152    ac_prev=localstatedir ;;
1153  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155    localstatedir=$ac_optarg ;;
1156
1157  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158    ac_prev=mandir ;;
1159  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160    mandir=$ac_optarg ;;
1161
1162  -nfp | --nfp | --nf)
1163    # Obsolete; use --without-fp.
1164    with_fp=no ;;
1165
1166  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167  | --no-cr | --no-c | -n)
1168    no_create=yes ;;
1169
1170  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172    no_recursion=yes ;;
1173
1174  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176  | --oldin | --oldi | --old | --ol | --o)
1177    ac_prev=oldincludedir ;;
1178  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181    oldincludedir=$ac_optarg ;;
1182
1183  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184    ac_prev=prefix ;;
1185  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186    prefix=$ac_optarg ;;
1187
1188  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189  | --program-pre | --program-pr | --program-p)
1190    ac_prev=program_prefix ;;
1191  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193    program_prefix=$ac_optarg ;;
1194
1195  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196  | --program-suf | --program-su | --program-s)
1197    ac_prev=program_suffix ;;
1198  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200    program_suffix=$ac_optarg ;;
1201
1202  -program-transform-name | --program-transform-name \
1203  | --program-transform-nam | --program-transform-na \
1204  | --program-transform-n | --program-transform- \
1205  | --program-transform | --program-transfor \
1206  | --program-transfo | --program-transf \
1207  | --program-trans | --program-tran \
1208  | --progr-tra | --program-tr | --program-t)
1209    ac_prev=program_transform_name ;;
1210  -program-transform-name=* | --program-transform-name=* \
1211  | --program-transform-nam=* | --program-transform-na=* \
1212  | --program-transform-n=* | --program-transform-=* \
1213  | --program-transform=* | --program-transfor=* \
1214  | --program-transfo=* | --program-transf=* \
1215  | --program-trans=* | --program-tran=* \
1216  | --progr-tra=* | --program-tr=* | --program-t=*)
1217    program_transform_name=$ac_optarg ;;
1218
1219  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220    ac_prev=pdfdir ;;
1221  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222    pdfdir=$ac_optarg ;;
1223
1224  -psdir | --psdir | --psdi | --psd | --ps)
1225    ac_prev=psdir ;;
1226  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227    psdir=$ac_optarg ;;
1228
1229  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230  | -silent | --silent | --silen | --sile | --sil)
1231    silent=yes ;;
1232
1233  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234    ac_prev=sbindir ;;
1235  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236  | --sbi=* | --sb=*)
1237    sbindir=$ac_optarg ;;
1238
1239  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241  | --sharedst | --shareds | --shared | --share | --shar \
1242  | --sha | --sh)
1243    ac_prev=sharedstatedir ;;
1244  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247  | --sha=* | --sh=*)
1248    sharedstatedir=$ac_optarg ;;
1249
1250  -site | --site | --sit)
1251    ac_prev=site ;;
1252  -site=* | --site=* | --sit=*)
1253    site=$ac_optarg ;;
1254
1255  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256    ac_prev=srcdir ;;
1257  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258    srcdir=$ac_optarg ;;
1259
1260  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261  | --syscon | --sysco | --sysc | --sys | --sy)
1262    ac_prev=sysconfdir ;;
1263  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265    sysconfdir=$ac_optarg ;;
1266
1267  -target | --target | --targe | --targ | --tar | --ta | --t)
1268    ac_prev=target_alias ;;
1269  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270    target_alias=$ac_optarg ;;
1271
1272  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273    verbose=yes ;;
1274
1275  -version | --version | --versio | --versi | --vers | -V)
1276    ac_init_version=: ;;
1277
1278  -with-* | --with-*)
1279    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282      as_fn_error $? "invalid package name: $ac_useropt"
1283    ac_useropt_orig=$ac_useropt
1284    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285    case $ac_user_opts in
1286      *"
1287"with_$ac_useropt"
1288"*) ;;
1289      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290	 ac_unrecognized_sep=', ';;
1291    esac
1292    eval with_$ac_useropt=\$ac_optarg ;;
1293
1294  -without-* | --without-*)
1295    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298      as_fn_error $? "invalid package name: $ac_useropt"
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=no ;;
1309
1310  --x)
1311    # Obsolete; use --with-x.
1312    with_x=yes ;;
1313
1314  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315  | --x-incl | --x-inc | --x-in | --x-i)
1316    ac_prev=x_includes ;;
1317  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319    x_includes=$ac_optarg ;;
1320
1321  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323    ac_prev=x_libraries ;;
1324  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326    x_libraries=$ac_optarg ;;
1327
1328  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329Try \`$0 --help' for more information"
1330    ;;
1331
1332  *=*)
1333    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334    # Reject names that are not valid shell variable names.
1335    case $ac_envvar in #(
1336      '' | [0-9]* | *[!_$as_cr_alnum]* )
1337      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338    esac
1339    eval $ac_envvar=\$ac_optarg
1340    export $ac_envvar ;;
1341
1342  *)
1343    # FIXME: should be removed in autoconf 3.0.
1344    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348    ;;
1349
1350  esac
1351done
1352
1353if test -n "$ac_prev"; then
1354  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355  as_fn_error $? "missing argument to $ac_option"
1356fi
1357
1358if test -n "$ac_unrecognized_opts"; then
1359  case $enable_option_checking in
1360    no) ;;
1361    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363  esac
1364fi
1365
1366# Check all directory arguments for consistency.
1367for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368		datadir sysconfdir sharedstatedir localstatedir includedir \
1369		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370		libdir localedir mandir
1371do
1372  eval ac_val=\$$ac_var
1373  # Remove trailing slashes.
1374  case $ac_val in
1375    */ )
1376      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377      eval $ac_var=\$ac_val;;
1378  esac
1379  # Be sure to have absolute directory names.
1380  case $ac_val in
1381    [\\/$]* | ?:[\\/]* )  continue;;
1382    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383  esac
1384  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385done
1386
1387# There might be people who depend on the old broken behavior: `$host'
1388# used to hold the argument of --host etc.
1389# FIXME: To remove some day.
1390build=$build_alias
1391host=$host_alias
1392target=$target_alias
1393
1394# FIXME: To remove some day.
1395if test "x$host_alias" != x; then
1396  if test "x$build_alias" = x; then
1397    cross_compiling=maybe
1398    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1399    If a cross compiler is detected then cross compile mode will be used" >&2
1400  elif test "x$build_alias" != "x$host_alias"; then
1401    cross_compiling=yes
1402  fi
1403fi
1404
1405ac_tool_prefix=
1406test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408test "$silent" = yes && exec 6>/dev/null
1409
1410
1411ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412ac_ls_di=`ls -di .` &&
1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414  as_fn_error $? "working directory cannot be determined"
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416  as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421  ac_srcdir_defaulted=yes
1422  # Try the directory containing this script, then the parent directory.
1423  ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425	 X"$as_myself" : 'X\(//\)[^/]' \| \
1426	 X"$as_myself" : 'X\(//\)$' \| \
1427	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)[^/].*/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)$/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\).*/{
1442	    s//\1/
1443	    q
1444	  }
1445	  s/.*/./; q'`
1446  srcdir=$ac_confdir
1447  if test ! -r "$srcdir/$ac_unique_file"; then
1448    srcdir=..
1449  fi
1450else
1451  ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456fi
1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
1459	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460	pwd)`
1461# When building in place, set srcdir=.
1462if test "$ac_abs_confdir" = "$ac_pwd"; then
1463  srcdir=.
1464fi
1465# Remove unnecessary trailing slashes from srcdir.
1466# Double slashes in file names in object file debugging info
1467# mess up M-x gdb in Emacs.
1468case $srcdir in
1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470esac
1471for ac_var in $ac_precious_vars; do
1472  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473  eval ac_env_${ac_var}_value=\$${ac_var}
1474  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476done
1477
1478#
1479# Report the --help message.
1480#
1481if test "$ac_init_help" = "long"; then
1482  # Omit some internal or obsolete options to make the list less imposing.
1483  # This message is too long to be a string in the A/UX 3.1 sh.
1484  cat <<_ACEOF
1485\`configure' configures this package to adapt to many kinds of systems.
1486
1487Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492Defaults for the options are specified in brackets.
1493
1494Configuration:
1495  -h, --help              display this help and exit
1496      --help=short        display options specific to this package
1497      --help=recursive    display the short help of all the included packages
1498  -V, --version           display version information and exit
1499  -q, --quiet, --silent   do not print \`checking ...' messages
1500      --cache-file=FILE   cache test results in FILE [disabled]
1501  -C, --config-cache      alias for \`--cache-file=config.cache'
1502  -n, --no-create         do not create output files
1503      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505Installation directories:
1506  --prefix=PREFIX         install architecture-independent files in PREFIX
1507                          [$ac_default_prefix]
1508  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                          [PREFIX]
1510
1511By default, \`make install' will install all the files in
1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514for instance \`--prefix=\$HOME'.
1515
1516For better control, use the options below.
1517
1518Fine tuning of the installation directories:
1519  --bindir=DIR            user executables [EPREFIX/bin]
1520  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521  --libexecdir=DIR        program executables [EPREFIX/libexec]
1522  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525  --libdir=DIR            object code libraries [EPREFIX/lib]
1526  --includedir=DIR        C header files [PREFIX/include]
1527  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530  --infodir=DIR           info documentation [DATAROOTDIR/info]
1531  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532  --mandir=DIR            man documentation [DATAROOTDIR/man]
1533  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1534  --htmldir=DIR           html documentation [DOCDIR]
1535  --dvidir=DIR            dvi documentation [DOCDIR]
1536  --pdfdir=DIR            pdf documentation [DOCDIR]
1537  --psdir=DIR             ps documentation [DOCDIR]
1538_ACEOF
1539
1540  cat <<\_ACEOF
1541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
1545
1546  cat <<\_ACEOF
1547
1548Optional Features:
1549  --disable-option-checking  ignore unrecognized --enable/--with options
1550  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1551  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1552  --enable-erq=(no/erq/xerq)  default=enabled(erq)
1553        Enables and or selects ERQ demon
1554  --enable-access-control  default=enabled
1555        Enable access control
1556  --enable-access-log  default=disabled
1557        Log all connection attempts
1558  --enable-compat-mode  default=disabled
1559        Enable compat mode
1560  --enable-strict-euids  default=disabled
1561        Enforce euids for loading objects
1562  --enable-filename-spaces  default=disabled
1563        Allow space characters in filenames
1564  --enable-share-variables  default=disabled
1565        Enable clone initialization from blueprint variable values
1566  --enable-use-ipv6  default=disabled
1567        Enables support for IPv6
1568  --enable-use-alists  default=disabled
1569        Enables alist support
1570  --enable-use-mccp  default=disabled
1571        Enables MCCP support
1572  --enable-use-mysql  default=disabled
1573        Enables mySQL support
1574  --enable-use-pgsql  default=disabled
1575        Enables PostgreSQL support
1576  --enable-use-sqlite  default=disabled
1577        Enables SQLite support
1578  --enable-use-pcre  default=enabled
1579        Enables PCRE: no/yes/builtin/no-builtin
1580  --enable-use-xml  default=disabled
1581        Enables XML support: no/xml2/iksemel/yes
1582  --enable-use-deprecated  default=enabled
1583        Enables obsolete and deprecated efuns
1584  --enable-use-structs  default=enabled
1585        Enables structs
1586  --enable-use-tls  default=disabled
1587        Enables Transport Layer Security over Telnet: no/gnu/ssl/yes
1588  --enable-use-gcrypt  default=enabled
1589        Enables support for libgcrypt
1590  --enable-use-new-inlines  default=enabled
1591        Enables new inline syntax
1592  --enable-use-set-light  default=enabled
1593        Enables efun set_light()
1594  --enable-use-set-is-wizard  default=enabled
1595        Enables efun set_is_wizard()
1596  --enable-use-parse-command  default=enabled
1597        Enables efun parse_command()
1598  --enable-use-process-string  default=enabled
1599        Enables efun process_string()
1600  --enable-lpc-array-calls  default=enabled
1601        Enables call_others on arrays of objects
1602  --enable-comm-stat  default=enabled
1603        Enable statistics for outgoing packets
1604  --enable-apply-cache_stat  default=enabled
1605        Enable statistics for apply cache
1606  --enable-malloc-sbrk  default=enabled
1607        Use sbrk() if possible (smalloc,slaballoc)
1608  --enable-malloc-check  default=enabled
1609        Enable simple malloc checks (smalloc,slaballoc)
1610  --enable-malloc-trace  default=disabled
1611        Annotate allocations with source file:line
1612  --enable-malloc-lpc-trace  default=disabled
1613        Annotate allocations with LPC object info
1614  --enable-malloc-sbrk-trace  default=disabled
1615        Log all esbrk() calls (smalloc,slaballoc)
1616  --enable-dynamic-costs  default=disabled
1617        Assign eval costs dynamically
1618  --enable-eval-cost-trace  default=disabled
1619        Writes the evaluation costs in the stracktrace
1620  --enable-trace-code  default=enabled
1621        trace the most recently executed bytecode
1622  --enable-rxcache_table  default=enabled
1623        Cache compiled regular expressions
1624  --enable-synchronous-heart-beat  default=enabled
1625        Do all heart beats at once.
1626  --enable-opcprof  default=disabled
1627        create VM instruction usage statistics
1628  --enable-verbose-opcprof  default=disabled
1629        with opcprof: include instruction names
1630  --enable-debug  default=enabled
1631        enable sanity checks
1632  --enable-yydebug  default=disabled
1633        enable LPC compiler debug output
1634  --enable-no-inlines  default=disabled
1635        disable inlining
1636  --enable-debug-telnet  default=disabled
1637        enable telnet machine diagnostics
1638  --enable-debug-malloc-allocs  default=disabled
1639        enable small block diagnostics
1640  --enable-check-object-stat  default=disabled
1641        trace changes to the object statistics
1642  --enable-check-mapping-total  default=disabled
1643        check the mapping statistic
1644  --enable-check-object-ref  default=disabled
1645        check object references
1646  --enable-check-object-gc-ref  default=enabled
1647        check object references in GC
1648  --enable-dump-gc-refs  default=disabled
1649        trace GC references
1650
1651Optional Packages:
1652  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1653  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1654  --with-xml-path=VALUE
1655        Optional location of the XML include/ and lib/ directory
1656  --with-tls-path=VALUE
1657        Optional location of the TLS include/ and lib/ directory
1658  --with-tls-keyfile=VALUE  default=key.pem
1659        Default x509 keyfile
1660  --with-tls-certfile=VALUE  default=cert.pem
1661        Default x509 certificate file
1662  --with-tls-trustfile=VALUE  default=no
1663        Default filename holding trusted PEM certificates
1664  --with-tls-trustdirectory=VALUE  default=no
1665        Default directory holding trusted PEM certificates
1666  --with-tls-crlfile=VALUE  default=no
1667        Default filename holding certificate revocation lists
1668  --with-tls-crldirectory=VALUE  default=no
1669        Default directory holding certificate revocation lists
1670  --with-optimize=VALUE  default=med
1671        Optimization level: no/low/med/high
1672  --with-access-file=VALUE  default=ACCESS.ALLOW
1673        access permissions file
1674  --with-access-log=VALUE  default=access.allow.log
1675        access log file
1676  --with-write-buffer-max-size=VALUE  default=100000
1677        max size of write buffer per interactive
1678  --with-erq-max-reply=VALUE  default=1024
1679        max size of replies from ERQ
1680  --with-erq-max-send=VALUE  default=1024
1681        max size of commands sent to ERQ, xerq only
1682  --with-erq-debug=VALUE  default=0
1683        ERQ debug level
1684  --with-read-file-max-size=BYTES  default=50000
1685        maximum size of a file allowed to be read by 'read_file()'
1686  --with-master-name=VALUE  default=secure/master
1687        name of the master object
1688  --with-input-escape=VALUE  default="!"
1689        input escape character
1690  --with-time-to-clean_up=SECONDS  default=3600
1691        time before cleaning up unused objects
1692  --with-time-to-swap=SECONDS  default=900
1693        time before swapping out unused objects
1694  --with-time-to-swap-variables=SECONDS  default=1800
1695        time before swapping out variables
1696  --with-time-to-reset=SECONDS  default=1800
1697        time between resetting objects
1698  --with-alarm-time=SECONDS  default=2
1699        timer granularity
1700  --with-heart-beat-interval=SECONDS  default=2
1701        time between heartbeats
1702  --with-evaluator-stack-size=VALUE  default=2000
1703        virtual machine stack size
1704  --with-max-user-trace=VALUE  default=60
1705        maximum user function call depth
1706  --with-max-trace=VALUE  default=65
1707        maximum function call depth during error handling
1708  --with-compiler-stack-size=VALUE  default=400
1709        depth of parser stack
1710  --with-max-bits=VALUE  default=6144
1711        maximum number of bits in a bit string
1712  --with-portno=VALUE  default=4242
1713        tcp port to listen on
1714  --with-udp-port=VALUE  default=4246
1715        udp port to listen on
1716  --with-maxnumports=VALUE  default=20
1717        maximum number of tcp ports to listen on
1718  --with-max-cost=VALUE  default=1000000
1719        maximum eval cost for a single evaluation
1720  --with-catch-reserved-cost=VALUE  default=2000
1721        eval cost reserved for catch()
1722  --with-master-reserved-cost=VALUE  default=512
1723        eval cost reserved for master
1724  --with-swap-file=VALUE  default=LP_SWAP
1725        name of the swap file
1726  --with-max-array-size=VALUE  default=5000
1727        max number of array elements
1728  --with-max-mapping-keys=VALUE  default=5000
1729        max number of mapping entries
1730  --with-max-mapping-size=VALUE  default=15000
1731        max number of mapping elements
1732  --with-max-callouts=VALUE  default=0
1733        max number of callouts; 0=unlimited
1734  --with-max-players=VALUE  default=50
1735        maximum number of simultaneous players
1736  --with-max-local=VALUE  default=50
1737        maximum number of local variables per function
1738  --with-allowed-ed-cmds=VALUE  default=20
1739        number of ed commands per backend cycle
1740  --with-max-command-length=VALUE  default=1000
1741        maximum length of a command
1742  --with-reserved-user-size=VALUE  default=700000
1743        memory reserved for user usage
1744  --with-reserved-master-size=VALUE  default=100000
1745        memory reserved for master usage
1746  --with-reserved-system-size=VALUE  default=200000
1747        memory reserved for internal usage
1748  --with-htable-size=VALUE  default=4096
1749        shared string hash table size
1750  --with-itable-size=VALUE  default=256
1751        identifier hash table size
1752  --with-otable-size=VALUE  default=1024
1753        object hash table size
1754  --with-defmax=VALUE  default=65000
1755        maximum expanded size of preprocessor macro
1756  --with-apply-cache-bits=VALUE  default=12
1757        2^N = size of apply cache
1758  --with-rxcache-table=VALUE  default=8192
1759        cache size for compiled regular expressions
1760  --with-max-byte-transfer=VALUE  default=50000
1761        maximum write/read size for read/write_bytes
1762  --with-set-buffer-size-max=VALUE  default=65536
1763        maximum size of socket send buffer
1764  --with-malloc=default/smalloc/slaballoc/sysmalloc/ptmalloc  default=default
1765        memory manager to use
1766  --with-min-malloced=VALUE  default=0
1767        amount of memory to allocate on startup
1768  --with-min-small-malloced=VALUE  default=0
1769        amount of memory to allocate for small blocks on startup
1770  --with-hard-malloc-limit=VALUE  default=0x4000000
1771        maximum amount of memory to allocate; 0=unlimited
1772  --with-soft-malloc-limit=VALUE  default=0
1773        soft limit for the amount of memory to allocate; 0=unlimited
1774  --with-total-trace-length=VALUE  default=4096
1775        number of operations stored in bytecode trace
1776  --with-pcre-recursion-limit=VALUE  default=3000
1777        maximum number of recursions in PCRE package
1778  --with-wizlist-file=VALUE  default=WIZLIST
1779        name of the wizlist file
1780  --with-max_net_connects=VALUE  default=10
1781        maximum number of concurrent connection attempts
1782  --with-random-period-length=607 / 1279 / 2281 / 4253 / 11213 / 19937 / 44497 / 86243 / 132049 / 216091  default=19937
1783        period length of the random number generator
1784  --with-setting=SETTING  include a predefined setting
1785
1786Some influential environment variables:
1787  CC          C compiler command
1788  CFLAGS      C compiler flags
1789  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1790              nonstandard directory <lib dir>
1791  LIBS        libraries to pass to the linker, e.g. -l<library>
1792  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1793              you have headers in a nonstandard directory <include dir>
1794  CPP         C preprocessor
1795  PKG_CONFIG  path to pkg-config utility
1796  PKG_CONFIG_PATH
1797              directories to add to pkg-config's search path
1798  PKG_CONFIG_LIBDIR
1799              path overriding pkg-config's built-in search path
1800  SQLITE3_CFLAGS
1801              C compiler flags for SQLITE3, overriding pkg-config
1802  SQLITE3_LIBS
1803              linker flags for SQLITE3, overriding pkg-config
1804  XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1805  XML2_LIBS   linker flags for XML2, overriding pkg-config
1806  IKSEMEL_CFLAGS
1807              C compiler flags for IKSEMEL, overriding pkg-config
1808  IKSEMEL_LIBS
1809              linker flags for IKSEMEL, overriding pkg-config
1810
1811Use these variables to override the choices made by `configure' or to help
1812it to find libraries and programs with nonstandard names/locations.
1813
1814Report bugs to the package provider.
1815_ACEOF
1816ac_status=$?
1817fi
1818
1819if test "$ac_init_help" = "recursive"; then
1820  # If there are subdirs, report their specific --help.
1821  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1822    test -d "$ac_dir" ||
1823      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1824      continue
1825    ac_builddir=.
1826
1827case "$ac_dir" in
1828.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829*)
1830  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1831  # A ".." for each directory in $ac_dir_suffix.
1832  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1833  case $ac_top_builddir_sub in
1834  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1835  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1836  esac ;;
1837esac
1838ac_abs_top_builddir=$ac_pwd
1839ac_abs_builddir=$ac_pwd$ac_dir_suffix
1840# for backward compatibility:
1841ac_top_builddir=$ac_top_build_prefix
1842
1843case $srcdir in
1844  .)  # We are building in place.
1845    ac_srcdir=.
1846    ac_top_srcdir=$ac_top_builddir_sub
1847    ac_abs_top_srcdir=$ac_pwd ;;
1848  [\\/]* | ?:[\\/]* )  # Absolute name.
1849    ac_srcdir=$srcdir$ac_dir_suffix;
1850    ac_top_srcdir=$srcdir
1851    ac_abs_top_srcdir=$srcdir ;;
1852  *) # Relative name.
1853    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1854    ac_top_srcdir=$ac_top_build_prefix$srcdir
1855    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1856esac
1857ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1858
1859    cd "$ac_dir" || { ac_status=$?; continue; }
1860    # Check for guested configure.
1861    if test -f "$ac_srcdir/configure.gnu"; then
1862      echo &&
1863      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1864    elif test -f "$ac_srcdir/configure"; then
1865      echo &&
1866      $SHELL "$ac_srcdir/configure" --help=recursive
1867    else
1868      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1869    fi || ac_status=$?
1870    cd "$ac_pwd" || { ac_status=$?; break; }
1871  done
1872fi
1873
1874test -n "$ac_init_help" && exit $ac_status
1875if $ac_init_version; then
1876  cat <<\_ACEOF
1877configure
1878generated by GNU Autoconf 2.68
1879
1880Copyright (C) 2010 Free Software Foundation, Inc.
1881This configure script is free software; the Free Software Foundation
1882gives unlimited permission to copy, distribute and modify it.
1883_ACEOF
1884  exit
1885fi
1886
1887## ------------------------ ##
1888## Autoconf initialization. ##
1889## ------------------------ ##
1890
1891# ac_fn_c_try_compile LINENO
1892# --------------------------
1893# Try to compile conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_compile ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  rm -f conftest.$ac_objext
1898  if { { ac_try="$ac_compile"
1899case "(($ac_try" in
1900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901  *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905  (eval "$ac_compile") 2>conftest.err
1906  ac_status=$?
1907  if test -s conftest.err; then
1908    grep -v '^ *+' conftest.err >conftest.er1
1909    cat conftest.er1 >&5
1910    mv -f conftest.er1 conftest.err
1911  fi
1912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913  test $ac_status = 0; } && {
1914	 test -z "$ac_c_werror_flag" ||
1915	 test ! -s conftest.err
1916       } && test -s conftest.$ac_objext; then :
1917  ac_retval=0
1918else
1919  $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922	ac_retval=1
1923fi
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925  as_fn_set_status $ac_retval
1926
1927} # ac_fn_c_try_compile
1928
1929# ac_fn_c_try_cpp LINENO
1930# ----------------------
1931# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932ac_fn_c_try_cpp ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  if { { ac_try="$ac_cpp conftest.$ac_ext"
1936case "(($ac_try" in
1937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938  *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1943  ac_status=$?
1944  if test -s conftest.err; then
1945    grep -v '^ *+' conftest.err >conftest.er1
1946    cat conftest.er1 >&5
1947    mv -f conftest.er1 conftest.err
1948  fi
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; } > conftest.i && {
1951	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1952	 test ! -s conftest.err
1953       }; then :
1954  ac_retval=0
1955else
1956  $as_echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959    ac_retval=1
1960fi
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962  as_fn_set_status $ac_retval
1963
1964} # ac_fn_c_try_cpp
1965
1966# ac_fn_c_try_run LINENO
1967# ----------------------
1968# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969# that executables *can* be run.
1970ac_fn_c_try_run ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  if { { ac_try="$ac_link"
1974case "(($ac_try" in
1975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976  *) ac_try_echo=$ac_try;;
1977esac
1978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979$as_echo "$ac_try_echo"; } >&5
1980  (eval "$ac_link") 2>&5
1981  ac_status=$?
1982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984  { { case "(($ac_try" in
1985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986  *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990  (eval "$ac_try") 2>&5
1991  ac_status=$?
1992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993  test $ac_status = 0; }; }; then :
1994  ac_retval=0
1995else
1996  $as_echo "$as_me: program exited with status $ac_status" >&5
1997       $as_echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
2000       ac_retval=$ac_status
2001fi
2002  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004  as_fn_set_status $ac_retval
2005
2006} # ac_fn_c_try_run
2007
2008# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009# -------------------------------------------------------
2010# Tests whether HEADER exists and can be compiled using the include files in
2011# INCLUDES, setting the cache variable VAR accordingly.
2012ac_fn_c_check_header_compile ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if eval \${$3+:} false; then :
2018  $as_echo_n "(cached) " >&6
2019else
2020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023#include <$2>
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026  eval "$3=yes"
2027else
2028  eval "$3=no"
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032eval ac_res=\$$3
2033	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036
2037} # ac_fn_c_check_header_compile
2038
2039# ac_fn_c_find_intX_t LINENO BITS VAR
2040# -----------------------------------
2041# Finds a signed integer type with width BITS, setting cache variable VAR
2042# accordingly.
2043ac_fn_c_find_intX_t ()
2044{
2045  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2047$as_echo_n "checking for int$2_t... " >&6; }
2048if eval \${$3+:} false; then :
2049  $as_echo_n "(cached) " >&6
2050else
2051  eval "$3=no"
2052     # Order is important - never check a type that is potentially smaller
2053     # than half of the expected target width.
2054     for ac_type in int$2_t 'int' 'long int' \
2055	 'long long int' 'short int' 'signed char'; do
2056       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h.  */
2058$ac_includes_default
2059	     enum { N = $2 / 2 - 1 };
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2064test_array [0] = 0
2065
2066  ;
2067  return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$ac_includes_default
2074	        enum { N = $2 / 2 - 1 };
2075int
2076main ()
2077{
2078static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2079		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2080test_array [0] = 0
2081
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087
2088else
2089  case $ac_type in #(
2090  int$2_t) :
2091    eval "$3=yes" ;; #(
2092  *) :
2093    eval "$3=\$ac_type" ;;
2094esac
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099       if eval test \"x\$"$3"\" = x"no"; then :
2100
2101else
2102  break
2103fi
2104     done
2105fi
2106eval ac_res=\$$3
2107	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110
2111} # ac_fn_c_find_intX_t
2112
2113# ac_fn_c_try_link LINENO
2114# -----------------------
2115# Try to link conftest.$ac_ext, and return whether this succeeded.
2116ac_fn_c_try_link ()
2117{
2118  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119  rm -f conftest.$ac_objext conftest$ac_exeext
2120  if { { ac_try="$ac_link"
2121case "(($ac_try" in
2122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123  *) ac_try_echo=$ac_try;;
2124esac
2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126$as_echo "$ac_try_echo"; } >&5
2127  (eval "$ac_link") 2>conftest.err
2128  ac_status=$?
2129  if test -s conftest.err; then
2130    grep -v '^ *+' conftest.err >conftest.er1
2131    cat conftest.er1 >&5
2132    mv -f conftest.er1 conftest.err
2133  fi
2134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135  test $ac_status = 0; } && {
2136	 test -z "$ac_c_werror_flag" ||
2137	 test ! -s conftest.err
2138       } && test -s conftest$ac_exeext && {
2139	 test "$cross_compiling" = yes ||
2140	 $as_test_x conftest$ac_exeext
2141       }; then :
2142  ac_retval=0
2143else
2144  $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147	ac_retval=1
2148fi
2149  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2150  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2151  # interfere with the next link command; also delete a directory that is
2152  # left behind by Apple's compiler.  We do this before executing the actions.
2153  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2154  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155  as_fn_set_status $ac_retval
2156
2157} # ac_fn_c_try_link
2158
2159# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2160# -------------------------------------------
2161# Tests whether TYPE exists after having included INCLUDES, setting cache
2162# variable VAR accordingly.
2163ac_fn_c_check_type ()
2164{
2165  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167$as_echo_n "checking for $2... " >&6; }
2168if eval \${$3+:} false; then :
2169  $as_echo_n "(cached) " >&6
2170else
2171  eval "$3=no"
2172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h.  */
2174$4
2175int
2176main ()
2177{
2178if (sizeof ($2))
2179	 return 0;
2180  ;
2181  return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h.  */
2187$4
2188int
2189main ()
2190{
2191if (sizeof (($2)))
2192	    return 0;
2193  ;
2194  return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198
2199else
2200  eval "$3=yes"
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206eval ac_res=\$$3
2207	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208$as_echo "$ac_res" >&6; }
2209  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211} # ac_fn_c_check_type
2212
2213# ac_fn_c_find_uintX_t LINENO BITS VAR
2214# ------------------------------------
2215# Finds an unsigned integer type with width BITS, setting cache variable VAR
2216# accordingly.
2217ac_fn_c_find_uintX_t ()
2218{
2219  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2221$as_echo_n "checking for uint$2_t... " >&6; }
2222if eval \${$3+:} false; then :
2223  $as_echo_n "(cached) " >&6
2224else
2225  eval "$3=no"
2226     # Order is important - never check a type that is potentially smaller
2227     # than half of the expected target width.
2228     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2229	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2230       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h.  */
2232$ac_includes_default
2233int
2234main ()
2235{
2236static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2237test_array [0] = 0
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244  case $ac_type in #(
2245  uint$2_t) :
2246    eval "$3=yes" ;; #(
2247  *) :
2248    eval "$3=\$ac_type" ;;
2249esac
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252       if eval test \"x\$"$3"\" = x"no"; then :
2253
2254else
2255  break
2256fi
2257     done
2258fi
2259eval ac_res=\$$3
2260	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261$as_echo "$ac_res" >&6; }
2262  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263
2264} # ac_fn_c_find_uintX_t
2265
2266# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2267# --------------------------------------------
2268# Tries to find the compile-time value of EXPR in a program that includes
2269# INCLUDES, setting VAR accordingly. Returns whether the value could be
2270# computed
2271ac_fn_c_compute_int ()
2272{
2273  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274  if test "$cross_compiling" = yes; then
2275    # Depending upon the size, compute the lo and hi bounds.
2276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h.  */
2278$4
2279int
2280main ()
2281{
2282static int test_array [1 - 2 * !(($2) >= 0)];
2283test_array [0] = 0
2284
2285  ;
2286  return 0;
2287}
2288_ACEOF
2289if ac_fn_c_try_compile "$LINENO"; then :
2290  ac_lo=0 ac_mid=0
2291  while :; do
2292    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293/* end confdefs.h.  */
2294$4
2295int
2296main ()
2297{
2298static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2299test_array [0] = 0
2300
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306  ac_hi=$ac_mid; break
2307else
2308  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2309			if test $ac_lo -le $ac_mid; then
2310			  ac_lo= ac_hi=
2311			  break
2312			fi
2313			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316  done
2317else
2318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319/* end confdefs.h.  */
2320$4
2321int
2322main ()
2323{
2324static int test_array [1 - 2 * !(($2) < 0)];
2325test_array [0] = 0
2326
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331if ac_fn_c_try_compile "$LINENO"; then :
2332  ac_hi=-1 ac_mid=-1
2333  while :; do
2334    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335/* end confdefs.h.  */
2336$4
2337int
2338main ()
2339{
2340static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2341test_array [0] = 0
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347if ac_fn_c_try_compile "$LINENO"; then :
2348  ac_lo=$ac_mid; break
2349else
2350  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2351			if test $ac_mid -le $ac_hi; then
2352			  ac_lo= ac_hi=
2353			  break
2354			fi
2355			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358  done
2359else
2360  ac_lo= ac_hi=
2361fi
2362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363fi
2364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365# Binary search between lo and hi bounds.
2366while test "x$ac_lo" != "x$ac_hi"; do
2367  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369/* end confdefs.h.  */
2370$4
2371int
2372main ()
2373{
2374static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2375test_array [0] = 0
2376
2377  ;
2378  return 0;
2379}
2380_ACEOF
2381if ac_fn_c_try_compile "$LINENO"; then :
2382  ac_hi=$ac_mid
2383else
2384  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2385fi
2386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387done
2388case $ac_lo in #((
2389?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2390'') ac_retval=1 ;;
2391esac
2392  else
2393    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394/* end confdefs.h.  */
2395$4
2396static long int longval () { return $2; }
2397static unsigned long int ulongval () { return $2; }
2398#include <stdio.h>
2399#include <stdlib.h>
2400int
2401main ()
2402{
2403
2404  FILE *f = fopen ("conftest.val", "w");
2405  if (! f)
2406    return 1;
2407  if (($2) < 0)
2408    {
2409      long int i = longval ();
2410      if (i != ($2))
2411	return 1;
2412      fprintf (f, "%ld", i);
2413    }
2414  else
2415    {
2416      unsigned long int i = ulongval ();
2417      if (i != ($2))
2418	return 1;
2419      fprintf (f, "%lu", i);
2420    }
2421  /* Do not output a trailing newline, as this causes \r\n confusion
2422     on some platforms.  */
2423  return ferror (f) || fclose (f) != 0;
2424
2425  ;
2426  return 0;
2427}
2428_ACEOF
2429if ac_fn_c_try_run "$LINENO"; then :
2430  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2431else
2432  ac_retval=1
2433fi
2434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2435  conftest.$ac_objext conftest.beam conftest.$ac_ext
2436rm -f conftest.val
2437
2438  fi
2439  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440  as_fn_set_status $ac_retval
2441
2442} # ac_fn_c_compute_int
2443
2444# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2445# -------------------------------------------------------
2446# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2447# the include files in INCLUDES and setting the cache variable VAR
2448# accordingly.
2449ac_fn_c_check_header_mongrel ()
2450{
2451  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452  if eval \${$3+:} false; then :
2453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454$as_echo_n "checking for $2... " >&6; }
2455if eval \${$3+:} false; then :
2456  $as_echo_n "(cached) " >&6
2457fi
2458eval ac_res=\$$3
2459	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460$as_echo "$ac_res" >&6; }
2461else
2462  # Is the header compilable?
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2464$as_echo_n "checking $2 usability... " >&6; }
2465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466/* end confdefs.h.  */
2467$4
2468#include <$2>
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471  ac_header_compiler=yes
2472else
2473  ac_header_compiler=no
2474fi
2475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2477$as_echo "$ac_header_compiler" >&6; }
2478
2479# Is the header present?
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2481$as_echo_n "checking $2 presence... " >&6; }
2482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483/* end confdefs.h.  */
2484#include <$2>
2485_ACEOF
2486if ac_fn_c_try_cpp "$LINENO"; then :
2487  ac_header_preproc=yes
2488else
2489  ac_header_preproc=no
2490fi
2491rm -f conftest.err conftest.i conftest.$ac_ext
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2493$as_echo "$ac_header_preproc" >&6; }
2494
2495# So?  What about this header?
2496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2497  yes:no: )
2498    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2499$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2500    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2501$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2502    ;;
2503  no:yes:* )
2504    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2505$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2506    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2507$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2508    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2509$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2510    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2511$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2512    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2513$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2514    ;;
2515esac
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2517$as_echo_n "checking for $2... " >&6; }
2518if eval \${$3+:} false; then :
2519  $as_echo_n "(cached) " >&6
2520else
2521  eval "$3=\$ac_header_compiler"
2522fi
2523eval ac_res=\$$3
2524	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525$as_echo "$ac_res" >&6; }
2526fi
2527  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528
2529} # ac_fn_c_check_header_mongrel
2530
2531# ac_fn_c_check_func LINENO FUNC VAR
2532# ----------------------------------
2533# Tests whether FUNC exists, setting the cache variable VAR accordingly
2534ac_fn_c_check_func ()
2535{
2536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538$as_echo_n "checking for $2... " >&6; }
2539if eval \${$3+:} false; then :
2540  $as_echo_n "(cached) " >&6
2541else
2542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543/* end confdefs.h.  */
2544/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2545   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2546#define $2 innocuous_$2
2547
2548/* System header to define __stub macros and hopefully few prototypes,
2549    which can conflict with char $2 (); below.
2550    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2551    <limits.h> exists even on freestanding compilers.  */
2552
2553#ifdef __STDC__
2554# include <limits.h>
2555#else
2556# include <assert.h>
2557#endif
2558
2559#undef $2
2560
2561/* Override any GCC internal prototype to avoid an error.
2562   Use char because int might match the return type of a GCC
2563   builtin and then its argument prototype would still apply.  */
2564#ifdef __cplusplus
2565extern "C"
2566#endif
2567char $2 ();
2568/* The GNU C library defines this for functions which it implements
2569    to always fail with ENOSYS.  Some functions are actually named
2570    something starting with __ and the normal name is an alias.  */
2571#if defined __stub_$2 || defined __stub___$2
2572choke me
2573#endif
2574
2575int
2576main ()
2577{
2578return $2 ();
2579  ;
2580  return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_link "$LINENO"; then :
2584  eval "$3=yes"
2585else
2586  eval "$3=no"
2587fi
2588rm -f core conftest.err conftest.$ac_objext \
2589    conftest$ac_exeext conftest.$ac_ext
2590fi
2591eval ac_res=\$$3
2592	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593$as_echo "$ac_res" >&6; }
2594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595
2596} # ac_fn_c_check_func
2597cat >config.log <<_ACEOF
2598This file contains any messages produced by compilers while
2599running configure, to aid debugging if configure makes a mistake.
2600
2601It was created by $as_me, which was
2602generated by GNU Autoconf 2.68.  Invocation command line was
2603
2604  $ $0 $@
2605
2606_ACEOF
2607exec 5>>config.log
2608{
2609cat <<_ASUNAME
2610## --------- ##
2611## Platform. ##
2612## --------- ##
2613
2614hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2615uname -m = `(uname -m) 2>/dev/null || echo unknown`
2616uname -r = `(uname -r) 2>/dev/null || echo unknown`
2617uname -s = `(uname -s) 2>/dev/null || echo unknown`
2618uname -v = `(uname -v) 2>/dev/null || echo unknown`
2619
2620/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2621/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2622
2623/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2624/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2625/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2626/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2627/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2628/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2629/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2630
2631_ASUNAME
2632
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    $as_echo "PATH: $as_dir"
2639  done
2640IFS=$as_save_IFS
2641
2642} >&5
2643
2644cat >&5 <<_ACEOF
2645
2646
2647## ----------- ##
2648## Core tests. ##
2649## ----------- ##
2650
2651_ACEOF
2652
2653
2654# Keep a trace of the command line.
2655# Strip out --no-create and --no-recursion so they do not pile up.
2656# Strip out --silent because we don't want to record it for future runs.
2657# Also quote any args containing shell meta-characters.
2658# Make two passes to allow for proper duplicate-argument suppression.
2659ac_configure_args=
2660ac_configure_args0=
2661ac_configure_args1=
2662ac_must_keep_next=false
2663for ac_pass in 1 2
2664do
2665  for ac_arg
2666  do
2667    case $ac_arg in
2668    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2669    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2670    | -silent | --silent | --silen | --sile | --sil)
2671      continue ;;
2672    *\'*)
2673      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2674    esac
2675    case $ac_pass in
2676    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2677    2)
2678      as_fn_append ac_configure_args1 " '$ac_arg'"
2679      if test $ac_must_keep_next = true; then
2680	ac_must_keep_next=false # Got value, back to normal.
2681      else
2682	case $ac_arg in
2683	  *=* | --config-cache | -C | -disable-* | --disable-* \
2684	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2685	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2686	  | -with-* | --with-* | -without-* | --without-* | --x)
2687	    case "$ac_configure_args0 " in
2688	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2689	    esac
2690	    ;;
2691	  -* ) ac_must_keep_next=true ;;
2692	esac
2693      fi
2694      as_fn_append ac_configure_args " '$ac_arg'"
2695      ;;
2696    esac
2697  done
2698done
2699{ ac_configure_args0=; unset ac_configure_args0;}
2700{ ac_configure_args1=; unset ac_configure_args1;}
2701
2702# When interrupted or exit'd, cleanup temporary files, and complete
2703# config.log.  We remove comments because anyway the quotes in there
2704# would cause problems or look ugly.
2705# WARNING: Use '\'' to represent an apostrophe within the trap.
2706# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2707trap 'exit_status=$?
2708  # Save into config.log some information that might help in debugging.
2709  {
2710    echo
2711
2712    $as_echo "## ---------------- ##
2713## Cache variables. ##
2714## ---------------- ##"
2715    echo
2716    # The following way of writing the cache mishandles newlines in values,
2717(
2718  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2719    eval ac_val=\$$ac_var
2720    case $ac_val in #(
2721    *${as_nl}*)
2722      case $ac_var in #(
2723      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2724$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2725      esac
2726      case $ac_var in #(
2727      _ | IFS | as_nl) ;; #(
2728      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2729      *) { eval $ac_var=; unset $ac_var;} ;;
2730      esac ;;
2731    esac
2732  done
2733  (set) 2>&1 |
2734    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2735    *${as_nl}ac_space=\ *)
2736      sed -n \
2737	"s/'\''/'\''\\\\'\'''\''/g;
2738	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2739      ;; #(
2740    *)
2741      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2742      ;;
2743    esac |
2744    sort
2745)
2746    echo
2747
2748    $as_echo "## ----------------- ##
2749## Output variables. ##
2750## ----------------- ##"
2751    echo
2752    for ac_var in $ac_subst_vars
2753    do
2754      eval ac_val=\$$ac_var
2755      case $ac_val in
2756      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2757      esac
2758      $as_echo "$ac_var='\''$ac_val'\''"
2759    done | sort
2760    echo
2761
2762    if test -n "$ac_subst_files"; then
2763      $as_echo "## ------------------- ##
2764## File substitutions. ##
2765## ------------------- ##"
2766      echo
2767      for ac_var in $ac_subst_files
2768      do
2769	eval ac_val=\$$ac_var
2770	case $ac_val in
2771	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2772	esac
2773	$as_echo "$ac_var='\''$ac_val'\''"
2774      done | sort
2775      echo
2776    fi
2777
2778    if test -s confdefs.h; then
2779      $as_echo "## ----------- ##
2780## confdefs.h. ##
2781## ----------- ##"
2782      echo
2783      cat confdefs.h
2784      echo
2785    fi
2786    test "$ac_signal" != 0 &&
2787      $as_echo "$as_me: caught signal $ac_signal"
2788    $as_echo "$as_me: exit $exit_status"
2789  } >&5
2790  rm -f core *.core core.conftest.* &&
2791    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2792    exit $exit_status
2793' 0
2794for ac_signal in 1 2 13 15; do
2795  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2796done
2797ac_signal=0
2798
2799# confdefs.h avoids OS command line length limits that DEFS can exceed.
2800rm -f -r conftest* confdefs.h
2801
2802$as_echo "/* confdefs.h */" > confdefs.h
2803
2804# Predefined preprocessor variables.
2805
2806cat >>confdefs.h <<_ACEOF
2807#define PACKAGE_NAME "$PACKAGE_NAME"
2808_ACEOF
2809
2810cat >>confdefs.h <<_ACEOF
2811#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2812_ACEOF
2813
2814cat >>confdefs.h <<_ACEOF
2815#define PACKAGE_VERSION "$PACKAGE_VERSION"
2816_ACEOF
2817
2818cat >>confdefs.h <<_ACEOF
2819#define PACKAGE_STRING "$PACKAGE_STRING"
2820_ACEOF
2821
2822cat >>confdefs.h <<_ACEOF
2823#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2824_ACEOF
2825
2826cat >>confdefs.h <<_ACEOF
2827#define PACKAGE_URL "$PACKAGE_URL"
2828_ACEOF
2829
2830
2831# Let the site file select an alternate cache file if it wants to.
2832# Prefer an explicitly selected file to automatically selected ones.
2833ac_site_file1=NONE
2834ac_site_file2=NONE
2835if test -n "$CONFIG_SITE"; then
2836  # We do not want a PATH search for config.site.
2837  case $CONFIG_SITE in #((
2838    -*)  ac_site_file1=./$CONFIG_SITE;;
2839    */*) ac_site_file1=$CONFIG_SITE;;
2840    *)   ac_site_file1=./$CONFIG_SITE;;
2841  esac
2842elif test "x$prefix" != xNONE; then
2843  ac_site_file1=$prefix/share/config.site
2844  ac_site_file2=$prefix/etc/config.site
2845else
2846  ac_site_file1=$ac_default_prefix/share/config.site
2847  ac_site_file2=$ac_default_prefix/etc/config.site
2848fi
2849for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2850do
2851  test "x$ac_site_file" = xNONE && continue
2852  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2853    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2854$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2855    sed 's/^/| /' "$ac_site_file" >&5
2856    . "$ac_site_file" \
2857      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859as_fn_error $? "failed to load site script $ac_site_file
2860See \`config.log' for more details" "$LINENO" 5; }
2861  fi
2862done
2863
2864if test -r "$cache_file"; then
2865  # Some versions of bash will fail to source /dev/null (special files
2866  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2867  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2868    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2869$as_echo "$as_me: loading cache $cache_file" >&6;}
2870    case $cache_file in
2871      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2872      *)                      . "./$cache_file";;
2873    esac
2874  fi
2875else
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2877$as_echo "$as_me: creating cache $cache_file" >&6;}
2878  >$cache_file
2879fi
2880
2881as_fn_append ac_header_list " sys/time.h"
2882as_fn_append ac_header_list " unistd.h"
2883as_fn_append ac_func_list " alarm"
2884# Check that the precious variables saved in the cache have kept the same
2885# value.
2886ac_cache_corrupted=false
2887for ac_var in $ac_precious_vars; do
2888  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2889  eval ac_new_set=\$ac_env_${ac_var}_set
2890  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2891  eval ac_new_val=\$ac_env_${ac_var}_value
2892  case $ac_old_set,$ac_new_set in
2893    set,)
2894      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2895$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2896      ac_cache_corrupted=: ;;
2897    ,set)
2898      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2899$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2900      ac_cache_corrupted=: ;;
2901    ,);;
2902    *)
2903      if test "x$ac_old_val" != "x$ac_new_val"; then
2904	# differences in whitespace do not lead to failure.
2905	ac_old_val_w=`echo x $ac_old_val`
2906	ac_new_val_w=`echo x $ac_new_val`
2907	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2908	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2909$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2910	  ac_cache_corrupted=:
2911	else
2912	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2913$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2914	  eval $ac_var=\$ac_old_val
2915	fi
2916	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2917$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2918	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2919$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2920      fi;;
2921  esac
2922  # Pass precious variables to config.status.
2923  if test "$ac_new_set" = set; then
2924    case $ac_new_val in
2925    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2926    *) ac_arg=$ac_var=$ac_new_val ;;
2927    esac
2928    case " $ac_configure_args " in
2929      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2930      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2931    esac
2932  fi
2933done
2934if $ac_cache_corrupted; then
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2938$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2939  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2940fi
2941## -------------------- ##
2942## Main body of script. ##
2943## -------------------- ##
2944
2945ac_ext=c
2946ac_cpp='$CPP $CPPFLAGS'
2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950
2951
2952
2953
2954
2955
2956not_available=""
2957
2958
2959DEFAULTenable_erq=erq
2960# Check whether --enable-erq was given.
2961if test "${enable_erq+set}" = set; then :
2962  enableval=$enable_erq;
2963fi
2964
2965
2966DEFAULTenable_access_control=yes
2967# Check whether --enable-access-control was given.
2968if test "${enable_access_control+set}" = set; then :
2969  enableval=$enable_access_control;
2970fi
2971
2972
2973DEFAULTenable_access_log=no
2974# Check whether --enable-access-log was given.
2975if test "${enable_access_log+set}" = set; then :
2976  enableval=$enable_access_log;
2977fi
2978
2979
2980DEFAULTenable_compat_mode=no
2981# Check whether --enable-compat-mode was given.
2982if test "${enable_compat_mode+set}" = set; then :
2983  enableval=$enable_compat_mode;
2984fi
2985
2986
2987DEFAULTenable_strict_euids=no
2988# Check whether --enable-strict-euids was given.
2989if test "${enable_strict_euids+set}" = set; then :
2990  enableval=$enable_strict_euids;
2991fi
2992
2993
2994DEFAULTenable_filename_spaces=no
2995# Check whether --enable-filename-spaces was given.
2996if test "${enable_filename_spaces+set}" = set; then :
2997  enableval=$enable_filename_spaces;
2998fi
2999
3000
3001DEFAULTenable_share_variables=no
3002# Check whether --enable-share-variables was given.
3003if test "${enable_share_variables+set}" = set; then :
3004  enableval=$enable_share_variables;
3005fi
3006
3007
3008DEFAULTenable_use_ipv6=no
3009# Check whether --enable-use-ipv6 was given.
3010if test "${enable_use_ipv6+set}" = set; then :
3011  enableval=$enable_use_ipv6;
3012fi
3013
3014
3015DEFAULTenable_use_alists=no
3016# Check whether --enable-use-alists was given.
3017if test "${enable_use_alists+set}" = set; then :
3018  enableval=$enable_use_alists;
3019fi
3020
3021
3022DEFAULTenable_use_mccp=no
3023# Check whether --enable-use-mccp was given.
3024if test "${enable_use_mccp+set}" = set; then :
3025  enableval=$enable_use_mccp;
3026fi
3027
3028
3029DEFAULTenable_use_mysql=no
3030# Check whether --enable-use-mysql was given.
3031if test "${enable_use_mysql+set}" = set; then :
3032  enableval=$enable_use_mysql;
3033fi
3034
3035
3036DEFAULTenable_use_pgsql=no
3037# Check whether --enable-use-pgsql was given.
3038if test "${enable_use_pgsql+set}" = set; then :
3039  enableval=$enable_use_pgsql;
3040fi
3041
3042
3043DEFAULTenable_use_sqlite=no
3044# Check whether --enable-use-sqlite was given.
3045if test "${enable_use_sqlite+set}" = set; then :
3046  enableval=$enable_use_sqlite;
3047fi
3048
3049
3050DEFAULTenable_use_pcre=yes
3051# Check whether --enable-use-pcre was given.
3052if test "${enable_use_pcre+set}" = set; then :
3053  enableval=$enable_use_pcre;
3054fi
3055
3056
3057DEFAULTenable_use_xml=no
3058# Check whether --enable-use-xml was given.
3059if test "${enable_use_xml+set}" = set; then :
3060  enableval=$enable_use_xml;
3061fi
3062
3063
3064DEFAULTwith_xml_path=
3065
3066# Check whether --with-xml-path was given.
3067if test "${with_xml_path+set}" = set; then :
3068  withval=$with_xml_path;
3069fi
3070
3071
3072DEFAULTenable_use_deprecated=yes
3073# Check whether --enable-use-deprecated was given.
3074if test "${enable_use_deprecated+set}" = set; then :
3075  enableval=$enable_use_deprecated;
3076fi
3077
3078
3079DEFAULTenable_use_structs=yes
3080# Check whether --enable-use-structs was given.
3081if test "${enable_use_structs+set}" = set; then :
3082  enableval=$enable_use_structs;
3083fi
3084
3085
3086DEFAULTenable_use_tls=no
3087# Check whether --enable-use-tls was given.
3088if test "${enable_use_tls+set}" = set; then :
3089  enableval=$enable_use_tls;
3090fi
3091
3092
3093DEFAULTwith_tls_path=
3094
3095# Check whether --with-tls-path was given.
3096if test "${with_tls_path+set}" = set; then :
3097  withval=$with_tls_path;
3098fi
3099
3100
3101DEFAULTwith_tls_keyfile=key.pem
3102
3103# Check whether --with-tls-keyfile was given.
3104if test "${with_tls_keyfile+set}" = set; then :
3105  withval=$with_tls_keyfile;
3106fi
3107
3108
3109DEFAULTwith_tls_certfile=cert.pem
3110
3111# Check whether --with-tls-certfile was given.
3112if test "${with_tls_certfile+set}" = set; then :
3113  withval=$with_tls_certfile;
3114fi
3115
3116
3117DEFAULTwith_tls_trustfile=no
3118
3119# Check whether --with-tls-trustfile was given.
3120if test "${with_tls_trustfile+set}" = set; then :
3121  withval=$with_tls_trustfile;
3122fi
3123
3124
3125DEFAULTwith_tls_trustdirectory=no
3126
3127# Check whether --with-tls-trustdirectory was given.
3128if test "${with_tls_trustdirectory+set}" = set; then :
3129  withval=$with_tls_trustdirectory;
3130fi
3131
3132
3133DEFAULTwith_tls_crlfile=no
3134
3135# Check whether --with-tls-crlfile was given.
3136if test "${with_tls_crlfile+set}" = set; then :
3137  withval=$with_tls_crlfile;
3138fi
3139
3140
3141DEFAULTwith_tls_crldirectory=no
3142
3143# Check whether --with-tls-crldirectory was given.
3144if test "${with_tls_crldirectory+set}" = set; then :
3145  withval=$with_tls_crldirectory;
3146fi
3147
3148
3149DEFAULTenable_use_gcrypt=yes
3150# Check whether --enable-use-gcrypt was given.
3151if test "${enable_use_gcrypt+set}" = set; then :
3152  enableval=$enable_use_gcrypt;
3153fi
3154
3155
3156DEFAULTenable_use_new_inlines=yes
3157# Check whether --enable-use-new-inlines was given.
3158if test "${enable_use_new_inlines+set}" = set; then :
3159  enableval=$enable_use_new_inlines;
3160fi
3161
3162
3163DEFAULTenable_use_set_light=yes
3164# Check whether --enable-use-set-light was given.
3165if test "${enable_use_set_light+set}" = set; then :
3166  enableval=$enable_use_set_light;
3167fi
3168
3169
3170DEFAULTenable_use_set_is_wizard=yes
3171# Check whether --enable-use-set-is-wizard was given.
3172if test "${enable_use_set_is_wizard+set}" = set; then :
3173  enableval=$enable_use_set_is_wizard;
3174fi
3175
3176
3177DEFAULTenable_use_parse_command=yes
3178# Check whether --enable-use-parse-command was given.
3179if test "${enable_use_parse_command+set}" = set; then :
3180  enableval=$enable_use_parse_command;
3181fi
3182
3183
3184DEFAULTenable_use_process_string=yes
3185# Check whether --enable-use-process-string was given.
3186if test "${enable_use_process_string+set}" = set; then :
3187  enableval=$enable_use_process_string;
3188fi
3189
3190
3191DEFAULTenable_lpc_array_calls=yes
3192# Check whether --enable-lpc-array-calls was given.
3193if test "${enable_lpc_array_calls+set}" = set; then :
3194  enableval=$enable_lpc_array_calls;
3195fi
3196
3197
3198DEFAULTenable_comm_stat=yes
3199# Check whether --enable-comm-stat was given.
3200if test "${enable_comm_stat+set}" = set; then :
3201  enableval=$enable_comm_stat;
3202fi
3203
3204
3205DEFAULTenable_apply_cache_stat=yes
3206# Check whether --enable-apply-cache_stat was given.
3207if test "${enable_apply_cache_stat+set}" = set; then :
3208  enableval=$enable_apply_cache_stat;
3209fi
3210
3211
3212DEFAULTenable_malloc_sbrk=yes
3213# Check whether --enable-malloc-sbrk was given.
3214if test "${enable_malloc_sbrk+set}" = set; then :
3215  enableval=$enable_malloc_sbrk;
3216fi
3217
3218
3219DEFAULTenable_malloc_check=yes
3220# Check whether --enable-malloc-check was given.
3221if test "${enable_malloc_check+set}" = set; then :
3222  enableval=$enable_malloc_check;
3223fi
3224
3225
3226DEFAULTenable_malloc_trace=no
3227# Check whether --enable-malloc-trace was given.
3228if test "${enable_malloc_trace+set}" = set; then :
3229  enableval=$enable_malloc_trace;
3230fi
3231
3232
3233DEFAULTenable_malloc_lpc_trace=no
3234# Check whether --enable-malloc-lpc-trace was given.
3235if test "${enable_malloc_lpc_trace+set}" = set; then :
3236  enableval=$enable_malloc_lpc_trace;
3237fi
3238
3239
3240DEFAULTenable_malloc_sbrk_trace=no
3241# Check whether --enable-malloc-sbrk-trace was given.
3242if test "${enable_malloc_sbrk_trace+set}" = set; then :
3243  enableval=$enable_malloc_sbrk_trace;
3244fi
3245
3246
3247DEFAULTenable_dynamic_costs=no
3248# Check whether --enable-dynamic-costs was given.
3249if test "${enable_dynamic_costs+set}" = set; then :
3250  enableval=$enable_dynamic_costs;
3251fi
3252
3253
3254DEFAULTenable_eval_cost_trace=no
3255# Check whether --enable-eval-cost-trace was given.
3256if test "${enable_eval_cost_trace+set}" = set; then :
3257  enableval=$enable_eval_cost_trace;
3258fi
3259
3260
3261DEFAULTenable_trace_code=yes
3262# Check whether --enable-trace-code was given.
3263if test "${enable_trace_code+set}" = set; then :
3264  enableval=$enable_trace_code;
3265fi
3266
3267
3268
3269DEFAULTenable_rxcache_table=yes
3270# Check whether --enable-rxcache_table was given.
3271if test "${enable_rxcache_table+set}" = set; then :
3272  enableval=$enable_rxcache_table;
3273fi
3274
3275
3276DEFAULTenable_synchronous_heart_beat=yes
3277# Check whether --enable-synchronous-heart-beat was given.
3278if test "${enable_synchronous_heart_beat+set}" = set; then :
3279  enableval=$enable_synchronous_heart_beat;
3280fi
3281
3282
3283
3284DEFAULTenable_opcprof=no
3285# Check whether --enable-opcprof was given.
3286if test "${enable_opcprof+set}" = set; then :
3287  enableval=$enable_opcprof;
3288fi
3289
3290
3291DEFAULTenable_verbose_opcprof=no
3292# Check whether --enable-verbose-opcprof was given.
3293if test "${enable_verbose_opcprof+set}" = set; then :
3294  enableval=$enable_verbose_opcprof;
3295fi
3296
3297
3298DEFAULTenable_debug=yes
3299# Check whether --enable-debug was given.
3300if test "${enable_debug+set}" = set; then :
3301  enableval=$enable_debug;
3302fi
3303
3304
3305DEFAULTenable_yydebug=no
3306# Check whether --enable-yydebug was given.
3307if test "${enable_yydebug+set}" = set; then :
3308  enableval=$enable_yydebug;
3309fi
3310
3311
3312DEFAULTenable_no_inlines=no
3313# Check whether --enable-no-inlines was given.
3314if test "${enable_no_inlines+set}" = set; then :
3315  enableval=$enable_no_inlines;
3316fi
3317
3318
3319DEFAULTenable_debug_telnet=no
3320# Check whether --enable-debug-telnet was given.
3321if test "${enable_debug_telnet+set}" = set; then :
3322  enableval=$enable_debug_telnet;
3323fi
3324
3325
3326DEFAULTenable_debug_malloc_allocs=no
3327# Check whether --enable-debug-malloc-allocs was given.
3328if test "${enable_debug_malloc_allocs+set}" = set; then :
3329  enableval=$enable_debug_malloc_allocs;
3330fi
3331
3332
3333
3334DEFAULTenable_check_object_stat=no
3335# Check whether --enable-check-object-stat was given.
3336if test "${enable_check_object_stat+set}" = set; then :
3337  enableval=$enable_check_object_stat;
3338fi
3339
3340
3341DEFAULTenable_check_mapping_total=no
3342# Check whether --enable-check-mapping-total was given.
3343if test "${enable_check_mapping_total+set}" = set; then :
3344  enableval=$enable_check_mapping_total;
3345fi
3346
3347
3348DEFAULTenable_check_object_ref=no
3349# Check whether --enable-check-object-ref was given.
3350if test "${enable_check_object_ref+set}" = set; then :
3351  enableval=$enable_check_object_ref;
3352fi
3353
3354
3355DEFAULTenable_check_object_gc_ref=yes
3356# Check whether --enable-check-object-gc-ref was given.
3357if test "${enable_check_object_gc_ref+set}" = set; then :
3358  enableval=$enable_check_object_gc_ref;
3359fi
3360
3361
3362DEFAULTenable_dump_gc_refs=no
3363# Check whether --enable-dump-gc-refs was given.
3364if test "${enable_dump_gc_refs+set}" = set; then :
3365  enableval=$enable_dump_gc_refs;
3366fi
3367
3368
3369
3370DEFAULTwith_optimize=med
3371
3372# Check whether --with-optimize was given.
3373if test "${with_optimize+set}" = set; then :
3374  withval=$with_optimize;
3375fi
3376
3377
3378
3379DEFAULTwith_access_file=ACCESS.ALLOW
3380
3381# Check whether --with-access-file was given.
3382if test "${with_access_file+set}" = set; then :
3383  withval=$with_access_file;
3384fi
3385
3386
3387DEFAULTwith_access_log=access.allow.log
3388
3389# Check whether --with-access-log was given.
3390if test "${with_access_log+set}" = set; then :
3391  withval=$with_access_log;
3392fi
3393
3394
3395
3396DEFAULTwith_write_buffer_max_size=100000
3397
3398# Check whether --with-write-buffer-max-size was given.
3399if test "${with_write_buffer_max_size+set}" = set; then :
3400  withval=$with_write_buffer_max_size;
3401fi
3402
3403
3404DEFAULTwith_erq_max_reply=1024
3405
3406# Check whether --with-erq-max-reply was given.
3407if test "${with_erq_max_reply+set}" = set; then :
3408  withval=$with_erq_max_reply;
3409fi
3410
3411
3412DEFAULTwith_erq_max_send=1024
3413
3414# Check whether --with-erq-max-send was given.
3415if test "${with_erq_max_send+set}" = set; then :
3416  withval=$with_erq_max_send;
3417fi
3418
3419
3420DEFAULTwith_erq_debug=0
3421
3422# Check whether --with-erq-debug was given.
3423if test "${with_erq_debug+set}" = set; then :
3424  withval=$with_erq_debug;
3425fi
3426
3427
3428
3429DEFAULTwith_read_file_max_size=50000
3430
3431# Check whether --with-read-file-max-size was given.
3432if test "${with_read_file_max_size+set}" = set; then :
3433  withval=$with_read_file_max_size;
3434fi
3435
3436
3437
3438DEFAULTwith_master_name=secure/master
3439
3440# Check whether --with-master-name was given.
3441if test "${with_master_name+set}" = set; then :
3442  withval=$with_master_name;
3443fi
3444
3445
3446DEFAULTwith_input_escape="!"
3447
3448# Check whether --with-input-escape was given.
3449if test "${with_input_escape+set}" = set; then :
3450  withval=$with_input_escape;
3451fi
3452
3453
3454DEFAULTwith_time_to_clean_up=3600
3455
3456# Check whether --with-time-to-clean_up was given.
3457if test "${with_time_to_clean_up+set}" = set; then :
3458  withval=$with_time_to_clean_up;
3459fi
3460
3461
3462DEFAULTwith_time_to_swap=900
3463
3464# Check whether --with-time-to-swap was given.
3465if test "${with_time_to_swap+set}" = set; then :
3466  withval=$with_time_to_swap;
3467fi
3468
3469
3470DEFAULTwith_time_to_swap_variables=1800
3471
3472# Check whether --with-time-to-swap-variables was given.
3473if test "${with_time_to_swap_variables+set}" = set; then :
3474  withval=$with_time_to_swap_variables;
3475fi
3476
3477
3478DEFAULTwith_time_to_reset=1800
3479
3480# Check whether --with-time-to-reset was given.
3481if test "${with_time_to_reset+set}" = set; then :
3482  withval=$with_time_to_reset;
3483fi
3484
3485
3486DEFAULTwith_alarm_time=2
3487
3488# Check whether --with-alarm-time was given.
3489if test "${with_alarm_time+set}" = set; then :
3490  withval=$with_alarm_time;
3491fi
3492
3493
3494DEFAULTwith_heart_beat_interval=2
3495
3496# Check whether --with-heart-beat-interval was given.
3497if test "${with_heart_beat_interval+set}" = set; then :
3498  withval=$with_heart_beat_interval;
3499fi
3500
3501
3502DEFAULTwith_evaluator_stack_size=2000
3503
3504# Check whether --with-evaluator-stack-size was given.
3505if test "${with_evaluator_stack_size+set}" = set; then :
3506  withval=$with_evaluator_stack_size;
3507fi
3508
3509
3510DEFAULTwith_max_user_trace=60
3511
3512# Check whether --with-max-user-trace was given.
3513if test "${with_max_user_trace+set}" = set; then :
3514  withval=$with_max_user_trace;
3515fi
3516
3517
3518DEFAULTwith_max_trace=65
3519
3520# Check whether --with-max-trace was given.
3521if test "${with_max_trace+set}" = set; then :
3522  withval=$with_max_trace;
3523fi
3524
3525
3526DEFAULTwith_compiler_stack_size=400
3527
3528# Check whether --with-compiler-stack-size was given.
3529if test "${with_compiler_stack_size+set}" = set; then :
3530  withval=$with_compiler_stack_size;
3531fi
3532
3533
3534DEFAULTwith_max_bits=6144
3535
3536# Check whether --with-max-bits was given.
3537if test "${with_max_bits+set}" = set; then :
3538  withval=$with_max_bits;
3539fi
3540
3541
3542DEFAULTwith_portno=4242
3543
3544# Check whether --with-portno was given.
3545if test "${with_portno+set}" = set; then :
3546  withval=$with_portno;
3547fi
3548
3549
3550DEFAULTwith_udp_port=4246
3551
3552# Check whether --with-udp-port was given.
3553if test "${with_udp_port+set}" = set; then :
3554  withval=$with_udp_port;
3555fi
3556
3557
3558DEFAULTwith_maxnumports=20
3559
3560# Check whether --with-maxnumports was given.
3561if test "${with_maxnumports+set}" = set; then :
3562  withval=$with_maxnumports;
3563fi
3564
3565
3566DEFAULTwith_max_cost=1000000
3567
3568# Check whether --with-max-cost was given.
3569if test "${with_max_cost+set}" = set; then :
3570  withval=$with_max_cost;
3571fi
3572
3573
3574DEFAULTwith_catch_reserved_cost=2000
3575
3576# Check whether --with-catch-reserved-cost was given.
3577if test "${with_catch_reserved_cost+set}" = set; then :
3578  withval=$with_catch_reserved_cost;
3579fi
3580
3581
3582DEFAULTwith_master_reserved_cost=512
3583
3584# Check whether --with-master-reserved-cost was given.
3585if test "${with_master_reserved_cost+set}" = set; then :
3586  withval=$with_master_reserved_cost;
3587fi
3588
3589
3590DEFAULTwith_swap_file=LP_SWAP
3591
3592# Check whether --with-swap-file was given.
3593if test "${with_swap_file+set}" = set; then :
3594  withval=$with_swap_file;
3595fi
3596
3597
3598DEFAULTwith_max_array_size=5000
3599
3600# Check whether --with-max-array-size was given.
3601if test "${with_max_array_size+set}" = set; then :
3602  withval=$with_max_array_size;
3603fi
3604
3605
3606DEFAULTwith_max_mapping_keys=5000
3607
3608# Check whether --with-max-mapping-keys was given.
3609if test "${with_max_mapping_keys+set}" = set; then :
3610  withval=$with_max_mapping_keys;
3611fi
3612
3613
3614DEFAULTwith_max_mapping_size=15000
3615
3616# Check whether --with-max-mapping-size was given.
3617if test "${with_max_mapping_size+set}" = set; then :
3618  withval=$with_max_mapping_size;
3619fi
3620
3621
3622DEFAULTwith_max_callouts=0
3623
3624# Check whether --with-max-callouts was given.
3625if test "${with_max_callouts+set}" = set; then :
3626  withval=$with_max_callouts;
3627fi
3628
3629
3630DEFAULTwith_max_players=50
3631
3632# Check whether --with-max-players was given.
3633if test "${with_max_players+set}" = set; then :
3634  withval=$with_max_players;
3635fi
3636
3637
3638DEFAULTwith_max_local=50
3639
3640# Check whether --with-max-local was given.
3641if test "${with_max_local+set}" = set; then :
3642  withval=$with_max_local;
3643fi
3644
3645
3646DEFAULTwith_allowed_ed_cmds=20
3647
3648# Check whether --with-allowed-ed-cmds was given.
3649if test "${with_allowed_ed_cmds+set}" = set; then :
3650  withval=$with_allowed_ed_cmds;
3651fi
3652
3653
3654DEFAULTwith_max_command_length=1000
3655
3656# Check whether --with-max-command-length was given.
3657if test "${with_max_command_length+set}" = set; then :
3658  withval=$with_max_command_length;
3659fi
3660
3661
3662DEFAULTwith_reserved_user_size=700000
3663
3664# Check whether --with-reserved-user-size was given.
3665if test "${with_reserved_user_size+set}" = set; then :
3666  withval=$with_reserved_user_size;
3667fi
3668
3669
3670DEFAULTwith_reserved_master_size=100000
3671
3672# Check whether --with-reserved-master-size was given.
3673if test "${with_reserved_master_size+set}" = set; then :
3674  withval=$with_reserved_master_size;
3675fi
3676
3677
3678DEFAULTwith_reserved_system_size=200000
3679
3680# Check whether --with-reserved-system-size was given.
3681if test "${with_reserved_system_size+set}" = set; then :
3682  withval=$with_reserved_system_size;
3683fi
3684
3685
3686DEFAULTwith_htable_size=4096
3687
3688# Check whether --with-htable-size was given.
3689if test "${with_htable_size+set}" = set; then :
3690  withval=$with_htable_size;
3691fi
3692
3693
3694DEFAULTwith_itable_size=256
3695
3696# Check whether --with-itable-size was given.
3697if test "${with_itable_size+set}" = set; then :
3698  withval=$with_itable_size;
3699fi
3700
3701
3702DEFAULTwith_otable_size=1024
3703
3704# Check whether --with-otable-size was given.
3705if test "${with_otable_size+set}" = set; then :
3706  withval=$with_otable_size;
3707fi
3708
3709
3710DEFAULTwith_defmax=65000
3711
3712# Check whether --with-defmax was given.
3713if test "${with_defmax+set}" = set; then :
3714  withval=$with_defmax;
3715fi
3716
3717
3718DEFAULTwith_apply_cache_bits=12
3719
3720# Check whether --with-apply-cache-bits was given.
3721if test "${with_apply_cache_bits+set}" = set; then :
3722  withval=$with_apply_cache_bits;
3723fi
3724
3725
3726DEFAULTwith_rxcache_table=8192
3727
3728# Check whether --with-rxcache-table was given.
3729if test "${with_rxcache_table+set}" = set; then :
3730  withval=$with_rxcache_table;
3731fi
3732
3733
3734DEFAULTwith_max_byte_transfer=50000
3735
3736# Check whether --with-max-byte-transfer was given.
3737if test "${with_max_byte_transfer+set}" = set; then :
3738  withval=$with_max_byte_transfer;
3739fi
3740
3741
3742DEFAULTwith_set_buffer_size_max=65536
3743
3744# Check whether --with-set-buffer-size-max was given.
3745if test "${with_set_buffer_size_max+set}" = set; then :
3746  withval=$with_set_buffer_size_max;
3747fi
3748
3749
3750DEFAULTwith_malloc=default
3751
3752# Check whether --with-malloc was given.
3753if test "${with_malloc+set}" = set; then :
3754  withval=$with_malloc;
3755fi
3756
3757
3758DEFAULTwith_min_malloced=0
3759
3760# Check whether --with-min-malloced was given.
3761if test "${with_min_malloced+set}" = set; then :
3762  withval=$with_min_malloced;
3763fi
3764
3765
3766DEFAULTwith_min_small_malloced=0
3767
3768# Check whether --with-min-small-malloced was given.
3769if test "${with_min_small_malloced+set}" = set; then :
3770  withval=$with_min_small_malloced;
3771fi
3772
3773
3774DEFAULTwith_hard_malloc_limit=0x4000000
3775
3776# Check whether --with-hard-malloc-limit was given.
3777if test "${with_hard_malloc_limit+set}" = set; then :
3778  withval=$with_hard_malloc_limit;
3779fi
3780
3781
3782DEFAULTwith_soft_malloc_limit=0
3783
3784# Check whether --with-soft-malloc-limit was given.
3785if test "${with_soft_malloc_limit+set}" = set; then :
3786  withval=$with_soft_malloc_limit;
3787fi
3788
3789
3790DEFAULTwith_total_trace_length=4096
3791
3792# Check whether --with-total-trace-length was given.
3793if test "${with_total_trace_length+set}" = set; then :
3794  withval=$with_total_trace_length;
3795fi
3796
3797
3798DEFAULTwith_pcre_recursion_limit=3000
3799
3800# Check whether --with-pcre-recursion-limit was given.
3801if test "${with_pcre_recursion_limit+set}" = set; then :
3802  withval=$with_pcre_recursion_limit;
3803fi
3804
3805
3806DEFAULTwith_wizlist_file=WIZLIST
3807
3808# Check whether --with-wizlist-file was given.
3809if test "${with_wizlist_file+set}" = set; then :
3810  withval=$with_wizlist_file;
3811fi
3812
3813
3814DEFAULTwith_max_net_connects=10
3815
3816# Check whether --with-max_net_connects was given.
3817if test "${with_max_net_connects+set}" = set; then :
3818  withval=$with_max_net_connects;
3819fi
3820
3821
3822DEFAULTwith_random_period_length=19937
3823
3824# Check whether --with-random-period-length was given.
3825if test "${with_random_period_length+set}" = set; then :
3826  withval=$with_random_period_length;
3827fi
3828
3829
3830
3831
3832# Check whether --with-setting was given.
3833if test "${with_setting+set}" = set; then :
3834  withval=$with_setting;
3835if test -f "settings/$withval" ; then
3836cat >conftest.sed <<\EOF
3837/^#.*/ d
3838/^[ \t]*$/ d
3839s/#.*$//
3840s/disable_\([^= \t]*\)/enable_\1=no/
3841/^enable_/ s/^/DEFAULT/p
3842/^with_/ s/^/DEFAULT/p
3843
3844EOF
3845eval `sed -n -f conftest.sed <settings/$withval`
3846rm conftest.sed
3847else
3848as_fn_error $? "Setting \"$withval\" not available" "$LINENO" 5
3849fi
3850
3851fi
3852
3853
3854
3855if test "x$enable_erq" = "x" && test "x$DEFAULTenable_erq" != "x"; then
3856  enable_erq=$DEFAULTenable_erq
3857fi
3858
3859if test "x$enable_erq" = "xerq" || test "x$enable_erq" = "xyes"; then
3860  cdef_erq_demon="#define"
3861  erq_sub=erq
3862
3863$as_echo "#define ERQ_INCLUDE \"util/erq/erq.h\"" >>confdefs.h
3864
3865elif test "x$enable_erq" = "xxerq"; then
3866  cdef_erq_demon="#define"
3867  erq_sub=xerq
3868  $as_echo "#define ERQ_INCLUDE \"util/xerq/erq.h\"" >>confdefs.h
3869
3870else
3871  cdef_erq_demon="#undef"
3872  erq_sub=
3873fi
3874
3875if test "x$enable_use_pcre" = "x" && test "x$DEFAULTenable_use_pcre" != "x"; then
3876  enable_use_pcre=$DEFAULTenable_use_pcre
3877fi
3878
3879if test "x$enable_use_pcre" = "x" || test "x$enable_use_pcre" = "xyes"; then
3880  cdef_use_pcre="#define"
3881  cdef_use_builtin_pcre="#undef"
3882  enable_use_builtin_pcre="no"
3883elif test "x$enable_use_pcre" = "xbuiltin"; then
3884  cdef_use_pcre="#define"
3885  cdef_use_builtin_pcre="#define"
3886  enable_use_pcre="yes"
3887  enable_use_builtin_pcre="yes"
3888elif test "x$enable_use_pcre" = "xno-builtin"; then
3889  cdef_use_pcre="#undef"
3890  cdef_use_builtin_pcre="#define"
3891  enable_use_pcre="no"
3892  enable_use_builtin_pcre="yes"
3893else
3894  cdef_use_pcre="#undef"
3895  cdef_use_builtin_pcre="#undef"
3896  enable_use_pcre="no"
3897  enable_use_builtin_pcre="no"
3898fi
3899
3900if test "x$enable_use_mysql" = "x" && test "x$DEFAULTenable_use_mysql" != "x"; then
3901  enable_use_mysql=$DEFAULTenable_use_mysql
3902fi
3903
3904if test "x$enable_use_mysql" = "x" || test "x$enable_use_mysql" = "xyes"; then
3905  cdef_use_mysql="#define"
3906  mysql_path=
3907  enable_use_mysql="yes"
3908elif test "x$enable_use_mysql" = "xno"; then
3909  cdef_use_mysql="#undef"
3910  mysql_path=
3911else
3912  cdef_use_mysql="#define"
3913  mysql_path="$enable_use_mysql"
3914  enable_use_mysql="yes"
3915fi
3916
3917if test "x$enable_use_pgsql" = "x" && test "x$DEFAULTenable_use_pgsql" != "x"; then
3918  enable_use_pgsql=$DEFAULTenable_use_pgsql
3919fi
3920
3921if test "x$enable_use_pgsql" = "x" || test "x$enable_use_pgsql" = "xyes"; then
3922  cdef_use_pgsql="#define"
3923  pgsql_path=
3924  enable_use_pgsql="yes"
3925elif test "x$enable_use_pgsql" = "xno"; then
3926  cdef_use_pgsql="#undef"
3927  pgsql_path=
3928else
3929  cdef_use_pgsql="#define"
3930  pgsql_path="$enable_use_pgsql"
3931  enable_use_pgsql="yes"
3932fi
3933
3934if test "x$enable_use_sqlite" = "x" && test "x$DEFAULTenable_use_sqlite" != "x"; then
3935  enable_use_sqlite=$DEFAULTenable_use_sqlite
3936fi
3937
3938if test "x$enable_use_sqlite" = "x" || test "x$enable_use_sqlite" = "xyes"; then
3939  cdef_use_sqlite="#define"
3940  sqlite_path=
3941  enable_use_sqlite="yes"
3942elif test "x$enable_use_sqlite" = "xno"; then
3943  cdef_use_sqlite="#undef"
3944  sqlite_path=
3945else
3946  cdef_use_sqlite="#define"
3947  sqlite_path="$enable_use_sqlite"
3948  enable_use_sqlite="yes"
3949fi
3950
3951if test "x$enable_use_xml" = "x" && test "x$DEFAULTenable_use_xml" != "x"; then
3952  enable_use_xml=$DEFAULTenable_use_xml
3953fi
3954
3955if test "x$enable_use_xml" = "x" || test "x$enable_use_xml" = "xyes"; then
3956  cdef_use_xml="#define"
3957  xml_package="any"
3958  enable_use_xml="yes"
3959elif test "x$enable_use_xml" = "xno"; then
3960  cdef_use_xml="#undef"
3961  xml_package="any"
3962else
3963  cdef_use_xml="#define"
3964  xml_package="$enable_use_xml"
3965  enable_use_xml="yes"
3966fi
3967if test "x$with_xml_path" = "x" && test "x$DEFAULTwith_xml_path" != "x"; then
3968  with_xml_path=$DEFAULTwith_xml_path
3969fi
3970
3971if test "x$with_xml_path" = "x" -o "x$with_xml_path" = "xno" ; then
3972  xml_path=""
3973else
3974  xml_path="$with_xml_path"
3975fi
3976
3977if test "x$enable_use_tls" = "x" && test "x$DEFAULTenable_use_tls" != "x"; then
3978  enable_use_tls=$DEFAULTenable_use_tls
3979fi
3980
3981if test "x$enable_use_tls" = "x" || test "x$enable_use_tls" = "xyes"; then
3982  cdef_use_tls="#define"
3983  tls_package="any"
3984  enable_use_tls="yes"
3985elif test "x$enable_use_tls" = "xno"; then
3986  cdef_use_tls="#undef"
3987  tls_package="any"
3988else
3989  cdef_use_tls="#define"
3990  tls_package="$enable_use_tls"
3991  enable_use_tls="yes"
3992fi
3993if test "x$with_tls_path" = "x" && test "x$DEFAULTwith_tls_path" != "x"; then
3994  with_tls_path=$DEFAULTwith_tls_path
3995fi
3996
3997if test "x$with_tls_path" = "x" -o "x$with_tls_path" = "xno" ; then
3998  tls_include_path=""
3999  tls_lib_path=""
4000else
4001  tls_include_path="${with_tls_path}/include"
4002  tls_lib_path="${with_tls_path}/lib"
4003fi
4004if test "x$enable_use_gcrypt" = "x" && test "x$DEFAULTenable_use_gcrypt" != "x"; then
4005  enable_use_gcrypt=$DEFAULTenable_use_gcrypt
4006fi
4007
4008if test "x$enable_use_gcrypt" = "x" || test "x$enable_use_gcrypt" = "xyes"; then
4009  cdef_use_gcrypt="#define"
4010  gcrypt_path=
4011  enable_use_gcrypt="yes"
4012elif test "x$enable_use_gcrypt" = "xno"; then
4013  cdef_use_gcrypt="#undef"
4014  gcrypt_path=
4015else
4016  cdef_use_gcrypt="#define"
4017  gcrypt_path="$enable_use_gcrypt"
4018  enable_use_gcrypt="yes"
4019fi
4020
4021if test "x$enable_access_control" = "x" && test "x$DEFAULTenable_access_control" != "x"; then
4022  enable_access_control=$DEFAULTenable_access_control
4023fi
4024
4025if test "x$enable_access_control" = "xyes"; then
4026  cdef_access_control="#define"
4027else
4028  cdef_access_control="#undef"
4029fi
4030
4031if test "x$enable_access_log" = "x" && test "x$DEFAULTenable_access_log" != "x"; then
4032  enable_access_log=$DEFAULTenable_access_log
4033fi
4034
4035if test "x$enable_access_log" = "xyes"; then
4036  cdef_access_log="#define"
4037else
4038  cdef_access_log="#undef"
4039fi
4040
4041if test "x$enable_compat_mode" = "x" && test "x$DEFAULTenable_compat_mode" != "x"; then
4042  enable_compat_mode=$DEFAULTenable_compat_mode
4043fi
4044
4045if test "x$enable_compat_mode" = "xyes"; then
4046  cdef_compat_mode="#define"
4047else
4048  cdef_compat_mode="#undef"
4049fi
4050
4051if test "x$enable_strict_euids" = "x" && test "x$DEFAULTenable_strict_euids" != "x"; then
4052  enable_strict_euids=$DEFAULTenable_strict_euids
4053fi
4054
4055if test "x$enable_strict_euids" = "xyes"; then
4056  cdef_strict_euids="#define"
4057else
4058  cdef_strict_euids="#undef"
4059fi
4060
4061if test "x$enable_filename_spaces" = "x" && test "x$DEFAULTenable_filename_spaces" != "x"; then
4062  enable_filename_spaces=$DEFAULTenable_filename_spaces
4063fi
4064
4065if test "x$enable_filename_spaces" = "xyes"; then
4066  cdef_filename_spaces="#define"
4067else
4068  cdef_filename_spaces="#undef"
4069fi
4070
4071if test "x$enable_share_variables" = "x" && test "x$DEFAULTenable_share_variables" != "x"; then
4072  enable_share_variables=$DEFAULTenable_share_variables
4073fi
4074
4075if test "x$enable_share_variables" = "xyes"; then
4076  cdef_share_variables="#define"
4077else
4078  cdef_share_variables="#undef"
4079fi
4080
4081if test "x$enable_use_alists" = "x" && test "x$DEFAULTenable_use_alists" != "x"; then
4082  enable_use_alists=$DEFAULTenable_use_alists
4083fi
4084
4085if test "x$enable_use_alists" = "xyes"; then
4086  cdef_use_alists="#define"
4087else
4088  cdef_use_alists="#undef"
4089fi
4090
4091if test "x$enable_use_mccp" = "x" && test "x$DEFAULTenable_use_mccp" != "x"; then
4092  enable_use_mccp=$DEFAULTenable_use_mccp
4093fi
4094
4095if test "x$enable_use_mccp" = "xyes"; then
4096  cdef_use_mccp="#define"
4097else
4098  cdef_use_mccp="#undef"
4099fi
4100
4101if test "x$enable_use_ipv6" = "x" && test "x$DEFAULTenable_use_ipv6" != "x"; then
4102  enable_use_ipv6=$DEFAULTenable_use_ipv6
4103fi
4104
4105if test "x$enable_use_ipv6" = "xyes"; then
4106  cdef_use_ipv6="#define"
4107else
4108  cdef_use_ipv6="#undef"
4109fi
4110
4111if test "x$enable_use_deprecated" = "x" && test "x$DEFAULTenable_use_deprecated" != "x"; then
4112  enable_use_deprecated=$DEFAULTenable_use_deprecated
4113fi
4114
4115if test "x$enable_use_deprecated" = "xyes"; then
4116  cdef_use_deprecated="#define"
4117else
4118  cdef_use_deprecated="#undef"
4119fi
4120
4121if test "x$enable_use_structs" = "x" && test "x$DEFAULTenable_use_structs" != "x"; then
4122  enable_use_structs=$DEFAULTenable_use_structs
4123fi
4124
4125if test "x$enable_use_structs" = "xyes"; then
4126  cdef_use_structs="#define"
4127else
4128  cdef_use_structs="#undef"
4129fi
4130
4131if test "x$enable_use_new_inlines" = "x" && test "x$DEFAULTenable_use_new_inlines" != "x"; then
4132  enable_use_new_inlines=$DEFAULTenable_use_new_inlines
4133fi
4134
4135if test "x$enable_use_new_inlines" = "xyes"; then
4136  cdef_use_new_inlines="#define"
4137else
4138  cdef_use_new_inlines="#undef"
4139fi
4140
4141if test "x$enable_use_set_light" = "x" && test "x$DEFAULTenable_use_set_light" != "x"; then
4142  enable_use_set_light=$DEFAULTenable_use_set_light
4143fi
4144
4145if test "x$enable_use_set_light" = "xyes"; then
4146  cdef_use_set_light="#define"
4147else
4148  cdef_use_set_light="#undef"
4149fi
4150
4151if test "x$enable_use_set_is_wizard" = "x" && test "x$DEFAULTenable_use_set_is_wizard" != "x"; then
4152  enable_use_set_is_wizard=$DEFAULTenable_use_set_is_wizard
4153fi
4154
4155if test "x$enable_use_set_is_wizard" = "xyes"; then
4156  cdef_use_set_is_wizard="#define"
4157else
4158  cdef_use_set_is_wizard="#undef"
4159fi
4160
4161if test "x$enable_use_parse_command" = "x" && test "x$DEFAULTenable_use_parse_command" != "x"; then
4162  enable_use_parse_command=$DEFAULTenable_use_parse_command
4163fi
4164
4165if test "x$enable_use_parse_command" = "xyes"; then
4166  cdef_use_parse_command="#define"
4167else
4168  cdef_use_parse_command="#undef"
4169fi
4170
4171if test "x$enable_use_process_string" = "x" && test "x$DEFAULTenable_use_process_string" != "x"; then
4172  enable_use_process_string=$DEFAULTenable_use_process_string
4173fi
4174
4175if test "x$enable_use_process_string" = "xyes"; then
4176  cdef_use_process_string="#define"
4177else
4178  cdef_use_process_string="#undef"
4179fi
4180
4181if test "x$enable_lpc_array_calls" = "x" && test "x$DEFAULTenable_lpc_array_calls" != "x"; then
4182  enable_lpc_array_calls=$DEFAULTenable_lpc_array_calls
4183fi
4184
4185if test "x$enable_lpc_array_calls" = "xyes"; then
4186  cdef_lpc_array_calls="#define"
4187else
4188  cdef_lpc_array_calls="#undef"
4189fi
4190
4191if test "x$enable_comm_stat" = "x" && test "x$DEFAULTenable_comm_stat" != "x"; then
4192  enable_comm_stat=$DEFAULTenable_comm_stat
4193fi
4194
4195if test "x$enable_comm_stat" = "xyes"; then
4196  cdef_comm_stat="#define"
4197else
4198  cdef_comm_stat="#undef"
4199fi
4200
4201if test "x$enable_apply_cache_stat" = "x" && test "x$DEFAULTenable_apply_cache_stat" != "x"; then
4202  enable_apply_cache_stat=$DEFAULTenable_apply_cache_stat
4203fi
4204
4205if test "x$enable_apply_cache_stat" = "xyes"; then
4206  cdef_apply_cache_stat="#define"
4207else
4208  cdef_apply_cache_stat="#undef"
4209fi
4210
4211if test "x$enable_malloc_sbrk" = "x" && test "x$DEFAULTenable_malloc_sbrk" != "x"; then
4212  enable_malloc_sbrk=$DEFAULTenable_malloc_sbrk
4213fi
4214
4215if test "x$enable_malloc_sbrk" = "xyes"; then
4216  cdef_malloc_sbrk="#define"
4217else
4218  cdef_malloc_sbrk="#undef"
4219fi
4220
4221if test "x$enable_malloc_check" = "x" && test "x$DEFAULTenable_malloc_check" != "x"; then
4222  enable_malloc_check=$DEFAULTenable_malloc_check
4223fi
4224
4225if test "x$enable_malloc_check" = "xyes"; then
4226  cdef_malloc_check="#define"
4227else
4228  cdef_malloc_check="#undef"
4229fi
4230
4231if test "x$enable_malloc_trace" = "x" && test "x$DEFAULTenable_malloc_trace" != "x"; then
4232  enable_malloc_trace=$DEFAULTenable_malloc_trace
4233fi
4234
4235if test "x$enable_malloc_trace" = "xyes"; then
4236  cdef_malloc_trace="#define"
4237else
4238  cdef_malloc_trace="#undef"
4239fi
4240
4241if test "x$enable_malloc_lpc_trace" = "x" && test "x$DEFAULTenable_malloc_lpc_trace" != "x"; then
4242  enable_malloc_lpc_trace=$DEFAULTenable_malloc_lpc_trace
4243fi
4244
4245if test "x$enable_malloc_lpc_trace" = "xyes"; then
4246  cdef_malloc_lpc_trace="#define"
4247else
4248  cdef_malloc_lpc_trace="#undef"
4249fi
4250
4251if test "x$enable_malloc_sbrk_trace" = "x" && test "x$DEFAULTenable_malloc_sbrk_trace" != "x"; then
4252  enable_malloc_sbrk_trace=$DEFAULTenable_malloc_sbrk_trace
4253fi
4254
4255if test "x$enable_malloc_sbrk_trace" = "xyes"; then
4256  cdef_malloc_sbrk_trace="#define"
4257else
4258  cdef_malloc_sbrk_trace="#undef"
4259fi
4260
4261if test "x$enable_dynamic_costs" = "x" && test "x$DEFAULTenable_dynamic_costs" != "x"; then
4262  enable_dynamic_costs=$DEFAULTenable_dynamic_costs
4263fi
4264
4265if test "x$enable_dynamic_costs" = "xyes"; then
4266  cdef_dynamic_costs="#define"
4267else
4268  cdef_dynamic_costs="#undef"
4269fi
4270
4271if test "x$enable_eval_cost_trace" = "x" && test "x$DEFAULTenable_eval_cost_trace" != "x"; then
4272  enable_eval_cost_trace=$DEFAULTenable_eval_cost_trace
4273fi
4274
4275if test "x$enable_eval_cost_trace" = "xyes"; then
4276  cdef_eval_cost_trace="#define"
4277else
4278  cdef_eval_cost_trace="#undef"
4279fi
4280
4281if test "x$enable_trace_code" = "x" && test "x$DEFAULTenable_trace_code" != "x"; then
4282  enable_trace_code=$DEFAULTenable_trace_code
4283fi
4284
4285if test "x$enable_trace_code" = "xyes"; then
4286  cdef_trace_code="#define"
4287else
4288  cdef_trace_code="#undef"
4289fi
4290
4291
4292if test "x$enable_rxcache_table" = "x" && test "x$DEFAULTenable_rxcache_table" != "x"; then
4293  enable_rxcache_table=$DEFAULTenable_rxcache_table
4294fi
4295
4296if test "x$enable_rxcache_table" = "xyes"; then
4297  cdef_rxcache_table="#define"
4298else
4299  cdef_rxcache_table="#undef"
4300fi
4301
4302if test "x$enable_synchronous_heart_beat" = "x" && test "x$DEFAULTenable_synchronous_heart_beat" != "x"; then
4303  enable_synchronous_heart_beat=$DEFAULTenable_synchronous_heart_beat
4304fi
4305
4306if test "x$enable_synchronous_heart_beat" = "xyes"; then
4307  cdef_synchronous_heart_beat="#define"
4308else
4309  cdef_synchronous_heart_beat="#undef"
4310fi
4311
4312
4313if test "x$enable_opcprof" = "x" && test "x$DEFAULTenable_opcprof" != "x"; then
4314  enable_opcprof=$DEFAULTenable_opcprof
4315fi
4316
4317if test "x$enable_opcprof" = "xyes"; then
4318  cdef_opcprof="#define"
4319else
4320  cdef_opcprof="#undef"
4321fi
4322
4323if test "x$enable_verbose_opcprof" = "x" && test "x$DEFAULTenable_verbose_opcprof" != "x"; then
4324  enable_verbose_opcprof=$DEFAULTenable_verbose_opcprof
4325fi
4326
4327if test "x$enable_verbose_opcprof" = "xyes"; then
4328  cdef_verbose_opcprof="#define"
4329else
4330  cdef_verbose_opcprof="#undef"
4331fi
4332
4333if test "x$enable_debug" = "x" && test "x$DEFAULTenable_debug" != "x"; then
4334  enable_debug=$DEFAULTenable_debug
4335fi
4336
4337if test "x$enable_debug" = "xyes"; then
4338  cdef_debug="#define"
4339else
4340  cdef_debug="#undef"
4341fi
4342
4343if test "x$enable_yydebug" = "x" && test "x$DEFAULTenable_yydebug" != "x"; then
4344  enable_yydebug=$DEFAULTenable_yydebug
4345fi
4346
4347if test "x$enable_yydebug" = "xyes"; then
4348  cdef_yydebug="#define"
4349else
4350  cdef_yydebug="#undef"
4351fi
4352
4353if test "x$enable_no_inlines" = "x" && test "x$DEFAULTenable_no_inlines" != "x"; then
4354  enable_no_inlines=$DEFAULTenable_no_inlines
4355fi
4356
4357if test "x$enable_no_inlines" = "xyes"; then
4358  cdef_no_inlines="#define"
4359else
4360  cdef_no_inlines="#undef"
4361fi
4362
4363if test "x$enable_debug_telnet" = "x" && test "x$DEFAULTenable_debug_telnet" != "x"; then
4364  enable_debug_telnet=$DEFAULTenable_debug_telnet
4365fi
4366
4367if test "x$enable_debug_telnet" = "xyes"; then
4368  cdef_debug_telnet="#define"
4369else
4370  cdef_debug_telnet="#undef"
4371fi
4372
4373if test "x$enable_debug_malloc_allocs" = "x" && test "x$DEFAULTenable_debug_malloc_allocs" != "x"; then
4374  enable_debug_malloc_allocs=$DEFAULTenable_debug_malloc_allocs
4375fi
4376
4377if test "x$enable_debug_malloc_allocs" = "xyes"; then
4378  cdef_debug_malloc_allocs="#define"
4379else
4380  cdef_debug_malloc_allocs="#undef"
4381fi
4382
4383
4384if test "x$enable_check_object_stat" = "x" && test "x$DEFAULTenable_check_object_stat" != "x"; then
4385  enable_check_object_stat=$DEFAULTenable_check_object_stat
4386fi
4387
4388if test "x$enable_check_object_stat" = "xyes"; then
4389  cdef_check_object_stat="#define"
4390else
4391  cdef_check_object_stat="#undef"
4392fi
4393
4394if test "x$enable_check_mapping_total" = "x" && test "x$DEFAULTenable_check_mapping_total" != "x"; then
4395  enable_check_mapping_total=$DEFAULTenable_check_mapping_total
4396fi
4397
4398if test "x$enable_check_mapping_total" = "xyes"; then
4399  cdef_check_mapping_total="#define"
4400else
4401  cdef_check_mapping_total="#undef"
4402fi
4403
4404if test "x$enable_check_object_ref" = "x" && test "x$DEFAULTenable_check_object_ref" != "x"; then
4405  enable_check_object_ref=$DEFAULTenable_check_object_ref
4406fi
4407
4408if test "x$enable_check_object_ref" = "xyes"; then
4409  cdef_check_object_ref="#define"
4410else
4411  cdef_check_object_ref="#undef"
4412fi
4413
4414if test "x$enable_check_object_gc_ref" = "x" && test "x$DEFAULTenable_check_object_gc_ref" != "x"; then
4415  enable_check_object_gc_ref=$DEFAULTenable_check_object_gc_ref
4416fi
4417
4418if test "x$enable_check_object_gc_ref" = "xyes"; then
4419  cdef_check_object_gc_ref="#define"
4420else
4421  cdef_check_object_gc_ref="#undef"
4422fi
4423
4424if test "x$enable_dump_gc_refs" = "x" && test "x$DEFAULTenable_dump_gc_refs" != "x"; then
4425  enable_dump_gc_refs=$DEFAULTenable_dump_gc_refs
4426fi
4427
4428if test "x$enable_dump_gc_refs" = "xyes"; then
4429  cdef_dump_gc_refs="#define"
4430else
4431  cdef_dump_gc_refs="#undef"
4432fi
4433
4434
4435if test "x$with_optimize" != "x"; then
4436  with_optimize=`echo $with_optimize|
4437             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4438fi
4439if test "x$with_optimize" = "x" && test "x$DEFAULTwith_optimize" != "x"; then
4440  with_optimize=$DEFAULTwith_optimize
4441fi
4442
4443val_optimize="$with_optimize"
4444
4445
4446if test "x$with_access_file" != "x"; then
4447  with_access_file=`echo $with_access_file|
4448             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4449fi
4450if test "x$with_access_file" = "x" && test "x$DEFAULTwith_access_file" != "x"; then
4451  with_access_file=$DEFAULTwith_access_file
4452fi
4453
4454val_access_file="\"$with_access_file\""
4455
4456if test "x$with_access_log" != "x"; then
4457  with_access_log=`echo $with_access_log|
4458             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4459fi
4460if test "x$with_access_log" = "x" && test "x$DEFAULTwith_access_log" != "x"; then
4461  with_access_log=$DEFAULTwith_access_log
4462fi
4463
4464val_access_log="\"$with_access_log\""
4465
4466if test "x$with_swap_file" != "x"; then
4467  with_swap_file=`echo $with_swap_file|
4468             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4469fi
4470if test "x$with_swap_file" = "x" && test "x$DEFAULTwith_swap_file" != "x"; then
4471  with_swap_file=$DEFAULTwith_swap_file
4472fi
4473
4474val_swap_file="\"$with_swap_file\""
4475
4476if test "x$with_wizlist_file" != "x"; then
4477  with_wizlist_file=`echo $with_wizlist_file|
4478             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4479fi
4480if test "x$with_wizlist_file" = "x" && test "x$DEFAULTwith_wizlist_file" != "x"; then
4481  with_wizlist_file=$DEFAULTwith_wizlist_file
4482fi
4483
4484val_wizlist_file="\"$with_wizlist_file\""
4485
4486if test "x$with_master_name" != "x"; then
4487  with_master_name=`echo $with_master_name|
4488             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4489fi
4490if test "x$with_master_name" = "x" && test "x$DEFAULTwith_master_name" != "x"; then
4491  with_master_name=$DEFAULTwith_master_name
4492fi
4493
4494val_master_name="\"$with_master_name\""
4495
4496if test "x$with_input_escape" != "x"; then
4497  with_input_escape=`echo $with_input_escape|
4498             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4499fi
4500if test "x$with_input_escape" = "x" && test "x$DEFAULTwith_input_escape" != "x"; then
4501  with_input_escape=$DEFAULTwith_input_escape
4502fi
4503
4504val_input_escape="\"$with_input_escape\""
4505
4506if test "x$with_tls_keyfile" != "x"; then
4507  with_tls_keyfile=`echo $with_tls_keyfile|
4508             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4509fi
4510if test "x$with_tls_keyfile" = "x" && test "x$DEFAULTwith_tls_keyfile" != "x"; then
4511  with_tls_keyfile=$DEFAULTwith_tls_keyfile
4512fi
4513
4514val_tls_keyfile="\"$with_tls_keyfile\""
4515
4516if test "x$with_tls_certfile" != "x"; then
4517  with_tls_certfile=`echo $with_tls_certfile|
4518             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4519fi
4520if test "x$with_tls_certfile" = "x" && test "x$DEFAULTwith_tls_certfile" != "x"; then
4521  with_tls_certfile=$DEFAULTwith_tls_certfile
4522fi
4523
4524val_tls_certfile="\"$with_tls_certfile\""
4525
4526if test "x$with_tls_trustfile" != "x"; then
4527  with_tls_trustfile=`echo $with_tls_trustfile|
4528             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4529fi
4530if test "x$with_tls_trustfile" = "x" && test "x$DEFAULTwith_tls_trustfile" != "x"; then
4531  with_tls_trustfile=$DEFAULTwith_tls_trustfile
4532fi
4533
4534val_tls_trustfile="\"$with_tls_trustfile\""
4535
4536if test "x$with_tls_trustdirectory" != "x"; then
4537  with_tls_trustdirectory=`echo $with_tls_trustdirectory|
4538             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4539fi
4540if test "x$with_tls_trustdirectory" = "x" && test "x$DEFAULTwith_tls_trustdirectory" != "x"; then
4541  with_tls_trustdirectory=$DEFAULTwith_tls_trustdirectory
4542fi
4543
4544val_tls_trustdirectory="\"$with_tls_trustdirectory\""
4545
4546if test "x$with_tls_crlfile" != "x"; then
4547  with_tls_crlfile=`echo $with_tls_crlfile|
4548             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4549fi
4550if test "x$with_tls_crlfile" = "x" && test "x$DEFAULTwith_tls_crlfile" != "x"; then
4551  with_tls_crlfile=$DEFAULTwith_tls_crlfile
4552fi
4553
4554val_tls_crlfile="\"$with_tls_crlfile\""
4555
4556if test "x$with_tls_crldirectory" != "x"; then
4557  with_tls_crldirectory=`echo $with_tls_crldirectory|
4558             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4559fi
4560if test "x$with_tls_crldirectory" = "x" && test "x$DEFAULTwith_tls_crldirectory" != "x"; then
4561  with_tls_crldirectory=$DEFAULTwith_tls_crldirectory
4562fi
4563
4564val_tls_crldirectory="\"$with_tls_crldirectory\""
4565
4566
4567if test "x$with_malloc" != "x"; then
4568  with_malloc=`echo $with_malloc|
4569             sed -e 's/^\([^"]*\)\?.*$/\1/'`
4570fi
4571if test "x$with_malloc" = "x" && test "x$DEFAULTwith_malloc" != "x"; then
4572  with_malloc=$DEFAULTwith_malloc
4573fi
4574
4575val_malloc="$with_malloc"
4576
4577
4578if test "x$with_write_buffer_max_size" != "x"; then
4579  with_write_buffer_max_size=`echo $with_write_buffer_max_size|
4580             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4581fi
4582if test "x$with_write_buffer_max_size" = "x" && test "x$DEFAULTwith_write_buffer_max_size" != "x"; then
4583  with_write_buffer_max_size=$DEFAULTwith_write_buffer_max_size
4584fi
4585
4586val_write_buffer_max_size=$with_write_buffer_max_size
4587
4588if test "x$with_erq_max_reply" != "x"; then
4589  with_erq_max_reply=`echo $with_erq_max_reply|
4590             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4591fi
4592if test "x$with_erq_max_reply" = "x" && test "x$DEFAULTwith_erq_max_reply" != "x"; then
4593  with_erq_max_reply=$DEFAULTwith_erq_max_reply
4594fi
4595
4596val_erq_max_reply=$with_erq_max_reply
4597
4598if test "x$with_erq_max_send" != "x"; then
4599  with_erq_max_send=`echo $with_erq_max_send|
4600             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4601fi
4602if test "x$with_erq_max_send" = "x" && test "x$DEFAULTwith_erq_max_send" != "x"; then
4603  with_erq_max_send=$DEFAULTwith_erq_max_send
4604fi
4605
4606val_erq_max_send=$with_erq_max_send
4607
4608if test "x$with_erq_debug" != "x"; then
4609  with_erq_debug=`echo $with_erq_debug|
4610             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4611fi
4612if test "x$with_erq_debug" = "x" && test "x$DEFAULTwith_erq_debug" != "x"; then
4613  with_erq_debug=$DEFAULTwith_erq_debug
4614fi
4615
4616val_erq_debug=$with_erq_debug
4617
4618if test "x$with_read_file_max_size" != "x"; then
4619  with_read_file_max_size=`echo $with_read_file_max_size|
4620             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4621fi
4622if test "x$with_read_file_max_size" = "x" && test "x$DEFAULTwith_read_file_max_size" != "x"; then
4623  with_read_file_max_size=$DEFAULTwith_read_file_max_size
4624fi
4625
4626val_read_file_max_size=$with_read_file_max_size
4627
4628if test "x$with_time_to_clean_up" != "x"; then
4629  with_time_to_clean_up=`echo $with_time_to_clean_up|
4630             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4631fi
4632if test "x$with_time_to_clean_up" = "x" && test "x$DEFAULTwith_time_to_clean_up" != "x"; then
4633  with_time_to_clean_up=$DEFAULTwith_time_to_clean_up
4634fi
4635
4636val_time_to_clean_up=$with_time_to_clean_up
4637
4638if test "x$with_time_to_swap" != "x"; then
4639  with_time_to_swap=`echo $with_time_to_swap|
4640             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4641fi
4642if test "x$with_time_to_swap" = "x" && test "x$DEFAULTwith_time_to_swap" != "x"; then
4643  with_time_to_swap=$DEFAULTwith_time_to_swap
4644fi
4645
4646val_time_to_swap=$with_time_to_swap
4647
4648if test "x$with_time_to_swap_variables" != "x"; then
4649  with_time_to_swap_variables=`echo $with_time_to_swap_variables|
4650             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4651fi
4652if test "x$with_time_to_swap_variables" = "x" && test "x$DEFAULTwith_time_to_swap_variables" != "x"; then
4653  with_time_to_swap_variables=$DEFAULTwith_time_to_swap_variables
4654fi
4655
4656val_time_to_swap_variables=$with_time_to_swap_variables
4657
4658if test "x$with_time_to_reset" != "x"; then
4659  with_time_to_reset=`echo $with_time_to_reset|
4660             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4661fi
4662if test "x$with_time_to_reset" = "x" && test "x$DEFAULTwith_time_to_reset" != "x"; then
4663  with_time_to_reset=$DEFAULTwith_time_to_reset
4664fi
4665
4666val_time_to_reset=$with_time_to_reset
4667
4668if test "x$with_alarm_time" != "x"; then
4669  with_alarm_time=`echo $with_alarm_time|
4670             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4671fi
4672if test "x$with_alarm_time" = "x" && test "x$DEFAULTwith_alarm_time" != "x"; then
4673  with_alarm_time=$DEFAULTwith_alarm_time
4674fi
4675
4676val_alarm_time=$with_alarm_time
4677
4678if test "x$with_heart_beat_interval" != "x"; then
4679  with_heart_beat_interval=`echo $with_heart_beat_interval|
4680             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4681fi
4682if test "x$with_heart_beat_interval" = "x" && test "x$DEFAULTwith_heart_beat_interval" != "x"; then
4683  with_heart_beat_interval=$DEFAULTwith_heart_beat_interval
4684fi
4685
4686val_heart_beat_interval=$with_heart_beat_interval
4687
4688if test "x$with_evaluator_stack_size" != "x"; then
4689  with_evaluator_stack_size=`echo $with_evaluator_stack_size|
4690             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4691fi
4692if test "x$with_evaluator_stack_size" = "x" && test "x$DEFAULTwith_evaluator_stack_size" != "x"; then
4693  with_evaluator_stack_size=$DEFAULTwith_evaluator_stack_size
4694fi
4695
4696val_evaluator_stack_size=$with_evaluator_stack_size
4697
4698if test "x$with_max_user_trace" != "x"; then
4699  with_max_user_trace=`echo $with_max_user_trace|
4700             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4701fi
4702if test "x$with_max_user_trace" = "x" && test "x$DEFAULTwith_max_user_trace" != "x"; then
4703  with_max_user_trace=$DEFAULTwith_max_user_trace
4704fi
4705
4706val_max_user_trace=$with_max_user_trace
4707
4708if test "x$with_max_trace" != "x"; then
4709  with_max_trace=`echo $with_max_trace|
4710             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4711fi
4712if test "x$with_max_trace" = "x" && test "x$DEFAULTwith_max_trace" != "x"; then
4713  with_max_trace=$DEFAULTwith_max_trace
4714fi
4715
4716val_max_trace=$with_max_trace
4717
4718if test "x$with_compiler_stack_size" != "x"; then
4719  with_compiler_stack_size=`echo $with_compiler_stack_size|
4720             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4721fi
4722if test "x$with_compiler_stack_size" = "x" && test "x$DEFAULTwith_compiler_stack_size" != "x"; then
4723  with_compiler_stack_size=$DEFAULTwith_compiler_stack_size
4724fi
4725
4726val_compiler_stack_size=$with_compiler_stack_size
4727
4728if test "x$with_max_bits" != "x"; then
4729  with_max_bits=`echo $with_max_bits|
4730             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4731fi
4732if test "x$with_max_bits" = "x" && test "x$DEFAULTwith_max_bits" != "x"; then
4733  with_max_bits=$DEFAULTwith_max_bits
4734fi
4735
4736val_max_bits=$with_max_bits
4737
4738if test "x$with_portno" != "x"; then
4739  with_portno=`echo $with_portno|
4740             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4741fi
4742if test "x$with_portno" = "x" && test "x$DEFAULTwith_portno" != "x"; then
4743  with_portno=$DEFAULTwith_portno
4744fi
4745
4746val_portno=$with_portno
4747
4748if test "x$with_maxnumports" != "x"; then
4749  with_maxnumports=`echo $with_maxnumports|
4750             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4751fi
4752if test "x$with_maxnumports" = "x" && test "x$DEFAULTwith_maxnumports" != "x"; then
4753  with_maxnumports=$DEFAULTwith_maxnumports
4754fi
4755
4756val_maxnumports=$with_maxnumports
4757
4758if test "x$with_max_cost" != "x"; then
4759  with_max_cost=`echo $with_max_cost|
4760             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4761fi
4762if test "x$with_max_cost" = "x" && test "x$DEFAULTwith_max_cost" != "x"; then
4763  with_max_cost=$DEFAULTwith_max_cost
4764fi
4765
4766val_max_cost=$with_max_cost
4767
4768if test "x$with_catch_reserved_cost" != "x"; then
4769  with_catch_reserved_cost=`echo $with_catch_reserved_cost|
4770             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4771fi
4772if test "x$with_catch_reserved_cost" = "x" && test "x$DEFAULTwith_catch_reserved_cost" != "x"; then
4773  with_catch_reserved_cost=$DEFAULTwith_catch_reserved_cost
4774fi
4775
4776val_catch_reserved_cost=$with_catch_reserved_cost
4777
4778if test "x$with_master_reserved_cost" != "x"; then
4779  with_master_reserved_cost=`echo $with_master_reserved_cost|
4780             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4781fi
4782if test "x$with_master_reserved_cost" = "x" && test "x$DEFAULTwith_master_reserved_cost" != "x"; then
4783  with_master_reserved_cost=$DEFAULTwith_master_reserved_cost
4784fi
4785
4786val_master_reserved_cost=$with_master_reserved_cost
4787
4788if test "x$with_max_array_size" != "x"; then
4789  with_max_array_size=`echo $with_max_array_size|
4790             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4791fi
4792if test "x$with_max_array_size" = "x" && test "x$DEFAULTwith_max_array_size" != "x"; then
4793  with_max_array_size=$DEFAULTwith_max_array_size
4794fi
4795
4796val_max_array_size=$with_max_array_size
4797
4798if test "x$with_max_mapping_keys" != "x"; then
4799  with_max_mapping_keys=`echo $with_max_mapping_keys|
4800             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4801fi
4802if test "x$with_max_mapping_keys" = "x" && test "x$DEFAULTwith_max_mapping_keys" != "x"; then
4803  with_max_mapping_keys=$DEFAULTwith_max_mapping_keys
4804fi
4805
4806val_max_mapping_keys=$with_max_mapping_keys
4807
4808if test "x$with_max_mapping_size" != "x"; then
4809  with_max_mapping_size=`echo $with_max_mapping_size|
4810             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4811fi
4812if test "x$with_max_mapping_size" = "x" && test "x$DEFAULTwith_max_mapping_size" != "x"; then
4813  with_max_mapping_size=$DEFAULTwith_max_mapping_size
4814fi
4815
4816val_max_mapping_size=$with_max_mapping_size
4817
4818if test "x$with_max_callouts" != "x"; then
4819  with_max_callouts=`echo $with_max_callouts|
4820             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4821fi
4822if test "x$with_max_callouts" = "x" && test "x$DEFAULTwith_max_callouts" != "x"; then
4823  with_max_callouts=$DEFAULTwith_max_callouts
4824fi
4825
4826val_max_callouts=$with_max_callouts
4827
4828if test "x$with_max_players" != "x"; then
4829  with_max_players=`echo $with_max_players|
4830             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4831fi
4832if test "x$with_max_players" = "x" && test "x$DEFAULTwith_max_players" != "x"; then
4833  with_max_players=$DEFAULTwith_max_players
4834fi
4835
4836val_max_players=$with_max_players
4837
4838if test "x$with_max_local" != "x"; then
4839  with_max_local=`echo $with_max_local|
4840             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4841fi
4842if test "x$with_max_local" = "x" && test "x$DEFAULTwith_max_local" != "x"; then
4843  with_max_local=$DEFAULTwith_max_local
4844fi
4845
4846val_max_local=$with_max_local
4847
4848if test "x$with_allowed_ed_cmds" != "x"; then
4849  with_allowed_ed_cmds=`echo $with_allowed_ed_cmds|
4850             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4851fi
4852if test "x$with_allowed_ed_cmds" = "x" && test "x$DEFAULTwith_allowed_ed_cmds" != "x"; then
4853  with_allowed_ed_cmds=$DEFAULTwith_allowed_ed_cmds
4854fi
4855
4856val_allowed_ed_cmds=$with_allowed_ed_cmds
4857
4858if test "x$with_max_command_length" != "x"; then
4859  with_max_command_length=`echo $with_max_command_length|
4860             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4861fi
4862if test "x$with_max_command_length" = "x" && test "x$DEFAULTwith_max_command_length" != "x"; then
4863  with_max_command_length=$DEFAULTwith_max_command_length
4864fi
4865
4866val_max_command_length=$with_max_command_length
4867
4868if test "x$with_reserved_user_size" != "x"; then
4869  with_reserved_user_size=`echo $with_reserved_user_size|
4870             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4871fi
4872if test "x$with_reserved_user_size" = "x" && test "x$DEFAULTwith_reserved_user_size" != "x"; then
4873  with_reserved_user_size=$DEFAULTwith_reserved_user_size
4874fi
4875
4876val_reserved_user_size=$with_reserved_user_size
4877
4878if test "x$with_reserved_master_size" != "x"; then
4879  with_reserved_master_size=`echo $with_reserved_master_size|
4880             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4881fi
4882if test "x$with_reserved_master_size" = "x" && test "x$DEFAULTwith_reserved_master_size" != "x"; then
4883  with_reserved_master_size=$DEFAULTwith_reserved_master_size
4884fi
4885
4886val_reserved_master_size=$with_reserved_master_size
4887
4888if test "x$with_reserved_system_size" != "x"; then
4889  with_reserved_system_size=`echo $with_reserved_system_size|
4890             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4891fi
4892if test "x$with_reserved_system_size" = "x" && test "x$DEFAULTwith_reserved_system_size" != "x"; then
4893  with_reserved_system_size=$DEFAULTwith_reserved_system_size
4894fi
4895
4896val_reserved_system_size=$with_reserved_system_size
4897
4898if test "x$with_htable_size" != "x"; then
4899  with_htable_size=`echo $with_htable_size|
4900             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4901fi
4902if test "x$with_htable_size" = "x" && test "x$DEFAULTwith_htable_size" != "x"; then
4903  with_htable_size=$DEFAULTwith_htable_size
4904fi
4905
4906val_htable_size=$with_htable_size
4907
4908if test "x$with_itable_size" != "x"; then
4909  with_itable_size=`echo $with_itable_size|
4910             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4911fi
4912if test "x$with_itable_size" = "x" && test "x$DEFAULTwith_itable_size" != "x"; then
4913  with_itable_size=$DEFAULTwith_itable_size
4914fi
4915
4916val_itable_size=$with_itable_size
4917
4918if test "x$with_otable_size" != "x"; then
4919  with_otable_size=`echo $with_otable_size|
4920             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4921fi
4922if test "x$with_otable_size" = "x" && test "x$DEFAULTwith_otable_size" != "x"; then
4923  with_otable_size=$DEFAULTwith_otable_size
4924fi
4925
4926val_otable_size=$with_otable_size
4927
4928if test "x$with_defmax" != "x"; then
4929  with_defmax=`echo $with_defmax|
4930             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4931fi
4932if test "x$with_defmax" = "x" && test "x$DEFAULTwith_defmax" != "x"; then
4933  with_defmax=$DEFAULTwith_defmax
4934fi
4935
4936val_defmax=$with_defmax
4937
4938if test "x$with_apply_cache_bits" != "x"; then
4939  with_apply_cache_bits=`echo $with_apply_cache_bits|
4940             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4941fi
4942if test "x$with_apply_cache_bits" = "x" && test "x$DEFAULTwith_apply_cache_bits" != "x"; then
4943  with_apply_cache_bits=$DEFAULTwith_apply_cache_bits
4944fi
4945
4946val_apply_cache_bits=$with_apply_cache_bits
4947
4948if test "x$with_rxcache_table" != "x"; then
4949  with_rxcache_table=`echo $with_rxcache_table|
4950             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4951fi
4952if test "x$with_rxcache_table" = "x" && test "x$DEFAULTwith_rxcache_table" != "x"; then
4953  with_rxcache_table=$DEFAULTwith_rxcache_table
4954fi
4955
4956val_rxcache_table=$with_rxcache_table
4957
4958if test "x$with_max_byte_transfer" != "x"; then
4959  with_max_byte_transfer=`echo $with_max_byte_transfer|
4960             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4961fi
4962if test "x$with_max_byte_transfer" = "x" && test "x$DEFAULTwith_max_byte_transfer" != "x"; then
4963  with_max_byte_transfer=$DEFAULTwith_max_byte_transfer
4964fi
4965
4966val_max_byte_transfer=$with_max_byte_transfer
4967
4968if test "x$with_udp_port" != "x"; then
4969  with_udp_port=`echo $with_udp_port|
4970             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4971fi
4972if test "x$with_udp_port" = "x" && test "x$DEFAULTwith_udp_port" != "x"; then
4973  with_udp_port=$DEFAULTwith_udp_port
4974fi
4975
4976val_udp_port=$with_udp_port
4977
4978if test "x$with_set_buffer_size_max" != "x"; then
4979  with_set_buffer_size_max=`echo $with_set_buffer_size_max|
4980             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4981fi
4982if test "x$with_set_buffer_size_max" = "x" && test "x$DEFAULTwith_set_buffer_size_max" != "x"; then
4983  with_set_buffer_size_max=$DEFAULTwith_set_buffer_size_max
4984fi
4985
4986val_set_buffer_size_max=$with_set_buffer_size_max
4987
4988if test "x$with_min_malloced" != "x"; then
4989  with_min_malloced=`echo $with_min_malloced|
4990             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
4991fi
4992if test "x$with_min_malloced" = "x" && test "x$DEFAULTwith_min_malloced" != "x"; then
4993  with_min_malloced=$DEFAULTwith_min_malloced
4994fi
4995
4996val_min_malloced=$with_min_malloced
4997
4998if test "x$with_min_small_malloced" != "x"; then
4999  with_min_small_malloced=`echo $with_min_small_malloced|
5000             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
5001fi
5002if test "x$with_min_small_malloced" = "x" && test "x$DEFAULTwith_min_small_malloced" != "x"; then
5003  with_min_small_malloced=$DEFAULTwith_min_small_malloced
5004fi
5005
5006val_min_small_malloced=$with_min_small_malloced
5007
5008if test "x$with_hard_malloc_limit" != "x"; then
5009  with_hard_malloc_limit=`echo $with_hard_malloc_limit|
5010             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
5011fi
5012if test "x$with_hard_malloc_limit" = "x" && test "x$DEFAULTwith_hard_malloc_limit" != "x"; then
5013  with_hard_malloc_limit=$DEFAULTwith_hard_malloc_limit
5014fi
5015
5016val_hard_malloc_limit=$with_hard_malloc_limit
5017
5018if test "x$with_soft_malloc_limit" != "x"; then
5019  with_soft_malloc_limit=`echo $with_soft_malloc_limit|
5020             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
5021fi
5022if test "x$with_soft_malloc_limit" = "x" && test "x$DEFAULTwith_soft_malloc_limit" != "x"; then
5023  with_soft_malloc_limit=$DEFAULTwith_soft_malloc_limit
5024fi
5025
5026val_soft_malloc_limit=$with_soft_malloc_limit
5027
5028if test "x$with_total_trace_length" != "x"; then
5029  with_total_trace_length=`echo $with_total_trace_length|
5030             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
5031fi
5032if test "x$with_total_trace_length" = "x" && test "x$DEFAULTwith_total_trace_length" != "x"; then
5033  with_total_trace_length=$DEFAULTwith_total_trace_length
5034fi
5035
5036val_total_trace_length=$with_total_trace_length
5037
5038if test "x$with_pcre_recursion_limit" != "x"; then
5039  with_pcre_recursion_limit=`echo $with_pcre_recursion_limit|
5040             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
5041fi
5042if test "x$with_pcre_recursion_limit" = "x" && test "x$DEFAULTwith_pcre_recursion_limit" != "x"; then
5043  with_pcre_recursion_limit=$DEFAULTwith_pcre_recursion_limit
5044fi
5045
5046val_pcre_recursion_limit=$with_pcre_recursion_limit
5047
5048if test "x$with_max_net_connects" != "x"; then
5049  with_max_net_connects=`echo $with_max_net_connects|
5050             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
5051fi
5052if test "x$with_max_net_connects" = "x" && test "x$DEFAULTwith_max_net_connects" != "x"; then
5053  with_max_net_connects=$DEFAULTwith_max_net_connects
5054fi
5055
5056val_max_net_connects=$with_max_net_connects
5057
5058if test "x$with_random_period_length" != "x"; then
5059  with_random_period_length=`echo $with_random_period_length|
5060             sed -e 's/^\(-\?\(0x[0-9a-fA-F]\+\)\?[0-9]*\)[^0-9]\?.*$/\1/'`
5061fi
5062if test "x$with_random_period_length" = "x" && test "x$DEFAULTwith_random_period_length" != "x"; then
5063  with_random_period_length=$DEFAULTwith_random_period_length
5064fi
5065
5066val_random_period_length=$with_random_period_length
5067
5068
5069if test "x$cdef_access_control" = "x#undef"; then
5070  cdef_access_log="#undef"
5071  val_access_file=
5072  val_access_log=
5073fi
5074
5075if test "x$cdef_access_log" = "x#undef"; then
5076  val_access_log=
5077fi
5078
5079if test "x$cdef_rxcache_table" = "x#undef"; then
5080  val_rxcache_table=
5081fi
5082
5083if test "x$with_wizlist_file" != "xno"; then
5084  cdef_wizlist_file="#define"
5085  if test "x$with_wizlist_file" = "xyes"; then
5086    with_wizlist_file=""
5087  fi
5088else
5089  cdef_wizlist_file="#undef"
5090fi
5091
5092if test "x$cdef_wizlist_file" = "x#undef"; then
5093  val_wizlist_file=
5094fi
5095
5096if test "x$with_tls_keyfile" != "xno"; then
5097  cdef_tls_keyfile="#define"
5098else
5099  cdef_tls_keyfile="#undef"
5100fi
5101
5102if test "x$cdef_tls_keyfile" = "x#undef"; then
5103  val_tls_keyfile=
5104fi
5105
5106if test "x$with_tls_certfile" != "xno"; then
5107  cdef_tls_certfile="#define"
5108else
5109  cdef_tls_certfile="#undef"
5110fi
5111
5112if test "x$cdef_tls_certfile" = "x#undef"; then
5113  val_tls_certfile=
5114fi
5115
5116if test "x$with_tls_trustfile" != "xno"; then
5117  cdef_tls_trustfile="#define"
5118else
5119  cdef_tls_trustfile="#undef"
5120fi
5121
5122if test "x$cdef_tls_trustfile" = "x#undef"; then
5123  val_tls_trustfile=
5124fi
5125
5126if test "x$with_tls_trustdirectory" != "xno"; then
5127  cdef_tls_trustdirectory="#define"
5128else
5129  cdef_tls_trustdirectory="#undef"
5130fi
5131
5132if test "x$cdef_tls_trustdirectory" = "x#undef"; then
5133  val_tls_trustdirectory=
5134fi
5135
5136if test "x$with_tls_crlfile" != "xno"; then
5137  cdef_tls_crlfile="#define"
5138else
5139  cdef_tls_crlfile="#undef"
5140fi
5141
5142if test "x$cdef_tls_crlfile" = "x#undef"; then
5143  val_tls_crlfile=
5144fi
5145
5146if test "x$with_tls_crldirectory" != "xno"; then
5147  cdef_tls_crldirectory="#define"
5148else
5149  cdef_tls_crldirectory="#undef"
5150fi
5151
5152if test "x$cdef_tls_crldirectory" = "x#undef"; then
5153  val_tls_crldirectory=
5154fi
5155
5156if test "x$cdef_opcprof" = "x#undef"; then
5157  cdef_verbose_opcprof="#undef"
5158fi
5159
5160val_optimize=`echo ${val_optimize} | tr 'a-z' 'A-Z'`
5161
5162
5163ac_ext=c
5164ac_cpp='$CPP $CPPFLAGS'
5165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168if test -n "$ac_tool_prefix"; then
5169  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5170set dummy ${ac_tool_prefix}gcc; ac_word=$2
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
5173if ${ac_cv_prog_CC+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  if test -n "$CC"; then
5177  ac_cv_prog_CC="$CC" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182  IFS=$as_save_IFS
5183  test -z "$as_dir" && as_dir=.
5184    for ac_exec_ext in '' $ac_executable_extensions; do
5185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188    break 2
5189  fi
5190done
5191  done
5192IFS=$as_save_IFS
5193
5194fi
5195fi
5196CC=$ac_cv_prog_CC
5197if test -n "$CC"; then
5198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5199$as_echo "$CC" >&6; }
5200else
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203fi
5204
5205
5206fi
5207if test -z "$ac_cv_prog_CC"; then
5208  ac_ct_CC=$CC
5209  # Extract the first word of "gcc", so it can be a program name with args.
5210set dummy gcc; ac_word=$2
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212$as_echo_n "checking for $ac_word... " >&6; }
5213if ${ac_cv_prog_ac_ct_CC+:} false; then :
5214  $as_echo_n "(cached) " >&6
5215else
5216  if test -n "$ac_ct_CC"; then
5217  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5218else
5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222  IFS=$as_save_IFS
5223  test -z "$as_dir" && as_dir=.
5224    for ac_exec_ext in '' $ac_executable_extensions; do
5225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226    ac_cv_prog_ac_ct_CC="gcc"
5227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228    break 2
5229  fi
5230done
5231  done
5232IFS=$as_save_IFS
5233
5234fi
5235fi
5236ac_ct_CC=$ac_cv_prog_ac_ct_CC
5237if test -n "$ac_ct_CC"; then
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5239$as_echo "$ac_ct_CC" >&6; }
5240else
5241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242$as_echo "no" >&6; }
5243fi
5244
5245  if test "x$ac_ct_CC" = x; then
5246    CC=""
5247  else
5248    case $cross_compiling:$ac_tool_warned in
5249yes:)
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5252ac_tool_warned=yes ;;
5253esac
5254    CC=$ac_ct_CC
5255  fi
5256else
5257  CC="$ac_cv_prog_CC"
5258fi
5259
5260if test -z "$CC"; then
5261          if test -n "$ac_tool_prefix"; then
5262    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5263set dummy ${ac_tool_prefix}cc; ac_word=$2
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
5266if ${ac_cv_prog_CC+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  if test -n "$CC"; then
5270  ac_cv_prog_CC="$CC" # Let the user override the test.
5271else
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275  IFS=$as_save_IFS
5276  test -z "$as_dir" && as_dir=.
5277    for ac_exec_ext in '' $ac_executable_extensions; do
5278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279    ac_cv_prog_CC="${ac_tool_prefix}cc"
5280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281    break 2
5282  fi
5283done
5284  done
5285IFS=$as_save_IFS
5286
5287fi
5288fi
5289CC=$ac_cv_prog_CC
5290if test -n "$CC"; then
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5292$as_echo "$CC" >&6; }
5293else
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298
5299  fi
5300fi
5301if test -z "$CC"; then
5302  # Extract the first word of "cc", so it can be a program name with args.
5303set dummy cc; ac_word=$2
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305$as_echo_n "checking for $ac_word... " >&6; }
5306if ${ac_cv_prog_CC+:} false; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309  if test -n "$CC"; then
5310  ac_cv_prog_CC="$CC" # Let the user override the test.
5311else
5312  ac_prog_rejected=no
5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316  IFS=$as_save_IFS
5317  test -z "$as_dir" && as_dir=.
5318    for ac_exec_ext in '' $ac_executable_extensions; do
5319  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5321       ac_prog_rejected=yes
5322       continue
5323     fi
5324    ac_cv_prog_CC="cc"
5325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326    break 2
5327  fi
5328done
5329  done
5330IFS=$as_save_IFS
5331
5332if test $ac_prog_rejected = yes; then
5333  # We found a bogon in the path, so make sure we never use it.
5334  set dummy $ac_cv_prog_CC
5335  shift
5336  if test $# != 0; then
5337    # We chose a different compiler from the bogus one.
5338    # However, it has the same basename, so the bogon will be chosen
5339    # first if we set CC to just the basename; use the full file name.
5340    shift
5341    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5342  fi
5343fi
5344fi
5345fi
5346CC=$ac_cv_prog_CC
5347if test -n "$CC"; then
5348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5349$as_echo "$CC" >&6; }
5350else
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352$as_echo "no" >&6; }
5353fi
5354
5355
5356fi
5357if test -z "$CC"; then
5358  if test -n "$ac_tool_prefix"; then
5359  for ac_prog in cl.exe
5360  do
5361    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if ${ac_cv_prog_CC+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  if test -n "$CC"; then
5369  ac_cv_prog_CC="$CC" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374  IFS=$as_save_IFS
5375  test -z "$as_dir" && as_dir=.
5376    for ac_exec_ext in '' $ac_executable_extensions; do
5377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380    break 2
5381  fi
5382done
5383  done
5384IFS=$as_save_IFS
5385
5386fi
5387fi
5388CC=$ac_cv_prog_CC
5389if test -n "$CC"; then
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5391$as_echo "$CC" >&6; }
5392else
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395fi
5396
5397
5398    test -n "$CC" && break
5399  done
5400fi
5401if test -z "$CC"; then
5402  ac_ct_CC=$CC
5403  for ac_prog in cl.exe
5404do
5405  # Extract the first word of "$ac_prog", so it can be a program name with args.
5406set dummy $ac_prog; ac_word=$2
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408$as_echo_n "checking for $ac_word... " >&6; }
5409if ${ac_cv_prog_ac_ct_CC+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  if test -n "$ac_ct_CC"; then
5413  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418  IFS=$as_save_IFS
5419  test -z "$as_dir" && as_dir=.
5420    for ac_exec_ext in '' $ac_executable_extensions; do
5421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422    ac_cv_prog_ac_ct_CC="$ac_prog"
5423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424    break 2
5425  fi
5426done
5427  done
5428IFS=$as_save_IFS
5429
5430fi
5431fi
5432ac_ct_CC=$ac_cv_prog_ac_ct_CC
5433if test -n "$ac_ct_CC"; then
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5435$as_echo "$ac_ct_CC" >&6; }
5436else
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438$as_echo "no" >&6; }
5439fi
5440
5441
5442  test -n "$ac_ct_CC" && break
5443done
5444
5445  if test "x$ac_ct_CC" = x; then
5446    CC=""
5447  else
5448    case $cross_compiling:$ac_tool_warned in
5449yes:)
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5452ac_tool_warned=yes ;;
5453esac
5454    CC=$ac_ct_CC
5455  fi
5456fi
5457
5458fi
5459
5460
5461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5463as_fn_error $? "no acceptable C compiler found in \$PATH
5464See \`config.log' for more details" "$LINENO" 5; }
5465
5466# Provide some information about the compiler.
5467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5468set X $ac_compile
5469ac_compiler=$2
5470for ac_option in --version -v -V -qversion; do
5471  { { ac_try="$ac_compiler $ac_option >&5"
5472case "(($ac_try" in
5473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474  *) ac_try_echo=$ac_try;;
5475esac
5476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5477$as_echo "$ac_try_echo"; } >&5
5478  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5479  ac_status=$?
5480  if test -s conftest.err; then
5481    sed '10a\
5482... rest of stderr output deleted ...
5483         10q' conftest.err >conftest.er1
5484    cat conftest.er1 >&5
5485  fi
5486  rm -f conftest.er1 conftest.err
5487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5488  test $ac_status = 0; }
5489done
5490
5491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h.  */
5493
5494int
5495main ()
5496{
5497
5498  ;
5499  return 0;
5500}
5501_ACEOF
5502ac_clean_files_save=$ac_clean_files
5503ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5504# Try to create an executable without -o first, disregard a.out.
5505# It will help us diagnose broken compilers, and finding out an intuition
5506# of exeext.
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5508$as_echo_n "checking whether the C compiler works... " >&6; }
5509ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5510
5511# The possible output files:
5512ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5513
5514ac_rmfiles=
5515for ac_file in $ac_files
5516do
5517  case $ac_file in
5518    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5519    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5520  esac
5521done
5522rm -f $ac_rmfiles
5523
5524if { { ac_try="$ac_link_default"
5525case "(($ac_try" in
5526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527  *) ac_try_echo=$ac_try;;
5528esac
5529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5530$as_echo "$ac_try_echo"; } >&5
5531  (eval "$ac_link_default") 2>&5
5532  ac_status=$?
5533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5534  test $ac_status = 0; }; then :
5535  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5536# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5537# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5538# so that the user can short-circuit this test for compilers unknown to
5539# Autoconf.
5540for ac_file in $ac_files ''
5541do
5542  test -f "$ac_file" || continue
5543  case $ac_file in
5544    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5545	;;
5546    [ab].out )
5547	# We found the default executable, but exeext='' is most
5548	# certainly right.
5549	break;;
5550    *.* )
5551	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5552	then :; else
5553	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5554	fi
5555	# We set ac_cv_exeext here because the later test for it is not
5556	# safe: cross compilers may not add the suffix if given an `-o'
5557	# argument, so we may need to know it at that point already.
5558	# Even if this section looks crufty: it has the advantage of
5559	# actually working.
5560	break;;
5561    * )
5562	break;;
5563  esac
5564done
5565test "$ac_cv_exeext" = no && ac_cv_exeext=
5566
5567else
5568  ac_file=''
5569fi
5570if test -z "$ac_file"; then :
5571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
5573$as_echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5578as_fn_error 77 "C compiler cannot create executables
5579See \`config.log' for more details" "$LINENO" 5; }
5580else
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5582$as_echo "yes" >&6; }
5583fi
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5585$as_echo_n "checking for C compiler default output file name... " >&6; }
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5587$as_echo "$ac_file" >&6; }
5588ac_exeext=$ac_cv_exeext
5589
5590rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5591ac_clean_files=$ac_clean_files_save
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5593$as_echo_n "checking for suffix of executables... " >&6; }
5594if { { ac_try="$ac_link"
5595case "(($ac_try" in
5596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597  *) ac_try_echo=$ac_try;;
5598esac
5599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5600$as_echo "$ac_try_echo"; } >&5
5601  (eval "$ac_link") 2>&5
5602  ac_status=$?
5603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604  test $ac_status = 0; }; then :
5605  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5606# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5607# work properly (i.e., refer to `conftest.exe'), while it won't with
5608# `rm'.
5609for ac_file in conftest.exe conftest conftest.*; do
5610  test -f "$ac_file" || continue
5611  case $ac_file in
5612    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5613    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5614	  break;;
5615    * ) break;;
5616  esac
5617done
5618else
5619  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5621as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5622See \`config.log' for more details" "$LINENO" 5; }
5623fi
5624rm -f conftest conftest$ac_cv_exeext
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5626$as_echo "$ac_cv_exeext" >&6; }
5627
5628rm -f conftest.$ac_ext
5629EXEEXT=$ac_cv_exeext
5630ac_exeext=$EXEEXT
5631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h.  */
5633#include <stdio.h>
5634int
5635main ()
5636{
5637FILE *f = fopen ("conftest.out", "w");
5638 return ferror (f) || fclose (f) != 0;
5639
5640  ;
5641  return 0;
5642}
5643_ACEOF
5644ac_clean_files="$ac_clean_files conftest.out"
5645# Check that the compiler produces executables we can run.  If not, either
5646# the compiler is broken, or we cross compile.
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5648$as_echo_n "checking whether we are cross compiling... " >&6; }
5649if test "$cross_compiling" != yes; then
5650  { { ac_try="$ac_link"
5651case "(($ac_try" in
5652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653  *) ac_try_echo=$ac_try;;
5654esac
5655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5656$as_echo "$ac_try_echo"; } >&5
5657  (eval "$ac_link") 2>&5
5658  ac_status=$?
5659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660  test $ac_status = 0; }
5661  if { ac_try='./conftest$ac_cv_exeext'
5662  { { case "(($ac_try" in
5663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664  *) ac_try_echo=$ac_try;;
5665esac
5666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5667$as_echo "$ac_try_echo"; } >&5
5668  (eval "$ac_try") 2>&5
5669  ac_status=$?
5670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671  test $ac_status = 0; }; }; then
5672    cross_compiling=no
5673  else
5674    if test "$cross_compiling" = maybe; then
5675	cross_compiling=yes
5676    else
5677	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5679as_fn_error $? "cannot run C compiled programs.
5680If you meant to cross compile, use \`--host'.
5681See \`config.log' for more details" "$LINENO" 5; }
5682    fi
5683  fi
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5686$as_echo "$cross_compiling" >&6; }
5687
5688rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5689ac_clean_files=$ac_clean_files_save
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5691$as_echo_n "checking for suffix of object files... " >&6; }
5692if ${ac_cv_objext+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697
5698int
5699main ()
5700{
5701
5702  ;
5703  return 0;
5704}
5705_ACEOF
5706rm -f conftest.o conftest.obj
5707if { { ac_try="$ac_compile"
5708case "(($ac_try" in
5709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710  *) ac_try_echo=$ac_try;;
5711esac
5712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5713$as_echo "$ac_try_echo"; } >&5
5714  (eval "$ac_compile") 2>&5
5715  ac_status=$?
5716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5717  test $ac_status = 0; }; then :
5718  for ac_file in conftest.o conftest.obj conftest.*; do
5719  test -f "$ac_file" || continue;
5720  case $ac_file in
5721    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5722    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5723       break;;
5724  esac
5725done
5726else
5727  $as_echo "$as_me: failed program was:" >&5
5728sed 's/^/| /' conftest.$ac_ext >&5
5729
5730{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732as_fn_error $? "cannot compute suffix of object files: cannot compile
5733See \`config.log' for more details" "$LINENO" 5; }
5734fi
5735rm -f conftest.$ac_cv_objext conftest.$ac_ext
5736fi
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5738$as_echo "$ac_cv_objext" >&6; }
5739OBJEXT=$ac_cv_objext
5740ac_objext=$OBJEXT
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5742$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5743if ${ac_cv_c_compiler_gnu+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747/* end confdefs.h.  */
5748
5749int
5750main ()
5751{
5752#ifndef __GNUC__
5753       choke me
5754#endif
5755
5756  ;
5757  return 0;
5758}
5759_ACEOF
5760if ac_fn_c_try_compile "$LINENO"; then :
5761  ac_compiler_gnu=yes
5762else
5763  ac_compiler_gnu=no
5764fi
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766ac_cv_c_compiler_gnu=$ac_compiler_gnu
5767
5768fi
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5770$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5771if test $ac_compiler_gnu = yes; then
5772  GCC=yes
5773else
5774  GCC=
5775fi
5776ac_test_CFLAGS=${CFLAGS+set}
5777ac_save_CFLAGS=$CFLAGS
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5779$as_echo_n "checking whether $CC accepts -g... " >&6; }
5780if ${ac_cv_prog_cc_g+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  ac_save_c_werror_flag=$ac_c_werror_flag
5784   ac_c_werror_flag=yes
5785   ac_cv_prog_cc_g=no
5786   CFLAGS="-g"
5787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789
5790int
5791main ()
5792{
5793
5794  ;
5795  return 0;
5796}
5797_ACEOF
5798if ac_fn_c_try_compile "$LINENO"; then :
5799  ac_cv_prog_cc_g=yes
5800else
5801  CFLAGS=""
5802      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804
5805int
5806main ()
5807{
5808
5809  ;
5810  return 0;
5811}
5812_ACEOF
5813if ac_fn_c_try_compile "$LINENO"; then :
5814
5815else
5816  ac_c_werror_flag=$ac_save_c_werror_flag
5817	 CFLAGS="-g"
5818	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819/* end confdefs.h.  */
5820
5821int
5822main ()
5823{
5824
5825  ;
5826  return 0;
5827}
5828_ACEOF
5829if ac_fn_c_try_compile "$LINENO"; then :
5830  ac_cv_prog_cc_g=yes
5831fi
5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833fi
5834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835fi
5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837   ac_c_werror_flag=$ac_save_c_werror_flag
5838fi
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5840$as_echo "$ac_cv_prog_cc_g" >&6; }
5841if test "$ac_test_CFLAGS" = set; then
5842  CFLAGS=$ac_save_CFLAGS
5843elif test $ac_cv_prog_cc_g = yes; then
5844  if test "$GCC" = yes; then
5845    CFLAGS="-g -O2"
5846  else
5847    CFLAGS="-g"
5848  fi
5849else
5850  if test "$GCC" = yes; then
5851    CFLAGS="-O2"
5852  else
5853    CFLAGS=
5854  fi
5855fi
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5858if ${ac_cv_prog_cc_c89+:} false; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  ac_cv_prog_cc_c89=no
5862ac_save_CC=$CC
5863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h.  */
5865#include <stdarg.h>
5866#include <stdio.h>
5867#include <sys/types.h>
5868#include <sys/stat.h>
5869/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5870struct buf { int x; };
5871FILE * (*rcsopen) (struct buf *, struct stat *, int);
5872static char *e (p, i)
5873     char **p;
5874     int i;
5875{
5876  return p[i];
5877}
5878static char *f (char * (*g) (char **, int), char **p, ...)
5879{
5880  char *s;
5881  va_list v;
5882  va_start (v,p);
5883  s = g (p, va_arg (v,int));
5884  va_end (v);
5885  return s;
5886}
5887
5888/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5889   function prototypes and stuff, but not '\xHH' hex character constants.
5890   These don't provoke an error unfortunately, instead are silently treated
5891   as 'x'.  The following induces an error, until -std is added to get
5892   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5893   array size at least.  It's necessary to write '\x00'==0 to get something
5894   that's true only with -std.  */
5895int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5896
5897/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5898   inside strings and character constants.  */
5899#define FOO(x) 'x'
5900int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5901
5902int test (int i, double x);
5903struct s1 {int (*f) (int a);};
5904struct s2 {int (*f) (double a);};
5905int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5906int argc;
5907char **argv;
5908int
5909main ()
5910{
5911return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5912  ;
5913  return 0;
5914}
5915_ACEOF
5916for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5917	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5918do
5919  CC="$ac_save_CC $ac_arg"
5920  if ac_fn_c_try_compile "$LINENO"; then :
5921  ac_cv_prog_cc_c89=$ac_arg
5922fi
5923rm -f core conftest.err conftest.$ac_objext
5924  test "x$ac_cv_prog_cc_c89" != "xno" && break
5925done
5926rm -f conftest.$ac_ext
5927CC=$ac_save_CC
5928
5929fi
5930# AC_CACHE_VAL
5931case "x$ac_cv_prog_cc_c89" in
5932  x)
5933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5934$as_echo "none needed" >&6; } ;;
5935  xno)
5936    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5937$as_echo "unsupported" >&6; } ;;
5938  *)
5939    CC="$CC $ac_cv_prog_cc_c89"
5940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5941$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5942esac
5943if test "x$ac_cv_prog_cc_c89" != xno; then :
5944
5945fi
5946
5947ac_ext=c
5948ac_cpp='$CPP $CPPFLAGS'
5949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951ac_compiler_gnu=$ac_cv_c_compiler_gnu
5952
5953
5954# check for ANSI-C  (for compiling LDMUD project)
5955   case $ac_cv_prog_cc_stdc in #(
5956  no) :
5957    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5958  *) :
5959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5960$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5961if ${ac_cv_prog_cc_c99+:} false; then :
5962  $as_echo_n "(cached) " >&6
5963else
5964  ac_cv_prog_cc_c99=no
5965ac_save_CC=$CC
5966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h.  */
5968#include <stdarg.h>
5969#include <stdbool.h>
5970#include <stdlib.h>
5971#include <wchar.h>
5972#include <stdio.h>
5973
5974// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5975#define debug(...) fprintf (stderr, __VA_ARGS__)
5976#define showlist(...) puts (#__VA_ARGS__)
5977#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5978static void
5979test_varargs_macros (void)
5980{
5981  int x = 1234;
5982  int y = 5678;
5983  debug ("Flag");
5984  debug ("X = %d\n", x);
5985  showlist (The first, second, and third items.);
5986  report (x>y, "x is %d but y is %d", x, y);
5987}
5988
5989// Check long long types.
5990#define BIG64 18446744073709551615ull
5991#define BIG32 4294967295ul
5992#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5993#if !BIG_OK
5994  your preprocessor is broken;
5995#endif
5996#if BIG_OK
5997#else
5998  your preprocessor is broken;
5999#endif
6000static long long int bignum = -9223372036854775807LL;
6001static unsigned long long int ubignum = BIG64;
6002
6003struct incomplete_array
6004{
6005  int datasize;
6006  double data[];
6007};
6008
6009struct named_init {
6010  int number;
6011  const wchar_t *name;
6012  double average;
6013};
6014
6015typedef const char *ccp;
6016
6017static inline int
6018test_restrict (ccp restrict text)
6019{
6020  // See if C++-style comments work.
6021  // Iterate through items via the restricted pointer.
6022  // Also check for declarations in for loops.
6023  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6024    continue;
6025  return 0;
6026}
6027
6028// Check varargs and va_copy.
6029static void
6030test_varargs (const char *format, ...)
6031{
6032  va_list args;
6033  va_start (args, format);
6034  va_list args_copy;
6035  va_copy (args_copy, args);
6036
6037  const char *str;
6038  int number;
6039  float fnumber;
6040
6041  while (*format)
6042    {
6043      switch (*format++)
6044	{
6045	case 's': // string
6046	  str = va_arg (args_copy, const char *);
6047	  break;
6048	case 'd': // int
6049	  number = va_arg (args_copy, int);
6050	  break;
6051	case 'f': // float
6052	  fnumber = va_arg (args_copy, double);
6053	  break;
6054	default:
6055	  break;
6056	}
6057    }
6058  va_end (args_copy);
6059  va_end (args);
6060}
6061
6062int
6063main ()
6064{
6065
6066  // Check bool.
6067  _Bool success = false;
6068
6069  // Check restrict.
6070  if (test_restrict ("String literal") == 0)
6071    success = true;
6072  char *restrict newvar = "Another string";
6073
6074  // Check varargs.
6075  test_varargs ("s, d' f .", "string", 65, 34.234);
6076  test_varargs_macros ();
6077
6078  // Check flexible array members.
6079  struct incomplete_array *ia =
6080    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6081  ia->datasize = 10;
6082  for (int i = 0; i < ia->datasize; ++i)
6083    ia->data[i] = i * 1.234;
6084
6085  // Check named initializers.
6086  struct named_init ni = {
6087    .number = 34,
6088    .name = L"Test wide string",
6089    .average = 543.34343,
6090  };
6091
6092  ni.number = 58;
6093
6094  int dynamic_array[ni.number];
6095  dynamic_array[ni.number - 1] = 543;
6096
6097  // work around unused variable warnings
6098  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6099	  || dynamic_array[ni.number - 1] != 543);
6100
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6106do
6107  CC="$ac_save_CC $ac_arg"
6108  if ac_fn_c_try_compile "$LINENO"; then :
6109  ac_cv_prog_cc_c99=$ac_arg
6110fi
6111rm -f core conftest.err conftest.$ac_objext
6112  test "x$ac_cv_prog_cc_c99" != "xno" && break
6113done
6114rm -f conftest.$ac_ext
6115CC=$ac_save_CC
6116
6117fi
6118# AC_CACHE_VAL
6119case "x$ac_cv_prog_cc_c99" in
6120  x)
6121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6122$as_echo "none needed" >&6; } ;;
6123  xno)
6124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6125$as_echo "unsupported" >&6; } ;;
6126  *)
6127    CC="$CC $ac_cv_prog_cc_c99"
6128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6129$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6130esac
6131if test "x$ac_cv_prog_cc_c99" != xno; then :
6132  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6133else
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6135$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6136if ${ac_cv_prog_cc_c89+:} false; then :
6137  $as_echo_n "(cached) " >&6
6138else
6139  ac_cv_prog_cc_c89=no
6140ac_save_CC=$CC
6141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143#include <stdarg.h>
6144#include <stdio.h>
6145#include <sys/types.h>
6146#include <sys/stat.h>
6147/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6148struct buf { int x; };
6149FILE * (*rcsopen) (struct buf *, struct stat *, int);
6150static char *e (p, i)
6151     char **p;
6152     int i;
6153{
6154  return p[i];
6155}
6156static char *f (char * (*g) (char **, int), char **p, ...)
6157{
6158  char *s;
6159  va_list v;
6160  va_start (v,p);
6161  s = g (p, va_arg (v,int));
6162  va_end (v);
6163  return s;
6164}
6165
6166/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6167   function prototypes and stuff, but not '\xHH' hex character constants.
6168   These don't provoke an error unfortunately, instead are silently treated
6169   as 'x'.  The following induces an error, until -std is added to get
6170   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6171   array size at least.  It's necessary to write '\x00'==0 to get something
6172   that's true only with -std.  */
6173int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6174
6175/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6176   inside strings and character constants.  */
6177#define FOO(x) 'x'
6178int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6179
6180int test (int i, double x);
6181struct s1 {int (*f) (int a);};
6182struct s2 {int (*f) (double a);};
6183int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6184int argc;
6185char **argv;
6186int
6187main ()
6188{
6189return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6190  ;
6191  return 0;
6192}
6193_ACEOF
6194for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6195	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6196do
6197  CC="$ac_save_CC $ac_arg"
6198  if ac_fn_c_try_compile "$LINENO"; then :
6199  ac_cv_prog_cc_c89=$ac_arg
6200fi
6201rm -f core conftest.err conftest.$ac_objext
6202  test "x$ac_cv_prog_cc_c89" != "xno" && break
6203done
6204rm -f conftest.$ac_ext
6205CC=$ac_save_CC
6206
6207fi
6208# AC_CACHE_VAL
6209case "x$ac_cv_prog_cc_c89" in
6210  x)
6211    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6212$as_echo "none needed" >&6; } ;;
6213  xno)
6214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6215$as_echo "unsupported" >&6; } ;;
6216  *)
6217    CC="$CC $ac_cv_prog_cc_c89"
6218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6219$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6220esac
6221if test "x$ac_cv_prog_cc_c89" != xno; then :
6222  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6223else
6224  ac_cv_prog_cc_stdc=no
6225fi
6226
6227fi
6228 ;;
6229esac
6230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6231$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6232  if ${ac_cv_prog_cc_stdc+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234fi
6235
6236  case $ac_cv_prog_cc_stdc in #(
6237  no) :
6238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6239$as_echo "unsupported" >&6; } ;; #(
6240  '') :
6241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6242$as_echo "none needed" >&6; } ;; #(
6243  *) :
6244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6245$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6246esac
6247
6248if test "${ac_cv_prog_cc_stdc}" = "no"; then
6249  as_fn_error $? "You need an ANSI-C89 or ISO-C (C99) compiler! sorry.." "$LINENO" 5
6250fi
6251
6252# --- check for support of various command line switches ---
6253# -fwrapv is currently needed to enforce defined signed integr overflow (wrap)
6254# in gcc.
6255
6256
6257    ld_cc_switch_savecflags="$CFLAGS"
6258    CFLAGS="${CFLAGS} -fwrapv"
6259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fwrapv" >&5
6260$as_echo_n "checking whether compiler supports -fwrapv... " >&6; }
6261    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263
6264int
6265main ()
6266{
6267
6268  ;
6269  return 0;
6270}
6271_ACEOF
6272if ac_fn_c_try_compile "$LINENO"; then :
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6274$as_echo "yes" >&6; }
6275      CFLAGS="$ld_cc_switch_savecflags"
6276      for v in EXTRA_CFLAGS CFLAGS; do
6277           todo="$v=\"\$$v -fwrapv\""
6278           eval "$todo";
6279      done
6280else
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282$as_echo "no" >&6; }
6283      CFLAGS="$ld_cc_switch_savecflags"
6284
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287
6288
6289# gcc should warn about optimizations based on the assumption, signed integers
6290# do not overflow/wrap.
6291
6292    ld_cc_switch_savecflags="$CFLAGS"
6293    CFLAGS="${CFLAGS} -Wall"
6294    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
6295$as_echo_n "checking whether compiler supports -Wall... " >&6; }
6296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h.  */
6298
6299int
6300main ()
6301{
6302
6303  ;
6304  return 0;
6305}
6306_ACEOF
6307if ac_fn_c_try_compile "$LINENO"; then :
6308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6309$as_echo "yes" >&6; }
6310      CFLAGS="$ld_cc_switch_savecflags"
6311      for v in WCFLAGS; do
6312           todo="$v=\"\$$v -Wall\""
6313           eval "$todo";
6314      done
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318      CFLAGS="$ld_cc_switch_savecflags"
6319
6320fi
6321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322
6323
6324
6325    ld_cc_switch_savecflags="$CFLAGS"
6326    CFLAGS="${CFLAGS} -Wparentheses"
6327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wparentheses" >&5
6328$as_echo_n "checking whether compiler supports -Wparentheses... " >&6; }
6329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330/* end confdefs.h.  */
6331
6332int
6333main ()
6334{
6335
6336  ;
6337  return 0;
6338}
6339_ACEOF
6340if ac_fn_c_try_compile "$LINENO"; then :
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6342$as_echo "yes" >&6; }
6343      CFLAGS="$ld_cc_switch_savecflags"
6344      for v in WCFLAGS; do
6345           todo="$v=\"\$$v -Wparentheses\""
6346           eval "$todo";
6347      done
6348else
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350$as_echo "no" >&6; }
6351      CFLAGS="$ld_cc_switch_savecflags"
6352
6353fi
6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355
6356
6357
6358    ld_cc_switch_savecflags="$CFLAGS"
6359    CFLAGS="${CFLAGS} -Wshadow"
6360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshadow" >&5
6361$as_echo_n "checking whether compiler supports -Wshadow... " >&6; }
6362    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363/* end confdefs.h.  */
6364
6365int
6366main ()
6367{
6368
6369  ;
6370  return 0;
6371}
6372_ACEOF
6373if ac_fn_c_try_compile "$LINENO"; then :
6374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6375$as_echo "yes" >&6; }
6376      CFLAGS="$ld_cc_switch_savecflags"
6377      for v in WCFLAGS; do
6378           todo="$v=\"\$$v -Wshadow\""
6379           eval "$todo";
6380      done
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384      CFLAGS="$ld_cc_switch_savecflags"
6385
6386fi
6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388
6389
6390
6391    ld_cc_switch_savecflags="$CFLAGS"
6392    CFLAGS="${CFLAGS} -Wstrict-overflow=2"
6393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wstrict-overflow=2" >&5
6394$as_echo_n "checking whether compiler supports -Wstrict-overflow=2... " >&6; }
6395    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397
6398int
6399main ()
6400{
6401
6402  ;
6403  return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6408$as_echo "yes" >&6; }
6409      CFLAGS="$ld_cc_switch_savecflags"
6410      for v in WCFLAGS; do
6411           todo="$v=\"\$$v -Wstrict-overflow=2\""
6412           eval "$todo";
6413      done
6414else
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417      CFLAGS="$ld_cc_switch_savecflags"
6418
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421
6422
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking warning CFLAGS" >&5
6424$as_echo_n "checking warning CFLAGS... " >&6; }
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WCFLAGS" >&5
6426$as_echo "$WCFLAGS" >&6; }
6427
6428# does the compile have an inline keyword?
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6430$as_echo_n "checking for inline... " >&6; }
6431if ${ac_cv_c_inline+:} false; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434  ac_cv_c_inline=no
6435for ac_kw in inline __inline__ __inline; do
6436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h.  */
6438#ifndef __cplusplus
6439typedef int foo_t;
6440static $ac_kw foo_t static_foo () {return 0; }
6441$ac_kw foo_t foo () {return 0; }
6442#endif
6443
6444_ACEOF
6445if ac_fn_c_try_compile "$LINENO"; then :
6446  ac_cv_c_inline=$ac_kw
6447fi
6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449  test "$ac_cv_c_inline" != no && break
6450done
6451
6452fi
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6454$as_echo "$ac_cv_c_inline" >&6; }
6455
6456case $ac_cv_c_inline in
6457  inline | yes) ;;
6458  *)
6459    case $ac_cv_c_inline in
6460      no) ac_val=;;
6461      *) ac_val=$ac_cv_c_inline;;
6462    esac
6463    cat >>confdefs.h <<_ACEOF
6464#ifndef __cplusplus
6465#define inline $ac_val
6466#endif
6467_ACEOF
6468    ;;
6469esac
6470
6471if test "x$ac_cv_c_inline" != "xno"; then
6472
6473$as_echo "#define HAS_INLINE 1" >>confdefs.h
6474
6475fi
6476
6477# does the compile have an restrict keyword?
6478# temporarily deactivated because it introduces an #if defined x into
6479# machine.h and mkfunc.c can't deal with 'defined' without parentheses.
6480#AC_C_RESTRICT
6481
6482# does the compile have an typeof keyword?
6483
6484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
6485$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
6486if ${ac_cv_c_typeof+:} false; then :
6487  $as_echo_n "(cached) " >&6
6488else
6489  ac_cv_c_typeof=no
6490     for ac_kw in typeof __typeof__ no; do
6491       test $ac_kw = no && break
6492       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h.  */
6494
6495int
6496main ()
6497{
6498
6499	   int value;
6500	   typedef struct {
6501		   char a [1
6502			   + ! (($ac_kw (value))
6503				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
6504				 ? ($ac_kw (value)) - 1
6505				 : ~ (~ ($ac_kw (value)) 0
6506				      << sizeof ($ac_kw (value)))))]; }
6507	      ac__typeof_type_;
6508	   return
6509	     (! ((void) ((ac__typeof_type_ *) 0), 0));
6510
6511  ;
6512  return 0;
6513}
6514_ACEOF
6515if ac_fn_c_try_compile "$LINENO"; then :
6516  ac_cv_c_typeof=$ac_kw
6517fi
6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519       test $ac_cv_c_typeof != no && break
6520     done
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
6523$as_echo "$ac_cv_c_typeof" >&6; }
6524  if test $ac_cv_c_typeof != no; then
6525
6526$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
6527
6528    if test $ac_cv_c_typeof != typeof; then
6529
6530cat >>confdefs.h <<_ACEOF
6531#define typeof $ac_cv_c_typeof
6532_ACEOF
6533
6534    fi
6535  fi
6536
6537
6538# does the preprocessor support the stringenizing operator?
6539ac_ext=c
6540ac_cpp='$CPP $CPPFLAGS'
6541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6545$as_echo_n "checking how to run the C preprocessor... " >&6; }
6546# On Suns, sometimes $CPP names a directory.
6547if test -n "$CPP" && test -d "$CPP"; then
6548  CPP=
6549fi
6550if test -z "$CPP"; then
6551  if ${ac_cv_prog_CPP+:} false; then :
6552  $as_echo_n "(cached) " >&6
6553else
6554      # Double quotes because CPP needs to be expanded
6555    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6556    do
6557      ac_preproc_ok=false
6558for ac_c_preproc_warn_flag in '' yes
6559do
6560  # Use a header file that comes with gcc, so configuring glibc
6561  # with a fresh cross-compiler works.
6562  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6563  # <limits.h> exists even on freestanding compilers.
6564  # On the NeXT, cc -E runs the code through the compiler's parser,
6565  # not just through cpp. "Syntax error" is here to catch this case.
6566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567/* end confdefs.h.  */
6568#ifdef __STDC__
6569# include <limits.h>
6570#else
6571# include <assert.h>
6572#endif
6573		     Syntax error
6574_ACEOF
6575if ac_fn_c_try_cpp "$LINENO"; then :
6576
6577else
6578  # Broken: fails on valid input.
6579continue
6580fi
6581rm -f conftest.err conftest.i conftest.$ac_ext
6582
6583  # OK, works on sane cases.  Now check whether nonexistent headers
6584  # can be detected and how.
6585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h.  */
6587#include <ac_nonexistent.h>
6588_ACEOF
6589if ac_fn_c_try_cpp "$LINENO"; then :
6590  # Broken: success on invalid input.
6591continue
6592else
6593  # Passes both tests.
6594ac_preproc_ok=:
6595break
6596fi
6597rm -f conftest.err conftest.i conftest.$ac_ext
6598
6599done
6600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6601rm -f conftest.i conftest.err conftest.$ac_ext
6602if $ac_preproc_ok; then :
6603  break
6604fi
6605
6606    done
6607    ac_cv_prog_CPP=$CPP
6608
6609fi
6610  CPP=$ac_cv_prog_CPP
6611else
6612  ac_cv_prog_CPP=$CPP
6613fi
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6615$as_echo "$CPP" >&6; }
6616ac_preproc_ok=false
6617for ac_c_preproc_warn_flag in '' yes
6618do
6619  # Use a header file that comes with gcc, so configuring glibc
6620  # with a fresh cross-compiler works.
6621  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622  # <limits.h> exists even on freestanding compilers.
6623  # On the NeXT, cc -E runs the code through the compiler's parser,
6624  # not just through cpp. "Syntax error" is here to catch this case.
6625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626/* end confdefs.h.  */
6627#ifdef __STDC__
6628# include <limits.h>
6629#else
6630# include <assert.h>
6631#endif
6632		     Syntax error
6633_ACEOF
6634if ac_fn_c_try_cpp "$LINENO"; then :
6635
6636else
6637  # Broken: fails on valid input.
6638continue
6639fi
6640rm -f conftest.err conftest.i conftest.$ac_ext
6641
6642  # OK, works on sane cases.  Now check whether nonexistent headers
6643  # can be detected and how.
6644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645/* end confdefs.h.  */
6646#include <ac_nonexistent.h>
6647_ACEOF
6648if ac_fn_c_try_cpp "$LINENO"; then :
6649  # Broken: success on invalid input.
6650continue
6651else
6652  # Passes both tests.
6653ac_preproc_ok=:
6654break
6655fi
6656rm -f conftest.err conftest.i conftest.$ac_ext
6657
6658done
6659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6660rm -f conftest.i conftest.err conftest.$ac_ext
6661if $ac_preproc_ok; then :
6662
6663else
6664  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6666as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6667See \`config.log' for more details" "$LINENO" 5; }
6668fi
6669
6670ac_ext=c
6671ac_cpp='$CPP $CPPFLAGS'
6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674ac_compiler_gnu=$ac_cv_c_compiler_gnu
6675
6676
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6678$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6679if ${ac_cv_path_GREP+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  if test -z "$GREP"; then
6683  ac_path_GREP_found=false
6684  # Loop through the user's path and test for each of PROGNAME-LIST
6685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6687do
6688  IFS=$as_save_IFS
6689  test -z "$as_dir" && as_dir=.
6690    for ac_prog in grep ggrep; do
6691    for ac_exec_ext in '' $ac_executable_extensions; do
6692      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6693      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6694# Check for GNU ac_path_GREP and select it if it is found.
6695  # Check for GNU $ac_path_GREP
6696case `"$ac_path_GREP" --version 2>&1` in
6697*GNU*)
6698  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6699*)
6700  ac_count=0
6701  $as_echo_n 0123456789 >"conftest.in"
6702  while :
6703  do
6704    cat "conftest.in" "conftest.in" >"conftest.tmp"
6705    mv "conftest.tmp" "conftest.in"
6706    cp "conftest.in" "conftest.nl"
6707    $as_echo 'GREP' >> "conftest.nl"
6708    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6709    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6710    as_fn_arith $ac_count + 1 && ac_count=$as_val
6711    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6712      # Best one so far, save it but keep looking for a better one
6713      ac_cv_path_GREP="$ac_path_GREP"
6714      ac_path_GREP_max=$ac_count
6715    fi
6716    # 10*(2^10) chars as input seems more than enough
6717    test $ac_count -gt 10 && break
6718  done
6719  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6720esac
6721
6722      $ac_path_GREP_found && break 3
6723    done
6724  done
6725  done
6726IFS=$as_save_IFS
6727  if test -z "$ac_cv_path_GREP"; then
6728    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6729  fi
6730else
6731  ac_cv_path_GREP=$GREP
6732fi
6733
6734fi
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6736$as_echo "$ac_cv_path_GREP" >&6; }
6737 GREP="$ac_cv_path_GREP"
6738
6739
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6741$as_echo_n "checking for egrep... " >&6; }
6742if ${ac_cv_path_EGREP+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6746   then ac_cv_path_EGREP="$GREP -E"
6747   else
6748     if test -z "$EGREP"; then
6749  ac_path_EGREP_found=false
6750  # Loop through the user's path and test for each of PROGNAME-LIST
6751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756    for ac_prog in egrep; do
6757    for ac_exec_ext in '' $ac_executable_extensions; do
6758      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6759      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6760# Check for GNU ac_path_EGREP and select it if it is found.
6761  # Check for GNU $ac_path_EGREP
6762case `"$ac_path_EGREP" --version 2>&1` in
6763*GNU*)
6764  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6765*)
6766  ac_count=0
6767  $as_echo_n 0123456789 >"conftest.in"
6768  while :
6769  do
6770    cat "conftest.in" "conftest.in" >"conftest.tmp"
6771    mv "conftest.tmp" "conftest.in"
6772    cp "conftest.in" "conftest.nl"
6773    $as_echo 'EGREP' >> "conftest.nl"
6774    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6775    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6776    as_fn_arith $ac_count + 1 && ac_count=$as_val
6777    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6778      # Best one so far, save it but keep looking for a better one
6779      ac_cv_path_EGREP="$ac_path_EGREP"
6780      ac_path_EGREP_max=$ac_count
6781    fi
6782    # 10*(2^10) chars as input seems more than enough
6783    test $ac_count -gt 10 && break
6784  done
6785  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6786esac
6787
6788      $ac_path_EGREP_found && break 3
6789    done
6790  done
6791  done
6792IFS=$as_save_IFS
6793  if test -z "$ac_cv_path_EGREP"; then
6794    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6795  fi
6796else
6797  ac_cv_path_EGREP=$EGREP
6798fi
6799
6800   fi
6801fi
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6803$as_echo "$ac_cv_path_EGREP" >&6; }
6804 EGREP="$ac_cv_path_EGREP"
6805
6806
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6808$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6809if ${ac_cv_c_stringize+:} false; then :
6810  $as_echo_n "(cached) " >&6
6811else
6812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813/* end confdefs.h.  */
6814#define x(y) #y
6815
6816char *s = x(teststring);
6817_ACEOF
6818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6819  $EGREP "#teststring" >/dev/null 2>&1; then :
6820  ac_cv_c_stringize=no
6821else
6822  ac_cv_c_stringize=yes
6823fi
6824rm -f conftest*
6825
6826fi
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6828$as_echo "$ac_cv_c_stringize" >&6; }
6829if test $ac_cv_c_stringize = yes; then
6830
6831$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
6832
6833fi
6834
6835
6836# does the compiler support variable length arrays?
6837
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
6839$as_echo_n "checking for variable-length arrays... " >&6; }
6840if ${ac_cv_c_vararrays+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h.  */
6845
6846int
6847main ()
6848{
6849static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
6850  ;
6851  return 0;
6852}
6853_ACEOF
6854if ac_fn_c_try_compile "$LINENO"; then :
6855  ac_cv_c_vararrays=yes
6856else
6857  ac_cv_c_vararrays=no
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
6862$as_echo "$ac_cv_c_vararrays" >&6; }
6863  if test $ac_cv_c_vararrays = yes; then
6864
6865$as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h
6866
6867  fi
6868
6869
6870# does the compuler support the volatile keyword?
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6872$as_echo_n "checking for working volatile... " >&6; }
6873if ${ac_cv_c_volatile+:} false; then :
6874  $as_echo_n "(cached) " >&6
6875else
6876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877/* end confdefs.h.  */
6878
6879int
6880main ()
6881{
6882
6883volatile int x;
6884int * volatile y = (int *) 0;
6885return !x && !y;
6886  ;
6887  return 0;
6888}
6889_ACEOF
6890if ac_fn_c_try_compile "$LINENO"; then :
6891  ac_cv_c_volatile=yes
6892else
6893  ac_cv_c_volatile=no
6894fi
6895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896fi
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6898$as_echo "$ac_cv_c_volatile" >&6; }
6899if test $ac_cv_c_volatile = no; then
6900
6901$as_echo "#define volatile /**/" >>confdefs.h
6902
6903fi
6904
6905
6906# check for some types
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6908$as_echo_n "checking for ANSI C header files... " >&6; }
6909if ${ac_cv_header_stdc+:} false; then :
6910  $as_echo_n "(cached) " >&6
6911else
6912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h.  */
6914#include <stdlib.h>
6915#include <stdarg.h>
6916#include <string.h>
6917#include <float.h>
6918
6919int
6920main ()
6921{
6922
6923  ;
6924  return 0;
6925}
6926_ACEOF
6927if ac_fn_c_try_compile "$LINENO"; then :
6928  ac_cv_header_stdc=yes
6929else
6930  ac_cv_header_stdc=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933
6934if test $ac_cv_header_stdc = yes; then
6935  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938#include <string.h>
6939
6940_ACEOF
6941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942  $EGREP "memchr" >/dev/null 2>&1; then :
6943
6944else
6945  ac_cv_header_stdc=no
6946fi
6947rm -f conftest*
6948
6949fi
6950
6951if test $ac_cv_header_stdc = yes; then
6952  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955#include <stdlib.h>
6956
6957_ACEOF
6958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959  $EGREP "free" >/dev/null 2>&1; then :
6960
6961else
6962  ac_cv_header_stdc=no
6963fi
6964rm -f conftest*
6965
6966fi
6967
6968if test $ac_cv_header_stdc = yes; then
6969  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6970  if test "$cross_compiling" = yes; then :
6971  :
6972else
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975#include <ctype.h>
6976#include <stdlib.h>
6977#if ((' ' & 0x0FF) == 0x020)
6978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6980#else
6981# define ISLOWER(c) \
6982		   (('a' <= (c) && (c) <= 'i') \
6983		     || ('j' <= (c) && (c) <= 'r') \
6984		     || ('s' <= (c) && (c) <= 'z'))
6985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6986#endif
6987
6988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6989int
6990main ()
6991{
6992  int i;
6993  for (i = 0; i < 256; i++)
6994    if (XOR (islower (i), ISLOWER (i))
6995	|| toupper (i) != TOUPPER (i))
6996      return 2;
6997  return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_run "$LINENO"; then :
7001
7002else
7003  ac_cv_header_stdc=no
7004fi
7005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7006  conftest.$ac_objext conftest.beam conftest.$ac_ext
7007fi
7008
7009fi
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7012$as_echo "$ac_cv_header_stdc" >&6; }
7013if test $ac_cv_header_stdc = yes; then
7014
7015$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7016
7017fi
7018
7019# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7020for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7021		  inttypes.h stdint.h unistd.h
7022do :
7023  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7025"
7026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7027  cat >>confdefs.h <<_ACEOF
7028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7029_ACEOF
7030
7031fi
7032
7033done
7034
7035
7036ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
7037case $ac_cv_c_int8_t in #(
7038  no|yes) ;; #(
7039  *)
7040
7041cat >>confdefs.h <<_ACEOF
7042#define int8_t $ac_cv_c_int8_t
7043_ACEOF
7044;;
7045esac
7046
7047ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
7048case $ac_cv_c_int16_t in #(
7049  no|yes) ;; #(
7050  *)
7051
7052cat >>confdefs.h <<_ACEOF
7053#define int16_t $ac_cv_c_int16_t
7054_ACEOF
7055;;
7056esac
7057
7058ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7059case $ac_cv_c_int32_t in #(
7060  no|yes) ;; #(
7061  *)
7062
7063cat >>confdefs.h <<_ACEOF
7064#define int32_t $ac_cv_c_int32_t
7065_ACEOF
7066;;
7067esac
7068
7069ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7070case $ac_cv_c_int64_t in #(
7071  no|yes) ;; #(
7072  *)
7073
7074cat >>confdefs.h <<_ACEOF
7075#define int64_t $ac_cv_c_int64_t
7076_ACEOF
7077;;
7078esac
7079
7080
7081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7082$as_echo_n "checking for long long int... " >&6; }
7083if ${ac_cv_type_long_long_int+:} false; then :
7084  $as_echo_n "(cached) " >&6
7085else
7086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087/* end confdefs.h.  */
7088
7089  /* For now, do not test the preprocessor; as of 2007 there are too many
7090         implementations with broken preprocessors.  Perhaps this can
7091         be revisited in 2012.  In the meantime, code should not expect
7092         #if to work with literals wider than 32 bits.  */
7093      /* Test literals.  */
7094      long long int ll = 9223372036854775807ll;
7095      long long int nll = -9223372036854775807LL;
7096      unsigned long long int ull = 18446744073709551615ULL;
7097      /* Test constant expressions.   */
7098      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7099                     ? 1 : -1)];
7100      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7101                     ? 1 : -1)];
7102      int i = 63;
7103int
7104main ()
7105{
7106/* Test availability of runtime routines for shift and division.  */
7107      long long int llmax = 9223372036854775807ll;
7108      unsigned long long int ullmax = 18446744073709551615ull;
7109      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7110              | (llmax / ll) | (llmax % ll)
7111              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7112              | (ullmax / ull) | (ullmax % ull));
7113  ;
7114  return 0;
7115}
7116
7117_ACEOF
7118if ac_fn_c_try_link "$LINENO"; then :
7119                          if test "$cross_compiling" = yes; then :
7120  ac_cv_type_long_long_int=yes
7121else
7122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123/* end confdefs.h.  */
7124#include <limits.h>
7125               #ifndef LLONG_MAX
7126               # define HALF \
7127                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7128               # define LLONG_MAX (HALF - 1 + HALF)
7129               #endif
7130int
7131main ()
7132{
7133long long int n = 1;
7134               int i;
7135               for (i = 0; ; i++)
7136                 {
7137                   long long int m = n << i;
7138                   if (m >> i != n)
7139                     return 1;
7140                   if (LLONG_MAX / 2 < m)
7141                     break;
7142                 }
7143               return 0;
7144  ;
7145  return 0;
7146}
7147_ACEOF
7148if ac_fn_c_try_run "$LINENO"; then :
7149  ac_cv_type_long_long_int=yes
7150else
7151  ac_cv_type_long_long_int=no
7152fi
7153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7154  conftest.$ac_objext conftest.beam conftest.$ac_ext
7155fi
7156
7157else
7158  ac_cv_type_long_long_int=no
7159fi
7160rm -f core conftest.err conftest.$ac_objext \
7161    conftest$ac_exeext conftest.$ac_ext
7162fi
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7164$as_echo "$ac_cv_type_long_long_int" >&6; }
7165  if test $ac_cv_type_long_long_int = yes; then
7166
7167$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7168
7169  fi
7170
7171
7172
7173  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7174if test "x$ac_cv_type_intmax_t" = xyes; then :
7175
7176$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7177
7178else
7179  test $ac_cv_type_long_long_int = yes \
7180       && ac_type='long long int' \
7181       || ac_type='long int'
7182
7183cat >>confdefs.h <<_ACEOF
7184#define intmax_t $ac_type
7185_ACEOF
7186
7187fi
7188
7189
7190
7191  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7192if test "x$ac_cv_type_intptr_t" = xyes; then :
7193
7194$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
7195
7196else
7197  for ac_type in 'int' 'long int' 'long long int'; do
7198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200$ac_includes_default
7201int
7202main ()
7203{
7204static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7205test_array [0] = 0
7206
7207  ;
7208  return 0;
7209}
7210_ACEOF
7211if ac_fn_c_try_compile "$LINENO"; then :
7212
7213cat >>confdefs.h <<_ACEOF
7214#define intptr_t $ac_type
7215_ACEOF
7216
7217	  ac_type=
7218fi
7219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220       test -z "$ac_type" && break
7221     done
7222fi
7223
7224
7225ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
7226case $ac_cv_c_uint8_t in #(
7227  no|yes) ;; #(
7228  *)
7229
7230$as_echo "#define _UINT8_T 1" >>confdefs.h
7231
7232
7233cat >>confdefs.h <<_ACEOF
7234#define uint8_t $ac_cv_c_uint8_t
7235_ACEOF
7236;;
7237  esac
7238
7239ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7240case $ac_cv_c_uint16_t in #(
7241  no|yes) ;; #(
7242  *)
7243
7244
7245cat >>confdefs.h <<_ACEOF
7246#define uint16_t $ac_cv_c_uint16_t
7247_ACEOF
7248;;
7249  esac
7250
7251ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7252case $ac_cv_c_uint32_t in #(
7253  no|yes) ;; #(
7254  *)
7255
7256$as_echo "#define _UINT32_T 1" >>confdefs.h
7257
7258
7259cat >>confdefs.h <<_ACEOF
7260#define uint32_t $ac_cv_c_uint32_t
7261_ACEOF
7262;;
7263  esac
7264
7265ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7266case $ac_cv_c_uint64_t in #(
7267  no|yes) ;; #(
7268  *)
7269
7270$as_echo "#define _UINT64_T 1" >>confdefs.h
7271
7272
7273cat >>confdefs.h <<_ACEOF
7274#define uint64_t $ac_cv_c_uint64_t
7275_ACEOF
7276;;
7277  esac
7278
7279
7280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7281$as_echo_n "checking for unsigned long long int... " >&6; }
7282if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287
7288  /* For now, do not test the preprocessor; as of 2007 there are too many
7289         implementations with broken preprocessors.  Perhaps this can
7290         be revisited in 2012.  In the meantime, code should not expect
7291         #if to work with literals wider than 32 bits.  */
7292      /* Test literals.  */
7293      long long int ll = 9223372036854775807ll;
7294      long long int nll = -9223372036854775807LL;
7295      unsigned long long int ull = 18446744073709551615ULL;
7296      /* Test constant expressions.   */
7297      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7298                     ? 1 : -1)];
7299      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7300                     ? 1 : -1)];
7301      int i = 63;
7302int
7303main ()
7304{
7305/* Test availability of runtime routines for shift and division.  */
7306      long long int llmax = 9223372036854775807ll;
7307      unsigned long long int ullmax = 18446744073709551615ull;
7308      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7309              | (llmax / ll) | (llmax % ll)
7310              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7311              | (ullmax / ull) | (ullmax % ull));
7312  ;
7313  return 0;
7314}
7315
7316_ACEOF
7317if ac_fn_c_try_link "$LINENO"; then :
7318  ac_cv_type_unsigned_long_long_int=yes
7319else
7320  ac_cv_type_unsigned_long_long_int=no
7321fi
7322rm -f core conftest.err conftest.$ac_objext \
7323    conftest$ac_exeext conftest.$ac_ext
7324fi
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7326$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7327  if test $ac_cv_type_unsigned_long_long_int = yes; then
7328
7329$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7330
7331  fi
7332
7333
7334
7335  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7336if test "x$ac_cv_type_uintmax_t" = xyes; then :
7337
7338$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7339
7340else
7341  test $ac_cv_type_unsigned_long_long_int = yes \
7342       && ac_type='unsigned long long int' \
7343       || ac_type='unsigned long int'
7344
7345cat >>confdefs.h <<_ACEOF
7346#define uintmax_t $ac_type
7347_ACEOF
7348
7349fi
7350
7351
7352
7353  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7354if test "x$ac_cv_type_uintptr_t" = xyes; then :
7355
7356$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7357
7358else
7359  for ac_type in 'unsigned int' 'unsigned long int' \
7360	'unsigned long long int'; do
7361       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362/* end confdefs.h.  */
7363$ac_includes_default
7364int
7365main ()
7366{
7367static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7368test_array [0] = 0
7369
7370  ;
7371  return 0;
7372}
7373_ACEOF
7374if ac_fn_c_try_compile "$LINENO"; then :
7375
7376cat >>confdefs.h <<_ACEOF
7377#define uintptr_t $ac_type
7378_ACEOF
7379
7380	  ac_type=
7381fi
7382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383       test -z "$ac_type" && break
7384     done
7385fi
7386
7387
7388
7389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7390$as_echo_n "checking for long long int... " >&6; }
7391if ${ac_cv_type_long_long_int+:} false; then :
7392  $as_echo_n "(cached) " >&6
7393else
7394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h.  */
7396
7397  /* For now, do not test the preprocessor; as of 2007 there are too many
7398         implementations with broken preprocessors.  Perhaps this can
7399         be revisited in 2012.  In the meantime, code should not expect
7400         #if to work with literals wider than 32 bits.  */
7401      /* Test literals.  */
7402      long long int ll = 9223372036854775807ll;
7403      long long int nll = -9223372036854775807LL;
7404      unsigned long long int ull = 18446744073709551615ULL;
7405      /* Test constant expressions.   */
7406      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7407                     ? 1 : -1)];
7408      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7409                     ? 1 : -1)];
7410      int i = 63;
7411int
7412main ()
7413{
7414/* Test availability of runtime routines for shift and division.  */
7415      long long int llmax = 9223372036854775807ll;
7416      unsigned long long int ullmax = 18446744073709551615ull;
7417      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7418              | (llmax / ll) | (llmax % ll)
7419              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7420              | (ullmax / ull) | (ullmax % ull));
7421  ;
7422  return 0;
7423}
7424
7425_ACEOF
7426if ac_fn_c_try_link "$LINENO"; then :
7427                          if test "$cross_compiling" = yes; then :
7428  ac_cv_type_long_long_int=yes
7429else
7430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431/* end confdefs.h.  */
7432#include <limits.h>
7433               #ifndef LLONG_MAX
7434               # define HALF \
7435                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7436               # define LLONG_MAX (HALF - 1 + HALF)
7437               #endif
7438int
7439main ()
7440{
7441long long int n = 1;
7442               int i;
7443               for (i = 0; ; i++)
7444                 {
7445                   long long int m = n << i;
7446                   if (m >> i != n)
7447                     return 1;
7448                   if (LLONG_MAX / 2 < m)
7449                     break;
7450                 }
7451               return 0;
7452  ;
7453  return 0;
7454}
7455_ACEOF
7456if ac_fn_c_try_run "$LINENO"; then :
7457  ac_cv_type_long_long_int=yes
7458else
7459  ac_cv_type_long_long_int=no
7460fi
7461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7462  conftest.$ac_objext conftest.beam conftest.$ac_ext
7463fi
7464
7465else
7466  ac_cv_type_long_long_int=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext \
7469    conftest$ac_exeext conftest.$ac_ext
7470fi
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7472$as_echo "$ac_cv_type_long_long_int" >&6; }
7473  if test $ac_cv_type_long_long_int = yes; then
7474
7475$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7476
7477  fi
7478
7479
7480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7481$as_echo_n "checking for unsigned long long int... " >&6; }
7482if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7483  $as_echo_n "(cached) " >&6
7484else
7485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487
7488  /* For now, do not test the preprocessor; as of 2007 there are too many
7489         implementations with broken preprocessors.  Perhaps this can
7490         be revisited in 2012.  In the meantime, code should not expect
7491         #if to work with literals wider than 32 bits.  */
7492      /* Test literals.  */
7493      long long int ll = 9223372036854775807ll;
7494      long long int nll = -9223372036854775807LL;
7495      unsigned long long int ull = 18446744073709551615ULL;
7496      /* Test constant expressions.   */
7497      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7498                     ? 1 : -1)];
7499      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7500                     ? 1 : -1)];
7501      int i = 63;
7502int
7503main ()
7504{
7505/* Test availability of runtime routines for shift and division.  */
7506      long long int llmax = 9223372036854775807ll;
7507      unsigned long long int ullmax = 18446744073709551615ull;
7508      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7509              | (llmax / ll) | (llmax % ll)
7510              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7511              | (ullmax / ull) | (ullmax % ull));
7512  ;
7513  return 0;
7514}
7515
7516_ACEOF
7517if ac_fn_c_try_link "$LINENO"; then :
7518  ac_cv_type_unsigned_long_long_int=yes
7519else
7520  ac_cv_type_unsigned_long_long_int=no
7521fi
7522rm -f core conftest.err conftest.$ac_objext \
7523    conftest$ac_exeext conftest.$ac_ext
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7526$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7527  if test $ac_cv_type_unsigned_long_long_int = yes; then
7528
7529$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7530
7531  fi
7532
7533
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7535$as_echo_n "checking for long double... " >&6; }
7536if ${ac_cv_type_long_double+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  if test "$GCC" = yes; then
7540       ac_cv_type_long_double=yes
7541     else
7542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544/* The Stardent Vistra knows sizeof (long double), but does
7545		 not support it.  */
7546	      long double foo = 0.0L;
7547int
7548main ()
7549{
7550static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7551	      sizeof (double) <= sizeof (long double))];
7552test_array [0] = 0
7553
7554  ;
7555  return 0;
7556}
7557_ACEOF
7558if ac_fn_c_try_compile "$LINENO"; then :
7559  ac_cv_type_long_double=yes
7560else
7561  ac_cv_type_long_double=no
7562fi
7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564     fi
7565fi
7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
7567$as_echo "$ac_cv_type_long_double" >&6; }
7568  if test $ac_cv_type_long_double = yes; then
7569
7570$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7571
7572  fi
7573
7574
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
7576$as_echo_n "checking for long double with more range or precision than double... " >&6; }
7577if ${ac_cv_type_long_double_wider+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h.  */
7582#include <float.h>
7583	    long double const a[] =
7584	      {
7585		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
7586		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
7587	      };
7588	    long double
7589	    f (long double x)
7590	    {
7591	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
7592			+ (x ? f (x) : 'c'));
7593	    }
7594
7595int
7596main ()
7597{
7598static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
7599		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
7600		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
7601		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
7602	    && (int) LDBL_EPSILON == 0
7603	  )];
7604test_array [0] = 0
7605
7606  ;
7607  return 0;
7608}
7609_ACEOF
7610if ac_fn_c_try_compile "$LINENO"; then :
7611  ac_cv_type_long_double_wider=yes
7612else
7613  ac_cv_type_long_double_wider=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
7618$as_echo "$ac_cv_type_long_double_wider" >&6; }
7619  if test $ac_cv_type_long_double_wider = yes; then
7620
7621$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
7622
7623  fi
7624
7625ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7626if test "x$ac_cv_type_ssize_t" = xyes; then :
7627
7628else
7629
7630cat >>confdefs.h <<_ACEOF
7631#define ssize_t int
7632_ACEOF
7633
7634fi
7635
7636ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7637if test "x$ac_cv_type_size_t" = xyes; then :
7638
7639else
7640
7641cat >>confdefs.h <<_ACEOF
7642#define size_t unsigned int
7643_ACEOF
7644
7645fi
7646
7647ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7648if test "x$ac_cv_type_off_t" = xyes; then :
7649
7650else
7651
7652cat >>confdefs.h <<_ACEOF
7653#define off_t long int
7654_ACEOF
7655
7656fi
7657
7658ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7659if test "x$ac_cv_type_mode_t" = xyes; then :
7660
7661else
7662
7663cat >>confdefs.h <<_ACEOF
7664#define mode_t int
7665_ACEOF
7666
7667fi
7668
7669ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7670if test "x$ac_cv_type_pid_t" = xyes; then :
7671
7672else
7673
7674cat >>confdefs.h <<_ACEOF
7675#define pid_t int
7676_ACEOF
7677
7678fi
7679
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7681$as_echo_n "checking return type of signal handlers... " >&6; }
7682if ${ac_cv_type_signal+:} false; then :
7683  $as_echo_n "(cached) " >&6
7684else
7685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686/* end confdefs.h.  */
7687#include <sys/types.h>
7688#include <signal.h>
7689
7690int
7691main ()
7692{
7693return *(signal (0, 0)) (0) == 1;
7694  ;
7695  return 0;
7696}
7697_ACEOF
7698if ac_fn_c_try_compile "$LINENO"; then :
7699  ac_cv_type_signal=int
7700else
7701  ac_cv_type_signal=void
7702fi
7703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704fi
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7706$as_echo "$ac_cv_type_signal" >&6; }
7707
7708cat >>confdefs.h <<_ACEOF
7709#define RETSIGTYPE $ac_cv_type_signal
7710_ACEOF
7711
7712
7713
7714# Check some sizes
7715# The cast to long int works around a bug in the HP C Compiler
7716# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7717# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7718# This bug is HP SR number 8606223364.
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
7720$as_echo_n "checking size of char *... " >&6; }
7721if ${ac_cv_sizeof_char_p+:} false; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
7725
7726else
7727  if test "$ac_cv_type_char_p" = yes; then
7728     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7730as_fn_error 77 "cannot compute sizeof (char *)
7731See \`config.log' for more details" "$LINENO" 5; }
7732   else
7733     ac_cv_sizeof_char_p=0
7734   fi
7735fi
7736
7737fi
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
7739$as_echo "$ac_cv_sizeof_char_p" >&6; }
7740
7741
7742
7743cat >>confdefs.h <<_ACEOF
7744#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
7745_ACEOF
7746
7747
7748# The cast to long int works around a bug in the HP C Compiler
7749# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7750# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7751# This bug is HP SR number 8606223364.
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7753$as_echo_n "checking size of int... " >&6; }
7754if ${ac_cv_sizeof_int+:} false; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
7758
7759else
7760  if test "$ac_cv_type_int" = yes; then
7761     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7763as_fn_error 77 "cannot compute sizeof (int)
7764See \`config.log' for more details" "$LINENO" 5; }
7765   else
7766     ac_cv_sizeof_int=0
7767   fi
7768fi
7769
7770fi
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7772$as_echo "$ac_cv_sizeof_int" >&6; }
7773
7774
7775
7776cat >>confdefs.h <<_ACEOF
7777#define SIZEOF_INT $ac_cv_sizeof_int
7778_ACEOF
7779
7780
7781# The cast to long int works around a bug in the HP C Compiler
7782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7784# This bug is HP SR number 8606223364.
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7786$as_echo_n "checking size of short... " >&6; }
7787if ${ac_cv_sizeof_short+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
7791
7792else
7793  if test "$ac_cv_type_short" = yes; then
7794     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7796as_fn_error 77 "cannot compute sizeof (short)
7797See \`config.log' for more details" "$LINENO" 5; }
7798   else
7799     ac_cv_sizeof_short=0
7800   fi
7801fi
7802
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7805$as_echo "$ac_cv_sizeof_short" >&6; }
7806
7807
7808
7809cat >>confdefs.h <<_ACEOF
7810#define SIZEOF_SHORT $ac_cv_sizeof_short
7811_ACEOF
7812
7813
7814# The cast to long int works around a bug in the HP C Compiler
7815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7817# This bug is HP SR number 8606223364.
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7819$as_echo_n "checking size of long... " >&6; }
7820if ${ac_cv_sizeof_long+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7824
7825else
7826  if test "$ac_cv_type_long" = yes; then
7827     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7829as_fn_error 77 "cannot compute sizeof (long)
7830See \`config.log' for more details" "$LINENO" 5; }
7831   else
7832     ac_cv_sizeof_long=0
7833   fi
7834fi
7835
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7838$as_echo "$ac_cv_sizeof_long" >&6; }
7839
7840
7841
7842cat >>confdefs.h <<_ACEOF
7843#define SIZEOF_LONG $ac_cv_sizeof_long
7844_ACEOF
7845
7846
7847# The cast to long int works around a bug in the HP C Compiler
7848# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7849# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7850# This bug is HP SR number 8606223364.
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7852$as_echo_n "checking size of long long... " >&6; }
7853if ${ac_cv_sizeof_long_long+:} false; then :
7854  $as_echo_n "(cached) " >&6
7855else
7856  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
7857
7858else
7859  if test "$ac_cv_type_long_long" = yes; then
7860     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7862as_fn_error 77 "cannot compute sizeof (long long)
7863See \`config.log' for more details" "$LINENO" 5; }
7864   else
7865     ac_cv_sizeof_long_long=0
7866   fi
7867fi
7868
7869fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7871$as_echo "$ac_cv_sizeof_long_long" >&6; }
7872
7873
7874
7875cat >>confdefs.h <<_ACEOF
7876#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7877_ACEOF
7878
7879
7880# The cast to long int works around a bug in the HP C Compiler
7881# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7882# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7883# This bug is HP SR number 8606223364.
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5
7885$as_echo_n "checking size of intptr_t... " >&6; }
7886if ${ac_cv_sizeof_intptr_t+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t"        "$ac_includes_default"; then :
7890
7891else
7892  if test "$ac_cv_type_intptr_t" = yes; then
7893     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7895as_fn_error 77 "cannot compute sizeof (intptr_t)
7896See \`config.log' for more details" "$LINENO" 5; }
7897   else
7898     ac_cv_sizeof_intptr_t=0
7899   fi
7900fi
7901
7902fi
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5
7904$as_echo "$ac_cv_sizeof_intptr_t" >&6; }
7905
7906
7907
7908cat >>confdefs.h <<_ACEOF
7909#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
7910_ACEOF
7911
7912
7913# The cast to long int works around a bug in the HP C Compiler
7914# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7915# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7916# This bug is HP SR number 8606223364.
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
7918$as_echo_n "checking size of intmax_t... " >&6; }
7919if ${ac_cv_sizeof_intmax_t+:} false; then :
7920  $as_echo_n "(cached) " >&6
7921else
7922  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
7923
7924else
7925  if test "$ac_cv_type_intmax_t" = yes; then
7926     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7928as_fn_error 77 "cannot compute sizeof (intmax_t)
7929See \`config.log' for more details" "$LINENO" 5; }
7930   else
7931     ac_cv_sizeof_intmax_t=0
7932   fi
7933fi
7934
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
7937$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
7938
7939
7940
7941cat >>confdefs.h <<_ACEOF
7942#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
7943_ACEOF
7944
7945
7946
7947
7948# Checking for programs
7949ac_aux_dir=
7950for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
7951  if test -f "$ac_dir/install-sh"; then
7952    ac_aux_dir=$ac_dir
7953    ac_install_sh="$ac_aux_dir/install-sh -c"
7954    break
7955  elif test -f "$ac_dir/install.sh"; then
7956    ac_aux_dir=$ac_dir
7957    ac_install_sh="$ac_aux_dir/install.sh -c"
7958    break
7959  elif test -f "$ac_dir/shtool"; then
7960    ac_aux_dir=$ac_dir
7961    ac_install_sh="$ac_aux_dir/shtool install -c"
7962    break
7963  fi
7964done
7965if test -z "$ac_aux_dir"; then
7966  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7967fi
7968
7969# These three variables are undocumented and unsupported,
7970# and are intended to be withdrawn in a future Autoconf release.
7971# They can cause serious problems if a builder's source tree is in a directory
7972# whose full name contains unusual characters.
7973ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
7974ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
7975ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
7976
7977
7978# Find a good install program.  We prefer a C program (faster),
7979# so one script is as good as another.  But avoid the broken or
7980# incompatible versions:
7981# SysV /etc/install, /usr/sbin/install
7982# SunOS /usr/etc/install
7983# IRIX /sbin/install
7984# AIX /bin/install
7985# AmigaOS /C/install, which installs bootblocks on floppy discs
7986# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7987# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7988# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7989# OS/2's system install, which has a completely different semantic
7990# ./install, which can be erroneously created by make from ./install.sh.
7991# Reject install programs that cannot install multiple files.
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7993$as_echo_n "checking for a BSD-compatible install... " >&6; }
7994if test -z "$INSTALL"; then
7995if ${ac_cv_path_install+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003    # Account for people who put trailing slashes in PATH elements.
8004case $as_dir/ in #((
8005  ./ | .// | /[cC]/* | \
8006  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8007  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8008  /usr/ucb/* ) ;;
8009  *)
8010    # OSF1 and SCO ODT 3.0 have their own names for install.
8011    # Don't use installbsd from OSF since it installs stuff as root
8012    # by default.
8013    for ac_prog in ginstall scoinst install; do
8014      for ac_exec_ext in '' $ac_executable_extensions; do
8015	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8016	  if test $ac_prog = install &&
8017	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8018	    # AIX install.  It has an incompatible calling convention.
8019	    :
8020	  elif test $ac_prog = install &&
8021	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8022	    # program-specific install script used by HP pwplus--don't use.
8023	    :
8024	  else
8025	    rm -rf conftest.one conftest.two conftest.dir
8026	    echo one > conftest.one
8027	    echo two > conftest.two
8028	    mkdir conftest.dir
8029	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8030	      test -s conftest.one && test -s conftest.two &&
8031	      test -s conftest.dir/conftest.one &&
8032	      test -s conftest.dir/conftest.two
8033	    then
8034	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8035	      break 3
8036	    fi
8037	  fi
8038	fi
8039      done
8040    done
8041    ;;
8042esac
8043
8044  done
8045IFS=$as_save_IFS
8046
8047rm -rf conftest.one conftest.two conftest.dir
8048
8049fi
8050  if test "${ac_cv_path_install+set}" = set; then
8051    INSTALL=$ac_cv_path_install
8052  else
8053    # As a last resort, use the slow shell script.  Don't cache a
8054    # value for INSTALL within a source directory, because that will
8055    # break other packages using the cache if that directory is
8056    # removed, or if the value is a relative name.
8057    INSTALL=$ac_install_sh
8058  fi
8059fi
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8061$as_echo "$INSTALL" >&6; }
8062
8063# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8064# It thinks the first close brace ends the variable substitution.
8065test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8066
8067test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8068
8069test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8070
8071ac_config_headers="$ac_config_headers machine.h"
8072
8073for ac_prog in byacc "bison -y"
8074do
8075  # Extract the first word of "$ac_prog", so it can be a program name with args.
8076set dummy $ac_prog; ac_word=$2
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078$as_echo_n "checking for $ac_word... " >&6; }
8079if ${ac_cv_prog_YACC+:} false; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  if test -n "$YACC"; then
8083  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088  IFS=$as_save_IFS
8089  test -z "$as_dir" && as_dir=.
8090    for ac_exec_ext in '' $ac_executable_extensions; do
8091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092    ac_cv_prog_YACC="$ac_prog"
8093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094    break 2
8095  fi
8096done
8097  done
8098IFS=$as_save_IFS
8099
8100fi
8101fi
8102YACC=$ac_cv_prog_YACC
8103if test -n "$YACC"; then
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8105$as_echo "$YACC" >&6; }
8106else
8107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110
8111
8112  test -n "$YACC" && break
8113done
8114test -n "$YACC" || YACC="yacc"
8115
8116ac_ext=c
8117ac_cpp='$CPP $CPPFLAGS'
8118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8122$as_echo_n "checking how to run the C preprocessor... " >&6; }
8123# On Suns, sometimes $CPP names a directory.
8124if test -n "$CPP" && test -d "$CPP"; then
8125  CPP=
8126fi
8127if test -z "$CPP"; then
8128  if ${ac_cv_prog_CPP+:} false; then :
8129  $as_echo_n "(cached) " >&6
8130else
8131      # Double quotes because CPP needs to be expanded
8132    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8133    do
8134      ac_preproc_ok=false
8135for ac_c_preproc_warn_flag in '' yes
8136do
8137  # Use a header file that comes with gcc, so configuring glibc
8138  # with a fresh cross-compiler works.
8139  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8140  # <limits.h> exists even on freestanding compilers.
8141  # On the NeXT, cc -E runs the code through the compiler's parser,
8142  # not just through cpp. "Syntax error" is here to catch this case.
8143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145#ifdef __STDC__
8146# include <limits.h>
8147#else
8148# include <assert.h>
8149#endif
8150		     Syntax error
8151_ACEOF
8152if ac_fn_c_try_cpp "$LINENO"; then :
8153
8154else
8155  # Broken: fails on valid input.
8156continue
8157fi
8158rm -f conftest.err conftest.i conftest.$ac_ext
8159
8160  # OK, works on sane cases.  Now check whether nonexistent headers
8161  # can be detected and how.
8162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163/* end confdefs.h.  */
8164#include <ac_nonexistent.h>
8165_ACEOF
8166if ac_fn_c_try_cpp "$LINENO"; then :
8167  # Broken: success on invalid input.
8168continue
8169else
8170  # Passes both tests.
8171ac_preproc_ok=:
8172break
8173fi
8174rm -f conftest.err conftest.i conftest.$ac_ext
8175
8176done
8177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8178rm -f conftest.i conftest.err conftest.$ac_ext
8179if $ac_preproc_ok; then :
8180  break
8181fi
8182
8183    done
8184    ac_cv_prog_CPP=$CPP
8185
8186fi
8187  CPP=$ac_cv_prog_CPP
8188else
8189  ac_cv_prog_CPP=$CPP
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8192$as_echo "$CPP" >&6; }
8193ac_preproc_ok=false
8194for ac_c_preproc_warn_flag in '' yes
8195do
8196  # Use a header file that comes with gcc, so configuring glibc
8197  # with a fresh cross-compiler works.
8198  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8199  # <limits.h> exists even on freestanding compilers.
8200  # On the NeXT, cc -E runs the code through the compiler's parser,
8201  # not just through cpp. "Syntax error" is here to catch this case.
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204#ifdef __STDC__
8205# include <limits.h>
8206#else
8207# include <assert.h>
8208#endif
8209		     Syntax error
8210_ACEOF
8211if ac_fn_c_try_cpp "$LINENO"; then :
8212
8213else
8214  # Broken: fails on valid input.
8215continue
8216fi
8217rm -f conftest.err conftest.i conftest.$ac_ext
8218
8219  # OK, works on sane cases.  Now check whether nonexistent headers
8220  # can be detected and how.
8221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222/* end confdefs.h.  */
8223#include <ac_nonexistent.h>
8224_ACEOF
8225if ac_fn_c_try_cpp "$LINENO"; then :
8226  # Broken: success on invalid input.
8227continue
8228else
8229  # Passes both tests.
8230ac_preproc_ok=:
8231break
8232fi
8233rm -f conftest.err conftest.i conftest.$ac_ext
8234
8235done
8236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8237rm -f conftest.i conftest.err conftest.$ac_ext
8238if $ac_preproc_ok; then :
8239
8240else
8241  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8243as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8244See \`config.log' for more details" "$LINENO" 5; }
8245fi
8246
8247ac_ext=c
8248ac_cpp='$CPP $CPPFLAGS'
8249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8251ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252
8253
8254
8255
8256
8257
8258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h.  */
8260
8261#if defined(__CYGWIN32__) || defined(__CYGWIN__)
8262yes
8263#endif
8264
8265_ACEOF
8266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8267  $EGREP "yes" >/dev/null 2>&1; then :
8268   EXTRA_CFLAGS="${EXTRA_CFLAGS} -DMSWIN"
8269fi
8270rm -f conftest*
8271
8272
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8274$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8275if ${ac_cv_header_stdbool_h+:} false; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h.  */
8280
8281#include <stdbool.h>
8282#ifndef bool
8283 "error: bool is not defined"
8284#endif
8285#ifndef false
8286 "error: false is not defined"
8287#endif
8288#if false
8289 "error: false is not 0"
8290#endif
8291#ifndef true
8292 "error: true is not defined"
8293#endif
8294#if true != 1
8295 "error: true is not 1"
8296#endif
8297#ifndef __bool_true_false_are_defined
8298 "error: __bool_true_false_are_defined is not defined"
8299#endif
8300
8301	struct s { _Bool s: 1; _Bool t; } s;
8302
8303	char a[true == 1 ? 1 : -1];
8304	char b[false == 0 ? 1 : -1];
8305	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8306	char d[(bool) 0.5 == true ? 1 : -1];
8307	/* See body of main program for 'e'.  */
8308	char f[(_Bool) 0.0 == false ? 1 : -1];
8309	char g[true];
8310	char h[sizeof (_Bool)];
8311	char i[sizeof s.t];
8312	enum { j = false, k = true, l = false * true, m = true * 256 };
8313	/* The following fails for
8314	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8315	_Bool n[m];
8316	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8317	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8318	/* Catch a bug in an HP-UX C compiler.  See
8319	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8320	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8321	 */
8322	_Bool q = true;
8323	_Bool *pq = &q;
8324
8325int
8326main ()
8327{
8328
8329	bool e = &s;
8330	*pq |= q;
8331	*pq |= ! q;
8332	/* Refer to every declared value, to avoid compiler optimizations.  */
8333	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8334		+ !m + !n + !o + !p + !q + !pq);
8335
8336  ;
8337  return 0;
8338}
8339_ACEOF
8340if ac_fn_c_try_compile "$LINENO"; then :
8341  ac_cv_header_stdbool_h=yes
8342else
8343  ac_cv_header_stdbool_h=no
8344fi
8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346fi
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8348$as_echo "$ac_cv_header_stdbool_h" >&6; }
8349ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8350if test "x$ac_cv_type__Bool" = xyes; then :
8351
8352cat >>confdefs.h <<_ACEOF
8353#define HAVE__BOOL 1
8354_ACEOF
8355
8356
8357fi
8358
8359if test $ac_cv_header_stdbool_h = yes; then
8360
8361$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
8362
8363fi
8364
8365for ac_header in sys/rusage.h sys/time.h unistd.h stdlib.h libc.h memory.h
8366do :
8367  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8369if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8370  cat >>confdefs.h <<_ACEOF
8371#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8372_ACEOF
8373
8374fi
8375
8376done
8377
8378for ac_header in string.h bstring.h netdb.h crypt.h sys/param.h sys/termios.h
8379do :
8380  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8381ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8382if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8383  cat >>confdefs.h <<_ACEOF
8384#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8385_ACEOF
8386
8387fi
8388
8389done
8390
8391
8392for ac_header in limits.h
8393do :
8394  ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
8395if test "x$ac_cv_header_limits_h" = xyes; then :
8396  cat >>confdefs.h <<_ACEOF
8397#define HAVE_LIMITS_H 1
8398_ACEOF
8399
8400fi
8401
8402done
8403
8404ac_header_dirent=no
8405for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8406  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8408$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8409if eval \${$as_ac_Header+:} false; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414#include <sys/types.h>
8415#include <$ac_hdr>
8416
8417int
8418main ()
8419{
8420if ((DIR *) 0)
8421return 0;
8422  ;
8423  return 0;
8424}
8425_ACEOF
8426if ac_fn_c_try_compile "$LINENO"; then :
8427  eval "$as_ac_Header=yes"
8428else
8429  eval "$as_ac_Header=no"
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432fi
8433eval ac_res=\$$as_ac_Header
8434	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8435$as_echo "$ac_res" >&6; }
8436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8437  cat >>confdefs.h <<_ACEOF
8438#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8439_ACEOF
8440
8441ac_header_dirent=$ac_hdr; break
8442fi
8443
8444done
8445# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8446if test $ac_header_dirent = dirent.h; then
8447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8448$as_echo_n "checking for library containing opendir... " >&6; }
8449if ${ac_cv_search_opendir+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  ac_func_search_save_LIBS=$LIBS
8453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h.  */
8455
8456/* Override any GCC internal prototype to avoid an error.
8457   Use char because int might match the return type of a GCC
8458   builtin and then its argument prototype would still apply.  */
8459#ifdef __cplusplus
8460extern "C"
8461#endif
8462char opendir ();
8463int
8464main ()
8465{
8466return opendir ();
8467  ;
8468  return 0;
8469}
8470_ACEOF
8471for ac_lib in '' dir; do
8472  if test -z "$ac_lib"; then
8473    ac_res="none required"
8474  else
8475    ac_res=-l$ac_lib
8476    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8477  fi
8478  if ac_fn_c_try_link "$LINENO"; then :
8479  ac_cv_search_opendir=$ac_res
8480fi
8481rm -f core conftest.err conftest.$ac_objext \
8482    conftest$ac_exeext
8483  if ${ac_cv_search_opendir+:} false; then :
8484  break
8485fi
8486done
8487if ${ac_cv_search_opendir+:} false; then :
8488
8489else
8490  ac_cv_search_opendir=no
8491fi
8492rm conftest.$ac_ext
8493LIBS=$ac_func_search_save_LIBS
8494fi
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8496$as_echo "$ac_cv_search_opendir" >&6; }
8497ac_res=$ac_cv_search_opendir
8498if test "$ac_res" != no; then :
8499  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8500
8501fi
8502
8503else
8504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8505$as_echo_n "checking for library containing opendir... " >&6; }
8506if ${ac_cv_search_opendir+:} false; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  ac_func_search_save_LIBS=$LIBS
8510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h.  */
8512
8513/* Override any GCC internal prototype to avoid an error.
8514   Use char because int might match the return type of a GCC
8515   builtin and then its argument prototype would still apply.  */
8516#ifdef __cplusplus
8517extern "C"
8518#endif
8519char opendir ();
8520int
8521main ()
8522{
8523return opendir ();
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528for ac_lib in '' x; do
8529  if test -z "$ac_lib"; then
8530    ac_res="none required"
8531  else
8532    ac_res=-l$ac_lib
8533    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8534  fi
8535  if ac_fn_c_try_link "$LINENO"; then :
8536  ac_cv_search_opendir=$ac_res
8537fi
8538rm -f core conftest.err conftest.$ac_objext \
8539    conftest$ac_exeext
8540  if ${ac_cv_search_opendir+:} false; then :
8541  break
8542fi
8543done
8544if ${ac_cv_search_opendir+:} false; then :
8545
8546else
8547  ac_cv_search_opendir=no
8548fi
8549rm conftest.$ac_ext
8550LIBS=$ac_func_search_save_LIBS
8551fi
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8553$as_echo "$ac_cv_search_opendir" >&6; }
8554ac_res=$ac_cv_search_opendir
8555if test "$ac_res" != no; then :
8556  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8557
8558fi
8559
8560fi
8561
8562
8563
8564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8565$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8566if ${ac_cv_header_time+:} false; then :
8567  $as_echo_n "(cached) " >&6
8568else
8569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h.  */
8571#include <sys/types.h>
8572#include <sys/time.h>
8573#include <time.h>
8574
8575int
8576main ()
8577{
8578if ((struct tm *) 0)
8579return 0;
8580  ;
8581  return 0;
8582}
8583_ACEOF
8584if ac_fn_c_try_compile "$LINENO"; then :
8585  ac_cv_header_time=yes
8586else
8587  ac_cv_header_time=no
8588fi
8589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590fi
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8592$as_echo "$ac_cv_header_time" >&6; }
8593if test $ac_cv_header_time = yes; then
8594
8595$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8596
8597fi
8598
8599
8600
8601
8602  for ac_header in $ac_header_list
8603do :
8604  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8605ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8606"
8607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8608  cat >>confdefs.h <<_ACEOF
8609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8610_ACEOF
8611
8612fi
8613
8614done
8615
8616
8617
8618
8619
8620
8621
8622
8623  for ac_func in $ac_func_list
8624do :
8625  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8626ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8627if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8628  cat >>confdefs.h <<_ACEOF
8629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8630_ACEOF
8631
8632fi
8633done
8634
8635
8636
8637
8638
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
8640$as_echo_n "checking for working mktime... " >&6; }
8641if ${ac_cv_func_working_mktime+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  if test "$cross_compiling" = yes; then :
8645  ac_cv_func_working_mktime=no
8646else
8647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649/* Test program from Paul Eggert and Tony Leneis.  */
8650#ifdef TIME_WITH_SYS_TIME
8651# include <sys/time.h>
8652# include <time.h>
8653#else
8654# ifdef HAVE_SYS_TIME_H
8655#  include <sys/time.h>
8656# else
8657#  include <time.h>
8658# endif
8659#endif
8660
8661#include <limits.h>
8662#include <stdlib.h>
8663
8664#ifdef HAVE_UNISTD_H
8665# include <unistd.h>
8666#endif
8667
8668#ifndef HAVE_ALARM
8669# define alarm(X) /* empty */
8670#endif
8671
8672/* Work around redefinition to rpl_putenv by other config tests.  */
8673#undef putenv
8674
8675static time_t time_t_max;
8676static time_t time_t_min;
8677
8678/* Values we'll use to set the TZ environment variable.  */
8679static const char *tz_strings[] = {
8680  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8681  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8682};
8683#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8684
8685/* Return 0 if mktime fails to convert a date in the spring-forward gap.
8686   Based on a problem report from Andreas Jaeger.  */
8687static int
8688spring_forward_gap ()
8689{
8690  /* glibc (up to about 1998-10-07) failed this test. */
8691  struct tm tm;
8692
8693  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8694     instead of "TZ=America/Vancouver" in order to detect the bug even
8695     on systems that don't support the Olson extension, or don't have the
8696     full zoneinfo tables installed.  */
8697  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8698
8699  tm.tm_year = 98;
8700  tm.tm_mon = 3;
8701  tm.tm_mday = 5;
8702  tm.tm_hour = 2;
8703  tm.tm_min = 0;
8704  tm.tm_sec = 0;
8705  tm.tm_isdst = -1;
8706  return mktime (&tm) != (time_t) -1;
8707}
8708
8709static int
8710mktime_test1 (time_t now)
8711{
8712  struct tm *lt;
8713  return ! (lt = localtime (&now)) || mktime (lt) == now;
8714}
8715
8716static int
8717mktime_test (time_t now)
8718{
8719  return (mktime_test1 (now)
8720	  && mktime_test1 ((time_t) (time_t_max - now))
8721	  && mktime_test1 ((time_t) (time_t_min + now)));
8722}
8723
8724static int
8725irix_6_4_bug ()
8726{
8727  /* Based on code from Ariel Faigon.  */
8728  struct tm tm;
8729  tm.tm_year = 96;
8730  tm.tm_mon = 3;
8731  tm.tm_mday = 0;
8732  tm.tm_hour = 0;
8733  tm.tm_min = 0;
8734  tm.tm_sec = 0;
8735  tm.tm_isdst = -1;
8736  mktime (&tm);
8737  return tm.tm_mon == 2 && tm.tm_mday == 31;
8738}
8739
8740static int
8741bigtime_test (int j)
8742{
8743  struct tm tm;
8744  time_t now;
8745  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8746  now = mktime (&tm);
8747  if (now != (time_t) -1)
8748    {
8749      struct tm *lt = localtime (&now);
8750      if (! (lt
8751	     && lt->tm_year == tm.tm_year
8752	     && lt->tm_mon == tm.tm_mon
8753	     && lt->tm_mday == tm.tm_mday
8754	     && lt->tm_hour == tm.tm_hour
8755	     && lt->tm_min == tm.tm_min
8756	     && lt->tm_sec == tm.tm_sec
8757	     && lt->tm_yday == tm.tm_yday
8758	     && lt->tm_wday == tm.tm_wday
8759	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8760		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8761	return 0;
8762    }
8763  return 1;
8764}
8765
8766static int
8767year_2050_test ()
8768{
8769  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
8770     ignoring leap seconds.  */
8771  unsigned long int answer = 2527315200UL;
8772
8773  struct tm tm;
8774  time_t t;
8775  tm.tm_year = 2050 - 1900;
8776  tm.tm_mon = 2 - 1;
8777  tm.tm_mday = 1;
8778  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
8779  tm.tm_isdst = -1;
8780
8781  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8782     instead of "TZ=America/Vancouver" in order to detect the bug even
8783     on systems that don't support the Olson extension, or don't have the
8784     full zoneinfo tables installed.  */
8785  putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8786
8787  t = mktime (&tm);
8788
8789  /* Check that the result is either a failure, or close enough
8790     to the correct answer that we can assume the discrepancy is
8791     due to leap seconds.  */
8792  return (t == (time_t) -1
8793	  || (0 < t && answer - 120 <= t && t <= answer + 120));
8794}
8795
8796int
8797main ()
8798{
8799  time_t t, delta;
8800  int i, j;
8801
8802  /* This test makes some buggy mktime implementations loop.
8803     Give up after 60 seconds; a mktime slower than that
8804     isn't worth using anyway.  */
8805  alarm (60);
8806
8807  for (;;)
8808    {
8809      t = (time_t_max << 1) + 1;
8810      if (t <= time_t_max)
8811	break;
8812      time_t_max = t;
8813    }
8814  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
8815
8816  delta = time_t_max / 997; /* a suitable prime number */
8817  for (i = 0; i < N_STRINGS; i++)
8818    {
8819      if (tz_strings[i])
8820	putenv ((char*) tz_strings[i]);
8821
8822      for (t = 0; t <= time_t_max - delta; t += delta)
8823	if (! mktime_test (t))
8824	  return 1;
8825      if (! (mktime_test ((time_t) 1)
8826	     && mktime_test ((time_t) (60 * 60))
8827	     && mktime_test ((time_t) (60 * 60 * 24))))
8828	return 1;
8829
8830      for (j = 1; ; j <<= 1)
8831	if (! bigtime_test (j))
8832	  return 1;
8833	else if (INT_MAX / 2 < j)
8834	  break;
8835      if (! bigtime_test (INT_MAX))
8836	return 1;
8837    }
8838  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
8839}
8840_ACEOF
8841if ac_fn_c_try_run "$LINENO"; then :
8842  ac_cv_func_working_mktime=yes
8843else
8844  ac_cv_func_working_mktime=no
8845fi
8846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8847  conftest.$ac_objext conftest.beam conftest.$ac_ext
8848fi
8849
8850fi
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
8852$as_echo "$ac_cv_func_working_mktime" >&6; }
8853if test $ac_cv_func_working_mktime = no; then
8854  case " $LIBOBJS " in
8855  *" mktime.$ac_objext "* ) ;;
8856  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
8857 ;;
8858esac
8859
8860fi
8861
8862# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8863# for constant arguments.  Useless!
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8865$as_echo_n "checking for working alloca.h... " >&6; }
8866if ${ac_cv_working_alloca_h+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h.  */
8871#include <alloca.h>
8872int
8873main ()
8874{
8875char *p = (char *) alloca (2 * sizeof (int));
8876			  if (p) return 0;
8877  ;
8878  return 0;
8879}
8880_ACEOF
8881if ac_fn_c_try_link "$LINENO"; then :
8882  ac_cv_working_alloca_h=yes
8883else
8884  ac_cv_working_alloca_h=no
8885fi
8886rm -f core conftest.err conftest.$ac_objext \
8887    conftest$ac_exeext conftest.$ac_ext
8888fi
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8890$as_echo "$ac_cv_working_alloca_h" >&6; }
8891if test $ac_cv_working_alloca_h = yes; then
8892
8893$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8894
8895fi
8896
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8898$as_echo_n "checking for alloca... " >&6; }
8899if ${ac_cv_func_alloca_works+:} false; then :
8900  $as_echo_n "(cached) " >&6
8901else
8902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904#ifdef __GNUC__
8905# define alloca __builtin_alloca
8906#else
8907# ifdef _MSC_VER
8908#  include <malloc.h>
8909#  define alloca _alloca
8910# else
8911#  ifdef HAVE_ALLOCA_H
8912#   include <alloca.h>
8913#  else
8914#   ifdef _AIX
8915 #pragma alloca
8916#   else
8917#    ifndef alloca /* predefined by HP cc +Olibcalls */
8918void *alloca (size_t);
8919#    endif
8920#   endif
8921#  endif
8922# endif
8923#endif
8924
8925int
8926main ()
8927{
8928char *p = (char *) alloca (1);
8929				    if (p) return 0;
8930  ;
8931  return 0;
8932}
8933_ACEOF
8934if ac_fn_c_try_link "$LINENO"; then :
8935  ac_cv_func_alloca_works=yes
8936else
8937  ac_cv_func_alloca_works=no
8938fi
8939rm -f core conftest.err conftest.$ac_objext \
8940    conftest$ac_exeext conftest.$ac_ext
8941fi
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8943$as_echo "$ac_cv_func_alloca_works" >&6; }
8944
8945if test $ac_cv_func_alloca_works = yes; then
8946
8947$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8948
8949else
8950  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8951# that cause trouble.  Some versions do not even contain alloca or
8952# contain a buggy version.  If you still want to use their alloca,
8953# use ar to extract alloca.o from them instead of compiling alloca.c.
8954
8955ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8956
8957$as_echo "#define C_ALLOCA 1" >>confdefs.h
8958
8959
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8961$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8962if ${ac_cv_os_cray+:} false; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h.  */
8967#if defined CRAY && ! defined CRAY2
8968webecray
8969#else
8970wenotbecray
8971#endif
8972
8973_ACEOF
8974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8975  $EGREP "webecray" >/dev/null 2>&1; then :
8976  ac_cv_os_cray=yes
8977else
8978  ac_cv_os_cray=no
8979fi
8980rm -f conftest*
8981
8982fi
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8984$as_echo "$ac_cv_os_cray" >&6; }
8985if test $ac_cv_os_cray = yes; then
8986  for ac_func in _getb67 GETB67 getb67; do
8987    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8989if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8990
8991cat >>confdefs.h <<_ACEOF
8992#define CRAY_STACKSEG_END $ac_func
8993_ACEOF
8994
8995    break
8996fi
8997
8998  done
8999fi
9000
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9002$as_echo_n "checking stack direction for C alloca... " >&6; }
9003if ${ac_cv_c_stack_direction+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  if test "$cross_compiling" = yes; then :
9007  ac_cv_c_stack_direction=0
9008else
9009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010/* end confdefs.h.  */
9011$ac_includes_default
9012int
9013find_stack_direction ()
9014{
9015  static char *addr = 0;
9016  auto char dummy;
9017  if (addr == 0)
9018    {
9019      addr = &dummy;
9020      return find_stack_direction ();
9021    }
9022  else
9023    return (&dummy > addr) ? 1 : -1;
9024}
9025
9026int
9027main ()
9028{
9029  return find_stack_direction () < 0;
9030}
9031_ACEOF
9032if ac_fn_c_try_run "$LINENO"; then :
9033  ac_cv_c_stack_direction=1
9034else
9035  ac_cv_c_stack_direction=-1
9036fi
9037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9038  conftest.$ac_objext conftest.beam conftest.$ac_ext
9039fi
9040
9041fi
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9043$as_echo "$ac_cv_c_stack_direction" >&6; }
9044cat >>confdefs.h <<_ACEOF
9045#define STACK_DIRECTION $ac_cv_c_stack_direction
9046_ACEOF
9047
9048
9049fi
9050
9051for ac_func in fchmod getrusage bzero memset memcpy memmem strdup strcspn
9052do :
9053  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9054ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9055if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9056  cat >>confdefs.h <<_ACEOF
9057#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9058_ACEOF
9059
9060fi
9061done
9062
9063for ac_func in strchr strrchr getcwd memmove sysconf gettimeofday wait3 waitpid
9064do :
9065  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9067if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9068  cat >>confdefs.h <<_ACEOF
9069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9070_ACEOF
9071
9072fi
9073done
9074
9075for ac_func in fcntl getdomainname poll strtoul trunc
9076do :
9077  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9078ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9079if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9080  cat >>confdefs.h <<_ACEOF
9081#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9082_ACEOF
9083
9084fi
9085done
9086
9087for ac_func in mmap getpagesize
9088do :
9089  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9090ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9091if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9092  cat >>confdefs.h <<_ACEOF
9093#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9094_ACEOF
9095
9096fi
9097done
9098
9099
9100if test "x$ac_cv_type_signal" = "xvoid"; then
9101
9102$as_echo "#define RETSIGTYPE_VOID 1" >>confdefs.h
9103
9104fi
9105
9106# --- Check for common system libraries ---
9107
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9109$as_echo_n "checking for main in -lm... " >&6; }
9110if ${ac_cv_lib_m_main+:} false; then :
9111  $as_echo_n "(cached) " >&6
9112else
9113  ac_check_lib_save_LIBS=$LIBS
9114LIBS="-lm  $LIBS"
9115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h.  */
9117
9118
9119int
9120main ()
9121{
9122return main ();
9123  ;
9124  return 0;
9125}
9126_ACEOF
9127if ac_fn_c_try_link "$LINENO"; then :
9128  ac_cv_lib_m_main=yes
9129else
9130  ac_cv_lib_m_main=no
9131fi
9132rm -f core conftest.err conftest.$ac_objext \
9133    conftest$ac_exeext conftest.$ac_ext
9134LIBS=$ac_check_lib_save_LIBS
9135fi
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9137$as_echo "$ac_cv_lib_m_main" >&6; }
9138if test "x$ac_cv_lib_m_main" = xyes; then :
9139  cat >>confdefs.h <<_ACEOF
9140#define HAVE_LIBM 1
9141_ACEOF
9142
9143  LIBS="-lm $LIBS"
9144
9145fi
9146
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
9148$as_echo_n "checking for main in -lsocket... " >&6; }
9149if ${ac_cv_lib_socket_main+:} false; then :
9150  $as_echo_n "(cached) " >&6
9151else
9152  ac_check_lib_save_LIBS=$LIBS
9153LIBS="-lsocket  $LIBS"
9154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156
9157
9158int
9159main ()
9160{
9161return main ();
9162  ;
9163  return 0;
9164}
9165_ACEOF
9166if ac_fn_c_try_link "$LINENO"; then :
9167  ac_cv_lib_socket_main=yes
9168else
9169  ac_cv_lib_socket_main=no
9170fi
9171rm -f core conftest.err conftest.$ac_objext \
9172    conftest$ac_exeext conftest.$ac_ext
9173LIBS=$ac_check_lib_save_LIBS
9174fi
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
9176$as_echo "$ac_cv_lib_socket_main" >&6; }
9177if test "x$ac_cv_lib_socket_main" = xyes; then :
9178  cat >>confdefs.h <<_ACEOF
9179#define HAVE_LIBSOCKET 1
9180_ACEOF
9181
9182  LIBS="-lsocket $LIBS"
9183
9184fi
9185
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
9187$as_echo_n "checking for main in -lnsl... " >&6; }
9188if ${ac_cv_lib_nsl_main+:} false; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191  ac_check_lib_save_LIBS=$LIBS
9192LIBS="-lnsl  $LIBS"
9193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194/* end confdefs.h.  */
9195
9196
9197int
9198main ()
9199{
9200return main ();
9201  ;
9202  return 0;
9203}
9204_ACEOF
9205if ac_fn_c_try_link "$LINENO"; then :
9206  ac_cv_lib_nsl_main=yes
9207else
9208  ac_cv_lib_nsl_main=no
9209fi
9210rm -f core conftest.err conftest.$ac_objext \
9211    conftest$ac_exeext conftest.$ac_ext
9212LIBS=$ac_check_lib_save_LIBS
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
9215$as_echo "$ac_cv_lib_nsl_main" >&6; }
9216if test "x$ac_cv_lib_nsl_main" = xyes; then :
9217  cat >>confdefs.h <<_ACEOF
9218#define HAVE_LIBNSL 1
9219_ACEOF
9220
9221  LIBS="-lnsl $LIBS"
9222
9223fi
9224
9225
9226ERQ_LIBS="$LIBS"
9227
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lucb" >&5
9229$as_echo_n "checking for main in -lucb... " >&6; }
9230if ${ac_cv_lib_ucb_main+:} false; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233  ac_check_lib_save_LIBS=$LIBS
9234LIBS="-lucb  $LIBS"
9235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236/* end confdefs.h.  */
9237
9238
9239int
9240main ()
9241{
9242return main ();
9243  ;
9244  return 0;
9245}
9246_ACEOF
9247if ac_fn_c_try_link "$LINENO"; then :
9248  ac_cv_lib_ucb_main=yes
9249else
9250  ac_cv_lib_ucb_main=no
9251fi
9252rm -f core conftest.err conftest.$ac_objext \
9253    conftest$ac_exeext conftest.$ac_ext
9254LIBS=$ac_check_lib_save_LIBS
9255fi
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_main" >&5
9257$as_echo "$ac_cv_lib_ucb_main" >&6; }
9258if test "x$ac_cv_lib_ucb_main" = xyes; then :
9259  LIBS="$LIBS -lc -lucb"
9260fi
9261
9262if test "$ac_cv_lib_socket_main" = "yes" || test "$ac_cv_lib_ucb_main" = "yes"; then
9263      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
9264$as_echo_n "checking for main in -lnsl... " >&6; }
9265if ${ac_cv_lib_nsl_main+:} false; then :
9266  $as_echo_n "(cached) " >&6
9267else
9268  ac_check_lib_save_LIBS=$LIBS
9269LIBS="-lnsl  $LIBS"
9270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271/* end confdefs.h.  */
9272
9273
9274int
9275main ()
9276{
9277return main ();
9278  ;
9279  return 0;
9280}
9281_ACEOF
9282if ac_fn_c_try_link "$LINENO"; then :
9283  ac_cv_lib_nsl_main=yes
9284else
9285  ac_cv_lib_nsl_main=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext \
9288    conftest$ac_exeext conftest.$ac_ext
9289LIBS=$ac_check_lib_save_LIBS
9290fi
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
9292$as_echo "$ac_cv_lib_nsl_main" >&6; }
9293if test "x$ac_cv_lib_nsl_main" = xyes; then :
9294  cat >>confdefs.h <<_ACEOF
9295#define HAVE_LIBNSL 1
9296_ACEOF
9297
9298  LIBS="-lnsl $LIBS"
9299
9300fi
9301
9302fi
9303
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lresolv is needed" >&5
9305$as_echo_n "checking if -lresolv is needed... " >&6; }
9306if ${lp_cv_need_lib_resolv+:} false; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  if test "$cross_compiling" = yes; then :
9310  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9312as_fn_error $? "cannot run test program while cross compiling
9313See \`config.log' for more details" "$LINENO" 5; }
9314else
9315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316/* end confdefs.h.  */
9317
9318#include <netdb.h>
9319void t (void)
9320{
9321    herror("foo");
9322}
9323int main(void)
9324{
9325    return 0;
9326}
9327
9328_ACEOF
9329if ac_fn_c_try_run "$LINENO"; then :
9330  lp_cv_need_lib_resolv=no
9331else
9332  lp_cv_need_lib_resolv=yes
9333
9334fi
9335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9336  conftest.$ac_objext conftest.beam conftest.$ac_ext
9337fi
9338
9339fi
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_resolv" >&5
9341$as_echo "$lp_cv_need_lib_resolv" >&6; }
9342if test "$lp_cv_need_lib_resolv" = "yes"; then
9343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
9344$as_echo_n "checking for main in -lresolv... " >&6; }
9345if ${ac_cv_lib_resolv_main+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  ac_check_lib_save_LIBS=$LIBS
9349LIBS="-lresolv  $LIBS"
9350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h.  */
9352
9353
9354int
9355main ()
9356{
9357return main ();
9358  ;
9359  return 0;
9360}
9361_ACEOF
9362if ac_fn_c_try_link "$LINENO"; then :
9363  ac_cv_lib_resolv_main=yes
9364else
9365  ac_cv_lib_resolv_main=no
9366fi
9367rm -f core conftest.err conftest.$ac_objext \
9368    conftest$ac_exeext conftest.$ac_ext
9369LIBS=$ac_check_lib_save_LIBS
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
9372$as_echo "$ac_cv_lib_resolv_main" >&6; }
9373if test "x$ac_cv_lib_resolv_main" = xyes; then :
9374  LIBS="$LIBS -lresolv"
9375fi
9376
9377fi
9378
9379# --- Check if we need the crypto libraries ---
9380for ac_func in crypt _crypt
9381do :
9382  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9383ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9384if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9385  cat >>confdefs.h <<_ACEOF
9386#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9387_ACEOF
9388
9389fi
9390done
9391
9392for lp_lib in crypt crypto; do
9393    if test "$ac_cv_func_crypt" != "yes" -a "$ac_cv_func__crypt" != "yes"; then
9394        # Try linking with lib$lp_lib
9395        unset ac_cv_func_crypt
9396        unset ac_cv_func__crypt
9397        lp_save_libs="$LIBS"
9398        as_ac_Lib=`$as_echo "ac_cv_lib_$lp_lib''_main" | $as_tr_sh`
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$lp_lib" >&5
9400$as_echo_n "checking for main in -l$lp_lib... " >&6; }
9401if eval \${$as_ac_Lib+:} false; then :
9402  $as_echo_n "(cached) " >&6
9403else
9404  ac_check_lib_save_LIBS=$LIBS
9405LIBS="-l$lp_lib  $LIBS"
9406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407/* end confdefs.h.  */
9408
9409
9410int
9411main ()
9412{
9413return main ();
9414  ;
9415  return 0;
9416}
9417_ACEOF
9418if ac_fn_c_try_link "$LINENO"; then :
9419  eval "$as_ac_Lib=yes"
9420else
9421  eval "$as_ac_Lib=no"
9422fi
9423rm -f core conftest.err conftest.$ac_objext \
9424    conftest$ac_exeext conftest.$ac_ext
9425LIBS=$ac_check_lib_save_LIBS
9426fi
9427eval ac_res=\$$as_ac_Lib
9428	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9429$as_echo "$ac_res" >&6; }
9430if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9431  LIBS="$LIBS -l$lp_lib"
9432fi
9433
9434
9435        if test "$SAVE_LIBS" != "$LIBS" ; then
9436            for ac_func in crypt _crypt
9437do :
9438  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9440if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9441  cat >>confdefs.h <<_ACEOF
9442#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9443_ACEOF
9444
9445fi
9446done
9447
9448            if test "$ac_cv_func_crypt" != "yes" -a "$ac_cv_func__crypt" != "yes"; then
9449                # They are not in this library
9450                LIBS="$lp_save_libs"
9451            else
9452                eval "lp_cv_need_lib_${lp_lib}=yes"
9453            fi
9454        fi
9455    fi
9456done
9457
9458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa() ok" >&5
9459$as_echo_n "checking if inet_ntoa() ok... " >&6; }
9460if ${lp_cv_func_inet_ntoa_ok+:} false; then :
9461  $as_echo_n "(cached) " >&6
9462else
9463  if test "$cross_compiling" = yes; then :
9464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h.  */
9466
9467#if defined(sun) && !defined(__svr4__)
9468#include <sys/types.h> /* needed for netinet/in.h */
9469#include <netinet/in.h>
9470#include <arpa/inet.h>
9471char *inet_ntoa(ad)
9472    struct in_addr ad;
9473{
9474    static char addr[20];
9475    return addr;
9476}
9477#else
9478use inet_ntoa() from the library.
9479#endif
9480
9481int
9482main ()
9483{
9484
9485  ;
9486  return 0;
9487}
9488_ACEOF
9489if ac_fn_c_try_compile "$LINENO"; then :
9490  lp_cv_func_inet_ntoa_ok=no
9491else
9492  lp_cv_func_inet_ntoa_ok=yes
9493
9494fi
9495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496else
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499
9500#include <sys/types.h> /* needed for netinet/in.h */
9501#include <netinet/in.h>
9502#include <arpa/inet.h>
9503main() {
9504    char addr1[] = "176.88.1.16";
9505    char addr2[] = "88.176.128.2";
9506    struct in_addr tmp;
9507
9508#if SIZEOF_INT == 4
9509#define ADDR_TYPE unsigned int
9510#else
9511#define ADDR_TYPE unsigned long
9512#endif
9513    *((ADDR_TYPE *)&tmp) = inet_addr(addr1);
9514    if (strcmp(addr1, inet_ntoa(tmp)))
9515        exit(1);
9516    *((ADDR_TYPE *)&tmp) = inet_addr(addr2);
9517    if (strcmp(addr2, inet_ntoa(tmp)))
9518        exit(1);
9519    exit(0);
9520}
9521
9522_ACEOF
9523if ac_fn_c_try_run "$LINENO"; then :
9524  lp_cv_func_inet_ntoa_ok=yes
9525else
9526  lp_cv_func_inet_ntoa_ok=no
9527fi
9528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9529  conftest.$ac_objext conftest.beam conftest.$ac_ext
9530fi
9531
9532fi
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_func_inet_ntoa_ok" >&5
9534$as_echo "$lp_cv_func_inet_ntoa_ok" >&6; }
9535if test "$lp_cv_func_inet_ntoa_ok" = "yes" ; then
9536
9537$as_echo "#define INET_NTOA_OK 1" >>confdefs.h
9538
9539fi
9540
9541# --- IPV6 ---
9542
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
9544$as_echo_n "checking for IPv6 support... " >&6; }
9545if ${lp_cv_has_ipv6+:} false; then :
9546  $as_echo_n "(cached) " >&6
9547else
9548  saveflags="$CFLAGS"
9549    CFLAGS="$CFLAGS -I/usr/inet6/include"
9550    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551/* end confdefs.h.  */
9552
9553#include <sys/types.h>
9554#include <netinet/in.h>
9555
9556struct sockaddr_in6 foo(void)
9557{
9558    static struct sockaddr_in6 ad;
9559
9560    return ad;
9561}
9562
9563int
9564main ()
9565{
9566
9567  ;
9568  return 0;
9569}
9570_ACEOF
9571if ac_fn_c_try_compile "$LINENO"; then :
9572  lp_cv_has_ipv6=yes
9573else
9574  lp_cv_has_ipv6=no
9575    CFLAGS="$saveflags"
9576
9577fi
9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579fi
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_ipv6" >&5
9581$as_echo "$lp_cv_has_ipv6" >&6; }
9582if test "$lp_cv_has_ipv6" = "yes"; then
9583
9584$as_echo "#define HAS_IPV6 1" >>confdefs.h
9585
9586    if test "$enable_use_ipv6" = "yes"; then
9587        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -linet6 is needed" >&5
9588$as_echo_n "checking if -linet6 is needed... " >&6; }
9589if ${lp_cv_need_lib_inet6+:} false; then :
9590  $as_echo_n "(cached) " >&6
9591else
9592  if test "$cross_compiling" = yes; then :
9593  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9595as_fn_error $? "cannot run test program while cross compiling
9596See \`config.log' for more details" "$LINENO" 5; }
9597else
9598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h.  */
9600
9601#include <sys/types.h>
9602#include <netinet/in.h>
9603void t (void)
9604{
9605    struct sockaddr_in6 ad;
9606    inet6_ntoa(ad.sin_addr);
9607}
9608int main(void)
9609{
9610    return 0;
9611}
9612
9613_ACEOF
9614if ac_fn_c_try_run "$LINENO"; then :
9615  lp_cv_need_lib_inet6=no
9616else
9617  lp_cv_need_lib_inet6=yes
9618
9619fi
9620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9621  conftest.$ac_objext conftest.beam conftest.$ac_ext
9622fi
9623
9624fi
9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_inet6" >&5
9626$as_echo "$lp_cv_need_lib_inet6" >&6; }
9627        if test "$lp_cv_need_lib_inet6" = "yes"; then
9628            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet6" >&5
9629$as_echo_n "checking for main in -linet6... " >&6; }
9630if ${ac_cv_lib_inet6_main+:} false; then :
9631  $as_echo_n "(cached) " >&6
9632else
9633  ac_check_lib_save_LIBS=$LIBS
9634LIBS="-linet6  $LIBS"
9635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h.  */
9637
9638
9639int
9640main ()
9641{
9642return main ();
9643  ;
9644  return 0;
9645}
9646_ACEOF
9647if ac_fn_c_try_link "$LINENO"; then :
9648  ac_cv_lib_inet6_main=yes
9649else
9650  ac_cv_lib_inet6_main=no
9651fi
9652rm -f core conftest.err conftest.$ac_objext \
9653    conftest$ac_exeext conftest.$ac_ext
9654LIBS=$ac_check_lib_save_LIBS
9655fi
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_main" >&5
9657$as_echo "$ac_cv_lib_inet6_main" >&6; }
9658if test "x$ac_cv_lib_inet6_main" = xyes; then :
9659  LIBS="$LIBS -linet6"
9660fi
9661
9662        fi
9663    fi
9664else
9665    if test "$enable_use_ipv6" = "yes"; then
9666        echo "IPV6 not supported - disabling IPV6 support."
9667        if test "x$not_available" = "x"; then
9668    not_available="use-ipv6"
9669else
9670    not_available="$not_available, use-ipv6"
9671fi
9672    fi
9673    cdef_use_ipv6="#undef"
9674    enable_use_ipv6=no
9675fi
9676
9677# --- TLS ---
9678
9679has_tls=no
9680
9681saveflags="$CFLAGS"
9682saveeflags="$EXTRA_CFLAGS"
9683savelibs="$LIBS"
9684savepkglibs="$PKGLIBS"
9685
9686# Check for OpenSSL unless not desired
9687# Check for the libraries only if tls is actually enabled.
9688
9689if test ! "x${tls_include_path}" = "x"; then
9690    CFLAGS="$CFLAGS -I${tls_include_path}"
9691    EXTRA_CFLAGS="$EXTRA_CFLAGS -I${tls_include_path}"
9692fi
9693
9694if test ! "x${tls_lib_path}" = "x"; then
9695    LIBS="$LIBS -L${tls_lib_path}"
9696    PKGLIBS="$PKGLIBS -L${tls_lib_path}"
9697fi
9698
9699if test "$tls_package" = "any" -o "$tls_package" = "ssl"; then
9700
9701    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5
9702$as_echo_n "checking for OpenSSL support... " >&6; }
9703if ${lp_cv_has_openssl+:} false; then :
9704  $as_echo_n "(cached) " >&6
9705else
9706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707/* end confdefs.h.  */
9708
9709    #include <openssl/ssl.h>
9710
9711    void foo(void)
9712    {
9713        int i = SSL_MAX_SSL_SESSION_ID_LENGTH;
9714    }
9715
9716int
9717main ()
9718{
9719
9720  ;
9721  return 0;
9722}
9723_ACEOF
9724if ac_fn_c_try_compile "$LINENO"; then :
9725  lp_cv_has_openssl=yes
9726else
9727  lp_cv_has_openssl=no
9728
9729fi
9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731fi
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_openssl" >&5
9733$as_echo "$lp_cv_has_openssl" >&6; }
9734
9735    if test "$lp_cv_has_openssl" = "yes"; then
9736        has_tls=yes
9737        tls_package=ssl
9738
9739$as_echo "#define HAS_OPENSSL 1" >>confdefs.h
9740
9741
9742        if test "$enable_use_tls" = "yes"; then
9743            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lssl or similar is needed" >&5
9744$as_echo_n "checking if -lssl or similar is needed... " >&6; }
9745if ${lp_cv_need_lib_ssl+:} false; then :
9746  $as_echo_n "(cached) " >&6
9747else
9748  if test "$cross_compiling" = yes; then :
9749  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9751as_fn_error $? "cannot run test program while cross compiling
9752See \`config.log' for more details" "$LINENO" 5; }
9753else
9754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755/* end confdefs.h.  */
9756
9757    #include <openssl/ssl.h>
9758    void t (void)
9759    {
9760        SSL_library_init();
9761    }
9762    int main(void)
9763    {
9764        return 0;
9765    }
9766
9767_ACEOF
9768if ac_fn_c_try_run "$LINENO"; then :
9769  lp_cv_need_lib_ssl=no
9770else
9771  lp_cv_need_lib_ssl=yes
9772
9773fi
9774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9775  conftest.$ac_objext conftest.beam conftest.$ac_ext
9776fi
9777
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_ssl" >&5
9780$as_echo "$lp_cv_need_lib_ssl" >&6; }
9781            if test "$lp_cv_need_lib_ssl" = "yes"; then
9782                lp_cv_has_lib_ssl=no
9783                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
9784$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9785if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
9786  $as_echo_n "(cached) " >&6
9787else
9788  ac_check_lib_save_LIBS=$LIBS
9789LIBS="-lssl  $LIBS"
9790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792
9793/* Override any GCC internal prototype to avoid an error.
9794   Use char because int might match the return type of a GCC
9795   builtin and then its argument prototype would still apply.  */
9796#ifdef __cplusplus
9797extern "C"
9798#endif
9799char SSL_library_init ();
9800int
9801main ()
9802{
9803return SSL_library_init ();
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808if ac_fn_c_try_link "$LINENO"; then :
9809  ac_cv_lib_ssl_SSL_library_init=yes
9810else
9811  ac_cv_lib_ssl_SSL_library_init=no
9812fi
9813rm -f core conftest.err conftest.$ac_objext \
9814    conftest$ac_exeext conftest.$ac_ext
9815LIBS=$ac_check_lib_save_LIBS
9816fi
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9818$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9819if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
9820  PKGLIBS="$PKGLIBS -lssl"
9821                             lp_cv_has_lib_ssl=yes
9822
9823fi
9824
9825            fi
9826
9827            if test "x$lp_cv_need_lib_crypto" != "xyes"; then
9828                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto is needed for SSL" >&5
9829$as_echo_n "checking if -lcrypto is needed for SSL... " >&6; }
9830if ${lp_cv_need_lib_crypto+:} false; then :
9831  $as_echo_n "(cached) " >&6
9832else
9833  if test "$cross_compiling" = yes; then :
9834  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9836as_fn_error $? "cannot run test program while cross compiling
9837See \`config.log' for more details" "$LINENO" 5; }
9838else
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841
9842#include <openssl/ssl.h>
9843void t (void)
9844{
9845    DH *dhe1024 = NULL;
9846    DH_free(dhe1024);
9847}
9848int main(void)
9849{
9850    return 0;
9851}
9852
9853_ACEOF
9854if ac_fn_c_try_run "$LINENO"; then :
9855  lp_cv_need_lib_crypto=no
9856else
9857  lp_cv_need_lib_crypto=yes
9858
9859fi
9860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9861  conftest.$ac_objext conftest.beam conftest.$ac_ext
9862fi
9863
9864fi
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_crypto" >&5
9866$as_echo "$lp_cv_need_lib_crypto" >&6; }
9867                if test "$lp_cv_need_lib_crypto" = "yes"; then
9868                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
9869$as_echo_n "checking for main in -lcrypto... " >&6; }
9870if ${ac_cv_lib_crypto_main+:} false; then :
9871  $as_echo_n "(cached) " >&6
9872else
9873  ac_check_lib_save_LIBS=$LIBS
9874LIBS="-lcrypto  $LIBS"
9875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h.  */
9877
9878
9879int
9880main ()
9881{
9882return main ();
9883  ;
9884  return 0;
9885}
9886_ACEOF
9887if ac_fn_c_try_link "$LINENO"; then :
9888  ac_cv_lib_crypto_main=yes
9889else
9890  ac_cv_lib_crypto_main=no
9891fi
9892rm -f core conftest.err conftest.$ac_objext \
9893    conftest$ac_exeext conftest.$ac_ext
9894LIBS=$ac_check_lib_save_LIBS
9895fi
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
9897$as_echo "$ac_cv_lib_crypto_main" >&6; }
9898if test "x$ac_cv_lib_crypto_main" = xyes; then :
9899  PKGLIBS="$PKGLIBS -lcrypto"
9900fi
9901
9902                fi
9903            fi
9904        fi
9905    else
9906        has_tls=no
9907    fi
9908fi
9909
9910# Check for GnuTLS unless not desired
9911
9912if test "$tls_package" = "any" -o "$tls_package" = "gnu"; then
9913
9914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS support" >&5
9915$as_echo_n "checking for GnuTLS support... " >&6; }
9916if ${lp_cv_has_gnutls+:} false; then :
9917  $as_echo_n "(cached) " >&6
9918else
9919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h.  */
9921
9922    #include <gnutls/gnutls.h>
9923
9924    void foo(void)
9925    {
9926        int i = GNUTLS_CIPHER_RIJNDAEL_256_CBC;
9927    }
9928
9929int
9930main ()
9931{
9932
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937if ac_fn_c_try_compile "$LINENO"; then :
9938  lp_cv_has_gnutls=yes
9939else
9940  lp_cv_has_gnutls=no
9941
9942fi
9943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944fi
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_gnutls" >&5
9946$as_echo "$lp_cv_has_gnutls" >&6; }
9947
9948    if test "$lp_cv_has_gnutls" = "yes"; then
9949        has_tls=yes
9950        tls_package=gnu
9951
9952$as_echo "#define HAS_GNUTLS 1" >>confdefs.h
9953
9954
9955        if test "$enable_use_tls" = "yes"; then
9956            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lgnutls or similar is needed" >&5
9957$as_echo_n "checking if -lgnutls or similar is needed... " >&6; }
9958if ${lp_cv_need_lib_gnutls+:} false; then :
9959  $as_echo_n "(cached) " >&6
9960else
9961  if test "$cross_compiling" = yes; then :
9962  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9964as_fn_error $? "cannot run test program while cross compiling
9965See \`config.log' for more details" "$LINENO" 5; }
9966else
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969
9970    #include <gnutls/gnutls.h>
9971    void t (void)
9972    {
9973        gnutls_global_init();
9974        gnutls_global_deinit();
9975    }
9976    int main(void)
9977    {
9978        return 0;
9979    }
9980
9981_ACEOF
9982if ac_fn_c_try_run "$LINENO"; then :
9983  lp_cv_need_lib_gnutls=no
9984else
9985  lp_cv_need_lib_gnutls=yes
9986
9987fi
9988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9989  conftest.$ac_objext conftest.beam conftest.$ac_ext
9990fi
9991
9992fi
9993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_gnutls" >&5
9994$as_echo "$lp_cv_need_lib_gnutls" >&6; }
9995            if test "$lp_cv_need_lib_gnutls" = "yes"; then
9996                lp_cv_has_lib_gnutls=no
9997                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
9998$as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
9999if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  ac_check_lib_save_LIBS=$LIBS
10003LIBS="-lgnutls  $LIBS"
10004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006
10007/* Override any GCC internal prototype to avoid an error.
10008   Use char because int might match the return type of a GCC
10009   builtin and then its argument prototype would still apply.  */
10010#ifdef __cplusplus
10011extern "C"
10012#endif
10013char gnutls_global_init ();
10014int
10015main ()
10016{
10017return gnutls_global_init ();
10018  ;
10019  return 0;
10020}
10021_ACEOF
10022if ac_fn_c_try_link "$LINENO"; then :
10023  ac_cv_lib_gnutls_gnutls_global_init=yes
10024else
10025  ac_cv_lib_gnutls_gnutls_global_init=no
10026fi
10027rm -f core conftest.err conftest.$ac_objext \
10028    conftest$ac_exeext conftest.$ac_ext
10029LIBS=$ac_check_lib_save_LIBS
10030fi
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
10032$as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
10033if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then :
10034  PKGLIBS="$PKGLIBS -lgnutls"
10035                             lp_cv_has_lib_gnutls=yes
10036
10037fi
10038
10039            fi
10040            { $as_echo "$as_me:${as_lineno-$LINENO}: checking gnutls version" >&5
10041$as_echo_n "checking gnutls version... " >&6; }
10042if ${lp_cv_has_gnutls_version+:} false; then :
10043  $as_echo_n "(cached) " >&6
10044else
10045  savelibs="$LIBS"
10046                LIBS="$PKGLIBS"
10047                if test "$cross_compiling" = yes; then :
10048  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10050as_fn_error $? "cannot run test program while cross compiling
10051See \`config.log' for more details" "$LINENO" 5; }
10052else
10053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054/* end confdefs.h.  */
10055
10056    #include <gnutls/gnutls.h>
10057    void t (void)
10058    {
10059	gnutls_dh_params dh_params;
10060	gnutls_dh_params_generate2( dh_params, 1024);
10061    }
10062    int main(void)
10063    {
10064        return 0;
10065    }
10066
10067_ACEOF
10068if ac_fn_c_try_run "$LINENO"; then :
10069  lp_cv_has_gnutls_version=8
10070else
10071  lp_cv_has_gnutls_version=7
10072
10073fi
10074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10075  conftest.$ac_objext conftest.beam conftest.$ac_ext
10076fi
10077
10078fi
10079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_gnutls_version" >&5
10080$as_echo "$lp_cv_has_gnutls_version" >&6; }
10081            LIBS="$savelibs"
10082
10083cat >>confdefs.h <<_ACEOF
10084#define HAS_GNUTLS_VERSION $lp_cv_has_gnutls_version
10085_ACEOF
10086
10087        fi
10088
10089    else
10090        has_tls=no
10091    fi
10092fi
10093
10094# Evaluate the results of the checks
10095
10096if test "$has_tls" = "no"; then
10097    if test "$enable_use_tls" = "yes"; then
10098        echo "TLS not supported - disabling TLS support."
10099        if test "x$not_available" = "x"; then
10100    not_available="use-tls"
10101else
10102    not_available="$not_available, use-tls"
10103fi
10104    fi
10105    cdef_use_tls="#undef"
10106    enable_use_tls=no
10107    EXTRA_CFLAGS="$saveeflags"
10108    PKGLIBS="$savepkglibs"
10109fi
10110
10111CFLAGS="$saveflags"
10112LIBS="$savelibs"
10113
10114# --- Gcrypt ---
10115
10116if test "$tls_package" != "ssl"; then
10117
10118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
10119$as_echo_n "checking for libgcrypt... " >&6; }
10120if ${lp_cv_has_gcrypt+:} false; then :
10121  $as_echo_n "(cached) " >&6
10122else
10123  for TESTPATH in "" "$gcrypt_path" "$gcrypt_path/include" "/usr/local/include" ; do
10124        saveflags="$CFLAGS"
10125        if test "x$TESTPATH" != "x"; then
10126            CFLAGS="$saveflags -I$TESTPATH"
10127        fi
10128    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h.  */
10130
10131    #include <gcrypt.h>
10132
10133    void foo(void)
10134    {
10135        int algo = GCRY_MD_SHA1;
10136    }
10137
10138int
10139main ()
10140{
10141
10142  ;
10143  return 0;
10144}
10145_ACEOF
10146if ac_fn_c_try_compile "$LINENO"; then :
10147  lp_cv_has_gcrypt=yes
10148    if test "x$TESTPATH" != "x"; then
10149        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
10150    fi
10151    break;
10152
10153else
10154  lp_cv_has_gcrypt=no
10155    CFLAGS="$saveflags"
10156
10157fi
10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159    done
10160
10161fi
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_gcrypt" >&5
10163$as_echo "$lp_cv_has_gcrypt" >&6; }
10164
10165    if test "$lp_cv_has_gcrypt" = "yes"; then
10166      saveflags="$CFLAGS"
10167
10168$as_echo "#define HAS_GCRYPT 1" >>confdefs.h
10169
10170
10171      if test "$enable_use_gcrypt" = "yes"; then
10172        tmp=""
10173
10174        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
10175$as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
10176if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  ac_check_lib_save_LIBS=$LIBS
10180LIBS="-lgcrypt  $LIBS"
10181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183
10184/* Override any GCC internal prototype to avoid an error.
10185   Use char because int might match the return type of a GCC
10186   builtin and then its argument prototype would still apply.  */
10187#ifdef __cplusplus
10188extern "C"
10189#endif
10190char gcry_check_version ();
10191int
10192main ()
10193{
10194return gcry_check_version ();
10195  ;
10196  return 0;
10197}
10198_ACEOF
10199if ac_fn_c_try_link "$LINENO"; then :
10200  ac_cv_lib_gcrypt_gcry_check_version=yes
10201else
10202  ac_cv_lib_gcrypt_gcry_check_version=no
10203fi
10204rm -f core conftest.err conftest.$ac_objext \
10205    conftest$ac_exeext conftest.$ac_ext
10206LIBS=$ac_check_lib_save_LIBS
10207fi
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
10209$as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
10210if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
10211  tmp="$PKGLIBS -lgcrypt"
10212fi
10213
10214
10215        if test "x$tmp" == "x" && test "x$gcrypt_path" != "x"; then
10216            unset ac_cv_lib_gcrypt_main
10217            if test -d "${gcrypt_path}/lib/gcrypt"; then
10218                CFLAGS="$saveflags -L${gcrypt_path}/lib/gcrypt"
10219                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
10220$as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
10221if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
10222  $as_echo_n "(cached) " >&6
10223else
10224  ac_check_lib_save_LIBS=$LIBS
10225LIBS="-lgcrypt  $LIBS"
10226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227/* end confdefs.h.  */
10228
10229/* Override any GCC internal prototype to avoid an error.
10230   Use char because int might match the return type of a GCC
10231   builtin and then its argument prototype would still apply.  */
10232#ifdef __cplusplus
10233extern "C"
10234#endif
10235char gcry_check_version ();
10236int
10237main ()
10238{
10239return gcry_check_version ();
10240  ;
10241  return 0;
10242}
10243_ACEOF
10244if ac_fn_c_try_link "$LINENO"; then :
10245  ac_cv_lib_gcrypt_gcry_check_version=yes
10246else
10247  ac_cv_lib_gcrypt_gcry_check_version=no
10248fi
10249rm -f core conftest.err conftest.$ac_objext \
10250    conftest$ac_exeext conftest.$ac_ext
10251LIBS=$ac_check_lib_save_LIBS
10252fi
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
10254$as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
10255if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
10256  tmp="$PKGLIBS -L${gcrypt_path}/lib/gcrypt -lgcrypt"
10257fi
10258
10259            elif test -d "${gcrypt_path}/lib"; then
10260                CFLAGS="$saveflags -L${gcrypt_path}/lib"
10261                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
10262$as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
10263if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
10264  $as_echo_n "(cached) " >&6
10265else
10266  ac_check_lib_save_LIBS=$LIBS
10267LIBS="-lgcrypt  $LIBS"
10268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269/* end confdefs.h.  */
10270
10271/* Override any GCC internal prototype to avoid an error.
10272   Use char because int might match the return type of a GCC
10273   builtin and then its argument prototype would still apply.  */
10274#ifdef __cplusplus
10275extern "C"
10276#endif
10277char gcry_check_version ();
10278int
10279main ()
10280{
10281return gcry_check_version ();
10282  ;
10283  return 0;
10284}
10285_ACEOF
10286if ac_fn_c_try_link "$LINENO"; then :
10287  ac_cv_lib_gcrypt_gcry_check_version=yes
10288else
10289  ac_cv_lib_gcrypt_gcry_check_version=no
10290fi
10291rm -f core conftest.err conftest.$ac_objext \
10292    conftest$ac_exeext conftest.$ac_ext
10293LIBS=$ac_check_lib_save_LIBS
10294fi
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
10296$as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
10297if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
10298  tmp="$PKGLIBS -L${gcrypt_path}/lib -lgcrypt"
10299fi
10300
10301            elif test -d "${gcrypt_patch}"; then
10302                CFLAGS="$saveflags -L$gcrypt_path"
10303                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
10304$as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
10305if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
10306  $as_echo_n "(cached) " >&6
10307else
10308  ac_check_lib_save_LIBS=$LIBS
10309LIBS="-lgcrypt  $LIBS"
10310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h.  */
10312
10313/* Override any GCC internal prototype to avoid an error.
10314   Use char because int might match the return type of a GCC
10315   builtin and then its argument prototype would still apply.  */
10316#ifdef __cplusplus
10317extern "C"
10318#endif
10319char gcry_check_version ();
10320int
10321main ()
10322{
10323return gcry_check_version ();
10324  ;
10325  return 0;
10326}
10327_ACEOF
10328if ac_fn_c_try_link "$LINENO"; then :
10329  ac_cv_lib_gcrypt_gcry_check_version=yes
10330else
10331  ac_cv_lib_gcrypt_gcry_check_version=no
10332fi
10333rm -f core conftest.err conftest.$ac_objext \
10334    conftest$ac_exeext conftest.$ac_ext
10335LIBS=$ac_check_lib_save_LIBS
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
10338$as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
10339if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
10340  tmp="$PKGLIBS -L$gcrypt_path -lgcrypt"
10341fi
10342
10343            fi
10344        fi
10345
10346        if test "x$tmp" == "x"; then
10347            echo "libgcrypt library not found - disabling gcrypt support"
10348            if test "x$not_available" = "x"; then
10349    not_available="use-gcrypt"
10350else
10351    not_available="$not_available, use-gcrypt"
10352fi
10353            cdef_use_gcrypt="#undef"
10354            enable_use_gcrypt="no"
10355            lp_cv_has_gcrypt="no"
10356        else
10357            PKGLIBS="$tmp"
10358        fi
10359      fi
10360
10361      CFLAGS="$saveflags"
10362    else
10363      if test "$enable_use_gcrypt" = "yes"; then
10364          if test "x$not_available" = "x"; then
10365    not_available="use-gcrypt"
10366else
10367    not_available="$not_available, use-gcrypt"
10368fi
10369          cdef_use_gcrypt="#undef"
10370          enable_use_gcrypt=no
10371      fi
10372    fi
10373else
10374  cdef_use_gcrypt="#undef"
10375  enable_use_gcrypt=no
10376fi
10377
10378# --- PCRE ---
10379
10380lp_cv_has_pcre_lib="no"
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcre" >&5
10382$as_echo_n "checking for main in -lpcre... " >&6; }
10383if ${ac_cv_lib_pcre_main+:} false; then :
10384  $as_echo_n "(cached) " >&6
10385else
10386  ac_check_lib_save_LIBS=$LIBS
10387LIBS="-lpcre  $LIBS"
10388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390
10391
10392int
10393main ()
10394{
10395return main ();
10396  ;
10397  return 0;
10398}
10399_ACEOF
10400if ac_fn_c_try_link "$LINENO"; then :
10401  ac_cv_lib_pcre_main=yes
10402else
10403  ac_cv_lib_pcre_main=no
10404fi
10405rm -f core conftest.err conftest.$ac_objext \
10406    conftest$ac_exeext conftest.$ac_ext
10407LIBS=$ac_check_lib_save_LIBS
10408fi
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_main" >&5
10410$as_echo "$ac_cv_lib_pcre_main" >&6; }
10411if test "x$ac_cv_lib_pcre_main" = xyes; then :
10412  lp_cv_has_pcre_lib="yes"
10413fi
10414
10415
10416if test "$lp_cv_has_pcre_lib" = "yes"; then
10417    saveflags="$CFLAGS"
10418    CFLAGS="$CFLAGS -lpcre"
10419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE usability" >&5
10420$as_echo_n "checking for PCRE usability... " >&6; }
10421if ${lp_cv_has_pcre+:} false; then :
10422  $as_echo_n "(cached) " >&6
10423else
10424  if test "$cross_compiling" = yes; then :
10425  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10427as_fn_error $? "cannot run test program while cross compiling
10428See \`config.log' for more details" "$LINENO" 5; }
10429else
10430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431/* end confdefs.h.  */
10432
10433#include <pcre.h>
10434
10435pcre_extra foo(void)
10436{
10437    pcre_version();
10438}
10439int main(void)
10440{
10441    return 0;
10442}
10443
10444_ACEOF
10445if ac_fn_c_try_run "$LINENO"; then :
10446  lp_cv_has_pcre=yes
10447else
10448  lp_cv_has_pcre=no
10449
10450fi
10451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10452  conftest.$ac_objext conftest.beam conftest.$ac_ext
10453fi
10454
10455fi
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_pcre" >&5
10457$as_echo "$lp_cv_has_pcre" >&6; }
10458    CFLAGS="$saveflags"
10459
10460    if test "$lp_cv_has_pcre" = "yes"; then
10461
10462$as_echo "#define HAS_PCRE 1" >>confdefs.h
10463
10464        PKGLIBS="$PKGLIBS -lpcre"
10465    else
10466        if test "$enable_use_builtin_pcre" = "no" ; then
10467            echo "PCRE not available in the system - using builtin version."
10468            enable_use_builtin_pcre="yes"
10469            cdef_use_builtin_pcre="#define"
10470        fi
10471    fi
10472fi
10473
10474# --- iconv ---
10475
10476# iconv in glibc 2.2.5 is broken - but not every system even
10477# uses glibc.
10478echo "$as_me:$LINENO: checking for broken iconv in glibc 2.0-2.2" >&5
10479echo $ECHO_N "checking for broken iconv in glibc 2.0-2.2... $ECHO_C" >&6
10480if test -f /usr/sbin/iconvconfig; then
10481    if /usr/sbin/iconvconfig -V | egrep ' 2\.[0-2]' >/dev/null 2>&1; then
10482        lp_cv_has_broken_iconv="yes"
10483        lp_cv_has_iconv="no"
10484    else
10485        lp_cv_has_broken_iconv="no"
10486    fi
10487else
10488  lp_cv_has_broken_iconv="no"
10489fi
10490echo "$as_me:$LINENO: result: $lp_cv_has_broken_iconv" >&5
10491echo "${ECHO_T}$lp_cv_has_broken_iconv" >&6
10492
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10494$as_echo_n "checking for iconv... " >&6; }
10495if ${lp_cv_has_iconv+:} false; then :
10496  $as_echo_n "(cached) " >&6
10497else
10498  for TESTPATH in "" "/usr/local/include"; do
10499    saveflags="$CFLAGS"
10500    if test "x$TESTPATH" != "x"; then
10501        CFLAGS="-I$TESTPATH $saveflags"
10502    fi
10503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504/* end confdefs.h.  */
10505
10506#include <iconv.h>
10507
10508iconv_t * foo(void)
10509{
10510    return 0;
10511}
10512
10513int
10514main ()
10515{
10516
10517  ;
10518  return 0;
10519}
10520_ACEOF
10521if ac_fn_c_try_compile "$LINENO"; then :
10522  lp_cv_has_iconv=yes
10523if test "x$TESTPATH" != "x"; then
10524    EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
10525fi
10526break;
10527
10528else
10529  lp_cv_has_iconv=no
10530CFLAGS="$saveflags"
10531
10532fi
10533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534done
10535
10536fi
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_iconv" >&5
10538$as_echo "$lp_cv_has_iconv" >&6; }
10539
10540
10541# The system has the include files - now perform further checks
10542if test "x$lp_cv_has_iconv" = "xyes"; then
10543    saveflags="$CFLAGS"
10544
10545    # Some systems define iconv() to take a non-const 'char**' as first arg.
10546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv takes a non-const char**" >&5
10547$as_echo_n "checking if iconv takes a non-const char**... " >&6; }
10548
10549    CFLAGS="$CFLAGS $EXTRA_CFLAGS"
10550    tcomp2='${CC-cc} ${CFLAGS} -o conftest.o -c conftest.c 2>&1'
10551    cat > conftest.c <<EOF
10552#include <stdlib.h>
10553#include <iconv.h>
10554
10555int foo(void)
10556{
10557    const char * in;
10558
10559    return iconv(NULL, &in, NULL, NULL, NULL);
10560}
10561EOF
10562
10563
10564    if echo `eval $tcomp2` | egrep '[a-z]' >/dev/null; then
10565      # Success means 'we got output' here :-(
10566        lp_cv_has_iconv_nonconst_in=yes
10567    else
10568        lp_cv_has_iconv_nonconst_in=no
10569    fi
10570    CFLAGS="$saveflags"
10571
10572
10573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_iconv_nonconst_in" >&5
10574$as_echo "$lp_cv_has_iconv_nonconst_in" >&6; }
10575
10576    # Does the system need to link in libiconv?
10577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed" >&5
10578$as_echo_n "checking if -liconv is needed... " >&6; }
10579if ${lp_cv_need_lib_iconv+:} false; then :
10580  $as_echo_n "(cached) " >&6
10581else
10582  if test "$cross_compiling" = yes; then :
10583  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10585as_fn_error $? "cannot run test program while cross compiling
10586See \`config.log' for more details" "$LINENO" 5; }
10587else
10588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h.  */
10590
10591#include <stdlib.h>
10592#include <iconv.h>
10593int t (void)
10594{
10595    return iconv(NULL, NULL, NULL, NULL, NULL);
10596}
10597int main(void)
10598{
10599    return 0;
10600}
10601
10602_ACEOF
10603if ac_fn_c_try_run "$LINENO"; then :
10604  lp_cv_need_lib_iconv=no
10605else
10606  lp_cv_need_lib_iconv=yes
10607
10608fi
10609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10610  conftest.$ac_objext conftest.beam conftest.$ac_ext
10611fi
10612
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_iconv" >&5
10615$as_echo "$lp_cv_need_lib_iconv" >&6; }
10616    if test "$lp_cv_need_lib_iconv" = "yes"; then
10617        # Search the libraries
10618
10619        tmp=""
10620
10621        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_close in -liconv" >&5
10622$as_echo_n "checking for libiconv_close in -liconv... " >&6; }
10623if ${ac_cv_lib_iconv_libiconv_close+:} false; then :
10624  $as_echo_n "(cached) " >&6
10625else
10626  ac_check_lib_save_LIBS=$LIBS
10627LIBS="-liconv  $LIBS"
10628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629/* end confdefs.h.  */
10630
10631/* Override any GCC internal prototype to avoid an error.
10632   Use char because int might match the return type of a GCC
10633   builtin and then its argument prototype would still apply.  */
10634#ifdef __cplusplus
10635extern "C"
10636#endif
10637char libiconv_close ();
10638int
10639main ()
10640{
10641return libiconv_close ();
10642  ;
10643  return 0;
10644}
10645_ACEOF
10646if ac_fn_c_try_link "$LINENO"; then :
10647  ac_cv_lib_iconv_libiconv_close=yes
10648else
10649  ac_cv_lib_iconv_libiconv_close=no
10650fi
10651rm -f core conftest.err conftest.$ac_objext \
10652    conftest$ac_exeext conftest.$ac_ext
10653LIBS=$ac_check_lib_save_LIBS
10654fi
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_close" >&5
10656$as_echo "$ac_cv_lib_iconv_libiconv_close" >&6; }
10657if test "x$ac_cv_lib_iconv_libiconv_close" = xyes; then :
10658  tmp="$PKGLIBS -liconv"
10659fi
10660
10661
10662        if test "x$tmp" = "x"; then
10663            CFLAGS="$saveflags -L/usr/local/lib"
10664            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_close in -liconv" >&5
10665$as_echo_n "checking for libiconv_close in -liconv... " >&6; }
10666if ${ac_cv_lib_iconv_libiconv_close+:} false; then :
10667  $as_echo_n "(cached) " >&6
10668else
10669  ac_check_lib_save_LIBS=$LIBS
10670LIBS="-liconv  $LIBS"
10671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672/* end confdefs.h.  */
10673
10674/* Override any GCC internal prototype to avoid an error.
10675   Use char because int might match the return type of a GCC
10676   builtin and then its argument prototype would still apply.  */
10677#ifdef __cplusplus
10678extern "C"
10679#endif
10680char libiconv_close ();
10681int
10682main ()
10683{
10684return libiconv_close ();
10685  ;
10686  return 0;
10687}
10688_ACEOF
10689if ac_fn_c_try_link "$LINENO"; then :
10690  ac_cv_lib_iconv_libiconv_close=yes
10691else
10692  ac_cv_lib_iconv_libiconv_close=no
10693fi
10694rm -f core conftest.err conftest.$ac_objext \
10695    conftest$ac_exeext conftest.$ac_ext
10696LIBS=$ac_check_lib_save_LIBS
10697fi
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_close" >&5
10699$as_echo "$ac_cv_lib_iconv_libiconv_close" >&6; }
10700if test "x$ac_cv_lib_iconv_libiconv_close" = xyes; then :
10701  tmp="$PKGLIBS -L/usr/local/lib -liconv"
10702fi
10703
10704        fi
10705
10706        if test "x$tmp" = "x"; then
10707            echo "iconv library not found."
10708            lp_cv_has_iconv="no"
10709        else
10710            PKGLIBS="$tmp"
10711        fi
10712
10713        CFLAGS="$saveflags"
10714    fi
10715fi
10716
10717if test "x$lp_cv_has_iconv" = "xyes"; then
10718
10719$as_echo "#define HAS_ICONV 1" >>confdefs.h
10720
10721fi
10722
10723if test "x$lp_cv_has_iconv_nonconst_in" = "xyes"; then
10724
10725$as_echo "#define HAS_ICONV_NONCONST_IN 1" >>confdefs.h
10726
10727fi
10728
10729# --- libidn ---
10730ac_fn_c_check_header_mongrel "$LINENO" "idna.h" "ac_cv_header_idna_h" "$ac_includes_default"
10731if test "x$ac_cv_header_idna_h" = xyes; then :
10732  lp_cv_has_idn=yes
10733else
10734  lp_cv_has_idn=no
10735fi
10736
10737
10738ac_fn_c_check_header_mongrel "$LINENO" "stringprep.h" "ac_cv_header_stringprep_h" "$ac_includes_default"
10739if test "x$ac_cv_header_stringprep_h" = xyes; then :
10740  lp_cv_has_idn=yes
10741else
10742  lp_cv_has_idn=no
10743fi
10744
10745
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stringprep_check_version in -lidn" >&5
10747$as_echo_n "checking for stringprep_check_version in -lidn... " >&6; }
10748if ${ac_cv_lib_idn_stringprep_check_version+:} false; then :
10749  $as_echo_n "(cached) " >&6
10750else
10751  ac_check_lib_save_LIBS=$LIBS
10752LIBS="-lidn  $LIBS"
10753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h.  */
10755
10756/* Override any GCC internal prototype to avoid an error.
10757   Use char because int might match the return type of a GCC
10758   builtin and then its argument prototype would still apply.  */
10759#ifdef __cplusplus
10760extern "C"
10761#endif
10762char stringprep_check_version ();
10763int
10764main ()
10765{
10766return stringprep_check_version ();
10767  ;
10768  return 0;
10769}
10770_ACEOF
10771if ac_fn_c_try_link "$LINENO"; then :
10772  ac_cv_lib_idn_stringprep_check_version=yes
10773else
10774  ac_cv_lib_idn_stringprep_check_version=no
10775fi
10776rm -f core conftest.err conftest.$ac_objext \
10777    conftest$ac_exeext conftest.$ac_ext
10778LIBS=$ac_check_lib_save_LIBS
10779fi
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_stringprep_check_version" >&5
10781$as_echo "$ac_cv_lib_idn_stringprep_check_version" >&6; }
10782if test "x$ac_cv_lib_idn_stringprep_check_version" = xyes; then :
10783  lp_cv_has_idn=yes LIBS="${LIBS} -lidn"
10784else
10785  lp_cv_has_idn=no
10786fi
10787
10788if test "x$lp_cv_has_idn" = "xyes"; then
10789
10790$as_echo "#define HAS_IDN 1" >>confdefs.h
10791
10792fi
10793
10794# --- mySQL ---
10795
10796# Note: Some compilers don't have /usr/local/include in their standard
10797# searchpath.
10798# Note: Some systems require zlib together with mysqlclient, but don't
10799# like it if -lz precedes the -lmysqlclient in the link command.
10800
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mySQL" >&5
10802$as_echo_n "checking for mySQL... " >&6; }
10803if ${lp_cv_has_mysql+:} false; then :
10804  $as_echo_n "(cached) " >&6
10805else
10806  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
10807    saveflags="$CFLAGS"
10808    if test "x$TESTPATH" != "x"; then
10809        CFLAGS="-I$TESTPATH $saveflags"
10810    fi
10811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812/* end confdefs.h.  */
10813
10814#include <sys/types.h>
10815#include <mysql.h>
10816#include <errmsg.h>
10817
10818struct MYSQL * foo(void)
10819{
10820    static MYSQL var;
10821
10822    return &var;
10823}
10824
10825int
10826main ()
10827{
10828
10829  ;
10830  return 0;
10831}
10832_ACEOF
10833if ac_fn_c_try_compile "$LINENO"; then :
10834  lp_cv_has_mysql=yes
10835if test "x$TESTPATH" != "x"; then
10836    EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
10837fi
10838break;
10839
10840else
10841  lp_cv_has_mysql=no
10842CFLAGS="$saveflags"
10843
10844fi
10845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846done
10847
10848fi
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_mysql" >&5
10850$as_echo "$lp_cv_has_mysql" >&6; }
10851
10852# The system has the include files - now search for the libraries.
10853if test "$lp_cv_has_mysql" = "yes"; then
10854  saveflags="$CFLAGS"
10855
10856$as_echo "#define HAS_MYSQL 1" >>confdefs.h
10857
10858
10859  if test "$enable_use_mysql" = "yes"; then
10860    tmp=""
10861
10862    if test "x$mysql_path" = "x"; then
10863        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
10864$as_echo_n "checking for main in -lmysqlclient... " >&6; }
10865if ${ac_cv_lib_mysqlclient_main+:} false; then :
10866  $as_echo_n "(cached) " >&6
10867else
10868  ac_check_lib_save_LIBS=$LIBS
10869LIBS="-lmysqlclient  $LIBS"
10870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871/* end confdefs.h.  */
10872
10873
10874int
10875main ()
10876{
10877return main ();
10878  ;
10879  return 0;
10880}
10881_ACEOF
10882if ac_fn_c_try_link "$LINENO"; then :
10883  ac_cv_lib_mysqlclient_main=yes
10884else
10885  ac_cv_lib_mysqlclient_main=no
10886fi
10887rm -f core conftest.err conftest.$ac_objext \
10888    conftest$ac_exeext conftest.$ac_ext
10889LIBS=$ac_check_lib_save_LIBS
10890fi
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
10892$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
10893if test "x$ac_cv_lib_mysqlclient_main" = xyes; then :
10894  tmp="$PKGLIBS -lmysqlclient"
10895fi
10896
10897        if test "x$tmp" = "x"; then
10898            if test -d "/usr/local/mysql/lib/mysql"; then
10899                unset ac_cv_lib_mysqlclient_main
10900                CFLAGS="$saveflags -L/usr/local/mysql/lib/mysql"
10901                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
10902$as_echo_n "checking for main in -lmysqlclient... " >&6; }
10903if ${ac_cv_lib_mysqlclient_main+:} false; then :
10904  $as_echo_n "(cached) " >&6
10905else
10906  ac_check_lib_save_LIBS=$LIBS
10907LIBS="-lmysqlclient  $LIBS"
10908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h.  */
10910
10911
10912int
10913main ()
10914{
10915return main ();
10916  ;
10917  return 0;
10918}
10919_ACEOF
10920if ac_fn_c_try_link "$LINENO"; then :
10921  ac_cv_lib_mysqlclient_main=yes
10922else
10923  ac_cv_lib_mysqlclient_main=no
10924fi
10925rm -f core conftest.err conftest.$ac_objext \
10926    conftest$ac_exeext conftest.$ac_ext
10927LIBS=$ac_check_lib_save_LIBS
10928fi
10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
10930$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
10931if test "x$ac_cv_lib_mysqlclient_main" = xyes; then :
10932  tmp="$PKGLIBS -L/usr/local/mysql/lib/mysql -lmysqlclient"
10933fi
10934
10935            elif test -d "/usr/local/mysql/lib"; then
10936                unset ac_cv_lib_mysqlclient_main
10937                CFLAGS="$saveflags -L/usr/local/mysql/lib"
10938                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
10939$as_echo_n "checking for main in -lmysqlclient... " >&6; }
10940if ${ac_cv_lib_mysqlclient_main+:} false; then :
10941  $as_echo_n "(cached) " >&6
10942else
10943  ac_check_lib_save_LIBS=$LIBS
10944LIBS="-lmysqlclient  $LIBS"
10945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946/* end confdefs.h.  */
10947
10948
10949int
10950main ()
10951{
10952return main ();
10953  ;
10954  return 0;
10955}
10956_ACEOF
10957if ac_fn_c_try_link "$LINENO"; then :
10958  ac_cv_lib_mysqlclient_main=yes
10959else
10960  ac_cv_lib_mysqlclient_main=no
10961fi
10962rm -f core conftest.err conftest.$ac_objext \
10963    conftest$ac_exeext conftest.$ac_ext
10964LIBS=$ac_check_lib_save_LIBS
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
10967$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
10968if test "x$ac_cv_lib_mysqlclient_main" = xyes; then :
10969  tmp="$PKGLIBS -L/usr/local/mysql/lib -lmysqlclient"
10970fi
10971
10972            elif test -d "/usr/local/lib"; then
10973                unset ac_cv_lib_mysqlclient_main
10974                CFLAGS="$saveflags -L/usr/local/lib"
10975                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
10976$as_echo_n "checking for main in -lmysqlclient... " >&6; }
10977if ${ac_cv_lib_mysqlclient_main+:} false; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980  ac_check_lib_save_LIBS=$LIBS
10981LIBS="-lmysqlclient  $LIBS"
10982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h.  */
10984
10985
10986int
10987main ()
10988{
10989return main ();
10990  ;
10991  return 0;
10992}
10993_ACEOF
10994if ac_fn_c_try_link "$LINENO"; then :
10995  ac_cv_lib_mysqlclient_main=yes
10996else
10997  ac_cv_lib_mysqlclient_main=no
10998fi
10999rm -f core conftest.err conftest.$ac_objext \
11000    conftest$ac_exeext conftest.$ac_ext
11001LIBS=$ac_check_lib_save_LIBS
11002fi
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
11004$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
11005if test "x$ac_cv_lib_mysqlclient_main" = xyes; then :
11006  tmp="$PKGLIBS -L/usr/local/lib -lmysqlclient"
11007fi
11008
11009            elif test -d "/usr/lib/mysql/lib"; then
11010                unset ac_cv_lib_mysqlclient_main
11011                CFLAGS="$saveflags -L/usr/lib/mysql/lib"
11012                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
11013$as_echo_n "checking for main in -lmysqlclient... " >&6; }
11014if ${ac_cv_lib_mysqlclient_main+:} false; then :
11015  $as_echo_n "(cached) " >&6
11016else
11017  ac_check_lib_save_LIBS=$LIBS
11018LIBS="-lmysqlclient  $LIBS"
11019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020/* end confdefs.h.  */
11021
11022
11023int
11024main ()
11025{
11026return main ();
11027  ;
11028  return 0;
11029}
11030_ACEOF
11031if ac_fn_c_try_link "$LINENO"; then :
11032  ac_cv_lib_mysqlclient_main=yes
11033else
11034  ac_cv_lib_mysqlclient_main=no
11035fi
11036rm -f core conftest.err conftest.$ac_objext \
11037    conftest$ac_exeext conftest.$ac_ext
11038LIBS=$ac_check_lib_save_LIBS
11039fi
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
11041$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
11042if test "x$ac_cv_lib_mysqlclient_main" = xyes; then :
11043  tmp="$PKGLIBS -L/usr/lib/mysql/lib -lmysqlclient"
11044fi
11045
11046            fi
11047        fi
11048    else
11049        if test -d "${mysql_path}/lib/mysql"; then
11050            CFLAGS="$saveflags -L${mysql_path}/lib/mysql"
11051            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
11052$as_echo_n "checking for main in -lmysqlclient... " >&6; }
11053if ${ac_cv_lib_mysqlclient_main+:} false; then :
11054  $as_echo_n "(cached) " >&6
11055else
11056  ac_check_lib_save_LIBS=$LIBS
11057LIBS="-lmysqlclient  $LIBS"
11058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059/* end confdefs.h.  */
11060
11061
11062int
11063main ()
11064{
11065return main ();
11066  ;
11067  return 0;
11068}
11069_ACEOF
11070if ac_fn_c_try_link "$LINENO"; then :
11071  ac_cv_lib_mysqlclient_main=yes
11072else
11073  ac_cv_lib_mysqlclient_main=no
11074fi
11075rm -f core conftest.err conftest.$ac_objext \
11076    conftest$ac_exeext conftest.$ac_ext
11077LIBS=$ac_check_lib_save_LIBS
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
11080$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
11081if test "x$ac_cv_lib_mysqlclient_main" = xyes; then :
11082  tmp="$PKGLIBS -L${mysql_path}/lib/mysql -lmysqlclient"
11083fi
11084
11085        elif test -d "${mysql_path}/lib"; then
11086            CFLAGS="$saveflags -L${mysql_path}/lib"
11087            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
11088$as_echo_n "checking for main in -lmysqlclient... " >&6; }
11089if ${ac_cv_lib_mysqlclient_main+:} false; then :
11090  $as_echo_n "(cached) " >&6
11091else
11092  ac_check_lib_save_LIBS=$LIBS
11093LIBS="-lmysqlclient  $LIBS"
11094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095/* end confdefs.h.  */
11096
11097
11098int
11099main ()
11100{
11101return main ();
11102  ;
11103  return 0;
11104}
11105_ACEOF
11106if ac_fn_c_try_link "$LINENO"; then :
11107  ac_cv_lib_mysqlclient_main=yes
11108else
11109  ac_cv_lib_mysqlclient_main=no
11110fi
11111rm -f core conftest.err conftest.$ac_objext \
11112    conftest$ac_exeext conftest.$ac_ext
11113LIBS=$ac_check_lib_save_LIBS
11114fi
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
11116$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
11117if test "x$ac_cv_lib_mysqlclient_main" = xyes; then :
11118  tmp="$PKGLIBS -L${mysql_path}/lib -lmysqlclient"
11119fi
11120
11121        else
11122            CFLAGS="$saveflags -L$mysql_path"
11123            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlclient" >&5
11124$as_echo_n "checking for main in -lmysqlclient... " >&6; }
11125if ${ac_cv_lib_mysqlclient_main+:} false; then :
11126  $as_echo_n "(cached) " >&6
11127else
11128  ac_check_lib_save_LIBS=$LIBS
11129LIBS="-lmysqlclient  $LIBS"
11130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131/* end confdefs.h.  */
11132
11133
11134int
11135main ()
11136{
11137return main ();
11138  ;
11139  return 0;
11140}
11141_ACEOF
11142if ac_fn_c_try_link "$LINENO"; then :
11143  ac_cv_lib_mysqlclient_main=yes
11144else
11145  ac_cv_lib_mysqlclient_main=no
11146fi
11147rm -f core conftest.err conftest.$ac_objext \
11148    conftest$ac_exeext conftest.$ac_ext
11149LIBS=$ac_check_lib_save_LIBS
11150fi
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_main" >&5
11152$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
11153if test "x$ac_cv_lib_mysqlclient_main" = xyes; then :
11154  tmp="$PKGLIBS -L$mysql_path -lmysqlclient"
11155fi
11156
11157        fi
11158    fi
11159
11160    if test "x$tmp" = "x"; then
11161        echo "mysqlclient library not found - disabling mySQL support"
11162        if test "x$not_available" = "x"; then
11163    not_available="use-mysql"
11164else
11165    not_available="$not_available, use-mysql"
11166fi
11167        cdef_use_mysql="#undef"
11168        enable_use_mysql="no"
11169        mysql_path=
11170        lp_cv_has_mysql="no"
11171    else
11172        PKGLIBS="$tmp"
11173    fi
11174  fi
11175
11176  if test "$enable_use_mysql" = "yes"; then
11177      # Some systems need additional libraries
11178      savelibs="$LIBS"
11179      LIBS="$LIBS $PKGLIBS"
11180
11181      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lz is needed" >&5
11182$as_echo_n "checking if -lz is needed... " >&6; }
11183if ${lp_cv_need_lib_z+:} false; then :
11184  $as_echo_n "(cached) " >&6
11185else
11186  if test "$cross_compiling" = yes; then :
11187  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11189as_fn_error $? "cannot run test program while cross compiling
11190See \`config.log' for more details" "$LINENO" 5; }
11191else
11192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193/* end confdefs.h.  */
11194
11195#include <mysql/mysql.h>
11196void t (void)
11197{
11198    MYSQL *dat;
11199
11200    mysql_real_connect(dat, "localhost", "user", "pwd", "db", 0, 0, 0);
11201}
11202int main(void)
11203{
11204    return 0;
11205}
11206
11207_ACEOF
11208if ac_fn_c_try_run "$LINENO"; then :
11209  lp_cv_need_lib_z=no
11210else
11211  lp_cv_need_lib_z=yes
11212
11213fi
11214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11215  conftest.$ac_objext conftest.beam conftest.$ac_ext
11216fi
11217
11218fi
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_z" >&5
11220$as_echo "$lp_cv_need_lib_z" >&6; }
11221      if test "$lp_cv_need_lib_z" = "yes"; then
11222          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
11223$as_echo_n "checking for main in -lz... " >&6; }
11224if ${ac_cv_lib_z_main+:} false; then :
11225  $as_echo_n "(cached) " >&6
11226else
11227  ac_check_lib_save_LIBS=$LIBS
11228LIBS="-lz  $LIBS"
11229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230/* end confdefs.h.  */
11231
11232
11233int
11234main ()
11235{
11236return main ();
11237  ;
11238  return 0;
11239}
11240_ACEOF
11241if ac_fn_c_try_link "$LINENO"; then :
11242  ac_cv_lib_z_main=yes
11243else
11244  ac_cv_lib_z_main=no
11245fi
11246rm -f core conftest.err conftest.$ac_objext \
11247    conftest$ac_exeext conftest.$ac_ext
11248LIBS=$ac_check_lib_save_LIBS
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
11251$as_echo "$ac_cv_lib_z_main" >&6; }
11252if test "x$ac_cv_lib_z_main" = xyes; then :
11253  PKGLIBS="$PKGLIBS -lz"
11254fi
11255
11256      fi
11257
11258      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lnsl is needed" >&5
11259$as_echo_n "checking if -lnsl is needed... " >&6; }
11260if ${lp_cv_need_lib_nsl+:} false; then :
11261  $as_echo_n "(cached) " >&6
11262else
11263  if test "$cross_compiling" = yes; then :
11264  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11266as_fn_error $? "cannot run test program while cross compiling
11267See \`config.log' for more details" "$LINENO" 5; }
11268else
11269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270/* end confdefs.h.  */
11271
11272#include <mysql/mysql.h>
11273void t (void)
11274{
11275    MYSQL *dat;
11276
11277    mysql_real_connect(dat, "localhost", "user", "pwd", "db", 0, 0, 0);
11278}
11279int main(void)
11280{
11281    return 0;
11282}
11283
11284_ACEOF
11285if ac_fn_c_try_run "$LINENO"; then :
11286  lp_cv_need_lib_nsl=no
11287else
11288  lp_cv_need_lib_nsl=yes
11289
11290fi
11291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11292  conftest.$ac_objext conftest.beam conftest.$ac_ext
11293fi
11294
11295fi
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_nsl" >&5
11297$as_echo "$lp_cv_need_lib_nsl" >&6; }
11298      if test "$lp_cv_need_lib_nsl" = "yes"; then
11299          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
11300$as_echo_n "checking for main in -lnsl... " >&6; }
11301if ${ac_cv_lib_nsl_main+:} false; then :
11302  $as_echo_n "(cached) " >&6
11303else
11304  ac_check_lib_save_LIBS=$LIBS
11305LIBS="-lnsl  $LIBS"
11306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307/* end confdefs.h.  */
11308
11309
11310int
11311main ()
11312{
11313return main ();
11314  ;
11315  return 0;
11316}
11317_ACEOF
11318if ac_fn_c_try_link "$LINENO"; then :
11319  ac_cv_lib_nsl_main=yes
11320else
11321  ac_cv_lib_nsl_main=no
11322fi
11323rm -f core conftest.err conftest.$ac_objext \
11324    conftest$ac_exeext conftest.$ac_ext
11325LIBS=$ac_check_lib_save_LIBS
11326fi
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
11328$as_echo "$ac_cv_lib_nsl_main" >&6; }
11329if test "x$ac_cv_lib_nsl_main" = xyes; then :
11330  PKGLIBS="$PKGLIBS -lnsl"
11331fi
11332
11333      fi
11334
11335      LIBS="$savelibs"
11336  fi
11337
11338  CFLAGS="$saveflags"
11339else
11340  if test "$enable_use_mysql" = "yes"; then
11341      if test "x$not_available" = "x"; then
11342    not_available="use-mysql"
11343else
11344    not_available="$not_available, use-mysql"
11345fi
11346      cdef_use_mysql="#undef"
11347      enable_use_mysql=no
11348  fi
11349fi
11350
11351# ---
11352
11353# --- PostgreSQL ---
11354
11355# Note: Some compilers don't have /usr/local/include in their standard
11356# searchpath.
11357
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgresSQL" >&5
11359$as_echo_n "checking for PostgresSQL... " >&6; }
11360if ${lp_cv_has_pgsql+:} false; then :
11361  $as_echo_n "(cached) " >&6
11362else
11363  for TESTPATH in "" "$pgsql_path" "$pgsql_path/include" "/usr/local/pgsql/include" "/usr/local/include/pgsql" "/usr/include/pgsql" "/usr/lib/pgsql" "/usr/local/include"; do
11364    saveflags="$CFLAGS"
11365    if test "x$TESTPATH" != "x"; then
11366        CFLAGS="$saveflags -I$TESTPATH"
11367    fi
11368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369/* end confdefs.h.  */
11370
11371#include <libpq-fe.h>
11372
11373PGconn * foo(void)
11374{
11375    static PGconn * var;
11376
11377    return var;
11378}
11379
11380int
11381main ()
11382{
11383
11384  ;
11385  return 0;
11386}
11387_ACEOF
11388if ac_fn_c_try_compile "$LINENO"; then :
11389  lp_cv_has_pgsql=yes
11390if test "x$TESTPATH" != "x"; then
11391    EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
11392fi
11393break;
11394
11395else
11396  lp_cv_has_pgsql=no
11397CFLAGS="$saveflags"
11398
11399fi
11400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401done
11402
11403fi
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_pgsql" >&5
11405$as_echo "$lp_cv_has_pgsql" >&6; }
11406
11407# The system has the include files - now search for the libraries.
11408if test "$lp_cv_has_pgsql" = "yes"; then
11409  saveflags="$CFLAGS"
11410
11411$as_echo "#define HAS_PGSQL 1" >>confdefs.h
11412
11413
11414  if test "$enable_use_pgsql" = "yes"; then
11415    tmp=""
11416
11417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
11418$as_echo_n "checking for main in -lpq... " >&6; }
11419if ${ac_cv_lib_pq_main+:} false; then :
11420  $as_echo_n "(cached) " >&6
11421else
11422  ac_check_lib_save_LIBS=$LIBS
11423LIBS="-lpq  $LIBS"
11424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425/* end confdefs.h.  */
11426
11427
11428int
11429main ()
11430{
11431return main ();
11432  ;
11433  return 0;
11434}
11435_ACEOF
11436if ac_fn_c_try_link "$LINENO"; then :
11437  ac_cv_lib_pq_main=yes
11438else
11439  ac_cv_lib_pq_main=no
11440fi
11441rm -f core conftest.err conftest.$ac_objext \
11442    conftest$ac_exeext conftest.$ac_ext
11443LIBS=$ac_check_lib_save_LIBS
11444fi
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
11446$as_echo "$ac_cv_lib_pq_main" >&6; }
11447if test "x$ac_cv_lib_pq_main" = xyes; then :
11448  tmp="$PKGLIBS -lpq"
11449fi
11450
11451
11452    if test "x$pgsql_path" == "x"; then
11453        unset ac_cv_lib_pq_main
11454        if test -d "${pgsql_path}/lib/pgsql"; then
11455            CFLAGS="$saveflags -L${pgsql_path}/lib/pgsql"
11456            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
11457$as_echo_n "checking for main in -lpq... " >&6; }
11458if ${ac_cv_lib_pq_main+:} false; then :
11459  $as_echo_n "(cached) " >&6
11460else
11461  ac_check_lib_save_LIBS=$LIBS
11462LIBS="-lpq  $LIBS"
11463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464/* end confdefs.h.  */
11465
11466
11467int
11468main ()
11469{
11470return main ();
11471  ;
11472  return 0;
11473}
11474_ACEOF
11475if ac_fn_c_try_link "$LINENO"; then :
11476  ac_cv_lib_pq_main=yes
11477else
11478  ac_cv_lib_pq_main=no
11479fi
11480rm -f core conftest.err conftest.$ac_objext \
11481    conftest$ac_exeext conftest.$ac_ext
11482LIBS=$ac_check_lib_save_LIBS
11483fi
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
11485$as_echo "$ac_cv_lib_pq_main" >&6; }
11486if test "x$ac_cv_lib_pq_main" = xyes; then :
11487  tmp="$PKGLIBS -L${pgsql_path}/lib/pgsql -lpq"
11488fi
11489
11490        elif test -d "${pgsql_path}/lib"; then
11491            CFLAGS="$saveflags -L${pgsql_path}/lib"
11492            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
11493$as_echo_n "checking for main in -lpq... " >&6; }
11494if ${ac_cv_lib_pq_main+:} false; then :
11495  $as_echo_n "(cached) " >&6
11496else
11497  ac_check_lib_save_LIBS=$LIBS
11498LIBS="-lpq  $LIBS"
11499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500/* end confdefs.h.  */
11501
11502
11503int
11504main ()
11505{
11506return main ();
11507  ;
11508  return 0;
11509}
11510_ACEOF
11511if ac_fn_c_try_link "$LINENO"; then :
11512  ac_cv_lib_pq_main=yes
11513else
11514  ac_cv_lib_pq_main=no
11515fi
11516rm -f core conftest.err conftest.$ac_objext \
11517    conftest$ac_exeext conftest.$ac_ext
11518LIBS=$ac_check_lib_save_LIBS
11519fi
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
11521$as_echo "$ac_cv_lib_pq_main" >&6; }
11522if test "x$ac_cv_lib_pq_main" = xyes; then :
11523  tmp="$PKGLIBS -L${pgsql_path}/lib -lpq"
11524fi
11525
11526        elif test -d "${pgsql_patch}"; then
11527            CFLAGS="$saveflags -L$pgsql_path"
11528            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
11529$as_echo_n "checking for main in -lpq... " >&6; }
11530if ${ac_cv_lib_pq_main+:} false; then :
11531  $as_echo_n "(cached) " >&6
11532else
11533  ac_check_lib_save_LIBS=$LIBS
11534LIBS="-lpq  $LIBS"
11535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h.  */
11537
11538
11539int
11540main ()
11541{
11542return main ();
11543  ;
11544  return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_link "$LINENO"; then :
11548  ac_cv_lib_pq_main=yes
11549else
11550  ac_cv_lib_pq_main=no
11551fi
11552rm -f core conftest.err conftest.$ac_objext \
11553    conftest$ac_exeext conftest.$ac_ext
11554LIBS=$ac_check_lib_save_LIBS
11555fi
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
11557$as_echo "$ac_cv_lib_pq_main" >&6; }
11558if test "x$ac_cv_lib_pq_main" = xyes; then :
11559  tmp="$PKGLIBS -L$pgsql_path -lpq"
11560fi
11561
11562        fi
11563    fi
11564
11565    if test "x$tmp" == "x"; then
11566        unset ac_cv_lib_pq_main
11567        if test -d "/usr/local/pgsql/lib"; then
11568            CFLAGS="$saveflags -L/usr/local/pgsql/lib"
11569            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
11570$as_echo_n "checking for main in -lpq... " >&6; }
11571if ${ac_cv_lib_pq_main+:} false; then :
11572  $as_echo_n "(cached) " >&6
11573else
11574  ac_check_lib_save_LIBS=$LIBS
11575LIBS="-lpq  $LIBS"
11576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h.  */
11578
11579
11580int
11581main ()
11582{
11583return main ();
11584  ;
11585  return 0;
11586}
11587_ACEOF
11588if ac_fn_c_try_link "$LINENO"; then :
11589  ac_cv_lib_pq_main=yes
11590else
11591  ac_cv_lib_pq_main=no
11592fi
11593rm -f core conftest.err conftest.$ac_objext \
11594    conftest$ac_exeext conftest.$ac_ext
11595LIBS=$ac_check_lib_save_LIBS
11596fi
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
11598$as_echo "$ac_cv_lib_pq_main" >&6; }
11599if test "x$ac_cv_lib_pq_main" = xyes; then :
11600  tmp="$PKGLIBS -L/usr/local/pgsql/lib -lpq"
11601fi
11602
11603        fi
11604    fi
11605
11606    if test "x$tmp" == "x"; then
11607        echo "libpq library not found - disabling PostgreSQL support"
11608        if test "x$not_available" = "x"; then
11609    not_available="use-pgsql"
11610else
11611    not_available="$not_available, use-pgsql"
11612fi
11613        cdef_use_pgsql="#undef"
11614        enable_use_pgsql="no"
11615        pgsql_path=
11616        lp_cv_has_pgsql="no"
11617    else
11618        PKGLIBS="$tmp"
11619    fi
11620  fi
11621
11622  if test "x$enable_use_pgsql" = "xyes"; then
11623      # Some systems need additional libraries
11624      savelibs="$LIBS"
11625      LIBS="$LIBS $PKGLIBS"
11626
11627      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lssl is needed" >&5
11628$as_echo_n "checking if -lssl is needed... " >&6; }
11629if ${lp_cv_need_lib_ssl+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  if test "$cross_compiling" = yes; then :
11633  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11635as_fn_error $? "cannot run test program while cross compiling
11636See \`config.log' for more details" "$LINENO" 5; }
11637else
11638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639/* end confdefs.h.  */
11640
11641#include <libpq-fe.h>
11642void t (void)
11643{
11644    PQconnectStart("");
11645}
11646int main(void)
11647{
11648    return 0;
11649}
11650
11651_ACEOF
11652if ac_fn_c_try_run "$LINENO"; then :
11653  lp_cv_need_lib_ssl=no
11654else
11655  lp_cv_need_lib_ssl=yes
11656
11657fi
11658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11659  conftest.$ac_objext conftest.beam conftest.$ac_ext
11660fi
11661
11662fi
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_ssl" >&5
11664$as_echo "$lp_cv_need_lib_ssl" >&6; }
11665      if test "$lp_cv_need_lib_ssl" = "yes"; then
11666          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lssl" >&5
11667$as_echo_n "checking for main in -lssl... " >&6; }
11668if ${ac_cv_lib_ssl_main+:} false; then :
11669  $as_echo_n "(cached) " >&6
11670else
11671  ac_check_lib_save_LIBS=$LIBS
11672LIBS="-lssl  $LIBS"
11673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674/* end confdefs.h.  */
11675
11676
11677int
11678main ()
11679{
11680return main ();
11681  ;
11682  return 0;
11683}
11684_ACEOF
11685if ac_fn_c_try_link "$LINENO"; then :
11686  ac_cv_lib_ssl_main=yes
11687else
11688  ac_cv_lib_ssl_main=no
11689fi
11690rm -f core conftest.err conftest.$ac_objext \
11691    conftest$ac_exeext conftest.$ac_ext
11692LIBS=$ac_check_lib_save_LIBS
11693fi
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_main" >&5
11695$as_echo "$ac_cv_lib_ssl_main" >&6; }
11696if test "x$ac_cv_lib_ssl_main" = xyes; then :
11697  PKGLIBS="$PKGLIBS -lssl"
11698fi
11699
11700      fi
11701
11702      if test "x$lp_cv_need_lib_crypto" != "xyes"; then
11703          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto is needed" >&5
11704$as_echo_n "checking if -lcrypto is needed... " >&6; }
11705if ${lp_cv_need_lib_crypto+:} false; then :
11706  $as_echo_n "(cached) " >&6
11707else
11708  if test "$cross_compiling" = yes; then :
11709  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11711as_fn_error $? "cannot run test program while cross compiling
11712See \`config.log' for more details" "$LINENO" 5; }
11713else
11714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716
11717#include <libpq-fe.h>
11718void t (void)
11719{
11720    PQconnectStart("");
11721}
11722int main(void)
11723{
11724    return 0;
11725}
11726
11727_ACEOF
11728if ac_fn_c_try_run "$LINENO"; then :
11729  lp_cv_need_lib_crypto=no
11730else
11731  lp_cv_need_lib_crypto=yes
11732
11733fi
11734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11735  conftest.$ac_objext conftest.beam conftest.$ac_ext
11736fi
11737
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_need_lib_crypto" >&5
11740$as_echo "$lp_cv_need_lib_crypto" >&6; }
11741          if test "$lp_cv_need_lib_crypto" = "yes"; then
11742              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
11743$as_echo_n "checking for main in -lcrypto... " >&6; }
11744if ${ac_cv_lib_crypto_main+:} false; then :
11745  $as_echo_n "(cached) " >&6
11746else
11747  ac_check_lib_save_LIBS=$LIBS
11748LIBS="-lcrypto  $LIBS"
11749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750/* end confdefs.h.  */
11751
11752
11753int
11754main ()
11755{
11756return main ();
11757  ;
11758  return 0;
11759}
11760_ACEOF
11761if ac_fn_c_try_link "$LINENO"; then :
11762  ac_cv_lib_crypto_main=yes
11763else
11764  ac_cv_lib_crypto_main=no
11765fi
11766rm -f core conftest.err conftest.$ac_objext \
11767    conftest$ac_exeext conftest.$ac_ext
11768LIBS=$ac_check_lib_save_LIBS
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
11771$as_echo "$ac_cv_lib_crypto_main" >&6; }
11772if test "x$ac_cv_lib_crypto_main" = xyes; then :
11773  PKGLIBS="$PKGLIBS -lcrypto"
11774fi
11775
11776          fi
11777      fi
11778
11779      LIBS="$savelibs"
11780  fi
11781
11782  CFLAGS="$saveflags"
11783else
11784  if test "$enable_use_pgsql" = "yes"; then
11785      if test "x$not_available" = "x"; then
11786    not_available="use-pgsql"
11787else
11788    not_available="$not_available, use-pgsql"
11789fi
11790      cdef_use_pgsql="#undef"
11791      enable_use_pgsql=no
11792  fi
11793fi
11794
11795# --- SQLite3 ---
11796
11797
11798
11799
11800
11801
11802
11803if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11804	if test -n "$ac_tool_prefix"; then
11805  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11806set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808$as_echo_n "checking for $ac_word... " >&6; }
11809if ${ac_cv_path_PKG_CONFIG+:} false; then :
11810  $as_echo_n "(cached) " >&6
11811else
11812  case $PKG_CONFIG in
11813  [\\/]* | ?:[\\/]*)
11814  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11815  ;;
11816  *)
11817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820  IFS=$as_save_IFS
11821  test -z "$as_dir" && as_dir=.
11822    for ac_exec_ext in '' $ac_executable_extensions; do
11823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826    break 2
11827  fi
11828done
11829  done
11830IFS=$as_save_IFS
11831
11832  ;;
11833esac
11834fi
11835PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11836if test -n "$PKG_CONFIG"; then
11837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11838$as_echo "$PKG_CONFIG" >&6; }
11839else
11840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
11842fi
11843
11844
11845fi
11846if test -z "$ac_cv_path_PKG_CONFIG"; then
11847  ac_pt_PKG_CONFIG=$PKG_CONFIG
11848  # Extract the first word of "pkg-config", so it can be a program name with args.
11849set dummy pkg-config; ac_word=$2
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
11852if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11853  $as_echo_n "(cached) " >&6
11854else
11855  case $ac_pt_PKG_CONFIG in
11856  [\\/]* | ?:[\\/]*)
11857  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11858  ;;
11859  *)
11860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $PATH
11862do
11863  IFS=$as_save_IFS
11864  test -z "$as_dir" && as_dir=.
11865    for ac_exec_ext in '' $ac_executable_extensions; do
11866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11867    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869    break 2
11870  fi
11871done
11872  done
11873IFS=$as_save_IFS
11874
11875  ;;
11876esac
11877fi
11878ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11879if test -n "$ac_pt_PKG_CONFIG"; then
11880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11881$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11882else
11883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
11885fi
11886
11887  if test "x$ac_pt_PKG_CONFIG" = x; then
11888    PKG_CONFIG=""
11889  else
11890    case $cross_compiling:$ac_tool_warned in
11891yes:)
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11894ac_tool_warned=yes ;;
11895esac
11896    PKG_CONFIG=$ac_pt_PKG_CONFIG
11897  fi
11898else
11899  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11900fi
11901
11902fi
11903if test -n "$PKG_CONFIG"; then
11904	_pkg_min_version=0.9.0
11905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11906$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11907	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11908		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11909$as_echo "yes" >&6; }
11910	else
11911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912$as_echo "no" >&6; }
11913		PKG_CONFIG=""
11914	fi
11915fi
11916
11917
11918    if test "x$enable_use_sqlite" = "xyes"; then
11919        saveflags="$CFLAGS"
11920        saveeflags="$EXTRA_CFLAGS"
11921
11922
11923
11924pkg_failed=no
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
11926$as_echo_n "checking for SQLITE3... " >&6; }
11927
11928if test -n "$SQLITE3_CFLAGS"; then
11929    pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
11930 elif test -n "$PKG_CONFIG"; then
11931    if test -n "$PKG_CONFIG" && \
11932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
11933  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
11934  ac_status=$?
11935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11936  test $ac_status = 0; }; then
11937  pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
11938else
11939  pkg_failed=yes
11940fi
11941 else
11942    pkg_failed=untried
11943fi
11944if test -n "$SQLITE3_LIBS"; then
11945    pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
11946 elif test -n "$PKG_CONFIG"; then
11947    if test -n "$PKG_CONFIG" && \
11948    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
11949  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
11950  ac_status=$?
11951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11952  test $ac_status = 0; }; then
11953  pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
11954else
11955  pkg_failed=yes
11956fi
11957 else
11958    pkg_failed=untried
11959fi
11960
11961
11962
11963if test $pkg_failed = yes; then
11964	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965$as_echo "no" >&6; }
11966
11967if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11968        _pkg_short_errors_supported=yes
11969else
11970        _pkg_short_errors_supported=no
11971fi
11972        if test $_pkg_short_errors_supported = yes; then
11973	        SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1`
11974        else
11975	        SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1`
11976        fi
11977	# Put the nasty error message in config.log where it belongs
11978	echo "$SQLITE3_PKG_ERRORS" >&5
11979
11980	lp_cv_has_sqlite3=no
11981elif test $pkg_failed = untried; then
11982	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
11984	lp_cv_has_sqlite3=no
11985else
11986	SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
11987	SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
11988        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989$as_echo "yes" >&6; }
11990	lp_cv_has_sqlite3=yes
11991fi
11992
11993
11994        # No pkg-config, search manually.
11995        if test "$lp_cv_has_sqlite3" = "no"; then
11996            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 support" >&5
11997$as_echo_n "checking for sqlite3 support... " >&6; }
11998            for TESTPATH in "" "${xml_path}" "${xml_path}/include" "${xml_path}/include/sqlite3" "/usr/include/sqlite3" "/usr/local/include" "/usr/local/include/sqlite3" ; do
11999                if test "x$TESTPATH" != "x"; then
12000                    CFLAGS="$saveflags -I$TESTPATH"
12001                else
12002                    CFLAGS="$saveflags"
12003                fi
12004                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005/* end confdefs.h.  */
12006
12007    #include <sqlite3.h>
12008
12009    sqlite3 * foo(void)
12010    {
12011        return (sqlite3*)0;
12012    }
12013
12014int
12015main ()
12016{
12017
12018  ;
12019  return 0;
12020}
12021_ACEOF
12022if ac_fn_c_try_compile "$LINENO"; then :
12023  lp_cv_has_sqlite3=yes
12024                    if test "x$TESTPATH" != "x"; then
12025                        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
12026                    fi
12027                    break;
12028
12029else
12030  CFLAGS="$saveflags"
12031
12032fi
12033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034            done
12035            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_sqlite3" >&5
12036$as_echo "$lp_cv_has_sqlite3" >&6; }
12037        elif test "x$SQLITE3_CFLAGS" != "x"; then
12038            EXTRA_CFLAGS="$SQLITE3_CFLAGS $EXTRA_CFLAGS"
12039        fi
12040
12041        if test "$lp_cv_has_sqlite3" = "yes"; then
12042            if test "x$SQLITE3_LIBS" != "x"; then
12043                PKGLIBS="$PKGLIBS $SQLITE3_LIBS"
12044            else
12045                tmp=""
12046
12047                for TESTPATH in "" "${xml_path}" "${xml_path}/lib" "${xml_path}/lib/sqlite3" "/usr/lib/sqlite3" "/usr/local/lib" "/usr/local/lib/sqlite3" ; do
12048                    if test "x$TESTPATH" != "x"; then
12049                        CFLAGS="$saveflags -L$TESTPATH"
12050                    else
12051                        CFLAGS="$saveflags"
12052                    fi
12053
12054                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_exec in -lsqlite3" >&5
12055$as_echo_n "checking for sqlite3_exec in -lsqlite3... " >&6; }
12056if ${ac_cv_lib_sqlite3_sqlite3_exec+:} false; then :
12057  $as_echo_n "(cached) " >&6
12058else
12059  ac_check_lib_save_LIBS=$LIBS
12060LIBS="-lsqlite3  $LIBS"
12061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062/* end confdefs.h.  */
12063
12064/* Override any GCC internal prototype to avoid an error.
12065   Use char because int might match the return type of a GCC
12066   builtin and then its argument prototype would still apply.  */
12067#ifdef __cplusplus
12068extern "C"
12069#endif
12070char sqlite3_exec ();
12071int
12072main ()
12073{
12074return sqlite3_exec ();
12075  ;
12076  return 0;
12077}
12078_ACEOF
12079if ac_fn_c_try_link "$LINENO"; then :
12080  ac_cv_lib_sqlite3_sqlite3_exec=yes
12081else
12082  ac_cv_lib_sqlite3_sqlite3_exec=no
12083fi
12084rm -f core conftest.err conftest.$ac_objext \
12085    conftest$ac_exeext conftest.$ac_ext
12086LIBS=$ac_check_lib_save_LIBS
12087fi
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_exec" >&5
12089$as_echo "$ac_cv_lib_sqlite3_sqlite3_exec" >&6; }
12090if test "x$ac_cv_lib_sqlite3_sqlite3_exec" = xyes; then :
12091  if test "x$TESTPATH" != "x"; then
12092                            tmp="$PKGLIBS -L$TESTPATH -lsqlite3"
12093                        else
12094                            tmp="$PKGLIBS -lsqlite3"
12095                        fi
12096                        break
12097
12098fi
12099
12100                done
12101
12102                if test "x$tmp" = "x"; then
12103                    lp_cv_has_sqlite3=no
12104
12105                    EXTRA_CFLAGS="$saveeflags"
12106                else
12107                    PKGLIBS="$tmp"
12108                fi
12109            fi
12110
12111            CFLAGS="$saveflags"
12112        fi
12113    fi
12114
12115
12116
12117if test "$lp_cv_has_sqlite3" = "yes"; then
12118
12119$as_echo "#define HAS_SQLITE3 1" >>confdefs.h
12120
12121
12122    if test "x$enable_use_sqlite" = "xyes"; then
12123        savelibs="$LIBS"
12124        LIBS="$LIBS $PKGLIBS"
12125
12126        # Check if it uses pthreads
12127
12128        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12129$as_echo_n "checking for library containing pthread_create... " >&6; }
12130if ${ac_cv_search_pthread_create+:} false; then :
12131  $as_echo_n "(cached) " >&6
12132else
12133  ac_func_search_save_LIBS=$LIBS
12134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136
12137/* Override any GCC internal prototype to avoid an error.
12138   Use char because int might match the return type of a GCC
12139   builtin and then its argument prototype would still apply.  */
12140#ifdef __cplusplus
12141extern "C"
12142#endif
12143char pthread_create ();
12144int
12145main ()
12146{
12147return pthread_create ();
12148  ;
12149  return 0;
12150}
12151_ACEOF
12152for ac_lib in '' ; do
12153  if test -z "$ac_lib"; then
12154    ac_res="none required"
12155  else
12156    ac_res=-l$ac_lib
12157    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12158  fi
12159  if ac_fn_c_try_link "$LINENO"; then :
12160  ac_cv_search_pthread_create=$ac_res
12161fi
12162rm -f core conftest.err conftest.$ac_objext \
12163    conftest$ac_exeext
12164  if ${ac_cv_search_pthread_create+:} false; then :
12165  break
12166fi
12167done
12168if ${ac_cv_search_pthread_create+:} false; then :
12169
12170else
12171  ac_cv_search_pthread_create=no
12172fi
12173rm conftest.$ac_ext
12174LIBS=$ac_func_search_save_LIBS
12175fi
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12177$as_echo "$ac_cv_search_pthread_create" >&6; }
12178ac_res=$ac_cv_search_pthread_create
12179if test "$ac_res" != no; then :
12180  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12181  lp_cv_sqlite3_uses_pthreads=yes
12182else
12183  lp_cv_sqlite3_uses_pthreads=no
12184
12185fi
12186
12187
12188        if test "$lp_cv_sqlite3_uses_pthreads" = "yes" ; then
12189
12190$as_echo "#define SQLITE3_USES_PTHREADS 1" >>confdefs.h
12191
12192        fi
12193
12194        LIBS="$savelibs"
12195    fi
12196else
12197    if test "$enable_use_sqlite" = "yes"; then
12198        echo "libsqlite3 library not found - disabling SQLite support"
12199        if test "x$not_available" = "x"; then
12200    not_available="use-sqlite"
12201else
12202    not_available="$not_available, use-sqlite"
12203fi
12204    fi
12205
12206    cdef_use_sqlite="#undef"
12207    enable_use_sqlite="no"
12208    sqlite=
12209fi
12210
12211# --- XML ---
12212
12213has_xml=no
12214
12215if test "$xml_package" = "any" -o "$xml_package" = "xml2"; then
12216
12217
12218    if test "x$enable_use_xml" = "xyes"; then
12219        saveflags="$CFLAGS"
12220        saveeflags="$EXTRA_CFLAGS"
12221
12222
12223
12224pkg_failed=no
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
12226$as_echo_n "checking for XML2... " >&6; }
12227
12228if test -n "$XML2_CFLAGS"; then
12229    pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
12230 elif test -n "$PKG_CONFIG"; then
12231    if test -n "$PKG_CONFIG" && \
12232    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12233  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12234  ac_status=$?
12235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12236  test $ac_status = 0; }; then
12237  pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12238else
12239  pkg_failed=yes
12240fi
12241 else
12242    pkg_failed=untried
12243fi
12244if test -n "$XML2_LIBS"; then
12245    pkg_cv_XML2_LIBS="$XML2_LIBS"
12246 elif test -n "$PKG_CONFIG"; then
12247    if test -n "$PKG_CONFIG" && \
12248    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12249  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12250  ac_status=$?
12251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12252  test $ac_status = 0; }; then
12253  pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12254else
12255  pkg_failed=yes
12256fi
12257 else
12258    pkg_failed=untried
12259fi
12260
12261
12262
12263if test $pkg_failed = yes; then
12264	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265$as_echo "no" >&6; }
12266
12267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12268        _pkg_short_errors_supported=yes
12269else
12270        _pkg_short_errors_supported=no
12271fi
12272        if test $_pkg_short_errors_supported = yes; then
12273	        XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
12274        else
12275	        XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
12276        fi
12277	# Put the nasty error message in config.log where it belongs
12278	echo "$XML2_PKG_ERRORS" >&5
12279
12280	lp_cv_has_xml2=no
12281elif test $pkg_failed = untried; then
12282	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283$as_echo "no" >&6; }
12284	lp_cv_has_xml2=no
12285else
12286	XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
12287	XML2_LIBS=$pkg_cv_XML2_LIBS
12288        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289$as_echo "yes" >&6; }
12290	lp_cv_has_xml2=yes
12291fi
12292
12293
12294        # No pkg-config, search manually.
12295        if test "$lp_cv_has_xml2" = "no"; then
12296            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
12297$as_echo_n "checking for libxml2 support... " >&6; }
12298            for TESTPATH in "" "${xml_path}" "${xml_path}/include" "${xml_path}/include/libxml2" "/usr/include/libxml2" "/usr/local/include" "/usr/local/include/libxml2" ; do
12299                if test "x$TESTPATH" != "x"; then
12300                    CFLAGS="$saveflags -I$TESTPATH"
12301                else
12302                    CFLAGS="$saveflags"
12303                fi
12304                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h.  */
12306
12307        #include <libxml/parser.h>
12308
12309        void foo(void)
12310        {
12311            xmlElementType type = XML_ELEMENT_NODE;
12312        }
12313
12314int
12315main ()
12316{
12317
12318  ;
12319  return 0;
12320}
12321_ACEOF
12322if ac_fn_c_try_compile "$LINENO"; then :
12323  lp_cv_has_xml2=yes
12324                    if test "x$TESTPATH" != "x"; then
12325                        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
12326                    fi
12327                    break;
12328
12329else
12330  CFLAGS="$saveflags"
12331
12332fi
12333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334            done
12335            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_xml2" >&5
12336$as_echo "$lp_cv_has_xml2" >&6; }
12337        elif test "x$XML2_CFLAGS" != "x"; then
12338            EXTRA_CFLAGS="$XML2_CFLAGS $EXTRA_CFLAGS"
12339        fi
12340
12341        if test "$lp_cv_has_xml2" = "yes"; then
12342            if test "x$XML2_LIBS" != "x"; then
12343                PKGLIBS="$PKGLIBS $XML2_LIBS"
12344            else
12345                tmp=""
12346
12347                for TESTPATH in "" "${xml_path}" "${xml_path}/lib" "${xml_path}/lib/libxml2" "/usr/lib/libxml2" "/usr/local/lib" "/usr/local/lib/libxml2" ; do
12348                    if test "x$TESTPATH" != "x"; then
12349                        CFLAGS="$saveflags -L$TESTPATH"
12350                    else
12351                        CFLAGS="$saveflags"
12352                    fi
12353
12354                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
12355$as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
12356if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
12357  $as_echo_n "(cached) " >&6
12358else
12359  ac_check_lib_save_LIBS=$LIBS
12360LIBS="-lxml2  $LIBS"
12361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362/* end confdefs.h.  */
12363
12364/* Override any GCC internal prototype to avoid an error.
12365   Use char because int might match the return type of a GCC
12366   builtin and then its argument prototype would still apply.  */
12367#ifdef __cplusplus
12368extern "C"
12369#endif
12370char xmlParseFile ();
12371int
12372main ()
12373{
12374return xmlParseFile ();
12375  ;
12376  return 0;
12377}
12378_ACEOF
12379if ac_fn_c_try_link "$LINENO"; then :
12380  ac_cv_lib_xml2_xmlParseFile=yes
12381else
12382  ac_cv_lib_xml2_xmlParseFile=no
12383fi
12384rm -f core conftest.err conftest.$ac_objext \
12385    conftest$ac_exeext conftest.$ac_ext
12386LIBS=$ac_check_lib_save_LIBS
12387fi
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
12389$as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
12390if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
12391  if test "x$TESTPATH" != "x"; then
12392                            tmp="$PKGLIBS -L$TESTPATH -lxml2"
12393                        else
12394                            tmp="$PKGLIBS -lxml2"
12395                        fi
12396                        break
12397
12398fi
12399
12400                done
12401
12402                if test "x$tmp" = "x"; then
12403                    lp_cv_has_xml2=no
12404
12405                    EXTRA_CFLAGS="$saveeflags"
12406                else
12407                    PKGLIBS="$tmp"
12408                fi
12409            fi
12410
12411            CFLAGS="$saveflags"
12412        fi
12413    fi
12414
12415
12416    if test "$lp_cv_has_xml2" = "yes"; then
12417        if test "$enable_use_xml" = "yes"; then
12418            has_xml=yes
12419            xml_package=xml2
12420
12421$as_echo "#define HAS_XML2 1" >>confdefs.h
12422
12423        fi
12424    fi
12425fi
12426
12427if test "$xml_package" = "any" -o "$xml_package" = "iksemel"; then
12428
12429
12430    if test "x$enable_use_xml" = "xyes"; then
12431        saveflags="$CFLAGS"
12432        saveeflags="$EXTRA_CFLAGS"
12433
12434
12435
12436pkg_failed=no
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IKSEMEL" >&5
12438$as_echo_n "checking for IKSEMEL... " >&6; }
12439
12440if test -n "$IKSEMEL_CFLAGS"; then
12441    pkg_cv_IKSEMEL_CFLAGS="$IKSEMEL_CFLAGS"
12442 elif test -n "$PKG_CONFIG"; then
12443    if test -n "$PKG_CONFIG" && \
12444    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iksemel\""; } >&5
12445  ($PKG_CONFIG --exists --print-errors "iksemel") 2>&5
12446  ac_status=$?
12447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12448  test $ac_status = 0; }; then
12449  pkg_cv_IKSEMEL_CFLAGS=`$PKG_CONFIG --cflags "iksemel" 2>/dev/null`
12450else
12451  pkg_failed=yes
12452fi
12453 else
12454    pkg_failed=untried
12455fi
12456if test -n "$IKSEMEL_LIBS"; then
12457    pkg_cv_IKSEMEL_LIBS="$IKSEMEL_LIBS"
12458 elif test -n "$PKG_CONFIG"; then
12459    if test -n "$PKG_CONFIG" && \
12460    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iksemel\""; } >&5
12461  ($PKG_CONFIG --exists --print-errors "iksemel") 2>&5
12462  ac_status=$?
12463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12464  test $ac_status = 0; }; then
12465  pkg_cv_IKSEMEL_LIBS=`$PKG_CONFIG --libs "iksemel" 2>/dev/null`
12466else
12467  pkg_failed=yes
12468fi
12469 else
12470    pkg_failed=untried
12471fi
12472
12473
12474
12475if test $pkg_failed = yes; then
12476	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477$as_echo "no" >&6; }
12478
12479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12480        _pkg_short_errors_supported=yes
12481else
12482        _pkg_short_errors_supported=no
12483fi
12484        if test $_pkg_short_errors_supported = yes; then
12485	        IKSEMEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "iksemel" 2>&1`
12486        else
12487	        IKSEMEL_PKG_ERRORS=`$PKG_CONFIG --print-errors "iksemel" 2>&1`
12488        fi
12489	# Put the nasty error message in config.log where it belongs
12490	echo "$IKSEMEL_PKG_ERRORS" >&5
12491
12492	lp_cv_has_iksemel=no
12493elif test $pkg_failed = untried; then
12494	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495$as_echo "no" >&6; }
12496	lp_cv_has_iksemel=no
12497else
12498	IKSEMEL_CFLAGS=$pkg_cv_IKSEMEL_CFLAGS
12499	IKSEMEL_LIBS=$pkg_cv_IKSEMEL_LIBS
12500        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12501$as_echo "yes" >&6; }
12502	lp_cv_has_iksemel=yes
12503fi
12504
12505
12506        # No pkg-config, search manually.
12507        if test "$lp_cv_has_iksemel" = "no"; then
12508            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iksemel support" >&5
12509$as_echo_n "checking for iksemel support... " >&6; }
12510            for TESTPATH in "" "${xml_path}" "${xml_path}/include" "${xml_path}/include/iksemel" "/usr/include/iksemel" "/usr/local/include" "/usr/local/include/iksemel" ; do
12511                if test "x$TESTPATH" != "x"; then
12512                    CFLAGS="$saveflags -I$TESTPATH"
12513                else
12514                    CFLAGS="$saveflags"
12515                fi
12516                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517/* end confdefs.h.  */
12518
12519        #include <iksemel.h>
12520
12521        iks * foo(void)
12522        {
12523            return (iks*)0;
12524        }
12525
12526int
12527main ()
12528{
12529
12530  ;
12531  return 0;
12532}
12533_ACEOF
12534if ac_fn_c_try_compile "$LINENO"; then :
12535  lp_cv_has_iksemel=yes
12536                    if test "x$TESTPATH" != "x"; then
12537                        EXTRA_CFLAGS="-I$TESTPATH $EXTRA_CFLAGS"
12538                    fi
12539                    break;
12540
12541else
12542  CFLAGS="$saveflags"
12543
12544fi
12545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12546            done
12547            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_has_iksemel" >&5
12548$as_echo "$lp_cv_has_iksemel" >&6; }
12549        elif test "x$IKSEMEL_CFLAGS" != "x"; then
12550            EXTRA_CFLAGS="$IKSEMEL_CFLAGS $EXTRA_CFLAGS"
12551        fi
12552
12553        if test "$lp_cv_has_iksemel" = "yes"; then
12554            if test "x$IKSEMEL_LIBS" != "x"; then
12555                PKGLIBS="$PKGLIBS $IKSEMEL_LIBS"
12556            else
12557                tmp=""
12558
12559                for TESTPATH in "" "${xml_path}" "${xml_path}/lib" "${xml_path}/lib/iksemel" "/usr/lib/iksemel" "/usr/local/lib" "/usr/local/lib/iksemel" ; do
12560                    if test "x$TESTPATH" != "x"; then
12561                        CFLAGS="$saveflags -L$TESTPATH"
12562                    else
12563                        CFLAGS="$saveflags"
12564                    fi
12565
12566                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iks_parse in -liksemel" >&5
12567$as_echo_n "checking for iks_parse in -liksemel... " >&6; }
12568if ${ac_cv_lib_iksemel_iks_parse+:} false; then :
12569  $as_echo_n "(cached) " >&6
12570else
12571  ac_check_lib_save_LIBS=$LIBS
12572LIBS="-liksemel  $LIBS"
12573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574/* end confdefs.h.  */
12575
12576/* Override any GCC internal prototype to avoid an error.
12577   Use char because int might match the return type of a GCC
12578   builtin and then its argument prototype would still apply.  */
12579#ifdef __cplusplus
12580extern "C"
12581#endif
12582char iks_parse ();
12583int
12584main ()
12585{
12586return iks_parse ();
12587  ;
12588  return 0;
12589}
12590_ACEOF
12591if ac_fn_c_try_link "$LINENO"; then :
12592  ac_cv_lib_iksemel_iks_parse=yes
12593else
12594  ac_cv_lib_iksemel_iks_parse=no
12595fi
12596rm -f core conftest.err conftest.$ac_objext \
12597    conftest$ac_exeext conftest.$ac_ext
12598LIBS=$ac_check_lib_save_LIBS
12599fi
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iksemel_iks_parse" >&5
12601$as_echo "$ac_cv_lib_iksemel_iks_parse" >&6; }
12602if test "x$ac_cv_lib_iksemel_iks_parse" = xyes; then :
12603  if test "x$TESTPATH" != "x"; then
12604                            tmp="$PKGLIBS -L$TESTPATH -liksemel"
12605                        else
12606                            tmp="$PKGLIBS -liksemel"
12607                        fi
12608                        break
12609
12610fi
12611
12612                done
12613
12614                if test "x$tmp" = "x"; then
12615                    lp_cv_has_iksemel=no
12616
12617                    EXTRA_CFLAGS="$saveeflags"
12618                else
12619                    PKGLIBS="$tmp"
12620                fi
12621            fi
12622
12623            CFLAGS="$saveflags"
12624        fi
12625    fi
12626
12627
12628    if test "$lp_cv_has_iksemel" = "yes"; then
12629        if test "$enable_use_xml" = "yes"; then
12630            has_xml=yes
12631            xml_package=iksemel
12632
12633$as_echo "#define HAS_IKSEMEL 1" >>confdefs.h
12634
12635        fi
12636    fi
12637fi
12638
12639if test "$has_xml" = "no"; then
12640    if test "$enable_use_xml" = "yes"; then
12641        echo "XML not supported - disabling XML support."
12642        if test "x$not_available" = "x"; then
12643    not_available="use-xml"
12644else
12645    not_available="$not_available, use-xml"
12646fi
12647    fi
12648
12649    cdef_use_xml="#undef"
12650    enable_use_xml=no
12651fi
12652
12653
12654# --- Check if we need zlib libraries for mccp ---
12655
12656if test "x$enable_use_mccp" = "x" || test "x$enable_use_mccp" = "xyes"; then
12657    if test "$lp_cv_need_lib_z" != "yes"; then
12658        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
12659$as_echo_n "checking for main in -lz... " >&6; }
12660if ${ac_cv_lib_z_main+:} false; then :
12661  $as_echo_n "(cached) " >&6
12662else
12663  ac_check_lib_save_LIBS=$LIBS
12664LIBS="-lz  $LIBS"
12665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666/* end confdefs.h.  */
12667
12668
12669int
12670main ()
12671{
12672return main ();
12673  ;
12674  return 0;
12675}
12676_ACEOF
12677if ac_fn_c_try_link "$LINENO"; then :
12678  ac_cv_lib_z_main=yes
12679else
12680  ac_cv_lib_z_main=no
12681fi
12682rm -f core conftest.err conftest.$ac_objext \
12683    conftest$ac_exeext conftest.$ac_ext
12684LIBS=$ac_check_lib_save_LIBS
12685fi
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
12687$as_echo "$ac_cv_lib_z_main" >&6; }
12688if test "x$ac_cv_lib_z_main" = xyes; then :
12689  PKGLIBS="$PKGLIBS -lz"
12690                     lp_cv_need_lib_z="yes"
12691
12692fi
12693
12694    fi
12695    if test "$lp_cv_need_lib_z" != "yes"; then
12696        echo "libz library not found - disabling MCCP support"
12697        if test "x$not_available" = "x"; then
12698    not_available="use-mccp"
12699else
12700    not_available="$not_available, use-mccp"
12701fi
12702        cdef_use_mccp="#undef"
12703        enable_use_mccp="no"
12704    fi
12705fi
12706
12707# ---
12708
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if rename handles directories" >&5
12710$as_echo_n "checking if rename handles directories... " >&6; }
12711if ${lp_cv_sys_rename_handles_directories+:} false; then :
12712  $as_echo_n "(cached) " >&6
12713else
12714  if test "$cross_compiling" = yes; then :
12715  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12717as_fn_error $? "cannot run test program while cross compiling
12718See \`config.log' for more details" "$LINENO" 5; }
12719else
12720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721/* end confdefs.h.  */
12722
12723main() {
12724    mkdir("conftestdirfrom", 0770);
12725    exit(rename("conftestdirfrom", "conftestdirto"));
12726}
12727
12728_ACEOF
12729if ac_fn_c_try_run "$LINENO"; then :
12730  lp_cv_sys_rename_handles_directories=yes
12731else
12732  lp_cv_sys_rename_handles_directories=no
12733fi
12734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12735  conftest.$ac_objext conftest.beam conftest.$ac_ext
12736fi
12737
12738fi
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_sys_rename_handles_directories" >&5
12740$as_echo "$lp_cv_sys_rename_handles_directories" >&6; }
12741if test "$lp_cv_sys_rename_handles_directories" = "yes"; then
12742
12743$as_echo "#define RENAME_HANDLES_DIRECTORIES 1" >>confdefs.h
12744
12745fi
12746rmdir conftestdirfrom conftestdirto 2> /dev/null
12747
12748if test "$ac_cv_func_getrusage" = "yes" ; then
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking full availability of struct rusage members" >&5
12750$as_echo_n "checking full availability of struct rusage members... " >&6; }
12751if ${lp_cv_struct_rusage_full+:} false; then :
12752  $as_echo_n "(cached) " >&6
12753else
12754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755/* end confdefs.h.  */
12756
12757#include <sys/types.h> /* BSDI 2.0.1 / 2.1 needs this for resource.h */
12758#include <sys/time.h>
12759#ifdef HAVE_SYS_RUSAGE_H
12760#include <sys/rusage.h>
12761#endif
12762#include <sys/resource.h>
12763#ifndef RUSAGE_SELF
12764#define RUSAGE_SELF     0
12765#endif
12766
12767int
12768main ()
12769{
12770
12771    struct rusage rus;
12772    long *v = (long *)main;
12773    getrusage(RUSAGE_SELF, &rus);
12774    *v++ = rus.ru_maxrss;
12775    *v++ = rus.ru_ixrss;
12776    *v++ = rus.ru_idrss;
12777    *v++ = rus.ru_isrss;
12778    *v++ = rus.ru_minflt;
12779    *v++ = rus.ru_majflt;
12780    *v++ = rus.ru_nswap;
12781    *v++ = rus.ru_inblock;
12782    *v++ = rus.ru_oublock;
12783    *v++ = rus.ru_msgsnd;
12784    *v++ = rus.ru_msgrcv;
12785    *v++ = rus.ru_nsignals;
12786    *v++ = rus.ru_nvcsw;
12787    *v++ = rus.ru_nivcsw;
12788
12789  ;
12790  return 0;
12791}
12792_ACEOF
12793if ac_fn_c_try_compile "$LINENO"; then :
12794  lp_cv_struct_rusage_full=yes
12795else
12796  lp_cv_struct_rusage_full=no
12797fi
12798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799fi
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_struct_rusage_full" >&5
12801$as_echo "$lp_cv_struct_rusage_full" >&6; }
12802if test "$lp_cv_struct_rusage_full" = "no"; then
12803
12804$as_echo "#define GETRUSAGE_RESTRICTED 1" >>confdefs.h
12805
12806fi
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rusage timeval members with tv_usec" >&5
12808$as_echo_n "checking struct rusage timeval members with tv_usec... " >&6; }
12809if ${lp_cv_struct_rusage_usec+:} false; then :
12810  $as_echo_n "(cached) " >&6
12811else
12812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813/* end confdefs.h.  */
12814
12815#include <sys/types.h> /* BSDI 2.0.1 / 2.1 needs this for resource.h */
12816#include <sys/time.h>
12817#ifdef HAVE_SYS_RUSAGE_H
12818#include <sys/rusage.h>
12819#endif
12820#include <sys/resource.h>
12821#ifndef RUSAGE_SELF
12822#define RUSAGE_SELF     0
12823#endif
12824
12825int
12826main ()
12827{
12828
12829    struct rusage rus;
12830    long *v = (long *)main;
12831    getrusage(RUSAGE_SELF, &rus);
12832    *v++ = rus.ru_utime.tv_sec * 1000 + rus.ru_utime.tv_usec / 1000;
12833    *v++ = rus.ru_stime.tv_sec * 1000 + rus.ru_stime.tv_usec / 1000;
12834
12835  ;
12836  return 0;
12837}
12838_ACEOF
12839if ac_fn_c_try_compile "$LINENO"; then :
12840  lp_cv_struct_rusage_usec=yes
12841else
12842  lp_cv_struct_rusage_usec=no
12843fi
12844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845fi
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_struct_rusage_usec" >&5
12847$as_echo "$lp_cv_struct_rusage_usec" >&6; }
12848if test "$lp_cv_struct_rusage_usec" = "yes"; then
12849
12850$as_echo "#define RUSAGE_USEC 1" >>confdefs.h
12851
12852fi
12853else
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrusage() via syscall()" >&5
12855$as_echo_n "checking for getrusage() via syscall()... " >&6; }
12856if ${lp_cv_func_getrusage_via_syscall+:} false; then :
12857  $as_echo_n "(cached) " >&6
12858else
12859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860/* end confdefs.h.  */
12861
12862#include <sys/types.h> /* BSDI 2.0.1 / 2.1 needs this for resource.h */
12863#include <sys/syscall.h>
12864#include <sys/resource.h>
12865#ifndef RUSAGE_SELF
12866#define RUSAGE_SELF     0
12867#endif
12868
12869int
12870main ()
12871{
12872
12873struct rusage rus;
12874syscall(SYS_GETRUSAGE, RUSAGE_SELF, rus);
12875
12876  ;
12877  return 0;
12878}
12879_ACEOF
12880if ac_fn_c_try_compile "$LINENO"; then :
12881  lp_cv_func_getrusage_via_syscall=yes
12882else
12883  lp_cv_func_getrusage_via_syscall=no
12884fi
12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886fi
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_func_getrusage_via_syscall" >&5
12888$as_echo "$lp_cv_func_getrusage_via_syscall" >&6; }
12889if test "$lp_cv_func_getrusage_via_syscall" = "yes"; then
12890
12891$as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
12892
12893
12894$as_echo "#define GETRUSAGE_VIA_SYSCALL 1" >>confdefs.h
12895
12896fi
12897fi
12898
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if return type of free is void" >&5
12900$as_echo_n "checking if return type of free is void... " >&6; }
12901if ${lp_cv_prop_free_returns_void+:} false; then :
12902  $as_echo_n "(cached) " >&6
12903else
12904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906
12907#ifdef HAVE_STDLIB_H
12908#include <stdlib.h>
12909#endif
12910#ifdef HAVE_UNISTD_H
12911#include <unistd.h>
12912#endif
12913#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
12914#include <memory.h>
12915#endif
12916void free();
12917
12918int
12919main ()
12920{
12921
12922  ;
12923  return 0;
12924}
12925_ACEOF
12926if ac_fn_c_try_compile "$LINENO"; then :
12927  lp_cv_prop_free_returns_void=yes
12928else
12929  lp_cv_prop_free_returns_void=no
12930fi
12931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932fi
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_free_returns_void" >&5
12934$as_echo "$lp_cv_prop_free_returns_void" >&6; }
12935if test "$lp_cv_prop_free_returns_void" = "yes"; then
12936
12937$as_echo "#define FREE_RETURNS_VOID 1" >>confdefs.h
12938
12939fi
12940
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if void* or char* from malloc" >&5
12942$as_echo_n "checking if void* or char* from malloc... " >&6; }
12943if ${lp_cv_prop_malloc_return_type+:} false; then :
12944  $as_echo_n "(cached) " >&6
12945else
12946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947/* end confdefs.h.  */
12948
12949#include <sys/types.h>
12950#ifdef HAVE_STDLIB_H
12951#include <stdlib.h>
12952#endif
12953#ifdef HAVE_UNISTD_H
12954#include <unistd.h>
12955#endif
12956#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
12957#include <memory.h>
12958#endif
12959#ifdef __STDC__
12960#define PROT(x) x
12961#else
12962#define PROT(x) ()
12963#endif
12964#define POINTER void *
12965POINTER malloc(size_t);
12966#ifdef FREE_RETURNS_VOID
12967void free PROT((POINTER));
12968#else
12969int free PROT((POINTER));
12970#endif
12971
12972int
12973main ()
12974{
12975
12976  ;
12977  return 0;
12978}
12979_ACEOF
12980if ac_fn_c_try_compile "$LINENO"; then :
12981  lp_cv_prop_malloc_return_type="void *"
12982else
12983  lp_cv_prop_malloc_return_type="char *"
12984fi
12985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986fi
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_malloc_return_type" >&5
12988$as_echo "$lp_cv_prop_malloc_return_type" >&6; }
12989
12990cat >>confdefs.h <<_ACEOF
12991#define POINTER $lp_cv_prop_malloc_return_type
12992_ACEOF
12993
12994
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if CHAR_BIT == 8 or undef" >&5
12996$as_echo_n "checking if CHAR_BIT == 8 or undef... " >&6; }
12997if ${lp_cv_prop_charbits_eq_8+:} false; then :
12998  $as_echo_n "(cached) " >&6
12999else
13000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001/* end confdefs.h.  */
13002
13003#include <stdio.h>
13004#include <string.h>
13005#include <ctype.h>
13006#include <limits.h>
13007#ifdef HAVE_VALUES_H
13008#include <values.h>
13009#endif
13010int i=1/(CHAR_BIT-8);
13011
13012int
13013main ()
13014{
13015
13016  ;
13017  return 0;
13018}
13019_ACEOF
13020if ac_fn_c_try_compile "$LINENO"; then :
13021  lp_cv_prop_charbits_eq_8=no
13022else
13023  lp_cv_prop_charbits_eq_8=yes
13024fi
13025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026fi
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_charbits_eq_8" >&5
13028$as_echo "$lp_cv_prop_charbits_eq_8" >&6; }
13029if test "$lp_cv_prop_charbits_eq_8" = "yes"; then
13030
13031$as_echo "#define CHARBIT_MASK 0xff" >>confdefs.h
13032
13033else
13034  $as_echo "#define CHARBIT_MASK CHAR_BIT" >>confdefs.h
13035
13036fi
13037
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtol broken" >&5
13039$as_echo_n "checking if strtol broken... " >&6; }
13040if ${lp_cv_prop_strtol_broken+:} false; then :
13041  $as_echo_n "(cached) " >&6
13042else
13043  if test "$cross_compiling" = yes; then :
13044  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13046as_fn_error $? "cannot run test program while cross compiling
13047See \`config.log' for more details" "$LINENO" 5; }
13048else
13049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051
13052#ifdef HAVE_STDLIB_H
13053#include <stdlib.h>
13054#endif
13055#ifdef HAVE_UNISTD_H
13056#include <unistd.h>
13057#endif
13058int main() {
13059    if (strtol("1", (char **)0, 10) != 1) exit(1);
13060    exit(0);
13061}
13062
13063_ACEOF
13064if ac_fn_c_try_run "$LINENO"; then :
13065  lp_cv_prop_strtol_broken=no
13066else
13067  lp_cv_prop_strtol_broken=yes
13068fi
13069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13070  conftest.$ac_objext conftest.beam conftest.$ac_ext
13071fi
13072
13073fi
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_strtol_broken" >&5
13075$as_echo "$lp_cv_prop_strtol_broken" >&6; }
13076if test "$lp_cv_prop_strtol_broken" = "yes"; then
13077
13078$as_echo "#define STRTOL_BROKEN 1" >>confdefs.h
13079
13080fi
13081
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking nonblocking using ioctl with FIONBIO" >&5
13083$as_echo_n "checking nonblocking using ioctl with FIONBIO... " >&6; }
13084if ${lp_cv_prop_use_ioctl_fionbio+:} false; then :
13085  $as_echo_n "(cached) " >&6
13086else
13087  if test "$cross_compiling" = yes; then :
13088  lp_cv_prop_use_ioctl_fionbio=unknown
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have to supply the correct way to set sockets non-blocking by hand." >&5
13090$as_echo "$as_me: WARNING: You have to supply the correct way to set sockets non-blocking by hand." >&2;}
13091
13092else
13093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094/* end confdefs.h.  */
13095
13096#include <sys/types.h> /* needed for netinet/in.h */
13097#include <sys/socket.h>
13098#include <netinet/in.h>
13099#include <netdb.h>
13100#include <errno.h>
13101#include <sys/ioctl.h>
13102#include <stdio.h>
13103#include <stdlib.h>
13104main() {
13105    int port, tmp, s;
13106    struct sockaddr_in my_sin;
13107    struct hostent *hp;
13108    char *host_name;
13109
13110    host_name = malloc(100);
13111    if (gethostname(host_name, 100) == -1) exit(1);
13112    hp = gethostbyname(host_name);
13113    if (hp == 0) exit(1);
13114    memset((char *)&my_sin, '\0', sizeof my_sin);
13115    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
13116    my_sin.sin_family = hp->h_addrtype;
13117    my_sin.sin_addr.s_addr = INADDR_ANY;
13118    alarm(10);
13119    for (port = 2000; port < 10000; port++) {
13120        my_sin.sin_port = htons((u_short)port);
13121        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
13122        if (s == -1) exit(1);
13123        tmp = 1;
13124        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
13125                        (char *) &tmp, sizeof (tmp)) < 0)
13126            exit (1);
13127        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
13128            if (errno == EADDRINUSE) {
13129                close(s);
13130		continue;
13131            }
13132            exit(1);
13133        }
13134	if (listen(s, 5) == -1) exit(1);
13135	tmp = 1;
13136	if (ioctl(s, FIONBIO, &tmp) == -1) exit(1);
13137        tmp = sizeof my_sin;
13138        s = accept(s, (struct sockaddr *)&my_sin, &tmp);
13139	if (s == -1) {
13140	    if (errno == EWOULDBLOCK ||
13141		errno == EAGAIN)
13142	    {
13143		/* hpux has special problems with sockets from pipe() */
13144		int sockets[2];
13145		FILE *fp_read;
13146
13147		if(pipe(sockets) < 0)
13148		    exit(1);
13149		fp_read = fdopen(sockets[0], "r");
13150		if (fp_read == NULL)
13151		    exit(1);
13152		if (ioctl(fileno(fp_read) , FIONBIO, &tmp) == -1)
13153		    exit(1);
13154		exit(0);
13155	    }
13156	    if (errno == EINTR) { close(s); continue; }
13157	}
13158	break;
13159    }
13160    exit(1);
13161}
13162
13163_ACEOF
13164if ac_fn_c_try_run "$LINENO"; then :
13165  lp_cv_prop_use_ioctl_fionbio=yes
13166else
13167  lp_cv_prop_use_ioctl_fionbio=no
13168fi
13169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13170  conftest.$ac_objext conftest.beam conftest.$ac_ext
13171fi
13172
13173fi
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_ioctl_fionbio" >&5
13175$as_echo "$lp_cv_prop_use_ioctl_fionbio" >&6; }
13176if test "$lp_cv_prop_use_ioctl_fionbio" = "yes"; then
13177
13178$as_echo "#define USE_IOCTL_FIONBIO 1" >>confdefs.h
13179
13180fi
13181
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking nonblocking using fcntl with O_NDELAY" >&5
13183$as_echo_n "checking nonblocking using fcntl with O_NDELAY... " >&6; }
13184if ${lp_cv_prop_use_fnctl_o_ndelay+:} false; then :
13185  $as_echo_n "(cached) " >&6
13186else
13187  if test "$cross_compiling" = yes; then :
13188  lp_cv_prop_use_fnctl_o_ndelay=unknown
13189else
13190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191/* end confdefs.h.  */
13192
13193#include <sys/types.h> /* needed for netinet/in.h */
13194#include <sys/socket.h>
13195#include <netinet/in.h>
13196#include <netdb.h>
13197#include <errno.h>
13198#include <fcntl.h>
13199#include <stdlib.h>
13200main() {
13201    int port, tmp, s;
13202    struct sockaddr_in my_sin;
13203    struct hostent *hp;
13204    char *host_name;
13205
13206    host_name = malloc(100);
13207    if (gethostname(host_name, 100) == -1) exit(1);
13208    hp = gethostbyname(host_name);
13209    if (hp == 0) exit(1);
13210    memset((char *)&my_sin, '\0', sizeof my_sin);
13211    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
13212    my_sin.sin_family = hp->h_addrtype;
13213    my_sin.sin_addr.s_addr = INADDR_ANY;
13214    alarm(10);
13215    for (port = 2000; port < 10000; port++) {
13216        my_sin.sin_port = htons((u_short)port);
13217        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
13218        if (s == -1) exit(1);
13219        tmp = 1;
13220        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
13221                        (char *) &tmp, sizeof (tmp)) < 0)
13222            exit (1);
13223        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
13224            if (errno == EADDRINUSE) {
13225                close(s);
13226		continue;
13227            }
13228            exit(1);
13229        }
13230	if (listen(s, 5) == -1) exit(1);
13231	if (fcntl(s, F_SETFL, O_NDELAY) == -1) exit(1);
13232        tmp = sizeof my_sin;
13233        s = accept(s, (struct sockaddr *)&my_sin, &tmp);
13234	if (s == -1) {
13235	    if (errno == EWOULDBLOCK) exit(0);
13236	    if (errno == EAGAIN) exit(0);
13237	    if (errno == EINTR) { close(s); continue; }
13238	}
13239	break;
13240    }
13241    exit(1);
13242}
13243
13244_ACEOF
13245if ac_fn_c_try_run "$LINENO"; then :
13246  lp_cv_prop_use_fnctl_o_ndelay=yes
13247else
13248  lp_cv_prop_use_fnctl_o_ndelay=no
13249fi
13250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13251  conftest.$ac_objext conftest.beam conftest.$ac_ext
13252fi
13253
13254fi
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_fnctl_o_ndelay" >&5
13256$as_echo "$lp_cv_prop_use_fnctl_o_ndelay" >&6; }
13257if test "$lp_cv_prop_use_fnctl_o_ndelay" = "yes"; then
13258
13259$as_echo "#define USE_FCNTL_O_NDELAY 1" >>confdefs.h
13260
13261fi
13262
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking nonblocking using fcntl with FNDELAY" >&5
13264$as_echo_n "checking nonblocking using fcntl with FNDELAY... " >&6; }
13265if ${lp_cv_prop_use_fcntl_fndelay+:} false; then :
13266  $as_echo_n "(cached) " >&6
13267else
13268  if test "$cross_compiling" = yes; then :
13269  lp_cv_prop_use_fcntl_fndelay=unknown
13270else
13271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272/* end confdefs.h.  */
13273
13274#include <sys/types.h> /* needed for netinet/in.h */
13275#include <sys/socket.h>
13276#include <netinet/in.h>
13277#include <netdb.h>
13278#include <errno.h>
13279#include <fcntl.h>
13280#include <stdlib.h>
13281main() {
13282    int port, tmp, s;
13283    struct sockaddr_in my_sin;
13284    struct hostent *hp;
13285    char *host_name;
13286
13287    host_name = malloc(100);
13288    if (gethostname(host_name, 100) == -1) exit(1);
13289    hp = gethostbyname(host_name);
13290    if (hp == 0) exit(1);
13291    memset((char *)&my_sin, '\0', sizeof my_sin);
13292    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
13293    my_sin.sin_family = hp->h_addrtype;
13294    my_sin.sin_addr.s_addr = INADDR_ANY;
13295    alarm(10);
13296    for (port = 2000; port < 10000; port++) {
13297        my_sin.sin_port = htons((u_short)port);
13298        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
13299        if (s == -1) exit(1);
13300        tmp = 1;
13301        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
13302                        (char *) &tmp, sizeof (tmp)) < 0)
13303            exit (1);
13304        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
13305            if (errno == EADDRINUSE) {
13306                close(s);
13307		continue;
13308            }
13309            exit(1);
13310        }
13311	if (listen(s, 5) == -1) exit(1);
13312	if (fcntl(s, F_SETFL, FNDELAY) == -1) exit(1);
13313        tmp = sizeof my_sin;
13314        s = accept(s, (struct sockaddr *)&my_sin, &tmp);
13315	if (s == -1) {
13316	    if (errno == EWOULDBLOCK) exit(0);
13317	    if (errno == EAGAIN) exit(0);
13318	    if (errno == EINTR) { close(s); continue; }
13319	}
13320	break;
13321    }
13322    exit(1);
13323}
13324
13325_ACEOF
13326if ac_fn_c_try_run "$LINENO"; then :
13327  lp_cv_prop_use_fcntl_fndelay=yes
13328else
13329  lp_cv_prop_use_fcntl_fndelay=no
13330fi
13331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13332  conftest.$ac_objext conftest.beam conftest.$ac_ext
13333fi
13334
13335fi
13336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_fcntl_fndelay" >&5
13337$as_echo "$lp_cv_prop_use_fcntl_fndelay" >&6; }
13338if test "$lp_cv_prop_use_fcntl_fndelay" = "yes"; then
13339
13340$as_echo "#define USE_FCNTL_FNDELAY 1" >>confdefs.h
13341
13342fi
13343
13344
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl with SETOWN works" >&5
13346$as_echo_n "checking if fcntl with SETOWN works... " >&6; }
13347if ${lp_cv_prop_use_fcntl_setown+:} false; then :
13348  $as_echo_n "(cached) " >&6
13349else
13350  if test "$cross_compiling" = yes; then :
13351  lp_cv_prop_use_fcntl_setown=unknown
13352else
13353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354/* end confdefs.h.  */
13355
13356#include <sys/types.h> /* needed for netinet/in.h */
13357#include <sys/socket.h>
13358#include <netinet/in.h>
13359#include <netdb.h>
13360#include <errno.h>
13361#include <fcntl.h>
13362#include <stdlib.h>
13363main() {
13364    int port, tmp, s;
13365    struct sockaddr_in my_sin;
13366    struct hostent *hp;
13367    char *host_name;
13368
13369    host_name = malloc(100);
13370    if (gethostname(host_name, 100) == -1) exit(1);
13371    hp = gethostbyname(host_name);
13372    if (hp == 0) exit(1);
13373    memset((char *)&my_sin, '\0', sizeof my_sin);
13374    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
13375    my_sin.sin_family = hp->h_addrtype;
13376    my_sin.sin_addr.s_addr = INADDR_ANY;
13377    alarm(10);
13378    for (port = 2000; port < 10000; port++) {
13379        my_sin.sin_port = htons((u_short)port);
13380        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
13381        if (s == -1) exit(1);
13382        tmp = 1;
13383        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
13384                        (char *) &tmp, sizeof (tmp)) < 0)
13385            exit (1);
13386        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
13387            if (errno == EADDRINUSE) {
13388                close(s);
13389		continue;
13390            }
13391            exit(1);
13392        }
13393	if (listen(s, 5) == -1) exit(1);
13394#ifndef F_SETOWN
13395        exit(1);
13396#else
13397	if (fcntl(s, F_SETOWN, getpid()) == -1) exit(1);
13398        exit(0);
13399#endif
13400    }
13401    exit(1);
13402}
13403
13404_ACEOF
13405if ac_fn_c_try_run "$LINENO"; then :
13406  lp_cv_prop_use_fcntl_setown=yes
13407else
13408  lp_cv_prop_use_fcntl_setown=no
13409fi
13410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13411  conftest.$ac_objext conftest.beam conftest.$ac_ext
13412fi
13413
13414fi
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_fcntl_setown" >&5
13416$as_echo "$lp_cv_prop_use_fcntl_setown" >&6; }
13417if test "$lp_cv_prop_use_fcntl_setown" = "yes"; then
13418
13419$as_echo "#define USE_FCNTL_SETOWN 1" >>confdefs.h
13420
13421fi
13422
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if OOBINLINE works" >&5
13424$as_echo_n "checking if OOBINLINE works... " >&6; }
13425if ${lp_cv_prop_use_oobinline+:} false; then :
13426  $as_echo_n "(cached) " >&6
13427else
13428  if test "$cross_compiling" = yes; then :
13429  lp_cv_prop_use_oobinline=unknown
13430else
13431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432/* end confdefs.h.  */
13433
13434#include <sys/types.h> /* needed for netinet/in.h */
13435#include <sys/socket.h>
13436#include <netinet/in.h>
13437#include <netdb.h>
13438#include <errno.h>
13439#include <fcntl.h>
13440#include <stdlib.h>
13441main() {
13442    int port, tmp, s;
13443    struct sockaddr_in my_sin;
13444    struct hostent *hp;
13445    char *host_name;
13446
13447    host_name = malloc(100);
13448    if (gethostname(host_name, 100) == -1) exit(1);
13449    hp = gethostbyname(host_name);
13450    if (hp == 0) exit(1);
13451    memset((char *)&my_sin, '\0', sizeof my_sin);
13452    memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
13453    my_sin.sin_family = hp->h_addrtype;
13454    my_sin.sin_addr.s_addr = INADDR_ANY;
13455    alarm(10);
13456    for (port = 2000; port < 10000; port++) {
13457        int on;
13458        my_sin.sin_port = htons((u_short)port);
13459        s = socket(hp->h_addrtype, SOCK_STREAM, 0);
13460        if (s == -1) exit(1);
13461        tmp = 1;
13462        if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR,
13463                        (char *) &tmp, sizeof (tmp)) < 0)
13464            exit (1);
13465        if (bind(s, (struct sockaddr *)&my_sin, sizeof my_sin) == -1) {
13466            if (errno == EADDRINUSE) {
13467                close(s);
13468		continue;
13469            }
13470            exit(1);
13471        }
13472	if (listen(s, 5) == -1) exit(1);
13473#ifndef SO_OOBINLINE
13474        exit(1);
13475#else
13476        on = 1;
13477        if (setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (char *)&on, sizeof on) == -1)
13478            exit(1);
13479        exit(0);
13480#endif
13481    }
13482    exit(1);
13483}
13484
13485_ACEOF
13486if ac_fn_c_try_run "$LINENO"; then :
13487  lp_cv_prop_use_oobinline=yes
13488else
13489  lp_cv_prop_use_oobinline=no
13490fi
13491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13492  conftest.$ac_objext conftest.beam conftest.$ac_ext
13493fi
13494
13495fi
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_use_oobinline" >&5
13497$as_echo "$lp_cv_prop_use_oobinline" >&6; }
13498if test "$lp_cv_prop_use_oobinline" = "yes"; then
13499
13500$as_echo "#define USE_OOBINLINE 1" >>confdefs.h
13501
13502fi
13503
13504
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for overlapping bcopy" >&5
13506$as_echo_n "checking for overlapping bcopy... " >&6; }
13507if ${lp_cv_prop_overlapping_bcopy+:} false; then :
13508  $as_echo_n "(cached) " >&6
13509else
13510  if test "$cross_compiling" = yes; then :
13511  lp_cv_prop_overlapping_bcopy=yes
13512else
13513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514/* end confdefs.h.  */
13515
13516main(){
13517    char str[99] = "hello world";
13518    bcopy(str, str+2, 12);
13519    if(strcmp("hehello world", str))
13520	exit(1);
13521    bcopy(str+2, str, 11);
13522    if(strcmp("hello worldld", str))
13523	exit(1);
13524    exit(0);
13525}
13526
13527_ACEOF
13528if ac_fn_c_try_run "$LINENO"; then :
13529  lp_cv_prop_overlapping_bcopy=yes
13530else
13531  lp_cv_prop_overlapping_bcopy=no
13532fi
13533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13534  conftest.$ac_objext conftest.beam conftest.$ac_ext
13535fi
13536
13537fi
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_overlapping_bcopy" >&5
13539$as_echo "$lp_cv_prop_overlapping_bcopy" >&6; }
13540if test "$lp_cv_prop_overlapping_bcopy" = "yes"; then
13541
13542$as_echo "#define OVERLAPPING_BCOPY 1" >>confdefs.h
13543
13544fi
13545
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtol needs const char*" >&5
13547$as_echo_n "checking if strtol needs const char*... " >&6; }
13548if ${lp_cv_prop_strtol_const_charp+:} false; then :
13549  $as_echo_n "(cached) " >&6
13550else
13551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h.  */
13553#ifdef HAVE_STDLIB_H
13554#include <stdlib.h>
13555#endif
13556long strtol(str, ptr, base) char *str; char **ptr; int base; { return 0; }
13557
13558int
13559main ()
13560{
13561
13562  ;
13563  return 0;
13564}
13565_ACEOF
13566if ac_fn_c_try_compile "$LINENO"; then :
13567  lp_cv_prop_strtol_const_charp=no
13568else
13569  lp_cv_prop_strtol_const_charp=yes
13570fi
13571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572fi
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_prop_strtol_const_charp" >&5
13574$as_echo "$lp_cv_prop_strtol_const_charp" >&6; }
13575if test "$lp_cv_prop_strtol_const_charp" = "yes"; then
13576
13577$as_echo "#define STRTOL_CONST_CHARP 1" >>confdefs.h
13578
13579fi
13580
13581# --- Check for compiler options ---
13582
13583tcomp='${CC-cc} ${CFLAGS} ${TESTFLAG} -o conftest conftest.c >/dev/null 2>&1'
13584tcomp2='${CC-cc} ${CFLAGS} ${TESTFLAG} -o conftest conftest.c 2>&1'
13585tcomp3='${CC-cc} ${CFLAGS} ${TESTFLAG} -c conftest.c >/dev/null 2>&1'
13586
13587cat > conftest.c <<EOF
13588#include <stdio.h>
13589#include <math.h>
13590double d = 4.5;
13591int main(void) { printf("hello world\n"); return 0; }
13592EOF
13593
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking low optimization CFLAGS" >&5
13595$as_echo_n "checking low optimization CFLAGS... " >&6; }
13596for TESTFLAG in -O; do
13597  if eval $tcomp; then
13598    if echo `eval $tcomp2` | egrep '[uU]n(recognized|known) [oO]ption' >/dev/null; then
13599      :
13600      #the [e]grep option -v will not give a failure exit status on the atari
13601    else
13602      if eval $tcomp; then
13603        LCFLAGS=$TESTFLAG
13604        break
13605      fi
13606    fi
13607  fi
13608done
13609for TESTFLAG in -g; do
13610  if eval $tcomp; then
13611    LCFLAGS="$LCFLAGS $TESTFLAG"
13612  fi
13613done
13614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCFLAGS" >&5
13615$as_echo "$LCFLAGS" >&6; }
13616
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking medium optimization CFLAGS" >&5
13618$as_echo_n "checking medium optimization CFLAGS... " >&6; }
13619for TESTFLAG in -O2 -O; do
13620  if eval $tcomp; then
13621    if echo `eval $tcomp2` | egrep '[uU]n(recognized|known) [oO]ption' >/dev/null; then
13622      :
13623      #the [e]grep option -v will not give a failure exit status on the atari
13624    else
13625      if eval $tcomp; then
13626        MCFLAGS=$TESTFLAG
13627        break
13628      fi
13629    fi
13630  fi
13631done
13632for TESTFLAG in -g; do
13633  if eval $tcomp; then
13634    OPTFLAGS="$OPTFLAGS $TESTFLAG"
13635    MCFLAGS="$MCFLAGS $TESTFLAG"
13636  fi
13637done
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCFLAGS" >&5
13639$as_echo "$MCFLAGS" >&6; }
13640
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking highest optimization CFLAGS" >&5
13642$as_echo_n "checking highest optimization CFLAGS... " >&6; }
13643for TESTFLAG in -O4 -O3 -O2 -O; do
13644  if eval $tcomp; then
13645    if echo `eval $tcomp2` | egrep '[uU]n(recognized|known) [oO]ption' >/dev/null; then
13646      :
13647      #the [e]grep option -v will not give a failure exit status on the atari
13648    else
13649      if eval $tcomp; then
13650        OCFLAGS=$TESTFLAG
13651        break
13652      fi
13653    fi
13654  fi
13655done
13656if test "$ac_cv_c_compiler_gnu" = "no"; then
13657  for TESTFLAG in -qstrict -qipa -ipo; do
13658    if eval $tcomp; then
13659      if echo `eval $tcomp2` | egrep '[uU]n(recognized|known) [oO]ption' >/dev/null; then
13660        :
13661        #the [e]grep option -v will not give a failure exit status on the atari
13662      else
13663        if eval $tcomp; then
13664          OCFLAGS="$OCFLAGS $TESTFLAG"
13665          break
13666        fi
13667      fi
13668    fi
13669  done
13670fi
13671# -funroll-all-loops causes some versions of gcc to produce buggy code
13672for TESTFLAG in -fomit-frame-pointer; do
13673  if eval $tcomp; then
13674    OCFLAGS="$OCFLAGS $TESTFLAG"
13675  fi
13676done
13677OCFLAGS="$OCFLAGS $OPTFLAGS"
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCFLAGS" >&5
13679$as_echo "$OCFLAGS" >&6; }
13680if ${CC-cc} -g -c conftest.c ; then
13681  DCFLAGS='-g'
13682else
13683  DCFLAGS=''
13684fi
13685OPTIMIZE_LINKING=''
13686if ${CC-cc} $OFLAGS -o conftest conftest.c ; then
13687  OPTIMIZE_LINKING='$(OPTIMIZE)'
13688fi
13689
13690rm -f conftest.c
13691
13692if test "$ac_cv_lib_socket_main" = "yes"; then
13693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694/* end confdefs.h.  */
13695
13696#if defined(sun)
13697yes
13698#endif
13699
13700_ACEOF
13701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13702  $EGREP "yes" >/dev/null 2>&1; then :
13703   EXTRA_CFLAGS="${EXTRA_CFLAGS} -Dsolaris"
13704fi
13705rm -f conftest*
13706
13707fi
13708
13709# Some Unixes require the -n parameter for tail to work properly
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tail accepts the -n parameter" >&5
13711$as_echo_n "checking if tail accepts the -n parameter... " >&6; }
13712TAIL_N=""
13713if tail -n +2 confdefs.h > /dev/null 2>&1; then
13714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13715$as_echo "yes" >&6; }
13716    TAIL_N="-n"
13717else
13718    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719$as_echo "no" >&6; }
13720fi
13721
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${YACC} includes bogus malloc prototypes" >&5
13723$as_echo_n "checking if ${YACC} includes bogus malloc prototypes... " >&6; }
13724cat > conftest.y <<EOF
13725%{
13726#include "confdefs.h"
13727#ifdef HAVE_UNISTD_H
13728#include <unistd.h>
13729#endif
13730#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
13731#include <memory.h>
13732#endif
13733#ifdef HAVE_STDLIB_H
13734#include <stdlib.h>
13735#endif
13736%}
13737%%
13738all: 'a';
13739%%
13740int main(){ return 0; }
13741int yyerror(){}
13742int yylex(){ return 0; }
13743EOF
13744rm -f y.tab.c y_tab.c
13745${YACC} conftest.y
13746if mv y.tab.c conftest.c > /dev/null 2>&1; then
13747  YACCTAB=y.tab.
13748else
13749  mv y_tab.c conftest.c
13750  YACCTAB=y_tab.
13751fi
13752if eval $ac_compile 2>&5; then
13753  MOVE_YACC_TAB='$(MV) $(YACCTAB)c'
13754  CLEAN_YACC_TAB=''
13755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756$as_echo "no" >&6; }
13757else
13758  MOVE_YACC_TAB='tail $TAIL_N +2 $(YACCTAB)c >'
13759  CLEAN_YACC_TAB='$(RM) $(YACCTAB)c'
13760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13761$as_echo "yes" >&6; }
13762fi
13763rm -f conftest*
13764
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${YACC} / <malloc.h> / -DSGI_SOURCE / afree name clash" >&5
13766$as_echo_n "checking for ${YACC} / <malloc.h> / -DSGI_SOURCE / afree name clash... " >&6; }
13767cat > conftest.y <<EOF
13768%{
13769#include "confdefs.h"
13770#define afree free
13771%}
13772%%
13773all: 'a';
13774%%
13775int main(){ return 0; }
13776int yyerror(){}
13777int yylex(){ return 0; }
13778EOF
13779rm -f y.tab.c y_tab.c
13780${YACC} conftest.y
13781if mv y.tab.c conftest.c > /dev/null 2>&1; then
13782  YACCTAB=y.tab.
13783else
13784  mv y_tab.c conftest.c
13785  YACCTAB=y_tab.
13786fi
13787if eval $ac_compile 2>&5 ; then
13788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13789$as_echo "no" >&6; }
13790else
13791  EXTRA_CFLAGS="${EXTRA_CFLAGS} -U_SGI_SOURCE"
13792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13793$as_echo "yes" >&6; }
13794fi
13795rm -f conftest*
13796
13797
13798SAVE_LIBS="${LIBS}"
13799SAVE_CFLAGS="${CFLAGS}"
13800CFLAGS=''
13801for TESTFLAG in '' -static -Bstatic -n; do
13802
13803
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc redefinition with linking flag ${TESTFLAG}" >&5
13805$as_echo_n "checking malloc redefinition with linking flag ${TESTFLAG}... " >&6; }
13806LIBS="${SAVE_LIBS} ${TESTFLAG}"
13807cat > conftest.data <<EOF
1380842
13809EOF
13810if test "$cross_compiling" = yes; then :
13811  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13813as_fn_error $? "cannot run test program while cross compiling
13814See \`config.log' for more details" "$LINENO" 5; }
13815else
13816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818
13819#include <sys/types.h>
13820#include <stdio.h>
13821#ifdef HAVE_UNISTD_H
13822#include <unistd.h>
13823#endif
13824#ifdef HAVE_STDLIB_H
13825#include <stdlib.h>
13826#endif
13827#ifdef HAVE_STRING_H
13828#include <string.h>
13829#else
13830#include <strings.h>
13831#endif
13832#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
13833#include <memory.h>
13834#endif
13835#undef malloc
13836#undef calloc
13837int my_malloc_used;
13838int main() {
13839    int i, j;
13840    FILE *f;
13841
13842    alarm(10); /* a crash can be an infinite loop... */
13843    for (i = 0; i < 100; i++) {
13844	my_malloc_used = 0;
13845	/* strdup seems to be partially unavailable */
13846	f = fopen("conftest.data", "r");
13847	fscanf(f, "%d", &j);
13848	fclose(f);
13849	if (!my_malloc_used || j != 6*7) exit(1);
13850    }
13851    /* linking in printf called with variable format makes shared libs
13852     * worthwhile. Moreover, calling it is a good test
13853     */
13854    printf(f?"%f%% successful\n":(char*)f, 100.);
13855    exit(0);
13856}
13857POINTER malloc(size)
13858    size_t size;
13859{
13860    size_t size2;
13861    static char *current_break = 0;
13862    char *q;
13863
13864    my_malloc_used = 1;
13865    if (!current_break)
13866      current_break = sbrk(0);
13867    size2 = sizeof size + size+7 & ~7;
13868    q = current_break;
13869    if (brk(current_break+=size2)) exit(1);
13870    *(size_t *)q = size;
13871    return q + sizeof size;
13872}
13873POINTER calloc(size, num)
13874    size_t size, num;
13875{
13876    char *q;
13877    q = malloc(size*num);
13878    memset(q, 0, size);
13879}
13880POINTER realloc(p, size)
13881    POINTER p;
13882    size_t size;
13883{
13884    char *q;
13885    if (*(size_t *)p >= size)
13886        return p;
13887    q = malloc(size);
13888#ifdef HAVE_MEMCPY
13889    memcpy(q, p, size);
13890#else
13891    bcopy(p, q, size);
13892#endif
13893    *(size_t *)q = size;
13894    return q + sizeof size;
13895}
13896#ifdef FREE_RETURNS_VOID
13897void free(p)
13898    POINTER p;
13899{}
13900#else
13901int free(p)
13902    POINTER p;
13903{ return 1; }
13904#endif
13905
13906_ACEOF
13907if ac_fn_c_try_run "$LINENO"; then :
13908  SBRK_OK=1
13909fi
13910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13911  conftest.$ac_objext conftest.beam conftest.$ac_ext
13912fi
13913
13914if test -n "${SBRK_OK}"; then
13915  if test -z "${TESTFLAG}"; then
13916
13917$as_echo "#define SBRK_OK 1" >>confdefs.h
13918
13919  else
13920    LDFLAGS="${LDFLAGS} ${TESTFLAG}"
13921    EXTRA_CFLAGS="${EXTRA_CFLAGS} -DSBRK_OK"
13922  fi
13923  break
13924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13925$as_echo "ok" >&6; }
13926else
13927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13928$as_echo "failed" >&6; }
13929fi
13930done
13931
13932LIBS="${SAVE_LIBS}"
13933CFLAGS="${SAVE_CFLAGS}"
13934
13935case "$EXTRA_CFLAGS" in
13936 *-Dsolaris*)
13937  if test "$ac_cv_lib_ucb_main" = "yes"; then
13938      LIBS="${LDFLAGS} -lm -lgcc -lc -lnsl -lgcc -lc -ldl_stubs\
13939        -lnswnis -lnswnisplus -lnswfiles -lnswcompat -lstraddr -lswitch\
13940        -ltcpip -lsocket -lnsl -lgcc -lc /usr/ucblib/libucb.a"
13941      LDFLAGS= "-u dgettext -lintl"
13942  fi ;;
13943 *-MSWIN*)
13944      LDFLAGS= "$LDFLAGS -luser32 -lwinmm -lkernel32 -lwsock32"
13945      ;;
13946esac
13947
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc overhead" >&5
13949$as_echo_n "checking malloc overhead... " >&6; }
13950if ${lp_cv_sys_malloc_overhead+:} false; then :
13951  $as_echo_n "(cached) " >&6
13952else
13953  cat > conftest.c <<EOF
13954#include "confdefs.h"
13955#include "${srcdir}/util/overhead.c"
13956EOF
13957${CC-cc} -o conftest conftest.c
13958lp_cv_sys_malloc_overhead=`./conftest --terse`
13959rm -f conftest*
13960
13961fi
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lp_cv_sys_malloc_overhead" >&5
13963$as_echo "$lp_cv_sys_malloc_overhead" >&6; }
13964
13965cat >>confdefs.h <<_ACEOF
13966#define EXTERN_MALLOC_OVERHEAD $lp_cv_sys_malloc_overhead
13967_ACEOF
13968
13969
13970if test -z "${CONFIG_SHELL}"; then
13971  CONFIG_SHELL='/bin/sh'
13972fi
13973
13974
13975
13976if test "x$with_malloc" = "x" && test "x$DEFAULTwith_malloc" != "x"; then
13977  with_malloc=$DEFAULTwith_malloc
13978fi
13979
13980if test "x$with_malloc" = "x" || test "x$with_malloc" = "xdefault"; then
13981    with_malloc="slaballoc"
13982    if test "x$with_malloc" != "x"; then
13983  with_malloc=`echo $with_malloc|
13984             sed -e 's/^\([^"]*\)\?.*$/\1/'`
13985fi
13986if test "x$with_malloc" = "x" && test "x$DEFAULTwith_malloc" != "x"; then
13987  with_malloc=$DEFAULTwith_malloc
13988fi
13989
13990val_malloc="$with_malloc"
13991
13992fi
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140ac_config_files="$ac_config_files Makefile config.h util/Makefile util/indent/Makefile util/xerq/Makefile util/erq/Makefile"
14141
14142cat >confcache <<\_ACEOF
14143# This file is a shell script that caches the results of configure
14144# tests run on this system so they can be shared between configure
14145# scripts and configure runs, see configure's option --config-cache.
14146# It is not useful on other systems.  If it contains results you don't
14147# want to keep, you may remove or edit it.
14148#
14149# config.status only pays attention to the cache file if you give it
14150# the --recheck option to rerun configure.
14151#
14152# `ac_cv_env_foo' variables (set or unset) will be overridden when
14153# loading this file, other *unset* `ac_cv_foo' will be assigned the
14154# following values.
14155
14156_ACEOF
14157
14158# The following way of writing the cache mishandles newlines in values,
14159# but we know of no workaround that is simple, portable, and efficient.
14160# So, we kill variables containing newlines.
14161# Ultrix sh set writes to stderr and can't be redirected directly,
14162# and sets the high bit in the cache file unless we assign to the vars.
14163(
14164  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14165    eval ac_val=\$$ac_var
14166    case $ac_val in #(
14167    *${as_nl}*)
14168      case $ac_var in #(
14169      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14171      esac
14172      case $ac_var in #(
14173      _ | IFS | as_nl) ;; #(
14174      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14175      *) { eval $ac_var=; unset $ac_var;} ;;
14176      esac ;;
14177    esac
14178  done
14179
14180  (set) 2>&1 |
14181    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14182    *${as_nl}ac_space=\ *)
14183      # `set' does not quote correctly, so add quotes: double-quote
14184      # substitution turns \\\\ into \\, and sed turns \\ into \.
14185      sed -n \
14186	"s/'/'\\\\''/g;
14187	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14188      ;; #(
14189    *)
14190      # `set' quotes correctly as required by POSIX, so do not add quotes.
14191      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14192      ;;
14193    esac |
14194    sort
14195) |
14196  sed '
14197     /^ac_cv_env_/b end
14198     t clear
14199     :clear
14200     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14201     t end
14202     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14203     :end' >>confcache
14204if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14205  if test -w "$cache_file"; then
14206    if test "x$cache_file" != "x/dev/null"; then
14207      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14208$as_echo "$as_me: updating cache $cache_file" >&6;}
14209      if test ! -f "$cache_file" || test -h "$cache_file"; then
14210	cat confcache >"$cache_file"
14211      else
14212        case $cache_file in #(
14213        */* | ?:*)
14214	  mv -f confcache "$cache_file"$$ &&
14215	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14216        *)
14217	  mv -f confcache "$cache_file" ;;
14218	esac
14219      fi
14220    fi
14221  else
14222    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14223$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14224  fi
14225fi
14226rm -f confcache
14227
14228test "x$prefix" = xNONE && prefix=$ac_default_prefix
14229# Let make expand exec_prefix.
14230test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14231
14232DEFS=-DHAVE_CONFIG_H
14233
14234ac_libobjs=
14235ac_ltlibobjs=
14236U=
14237for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14238  # 1. Remove the extension, and $U if already installed.
14239  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14240  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14241  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14242  #    will be set to the directory where LIBOBJS objects are built.
14243  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14244  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14245done
14246LIBOBJS=$ac_libobjs
14247
14248LTLIBOBJS=$ac_ltlibobjs
14249
14250
14251
14252: "${CONFIG_STATUS=./config.status}"
14253ac_write_fail=0
14254ac_clean_files_save=$ac_clean_files
14255ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14257$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14258as_write_fail=0
14259cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14260#! $SHELL
14261# Generated by $as_me.
14262# Run this file to recreate the current configuration.
14263# Compiler output produced by configure, useful for debugging
14264# configure, is in config.log if it exists.
14265
14266debug=false
14267ac_cs_recheck=false
14268ac_cs_silent=false
14269
14270SHELL=\${CONFIG_SHELL-$SHELL}
14271export SHELL
14272_ASEOF
14273cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14274## -------------------- ##
14275## M4sh Initialization. ##
14276## -------------------- ##
14277
14278# Be more Bourne compatible
14279DUALCASE=1; export DUALCASE # for MKS sh
14280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14281  emulate sh
14282  NULLCMD=:
14283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14284  # is contrary to our usage.  Disable this feature.
14285  alias -g '${1+"$@"}'='"$@"'
14286  setopt NO_GLOB_SUBST
14287else
14288  case `(set -o) 2>/dev/null` in #(
14289  *posix*) :
14290    set -o posix ;; #(
14291  *) :
14292     ;;
14293esac
14294fi
14295
14296
14297as_nl='
14298'
14299export as_nl
14300# Printing a long string crashes Solaris 7 /usr/bin/printf.
14301as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14302as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14303as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14304# Prefer a ksh shell builtin over an external printf program on Solaris,
14305# but without wasting forks for bash or zsh.
14306if test -z "$BASH_VERSION$ZSH_VERSION" \
14307    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14308  as_echo='print -r --'
14309  as_echo_n='print -rn --'
14310elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14311  as_echo='printf %s\n'
14312  as_echo_n='printf %s'
14313else
14314  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14315    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14316    as_echo_n='/usr/ucb/echo -n'
14317  else
14318    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14319    as_echo_n_body='eval
14320      arg=$1;
14321      case $arg in #(
14322      *"$as_nl"*)
14323	expr "X$arg" : "X\\(.*\\)$as_nl";
14324	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14325      esac;
14326      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14327    '
14328    export as_echo_n_body
14329    as_echo_n='sh -c $as_echo_n_body as_echo'
14330  fi
14331  export as_echo_body
14332  as_echo='sh -c $as_echo_body as_echo'
14333fi
14334
14335# The user is always right.
14336if test "${PATH_SEPARATOR+set}" != set; then
14337  PATH_SEPARATOR=:
14338  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14339    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14340      PATH_SEPARATOR=';'
14341  }
14342fi
14343
14344
14345# IFS
14346# We need space, tab and new line, in precisely that order.  Quoting is
14347# there to prevent editors from complaining about space-tab.
14348# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14349# splitting by setting IFS to empty value.)
14350IFS=" ""	$as_nl"
14351
14352# Find who we are.  Look in the path if we contain no directory separator.
14353as_myself=
14354case $0 in #((
14355  *[\\/]* ) as_myself=$0 ;;
14356  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14357for as_dir in $PATH
14358do
14359  IFS=$as_save_IFS
14360  test -z "$as_dir" && as_dir=.
14361    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14362  done
14363IFS=$as_save_IFS
14364
14365     ;;
14366esac
14367# We did not find ourselves, most probably we were run as `sh COMMAND'
14368# in which case we are not to be found in the path.
14369if test "x$as_myself" = x; then
14370  as_myself=$0
14371fi
14372if test ! -f "$as_myself"; then
14373  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14374  exit 1
14375fi
14376
14377# Unset variables that we do not need and which cause bugs (e.g. in
14378# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14379# suppresses any "Segmentation fault" message there.  '((' could
14380# trigger a bug in pdksh 5.2.14.
14381for as_var in BASH_ENV ENV MAIL MAILPATH
14382do eval test x\${$as_var+set} = xset \
14383  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14384done
14385PS1='$ '
14386PS2='> '
14387PS4='+ '
14388
14389# NLS nuisances.
14390LC_ALL=C
14391export LC_ALL
14392LANGUAGE=C
14393export LANGUAGE
14394
14395# CDPATH.
14396(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14397
14398
14399# as_fn_error STATUS ERROR [LINENO LOG_FD]
14400# ----------------------------------------
14401# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14402# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14403# script with STATUS, using 1 if that was 0.
14404as_fn_error ()
14405{
14406  as_status=$1; test $as_status -eq 0 && as_status=1
14407  if test "$4"; then
14408    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14409    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14410  fi
14411  $as_echo "$as_me: error: $2" >&2
14412  as_fn_exit $as_status
14413} # as_fn_error
14414
14415
14416# as_fn_set_status STATUS
14417# -----------------------
14418# Set $? to STATUS, without forking.
14419as_fn_set_status ()
14420{
14421  return $1
14422} # as_fn_set_status
14423
14424# as_fn_exit STATUS
14425# -----------------
14426# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14427as_fn_exit ()
14428{
14429  set +e
14430  as_fn_set_status $1
14431  exit $1
14432} # as_fn_exit
14433
14434# as_fn_unset VAR
14435# ---------------
14436# Portably unset VAR.
14437as_fn_unset ()
14438{
14439  { eval $1=; unset $1;}
14440}
14441as_unset=as_fn_unset
14442# as_fn_append VAR VALUE
14443# ----------------------
14444# Append the text in VALUE to the end of the definition contained in VAR. Take
14445# advantage of any shell optimizations that allow amortized linear growth over
14446# repeated appends, instead of the typical quadratic growth present in naive
14447# implementations.
14448if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14449  eval 'as_fn_append ()
14450  {
14451    eval $1+=\$2
14452  }'
14453else
14454  as_fn_append ()
14455  {
14456    eval $1=\$$1\$2
14457  }
14458fi # as_fn_append
14459
14460# as_fn_arith ARG...
14461# ------------------
14462# Perform arithmetic evaluation on the ARGs, and store the result in the
14463# global $as_val. Take advantage of shells that can avoid forks. The arguments
14464# must be portable across $(()) and expr.
14465if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14466  eval 'as_fn_arith ()
14467  {
14468    as_val=$(( $* ))
14469  }'
14470else
14471  as_fn_arith ()
14472  {
14473    as_val=`expr "$@" || test $? -eq 1`
14474  }
14475fi # as_fn_arith
14476
14477
14478if expr a : '\(a\)' >/dev/null 2>&1 &&
14479   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14480  as_expr=expr
14481else
14482  as_expr=false
14483fi
14484
14485if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14486  as_basename=basename
14487else
14488  as_basename=false
14489fi
14490
14491if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14492  as_dirname=dirname
14493else
14494  as_dirname=false
14495fi
14496
14497as_me=`$as_basename -- "$0" ||
14498$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14499	 X"$0" : 'X\(//\)$' \| \
14500	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14501$as_echo X/"$0" |
14502    sed '/^.*\/\([^/][^/]*\)\/*$/{
14503	    s//\1/
14504	    q
14505	  }
14506	  /^X\/\(\/\/\)$/{
14507	    s//\1/
14508	    q
14509	  }
14510	  /^X\/\(\/\).*/{
14511	    s//\1/
14512	    q
14513	  }
14514	  s/.*/./; q'`
14515
14516# Avoid depending upon Character Ranges.
14517as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14518as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14519as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14520as_cr_digits='0123456789'
14521as_cr_alnum=$as_cr_Letters$as_cr_digits
14522
14523ECHO_C= ECHO_N= ECHO_T=
14524case `echo -n x` in #(((((
14525-n*)
14526  case `echo 'xy\c'` in
14527  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14528  xy)  ECHO_C='\c';;
14529  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14530       ECHO_T='	';;
14531  esac;;
14532*)
14533  ECHO_N='-n';;
14534esac
14535
14536rm -f conf$$ conf$$.exe conf$$.file
14537if test -d conf$$.dir; then
14538  rm -f conf$$.dir/conf$$.file
14539else
14540  rm -f conf$$.dir
14541  mkdir conf$$.dir 2>/dev/null
14542fi
14543if (echo >conf$$.file) 2>/dev/null; then
14544  if ln -s conf$$.file conf$$ 2>/dev/null; then
14545    as_ln_s='ln -s'
14546    # ... but there are two gotchas:
14547    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14548    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14549    # In both cases, we have to default to `cp -p'.
14550    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14551      as_ln_s='cp -p'
14552  elif ln conf$$.file conf$$ 2>/dev/null; then
14553    as_ln_s=ln
14554  else
14555    as_ln_s='cp -p'
14556  fi
14557else
14558  as_ln_s='cp -p'
14559fi
14560rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14561rmdir conf$$.dir 2>/dev/null
14562
14563
14564# as_fn_mkdir_p
14565# -------------
14566# Create "$as_dir" as a directory, including parents if necessary.
14567as_fn_mkdir_p ()
14568{
14569
14570  case $as_dir in #(
14571  -*) as_dir=./$as_dir;;
14572  esac
14573  test -d "$as_dir" || eval $as_mkdir_p || {
14574    as_dirs=
14575    while :; do
14576      case $as_dir in #(
14577      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14578      *) as_qdir=$as_dir;;
14579      esac
14580      as_dirs="'$as_qdir' $as_dirs"
14581      as_dir=`$as_dirname -- "$as_dir" ||
14582$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14583	 X"$as_dir" : 'X\(//\)[^/]' \| \
14584	 X"$as_dir" : 'X\(//\)$' \| \
14585	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14586$as_echo X"$as_dir" |
14587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14588	    s//\1/
14589	    q
14590	  }
14591	  /^X\(\/\/\)[^/].*/{
14592	    s//\1/
14593	    q
14594	  }
14595	  /^X\(\/\/\)$/{
14596	    s//\1/
14597	    q
14598	  }
14599	  /^X\(\/\).*/{
14600	    s//\1/
14601	    q
14602	  }
14603	  s/.*/./; q'`
14604      test -d "$as_dir" && break
14605    done
14606    test -z "$as_dirs" || eval "mkdir $as_dirs"
14607  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14608
14609
14610} # as_fn_mkdir_p
14611if mkdir -p . 2>/dev/null; then
14612  as_mkdir_p='mkdir -p "$as_dir"'
14613else
14614  test -d ./-p && rmdir ./-p
14615  as_mkdir_p=false
14616fi
14617
14618if test -x / >/dev/null 2>&1; then
14619  as_test_x='test -x'
14620else
14621  if ls -dL / >/dev/null 2>&1; then
14622    as_ls_L_option=L
14623  else
14624    as_ls_L_option=
14625  fi
14626  as_test_x='
14627    eval sh -c '\''
14628      if test -d "$1"; then
14629	test -d "$1/.";
14630      else
14631	case $1 in #(
14632	-*)set "./$1";;
14633	esac;
14634	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14635	???[sx]*):;;*)false;;esac;fi
14636    '\'' sh
14637  '
14638fi
14639as_executable_p=$as_test_x
14640
14641# Sed expression to map a string onto a valid CPP name.
14642as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14643
14644# Sed expression to map a string onto a valid variable name.
14645as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14646
14647
14648exec 6>&1
14649## ----------------------------------- ##
14650## Main body of $CONFIG_STATUS script. ##
14651## ----------------------------------- ##
14652_ASEOF
14653test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14654
14655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14656# Save the log message, to keep $0 and so on meaningful, and to
14657# report actual input values of CONFIG_FILES etc. instead of their
14658# values after options handling.
14659ac_log="
14660This file was extended by $as_me, which was
14661generated by GNU Autoconf 2.68.  Invocation command line was
14662
14663  CONFIG_FILES    = $CONFIG_FILES
14664  CONFIG_HEADERS  = $CONFIG_HEADERS
14665  CONFIG_LINKS    = $CONFIG_LINKS
14666  CONFIG_COMMANDS = $CONFIG_COMMANDS
14667  $ $0 $@
14668
14669on `(hostname || uname -n) 2>/dev/null | sed 1q`
14670"
14671
14672_ACEOF
14673
14674case $ac_config_files in *"
14675"*) set x $ac_config_files; shift; ac_config_files=$*;;
14676esac
14677
14678case $ac_config_headers in *"
14679"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14680esac
14681
14682
14683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14684# Files that config.status was made for.
14685config_files="$ac_config_files"
14686config_headers="$ac_config_headers"
14687
14688_ACEOF
14689
14690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14691ac_cs_usage="\
14692\`$as_me' instantiates files and other configuration actions
14693from templates according to the current configuration.  Unless the files
14694and actions are specified as TAGs, all are instantiated by default.
14695
14696Usage: $0 [OPTION]... [TAG]...
14697
14698  -h, --help       print this help, then exit
14699  -V, --version    print version number and configuration settings, then exit
14700      --config     print configuration, then exit
14701  -q, --quiet, --silent
14702                   do not print progress messages
14703  -d, --debug      don't remove temporary files
14704      --recheck    update $as_me by reconfiguring in the same conditions
14705      --file=FILE[:TEMPLATE]
14706                   instantiate the configuration file FILE
14707      --header=FILE[:TEMPLATE]
14708                   instantiate the configuration header FILE
14709
14710Configuration files:
14711$config_files
14712
14713Configuration headers:
14714$config_headers
14715
14716Report bugs to the package provider."
14717
14718_ACEOF
14719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14720ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14721ac_cs_version="\\
14722config.status
14723configured by $0, generated by GNU Autoconf 2.68,
14724  with options \\"\$ac_cs_config\\"
14725
14726Copyright (C) 2010 Free Software Foundation, Inc.
14727This config.status script is free software; the Free Software Foundation
14728gives unlimited permission to copy, distribute and modify it."
14729
14730ac_pwd='$ac_pwd'
14731srcdir='$srcdir'
14732INSTALL='$INSTALL'
14733test -n "\$AWK" || AWK=awk
14734_ACEOF
14735
14736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14737# The default lists apply if the user does not specify any file.
14738ac_need_defaults=:
14739while test $# != 0
14740do
14741  case $1 in
14742  --*=?*)
14743    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14744    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14745    ac_shift=:
14746    ;;
14747  --*=)
14748    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14749    ac_optarg=
14750    ac_shift=:
14751    ;;
14752  *)
14753    ac_option=$1
14754    ac_optarg=$2
14755    ac_shift=shift
14756    ;;
14757  esac
14758
14759  case $ac_option in
14760  # Handling of the options.
14761  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14762    ac_cs_recheck=: ;;
14763  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14764    $as_echo "$ac_cs_version"; exit ;;
14765  --config | --confi | --conf | --con | --co | --c )
14766    $as_echo "$ac_cs_config"; exit ;;
14767  --debug | --debu | --deb | --de | --d | -d )
14768    debug=: ;;
14769  --file | --fil | --fi | --f )
14770    $ac_shift
14771    case $ac_optarg in
14772    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14773    '') as_fn_error $? "missing file argument" ;;
14774    esac
14775    as_fn_append CONFIG_FILES " '$ac_optarg'"
14776    ac_need_defaults=false;;
14777  --header | --heade | --head | --hea )
14778    $ac_shift
14779    case $ac_optarg in
14780    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14781    esac
14782    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14783    ac_need_defaults=false;;
14784  --he | --h)
14785    # Conflict between --help and --header
14786    as_fn_error $? "ambiguous option: \`$1'
14787Try \`$0 --help' for more information.";;
14788  --help | --hel | -h )
14789    $as_echo "$ac_cs_usage"; exit ;;
14790  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14791  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14792    ac_cs_silent=: ;;
14793
14794  # This is an error.
14795  -*) as_fn_error $? "unrecognized option: \`$1'
14796Try \`$0 --help' for more information." ;;
14797
14798  *) as_fn_append ac_config_targets " $1"
14799     ac_need_defaults=false ;;
14800
14801  esac
14802  shift
14803done
14804
14805ac_configure_extra_args=
14806
14807if $ac_cs_silent; then
14808  exec 6>/dev/null
14809  ac_configure_extra_args="$ac_configure_extra_args --silent"
14810fi
14811
14812_ACEOF
14813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14814if \$ac_cs_recheck; then
14815  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14816  shift
14817  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14818  CONFIG_SHELL='$SHELL'
14819  export CONFIG_SHELL
14820  exec "\$@"
14821fi
14822
14823_ACEOF
14824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14825exec 5>>config.log
14826{
14827  echo
14828  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14829## Running $as_me. ##
14830_ASBOX
14831  $as_echo "$ac_log"
14832} >&5
14833
14834_ACEOF
14835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14836_ACEOF
14837
14838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14839
14840# Handling of arguments.
14841for ac_config_target in $ac_config_targets
14842do
14843  case $ac_config_target in
14844    "machine.h") CONFIG_HEADERS="$CONFIG_HEADERS machine.h" ;;
14845    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14846    "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
14847    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14848    "util/indent/Makefile") CONFIG_FILES="$CONFIG_FILES util/indent/Makefile" ;;
14849    "util/xerq/Makefile") CONFIG_FILES="$CONFIG_FILES util/xerq/Makefile" ;;
14850    "util/erq/Makefile") CONFIG_FILES="$CONFIG_FILES util/erq/Makefile" ;;
14851
14852  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14853  esac
14854done
14855
14856
14857# If the user did not use the arguments to specify the items to instantiate,
14858# then the envvar interface is used.  Set only those that are not.
14859# We use the long form for the default assignment because of an extremely
14860# bizarre bug on SunOS 4.1.3.
14861if $ac_need_defaults; then
14862  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14863  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14864fi
14865
14866# Have a temporary directory for convenience.  Make it in the build tree
14867# simply because there is no reason against having it here, and in addition,
14868# creating and moving files from /tmp can sometimes cause problems.
14869# Hook for its removal unless debugging.
14870# Note that there is a small window in which the directory will not be cleaned:
14871# after its creation but before its name has been assigned to `$tmp'.
14872$debug ||
14873{
14874  tmp= ac_tmp=
14875  trap 'exit_status=$?
14876  : "${ac_tmp:=$tmp}"
14877  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14878' 0
14879  trap 'as_fn_exit 1' 1 2 13 15
14880}
14881# Create a (secure) tmp directory for tmp files.
14882
14883{
14884  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14885  test -d "$tmp"
14886}  ||
14887{
14888  tmp=./conf$$-$RANDOM
14889  (umask 077 && mkdir "$tmp")
14890} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14891ac_tmp=$tmp
14892
14893# Set up the scripts for CONFIG_FILES section.
14894# No need to generate them if there are no CONFIG_FILES.
14895# This happens for instance with `./config.status config.h'.
14896if test -n "$CONFIG_FILES"; then
14897
14898
14899ac_cr=`echo X | tr X '\015'`
14900# On cygwin, bash can eat \r inside `` if the user requested igncr.
14901# But we know of no other shell where ac_cr would be empty at this
14902# point, so we can use a bashism as a fallback.
14903if test "x$ac_cr" = x; then
14904  eval ac_cr=\$\'\\r\'
14905fi
14906ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14907if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14908  ac_cs_awk_cr='\\r'
14909else
14910  ac_cs_awk_cr=$ac_cr
14911fi
14912
14913echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14914_ACEOF
14915
14916
14917{
14918  echo "cat >conf$$subs.awk <<_ACEOF" &&
14919  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14920  echo "_ACEOF"
14921} >conf$$subs.sh ||
14922  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14923ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14924ac_delim='%!_!# '
14925for ac_last_try in false false false false false :; do
14926  . ./conf$$subs.sh ||
14927    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14928
14929  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14930  if test $ac_delim_n = $ac_delim_num; then
14931    break
14932  elif $ac_last_try; then
14933    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14934  else
14935    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14936  fi
14937done
14938rm -f conf$$subs.sh
14939
14940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14941cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14942_ACEOF
14943sed -n '
14944h
14945s/^/S["/; s/!.*/"]=/
14946p
14947g
14948s/^[^!]*!//
14949:repl
14950t repl
14951s/'"$ac_delim"'$//
14952t delim
14953:nl
14954h
14955s/\(.\{148\}\)..*/\1/
14956t more1
14957s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14958p
14959n
14960b repl
14961:more1
14962s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14963p
14964g
14965s/.\{148\}//
14966t nl
14967:delim
14968h
14969s/\(.\{148\}\)..*/\1/
14970t more2
14971s/["\\]/\\&/g; s/^/"/; s/$/"/
14972p
14973b
14974:more2
14975s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14976p
14977g
14978s/.\{148\}//
14979t delim
14980' <conf$$subs.awk | sed '
14981/^[^""]/{
14982  N
14983  s/\n//
14984}
14985' >>$CONFIG_STATUS || ac_write_fail=1
14986rm -f conf$$subs.awk
14987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14988_ACAWK
14989cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14990  for (key in S) S_is_set[key] = 1
14991  FS = ""
14992
14993}
14994{
14995  line = $ 0
14996  nfields = split(line, field, "@")
14997  substed = 0
14998  len = length(field[1])
14999  for (i = 2; i < nfields; i++) {
15000    key = field[i]
15001    keylen = length(key)
15002    if (S_is_set[key]) {
15003      value = S[key]
15004      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15005      len += length(value) + length(field[++i])
15006      substed = 1
15007    } else
15008      len += 1 + keylen
15009  }
15010
15011  print line
15012}
15013
15014_ACAWK
15015_ACEOF
15016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15017if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15018  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15019else
15020  cat
15021fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15022  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15023_ACEOF
15024
15025# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15026# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15027# trailing colons and then remove the whole line if VPATH becomes empty
15028# (actually we leave an empty line to preserve line numbers).
15029if test "x$srcdir" = x.; then
15030  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15031h
15032s///
15033s/^/:/
15034s/[	 ]*$/:/
15035s/:\$(srcdir):/:/g
15036s/:\${srcdir}:/:/g
15037s/:@srcdir@:/:/g
15038s/^:*//
15039s/:*$//
15040x
15041s/\(=[	 ]*\).*/\1/
15042G
15043s/\n//
15044s/^[^=]*=[	 ]*$//
15045}'
15046fi
15047
15048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15049fi # test -n "$CONFIG_FILES"
15050
15051# Set up the scripts for CONFIG_HEADERS section.
15052# No need to generate them if there are no CONFIG_HEADERS.
15053# This happens for instance with `./config.status Makefile'.
15054if test -n "$CONFIG_HEADERS"; then
15055cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15056BEGIN {
15057_ACEOF
15058
15059# Transform confdefs.h into an awk script `defines.awk', embedded as
15060# here-document in config.status, that substitutes the proper values into
15061# config.h.in to produce config.h.
15062
15063# Create a delimiter string that does not exist in confdefs.h, to ease
15064# handling of long lines.
15065ac_delim='%!_!# '
15066for ac_last_try in false false :; do
15067  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15068  if test -z "$ac_tt"; then
15069    break
15070  elif $ac_last_try; then
15071    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15072  else
15073    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15074  fi
15075done
15076
15077# For the awk script, D is an array of macro values keyed by name,
15078# likewise P contains macro parameters if any.  Preserve backslash
15079# newline sequences.
15080
15081ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15082sed -n '
15083s/.\{148\}/&'"$ac_delim"'/g
15084t rset
15085:rset
15086s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15087t def
15088d
15089:def
15090s/\\$//
15091t bsnl
15092s/["\\]/\\&/g
15093s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15094D["\1"]=" \3"/p
15095s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15096d
15097:bsnl
15098s/["\\]/\\&/g
15099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15100D["\1"]=" \3\\\\\\n"\\/p
15101t cont
15102s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15103t cont
15104d
15105:cont
15106n
15107s/.\{148\}/&'"$ac_delim"'/g
15108t clear
15109:clear
15110s/\\$//
15111t bsnlc
15112s/["\\]/\\&/g; s/^/"/; s/$/"/p
15113d
15114:bsnlc
15115s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15116b cont
15117' <confdefs.h | sed '
15118s/'"$ac_delim"'/"\\\
15119"/g' >>$CONFIG_STATUS || ac_write_fail=1
15120
15121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15122  for (key in D) D_is_set[key] = 1
15123  FS = ""
15124}
15125/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15126  line = \$ 0
15127  split(line, arg, " ")
15128  if (arg[1] == "#") {
15129    defundef = arg[2]
15130    mac1 = arg[3]
15131  } else {
15132    defundef = substr(arg[1], 2)
15133    mac1 = arg[2]
15134  }
15135  split(mac1, mac2, "(") #)
15136  macro = mac2[1]
15137  prefix = substr(line, 1, index(line, defundef) - 1)
15138  if (D_is_set[macro]) {
15139    # Preserve the white space surrounding the "#".
15140    print prefix "define", macro P[macro] D[macro]
15141    next
15142  } else {
15143    # Replace #undef with comments.  This is necessary, for example,
15144    # in the case of _POSIX_SOURCE, which is predefined and required
15145    # on some systems where configure will not decide to define it.
15146    if (defundef == "undef") {
15147      print "/*", prefix defundef, macro, "*/"
15148      next
15149    }
15150  }
15151}
15152{ print }
15153_ACAWK
15154_ACEOF
15155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15156  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15157fi # test -n "$CONFIG_HEADERS"
15158
15159
15160eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15161shift
15162for ac_tag
15163do
15164  case $ac_tag in
15165  :[FHLC]) ac_mode=$ac_tag; continue;;
15166  esac
15167  case $ac_mode$ac_tag in
15168  :[FHL]*:*);;
15169  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15170  :[FH]-) ac_tag=-:-;;
15171  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15172  esac
15173  ac_save_IFS=$IFS
15174  IFS=:
15175  set x $ac_tag
15176  IFS=$ac_save_IFS
15177  shift
15178  ac_file=$1
15179  shift
15180
15181  case $ac_mode in
15182  :L) ac_source=$1;;
15183  :[FH])
15184    ac_file_inputs=
15185    for ac_f
15186    do
15187      case $ac_f in
15188      -) ac_f="$ac_tmp/stdin";;
15189      *) # Look for the file first in the build tree, then in the source tree
15190	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15191	 # because $ac_f cannot contain `:'.
15192	 test -f "$ac_f" ||
15193	   case $ac_f in
15194	   [\\/$]*) false;;
15195	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15196	   esac ||
15197	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15198      esac
15199      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15200      as_fn_append ac_file_inputs " '$ac_f'"
15201    done
15202
15203    # Let's still pretend it is `configure' which instantiates (i.e., don't
15204    # use $as_me), people would be surprised to read:
15205    #    /* config.h.  Generated by config.status.  */
15206    configure_input='Generated from '`
15207	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15208	`' by configure.'
15209    if test x"$ac_file" != x-; then
15210      configure_input="$ac_file.  $configure_input"
15211      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15212$as_echo "$as_me: creating $ac_file" >&6;}
15213    fi
15214    # Neutralize special characters interpreted by sed in replacement strings.
15215    case $configure_input in #(
15216    *\&* | *\|* | *\\* )
15217       ac_sed_conf_input=`$as_echo "$configure_input" |
15218       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15219    *) ac_sed_conf_input=$configure_input;;
15220    esac
15221
15222    case $ac_tag in
15223    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15224      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15225    esac
15226    ;;
15227  esac
15228
15229  ac_dir=`$as_dirname -- "$ac_file" ||
15230$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15231	 X"$ac_file" : 'X\(//\)[^/]' \| \
15232	 X"$ac_file" : 'X\(//\)$' \| \
15233	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15234$as_echo X"$ac_file" |
15235    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15236	    s//\1/
15237	    q
15238	  }
15239	  /^X\(\/\/\)[^/].*/{
15240	    s//\1/
15241	    q
15242	  }
15243	  /^X\(\/\/\)$/{
15244	    s//\1/
15245	    q
15246	  }
15247	  /^X\(\/\).*/{
15248	    s//\1/
15249	    q
15250	  }
15251	  s/.*/./; q'`
15252  as_dir="$ac_dir"; as_fn_mkdir_p
15253  ac_builddir=.
15254
15255case "$ac_dir" in
15256.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15257*)
15258  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15259  # A ".." for each directory in $ac_dir_suffix.
15260  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15261  case $ac_top_builddir_sub in
15262  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15263  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15264  esac ;;
15265esac
15266ac_abs_top_builddir=$ac_pwd
15267ac_abs_builddir=$ac_pwd$ac_dir_suffix
15268# for backward compatibility:
15269ac_top_builddir=$ac_top_build_prefix
15270
15271case $srcdir in
15272  .)  # We are building in place.
15273    ac_srcdir=.
15274    ac_top_srcdir=$ac_top_builddir_sub
15275    ac_abs_top_srcdir=$ac_pwd ;;
15276  [\\/]* | ?:[\\/]* )  # Absolute name.
15277    ac_srcdir=$srcdir$ac_dir_suffix;
15278    ac_top_srcdir=$srcdir
15279    ac_abs_top_srcdir=$srcdir ;;
15280  *) # Relative name.
15281    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15282    ac_top_srcdir=$ac_top_build_prefix$srcdir
15283    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15284esac
15285ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15286
15287
15288  case $ac_mode in
15289  :F)
15290  #
15291  # CONFIG_FILE
15292  #
15293
15294  case $INSTALL in
15295  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15296  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15297  esac
15298_ACEOF
15299
15300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301# If the template does not know about datarootdir, expand it.
15302# FIXME: This hack should be removed a few years after 2.60.
15303ac_datarootdir_hack=; ac_datarootdir_seen=
15304ac_sed_dataroot='
15305/datarootdir/ {
15306  p
15307  q
15308}
15309/@datadir@/p
15310/@docdir@/p
15311/@infodir@/p
15312/@localedir@/p
15313/@mandir@/p'
15314case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15315*datarootdir*) ac_datarootdir_seen=yes;;
15316*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15317  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15318$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15319_ACEOF
15320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321  ac_datarootdir_hack='
15322  s&@datadir@&$datadir&g
15323  s&@docdir@&$docdir&g
15324  s&@infodir@&$infodir&g
15325  s&@localedir@&$localedir&g
15326  s&@mandir@&$mandir&g
15327  s&\\\${datarootdir}&$datarootdir&g' ;;
15328esac
15329_ACEOF
15330
15331# Neutralize VPATH when `$srcdir' = `.'.
15332# Shell code in configure.ac might set extrasub.
15333# FIXME: do we really want to maintain this feature?
15334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335ac_sed_extra="$ac_vpsub
15336$extrasub
15337_ACEOF
15338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15339:t
15340/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15341s|@configure_input@|$ac_sed_conf_input|;t t
15342s&@top_builddir@&$ac_top_builddir_sub&;t t
15343s&@top_build_prefix@&$ac_top_build_prefix&;t t
15344s&@srcdir@&$ac_srcdir&;t t
15345s&@abs_srcdir@&$ac_abs_srcdir&;t t
15346s&@top_srcdir@&$ac_top_srcdir&;t t
15347s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15348s&@builddir@&$ac_builddir&;t t
15349s&@abs_builddir@&$ac_abs_builddir&;t t
15350s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15351s&@INSTALL@&$ac_INSTALL&;t t
15352$ac_datarootdir_hack
15353"
15354eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15355  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15356
15357test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15358  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15359  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15360      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15361  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15362which seems to be undefined.  Please make sure it is defined" >&5
15363$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15364which seems to be undefined.  Please make sure it is defined" >&2;}
15365
15366  rm -f "$ac_tmp/stdin"
15367  case $ac_file in
15368  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15369  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15370  esac \
15371  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15372 ;;
15373  :H)
15374  #
15375  # CONFIG_HEADER
15376  #
15377  if test x"$ac_file" != x-; then
15378    {
15379      $as_echo "/* $configure_input  */" \
15380      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15381    } >"$ac_tmp/config.h" \
15382      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15383    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15384      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15385$as_echo "$as_me: $ac_file is unchanged" >&6;}
15386    else
15387      rm -f "$ac_file"
15388      mv "$ac_tmp/config.h" "$ac_file" \
15389	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15390    fi
15391  else
15392    $as_echo "/* $configure_input  */" \
15393      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15394      || as_fn_error $? "could not create -" "$LINENO" 5
15395  fi
15396 ;;
15397
15398
15399  esac
15400
15401done # for ac_tag
15402
15403
15404as_fn_exit 0
15405_ACEOF
15406ac_clean_files=$ac_clean_files_save
15407
15408test $ac_write_fail = 0 ||
15409  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15410
15411
15412# configure is writing to config.log, and then calls config.status.
15413# config.status does its own redirection, appending to config.log.
15414# Unfortunately, on DOS this fails, as config.log is still kept open
15415# by configure, so config.status won't be able to write to it; its
15416# output is simply discarded.  So we exec the FD to /dev/null,
15417# effectively closing config.log, so it can be properly (re)opened and
15418# appended to by config.status.  When coming back to configure, we
15419# need to make the FD available again.
15420if test "$no_create" != yes; then
15421  ac_cs_success=:
15422  ac_config_status_args=
15423  test "$silent" = yes &&
15424    ac_config_status_args="$ac_config_status_args --quiet"
15425  exec 5>/dev/null
15426  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15427  exec 5>>config.log
15428  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15429  # would make configure fail if this is the last instruction.
15430  $ac_cs_success || as_fn_exit 1
15431fi
15432if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15433  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15434$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15435fi
15436
15437
15438if test "x$not_available" != "x"; then
15439    echo ""
15440    echo "WARNING: The following options were disabled because the system"
15441    echo "lacked the necessary support: $not_available."
15442    exit 1
15443fi
15444