1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for bogofilter 1.2.5.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='bogofilter'
579PACKAGE_TARNAME='bogofilter'
580PACKAGE_VERSION='1.2.5'
581PACKAGE_STRING='bogofilter 1.2.5'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
588#ifdef HAVE_SYS_TYPES_H
589# include <sys/types.h>
590#endif
591#ifdef HAVE_SYS_STAT_H
592# include <sys/stat.h>
593#endif
594#ifdef STDC_HEADERS
595# include <stdlib.h>
596# include <stddef.h>
597#else
598# ifdef HAVE_STDLIB_H
599#  include <stdlib.h>
600# endif
601#endif
602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604#  include <memory.h>
605# endif
606# include <string.h>
607#endif
608#ifdef HAVE_STRINGS_H
609# include <strings.h>
610#endif
611#ifdef HAVE_INTTYPES_H
612# include <inttypes.h>
613#endif
614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
618# include <unistd.h>
619#endif"
620
621ac_unique_file="src/bogofilter.c"
622ac_header_list=
623ac_subst_vars='am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
626transformed_bogoutil
627transformed_bogofilter
628NEED_GETOPT_FALSE
629NEED_GETOPT_TRUE
630NEED_GSL_FALSE
631NEED_GSL_TRUE
632GSL_LIBS
633GSL_CFLAGS
634GSL_CONFIG
635HAVE_EXTENDED_PRECISION_REGISTERS
636ENABLE_XMLTO_FALSE
637ENABLE_XMLTO_TRUE
638ac_cv_enable_xmlto
639NEEDTRIO_FALSE
640NEEDTRIO_TRUE
641ENABLE_LMDB_DATASTORE_FALSE
642ENABLE_LMDB_DATASTORE_TRUE
643ENABLE_KYOTOCABINET_DATASTORE_FALSE
644ENABLE_KYOTOCABINET_DATASTORE_TRUE
645ENABLE_TOKYOCABINET_DATASTORE_FALSE
646ENABLE_TOKYOCABINET_DATASTORE_TRUE
647ENABLE_SQLITE_DATASTORE_FALSE
648ENABLE_SQLITE_DATASTORE_TRUE
649ENABLE_QDBM_DATASTORE_FALSE
650ENABLE_QDBM_DATASTORE_TRUE
651STATIC_DB
652DB_TYPE
653DB_EXT
654LTLIBDB
655LIBDB
656LTLIBQDBM
657LIBQDBM
658QDBM_LIBS
659QDBM_CFLAGS
660PKG_CONFIG_LIBDIR
661PKG_CONFIG_PATH
662PKG_CONFIG
663LTLIBLMDB
664LIBLMDB
665LTLIBKYOTOCABINET
666LIBKYOTOCABINET
667LTLIBTOKYOCABINET
668LIBTOKYOCABINET
669LTLIBSQLITE3
670LIBSQLITE3
671ENABLE_TRANSACTIONS_FALSE
672ENABLE_TRANSACTIONS_TRUE
673DISABLE_TRANSACTIONS_FALSE
674DISABLE_TRANSACTIONS_TRUE
675USE_TRANSACTIONS
676LIBOBJS
677ENABLE_MEMDEBUG_FALSE
678ENABLE_MEMDEBUG_TRUE
679DEFAULT_CHARSET
680ENCODING
681LTLIBICONV
682LIBICONV
683ENABLE_UNICODE_FALSE
684ENABLE_UNICODE_TRUE
685DISABLE_UNICODE_FALSE
686DISABLE_UNICODE_TRUE
687USE_UNICODE
688PATCH_FLEX_253N_FALSE
689PATCH_FLEX_253N_TRUE
690PATCH_FLEX_253X_FALSE
691PATCH_FLEX_253X_TRUE
692PATCH_FLEX_254_FALSE
693PATCH_FLEX_254_TRUE
694USE_GCC4_FALSE
695USE_GCC4_TRUE
696HAVE_EXTERN_INLINE
697HAVE_INLINE
698LEXLIB
699LEX_OUTPUT_ROOT
700LEX
701FLEX
702XMLLINT
703RPMBUILD
704NSGMLS
705PERL
706RANLIB
707ac_ct_AR
708AR
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
713am__fastdepCC_FALSE
714am__fastdepCC_TRUE
715CCDEPMODE
716am__nodep
717AMDEPBACKSLASH
718AMDEP_FALSE
719AMDEP_TRUE
720am__include
721DEPDIR
722am__untar
723am__tar
724AMTAR
725am__leading_dot
726SET_MAKE
727AWK
728mkdir_p
729MKDIR_P
730INSTALL_STRIP_PROGRAM
731STRIP
732install_sh
733MAKEINFO
734AUTOHEADER
735AUTOMAKE
736AUTOCONF
737ACLOCAL
738VERSION
739PACKAGE
740CYGPATH_W
741am__isrc
742INSTALL_DATA
743INSTALL_SCRIPT
744INSTALL_PROGRAM
745host_os
746host_vendor
747host_cpu
748host
749build_os
750build_vendor
751build_cpu
752build
753EGREP
754GREP
755CPP
756OBJEXT
757EXEEXT
758ac_ct_CC
759CPPFLAGS
760LDFLAGS
761CFLAGS
762CC
763target_alias
764host_alias
765build_alias
766LIBS
767ECHO_T
768ECHO_N
769ECHO_C
770DEFS
771mandir
772localedir
773libdir
774psdir
775pdfdir
776dvidir
777htmldir
778infodir
779docdir
780oldincludedir
781includedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL
801am__quote'
802ac_subst_files=''
803ac_user_opts='
804enable_option_checking
805enable_dependency_tracking
806enable_silent_rules
807enable_largefile
808enable_spam_header_name
809enable_unicode
810with_gnu_ld
811enable_rpath
812with_libiconv_prefix
813enable_russian
814with_charset
815enable_memdebug
816enable_transactions
817enable_dummy
818enable_dbshared_test
819with_database
820with_libsqlite3_prefix
821with_libtokyocabinet_prefix
822with_libkyotocabinet_prefix
823with_liblmdb_prefix
824with_libqdbm_prefix
825with_libdb_prefix
826with_included_gsl
827with_gsl_prefix
828with_gsl_exec_prefix
829enable_gsltest
830'
831      ac_precious_vars='build_alias
832host_alias
833target_alias
834CC
835CFLAGS
836LDFLAGS
837LIBS
838CPPFLAGS
839CPP
840PKG_CONFIG
841PKG_CONFIG_PATH
842PKG_CONFIG_LIBDIR
843QDBM_CFLAGS
844QDBM_LIBS'
845
846
847# Initialize some variables set by options.
848ac_init_help=
849ac_init_version=false
850ac_unrecognized_opts=
851ac_unrecognized_sep=
852# The variables have the same names as the options, with
853# dashes changed to underlines.
854cache_file=/dev/null
855exec_prefix=NONE
856no_create=
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
865verbose=
866x_includes=NONE
867x_libraries=NONE
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
874# (The list follows the same order as the GNU Coding Standards.)
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
885docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
894
895ac_prev=
896ac_dashdash=
897for ac_option
898do
899  # If the previous option needs an argument, assign it.
900  if test -n "$ac_prev"; then
901    eval $ac_prev=\$ac_option
902    ac_prev=
903    continue
904  fi
905
906  case $ac_option in
907  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908  *=)   ac_optarg= ;;
909  *)    ac_optarg=yes ;;
910  esac
911
912  # Accept the important Cygnus configure options, so we can diagnose typos.
913
914  case $ac_dashdash$ac_option in
915  --)
916    ac_dashdash=yes ;;
917
918  -bindir | --bindir | --bindi | --bind | --bin | --bi)
919    ac_prev=bindir ;;
920  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921    bindir=$ac_optarg ;;
922
923  -build | --build | --buil | --bui | --bu)
924    ac_prev=build_alias ;;
925  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926    build_alias=$ac_optarg ;;
927
928  -cache-file | --cache-file | --cache-fil | --cache-fi \
929  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930    ac_prev=cache_file ;;
931  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933    cache_file=$ac_optarg ;;
934
935  --config-cache | -C)
936    cache_file=config.cache ;;
937
938  -datadir | --datadir | --datadi | --datad)
939    ac_prev=datadir ;;
940  -datadir=* | --datadir=* | --datadi=* | --datad=*)
941    datadir=$ac_optarg ;;
942
943  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944  | --dataroo | --dataro | --datar)
945    ac_prev=datarootdir ;;
946  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948    datarootdir=$ac_optarg ;;
949
950  -disable-* | --disable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=no ;;
965
966  -docdir | --docdir | --docdi | --doc | --do)
967    ac_prev=docdir ;;
968  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969    docdir=$ac_optarg ;;
970
971  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972    ac_prev=dvidir ;;
973  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974    dvidir=$ac_optarg ;;
975
976  -enable-* | --enable-*)
977    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978    # Reject names that are not valid shell variable names.
979    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980      as_fn_error $? "invalid feature name: $ac_useropt"
981    ac_useropt_orig=$ac_useropt
982    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983    case $ac_user_opts in
984      *"
985"enable_$ac_useropt"
986"*) ;;
987      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988	 ac_unrecognized_sep=', ';;
989    esac
990    eval enable_$ac_useropt=\$ac_optarg ;;
991
992  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994  | --exec | --exe | --ex)
995    ac_prev=exec_prefix ;;
996  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998  | --exec=* | --exe=* | --ex=*)
999    exec_prefix=$ac_optarg ;;
1000
1001  -gas | --gas | --ga | --g)
1002    # Obsolete; use --with-gas.
1003    with_gas=yes ;;
1004
1005  -help | --help | --hel | --he | -h)
1006    ac_init_help=long ;;
1007  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008    ac_init_help=recursive ;;
1009  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010    ac_init_help=short ;;
1011
1012  -host | --host | --hos | --ho)
1013    ac_prev=host_alias ;;
1014  -host=* | --host=* | --hos=* | --ho=*)
1015    host_alias=$ac_optarg ;;
1016
1017  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018    ac_prev=htmldir ;;
1019  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020  | --ht=*)
1021    htmldir=$ac_optarg ;;
1022
1023  -includedir | --includedir | --includedi | --included | --include \
1024  | --includ | --inclu | --incl | --inc)
1025    ac_prev=includedir ;;
1026  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027  | --includ=* | --inclu=* | --incl=* | --inc=*)
1028    includedir=$ac_optarg ;;
1029
1030  -infodir | --infodir | --infodi | --infod | --info | --inf)
1031    ac_prev=infodir ;;
1032  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033    infodir=$ac_optarg ;;
1034
1035  -libdir | --libdir | --libdi | --libd)
1036    ac_prev=libdir ;;
1037  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038    libdir=$ac_optarg ;;
1039
1040  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041  | --libexe | --libex | --libe)
1042    ac_prev=libexecdir ;;
1043  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044  | --libexe=* | --libex=* | --libe=*)
1045    libexecdir=$ac_optarg ;;
1046
1047  -localedir | --localedir | --localedi | --localed | --locale)
1048    ac_prev=localedir ;;
1049  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050    localedir=$ac_optarg ;;
1051
1052  -localstatedir | --localstatedir | --localstatedi | --localstated \
1053  | --localstate | --localstat | --localsta | --localst | --locals)
1054    ac_prev=localstatedir ;;
1055  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057    localstatedir=$ac_optarg ;;
1058
1059  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060    ac_prev=mandir ;;
1061  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062    mandir=$ac_optarg ;;
1063
1064  -nfp | --nfp | --nf)
1065    # Obsolete; use --without-fp.
1066    with_fp=no ;;
1067
1068  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069  | --no-cr | --no-c | -n)
1070    no_create=yes ;;
1071
1072  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074    no_recursion=yes ;;
1075
1076  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078  | --oldin | --oldi | --old | --ol | --o)
1079    ac_prev=oldincludedir ;;
1080  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083    oldincludedir=$ac_optarg ;;
1084
1085  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086    ac_prev=prefix ;;
1087  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088    prefix=$ac_optarg ;;
1089
1090  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091  | --program-pre | --program-pr | --program-p)
1092    ac_prev=program_prefix ;;
1093  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095    program_prefix=$ac_optarg ;;
1096
1097  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098  | --program-suf | --program-su | --program-s)
1099    ac_prev=program_suffix ;;
1100  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102    program_suffix=$ac_optarg ;;
1103
1104  -program-transform-name | --program-transform-name \
1105  | --program-transform-nam | --program-transform-na \
1106  | --program-transform-n | --program-transform- \
1107  | --program-transform | --program-transfor \
1108  | --program-transfo | --program-transf \
1109  | --program-trans | --program-tran \
1110  | --progr-tra | --program-tr | --program-t)
1111    ac_prev=program_transform_name ;;
1112  -program-transform-name=* | --program-transform-name=* \
1113  | --program-transform-nam=* | --program-transform-na=* \
1114  | --program-transform-n=* | --program-transform-=* \
1115  | --program-transform=* | --program-transfor=* \
1116  | --program-transfo=* | --program-transf=* \
1117  | --program-trans=* | --program-tran=* \
1118  | --progr-tra=* | --program-tr=* | --program-t=*)
1119    program_transform_name=$ac_optarg ;;
1120
1121  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122    ac_prev=pdfdir ;;
1123  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124    pdfdir=$ac_optarg ;;
1125
1126  -psdir | --psdir | --psdi | --psd | --ps)
1127    ac_prev=psdir ;;
1128  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129    psdir=$ac_optarg ;;
1130
1131  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132  | -silent | --silent | --silen | --sile | --sil)
1133    silent=yes ;;
1134
1135  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136    ac_prev=sbindir ;;
1137  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138  | --sbi=* | --sb=*)
1139    sbindir=$ac_optarg ;;
1140
1141  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143  | --sharedst | --shareds | --shared | --share | --shar \
1144  | --sha | --sh)
1145    ac_prev=sharedstatedir ;;
1146  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149  | --sha=* | --sh=*)
1150    sharedstatedir=$ac_optarg ;;
1151
1152  -site | --site | --sit)
1153    ac_prev=site ;;
1154  -site=* | --site=* | --sit=*)
1155    site=$ac_optarg ;;
1156
1157  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158    ac_prev=srcdir ;;
1159  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160    srcdir=$ac_optarg ;;
1161
1162  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163  | --syscon | --sysco | --sysc | --sys | --sy)
1164    ac_prev=sysconfdir ;;
1165  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167    sysconfdir=$ac_optarg ;;
1168
1169  -target | --target | --targe | --targ | --tar | --ta | --t)
1170    ac_prev=target_alias ;;
1171  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172    target_alias=$ac_optarg ;;
1173
1174  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175    verbose=yes ;;
1176
1177  -version | --version | --versio | --versi | --vers | -V)
1178    ac_init_version=: ;;
1179
1180  -with-* | --with-*)
1181    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182    # Reject names that are not valid shell variable names.
1183    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184      as_fn_error $? "invalid package name: $ac_useropt"
1185    ac_useropt_orig=$ac_useropt
1186    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187    case $ac_user_opts in
1188      *"
1189"with_$ac_useropt"
1190"*) ;;
1191      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192	 ac_unrecognized_sep=', ';;
1193    esac
1194    eval with_$ac_useropt=\$ac_optarg ;;
1195
1196  -without-* | --without-*)
1197    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198    # Reject names that are not valid shell variable names.
1199    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200      as_fn_error $? "invalid package name: $ac_useropt"
1201    ac_useropt_orig=$ac_useropt
1202    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203    case $ac_user_opts in
1204      *"
1205"with_$ac_useropt"
1206"*) ;;
1207      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208	 ac_unrecognized_sep=', ';;
1209    esac
1210    eval with_$ac_useropt=no ;;
1211
1212  --x)
1213    # Obsolete; use --with-x.
1214    with_x=yes ;;
1215
1216  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217  | --x-incl | --x-inc | --x-in | --x-i)
1218    ac_prev=x_includes ;;
1219  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221    x_includes=$ac_optarg ;;
1222
1223  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225    ac_prev=x_libraries ;;
1226  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228    x_libraries=$ac_optarg ;;
1229
1230  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231Try \`$0 --help' for more information"
1232    ;;
1233
1234  *=*)
1235    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236    # Reject names that are not valid shell variable names.
1237    case $ac_envvar in #(
1238      '' | [0-9]* | *[!_$as_cr_alnum]* )
1239      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240    esac
1241    eval $ac_envvar=\$ac_optarg
1242    export $ac_envvar ;;
1243
1244  *)
1245    # FIXME: should be removed in autoconf 3.0.
1246    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250    ;;
1251
1252  esac
1253done
1254
1255if test -n "$ac_prev"; then
1256  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257  as_fn_error $? "missing argument to $ac_option"
1258fi
1259
1260if test -n "$ac_unrecognized_opts"; then
1261  case $enable_option_checking in
1262    no) ;;
1263    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265  esac
1266fi
1267
1268# Check all directory arguments for consistency.
1269for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270		datadir sysconfdir sharedstatedir localstatedir includedir \
1271		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272		libdir localedir mandir
1273do
1274  eval ac_val=\$$ac_var
1275  # Remove trailing slashes.
1276  case $ac_val in
1277    */ )
1278      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279      eval $ac_var=\$ac_val;;
1280  esac
1281  # Be sure to have absolute directory names.
1282  case $ac_val in
1283    [\\/$]* | ?:[\\/]* )  continue;;
1284    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285  esac
1286  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287done
1288
1289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
1295
1296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298  if test "x$build_alias" = x; then
1299    cross_compiling=maybe
1300  elif test "x$build_alias" != "x$host_alias"; then
1301    cross_compiling=yes
1302  fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
1309
1310
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314  as_fn_error $? "working directory cannot be determined"
1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316  as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
1321  ac_srcdir_defaulted=yes
1322  # Try the directory containing this script, then the parent directory.
1323  ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325	 X"$as_myself" : 'X\(//\)[^/]' \| \
1326	 X"$as_myself" : 'X\(//\)$' \| \
1327	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
1329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\/\)[^/].*/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\/\)$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\).*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  s/.*/./; q'`
1346  srcdir=$ac_confdir
1347  if test ! -r "$srcdir/$ac_unique_file"; then
1348    srcdir=..
1349  fi
1350else
1351  ac_srcdir_defaulted=no
1352fi
1353if test ! -r "$srcdir/$ac_unique_file"; then
1354  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360	pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363  srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371for ac_var in $ac_precious_vars; do
1372  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373  eval ac_env_${ac_var}_value=\$${ac_var}
1374  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376done
1377
1378#
1379# Report the --help message.
1380#
1381if test "$ac_init_help" = "long"; then
1382  # Omit some internal or obsolete options to make the list less imposing.
1383  # This message is too long to be a string in the A/UX 3.1 sh.
1384  cat <<_ACEOF
1385\`configure' configures bogofilter 1.2.5 to adapt to many kinds of systems.
1386
1387Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390VAR=VALUE.  See below for descriptions of some of the useful variables.
1391
1392Defaults for the options are specified in brackets.
1393
1394Configuration:
1395  -h, --help              display this help and exit
1396      --help=short        display options specific to this package
1397      --help=recursive    display the short help of all the included packages
1398  -V, --version           display version information and exit
1399  -q, --quiet, --silent   do not print \`checking ...' messages
1400      --cache-file=FILE   cache test results in FILE [disabled]
1401  -C, --config-cache      alias for \`--cache-file=config.cache'
1402  -n, --no-create         do not create output files
1403      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1404
1405Installation directories:
1406  --prefix=PREFIX         install architecture-independent files in PREFIX
1407                          [$ac_default_prefix]
1408  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1409                          [PREFIX]
1410
1411By default, \`make install' will install all the files in
1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1413an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414for instance \`--prefix=\$HOME'.
1415
1416For better control, use the options below.
1417
1418Fine tuning of the installation directories:
1419  --bindir=DIR            user executables [EPREFIX/bin]
1420  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1421  --libexecdir=DIR        program executables [EPREFIX/libexec]
1422  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1423  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1424  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1425  --libdir=DIR            object code libraries [EPREFIX/lib]
1426  --includedir=DIR        C header files [PREFIX/include]
1427  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1428  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1429  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1430  --infodir=DIR           info documentation [DATAROOTDIR/info]
1431  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1432  --mandir=DIR            man documentation [DATAROOTDIR/man]
1433  --docdir=DIR            documentation root [DATAROOTDIR/doc/bogofilter]
1434  --htmldir=DIR           html documentation [DOCDIR]
1435  --dvidir=DIR            dvi documentation [DOCDIR]
1436  --pdfdir=DIR            pdf documentation [DOCDIR]
1437  --psdir=DIR             ps documentation [DOCDIR]
1438_ACEOF
1439
1440  cat <<\_ACEOF
1441
1442Program names:
1443  --program-prefix=PREFIX            prepend PREFIX to installed program names
1444  --program-suffix=SUFFIX            append SUFFIX to installed program names
1445  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1446
1447System types:
1448  --build=BUILD     configure for building on BUILD [guessed]
1449  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454  case $ac_init_help in
1455     short | recursive ) echo "Configuration of bogofilter 1.2.5:";;
1456   esac
1457  cat <<\_ACEOF
1458
1459Optional Features:
1460  --disable-option-checking  ignore unrecognized --enable/--with options
1461  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463  --enable-dependency-tracking
1464                          do not reject slow dependency extractors
1465  --disable-dependency-tracking
1466                          speeds up one-time build
1467  --enable-silent-rules   less verbose build output (undo: "make V=1")
1468  --disable-silent-rules  verbose build output (undo: "make V=0")
1469  --disable-largefile     omit support for large files
1470  --enable-spam-header-name=name
1471                          use specified header name instead of "X-Bogosity"
1472  --disable-unicode       disables Unicode/UTF-8 conversion of character sets
1473  --disable-rpath         do not hardcode runtime library paths
1474  --enable-russian        switch default character set to CP866 [[iso-8859-1]]
1475  --enable-memdebug       enable memory usage debugging
1476  --enable-transactions   force transactional mode (disable traditional) in
1477                          Berkeley DB [compile both modes and select at
1478                          run-time]
1479  --disable-transactions  disable transactional mode (force traditional) in
1480                          Berkeley DB [compile both modes and select at
1481                          run-time]
1482  --disable-dbshared-test defeat test for shared environment (unsafe)
1483  --disable-gsltest       Do not try to compile and run a test GSL program
1484
1485Optional Packages:
1486  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1489  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1490  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1491  --with-charset=name     use specified charset (overrides --enable-russian)
1492                          [[iso-8859-1]]
1493  --with-database=ENGINE  choose database engine
1494                          {db|qdbm|sqlite3|tokyocabinet|kyotocabinet|lmdb}
1495                          [[db]]
1496  --with-libsqlite3-prefix[=DIR]  search for libsqlite3 in DIR/include and DIR/lib
1497  --without-libsqlite3-prefix     don't search for libsqlite3 in includedir and libdir
1498  --with-libtokyocabinet-prefix[=DIR]  search for libtokyocabinet in DIR/include and DIR/lib
1499  --without-libtokyocabinet-prefix     don't search for libtokyocabinet in includedir and libdir
1500  --with-libkyotocabinet-prefix[=DIR]  search for libkyotocabinet in DIR/include and DIR/lib
1501  --without-libkyotocabinet-prefix     don't search for libkyotocabinet in includedir and libdir
1502  --with-liblmdb-prefix[=DIR]  search for liblmdb in DIR/include and DIR/lib
1503  --without-liblmdb-prefix     don't search for liblmdb in includedir and libdir
1504  --with-libqdbm-prefix[=DIR]  search for libqdbm in DIR/include and DIR/lib
1505  --without-libqdbm-prefix     don't search for libqdbm in includedir and libdir
1506  --with-libdb-prefix[=DIR]  search for libdb in DIR/include and DIR/lib
1507  --without-libdb-prefix     don't search for libdb in includedir and libdir
1508  --with-included-gsl     force use of shipped GSL rather than system GSL
1509  --with-gsl-prefix=PFX   Prefix where GSL is installed (optional)
1510  --with-gsl-exec-prefix=PFX Exec prefix where GSL is installed (optional)
1511
1512Some influential environment variables:
1513  CC          C compiler command
1514  CFLAGS      C compiler flags
1515  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516              nonstandard directory <lib dir>
1517  LIBS        libraries to pass to the linker, e.g. -l<library>
1518  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519              you have headers in a nonstandard directory <include dir>
1520  CPP         C preprocessor
1521  PKG_CONFIG  path to pkg-config utility
1522  PKG_CONFIG_PATH
1523              directories to add to pkg-config's search path
1524  PKG_CONFIG_LIBDIR
1525              path overriding pkg-config's built-in search path
1526  QDBM_CFLAGS C compiler flags for QDBM, overriding pkg-config
1527  QDBM_LIBS   linker flags for QDBM, overriding pkg-config
1528
1529Use these variables to override the choices made by `configure' or to help
1530it to find libraries and programs with nonstandard names/locations.
1531
1532Report bugs to the package provider.
1533_ACEOF
1534ac_status=$?
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538  # If there are subdirs, report their specific --help.
1539  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540    test -d "$ac_dir" ||
1541      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542      continue
1543    ac_builddir=.
1544
1545case "$ac_dir" in
1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547*)
1548  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549  # A ".." for each directory in $ac_dir_suffix.
1550  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551  case $ac_top_builddir_sub in
1552  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554  esac ;;
1555esac
1556ac_abs_top_builddir=$ac_pwd
1557ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558# for backward compatibility:
1559ac_top_builddir=$ac_top_build_prefix
1560
1561case $srcdir in
1562  .)  # We are building in place.
1563    ac_srcdir=.
1564    ac_top_srcdir=$ac_top_builddir_sub
1565    ac_abs_top_srcdir=$ac_pwd ;;
1566  [\\/]* | ?:[\\/]* )  # Absolute name.
1567    ac_srcdir=$srcdir$ac_dir_suffix;
1568    ac_top_srcdir=$srcdir
1569    ac_abs_top_srcdir=$srcdir ;;
1570  *) # Relative name.
1571    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572    ac_top_srcdir=$ac_top_build_prefix$srcdir
1573    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574esac
1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577    cd "$ac_dir" || { ac_status=$?; continue; }
1578    # Check for guested configure.
1579    if test -f "$ac_srcdir/configure.gnu"; then
1580      echo &&
1581      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582    elif test -f "$ac_srcdir/configure"; then
1583      echo &&
1584      $SHELL "$ac_srcdir/configure" --help=recursive
1585    else
1586      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587    fi || ac_status=$?
1588    cd "$ac_pwd" || { ac_status=$?; break; }
1589  done
1590fi
1591
1592test -n "$ac_init_help" && exit $ac_status
1593if $ac_init_version; then
1594  cat <<\_ACEOF
1595bogofilter configure 1.2.5
1596generated by GNU Autoconf 2.69
1597
1598Copyright (C) 2012 Free Software Foundation, Inc.
1599This configure script is free software; the Free Software Foundation
1600gives unlimited permission to copy, distribute and modify it.
1601_ACEOF
1602  exit
1603fi
1604
1605## ------------------------ ##
1606## Autoconf initialization. ##
1607## ------------------------ ##
1608
1609# ac_fn_c_try_compile LINENO
1610# --------------------------
1611# Try to compile conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_compile ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  rm -f conftest.$ac_objext
1616  if { { ac_try="$ac_compile"
1617case "(($ac_try" in
1618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619  *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623  (eval "$ac_compile") 2>conftest.err
1624  ac_status=$?
1625  if test -s conftest.err; then
1626    grep -v '^ *+' conftest.err >conftest.er1
1627    cat conftest.er1 >&5
1628    mv -f conftest.er1 conftest.err
1629  fi
1630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631  test $ac_status = 0; } && {
1632	 test -z "$ac_c_werror_flag" ||
1633	 test ! -s conftest.err
1634       } && test -s conftest.$ac_objext; then :
1635  ac_retval=0
1636else
1637  $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640	ac_retval=1
1641fi
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_compile
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } > conftest.i && {
1669	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677    ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1687# the include files in INCLUDES and setting the cache variable VAR
1688# accordingly.
1689ac_fn_c_check_header_mongrel ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if eval \${$3+:} false; then :
1693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694$as_echo_n "checking for $2... " >&6; }
1695if eval \${$3+:} false; then :
1696  $as_echo_n "(cached) " >&6
1697fi
1698eval ac_res=\$$3
1699	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700$as_echo "$ac_res" >&6; }
1701else
1702  # Is the header compilable?
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1704$as_echo_n "checking $2 usability... " >&6; }
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707$4
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"; then :
1711  ac_header_compiler=yes
1712else
1713  ac_header_compiler=no
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1717$as_echo "$ac_header_compiler" >&6; }
1718
1719# Is the header present?
1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1721$as_echo_n "checking $2 presence... " >&6; }
1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h.  */
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_cpp "$LINENO"; then :
1727  ac_header_preproc=yes
1728else
1729  ac_header_preproc=no
1730fi
1731rm -f conftest.err conftest.i conftest.$ac_ext
1732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1733$as_echo "$ac_header_preproc" >&6; }
1734
1735# So?  What about this header?
1736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1737  yes:no: )
1738    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1739$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1740    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1741$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742    ;;
1743  no:yes:* )
1744    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1745$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1747$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1748    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1749$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1750    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1751$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1752    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754    ;;
1755esac
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  eval "$3=\$ac_header_compiler"
1762fi
1763eval ac_res=\$$3
1764	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766fi
1767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769} # ac_fn_c_check_header_mongrel
1770
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781  *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785  (eval "$ac_link") 2>&5
1786  ac_status=$?
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789  { { case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_try") 2>&5
1796  ac_status=$?
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; }; }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: program exited with status $ac_status" >&5
1802       $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805       ac_retval=$ac_status
1806fi
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_run
1812
1813# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists and can be compiled using the include files in
1816# INCLUDES, setting the cache variable VAR accordingly.
1817ac_fn_c_check_header_compile ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823  $as_echo_n "(cached) " >&6
1824else
1825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831  eval "$3=yes"
1832else
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842} # ac_fn_c_check_header_compile
1843
1844# ac_fn_c_try_link LINENO
1845# -----------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_c_try_link ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  rm -f conftest.$ac_objext conftest$ac_exeext
1851  if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_link") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && {
1867	 test -z "$ac_c_werror_flag" ||
1868	 test ! -s conftest.err
1869       } && test -s conftest$ac_exeext && {
1870	 test "$cross_compiling" = yes ||
1871	 test -x conftest$ac_exeext
1872       }; then :
1873  ac_retval=0
1874else
1875  $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878	ac_retval=1
1879fi
1880  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882  # interfere with the next link command; also delete a directory that is
1883  # left behind by Apple's compiler.  We do this before executing the actions.
1884  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_c_try_link
1889
1890# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1891# ---------------------------------------------
1892# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1893# accordingly.
1894ac_fn_c_check_decl ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  as_decl_name=`echo $2|sed 's/ *(.*//'`
1898  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1900$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1901if eval \${$3+:} false; then :
1902  $as_echo_n "(cached) " >&6
1903else
1904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$4
1907int
1908main ()
1909{
1910#ifndef $as_decl_name
1911#ifdef __cplusplus
1912  (void) $as_decl_use;
1913#else
1914  (void) $as_decl_name;
1915#endif
1916#endif
1917
1918  ;
1919  return 0;
1920}
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923  eval "$3=yes"
1924else
1925  eval "$3=no"
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928fi
1929eval ac_res=\$$3
1930	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931$as_echo "$ac_res" >&6; }
1932  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934} # ac_fn_c_check_decl
1935
1936# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1937# -------------------------------------------
1938# Tests whether TYPE exists after having included INCLUDES, setting cache
1939# variable VAR accordingly.
1940ac_fn_c_check_type ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  eval "$3=no"
1949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951$4
1952int
1953main ()
1954{
1955if (sizeof ($2))
1956	 return 0;
1957  ;
1958  return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964$4
1965int
1966main ()
1967{
1968if (sizeof (($2)))
1969	    return 0;
1970  ;
1971  return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_compile "$LINENO"; then :
1975
1976else
1977  eval "$3=yes"
1978fi
1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983eval ac_res=\$$3
1984	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
1986  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988} # ac_fn_c_check_type
1989
1990# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1991# --------------------------------------------
1992# Tries to find the compile-time value of EXPR in a program that includes
1993# INCLUDES, setting VAR accordingly. Returns whether the value could be
1994# computed
1995ac_fn_c_compute_int ()
1996{
1997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998  if test "$cross_compiling" = yes; then
1999    # Depending upon the size, compute the lo and hi bounds.
2000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h.  */
2002$4
2003int
2004main ()
2005{
2006static int test_array [1 - 2 * !(($2) >= 0)];
2007test_array [0] = 0;
2008return test_array [0];
2009
2010  ;
2011  return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015  ac_lo=0 ac_mid=0
2016  while :; do
2017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$4
2020int
2021main ()
2022{
2023static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024test_array [0] = 0;
2025return test_array [0];
2026
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032  ac_hi=$ac_mid; break
2033else
2034  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2035			if test $ac_lo -le $ac_mid; then
2036			  ac_lo= ac_hi=
2037			  break
2038			fi
2039			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042  done
2043else
2044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h.  */
2046$4
2047int
2048main ()
2049{
2050static int test_array [1 - 2 * !(($2) < 0)];
2051test_array [0] = 0;
2052return test_array [0];
2053
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059  ac_hi=-1 ac_mid=-1
2060  while :; do
2061    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h.  */
2063$4
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2068test_array [0] = 0;
2069return test_array [0];
2070
2071  ;
2072  return 0;
2073}
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076  ac_lo=$ac_mid; break
2077else
2078  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2079			if test $ac_mid -le $ac_hi; then
2080			  ac_lo= ac_hi=
2081			  break
2082			fi
2083			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086  done
2087else
2088  ac_lo= ac_hi=
2089fi
2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093# Binary search between lo and hi bounds.
2094while test "x$ac_lo" != "x$ac_hi"; do
2095  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098$4
2099int
2100main ()
2101{
2102static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103test_array [0] = 0;
2104return test_array [0];
2105
2106  ;
2107  return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111  ac_hi=$ac_mid
2112else
2113  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116done
2117case $ac_lo in #((
2118?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2119'') ac_retval=1 ;;
2120esac
2121  else
2122    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h.  */
2124$4
2125static long int longval () { return $2; }
2126static unsigned long int ulongval () { return $2; }
2127#include <stdio.h>
2128#include <stdlib.h>
2129int
2130main ()
2131{
2132
2133  FILE *f = fopen ("conftest.val", "w");
2134  if (! f)
2135    return 1;
2136  if (($2) < 0)
2137    {
2138      long int i = longval ();
2139      if (i != ($2))
2140	return 1;
2141      fprintf (f, "%ld", i);
2142    }
2143  else
2144    {
2145      unsigned long int i = ulongval ();
2146      if (i != ($2))
2147	return 1;
2148      fprintf (f, "%lu", i);
2149    }
2150  /* Do not output a trailing newline, as this causes \r\n confusion
2151     on some platforms.  */
2152  return ferror (f) || fclose (f) != 0;
2153
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_run "$LINENO"; then :
2159  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2160else
2161  ac_retval=1
2162fi
2163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2164  conftest.$ac_objext conftest.beam conftest.$ac_ext
2165rm -f conftest.val
2166
2167  fi
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169  as_fn_set_status $ac_retval
2170
2171} # ac_fn_c_compute_int
2172
2173# ac_fn_c_check_func LINENO FUNC VAR
2174# ----------------------------------
2175# Tests whether FUNC exists, setting the cache variable VAR accordingly
2176ac_fn_c_check_func ()
2177{
2178  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180$as_echo_n "checking for $2... " >&6; }
2181if eval \${$3+:} false; then :
2182  $as_echo_n "(cached) " >&6
2183else
2184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h.  */
2186/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2188#define $2 innocuous_$2
2189
2190/* System header to define __stub macros and hopefully few prototypes,
2191    which can conflict with char $2 (); below.
2192    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193    <limits.h> exists even on freestanding compilers.  */
2194
2195#ifdef __STDC__
2196# include <limits.h>
2197#else
2198# include <assert.h>
2199#endif
2200
2201#undef $2
2202
2203/* Override any GCC internal prototype to avoid an error.
2204   Use char because int might match the return type of a GCC
2205   builtin and then its argument prototype would still apply.  */
2206#ifdef __cplusplus
2207extern "C"
2208#endif
2209char $2 ();
2210/* The GNU C library defines this for functions which it implements
2211    to always fail with ENOSYS.  Some functions are actually named
2212    something starting with __ and the normal name is an alias.  */
2213#if defined __stub_$2 || defined __stub___$2
2214choke me
2215#endif
2216
2217int
2218main ()
2219{
2220return $2 ();
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_link "$LINENO"; then :
2226  eval "$3=yes"
2227else
2228  eval "$3=no"
2229fi
2230rm -f core conftest.err conftest.$ac_objext \
2231    conftest$ac_exeext conftest.$ac_ext
2232fi
2233eval ac_res=\$$3
2234	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235$as_echo "$ac_res" >&6; }
2236  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238} # ac_fn_c_check_func
2239cat >config.log <<_ACEOF
2240This file contains any messages produced by compilers while
2241running configure, to aid debugging if configure makes a mistake.
2242
2243It was created by bogofilter $as_me 1.2.5, which was
2244generated by GNU Autoconf 2.69.  Invocation command line was
2245
2246  $ $0 $@
2247
2248_ACEOF
2249exec 5>>config.log
2250{
2251cat <<_ASUNAME
2252## --------- ##
2253## Platform. ##
2254## --------- ##
2255
2256hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2257uname -m = `(uname -m) 2>/dev/null || echo unknown`
2258uname -r = `(uname -r) 2>/dev/null || echo unknown`
2259uname -s = `(uname -s) 2>/dev/null || echo unknown`
2260uname -v = `(uname -v) 2>/dev/null || echo unknown`
2261
2262/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2263/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2264
2265/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2266/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2267/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2268/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2269/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2270/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2271/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2272
2273_ASUNAME
2274
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278  IFS=$as_save_IFS
2279  test -z "$as_dir" && as_dir=.
2280    $as_echo "PATH: $as_dir"
2281  done
2282IFS=$as_save_IFS
2283
2284} >&5
2285
2286cat >&5 <<_ACEOF
2287
2288
2289## ----------- ##
2290## Core tests. ##
2291## ----------- ##
2292
2293_ACEOF
2294
2295
2296# Keep a trace of the command line.
2297# Strip out --no-create and --no-recursion so they do not pile up.
2298# Strip out --silent because we don't want to record it for future runs.
2299# Also quote any args containing shell meta-characters.
2300# Make two passes to allow for proper duplicate-argument suppression.
2301ac_configure_args=
2302ac_configure_args0=
2303ac_configure_args1=
2304ac_must_keep_next=false
2305for ac_pass in 1 2
2306do
2307  for ac_arg
2308  do
2309    case $ac_arg in
2310    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2311    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2312    | -silent | --silent | --silen | --sile | --sil)
2313      continue ;;
2314    *\'*)
2315      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316    esac
2317    case $ac_pass in
2318    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2319    2)
2320      as_fn_append ac_configure_args1 " '$ac_arg'"
2321      if test $ac_must_keep_next = true; then
2322	ac_must_keep_next=false # Got value, back to normal.
2323      else
2324	case $ac_arg in
2325	  *=* | --config-cache | -C | -disable-* | --disable-* \
2326	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2327	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2328	  | -with-* | --with-* | -without-* | --without-* | --x)
2329	    case "$ac_configure_args0 " in
2330	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331	    esac
2332	    ;;
2333	  -* ) ac_must_keep_next=true ;;
2334	esac
2335      fi
2336      as_fn_append ac_configure_args " '$ac_arg'"
2337      ;;
2338    esac
2339  done
2340done
2341{ ac_configure_args0=; unset ac_configure_args0;}
2342{ ac_configure_args1=; unset ac_configure_args1;}
2343
2344# When interrupted or exit'd, cleanup temporary files, and complete
2345# config.log.  We remove comments because anyway the quotes in there
2346# would cause problems or look ugly.
2347# WARNING: Use '\'' to represent an apostrophe within the trap.
2348# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2349trap 'exit_status=$?
2350  # Save into config.log some information that might help in debugging.
2351  {
2352    echo
2353
2354    $as_echo "## ---------------- ##
2355## Cache variables. ##
2356## ---------------- ##"
2357    echo
2358    # The following way of writing the cache mishandles newlines in values,
2359(
2360  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2361    eval ac_val=\$$ac_var
2362    case $ac_val in #(
2363    *${as_nl}*)
2364      case $ac_var in #(
2365      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367      esac
2368      case $ac_var in #(
2369      _ | IFS | as_nl) ;; #(
2370      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371      *) { eval $ac_var=; unset $ac_var;} ;;
2372      esac ;;
2373    esac
2374  done
2375  (set) 2>&1 |
2376    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2377    *${as_nl}ac_space=\ *)
2378      sed -n \
2379	"s/'\''/'\''\\\\'\'''\''/g;
2380	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381      ;; #(
2382    *)
2383      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2384      ;;
2385    esac |
2386    sort
2387)
2388    echo
2389
2390    $as_echo "## ----------------- ##
2391## Output variables. ##
2392## ----------------- ##"
2393    echo
2394    for ac_var in $ac_subst_vars
2395    do
2396      eval ac_val=\$$ac_var
2397      case $ac_val in
2398      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2399      esac
2400      $as_echo "$ac_var='\''$ac_val'\''"
2401    done | sort
2402    echo
2403
2404    if test -n "$ac_subst_files"; then
2405      $as_echo "## ------------------- ##
2406## File substitutions. ##
2407## ------------------- ##"
2408      echo
2409      for ac_var in $ac_subst_files
2410      do
2411	eval ac_val=\$$ac_var
2412	case $ac_val in
2413	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414	esac
2415	$as_echo "$ac_var='\''$ac_val'\''"
2416      done | sort
2417      echo
2418    fi
2419
2420    if test -s confdefs.h; then
2421      $as_echo "## ----------- ##
2422## confdefs.h. ##
2423## ----------- ##"
2424      echo
2425      cat confdefs.h
2426      echo
2427    fi
2428    test "$ac_signal" != 0 &&
2429      $as_echo "$as_me: caught signal $ac_signal"
2430    $as_echo "$as_me: exit $exit_status"
2431  } >&5
2432  rm -f core *.core core.conftest.* &&
2433    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2434    exit $exit_status
2435' 0
2436for ac_signal in 1 2 13 15; do
2437  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2438done
2439ac_signal=0
2440
2441# confdefs.h avoids OS command line length limits that DEFS can exceed.
2442rm -f -r conftest* confdefs.h
2443
2444$as_echo "/* confdefs.h */" > confdefs.h
2445
2446# Predefined preprocessor variables.
2447
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE_NAME "$PACKAGE_NAME"
2450_ACEOF
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2454_ACEOF
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_VERSION "$PACKAGE_VERSION"
2458_ACEOF
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_STRING "$PACKAGE_STRING"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2466_ACEOF
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_URL "$PACKAGE_URL"
2470_ACEOF
2471
2472
2473# Let the site file select an alternate cache file if it wants to.
2474# Prefer an explicitly selected file to automatically selected ones.
2475ac_site_file1=NONE
2476ac_site_file2=NONE
2477if test -n "$CONFIG_SITE"; then
2478  # We do not want a PATH search for config.site.
2479  case $CONFIG_SITE in #((
2480    -*)  ac_site_file1=./$CONFIG_SITE;;
2481    */*) ac_site_file1=$CONFIG_SITE;;
2482    *)   ac_site_file1=./$CONFIG_SITE;;
2483  esac
2484elif test "x$prefix" != xNONE; then
2485  ac_site_file1=$prefix/share/config.site
2486  ac_site_file2=$prefix/etc/config.site
2487else
2488  ac_site_file1=$ac_default_prefix/share/config.site
2489  ac_site_file2=$ac_default_prefix/etc/config.site
2490fi
2491for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2492do
2493  test "x$ac_site_file" = xNONE && continue
2494  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2495    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497    sed 's/^/| /' "$ac_site_file" >&5
2498    . "$ac_site_file" \
2499      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501as_fn_error $? "failed to load site script $ac_site_file
2502See \`config.log' for more details" "$LINENO" 5; }
2503  fi
2504done
2505
2506if test -r "$cache_file"; then
2507  # Some versions of bash will fail to source /dev/null (special files
2508  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2509  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2510    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511$as_echo "$as_me: loading cache $cache_file" >&6;}
2512    case $cache_file in
2513      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514      *)                      . "./$cache_file";;
2515    esac
2516  fi
2517else
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519$as_echo "$as_me: creating cache $cache_file" >&6;}
2520  >$cache_file
2521fi
2522
2523as_fn_append ac_header_list " stdlib.h"
2524as_fn_append ac_header_list " unistd.h"
2525as_fn_append ac_header_list " sys/param.h"
2526# Check that the precious variables saved in the cache have kept the same
2527# value.
2528ac_cache_corrupted=false
2529for ac_var in $ac_precious_vars; do
2530  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531  eval ac_new_set=\$ac_env_${ac_var}_set
2532  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533  eval ac_new_val=\$ac_env_${ac_var}_value
2534  case $ac_old_set,$ac_new_set in
2535    set,)
2536      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538      ac_cache_corrupted=: ;;
2539    ,set)
2540      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542      ac_cache_corrupted=: ;;
2543    ,);;
2544    *)
2545      if test "x$ac_old_val" != "x$ac_new_val"; then
2546	# differences in whitespace do not lead to failure.
2547	ac_old_val_w=`echo x $ac_old_val`
2548	ac_new_val_w=`echo x $ac_new_val`
2549	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552	  ac_cache_corrupted=:
2553	else
2554	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556	  eval $ac_var=\$ac_old_val
2557	fi
2558	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2559$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2560	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2561$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2562      fi;;
2563  esac
2564  # Pass precious variables to config.status.
2565  if test "$ac_new_set" = set; then
2566    case $ac_new_val in
2567    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568    *) ac_arg=$ac_var=$ac_new_val ;;
2569    esac
2570    case " $ac_configure_args " in
2571      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2572      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573    esac
2574  fi
2575done
2576if $ac_cache_corrupted; then
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2582fi
2583## -------------------- ##
2584## Main body of script. ##
2585## -------------------- ##
2586
2587ac_ext=c
2588ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592
2593
2594
2595ac_aux_dir=
2596for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2597  if test -f "$ac_dir/install-sh"; then
2598    ac_aux_dir=$ac_dir
2599    ac_install_sh="$ac_aux_dir/install-sh -c"
2600    break
2601  elif test -f "$ac_dir/install.sh"; then
2602    ac_aux_dir=$ac_dir
2603    ac_install_sh="$ac_aux_dir/install.sh -c"
2604    break
2605  elif test -f "$ac_dir/shtool"; then
2606    ac_aux_dir=$ac_dir
2607    ac_install_sh="$ac_aux_dir/shtool install -c"
2608    break
2609  fi
2610done
2611if test -z "$ac_aux_dir"; then
2612  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2613fi
2614
2615# These three variables are undocumented and unsupported,
2616# and are intended to be withdrawn in a future Autoconf release.
2617# They can cause serious problems if a builder's source tree is in a directory
2618# whose full name contains unusual characters.
2619ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2620ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2621ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2622
2623
2624# Expand $ac_aux_dir to an absolute path.
2625am_aux_dir=`cd "$ac_aux_dir" && pwd`
2626
2627ac_ext=c
2628ac_cpp='$CPP $CPPFLAGS'
2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632if test -n "$ac_tool_prefix"; then
2633  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2634set dummy ${ac_tool_prefix}gcc; ac_word=$2
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636$as_echo_n "checking for $ac_word... " >&6; }
2637if ${ac_cv_prog_CC+:} false; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  if test -n "$CC"; then
2641  ac_cv_prog_CC="$CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  test -z "$as_dir" && as_dir=.
2648    for ac_exec_ext in '' $ac_executable_extensions; do
2649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655  done
2656IFS=$as_save_IFS
2657
2658fi
2659fi
2660CC=$ac_cv_prog_CC
2661if test -n "$CC"; then
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663$as_echo "$CC" >&6; }
2664else
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
2667fi
2668
2669
2670fi
2671if test -z "$ac_cv_prog_CC"; then
2672  ac_ct_CC=$CC
2673  # Extract the first word of "gcc", so it can be a program name with args.
2674set dummy gcc; ac_word=$2
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if ${ac_cv_prog_ac_ct_CC+:} false; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  if test -n "$ac_ct_CC"; then
2681  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686  IFS=$as_save_IFS
2687  test -z "$as_dir" && as_dir=.
2688    for ac_exec_ext in '' $ac_executable_extensions; do
2689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690    ac_cv_prog_ac_ct_CC="gcc"
2691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692    break 2
2693  fi
2694done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
2700ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701if test -n "$ac_ct_CC"; then
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2703$as_echo "$ac_ct_CC" >&6; }
2704else
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709  if test "x$ac_ct_CC" = x; then
2710    CC=""
2711  else
2712    case $cross_compiling:$ac_tool_warned in
2713yes:)
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716ac_tool_warned=yes ;;
2717esac
2718    CC=$ac_ct_CC
2719  fi
2720else
2721  CC="$ac_cv_prog_CC"
2722fi
2723
2724if test -z "$CC"; then
2725          if test -n "$ac_tool_prefix"; then
2726    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2727set dummy ${ac_tool_prefix}cc; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if ${ac_cv_prog_CC+:} false; then :
2731  $as_echo_n "(cached) " >&6
2732else
2733  if test -n "$CC"; then
2734  ac_cv_prog_CC="$CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739  IFS=$as_save_IFS
2740  test -z "$as_dir" && as_dir=.
2741    for ac_exec_ext in '' $ac_executable_extensions; do
2742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743    ac_cv_prog_CC="${ac_tool_prefix}cc"
2744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748  done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753CC=$ac_cv_prog_CC
2754if test -n "$CC"; then
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756$as_echo "$CC" >&6; }
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762
2763  fi
2764fi
2765if test -z "$CC"; then
2766  # Extract the first word of "cc", so it can be a program name with args.
2767set dummy cc; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_CC+:} false; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  if test -n "$CC"; then
2774  ac_cv_prog_CC="$CC" # Let the user override the test.
2775else
2776  ac_prog_rejected=no
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782    for ac_exec_ext in '' $ac_executable_extensions; do
2783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2785       ac_prog_rejected=yes
2786       continue
2787     fi
2788    ac_cv_prog_CC="cc"
2789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793  done
2794IFS=$as_save_IFS
2795
2796if test $ac_prog_rejected = yes; then
2797  # We found a bogon in the path, so make sure we never use it.
2798  set dummy $ac_cv_prog_CC
2799  shift
2800  if test $# != 0; then
2801    # We chose a different compiler from the bogus one.
2802    # However, it has the same basename, so the bogon will be chosen
2803    # first if we set CC to just the basename; use the full file name.
2804    shift
2805    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2806  fi
2807fi
2808fi
2809fi
2810CC=$ac_cv_prog_CC
2811if test -n "$CC"; then
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813$as_echo "$CC" >&6; }
2814else
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819
2820fi
2821if test -z "$CC"; then
2822  if test -n "$ac_tool_prefix"; then
2823  for ac_prog in cl.exe
2824  do
2825    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if ${ac_cv_prog_CC+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  if test -n "$CC"; then
2833  ac_cv_prog_CC="$CC" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  test -z "$as_dir" && as_dir=.
2840    for ac_exec_ext in '' $ac_executable_extensions; do
2841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847  done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852CC=$ac_cv_prog_CC
2853if test -n "$CC"; then
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855$as_echo "$CC" >&6; }
2856else
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861
2862    test -n "$CC" && break
2863  done
2864fi
2865if test -z "$CC"; then
2866  ac_ct_CC=$CC
2867  for ac_prog in cl.exe
2868do
2869  # Extract the first word of "$ac_prog", so it can be a program name with args.
2870set dummy $ac_prog; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_ac_ct_CC+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$ac_ct_CC"; then
2877  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_ac_ct_CC="$ac_prog"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896ac_ct_CC=$ac_cv_prog_ac_ct_CC
2897if test -n "$ac_ct_CC"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2899$as_echo "$ac_ct_CC" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906  test -n "$ac_ct_CC" && break
2907done
2908
2909  if test "x$ac_ct_CC" = x; then
2910    CC=""
2911  else
2912    case $cross_compiling:$ac_tool_warned in
2913yes:)
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916ac_tool_warned=yes ;;
2917esac
2918    CC=$ac_ct_CC
2919  fi
2920fi
2921
2922fi
2923
2924
2925test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927as_fn_error $? "no acceptable C compiler found in \$PATH
2928See \`config.log' for more details" "$LINENO" 5; }
2929
2930# Provide some information about the compiler.
2931$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2932set X $ac_compile
2933ac_compiler=$2
2934for ac_option in --version -v -V -qversion; do
2935  { { ac_try="$ac_compiler $ac_option >&5"
2936case "(($ac_try" in
2937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938  *) ac_try_echo=$ac_try;;
2939esac
2940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941$as_echo "$ac_try_echo"; } >&5
2942  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2943  ac_status=$?
2944  if test -s conftest.err; then
2945    sed '10a\
2946... rest of stderr output deleted ...
2947         10q' conftest.err >conftest.er1
2948    cat conftest.er1 >&5
2949  fi
2950  rm -f conftest.er1 conftest.err
2951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952  test $ac_status = 0; }
2953done
2954
2955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956/* end confdefs.h.  */
2957
2958int
2959main ()
2960{
2961
2962  ;
2963  return 0;
2964}
2965_ACEOF
2966ac_clean_files_save=$ac_clean_files
2967ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2968# Try to create an executable without -o first, disregard a.out.
2969# It will help us diagnose broken compilers, and finding out an intuition
2970# of exeext.
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2972$as_echo_n "checking whether the C compiler works... " >&6; }
2973ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2974
2975# The possible output files:
2976ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2977
2978ac_rmfiles=
2979for ac_file in $ac_files
2980do
2981  case $ac_file in
2982    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2983    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2984  esac
2985done
2986rm -f $ac_rmfiles
2987
2988if { { ac_try="$ac_link_default"
2989case "(($ac_try" in
2990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991  *) ac_try_echo=$ac_try;;
2992esac
2993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994$as_echo "$ac_try_echo"; } >&5
2995  (eval "$ac_link_default") 2>&5
2996  ac_status=$?
2997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998  test $ac_status = 0; }; then :
2999  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3000# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3001# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3002# so that the user can short-circuit this test for compilers unknown to
3003# Autoconf.
3004for ac_file in $ac_files ''
3005do
3006  test -f "$ac_file" || continue
3007  case $ac_file in
3008    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3009	;;
3010    [ab].out )
3011	# We found the default executable, but exeext='' is most
3012	# certainly right.
3013	break;;
3014    *.* )
3015	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3016	then :; else
3017	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018	fi
3019	# We set ac_cv_exeext here because the later test for it is not
3020	# safe: cross compilers may not add the suffix if given an `-o'
3021	# argument, so we may need to know it at that point already.
3022	# Even if this section looks crufty: it has the advantage of
3023	# actually working.
3024	break;;
3025    * )
3026	break;;
3027  esac
3028done
3029test "$ac_cv_exeext" = no && ac_cv_exeext=
3030
3031else
3032  ac_file=''
3033fi
3034if test -z "$ac_file"; then :
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037$as_echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042as_fn_error 77 "C compiler cannot create executables
3043See \`config.log' for more details" "$LINENO" 5; }
3044else
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3046$as_echo "yes" >&6; }
3047fi
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3049$as_echo_n "checking for C compiler default output file name... " >&6; }
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3051$as_echo "$ac_file" >&6; }
3052ac_exeext=$ac_cv_exeext
3053
3054rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3055ac_clean_files=$ac_clean_files_save
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3057$as_echo_n "checking for suffix of executables... " >&6; }
3058if { { ac_try="$ac_link"
3059case "(($ac_try" in
3060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061  *) ac_try_echo=$ac_try;;
3062esac
3063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064$as_echo "$ac_try_echo"; } >&5
3065  (eval "$ac_link") 2>&5
3066  ac_status=$?
3067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068  test $ac_status = 0; }; then :
3069  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3070# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3071# work properly (i.e., refer to `conftest.exe'), while it won't with
3072# `rm'.
3073for ac_file in conftest.exe conftest conftest.*; do
3074  test -f "$ac_file" || continue
3075  case $ac_file in
3076    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3077    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078	  break;;
3079    * ) break;;
3080  esac
3081done
3082else
3083  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3086See \`config.log' for more details" "$LINENO" 5; }
3087fi
3088rm -f conftest conftest$ac_cv_exeext
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3090$as_echo "$ac_cv_exeext" >&6; }
3091
3092rm -f conftest.$ac_ext
3093EXEEXT=$ac_cv_exeext
3094ac_exeext=$EXEEXT
3095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096/* end confdefs.h.  */
3097#include <stdio.h>
3098int
3099main ()
3100{
3101FILE *f = fopen ("conftest.out", "w");
3102 return ferror (f) || fclose (f) != 0;
3103
3104  ;
3105  return 0;
3106}
3107_ACEOF
3108ac_clean_files="$ac_clean_files conftest.out"
3109# Check that the compiler produces executables we can run.  If not, either
3110# the compiler is broken, or we cross compile.
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3112$as_echo_n "checking whether we are cross compiling... " >&6; }
3113if test "$cross_compiling" != yes; then
3114  { { ac_try="$ac_link"
3115case "(($ac_try" in
3116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117  *) ac_try_echo=$ac_try;;
3118esac
3119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120$as_echo "$ac_try_echo"; } >&5
3121  (eval "$ac_link") 2>&5
3122  ac_status=$?
3123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124  test $ac_status = 0; }
3125  if { ac_try='./conftest$ac_cv_exeext'
3126  { { case "(($ac_try" in
3127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128  *) ac_try_echo=$ac_try;;
3129esac
3130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131$as_echo "$ac_try_echo"; } >&5
3132  (eval "$ac_try") 2>&5
3133  ac_status=$?
3134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135  test $ac_status = 0; }; }; then
3136    cross_compiling=no
3137  else
3138    if test "$cross_compiling" = maybe; then
3139	cross_compiling=yes
3140    else
3141	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143as_fn_error $? "cannot run C compiled programs.
3144If you meant to cross compile, use \`--host'.
3145See \`config.log' for more details" "$LINENO" 5; }
3146    fi
3147  fi
3148fi
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3150$as_echo "$cross_compiling" >&6; }
3151
3152rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3153ac_clean_files=$ac_clean_files_save
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3155$as_echo_n "checking for suffix of object files... " >&6; }
3156if ${ac_cv_objext+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160/* end confdefs.h.  */
3161
3162int
3163main ()
3164{
3165
3166  ;
3167  return 0;
3168}
3169_ACEOF
3170rm -f conftest.o conftest.obj
3171if { { ac_try="$ac_compile"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_compile") 2>&5
3179  ac_status=$?
3180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181  test $ac_status = 0; }; then :
3182  for ac_file in conftest.o conftest.obj conftest.*; do
3183  test -f "$ac_file" || continue;
3184  case $ac_file in
3185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3186    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3187       break;;
3188  esac
3189done
3190else
3191  $as_echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196as_fn_error $? "cannot compute suffix of object files: cannot compile
3197See \`config.log' for more details" "$LINENO" 5; }
3198fi
3199rm -f conftest.$ac_cv_objext conftest.$ac_ext
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3202$as_echo "$ac_cv_objext" >&6; }
3203OBJEXT=$ac_cv_objext
3204ac_objext=$OBJEXT
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3206$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3207if ${ac_cv_c_compiler_gnu+:} false; then :
3208  $as_echo_n "(cached) " >&6
3209else
3210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211/* end confdefs.h.  */
3212
3213int
3214main ()
3215{
3216#ifndef __GNUC__
3217       choke me
3218#endif
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224if ac_fn_c_try_compile "$LINENO"; then :
3225  ac_compiler_gnu=yes
3226else
3227  ac_compiler_gnu=no
3228fi
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230ac_cv_c_compiler_gnu=$ac_compiler_gnu
3231
3232fi
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3234$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3235if test $ac_compiler_gnu = yes; then
3236  GCC=yes
3237else
3238  GCC=
3239fi
3240ac_test_CFLAGS=${CFLAGS+set}
3241ac_save_CFLAGS=$CFLAGS
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3243$as_echo_n "checking whether $CC accepts -g... " >&6; }
3244if ${ac_cv_prog_cc_g+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  ac_save_c_werror_flag=$ac_c_werror_flag
3248   ac_c_werror_flag=yes
3249   ac_cv_prog_cc_g=no
3250   CFLAGS="-g"
3251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253
3254int
3255main ()
3256{
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262if ac_fn_c_try_compile "$LINENO"; then :
3263  ac_cv_prog_cc_g=yes
3264else
3265  CFLAGS=""
3266      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267/* end confdefs.h.  */
3268
3269int
3270main ()
3271{
3272
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277if ac_fn_c_try_compile "$LINENO"; then :
3278
3279else
3280  ac_c_werror_flag=$ac_save_c_werror_flag
3281	 CFLAGS="-g"
3282	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h.  */
3284
3285int
3286main ()
3287{
3288
3289  ;
3290  return 0;
3291}
3292_ACEOF
3293if ac_fn_c_try_compile "$LINENO"; then :
3294  ac_cv_prog_cc_g=yes
3295fi
3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297fi
3298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299fi
3300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301   ac_c_werror_flag=$ac_save_c_werror_flag
3302fi
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3304$as_echo "$ac_cv_prog_cc_g" >&6; }
3305if test "$ac_test_CFLAGS" = set; then
3306  CFLAGS=$ac_save_CFLAGS
3307elif test $ac_cv_prog_cc_g = yes; then
3308  if test "$GCC" = yes; then
3309    CFLAGS="-g -O2"
3310  else
3311    CFLAGS="-g"
3312  fi
3313else
3314  if test "$GCC" = yes; then
3315    CFLAGS="-O2"
3316  else
3317    CFLAGS=
3318  fi
3319fi
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3321$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3322if ${ac_cv_prog_cc_c89+:} false; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  ac_cv_prog_cc_c89=no
3326ac_save_CC=$CC
3327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328/* end confdefs.h.  */
3329#include <stdarg.h>
3330#include <stdio.h>
3331struct stat;
3332/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3333struct buf { int x; };
3334FILE * (*rcsopen) (struct buf *, struct stat *, int);
3335static char *e (p, i)
3336     char **p;
3337     int i;
3338{
3339  return p[i];
3340}
3341static char *f (char * (*g) (char **, int), char **p, ...)
3342{
3343  char *s;
3344  va_list v;
3345  va_start (v,p);
3346  s = g (p, va_arg (v,int));
3347  va_end (v);
3348  return s;
3349}
3350
3351/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3352   function prototypes and stuff, but not '\xHH' hex character constants.
3353   These don't provoke an error unfortunately, instead are silently treated
3354   as 'x'.  The following induces an error, until -std is added to get
3355   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3356   array size at least.  It's necessary to write '\x00'==0 to get something
3357   that's true only with -std.  */
3358int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359
3360/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3361   inside strings and character constants.  */
3362#define FOO(x) 'x'
3363int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364
3365int test (int i, double x);
3366struct s1 {int (*f) (int a);};
3367struct s2 {int (*f) (double a);};
3368int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3369int argc;
3370char **argv;
3371int
3372main ()
3373{
3374return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3375  ;
3376  return 0;
3377}
3378_ACEOF
3379for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3380	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381do
3382  CC="$ac_save_CC $ac_arg"
3383  if ac_fn_c_try_compile "$LINENO"; then :
3384  ac_cv_prog_cc_c89=$ac_arg
3385fi
3386rm -f core conftest.err conftest.$ac_objext
3387  test "x$ac_cv_prog_cc_c89" != "xno" && break
3388done
3389rm -f conftest.$ac_ext
3390CC=$ac_save_CC
3391
3392fi
3393# AC_CACHE_VAL
3394case "x$ac_cv_prog_cc_c89" in
3395  x)
3396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3397$as_echo "none needed" >&6; } ;;
3398  xno)
3399    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3400$as_echo "unsupported" >&6; } ;;
3401  *)
3402    CC="$CC $ac_cv_prog_cc_c89"
3403    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3404$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3405esac
3406if test "x$ac_cv_prog_cc_c89" != xno; then :
3407
3408fi
3409
3410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416ac_ext=c
3417ac_cpp='$CPP $CPPFLAGS'
3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3422$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3423if ${am_cv_prog_cc_c_o+:} false; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437  # Make sure it works both with $CC and with simple cc.
3438  # Following AC_PROG_CC_C_O, we do the test twice because some
3439  # compilers refuse to overwrite an existing .o file with -o,
3440  # though they will create one.
3441  am_cv_prog_cc_c_o=yes
3442  for am_i in 1 2; do
3443    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3444   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } \
3448         && test -f conftest2.$ac_objext; then
3449      : OK
3450    else
3451      am_cv_prog_cc_c_o=no
3452      break
3453    fi
3454  done
3455  rm -f core conftest*
3456  unset am_i
3457fi
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3459$as_echo "$am_cv_prog_cc_c_o" >&6; }
3460if test "$am_cv_prog_cc_c_o" != yes; then
3461   # Losing compiler, so override with the script.
3462   # FIXME: It is wrong to rewrite CC.
3463   # But if we don't then we get into trouble of one sort or another.
3464   # A longer-term fix would be to have automake use am__CC in this case,
3465   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3466   CC="$am_aux_dir/compile $CC"
3467fi
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473
3474
3475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3482$as_echo_n "checking how to run the C preprocessor... " >&6; }
3483# On Suns, sometimes $CPP names a directory.
3484if test -n "$CPP" && test -d "$CPP"; then
3485  CPP=
3486fi
3487if test -z "$CPP"; then
3488  if ${ac_cv_prog_CPP+:} false; then :
3489  $as_echo_n "(cached) " >&6
3490else
3491      # Double quotes because CPP needs to be expanded
3492    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3493    do
3494      ac_preproc_ok=false
3495for ac_c_preproc_warn_flag in '' yes
3496do
3497  # Use a header file that comes with gcc, so configuring glibc
3498  # with a fresh cross-compiler works.
3499  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500  # <limits.h> exists even on freestanding compilers.
3501  # On the NeXT, cc -E runs the code through the compiler's parser,
3502  # not just through cpp. "Syntax error" is here to catch this case.
3503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h.  */
3505#ifdef __STDC__
3506# include <limits.h>
3507#else
3508# include <assert.h>
3509#endif
3510		     Syntax error
3511_ACEOF
3512if ac_fn_c_try_cpp "$LINENO"; then :
3513
3514else
3515  # Broken: fails on valid input.
3516continue
3517fi
3518rm -f conftest.err conftest.i conftest.$ac_ext
3519
3520  # OK, works on sane cases.  Now check whether nonexistent headers
3521  # can be detected and how.
3522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524#include <ac_nonexistent.h>
3525_ACEOF
3526if ac_fn_c_try_cpp "$LINENO"; then :
3527  # Broken: success on invalid input.
3528continue
3529else
3530  # Passes both tests.
3531ac_preproc_ok=:
3532break
3533fi
3534rm -f conftest.err conftest.i conftest.$ac_ext
3535
3536done
3537# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3538rm -f conftest.i conftest.err conftest.$ac_ext
3539if $ac_preproc_ok; then :
3540  break
3541fi
3542
3543    done
3544    ac_cv_prog_CPP=$CPP
3545
3546fi
3547  CPP=$ac_cv_prog_CPP
3548else
3549  ac_cv_prog_CPP=$CPP
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3552$as_echo "$CPP" >&6; }
3553ac_preproc_ok=false
3554for ac_c_preproc_warn_flag in '' yes
3555do
3556  # Use a header file that comes with gcc, so configuring glibc
3557  # with a fresh cross-compiler works.
3558  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3559  # <limits.h> exists even on freestanding compilers.
3560  # On the NeXT, cc -E runs the code through the compiler's parser,
3561  # not just through cpp. "Syntax error" is here to catch this case.
3562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564#ifdef __STDC__
3565# include <limits.h>
3566#else
3567# include <assert.h>
3568#endif
3569		     Syntax error
3570_ACEOF
3571if ac_fn_c_try_cpp "$LINENO"; then :
3572
3573else
3574  # Broken: fails on valid input.
3575continue
3576fi
3577rm -f conftest.err conftest.i conftest.$ac_ext
3578
3579  # OK, works on sane cases.  Now check whether nonexistent headers
3580  # can be detected and how.
3581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583#include <ac_nonexistent.h>
3584_ACEOF
3585if ac_fn_c_try_cpp "$LINENO"; then :
3586  # Broken: success on invalid input.
3587continue
3588else
3589  # Passes both tests.
3590ac_preproc_ok=:
3591break
3592fi
3593rm -f conftest.err conftest.i conftest.$ac_ext
3594
3595done
3596# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597rm -f conftest.i conftest.err conftest.$ac_ext
3598if $ac_preproc_ok; then :
3599
3600else
3601  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3604See \`config.log' for more details" "$LINENO" 5; }
3605fi
3606
3607ac_ext=c
3608ac_cpp='$CPP $CPPFLAGS'
3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3615$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3616if ${ac_cv_path_GREP+:} false; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  if test -z "$GREP"; then
3620  ac_path_GREP_found=false
3621  # Loop through the user's path and test for each of PROGNAME-LIST
3622  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3624do
3625  IFS=$as_save_IFS
3626  test -z "$as_dir" && as_dir=.
3627    for ac_prog in grep ggrep; do
3628    for ac_exec_ext in '' $ac_executable_extensions; do
3629      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3630      as_fn_executable_p "$ac_path_GREP" || continue
3631# Check for GNU ac_path_GREP and select it if it is found.
3632  # Check for GNU $ac_path_GREP
3633case `"$ac_path_GREP" --version 2>&1` in
3634*GNU*)
3635  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3636*)
3637  ac_count=0
3638  $as_echo_n 0123456789 >"conftest.in"
3639  while :
3640  do
3641    cat "conftest.in" "conftest.in" >"conftest.tmp"
3642    mv "conftest.tmp" "conftest.in"
3643    cp "conftest.in" "conftest.nl"
3644    $as_echo 'GREP' >> "conftest.nl"
3645    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3646    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3647    as_fn_arith $ac_count + 1 && ac_count=$as_val
3648    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3649      # Best one so far, save it but keep looking for a better one
3650      ac_cv_path_GREP="$ac_path_GREP"
3651      ac_path_GREP_max=$ac_count
3652    fi
3653    # 10*(2^10) chars as input seems more than enough
3654    test $ac_count -gt 10 && break
3655  done
3656  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3657esac
3658
3659      $ac_path_GREP_found && break 3
3660    done
3661  done
3662  done
3663IFS=$as_save_IFS
3664  if test -z "$ac_cv_path_GREP"; then
3665    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3666  fi
3667else
3668  ac_cv_path_GREP=$GREP
3669fi
3670
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3673$as_echo "$ac_cv_path_GREP" >&6; }
3674 GREP="$ac_cv_path_GREP"
3675
3676
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3678$as_echo_n "checking for egrep... " >&6; }
3679if ${ac_cv_path_EGREP+:} false; then :
3680  $as_echo_n "(cached) " >&6
3681else
3682  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3683   then ac_cv_path_EGREP="$GREP -E"
3684   else
3685     if test -z "$EGREP"; then
3686  ac_path_EGREP_found=false
3687  # Loop through the user's path and test for each of PROGNAME-LIST
3688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693    for ac_prog in egrep; do
3694    for ac_exec_ext in '' $ac_executable_extensions; do
3695      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3696      as_fn_executable_p "$ac_path_EGREP" || continue
3697# Check for GNU ac_path_EGREP and select it if it is found.
3698  # Check for GNU $ac_path_EGREP
3699case `"$ac_path_EGREP" --version 2>&1` in
3700*GNU*)
3701  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3702*)
3703  ac_count=0
3704  $as_echo_n 0123456789 >"conftest.in"
3705  while :
3706  do
3707    cat "conftest.in" "conftest.in" >"conftest.tmp"
3708    mv "conftest.tmp" "conftest.in"
3709    cp "conftest.in" "conftest.nl"
3710    $as_echo 'EGREP' >> "conftest.nl"
3711    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3712    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3713    as_fn_arith $ac_count + 1 && ac_count=$as_val
3714    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3715      # Best one so far, save it but keep looking for a better one
3716      ac_cv_path_EGREP="$ac_path_EGREP"
3717      ac_path_EGREP_max=$ac_count
3718    fi
3719    # 10*(2^10) chars as input seems more than enough
3720    test $ac_count -gt 10 && break
3721  done
3722  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3723esac
3724
3725      $ac_path_EGREP_found && break 3
3726    done
3727  done
3728  done
3729IFS=$as_save_IFS
3730  if test -z "$ac_cv_path_EGREP"; then
3731    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3732  fi
3733else
3734  ac_cv_path_EGREP=$EGREP
3735fi
3736
3737   fi
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3740$as_echo "$ac_cv_path_EGREP" >&6; }
3741 EGREP="$ac_cv_path_EGREP"
3742
3743
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3745$as_echo_n "checking for ANSI C header files... " >&6; }
3746if ${ac_cv_header_stdc+:} false; then :
3747  $as_echo_n "(cached) " >&6
3748else
3749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751#include <stdlib.h>
3752#include <stdarg.h>
3753#include <string.h>
3754#include <float.h>
3755
3756int
3757main ()
3758{
3759
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764if ac_fn_c_try_compile "$LINENO"; then :
3765  ac_cv_header_stdc=yes
3766else
3767  ac_cv_header_stdc=no
3768fi
3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770
3771if test $ac_cv_header_stdc = yes; then
3772  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775#include <string.h>
3776
3777_ACEOF
3778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3779  $EGREP "memchr" >/dev/null 2>&1; then :
3780
3781else
3782  ac_cv_header_stdc=no
3783fi
3784rm -f conftest*
3785
3786fi
3787
3788if test $ac_cv_header_stdc = yes; then
3789  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791/* end confdefs.h.  */
3792#include <stdlib.h>
3793
3794_ACEOF
3795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3796  $EGREP "free" >/dev/null 2>&1; then :
3797
3798else
3799  ac_cv_header_stdc=no
3800fi
3801rm -f conftest*
3802
3803fi
3804
3805if test $ac_cv_header_stdc = yes; then
3806  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3807  if test "$cross_compiling" = yes; then :
3808  :
3809else
3810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h.  */
3812#include <ctype.h>
3813#include <stdlib.h>
3814#if ((' ' & 0x0FF) == 0x020)
3815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3817#else
3818# define ISLOWER(c) \
3819		   (('a' <= (c) && (c) <= 'i') \
3820		     || ('j' <= (c) && (c) <= 'r') \
3821		     || ('s' <= (c) && (c) <= 'z'))
3822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3823#endif
3824
3825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3826int
3827main ()
3828{
3829  int i;
3830  for (i = 0; i < 256; i++)
3831    if (XOR (islower (i), ISLOWER (i))
3832	|| toupper (i) != TOUPPER (i))
3833      return 2;
3834  return 0;
3835}
3836_ACEOF
3837if ac_fn_c_try_run "$LINENO"; then :
3838
3839else
3840  ac_cv_header_stdc=no
3841fi
3842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3843  conftest.$ac_objext conftest.beam conftest.$ac_ext
3844fi
3845
3846fi
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3849$as_echo "$ac_cv_header_stdc" >&6; }
3850if test $ac_cv_header_stdc = yes; then
3851
3852$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3853
3854fi
3855
3856# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3857for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3858		  inttypes.h stdint.h unistd.h
3859do :
3860  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3861ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3862"
3863if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3864  cat >>confdefs.h <<_ACEOF
3865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3866_ACEOF
3867
3868fi
3869
3870done
3871
3872
3873
3874  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3875if test "x$ac_cv_header_minix_config_h" = xyes; then :
3876  MINIX=yes
3877else
3878  MINIX=
3879fi
3880
3881
3882  if test "$MINIX" = yes; then
3883
3884$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3885
3886
3887$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3888
3889
3890$as_echo "#define _MINIX 1" >>confdefs.h
3891
3892  fi
3893
3894
3895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3896$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3897if ${ac_cv_safe_to_define___extensions__+:} false; then :
3898  $as_echo_n "(cached) " >&6
3899else
3900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902
3903#         define __EXTENSIONS__ 1
3904          $ac_includes_default
3905int
3906main ()
3907{
3908
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913if ac_fn_c_try_compile "$LINENO"; then :
3914  ac_cv_safe_to_define___extensions__=yes
3915else
3916  ac_cv_safe_to_define___extensions__=no
3917fi
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919fi
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3921$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3922  test $ac_cv_safe_to_define___extensions__ = yes &&
3923    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3924
3925  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3926
3927  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3928
3929  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3930
3931  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3932
3933
3934
3935# Make sure we can run config.sub.
3936$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3937  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3938
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3940$as_echo_n "checking build system type... " >&6; }
3941if ${ac_cv_build+:} false; then :
3942  $as_echo_n "(cached) " >&6
3943else
3944  ac_build_alias=$build_alias
3945test "x$ac_build_alias" = x &&
3946  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3947test "x$ac_build_alias" = x &&
3948  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3949ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3950  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3951
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3954$as_echo "$ac_cv_build" >&6; }
3955case $ac_cv_build in
3956*-*-*) ;;
3957*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3958esac
3959build=$ac_cv_build
3960ac_save_IFS=$IFS; IFS='-'
3961set x $ac_cv_build
3962shift
3963build_cpu=$1
3964build_vendor=$2
3965shift; shift
3966# Remember, the first character of IFS is used to create $*,
3967# except with old shells:
3968build_os=$*
3969IFS=$ac_save_IFS
3970case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3971
3972
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3974$as_echo_n "checking host system type... " >&6; }
3975if ${ac_cv_host+:} false; then :
3976  $as_echo_n "(cached) " >&6
3977else
3978  if test "x$host_alias" = x; then
3979  ac_cv_host=$ac_cv_build
3980else
3981  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3982    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3983fi
3984
3985fi
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3987$as_echo "$ac_cv_host" >&6; }
3988case $ac_cv_host in
3989*-*-*) ;;
3990*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3991esac
3992host=$ac_cv_host
3993ac_save_IFS=$IFS; IFS='-'
3994set x $ac_cv_host
3995shift
3996host_cpu=$1
3997host_vendor=$2
3998shift; shift
3999# Remember, the first character of IFS is used to create $*,
4000# except with old shells:
4001host_os=$*
4002IFS=$ac_save_IFS
4003case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4004
4005
4006am__api_version='1.16'
4007
4008# Find a good install program.  We prefer a C program (faster),
4009# so one script is as good as another.  But avoid the broken or
4010# incompatible versions:
4011# SysV /etc/install, /usr/sbin/install
4012# SunOS /usr/etc/install
4013# IRIX /sbin/install
4014# AIX /bin/install
4015# AmigaOS /C/install, which installs bootblocks on floppy discs
4016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4017# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4019# OS/2's system install, which has a completely different semantic
4020# ./install, which can be erroneously created by make from ./install.sh.
4021# Reject install programs that cannot install multiple files.
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4023$as_echo_n "checking for a BSD-compatible install... " >&6; }
4024if test -z "$INSTALL"; then
4025if ${ac_cv_path_install+:} false; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031  IFS=$as_save_IFS
4032  test -z "$as_dir" && as_dir=.
4033    # Account for people who put trailing slashes in PATH elements.
4034case $as_dir/ in #((
4035  ./ | .// | /[cC]/* | \
4036  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4037  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4038  /usr/ucb/* ) ;;
4039  *)
4040    # OSF1 and SCO ODT 3.0 have their own names for install.
4041    # Don't use installbsd from OSF since it installs stuff as root
4042    # by default.
4043    for ac_prog in ginstall scoinst install; do
4044      for ac_exec_ext in '' $ac_executable_extensions; do
4045	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4046	  if test $ac_prog = install &&
4047	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4048	    # AIX install.  It has an incompatible calling convention.
4049	    :
4050	  elif test $ac_prog = install &&
4051	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4052	    # program-specific install script used by HP pwplus--don't use.
4053	    :
4054	  else
4055	    rm -rf conftest.one conftest.two conftest.dir
4056	    echo one > conftest.one
4057	    echo two > conftest.two
4058	    mkdir conftest.dir
4059	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4060	      test -s conftest.one && test -s conftest.two &&
4061	      test -s conftest.dir/conftest.one &&
4062	      test -s conftest.dir/conftest.two
4063	    then
4064	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4065	      break 3
4066	    fi
4067	  fi
4068	fi
4069      done
4070    done
4071    ;;
4072esac
4073
4074  done
4075IFS=$as_save_IFS
4076
4077rm -rf conftest.one conftest.two conftest.dir
4078
4079fi
4080  if test "${ac_cv_path_install+set}" = set; then
4081    INSTALL=$ac_cv_path_install
4082  else
4083    # As a last resort, use the slow shell script.  Don't cache a
4084    # value for INSTALL within a source directory, because that will
4085    # break other packages using the cache if that directory is
4086    # removed, or if the value is a relative name.
4087    INSTALL=$ac_install_sh
4088  fi
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4091$as_echo "$INSTALL" >&6; }
4092
4093# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4094# It thinks the first close brace ends the variable substitution.
4095test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4096
4097test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4098
4099test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4100
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4102$as_echo_n "checking whether build environment is sane... " >&6; }
4103# Reject unsafe characters in $srcdir or the absolute working directory
4104# name.  Accept space and tab only in the latter.
4105am_lf='
4106'
4107case `pwd` in
4108  *[\\\"\#\$\&\'\`$am_lf]*)
4109    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4110esac
4111case $srcdir in
4112  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4113    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4114esac
4115
4116# Do 'set' in a subshell so we don't clobber the current shell's
4117# arguments.  Must try -L first in case configure is actually a
4118# symlink; some systems play weird games with the mod time of symlinks
4119# (eg FreeBSD returns the mod time of the symlink's containing
4120# directory).
4121if (
4122   am_has_slept=no
4123   for am_try in 1 2; do
4124     echo "timestamp, slept: $am_has_slept" > conftest.file
4125     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4126     if test "$*" = "X"; then
4127	# -L didn't work.
4128	set X `ls -t "$srcdir/configure" conftest.file`
4129     fi
4130     if test "$*" != "X $srcdir/configure conftest.file" \
4131	&& test "$*" != "X conftest.file $srcdir/configure"; then
4132
4133	# If neither matched, then we have a broken ls.  This can happen
4134	# if, for instance, CONFIG_SHELL is bash and it inherits a
4135	# broken ls alias from the environment.  This has actually
4136	# happened.  Such a system could not be considered "sane".
4137	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4138  alias in your environment" "$LINENO" 5
4139     fi
4140     if test "$2" = conftest.file || test $am_try -eq 2; then
4141       break
4142     fi
4143     # Just in case.
4144     sleep 1
4145     am_has_slept=yes
4146   done
4147   test "$2" = conftest.file
4148   )
4149then
4150   # Ok.
4151   :
4152else
4153   as_fn_error $? "newly created file is older than distributed files!
4154Check your system clock" "$LINENO" 5
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157$as_echo "yes" >&6; }
4158# If we didn't sleep, we still need to ensure time stamps of config.status and
4159# generated files are strictly newer.
4160am_sleep_pid=
4161if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4162  ( sleep 1 ) &
4163  am_sleep_pid=$!
4164fi
4165
4166rm -f conftest.file
4167
4168test "$program_prefix" != NONE &&
4169  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4170# Use a double $ so make ignores it.
4171test "$program_suffix" != NONE &&
4172  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4173# Double any \ or $.
4174# By default was `s,x,x', remove it if useless.
4175ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4176program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4177
4178if test x"${MISSING+set}" != xset; then
4179  case $am_aux_dir in
4180  *\ * | *\	*)
4181    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4182  *)
4183    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4184  esac
4185fi
4186# Use eval to expand $SHELL
4187if eval "$MISSING --is-lightweight"; then
4188  am_missing_run="$MISSING "
4189else
4190  am_missing_run=
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4192$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4193fi
4194
4195if test x"${install_sh+set}" != xset; then
4196  case $am_aux_dir in
4197  *\ * | *\	*)
4198    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4199  *)
4200    install_sh="\${SHELL} $am_aux_dir/install-sh"
4201  esac
4202fi
4203
4204# Installed binaries are usually stripped using 'strip' when the user
4205# run "make install-strip".  However 'strip' might not be the right
4206# tool to use in cross-compilation environments, therefore Automake
4207# will honor the 'STRIP' environment variable to overrule this program.
4208if test "$cross_compiling" != no; then
4209  if test -n "$ac_tool_prefix"; then
4210  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4211set dummy ${ac_tool_prefix}strip; ac_word=$2
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213$as_echo_n "checking for $ac_word... " >&6; }
4214if ${ac_cv_prog_STRIP+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if test -n "$STRIP"; then
4218  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225    for ac_exec_ext in '' $ac_executable_extensions; do
4226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232  done
4233IFS=$as_save_IFS
4234
4235fi
4236fi
4237STRIP=$ac_cv_prog_STRIP
4238if test -n "$STRIP"; then
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4240$as_echo "$STRIP" >&6; }
4241else
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245
4246
4247fi
4248if test -z "$ac_cv_prog_STRIP"; then
4249  ac_ct_STRIP=$STRIP
4250  # Extract the first word of "strip", so it can be a program name with args.
4251set dummy strip; ac_word=$2
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253$as_echo_n "checking for $ac_word... " >&6; }
4254if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4255  $as_echo_n "(cached) " >&6
4256else
4257  if test -n "$ac_ct_STRIP"; then
4258  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4259else
4260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263  IFS=$as_save_IFS
4264  test -z "$as_dir" && as_dir=.
4265    for ac_exec_ext in '' $ac_executable_extensions; do
4266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267    ac_cv_prog_ac_ct_STRIP="strip"
4268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269    break 2
4270  fi
4271done
4272  done
4273IFS=$as_save_IFS
4274
4275fi
4276fi
4277ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4278if test -n "$ac_ct_STRIP"; then
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4280$as_echo "$ac_ct_STRIP" >&6; }
4281else
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284fi
4285
4286  if test "x$ac_ct_STRIP" = x; then
4287    STRIP=":"
4288  else
4289    case $cross_compiling:$ac_tool_warned in
4290yes:)
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4293ac_tool_warned=yes ;;
4294esac
4295    STRIP=$ac_ct_STRIP
4296  fi
4297else
4298  STRIP="$ac_cv_prog_STRIP"
4299fi
4300
4301fi
4302INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4303
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4305$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4306if test -z "$MKDIR_P"; then
4307  if ${ac_cv_path_mkdir+:} false; then :
4308  $as_echo_n "(cached) " >&6
4309else
4310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4312do
4313  IFS=$as_save_IFS
4314  test -z "$as_dir" && as_dir=.
4315    for ac_prog in mkdir gmkdir; do
4316	 for ac_exec_ext in '' $ac_executable_extensions; do
4317	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4318	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4319	     'mkdir (GNU coreutils) '* | \
4320	     'mkdir (coreutils) '* | \
4321	     'mkdir (fileutils) '4.1*)
4322	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4323	       break 3;;
4324	   esac
4325	 done
4326       done
4327  done
4328IFS=$as_save_IFS
4329
4330fi
4331
4332  test -d ./--version && rmdir ./--version
4333  if test "${ac_cv_path_mkdir+set}" = set; then
4334    MKDIR_P="$ac_cv_path_mkdir -p"
4335  else
4336    # As a last resort, use the slow shell script.  Don't cache a
4337    # value for MKDIR_P within a source directory, because that will
4338    # break other packages using the cache if that directory is
4339    # removed, or if the value is a relative name.
4340    MKDIR_P="$ac_install_sh -d"
4341  fi
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4344$as_echo "$MKDIR_P" >&6; }
4345
4346for ac_prog in gawk mawk nawk awk
4347do
4348  # Extract the first word of "$ac_prog", so it can be a program name with args.
4349set dummy $ac_prog; ac_word=$2
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351$as_echo_n "checking for $ac_word... " >&6; }
4352if ${ac_cv_prog_AWK+:} false; then :
4353  $as_echo_n "(cached) " >&6
4354else
4355  if test -n "$AWK"; then
4356  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  test -z "$as_dir" && as_dir=.
4363    for ac_exec_ext in '' $ac_executable_extensions; do
4364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365    ac_cv_prog_AWK="$ac_prog"
4366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367    break 2
4368  fi
4369done
4370  done
4371IFS=$as_save_IFS
4372
4373fi
4374fi
4375AWK=$ac_cv_prog_AWK
4376if test -n "$AWK"; then
4377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4378$as_echo "$AWK" >&6; }
4379else
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381$as_echo "no" >&6; }
4382fi
4383
4384
4385  test -n "$AWK" && break
4386done
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4389$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4390set x ${MAKE-make}
4391ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4392if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  cat >conftest.make <<\_ACEOF
4396SHELL = /bin/sh
4397all:
4398	@echo '@@@%%%=$(MAKE)=@@@%%%'
4399_ACEOF
4400# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4401case `${MAKE-make} -f conftest.make 2>/dev/null` in
4402  *@@@%%%=?*=@@@%%%*)
4403    eval ac_cv_prog_make_${ac_make}_set=yes;;
4404  *)
4405    eval ac_cv_prog_make_${ac_make}_set=no;;
4406esac
4407rm -f conftest.make
4408fi
4409if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4411$as_echo "yes" >&6; }
4412  SET_MAKE=
4413else
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
4416  SET_MAKE="MAKE=${MAKE-make}"
4417fi
4418
4419rm -rf .tst 2>/dev/null
4420mkdir .tst 2>/dev/null
4421if test -d .tst; then
4422  am__leading_dot=.
4423else
4424  am__leading_dot=_
4425fi
4426rmdir .tst 2>/dev/null
4427
4428DEPDIR="${am__leading_dot}deps"
4429
4430ac_config_commands="$ac_config_commands depfiles"
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4433$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4434cat > confinc.mk << 'END'
4435am__doit:
4436	@echo this is the am__doit target >confinc.out
4437.PHONY: am__doit
4438END
4439am__include="#"
4440am__quote=
4441# BSD make does it like this.
4442echo '.include "confinc.mk" # ignored' > confmf.BSD
4443# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4444echo 'include confinc.mk # ignored' > confmf.GNU
4445_am_result=no
4446for s in GNU BSD; do
4447  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4448   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }
4452  case $?:`cat confinc.out 2>/dev/null` in #(
4453  '0:this is the am__doit target') :
4454    case $s in #(
4455  BSD) :
4456    am__include='.include' am__quote='"' ;; #(
4457  *) :
4458    am__include='include' am__quote='' ;;
4459esac ;; #(
4460  *) :
4461     ;;
4462esac
4463  if test "$am__include" != "#"; then
4464    _am_result="yes ($s style)"
4465    break
4466  fi
4467done
4468rm -f confinc.* confmf.*
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4470$as_echo "${_am_result}" >&6; }
4471
4472# Check whether --enable-dependency-tracking was given.
4473if test "${enable_dependency_tracking+set}" = set; then :
4474  enableval=$enable_dependency_tracking;
4475fi
4476
4477if test "x$enable_dependency_tracking" != xno; then
4478  am_depcomp="$ac_aux_dir/depcomp"
4479  AMDEPBACKSLASH='\'
4480  am__nodep='_no'
4481fi
4482 if test "x$enable_dependency_tracking" != xno; then
4483  AMDEP_TRUE=
4484  AMDEP_FALSE='#'
4485else
4486  AMDEP_TRUE='#'
4487  AMDEP_FALSE=
4488fi
4489
4490
4491# Check whether --enable-silent-rules was given.
4492if test "${enable_silent_rules+set}" = set; then :
4493  enableval=$enable_silent_rules;
4494fi
4495
4496case $enable_silent_rules in # (((
4497  yes) AM_DEFAULT_VERBOSITY=0;;
4498   no) AM_DEFAULT_VERBOSITY=1;;
4499    *) AM_DEFAULT_VERBOSITY=1;;
4500esac
4501am_make=${MAKE-make}
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4503$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4504if ${am_cv_make_support_nested_variables+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  if $as_echo 'TRUE=$(BAR$(V))
4508BAR0=false
4509BAR1=true
4510V=1
4511am__doit:
4512	@$(TRUE)
4513.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4514  am_cv_make_support_nested_variables=yes
4515else
4516  am_cv_make_support_nested_variables=no
4517fi
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4520$as_echo "$am_cv_make_support_nested_variables" >&6; }
4521if test $am_cv_make_support_nested_variables = yes; then
4522    AM_V='$(V)'
4523  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4524else
4525  AM_V=$AM_DEFAULT_VERBOSITY
4526  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4527fi
4528AM_BACKSLASH='\'
4529
4530if test "`cd $srcdir && pwd`" != "`pwd`"; then
4531  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4532  # is not polluted with repeated "-I."
4533  am__isrc=' -I$(srcdir)'
4534  # test to see if srcdir already configured
4535  if test -f $srcdir/config.status; then
4536    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4537  fi
4538fi
4539
4540# test whether we have cygpath
4541if test -z "$CYGPATH_W"; then
4542  if (cygpath --version) >/dev/null 2>/dev/null; then
4543    CYGPATH_W='cygpath -w'
4544  else
4545    CYGPATH_W=echo
4546  fi
4547fi
4548
4549
4550# Define the identity of the package.
4551 PACKAGE='bogofilter'
4552 VERSION='1.2.5'
4553
4554
4555cat >>confdefs.h <<_ACEOF
4556#define PACKAGE "$PACKAGE"
4557_ACEOF
4558
4559
4560cat >>confdefs.h <<_ACEOF
4561#define VERSION "$VERSION"
4562_ACEOF
4563
4564# Some tools Automake needs.
4565
4566ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4567
4568
4569AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4570
4571
4572AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4573
4574
4575AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4576
4577
4578MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4579
4580# For better backward compatibility.  To be removed once Automake 1.9.x
4581# dies out for good.  For more background, see:
4582# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4583# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4584mkdir_p='$(MKDIR_P)'
4585
4586# We need awk for the "check" target (and possibly the TAP driver).  The
4587# system "awk" is bad on some platforms.
4588# Always define AMTAR for backward compatibility.  Yes, it's still used
4589# in the wild :-(  We should find a proper way to deprecate it ...
4590AMTAR='$${TAR-tar}'
4591
4592
4593# We'll loop over all known methods to create a tar archive until one works.
4594_am_tools='gnutar plaintar pax cpio none'
4595
4596# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4597      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4598      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4599      # and bug#13588).
4600      am_max_uid=2097151 # 2^21 - 1
4601      am_max_gid=$am_max_uid
4602      # The $UID and $GID variables are not portable, so we need to resort
4603      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4604      # below are definitely unexpected, so allow the users to see them
4605      # (that is, avoid stderr redirection).
4606      am_uid=`id -u || echo unknown`
4607      am_gid=`id -g || echo unknown`
4608      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4609$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4610      if test $am_uid -le $am_max_uid; then
4611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4612$as_echo "yes" >&6; }
4613      else
4614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615$as_echo "no" >&6; }
4616         _am_tools=none
4617      fi
4618      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4619$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4620      if test $am_gid -le $am_max_gid; then
4621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4622$as_echo "yes" >&6; }
4623      else
4624        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625$as_echo "no" >&6; }
4626        _am_tools=none
4627      fi
4628
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4630$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4631
4632  # Go ahead even if we have the value already cached.  We do so because we
4633  # need to set the values for the 'am__tar' and 'am__untar' variables.
4634  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4635
4636  for _am_tool in $_am_tools; do
4637    case $_am_tool in
4638    gnutar)
4639      for _am_tar in tar gnutar gtar; do
4640        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4641   ($_am_tar --version) >&5 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } && break
4645      done
4646      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4647      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4648      am__untar="$_am_tar -xf -"
4649      ;;
4650    plaintar)
4651      # Must skip GNU tar: if it does not support --format= it doesn't create
4652      # ustar tarball either.
4653      (tar --version) >/dev/null 2>&1 && continue
4654      am__tar='tar chf - "$$tardir"'
4655      am__tar_='tar chf - "$tardir"'
4656      am__untar='tar xf -'
4657      ;;
4658    pax)
4659      am__tar='pax -L -x ustar -w "$$tardir"'
4660      am__tar_='pax -L -x ustar -w "$tardir"'
4661      am__untar='pax -r'
4662      ;;
4663    cpio)
4664      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4665      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4666      am__untar='cpio -i -H ustar -d'
4667      ;;
4668    none)
4669      am__tar=false
4670      am__tar_=false
4671      am__untar=false
4672      ;;
4673    esac
4674
4675    # If the value was cached, stop now.  We just wanted to have am__tar
4676    # and am__untar set.
4677    test -n "${am_cv_prog_tar_ustar}" && break
4678
4679    # tar/untar a dummy directory, and stop if the command works.
4680    rm -rf conftest.dir
4681    mkdir conftest.dir
4682    echo GrepMe > conftest.dir/file
4683    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4684   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }
4688    rm -rf conftest.dir
4689    if test -s conftest.tar; then
4690      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4691   ($am__untar <conftest.tar) >&5 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }
4695      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4696   (cat conftest.dir/file) >&5 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }
4700      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4701    fi
4702  done
4703  rm -rf conftest.dir
4704
4705  if ${am_cv_prog_tar_ustar+:} false; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708  am_cv_prog_tar_ustar=$_am_tool
4709fi
4710
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4712$as_echo "$am_cv_prog_tar_ustar" >&6; }
4713
4714
4715
4716
4717
4718depcc="$CC"   am_compiler_list=
4719
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4721$as_echo_n "checking dependency style of $depcc... " >&6; }
4722if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4723  $as_echo_n "(cached) " >&6
4724else
4725  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4726  # We make a subdir and do the tests there.  Otherwise we can end up
4727  # making bogus files that we don't know about and never remove.  For
4728  # instance it was reported that on HP-UX the gcc test will end up
4729  # making a dummy file named 'D' -- because '-MD' means "put the output
4730  # in D".
4731  rm -rf conftest.dir
4732  mkdir conftest.dir
4733  # Copy depcomp to subdir because otherwise we won't find it if we're
4734  # using a relative directory.
4735  cp "$am_depcomp" conftest.dir
4736  cd conftest.dir
4737  # We will build objects and dependencies in a subdirectory because
4738  # it helps to detect inapplicable dependency modes.  For instance
4739  # both Tru64's cc and ICC support -MD to output dependencies as a
4740  # side effect of compilation, but ICC will put the dependencies in
4741  # the current directory while Tru64 will put them in the object
4742  # directory.
4743  mkdir sub
4744
4745  am_cv_CC_dependencies_compiler_type=none
4746  if test "$am_compiler_list" = ""; then
4747     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4748  fi
4749  am__universal=false
4750  case " $depcc " in #(
4751     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4752     esac
4753
4754  for depmode in $am_compiler_list; do
4755    # Setup a source with many dependencies, because some compilers
4756    # like to wrap large dependency lists on column 80 (with \), and
4757    # we should not choose a depcomp mode which is confused by this.
4758    #
4759    # We need to recreate these files for each test, as the compiler may
4760    # overwrite some of them when testing with obscure command lines.
4761    # This happens at least with the AIX C compiler.
4762    : > sub/conftest.c
4763    for i in 1 2 3 4 5 6; do
4764      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4765      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4766      # Solaris 10 /bin/sh.
4767      echo '/* dummy */' > sub/conftst$i.h
4768    done
4769    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4770
4771    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4772    # mode.  It turns out that the SunPro C++ compiler does not properly
4773    # handle '-M -o', and we need to detect this.  Also, some Intel
4774    # versions had trouble with output in subdirs.
4775    am__obj=sub/conftest.${OBJEXT-o}
4776    am__minus_obj="-o $am__obj"
4777    case $depmode in
4778    gcc)
4779      # This depmode causes a compiler race in universal mode.
4780      test "$am__universal" = false || continue
4781      ;;
4782    nosideeffect)
4783      # After this tag, mechanisms are not by side-effect, so they'll
4784      # only be used when explicitly requested.
4785      if test "x$enable_dependency_tracking" = xyes; then
4786	continue
4787      else
4788	break
4789      fi
4790      ;;
4791    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4792      # This compiler won't grok '-c -o', but also, the minuso test has
4793      # not run yet.  These depmodes are late enough in the game, and
4794      # so weak that their functioning should not be impacted.
4795      am__obj=conftest.${OBJEXT-o}
4796      am__minus_obj=
4797      ;;
4798    none) break ;;
4799    esac
4800    if depmode=$depmode \
4801       source=sub/conftest.c object=$am__obj \
4802       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4803       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4804         >/dev/null 2>conftest.err &&
4805       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4806       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4807       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4808       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4809      # icc doesn't choke on unknown options, it will just issue warnings
4810      # or remarks (even with -Werror).  So we grep stderr for any message
4811      # that says an option was ignored or not supported.
4812      # When given -MP, icc 7.0 and 7.1 complain thusly:
4813      #   icc: Command line warning: ignoring option '-M'; no argument required
4814      # The diagnosis changed in icc 8.0:
4815      #   icc: Command line remark: option '-MP' not supported
4816      if (grep 'ignoring option' conftest.err ||
4817          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4818        am_cv_CC_dependencies_compiler_type=$depmode
4819        break
4820      fi
4821    fi
4822  done
4823
4824  cd ..
4825  rm -rf conftest.dir
4826else
4827  am_cv_CC_dependencies_compiler_type=none
4828fi
4829
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4832$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4833CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4834
4835 if
4836  test "x$enable_dependency_tracking" != xno \
4837  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4838  am__fastdepCC_TRUE=
4839  am__fastdepCC_FALSE='#'
4840else
4841  am__fastdepCC_TRUE='#'
4842  am__fastdepCC_FALSE=
4843fi
4844
4845
4846
4847# POSIX will say in a future version that running "rm -f" with no argument
4848# is OK; and we want to be able to make that assumption in our Makefile
4849# recipes.  So use an aggressive probe to check that the usage we want is
4850# actually supported "in the wild" to an acceptable degree.
4851# See automake bug#10828.
4852# To make any issue more visible, cause the running configure to be aborted
4853# by default if the 'rm' program in use doesn't match our expectations; the
4854# user can still override this though.
4855if rm -f && rm -fr && rm -rf; then : OK; else
4856  cat >&2 <<'END'
4857Oops!
4858
4859Your 'rm' program seems unable to run without file operands specified
4860on the command line, even when the '-f' option is present.  This is contrary
4861to the behaviour of most rm programs out there, and not conforming with
4862the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4863
4864Please tell bug-automake@gnu.org about your system, including the value
4865of your $PATH and any error possibly output before this message.  This
4866can help us improve future automake versions.
4867
4868END
4869  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4870    echo 'Configuration will proceed anyway, since you have set the' >&2
4871    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4872    echo >&2
4873  else
4874    cat >&2 <<'END'
4875Aborting the configuration process, to ensure you take notice of the issue.
4876
4877You can download and install GNU coreutils to get an 'rm' implementation
4878that behaves properly: <https://www.gnu.org/software/coreutils/>.
4879
4880If you want to complete the configuration process using your problematic
4881'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4882to "yes", and re-run configure.
4883
4884END
4885    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4886  fi
4887fi
4888
4889ac_config_headers="$ac_config_headers src/config.h:config.in"
4890
4891
4892for ac_prog in gawk mawk nawk awk
4893do
4894  # Extract the first word of "$ac_prog", so it can be a program name with args.
4895set dummy $ac_prog; ac_word=$2
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897$as_echo_n "checking for $ac_word... " >&6; }
4898if ${ac_cv_prog_AWK+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  if test -n "$AWK"; then
4902  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4903else
4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907  IFS=$as_save_IFS
4908  test -z "$as_dir" && as_dir=.
4909    for ac_exec_ext in '' $ac_executable_extensions; do
4910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911    ac_cv_prog_AWK="$ac_prog"
4912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913    break 2
4914  fi
4915done
4916  done
4917IFS=$as_save_IFS
4918
4919fi
4920fi
4921AWK=$ac_cv_prog_AWK
4922if test -n "$AWK"; then
4923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4924$as_echo "$AWK" >&6; }
4925else
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927$as_echo "no" >&6; }
4928fi
4929
4930
4931  test -n "$AWK" && break
4932done
4933
4934ac_ext=c
4935ac_cpp='$CPP $CPPFLAGS'
4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939if test -n "$ac_tool_prefix"; then
4940  for ac_prog in gcc xlc cc
4941  do
4942    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945$as_echo_n "checking for $ac_word... " >&6; }
4946if ${ac_cv_prog_CC+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  if test -n "$CC"; then
4950  ac_cv_prog_CC="$CC" # Let the user override the test.
4951else
4952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH
4954do
4955  IFS=$as_save_IFS
4956  test -z "$as_dir" && as_dir=.
4957    for ac_exec_ext in '' $ac_executable_extensions; do
4958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961    break 2
4962  fi
4963done
4964  done
4965IFS=$as_save_IFS
4966
4967fi
4968fi
4969CC=$ac_cv_prog_CC
4970if test -n "$CC"; then
4971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972$as_echo "$CC" >&6; }
4973else
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975$as_echo "no" >&6; }
4976fi
4977
4978
4979    test -n "$CC" && break
4980  done
4981fi
4982if test -z "$CC"; then
4983  ac_ct_CC=$CC
4984  for ac_prog in gcc xlc cc
4985do
4986  # Extract the first word of "$ac_prog", so it can be a program name with args.
4987set dummy $ac_prog; ac_word=$2
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989$as_echo_n "checking for $ac_word... " >&6; }
4990if ${ac_cv_prog_ac_ct_CC+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  if test -n "$ac_ct_CC"; then
4994  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4995else
4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997for as_dir in $PATH
4998do
4999  IFS=$as_save_IFS
5000  test -z "$as_dir" && as_dir=.
5001    for ac_exec_ext in '' $ac_executable_extensions; do
5002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003    ac_cv_prog_ac_ct_CC="$ac_prog"
5004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005    break 2
5006  fi
5007done
5008  done
5009IFS=$as_save_IFS
5010
5011fi
5012fi
5013ac_ct_CC=$ac_cv_prog_ac_ct_CC
5014if test -n "$ac_ct_CC"; then
5015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5016$as_echo "$ac_ct_CC" >&6; }
5017else
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019$as_echo "no" >&6; }
5020fi
5021
5022
5023  test -n "$ac_ct_CC" && break
5024done
5025
5026  if test "x$ac_ct_CC" = x; then
5027    CC=""
5028  else
5029    case $cross_compiling:$ac_tool_warned in
5030yes:)
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5033ac_tool_warned=yes ;;
5034esac
5035    CC=$ac_ct_CC
5036  fi
5037fi
5038
5039
5040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5042as_fn_error $? "no acceptable C compiler found in \$PATH
5043See \`config.log' for more details" "$LINENO" 5; }
5044
5045# Provide some information about the compiler.
5046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5047set X $ac_compile
5048ac_compiler=$2
5049for ac_option in --version -v -V -qversion; do
5050  { { ac_try="$ac_compiler $ac_option >&5"
5051case "(($ac_try" in
5052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053  *) ac_try_echo=$ac_try;;
5054esac
5055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5056$as_echo "$ac_try_echo"; } >&5
5057  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5058  ac_status=$?
5059  if test -s conftest.err; then
5060    sed '10a\
5061... rest of stderr output deleted ...
5062         10q' conftest.err >conftest.er1
5063    cat conftest.er1 >&5
5064  fi
5065  rm -f conftest.er1 conftest.err
5066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5067  test $ac_status = 0; }
5068done
5069
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5071$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5072if ${ac_cv_c_compiler_gnu+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h.  */
5077
5078int
5079main ()
5080{
5081#ifndef __GNUC__
5082       choke me
5083#endif
5084
5085  ;
5086  return 0;
5087}
5088_ACEOF
5089if ac_fn_c_try_compile "$LINENO"; then :
5090  ac_compiler_gnu=yes
5091else
5092  ac_compiler_gnu=no
5093fi
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095ac_cv_c_compiler_gnu=$ac_compiler_gnu
5096
5097fi
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5099$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5100if test $ac_compiler_gnu = yes; then
5101  GCC=yes
5102else
5103  GCC=
5104fi
5105ac_test_CFLAGS=${CFLAGS+set}
5106ac_save_CFLAGS=$CFLAGS
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5108$as_echo_n "checking whether $CC accepts -g... " >&6; }
5109if ${ac_cv_prog_cc_g+:} false; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  ac_save_c_werror_flag=$ac_c_werror_flag
5113   ac_c_werror_flag=yes
5114   ac_cv_prog_cc_g=no
5115   CFLAGS="-g"
5116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h.  */
5118
5119int
5120main ()
5121{
5122
5123  ;
5124  return 0;
5125}
5126_ACEOF
5127if ac_fn_c_try_compile "$LINENO"; then :
5128  ac_cv_prog_cc_g=yes
5129else
5130  CFLAGS=""
5131      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133
5134int
5135main ()
5136{
5137
5138  ;
5139  return 0;
5140}
5141_ACEOF
5142if ac_fn_c_try_compile "$LINENO"; then :
5143
5144else
5145  ac_c_werror_flag=$ac_save_c_werror_flag
5146	 CFLAGS="-g"
5147	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148/* end confdefs.h.  */
5149
5150int
5151main ()
5152{
5153
5154  ;
5155  return 0;
5156}
5157_ACEOF
5158if ac_fn_c_try_compile "$LINENO"; then :
5159  ac_cv_prog_cc_g=yes
5160fi
5161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162fi
5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164fi
5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166   ac_c_werror_flag=$ac_save_c_werror_flag
5167fi
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5169$as_echo "$ac_cv_prog_cc_g" >&6; }
5170if test "$ac_test_CFLAGS" = set; then
5171  CFLAGS=$ac_save_CFLAGS
5172elif test $ac_cv_prog_cc_g = yes; then
5173  if test "$GCC" = yes; then
5174    CFLAGS="-g -O2"
5175  else
5176    CFLAGS="-g"
5177  fi
5178else
5179  if test "$GCC" = yes; then
5180    CFLAGS="-O2"
5181  else
5182    CFLAGS=
5183  fi
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5186$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5187if ${ac_cv_prog_cc_c89+:} false; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190  ac_cv_prog_cc_c89=no
5191ac_save_CC=$CC
5192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h.  */
5194#include <stdarg.h>
5195#include <stdio.h>
5196struct stat;
5197/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5198struct buf { int x; };
5199FILE * (*rcsopen) (struct buf *, struct stat *, int);
5200static char *e (p, i)
5201     char **p;
5202     int i;
5203{
5204  return p[i];
5205}
5206static char *f (char * (*g) (char **, int), char **p, ...)
5207{
5208  char *s;
5209  va_list v;
5210  va_start (v,p);
5211  s = g (p, va_arg (v,int));
5212  va_end (v);
5213  return s;
5214}
5215
5216/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5217   function prototypes and stuff, but not '\xHH' hex character constants.
5218   These don't provoke an error unfortunately, instead are silently treated
5219   as 'x'.  The following induces an error, until -std is added to get
5220   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5221   array size at least.  It's necessary to write '\x00'==0 to get something
5222   that's true only with -std.  */
5223int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5224
5225/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5226   inside strings and character constants.  */
5227#define FOO(x) 'x'
5228int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5229
5230int test (int i, double x);
5231struct s1 {int (*f) (int a);};
5232struct s2 {int (*f) (double a);};
5233int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5234int argc;
5235char **argv;
5236int
5237main ()
5238{
5239return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5245	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5246do
5247  CC="$ac_save_CC $ac_arg"
5248  if ac_fn_c_try_compile "$LINENO"; then :
5249  ac_cv_prog_cc_c89=$ac_arg
5250fi
5251rm -f core conftest.err conftest.$ac_objext
5252  test "x$ac_cv_prog_cc_c89" != "xno" && break
5253done
5254rm -f conftest.$ac_ext
5255CC=$ac_save_CC
5256
5257fi
5258# AC_CACHE_VAL
5259case "x$ac_cv_prog_cc_c89" in
5260  x)
5261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5262$as_echo "none needed" >&6; } ;;
5263  xno)
5264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5265$as_echo "unsupported" >&6; } ;;
5266  *)
5267    CC="$CC $ac_cv_prog_cc_c89"
5268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5269$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5270esac
5271if test "x$ac_cv_prog_cc_c89" != xno; then :
5272
5273fi
5274
5275ac_ext=c
5276ac_cpp='$CPP $CPPFLAGS'
5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280
5281ac_ext=c
5282ac_cpp='$CPP $CPPFLAGS'
5283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5287$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5288if ${am_cv_prog_cc_c_o+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h.  */
5293
5294int
5295main ()
5296{
5297
5298  ;
5299  return 0;
5300}
5301_ACEOF
5302  # Make sure it works both with $CC and with simple cc.
5303  # Following AC_PROG_CC_C_O, we do the test twice because some
5304  # compilers refuse to overwrite an existing .o file with -o,
5305  # though they will create one.
5306  am_cv_prog_cc_c_o=yes
5307  for am_i in 1 2; do
5308    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5309   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } \
5313         && test -f conftest2.$ac_objext; then
5314      : OK
5315    else
5316      am_cv_prog_cc_c_o=no
5317      break
5318    fi
5319  done
5320  rm -f core conftest*
5321  unset am_i
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5324$as_echo "$am_cv_prog_cc_c_o" >&6; }
5325if test "$am_cv_prog_cc_c_o" != yes; then
5326   # Losing compiler, so override with the script.
5327   # FIXME: It is wrong to rewrite CC.
5328   # But if we don't then we get into trouble of one sort or another.
5329   # A longer-term fix would be to have automake use am__CC in this case,
5330   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5331   CC="$am_aux_dir/compile $CC"
5332fi
5333ac_ext=c
5334ac_cpp='$CPP $CPPFLAGS'
5335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338
5339
5340if test -n "$ac_tool_prefix"; then
5341  for ac_prog in ar lib "link -lib"
5342  do
5343    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346$as_echo_n "checking for $ac_word... " >&6; }
5347if ${ac_cv_prog_AR+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  if test -n "$AR"; then
5351  ac_cv_prog_AR="$AR" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358    for ac_exec_ext in '' $ac_executable_extensions; do
5359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362    break 2
5363  fi
5364done
5365  done
5366IFS=$as_save_IFS
5367
5368fi
5369fi
5370AR=$ac_cv_prog_AR
5371if test -n "$AR"; then
5372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5373$as_echo "$AR" >&6; }
5374else
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376$as_echo "no" >&6; }
5377fi
5378
5379
5380    test -n "$AR" && break
5381  done
5382fi
5383if test -z "$AR"; then
5384  ac_ct_AR=$AR
5385  for ac_prog in ar lib "link -lib"
5386do
5387  # Extract the first word of "$ac_prog", so it can be a program name with args.
5388set dummy $ac_prog; ac_word=$2
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390$as_echo_n "checking for $ac_word... " >&6; }
5391if ${ac_cv_prog_ac_ct_AR+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  if test -n "$ac_ct_AR"; then
5395  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402    for ac_exec_ext in '' $ac_executable_extensions; do
5403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404    ac_cv_prog_ac_ct_AR="$ac_prog"
5405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406    break 2
5407  fi
5408done
5409  done
5410IFS=$as_save_IFS
5411
5412fi
5413fi
5414ac_ct_AR=$ac_cv_prog_ac_ct_AR
5415if test -n "$ac_ct_AR"; then
5416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5417$as_echo "$ac_ct_AR" >&6; }
5418else
5419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420$as_echo "no" >&6; }
5421fi
5422
5423
5424  test -n "$ac_ct_AR" && break
5425done
5426
5427  if test "x$ac_ct_AR" = x; then
5428    AR="false"
5429  else
5430    case $cross_compiling:$ac_tool_warned in
5431yes:)
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434ac_tool_warned=yes ;;
5435esac
5436    AR=$ac_ct_AR
5437  fi
5438fi
5439
5440: ${AR=ar}
5441
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5443$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5444if ${am_cv_ar_interface+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  ac_ext=c
5448ac_cpp='$CPP $CPPFLAGS'
5449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452
5453   am_cv_ar_interface=ar
5454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456int some_variable = 0;
5457_ACEOF
5458if ac_fn_c_try_compile "$LINENO"; then :
5459  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5460      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5461  (eval $am_ar_try) 2>&5
5462  ac_status=$?
5463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5464  test $ac_status = 0; }
5465      if test "$ac_status" -eq 0; then
5466        am_cv_ar_interface=ar
5467      else
5468        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5469        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5470  (eval $am_ar_try) 2>&5
5471  ac_status=$?
5472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473  test $ac_status = 0; }
5474        if test "$ac_status" -eq 0; then
5475          am_cv_ar_interface=lib
5476        else
5477          am_cv_ar_interface=unknown
5478        fi
5479      fi
5480      rm -f conftest.lib libconftest.a
5481
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484   ac_ext=c
5485ac_cpp='$CPP $CPPFLAGS'
5486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489
5490fi
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5492$as_echo "$am_cv_ar_interface" >&6; }
5493
5494case $am_cv_ar_interface in
5495ar)
5496  ;;
5497lib)
5498  # Microsoft lib, so override with the ar-lib wrapper script.
5499  # FIXME: It is wrong to rewrite AR.
5500  # But if we don't then we get into trouble of one sort or another.
5501  # A longer-term fix would be to have automake use am__AR in this case,
5502  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5503  # similar.
5504  AR="$am_aux_dir/ar-lib $AR"
5505  ;;
5506unknown)
5507  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5508  ;;
5509esac
5510
5511
5512
5513if test -n "$ac_tool_prefix"; then
5514  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}ar; ac_word=$2
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517$as_echo_n "checking for $ac_word... " >&6; }
5518if ${ac_cv_prog_AR+:} false; then :
5519  $as_echo_n "(cached) " >&6
5520else
5521  if test -n "$AR"; then
5522  ac_cv_prog_AR="$AR" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529    for ac_exec_ext in '' $ac_executable_extensions; do
5530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531    ac_cv_prog_AR="${ac_tool_prefix}ar"
5532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533    break 2
5534  fi
5535done
5536  done
5537IFS=$as_save_IFS
5538
5539fi
5540fi
5541AR=$ac_cv_prog_AR
5542if test -n "$AR"; then
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5544$as_echo "$AR" >&6; }
5545else
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
5548fi
5549
5550
5551fi
5552if test -z "$ac_cv_prog_AR"; then
5553  ac_ct_AR=$AR
5554  # Extract the first word of "ar", so it can be a program name with args.
5555set dummy ar; ac_word=$2
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if ${ac_cv_prog_ac_ct_AR+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  if test -n "$ac_ct_AR"; then
5562  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567  IFS=$as_save_IFS
5568  test -z "$as_dir" && as_dir=.
5569    for ac_exec_ext in '' $ac_executable_extensions; do
5570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571    ac_cv_prog_ac_ct_AR="ar"
5572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573    break 2
5574  fi
5575done
5576  done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581ac_ct_AR=$ac_cv_prog_ac_ct_AR
5582if test -n "$ac_ct_AR"; then
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5584$as_echo "$ac_ct_AR" >&6; }
5585else
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590  if test "x$ac_ct_AR" = x; then
5591    AR="no"
5592  else
5593    case $cross_compiling:$ac_tool_warned in
5594yes:)
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597ac_tool_warned=yes ;;
5598esac
5599    AR=$ac_ct_AR
5600  fi
5601else
5602  AR="$ac_cv_prog_AR"
5603fi
5604
5605if test "$AR" = no ; then
5606  as_fn_error $? "Please make sure that \"ar\" is in your PATH." "$LINENO" 5
5607fi
5608if test -n "$ac_tool_prefix"; then
5609  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5610set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612$as_echo_n "checking for $ac_word... " >&6; }
5613if ${ac_cv_prog_RANLIB+:} false; then :
5614  $as_echo_n "(cached) " >&6
5615else
5616  if test -n "$RANLIB"; then
5617  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5618else
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622  IFS=$as_save_IFS
5623  test -z "$as_dir" && as_dir=.
5624    for ac_exec_ext in '' $ac_executable_extensions; do
5625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628    break 2
5629  fi
5630done
5631  done
5632IFS=$as_save_IFS
5633
5634fi
5635fi
5636RANLIB=$ac_cv_prog_RANLIB
5637if test -n "$RANLIB"; then
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5639$as_echo "$RANLIB" >&6; }
5640else
5641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642$as_echo "no" >&6; }
5643fi
5644
5645
5646fi
5647if test -z "$ac_cv_prog_RANLIB"; then
5648  ac_ct_RANLIB=$RANLIB
5649  # Extract the first word of "ranlib", so it can be a program name with args.
5650set dummy ranlib; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  if test -n "$ac_ct_RANLIB"; then
5657  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662  IFS=$as_save_IFS
5663  test -z "$as_dir" && as_dir=.
5664    for ac_exec_ext in '' $ac_executable_extensions; do
5665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666    ac_cv_prog_ac_ct_RANLIB="ranlib"
5667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668    break 2
5669  fi
5670done
5671  done
5672IFS=$as_save_IFS
5673
5674fi
5675fi
5676ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5677if test -n "$ac_ct_RANLIB"; then
5678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5679$as_echo "$ac_ct_RANLIB" >&6; }
5680else
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683fi
5684
5685  if test "x$ac_ct_RANLIB" = x; then
5686    RANLIB=":"
5687  else
5688    case $cross_compiling:$ac_tool_warned in
5689yes:)
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692ac_tool_warned=yes ;;
5693esac
5694    RANLIB=$ac_ct_RANLIB
5695  fi
5696else
5697  RANLIB="$ac_cv_prog_RANLIB"
5698fi
5699
5700for ac_prog in perl perl5
5701do
5702  # Extract the first word of "$ac_prog", so it can be a program name with args.
5703set dummy $ac_prog; ac_word=$2
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705$as_echo_n "checking for $ac_word... " >&6; }
5706if ${ac_cv_path_PERL+:} false; then :
5707  $as_echo_n "(cached) " >&6
5708else
5709  case $PERL in
5710  [\\/]* | ?:[\\/]*)
5711  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5712  ;;
5713  *)
5714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715as_dummy="$PATH:/usr/local/bin:/usr/bin"
5716for as_dir in $as_dummy
5717do
5718  IFS=$as_save_IFS
5719  test -z "$as_dir" && as_dir=.
5720    for ac_exec_ext in '' $ac_executable_extensions; do
5721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724    break 2
5725  fi
5726done
5727  done
5728IFS=$as_save_IFS
5729
5730  ;;
5731esac
5732fi
5733PERL=$ac_cv_path_PERL
5734if test -n "$PERL"; then
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5736$as_echo "$PERL" >&6; }
5737else
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739$as_echo "no" >&6; }
5740fi
5741
5742
5743  test -n "$PERL" && break
5744done
5745
5746for ac_prog in onsgmls nsgmls
5747do
5748  # Extract the first word of "$ac_prog", so it can be a program name with args.
5749set dummy $ac_prog; ac_word=$2
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751$as_echo_n "checking for $ac_word... " >&6; }
5752if ${ac_cv_path_NSGMLS+:} false; then :
5753  $as_echo_n "(cached) " >&6
5754else
5755  case $NSGMLS in
5756  [\\/]* | ?:[\\/]*)
5757  ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a path.
5758  ;;
5759  *)
5760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763  IFS=$as_save_IFS
5764  test -z "$as_dir" && as_dir=.
5765    for ac_exec_ext in '' $ac_executable_extensions; do
5766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767    ac_cv_path_NSGMLS="$as_dir/$ac_word$ac_exec_ext"
5768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769    break 2
5770  fi
5771done
5772  done
5773IFS=$as_save_IFS
5774
5775  ;;
5776esac
5777fi
5778NSGMLS=$ac_cv_path_NSGMLS
5779if test -n "$NSGMLS"; then
5780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
5781$as_echo "$NSGMLS" >&6; }
5782else
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785fi
5786
5787
5788  test -n "$NSGMLS" && break
5789done
5790test -n "$NSGMLS" || NSGMLS="nsgmls"
5791
5792for ac_prog in rpmbuild rpm
5793do
5794  # Extract the first word of "$ac_prog", so it can be a program name with args.
5795set dummy $ac_prog; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if ${ac_cv_path_RPMBUILD+:} false; then :
5799  $as_echo_n "(cached) " >&6
5800else
5801  case $RPMBUILD in
5802  [\\/]* | ?:[\\/]*)
5803  ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
5804  ;;
5805  *)
5806  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813    ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
5814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818  done
5819IFS=$as_save_IFS
5820
5821  ;;
5822esac
5823fi
5824RPMBUILD=$ac_cv_path_RPMBUILD
5825if test -n "$RPMBUILD"; then
5826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
5827$as_echo "$RPMBUILD" >&6; }
5828else
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }
5831fi
5832
5833
5834  test -n "$RPMBUILD" && break
5835done
5836test -n "$RPMBUILD" || RPMBUILD="rpmbuild"
5837
5838for ac_prog in xmllint
5839do
5840  # Extract the first word of "$ac_prog", so it can be a program name with args.
5841set dummy $ac_prog; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if ${ac_cv_path_XMLLINT+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  case $XMLLINT in
5848  [\\/]* | ?:[\\/]*)
5849  ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
5850  ;;
5851  *)
5852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855  IFS=$as_save_IFS
5856  test -z "$as_dir" && as_dir=.
5857    for ac_exec_ext in '' $ac_executable_extensions; do
5858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859    ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
5860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861    break 2
5862  fi
5863done
5864  done
5865IFS=$as_save_IFS
5866
5867  ;;
5868esac
5869fi
5870XMLLINT=$ac_cv_path_XMLLINT
5871if test -n "$XMLLINT"; then
5872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
5873$as_echo "$XMLLINT" >&6; }
5874else
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876$as_echo "no" >&6; }
5877fi
5878
5879
5880  test -n "$XMLLINT" && break
5881done
5882test -n "$XMLLINT" || XMLLINT="xmllint"
5883
5884for ac_prog in flex
5885do
5886  # Extract the first word of "$ac_prog", so it can be a program name with args.
5887set dummy $ac_prog; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
5890if ${ac_cv_path_FLEX+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  case $FLEX in
5894  [\\/]* | ?:[\\/]*)
5895  ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
5896  ;;
5897  *)
5898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901  IFS=$as_save_IFS
5902  test -z "$as_dir" && as_dir=.
5903    for ac_exec_ext in '' $ac_executable_extensions; do
5904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905    ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
5906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907    break 2
5908  fi
5909done
5910  done
5911IFS=$as_save_IFS
5912
5913  ;;
5914esac
5915fi
5916FLEX=$ac_cv_path_FLEX
5917if test -n "$FLEX"; then
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5919$as_echo "$FLEX" >&6; }
5920else
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
5923fi
5924
5925
5926  test -n "$FLEX" && break
5927done
5928test -n "$FLEX" || FLEX="false"
5929
5930for ac_prog in flex lex
5931do
5932  # Extract the first word of "$ac_prog", so it can be a program name with args.
5933set dummy $ac_prog; ac_word=$2
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
5936if ${ac_cv_prog_LEX+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  if test -n "$LEX"; then
5940  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947    for ac_exec_ext in '' $ac_executable_extensions; do
5948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949    ac_cv_prog_LEX="$ac_prog"
5950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954  done
5955IFS=$as_save_IFS
5956
5957fi
5958fi
5959LEX=$ac_cv_prog_LEX
5960if test -n "$LEX"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5962$as_echo "$LEX" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967
5968
5969  test -n "$LEX" && break
5970done
5971test -n "$LEX" || LEX=":"
5972
5973if test "x$LEX" != "x:"; then
5974  cat >conftest.l <<_ACEOF
5975%%
5976a { ECHO; }
5977b { REJECT; }
5978c { yymore (); }
5979d { yyless (1); }
5980e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
5981    yyless ((input () != 0)); }
5982f { unput (yytext[0]); }
5983. { BEGIN INITIAL; }
5984%%
5985#ifdef YYTEXT_POINTER
5986extern char *yytext;
5987#endif
5988int
5989main (void)
5990{
5991  return ! yylex () + ! yywrap ();
5992}
5993_ACEOF
5994{ { ac_try="$LEX conftest.l"
5995case "(($ac_try" in
5996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997  *) ac_try_echo=$ac_try;;
5998esac
5999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6000$as_echo "$ac_try_echo"; } >&5
6001  (eval "$LEX conftest.l") 2>&5
6002  ac_status=$?
6003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004  test $ac_status = 0; }
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6006$as_echo_n "checking lex output file root... " >&6; }
6007if ${ac_cv_prog_lex_root+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010
6011if test -f lex.yy.c; then
6012  ac_cv_prog_lex_root=lex.yy
6013elif test -f lexyy.c; then
6014  ac_cv_prog_lex_root=lexyy
6015else
6016  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6017fi
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6020$as_echo "$ac_cv_prog_lex_root" >&6; }
6021LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6022
6023if test -z "${LEXLIB+set}"; then
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6025$as_echo_n "checking lex library... " >&6; }
6026if ${ac_cv_lib_lex+:} false; then :
6027  $as_echo_n "(cached) " >&6
6028else
6029
6030    ac_save_LIBS=$LIBS
6031    ac_cv_lib_lex='none needed'
6032    for ac_lib in '' -lfl -ll; do
6033      LIBS="$ac_lib $ac_save_LIBS"
6034      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036`cat $LEX_OUTPUT_ROOT.c`
6037_ACEOF
6038if ac_fn_c_try_link "$LINENO"; then :
6039  ac_cv_lib_lex=$ac_lib
6040fi
6041rm -f core conftest.err conftest.$ac_objext \
6042    conftest$ac_exeext conftest.$ac_ext
6043      test "$ac_cv_lib_lex" != 'none needed' && break
6044    done
6045    LIBS=$ac_save_LIBS
6046
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6049$as_echo "$ac_cv_lib_lex" >&6; }
6050  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6051fi
6052
6053
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6055$as_echo_n "checking whether yytext is a pointer... " >&6; }
6056if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6057  $as_echo_n "(cached) " >&6
6058else
6059  # POSIX says lex can declare yytext either as a pointer or an array; the
6060# default is implementation-dependent.  Figure out which it is, since
6061# not all implementations provide the %pointer and %array declarations.
6062ac_cv_prog_lex_yytext_pointer=no
6063ac_save_LIBS=$LIBS
6064LIBS="$LEXLIB $ac_save_LIBS"
6065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h.  */
6067
6068  #define YYTEXT_POINTER 1
6069`cat $LEX_OUTPUT_ROOT.c`
6070_ACEOF
6071if ac_fn_c_try_link "$LINENO"; then :
6072  ac_cv_prog_lex_yytext_pointer=yes
6073fi
6074rm -f core conftest.err conftest.$ac_objext \
6075    conftest$ac_exeext conftest.$ac_ext
6076LIBS=$ac_save_LIBS
6077
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6080$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6081if test $ac_cv_prog_lex_yytext_pointer = yes; then
6082
6083$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6084
6085fi
6086rm -f conftest.l $LEX_OUTPUT_ROOT.c
6087
6088fi
6089if test "$LEX" = :; then
6090  LEX=${am_missing_run}flex
6091fi
6092if test "x$LEX" = xflex && test "$FLEX" != false ; then
6093  LEX="$FLEX"
6094
6095$as_echo "#define LEX /**/" >>confdefs.h
6096
6097fi
6098
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6100$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6101if ${ac_cv_c_const+:} false; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106
6107int
6108main ()
6109{
6110
6111#ifndef __cplusplus
6112  /* Ultrix mips cc rejects this sort of thing.  */
6113  typedef int charset[2];
6114  const charset cs = { 0, 0 };
6115  /* SunOS 4.1.1 cc rejects this.  */
6116  char const *const *pcpcc;
6117  char **ppc;
6118  /* NEC SVR4.0.2 mips cc rejects this.  */
6119  struct point {int x, y;};
6120  static struct point const zero = {0,0};
6121  /* AIX XL C 1.02.0.0 rejects this.
6122     It does not let you subtract one const X* pointer from another in
6123     an arm of an if-expression whose if-part is not a constant
6124     expression */
6125  const char *g = "string";
6126  pcpcc = &g + (g ? g-g : 0);
6127  /* HPUX 7.0 cc rejects these. */
6128  ++pcpcc;
6129  ppc = (char**) pcpcc;
6130  pcpcc = (char const *const *) ppc;
6131  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6132    char tx;
6133    char *t = &tx;
6134    char const *s = 0 ? (char *) 0 : (char const *) 0;
6135
6136    *t++ = 0;
6137    if (s) return 0;
6138  }
6139  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6140    int x[] = {25, 17};
6141    const int *foo = &x[0];
6142    ++foo;
6143  }
6144  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6145    typedef const int *iptr;
6146    iptr p = 0;
6147    ++p;
6148  }
6149  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6150       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6151    struct s { int j; const int *ap[3]; } bx;
6152    struct s *b = &bx; b->j = 5;
6153  }
6154  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6155    const int foo = 10;
6156    if (!foo) return 0;
6157  }
6158  return !cs[0] && !zero.x;
6159#endif
6160
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_compile "$LINENO"; then :
6166  ac_cv_c_const=yes
6167else
6168  ac_cv_c_const=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6173$as_echo "$ac_cv_c_const" >&6; }
6174if test $ac_cv_c_const = no; then
6175
6176$as_echo "#define const /**/" >>confdefs.h
6177
6178fi
6179
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6181$as_echo_n "checking for inline... " >&6; }
6182if ${ac_cv_c_inline+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  ac_cv_c_inline=no
6186for ac_kw in inline __inline__ __inline; do
6187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h.  */
6189#ifndef __cplusplus
6190typedef int foo_t;
6191static $ac_kw foo_t static_foo () {return 0; }
6192$ac_kw foo_t foo () {return 0; }
6193#endif
6194
6195_ACEOF
6196if ac_fn_c_try_compile "$LINENO"; then :
6197  ac_cv_c_inline=$ac_kw
6198fi
6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200  test "$ac_cv_c_inline" != no && break
6201done
6202
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6205$as_echo "$ac_cv_c_inline" >&6; }
6206
6207case $ac_cv_c_inline in
6208  inline | yes) ;;
6209  *)
6210    case $ac_cv_c_inline in
6211      no) ac_val=;;
6212      *) ac_val=$ac_cv_c_inline;;
6213    esac
6214    cat >>confdefs.h <<_ACEOF
6215#ifndef __cplusplus
6216#define inline $ac_val
6217#endif
6218_ACEOF
6219    ;;
6220esac
6221
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6223$as_echo_n "checking for working volatile... " >&6; }
6224if ${ac_cv_c_volatile+:} false; then :
6225  $as_echo_n "(cached) " >&6
6226else
6227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229
6230int
6231main ()
6232{
6233
6234volatile int x;
6235int * volatile y = (int *) 0;
6236return !x && !y;
6237  ;
6238  return 0;
6239}
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"; then :
6242  ac_cv_c_volatile=yes
6243else
6244  ac_cv_c_volatile=no
6245fi
6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6249$as_echo "$ac_cv_c_volatile" >&6; }
6250if test $ac_cv_c_volatile = no; then
6251
6252$as_echo "#define volatile /**/" >>confdefs.h
6253
6254fi
6255
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6257$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6258if ${ac_cv_c_restrict+:} false; then :
6259  $as_echo_n "(cached) " >&6
6260else
6261  ac_cv_c_restrict=no
6262   # The order here caters to the fact that C++ does not require restrict.
6263   for ac_kw in __restrict __restrict__ _Restrict restrict; do
6264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266typedef int * int_ptr;
6267	int foo (int_ptr $ac_kw ip) {
6268	return ip[0];
6269       }
6270int
6271main ()
6272{
6273int s[1];
6274	int * $ac_kw t = s;
6275	t[0] = 0;
6276	return foo(t)
6277  ;
6278  return 0;
6279}
6280_ACEOF
6281if ac_fn_c_try_compile "$LINENO"; then :
6282  ac_cv_c_restrict=$ac_kw
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285     test "$ac_cv_c_restrict" != no && break
6286   done
6287
6288fi
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6290$as_echo "$ac_cv_c_restrict" >&6; }
6291
6292 case $ac_cv_c_restrict in
6293   restrict) ;;
6294   no) $as_echo "#define restrict /**/" >>confdefs.h
6295 ;;
6296   *)  cat >>confdefs.h <<_ACEOF
6297#define restrict $ac_cv_c_restrict
6298_ACEOF
6299 ;;
6300 esac
6301
6302
6303ac_ext=c
6304ac_cpp='$CPP $CPPFLAGS'
6305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307ac_compiler_gnu=$ac_cv_c_compiler_gnu
6308
6309
6310if test "$ac_cv_c_inline" != no ; then
6311
6312$as_echo "#define HAVE_INLINE 1" >>confdefs.h
6313
6314
6315fi
6316
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern inline" >&5
6318$as_echo_n "checking for extern inline... " >&6; }
6319if ${ac_cv_c_extern_inline+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322  ac_cv_c_extern_inline=no
6323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325extern $ac_cv_c_inline double foo(double x);
6326extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
6327double foo (double x) { return x + 1.0; };
6328int
6329main ()
6330{
6331  foo(1.0)
6332  ;
6333  return 0;
6334}
6335_ACEOF
6336if ac_fn_c_try_compile "$LINENO"; then :
6337  ac_cv_c_extern_inline="yes"
6338fi
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340
6341fi
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_inline" >&5
6343$as_echo "$ac_cv_c_extern_inline" >&6; }
6344
6345if test "$ac_cv_c_extern_inline" != no ; then
6346
6347$as_echo "#define HAVE_EXTERN_INLINE 1" >>confdefs.h
6348
6349
6350fi
6351
6352
6353
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working shell..." >&5
6355$as_echo_n "checking for a working shell...... " >&6; }
6356for i in /usr/xpg6/bin/sh /usr/xpg4/bin/sh /usr/ccs/bin/sh /bin/sh /usr/bin/sh /bin/ksh /bin/bash /usr/local/bin/bash ; do
6357    $i -c 'if ! false ; then echo $(echo ok) ; fi' >config.$$ 2>/dev/null
6358    j=`cat config.$$`
6359    rm -f config.$$
6360    if test "x$j" = "xok" ; then
6361	SHELL=$i
6362
6363	break
6364    fi
6365done
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
6367$as_echo "$SHELL" >&6; }
6368if test "x$SHELL" = "x" ; then
6369    as_fn_error install SUNWxcu4 "no SUS compliant shell found - on Solaris" "$LINENO" 5
6370fi
6371
6372if test "x$host_cpu" = "xs390" && test "x$GCC" = "xyes" ; then
6373    case ${CFLAGS} in
6374    *-O*)
6375	OCFLAGS="$CFLAGS"
6376					CFLAGS="`echo \"$CFLAGS\" | sed 's/-O[s1-9][0-9]*/-O1/'`"
6377	export CFLAGS
6378	{ $as_echo "$as_me:${as_lineno-$LINENO}: GCC for s390: Overriding CFLAGS \"$OCFLAGS\" to \"$CFLAGS\"." >&5
6379$as_echo "$as_me: GCC for s390: Overriding CFLAGS \"$OCFLAGS\" to \"$CFLAGS\"." >&6;}
6380    esac
6381fi
6382
6383case "$host_os" in
6384dgux*)
6385    if test "$GCC" = yes ; then
6386        case "`$CC --version`" in
6387        2.7*)
6388	    case ${CFLAGS} in
6389	    *-g*)
6390		OCFLAGS="$CFLAGS"
6391		CFLAGS=""
6392		for i in $OCFLAGS ; do
6393		    case x$i in
6394			x-g*) ;;
6395			*) CFLAGS="$CFLAGS$i " ;;
6396		    esac
6397		done
6398		{ $as_echo "$as_me:${as_lineno-$LINENO}: dgux: Removing -g options from CFLAGS, new: \"$CFLAGS\"." >&5
6399$as_echo "$as_me: dgux: Removing -g options from CFLAGS, new: \"$CFLAGS\"." >&6;}
6400		;;
6401	    esac
6402	    ;;
6403	esac
6404    fi
6405    ;;
6406esac
6407
6408if test "$GCC" = yes ; then
6409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc is really Intel C++" >&5
6410$as_echo_n "checking if gcc is really Intel C++... " >&6; }
6411    case "`$CC -V 2>&1`" in
6412	[iI][nN][tT][eE][lL]*)	ICC=yes ;;
6413	*)			ICC=no ;;
6414    esac
6415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICC" >&5
6416$as_echo "$ICC" >&6; }
6417fi
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional compiler options" >&5
6419$as_echo_n "checking for additional compiler options... " >&6; }
6420if ${ac_cv_prog_gcc_flags+:} false; then :
6421  $as_echo_n "(cached) " >&6
6422else
6423
6424ac_cv_prog_gcc_flags=""
6425if test "$GCC" = yes && test "$ICC" = no
6426then
6427  echo "void dummy(void);" >configure-dummy.c
6428  echo "void dummy(void) {}" >>configure-dummy.c
6429  addopts=
6430  # note: GCC 2.X print just the version number, like "2.95.3"
6431  #       GCC 3.X print something like "gcc (GCC) 3.3.1 (SuSE Linux)"
6432  case `$CC --version` in
6433      2.*) ;;
6434      *) addopts="$addopts -Wpointer-arith -ggdb" ;;
6435  esac
6436  for i in $addopts \
6437      -mieee \
6438      -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
6439      -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \
6440      -Waggregate-return -Wmissing-declarations \
6441      -Wmissing-format-attribute -Wnested-externs \
6442      -fno-common -Wchar-subscripts -Wcomment \
6443      -Wimplicit -Wsequence-point -Wreturn-type \
6444      -Wno-system-headers -Wformat
6445      # -Wfloat-equal -Wformat=2
6446      # -Wmissing-noreturn -Wconversion -pedantic -Wredundant-decls
6447  do
6448       if $CC $i $ac_cv_prog_gcc_flags -c configure-dummy.c >/dev/null 2>&1
6449       then ac_cv_prog_gcc_flags="$ac_cv_prog_gcc_flags $i"
6450       else echo "ignoring $i"
6451       fi
6452  done
6453fi
6454fi
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_flags" >&5
6456$as_echo "$ac_cv_prog_gcc_flags" >&6; }
6457rm -f configure-dummy.c configure-dummy.o
6458CFLAGS="$CFLAGS $ac_cv_prog_gcc_flags"
6459
6460
6461gcc4=no
6462if test "$GCC" = yes && test "$ICC" = no ; then
6463    case `$CC -dumpversion 2>/dev/null` in
6464	""|2.*|3.*) ;;
6465	4.*) gcc4=yes ;;
6466    esac
6467    case `$CC --version 2>/dev/null` in
6468	*clang*) gcc4=yes ;;
6469    esac
6470fi
6471 if test $gcc4 = yes; then
6472  USE_GCC4_TRUE=
6473  USE_GCC4_FALSE='#'
6474else
6475  USE_GCC4_TRUE='#'
6476  USE_GCC4_FALSE=
6477fi
6478
6479
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex needs patching" >&5
6481$as_echo_n "checking whether flex needs patching... " >&6; }
6482flex=no
6483if test -n "$LEX"; then
6484    case `$LEX --version` in
6485	*2.5.4) flex=254 ;;
6486	*2.5.31) flex=253x ;;
6487	*2.5.33) flex=253x ;;
6488	*2.5.35) flex=O.K. ;;
6489	*2.5.36*) flex=253n ;;
6490	*2.5.37*) flex=253n ;;
6491	*2.5.38*) flex=253n ;;
6492	*2.5.39*) flex=253n ;;
6493	*2.6.0*)  flex=253n ;;
6494	*2.6.*) flex=O.K. ;;
6495	*)	flex=unknown ;;
6496    esac
6497fi
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flex" >&5
6499$as_echo "$flex" >&6; }
6500 if test $flex = 254; then
6501  PATCH_FLEX_254_TRUE=
6502  PATCH_FLEX_254_FALSE='#'
6503else
6504  PATCH_FLEX_254_TRUE='#'
6505  PATCH_FLEX_254_FALSE=
6506fi
6507
6508 if test $flex = 253x; then
6509  PATCH_FLEX_253X_TRUE=
6510  PATCH_FLEX_253X_FALSE='#'
6511else
6512  PATCH_FLEX_253X_TRUE='#'
6513  PATCH_FLEX_253X_FALSE=
6514fi
6515
6516 if test $flex = 253n; then
6517  PATCH_FLEX_253N_TRUE=
6518  PATCH_FLEX_253N_FALSE='#'
6519else
6520  PATCH_FLEX_253N_TRUE='#'
6521  PATCH_FLEX_253N_FALSE=
6522fi
6523
6524
6525# Check whether --enable-largefile was given.
6526if test "${enable_largefile+set}" = set; then :
6527  enableval=$enable_largefile;
6528fi
6529
6530if test "$enable_largefile" != no; then
6531
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6533$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6534if ${ac_cv_sys_largefile_CC+:} false; then :
6535  $as_echo_n "(cached) " >&6
6536else
6537  ac_cv_sys_largefile_CC=no
6538     if test "$GCC" != yes; then
6539       ac_save_CC=$CC
6540       while :; do
6541	 # IRIX 6.2 and later do not support large files by default,
6542	 # so use the C compiler's -n32 option if that helps.
6543	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545#include <sys/types.h>
6546 /* Check that off_t can represent 2**63 - 1 correctly.
6547    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6548    since some C++ compilers masquerading as C compilers
6549    incorrectly reject 9223372036854775807.  */
6550#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6551  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6552		       && LARGE_OFF_T % 2147483647 == 1)
6553		      ? 1 : -1];
6554int
6555main ()
6556{
6557
6558  ;
6559  return 0;
6560}
6561_ACEOF
6562	 if ac_fn_c_try_compile "$LINENO"; then :
6563  break
6564fi
6565rm -f core conftest.err conftest.$ac_objext
6566	 CC="$CC -n32"
6567	 if ac_fn_c_try_compile "$LINENO"; then :
6568  ac_cv_sys_largefile_CC=' -n32'; break
6569fi
6570rm -f core conftest.err conftest.$ac_objext
6571	 break
6572       done
6573       CC=$ac_save_CC
6574       rm -f conftest.$ac_ext
6575    fi
6576fi
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6578$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6579  if test "$ac_cv_sys_largefile_CC" != no; then
6580    CC=$CC$ac_cv_sys_largefile_CC
6581  fi
6582
6583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6584$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6585if ${ac_cv_sys_file_offset_bits+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  while :; do
6589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590/* end confdefs.h.  */
6591#include <sys/types.h>
6592 /* Check that off_t can represent 2**63 - 1 correctly.
6593    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6594    since some C++ compilers masquerading as C compilers
6595    incorrectly reject 9223372036854775807.  */
6596#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6597  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6598		       && LARGE_OFF_T % 2147483647 == 1)
6599		      ? 1 : -1];
6600int
6601main ()
6602{
6603
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608if ac_fn_c_try_compile "$LINENO"; then :
6609  ac_cv_sys_file_offset_bits=no; break
6610fi
6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h.  */
6614#define _FILE_OFFSET_BITS 64
6615#include <sys/types.h>
6616 /* Check that off_t can represent 2**63 - 1 correctly.
6617    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6618    since some C++ compilers masquerading as C compilers
6619    incorrectly reject 9223372036854775807.  */
6620#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6621  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6622		       && LARGE_OFF_T % 2147483647 == 1)
6623		      ? 1 : -1];
6624int
6625main ()
6626{
6627
6628  ;
6629  return 0;
6630}
6631_ACEOF
6632if ac_fn_c_try_compile "$LINENO"; then :
6633  ac_cv_sys_file_offset_bits=64; break
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636  ac_cv_sys_file_offset_bits=unknown
6637  break
6638done
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6641$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6642case $ac_cv_sys_file_offset_bits in #(
6643  no | unknown) ;;
6644  *)
6645cat >>confdefs.h <<_ACEOF
6646#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6647_ACEOF
6648;;
6649esac
6650rm -rf conftest*
6651  if test $ac_cv_sys_file_offset_bits = unknown; then
6652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6653$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6654if ${ac_cv_sys_large_files+:} false; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657  while :; do
6658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660#include <sys/types.h>
6661 /* Check that off_t can represent 2**63 - 1 correctly.
6662    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6663    since some C++ compilers masquerading as C compilers
6664    incorrectly reject 9223372036854775807.  */
6665#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6666  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6667		       && LARGE_OFF_T % 2147483647 == 1)
6668		      ? 1 : -1];
6669int
6670main ()
6671{
6672
6673  ;
6674  return 0;
6675}
6676_ACEOF
6677if ac_fn_c_try_compile "$LINENO"; then :
6678  ac_cv_sys_large_files=no; break
6679fi
6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683#define _LARGE_FILES 1
6684#include <sys/types.h>
6685 /* Check that off_t can represent 2**63 - 1 correctly.
6686    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6687    since some C++ compilers masquerading as C compilers
6688    incorrectly reject 9223372036854775807.  */
6689#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6690  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6691		       && LARGE_OFF_T % 2147483647 == 1)
6692		      ? 1 : -1];
6693int
6694main ()
6695{
6696
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701if ac_fn_c_try_compile "$LINENO"; then :
6702  ac_cv_sys_large_files=1; break
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705  ac_cv_sys_large_files=unknown
6706  break
6707done
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6710$as_echo "$ac_cv_sys_large_files" >&6; }
6711case $ac_cv_sys_large_files in #(
6712  no | unknown) ;;
6713  *)
6714cat >>confdefs.h <<_ACEOF
6715#define _LARGE_FILES $ac_cv_sys_large_files
6716_ACEOF
6717;;
6718esac
6719rm -rf conftest*
6720  fi
6721
6722
6723fi
6724
6725
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
6727$as_echo_n "checking for cos in -lm... " >&6; }
6728if ${ac_cv_lib_m_cos+:} false; then :
6729  $as_echo_n "(cached) " >&6
6730else
6731  ac_check_lib_save_LIBS=$LIBS
6732LIBS="-lm  $LIBS"
6733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h.  */
6735
6736/* Override any GCC internal prototype to avoid an error.
6737   Use char because int might match the return type of a GCC
6738   builtin and then its argument prototype would still apply.  */
6739#ifdef __cplusplus
6740extern "C"
6741#endif
6742char cos ();
6743int
6744main ()
6745{
6746return cos ();
6747  ;
6748  return 0;
6749}
6750_ACEOF
6751if ac_fn_c_try_link "$LINENO"; then :
6752  ac_cv_lib_m_cos=yes
6753else
6754  ac_cv_lib_m_cos=no
6755fi
6756rm -f core conftest.err conftest.$ac_objext \
6757    conftest$ac_exeext conftest.$ac_ext
6758LIBS=$ac_check_lib_save_LIBS
6759fi
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
6761$as_echo "$ac_cv_lib_m_cos" >&6; }
6762if test "x$ac_cv_lib_m_cos" = xyes; then :
6763  cat >>confdefs.h <<_ACEOF
6764#define HAVE_LIBM 1
6765_ACEOF
6766
6767  LIBS="-lm $LIBS"
6768
6769fi
6770
6771
6772
6773ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "
6774#include <unistd.h>
6775/* Solaris */
6776#include <stdlib.h>
6777
6778"
6779if test "x$ac_cv_have_decl_getopt" = xyes; then :
6780  ac_have_decl=1
6781else
6782  ac_have_decl=0
6783fi
6784
6785cat >>confdefs.h <<_ACEOF
6786#define HAVE_DECL_GETOPT $ac_have_decl
6787_ACEOF
6788ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
6789#include <unistd.h>
6790/* Solaris */
6791#include <stdlib.h>
6792
6793"
6794if test "x$ac_cv_have_decl_optreset" = xyes; then :
6795  ac_have_decl=1
6796else
6797  ac_have_decl=0
6798fi
6799
6800cat >>confdefs.h <<_ACEOF
6801#define HAVE_DECL_OPTRESET $ac_have_decl
6802_ACEOF
6803
6804
6805ac_fn_c_check_decl "$LINENO" "O_DSYNC" "ac_cv_have_decl_O_DSYNC" "#include <fcntl.h>
6806"
6807if test "x$ac_cv_have_decl_O_DSYNC" = xyes; then :
6808  ac_have_decl=1
6809else
6810  ac_have_decl=0
6811fi
6812
6813cat >>confdefs.h <<_ACEOF
6814#define HAVE_DECL_O_DSYNC $ac_have_decl
6815_ACEOF
6816ac_fn_c_check_decl "$LINENO" "O_SYNC" "ac_cv_have_decl_O_SYNC" "#include <fcntl.h>
6817"
6818if test "x$ac_cv_have_decl_O_SYNC" = xyes; then :
6819  ac_have_decl=1
6820else
6821  ac_have_decl=0
6822fi
6823
6824cat >>confdefs.h <<_ACEOF
6825#define HAVE_DECL_O_SYNC $ac_have_decl
6826_ACEOF
6827ac_fn_c_check_decl "$LINENO" "O_FSYNC" "ac_cv_have_decl_O_FSYNC" "#include <fcntl.h>
6828"
6829if test "x$ac_cv_have_decl_O_FSYNC" = xyes; then :
6830  ac_have_decl=1
6831else
6832  ac_have_decl=0
6833fi
6834
6835cat >>confdefs.h <<_ACEOF
6836#define HAVE_DECL_O_FSYNC $ac_have_decl
6837_ACEOF
6838
6839
6840
6841$as_echo "#define __NO_CTYPE 1" >>confdefs.h
6842
6843
6844# Check whether --enable-spam-header-name was given.
6845if test "${enable_spam_header_name+set}" = set; then :
6846  enableval=$enable_spam_header_name;
6847cat >>confdefs.h <<_ACEOF
6848#define SPAM_HEADER_NAME "$enableval"
6849_ACEOF
6850
6851else
6852  cat >>confdefs.h <<_ACEOF
6853#define SPAM_HEADER_NAME "X-Bogosity"
6854_ACEOF
6855
6856
6857fi
6858
6859
6860
6861# Check whether --enable-unicode was given.
6862if test "${enable_unicode+set}" = set; then :
6863  enableval=$enable_unicode; if test "$enableval" = no; then
6864		USE_UNICODE=NO
6865	fi
6866	if test "$enableval" = yes; then
6867		USE_UNICODE=YES
6868	fi
6869	if test x$USE_UNICODE != x ; then
6870
6871cat >>confdefs.h <<_ACEOF
6872#define USE_UNICODE "$USE_UNICODE"
6873_ACEOF
6874
6875
6876	fi
6877
6878fi
6879
6880
6881 if test x$USE_UNICODE = xNO; then
6882  DISABLE_UNICODE_TRUE=
6883  DISABLE_UNICODE_FALSE='#'
6884else
6885  DISABLE_UNICODE_TRUE='#'
6886  DISABLE_UNICODE_FALSE=
6887fi
6888
6889 if test x$USE_UNICODE != xNO; then
6890  ENABLE_UNICODE_TRUE=
6891  ENABLE_UNICODE_FALSE='#'
6892else
6893  ENABLE_UNICODE_TRUE='#'
6894  ENABLE_UNICODE_FALSE=
6895fi
6896
6897
6898if test x$USE_UNICODE = xNO ; then
6899
6900$as_echo "#define DISABLE_UNICODE 1" >>confdefs.h
6901
6902	ENCODING="raw"
6903else
6904
6905      if test "X$prefix" = "XNONE"; then
6906    acl_final_prefix="$ac_default_prefix"
6907  else
6908    acl_final_prefix="$prefix"
6909  fi
6910  if test "X$exec_prefix" = "XNONE"; then
6911    acl_final_exec_prefix='${prefix}'
6912  else
6913    acl_final_exec_prefix="$exec_prefix"
6914  fi
6915  acl_save_prefix="$prefix"
6916  prefix="$acl_final_prefix"
6917  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6918  prefix="$acl_save_prefix"
6919
6920
6921# Check whether --with-gnu-ld was given.
6922if test "${with_gnu_ld+set}" = set; then :
6923  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6924else
6925  with_gnu_ld=no
6926fi
6927
6928# Prepare PATH_SEPARATOR.
6929# The user is always right.
6930if test "${PATH_SEPARATOR+set}" != set; then
6931  echo "#! /bin/sh" >conf$$.sh
6932  echo  "exit 0"   >>conf$$.sh
6933  chmod +x conf$$.sh
6934  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6935    PATH_SEPARATOR=';'
6936  else
6937    PATH_SEPARATOR=:
6938  fi
6939  rm -f conf$$.sh
6940fi
6941ac_prog=ld
6942if test "$GCC" = yes; then
6943  # Check if gcc -print-prog-name=ld gives a path.
6944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6945$as_echo_n "checking for ld used by GCC... " >&6; }
6946  case $host in
6947  *-*-mingw*)
6948    # gcc leaves a trailing carriage return which upsets mingw
6949    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6950  *)
6951    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6952  esac
6953  case $ac_prog in
6954    # Accept absolute paths.
6955    [\\/]* | [A-Za-z]:[\\/]*)
6956      re_direlt='/[^/][^/]*/\.\./'
6957      # Canonicalize the path of ld
6958      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6959      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6960	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6961      done
6962      test -z "$LD" && LD="$ac_prog"
6963      ;;
6964  "")
6965    # If it fails, then pretend we aren't using GCC.
6966    ac_prog=ld
6967    ;;
6968  *)
6969    # If it is relative, then search for the first ld in PATH.
6970    with_gnu_ld=unknown
6971    ;;
6972  esac
6973elif test "$with_gnu_ld" = yes; then
6974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6975$as_echo_n "checking for GNU ld... " >&6; }
6976else
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6978$as_echo_n "checking for non-GNU ld... " >&6; }
6979fi
6980if ${acl_cv_path_LD+:} false; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983  if test -z "$LD"; then
6984  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6985  for ac_dir in $PATH; do
6986    test -z "$ac_dir" && ac_dir=.
6987    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6988      acl_cv_path_LD="$ac_dir/$ac_prog"
6989      # Check to see if the program is GNU ld.  I'd rather use --version,
6990      # but apparently some GNU ld's only accept -v.
6991      # Break only if it was the GNU/non-GNU ld that we prefer.
6992      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6993      *GNU* | *'with BFD'*)
6994	test "$with_gnu_ld" != no && break ;;
6995      *)
6996	test "$with_gnu_ld" != yes && break ;;
6997      esac
6998    fi
6999  done
7000  IFS="$ac_save_ifs"
7001else
7002  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7003fi
7004fi
7005
7006LD="$acl_cv_path_LD"
7007if test -n "$LD"; then
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7009$as_echo "$LD" >&6; }
7010else
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7016$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7017if ${acl_cv_prog_gnu_ld+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7021case `$LD -v 2>&1 </dev/null` in
7022*GNU* | *'with BFD'*)
7023  acl_cv_prog_gnu_ld=yes ;;
7024*)
7025  acl_cv_prog_gnu_ld=no ;;
7026esac
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7029$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7030with_gnu_ld=$acl_cv_prog_gnu_ld
7031
7032
7033
7034                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7035$as_echo_n "checking for shared library run path origin... " >&6; }
7036if ${acl_cv_rpath+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039
7040    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7041    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7042    . ./conftest.sh
7043    rm -f ./conftest.sh
7044    acl_cv_rpath=done
7045
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7048$as_echo "$acl_cv_rpath" >&6; }
7049  wl="$acl_cv_wl"
7050  libext="$acl_cv_libext"
7051  shlibext="$acl_cv_shlibext"
7052  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7053  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7054  hardcode_direct="$acl_cv_hardcode_direct"
7055  hardcode_minus_L="$acl_cv_hardcode_minus_L"
7056    # Check whether --enable-rpath was given.
7057if test "${enable_rpath+set}" = set; then :
7058  enableval=$enable_rpath; :
7059else
7060  enable_rpath=yes
7061fi
7062
7063
7064
7065
7066
7067
7068
7069
7070    use_additional=yes
7071
7072  acl_save_prefix="$prefix"
7073  prefix="$acl_final_prefix"
7074  acl_save_exec_prefix="$exec_prefix"
7075  exec_prefix="$acl_final_exec_prefix"
7076
7077    eval additional_includedir=\"$includedir\"
7078    eval additional_libdir=\"$libdir\"
7079
7080  exec_prefix="$acl_save_exec_prefix"
7081  prefix="$acl_save_prefix"
7082
7083
7084# Check whether --with-libiconv-prefix was given.
7085if test "${with_libiconv_prefix+set}" = set; then :
7086  withval=$with_libiconv_prefix;
7087    if test "X$withval" = "Xno"; then
7088      use_additional=no
7089    else
7090      if test "X$withval" = "X"; then
7091
7092  acl_save_prefix="$prefix"
7093  prefix="$acl_final_prefix"
7094  acl_save_exec_prefix="$exec_prefix"
7095  exec_prefix="$acl_final_exec_prefix"
7096
7097          eval additional_includedir=\"$includedir\"
7098          eval additional_libdir=\"$libdir\"
7099
7100  exec_prefix="$acl_save_exec_prefix"
7101  prefix="$acl_save_prefix"
7102
7103      else
7104        additional_includedir="$withval/include"
7105        additional_libdir="$withval/lib"
7106      fi
7107    fi
7108
7109fi
7110
7111      LIBICONV=
7112  LTLIBICONV=
7113  INCICONV=
7114  rpathdirs=
7115  ltrpathdirs=
7116  names_already_handled=
7117  names_next_round='iconv '
7118  while test -n "$names_next_round"; do
7119    names_this_round="$names_next_round"
7120    names_next_round=
7121    for name in $names_this_round; do
7122      already_handled=
7123      for n in $names_already_handled; do
7124        if test "$n" = "$name"; then
7125          already_handled=yes
7126          break
7127        fi
7128      done
7129      if test -z "$already_handled"; then
7130        names_already_handled="$names_already_handled $name"
7131                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7132        eval value=\"\$HAVE_LIB$uppername\"
7133        if test -n "$value"; then
7134          if test "$value" = yes; then
7135            eval value=\"\$LIB$uppername\"
7136            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7137            eval value=\"\$LTLIB$uppername\"
7138            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7139          else
7140                                    :
7141          fi
7142        else
7143                              found_dir=
7144          found_la=
7145          found_so=
7146          found_a=
7147          if test $use_additional = yes; then
7148            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7149              found_dir="$additional_libdir"
7150              found_so="$additional_libdir/lib$name.$shlibext"
7151              if test -f "$additional_libdir/lib$name.la"; then
7152                found_la="$additional_libdir/lib$name.la"
7153              fi
7154            else
7155              if test -f "$additional_libdir/lib$name.$libext"; then
7156                found_dir="$additional_libdir"
7157                found_a="$additional_libdir/lib$name.$libext"
7158                if test -f "$additional_libdir/lib$name.la"; then
7159                  found_la="$additional_libdir/lib$name.la"
7160                fi
7161              fi
7162            fi
7163          fi
7164          if test "X$found_dir" = "X"; then
7165            for x in $LDFLAGS $LTLIBICONV; do
7166
7167  acl_save_prefix="$prefix"
7168  prefix="$acl_final_prefix"
7169  acl_save_exec_prefix="$exec_prefix"
7170  exec_prefix="$acl_final_exec_prefix"
7171  eval x=\"$x\"
7172  exec_prefix="$acl_save_exec_prefix"
7173  prefix="$acl_save_prefix"
7174
7175              case "$x" in
7176                -L*)
7177                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7178                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7179                    found_dir="$dir"
7180                    found_so="$dir/lib$name.$shlibext"
7181                    if test -f "$dir/lib$name.la"; then
7182                      found_la="$dir/lib$name.la"
7183                    fi
7184                  else
7185                    if test -f "$dir/lib$name.$libext"; then
7186                      found_dir="$dir"
7187                      found_a="$dir/lib$name.$libext"
7188                      if test -f "$dir/lib$name.la"; then
7189                        found_la="$dir/lib$name.la"
7190                      fi
7191                    fi
7192                  fi
7193                  ;;
7194              esac
7195              if test "X$found_dir" != "X"; then
7196                break
7197              fi
7198            done
7199          fi
7200          if test "X$found_dir" != "X"; then
7201                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7202            if test "X$found_so" != "X"; then
7203                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7204                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7205              else
7206                                                                                haveit=
7207                for x in $ltrpathdirs; do
7208                  if test "X$x" = "X$found_dir"; then
7209                    haveit=yes
7210                    break
7211                  fi
7212                done
7213                if test -z "$haveit"; then
7214                  ltrpathdirs="$ltrpathdirs $found_dir"
7215                fi
7216                                if test "$hardcode_direct" = yes; then
7217                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7218                else
7219                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7220                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7221                                                            haveit=
7222                    for x in $rpathdirs; do
7223                      if test "X$x" = "X$found_dir"; then
7224                        haveit=yes
7225                        break
7226                      fi
7227                    done
7228                    if test -z "$haveit"; then
7229                      rpathdirs="$rpathdirs $found_dir"
7230                    fi
7231                  else
7232                                                                                haveit=
7233                    for x in $LDFLAGS $LIBICONV; do
7234
7235  acl_save_prefix="$prefix"
7236  prefix="$acl_final_prefix"
7237  acl_save_exec_prefix="$exec_prefix"
7238  exec_prefix="$acl_final_exec_prefix"
7239  eval x=\"$x\"
7240  exec_prefix="$acl_save_exec_prefix"
7241  prefix="$acl_save_prefix"
7242
7243                      if test "X$x" = "X-L$found_dir"; then
7244                        haveit=yes
7245                        break
7246                      fi
7247                    done
7248                    if test -z "$haveit"; then
7249                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7250                    fi
7251                    if test "$hardcode_minus_L" != no; then
7252                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7253                    else
7254                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7255                    fi
7256                  fi
7257                fi
7258              fi
7259            else
7260              if test "X$found_a" != "X"; then
7261                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7262              else
7263                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7264              fi
7265            fi
7266                        additional_includedir=
7267            case "$found_dir" in
7268              */lib | */lib/)
7269                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7270                additional_includedir="$basedir/include"
7271                ;;
7272            esac
7273            if test "X$additional_includedir" != "X"; then
7274                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7275                haveit=
7276                if test "X$additional_includedir" = "X/usr/local/include"; then
7277                  if test -n "$GCC"; then
7278                    case $host_os in
7279                      linux*) haveit=yes;;
7280                    esac
7281                  fi
7282                fi
7283                if test -z "$haveit"; then
7284                  for x in $CPPFLAGS $INCICONV; do
7285
7286  acl_save_prefix="$prefix"
7287  prefix="$acl_final_prefix"
7288  acl_save_exec_prefix="$exec_prefix"
7289  exec_prefix="$acl_final_exec_prefix"
7290  eval x=\"$x\"
7291  exec_prefix="$acl_save_exec_prefix"
7292  prefix="$acl_save_prefix"
7293
7294                    if test "X$x" = "X-I$additional_includedir"; then
7295                      haveit=yes
7296                      break
7297                    fi
7298                  done
7299                  if test -z "$haveit"; then
7300                    if test -d "$additional_includedir"; then
7301                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7302                    fi
7303                  fi
7304                fi
7305              fi
7306            fi
7307                        if test -n "$found_la"; then
7308                                                        save_libdir="$libdir"
7309              case "$found_la" in
7310                */* | *\\*) . "$found_la" ;;
7311                *) . "./$found_la" ;;
7312              esac
7313              libdir="$save_libdir"
7314                            for dep in $dependency_libs; do
7315                case "$dep" in
7316                  -L*)
7317                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7318                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7319                      haveit=
7320                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7321                        if test -n "$GCC"; then
7322                          case $host_os in
7323                            linux*) haveit=yes;;
7324                          esac
7325                        fi
7326                      fi
7327                      if test -z "$haveit"; then
7328                        haveit=
7329                        for x in $LDFLAGS $LIBICONV; do
7330
7331  acl_save_prefix="$prefix"
7332  prefix="$acl_final_prefix"
7333  acl_save_exec_prefix="$exec_prefix"
7334  exec_prefix="$acl_final_exec_prefix"
7335  eval x=\"$x\"
7336  exec_prefix="$acl_save_exec_prefix"
7337  prefix="$acl_save_prefix"
7338
7339                          if test "X$x" = "X-L$additional_libdir"; then
7340                            haveit=yes
7341                            break
7342                          fi
7343                        done
7344                        if test -z "$haveit"; then
7345                          if test -d "$additional_libdir"; then
7346                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7347                          fi
7348                        fi
7349                        haveit=
7350                        for x in $LDFLAGS $LTLIBICONV; do
7351
7352  acl_save_prefix="$prefix"
7353  prefix="$acl_final_prefix"
7354  acl_save_exec_prefix="$exec_prefix"
7355  exec_prefix="$acl_final_exec_prefix"
7356  eval x=\"$x\"
7357  exec_prefix="$acl_save_exec_prefix"
7358  prefix="$acl_save_prefix"
7359
7360                          if test "X$x" = "X-L$additional_libdir"; then
7361                            haveit=yes
7362                            break
7363                          fi
7364                        done
7365                        if test -z "$haveit"; then
7366                          if test -d "$additional_libdir"; then
7367                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7368                          fi
7369                        fi
7370                      fi
7371                    fi
7372                    ;;
7373                  -R*)
7374                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7375                    if test "$enable_rpath" != no; then
7376                                                                  haveit=
7377                      for x in $rpathdirs; do
7378                        if test "X$x" = "X$dir"; then
7379                          haveit=yes
7380                          break
7381                        fi
7382                      done
7383                      if test -z "$haveit"; then
7384                        rpathdirs="$rpathdirs $dir"
7385                      fi
7386                                                                  haveit=
7387                      for x in $ltrpathdirs; do
7388                        if test "X$x" = "X$dir"; then
7389                          haveit=yes
7390                          break
7391                        fi
7392                      done
7393                      if test -z "$haveit"; then
7394                        ltrpathdirs="$ltrpathdirs $dir"
7395                      fi
7396                    fi
7397                    ;;
7398                  -l*)
7399                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7400                    ;;
7401                  *.la)
7402                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7403                    ;;
7404                  *)
7405                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7406                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7407                    ;;
7408                esac
7409              done
7410            fi
7411          else
7412                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7413            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7414          fi
7415        fi
7416      fi
7417    done
7418  done
7419  if test "X$rpathdirs" != "X"; then
7420    if test -n "$hardcode_libdir_separator"; then
7421                        alldirs=
7422      for found_dir in $rpathdirs; do
7423        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7424      done
7425            acl_save_libdir="$libdir"
7426      libdir="$alldirs"
7427      eval flag=\"$hardcode_libdir_flag_spec\"
7428      libdir="$acl_save_libdir"
7429      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7430    else
7431            for found_dir in $rpathdirs; do
7432        acl_save_libdir="$libdir"
7433        libdir="$found_dir"
7434        eval flag=\"$hardcode_libdir_flag_spec\"
7435        libdir="$acl_save_libdir"
7436        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7437      done
7438    fi
7439  fi
7440  if test "X$ltrpathdirs" != "X"; then
7441            for found_dir in $ltrpathdirs; do
7442      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7443    done
7444  fi
7445
7446
7447
7448
7449
7450
7451
7452          am_save_CPPFLAGS="$CPPFLAGS"
7453
7454  for element in $INCICONV; do
7455    haveit=
7456    for x in $CPPFLAGS; do
7457
7458  acl_save_prefix="$prefix"
7459  prefix="$acl_final_prefix"
7460  acl_save_exec_prefix="$exec_prefix"
7461  exec_prefix="$acl_final_exec_prefix"
7462  eval x=\"$x\"
7463  exec_prefix="$acl_save_exec_prefix"
7464  prefix="$acl_save_prefix"
7465
7466      if test "X$x" = "X$element"; then
7467        haveit=yes
7468        break
7469      fi
7470    done
7471    if test -z "$haveit"; then
7472      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7473    fi
7474  done
7475
7476
7477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7478$as_echo_n "checking for iconv... " >&6; }
7479if ${am_cv_func_iconv+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482
7483    am_cv_func_iconv="no, consider installing GNU libiconv"
7484    am_cv_lib_iconv=no
7485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487#include <stdlib.h>
7488#include <iconv.h>
7489int
7490main ()
7491{
7492iconv_t cd = iconv_open("","");
7493       iconv(cd,NULL,NULL,NULL,NULL);
7494       iconv_close(cd);
7495  ;
7496  return 0;
7497}
7498_ACEOF
7499if ac_fn_c_try_link "$LINENO"; then :
7500  am_cv_func_iconv=yes
7501fi
7502rm -f core conftest.err conftest.$ac_objext \
7503    conftest$ac_exeext conftest.$ac_ext
7504    if test "$am_cv_func_iconv" != yes; then
7505      am_save_LIBS="$LIBS"
7506      LIBS="$LIBS $LIBICONV"
7507      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509#include <stdlib.h>
7510#include <iconv.h>
7511int
7512main ()
7513{
7514iconv_t cd = iconv_open("","");
7515         iconv(cd,NULL,NULL,NULL,NULL);
7516         iconv_close(cd);
7517  ;
7518  return 0;
7519}
7520_ACEOF
7521if ac_fn_c_try_link "$LINENO"; then :
7522  am_cv_lib_iconv=yes
7523        am_cv_func_iconv=yes
7524fi
7525rm -f core conftest.err conftest.$ac_objext \
7526    conftest$ac_exeext conftest.$ac_ext
7527      LIBS="$am_save_LIBS"
7528    fi
7529
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7532$as_echo "$am_cv_func_iconv" >&6; }
7533  if test "$am_cv_func_iconv" = yes; then
7534
7535$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7536
7537  fi
7538  if test "$am_cv_lib_iconv" = yes; then
7539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7540$as_echo_n "checking how to link with libiconv... " >&6; }
7541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7542$as_echo "$LIBICONV" >&6; }
7543  else
7544            CPPFLAGS="$am_save_CPPFLAGS"
7545    LIBICONV=
7546    LTLIBICONV=
7547  fi
7548
7549
7550
7551  if test "$am_cv_func_iconv" = yes; then
7552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7553$as_echo_n "checking for iconv declaration... " >&6; }
7554    if ${am_cv_proto_iconv+:} false; then :
7555  $as_echo_n "(cached) " >&6
7556else
7557
7558      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559/* end confdefs.h.  */
7560
7561#include <stdlib.h>
7562#include <iconv.h>
7563extern
7564#ifdef __cplusplus
7565"C"
7566#endif
7567#if defined(__STDC__) || defined(__cplusplus)
7568size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7569#else
7570size_t iconv();
7571#endif
7572
7573int
7574main ()
7575{
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582  am_cv_proto_iconv_arg1=""
7583else
7584  am_cv_proto_iconv_arg1="const"
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7588fi
7589
7590    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7592         }$am_cv_proto_iconv" >&5
7593$as_echo "${ac_t:-
7594         }$am_cv_proto_iconv" >&6; }
7595
7596cat >>confdefs.h <<_ACEOF
7597#define ICONV_CONST $am_cv_proto_iconv_arg1
7598_ACEOF
7599
7600  fi
7601
7602
7603$as_echo "#define ENABLE_UNICODE 1" >>confdefs.h
7604
7605	ENCODING="utf-8"
7606fi
7607DEFAULT_CHARSET="iso-8859-1"
7608
7609
7610if test x$USE_UNICODE != xYES ; then
7611# Check whether --enable-russian was given.
7612if test "${enable_russian+set}" = set; then :
7613  enableval=$enable_russian; if test "$enableval" = no; then
7614		USE_CP866=NO
7615	else
7616		USE_CP866=YES
7617	fi
7618
7619fi
7620
7621
7622if test x$USE_CP866 = xYES ; then
7623
7624$as_echo "#define CP866 1" >>confdefs.h
7625
7626	DEFAULT_CHARSET="CP866"
7627fi
7628fi
7629
7630
7631# Check whether --with-charset was given.
7632if test "${with_charset+set}" = set; then :
7633  withval=$with_charset;
7634cat >>confdefs.h <<_ACEOF
7635#define DEFAULT_CHARSET "$withval"
7636_ACEOF
7637
7638
7639fi
7640
7641
7642
7643
7644
7645cat >>confdefs.h <<_ACEOF
7646#define DEFAULT_CHARSET "$DEFAULT_CHARSET"
7647_ACEOF
7648
7649
7650
7651# Check whether --enable-memdebug was given.
7652if test "${enable_memdebug+set}" = set; then :
7653  enableval=$enable_memdebug; if test "$enableval" = no; then
7654		USE_MEMDEBUG=NO
7655	else
7656		USE_MEMDEBUG=YES
7657	fi
7658
7659fi
7660
7661
7662if test x$USE_MEMDEBUG = xYES ; then
7663
7664$as_echo "#define ENABLE_MEMDEBUG 1" >>confdefs.h
7665
7666fi
7667 if test x$USE_MEMDEBUG = xYES; then
7668  ENABLE_MEMDEBUG_TRUE=
7669  ENABLE_MEMDEBUG_FALSE='#'
7670else
7671  ENABLE_MEMDEBUG_TRUE='#'
7672  ENABLE_MEMDEBUG_FALSE=
7673fi
7674
7675
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7677$as_echo_n "checking for ANSI C header files... " >&6; }
7678if ${ac_cv_header_stdc+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682/* end confdefs.h.  */
7683#include <stdlib.h>
7684#include <stdarg.h>
7685#include <string.h>
7686#include <float.h>
7687
7688int
7689main ()
7690{
7691
7692  ;
7693  return 0;
7694}
7695_ACEOF
7696if ac_fn_c_try_compile "$LINENO"; then :
7697  ac_cv_header_stdc=yes
7698else
7699  ac_cv_header_stdc=no
7700fi
7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702
7703if test $ac_cv_header_stdc = yes; then
7704  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h.  */
7707#include <string.h>
7708
7709_ACEOF
7710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711  $EGREP "memchr" >/dev/null 2>&1; then :
7712
7713else
7714  ac_cv_header_stdc=no
7715fi
7716rm -f conftest*
7717
7718fi
7719
7720if test $ac_cv_header_stdc = yes; then
7721  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724#include <stdlib.h>
7725
7726_ACEOF
7727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728  $EGREP "free" >/dev/null 2>&1; then :
7729
7730else
7731  ac_cv_header_stdc=no
7732fi
7733rm -f conftest*
7734
7735fi
7736
7737if test $ac_cv_header_stdc = yes; then
7738  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7739  if test "$cross_compiling" = yes; then :
7740  :
7741else
7742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743/* end confdefs.h.  */
7744#include <ctype.h>
7745#include <stdlib.h>
7746#if ((' ' & 0x0FF) == 0x020)
7747# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7748# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7749#else
7750# define ISLOWER(c) \
7751		   (('a' <= (c) && (c) <= 'i') \
7752		     || ('j' <= (c) && (c) <= 'r') \
7753		     || ('s' <= (c) && (c) <= 'z'))
7754# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7755#endif
7756
7757#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7758int
7759main ()
7760{
7761  int i;
7762  for (i = 0; i < 256; i++)
7763    if (XOR (islower (i), ISLOWER (i))
7764	|| toupper (i) != TOUPPER (i))
7765      return 2;
7766  return 0;
7767}
7768_ACEOF
7769if ac_fn_c_try_run "$LINENO"; then :
7770
7771else
7772  ac_cv_header_stdc=no
7773fi
7774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7775  conftest.$ac_objext conftest.beam conftest.$ac_ext
7776fi
7777
7778fi
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7781$as_echo "$ac_cv_header_stdc" >&6; }
7782if test $ac_cv_header_stdc = yes; then
7783
7784$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7785
7786fi
7787
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7789$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7790if ${ac_cv_header_stdbool_h+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h.  */
7795
7796#include <stdbool.h>
7797#ifndef bool
7798# error bool is not defined
7799#endif
7800#ifndef false
7801# error false is not defined
7802#endif
7803#if false
7804# error false is not 0
7805#endif
7806#ifndef true
7807# error true is not defined
7808#endif
7809#if true != 1
7810# error true is not 1
7811#endif
7812#ifndef __bool_true_false_are_defined
7813# error __bool_true_false_are_defined is not defined
7814#endif
7815
7816        struct s { _Bool s: 1; _Bool t; } s;
7817
7818        char a[true == 1 ? 1 : -1];
7819        char b[false == 0 ? 1 : -1];
7820        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7821        char d[(bool) -0.5 == true ? 1 : -1];
7822        bool e = &s;
7823        char f[(_Bool) -0.0 == false ? 1 : -1];
7824        char g[true];
7825        char h[sizeof (_Bool)];
7826        char i[sizeof s.t];
7827
7828int
7829main ()
7830{
7831 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7832  ;
7833  return 0;
7834}
7835_ACEOF
7836if ac_fn_c_try_compile "$LINENO"; then :
7837  ac_cv_header_stdbool_h=yes
7838else
7839  ac_cv_header_stdbool_h=no
7840fi
7841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7844$as_echo "$ac_cv_header_stdbool_h" >&6; }
7845ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7846if test "x$ac_cv_type__Bool" = xyes; then :
7847
7848cat >>confdefs.h <<_ACEOF
7849#define HAVE__BOOL 1
7850_ACEOF
7851
7852
7853fi
7854
7855if test $ac_cv_header_stdbool_h = yes; then
7856
7857$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7858
7859fi
7860
7861ac_header_dirent=no
7862for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7863  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7865$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7866if eval \${$as_ac_Header+:} false; then :
7867  $as_echo_n "(cached) " >&6
7868else
7869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870/* end confdefs.h.  */
7871#include <sys/types.h>
7872#include <$ac_hdr>
7873
7874int
7875main ()
7876{
7877if ((DIR *) 0)
7878return 0;
7879  ;
7880  return 0;
7881}
7882_ACEOF
7883if ac_fn_c_try_compile "$LINENO"; then :
7884  eval "$as_ac_Header=yes"
7885else
7886  eval "$as_ac_Header=no"
7887fi
7888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889fi
7890eval ac_res=\$$as_ac_Header
7891	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7892$as_echo "$ac_res" >&6; }
7893if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7894  cat >>confdefs.h <<_ACEOF
7895#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7896_ACEOF
7897
7898ac_header_dirent=$ac_hdr; break
7899fi
7900
7901done
7902# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7903if test $ac_header_dirent = dirent.h; then
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7905$as_echo_n "checking for library containing opendir... " >&6; }
7906if ${ac_cv_search_opendir+:} false; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  ac_func_search_save_LIBS=$LIBS
7910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911/* end confdefs.h.  */
7912
7913/* Override any GCC internal prototype to avoid an error.
7914   Use char because int might match the return type of a GCC
7915   builtin and then its argument prototype would still apply.  */
7916#ifdef __cplusplus
7917extern "C"
7918#endif
7919char opendir ();
7920int
7921main ()
7922{
7923return opendir ();
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928for ac_lib in '' dir; do
7929  if test -z "$ac_lib"; then
7930    ac_res="none required"
7931  else
7932    ac_res=-l$ac_lib
7933    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7934  fi
7935  if ac_fn_c_try_link "$LINENO"; then :
7936  ac_cv_search_opendir=$ac_res
7937fi
7938rm -f core conftest.err conftest.$ac_objext \
7939    conftest$ac_exeext
7940  if ${ac_cv_search_opendir+:} false; then :
7941  break
7942fi
7943done
7944if ${ac_cv_search_opendir+:} false; then :
7945
7946else
7947  ac_cv_search_opendir=no
7948fi
7949rm conftest.$ac_ext
7950LIBS=$ac_func_search_save_LIBS
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7953$as_echo "$ac_cv_search_opendir" >&6; }
7954ac_res=$ac_cv_search_opendir
7955if test "$ac_res" != no; then :
7956  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7957
7958fi
7959
7960else
7961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7962$as_echo_n "checking for library containing opendir... " >&6; }
7963if ${ac_cv_search_opendir+:} false; then :
7964  $as_echo_n "(cached) " >&6
7965else
7966  ac_func_search_save_LIBS=$LIBS
7967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968/* end confdefs.h.  */
7969
7970/* Override any GCC internal prototype to avoid an error.
7971   Use char because int might match the return type of a GCC
7972   builtin and then its argument prototype would still apply.  */
7973#ifdef __cplusplus
7974extern "C"
7975#endif
7976char opendir ();
7977int
7978main ()
7979{
7980return opendir ();
7981  ;
7982  return 0;
7983}
7984_ACEOF
7985for ac_lib in '' x; do
7986  if test -z "$ac_lib"; then
7987    ac_res="none required"
7988  else
7989    ac_res=-l$ac_lib
7990    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7991  fi
7992  if ac_fn_c_try_link "$LINENO"; then :
7993  ac_cv_search_opendir=$ac_res
7994fi
7995rm -f core conftest.err conftest.$ac_objext \
7996    conftest$ac_exeext
7997  if ${ac_cv_search_opendir+:} false; then :
7998  break
7999fi
8000done
8001if ${ac_cv_search_opendir+:} false; then :
8002
8003else
8004  ac_cv_search_opendir=no
8005fi
8006rm conftest.$ac_ext
8007LIBS=$ac_func_search_save_LIBS
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8010$as_echo "$ac_cv_search_opendir" >&6; }
8011ac_res=$ac_cv_search_opendir
8012if test "$ac_res" != no; then :
8013  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8014
8015fi
8016
8017fi
8018
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8020$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8021if ${ac_cv_header_time+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026#include <sys/types.h>
8027#include <sys/time.h>
8028#include <time.h>
8029
8030int
8031main ()
8032{
8033if ((struct tm *) 0)
8034return 0;
8035  ;
8036  return 0;
8037}
8038_ACEOF
8039if ac_fn_c_try_compile "$LINENO"; then :
8040  ac_cv_header_time=yes
8041else
8042  ac_cv_header_time=no
8043fi
8044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045fi
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8047$as_echo "$ac_cv_header_time" >&6; }
8048if test $ac_cv_header_time = yes; then
8049
8050$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8051
8052fi
8053
8054for ac_header in sys/types.h sys/stat.h stdlib.h syslog.h sys/param.h fcntl.h string.h strings.h memory.h unistd.h sys/time.h sys/select.h inttypes.h stdarg.h stdint.h
8055do :
8056  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8057ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8058if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8059  cat >>confdefs.h <<_ACEOF
8060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8061_ACEOF
8062
8063fi
8064
8065done
8066
8067for ac_header in limits.h float.h
8068do :
8069  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8070ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8071if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8072  cat >>confdefs.h <<_ACEOF
8073#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8074_ACEOF
8075
8076else
8077  for ac_header in values.h
8078do :
8079  ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
8080if test "x$ac_cv_header_values_h" = xyes; then :
8081  cat >>confdefs.h <<_ACEOF
8082#define HAVE_VALUES_H 1
8083_ACEOF
8084
8085fi
8086
8087done
8088
8089fi
8090
8091done
8092
8093
8094ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8095if test "x$ac_cv_type_pid_t" = xyes; then :
8096
8097else
8098
8099cat >>confdefs.h <<_ACEOF
8100#define pid_t int
8101_ACEOF
8102
8103fi
8104
8105ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8106if test "x$ac_cv_type_size_t" = xyes; then :
8107
8108else
8109
8110cat >>confdefs.h <<_ACEOF
8111#define size_t unsigned int
8112_ACEOF
8113
8114fi
8115
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8117$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8118if ${ac_cv_type_uid_t+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h.  */
8123#include <sys/types.h>
8124
8125_ACEOF
8126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8127  $EGREP "uid_t" >/dev/null 2>&1; then :
8128  ac_cv_type_uid_t=yes
8129else
8130  ac_cv_type_uid_t=no
8131fi
8132rm -f conftest*
8133
8134fi
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8136$as_echo "$ac_cv_type_uid_t" >&6; }
8137if test $ac_cv_type_uid_t = no; then
8138
8139$as_echo "#define uid_t int" >>confdefs.h
8140
8141
8142$as_echo "#define gid_t int" >>confdefs.h
8143
8144fi
8145
8146for ac_header in sys/select.h sys/socket.h
8147do :
8148  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8149ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8151  cat >>confdefs.h <<_ACEOF
8152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8153_ACEOF
8154
8155fi
8156
8157done
8158
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8160$as_echo_n "checking types of arguments for select... " >&6; }
8161if ${ac_cv_func_select_args+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8165 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8166  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168/* end confdefs.h.  */
8169$ac_includes_default
8170#ifdef HAVE_SYS_SELECT_H
8171# include <sys/select.h>
8172#endif
8173#ifdef HAVE_SYS_SOCKET_H
8174# include <sys/socket.h>
8175#endif
8176
8177int
8178main ()
8179{
8180extern int select ($ac_arg1,
8181					    $ac_arg234, $ac_arg234, $ac_arg234,
8182					    $ac_arg5);
8183  ;
8184  return 0;
8185}
8186_ACEOF
8187if ac_fn_c_try_compile "$LINENO"; then :
8188  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8189fi
8190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191  done
8192 done
8193done
8194# Provide a safe default value.
8195: "${ac_cv_func_select_args=int,int *,struct timeval *}"
8196
8197fi
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
8199$as_echo "$ac_cv_func_select_args" >&6; }
8200ac_save_IFS=$IFS; IFS=','
8201set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8202IFS=$ac_save_IFS
8203shift
8204
8205cat >>confdefs.h <<_ACEOF
8206#define SELECT_TYPE_ARG1 $1
8207_ACEOF
8208
8209
8210cat >>confdefs.h <<_ACEOF
8211#define SELECT_TYPE_ARG234 ($2)
8212_ACEOF
8213
8214
8215cat >>confdefs.h <<_ACEOF
8216#define SELECT_TYPE_ARG5 ($3)
8217_ACEOF
8218
8219rm -f conftest*
8220
8221ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
8222if test "x$ac_cv_type_uint" = xyes; then :
8223
8224cat >>confdefs.h <<_ACEOF
8225#define HAVE_UINT 1
8226_ACEOF
8227
8228
8229fi
8230ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
8231if test "x$ac_cv_type_ulong" = xyes; then :
8232
8233cat >>confdefs.h <<_ACEOF
8234#define HAVE_ULONG 1
8235_ACEOF
8236
8237
8238fi
8239ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
8240if test "x$ac_cv_type_uint32_t" = xyes; then :
8241
8242cat >>confdefs.h <<_ACEOF
8243#define HAVE_UINT32_T 1
8244_ACEOF
8245
8246
8247fi
8248ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
8249if test "x$ac_cv_type_u_int32_t" = xyes; then :
8250
8251cat >>confdefs.h <<_ACEOF
8252#define HAVE_U_INT32_T 1
8253_ACEOF
8254
8255
8256fi
8257ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
8258if test "x$ac_cv_type_int32_t" = xyes; then :
8259
8260cat >>confdefs.h <<_ACEOF
8261#define HAVE_INT32_T 1
8262_ACEOF
8263
8264
8265fi
8266ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
8267if test "x$ac_cv_type_int16_t" = xyes; then :
8268
8269cat >>confdefs.h <<_ACEOF
8270#define HAVE_INT16_T 1
8271_ACEOF
8272
8273
8274fi
8275ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
8276if test "x$ac_cv_type_u_int16_t" = xyes; then :
8277
8278cat >>confdefs.h <<_ACEOF
8279#define HAVE_U_INT16_T 1
8280_ACEOF
8281
8282
8283fi
8284ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
8285if test "x$ac_cv_type_uint16_t" = xyes; then :
8286
8287cat >>confdefs.h <<_ACEOF
8288#define HAVE_UINT16_T 1
8289_ACEOF
8290
8291
8292fi
8293ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
8294if test "x$ac_cv_type_u_int8_t" = xyes; then :
8295
8296cat >>confdefs.h <<_ACEOF
8297#define HAVE_U_INT8_T 1
8298_ACEOF
8299
8300
8301fi
8302ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8303if test "x$ac_cv_type_ssize_t" = xyes; then :
8304
8305cat >>confdefs.h <<_ACEOF
8306#define HAVE_SSIZE_T 1
8307_ACEOF
8308
8309
8310fi
8311
8312ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
8313if test "x$ac_cv_type_u_long" = xyes; then :
8314
8315else
8316
8317cat >>confdefs.h <<_ACEOF
8318#define u_long unsigned long
8319_ACEOF
8320
8321fi
8322
8323ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
8324#include <signal.h>
8325
8326"
8327if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
8328
8329cat >>confdefs.h <<_ACEOF
8330#define HAVE_SIG_ATOMIC_T 1
8331_ACEOF
8332
8333
8334fi
8335
8336ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
8337#ifdef HAVE_SYS_TYPES_H
8338#include <sys/types.h>
8339#endif
8340#ifdef HAVE_SYS_TIME_H
8341#include <sys/time.h>
8342#endif
8343#include <sys/resource.h>
8344
8345"
8346if test "x$ac_cv_type_rlim_t" = xyes; then :
8347
8348cat >>confdefs.h <<_ACEOF
8349#define HAVE_RLIM_T 1
8350_ACEOF
8351
8352
8353fi
8354
8355cat >confcache <<\_ACEOF
8356# This file is a shell script that caches the results of configure
8357# tests run on this system so they can be shared between configure
8358# scripts and configure runs, see configure's option --config-cache.
8359# It is not useful on other systems.  If it contains results you don't
8360# want to keep, you may remove or edit it.
8361#
8362# config.status only pays attention to the cache file if you give it
8363# the --recheck option to rerun configure.
8364#
8365# `ac_cv_env_foo' variables (set or unset) will be overridden when
8366# loading this file, other *unset* `ac_cv_foo' will be assigned the
8367# following values.
8368
8369_ACEOF
8370
8371# The following way of writing the cache mishandles newlines in values,
8372# but we know of no workaround that is simple, portable, and efficient.
8373# So, we kill variables containing newlines.
8374# Ultrix sh set writes to stderr and can't be redirected directly,
8375# and sets the high bit in the cache file unless we assign to the vars.
8376(
8377  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8378    eval ac_val=\$$ac_var
8379    case $ac_val in #(
8380    *${as_nl}*)
8381      case $ac_var in #(
8382      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8383$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8384      esac
8385      case $ac_var in #(
8386      _ | IFS | as_nl) ;; #(
8387      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8388      *) { eval $ac_var=; unset $ac_var;} ;;
8389      esac ;;
8390    esac
8391  done
8392
8393  (set) 2>&1 |
8394    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8395    *${as_nl}ac_space=\ *)
8396      # `set' does not quote correctly, so add quotes: double-quote
8397      # substitution turns \\\\ into \\, and sed turns \\ into \.
8398      sed -n \
8399	"s/'/'\\\\''/g;
8400	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8401      ;; #(
8402    *)
8403      # `set' quotes correctly as required by POSIX, so do not add quotes.
8404      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8405      ;;
8406    esac |
8407    sort
8408) |
8409  sed '
8410     /^ac_cv_env_/b end
8411     t clear
8412     :clear
8413     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8414     t end
8415     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8416     :end' >>confcache
8417if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8418  if test -w "$cache_file"; then
8419    if test "x$cache_file" != "x/dev/null"; then
8420      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8421$as_echo "$as_me: updating cache $cache_file" >&6;}
8422      if test ! -f "$cache_file" || test -h "$cache_file"; then
8423	cat confcache >"$cache_file"
8424      else
8425        case $cache_file in #(
8426        */* | ?:*)
8427	  mv -f confcache "$cache_file"$$ &&
8428	  mv -f "$cache_file"$$ "$cache_file" ;; #(
8429        *)
8430	  mv -f confcache "$cache_file" ;;
8431	esac
8432      fi
8433    fi
8434  else
8435    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8436$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8437  fi
8438fi
8439rm -f confcache
8440# The cast to long int works around a bug in the HP C Compiler
8441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8443# This bug is HP SR number 8606223364.
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8445$as_echo_n "checking size of short... " >&6; }
8446if ${ac_cv_sizeof_short+:} false; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
8450
8451else
8452  if test "$ac_cv_type_short" = yes; then
8453     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8455as_fn_error 77 "cannot compute sizeof (short)
8456See \`config.log' for more details" "$LINENO" 5; }
8457   else
8458     ac_cv_sizeof_short=0
8459   fi
8460fi
8461
8462fi
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8464$as_echo "$ac_cv_sizeof_short" >&6; }
8465
8466
8467
8468cat >>confdefs.h <<_ACEOF
8469#define SIZEOF_SHORT $ac_cv_sizeof_short
8470_ACEOF
8471
8472
8473# The cast to long int works around a bug in the HP C Compiler
8474# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8475# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8476# This bug is HP SR number 8606223364.
8477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8478$as_echo_n "checking size of int... " >&6; }
8479if ${ac_cv_sizeof_int+:} false; then :
8480  $as_echo_n "(cached) " >&6
8481else
8482  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
8483
8484else
8485  if test "$ac_cv_type_int" = yes; then
8486     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8488as_fn_error 77 "cannot compute sizeof (int)
8489See \`config.log' for more details" "$LINENO" 5; }
8490   else
8491     ac_cv_sizeof_int=0
8492   fi
8493fi
8494
8495fi
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8497$as_echo "$ac_cv_sizeof_int" >&6; }
8498
8499
8500
8501cat >>confdefs.h <<_ACEOF
8502#define SIZEOF_INT $ac_cv_sizeof_int
8503_ACEOF
8504
8505
8506# The cast to long int works around a bug in the HP C Compiler
8507# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8508# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8509# This bug is HP SR number 8606223364.
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8511$as_echo_n "checking size of long... " >&6; }
8512if ${ac_cv_sizeof_long+:} false; then :
8513  $as_echo_n "(cached) " >&6
8514else
8515  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
8516
8517else
8518  if test "$ac_cv_type_long" = yes; then
8519     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8521as_fn_error 77 "cannot compute sizeof (long)
8522See \`config.log' for more details" "$LINENO" 5; }
8523   else
8524     ac_cv_sizeof_long=0
8525   fi
8526fi
8527
8528fi
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8530$as_echo "$ac_cv_sizeof_long" >&6; }
8531
8532
8533
8534cat >>confdefs.h <<_ACEOF
8535#define SIZEOF_LONG $ac_cv_sizeof_long
8536_ACEOF
8537
8538
8539# The cast to long int works around a bug in the HP C Compiler
8540# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8541# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8542# This bug is HP SR number 8606223364.
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8544$as_echo_n "checking size of size_t... " >&6; }
8545if ${ac_cv_sizeof_size_t+:} false; then :
8546  $as_echo_n "(cached) " >&6
8547else
8548  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
8549
8550else
8551  if test "$ac_cv_type_size_t" = yes; then
8552     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8554as_fn_error 77 "cannot compute sizeof (size_t)
8555See \`config.log' for more details" "$LINENO" 5; }
8556   else
8557     ac_cv_sizeof_size_t=0
8558   fi
8559fi
8560
8561fi
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8563$as_echo "$ac_cv_sizeof_size_t" >&6; }
8564
8565
8566
8567cat >>confdefs.h <<_ACEOF
8568#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8569_ACEOF
8570
8571
8572
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8574$as_echo_n "checking for working memcmp... " >&6; }
8575if ${ac_cv_func_memcmp_working+:} false; then :
8576  $as_echo_n "(cached) " >&6
8577else
8578  if test "$cross_compiling" = yes; then :
8579  ac_cv_func_memcmp_working=no
8580else
8581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582/* end confdefs.h.  */
8583$ac_includes_default
8584int
8585main ()
8586{
8587
8588  /* Some versions of memcmp are not 8-bit clean.  */
8589  char c0 = '\100', c1 = '\200', c2 = '\201';
8590  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8591    return 1;
8592
8593  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8594     or more and with at least one buffer not starting on a 4-byte boundary.
8595     William Lewis provided this test program.   */
8596  {
8597    char foo[21];
8598    char bar[21];
8599    int i;
8600    for (i = 0; i < 4; i++)
8601      {
8602	char *a = foo + i;
8603	char *b = bar + i;
8604	strcpy (a, "--------01111111");
8605	strcpy (b, "--------10000000");
8606	if (memcmp (a, b, 16) >= 0)
8607	  return 1;
8608      }
8609    return 0;
8610  }
8611
8612  ;
8613  return 0;
8614}
8615_ACEOF
8616if ac_fn_c_try_run "$LINENO"; then :
8617  ac_cv_func_memcmp_working=yes
8618else
8619  ac_cv_func_memcmp_working=no
8620fi
8621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8622  conftest.$ac_objext conftest.beam conftest.$ac_ext
8623fi
8624
8625fi
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8627$as_echo "$ac_cv_func_memcmp_working" >&6; }
8628test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8629  *" memcmp.$ac_objext "* ) ;;
8630  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8631 ;;
8632esac
8633
8634
8635
8636
8637
8638  for ac_header in $ac_header_list
8639do :
8640  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8641ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8642"
8643if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8644  cat >>confdefs.h <<_ACEOF
8645#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8646_ACEOF
8647
8648fi
8649
8650done
8651
8652
8653
8654
8655
8656
8657
8658
8659for ac_func in getpagesize
8660do :
8661  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8662if test "x$ac_cv_func_getpagesize" = xyes; then :
8663  cat >>confdefs.h <<_ACEOF
8664#define HAVE_GETPAGESIZE 1
8665_ACEOF
8666
8667fi
8668done
8669
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8671$as_echo_n "checking for working mmap... " >&6; }
8672if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8673  $as_echo_n "(cached) " >&6
8674else
8675  if test "$cross_compiling" = yes; then :
8676  ac_cv_func_mmap_fixed_mapped=no
8677else
8678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679/* end confdefs.h.  */
8680$ac_includes_default
8681/* malloc might have been renamed as rpl_malloc. */
8682#undef malloc
8683
8684/* Thanks to Mike Haertel and Jim Avera for this test.
8685   Here is a matrix of mmap possibilities:
8686	mmap private not fixed
8687	mmap private fixed at somewhere currently unmapped
8688	mmap private fixed at somewhere already mapped
8689	mmap shared not fixed
8690	mmap shared fixed at somewhere currently unmapped
8691	mmap shared fixed at somewhere already mapped
8692   For private mappings, we should verify that changes cannot be read()
8693   back from the file, nor mmap's back from the file at a different
8694   address.  (There have been systems where private was not correctly
8695   implemented like the infamous i386 svr4.0, and systems where the
8696   VM page cache was not coherent with the file system buffer cache
8697   like early versions of FreeBSD and possibly contemporary NetBSD.)
8698   For shared mappings, we should conversely verify that changes get
8699   propagated back to all the places they're supposed to be.
8700
8701   Grep wants private fixed already mapped.
8702   The main things grep needs to know about mmap are:
8703   * does it exist and is it safe to write into the mmap'd area
8704   * how to use it (BSD variants)  */
8705
8706#include <fcntl.h>
8707#include <sys/mman.h>
8708
8709#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8710char *malloc ();
8711#endif
8712
8713/* This mess was copied from the GNU getpagesize.h.  */
8714#ifndef HAVE_GETPAGESIZE
8715# ifdef _SC_PAGESIZE
8716#  define getpagesize() sysconf(_SC_PAGESIZE)
8717# else /* no _SC_PAGESIZE */
8718#  ifdef HAVE_SYS_PARAM_H
8719#   include <sys/param.h>
8720#   ifdef EXEC_PAGESIZE
8721#    define getpagesize() EXEC_PAGESIZE
8722#   else /* no EXEC_PAGESIZE */
8723#    ifdef NBPG
8724#     define getpagesize() NBPG * CLSIZE
8725#     ifndef CLSIZE
8726#      define CLSIZE 1
8727#     endif /* no CLSIZE */
8728#    else /* no NBPG */
8729#     ifdef NBPC
8730#      define getpagesize() NBPC
8731#     else /* no NBPC */
8732#      ifdef PAGESIZE
8733#       define getpagesize() PAGESIZE
8734#      endif /* PAGESIZE */
8735#     endif /* no NBPC */
8736#    endif /* no NBPG */
8737#   endif /* no EXEC_PAGESIZE */
8738#  else /* no HAVE_SYS_PARAM_H */
8739#   define getpagesize() 8192	/* punt totally */
8740#  endif /* no HAVE_SYS_PARAM_H */
8741# endif /* no _SC_PAGESIZE */
8742
8743#endif /* no HAVE_GETPAGESIZE */
8744
8745int
8746main ()
8747{
8748  char *data, *data2, *data3;
8749  const char *cdata2;
8750  int i, pagesize;
8751  int fd, fd2;
8752
8753  pagesize = getpagesize ();
8754
8755  /* First, make a file with some known garbage in it. */
8756  data = (char *) malloc (pagesize);
8757  if (!data)
8758    return 1;
8759  for (i = 0; i < pagesize; ++i)
8760    *(data + i) = rand ();
8761  umask (0);
8762  fd = creat ("conftest.mmap", 0600);
8763  if (fd < 0)
8764    return 2;
8765  if (write (fd, data, pagesize) != pagesize)
8766    return 3;
8767  close (fd);
8768
8769  /* Next, check that the tail of a page is zero-filled.  File must have
8770     non-zero length, otherwise we risk SIGBUS for entire page.  */
8771  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8772  if (fd2 < 0)
8773    return 4;
8774  cdata2 = "";
8775  if (write (fd2, cdata2, 1) != 1)
8776    return 5;
8777  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8778  if (data2 == MAP_FAILED)
8779    return 6;
8780  for (i = 0; i < pagesize; ++i)
8781    if (*(data2 + i))
8782      return 7;
8783  close (fd2);
8784  if (munmap (data2, pagesize))
8785    return 8;
8786
8787  /* Next, try to mmap the file at a fixed address which already has
8788     something else allocated at it.  If we can, also make sure that
8789     we see the same garbage.  */
8790  fd = open ("conftest.mmap", O_RDWR);
8791  if (fd < 0)
8792    return 9;
8793  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8794		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
8795    return 10;
8796  for (i = 0; i < pagesize; ++i)
8797    if (*(data + i) != *(data2 + i))
8798      return 11;
8799
8800  /* Finally, make sure that changes to the mapped area do not
8801     percolate back to the file as seen by read().  (This is a bug on
8802     some variants of i386 svr4.0.)  */
8803  for (i = 0; i < pagesize; ++i)
8804    *(data2 + i) = *(data2 + i) + 1;
8805  data3 = (char *) malloc (pagesize);
8806  if (!data3)
8807    return 12;
8808  if (read (fd, data3, pagesize) != pagesize)
8809    return 13;
8810  for (i = 0; i < pagesize; ++i)
8811    if (*(data + i) != *(data3 + i))
8812      return 14;
8813  close (fd);
8814  return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_run "$LINENO"; then :
8818  ac_cv_func_mmap_fixed_mapped=yes
8819else
8820  ac_cv_func_mmap_fixed_mapped=no
8821fi
8822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8823  conftest.$ac_objext conftest.beam conftest.$ac_ext
8824fi
8825
8826fi
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8828$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8829if test $ac_cv_func_mmap_fixed_mapped = yes; then
8830
8831$as_echo "#define HAVE_MMAP 1" >>confdefs.h
8832
8833fi
8834rm -f conftest.mmap conftest.txt
8835
8836for ac_func in vprintf
8837do :
8838  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8839if test "x$ac_cv_func_vprintf" = xyes; then :
8840  cat >>confdefs.h <<_ACEOF
8841#define HAVE_VPRINTF 1
8842_ACEOF
8843
8844ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8845if test "x$ac_cv_func__doprnt" = xyes; then :
8846
8847$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8848
8849fi
8850
8851fi
8852done
8853
8854
8855
8856for ac_func in strchr strrchr memcpy memmove snprintf vsnprintf getopt_long arc4random
8857do :
8858  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8860if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8861  cat >>confdefs.h <<_ACEOF
8862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8863_ACEOF
8864
8865fi
8866done
8867
8868ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
8869if test "x$ac_cv_func_strlcpy" = xyes; then :
8870  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
8871
8872else
8873  case " $LIBOBJS " in
8874  *" strlcpy.$ac_objext "* ) ;;
8875  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
8876 ;;
8877esac
8878
8879fi
8880
8881ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
8882if test "x$ac_cv_func_strlcat" = xyes; then :
8883  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
8884
8885else
8886  case " $LIBOBJS " in
8887  *" strlcat.$ac_objext "* ) ;;
8888  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
8889 ;;
8890esac
8891
8892fi
8893
8894ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
8895if test "x$ac_cv_func_strerror" = xyes; then :
8896  $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
8897
8898else
8899  case " $LIBOBJS " in
8900  *" strerror.$ac_objext "* ) ;;
8901  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
8902 ;;
8903esac
8904
8905fi
8906
8907ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
8908if test "x$ac_cv_func_strtoul" = xyes; then :
8909  $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
8910
8911else
8912  case " $LIBOBJS " in
8913  *" strtoul.$ac_objext "* ) ;;
8914  *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
8915 ;;
8916esac
8917
8918fi
8919
8920
8921
8922
8923                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8924$as_echo_n "checking for shared library run path origin... " >&6; }
8925if ${acl_cv_rpath+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928
8929    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8930    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8931    . ./conftest.sh
8932    rm -f ./conftest.sh
8933    acl_cv_rpath=done
8934
8935fi
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8937$as_echo "$acl_cv_rpath" >&6; }
8938  wl="$acl_cv_wl"
8939  libext="$acl_cv_libext"
8940  shlibext="$acl_cv_shlibext"
8941  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8942  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8943  hardcode_direct="$acl_cv_hardcode_direct"
8944  hardcode_minus_L="$acl_cv_hardcode_minus_L"
8945    # Check whether --enable-rpath was given.
8946if test "${enable_rpath+set}" = set; then :
8947  enableval=$enable_rpath; :
8948else
8949  enable_rpath=yes
8950fi
8951
8952
8953
8954
8955# Check whether --enable-transactions was given.
8956if test "${enable_transactions+set}" = set; then :
8957  enableval=$enable_transactions; if test "$enableval" = no; then
8958		USE_TRANSACTIONS=NO
8959	fi
8960	if test "$enableval" = yes; then
8961		USE_TRANSACTIONS=YES
8962	fi
8963	if test x$USE_TRANSACTIONS != x ; then
8964
8965cat >>confdefs.h <<_ACEOF
8966#define USE_TRANSACTIONS "$USE_TRANSACTIONS"
8967_ACEOF
8968
8969
8970	fi
8971
8972fi
8973
8974# Check whether --enable-dummy was given.
8975if test "${enable_dummy+set}" = set; then :
8976  enableval=$enable_dummy;
8977fi
8978
8979
8980 if test x$USE_TRANSACTIONS = xNO; then
8981  DISABLE_TRANSACTIONS_TRUE=
8982  DISABLE_TRANSACTIONS_FALSE='#'
8983else
8984  DISABLE_TRANSACTIONS_TRUE='#'
8985  DISABLE_TRANSACTIONS_FALSE=
8986fi
8987
8988 if test x$USE_TRANSACTIONS = xYES; then
8989  ENABLE_TRANSACTIONS_TRUE=
8990  ENABLE_TRANSACTIONS_FALSE='#'
8991else
8992  ENABLE_TRANSACTIONS_TRUE='#'
8993  ENABLE_TRANSACTIONS_FALSE=
8994fi
8995
8996
8997if test x$USE_TRANSACTIONS = xNO ; then
8998
8999$as_echo "#define DISABLE_TRANSACTIONS 1" >>confdefs.h
9000
9001fi
9002
9003if test x$USE_TRANSACTIONS = xYES ; then
9004
9005$as_echo "#define ENABLE_TRANSACTIONS 1" >>confdefs.h
9006
9007fi
9008
9009# Check whether --enable-dbshared-test was given.
9010if test "${enable_dbshared_test+set}" = set; then :
9011  enableval=$enable_dbshared_test;
9012fi
9013
9014
9015cat >confcache <<\_ACEOF
9016# This file is a shell script that caches the results of configure
9017# tests run on this system so they can be shared between configure
9018# scripts and configure runs, see configure's option --config-cache.
9019# It is not useful on other systems.  If it contains results you don't
9020# want to keep, you may remove or edit it.
9021#
9022# config.status only pays attention to the cache file if you give it
9023# the --recheck option to rerun configure.
9024#
9025# `ac_cv_env_foo' variables (set or unset) will be overridden when
9026# loading this file, other *unset* `ac_cv_foo' will be assigned the
9027# following values.
9028
9029_ACEOF
9030
9031# The following way of writing the cache mishandles newlines in values,
9032# but we know of no workaround that is simple, portable, and efficient.
9033# So, we kill variables containing newlines.
9034# Ultrix sh set writes to stderr and can't be redirected directly,
9035# and sets the high bit in the cache file unless we assign to the vars.
9036(
9037  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9038    eval ac_val=\$$ac_var
9039    case $ac_val in #(
9040    *${as_nl}*)
9041      case $ac_var in #(
9042      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9043$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9044      esac
9045      case $ac_var in #(
9046      _ | IFS | as_nl) ;; #(
9047      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9048      *) { eval $ac_var=; unset $ac_var;} ;;
9049      esac ;;
9050    esac
9051  done
9052
9053  (set) 2>&1 |
9054    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9055    *${as_nl}ac_space=\ *)
9056      # `set' does not quote correctly, so add quotes: double-quote
9057      # substitution turns \\\\ into \\, and sed turns \\ into \.
9058      sed -n \
9059	"s/'/'\\\\''/g;
9060	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9061      ;; #(
9062    *)
9063      # `set' quotes correctly as required by POSIX, so do not add quotes.
9064      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9065      ;;
9066    esac |
9067    sort
9068) |
9069  sed '
9070     /^ac_cv_env_/b end
9071     t clear
9072     :clear
9073     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9074     t end
9075     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9076     :end' >>confcache
9077if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9078  if test -w "$cache_file"; then
9079    if test "x$cache_file" != "x/dev/null"; then
9080      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9081$as_echo "$as_me: updating cache $cache_file" >&6;}
9082      if test ! -f "$cache_file" || test -h "$cache_file"; then
9083	cat confcache >"$cache_file"
9084      else
9085        case $cache_file in #(
9086        */* | ?:*)
9087	  mv -f confcache "$cache_file"$$ &&
9088	  mv -f "$cache_file"$$ "$cache_file" ;; #(
9089        *)
9090	  mv -f confcache "$cache_file" ;;
9091	esac
9092      fi
9093    fi
9094  else
9095    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9096$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9097  fi
9098fi
9099rm -f confcache
9100
9101WITH_DB_ENGINE=db
9102
9103# Check whether --with-database was given.
9104if test "${with_database+set}" = set; then :
9105  withval=$with_database;  WITH_DB_ENGINE=$withval
9106
9107fi
9108
9109
9110case "x$WITH_DB_ENGINE" in
9111    xsqlite|xsqlite3)
9112
9113$as_echo "#define ENABLE_SQLITE_DATASTORE 1" >>confdefs.h
9114
9115	DB_TYPE=sqlite
9116	DB_EXT=.db
9117	for ac_header in sqlite3.h
9118do :
9119  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
9120if test "x$ac_cv_header_sqlite3_h" = xyes; then :
9121  cat >>confdefs.h <<_ACEOF
9122#define HAVE_SQLITE3_H 1
9123_ACEOF
9124
9125else
9126  as_fn_error $? "Cannot find sqlite3.h header file" "$LINENO" 5
9127fi
9128
9129done
9130
9131
9132
9133
9134
9135
9136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libsqlite3" >&5
9137$as_echo_n "checking how to link with libsqlite3... " >&6; }
9138if ${ac_cv_libsqlite3_libs+:} false; then :
9139  $as_echo_n "(cached) " >&6
9140else
9141
9142
9143
9144    use_additional=yes
9145
9146  acl_save_prefix="$prefix"
9147  prefix="$acl_final_prefix"
9148  acl_save_exec_prefix="$exec_prefix"
9149  exec_prefix="$acl_final_exec_prefix"
9150
9151    eval additional_includedir=\"$includedir\"
9152    eval additional_libdir=\"$libdir\"
9153
9154  exec_prefix="$acl_save_exec_prefix"
9155  prefix="$acl_save_prefix"
9156
9157
9158# Check whether --with-libsqlite3-prefix was given.
9159if test "${with_libsqlite3_prefix+set}" = set; then :
9160  withval=$with_libsqlite3_prefix;
9161    if test "X$withval" = "Xno"; then
9162      use_additional=no
9163    else
9164      if test "X$withval" = "X"; then
9165
9166  acl_save_prefix="$prefix"
9167  prefix="$acl_final_prefix"
9168  acl_save_exec_prefix="$exec_prefix"
9169  exec_prefix="$acl_final_exec_prefix"
9170
9171          eval additional_includedir=\"$includedir\"
9172          eval additional_libdir=\"$libdir\"
9173
9174  exec_prefix="$acl_save_exec_prefix"
9175  prefix="$acl_save_prefix"
9176
9177      else
9178        additional_includedir="$withval/include"
9179        additional_libdir="$withval/lib"
9180      fi
9181    fi
9182
9183fi
9184
9185      LIBSQLITE3=
9186  LTLIBSQLITE3=
9187  INCSQLITE3=
9188  rpathdirs=
9189  ltrpathdirs=
9190  names_already_handled=
9191  names_next_round='sqlite3 '
9192  while test -n "$names_next_round"; do
9193    names_this_round="$names_next_round"
9194    names_next_round=
9195    for name in $names_this_round; do
9196      already_handled=
9197      for n in $names_already_handled; do
9198        if test "$n" = "$name"; then
9199          already_handled=yes
9200          break
9201        fi
9202      done
9203      if test -z "$already_handled"; then
9204        names_already_handled="$names_already_handled $name"
9205                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9206        eval value=\"\$HAVE_LIB$uppername\"
9207        if test -n "$value"; then
9208          if test "$value" = yes; then
9209            eval value=\"\$LIB$uppername\"
9210            test -z "$value" || LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$value"
9211            eval value=\"\$LTLIB$uppername\"
9212            test -z "$value" || LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }$value"
9213          else
9214                                    :
9215          fi
9216        else
9217                              found_dir=
9218          found_la=
9219          found_so=
9220          found_a=
9221          if test $use_additional = yes; then
9222            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9223              found_dir="$additional_libdir"
9224              found_so="$additional_libdir/lib$name.$shlibext"
9225              if test -f "$additional_libdir/lib$name.la"; then
9226                found_la="$additional_libdir/lib$name.la"
9227              fi
9228            else
9229              if test -f "$additional_libdir/lib$name.$libext"; then
9230                found_dir="$additional_libdir"
9231                found_a="$additional_libdir/lib$name.$libext"
9232                if test -f "$additional_libdir/lib$name.la"; then
9233                  found_la="$additional_libdir/lib$name.la"
9234                fi
9235              fi
9236            fi
9237          fi
9238          if test "X$found_dir" = "X"; then
9239            for x in $LDFLAGS $LTLIBSQLITE3; do
9240
9241  acl_save_prefix="$prefix"
9242  prefix="$acl_final_prefix"
9243  acl_save_exec_prefix="$exec_prefix"
9244  exec_prefix="$acl_final_exec_prefix"
9245  eval x=\"$x\"
9246  exec_prefix="$acl_save_exec_prefix"
9247  prefix="$acl_save_prefix"
9248
9249              case "$x" in
9250                -L*)
9251                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9252                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9253                    found_dir="$dir"
9254                    found_so="$dir/lib$name.$shlibext"
9255                    if test -f "$dir/lib$name.la"; then
9256                      found_la="$dir/lib$name.la"
9257                    fi
9258                  else
9259                    if test -f "$dir/lib$name.$libext"; then
9260                      found_dir="$dir"
9261                      found_a="$dir/lib$name.$libext"
9262                      if test -f "$dir/lib$name.la"; then
9263                        found_la="$dir/lib$name.la"
9264                      fi
9265                    fi
9266                  fi
9267                  ;;
9268              esac
9269              if test "X$found_dir" != "X"; then
9270                break
9271              fi
9272            done
9273          fi
9274          if test "X$found_dir" != "X"; then
9275                        LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }-L$found_dir -l$name"
9276            if test "X$found_so" != "X"; then
9277                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9278                                LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_so"
9279              else
9280                                                                                haveit=
9281                for x in $ltrpathdirs; do
9282                  if test "X$x" = "X$found_dir"; then
9283                    haveit=yes
9284                    break
9285                  fi
9286                done
9287                if test -z "$haveit"; then
9288                  ltrpathdirs="$ltrpathdirs $found_dir"
9289                fi
9290                                if test "$hardcode_direct" = yes; then
9291                                                      LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_so"
9292                else
9293                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9294                                                            LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_so"
9295                                                            haveit=
9296                    for x in $rpathdirs; do
9297                      if test "X$x" = "X$found_dir"; then
9298                        haveit=yes
9299                        break
9300                      fi
9301                    done
9302                    if test -z "$haveit"; then
9303                      rpathdirs="$rpathdirs $found_dir"
9304                    fi
9305                  else
9306                                                                                haveit=
9307                    for x in $LDFLAGS $LIBSQLITE3; do
9308
9309  acl_save_prefix="$prefix"
9310  prefix="$acl_final_prefix"
9311  acl_save_exec_prefix="$exec_prefix"
9312  exec_prefix="$acl_final_exec_prefix"
9313  eval x=\"$x\"
9314  exec_prefix="$acl_save_exec_prefix"
9315  prefix="$acl_save_prefix"
9316
9317                      if test "X$x" = "X-L$found_dir"; then
9318                        haveit=yes
9319                        break
9320                      fi
9321                    done
9322                    if test -z "$haveit"; then
9323                      LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-L$found_dir"
9324                    fi
9325                    if test "$hardcode_minus_L" != no; then
9326                                                                                        LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_so"
9327                    else
9328                                                                                                                                                                                LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-l$name"
9329                    fi
9330                  fi
9331                fi
9332              fi
9333            else
9334              if test "X$found_a" != "X"; then
9335                                LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$found_a"
9336              else
9337                                                LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-L$found_dir -l$name"
9338              fi
9339            fi
9340                        additional_includedir=
9341            case "$found_dir" in
9342              */lib | */lib/)
9343                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9344                additional_includedir="$basedir/include"
9345                ;;
9346            esac
9347            if test "X$additional_includedir" != "X"; then
9348                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9349                haveit=
9350                if test "X$additional_includedir" = "X/usr/local/include"; then
9351                  if test -n "$GCC"; then
9352                    case $host_os in
9353                      linux*) haveit=yes;;
9354                    esac
9355                  fi
9356                fi
9357                if test -z "$haveit"; then
9358                  for x in $CPPFLAGS $INCSQLITE3; do
9359
9360  acl_save_prefix="$prefix"
9361  prefix="$acl_final_prefix"
9362  acl_save_exec_prefix="$exec_prefix"
9363  exec_prefix="$acl_final_exec_prefix"
9364  eval x=\"$x\"
9365  exec_prefix="$acl_save_exec_prefix"
9366  prefix="$acl_save_prefix"
9367
9368                    if test "X$x" = "X-I$additional_includedir"; then
9369                      haveit=yes
9370                      break
9371                    fi
9372                  done
9373                  if test -z "$haveit"; then
9374                    if test -d "$additional_includedir"; then
9375                                            INCSQLITE3="${INCSQLITE3}${INCSQLITE3:+ }-I$additional_includedir"
9376                    fi
9377                  fi
9378                fi
9379              fi
9380            fi
9381                        if test -n "$found_la"; then
9382                                                        save_libdir="$libdir"
9383              case "$found_la" in
9384                */* | *\\*) . "$found_la" ;;
9385                *) . "./$found_la" ;;
9386              esac
9387              libdir="$save_libdir"
9388                            for dep in $dependency_libs; do
9389                case "$dep" in
9390                  -L*)
9391                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9392                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9393                      haveit=
9394                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9395                        if test -n "$GCC"; then
9396                          case $host_os in
9397                            linux*) haveit=yes;;
9398                          esac
9399                        fi
9400                      fi
9401                      if test -z "$haveit"; then
9402                        haveit=
9403                        for x in $LDFLAGS $LIBSQLITE3; do
9404
9405  acl_save_prefix="$prefix"
9406  prefix="$acl_final_prefix"
9407  acl_save_exec_prefix="$exec_prefix"
9408  exec_prefix="$acl_final_exec_prefix"
9409  eval x=\"$x\"
9410  exec_prefix="$acl_save_exec_prefix"
9411  prefix="$acl_save_prefix"
9412
9413                          if test "X$x" = "X-L$additional_libdir"; then
9414                            haveit=yes
9415                            break
9416                          fi
9417                        done
9418                        if test -z "$haveit"; then
9419                          if test -d "$additional_libdir"; then
9420                                                        LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-L$additional_libdir"
9421                          fi
9422                        fi
9423                        haveit=
9424                        for x in $LDFLAGS $LTLIBSQLITE3; do
9425
9426  acl_save_prefix="$prefix"
9427  prefix="$acl_final_prefix"
9428  acl_save_exec_prefix="$exec_prefix"
9429  exec_prefix="$acl_final_exec_prefix"
9430  eval x=\"$x\"
9431  exec_prefix="$acl_save_exec_prefix"
9432  prefix="$acl_save_prefix"
9433
9434                          if test "X$x" = "X-L$additional_libdir"; then
9435                            haveit=yes
9436                            break
9437                          fi
9438                        done
9439                        if test -z "$haveit"; then
9440                          if test -d "$additional_libdir"; then
9441                                                        LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }-L$additional_libdir"
9442                          fi
9443                        fi
9444                      fi
9445                    fi
9446                    ;;
9447                  -R*)
9448                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9449                    if test "$enable_rpath" != no; then
9450                                                                  haveit=
9451                      for x in $rpathdirs; do
9452                        if test "X$x" = "X$dir"; then
9453                          haveit=yes
9454                          break
9455                        fi
9456                      done
9457                      if test -z "$haveit"; then
9458                        rpathdirs="$rpathdirs $dir"
9459                      fi
9460                                                                  haveit=
9461                      for x in $ltrpathdirs; do
9462                        if test "X$x" = "X$dir"; then
9463                          haveit=yes
9464                          break
9465                        fi
9466                      done
9467                      if test -z "$haveit"; then
9468                        ltrpathdirs="$ltrpathdirs $dir"
9469                      fi
9470                    fi
9471                    ;;
9472                  -l*)
9473                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9474                    ;;
9475                  *.la)
9476                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9477                    ;;
9478                  *)
9479                                        LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$dep"
9480                    LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }$dep"
9481                    ;;
9482                esac
9483              done
9484            fi
9485          else
9486                                                            LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }-l$name"
9487            LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }-l$name"
9488          fi
9489        fi
9490      fi
9491    done
9492  done
9493  if test "X$rpathdirs" != "X"; then
9494    if test -n "$hardcode_libdir_separator"; then
9495                        alldirs=
9496      for found_dir in $rpathdirs; do
9497        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9498      done
9499            acl_save_libdir="$libdir"
9500      libdir="$alldirs"
9501      eval flag=\"$hardcode_libdir_flag_spec\"
9502      libdir="$acl_save_libdir"
9503      LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$flag"
9504    else
9505            for found_dir in $rpathdirs; do
9506        acl_save_libdir="$libdir"
9507        libdir="$found_dir"
9508        eval flag=\"$hardcode_libdir_flag_spec\"
9509        libdir="$acl_save_libdir"
9510        LIBSQLITE3="${LIBSQLITE3}${LIBSQLITE3:+ }$flag"
9511      done
9512    fi
9513  fi
9514  if test "X$ltrpathdirs" != "X"; then
9515            for found_dir in $ltrpathdirs; do
9516      LTLIBSQLITE3="${LTLIBSQLITE3}${LTLIBSQLITE3:+ }-R$found_dir"
9517    done
9518  fi
9519
9520    ac_cv_libsqlite3_libs="$LIBSQLITE3"
9521    ac_cv_libsqlite3_ltlibs="$LTLIBSQLITE3"
9522    ac_cv_libsqlite3_cppflags="$INCSQLITE3"
9523
9524fi
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libsqlite3_libs" >&5
9526$as_echo "$ac_cv_libsqlite3_libs" >&6; }
9527  LIBSQLITE3="$ac_cv_libsqlite3_libs"
9528  LTLIBSQLITE3="$ac_cv_libsqlite3_ltlibs"
9529  INCSQLITE3="$ac_cv_libsqlite3_cppflags"
9530
9531  for element in $INCSQLITE3; do
9532    haveit=
9533    for x in $CPPFLAGS; do
9534
9535  acl_save_prefix="$prefix"
9536  prefix="$acl_final_prefix"
9537  acl_save_exec_prefix="$exec_prefix"
9538  exec_prefix="$acl_final_exec_prefix"
9539  eval x=\"$x\"
9540  exec_prefix="$acl_save_exec_prefix"
9541  prefix="$acl_save_prefix"
9542
9543      if test "X$x" = "X$element"; then
9544        haveit=yes
9545        break
9546      fi
9547    done
9548    if test -z "$haveit"; then
9549      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9550    fi
9551  done
9552
9553
9554
9555      HAVE_LIBSQLITE3=yes
9556
9557
9558
9559	LIBDB="$LIBSQLITE3"
9560	WITH_DB_ENGINE="sqlite3"
9561	saveLIBS="$LIBS"
9562	LIBS="$LIBDB $LIBS"
9563	ac_fn_c_check_func "$LINENO" "sqlite3_prepare_v2" "ac_cv_func_sqlite3_prepare_v2"
9564if test "x$ac_cv_func_sqlite3_prepare_v2" = xyes; then :
9565
9566else
9567
9568$as_echo "#define sqlite3_prepare_v2 sqlite3_prepare" >>confdefs.h
9569
9570fi
9571
9572	LIBS="$saveLIBS"
9573	;;
9574    xtokyocabinet)
9575
9576$as_echo "#define ENABLE_TOKYOCABINET_DATASTORE 1" >>confdefs.h
9577
9578	DB_TYPE=tokyocabinet
9579	DB_EXT=.tc
9580
9581
9582
9583
9584
9585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libtokyocabinet" >&5
9586$as_echo_n "checking how to link with libtokyocabinet... " >&6; }
9587if ${ac_cv_libtokyocabinet_libs+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590
9591
9592
9593    use_additional=yes
9594
9595  acl_save_prefix="$prefix"
9596  prefix="$acl_final_prefix"
9597  acl_save_exec_prefix="$exec_prefix"
9598  exec_prefix="$acl_final_exec_prefix"
9599
9600    eval additional_includedir=\"$includedir\"
9601    eval additional_libdir=\"$libdir\"
9602
9603  exec_prefix="$acl_save_exec_prefix"
9604  prefix="$acl_save_prefix"
9605
9606
9607# Check whether --with-libtokyocabinet-prefix was given.
9608if test "${with_libtokyocabinet_prefix+set}" = set; then :
9609  withval=$with_libtokyocabinet_prefix;
9610    if test "X$withval" = "Xno"; then
9611      use_additional=no
9612    else
9613      if test "X$withval" = "X"; then
9614
9615  acl_save_prefix="$prefix"
9616  prefix="$acl_final_prefix"
9617  acl_save_exec_prefix="$exec_prefix"
9618  exec_prefix="$acl_final_exec_prefix"
9619
9620          eval additional_includedir=\"$includedir\"
9621          eval additional_libdir=\"$libdir\"
9622
9623  exec_prefix="$acl_save_exec_prefix"
9624  prefix="$acl_save_prefix"
9625
9626      else
9627        additional_includedir="$withval/include"
9628        additional_libdir="$withval/lib"
9629      fi
9630    fi
9631
9632fi
9633
9634      LIBTOKYOCABINET=
9635  LTLIBTOKYOCABINET=
9636  INCTOKYOCABINET=
9637  rpathdirs=
9638  ltrpathdirs=
9639  names_already_handled=
9640  names_next_round='tokyocabinet '
9641  while test -n "$names_next_round"; do
9642    names_this_round="$names_next_round"
9643    names_next_round=
9644    for name in $names_this_round; do
9645      already_handled=
9646      for n in $names_already_handled; do
9647        if test "$n" = "$name"; then
9648          already_handled=yes
9649          break
9650        fi
9651      done
9652      if test -z "$already_handled"; then
9653        names_already_handled="$names_already_handled $name"
9654                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9655        eval value=\"\$HAVE_LIB$uppername\"
9656        if test -n "$value"; then
9657          if test "$value" = yes; then
9658            eval value=\"\$LIB$uppername\"
9659            test -z "$value" || LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$value"
9660            eval value=\"\$LTLIB$uppername\"
9661            test -z "$value" || LTLIBTOKYOCABINET="${LTLIBTOKYOCABINET}${LTLIBTOKYOCABINET:+ }$value"
9662          else
9663                                    :
9664          fi
9665        else
9666                              found_dir=
9667          found_la=
9668          found_so=
9669          found_a=
9670          if test $use_additional = yes; then
9671            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9672              found_dir="$additional_libdir"
9673              found_so="$additional_libdir/lib$name.$shlibext"
9674              if test -f "$additional_libdir/lib$name.la"; then
9675                found_la="$additional_libdir/lib$name.la"
9676              fi
9677            else
9678              if test -f "$additional_libdir/lib$name.$libext"; then
9679                found_dir="$additional_libdir"
9680                found_a="$additional_libdir/lib$name.$libext"
9681                if test -f "$additional_libdir/lib$name.la"; then
9682                  found_la="$additional_libdir/lib$name.la"
9683                fi
9684              fi
9685            fi
9686          fi
9687          if test "X$found_dir" = "X"; then
9688            for x in $LDFLAGS $LTLIBTOKYOCABINET; do
9689
9690  acl_save_prefix="$prefix"
9691  prefix="$acl_final_prefix"
9692  acl_save_exec_prefix="$exec_prefix"
9693  exec_prefix="$acl_final_exec_prefix"
9694  eval x=\"$x\"
9695  exec_prefix="$acl_save_exec_prefix"
9696  prefix="$acl_save_prefix"
9697
9698              case "$x" in
9699                -L*)
9700                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9701                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9702                    found_dir="$dir"
9703                    found_so="$dir/lib$name.$shlibext"
9704                    if test -f "$dir/lib$name.la"; then
9705                      found_la="$dir/lib$name.la"
9706                    fi
9707                  else
9708                    if test -f "$dir/lib$name.$libext"; then
9709                      found_dir="$dir"
9710                      found_a="$dir/lib$name.$libext"
9711                      if test -f "$dir/lib$name.la"; then
9712                        found_la="$dir/lib$name.la"
9713                      fi
9714                    fi
9715                  fi
9716                  ;;
9717              esac
9718              if test "X$found_dir" != "X"; then
9719                break
9720              fi
9721            done
9722          fi
9723          if test "X$found_dir" != "X"; then
9724                        LTLIBTOKYOCABINET="${LTLIBTOKYOCABINET}${LTLIBTOKYOCABINET:+ }-L$found_dir -l$name"
9725            if test "X$found_so" != "X"; then
9726                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9727                                LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$found_so"
9728              else
9729                                                                                haveit=
9730                for x in $ltrpathdirs; do
9731                  if test "X$x" = "X$found_dir"; then
9732                    haveit=yes
9733                    break
9734                  fi
9735                done
9736                if test -z "$haveit"; then
9737                  ltrpathdirs="$ltrpathdirs $found_dir"
9738                fi
9739                                if test "$hardcode_direct" = yes; then
9740                                                      LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$found_so"
9741                else
9742                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9743                                                            LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$found_so"
9744                                                            haveit=
9745                    for x in $rpathdirs; do
9746                      if test "X$x" = "X$found_dir"; then
9747                        haveit=yes
9748                        break
9749                      fi
9750                    done
9751                    if test -z "$haveit"; then
9752                      rpathdirs="$rpathdirs $found_dir"
9753                    fi
9754                  else
9755                                                                                haveit=
9756                    for x in $LDFLAGS $LIBTOKYOCABINET; do
9757
9758  acl_save_prefix="$prefix"
9759  prefix="$acl_final_prefix"
9760  acl_save_exec_prefix="$exec_prefix"
9761  exec_prefix="$acl_final_exec_prefix"
9762  eval x=\"$x\"
9763  exec_prefix="$acl_save_exec_prefix"
9764  prefix="$acl_save_prefix"
9765
9766                      if test "X$x" = "X-L$found_dir"; then
9767                        haveit=yes
9768                        break
9769                      fi
9770                    done
9771                    if test -z "$haveit"; then
9772                      LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }-L$found_dir"
9773                    fi
9774                    if test "$hardcode_minus_L" != no; then
9775                                                                                        LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$found_so"
9776                    else
9777                                                                                                                                                                                LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }-l$name"
9778                    fi
9779                  fi
9780                fi
9781              fi
9782            else
9783              if test "X$found_a" != "X"; then
9784                                LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$found_a"
9785              else
9786                                                LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }-L$found_dir -l$name"
9787              fi
9788            fi
9789                        additional_includedir=
9790            case "$found_dir" in
9791              */lib | */lib/)
9792                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9793                additional_includedir="$basedir/include"
9794                ;;
9795            esac
9796            if test "X$additional_includedir" != "X"; then
9797                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9798                haveit=
9799                if test "X$additional_includedir" = "X/usr/local/include"; then
9800                  if test -n "$GCC"; then
9801                    case $host_os in
9802                      linux*) haveit=yes;;
9803                    esac
9804                  fi
9805                fi
9806                if test -z "$haveit"; then
9807                  for x in $CPPFLAGS $INCTOKYOCABINET; do
9808
9809  acl_save_prefix="$prefix"
9810  prefix="$acl_final_prefix"
9811  acl_save_exec_prefix="$exec_prefix"
9812  exec_prefix="$acl_final_exec_prefix"
9813  eval x=\"$x\"
9814  exec_prefix="$acl_save_exec_prefix"
9815  prefix="$acl_save_prefix"
9816
9817                    if test "X$x" = "X-I$additional_includedir"; then
9818                      haveit=yes
9819                      break
9820                    fi
9821                  done
9822                  if test -z "$haveit"; then
9823                    if test -d "$additional_includedir"; then
9824                                            INCTOKYOCABINET="${INCTOKYOCABINET}${INCTOKYOCABINET:+ }-I$additional_includedir"
9825                    fi
9826                  fi
9827                fi
9828              fi
9829            fi
9830                        if test -n "$found_la"; then
9831                                                        save_libdir="$libdir"
9832              case "$found_la" in
9833                */* | *\\*) . "$found_la" ;;
9834                *) . "./$found_la" ;;
9835              esac
9836              libdir="$save_libdir"
9837                            for dep in $dependency_libs; do
9838                case "$dep" in
9839                  -L*)
9840                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9841                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9842                      haveit=
9843                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9844                        if test -n "$GCC"; then
9845                          case $host_os in
9846                            linux*) haveit=yes;;
9847                          esac
9848                        fi
9849                      fi
9850                      if test -z "$haveit"; then
9851                        haveit=
9852                        for x in $LDFLAGS $LIBTOKYOCABINET; do
9853
9854  acl_save_prefix="$prefix"
9855  prefix="$acl_final_prefix"
9856  acl_save_exec_prefix="$exec_prefix"
9857  exec_prefix="$acl_final_exec_prefix"
9858  eval x=\"$x\"
9859  exec_prefix="$acl_save_exec_prefix"
9860  prefix="$acl_save_prefix"
9861
9862                          if test "X$x" = "X-L$additional_libdir"; then
9863                            haveit=yes
9864                            break
9865                          fi
9866                        done
9867                        if test -z "$haveit"; then
9868                          if test -d "$additional_libdir"; then
9869                                                        LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }-L$additional_libdir"
9870                          fi
9871                        fi
9872                        haveit=
9873                        for x in $LDFLAGS $LTLIBTOKYOCABINET; do
9874
9875  acl_save_prefix="$prefix"
9876  prefix="$acl_final_prefix"
9877  acl_save_exec_prefix="$exec_prefix"
9878  exec_prefix="$acl_final_exec_prefix"
9879  eval x=\"$x\"
9880  exec_prefix="$acl_save_exec_prefix"
9881  prefix="$acl_save_prefix"
9882
9883                          if test "X$x" = "X-L$additional_libdir"; then
9884                            haveit=yes
9885                            break
9886                          fi
9887                        done
9888                        if test -z "$haveit"; then
9889                          if test -d "$additional_libdir"; then
9890                                                        LTLIBTOKYOCABINET="${LTLIBTOKYOCABINET}${LTLIBTOKYOCABINET:+ }-L$additional_libdir"
9891                          fi
9892                        fi
9893                      fi
9894                    fi
9895                    ;;
9896                  -R*)
9897                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9898                    if test "$enable_rpath" != no; then
9899                                                                  haveit=
9900                      for x in $rpathdirs; do
9901                        if test "X$x" = "X$dir"; then
9902                          haveit=yes
9903                          break
9904                        fi
9905                      done
9906                      if test -z "$haveit"; then
9907                        rpathdirs="$rpathdirs $dir"
9908                      fi
9909                                                                  haveit=
9910                      for x in $ltrpathdirs; do
9911                        if test "X$x" = "X$dir"; then
9912                          haveit=yes
9913                          break
9914                        fi
9915                      done
9916                      if test -z "$haveit"; then
9917                        ltrpathdirs="$ltrpathdirs $dir"
9918                      fi
9919                    fi
9920                    ;;
9921                  -l*)
9922                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9923                    ;;
9924                  *.la)
9925                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9926                    ;;
9927                  *)
9928                                        LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$dep"
9929                    LTLIBTOKYOCABINET="${LTLIBTOKYOCABINET}${LTLIBTOKYOCABINET:+ }$dep"
9930                    ;;
9931                esac
9932              done
9933            fi
9934          else
9935                                                            LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }-l$name"
9936            LTLIBTOKYOCABINET="${LTLIBTOKYOCABINET}${LTLIBTOKYOCABINET:+ }-l$name"
9937          fi
9938        fi
9939      fi
9940    done
9941  done
9942  if test "X$rpathdirs" != "X"; then
9943    if test -n "$hardcode_libdir_separator"; then
9944                        alldirs=
9945      for found_dir in $rpathdirs; do
9946        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9947      done
9948            acl_save_libdir="$libdir"
9949      libdir="$alldirs"
9950      eval flag=\"$hardcode_libdir_flag_spec\"
9951      libdir="$acl_save_libdir"
9952      LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$flag"
9953    else
9954            for found_dir in $rpathdirs; do
9955        acl_save_libdir="$libdir"
9956        libdir="$found_dir"
9957        eval flag=\"$hardcode_libdir_flag_spec\"
9958        libdir="$acl_save_libdir"
9959        LIBTOKYOCABINET="${LIBTOKYOCABINET}${LIBTOKYOCABINET:+ }$flag"
9960      done
9961    fi
9962  fi
9963  if test "X$ltrpathdirs" != "X"; then
9964            for found_dir in $ltrpathdirs; do
9965      LTLIBTOKYOCABINET="${LTLIBTOKYOCABINET}${LTLIBTOKYOCABINET:+ }-R$found_dir"
9966    done
9967  fi
9968
9969    ac_cv_libtokyocabinet_libs="$LIBTOKYOCABINET"
9970    ac_cv_libtokyocabinet_ltlibs="$LTLIBTOKYOCABINET"
9971    ac_cv_libtokyocabinet_cppflags="$INCTOKYOCABINET"
9972
9973fi
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtokyocabinet_libs" >&5
9975$as_echo "$ac_cv_libtokyocabinet_libs" >&6; }
9976  LIBTOKYOCABINET="$ac_cv_libtokyocabinet_libs"
9977  LTLIBTOKYOCABINET="$ac_cv_libtokyocabinet_ltlibs"
9978  INCTOKYOCABINET="$ac_cv_libtokyocabinet_cppflags"
9979
9980  for element in $INCTOKYOCABINET; do
9981    haveit=
9982    for x in $CPPFLAGS; do
9983
9984  acl_save_prefix="$prefix"
9985  prefix="$acl_final_prefix"
9986  acl_save_exec_prefix="$exec_prefix"
9987  exec_prefix="$acl_final_exec_prefix"
9988  eval x=\"$x\"
9989  exec_prefix="$acl_save_exec_prefix"
9990  prefix="$acl_save_prefix"
9991
9992      if test "X$x" = "X$element"; then
9993        haveit=yes
9994        break
9995      fi
9996    done
9997    if test -z "$haveit"; then
9998      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9999    fi
10000  done
10001
10002
10003
10004      HAVE_LIBTOKYOCABINET=yes
10005
10006
10007
10008	LIBDB="$LIBTOKYOCABINET"
10009	saveLIBS="$LIBS"
10010	LIBS="$LIBS $LIBDB"
10011	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013
10014#include <tcutil.h>
10015#include <tcbdb.h>
10016#include <stdlib.h>
10017#include <stdbool.h>
10018#include <stdint.h>
10019
10020int
10021main ()
10022{
10023
10024	    TCBDB *d = tcbdbnew();
10025
10026  ;
10027  return 0;
10028}
10029_ACEOF
10030if ac_fn_c_try_link "$LINENO"; then :
10031
10032else
10033  as_fn_error $? "Cannot link to tokyocabinet library." "$LINENO" 5
10034fi
10035rm -f core conftest.err conftest.$ac_objext \
10036    conftest$ac_exeext conftest.$ac_ext
10037	LIBS="$saveLIBS"
10038        ;;
10039    xkyotocabinet)
10040
10041$as_echo "#define ENABLE_KYOTOCABINET_DATASTORE 1" >>confdefs.h
10042
10043	DB_TYPE=kyotocabinet
10044	DB_EXT=.kct
10045
10046
10047
10048
10049
10050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libkyotocabinet" >&5
10051$as_echo_n "checking how to link with libkyotocabinet... " >&6; }
10052if ${ac_cv_libkyotocabinet_libs+:} false; then :
10053  $as_echo_n "(cached) " >&6
10054else
10055
10056
10057
10058    use_additional=yes
10059
10060  acl_save_prefix="$prefix"
10061  prefix="$acl_final_prefix"
10062  acl_save_exec_prefix="$exec_prefix"
10063  exec_prefix="$acl_final_exec_prefix"
10064
10065    eval additional_includedir=\"$includedir\"
10066    eval additional_libdir=\"$libdir\"
10067
10068  exec_prefix="$acl_save_exec_prefix"
10069  prefix="$acl_save_prefix"
10070
10071
10072# Check whether --with-libkyotocabinet-prefix was given.
10073if test "${with_libkyotocabinet_prefix+set}" = set; then :
10074  withval=$with_libkyotocabinet_prefix;
10075    if test "X$withval" = "Xno"; then
10076      use_additional=no
10077    else
10078      if test "X$withval" = "X"; then
10079
10080  acl_save_prefix="$prefix"
10081  prefix="$acl_final_prefix"
10082  acl_save_exec_prefix="$exec_prefix"
10083  exec_prefix="$acl_final_exec_prefix"
10084
10085          eval additional_includedir=\"$includedir\"
10086          eval additional_libdir=\"$libdir\"
10087
10088  exec_prefix="$acl_save_exec_prefix"
10089  prefix="$acl_save_prefix"
10090
10091      else
10092        additional_includedir="$withval/include"
10093        additional_libdir="$withval/lib"
10094      fi
10095    fi
10096
10097fi
10098
10099      LIBKYOTOCABINET=
10100  LTLIBKYOTOCABINET=
10101  INCKYOTOCABINET=
10102  rpathdirs=
10103  ltrpathdirs=
10104  names_already_handled=
10105  names_next_round='kyotocabinet '
10106  while test -n "$names_next_round"; do
10107    names_this_round="$names_next_round"
10108    names_next_round=
10109    for name in $names_this_round; do
10110      already_handled=
10111      for n in $names_already_handled; do
10112        if test "$n" = "$name"; then
10113          already_handled=yes
10114          break
10115        fi
10116      done
10117      if test -z "$already_handled"; then
10118        names_already_handled="$names_already_handled $name"
10119                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10120        eval value=\"\$HAVE_LIB$uppername\"
10121        if test -n "$value"; then
10122          if test "$value" = yes; then
10123            eval value=\"\$LIB$uppername\"
10124            test -z "$value" || LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$value"
10125            eval value=\"\$LTLIB$uppername\"
10126            test -z "$value" || LTLIBKYOTOCABINET="${LTLIBKYOTOCABINET}${LTLIBKYOTOCABINET:+ }$value"
10127          else
10128                                    :
10129          fi
10130        else
10131                              found_dir=
10132          found_la=
10133          found_so=
10134          found_a=
10135          if test $use_additional = yes; then
10136            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10137              found_dir="$additional_libdir"
10138              found_so="$additional_libdir/lib$name.$shlibext"
10139              if test -f "$additional_libdir/lib$name.la"; then
10140                found_la="$additional_libdir/lib$name.la"
10141              fi
10142            else
10143              if test -f "$additional_libdir/lib$name.$libext"; then
10144                found_dir="$additional_libdir"
10145                found_a="$additional_libdir/lib$name.$libext"
10146                if test -f "$additional_libdir/lib$name.la"; then
10147                  found_la="$additional_libdir/lib$name.la"
10148                fi
10149              fi
10150            fi
10151          fi
10152          if test "X$found_dir" = "X"; then
10153            for x in $LDFLAGS $LTLIBKYOTOCABINET; do
10154
10155  acl_save_prefix="$prefix"
10156  prefix="$acl_final_prefix"
10157  acl_save_exec_prefix="$exec_prefix"
10158  exec_prefix="$acl_final_exec_prefix"
10159  eval x=\"$x\"
10160  exec_prefix="$acl_save_exec_prefix"
10161  prefix="$acl_save_prefix"
10162
10163              case "$x" in
10164                -L*)
10165                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10166                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10167                    found_dir="$dir"
10168                    found_so="$dir/lib$name.$shlibext"
10169                    if test -f "$dir/lib$name.la"; then
10170                      found_la="$dir/lib$name.la"
10171                    fi
10172                  else
10173                    if test -f "$dir/lib$name.$libext"; then
10174                      found_dir="$dir"
10175                      found_a="$dir/lib$name.$libext"
10176                      if test -f "$dir/lib$name.la"; then
10177                        found_la="$dir/lib$name.la"
10178                      fi
10179                    fi
10180                  fi
10181                  ;;
10182              esac
10183              if test "X$found_dir" != "X"; then
10184                break
10185              fi
10186            done
10187          fi
10188          if test "X$found_dir" != "X"; then
10189                        LTLIBKYOTOCABINET="${LTLIBKYOTOCABINET}${LTLIBKYOTOCABINET:+ }-L$found_dir -l$name"
10190            if test "X$found_so" != "X"; then
10191                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10192                                LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$found_so"
10193              else
10194                                                                                haveit=
10195                for x in $ltrpathdirs; do
10196                  if test "X$x" = "X$found_dir"; then
10197                    haveit=yes
10198                    break
10199                  fi
10200                done
10201                if test -z "$haveit"; then
10202                  ltrpathdirs="$ltrpathdirs $found_dir"
10203                fi
10204                                if test "$hardcode_direct" = yes; then
10205                                                      LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$found_so"
10206                else
10207                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10208                                                            LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$found_so"
10209                                                            haveit=
10210                    for x in $rpathdirs; do
10211                      if test "X$x" = "X$found_dir"; then
10212                        haveit=yes
10213                        break
10214                      fi
10215                    done
10216                    if test -z "$haveit"; then
10217                      rpathdirs="$rpathdirs $found_dir"
10218                    fi
10219                  else
10220                                                                                haveit=
10221                    for x in $LDFLAGS $LIBKYOTOCABINET; do
10222
10223  acl_save_prefix="$prefix"
10224  prefix="$acl_final_prefix"
10225  acl_save_exec_prefix="$exec_prefix"
10226  exec_prefix="$acl_final_exec_prefix"
10227  eval x=\"$x\"
10228  exec_prefix="$acl_save_exec_prefix"
10229  prefix="$acl_save_prefix"
10230
10231                      if test "X$x" = "X-L$found_dir"; then
10232                        haveit=yes
10233                        break
10234                      fi
10235                    done
10236                    if test -z "$haveit"; then
10237                      LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }-L$found_dir"
10238                    fi
10239                    if test "$hardcode_minus_L" != no; then
10240                                                                                        LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$found_so"
10241                    else
10242                                                                                                                                                                                LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }-l$name"
10243                    fi
10244                  fi
10245                fi
10246              fi
10247            else
10248              if test "X$found_a" != "X"; then
10249                                LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$found_a"
10250              else
10251                                                LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }-L$found_dir -l$name"
10252              fi
10253            fi
10254                        additional_includedir=
10255            case "$found_dir" in
10256              */lib | */lib/)
10257                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10258                additional_includedir="$basedir/include"
10259                ;;
10260            esac
10261            if test "X$additional_includedir" != "X"; then
10262                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10263                haveit=
10264                if test "X$additional_includedir" = "X/usr/local/include"; then
10265                  if test -n "$GCC"; then
10266                    case $host_os in
10267                      linux*) haveit=yes;;
10268                    esac
10269                  fi
10270                fi
10271                if test -z "$haveit"; then
10272                  for x in $CPPFLAGS $INCKYOTOCABINET; do
10273
10274  acl_save_prefix="$prefix"
10275  prefix="$acl_final_prefix"
10276  acl_save_exec_prefix="$exec_prefix"
10277  exec_prefix="$acl_final_exec_prefix"
10278  eval x=\"$x\"
10279  exec_prefix="$acl_save_exec_prefix"
10280  prefix="$acl_save_prefix"
10281
10282                    if test "X$x" = "X-I$additional_includedir"; then
10283                      haveit=yes
10284                      break
10285                    fi
10286                  done
10287                  if test -z "$haveit"; then
10288                    if test -d "$additional_includedir"; then
10289                                            INCKYOTOCABINET="${INCKYOTOCABINET}${INCKYOTOCABINET:+ }-I$additional_includedir"
10290                    fi
10291                  fi
10292                fi
10293              fi
10294            fi
10295                        if test -n "$found_la"; then
10296                                                        save_libdir="$libdir"
10297              case "$found_la" in
10298                */* | *\\*) . "$found_la" ;;
10299                *) . "./$found_la" ;;
10300              esac
10301              libdir="$save_libdir"
10302                            for dep in $dependency_libs; do
10303                case "$dep" in
10304                  -L*)
10305                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10306                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10307                      haveit=
10308                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10309                        if test -n "$GCC"; then
10310                          case $host_os in
10311                            linux*) haveit=yes;;
10312                          esac
10313                        fi
10314                      fi
10315                      if test -z "$haveit"; then
10316                        haveit=
10317                        for x in $LDFLAGS $LIBKYOTOCABINET; do
10318
10319  acl_save_prefix="$prefix"
10320  prefix="$acl_final_prefix"
10321  acl_save_exec_prefix="$exec_prefix"
10322  exec_prefix="$acl_final_exec_prefix"
10323  eval x=\"$x\"
10324  exec_prefix="$acl_save_exec_prefix"
10325  prefix="$acl_save_prefix"
10326
10327                          if test "X$x" = "X-L$additional_libdir"; then
10328                            haveit=yes
10329                            break
10330                          fi
10331                        done
10332                        if test -z "$haveit"; then
10333                          if test -d "$additional_libdir"; then
10334                                                        LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }-L$additional_libdir"
10335                          fi
10336                        fi
10337                        haveit=
10338                        for x in $LDFLAGS $LTLIBKYOTOCABINET; do
10339
10340  acl_save_prefix="$prefix"
10341  prefix="$acl_final_prefix"
10342  acl_save_exec_prefix="$exec_prefix"
10343  exec_prefix="$acl_final_exec_prefix"
10344  eval x=\"$x\"
10345  exec_prefix="$acl_save_exec_prefix"
10346  prefix="$acl_save_prefix"
10347
10348                          if test "X$x" = "X-L$additional_libdir"; then
10349                            haveit=yes
10350                            break
10351                          fi
10352                        done
10353                        if test -z "$haveit"; then
10354                          if test -d "$additional_libdir"; then
10355                                                        LTLIBKYOTOCABINET="${LTLIBKYOTOCABINET}${LTLIBKYOTOCABINET:+ }-L$additional_libdir"
10356                          fi
10357                        fi
10358                      fi
10359                    fi
10360                    ;;
10361                  -R*)
10362                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10363                    if test "$enable_rpath" != no; then
10364                                                                  haveit=
10365                      for x in $rpathdirs; do
10366                        if test "X$x" = "X$dir"; then
10367                          haveit=yes
10368                          break
10369                        fi
10370                      done
10371                      if test -z "$haveit"; then
10372                        rpathdirs="$rpathdirs $dir"
10373                      fi
10374                                                                  haveit=
10375                      for x in $ltrpathdirs; do
10376                        if test "X$x" = "X$dir"; then
10377                          haveit=yes
10378                          break
10379                        fi
10380                      done
10381                      if test -z "$haveit"; then
10382                        ltrpathdirs="$ltrpathdirs $dir"
10383                      fi
10384                    fi
10385                    ;;
10386                  -l*)
10387                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10388                    ;;
10389                  *.la)
10390                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10391                    ;;
10392                  *)
10393                                        LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$dep"
10394                    LTLIBKYOTOCABINET="${LTLIBKYOTOCABINET}${LTLIBKYOTOCABINET:+ }$dep"
10395                    ;;
10396                esac
10397              done
10398            fi
10399          else
10400                                                            LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }-l$name"
10401            LTLIBKYOTOCABINET="${LTLIBKYOTOCABINET}${LTLIBKYOTOCABINET:+ }-l$name"
10402          fi
10403        fi
10404      fi
10405    done
10406  done
10407  if test "X$rpathdirs" != "X"; then
10408    if test -n "$hardcode_libdir_separator"; then
10409                        alldirs=
10410      for found_dir in $rpathdirs; do
10411        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10412      done
10413            acl_save_libdir="$libdir"
10414      libdir="$alldirs"
10415      eval flag=\"$hardcode_libdir_flag_spec\"
10416      libdir="$acl_save_libdir"
10417      LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$flag"
10418    else
10419            for found_dir in $rpathdirs; do
10420        acl_save_libdir="$libdir"
10421        libdir="$found_dir"
10422        eval flag=\"$hardcode_libdir_flag_spec\"
10423        libdir="$acl_save_libdir"
10424        LIBKYOTOCABINET="${LIBKYOTOCABINET}${LIBKYOTOCABINET:+ }$flag"
10425      done
10426    fi
10427  fi
10428  if test "X$ltrpathdirs" != "X"; then
10429            for found_dir in $ltrpathdirs; do
10430      LTLIBKYOTOCABINET="${LTLIBKYOTOCABINET}${LTLIBKYOTOCABINET:+ }-R$found_dir"
10431    done
10432  fi
10433
10434    ac_cv_libkyotocabinet_libs="$LIBKYOTOCABINET"
10435    ac_cv_libkyotocabinet_ltlibs="$LTLIBKYOTOCABINET"
10436    ac_cv_libkyotocabinet_cppflags="$INCKYOTOCABINET"
10437
10438fi
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libkyotocabinet_libs" >&5
10440$as_echo "$ac_cv_libkyotocabinet_libs" >&6; }
10441  LIBKYOTOCABINET="$ac_cv_libkyotocabinet_libs"
10442  LTLIBKYOTOCABINET="$ac_cv_libkyotocabinet_ltlibs"
10443  INCKYOTOCABINET="$ac_cv_libkyotocabinet_cppflags"
10444
10445  for element in $INCKYOTOCABINET; do
10446    haveit=
10447    for x in $CPPFLAGS; do
10448
10449  acl_save_prefix="$prefix"
10450  prefix="$acl_final_prefix"
10451  acl_save_exec_prefix="$exec_prefix"
10452  exec_prefix="$acl_final_exec_prefix"
10453  eval x=\"$x\"
10454  exec_prefix="$acl_save_exec_prefix"
10455  prefix="$acl_save_prefix"
10456
10457      if test "X$x" = "X$element"; then
10458        haveit=yes
10459        break
10460      fi
10461    done
10462    if test -z "$haveit"; then
10463      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10464    fi
10465  done
10466
10467
10468
10469      HAVE_LIBKYOTOCABINET=yes
10470
10471
10472
10473	LIBDB="$LIBKYOTOCABINET"
10474	saveLIBS="$LIBS"
10475	LIBS="$LIBS $LIBDB"
10476	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h.  */
10478
10479#include <kclangc.h>
10480
10481int
10482main ()
10483{
10484
10485	    KCDB *db = kcdbnew();
10486
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491if ac_fn_c_try_link "$LINENO"; then :
10492
10493else
10494  as_fn_error $? "Cannot link to kyotocabinet library." "$LINENO" 5
10495fi
10496rm -f core conftest.err conftest.$ac_objext \
10497    conftest$ac_exeext conftest.$ac_ext
10498	LIBS="$saveLIBS"
10499        ;;
10500    xlmdb)
10501
10502$as_echo "#define ENABLE_LMDB_DATASTORE 1" >>confdefs.h
10503
10504	DB_TYPE=lmdb
10505	DB_EXT=.lmdb
10506
10507
10508
10509
10510
10511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblmdb" >&5
10512$as_echo_n "checking how to link with liblmdb... " >&6; }
10513if ${ac_cv_liblmdb_libs+:} false; then :
10514  $as_echo_n "(cached) " >&6
10515else
10516
10517
10518
10519    use_additional=yes
10520
10521  acl_save_prefix="$prefix"
10522  prefix="$acl_final_prefix"
10523  acl_save_exec_prefix="$exec_prefix"
10524  exec_prefix="$acl_final_exec_prefix"
10525
10526    eval additional_includedir=\"$includedir\"
10527    eval additional_libdir=\"$libdir\"
10528
10529  exec_prefix="$acl_save_exec_prefix"
10530  prefix="$acl_save_prefix"
10531
10532
10533# Check whether --with-liblmdb-prefix was given.
10534if test "${with_liblmdb_prefix+set}" = set; then :
10535  withval=$with_liblmdb_prefix;
10536    if test "X$withval" = "Xno"; then
10537      use_additional=no
10538    else
10539      if test "X$withval" = "X"; then
10540
10541  acl_save_prefix="$prefix"
10542  prefix="$acl_final_prefix"
10543  acl_save_exec_prefix="$exec_prefix"
10544  exec_prefix="$acl_final_exec_prefix"
10545
10546          eval additional_includedir=\"$includedir\"
10547          eval additional_libdir=\"$libdir\"
10548
10549  exec_prefix="$acl_save_exec_prefix"
10550  prefix="$acl_save_prefix"
10551
10552      else
10553        additional_includedir="$withval/include"
10554        additional_libdir="$withval/lib"
10555      fi
10556    fi
10557
10558fi
10559
10560      LIBLMDB=
10561  LTLIBLMDB=
10562  INCLMDB=
10563  rpathdirs=
10564  ltrpathdirs=
10565  names_already_handled=
10566  names_next_round='lmdb '
10567  while test -n "$names_next_round"; do
10568    names_this_round="$names_next_round"
10569    names_next_round=
10570    for name in $names_this_round; do
10571      already_handled=
10572      for n in $names_already_handled; do
10573        if test "$n" = "$name"; then
10574          already_handled=yes
10575          break
10576        fi
10577      done
10578      if test -z "$already_handled"; then
10579        names_already_handled="$names_already_handled $name"
10580                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10581        eval value=\"\$HAVE_LIB$uppername\"
10582        if test -n "$value"; then
10583          if test "$value" = yes; then
10584            eval value=\"\$LIB$uppername\"
10585            test -z "$value" || LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$value"
10586            eval value=\"\$LTLIB$uppername\"
10587            test -z "$value" || LTLIBLMDB="${LTLIBLMDB}${LTLIBLMDB:+ }$value"
10588          else
10589                                    :
10590          fi
10591        else
10592                              found_dir=
10593          found_la=
10594          found_so=
10595          found_a=
10596          if test $use_additional = yes; then
10597            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10598              found_dir="$additional_libdir"
10599              found_so="$additional_libdir/lib$name.$shlibext"
10600              if test -f "$additional_libdir/lib$name.la"; then
10601                found_la="$additional_libdir/lib$name.la"
10602              fi
10603            else
10604              if test -f "$additional_libdir/lib$name.$libext"; then
10605                found_dir="$additional_libdir"
10606                found_a="$additional_libdir/lib$name.$libext"
10607                if test -f "$additional_libdir/lib$name.la"; then
10608                  found_la="$additional_libdir/lib$name.la"
10609                fi
10610              fi
10611            fi
10612          fi
10613          if test "X$found_dir" = "X"; then
10614            for x in $LDFLAGS $LTLIBLMDB; do
10615
10616  acl_save_prefix="$prefix"
10617  prefix="$acl_final_prefix"
10618  acl_save_exec_prefix="$exec_prefix"
10619  exec_prefix="$acl_final_exec_prefix"
10620  eval x=\"$x\"
10621  exec_prefix="$acl_save_exec_prefix"
10622  prefix="$acl_save_prefix"
10623
10624              case "$x" in
10625                -L*)
10626                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10627                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10628                    found_dir="$dir"
10629                    found_so="$dir/lib$name.$shlibext"
10630                    if test -f "$dir/lib$name.la"; then
10631                      found_la="$dir/lib$name.la"
10632                    fi
10633                  else
10634                    if test -f "$dir/lib$name.$libext"; then
10635                      found_dir="$dir"
10636                      found_a="$dir/lib$name.$libext"
10637                      if test -f "$dir/lib$name.la"; then
10638                        found_la="$dir/lib$name.la"
10639                      fi
10640                    fi
10641                  fi
10642                  ;;
10643              esac
10644              if test "X$found_dir" != "X"; then
10645                break
10646              fi
10647            done
10648          fi
10649          if test "X$found_dir" != "X"; then
10650                        LTLIBLMDB="${LTLIBLMDB}${LTLIBLMDB:+ }-L$found_dir -l$name"
10651            if test "X$found_so" != "X"; then
10652                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10653                                LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$found_so"
10654              else
10655                                                                                haveit=
10656                for x in $ltrpathdirs; do
10657                  if test "X$x" = "X$found_dir"; then
10658                    haveit=yes
10659                    break
10660                  fi
10661                done
10662                if test -z "$haveit"; then
10663                  ltrpathdirs="$ltrpathdirs $found_dir"
10664                fi
10665                                if test "$hardcode_direct" = yes; then
10666                                                      LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$found_so"
10667                else
10668                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10669                                                            LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$found_so"
10670                                                            haveit=
10671                    for x in $rpathdirs; do
10672                      if test "X$x" = "X$found_dir"; then
10673                        haveit=yes
10674                        break
10675                      fi
10676                    done
10677                    if test -z "$haveit"; then
10678                      rpathdirs="$rpathdirs $found_dir"
10679                    fi
10680                  else
10681                                                                                haveit=
10682                    for x in $LDFLAGS $LIBLMDB; do
10683
10684  acl_save_prefix="$prefix"
10685  prefix="$acl_final_prefix"
10686  acl_save_exec_prefix="$exec_prefix"
10687  exec_prefix="$acl_final_exec_prefix"
10688  eval x=\"$x\"
10689  exec_prefix="$acl_save_exec_prefix"
10690  prefix="$acl_save_prefix"
10691
10692                      if test "X$x" = "X-L$found_dir"; then
10693                        haveit=yes
10694                        break
10695                      fi
10696                    done
10697                    if test -z "$haveit"; then
10698                      LIBLMDB="${LIBLMDB}${LIBLMDB:+ }-L$found_dir"
10699                    fi
10700                    if test "$hardcode_minus_L" != no; then
10701                                                                                        LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$found_so"
10702                    else
10703                                                                                                                                                                                LIBLMDB="${LIBLMDB}${LIBLMDB:+ }-l$name"
10704                    fi
10705                  fi
10706                fi
10707              fi
10708            else
10709              if test "X$found_a" != "X"; then
10710                                LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$found_a"
10711              else
10712                                                LIBLMDB="${LIBLMDB}${LIBLMDB:+ }-L$found_dir -l$name"
10713              fi
10714            fi
10715                        additional_includedir=
10716            case "$found_dir" in
10717              */lib | */lib/)
10718                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10719                additional_includedir="$basedir/include"
10720                ;;
10721            esac
10722            if test "X$additional_includedir" != "X"; then
10723                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10724                haveit=
10725                if test "X$additional_includedir" = "X/usr/local/include"; then
10726                  if test -n "$GCC"; then
10727                    case $host_os in
10728                      linux*) haveit=yes;;
10729                    esac
10730                  fi
10731                fi
10732                if test -z "$haveit"; then
10733                  for x in $CPPFLAGS $INCLMDB; do
10734
10735  acl_save_prefix="$prefix"
10736  prefix="$acl_final_prefix"
10737  acl_save_exec_prefix="$exec_prefix"
10738  exec_prefix="$acl_final_exec_prefix"
10739  eval x=\"$x\"
10740  exec_prefix="$acl_save_exec_prefix"
10741  prefix="$acl_save_prefix"
10742
10743                    if test "X$x" = "X-I$additional_includedir"; then
10744                      haveit=yes
10745                      break
10746                    fi
10747                  done
10748                  if test -z "$haveit"; then
10749                    if test -d "$additional_includedir"; then
10750                                            INCLMDB="${INCLMDB}${INCLMDB:+ }-I$additional_includedir"
10751                    fi
10752                  fi
10753                fi
10754              fi
10755            fi
10756                        if test -n "$found_la"; then
10757                                                        save_libdir="$libdir"
10758              case "$found_la" in
10759                */* | *\\*) . "$found_la" ;;
10760                *) . "./$found_la" ;;
10761              esac
10762              libdir="$save_libdir"
10763                            for dep in $dependency_libs; do
10764                case "$dep" in
10765                  -L*)
10766                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10767                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10768                      haveit=
10769                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10770                        if test -n "$GCC"; then
10771                          case $host_os in
10772                            linux*) haveit=yes;;
10773                          esac
10774                        fi
10775                      fi
10776                      if test -z "$haveit"; then
10777                        haveit=
10778                        for x in $LDFLAGS $LIBLMDB; do
10779
10780  acl_save_prefix="$prefix"
10781  prefix="$acl_final_prefix"
10782  acl_save_exec_prefix="$exec_prefix"
10783  exec_prefix="$acl_final_exec_prefix"
10784  eval x=\"$x\"
10785  exec_prefix="$acl_save_exec_prefix"
10786  prefix="$acl_save_prefix"
10787
10788                          if test "X$x" = "X-L$additional_libdir"; then
10789                            haveit=yes
10790                            break
10791                          fi
10792                        done
10793                        if test -z "$haveit"; then
10794                          if test -d "$additional_libdir"; then
10795                                                        LIBLMDB="${LIBLMDB}${LIBLMDB:+ }-L$additional_libdir"
10796                          fi
10797                        fi
10798                        haveit=
10799                        for x in $LDFLAGS $LTLIBLMDB; do
10800
10801  acl_save_prefix="$prefix"
10802  prefix="$acl_final_prefix"
10803  acl_save_exec_prefix="$exec_prefix"
10804  exec_prefix="$acl_final_exec_prefix"
10805  eval x=\"$x\"
10806  exec_prefix="$acl_save_exec_prefix"
10807  prefix="$acl_save_prefix"
10808
10809                          if test "X$x" = "X-L$additional_libdir"; then
10810                            haveit=yes
10811                            break
10812                          fi
10813                        done
10814                        if test -z "$haveit"; then
10815                          if test -d "$additional_libdir"; then
10816                                                        LTLIBLMDB="${LTLIBLMDB}${LTLIBLMDB:+ }-L$additional_libdir"
10817                          fi
10818                        fi
10819                      fi
10820                    fi
10821                    ;;
10822                  -R*)
10823                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10824                    if test "$enable_rpath" != no; then
10825                                                                  haveit=
10826                      for x in $rpathdirs; do
10827                        if test "X$x" = "X$dir"; then
10828                          haveit=yes
10829                          break
10830                        fi
10831                      done
10832                      if test -z "$haveit"; then
10833                        rpathdirs="$rpathdirs $dir"
10834                      fi
10835                                                                  haveit=
10836                      for x in $ltrpathdirs; do
10837                        if test "X$x" = "X$dir"; then
10838                          haveit=yes
10839                          break
10840                        fi
10841                      done
10842                      if test -z "$haveit"; then
10843                        ltrpathdirs="$ltrpathdirs $dir"
10844                      fi
10845                    fi
10846                    ;;
10847                  -l*)
10848                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10849                    ;;
10850                  *.la)
10851                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10852                    ;;
10853                  *)
10854                                        LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$dep"
10855                    LTLIBLMDB="${LTLIBLMDB}${LTLIBLMDB:+ }$dep"
10856                    ;;
10857                esac
10858              done
10859            fi
10860          else
10861                                                            LIBLMDB="${LIBLMDB}${LIBLMDB:+ }-l$name"
10862            LTLIBLMDB="${LTLIBLMDB}${LTLIBLMDB:+ }-l$name"
10863          fi
10864        fi
10865      fi
10866    done
10867  done
10868  if test "X$rpathdirs" != "X"; then
10869    if test -n "$hardcode_libdir_separator"; then
10870                        alldirs=
10871      for found_dir in $rpathdirs; do
10872        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10873      done
10874            acl_save_libdir="$libdir"
10875      libdir="$alldirs"
10876      eval flag=\"$hardcode_libdir_flag_spec\"
10877      libdir="$acl_save_libdir"
10878      LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$flag"
10879    else
10880            for found_dir in $rpathdirs; do
10881        acl_save_libdir="$libdir"
10882        libdir="$found_dir"
10883        eval flag=\"$hardcode_libdir_flag_spec\"
10884        libdir="$acl_save_libdir"
10885        LIBLMDB="${LIBLMDB}${LIBLMDB:+ }$flag"
10886      done
10887    fi
10888  fi
10889  if test "X$ltrpathdirs" != "X"; then
10890            for found_dir in $ltrpathdirs; do
10891      LTLIBLMDB="${LTLIBLMDB}${LTLIBLMDB:+ }-R$found_dir"
10892    done
10893  fi
10894
10895    ac_cv_liblmdb_libs="$LIBLMDB"
10896    ac_cv_liblmdb_ltlibs="$LTLIBLMDB"
10897    ac_cv_liblmdb_cppflags="$INCLMDB"
10898
10899fi
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblmdb_libs" >&5
10901$as_echo "$ac_cv_liblmdb_libs" >&6; }
10902  LIBLMDB="$ac_cv_liblmdb_libs"
10903  LTLIBLMDB="$ac_cv_liblmdb_ltlibs"
10904  INCLMDB="$ac_cv_liblmdb_cppflags"
10905
10906  for element in $INCLMDB; do
10907    haveit=
10908    for x in $CPPFLAGS; do
10909
10910  acl_save_prefix="$prefix"
10911  prefix="$acl_final_prefix"
10912  acl_save_exec_prefix="$exec_prefix"
10913  exec_prefix="$acl_final_exec_prefix"
10914  eval x=\"$x\"
10915  exec_prefix="$acl_save_exec_prefix"
10916  prefix="$acl_save_prefix"
10917
10918      if test "X$x" = "X$element"; then
10919        haveit=yes
10920        break
10921      fi
10922    done
10923    if test -z "$haveit"; then
10924      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10925    fi
10926  done
10927
10928
10929
10930      HAVE_LIBLMDB=yes
10931
10932
10933
10934	LIBDB="$LIBLMDB"
10935	saveLIBS="$LIBS"
10936	LIBS="$LIBS $LIBDB"
10937	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938/* end confdefs.h.  */
10939
10940#include <lmdb.h>
10941
10942int
10943main ()
10944{
10945
10946		MDB_env *env;
10947		MDB_txn *txn;
10948		MDB_dbi dbi;
10949		mdb_env_create(&env);
10950		mdb_env_set_maxreaders(env, 1);
10951		mdb_env_set_mapsize(env, 4096*42);
10952		mdb_env_open(env, "/tmp", 0, 0660);
10953		mdb_txn_begin(env, 0, 0, &txn);
10954		mdb_dbi_open(txn, "", 0, &dbi);
10955
10956  ;
10957  return 0;
10958}
10959_ACEOF
10960if ac_fn_c_try_link "$LINENO"; then :
10961
10962else
10963  as_fn_error $? "Cannot link to lmdb library." "$LINENO" 5
10964fi
10965rm -f core conftest.err conftest.$ac_objext \
10966    conftest$ac_exeext conftest.$ac_ext
10967	LIBS="$saveLIBS"
10968        ;;
10969    xqdbm)
10970
10971$as_echo "#define ENABLE_QDBM_DATASTORE 1" >>confdefs.h
10972
10973	DB_TYPE=qdbm
10974	DB_EXT=.qdbm
10975
10976
10977
10978
10979
10980
10981
10982if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10983	if test -n "$ac_tool_prefix"; then
10984  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10985set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987$as_echo_n "checking for $ac_word... " >&6; }
10988if ${ac_cv_path_PKG_CONFIG+:} false; then :
10989  $as_echo_n "(cached) " >&6
10990else
10991  case $PKG_CONFIG in
10992  [\\/]* | ?:[\\/]*)
10993  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10994  ;;
10995  *)
10996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997for as_dir in $PATH
10998do
10999  IFS=$as_save_IFS
11000  test -z "$as_dir" && as_dir=.
11001    for ac_exec_ext in '' $ac_executable_extensions; do
11002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11003    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11005    break 2
11006  fi
11007done
11008  done
11009IFS=$as_save_IFS
11010
11011  ;;
11012esac
11013fi
11014PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11015if test -n "$PKG_CONFIG"; then
11016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11017$as_echo "$PKG_CONFIG" >&6; }
11018else
11019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020$as_echo "no" >&6; }
11021fi
11022
11023
11024fi
11025if test -z "$ac_cv_path_PKG_CONFIG"; then
11026  ac_pt_PKG_CONFIG=$PKG_CONFIG
11027  # Extract the first word of "pkg-config", so it can be a program name with args.
11028set dummy pkg-config; ac_word=$2
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030$as_echo_n "checking for $ac_word... " >&6; }
11031if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11032  $as_echo_n "(cached) " >&6
11033else
11034  case $ac_pt_PKG_CONFIG in
11035  [\\/]* | ?:[\\/]*)
11036  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11037  ;;
11038  *)
11039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042  IFS=$as_save_IFS
11043  test -z "$as_dir" && as_dir=.
11044    for ac_exec_ext in '' $ac_executable_extensions; do
11045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048    break 2
11049  fi
11050done
11051  done
11052IFS=$as_save_IFS
11053
11054  ;;
11055esac
11056fi
11057ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11058if test -n "$ac_pt_PKG_CONFIG"; then
11059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11060$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11061else
11062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
11064fi
11065
11066  if test "x$ac_pt_PKG_CONFIG" = x; then
11067    PKG_CONFIG=""
11068  else
11069    case $cross_compiling:$ac_tool_warned in
11070yes:)
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11073ac_tool_warned=yes ;;
11074esac
11075    PKG_CONFIG=$ac_pt_PKG_CONFIG
11076  fi
11077else
11078  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11079fi
11080
11081fi
11082if test -n "$PKG_CONFIG"; then
11083	_pkg_min_version=0.9.0
11084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11085$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11086	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11088$as_echo "yes" >&6; }
11089	else
11090		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091$as_echo "no" >&6; }
11092		PKG_CONFIG=""
11093	fi
11094fi
11095
11096pkg_failed=no
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QDBM" >&5
11098$as_echo_n "checking for QDBM... " >&6; }
11099
11100if test -n "$QDBM_CFLAGS"; then
11101    pkg_cv_QDBM_CFLAGS="$QDBM_CFLAGS"
11102 elif test -n "$PKG_CONFIG"; then
11103    if test -n "$PKG_CONFIG" && \
11104    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qdbm\""; } >&5
11105  ($PKG_CONFIG --exists --print-errors "qdbm") 2>&5
11106  ac_status=$?
11107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11108  test $ac_status = 0; }; then
11109  pkg_cv_QDBM_CFLAGS=`$PKG_CONFIG --cflags "qdbm" 2>/dev/null`
11110		      test "x$?" != "x0" && pkg_failed=yes
11111else
11112  pkg_failed=yes
11113fi
11114 else
11115    pkg_failed=untried
11116fi
11117if test -n "$QDBM_LIBS"; then
11118    pkg_cv_QDBM_LIBS="$QDBM_LIBS"
11119 elif test -n "$PKG_CONFIG"; then
11120    if test -n "$PKG_CONFIG" && \
11121    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qdbm\""; } >&5
11122  ($PKG_CONFIG --exists --print-errors "qdbm") 2>&5
11123  ac_status=$?
11124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11125  test $ac_status = 0; }; then
11126  pkg_cv_QDBM_LIBS=`$PKG_CONFIG --libs "qdbm" 2>/dev/null`
11127		      test "x$?" != "x0" && pkg_failed=yes
11128else
11129  pkg_failed=yes
11130fi
11131 else
11132    pkg_failed=untried
11133fi
11134
11135
11136
11137if test $pkg_failed = yes; then
11138   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
11140
11141if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11142        _pkg_short_errors_supported=yes
11143else
11144        _pkg_short_errors_supported=no
11145fi
11146        if test $_pkg_short_errors_supported = yes; then
11147	        QDBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "qdbm" 2>&1`
11148        else
11149	        QDBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "qdbm" 2>&1`
11150        fi
11151	# Put the nasty error message in config.log where it belongs
11152	echo "$QDBM_PKG_ERRORS" >&5
11153
11154
11155
11156
11157
11158
11159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libqdbm" >&5
11160$as_echo_n "checking how to link with libqdbm... " >&6; }
11161if ${ac_cv_libqdbm_libs+:} false; then :
11162  $as_echo_n "(cached) " >&6
11163else
11164
11165
11166
11167    use_additional=yes
11168
11169  acl_save_prefix="$prefix"
11170  prefix="$acl_final_prefix"
11171  acl_save_exec_prefix="$exec_prefix"
11172  exec_prefix="$acl_final_exec_prefix"
11173
11174    eval additional_includedir=\"$includedir\"
11175    eval additional_libdir=\"$libdir\"
11176
11177  exec_prefix="$acl_save_exec_prefix"
11178  prefix="$acl_save_prefix"
11179
11180
11181# Check whether --with-libqdbm-prefix was given.
11182if test "${with_libqdbm_prefix+set}" = set; then :
11183  withval=$with_libqdbm_prefix;
11184    if test "X$withval" = "Xno"; then
11185      use_additional=no
11186    else
11187      if test "X$withval" = "X"; then
11188
11189  acl_save_prefix="$prefix"
11190  prefix="$acl_final_prefix"
11191  acl_save_exec_prefix="$exec_prefix"
11192  exec_prefix="$acl_final_exec_prefix"
11193
11194          eval additional_includedir=\"$includedir\"
11195          eval additional_libdir=\"$libdir\"
11196
11197  exec_prefix="$acl_save_exec_prefix"
11198  prefix="$acl_save_prefix"
11199
11200      else
11201        additional_includedir="$withval/include"
11202        additional_libdir="$withval/lib"
11203      fi
11204    fi
11205
11206fi
11207
11208      LIBQDBM=
11209  LTLIBQDBM=
11210  INCQDBM=
11211  rpathdirs=
11212  ltrpathdirs=
11213  names_already_handled=
11214  names_next_round='qdbm '
11215  while test -n "$names_next_round"; do
11216    names_this_round="$names_next_round"
11217    names_next_round=
11218    for name in $names_this_round; do
11219      already_handled=
11220      for n in $names_already_handled; do
11221        if test "$n" = "$name"; then
11222          already_handled=yes
11223          break
11224        fi
11225      done
11226      if test -z "$already_handled"; then
11227        names_already_handled="$names_already_handled $name"
11228                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11229        eval value=\"\$HAVE_LIB$uppername\"
11230        if test -n "$value"; then
11231          if test "$value" = yes; then
11232            eval value=\"\$LIB$uppername\"
11233            test -z "$value" || LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$value"
11234            eval value=\"\$LTLIB$uppername\"
11235            test -z "$value" || LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }$value"
11236          else
11237                                    :
11238          fi
11239        else
11240                              found_dir=
11241          found_la=
11242          found_so=
11243          found_a=
11244          if test $use_additional = yes; then
11245            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11246              found_dir="$additional_libdir"
11247              found_so="$additional_libdir/lib$name.$shlibext"
11248              if test -f "$additional_libdir/lib$name.la"; then
11249                found_la="$additional_libdir/lib$name.la"
11250              fi
11251            else
11252              if test -f "$additional_libdir/lib$name.$libext"; then
11253                found_dir="$additional_libdir"
11254                found_a="$additional_libdir/lib$name.$libext"
11255                if test -f "$additional_libdir/lib$name.la"; then
11256                  found_la="$additional_libdir/lib$name.la"
11257                fi
11258              fi
11259            fi
11260          fi
11261          if test "X$found_dir" = "X"; then
11262            for x in $LDFLAGS $LTLIBQDBM; do
11263
11264  acl_save_prefix="$prefix"
11265  prefix="$acl_final_prefix"
11266  acl_save_exec_prefix="$exec_prefix"
11267  exec_prefix="$acl_final_exec_prefix"
11268  eval x=\"$x\"
11269  exec_prefix="$acl_save_exec_prefix"
11270  prefix="$acl_save_prefix"
11271
11272              case "$x" in
11273                -L*)
11274                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11275                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11276                    found_dir="$dir"
11277                    found_so="$dir/lib$name.$shlibext"
11278                    if test -f "$dir/lib$name.la"; then
11279                      found_la="$dir/lib$name.la"
11280                    fi
11281                  else
11282                    if test -f "$dir/lib$name.$libext"; then
11283                      found_dir="$dir"
11284                      found_a="$dir/lib$name.$libext"
11285                      if test -f "$dir/lib$name.la"; then
11286                        found_la="$dir/lib$name.la"
11287                      fi
11288                    fi
11289                  fi
11290                  ;;
11291              esac
11292              if test "X$found_dir" != "X"; then
11293                break
11294              fi
11295            done
11296          fi
11297          if test "X$found_dir" != "X"; then
11298                        LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }-L$found_dir -l$name"
11299            if test "X$found_so" != "X"; then
11300                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11301                                LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_so"
11302              else
11303                                                                                haveit=
11304                for x in $ltrpathdirs; do
11305                  if test "X$x" = "X$found_dir"; then
11306                    haveit=yes
11307                    break
11308                  fi
11309                done
11310                if test -z "$haveit"; then
11311                  ltrpathdirs="$ltrpathdirs $found_dir"
11312                fi
11313                                if test "$hardcode_direct" = yes; then
11314                                                      LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_so"
11315                else
11316                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11317                                                            LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_so"
11318                                                            haveit=
11319                    for x in $rpathdirs; do
11320                      if test "X$x" = "X$found_dir"; then
11321                        haveit=yes
11322                        break
11323                      fi
11324                    done
11325                    if test -z "$haveit"; then
11326                      rpathdirs="$rpathdirs $found_dir"
11327                    fi
11328                  else
11329                                                                                haveit=
11330                    for x in $LDFLAGS $LIBQDBM; do
11331
11332  acl_save_prefix="$prefix"
11333  prefix="$acl_final_prefix"
11334  acl_save_exec_prefix="$exec_prefix"
11335  exec_prefix="$acl_final_exec_prefix"
11336  eval x=\"$x\"
11337  exec_prefix="$acl_save_exec_prefix"
11338  prefix="$acl_save_prefix"
11339
11340                      if test "X$x" = "X-L$found_dir"; then
11341                        haveit=yes
11342                        break
11343                      fi
11344                    done
11345                    if test -z "$haveit"; then
11346                      LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-L$found_dir"
11347                    fi
11348                    if test "$hardcode_minus_L" != no; then
11349                                                                                        LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_so"
11350                    else
11351                                                                                                                                                                                LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-l$name"
11352                    fi
11353                  fi
11354                fi
11355              fi
11356            else
11357              if test "X$found_a" != "X"; then
11358                                LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_a"
11359              else
11360                                                LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-L$found_dir -l$name"
11361              fi
11362            fi
11363                        additional_includedir=
11364            case "$found_dir" in
11365              */lib | */lib/)
11366                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11367                additional_includedir="$basedir/include"
11368                ;;
11369            esac
11370            if test "X$additional_includedir" != "X"; then
11371                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11372                haveit=
11373                if test "X$additional_includedir" = "X/usr/local/include"; then
11374                  if test -n "$GCC"; then
11375                    case $host_os in
11376                      linux*) haveit=yes;;
11377                    esac
11378                  fi
11379                fi
11380                if test -z "$haveit"; then
11381                  for x in $CPPFLAGS $INCQDBM; do
11382
11383  acl_save_prefix="$prefix"
11384  prefix="$acl_final_prefix"
11385  acl_save_exec_prefix="$exec_prefix"
11386  exec_prefix="$acl_final_exec_prefix"
11387  eval x=\"$x\"
11388  exec_prefix="$acl_save_exec_prefix"
11389  prefix="$acl_save_prefix"
11390
11391                    if test "X$x" = "X-I$additional_includedir"; then
11392                      haveit=yes
11393                      break
11394                    fi
11395                  done
11396                  if test -z "$haveit"; then
11397                    if test -d "$additional_includedir"; then
11398                                            INCQDBM="${INCQDBM}${INCQDBM:+ }-I$additional_includedir"
11399                    fi
11400                  fi
11401                fi
11402              fi
11403            fi
11404                        if test -n "$found_la"; then
11405                                                        save_libdir="$libdir"
11406              case "$found_la" in
11407                */* | *\\*) . "$found_la" ;;
11408                *) . "./$found_la" ;;
11409              esac
11410              libdir="$save_libdir"
11411                            for dep in $dependency_libs; do
11412                case "$dep" in
11413                  -L*)
11414                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11415                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11416                      haveit=
11417                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11418                        if test -n "$GCC"; then
11419                          case $host_os in
11420                            linux*) haveit=yes;;
11421                          esac
11422                        fi
11423                      fi
11424                      if test -z "$haveit"; then
11425                        haveit=
11426                        for x in $LDFLAGS $LIBQDBM; do
11427
11428  acl_save_prefix="$prefix"
11429  prefix="$acl_final_prefix"
11430  acl_save_exec_prefix="$exec_prefix"
11431  exec_prefix="$acl_final_exec_prefix"
11432  eval x=\"$x\"
11433  exec_prefix="$acl_save_exec_prefix"
11434  prefix="$acl_save_prefix"
11435
11436                          if test "X$x" = "X-L$additional_libdir"; then
11437                            haveit=yes
11438                            break
11439                          fi
11440                        done
11441                        if test -z "$haveit"; then
11442                          if test -d "$additional_libdir"; then
11443                                                        LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-L$additional_libdir"
11444                          fi
11445                        fi
11446                        haveit=
11447                        for x in $LDFLAGS $LTLIBQDBM; do
11448
11449  acl_save_prefix="$prefix"
11450  prefix="$acl_final_prefix"
11451  acl_save_exec_prefix="$exec_prefix"
11452  exec_prefix="$acl_final_exec_prefix"
11453  eval x=\"$x\"
11454  exec_prefix="$acl_save_exec_prefix"
11455  prefix="$acl_save_prefix"
11456
11457                          if test "X$x" = "X-L$additional_libdir"; then
11458                            haveit=yes
11459                            break
11460                          fi
11461                        done
11462                        if test -z "$haveit"; then
11463                          if test -d "$additional_libdir"; then
11464                                                        LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }-L$additional_libdir"
11465                          fi
11466                        fi
11467                      fi
11468                    fi
11469                    ;;
11470                  -R*)
11471                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11472                    if test "$enable_rpath" != no; then
11473                                                                  haveit=
11474                      for x in $rpathdirs; do
11475                        if test "X$x" = "X$dir"; then
11476                          haveit=yes
11477                          break
11478                        fi
11479                      done
11480                      if test -z "$haveit"; then
11481                        rpathdirs="$rpathdirs $dir"
11482                      fi
11483                                                                  haveit=
11484                      for x in $ltrpathdirs; do
11485                        if test "X$x" = "X$dir"; then
11486                          haveit=yes
11487                          break
11488                        fi
11489                      done
11490                      if test -z "$haveit"; then
11491                        ltrpathdirs="$ltrpathdirs $dir"
11492                      fi
11493                    fi
11494                    ;;
11495                  -l*)
11496                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11497                    ;;
11498                  *.la)
11499                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11500                    ;;
11501                  *)
11502                                        LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$dep"
11503                    LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }$dep"
11504                    ;;
11505                esac
11506              done
11507            fi
11508          else
11509                                                            LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-l$name"
11510            LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }-l$name"
11511          fi
11512        fi
11513      fi
11514    done
11515  done
11516  if test "X$rpathdirs" != "X"; then
11517    if test -n "$hardcode_libdir_separator"; then
11518                        alldirs=
11519      for found_dir in $rpathdirs; do
11520        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11521      done
11522            acl_save_libdir="$libdir"
11523      libdir="$alldirs"
11524      eval flag=\"$hardcode_libdir_flag_spec\"
11525      libdir="$acl_save_libdir"
11526      LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$flag"
11527    else
11528            for found_dir in $rpathdirs; do
11529        acl_save_libdir="$libdir"
11530        libdir="$found_dir"
11531        eval flag=\"$hardcode_libdir_flag_spec\"
11532        libdir="$acl_save_libdir"
11533        LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$flag"
11534      done
11535    fi
11536  fi
11537  if test "X$ltrpathdirs" != "X"; then
11538            for found_dir in $ltrpathdirs; do
11539      LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }-R$found_dir"
11540    done
11541  fi
11542
11543    ac_cv_libqdbm_libs="$LIBQDBM"
11544    ac_cv_libqdbm_ltlibs="$LTLIBQDBM"
11545    ac_cv_libqdbm_cppflags="$INCQDBM"
11546
11547fi
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libqdbm_libs" >&5
11549$as_echo "$ac_cv_libqdbm_libs" >&6; }
11550  LIBQDBM="$ac_cv_libqdbm_libs"
11551  LTLIBQDBM="$ac_cv_libqdbm_ltlibs"
11552  INCQDBM="$ac_cv_libqdbm_cppflags"
11553
11554  for element in $INCQDBM; do
11555    haveit=
11556    for x in $CPPFLAGS; do
11557
11558  acl_save_prefix="$prefix"
11559  prefix="$acl_final_prefix"
11560  acl_save_exec_prefix="$exec_prefix"
11561  exec_prefix="$acl_final_exec_prefix"
11562  eval x=\"$x\"
11563  exec_prefix="$acl_save_exec_prefix"
11564  prefix="$acl_save_prefix"
11565
11566      if test "X$x" = "X$element"; then
11567        haveit=yes
11568        break
11569      fi
11570    done
11571    if test -z "$haveit"; then
11572      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11573    fi
11574  done
11575
11576
11577
11578      HAVE_LIBQDBM=yes
11579
11580
11581
11582		   for ac_header in qdbm/depot.h
11583do :
11584  ac_fn_c_check_header_mongrel "$LINENO" "qdbm/depot.h" "ac_cv_header_qdbm_depot_h" "$ac_includes_default"
11585if test "x$ac_cv_header_qdbm_depot_h" = xyes; then :
11586  cat >>confdefs.h <<_ACEOF
11587#define HAVE_QDBM_DEPOT_H 1
11588_ACEOF
11589 CFLAGS="$CFLAGS -I/usr/include/qdbm"
11590fi
11591
11592done
11593
11594elif test $pkg_failed = untried; then
11595     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596$as_echo "no" >&6; }
11597
11598
11599
11600
11601
11602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libqdbm" >&5
11603$as_echo_n "checking how to link with libqdbm... " >&6; }
11604if ${ac_cv_libqdbm_libs+:} false; then :
11605  $as_echo_n "(cached) " >&6
11606else
11607
11608
11609
11610    use_additional=yes
11611
11612  acl_save_prefix="$prefix"
11613  prefix="$acl_final_prefix"
11614  acl_save_exec_prefix="$exec_prefix"
11615  exec_prefix="$acl_final_exec_prefix"
11616
11617    eval additional_includedir=\"$includedir\"
11618    eval additional_libdir=\"$libdir\"
11619
11620  exec_prefix="$acl_save_exec_prefix"
11621  prefix="$acl_save_prefix"
11622
11623
11624# Check whether --with-libqdbm-prefix was given.
11625if test "${with_libqdbm_prefix+set}" = set; then :
11626  withval=$with_libqdbm_prefix;
11627    if test "X$withval" = "Xno"; then
11628      use_additional=no
11629    else
11630      if test "X$withval" = "X"; then
11631
11632  acl_save_prefix="$prefix"
11633  prefix="$acl_final_prefix"
11634  acl_save_exec_prefix="$exec_prefix"
11635  exec_prefix="$acl_final_exec_prefix"
11636
11637          eval additional_includedir=\"$includedir\"
11638          eval additional_libdir=\"$libdir\"
11639
11640  exec_prefix="$acl_save_exec_prefix"
11641  prefix="$acl_save_prefix"
11642
11643      else
11644        additional_includedir="$withval/include"
11645        additional_libdir="$withval/lib"
11646      fi
11647    fi
11648
11649fi
11650
11651      LIBQDBM=
11652  LTLIBQDBM=
11653  INCQDBM=
11654  rpathdirs=
11655  ltrpathdirs=
11656  names_already_handled=
11657  names_next_round='qdbm '
11658  while test -n "$names_next_round"; do
11659    names_this_round="$names_next_round"
11660    names_next_round=
11661    for name in $names_this_round; do
11662      already_handled=
11663      for n in $names_already_handled; do
11664        if test "$n" = "$name"; then
11665          already_handled=yes
11666          break
11667        fi
11668      done
11669      if test -z "$already_handled"; then
11670        names_already_handled="$names_already_handled $name"
11671                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11672        eval value=\"\$HAVE_LIB$uppername\"
11673        if test -n "$value"; then
11674          if test "$value" = yes; then
11675            eval value=\"\$LIB$uppername\"
11676            test -z "$value" || LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$value"
11677            eval value=\"\$LTLIB$uppername\"
11678            test -z "$value" || LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }$value"
11679          else
11680                                    :
11681          fi
11682        else
11683                              found_dir=
11684          found_la=
11685          found_so=
11686          found_a=
11687          if test $use_additional = yes; then
11688            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11689              found_dir="$additional_libdir"
11690              found_so="$additional_libdir/lib$name.$shlibext"
11691              if test -f "$additional_libdir/lib$name.la"; then
11692                found_la="$additional_libdir/lib$name.la"
11693              fi
11694            else
11695              if test -f "$additional_libdir/lib$name.$libext"; then
11696                found_dir="$additional_libdir"
11697                found_a="$additional_libdir/lib$name.$libext"
11698                if test -f "$additional_libdir/lib$name.la"; then
11699                  found_la="$additional_libdir/lib$name.la"
11700                fi
11701              fi
11702            fi
11703          fi
11704          if test "X$found_dir" = "X"; then
11705            for x in $LDFLAGS $LTLIBQDBM; do
11706
11707  acl_save_prefix="$prefix"
11708  prefix="$acl_final_prefix"
11709  acl_save_exec_prefix="$exec_prefix"
11710  exec_prefix="$acl_final_exec_prefix"
11711  eval x=\"$x\"
11712  exec_prefix="$acl_save_exec_prefix"
11713  prefix="$acl_save_prefix"
11714
11715              case "$x" in
11716                -L*)
11717                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11718                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11719                    found_dir="$dir"
11720                    found_so="$dir/lib$name.$shlibext"
11721                    if test -f "$dir/lib$name.la"; then
11722                      found_la="$dir/lib$name.la"
11723                    fi
11724                  else
11725                    if test -f "$dir/lib$name.$libext"; then
11726                      found_dir="$dir"
11727                      found_a="$dir/lib$name.$libext"
11728                      if test -f "$dir/lib$name.la"; then
11729                        found_la="$dir/lib$name.la"
11730                      fi
11731                    fi
11732                  fi
11733                  ;;
11734              esac
11735              if test "X$found_dir" != "X"; then
11736                break
11737              fi
11738            done
11739          fi
11740          if test "X$found_dir" != "X"; then
11741                        LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }-L$found_dir -l$name"
11742            if test "X$found_so" != "X"; then
11743                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11744                                LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_so"
11745              else
11746                                                                                haveit=
11747                for x in $ltrpathdirs; do
11748                  if test "X$x" = "X$found_dir"; then
11749                    haveit=yes
11750                    break
11751                  fi
11752                done
11753                if test -z "$haveit"; then
11754                  ltrpathdirs="$ltrpathdirs $found_dir"
11755                fi
11756                                if test "$hardcode_direct" = yes; then
11757                                                      LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_so"
11758                else
11759                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11760                                                            LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_so"
11761                                                            haveit=
11762                    for x in $rpathdirs; do
11763                      if test "X$x" = "X$found_dir"; then
11764                        haveit=yes
11765                        break
11766                      fi
11767                    done
11768                    if test -z "$haveit"; then
11769                      rpathdirs="$rpathdirs $found_dir"
11770                    fi
11771                  else
11772                                                                                haveit=
11773                    for x in $LDFLAGS $LIBQDBM; do
11774
11775  acl_save_prefix="$prefix"
11776  prefix="$acl_final_prefix"
11777  acl_save_exec_prefix="$exec_prefix"
11778  exec_prefix="$acl_final_exec_prefix"
11779  eval x=\"$x\"
11780  exec_prefix="$acl_save_exec_prefix"
11781  prefix="$acl_save_prefix"
11782
11783                      if test "X$x" = "X-L$found_dir"; then
11784                        haveit=yes
11785                        break
11786                      fi
11787                    done
11788                    if test -z "$haveit"; then
11789                      LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-L$found_dir"
11790                    fi
11791                    if test "$hardcode_minus_L" != no; then
11792                                                                                        LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_so"
11793                    else
11794                                                                                                                                                                                LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-l$name"
11795                    fi
11796                  fi
11797                fi
11798              fi
11799            else
11800              if test "X$found_a" != "X"; then
11801                                LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$found_a"
11802              else
11803                                                LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-L$found_dir -l$name"
11804              fi
11805            fi
11806                        additional_includedir=
11807            case "$found_dir" in
11808              */lib | */lib/)
11809                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11810                additional_includedir="$basedir/include"
11811                ;;
11812            esac
11813            if test "X$additional_includedir" != "X"; then
11814                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11815                haveit=
11816                if test "X$additional_includedir" = "X/usr/local/include"; then
11817                  if test -n "$GCC"; then
11818                    case $host_os in
11819                      linux*) haveit=yes;;
11820                    esac
11821                  fi
11822                fi
11823                if test -z "$haveit"; then
11824                  for x in $CPPFLAGS $INCQDBM; do
11825
11826  acl_save_prefix="$prefix"
11827  prefix="$acl_final_prefix"
11828  acl_save_exec_prefix="$exec_prefix"
11829  exec_prefix="$acl_final_exec_prefix"
11830  eval x=\"$x\"
11831  exec_prefix="$acl_save_exec_prefix"
11832  prefix="$acl_save_prefix"
11833
11834                    if test "X$x" = "X-I$additional_includedir"; then
11835                      haveit=yes
11836                      break
11837                    fi
11838                  done
11839                  if test -z "$haveit"; then
11840                    if test -d "$additional_includedir"; then
11841                                            INCQDBM="${INCQDBM}${INCQDBM:+ }-I$additional_includedir"
11842                    fi
11843                  fi
11844                fi
11845              fi
11846            fi
11847                        if test -n "$found_la"; then
11848                                                        save_libdir="$libdir"
11849              case "$found_la" in
11850                */* | *\\*) . "$found_la" ;;
11851                *) . "./$found_la" ;;
11852              esac
11853              libdir="$save_libdir"
11854                            for dep in $dependency_libs; do
11855                case "$dep" in
11856                  -L*)
11857                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11858                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11859                      haveit=
11860                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11861                        if test -n "$GCC"; then
11862                          case $host_os in
11863                            linux*) haveit=yes;;
11864                          esac
11865                        fi
11866                      fi
11867                      if test -z "$haveit"; then
11868                        haveit=
11869                        for x in $LDFLAGS $LIBQDBM; do
11870
11871  acl_save_prefix="$prefix"
11872  prefix="$acl_final_prefix"
11873  acl_save_exec_prefix="$exec_prefix"
11874  exec_prefix="$acl_final_exec_prefix"
11875  eval x=\"$x\"
11876  exec_prefix="$acl_save_exec_prefix"
11877  prefix="$acl_save_prefix"
11878
11879                          if test "X$x" = "X-L$additional_libdir"; then
11880                            haveit=yes
11881                            break
11882                          fi
11883                        done
11884                        if test -z "$haveit"; then
11885                          if test -d "$additional_libdir"; then
11886                                                        LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-L$additional_libdir"
11887                          fi
11888                        fi
11889                        haveit=
11890                        for x in $LDFLAGS $LTLIBQDBM; do
11891
11892  acl_save_prefix="$prefix"
11893  prefix="$acl_final_prefix"
11894  acl_save_exec_prefix="$exec_prefix"
11895  exec_prefix="$acl_final_exec_prefix"
11896  eval x=\"$x\"
11897  exec_prefix="$acl_save_exec_prefix"
11898  prefix="$acl_save_prefix"
11899
11900                          if test "X$x" = "X-L$additional_libdir"; then
11901                            haveit=yes
11902                            break
11903                          fi
11904                        done
11905                        if test -z "$haveit"; then
11906                          if test -d "$additional_libdir"; then
11907                                                        LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }-L$additional_libdir"
11908                          fi
11909                        fi
11910                      fi
11911                    fi
11912                    ;;
11913                  -R*)
11914                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11915                    if test "$enable_rpath" != no; then
11916                                                                  haveit=
11917                      for x in $rpathdirs; do
11918                        if test "X$x" = "X$dir"; then
11919                          haveit=yes
11920                          break
11921                        fi
11922                      done
11923                      if test -z "$haveit"; then
11924                        rpathdirs="$rpathdirs $dir"
11925                      fi
11926                                                                  haveit=
11927                      for x in $ltrpathdirs; do
11928                        if test "X$x" = "X$dir"; then
11929                          haveit=yes
11930                          break
11931                        fi
11932                      done
11933                      if test -z "$haveit"; then
11934                        ltrpathdirs="$ltrpathdirs $dir"
11935                      fi
11936                    fi
11937                    ;;
11938                  -l*)
11939                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11940                    ;;
11941                  *.la)
11942                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11943                    ;;
11944                  *)
11945                                        LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$dep"
11946                    LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }$dep"
11947                    ;;
11948                esac
11949              done
11950            fi
11951          else
11952                                                            LIBQDBM="${LIBQDBM}${LIBQDBM:+ }-l$name"
11953            LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }-l$name"
11954          fi
11955        fi
11956      fi
11957    done
11958  done
11959  if test "X$rpathdirs" != "X"; then
11960    if test -n "$hardcode_libdir_separator"; then
11961                        alldirs=
11962      for found_dir in $rpathdirs; do
11963        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11964      done
11965            acl_save_libdir="$libdir"
11966      libdir="$alldirs"
11967      eval flag=\"$hardcode_libdir_flag_spec\"
11968      libdir="$acl_save_libdir"
11969      LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$flag"
11970    else
11971            for found_dir in $rpathdirs; do
11972        acl_save_libdir="$libdir"
11973        libdir="$found_dir"
11974        eval flag=\"$hardcode_libdir_flag_spec\"
11975        libdir="$acl_save_libdir"
11976        LIBQDBM="${LIBQDBM}${LIBQDBM:+ }$flag"
11977      done
11978    fi
11979  fi
11980  if test "X$ltrpathdirs" != "X"; then
11981            for found_dir in $ltrpathdirs; do
11982      LTLIBQDBM="${LTLIBQDBM}${LTLIBQDBM:+ }-R$found_dir"
11983    done
11984  fi
11985
11986    ac_cv_libqdbm_libs="$LIBQDBM"
11987    ac_cv_libqdbm_ltlibs="$LTLIBQDBM"
11988    ac_cv_libqdbm_cppflags="$INCQDBM"
11989
11990fi
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libqdbm_libs" >&5
11992$as_echo "$ac_cv_libqdbm_libs" >&6; }
11993  LIBQDBM="$ac_cv_libqdbm_libs"
11994  LTLIBQDBM="$ac_cv_libqdbm_ltlibs"
11995  INCQDBM="$ac_cv_libqdbm_cppflags"
11996
11997  for element in $INCQDBM; do
11998    haveit=
11999    for x in $CPPFLAGS; do
12000
12001  acl_save_prefix="$prefix"
12002  prefix="$acl_final_prefix"
12003  acl_save_exec_prefix="$exec_prefix"
12004  exec_prefix="$acl_final_exec_prefix"
12005  eval x=\"$x\"
12006  exec_prefix="$acl_save_exec_prefix"
12007  prefix="$acl_save_prefix"
12008
12009      if test "X$x" = "X$element"; then
12010        haveit=yes
12011        break
12012      fi
12013    done
12014    if test -z "$haveit"; then
12015      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12016    fi
12017  done
12018
12019
12020
12021      HAVE_LIBQDBM=yes
12022
12023
12024
12025		   for ac_header in qdbm/depot.h
12026do :
12027  ac_fn_c_check_header_mongrel "$LINENO" "qdbm/depot.h" "ac_cv_header_qdbm_depot_h" "$ac_includes_default"
12028if test "x$ac_cv_header_qdbm_depot_h" = xyes; then :
12029  cat >>confdefs.h <<_ACEOF
12030#define HAVE_QDBM_DEPOT_H 1
12031_ACEOF
12032 CFLAGS="$CFLAGS -I/usr/include/qdbm"
12033fi
12034
12035done
12036
12037else
12038	QDBM_CFLAGS=$pkg_cv_QDBM_CFLAGS
12039	QDBM_LIBS=$pkg_cv_QDBM_LIBS
12040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041$as_echo "yes" >&6; }
12042	CFLAGS="$CFLAGS $QDBM_CFLAGS"
12043fi
12044	LIBDB="$LIBQDBM $QDBM_LIBS"
12045	saveLIBS="$LIBS"
12046	LIBS="$LIBS $LIBDB"
12047	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048/* end confdefs.h.  */
12049
12050#include <stdlib.h>
12051#include <depot.h>
12052
12053int
12054main ()
12055{
12056
12057	    DEPOT *d = dpopen("", 0, 0);
12058
12059  ;
12060  return 0;
12061}
12062_ACEOF
12063if ac_fn_c_try_link "$LINENO"; then :
12064
12065else
12066  as_fn_error $? "Cannot link to qdbm library." "$LINENO" 5
12067fi
12068rm -f core conftest.err conftest.$ac_objext \
12069    conftest$ac_exeext conftest.$ac_ext
12070	LIBS="$saveLIBS"
12071    ;;
12072    xdb*)
12073				DB_TYPE=db
12074	DB_EXT=.db
12075
12076
12077
12078
12079
12080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libdb" >&5
12081$as_echo_n "checking how to link with libdb... " >&6; }
12082if ${ac_cv_libdb_libs+:} false; then :
12083  $as_echo_n "(cached) " >&6
12084else
12085
12086
12087
12088    use_additional=yes
12089
12090  acl_save_prefix="$prefix"
12091  prefix="$acl_final_prefix"
12092  acl_save_exec_prefix="$exec_prefix"
12093  exec_prefix="$acl_final_exec_prefix"
12094
12095    eval additional_includedir=\"$includedir\"
12096    eval additional_libdir=\"$libdir\"
12097
12098  exec_prefix="$acl_save_exec_prefix"
12099  prefix="$acl_save_prefix"
12100
12101
12102# Check whether --with-libdb-prefix was given.
12103if test "${with_libdb_prefix+set}" = set; then :
12104  withval=$with_libdb_prefix;
12105    if test "X$withval" = "Xno"; then
12106      use_additional=no
12107    else
12108      if test "X$withval" = "X"; then
12109
12110  acl_save_prefix="$prefix"
12111  prefix="$acl_final_prefix"
12112  acl_save_exec_prefix="$exec_prefix"
12113  exec_prefix="$acl_final_exec_prefix"
12114
12115          eval additional_includedir=\"$includedir\"
12116          eval additional_libdir=\"$libdir\"
12117
12118  exec_prefix="$acl_save_exec_prefix"
12119  prefix="$acl_save_prefix"
12120
12121      else
12122        additional_includedir="$withval/include"
12123        additional_libdir="$withval/lib"
12124      fi
12125    fi
12126
12127fi
12128
12129      LIBDB=
12130  LTLIBDB=
12131  INCDB=
12132  rpathdirs=
12133  ltrpathdirs=
12134  names_already_handled=
12135  names_next_round='db '
12136  while test -n "$names_next_round"; do
12137    names_this_round="$names_next_round"
12138    names_next_round=
12139    for name in $names_this_round; do
12140      already_handled=
12141      for n in $names_already_handled; do
12142        if test "$n" = "$name"; then
12143          already_handled=yes
12144          break
12145        fi
12146      done
12147      if test -z "$already_handled"; then
12148        names_already_handled="$names_already_handled $name"
12149                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12150        eval value=\"\$HAVE_LIB$uppername\"
12151        if test -n "$value"; then
12152          if test "$value" = yes; then
12153            eval value=\"\$LIB$uppername\"
12154            test -z "$value" || LIBDB="${LIBDB}${LIBDB:+ }$value"
12155            eval value=\"\$LTLIB$uppername\"
12156            test -z "$value" || LTLIBDB="${LTLIBDB}${LTLIBDB:+ }$value"
12157          else
12158                                    :
12159          fi
12160        else
12161                              found_dir=
12162          found_la=
12163          found_so=
12164          found_a=
12165          if test $use_additional = yes; then
12166            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12167              found_dir="$additional_libdir"
12168              found_so="$additional_libdir/lib$name.$shlibext"
12169              if test -f "$additional_libdir/lib$name.la"; then
12170                found_la="$additional_libdir/lib$name.la"
12171              fi
12172            else
12173              if test -f "$additional_libdir/lib$name.$libext"; then
12174                found_dir="$additional_libdir"
12175                found_a="$additional_libdir/lib$name.$libext"
12176                if test -f "$additional_libdir/lib$name.la"; then
12177                  found_la="$additional_libdir/lib$name.la"
12178                fi
12179              fi
12180            fi
12181          fi
12182          if test "X$found_dir" = "X"; then
12183            for x in $LDFLAGS $LTLIBDB; do
12184
12185  acl_save_prefix="$prefix"
12186  prefix="$acl_final_prefix"
12187  acl_save_exec_prefix="$exec_prefix"
12188  exec_prefix="$acl_final_exec_prefix"
12189  eval x=\"$x\"
12190  exec_prefix="$acl_save_exec_prefix"
12191  prefix="$acl_save_prefix"
12192
12193              case "$x" in
12194                -L*)
12195                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12196                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12197                    found_dir="$dir"
12198                    found_so="$dir/lib$name.$shlibext"
12199                    if test -f "$dir/lib$name.la"; then
12200                      found_la="$dir/lib$name.la"
12201                    fi
12202                  else
12203                    if test -f "$dir/lib$name.$libext"; then
12204                      found_dir="$dir"
12205                      found_a="$dir/lib$name.$libext"
12206                      if test -f "$dir/lib$name.la"; then
12207                        found_la="$dir/lib$name.la"
12208                      fi
12209                    fi
12210                  fi
12211                  ;;
12212              esac
12213              if test "X$found_dir" != "X"; then
12214                break
12215              fi
12216            done
12217          fi
12218          if test "X$found_dir" != "X"; then
12219                        LTLIBDB="${LTLIBDB}${LTLIBDB:+ }-L$found_dir -l$name"
12220            if test "X$found_so" != "X"; then
12221                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12222                                LIBDB="${LIBDB}${LIBDB:+ }$found_so"
12223              else
12224                                                                                haveit=
12225                for x in $ltrpathdirs; do
12226                  if test "X$x" = "X$found_dir"; then
12227                    haveit=yes
12228                    break
12229                  fi
12230                done
12231                if test -z "$haveit"; then
12232                  ltrpathdirs="$ltrpathdirs $found_dir"
12233                fi
12234                                if test "$hardcode_direct" = yes; then
12235                                                      LIBDB="${LIBDB}${LIBDB:+ }$found_so"
12236                else
12237                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12238                                                            LIBDB="${LIBDB}${LIBDB:+ }$found_so"
12239                                                            haveit=
12240                    for x in $rpathdirs; do
12241                      if test "X$x" = "X$found_dir"; then
12242                        haveit=yes
12243                        break
12244                      fi
12245                    done
12246                    if test -z "$haveit"; then
12247                      rpathdirs="$rpathdirs $found_dir"
12248                    fi
12249                  else
12250                                                                                haveit=
12251                    for x in $LDFLAGS $LIBDB; do
12252
12253  acl_save_prefix="$prefix"
12254  prefix="$acl_final_prefix"
12255  acl_save_exec_prefix="$exec_prefix"
12256  exec_prefix="$acl_final_exec_prefix"
12257  eval x=\"$x\"
12258  exec_prefix="$acl_save_exec_prefix"
12259  prefix="$acl_save_prefix"
12260
12261                      if test "X$x" = "X-L$found_dir"; then
12262                        haveit=yes
12263                        break
12264                      fi
12265                    done
12266                    if test -z "$haveit"; then
12267                      LIBDB="${LIBDB}${LIBDB:+ }-L$found_dir"
12268                    fi
12269                    if test "$hardcode_minus_L" != no; then
12270                                                                                        LIBDB="${LIBDB}${LIBDB:+ }$found_so"
12271                    else
12272                                                                                                                                                                                LIBDB="${LIBDB}${LIBDB:+ }-l$name"
12273                    fi
12274                  fi
12275                fi
12276              fi
12277            else
12278              if test "X$found_a" != "X"; then
12279                                LIBDB="${LIBDB}${LIBDB:+ }$found_a"
12280              else
12281                                                LIBDB="${LIBDB}${LIBDB:+ }-L$found_dir -l$name"
12282              fi
12283            fi
12284                        additional_includedir=
12285            case "$found_dir" in
12286              */lib | */lib/)
12287                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12288                additional_includedir="$basedir/include"
12289                ;;
12290            esac
12291            if test "X$additional_includedir" != "X"; then
12292                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12293                haveit=
12294                if test "X$additional_includedir" = "X/usr/local/include"; then
12295                  if test -n "$GCC"; then
12296                    case $host_os in
12297                      linux*) haveit=yes;;
12298                    esac
12299                  fi
12300                fi
12301                if test -z "$haveit"; then
12302                  for x in $CPPFLAGS $INCDB; do
12303
12304  acl_save_prefix="$prefix"
12305  prefix="$acl_final_prefix"
12306  acl_save_exec_prefix="$exec_prefix"
12307  exec_prefix="$acl_final_exec_prefix"
12308  eval x=\"$x\"
12309  exec_prefix="$acl_save_exec_prefix"
12310  prefix="$acl_save_prefix"
12311
12312                    if test "X$x" = "X-I$additional_includedir"; then
12313                      haveit=yes
12314                      break
12315                    fi
12316                  done
12317                  if test -z "$haveit"; then
12318                    if test -d "$additional_includedir"; then
12319                                            INCDB="${INCDB}${INCDB:+ }-I$additional_includedir"
12320                    fi
12321                  fi
12322                fi
12323              fi
12324            fi
12325                        if test -n "$found_la"; then
12326                                                        save_libdir="$libdir"
12327              case "$found_la" in
12328                */* | *\\*) . "$found_la" ;;
12329                *) . "./$found_la" ;;
12330              esac
12331              libdir="$save_libdir"
12332                            for dep in $dependency_libs; do
12333                case "$dep" in
12334                  -L*)
12335                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12336                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
12337                      haveit=
12338                      if test "X$additional_libdir" = "X/usr/local/lib"; then
12339                        if test -n "$GCC"; then
12340                          case $host_os in
12341                            linux*) haveit=yes;;
12342                          esac
12343                        fi
12344                      fi
12345                      if test -z "$haveit"; then
12346                        haveit=
12347                        for x in $LDFLAGS $LIBDB; do
12348
12349  acl_save_prefix="$prefix"
12350  prefix="$acl_final_prefix"
12351  acl_save_exec_prefix="$exec_prefix"
12352  exec_prefix="$acl_final_exec_prefix"
12353  eval x=\"$x\"
12354  exec_prefix="$acl_save_exec_prefix"
12355  prefix="$acl_save_prefix"
12356
12357                          if test "X$x" = "X-L$additional_libdir"; then
12358                            haveit=yes
12359                            break
12360                          fi
12361                        done
12362                        if test -z "$haveit"; then
12363                          if test -d "$additional_libdir"; then
12364                                                        LIBDB="${LIBDB}${LIBDB:+ }-L$additional_libdir"
12365                          fi
12366                        fi
12367                        haveit=
12368                        for x in $LDFLAGS $LTLIBDB; do
12369
12370  acl_save_prefix="$prefix"
12371  prefix="$acl_final_prefix"
12372  acl_save_exec_prefix="$exec_prefix"
12373  exec_prefix="$acl_final_exec_prefix"
12374  eval x=\"$x\"
12375  exec_prefix="$acl_save_exec_prefix"
12376  prefix="$acl_save_prefix"
12377
12378                          if test "X$x" = "X-L$additional_libdir"; then
12379                            haveit=yes
12380                            break
12381                          fi
12382                        done
12383                        if test -z "$haveit"; then
12384                          if test -d "$additional_libdir"; then
12385                                                        LTLIBDB="${LTLIBDB}${LTLIBDB:+ }-L$additional_libdir"
12386                          fi
12387                        fi
12388                      fi
12389                    fi
12390                    ;;
12391                  -R*)
12392                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12393                    if test "$enable_rpath" != no; then
12394                                                                  haveit=
12395                      for x in $rpathdirs; do
12396                        if test "X$x" = "X$dir"; then
12397                          haveit=yes
12398                          break
12399                        fi
12400                      done
12401                      if test -z "$haveit"; then
12402                        rpathdirs="$rpathdirs $dir"
12403                      fi
12404                                                                  haveit=
12405                      for x in $ltrpathdirs; do
12406                        if test "X$x" = "X$dir"; then
12407                          haveit=yes
12408                          break
12409                        fi
12410                      done
12411                      if test -z "$haveit"; then
12412                        ltrpathdirs="$ltrpathdirs $dir"
12413                      fi
12414                    fi
12415                    ;;
12416                  -l*)
12417                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12418                    ;;
12419                  *.la)
12420                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12421                    ;;
12422                  *)
12423                                        LIBDB="${LIBDB}${LIBDB:+ }$dep"
12424                    LTLIBDB="${LTLIBDB}${LTLIBDB:+ }$dep"
12425                    ;;
12426                esac
12427              done
12428            fi
12429          else
12430                                                            LIBDB="${LIBDB}${LIBDB:+ }-l$name"
12431            LTLIBDB="${LTLIBDB}${LTLIBDB:+ }-l$name"
12432          fi
12433        fi
12434      fi
12435    done
12436  done
12437  if test "X$rpathdirs" != "X"; then
12438    if test -n "$hardcode_libdir_separator"; then
12439                        alldirs=
12440      for found_dir in $rpathdirs; do
12441        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12442      done
12443            acl_save_libdir="$libdir"
12444      libdir="$alldirs"
12445      eval flag=\"$hardcode_libdir_flag_spec\"
12446      libdir="$acl_save_libdir"
12447      LIBDB="${LIBDB}${LIBDB:+ }$flag"
12448    else
12449            for found_dir in $rpathdirs; do
12450        acl_save_libdir="$libdir"
12451        libdir="$found_dir"
12452        eval flag=\"$hardcode_libdir_flag_spec\"
12453        libdir="$acl_save_libdir"
12454        LIBDB="${LIBDB}${LIBDB:+ }$flag"
12455      done
12456    fi
12457  fi
12458  if test "X$ltrpathdirs" != "X"; then
12459            for found_dir in $ltrpathdirs; do
12460      LTLIBDB="${LTLIBDB}${LTLIBDB:+ }-R$found_dir"
12461    done
12462  fi
12463
12464    ac_cv_libdb_libs="$LIBDB"
12465    ac_cv_libdb_ltlibs="$LTLIBDB"
12466    ac_cv_libdb_cppflags="$INCDB"
12467
12468fi
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libdb_libs" >&5
12470$as_echo "$ac_cv_libdb_libs" >&6; }
12471  LIBDB="$ac_cv_libdb_libs"
12472  LTLIBDB="$ac_cv_libdb_ltlibs"
12473  INCDB="$ac_cv_libdb_cppflags"
12474
12475  for element in $INCDB; do
12476    haveit=
12477    for x in $CPPFLAGS; do
12478
12479  acl_save_prefix="$prefix"
12480  prefix="$acl_final_prefix"
12481  acl_save_exec_prefix="$exec_prefix"
12482  exec_prefix="$acl_final_exec_prefix"
12483  eval x=\"$x\"
12484  exec_prefix="$acl_save_exec_prefix"
12485  prefix="$acl_save_prefix"
12486
12487      if test "X$x" = "X$element"; then
12488        haveit=yes
12489        break
12490      fi
12491    done
12492    if test -z "$haveit"; then
12493      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12494    fi
12495  done
12496
12497
12498
12499      HAVE_LIBDB=yes
12500
12501
12502
12503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking db and dependent libraries" >&5
12504$as_echo_n "checking db and dependent libraries... " >&6; }
12505	saveLIBS="$LIBS"
12506	havelib=0
12507	for dblibs in "" "$LIBDB" ; do
12508	    for addlibs in "" -lpthread -lthread ; do
12509		LIBDB="$dblibs $addlibs"
12510		export LIBDB
12511	        LIBS="$saveLIBS $LIBDB"
12512		export LIBS
12513		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514/* end confdefs.h.  */
12515#include <db.h>
12516int
12517main ()
12518{
12519int r, s, t; db_version(&r, &s, &t);
12520  ;
12521  return 0;
12522}
12523_ACEOF
12524if ac_fn_c_try_link "$LINENO"; then :
12525  havelib=1 ; break 2
12526fi
12527rm -f core conftest.err conftest.$ac_objext \
12528    conftest$ac_exeext conftest.$ac_ext
12529	    done
12530	done
12531	LIBS="$saveLIBS"
12532	export LIBS
12533	if test $havelib = 0 ; then
12534	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
12535$as_echo "error" >&6; }
12536	    as_fn_error $? "
12537=====================================================================
12538Cannot link against libdb? Try these steps to solve the problem:
125391. Be sure that the Berkeley DB developer package is installed.
125402. Type:  rm -f config.cache    then re-run configure.
125413. If the problem persists, report it to the bogofilter mailing list.
12542   Remember to include your config.log.
12543=====================================================================
12544	    " "$LINENO" 5
12545	fi
12546	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBDB" >&5
12547$as_echo "$LIBDB" >&6; }
12548	LIBS="$saveLIBS"
12549	export LIBS
12550
12551
12552
12553		saveLIBS="$LIBS"
12554	LIBS="$LIBS $LIBDB"
12555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if a program can be linked against Berkeley DB and run" >&5
12556$as_echo_n "checking if a program can be linked against Berkeley DB and run... " >&6; }
12557	if test "$cross_compiling" = yes; then :
12558  true
12559else
12560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561/* end confdefs.h.  */
12562
12563#ifdef HAVE_INTTYPES_H
12564#include <inttypes.h>
12565#endif
12566#include <db.h>
12567
12568int
12569main ()
12570{
12571
12572return 0;
12573
12574  ;
12575  return 0;
12576}
12577_ACEOF
12578if ac_fn_c_try_run "$LINENO"; then :
12579
12580else
12581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582$as_echo "no" >&6; }
12583	as_fn_error $? "Cannot run a program linked against libdb.
12584Did you adjust your library search path to include your libdb?" "$LINENO" 5
12585fi
12586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12587  conftest.$ac_objext conftest.beam conftest.$ac_ext
12588fi
12589
12590	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591$as_echo "yes" >&6; }
12592
12593			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB header and library versions match" >&5
12594$as_echo_n "checking if Berkeley DB header and library versions match... " >&6; }
12595	rm -r -f bfadtestdir
12596	mkdir bfadtestdir
12597	if test "$cross_compiling" = yes; then :
12598  true
12599else
12600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601/* end confdefs.h.  */
12602
12603
12604		   #include <stdlib.h>
12605		   #include <stdio.h>
12606#ifdef HAVE_INTTYPES_H
12607#include <inttypes.h>
12608#endif
12609		   #include <db.h>
12610
12611int
12612main ()
12613{
12614
12615			int maj, min;
12616			(void)db_version(&maj, &min, 0);
12617			(void)fprintf(stderr, "headers: %d.%d, library: %d.%d\n",
12618				DB_VERSION_MAJOR, DB_VERSION_MINOR, maj, min);
12619			if (maj != DB_VERSION_MAJOR) exit(1);
12620			if (min != DB_VERSION_MINOR) exit(1);
12621			exit(0);
12622
12623  ;
12624  return 0;
12625}
12626_ACEOF
12627if ac_fn_c_try_run "$LINENO"; then :
12628
12629else
12630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631$as_echo "no" >&6; }
12632		   as_fn_error $? "db.h header file and db library version do not match." "$LINENO" 5
12633fi
12634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12635  conftest.$ac_objext conftest.beam conftest.$ac_ext
12636fi
12637
12638	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12639$as_echo "yes" >&6; }
12640	ac_fn_c_check_decl "$LINENO" "db_create" "ac_cv_have_decl_db_create" "#ifdef HAVE_INTTYPES_H
12641#include <inttypes.h>
12642#endif
12643#include <db.h>
12644
12645"
12646if test "x$ac_cv_have_decl_db_create" = xyes; then :
12647  ac_have_decl=1
12648else
12649  ac_have_decl=0
12650fi
12651
12652cat >>confdefs.h <<_ACEOF
12653#define HAVE_DECL_DB_CREATE $ac_have_decl
12654_ACEOF
12655if test $ac_have_decl = 1; then :
12656
12657else
12658  as_fn_error $? "Can not locate a suitable Berkeley DB db.h header file.
12659Use --with-libdb-prefix=PATH to specify the path to a v3+ install directory.
12660You can download Berkeley DB 4.3.x from http://www.sleepycat.com/" "$LINENO" 5
12661fi
12662
12663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB supports shared environments" >&5
12664$as_echo_n "checking if Berkeley DB supports shared environments... " >&6; }
12665	if test "x$enable_dbshared_test" != xno && test "x$USE_TRANSACTIONS" != xNO ; then
12666	if test "$cross_compiling" = yes; then :
12667  true
12668else
12669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670/* end confdefs.h.  */
12671
12672
12673#ifdef HAVE_INTTYPES_H
12674#include <inttypes.h>
12675#endif
12676#include <db.h>
12677#include <stdio.h>
12678#include <stdlib.h>
12679#define TESTDIR "bfadtestdir"
12680#define barf(where, what) do { fprintf(stderr, "%s failed: %s\n", where, db_strerror(what)); exit(1); } while(0)
12681
12682int
12683main ()
12684{
12685
12686    DB_ENV *e;
12687    int r;
12688    if ((r = db_env_create(&e, 0))) barf("db_env_create", r);
12689    if ((r = e->open(e, TESTDIR, DB_INIT_LOG|DB_INIT_TXN|DB_INIT_MPOOL|DB_CREATE, 0664)))
12690	barf("DB_ENV->open", r);
12691    if ((r = e->close(e, 0)))
12692        barf("DB_ENV->close", r);
12693    if ((r = db_env_create(&e, 0))) barf("db_env_create", r);
12694    if ((r = e->remove(e, TESTDIR, 0))) barf("DB_ENV->remove", r);
12695    return 0;
12696
12697  ;
12698  return 0;
12699}
12700_ACEOF
12701if ac_fn_c_try_run "$LINENO"; then :
12702
12703else
12704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
12706	rm -r -f bfadtestdir
12707	as_fn_error $? "
12708Cannot open a shared environment in Berkeley DB. This is a known problem
12709on Fedora Core Linux. Build your own Berkeley DB installation and use
12710--with-libdb-prefix to point bogofilter to it. Alternatively, you can
12711use the unsafe non-transactional database by configuring with
12712--disable-transactions.
12713Packagers, if you are absolutely sure that the target system supports
12714shared environments, you can use --disable-dbshared-test." "$LINENO" 5
12715fi
12716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12717  conftest.$ac_objext conftest.beam conftest.$ac_ext
12718fi
12719
12720	rm -r -f bfadtestdir
12721	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12722$as_echo "yes" >&6; }
12723    else
12724	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
12725$as_echo "skipped" >&6; }
12726    fi
12727
12728
12729$as_echo "#define ENABLE_DB_DATASTORE 1" >>confdefs.h
12730
12731	LIBS="$saveLIBS"
12732    ;;
12733    *)
12734	as_fn_error $? "Invalid --with-database argument. Supported engines are db, qdbm, sqlite3, tokyocabinet, kyotocabinet, lmdb." "$LINENO" 5
12735    ;;
12736esac
12737
12738if test "a$STATIC_DB" = a ; then
12739    if test "a$WITH_DB_ENGINE" = a ; then
12740	STATIC_DB="-ldb"
12741    else
12742	STATIC_DB="-l$WITH_DB_ENGINE"
12743    fi
12744fi
12745
12746if test "x$BF_ZAP_LIBDB" = "xzap" ; then
12747    LIBDB=
12748    export LIBDB
12749fi
12750
12751
12752cat >>confdefs.h <<_ACEOF
12753#define DB_EXT "$DB_EXT"
12754_ACEOF
12755
12756
12757cat >>confdefs.h <<_ACEOF
12758#define DB_TYPE "$DB_TYPE"
12759_ACEOF
12760
12761
12762
12763
12764
12765 if test "x$WITH_DB_ENGINE" = "xqdbm"; then
12766  ENABLE_QDBM_DATASTORE_TRUE=
12767  ENABLE_QDBM_DATASTORE_FALSE='#'
12768else
12769  ENABLE_QDBM_DATASTORE_TRUE='#'
12770  ENABLE_QDBM_DATASTORE_FALSE=
12771fi
12772
12773 if test "x$WITH_DB_ENGINE" = "xsqlite3"; then
12774  ENABLE_SQLITE_DATASTORE_TRUE=
12775  ENABLE_SQLITE_DATASTORE_FALSE='#'
12776else
12777  ENABLE_SQLITE_DATASTORE_TRUE='#'
12778  ENABLE_SQLITE_DATASTORE_FALSE=
12779fi
12780
12781 if test "x$WITH_DB_ENGINE" = "xtokyocabinet"; then
12782  ENABLE_TOKYOCABINET_DATASTORE_TRUE=
12783  ENABLE_TOKYOCABINET_DATASTORE_FALSE='#'
12784else
12785  ENABLE_TOKYOCABINET_DATASTORE_TRUE='#'
12786  ENABLE_TOKYOCABINET_DATASTORE_FALSE=
12787fi
12788
12789 if test "x$WITH_DB_ENGINE" = "xkyotocabinet"; then
12790  ENABLE_KYOTOCABINET_DATASTORE_TRUE=
12791  ENABLE_KYOTOCABINET_DATASTORE_FALSE='#'
12792else
12793  ENABLE_KYOTOCABINET_DATASTORE_TRUE='#'
12794  ENABLE_KYOTOCABINET_DATASTORE_FALSE=
12795fi
12796
12797 if test "x$WITH_DB_ENGINE" = "xlmdb"; then
12798  ENABLE_LMDB_DATASTORE_TRUE=
12799  ENABLE_LMDB_DATASTORE_FALSE='#'
12800else
12801  ENABLE_LMDB_DATASTORE_TRUE='#'
12802  ENABLE_LMDB_DATASTORE_FALSE=
12803fi
12804
12805
12806needtrio=0
12807if test "$BF_FORCE_TRIO" = "yes" ; then needtrio=1 ; ac_cv_func_vsnprintf=no ; ac_cv_func_snprintf=no ; fi
12808if test "x$ac_cv_func_snprintf" != "xyes" ; then
12809
12810$as_echo "#define snprintf trio_snprintf" >>confdefs.h
12811
12812    needtrio=1
12813fi
12814if test "x$ac_cv_func_vsnprintf" != "xyes" ; then
12815
12816$as_echo "#define vsnprintf trio_vsnprintf" >>confdefs.h
12817
12818    needtrio=1
12819fi
12820
12821if test $needtrio -gt 0
12822then
12823                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE compilation options" >&5
12824$as_echo_n "checking for IEEE compilation options... " >&6; }
12825    if ${ac_cv_ieee_option+:} false; then :
12826  $as_echo_n "(cached) " >&6
12827else
12828
12829        ac_cv_ieee_option="none"
12830
12831        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832/* end confdefs.h.  */
12833
12834int
12835main ()
12836{
12837
12838        #if !(defined(__alpha) && (defined(__DECC) || defined(__DECCXX) || (defined(__osf__) && defined(__LANGUAGE_C__))) && (defined(VMS) || defined(__VMS)))
12839        # error "Option needed"
12840        #endif
12841
12842  ;
12843  return 0;
12844}
12845_ACEOF
12846if ac_fn_c_try_compile "$LINENO"; then :
12847  ac_cv_ieee_option="/IEEE_MODE=UNDERFLOW_TO_ZERO/FLOAT=IEEE"
12848fi
12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850
12851        if test $ac_cv_ieee_option = none ; then
12852            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h.  */
12854
12855int
12856main ()
12857{
12858
12859            #if !(defined(__alpha) && (defined(__DECC) || defined(__DECCXX) || (defined(__osf__) && defined(__LANGUAGE_C__))) && !(defined(VMS) || defined(__VMS)) && !defined(_CFE))
12860            # error "Option needed"
12861            #endif
12862
12863  ;
12864  return 0;
12865}
12866_ACEOF
12867if ac_fn_c_try_compile "$LINENO"; then :
12868  ac_cv_ieee_option="-ieee"
12869fi
12870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871        fi
12872
12873        if test $ac_cv_ieee_option = none ; then
12874            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875/* end confdefs.h.  */
12876
12877int
12878main ()
12879{
12880
12881            #if !(defined(__alpha) && (defined(__GNUC__) && (defined(__osf__) || defined(__linux__))))
12882            # error "Option needed"
12883            #endif
12884
12885  ;
12886  return 0;
12887}
12888_ACEOF
12889if ac_fn_c_try_compile "$LINENO"; then :
12890  ac_cv_ieee_option="-mieee"
12891fi
12892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893        fi
12894
12895fi
12896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ieee_option" >&5
12897$as_echo "$ac_cv_ieee_option" >&6; }
12898    if test $ac_cv_ieee_option != none; then
12899        CFLAGS="${CFLAGS} ${ac_cv_ieee_option}"
12900    fi
12901
12902
12903$as_echo "#define NEEDTRIO 1" >>confdefs.h
12904
12905fi
12906
12907 if test "$needtrio" = "1"; then
12908  NEEDTRIO_TRUE=
12909  NEEDTRIO_FALSE='#'
12910else
12911  NEEDTRIO_TRUE='#'
12912  NEEDTRIO_FALSE=
12913fi
12914
12915
12916# Extract the first word of "xmlto", so it can be a program name with args.
12917set dummy xmlto; ac_word=$2
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919$as_echo_n "checking for $ac_word... " >&6; }
12920if ${ac_cv_prog_ac_cv_enable_xmlto+:} false; then :
12921  $as_echo_n "(cached) " >&6
12922else
12923  if test -n "$ac_cv_enable_xmlto"; then
12924  ac_cv_prog_ac_cv_enable_xmlto="$ac_cv_enable_xmlto" # Let the user override the test.
12925else
12926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $PATH
12928do
12929  IFS=$as_save_IFS
12930  test -z "$as_dir" && as_dir=.
12931    for ac_exec_ext in '' $ac_executable_extensions; do
12932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12933    ac_cv_prog_ac_cv_enable_xmlto="yes"
12934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12935    break 2
12936  fi
12937done
12938  done
12939IFS=$as_save_IFS
12940
12941  test -z "$ac_cv_prog_ac_cv_enable_xmlto" && ac_cv_prog_ac_cv_enable_xmlto="no"
12942fi
12943fi
12944ac_cv_enable_xmlto=$ac_cv_prog_ac_cv_enable_xmlto
12945if test -n "$ac_cv_enable_xmlto"; then
12946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_xmlto" >&5
12947$as_echo "$ac_cv_enable_xmlto" >&6; }
12948else
12949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950$as_echo "no" >&6; }
12951fi
12952
12953
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xmlto is available" >&5
12955$as_echo_n "checking whether xmlto is available... " >&6; }
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_xmlto" >&5
12957$as_echo "$ac_cv_enable_xmlto" >&6; }
12958
12959 if test x$ac_cv_enable_xmlto = xyes; then
12960  ENABLE_XMLTO_TRUE=
12961  ENABLE_XMLTO_FALSE='#'
12962else
12963  ENABLE_XMLTO_TRUE='#'
12964  ENABLE_XMLTO_FALSE=
12965fi
12966
12967
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended floating point registers" >&5
12969$as_echo_n "checking for extended floating point registers... " >&6; }
12970if ${ac_cv_c_extended_fp+:} false; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973  case "$host" in
12974		*sparc*-*-*) ac_cv_c_extended_fp=no ;;
12975		*powerpc*-*-*) ac_cv_c_extended_fp=no ;;
12976		*mips*-*-*) ac_cv_c_extended_fp=no ;;
12977		*hppa*-*-*) ac_cv_c_extended_fp=no ;;
12978		*alpha*-*-*) ac_cv_c_extended_fp=no ;;
12979		*68k*-*-*) ac_cv_c_extended_fp=yes ;;
12980		*86*-*-*) ac_cv_c_extended_fp=yes ;;
12981		*) ac_cv_c_extended_fp=unknown ;;
12982	    esac
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extended_fp" >&5
12985$as_echo "$ac_cv_c_extended_fp" >&6; }
12986
12987if test $ac_cv_c_extended_fp != "no" ; then
12988  $as_echo "#define HAVE_EXTENDED_PRECISION_REGISTERS 1" >>confdefs.h
12989
12990
12991fi
12992
12993
12994
12995
12996cat >confcache <<\_ACEOF
12997# This file is a shell script that caches the results of configure
12998# tests run on this system so they can be shared between configure
12999# scripts and configure runs, see configure's option --config-cache.
13000# It is not useful on other systems.  If it contains results you don't
13001# want to keep, you may remove or edit it.
13002#
13003# config.status only pays attention to the cache file if you give it
13004# the --recheck option to rerun configure.
13005#
13006# `ac_cv_env_foo' variables (set or unset) will be overridden when
13007# loading this file, other *unset* `ac_cv_foo' will be assigned the
13008# following values.
13009
13010_ACEOF
13011
13012# The following way of writing the cache mishandles newlines in values,
13013# but we know of no workaround that is simple, portable, and efficient.
13014# So, we kill variables containing newlines.
13015# Ultrix sh set writes to stderr and can't be redirected directly,
13016# and sets the high bit in the cache file unless we assign to the vars.
13017(
13018  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13019    eval ac_val=\$$ac_var
13020    case $ac_val in #(
13021    *${as_nl}*)
13022      case $ac_var in #(
13023      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13025      esac
13026      case $ac_var in #(
13027      _ | IFS | as_nl) ;; #(
13028      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13029      *) { eval $ac_var=; unset $ac_var;} ;;
13030      esac ;;
13031    esac
13032  done
13033
13034  (set) 2>&1 |
13035    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13036    *${as_nl}ac_space=\ *)
13037      # `set' does not quote correctly, so add quotes: double-quote
13038      # substitution turns \\\\ into \\, and sed turns \\ into \.
13039      sed -n \
13040	"s/'/'\\\\''/g;
13041	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13042      ;; #(
13043    *)
13044      # `set' quotes correctly as required by POSIX, so do not add quotes.
13045      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13046      ;;
13047    esac |
13048    sort
13049) |
13050  sed '
13051     /^ac_cv_env_/b end
13052     t clear
13053     :clear
13054     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13055     t end
13056     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13057     :end' >>confcache
13058if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13059  if test -w "$cache_file"; then
13060    if test "x$cache_file" != "x/dev/null"; then
13061      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13062$as_echo "$as_me: updating cache $cache_file" >&6;}
13063      if test ! -f "$cache_file" || test -h "$cache_file"; then
13064	cat confcache >"$cache_file"
13065      else
13066        case $cache_file in #(
13067        */* | ?:*)
13068	  mv -f confcache "$cache_file"$$ &&
13069	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13070        *)
13071	  mv -f confcache "$cache_file" ;;
13072	esac
13073      fi
13074    fi
13075  else
13076    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13077$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13078  fi
13079fi
13080rm -f confcache
13081
13082if test "$sysconfdir" = "\${prefix}/etc" \
13083    && { test "$prefix" = "NONE" || test "$prefix" = "/usr" \
13084      || test "$prefix" = "/usr/" ; } ; then
13085    if test "$( (uname -s) )" = "Linux" ; then
13086      sysconfdir=/etc
13087    fi
13088    (
13089    prefix=$ac_default_prefix
13090    sysconfdir=`eval echo "$sysconfdir"`
13091    { $as_echo "$as_me:${as_lineno-$LINENO}: configuration directory is \"$sysconfdir\"." >&5
13092$as_echo "$as_me: configuration directory is \"$sysconfdir\"." >&6;}
13093    { $as_echo "$as_me:${as_lineno-$LINENO}: use --sysconfdir to override." >&5
13094$as_echo "$as_me: use --sysconfdir to override." >&6;}
13095    )
13096fi
13097
13098
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
13100$as_echo "$as_me: -------------------------------------------------------------" >&6;}
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: If you have multiple versions of GSL installed, this" >&5
13102$as_echo "$as_me: If you have multiple versions of GSL installed, this" >&6;}
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script will prefer the one in /lib or /usr/lib" >&5
13104$as_echo "$as_me: configure script will prefer the one in /lib or /usr/lib" >&6;}
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: to work around a bug in Linux ldconfig." >&5
13106$as_echo "$as_me: to work around a bug in Linux ldconfig." >&6;}
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: Deinstall the older GSL version if this behaviour annoys you." >&5
13108$as_echo "$as_me: Deinstall the older GSL version if this behaviour annoys you." >&6;}
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
13110$as_echo "$as_me: -------------------------------------------------------------" >&6;}
13111
13112PATH_SAVED="$PATH"
13113PATH=/bin:/usr/bin:$PATH
13114export PATH
13115
13116need_my_gsl=1
13117
13118# Check whether --with-included-gsl was given.
13119if test "${with_included_gsl+set}" = set; then :
13120  withval=$with_included_gsl; if test "x$withval" = "xyes" ; then need_my_gsl=2 ; fi
13121fi
13122
13123
13124if test "$need_my_gsl" = 1 ; then
13125
13126
13127# Check whether --with-gsl-prefix was given.
13128if test "${with_gsl_prefix+set}" = set; then :
13129  withval=$with_gsl_prefix; gsl_prefix="$withval"
13130else
13131  gsl_prefix=""
13132fi
13133
13134
13135# Check whether --with-gsl-exec-prefix was given.
13136if test "${with_gsl_exec_prefix+set}" = set; then :
13137  withval=$with_gsl_exec_prefix; gsl_exec_prefix="$withval"
13138else
13139  gsl_exec_prefix=""
13140fi
13141
13142# Check whether --enable-gsltest was given.
13143if test "${enable_gsltest+set}" = set; then :
13144  enableval=$enable_gsltest;
13145else
13146  enable_gsltest=yes
13147fi
13148
13149
13150  if test "x${GSL_CONFIG+set}" != xset ; then
13151     if test "x$gsl_prefix" != x ; then
13152         GSL_CONFIG="$gsl_prefix/bin/gsl-config"
13153     fi
13154     if test "x$gsl_exec_prefix" != x ; then
13155        GSL_CONFIG="$gsl_exec_prefix/bin/gsl-config"
13156     fi
13157  fi
13158
13159  # Extract the first word of "gsl-config", so it can be a program name with args.
13160set dummy gsl-config; ac_word=$2
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162$as_echo_n "checking for $ac_word... " >&6; }
13163if ${ac_cv_path_GSL_CONFIG+:} false; then :
13164  $as_echo_n "(cached) " >&6
13165else
13166  case $GSL_CONFIG in
13167  [\\/]* | ?:[\\/]*)
13168  ac_cv_path_GSL_CONFIG="$GSL_CONFIG" # Let the user override the test with a path.
13169  ;;
13170  *)
13171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172for as_dir in $PATH
13173do
13174  IFS=$as_save_IFS
13175  test -z "$as_dir" && as_dir=.
13176    for ac_exec_ext in '' $ac_executable_extensions; do
13177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13178    ac_cv_path_GSL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13180    break 2
13181  fi
13182done
13183  done
13184IFS=$as_save_IFS
13185
13186  test -z "$ac_cv_path_GSL_CONFIG" && ac_cv_path_GSL_CONFIG="no"
13187  ;;
13188esac
13189fi
13190GSL_CONFIG=$ac_cv_path_GSL_CONFIG
13191if test -n "$GSL_CONFIG"; then
13192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSL_CONFIG" >&5
13193$as_echo "$GSL_CONFIG" >&6; }
13194else
13195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196$as_echo "no" >&6; }
13197fi
13198
13199
13200  min_gsl_version=1.4
13201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL - version >= $min_gsl_version" >&5
13202$as_echo_n "checking for GSL - version >= $min_gsl_version... " >&6; }
13203  no_gsl=""
13204  if test "$GSL_CONFIG" = "no" ; then
13205    no_gsl=yes
13206  else
13207    GSL_CFLAGS=`$GSL_CONFIG --cflags`
13208    GSL_LIBS=`$GSL_CONFIG --libs`
13209
13210    gsl_major_version=`$GSL_CONFIG --version | \
13211           sed 's/^\([0-9]*\).*/\1/'`
13212    if test "x${gsl_major_version}" = "x" ; then
13213       gsl_major_version=0
13214    fi
13215
13216    gsl_minor_version=`$GSL_CONFIG --version | \
13217           sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\2/'`
13218    if test "x${gsl_minor_version}" = "x" ; then
13219       gsl_minor_version=0
13220    fi
13221
13222    gsl_micro_version=`$GSL_CONFIG --version | \
13223           sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\3/'`
13224    if test "x${gsl_micro_version}" = "x" ; then
13225       gsl_micro_version=0
13226    fi
13227
13228    if test "x$enable_gsltest" = "xyes" ; then
13229      ac_save_CFLAGS="$CFLAGS"
13230      ac_save_LIBS="$LIBS"
13231      CFLAGS="$CFLAGS $GSL_CFLAGS"
13232      LIBS="$LIBS $GSL_LIBS"
13233
13234      rm -f conf.gsltest
13235      if test "$cross_compiling" = yes; then :
13236  echo $ac_n "cross compiling; assumed OK... $ac_c"
13237else
13238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239/* end confdefs.h.  */
13240
13241#include <stdio.h>
13242#include <stdlib.h>
13243#include <string.h>
13244
13245char* my_strdup (const char *str);
13246
13247char*
13248my_strdup (const char *str)
13249{
13250  char *new_str;
13251
13252  if (str)
13253    {
13254      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13255      strcpy (new_str, str);
13256    }
13257  else
13258    new_str = NULL;
13259
13260  return new_str;
13261}
13262
13263int main (void)
13264{
13265  int major = 0, minor = 0, micro = 0;
13266  int n;
13267  char *tmp_version;
13268
13269  system ("touch conf.gsltest");
13270
13271  /* HP/UX 9 (%@#!) writes to sscanf strings */
13272  tmp_version = my_strdup("$min_gsl_version");
13273
13274  n = sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) ;
13275
13276  free(tmp_version);
13277
13278  if (n != 2 && n != 3) {
13279     printf("%s, bad version string\n", "$min_gsl_version");
13280     exit(1);
13281   }
13282
13283   if (($gsl_major_version > major) ||
13284      (($gsl_major_version == major) && ($gsl_minor_version > minor)) ||
13285      (($gsl_major_version == major) && ($gsl_minor_version == minor) && ($gsl_micro_version >= micro)))
13286    {
13287      exit(0);
13288    }
13289  else
13290    {
13291      exit(1);
13292    }
13293}
13294
13295
13296_ACEOF
13297if ac_fn_c_try_run "$LINENO"; then :
13298
13299else
13300  no_gsl=yes
13301fi
13302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13303  conftest.$ac_objext conftest.beam conftest.$ac_ext
13304fi
13305
13306       CFLAGS="$ac_save_CFLAGS"
13307       LIBS="$ac_save_LIBS"
13308     fi
13309  fi
13310  if test "x$no_gsl" = x ; then
13311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312$as_echo "yes" >&6; }
13313
13314$as_echo "#define HAVE_GSL_14 /**/" >>confdefs.h
13315
13316		need_my_gsl=0
13317  else
13318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
13320     if test "$GSL_CONFIG" != "no" ; then
13321       if test -f conf.gsltest ; then
13322        :
13323       else
13324          echo "*** Could not run GSL test program, checking why..."
13325          CFLAGS="$CFLAGS $GSL_CFLAGS"
13326          LIBS="$LIBS $GSL_LIBS"
13327          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328/* end confdefs.h.  */
13329
13330#include <stdio.h>
13331
13332int
13333main ()
13334{
13335 return 0;
13336  ;
13337  return 0;
13338}
13339_ACEOF
13340if ac_fn_c_try_link "$LINENO"; then :
13341   echo "*** The test program compiled, but did not run. This usually means"
13342          echo "*** that the run-time linker is not finding GSL or finding the wrong"
13343          echo "*** version of GSL. If it is not finding GSL, you'll need to set your"
13344          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13345          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13346          echo "*** is required on your system"
13347	  echo "***"
13348          echo "*** If you have an old version installed, it is best to remove it, although"
13349          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13350else
13351   echo "*** The test program failed to compile or link. See the file config.log for the"
13352          echo "*** exact error that occured. This usually means GSL was incorrectly installed"
13353          echo "*** or that you have moved GSL since it was installed. In the latter case, you"
13354          echo "*** may want to edit the gsl-config script: $GSL_CONFIG"
13355fi
13356rm -f core conftest.err conftest.$ac_objext \
13357    conftest$ac_exeext conftest.$ac_ext
13358          CFLAGS="$ac_save_CFLAGS"
13359          LIBS="$ac_save_LIBS"
13360       fi
13361     fi
13362#     GSL_CFLAGS=""
13363#     GSL_LIBS=""
13364     :
13365  fi
13366
13367
13368  rm -f conf.gsltest
13369
13370
13371
13372# Check whether --with-gsl-prefix was given.
13373if test "${with_gsl_prefix+set}" = set; then :
13374  withval=$with_gsl_prefix; gsl_prefix="$withval"
13375else
13376  gsl_prefix=""
13377fi
13378
13379
13380# Check whether --with-gsl-exec-prefix was given.
13381if test "${with_gsl_exec_prefix+set}" = set; then :
13382  withval=$with_gsl_exec_prefix; gsl_exec_prefix="$withval"
13383else
13384  gsl_exec_prefix=""
13385fi
13386
13387# Check whether --enable-gsltest was given.
13388if test "${enable_gsltest+set}" = set; then :
13389  enableval=$enable_gsltest;
13390else
13391  enable_gsltest=yes
13392fi
13393
13394
13395  if test "x${GSL_CONFIG+set}" != xset ; then
13396     if test "x$gsl_prefix" != x ; then
13397         GSL_CONFIG="$gsl_prefix/bin/gsl-config"
13398     fi
13399     if test "x$gsl_exec_prefix" != x ; then
13400        GSL_CONFIG="$gsl_exec_prefix/bin/gsl-config"
13401     fi
13402  fi
13403
13404  # Extract the first word of "gsl-config", so it can be a program name with args.
13405set dummy gsl-config; ac_word=$2
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407$as_echo_n "checking for $ac_word... " >&6; }
13408if ${ac_cv_path_GSL_CONFIG+:} false; then :
13409  $as_echo_n "(cached) " >&6
13410else
13411  case $GSL_CONFIG in
13412  [\\/]* | ?:[\\/]*)
13413  ac_cv_path_GSL_CONFIG="$GSL_CONFIG" # Let the user override the test with a path.
13414  ;;
13415  *)
13416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417for as_dir in $PATH
13418do
13419  IFS=$as_save_IFS
13420  test -z "$as_dir" && as_dir=.
13421    for ac_exec_ext in '' $ac_executable_extensions; do
13422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13423    ac_cv_path_GSL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425    break 2
13426  fi
13427done
13428  done
13429IFS=$as_save_IFS
13430
13431  test -z "$ac_cv_path_GSL_CONFIG" && ac_cv_path_GSL_CONFIG="no"
13432  ;;
13433esac
13434fi
13435GSL_CONFIG=$ac_cv_path_GSL_CONFIG
13436if test -n "$GSL_CONFIG"; then
13437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSL_CONFIG" >&5
13438$as_echo "$GSL_CONFIG" >&6; }
13439else
13440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441$as_echo "no" >&6; }
13442fi
13443
13444
13445  min_gsl_version=1.0
13446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL - version >= $min_gsl_version" >&5
13447$as_echo_n "checking for GSL - version >= $min_gsl_version... " >&6; }
13448  no_gsl=""
13449  if test "$GSL_CONFIG" = "no" ; then
13450    no_gsl=yes
13451  else
13452    GSL_CFLAGS=`$GSL_CONFIG --cflags`
13453    GSL_LIBS=`$GSL_CONFIG --libs`
13454
13455    gsl_major_version=`$GSL_CONFIG --version | \
13456           sed 's/^\([0-9]*\).*/\1/'`
13457    if test "x${gsl_major_version}" = "x" ; then
13458       gsl_major_version=0
13459    fi
13460
13461    gsl_minor_version=`$GSL_CONFIG --version | \
13462           sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\2/'`
13463    if test "x${gsl_minor_version}" = "x" ; then
13464       gsl_minor_version=0
13465    fi
13466
13467    gsl_micro_version=`$GSL_CONFIG --version | \
13468           sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\3/'`
13469    if test "x${gsl_micro_version}" = "x" ; then
13470       gsl_micro_version=0
13471    fi
13472
13473    if test "x$enable_gsltest" = "xyes" ; then
13474      ac_save_CFLAGS="$CFLAGS"
13475      ac_save_LIBS="$LIBS"
13476      CFLAGS="$CFLAGS $GSL_CFLAGS"
13477      LIBS="$LIBS $GSL_LIBS"
13478
13479      rm -f conf.gsltest
13480      if test "$cross_compiling" = yes; then :
13481  echo $ac_n "cross compiling; assumed OK... $ac_c"
13482else
13483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484/* end confdefs.h.  */
13485
13486#include <stdio.h>
13487#include <stdlib.h>
13488#include <string.h>
13489
13490char* my_strdup (const char *str);
13491
13492char*
13493my_strdup (const char *str)
13494{
13495  char *new_str;
13496
13497  if (str)
13498    {
13499      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13500      strcpy (new_str, str);
13501    }
13502  else
13503    new_str = NULL;
13504
13505  return new_str;
13506}
13507
13508int main (void)
13509{
13510  int major = 0, minor = 0, micro = 0;
13511  int n;
13512  char *tmp_version;
13513
13514  system ("touch conf.gsltest");
13515
13516  /* HP/UX 9 (%@#!) writes to sscanf strings */
13517  tmp_version = my_strdup("$min_gsl_version");
13518
13519  n = sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) ;
13520
13521  free(tmp_version);
13522
13523  if (n != 2 && n != 3) {
13524     printf("%s, bad version string\n", "$min_gsl_version");
13525     exit(1);
13526   }
13527
13528   if (($gsl_major_version > major) ||
13529      (($gsl_major_version == major) && ($gsl_minor_version > minor)) ||
13530      (($gsl_major_version == major) && ($gsl_minor_version == minor) && ($gsl_micro_version >= micro)))
13531    {
13532      exit(0);
13533    }
13534  else
13535    {
13536      exit(1);
13537    }
13538}
13539
13540
13541_ACEOF
13542if ac_fn_c_try_run "$LINENO"; then :
13543
13544else
13545  no_gsl=yes
13546fi
13547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13548  conftest.$ac_objext conftest.beam conftest.$ac_ext
13549fi
13550
13551       CFLAGS="$ac_save_CFLAGS"
13552       LIBS="$ac_save_LIBS"
13553     fi
13554  fi
13555  if test "x$no_gsl" = x ; then
13556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557$as_echo "yes" >&6; }
13558
13559$as_echo "#define HAVE_GSL_10 /**/" >>confdefs.h
13560
13561		need_my_gsl=0
13562  else
13563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564$as_echo "no" >&6; }
13565     if test "$GSL_CONFIG" != "no" ; then
13566       if test -f conf.gsltest ; then
13567        :
13568       else
13569          echo "*** Could not run GSL test program, checking why..."
13570          CFLAGS="$CFLAGS $GSL_CFLAGS"
13571          LIBS="$LIBS $GSL_LIBS"
13572          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h.  */
13574
13575#include <stdio.h>
13576
13577int
13578main ()
13579{
13580 return 0;
13581  ;
13582  return 0;
13583}
13584_ACEOF
13585if ac_fn_c_try_link "$LINENO"; then :
13586   echo "*** The test program compiled, but did not run. This usually means"
13587          echo "*** that the run-time linker is not finding GSL or finding the wrong"
13588          echo "*** version of GSL. If it is not finding GSL, you'll need to set your"
13589          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13590          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13591          echo "*** is required on your system"
13592	  echo "***"
13593          echo "*** If you have an old version installed, it is best to remove it, although"
13594          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13595else
13596   echo "*** The test program failed to compile or link. See the file config.log for the"
13597          echo "*** exact error that occured. This usually means GSL was incorrectly installed"
13598          echo "*** or that you have moved GSL since it was installed. In the latter case, you"
13599          echo "*** may want to edit the gsl-config script: $GSL_CONFIG"
13600fi
13601rm -f core conftest.err conftest.$ac_objext \
13602    conftest$ac_exeext conftest.$ac_ext
13603          CFLAGS="$ac_save_CFLAGS"
13604          LIBS="$ac_save_LIBS"
13605       fi
13606     fi
13607#     GSL_CFLAGS=""
13608#     GSL_LIBS=""
13609     :
13610  fi
13611
13612
13613  rm -f conf.gsltest
13614
13615fi
13616
13617if test "$need_my_gsl" != 0 ; then
13618  GSL_LIBS="libbf_gsl.a"
13619  $as_echo "#define HAVE_GSL_14 1" >>confdefs.h
13620
13621  $as_echo "#define HAVE_GSL_10 1" >>confdefs.h
13622
13623fi
13624
13625PATH="$PATH_SAVED"
13626
13627 if test $need_my_gsl != 0; then
13628  NEED_GSL_TRUE=
13629  NEED_GSL_FALSE='#'
13630else
13631  NEED_GSL_TRUE='#'
13632  NEED_GSL_FALSE=
13633fi
13634
13635 if test $ac_cv_func_getopt_long != yes; then
13636  NEED_GETOPT_TRUE=
13637  NEED_GETOPT_FALSE='#'
13638else
13639  NEED_GETOPT_TRUE='#'
13640  NEED_GETOPT_FALSE=
13641fi
13642
13643
13644have_dosish_system=no
13645case "${host}" in
13646    *-*-mingw32*)
13647        # special stuff for Windoze NT
13648        have_dosish_system=yes
13649        ;;
13650    i?86-emx-os2 | i?86-*-os2*emx )
13651        # OS/2 with the EMX environment
13652        have_dosish_system=no
13653        ;;
13654    i?86-*-msdosdjgpp*)
13655        # DOS with the DJGPP environment
13656        have_dosish_system=yes
13657        ;;
13658    *)
13659       ;;
13660esac
13661
13662bogofilter_transform=`echo "${program_transform_name}" | sed -e 's,\\\\\\\\,\\\\,g;s,\\\$\\\$,\$,g'`
13663transformed_bogofilter=`echo bogofilter | sed -e "$bogofilter_transform"`
13664transformed_bogoutil=`echo bogoutil | sed -e "$bogofilter_transform"`
13665
13666
13667
13668# Note the \\\\ for backslashes.  Autoconf eats one layer, leaving \\
13669
13670
13671$as_echo "#define CURDIR_S \".\"" >>confdefs.h
13672
13673
13674$as_echo "#define EXTSEP_S \".\"" >>confdefs.h
13675
13676
13677if test "$have_dosish_system" = no; then
13678
13679$as_echo "#define DIRSEP_C '/'" >>confdefs.h
13680
13681
13682$as_echo "#define DIRSEP_S \"/\"" >>confdefs.h
13683
13684else
13685$as_echo "#define DIRSEP_C '\\\\\\\\'" >>confdefs.h
13686
13687$as_echo "#define DIRSEP_S \"\\\\\\\\\"" >>confdefs.h
13688
13689fi
13690
13691ac_config_files="$ac_config_files Makefile bogofilter.spec trio/Makefile doc/Makefile src/Makefile src/tests/Makefile src/bf_compact src/bf_copy src/bf_tar"
13692
13693cat >confcache <<\_ACEOF
13694# This file is a shell script that caches the results of configure
13695# tests run on this system so they can be shared between configure
13696# scripts and configure runs, see configure's option --config-cache.
13697# It is not useful on other systems.  If it contains results you don't
13698# want to keep, you may remove or edit it.
13699#
13700# config.status only pays attention to the cache file if you give it
13701# the --recheck option to rerun configure.
13702#
13703# `ac_cv_env_foo' variables (set or unset) will be overridden when
13704# loading this file, other *unset* `ac_cv_foo' will be assigned the
13705# following values.
13706
13707_ACEOF
13708
13709# The following way of writing the cache mishandles newlines in values,
13710# but we know of no workaround that is simple, portable, and efficient.
13711# So, we kill variables containing newlines.
13712# Ultrix sh set writes to stderr and can't be redirected directly,
13713# and sets the high bit in the cache file unless we assign to the vars.
13714(
13715  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13716    eval ac_val=\$$ac_var
13717    case $ac_val in #(
13718    *${as_nl}*)
13719      case $ac_var in #(
13720      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13721$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13722      esac
13723      case $ac_var in #(
13724      _ | IFS | as_nl) ;; #(
13725      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13726      *) { eval $ac_var=; unset $ac_var;} ;;
13727      esac ;;
13728    esac
13729  done
13730
13731  (set) 2>&1 |
13732    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13733    *${as_nl}ac_space=\ *)
13734      # `set' does not quote correctly, so add quotes: double-quote
13735      # substitution turns \\\\ into \\, and sed turns \\ into \.
13736      sed -n \
13737	"s/'/'\\\\''/g;
13738	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13739      ;; #(
13740    *)
13741      # `set' quotes correctly as required by POSIX, so do not add quotes.
13742      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13743      ;;
13744    esac |
13745    sort
13746) |
13747  sed '
13748     /^ac_cv_env_/b end
13749     t clear
13750     :clear
13751     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13752     t end
13753     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13754     :end' >>confcache
13755if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13756  if test -w "$cache_file"; then
13757    if test "x$cache_file" != "x/dev/null"; then
13758      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13759$as_echo "$as_me: updating cache $cache_file" >&6;}
13760      if test ! -f "$cache_file" || test -h "$cache_file"; then
13761	cat confcache >"$cache_file"
13762      else
13763        case $cache_file in #(
13764        */* | ?:*)
13765	  mv -f confcache "$cache_file"$$ &&
13766	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13767        *)
13768	  mv -f confcache "$cache_file" ;;
13769	esac
13770      fi
13771    fi
13772  else
13773    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13774$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13775  fi
13776fi
13777rm -f confcache
13778
13779test "x$prefix" = xNONE && prefix=$ac_default_prefix
13780# Let make expand exec_prefix.
13781test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13782
13783DEFS=-DHAVE_CONFIG_H
13784
13785ac_libobjs=
13786ac_ltlibobjs=
13787U=
13788for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13789  # 1. Remove the extension, and $U if already installed.
13790  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13791  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13792  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13793  #    will be set to the directory where LIBOBJS objects are built.
13794  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13795  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13796done
13797LIBOBJS=$ac_libobjs
13798
13799LTLIBOBJS=$ac_ltlibobjs
13800
13801
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13803$as_echo_n "checking that generated files are newer than configure... " >&6; }
13804   if test -n "$am_sleep_pid"; then
13805     # Hide warnings about reused PIDs.
13806     wait $am_sleep_pid 2>/dev/null
13807   fi
13808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13809$as_echo "done" >&6; }
13810if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13811  as_fn_error $? "conditional \"AMDEP\" was never defined.
13812Usually this means the macro was only invoked conditionally." "$LINENO" 5
13813fi
13814if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13815  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13816Usually this means the macro was only invoked conditionally." "$LINENO" 5
13817fi
13818 if test -n "$EXEEXT"; then
13819  am__EXEEXT_TRUE=
13820  am__EXEEXT_FALSE='#'
13821else
13822  am__EXEEXT_TRUE='#'
13823  am__EXEEXT_FALSE=
13824fi
13825
13826if test -z "${USE_GCC4_TRUE}" && test -z "${USE_GCC4_FALSE}"; then
13827  as_fn_error $? "conditional \"USE_GCC4\" was never defined.
13828Usually this means the macro was only invoked conditionally." "$LINENO" 5
13829fi
13830if test -z "${PATCH_FLEX_254_TRUE}" && test -z "${PATCH_FLEX_254_FALSE}"; then
13831  as_fn_error $? "conditional \"PATCH_FLEX_254\" was never defined.
13832Usually this means the macro was only invoked conditionally." "$LINENO" 5
13833fi
13834if test -z "${PATCH_FLEX_253X_TRUE}" && test -z "${PATCH_FLEX_253X_FALSE}"; then
13835  as_fn_error $? "conditional \"PATCH_FLEX_253X\" was never defined.
13836Usually this means the macro was only invoked conditionally." "$LINENO" 5
13837fi
13838if test -z "${PATCH_FLEX_253N_TRUE}" && test -z "${PATCH_FLEX_253N_FALSE}"; then
13839  as_fn_error $? "conditional \"PATCH_FLEX_253N\" was never defined.
13840Usually this means the macro was only invoked conditionally." "$LINENO" 5
13841fi
13842if test -z "${DISABLE_UNICODE_TRUE}" && test -z "${DISABLE_UNICODE_FALSE}"; then
13843  as_fn_error $? "conditional \"DISABLE_UNICODE\" was never defined.
13844Usually this means the macro was only invoked conditionally." "$LINENO" 5
13845fi
13846if test -z "${ENABLE_UNICODE_TRUE}" && test -z "${ENABLE_UNICODE_FALSE}"; then
13847  as_fn_error $? "conditional \"ENABLE_UNICODE\" was never defined.
13848Usually this means the macro was only invoked conditionally." "$LINENO" 5
13849fi
13850if test -z "${ENABLE_MEMDEBUG_TRUE}" && test -z "${ENABLE_MEMDEBUG_FALSE}"; then
13851  as_fn_error $? "conditional \"ENABLE_MEMDEBUG\" was never defined.
13852Usually this means the macro was only invoked conditionally." "$LINENO" 5
13853fi
13854if test -z "${DISABLE_TRANSACTIONS_TRUE}" && test -z "${DISABLE_TRANSACTIONS_FALSE}"; then
13855  as_fn_error $? "conditional \"DISABLE_TRANSACTIONS\" was never defined.
13856Usually this means the macro was only invoked conditionally." "$LINENO" 5
13857fi
13858if test -z "${ENABLE_TRANSACTIONS_TRUE}" && test -z "${ENABLE_TRANSACTIONS_FALSE}"; then
13859  as_fn_error $? "conditional \"ENABLE_TRANSACTIONS\" was never defined.
13860Usually this means the macro was only invoked conditionally." "$LINENO" 5
13861fi
13862if test -z "${ENABLE_QDBM_DATASTORE_TRUE}" && test -z "${ENABLE_QDBM_DATASTORE_FALSE}"; then
13863  as_fn_error $? "conditional \"ENABLE_QDBM_DATASTORE\" was never defined.
13864Usually this means the macro was only invoked conditionally." "$LINENO" 5
13865fi
13866if test -z "${ENABLE_SQLITE_DATASTORE_TRUE}" && test -z "${ENABLE_SQLITE_DATASTORE_FALSE}"; then
13867  as_fn_error $? "conditional \"ENABLE_SQLITE_DATASTORE\" was never defined.
13868Usually this means the macro was only invoked conditionally." "$LINENO" 5
13869fi
13870if test -z "${ENABLE_TOKYOCABINET_DATASTORE_TRUE}" && test -z "${ENABLE_TOKYOCABINET_DATASTORE_FALSE}"; then
13871  as_fn_error $? "conditional \"ENABLE_TOKYOCABINET_DATASTORE\" was never defined.
13872Usually this means the macro was only invoked conditionally." "$LINENO" 5
13873fi
13874if test -z "${ENABLE_KYOTOCABINET_DATASTORE_TRUE}" && test -z "${ENABLE_KYOTOCABINET_DATASTORE_FALSE}"; then
13875  as_fn_error $? "conditional \"ENABLE_KYOTOCABINET_DATASTORE\" was never defined.
13876Usually this means the macro was only invoked conditionally." "$LINENO" 5
13877fi
13878if test -z "${ENABLE_LMDB_DATASTORE_TRUE}" && test -z "${ENABLE_LMDB_DATASTORE_FALSE}"; then
13879  as_fn_error $? "conditional \"ENABLE_LMDB_DATASTORE\" was never defined.
13880Usually this means the macro was only invoked conditionally." "$LINENO" 5
13881fi
13882if test -z "${NEEDTRIO_TRUE}" && test -z "${NEEDTRIO_FALSE}"; then
13883  as_fn_error $? "conditional \"NEEDTRIO\" was never defined.
13884Usually this means the macro was only invoked conditionally." "$LINENO" 5
13885fi
13886if test -z "${ENABLE_XMLTO_TRUE}" && test -z "${ENABLE_XMLTO_FALSE}"; then
13887  as_fn_error $? "conditional \"ENABLE_XMLTO\" was never defined.
13888Usually this means the macro was only invoked conditionally." "$LINENO" 5
13889fi
13890if test -z "${NEED_GSL_TRUE}" && test -z "${NEED_GSL_FALSE}"; then
13891  as_fn_error $? "conditional \"NEED_GSL\" was never defined.
13892Usually this means the macro was only invoked conditionally." "$LINENO" 5
13893fi
13894if test -z "${NEED_GETOPT_TRUE}" && test -z "${NEED_GETOPT_FALSE}"; then
13895  as_fn_error $? "conditional \"NEED_GETOPT\" was never defined.
13896Usually this means the macro was only invoked conditionally." "$LINENO" 5
13897fi
13898
13899: "${CONFIG_STATUS=./config.status}"
13900ac_write_fail=0
13901ac_clean_files_save=$ac_clean_files
13902ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13904$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13905as_write_fail=0
13906cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13907#! $SHELL
13908# Generated by $as_me.
13909# Run this file to recreate the current configuration.
13910# Compiler output produced by configure, useful for debugging
13911# configure, is in config.log if it exists.
13912
13913debug=false
13914ac_cs_recheck=false
13915ac_cs_silent=false
13916
13917SHELL=\${CONFIG_SHELL-$SHELL}
13918export SHELL
13919_ASEOF
13920cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13921## -------------------- ##
13922## M4sh Initialization. ##
13923## -------------------- ##
13924
13925# Be more Bourne compatible
13926DUALCASE=1; export DUALCASE # for MKS sh
13927if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13928  emulate sh
13929  NULLCMD=:
13930  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13931  # is contrary to our usage.  Disable this feature.
13932  alias -g '${1+"$@"}'='"$@"'
13933  setopt NO_GLOB_SUBST
13934else
13935  case `(set -o) 2>/dev/null` in #(
13936  *posix*) :
13937    set -o posix ;; #(
13938  *) :
13939     ;;
13940esac
13941fi
13942
13943
13944as_nl='
13945'
13946export as_nl
13947# Printing a long string crashes Solaris 7 /usr/bin/printf.
13948as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13949as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13950as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13951# Prefer a ksh shell builtin over an external printf program on Solaris,
13952# but without wasting forks for bash or zsh.
13953if test -z "$BASH_VERSION$ZSH_VERSION" \
13954    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13955  as_echo='print -r --'
13956  as_echo_n='print -rn --'
13957elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13958  as_echo='printf %s\n'
13959  as_echo_n='printf %s'
13960else
13961  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13962    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13963    as_echo_n='/usr/ucb/echo -n'
13964  else
13965    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13966    as_echo_n_body='eval
13967      arg=$1;
13968      case $arg in #(
13969      *"$as_nl"*)
13970	expr "X$arg" : "X\\(.*\\)$as_nl";
13971	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13972      esac;
13973      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13974    '
13975    export as_echo_n_body
13976    as_echo_n='sh -c $as_echo_n_body as_echo'
13977  fi
13978  export as_echo_body
13979  as_echo='sh -c $as_echo_body as_echo'
13980fi
13981
13982# The user is always right.
13983if test "${PATH_SEPARATOR+set}" != set; then
13984  PATH_SEPARATOR=:
13985  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13986    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13987      PATH_SEPARATOR=';'
13988  }
13989fi
13990
13991
13992# IFS
13993# We need space, tab and new line, in precisely that order.  Quoting is
13994# there to prevent editors from complaining about space-tab.
13995# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13996# splitting by setting IFS to empty value.)
13997IFS=" ""	$as_nl"
13998
13999# Find who we are.  Look in the path if we contain no directory separator.
14000as_myself=
14001case $0 in #((
14002  *[\\/]* ) as_myself=$0 ;;
14003  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14004for as_dir in $PATH
14005do
14006  IFS=$as_save_IFS
14007  test -z "$as_dir" && as_dir=.
14008    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14009  done
14010IFS=$as_save_IFS
14011
14012     ;;
14013esac
14014# We did not find ourselves, most probably we were run as `sh COMMAND'
14015# in which case we are not to be found in the path.
14016if test "x$as_myself" = x; then
14017  as_myself=$0
14018fi
14019if test ! -f "$as_myself"; then
14020  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14021  exit 1
14022fi
14023
14024# Unset variables that we do not need and which cause bugs (e.g. in
14025# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14026# suppresses any "Segmentation fault" message there.  '((' could
14027# trigger a bug in pdksh 5.2.14.
14028for as_var in BASH_ENV ENV MAIL MAILPATH
14029do eval test x\${$as_var+set} = xset \
14030  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14031done
14032PS1='$ '
14033PS2='> '
14034PS4='+ '
14035
14036# NLS nuisances.
14037LC_ALL=C
14038export LC_ALL
14039LANGUAGE=C
14040export LANGUAGE
14041
14042# CDPATH.
14043(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14044
14045
14046# as_fn_error STATUS ERROR [LINENO LOG_FD]
14047# ----------------------------------------
14048# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14049# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14050# script with STATUS, using 1 if that was 0.
14051as_fn_error ()
14052{
14053  as_status=$1; test $as_status -eq 0 && as_status=1
14054  if test "$4"; then
14055    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14056    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14057  fi
14058  $as_echo "$as_me: error: $2" >&2
14059  as_fn_exit $as_status
14060} # as_fn_error
14061
14062
14063# as_fn_set_status STATUS
14064# -----------------------
14065# Set $? to STATUS, without forking.
14066as_fn_set_status ()
14067{
14068  return $1
14069} # as_fn_set_status
14070
14071# as_fn_exit STATUS
14072# -----------------
14073# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14074as_fn_exit ()
14075{
14076  set +e
14077  as_fn_set_status $1
14078  exit $1
14079} # as_fn_exit
14080
14081# as_fn_unset VAR
14082# ---------------
14083# Portably unset VAR.
14084as_fn_unset ()
14085{
14086  { eval $1=; unset $1;}
14087}
14088as_unset=as_fn_unset
14089# as_fn_append VAR VALUE
14090# ----------------------
14091# Append the text in VALUE to the end of the definition contained in VAR. Take
14092# advantage of any shell optimizations that allow amortized linear growth over
14093# repeated appends, instead of the typical quadratic growth present in naive
14094# implementations.
14095if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14096  eval 'as_fn_append ()
14097  {
14098    eval $1+=\$2
14099  }'
14100else
14101  as_fn_append ()
14102  {
14103    eval $1=\$$1\$2
14104  }
14105fi # as_fn_append
14106
14107# as_fn_arith ARG...
14108# ------------------
14109# Perform arithmetic evaluation on the ARGs, and store the result in the
14110# global $as_val. Take advantage of shells that can avoid forks. The arguments
14111# must be portable across $(()) and expr.
14112if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14113  eval 'as_fn_arith ()
14114  {
14115    as_val=$(( $* ))
14116  }'
14117else
14118  as_fn_arith ()
14119  {
14120    as_val=`expr "$@" || test $? -eq 1`
14121  }
14122fi # as_fn_arith
14123
14124
14125if expr a : '\(a\)' >/dev/null 2>&1 &&
14126   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14127  as_expr=expr
14128else
14129  as_expr=false
14130fi
14131
14132if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14133  as_basename=basename
14134else
14135  as_basename=false
14136fi
14137
14138if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14139  as_dirname=dirname
14140else
14141  as_dirname=false
14142fi
14143
14144as_me=`$as_basename -- "$0" ||
14145$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14146	 X"$0" : 'X\(//\)$' \| \
14147	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14148$as_echo X/"$0" |
14149    sed '/^.*\/\([^/][^/]*\)\/*$/{
14150	    s//\1/
14151	    q
14152	  }
14153	  /^X\/\(\/\/\)$/{
14154	    s//\1/
14155	    q
14156	  }
14157	  /^X\/\(\/\).*/{
14158	    s//\1/
14159	    q
14160	  }
14161	  s/.*/./; q'`
14162
14163# Avoid depending upon Character Ranges.
14164as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14165as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14166as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14167as_cr_digits='0123456789'
14168as_cr_alnum=$as_cr_Letters$as_cr_digits
14169
14170ECHO_C= ECHO_N= ECHO_T=
14171case `echo -n x` in #(((((
14172-n*)
14173  case `echo 'xy\c'` in
14174  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14175  xy)  ECHO_C='\c';;
14176  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14177       ECHO_T='	';;
14178  esac;;
14179*)
14180  ECHO_N='-n';;
14181esac
14182
14183rm -f conf$$ conf$$.exe conf$$.file
14184if test -d conf$$.dir; then
14185  rm -f conf$$.dir/conf$$.file
14186else
14187  rm -f conf$$.dir
14188  mkdir conf$$.dir 2>/dev/null
14189fi
14190if (echo >conf$$.file) 2>/dev/null; then
14191  if ln -s conf$$.file conf$$ 2>/dev/null; then
14192    as_ln_s='ln -s'
14193    # ... but there are two gotchas:
14194    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14195    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14196    # In both cases, we have to default to `cp -pR'.
14197    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14198      as_ln_s='cp -pR'
14199  elif ln conf$$.file conf$$ 2>/dev/null; then
14200    as_ln_s=ln
14201  else
14202    as_ln_s='cp -pR'
14203  fi
14204else
14205  as_ln_s='cp -pR'
14206fi
14207rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14208rmdir conf$$.dir 2>/dev/null
14209
14210
14211# as_fn_mkdir_p
14212# -------------
14213# Create "$as_dir" as a directory, including parents if necessary.
14214as_fn_mkdir_p ()
14215{
14216
14217  case $as_dir in #(
14218  -*) as_dir=./$as_dir;;
14219  esac
14220  test -d "$as_dir" || eval $as_mkdir_p || {
14221    as_dirs=
14222    while :; do
14223      case $as_dir in #(
14224      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14225      *) as_qdir=$as_dir;;
14226      esac
14227      as_dirs="'$as_qdir' $as_dirs"
14228      as_dir=`$as_dirname -- "$as_dir" ||
14229$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14230	 X"$as_dir" : 'X\(//\)[^/]' \| \
14231	 X"$as_dir" : 'X\(//\)$' \| \
14232	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14233$as_echo X"$as_dir" |
14234    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14235	    s//\1/
14236	    q
14237	  }
14238	  /^X\(\/\/\)[^/].*/{
14239	    s//\1/
14240	    q
14241	  }
14242	  /^X\(\/\/\)$/{
14243	    s//\1/
14244	    q
14245	  }
14246	  /^X\(\/\).*/{
14247	    s//\1/
14248	    q
14249	  }
14250	  s/.*/./; q'`
14251      test -d "$as_dir" && break
14252    done
14253    test -z "$as_dirs" || eval "mkdir $as_dirs"
14254  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14255
14256
14257} # as_fn_mkdir_p
14258if mkdir -p . 2>/dev/null; then
14259  as_mkdir_p='mkdir -p "$as_dir"'
14260else
14261  test -d ./-p && rmdir ./-p
14262  as_mkdir_p=false
14263fi
14264
14265
14266# as_fn_executable_p FILE
14267# -----------------------
14268# Test if FILE is an executable regular file.
14269as_fn_executable_p ()
14270{
14271  test -f "$1" && test -x "$1"
14272} # as_fn_executable_p
14273as_test_x='test -x'
14274as_executable_p=as_fn_executable_p
14275
14276# Sed expression to map a string onto a valid CPP name.
14277as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14278
14279# Sed expression to map a string onto a valid variable name.
14280as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14281
14282
14283exec 6>&1
14284## ----------------------------------- ##
14285## Main body of $CONFIG_STATUS script. ##
14286## ----------------------------------- ##
14287_ASEOF
14288test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14289
14290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14291# Save the log message, to keep $0 and so on meaningful, and to
14292# report actual input values of CONFIG_FILES etc. instead of their
14293# values after options handling.
14294ac_log="
14295This file was extended by bogofilter $as_me 1.2.5, which was
14296generated by GNU Autoconf 2.69.  Invocation command line was
14297
14298  CONFIG_FILES    = $CONFIG_FILES
14299  CONFIG_HEADERS  = $CONFIG_HEADERS
14300  CONFIG_LINKS    = $CONFIG_LINKS
14301  CONFIG_COMMANDS = $CONFIG_COMMANDS
14302  $ $0 $@
14303
14304on `(hostname || uname -n) 2>/dev/null | sed 1q`
14305"
14306
14307_ACEOF
14308
14309case $ac_config_files in *"
14310"*) set x $ac_config_files; shift; ac_config_files=$*;;
14311esac
14312
14313case $ac_config_headers in *"
14314"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14315esac
14316
14317
14318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14319# Files that config.status was made for.
14320config_files="$ac_config_files"
14321config_headers="$ac_config_headers"
14322config_commands="$ac_config_commands"
14323
14324_ACEOF
14325
14326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14327ac_cs_usage="\
14328\`$as_me' instantiates files and other configuration actions
14329from templates according to the current configuration.  Unless the files
14330and actions are specified as TAGs, all are instantiated by default.
14331
14332Usage: $0 [OPTION]... [TAG]...
14333
14334  -h, --help       print this help, then exit
14335  -V, --version    print version number and configuration settings, then exit
14336      --config     print configuration, then exit
14337  -q, --quiet, --silent
14338                   do not print progress messages
14339  -d, --debug      don't remove temporary files
14340      --recheck    update $as_me by reconfiguring in the same conditions
14341      --file=FILE[:TEMPLATE]
14342                   instantiate the configuration file FILE
14343      --header=FILE[:TEMPLATE]
14344                   instantiate the configuration header FILE
14345
14346Configuration files:
14347$config_files
14348
14349Configuration headers:
14350$config_headers
14351
14352Configuration commands:
14353$config_commands
14354
14355Report bugs to the package provider."
14356
14357_ACEOF
14358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14359ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14360ac_cs_version="\\
14361bogofilter config.status 1.2.5
14362configured by $0, generated by GNU Autoconf 2.69,
14363  with options \\"\$ac_cs_config\\"
14364
14365Copyright (C) 2012 Free Software Foundation, Inc.
14366This config.status script is free software; the Free Software Foundation
14367gives unlimited permission to copy, distribute and modify it."
14368
14369ac_pwd='$ac_pwd'
14370srcdir='$srcdir'
14371INSTALL='$INSTALL'
14372MKDIR_P='$MKDIR_P'
14373AWK='$AWK'
14374test -n "\$AWK" || AWK=awk
14375_ACEOF
14376
14377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14378# The default lists apply if the user does not specify any file.
14379ac_need_defaults=:
14380while test $# != 0
14381do
14382  case $1 in
14383  --*=?*)
14384    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14385    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14386    ac_shift=:
14387    ;;
14388  --*=)
14389    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14390    ac_optarg=
14391    ac_shift=:
14392    ;;
14393  *)
14394    ac_option=$1
14395    ac_optarg=$2
14396    ac_shift=shift
14397    ;;
14398  esac
14399
14400  case $ac_option in
14401  # Handling of the options.
14402  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14403    ac_cs_recheck=: ;;
14404  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14405    $as_echo "$ac_cs_version"; exit ;;
14406  --config | --confi | --conf | --con | --co | --c )
14407    $as_echo "$ac_cs_config"; exit ;;
14408  --debug | --debu | --deb | --de | --d | -d )
14409    debug=: ;;
14410  --file | --fil | --fi | --f )
14411    $ac_shift
14412    case $ac_optarg in
14413    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14414    '') as_fn_error $? "missing file argument" ;;
14415    esac
14416    as_fn_append CONFIG_FILES " '$ac_optarg'"
14417    ac_need_defaults=false;;
14418  --header | --heade | --head | --hea )
14419    $ac_shift
14420    case $ac_optarg in
14421    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14422    esac
14423    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14424    ac_need_defaults=false;;
14425  --he | --h)
14426    # Conflict between --help and --header
14427    as_fn_error $? "ambiguous option: \`$1'
14428Try \`$0 --help' for more information.";;
14429  --help | --hel | -h )
14430    $as_echo "$ac_cs_usage"; exit ;;
14431  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14432  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14433    ac_cs_silent=: ;;
14434
14435  # This is an error.
14436  -*) as_fn_error $? "unrecognized option: \`$1'
14437Try \`$0 --help' for more information." ;;
14438
14439  *) as_fn_append ac_config_targets " $1"
14440     ac_need_defaults=false ;;
14441
14442  esac
14443  shift
14444done
14445
14446ac_configure_extra_args=
14447
14448if $ac_cs_silent; then
14449  exec 6>/dev/null
14450  ac_configure_extra_args="$ac_configure_extra_args --silent"
14451fi
14452
14453_ACEOF
14454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14455if \$ac_cs_recheck; then
14456  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14457  shift
14458  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14459  CONFIG_SHELL='$SHELL'
14460  export CONFIG_SHELL
14461  exec "\$@"
14462fi
14463
14464_ACEOF
14465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14466exec 5>>config.log
14467{
14468  echo
14469  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14470## Running $as_me. ##
14471_ASBOX
14472  $as_echo "$ac_log"
14473} >&5
14474
14475_ACEOF
14476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14477#
14478# INIT-COMMANDS
14479#
14480AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14481
14482_ACEOF
14483
14484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14485
14486# Handling of arguments.
14487for ac_config_target in $ac_config_targets
14488do
14489  case $ac_config_target in
14490    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14491    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:config.in" ;;
14492    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14493    "bogofilter.spec") CONFIG_FILES="$CONFIG_FILES bogofilter.spec" ;;
14494    "trio/Makefile") CONFIG_FILES="$CONFIG_FILES trio/Makefile" ;;
14495    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14496    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14497    "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
14498    "src/bf_compact") CONFIG_FILES="$CONFIG_FILES src/bf_compact" ;;
14499    "src/bf_copy") CONFIG_FILES="$CONFIG_FILES src/bf_copy" ;;
14500    "src/bf_tar") CONFIG_FILES="$CONFIG_FILES src/bf_tar" ;;
14501
14502  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14503  esac
14504done
14505
14506
14507# If the user did not use the arguments to specify the items to instantiate,
14508# then the envvar interface is used.  Set only those that are not.
14509# We use the long form for the default assignment because of an extremely
14510# bizarre bug on SunOS 4.1.3.
14511if $ac_need_defaults; then
14512  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14513  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14514  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14515fi
14516
14517# Have a temporary directory for convenience.  Make it in the build tree
14518# simply because there is no reason against having it here, and in addition,
14519# creating and moving files from /tmp can sometimes cause problems.
14520# Hook for its removal unless debugging.
14521# Note that there is a small window in which the directory will not be cleaned:
14522# after its creation but before its name has been assigned to `$tmp'.
14523$debug ||
14524{
14525  tmp= ac_tmp=
14526  trap 'exit_status=$?
14527  : "${ac_tmp:=$tmp}"
14528  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14529' 0
14530  trap 'as_fn_exit 1' 1 2 13 15
14531}
14532# Create a (secure) tmp directory for tmp files.
14533
14534{
14535  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14536  test -d "$tmp"
14537}  ||
14538{
14539  tmp=./conf$$-$RANDOM
14540  (umask 077 && mkdir "$tmp")
14541} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14542ac_tmp=$tmp
14543
14544# Set up the scripts for CONFIG_FILES section.
14545# No need to generate them if there are no CONFIG_FILES.
14546# This happens for instance with `./config.status config.h'.
14547if test -n "$CONFIG_FILES"; then
14548
14549
14550ac_cr=`echo X | tr X '\015'`
14551# On cygwin, bash can eat \r inside `` if the user requested igncr.
14552# But we know of no other shell where ac_cr would be empty at this
14553# point, so we can use a bashism as a fallback.
14554if test "x$ac_cr" = x; then
14555  eval ac_cr=\$\'\\r\'
14556fi
14557ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14558if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14559  ac_cs_awk_cr='\\r'
14560else
14561  ac_cs_awk_cr=$ac_cr
14562fi
14563
14564echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14565_ACEOF
14566
14567
14568{
14569  echo "cat >conf$$subs.awk <<_ACEOF" &&
14570  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14571  echo "_ACEOF"
14572} >conf$$subs.sh ||
14573  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14574ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14575ac_delim='%!_!# '
14576for ac_last_try in false false false false false :; do
14577  . ./conf$$subs.sh ||
14578    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14579
14580  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14581  if test $ac_delim_n = $ac_delim_num; then
14582    break
14583  elif $ac_last_try; then
14584    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14585  else
14586    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14587  fi
14588done
14589rm -f conf$$subs.sh
14590
14591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14592cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14593_ACEOF
14594sed -n '
14595h
14596s/^/S["/; s/!.*/"]=/
14597p
14598g
14599s/^[^!]*!//
14600:repl
14601t repl
14602s/'"$ac_delim"'$//
14603t delim
14604:nl
14605h
14606s/\(.\{148\}\)..*/\1/
14607t more1
14608s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14609p
14610n
14611b repl
14612:more1
14613s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14614p
14615g
14616s/.\{148\}//
14617t nl
14618:delim
14619h
14620s/\(.\{148\}\)..*/\1/
14621t more2
14622s/["\\]/\\&/g; s/^/"/; s/$/"/
14623p
14624b
14625:more2
14626s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14627p
14628g
14629s/.\{148\}//
14630t delim
14631' <conf$$subs.awk | sed '
14632/^[^""]/{
14633  N
14634  s/\n//
14635}
14636' >>$CONFIG_STATUS || ac_write_fail=1
14637rm -f conf$$subs.awk
14638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14639_ACAWK
14640cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14641  for (key in S) S_is_set[key] = 1
14642  FS = ""
14643
14644}
14645{
14646  line = $ 0
14647  nfields = split(line, field, "@")
14648  substed = 0
14649  len = length(field[1])
14650  for (i = 2; i < nfields; i++) {
14651    key = field[i]
14652    keylen = length(key)
14653    if (S_is_set[key]) {
14654      value = S[key]
14655      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14656      len += length(value) + length(field[++i])
14657      substed = 1
14658    } else
14659      len += 1 + keylen
14660  }
14661
14662  print line
14663}
14664
14665_ACAWK
14666_ACEOF
14667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14668if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14669  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14670else
14671  cat
14672fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14673  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14674_ACEOF
14675
14676# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14677# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14678# trailing colons and then remove the whole line if VPATH becomes empty
14679# (actually we leave an empty line to preserve line numbers).
14680if test "x$srcdir" = x.; then
14681  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14682h
14683s///
14684s/^/:/
14685s/[	 ]*$/:/
14686s/:\$(srcdir):/:/g
14687s/:\${srcdir}:/:/g
14688s/:@srcdir@:/:/g
14689s/^:*//
14690s/:*$//
14691x
14692s/\(=[	 ]*\).*/\1/
14693G
14694s/\n//
14695s/^[^=]*=[	 ]*$//
14696}'
14697fi
14698
14699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14700fi # test -n "$CONFIG_FILES"
14701
14702# Set up the scripts for CONFIG_HEADERS section.
14703# No need to generate them if there are no CONFIG_HEADERS.
14704# This happens for instance with `./config.status Makefile'.
14705if test -n "$CONFIG_HEADERS"; then
14706cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14707BEGIN {
14708_ACEOF
14709
14710# Transform confdefs.h into an awk script `defines.awk', embedded as
14711# here-document in config.status, that substitutes the proper values into
14712# config.h.in to produce config.h.
14713
14714# Create a delimiter string that does not exist in confdefs.h, to ease
14715# handling of long lines.
14716ac_delim='%!_!# '
14717for ac_last_try in false false :; do
14718  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14719  if test -z "$ac_tt"; then
14720    break
14721  elif $ac_last_try; then
14722    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14723  else
14724    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14725  fi
14726done
14727
14728# For the awk script, D is an array of macro values keyed by name,
14729# likewise P contains macro parameters if any.  Preserve backslash
14730# newline sequences.
14731
14732ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14733sed -n '
14734s/.\{148\}/&'"$ac_delim"'/g
14735t rset
14736:rset
14737s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14738t def
14739d
14740:def
14741s/\\$//
14742t bsnl
14743s/["\\]/\\&/g
14744s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14745D["\1"]=" \3"/p
14746s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14747d
14748:bsnl
14749s/["\\]/\\&/g
14750s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14751D["\1"]=" \3\\\\\\n"\\/p
14752t cont
14753s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14754t cont
14755d
14756:cont
14757n
14758s/.\{148\}/&'"$ac_delim"'/g
14759t clear
14760:clear
14761s/\\$//
14762t bsnlc
14763s/["\\]/\\&/g; s/^/"/; s/$/"/p
14764d
14765:bsnlc
14766s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14767b cont
14768' <confdefs.h | sed '
14769s/'"$ac_delim"'/"\\\
14770"/g' >>$CONFIG_STATUS || ac_write_fail=1
14771
14772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14773  for (key in D) D_is_set[key] = 1
14774  FS = ""
14775}
14776/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14777  line = \$ 0
14778  split(line, arg, " ")
14779  if (arg[1] == "#") {
14780    defundef = arg[2]
14781    mac1 = arg[3]
14782  } else {
14783    defundef = substr(arg[1], 2)
14784    mac1 = arg[2]
14785  }
14786  split(mac1, mac2, "(") #)
14787  macro = mac2[1]
14788  prefix = substr(line, 1, index(line, defundef) - 1)
14789  if (D_is_set[macro]) {
14790    # Preserve the white space surrounding the "#".
14791    print prefix "define", macro P[macro] D[macro]
14792    next
14793  } else {
14794    # Replace #undef with comments.  This is necessary, for example,
14795    # in the case of _POSIX_SOURCE, which is predefined and required
14796    # on some systems where configure will not decide to define it.
14797    if (defundef == "undef") {
14798      print "/*", prefix defundef, macro, "*/"
14799      next
14800    }
14801  }
14802}
14803{ print }
14804_ACAWK
14805_ACEOF
14806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14807  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14808fi # test -n "$CONFIG_HEADERS"
14809
14810
14811eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14812shift
14813for ac_tag
14814do
14815  case $ac_tag in
14816  :[FHLC]) ac_mode=$ac_tag; continue;;
14817  esac
14818  case $ac_mode$ac_tag in
14819  :[FHL]*:*);;
14820  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14821  :[FH]-) ac_tag=-:-;;
14822  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14823  esac
14824  ac_save_IFS=$IFS
14825  IFS=:
14826  set x $ac_tag
14827  IFS=$ac_save_IFS
14828  shift
14829  ac_file=$1
14830  shift
14831
14832  case $ac_mode in
14833  :L) ac_source=$1;;
14834  :[FH])
14835    ac_file_inputs=
14836    for ac_f
14837    do
14838      case $ac_f in
14839      -) ac_f="$ac_tmp/stdin";;
14840      *) # Look for the file first in the build tree, then in the source tree
14841	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14842	 # because $ac_f cannot contain `:'.
14843	 test -f "$ac_f" ||
14844	   case $ac_f in
14845	   [\\/$]*) false;;
14846	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14847	   esac ||
14848	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14849      esac
14850      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14851      as_fn_append ac_file_inputs " '$ac_f'"
14852    done
14853
14854    # Let's still pretend it is `configure' which instantiates (i.e., don't
14855    # use $as_me), people would be surprised to read:
14856    #    /* config.h.  Generated by config.status.  */
14857    configure_input='Generated from '`
14858	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14859	`' by configure.'
14860    if test x"$ac_file" != x-; then
14861      configure_input="$ac_file.  $configure_input"
14862      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14863$as_echo "$as_me: creating $ac_file" >&6;}
14864    fi
14865    # Neutralize special characters interpreted by sed in replacement strings.
14866    case $configure_input in #(
14867    *\&* | *\|* | *\\* )
14868       ac_sed_conf_input=`$as_echo "$configure_input" |
14869       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14870    *) ac_sed_conf_input=$configure_input;;
14871    esac
14872
14873    case $ac_tag in
14874    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14875      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14876    esac
14877    ;;
14878  esac
14879
14880  ac_dir=`$as_dirname -- "$ac_file" ||
14881$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14882	 X"$ac_file" : 'X\(//\)[^/]' \| \
14883	 X"$ac_file" : 'X\(//\)$' \| \
14884	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14885$as_echo X"$ac_file" |
14886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14887	    s//\1/
14888	    q
14889	  }
14890	  /^X\(\/\/\)[^/].*/{
14891	    s//\1/
14892	    q
14893	  }
14894	  /^X\(\/\/\)$/{
14895	    s//\1/
14896	    q
14897	  }
14898	  /^X\(\/\).*/{
14899	    s//\1/
14900	    q
14901	  }
14902	  s/.*/./; q'`
14903  as_dir="$ac_dir"; as_fn_mkdir_p
14904  ac_builddir=.
14905
14906case "$ac_dir" in
14907.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14908*)
14909  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14910  # A ".." for each directory in $ac_dir_suffix.
14911  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14912  case $ac_top_builddir_sub in
14913  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14914  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14915  esac ;;
14916esac
14917ac_abs_top_builddir=$ac_pwd
14918ac_abs_builddir=$ac_pwd$ac_dir_suffix
14919# for backward compatibility:
14920ac_top_builddir=$ac_top_build_prefix
14921
14922case $srcdir in
14923  .)  # We are building in place.
14924    ac_srcdir=.
14925    ac_top_srcdir=$ac_top_builddir_sub
14926    ac_abs_top_srcdir=$ac_pwd ;;
14927  [\\/]* | ?:[\\/]* )  # Absolute name.
14928    ac_srcdir=$srcdir$ac_dir_suffix;
14929    ac_top_srcdir=$srcdir
14930    ac_abs_top_srcdir=$srcdir ;;
14931  *) # Relative name.
14932    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14933    ac_top_srcdir=$ac_top_build_prefix$srcdir
14934    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14935esac
14936ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14937
14938
14939  case $ac_mode in
14940  :F)
14941  #
14942  # CONFIG_FILE
14943  #
14944
14945  case $INSTALL in
14946  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14947  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14948  esac
14949  ac_MKDIR_P=$MKDIR_P
14950  case $MKDIR_P in
14951  [\\/$]* | ?:[\\/]* ) ;;
14952  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14953  esac
14954_ACEOF
14955
14956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14957# If the template does not know about datarootdir, expand it.
14958# FIXME: This hack should be removed a few years after 2.60.
14959ac_datarootdir_hack=; ac_datarootdir_seen=
14960ac_sed_dataroot='
14961/datarootdir/ {
14962  p
14963  q
14964}
14965/@datadir@/p
14966/@docdir@/p
14967/@infodir@/p
14968/@localedir@/p
14969/@mandir@/p'
14970case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14971*datarootdir*) ac_datarootdir_seen=yes;;
14972*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14973  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14974$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14975_ACEOF
14976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14977  ac_datarootdir_hack='
14978  s&@datadir@&$datadir&g
14979  s&@docdir@&$docdir&g
14980  s&@infodir@&$infodir&g
14981  s&@localedir@&$localedir&g
14982  s&@mandir@&$mandir&g
14983  s&\\\${datarootdir}&$datarootdir&g' ;;
14984esac
14985_ACEOF
14986
14987# Neutralize VPATH when `$srcdir' = `.'.
14988# Shell code in configure.ac might set extrasub.
14989# FIXME: do we really want to maintain this feature?
14990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14991ac_sed_extra="$ac_vpsub
14992$extrasub
14993_ACEOF
14994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14995:t
14996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14997s|@configure_input@|$ac_sed_conf_input|;t t
14998s&@top_builddir@&$ac_top_builddir_sub&;t t
14999s&@top_build_prefix@&$ac_top_build_prefix&;t t
15000s&@srcdir@&$ac_srcdir&;t t
15001s&@abs_srcdir@&$ac_abs_srcdir&;t t
15002s&@top_srcdir@&$ac_top_srcdir&;t t
15003s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15004s&@builddir@&$ac_builddir&;t t
15005s&@abs_builddir@&$ac_abs_builddir&;t t
15006s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15007s&@INSTALL@&$ac_INSTALL&;t t
15008s&@MKDIR_P@&$ac_MKDIR_P&;t t
15009$ac_datarootdir_hack
15010"
15011eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15012  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15013
15014test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15015  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15016  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15017      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15018  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15019which seems to be undefined.  Please make sure it is defined" >&5
15020$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15021which seems to be undefined.  Please make sure it is defined" >&2;}
15022
15023  rm -f "$ac_tmp/stdin"
15024  case $ac_file in
15025  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15026  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15027  esac \
15028  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15029 ;;
15030  :H)
15031  #
15032  # CONFIG_HEADER
15033  #
15034  if test x"$ac_file" != x-; then
15035    {
15036      $as_echo "/* $configure_input  */" \
15037      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15038    } >"$ac_tmp/config.h" \
15039      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15040    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15041      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15042$as_echo "$as_me: $ac_file is unchanged" >&6;}
15043    else
15044      rm -f "$ac_file"
15045      mv "$ac_tmp/config.h" "$ac_file" \
15046	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15047    fi
15048  else
15049    $as_echo "/* $configure_input  */" \
15050      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15051      || as_fn_error $? "could not create -" "$LINENO" 5
15052  fi
15053# Compute "$ac_file"'s index in $config_headers.
15054_am_arg="$ac_file"
15055_am_stamp_count=1
15056for _am_header in $config_headers :; do
15057  case $_am_header in
15058    $_am_arg | $_am_arg:* )
15059      break ;;
15060    * )
15061      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15062  esac
15063done
15064echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15065$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15066	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15067	 X"$_am_arg" : 'X\(//\)$' \| \
15068	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15069$as_echo X"$_am_arg" |
15070    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15071	    s//\1/
15072	    q
15073	  }
15074	  /^X\(\/\/\)[^/].*/{
15075	    s//\1/
15076	    q
15077	  }
15078	  /^X\(\/\/\)$/{
15079	    s//\1/
15080	    q
15081	  }
15082	  /^X\(\/\).*/{
15083	    s//\1/
15084	    q
15085	  }
15086	  s/.*/./; q'`/stamp-h$_am_stamp_count
15087 ;;
15088
15089  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15090$as_echo "$as_me: executing $ac_file commands" >&6;}
15091 ;;
15092  esac
15093
15094
15095  case $ac_file$ac_mode in
15096    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15097  # Older Autoconf quotes --file arguments for eval, but not when files
15098  # are listed without --file.  Let's play safe and only enable the eval
15099  # if we detect the quoting.
15100  # TODO: see whether this extra hack can be removed once we start
15101  # requiring Autoconf 2.70 or later.
15102  case $CONFIG_FILES in #(
15103  *\'*) :
15104    eval set x "$CONFIG_FILES" ;; #(
15105  *) :
15106    set x $CONFIG_FILES ;; #(
15107  *) :
15108     ;;
15109esac
15110  shift
15111  # Used to flag and report bootstrapping failures.
15112  am_rc=0
15113  for am_mf
15114  do
15115    # Strip MF so we end up with the name of the file.
15116    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15117    # Check whether this is an Automake generated Makefile which includes
15118    # dependency-tracking related rules and includes.
15119    # Grep'ing the whole file directly is not great: AIX grep has a line
15120    # limit of 2048, but all sed's we know have understand at least 4000.
15121    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15122      || continue
15123    am_dirpart=`$as_dirname -- "$am_mf" ||
15124$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15125	 X"$am_mf" : 'X\(//\)[^/]' \| \
15126	 X"$am_mf" : 'X\(//\)$' \| \
15127	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15128$as_echo X"$am_mf" |
15129    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15130	    s//\1/
15131	    q
15132	  }
15133	  /^X\(\/\/\)[^/].*/{
15134	    s//\1/
15135	    q
15136	  }
15137	  /^X\(\/\/\)$/{
15138	    s//\1/
15139	    q
15140	  }
15141	  /^X\(\/\).*/{
15142	    s//\1/
15143	    q
15144	  }
15145	  s/.*/./; q'`
15146    am_filepart=`$as_basename -- "$am_mf" ||
15147$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15148	 X"$am_mf" : 'X\(//\)$' \| \
15149	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15150$as_echo X/"$am_mf" |
15151    sed '/^.*\/\([^/][^/]*\)\/*$/{
15152	    s//\1/
15153	    q
15154	  }
15155	  /^X\/\(\/\/\)$/{
15156	    s//\1/
15157	    q
15158	  }
15159	  /^X\/\(\/\).*/{
15160	    s//\1/
15161	    q
15162	  }
15163	  s/.*/./; q'`
15164    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15165      && sed -e '/# am--include-marker/d' "$am_filepart" \
15166        | $MAKE -f - am--depfiles" >&5
15167   (cd "$am_dirpart" \
15168      && sed -e '/# am--include-marker/d' "$am_filepart" \
15169        | $MAKE -f - am--depfiles) >&5 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } || am_rc=$?
15173  done
15174  if test $am_rc -ne 0; then
15175    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15177as_fn_error $? "Something went wrong bootstrapping makefile fragments
15178    for automatic dependency tracking.  Try re-running configure with the
15179    '--disable-dependency-tracking' option to at least be able to build
15180    the package (albeit without support for automatic dependency tracking).
15181See \`config.log' for more details" "$LINENO" 5; }
15182  fi
15183  { am_dirpart=; unset am_dirpart;}
15184  { am_filepart=; unset am_filepart;}
15185  { am_mf=; unset am_mf;}
15186  { am_rc=; unset am_rc;}
15187  rm -f conftest-deps.mk
15188}
15189 ;;
15190
15191  esac
15192done # for ac_tag
15193
15194
15195as_fn_exit 0
15196_ACEOF
15197ac_clean_files=$ac_clean_files_save
15198
15199test $ac_write_fail = 0 ||
15200  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15201
15202
15203# configure is writing to config.log, and then calls config.status.
15204# config.status does its own redirection, appending to config.log.
15205# Unfortunately, on DOS this fails, as config.log is still kept open
15206# by configure, so config.status won't be able to write to it; its
15207# output is simply discarded.  So we exec the FD to /dev/null,
15208# effectively closing config.log, so it can be properly (re)opened and
15209# appended to by config.status.  When coming back to configure, we
15210# need to make the FD available again.
15211if test "$no_create" != yes; then
15212  ac_cs_success=:
15213  ac_config_status_args=
15214  test "$silent" = yes &&
15215    ac_config_status_args="$ac_config_status_args --quiet"
15216  exec 5>/dev/null
15217  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15218  exec 5>>config.log
15219  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15220  # would make configure fail if this is the last instruction.
15221  $ac_cs_success || as_fn_exit 1
15222fi
15223if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15224  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15225$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15226fi
15227
15228
15229{ $as_echo "$as_me:${as_lineno-$LINENO}: Using these settings:" >&5
15230$as_echo "$as_me: Using these settings:" >&6;}
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: ---------------------" >&5
15232$as_echo "$as_me: ---------------------" >&6;}
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: CPPFLAGS=$CPPFLAGS" >&5
15234$as_echo "$as_me: CPPFLAGS=$CPPFLAGS" >&6;}
15235{ $as_echo "$as_me:${as_lineno-$LINENO}:   CFLAGS=$CFLAGS" >&5
15236$as_echo "$as_me:   CFLAGS=$CFLAGS" >&6;}
15237{ $as_echo "$as_me:${as_lineno-$LINENO}:  LDFLAGS=$LDFLAGS" >&5
15238$as_echo "$as_me:  LDFLAGS=$LDFLAGS" >&6;}
15239{ $as_echo "$as_me:${as_lineno-$LINENO}:     LIBS=$LIBS" >&5
15240$as_echo "$as_me:     LIBS=$LIBS" >&6;}
15241{ $as_echo "$as_me:${as_lineno-$LINENO}:    LIBDB=$LIBDB" >&5
15242$as_echo "$as_me:    LIBDB=$LIBDB" >&6;}
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: GSL_LIBS=$GSL_LIBS" >&5
15244$as_echo "$as_me: GSL_LIBS=$GSL_LIBS" >&6;}
15245{ $as_echo "$as_me:${as_lineno-$LINENO}: LIBICONV=$LIBICONV" >&5
15246$as_echo "$as_me: LIBICONV=$LIBICONV" >&6;}
15247