1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for monotone 1.1.
4#
5# Report bugs to <https://code.monotone.ca/p/monotone/issues/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://code.monotone.ca/p/monotone/issues/ about your
271$0: system, including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='monotone'
582PACKAGE_TARNAME='monotone'
583PACKAGE_VERSION='1.1'
584PACKAGE_STRING='monotone 1.1'
585PACKAGE_BUGREPORT='https://code.monotone.ca/p/monotone/issues/'
586PACKAGE_URL='http://www.monotone.ca'
587
588ac_unique_file="src/app_state.cc"
589ac_subst_vars='am__EXEEXT_FALSE
590am__EXEEXT_TRUE
591LTLIBOBJS
592LIBOBJS
593MISSING_GETADDRINFO_FALSE
594MISSING_GETADDRINFO_TRUE
595MISSING_INET_NTOP_FALSE
596MISSING_INET_NTOP_TRUE
597MISSING_INET_PTON_FALSE
598MISSING_INET_PTON_TRUE
599MISSING_INET6_FALSE
600MISSING_INET6_TRUE
601sqlite3_LIBS
602sqlite3_CFLAGS
603pcre_LIBS
604pcre_CFLAGS
605lua_LIBS
606lua_CFLAGS
607idn_LIBS
608idn_CFLAGS
609botan_LIBS
610botan_CFLAGS
611EGREP
612GREP
613PKG_CONFIG
614INST_LINGUAS
615USE_NLS_FALSE
616USE_NLS_TRUE
617REBUILD_NLS_FALSE
618REBUILD_NLS_TRUE
619XGETTEXT_PKG_OPTS
620XGETTEXT_OPTS
621XGETTEXT
622MSGMERGE
623MSGFMT
624intl_LIBS
625intl_CFLAGS
626LINGUAS
627RANLIB
628CXX_FOR_BUILD
629BUILD_PCH_FALSE
630BUILD_PCH_TRUE
631am__fastdepCXX_FALSE
632am__fastdepCXX_TRUE
633CXXDEPMODE
634am__nodep
635AMDEPBACKSLASH
636AMDEP_FALSE
637AMDEP_TRUE
638am__quote
639am__include
640DEPDIR
641OBJEXT
642EXEEXT
643ac_ct_CXX
644CPPFLAGS
645LDFLAGS
646CXXFLAGS
647CXX
648WIN32_PLATFORM_FALSE
649WIN32_PLATFORM_TRUE
650ISCC
651BUILD_DATE
652host_os
653host_vendor
654host_cpu
655host
656build_os
657build_vendor
658build_cpu
659build
660AM_BACKSLASH
661AM_DEFAULT_VERBOSITY
662AM_DEFAULT_V
663AM_V
664am__untar
665am__tar
666AMTAR
667am__leading_dot
668SET_MAKE
669AWK
670mkdir_p
671MKDIR_P
672INSTALL_STRIP_PROGRAM
673STRIP
674install_sh
675MAKEINFO
676AUTOHEADER
677AUTOMAKE
678AUTOCONF
679ACLOCAL
680VERSION
681PACKAGE
682CYGPATH_W
683am__isrc
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_alias
688host_alias
689build_alias
690LIBS
691ECHO_T
692ECHO_N
693ECHO_C
694DEFS
695mandir
696localedir
697libdir
698psdir
699pdfdir
700dvidir
701htmldir
702infodir
703docdir
704oldincludedir
705includedir
706localstatedir
707sharedstatedir
708sysconfdir
709datadir
710datarootdir
711libexecdir
712sbindir
713bindir
714program_transform_name
715prefix
716exec_prefix
717PACKAGE_URL
718PACKAGE_BUGREPORT
719PACKAGE_STRING
720PACKAGE_VERSION
721PACKAGE_TARNAME
722PACKAGE_NAME
723PATH_SEPARATOR
724SHELL'
725ac_subst_files=''
726ac_user_opts='
727enable_option_checking
728enable_silent_rules
729enable_dependency_tracking
730enable_pch
731enable_nls
732enable_ipv6
733'
734      ac_precious_vars='build_alias
735host_alias
736target_alias
737CXX
738CXXFLAGS
739LDFLAGS
740LIBS
741CPPFLAGS
742CCC
743CXX_FOR_BUILD
744LINGUAS
745intl_CFLAGS
746intl_LIBS
747PKG_CONFIG
748botan_CFLAGS
749botan_LIBS
750idn_CFLAGS
751idn_LIBS
752lua_CFLAGS
753lua_LIBS
754pcre_CFLAGS
755pcre_LIBS
756sqlite3_CFLAGS
757sqlite3_LIBS'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796includedir='${prefix}/include'
797oldincludedir='/usr/include'
798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
807
808ac_prev=
809ac_dashdash=
810for ac_option
811do
812  # If the previous option needs an argument, assign it.
813  if test -n "$ac_prev"; then
814    eval $ac_prev=\$ac_option
815    ac_prev=
816    continue
817  fi
818
819  case $ac_option in
820  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821  *=)   ac_optarg= ;;
822  *)    ac_optarg=yes ;;
823  esac
824
825  # Accept the important Cygnus configure options, so we can diagnose typos.
826
827  case $ac_dashdash$ac_option in
828  --)
829    ac_dashdash=yes ;;
830
831  -bindir | --bindir | --bindi | --bind | --bin | --bi)
832    ac_prev=bindir ;;
833  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834    bindir=$ac_optarg ;;
835
836  -build | --build | --buil | --bui | --bu)
837    ac_prev=build_alias ;;
838  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839    build_alias=$ac_optarg ;;
840
841  -cache-file | --cache-file | --cache-fil | --cache-fi \
842  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843    ac_prev=cache_file ;;
844  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846    cache_file=$ac_optarg ;;
847
848  --config-cache | -C)
849    cache_file=config.cache ;;
850
851  -datadir | --datadir | --datadi | --datad)
852    ac_prev=datadir ;;
853  -datadir=* | --datadir=* | --datadi=* | --datad=*)
854    datadir=$ac_optarg ;;
855
856  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857  | --dataroo | --dataro | --datar)
858    ac_prev=datarootdir ;;
859  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861    datarootdir=$ac_optarg ;;
862
863  -disable-* | --disable-*)
864    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865    # Reject names that are not valid shell variable names.
866    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867      as_fn_error $? "invalid feature name: $ac_useropt"
868    ac_useropt_orig=$ac_useropt
869    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870    case $ac_user_opts in
871      *"
872"enable_$ac_useropt"
873"*) ;;
874      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875	 ac_unrecognized_sep=', ';;
876    esac
877    eval enable_$ac_useropt=no ;;
878
879  -docdir | --docdir | --docdi | --doc | --do)
880    ac_prev=docdir ;;
881  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882    docdir=$ac_optarg ;;
883
884  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885    ac_prev=dvidir ;;
886  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887    dvidir=$ac_optarg ;;
888
889  -enable-* | --enable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=\$ac_optarg ;;
904
905  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907  | --exec | --exe | --ex)
908    ac_prev=exec_prefix ;;
909  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911  | --exec=* | --exe=* | --ex=*)
912    exec_prefix=$ac_optarg ;;
913
914  -gas | --gas | --ga | --g)
915    # Obsolete; use --with-gas.
916    with_gas=yes ;;
917
918  -help | --help | --hel | --he | -h)
919    ac_init_help=long ;;
920  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921    ac_init_help=recursive ;;
922  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923    ac_init_help=short ;;
924
925  -host | --host | --hos | --ho)
926    ac_prev=host_alias ;;
927  -host=* | --host=* | --hos=* | --ho=*)
928    host_alias=$ac_optarg ;;
929
930  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931    ac_prev=htmldir ;;
932  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933  | --ht=*)
934    htmldir=$ac_optarg ;;
935
936  -includedir | --includedir | --includedi | --included | --include \
937  | --includ | --inclu | --incl | --inc)
938    ac_prev=includedir ;;
939  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940  | --includ=* | --inclu=* | --incl=* | --inc=*)
941    includedir=$ac_optarg ;;
942
943  -infodir | --infodir | --infodi | --infod | --info | --inf)
944    ac_prev=infodir ;;
945  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946    infodir=$ac_optarg ;;
947
948  -libdir | --libdir | --libdi | --libd)
949    ac_prev=libdir ;;
950  -libdir=* | --libdir=* | --libdi=* | --libd=*)
951    libdir=$ac_optarg ;;
952
953  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954  | --libexe | --libex | --libe)
955    ac_prev=libexecdir ;;
956  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957  | --libexe=* | --libex=* | --libe=*)
958    libexecdir=$ac_optarg ;;
959
960  -localedir | --localedir | --localedi | --localed | --locale)
961    ac_prev=localedir ;;
962  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963    localedir=$ac_optarg ;;
964
965  -localstatedir | --localstatedir | --localstatedi | --localstated \
966  | --localstate | --localstat | --localsta | --localst | --locals)
967    ac_prev=localstatedir ;;
968  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970    localstatedir=$ac_optarg ;;
971
972  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973    ac_prev=mandir ;;
974  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975    mandir=$ac_optarg ;;
976
977  -nfp | --nfp | --nf)
978    # Obsolete; use --without-fp.
979    with_fp=no ;;
980
981  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982  | --no-cr | --no-c | -n)
983    no_create=yes ;;
984
985  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987    no_recursion=yes ;;
988
989  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991  | --oldin | --oldi | --old | --ol | --o)
992    ac_prev=oldincludedir ;;
993  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996    oldincludedir=$ac_optarg ;;
997
998  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999    ac_prev=prefix ;;
1000  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001    prefix=$ac_optarg ;;
1002
1003  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004  | --program-pre | --program-pr | --program-p)
1005    ac_prev=program_prefix ;;
1006  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008    program_prefix=$ac_optarg ;;
1009
1010  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011  | --program-suf | --program-su | --program-s)
1012    ac_prev=program_suffix ;;
1013  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015    program_suffix=$ac_optarg ;;
1016
1017  -program-transform-name | --program-transform-name \
1018  | --program-transform-nam | --program-transform-na \
1019  | --program-transform-n | --program-transform- \
1020  | --program-transform | --program-transfor \
1021  | --program-transfo | --program-transf \
1022  | --program-trans | --program-tran \
1023  | --progr-tra | --program-tr | --program-t)
1024    ac_prev=program_transform_name ;;
1025  -program-transform-name=* | --program-transform-name=* \
1026  | --program-transform-nam=* | --program-transform-na=* \
1027  | --program-transform-n=* | --program-transform-=* \
1028  | --program-transform=* | --program-transfor=* \
1029  | --program-transfo=* | --program-transf=* \
1030  | --program-trans=* | --program-tran=* \
1031  | --progr-tra=* | --program-tr=* | --program-t=*)
1032    program_transform_name=$ac_optarg ;;
1033
1034  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035    ac_prev=pdfdir ;;
1036  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037    pdfdir=$ac_optarg ;;
1038
1039  -psdir | --psdir | --psdi | --psd | --ps)
1040    ac_prev=psdir ;;
1041  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042    psdir=$ac_optarg ;;
1043
1044  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045  | -silent | --silent | --silen | --sile | --sil)
1046    silent=yes ;;
1047
1048  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049    ac_prev=sbindir ;;
1050  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051  | --sbi=* | --sb=*)
1052    sbindir=$ac_optarg ;;
1053
1054  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056  | --sharedst | --shareds | --shared | --share | --shar \
1057  | --sha | --sh)
1058    ac_prev=sharedstatedir ;;
1059  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062  | --sha=* | --sh=*)
1063    sharedstatedir=$ac_optarg ;;
1064
1065  -site | --site | --sit)
1066    ac_prev=site ;;
1067  -site=* | --site=* | --sit=*)
1068    site=$ac_optarg ;;
1069
1070  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071    ac_prev=srcdir ;;
1072  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073    srcdir=$ac_optarg ;;
1074
1075  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076  | --syscon | --sysco | --sysc | --sys | --sy)
1077    ac_prev=sysconfdir ;;
1078  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080    sysconfdir=$ac_optarg ;;
1081
1082  -target | --target | --targe | --targ | --tar | --ta | --t)
1083    ac_prev=target_alias ;;
1084  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085    target_alias=$ac_optarg ;;
1086
1087  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088    verbose=yes ;;
1089
1090  -version | --version | --versio | --versi | --vers | -V)
1091    ac_init_version=: ;;
1092
1093  -with-* | --with-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      as_fn_error $? "invalid package name: $ac_useropt"
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"with_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval with_$ac_useropt=\$ac_optarg ;;
1108
1109  -without-* | --without-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=no ;;
1124
1125  --x)
1126    # Obsolete; use --with-x.
1127    with_x=yes ;;
1128
1129  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130  | --x-incl | --x-inc | --x-in | --x-i)
1131    ac_prev=x_includes ;;
1132  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134    x_includes=$ac_optarg ;;
1135
1136  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138    ac_prev=x_libraries ;;
1139  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141    x_libraries=$ac_optarg ;;
1142
1143  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144Try \`$0 --help' for more information"
1145    ;;
1146
1147  *=*)
1148    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149    # Reject names that are not valid shell variable names.
1150    case $ac_envvar in #(
1151      '' | [0-9]* | *[!_$as_cr_alnum]* )
1152      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153    esac
1154    eval $ac_envvar=\$ac_optarg
1155    export $ac_envvar ;;
1156
1157  *)
1158    # FIXME: should be removed in autoconf 3.0.
1159    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163    ;;
1164
1165  esac
1166done
1167
1168if test -n "$ac_prev"; then
1169  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170  as_fn_error $? "missing argument to $ac_option"
1171fi
1172
1173if test -n "$ac_unrecognized_opts"; then
1174  case $enable_option_checking in
1175    no) ;;
1176    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178  esac
1179fi
1180
1181# Check all directory arguments for consistency.
1182for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183		datadir sysconfdir sharedstatedir localstatedir includedir \
1184		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185		libdir localedir mandir
1186do
1187  eval ac_val=\$$ac_var
1188  # Remove trailing slashes.
1189  case $ac_val in
1190    */ )
1191      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192      eval $ac_var=\$ac_val;;
1193  esac
1194  # Be sure to have absolute directory names.
1195  case $ac_val in
1196    [\\/$]* | ?:[\\/]* )  continue;;
1197    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198  esac
1199  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211  if test "x$build_alias" = x; then
1212    cross_compiling=maybe
1213  elif test "x$build_alias" != "x$host_alias"; then
1214    cross_compiling=yes
1215  fi
1216fi
1217
1218ac_tool_prefix=
1219test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221test "$silent" = yes && exec 6>/dev/null
1222
1223
1224ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225ac_ls_di=`ls -di .` &&
1226ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227  as_fn_error $? "working directory cannot be determined"
1228test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229  as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232# Find the source files, if location was not specified.
1233if test -z "$srcdir"; then
1234  ac_srcdir_defaulted=yes
1235  # Try the directory containing this script, then the parent directory.
1236  ac_confdir=`$as_dirname -- "$as_myself" ||
1237$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238	 X"$as_myself" : 'X\(//\)[^/]' \| \
1239	 X"$as_myself" : 'X\(//\)$' \| \
1240	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241$as_echo X"$as_myself" |
1242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243	    s//\1/
1244	    q
1245	  }
1246	  /^X\(\/\/\)[^/].*/{
1247	    s//\1/
1248	    q
1249	  }
1250	  /^X\(\/\/\)$/{
1251	    s//\1/
1252	    q
1253	  }
1254	  /^X\(\/\).*/{
1255	    s//\1/
1256	    q
1257	  }
1258	  s/.*/./; q'`
1259  srcdir=$ac_confdir
1260  if test ! -r "$srcdir/$ac_unique_file"; then
1261    srcdir=..
1262  fi
1263else
1264  ac_srcdir_defaulted=no
1265fi
1266if test ! -r "$srcdir/$ac_unique_file"; then
1267  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269fi
1270ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271ac_abs_confdir=`(
1272	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273	pwd)`
1274# When building in place, set srcdir=.
1275if test "$ac_abs_confdir" = "$ac_pwd"; then
1276  srcdir=.
1277fi
1278# Remove unnecessary trailing slashes from srcdir.
1279# Double slashes in file names in object file debugging info
1280# mess up M-x gdb in Emacs.
1281case $srcdir in
1282*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283esac
1284for ac_var in $ac_precious_vars; do
1285  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286  eval ac_env_${ac_var}_value=\$${ac_var}
1287  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289done
1290
1291#
1292# Report the --help message.
1293#
1294if test "$ac_init_help" = "long"; then
1295  # Omit some internal or obsolete options to make the list less imposing.
1296  # This message is too long to be a string in the A/UX 3.1 sh.
1297  cat <<_ACEOF
1298\`configure' configures monotone 1.1 to adapt to many kinds of systems.
1299
1300Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305Defaults for the options are specified in brackets.
1306
1307Configuration:
1308  -h, --help              display this help and exit
1309      --help=short        display options specific to this package
1310      --help=recursive    display the short help of all the included packages
1311  -V, --version           display version information and exit
1312  -q, --quiet, --silent   do not print \`checking ...' messages
1313      --cache-file=FILE   cache test results in FILE [disabled]
1314  -C, --config-cache      alias for \`--cache-file=config.cache'
1315  -n, --no-create         do not create output files
1316      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318Installation directories:
1319  --prefix=PREFIX         install architecture-independent files in PREFIX
1320                          [$ac_default_prefix]
1321  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                          [PREFIX]
1323
1324By default, \`make install' will install all the files in
1325\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327for instance \`--prefix=\$HOME'.
1328
1329For better control, use the options below.
1330
1331Fine tuning of the installation directories:
1332  --bindir=DIR            user executables [EPREFIX/bin]
1333  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334  --libexecdir=DIR        program executables [EPREFIX/libexec]
1335  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338  --libdir=DIR            object code libraries [EPREFIX/lib]
1339  --includedir=DIR        C header files [PREFIX/include]
1340  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343  --infodir=DIR           info documentation [DATAROOTDIR/info]
1344  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345  --mandir=DIR            man documentation [DATAROOTDIR/man]
1346  --docdir=DIR            documentation root [DATAROOTDIR/doc/monotone]
1347  --htmldir=DIR           html documentation [DOCDIR]
1348  --dvidir=DIR            dvi documentation [DOCDIR]
1349  --pdfdir=DIR            pdf documentation [DOCDIR]
1350  --psdir=DIR             ps documentation [DOCDIR]
1351_ACEOF
1352
1353  cat <<\_ACEOF
1354
1355Program names:
1356  --program-prefix=PREFIX            prepend PREFIX to installed program names
1357  --program-suffix=SUFFIX            append SUFFIX to installed program names
1358  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359
1360System types:
1361  --build=BUILD     configure for building on BUILD [guessed]
1362  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363_ACEOF
1364fi
1365
1366if test -n "$ac_init_help"; then
1367  case $ac_init_help in
1368     short | recursive ) echo "Configuration of monotone 1.1:";;
1369   esac
1370  cat <<\_ACEOF
1371
1372Optional Features:
1373  --disable-option-checking  ignore unrecognized --enable/--with options
1374  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376  --enable-silent-rules   less verbose build output (undo: "make V=1")
1377  --disable-silent-rules  verbose build output (undo: "make V=0")
1378  --enable-dependency-tracking
1379                          do not reject slow dependency extractors
1380  --disable-dependency-tracking
1381                          speeds up one-time build
1382  --enable-pch            use precompiled boost headers
1383  --disable-nls           do not use user's native language for program
1384                          messages
1385  --enable-ipv6           enable IPv6 support (default=auto)
1386
1387Some influential environment variables:
1388  CXX         C++ compiler command
1389  CXXFLAGS    C++ compiler flags
1390  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391              nonstandard directory <lib dir>
1392  LIBS        libraries to pass to the linker, e.g. -l<library>
1393  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394              you have headers in a nonstandard directory <include dir>
1395  CXX_FOR_BUILD
1396              C++ compiler command for programs to run on build machine
1397  LINGUAS     List of languages to install message translations for, if
1398              available. (Default is to install everything available.)
1399  intl_CFLAGS override C compiler flags for GNU libintl
1400  intl_LIBS   override linker flags for GNU libintl
1401  PKG_CONFIG  path to pkg-config utility
1402  botan_CFLAGS
1403              C compiler flags for botan, overriding pkg-config
1404  botan_LIBS  linker flags for botan, overriding pkg-config
1405  idn_CFLAGS  C compiler flags for idn, overriding pkg-config
1406  idn_LIBS    linker flags for idn, overriding pkg-config
1407  lua_CFLAGS  C compiler flags for lua, overriding pkg-config
1408  lua_LIBS    linker flags for lua, overriding pkg-config
1409  pcre_CFLAGS C compiler flags for pcre, overriding pkg-config
1410  pcre_LIBS   linker flags for pcre, overriding pkg-config
1411  sqlite3_CFLAGS
1412              C compiler flags for sqlite3, overriding pkg-config
1413  sqlite3_LIBS
1414              linker flags for sqlite3, overriding pkg-config
1415
1416Use these variables to override the choices made by `configure' or to help
1417it to find libraries and programs with nonstandard names/locations.
1418
1419Report bugs to <https://code.monotone.ca/p/monotone/issues/>.
1420monotone home page: <http://www.monotone.ca>.
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426  # If there are subdirs, report their specific --help.
1427  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428    test -d "$ac_dir" ||
1429      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430      continue
1431    ac_builddir=.
1432
1433case "$ac_dir" in
1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435*)
1436  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437  # A ".." for each directory in $ac_dir_suffix.
1438  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439  case $ac_top_builddir_sub in
1440  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442  esac ;;
1443esac
1444ac_abs_top_builddir=$ac_pwd
1445ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446# for backward compatibility:
1447ac_top_builddir=$ac_top_build_prefix
1448
1449case $srcdir in
1450  .)  # We are building in place.
1451    ac_srcdir=.
1452    ac_top_srcdir=$ac_top_builddir_sub
1453    ac_abs_top_srcdir=$ac_pwd ;;
1454  [\\/]* | ?:[\\/]* )  # Absolute name.
1455    ac_srcdir=$srcdir$ac_dir_suffix;
1456    ac_top_srcdir=$srcdir
1457    ac_abs_top_srcdir=$srcdir ;;
1458  *) # Relative name.
1459    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460    ac_top_srcdir=$ac_top_build_prefix$srcdir
1461    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462esac
1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465    cd "$ac_dir" || { ac_status=$?; continue; }
1466    # Check for guested configure.
1467    if test -f "$ac_srcdir/configure.gnu"; then
1468      echo &&
1469      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470    elif test -f "$ac_srcdir/configure"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure" --help=recursive
1473    else
1474      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475    fi || ac_status=$?
1476    cd "$ac_pwd" || { ac_status=$?; break; }
1477  done
1478fi
1479
1480test -n "$ac_init_help" && exit $ac_status
1481if $ac_init_version; then
1482  cat <<\_ACEOF
1483monotone configure 1.1
1484generated by GNU Autoconf 2.69
1485
1486Copyright (C) 2012 Free Software Foundation, Inc.
1487This configure script is free software; the Free Software Foundation
1488gives unlimited permission to copy, distribute and modify it.
1489_ACEOF
1490  exit
1491fi
1492
1493## ------------------------ ##
1494## Autoconf initialization. ##
1495## ------------------------ ##
1496
1497# ac_fn_cxx_try_compile LINENO
1498# ----------------------------
1499# Try to compile conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_cxx_try_compile ()
1501{
1502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503  rm -f conftest.$ac_objext
1504  if { { ac_try="$ac_compile"
1505case "(($ac_try" in
1506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507  *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511  (eval "$ac_compile") 2>conftest.err
1512  ac_status=$?
1513  if test -s conftest.err; then
1514    grep -v '^ *+' conftest.err >conftest.er1
1515    cat conftest.er1 >&5
1516    mv -f conftest.er1 conftest.err
1517  fi
1518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519  test $ac_status = 0; } && {
1520	 test -z "$ac_cxx_werror_flag" ||
1521	 test ! -s conftest.err
1522       } && test -s conftest.$ac_objext; then :
1523  ac_retval=0
1524else
1525  $as_echo "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
1527
1528	ac_retval=1
1529fi
1530  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531  as_fn_set_status $ac_retval
1532
1533} # ac_fn_cxx_try_compile
1534
1535# ac_fn_cxx_try_link LINENO
1536# -------------------------
1537# Try to link conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_cxx_try_link ()
1539{
1540  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541  rm -f conftest.$ac_objext conftest$ac_exeext
1542  if { { ac_try="$ac_link"
1543case "(($ac_try" in
1544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545  *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548$as_echo "$ac_try_echo"; } >&5
1549  (eval "$ac_link") 2>conftest.err
1550  ac_status=$?
1551  if test -s conftest.err; then
1552    grep -v '^ *+' conftest.err >conftest.er1
1553    cat conftest.er1 >&5
1554    mv -f conftest.er1 conftest.err
1555  fi
1556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557  test $ac_status = 0; } && {
1558	 test -z "$ac_cxx_werror_flag" ||
1559	 test ! -s conftest.err
1560       } && test -s conftest$ac_exeext && {
1561	 test "$cross_compiling" = yes ||
1562	 test -x conftest$ac_exeext
1563       }; then :
1564  ac_retval=0
1565else
1566  $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
1568
1569	ac_retval=1
1570fi
1571  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1572  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1573  # interfere with the next link command; also delete a directory that is
1574  # left behind by Apple's compiler.  We do this before executing the actions.
1575  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1576  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577  as_fn_set_status $ac_retval
1578
1579} # ac_fn_cxx_try_link
1580
1581# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1582# ---------------------------------------------
1583# Tests whether TYPE exists after having included INCLUDES, setting cache
1584# variable VAR accordingly.
1585ac_fn_cxx_check_type ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589$as_echo_n "checking for $2... " >&6; }
1590if eval \${$3+:} false; then :
1591  $as_echo_n "(cached) " >&6
1592else
1593  eval "$3=no"
1594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595/* end confdefs.h.  */
1596$4
1597int
1598main ()
1599{
1600if (sizeof ($2))
1601	 return 0;
1602  ;
1603  return 0;
1604}
1605_ACEOF
1606if ac_fn_cxx_try_compile "$LINENO"; then :
1607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h.  */
1609$4
1610int
1611main ()
1612{
1613if (sizeof (($2)))
1614	    return 0;
1615  ;
1616  return 0;
1617}
1618_ACEOF
1619if ac_fn_cxx_try_compile "$LINENO"; then :
1620
1621else
1622  eval "$3=yes"
1623fi
1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625fi
1626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627fi
1628eval ac_res=\$$3
1629	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630$as_echo "$ac_res" >&6; }
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632
1633} # ac_fn_cxx_check_type
1634
1635# ac_fn_cxx_check_func LINENO FUNC VAR
1636# ------------------------------------
1637# Tests whether FUNC exists, setting the cache variable VAR accordingly
1638ac_fn_cxx_check_func ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if eval \${$3+:} false; then :
1644  $as_echo_n "(cached) " >&6
1645else
1646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h.  */
1648/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1649   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1650#define $2 innocuous_$2
1651
1652/* System header to define __stub macros and hopefully few prototypes,
1653    which can conflict with char $2 (); below.
1654    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1655    <limits.h> exists even on freestanding compilers.  */
1656
1657#ifdef __STDC__
1658# include <limits.h>
1659#else
1660# include <assert.h>
1661#endif
1662
1663#undef $2
1664
1665/* Override any GCC internal prototype to avoid an error.
1666   Use char because int might match the return type of a GCC
1667   builtin and then its argument prototype would still apply.  */
1668#ifdef __cplusplus
1669extern "C"
1670#endif
1671char $2 ();
1672/* The GNU C library defines this for functions which it implements
1673    to always fail with ENOSYS.  Some functions are actually named
1674    something starting with __ and the normal name is an alias.  */
1675#if defined __stub_$2 || defined __stub___$2
1676choke me
1677#endif
1678
1679int
1680main ()
1681{
1682return $2 ();
1683  ;
1684  return 0;
1685}
1686_ACEOF
1687if ac_fn_cxx_try_link "$LINENO"; then :
1688  eval "$3=yes"
1689else
1690  eval "$3=no"
1691fi
1692rm -f core conftest.err conftest.$ac_objext \
1693    conftest$ac_exeext conftest.$ac_ext
1694fi
1695eval ac_res=\$$3
1696	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700} # ac_fn_cxx_check_func
1701
1702# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1703# ---------------------------------------------------------
1704# Tests whether HEADER exists and can be compiled using the include files in
1705# INCLUDES, setting the cache variable VAR accordingly.
1706ac_fn_cxx_check_header_compile ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710$as_echo_n "checking for $2... " >&6; }
1711if eval \${$3+:} false; then :
1712  $as_echo_n "(cached) " >&6
1713else
1714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h.  */
1716$4
1717#include <$2>
1718_ACEOF
1719if ac_fn_cxx_try_compile "$LINENO"; then :
1720  eval "$3=yes"
1721else
1722  eval "$3=no"
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725fi
1726eval ac_res=\$$3
1727	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728$as_echo "$ac_res" >&6; }
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731} # ac_fn_cxx_check_header_compile
1732
1733# ac_fn_cxx_try_run LINENO
1734# ------------------------
1735# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736# that executables *can* be run.
1737ac_fn_cxx_try_run ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  if { { ac_try="$ac_link"
1741case "(($ac_try" in
1742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743  *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747  (eval "$ac_link") 2>&5
1748  ac_status=$?
1749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751  { { case "(($ac_try" in
1752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753  *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757  (eval "$ac_try") 2>&5
1758  ac_status=$?
1759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760  test $ac_status = 0; }; }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: program exited with status $ac_status" >&5
1764       $as_echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767       ac_retval=$ac_status
1768fi
1769  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771  as_fn_set_status $ac_retval
1772
1773} # ac_fn_cxx_try_run
1774
1775# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1776# ----------------------------------------------
1777# Tries to find the compile-time value of EXPR in a program that includes
1778# INCLUDES, setting VAR accordingly. Returns whether the value could be
1779# computed
1780ac_fn_cxx_compute_int ()
1781{
1782  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783  if test "$cross_compiling" = yes; then
1784    # Depending upon the size, compute the lo and hi bounds.
1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787$4
1788int
1789main ()
1790{
1791static int test_array [1 - 2 * !(($2) >= 0)];
1792test_array [0] = 0;
1793return test_array [0];
1794
1795  ;
1796  return 0;
1797}
1798_ACEOF
1799if ac_fn_cxx_try_compile "$LINENO"; then :
1800  ac_lo=0 ac_mid=0
1801  while :; do
1802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h.  */
1804$4
1805int
1806main ()
1807{
1808static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1809test_array [0] = 0;
1810return test_array [0];
1811
1812  ;
1813  return 0;
1814}
1815_ACEOF
1816if ac_fn_cxx_try_compile "$LINENO"; then :
1817  ac_hi=$ac_mid; break
1818else
1819  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1820			if test $ac_lo -le $ac_mid; then
1821			  ac_lo= ac_hi=
1822			  break
1823			fi
1824			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827  done
1828else
1829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831$4
1832int
1833main ()
1834{
1835static int test_array [1 - 2 * !(($2) < 0)];
1836test_array [0] = 0;
1837return test_array [0];
1838
1839  ;
1840  return 0;
1841}
1842_ACEOF
1843if ac_fn_cxx_try_compile "$LINENO"; then :
1844  ac_hi=-1 ac_mid=-1
1845  while :; do
1846    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849int
1850main ()
1851{
1852static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1853test_array [0] = 0;
1854return test_array [0];
1855
1856  ;
1857  return 0;
1858}
1859_ACEOF
1860if ac_fn_cxx_try_compile "$LINENO"; then :
1861  ac_lo=$ac_mid; break
1862else
1863  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1864			if test $ac_mid -le $ac_hi; then
1865			  ac_lo= ac_hi=
1866			  break
1867			fi
1868			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1869fi
1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871  done
1872else
1873  ac_lo= ac_hi=
1874fi
1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876fi
1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878# Binary search between lo and hi bounds.
1879while test "x$ac_lo" != "x$ac_hi"; do
1880  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h.  */
1883$4
1884int
1885main ()
1886{
1887static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1888test_array [0] = 0;
1889return test_array [0];
1890
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895if ac_fn_cxx_try_compile "$LINENO"; then :
1896  ac_hi=$ac_mid
1897else
1898  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901done
1902case $ac_lo in #((
1903?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1904'') ac_retval=1 ;;
1905esac
1906  else
1907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910static long int longval () { return $2; }
1911static unsigned long int ulongval () { return $2; }
1912#include <stdio.h>
1913#include <stdlib.h>
1914int
1915main ()
1916{
1917
1918  FILE *f = fopen ("conftest.val", "w");
1919  if (! f)
1920    return 1;
1921  if (($2) < 0)
1922    {
1923      long int i = longval ();
1924      if (i != ($2))
1925	return 1;
1926      fprintf (f, "%ld", i);
1927    }
1928  else
1929    {
1930      unsigned long int i = ulongval ();
1931      if (i != ($2))
1932	return 1;
1933      fprintf (f, "%lu", i);
1934    }
1935  /* Do not output a trailing newline, as this causes \r\n confusion
1936     on some platforms.  */
1937  return ferror (f) || fclose (f) != 0;
1938
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943if ac_fn_cxx_try_run "$LINENO"; then :
1944  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1945else
1946  ac_retval=1
1947fi
1948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1949  conftest.$ac_objext conftest.beam conftest.$ac_ext
1950rm -f conftest.val
1951
1952  fi
1953  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954  as_fn_set_status $ac_retval
1955
1956} # ac_fn_cxx_compute_int
1957
1958# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
1959# ------------------------------------------------------
1960# Tries to find if the field MEMBER exists in type AGGR, after including
1961# INCLUDES, setting cache variable VAR accordingly.
1962ac_fn_cxx_check_member ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1966$as_echo_n "checking for $2.$3... " >&6; }
1967if eval \${$4+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972$5
1973int
1974main ()
1975{
1976static $2 ac_aggr;
1977if (ac_aggr.$3)
1978return 0;
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_cxx_try_compile "$LINENO"; then :
1984  eval "$4=yes"
1985else
1986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$5
1989int
1990main ()
1991{
1992static $2 ac_aggr;
1993if (sizeof ac_aggr.$3)
1994return 0;
1995  ;
1996  return 0;
1997}
1998_ACEOF
1999if ac_fn_cxx_try_compile "$LINENO"; then :
2000  eval "$4=yes"
2001else
2002  eval "$4=no"
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008eval ac_res=\$$4
2009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013} # ac_fn_cxx_check_member
2014cat >config.log <<_ACEOF
2015This file contains any messages produced by compilers while
2016running configure, to aid debugging if configure makes a mistake.
2017
2018It was created by monotone $as_me 1.1, which was
2019generated by GNU Autoconf 2.69.  Invocation command line was
2020
2021  $ $0 $@
2022
2023_ACEOF
2024exec 5>>config.log
2025{
2026cat <<_ASUNAME
2027## --------- ##
2028## Platform. ##
2029## --------- ##
2030
2031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036
2037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2039
2040/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2041/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2044/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2045/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2046/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2047
2048_ASUNAME
2049
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055    $as_echo "PATH: $as_dir"
2056  done
2057IFS=$as_save_IFS
2058
2059} >&5
2060
2061cat >&5 <<_ACEOF
2062
2063
2064## ----------- ##
2065## Core tests. ##
2066## ----------- ##
2067
2068_ACEOF
2069
2070
2071# Keep a trace of the command line.
2072# Strip out --no-create and --no-recursion so they do not pile up.
2073# Strip out --silent because we don't want to record it for future runs.
2074# Also quote any args containing shell meta-characters.
2075# Make two passes to allow for proper duplicate-argument suppression.
2076ac_configure_args=
2077ac_configure_args0=
2078ac_configure_args1=
2079ac_must_keep_next=false
2080for ac_pass in 1 2
2081do
2082  for ac_arg
2083  do
2084    case $ac_arg in
2085    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087    | -silent | --silent | --silen | --sile | --sil)
2088      continue ;;
2089    *\'*)
2090      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091    esac
2092    case $ac_pass in
2093    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2094    2)
2095      as_fn_append ac_configure_args1 " '$ac_arg'"
2096      if test $ac_must_keep_next = true; then
2097	ac_must_keep_next=false # Got value, back to normal.
2098      else
2099	case $ac_arg in
2100	  *=* | --config-cache | -C | -disable-* | --disable-* \
2101	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103	  | -with-* | --with-* | -without-* | --without-* | --x)
2104	    case "$ac_configure_args0 " in
2105	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106	    esac
2107	    ;;
2108	  -* ) ac_must_keep_next=true ;;
2109	esac
2110      fi
2111      as_fn_append ac_configure_args " '$ac_arg'"
2112      ;;
2113    esac
2114  done
2115done
2116{ ac_configure_args0=; unset ac_configure_args0;}
2117{ ac_configure_args1=; unset ac_configure_args1;}
2118
2119# When interrupted or exit'd, cleanup temporary files, and complete
2120# config.log.  We remove comments because anyway the quotes in there
2121# would cause problems or look ugly.
2122# WARNING: Use '\'' to represent an apostrophe within the trap.
2123# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124trap 'exit_status=$?
2125  # Save into config.log some information that might help in debugging.
2126  {
2127    echo
2128
2129    $as_echo "## ---------------- ##
2130## Cache variables. ##
2131## ---------------- ##"
2132    echo
2133    # The following way of writing the cache mishandles newlines in values,
2134(
2135  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136    eval ac_val=\$$ac_var
2137    case $ac_val in #(
2138    *${as_nl}*)
2139      case $ac_var in #(
2140      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142      esac
2143      case $ac_var in #(
2144      _ | IFS | as_nl) ;; #(
2145      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146      *) { eval $ac_var=; unset $ac_var;} ;;
2147      esac ;;
2148    esac
2149  done
2150  (set) 2>&1 |
2151    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152    *${as_nl}ac_space=\ *)
2153      sed -n \
2154	"s/'\''/'\''\\\\'\'''\''/g;
2155	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156      ;; #(
2157    *)
2158      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159      ;;
2160    esac |
2161    sort
2162)
2163    echo
2164
2165    $as_echo "## ----------------- ##
2166## Output variables. ##
2167## ----------------- ##"
2168    echo
2169    for ac_var in $ac_subst_vars
2170    do
2171      eval ac_val=\$$ac_var
2172      case $ac_val in
2173      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174      esac
2175      $as_echo "$ac_var='\''$ac_val'\''"
2176    done | sort
2177    echo
2178
2179    if test -n "$ac_subst_files"; then
2180      $as_echo "## ------------------- ##
2181## File substitutions. ##
2182## ------------------- ##"
2183      echo
2184      for ac_var in $ac_subst_files
2185      do
2186	eval ac_val=\$$ac_var
2187	case $ac_val in
2188	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189	esac
2190	$as_echo "$ac_var='\''$ac_val'\''"
2191      done | sort
2192      echo
2193    fi
2194
2195    if test -s confdefs.h; then
2196      $as_echo "## ----------- ##
2197## confdefs.h. ##
2198## ----------- ##"
2199      echo
2200      cat confdefs.h
2201      echo
2202    fi
2203    test "$ac_signal" != 0 &&
2204      $as_echo "$as_me: caught signal $ac_signal"
2205    $as_echo "$as_me: exit $exit_status"
2206  } >&5
2207  rm -f core *.core core.conftest.* &&
2208    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209    exit $exit_status
2210' 0
2211for ac_signal in 1 2 13 15; do
2212  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213done
2214ac_signal=0
2215
2216# confdefs.h avoids OS command line length limits that DEFS can exceed.
2217rm -f -r conftest* confdefs.h
2218
2219$as_echo "/* confdefs.h */" > confdefs.h
2220
2221# Predefined preprocessor variables.
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_NAME "$PACKAGE_NAME"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_VERSION "$PACKAGE_VERSION"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_STRING "$PACKAGE_STRING"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_URL "$PACKAGE_URL"
2245_ACEOF
2246
2247
2248# Let the site file select an alternate cache file if it wants to.
2249# Prefer an explicitly selected file to automatically selected ones.
2250ac_site_file1=NONE
2251ac_site_file2=NONE
2252if test -n "$CONFIG_SITE"; then
2253  # We do not want a PATH search for config.site.
2254  case $CONFIG_SITE in #((
2255    -*)  ac_site_file1=./$CONFIG_SITE;;
2256    */*) ac_site_file1=$CONFIG_SITE;;
2257    *)   ac_site_file1=./$CONFIG_SITE;;
2258  esac
2259elif test "x$prefix" != xNONE; then
2260  ac_site_file1=$prefix/share/config.site
2261  ac_site_file2=$prefix/etc/config.site
2262else
2263  ac_site_file1=$ac_default_prefix/share/config.site
2264  ac_site_file2=$ac_default_prefix/etc/config.site
2265fi
2266for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2267do
2268  test "x$ac_site_file" = xNONE && continue
2269  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2270    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2271$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2272    sed 's/^/| /' "$ac_site_file" >&5
2273    . "$ac_site_file" \
2274      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276as_fn_error $? "failed to load site script $ac_site_file
2277See \`config.log' for more details" "$LINENO" 5; }
2278  fi
2279done
2280
2281if test -r "$cache_file"; then
2282  # Some versions of bash will fail to source /dev/null (special files
2283  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2284  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2285    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286$as_echo "$as_me: loading cache $cache_file" >&6;}
2287    case $cache_file in
2288      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289      *)                      . "./$cache_file";;
2290    esac
2291  fi
2292else
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294$as_echo "$as_me: creating cache $cache_file" >&6;}
2295  >$cache_file
2296fi
2297
2298# Check that the precious variables saved in the cache have kept the same
2299# value.
2300ac_cache_corrupted=false
2301for ac_var in $ac_precious_vars; do
2302  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303  eval ac_new_set=\$ac_env_${ac_var}_set
2304  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305  eval ac_new_val=\$ac_env_${ac_var}_value
2306  case $ac_old_set,$ac_new_set in
2307    set,)
2308      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310      ac_cache_corrupted=: ;;
2311    ,set)
2312      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314      ac_cache_corrupted=: ;;
2315    ,);;
2316    *)
2317      if test "x$ac_old_val" != "x$ac_new_val"; then
2318	# differences in whitespace do not lead to failure.
2319	ac_old_val_w=`echo x $ac_old_val`
2320	ac_new_val_w=`echo x $ac_new_val`
2321	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324	  ac_cache_corrupted=:
2325	else
2326	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328	  eval $ac_var=\$ac_old_val
2329	fi
2330	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2331$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2332	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2333$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2334      fi;;
2335  esac
2336  # Pass precious variables to config.status.
2337  if test "$ac_new_set" = set; then
2338    case $ac_new_val in
2339    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340    *) ac_arg=$ac_var=$ac_new_val ;;
2341    esac
2342    case " $ac_configure_args " in
2343      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2344      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345    esac
2346  fi
2347done
2348if $ac_cache_corrupted; then
2349  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354fi
2355## -------------------- ##
2356## Main body of script. ##
2357## -------------------- ##
2358
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
2366am__api_version='1.14'
2367
2368ac_aux_dir=
2369for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370  if test -f "$ac_dir/install-sh"; then
2371    ac_aux_dir=$ac_dir
2372    ac_install_sh="$ac_aux_dir/install-sh -c"
2373    break
2374  elif test -f "$ac_dir/install.sh"; then
2375    ac_aux_dir=$ac_dir
2376    ac_install_sh="$ac_aux_dir/install.sh -c"
2377    break
2378  elif test -f "$ac_dir/shtool"; then
2379    ac_aux_dir=$ac_dir
2380    ac_install_sh="$ac_aux_dir/shtool install -c"
2381    break
2382  fi
2383done
2384if test -z "$ac_aux_dir"; then
2385  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2386fi
2387
2388# These three variables are undocumented and unsupported,
2389# and are intended to be withdrawn in a future Autoconf release.
2390# They can cause serious problems if a builder's source tree is in a directory
2391# whose full name contains unusual characters.
2392ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2393ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2394ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2395
2396
2397# Find a good install program.  We prefer a C program (faster),
2398# so one script is as good as another.  But avoid the broken or
2399# incompatible versions:
2400# SysV /etc/install, /usr/sbin/install
2401# SunOS /usr/etc/install
2402# IRIX /sbin/install
2403# AIX /bin/install
2404# AmigaOS /C/install, which installs bootblocks on floppy discs
2405# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2406# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2407# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2408# OS/2's system install, which has a completely different semantic
2409# ./install, which can be erroneously created by make from ./install.sh.
2410# Reject install programs that cannot install multiple files.
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2412$as_echo_n "checking for a BSD-compatible install... " >&6; }
2413if test -z "$INSTALL"; then
2414if ${ac_cv_path_install+:} false; then :
2415  $as_echo_n "(cached) " >&6
2416else
2417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420  IFS=$as_save_IFS
2421  test -z "$as_dir" && as_dir=.
2422    # Account for people who put trailing slashes in PATH elements.
2423case $as_dir/ in #((
2424  ./ | .// | /[cC]/* | \
2425  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2426  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2427  /usr/ucb/* ) ;;
2428  *)
2429    # OSF1 and SCO ODT 3.0 have their own names for install.
2430    # Don't use installbsd from OSF since it installs stuff as root
2431    # by default.
2432    for ac_prog in ginstall scoinst install; do
2433      for ac_exec_ext in '' $ac_executable_extensions; do
2434	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2435	  if test $ac_prog = install &&
2436	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2437	    # AIX install.  It has an incompatible calling convention.
2438	    :
2439	  elif test $ac_prog = install &&
2440	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441	    # program-specific install script used by HP pwplus--don't use.
2442	    :
2443	  else
2444	    rm -rf conftest.one conftest.two conftest.dir
2445	    echo one > conftest.one
2446	    echo two > conftest.two
2447	    mkdir conftest.dir
2448	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2449	      test -s conftest.one && test -s conftest.two &&
2450	      test -s conftest.dir/conftest.one &&
2451	      test -s conftest.dir/conftest.two
2452	    then
2453	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2454	      break 3
2455	    fi
2456	  fi
2457	fi
2458      done
2459    done
2460    ;;
2461esac
2462
2463  done
2464IFS=$as_save_IFS
2465
2466rm -rf conftest.one conftest.two conftest.dir
2467
2468fi
2469  if test "${ac_cv_path_install+set}" = set; then
2470    INSTALL=$ac_cv_path_install
2471  else
2472    # As a last resort, use the slow shell script.  Don't cache a
2473    # value for INSTALL within a source directory, because that will
2474    # break other packages using the cache if that directory is
2475    # removed, or if the value is a relative name.
2476    INSTALL=$ac_install_sh
2477  fi
2478fi
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2480$as_echo "$INSTALL" >&6; }
2481
2482# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2483# It thinks the first close brace ends the variable substitution.
2484test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2485
2486test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2487
2488test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2489
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2491$as_echo_n "checking whether build environment is sane... " >&6; }
2492# Reject unsafe characters in $srcdir or the absolute working directory
2493# name.  Accept space and tab only in the latter.
2494am_lf='
2495'
2496case `pwd` in
2497  *[\\\"\#\$\&\'\`$am_lf]*)
2498    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2499esac
2500case $srcdir in
2501  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2502    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2503esac
2504
2505# Do 'set' in a subshell so we don't clobber the current shell's
2506# arguments.  Must try -L first in case configure is actually a
2507# symlink; some systems play weird games with the mod time of symlinks
2508# (eg FreeBSD returns the mod time of the symlink's containing
2509# directory).
2510if (
2511   am_has_slept=no
2512   for am_try in 1 2; do
2513     echo "timestamp, slept: $am_has_slept" > conftest.file
2514     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2515     if test "$*" = "X"; then
2516	# -L didn't work.
2517	set X `ls -t "$srcdir/configure" conftest.file`
2518     fi
2519     if test "$*" != "X $srcdir/configure conftest.file" \
2520	&& test "$*" != "X conftest.file $srcdir/configure"; then
2521
2522	# If neither matched, then we have a broken ls.  This can happen
2523	# if, for instance, CONFIG_SHELL is bash and it inherits a
2524	# broken ls alias from the environment.  This has actually
2525	# happened.  Such a system could not be considered "sane".
2526	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2527  alias in your environment" "$LINENO" 5
2528     fi
2529     if test "$2" = conftest.file || test $am_try -eq 2; then
2530       break
2531     fi
2532     # Just in case.
2533     sleep 1
2534     am_has_slept=yes
2535   done
2536   test "$2" = conftest.file
2537   )
2538then
2539   # Ok.
2540   :
2541else
2542   as_fn_error $? "newly created file is older than distributed files!
2543Check your system clock" "$LINENO" 5
2544fi
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2546$as_echo "yes" >&6; }
2547# If we didn't sleep, we still need to ensure time stamps of config.status and
2548# generated files are strictly newer.
2549am_sleep_pid=
2550if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2551  ( sleep 1 ) &
2552  am_sleep_pid=$!
2553fi
2554
2555rm -f conftest.file
2556
2557test "$program_prefix" != NONE &&
2558  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2559# Use a double $ so make ignores it.
2560test "$program_suffix" != NONE &&
2561  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2562# Double any \ or $.
2563# By default was `s,x,x', remove it if useless.
2564ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2565program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2566
2567# expand $ac_aux_dir to an absolute path
2568am_aux_dir=`cd $ac_aux_dir && pwd`
2569
2570if test x"${MISSING+set}" != xset; then
2571  case $am_aux_dir in
2572  *\ * | *\	*)
2573    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2574  *)
2575    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2576  esac
2577fi
2578# Use eval to expand $SHELL
2579if eval "$MISSING --is-lightweight"; then
2580  am_missing_run="$MISSING "
2581else
2582  am_missing_run=
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2584$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2585fi
2586
2587if test x"${install_sh}" != xset; then
2588  case $am_aux_dir in
2589  *\ * | *\	*)
2590    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2591  *)
2592    install_sh="\${SHELL} $am_aux_dir/install-sh"
2593  esac
2594fi
2595
2596# Installed binaries are usually stripped using 'strip' when the user
2597# run "make install-strip".  However 'strip' might not be the right
2598# tool to use in cross-compilation environments, therefore Automake
2599# will honor the 'STRIP' environment variable to overrule this program.
2600if test "$cross_compiling" != no; then
2601  if test -n "$ac_tool_prefix"; then
2602  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2603set dummy ${ac_tool_prefix}strip; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if ${ac_cv_prog_STRIP+:} false; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  if test -n "$STRIP"; then
2610  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617    for ac_exec_ext in '' $ac_executable_extensions; do
2618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621    break 2
2622  fi
2623done
2624  done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629STRIP=$ac_cv_prog_STRIP
2630if test -n "$STRIP"; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2632$as_echo "$STRIP" >&6; }
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638
2639fi
2640if test -z "$ac_cv_prog_STRIP"; then
2641  ac_ct_STRIP=$STRIP
2642  # Extract the first word of "strip", so it can be a program name with args.
2643set dummy strip; ac_word=$2
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645$as_echo_n "checking for $ac_word... " >&6; }
2646if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  if test -n "$ac_ct_STRIP"; then
2650  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655  IFS=$as_save_IFS
2656  test -z "$as_dir" && as_dir=.
2657    for ac_exec_ext in '' $ac_executable_extensions; do
2658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659    ac_cv_prog_ac_ct_STRIP="strip"
2660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661    break 2
2662  fi
2663done
2664  done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2670if test -n "$ac_ct_STRIP"; then
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2672$as_echo "$ac_ct_STRIP" >&6; }
2673else
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678  if test "x$ac_ct_STRIP" = x; then
2679    STRIP=":"
2680  else
2681    case $cross_compiling:$ac_tool_warned in
2682yes:)
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685ac_tool_warned=yes ;;
2686esac
2687    STRIP=$ac_ct_STRIP
2688  fi
2689else
2690  STRIP="$ac_cv_prog_STRIP"
2691fi
2692
2693fi
2694INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2695
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2697$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2698if test -z "$MKDIR_P"; then
2699  if ${ac_cv_path_mkdir+:} false; then :
2700  $as_echo_n "(cached) " >&6
2701else
2702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707    for ac_prog in mkdir gmkdir; do
2708	 for ac_exec_ext in '' $ac_executable_extensions; do
2709	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2710	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2711	     'mkdir (GNU coreutils) '* | \
2712	     'mkdir (coreutils) '* | \
2713	     'mkdir (fileutils) '4.1*)
2714	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2715	       break 3;;
2716	   esac
2717	 done
2718       done
2719  done
2720IFS=$as_save_IFS
2721
2722fi
2723
2724  test -d ./--version && rmdir ./--version
2725  if test "${ac_cv_path_mkdir+set}" = set; then
2726    MKDIR_P="$ac_cv_path_mkdir -p"
2727  else
2728    # As a last resort, use the slow shell script.  Don't cache a
2729    # value for MKDIR_P within a source directory, because that will
2730    # break other packages using the cache if that directory is
2731    # removed, or if the value is a relative name.
2732    MKDIR_P="$ac_install_sh -d"
2733  fi
2734fi
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2736$as_echo "$MKDIR_P" >&6; }
2737
2738for ac_prog in gawk mawk nawk awk
2739do
2740  # Extract the first word of "$ac_prog", so it can be a program name with args.
2741set dummy $ac_prog; ac_word=$2
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743$as_echo_n "checking for $ac_word... " >&6; }
2744if ${ac_cv_prog_AWK+:} false; then :
2745  $as_echo_n "(cached) " >&6
2746else
2747  if test -n "$AWK"; then
2748  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755    for ac_exec_ext in '' $ac_executable_extensions; do
2756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757    ac_cv_prog_AWK="$ac_prog"
2758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762  done
2763IFS=$as_save_IFS
2764
2765fi
2766fi
2767AWK=$ac_cv_prog_AWK
2768if test -n "$AWK"; then
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2770$as_echo "$AWK" >&6; }
2771else
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773$as_echo "no" >&6; }
2774fi
2775
2776
2777  test -n "$AWK" && break
2778done
2779
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2781$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2782set x ${MAKE-make}
2783ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2784if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2785  $as_echo_n "(cached) " >&6
2786else
2787  cat >conftest.make <<\_ACEOF
2788SHELL = /bin/sh
2789all:
2790	@echo '@@@%%%=$(MAKE)=@@@%%%'
2791_ACEOF
2792# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2793case `${MAKE-make} -f conftest.make 2>/dev/null` in
2794  *@@@%%%=?*=@@@%%%*)
2795    eval ac_cv_prog_make_${ac_make}_set=yes;;
2796  *)
2797    eval ac_cv_prog_make_${ac_make}_set=no;;
2798esac
2799rm -f conftest.make
2800fi
2801if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2803$as_echo "yes" >&6; }
2804  SET_MAKE=
2805else
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
2808  SET_MAKE="MAKE=${MAKE-make}"
2809fi
2810
2811rm -rf .tst 2>/dev/null
2812mkdir .tst 2>/dev/null
2813if test -d .tst; then
2814  am__leading_dot=.
2815else
2816  am__leading_dot=_
2817fi
2818rmdir .tst 2>/dev/null
2819
2820# Check whether --enable-silent-rules was given.
2821if test "${enable_silent_rules+set}" = set; then :
2822  enableval=$enable_silent_rules;
2823fi
2824
2825case $enable_silent_rules in # (((
2826  yes) AM_DEFAULT_VERBOSITY=0;;
2827   no) AM_DEFAULT_VERBOSITY=1;;
2828    *) AM_DEFAULT_VERBOSITY=1;;
2829esac
2830am_make=${MAKE-make}
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2832$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2833if ${am_cv_make_support_nested_variables+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  if $as_echo 'TRUE=$(BAR$(V))
2837BAR0=false
2838BAR1=true
2839V=1
2840am__doit:
2841	@$(TRUE)
2842.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2843  am_cv_make_support_nested_variables=yes
2844else
2845  am_cv_make_support_nested_variables=no
2846fi
2847fi
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2849$as_echo "$am_cv_make_support_nested_variables" >&6; }
2850if test $am_cv_make_support_nested_variables = yes; then
2851    AM_V='$(V)'
2852  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2853else
2854  AM_V=$AM_DEFAULT_VERBOSITY
2855  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2856fi
2857AM_BACKSLASH='\'
2858
2859if test "`cd $srcdir && pwd`" != "`pwd`"; then
2860  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2861  # is not polluted with repeated "-I."
2862  am__isrc=' -I$(srcdir)'
2863  # test to see if srcdir already configured
2864  if test -f $srcdir/config.status; then
2865    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2866  fi
2867fi
2868
2869# test whether we have cygpath
2870if test -z "$CYGPATH_W"; then
2871  if (cygpath --version) >/dev/null 2>/dev/null; then
2872    CYGPATH_W='cygpath -w'
2873  else
2874    CYGPATH_W=echo
2875  fi
2876fi
2877
2878
2879# Define the identity of the package.
2880 PACKAGE='monotone'
2881 VERSION='1.1'
2882
2883
2884cat >>confdefs.h <<_ACEOF
2885#define PACKAGE "$PACKAGE"
2886_ACEOF
2887
2888
2889cat >>confdefs.h <<_ACEOF
2890#define VERSION "$VERSION"
2891_ACEOF
2892
2893# Some tools Automake needs.
2894
2895ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2896
2897
2898AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2899
2900
2901AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2902
2903
2904AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2905
2906
2907MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2908
2909# For better backward compatibility.  To be removed once Automake 1.9.x
2910# dies out for good.  For more background, see:
2911# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2912# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2913mkdir_p='$(MKDIR_P)'
2914
2915# We need awk for the "check" target.  The system "awk" is bad on
2916# some platforms.
2917# Always define AMTAR for backward compatibility.  Yes, it's still used
2918# in the wild :-(  We should find a proper way to deprecate it ...
2919AMTAR='$${TAR-tar}'
2920
2921
2922# We'll loop over all known methods to create a tar archive until one works.
2923_am_tools='gnutar plaintar pax cpio none'
2924
2925# The POSIX 1988 'ustar' format is defined with fixed-size fields.
2926      # There is notably a 21 bits limit for the UID and the GID.  In fact,
2927      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2928      # and bug#13588).
2929      am_max_uid=2097151 # 2^21 - 1
2930      am_max_gid=$am_max_uid
2931      # The $UID and $GID variables are not portable, so we need to resort
2932      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
2933      # below are definitely unexpected, so allow the users to see them
2934      # (that is, avoid stderr redirection).
2935      am_uid=`id -u || echo unknown`
2936      am_gid=`id -g || echo unknown`
2937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2938$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2939      if test $am_uid -le $am_max_uid; then
2940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2941$as_echo "yes" >&6; }
2942      else
2943         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
2945         _am_tools=none
2946      fi
2947      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2948$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2949      if test $am_gid -le $am_max_gid; then
2950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951$as_echo "yes" >&6; }
2952      else
2953        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954$as_echo "no" >&6; }
2955        _am_tools=none
2956      fi
2957
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2959$as_echo_n "checking how to create a ustar tar archive... " >&6; }
2960
2961  # Go ahead even if we have the value already cached.  We do so because we
2962  # need to set the values for the 'am__tar' and 'am__untar' variables.
2963  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2964
2965  for _am_tool in $_am_tools; do
2966    case $_am_tool in
2967    gnutar)
2968      for _am_tar in tar gnutar gtar; do
2969        { echo "$as_me:$LINENO: $_am_tar --version" >&5
2970   ($_am_tar --version) >&5 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } && break
2974      done
2975      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2976      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2977      am__untar="$_am_tar -xf -"
2978      ;;
2979    plaintar)
2980      # Must skip GNU tar: if it does not support --format= it doesn't create
2981      # ustar tarball either.
2982      (tar --version) >/dev/null 2>&1 && continue
2983      am__tar='tar chf - "$$tardir"'
2984      am__tar_='tar chf - "$tardir"'
2985      am__untar='tar xf -'
2986      ;;
2987    pax)
2988      am__tar='pax -L -x ustar -w "$$tardir"'
2989      am__tar_='pax -L -x ustar -w "$tardir"'
2990      am__untar='pax -r'
2991      ;;
2992    cpio)
2993      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2994      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2995      am__untar='cpio -i -H ustar -d'
2996      ;;
2997    none)
2998      am__tar=false
2999      am__tar_=false
3000      am__untar=false
3001      ;;
3002    esac
3003
3004    # If the value was cached, stop now.  We just wanted to have am__tar
3005    # and am__untar set.
3006    test -n "${am_cv_prog_tar_ustar}" && break
3007
3008    # tar/untar a dummy directory, and stop if the command works.
3009    rm -rf conftest.dir
3010    mkdir conftest.dir
3011    echo GrepMe > conftest.dir/file
3012    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3013   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }
3017    rm -rf conftest.dir
3018    if test -s conftest.tar; then
3019      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3020   ($am__untar <conftest.tar) >&5 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); }
3024      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3025   (cat conftest.dir/file) >&5 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }
3029      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3030    fi
3031  done
3032  rm -rf conftest.dir
3033
3034  if ${am_cv_prog_tar_ustar+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036else
3037  am_cv_prog_tar_ustar=$_am_tool
3038fi
3039
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3041$as_echo "$am_cv_prog_tar_ustar" >&6; }
3042
3043
3044
3045
3046
3047
3048# POSIX will say in a future version that running "rm -f" with no argument
3049# is OK; and we want to be able to make that assumption in our Makefile
3050# recipes.  So use an aggressive probe to check that the usage we want is
3051# actually supported "in the wild" to an acceptable degree.
3052# See automake bug#10828.
3053# To make any issue more visible, cause the running configure to be aborted
3054# by default if the 'rm' program in use doesn't match our expectations; the
3055# user can still override this though.
3056if rm -f && rm -fr && rm -rf; then : OK; else
3057  cat >&2 <<'END'
3058Oops!
3059
3060Your 'rm' program seems unable to run without file operands specified
3061on the command line, even when the '-f' option is present.  This is contrary
3062to the behaviour of most rm programs out there, and not conforming with
3063the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3064
3065Please tell bug-automake@gnu.org about your system, including the value
3066of your $PATH and any error possibly output before this message.  This
3067can help us improve future automake versions.
3068
3069END
3070  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3071    echo 'Configuration will proceed anyway, since you have set the' >&2
3072    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3073    echo >&2
3074  else
3075    cat >&2 <<'END'
3076Aborting the configuration process, to ensure you take notice of the issue.
3077
3078You can download and install GNU coreutils to get an 'rm' implementation
3079that behaves properly: <http://www.gnu.org/software/coreutils/>.
3080
3081If you want to complete the configuration process using your problematic
3082'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3083to "yes", and re-run configure.
3084
3085END
3086    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3087  fi
3088fi
3089
3090
3091ac_config_headers="$ac_config_headers config.h"
3092
3093ac_config_files="$ac_config_files Makefile doc/Makefile"
3094
3095ac_ext=cpp
3096ac_cpp='$CXXCPP $CPPFLAGS'
3097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3100
3101
3102# Check whether --enable-silent-rules was given.
3103if test "${enable_silent_rules+set}" = set; then :
3104  enableval=$enable_silent_rules;
3105fi
3106
3107case $enable_silent_rules in # (((
3108  yes) AM_DEFAULT_VERBOSITY=0;;
3109   no) AM_DEFAULT_VERBOSITY=1;;
3110    *) AM_DEFAULT_VERBOSITY=1;;
3111esac
3112am_make=${MAKE-make}
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3114$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3115if ${am_cv_make_support_nested_variables+:} false; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  if $as_echo 'TRUE=$(BAR$(V))
3119BAR0=false
3120BAR1=true
3121V=1
3122am__doit:
3123	@$(TRUE)
3124.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3125  am_cv_make_support_nested_variables=yes
3126else
3127  am_cv_make_support_nested_variables=no
3128fi
3129fi
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3131$as_echo "$am_cv_make_support_nested_variables" >&6; }
3132if test $am_cv_make_support_nested_variables = yes; then
3133    AM_V='$(V)'
3134  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3135else
3136  AM_V=$AM_DEFAULT_VERBOSITY
3137  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3138fi
3139AM_BACKSLASH='\'
3140
3141
3142
3143if test x"$MKDIR_P" = x && test x"$mkdir_p" != x; then
3144  MKDIR_P="$mkdir_p"
3145fi
3146
3147
3148# Operating system categorization.  Don't add more entries to this
3149# case statement if you can possibly avoid it.
3150# Make sure we can run config.sub.
3151$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3152  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3153
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3155$as_echo_n "checking build system type... " >&6; }
3156if ${ac_cv_build+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  ac_build_alias=$build_alias
3160test "x$ac_build_alias" = x &&
3161  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3162test "x$ac_build_alias" = x &&
3163  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3164ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3165  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3166
3167fi
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3169$as_echo "$ac_cv_build" >&6; }
3170case $ac_cv_build in
3171*-*-*) ;;
3172*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3173esac
3174build=$ac_cv_build
3175ac_save_IFS=$IFS; IFS='-'
3176set x $ac_cv_build
3177shift
3178build_cpu=$1
3179build_vendor=$2
3180shift; shift
3181# Remember, the first character of IFS is used to create $*,
3182# except with old shells:
3183build_os=$*
3184IFS=$ac_save_IFS
3185case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3186
3187
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3189$as_echo_n "checking host system type... " >&6; }
3190if ${ac_cv_host+:} false; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193  if test "x$host_alias" = x; then
3194  ac_cv_host=$ac_cv_build
3195else
3196  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3197    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3198fi
3199
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3202$as_echo "$ac_cv_host" >&6; }
3203case $ac_cv_host in
3204*-*-*) ;;
3205*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3206esac
3207host=$ac_cv_host
3208ac_save_IFS=$IFS; IFS='-'
3209set x $ac_cv_host
3210shift
3211host_cpu=$1
3212host_vendor=$2
3213shift; shift
3214# Remember, the first character of IFS is used to create $*,
3215# except with old shells:
3216host_os=$*
3217IFS=$ac_save_IFS
3218case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3219
3220
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking category of operating system" >&5
3222$as_echo_n "checking category of operating system... " >&6; }
3223
3224BUILD_DATE=`date '+%F'`
3225
3226
3227cat >>confdefs.h <<_ACEOF
3228#define BUILD_DATE "$BUILD_DATE"
3229_ACEOF
3230
3231
3232WIN32_PLATFORM=false
3233os_err_t="int"
3234case "$host" in
3235  *-mingw32 | *-pc-pw32 | *-pc-mks | *-winnt )
3236    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
3237$as_echo "Windows" >&6; }
3238    WIN32_PLATFORM="true"
3239    os_err_t="unsigned int"
3240    ac_executable_extensions=".exe"
3241
3242    # Inno setup configuration
3243    ac_config_files="$ac_config_files monotone.iss:innosetup/monotone.iss.in"
3244
3245    # Extract the first word of "ISCC", so it can be a program name with args.
3246set dummy ISCC; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_path_ISCC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  case $ISCC in
3253  [\\/]* | ?:[\\/]*)
3254  ac_cv_path_ISCC="$ISCC" # Let the user override the test with a path.
3255  ;;
3256  *)
3257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260  IFS=$as_save_IFS
3261  test -z "$as_dir" && as_dir=.
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264    ac_cv_path_ISCC="$as_dir/$ac_word$ac_exec_ext"
3265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266    break 2
3267  fi
3268done
3269  done
3270IFS=$as_save_IFS
3271
3272  ;;
3273esac
3274fi
3275ISCC=$ac_cv_path_ISCC
3276if test -n "$ISCC"; then
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISCC" >&5
3278$as_echo "$ISCC" >&6; }
3279else
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282fi
3283
3284
3285  ;;
3286
3287  *-ibm-aix* )
3288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
3289$as_echo "AIX" >&6; }
3290    LDFLAGS="$LDFLAGS -Wl,-bexpfull"
3291  ;;
3292
3293  * )
3294    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unix" >&5
3295$as_echo "Unix" >&6; }
3296  ;;
3297esac
3298 if $WIN32_PLATFORM; then
3299  WIN32_PLATFORM_TRUE=
3300  WIN32_PLATFORM_FALSE='#'
3301else
3302  WIN32_PLATFORM_TRUE='#'
3303  WIN32_PLATFORM_FALSE=
3304fi
3305
3306
3307cat >>confdefs.h <<_ACEOF
3308#define os_err_t $os_err_t
3309_ACEOF
3310
3311
3312
3313# Checks for programs.
3314ac_ext=cpp
3315ac_cpp='$CXXCPP $CPPFLAGS'
3316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3319if test -z "$CXX"; then
3320  if test -n "$CCC"; then
3321    CXX=$CCC
3322  else
3323    if test -n "$ac_tool_prefix"; then
3324  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3325  do
3326    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329$as_echo_n "checking for $ac_word... " >&6; }
3330if ${ac_cv_prog_CXX+:} false; then :
3331  $as_echo_n "(cached) " >&6
3332else
3333  if test -n "$CXX"; then
3334  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  test -z "$as_dir" && as_dir=.
3341    for ac_exec_ext in '' $ac_executable_extensions; do
3342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345    break 2
3346  fi
3347done
3348  done
3349IFS=$as_save_IFS
3350
3351fi
3352fi
3353CXX=$ac_cv_prog_CXX
3354if test -n "$CXX"; then
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3356$as_echo "$CXX" >&6; }
3357else
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
3360fi
3361
3362
3363    test -n "$CXX" && break
3364  done
3365fi
3366if test -z "$CXX"; then
3367  ac_ct_CXX=$CXX
3368  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3369do
3370  # Extract the first word of "$ac_prog", so it can be a program name with args.
3371set dummy $ac_prog; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  if test -n "$ac_ct_CXX"; then
3378  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387    ac_cv_prog_ac_ct_CXX="$ac_prog"
3388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392  done
3393IFS=$as_save_IFS
3394
3395fi
3396fi
3397ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3398if test -n "$ac_ct_CXX"; then
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3400$as_echo "$ac_ct_CXX" >&6; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406
3407  test -n "$ac_ct_CXX" && break
3408done
3409
3410  if test "x$ac_ct_CXX" = x; then
3411    CXX="g++"
3412  else
3413    case $cross_compiling:$ac_tool_warned in
3414yes:)
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417ac_tool_warned=yes ;;
3418esac
3419    CXX=$ac_ct_CXX
3420  fi
3421fi
3422
3423  fi
3424fi
3425# Provide some information about the compiler.
3426$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3427set X $ac_compile
3428ac_compiler=$2
3429for ac_option in --version -v -V -qversion; do
3430  { { ac_try="$ac_compiler $ac_option >&5"
3431case "(($ac_try" in
3432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433  *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436$as_echo "$ac_try_echo"; } >&5
3437  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3438  ac_status=$?
3439  if test -s conftest.err; then
3440    sed '10a\
3441... rest of stderr output deleted ...
3442         10q' conftest.err >conftest.er1
3443    cat conftest.er1 >&5
3444  fi
3445  rm -f conftest.er1 conftest.err
3446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447  test $ac_status = 0; }
3448done
3449
3450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451/* end confdefs.h.  */
3452
3453int
3454main ()
3455{
3456
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461ac_clean_files_save=$ac_clean_files
3462ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3463# Try to create an executable without -o first, disregard a.out.
3464# It will help us diagnose broken compilers, and finding out an intuition
3465# of exeext.
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3467$as_echo_n "checking whether the C++ compiler works... " >&6; }
3468ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3469
3470# The possible output files:
3471ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472
3473ac_rmfiles=
3474for ac_file in $ac_files
3475do
3476  case $ac_file in
3477    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3478    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479  esac
3480done
3481rm -f $ac_rmfiles
3482
3483if { { ac_try="$ac_link_default"
3484case "(($ac_try" in
3485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486  *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489$as_echo "$ac_try_echo"; } >&5
3490  (eval "$ac_link_default") 2>&5
3491  ac_status=$?
3492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493  test $ac_status = 0; }; then :
3494  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3495# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3496# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3497# so that the user can short-circuit this test for compilers unknown to
3498# Autoconf.
3499for ac_file in $ac_files ''
3500do
3501  test -f "$ac_file" || continue
3502  case $ac_file in
3503    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504	;;
3505    [ab].out )
3506	# We found the default executable, but exeext='' is most
3507	# certainly right.
3508	break;;
3509    *.* )
3510	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3511	then :; else
3512	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513	fi
3514	# We set ac_cv_exeext here because the later test for it is not
3515	# safe: cross compilers may not add the suffix if given an `-o'
3516	# argument, so we may need to know it at that point already.
3517	# Even if this section looks crufty: it has the advantage of
3518	# actually working.
3519	break;;
3520    * )
3521	break;;
3522  esac
3523done
3524test "$ac_cv_exeext" = no && ac_cv_exeext=
3525
3526else
3527  ac_file=''
3528fi
3529if test -z "$ac_file"; then :
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531$as_echo "no" >&6; }
3532$as_echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537as_fn_error 77 "C++ compiler cannot create executables
3538See \`config.log' for more details" "$LINENO" 5; }
3539else
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541$as_echo "yes" >&6; }
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3544$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3546$as_echo "$ac_file" >&6; }
3547ac_exeext=$ac_cv_exeext
3548
3549rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3550ac_clean_files=$ac_clean_files_save
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3552$as_echo_n "checking for suffix of executables... " >&6; }
3553if { { ac_try="$ac_link"
3554case "(($ac_try" in
3555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556  *) ac_try_echo=$ac_try;;
3557esac
3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559$as_echo "$ac_try_echo"; } >&5
3560  (eval "$ac_link") 2>&5
3561  ac_status=$?
3562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563  test $ac_status = 0; }; then :
3564  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3565# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3566# work properly (i.e., refer to `conftest.exe'), while it won't with
3567# `rm'.
3568for ac_file in conftest.exe conftest conftest.*; do
3569  test -f "$ac_file" || continue
3570  case $ac_file in
3571    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3572    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573	  break;;
3574    * ) break;;
3575  esac
3576done
3577else
3578  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3581See \`config.log' for more details" "$LINENO" 5; }
3582fi
3583rm -f conftest conftest$ac_cv_exeext
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3585$as_echo "$ac_cv_exeext" >&6; }
3586
3587rm -f conftest.$ac_ext
3588EXEEXT=$ac_cv_exeext
3589ac_exeext=$EXEEXT
3590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592#include <stdio.h>
3593int
3594main ()
3595{
3596FILE *f = fopen ("conftest.out", "w");
3597 return ferror (f) || fclose (f) != 0;
3598
3599  ;
3600  return 0;
3601}
3602_ACEOF
3603ac_clean_files="$ac_clean_files conftest.out"
3604# Check that the compiler produces executables we can run.  If not, either
3605# the compiler is broken, or we cross compile.
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607$as_echo_n "checking whether we are cross compiling... " >&6; }
3608if test "$cross_compiling" != yes; then
3609  { { ac_try="$ac_link"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615$as_echo "$ac_try_echo"; } >&5
3616  (eval "$ac_link") 2>&5
3617  ac_status=$?
3618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619  test $ac_status = 0; }
3620  if { ac_try='./conftest$ac_cv_exeext'
3621  { { case "(($ac_try" in
3622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623  *) ac_try_echo=$ac_try;;
3624esac
3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626$as_echo "$ac_try_echo"; } >&5
3627  (eval "$ac_try") 2>&5
3628  ac_status=$?
3629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630  test $ac_status = 0; }; }; then
3631    cross_compiling=no
3632  else
3633    if test "$cross_compiling" = maybe; then
3634	cross_compiling=yes
3635    else
3636	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638as_fn_error $? "cannot run C++ compiled programs.
3639If you meant to cross compile, use \`--host'.
3640See \`config.log' for more details" "$LINENO" 5; }
3641    fi
3642  fi
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3645$as_echo "$cross_compiling" >&6; }
3646
3647rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3648ac_clean_files=$ac_clean_files_save
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3650$as_echo_n "checking for suffix of object files... " >&6; }
3651if ${ac_cv_objext+:} false; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665rm -f conftest.o conftest.obj
3666if { { ac_try="$ac_compile"
3667case "(($ac_try" in
3668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669  *) ac_try_echo=$ac_try;;
3670esac
3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672$as_echo "$ac_try_echo"; } >&5
3673  (eval "$ac_compile") 2>&5
3674  ac_status=$?
3675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676  test $ac_status = 0; }; then :
3677  for ac_file in conftest.o conftest.obj conftest.*; do
3678  test -f "$ac_file" || continue;
3679  case $ac_file in
3680    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3681    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682       break;;
3683  esac
3684done
3685else
3686  $as_echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691as_fn_error $? "cannot compute suffix of object files: cannot compile
3692See \`config.log' for more details" "$LINENO" 5; }
3693fi
3694rm -f conftest.$ac_cv_objext conftest.$ac_ext
3695fi
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3697$as_echo "$ac_cv_objext" >&6; }
3698OBJEXT=$ac_cv_objext
3699ac_objext=$OBJEXT
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3701$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3702if ${ac_cv_cxx_compiler_gnu+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h.  */
3707
3708int
3709main ()
3710{
3711#ifndef __GNUC__
3712       choke me
3713#endif
3714
3715  ;
3716  return 0;
3717}
3718_ACEOF
3719if ac_fn_cxx_try_compile "$LINENO"; then :
3720  ac_compiler_gnu=yes
3721else
3722  ac_compiler_gnu=no
3723fi
3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3726
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3729$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3730if test $ac_compiler_gnu = yes; then
3731  GXX=yes
3732else
3733  GXX=
3734fi
3735ac_test_CXXFLAGS=${CXXFLAGS+set}
3736ac_save_CXXFLAGS=$CXXFLAGS
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3738$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3739if ${ac_cv_prog_cxx_g+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3743   ac_cxx_werror_flag=yes
3744   ac_cv_prog_cxx_g=no
3745   CXXFLAGS="-g"
3746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h.  */
3748
3749int
3750main ()
3751{
3752
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757if ac_fn_cxx_try_compile "$LINENO"; then :
3758  ac_cv_prog_cxx_g=yes
3759else
3760  CXXFLAGS=""
3761      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772if ac_fn_cxx_try_compile "$LINENO"; then :
3773
3774else
3775  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3776	 CXXFLAGS="-g"
3777	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h.  */
3779
3780int
3781main ()
3782{
3783
3784  ;
3785  return 0;
3786}
3787_ACEOF
3788if ac_fn_cxx_try_compile "$LINENO"; then :
3789  ac_cv_prog_cxx_g=yes
3790fi
3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792fi
3793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794fi
3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3797fi
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3799$as_echo "$ac_cv_prog_cxx_g" >&6; }
3800if test "$ac_test_CXXFLAGS" = set; then
3801  CXXFLAGS=$ac_save_CXXFLAGS
3802elif test $ac_cv_prog_cxx_g = yes; then
3803  if test "$GXX" = yes; then
3804    CXXFLAGS="-g -O2"
3805  else
3806    CXXFLAGS="-g"
3807  fi
3808else
3809  if test "$GXX" = yes; then
3810    CXXFLAGS="-O2"
3811  else
3812    CXXFLAGS=
3813  fi
3814fi
3815ac_ext=cpp
3816ac_cpp='$CXXCPP $CPPFLAGS'
3817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3820DEPDIR="${am__leading_dot}deps"
3821
3822ac_config_commands="$ac_config_commands depfiles"
3823
3824
3825am_make=${MAKE-make}
3826cat > confinc << 'END'
3827am__doit:
3828	@echo this is the am__doit target
3829.PHONY: am__doit
3830END
3831# If we don't find an include directive, just comment out the code.
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3833$as_echo_n "checking for style of include used by $am_make... " >&6; }
3834am__include="#"
3835am__quote=
3836_am_result=none
3837# First try GNU make style include.
3838echo "include confinc" > confmf
3839# Ignore all kinds of additional output from 'make'.
3840case `$am_make -s -f confmf 2> /dev/null` in #(
3841*the\ am__doit\ target*)
3842  am__include=include
3843  am__quote=
3844  _am_result=GNU
3845  ;;
3846esac
3847# Now try BSD make style include.
3848if test "$am__include" = "#"; then
3849   echo '.include "confinc"' > confmf
3850   case `$am_make -s -f confmf 2> /dev/null` in #(
3851   *the\ am__doit\ target*)
3852     am__include=.include
3853     am__quote="\""
3854     _am_result=BSD
3855     ;;
3856   esac
3857fi
3858
3859
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3861$as_echo "$_am_result" >&6; }
3862rm -f confinc confmf
3863
3864# Check whether --enable-dependency-tracking was given.
3865if test "${enable_dependency_tracking+set}" = set; then :
3866  enableval=$enable_dependency_tracking;
3867fi
3868
3869if test "x$enable_dependency_tracking" != xno; then
3870  am_depcomp="$ac_aux_dir/depcomp"
3871  AMDEPBACKSLASH='\'
3872  am__nodep='_no'
3873fi
3874 if test "x$enable_dependency_tracking" != xno; then
3875  AMDEP_TRUE=
3876  AMDEP_FALSE='#'
3877else
3878  AMDEP_TRUE='#'
3879  AMDEP_FALSE=
3880fi
3881
3882
3883
3884depcc="$CXX"  am_compiler_list=
3885
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3887$as_echo_n "checking dependency style of $depcc... " >&6; }
3888if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3889  $as_echo_n "(cached) " >&6
3890else
3891  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3892  # We make a subdir and do the tests there.  Otherwise we can end up
3893  # making bogus files that we don't know about and never remove.  For
3894  # instance it was reported that on HP-UX the gcc test will end up
3895  # making a dummy file named 'D' -- because '-MD' means "put the output
3896  # in D".
3897  rm -rf conftest.dir
3898  mkdir conftest.dir
3899  # Copy depcomp to subdir because otherwise we won't find it if we're
3900  # using a relative directory.
3901  cp "$am_depcomp" conftest.dir
3902  cd conftest.dir
3903  # We will build objects and dependencies in a subdirectory because
3904  # it helps to detect inapplicable dependency modes.  For instance
3905  # both Tru64's cc and ICC support -MD to output dependencies as a
3906  # side effect of compilation, but ICC will put the dependencies in
3907  # the current directory while Tru64 will put them in the object
3908  # directory.
3909  mkdir sub
3910
3911  am_cv_CXX_dependencies_compiler_type=none
3912  if test "$am_compiler_list" = ""; then
3913     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3914  fi
3915  am__universal=false
3916  case " $depcc " in #(
3917     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3918     esac
3919
3920  for depmode in $am_compiler_list; do
3921    # Setup a source with many dependencies, because some compilers
3922    # like to wrap large dependency lists on column 80 (with \), and
3923    # we should not choose a depcomp mode which is confused by this.
3924    #
3925    # We need to recreate these files for each test, as the compiler may
3926    # overwrite some of them when testing with obscure command lines.
3927    # This happens at least with the AIX C compiler.
3928    : > sub/conftest.c
3929    for i in 1 2 3 4 5 6; do
3930      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3931      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3932      # Solaris 10 /bin/sh.
3933      echo '/* dummy */' > sub/conftst$i.h
3934    done
3935    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3936
3937    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3938    # mode.  It turns out that the SunPro C++ compiler does not properly
3939    # handle '-M -o', and we need to detect this.  Also, some Intel
3940    # versions had trouble with output in subdirs.
3941    am__obj=sub/conftest.${OBJEXT-o}
3942    am__minus_obj="-o $am__obj"
3943    case $depmode in
3944    gcc)
3945      # This depmode causes a compiler race in universal mode.
3946      test "$am__universal" = false || continue
3947      ;;
3948    nosideeffect)
3949      # After this tag, mechanisms are not by side-effect, so they'll
3950      # only be used when explicitly requested.
3951      if test "x$enable_dependency_tracking" = xyes; then
3952	continue
3953      else
3954	break
3955      fi
3956      ;;
3957    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3958      # This compiler won't grok '-c -o', but also, the minuso test has
3959      # not run yet.  These depmodes are late enough in the game, and
3960      # so weak that their functioning should not be impacted.
3961      am__obj=conftest.${OBJEXT-o}
3962      am__minus_obj=
3963      ;;
3964    none) break ;;
3965    esac
3966    if depmode=$depmode \
3967       source=sub/conftest.c object=$am__obj \
3968       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3969       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3970         >/dev/null 2>conftest.err &&
3971       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3972       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3973       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3974       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3975      # icc doesn't choke on unknown options, it will just issue warnings
3976      # or remarks (even with -Werror).  So we grep stderr for any message
3977      # that says an option was ignored or not supported.
3978      # When given -MP, icc 7.0 and 7.1 complain thusly:
3979      #   icc: Command line warning: ignoring option '-M'; no argument required
3980      # The diagnosis changed in icc 8.0:
3981      #   icc: Command line remark: option '-MP' not supported
3982      if (grep 'ignoring option' conftest.err ||
3983          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3984        am_cv_CXX_dependencies_compiler_type=$depmode
3985        break
3986      fi
3987    fi
3988  done
3989
3990  cd ..
3991  rm -rf conftest.dir
3992else
3993  am_cv_CXX_dependencies_compiler_type=none
3994fi
3995
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3998$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3999CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4000
4001 if
4002  test "x$enable_dependency_tracking" != xno \
4003  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4004  am__fastdepCXX_TRUE=
4005  am__fastdepCXX_FALSE='#'
4006else
4007  am__fastdepCXX_TRUE='#'
4008  am__fastdepCXX_FALSE=
4009fi
4010
4011
4012
4013  ansi=
4014  if test -z "$ansi"; then
4015    msg="for C++ compiler warning flags"
4016  else
4017    msg="for C++ compiler warning and ANSI conformance flags"
4018  fi
4019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4020$as_echo_n "checking $msg... " >&6; }
4021if ${ac_cv_prog_cxx_warnings+:} false; then :
4022  $as_echo_n "(cached) " >&6
4023else
4024
4025    if test -n "$CXX"; then
4026      cat > conftest.c <<EOF
4027int main(int argc, char **argv) { return 0; }
4028EOF
4029
4030            if test "$GXX" = "yes"; then
4031        if test -z "$ansi"; then
4032          ac_cv_prog_cxx_warnings="-Wall -W -Wno-unused"
4033        else
4034          ac_cv_prog_cxx_warnings="-Wall -W -Wno-unused -ansi -pedantic"
4035        fi
4036
4037
4038            elif $CXX -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4039           $CXX -c -v -Xc conftest.c > /dev/null 2>&1 &&
4040           test -f conftest.o; then
4041        if test -z "$ansi"; then
4042          ac_cv_prog_cxx_warnings="-v"
4043        else
4044          ac_cv_prog_cxx_warnings="-v -Xc"
4045        fi
4046
4047                        elif $CXX -V 2>&1 | grep -i "SUN C++ 5" > /dev/null 2>&1 &&
4048           $CXX -c -v -Xc conftest.c > /dev/null 2>&1 &&
4049           test -f conftest.o; then
4050        if test -z "$ansi"; then
4051          ac_cv_prog_cxx_warnings=""
4052        else
4053          ac_cv_prog_cxx_warnings=""
4054        fi
4055
4056            elif $CXX -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4057           $CXX -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4058           test -f conftest.o; then
4059        if test -z "$ansi"; then
4060          ac_cv_prog_cxx_warnings="-verbose -w0 -warnprotos"
4061        else
4062          ac_cv_prog_cxx_warnings="-verbose -w0 -warnprotos -std1"
4063        fi
4064
4065            elif $CXX 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4066           $CXX -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4067           test -f conftest.o; then
4068        if test -z "$ansi"; then
4069          ac_cv_prog_cxx_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4070        else
4071          ac_cv_prog_cxx_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4072        fi
4073
4074            elif $CXX -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4075           $CXX -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4076           test -f conftest.o; then
4077        if test -z "$ansi"; then
4078          ac_cv_prog_cxx_warnings="-fullwarn"
4079        else
4080          ac_cv_prog_cxx_warnings="-fullwarn -ansi -ansiE"
4081        fi
4082
4083            elif what $CXX 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4084           $CXX -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4085           test -f conftest.o; then
4086        if test -z "$ansi"; then
4087          ac_cv_prog_cxx_warnings="+w1"
4088        else
4089          ac_cv_prog_cxx_warnings="+w1 -Aa"
4090        fi
4091
4092            elif $CXX -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4093           $CXX -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4094           test -f conftest.o; then
4095        if test -z "$ansi"; then
4096          ac_cv_prog_cxx_warnings="-pvctl,fullmsg"
4097        else
4098          ac_cv_prog_cxx_warnings="-pvctl,fullmsg -Xc"
4099        fi
4100
4101            elif $CXX -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4102           $CXX -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4103           test -f conftest.o; then
4104        if test -z "$ansi"; then
4105          ac_cv_prog_cxx_warnings="-h msglevel 2"
4106        else
4107          ac_cv_prog_cxx_warnings="-h msglevel 2 -h conform"
4108        fi
4109
4110      fi
4111      rm -f conftest.*
4112    fi
4113    if test -z "$ac_cv_prog_cxx_warnings"; then
4114      ac_cv_prog_cxx_warnings="unknown"
4115    fi
4116
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_warnings" >&5
4119$as_echo "$ac_cv_prog_cxx_warnings" >&6; }
4120  if test x"$ac_cv_prog_cxx_warnings" != xunknown; then
4121    CXXFLAGS="$CXXFLAGS $ac_cv_prog_cxx_warnings"
4122  fi
4123
4124# Check whether --enable-pch was given.
4125if test "${enable_pch+set}" = set; then :
4126  enableval=$enable_pch;
4127fi
4128
4129  if false; then
4130  BUILD_PCH_TRUE=
4131  BUILD_PCH_FALSE='#'
4132else
4133  BUILD_PCH_TRUE='#'
4134  BUILD_PCH_FALSE=
4135fi
4136
4137 if test x"${enable_pch}" = x"yes"
4138 then
4139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc with precompiled header support" >&5
4140$as_echo_n "checking for gcc with precompiled header support... " >&6; }
4141	gxx_version=`${CXX} -dumpversion`
4142	case $gxx_version in
4143		4.*)
4144			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4145$as_echo "found" >&6; }
4146			 if true; then
4147  BUILD_PCH_TRUE=
4148  BUILD_PCH_FALSE='#'
4149else
4150  BUILD_PCH_TRUE='#'
4151  BUILD_PCH_FALSE=
4152fi
4153
4154			;;
4155		*)
4156			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4157$as_echo "not found" >&6; }
4158			;;
4159 	esac
4160 fi
4161
4162
4163if test $cross_compiling = yes; then
4164  CXX_FOR_BUILD='c++'
4165else
4166  CXX_FOR_BUILD="$CXX"
4167fi
4168
4169if test -n "$ac_tool_prefix"; then
4170  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4171set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173$as_echo_n "checking for $ac_word... " >&6; }
4174if ${ac_cv_prog_RANLIB+:} false; then :
4175  $as_echo_n "(cached) " >&6
4176else
4177  if test -n "$RANLIB"; then
4178  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4179else
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183  IFS=$as_save_IFS
4184  test -z "$as_dir" && as_dir=.
4185    for ac_exec_ext in '' $ac_executable_extensions; do
4186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189    break 2
4190  fi
4191done
4192  done
4193IFS=$as_save_IFS
4194
4195fi
4196fi
4197RANLIB=$ac_cv_prog_RANLIB
4198if test -n "$RANLIB"; then
4199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4200$as_echo "$RANLIB" >&6; }
4201else
4202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203$as_echo "no" >&6; }
4204fi
4205
4206
4207fi
4208if test -z "$ac_cv_prog_RANLIB"; then
4209  ac_ct_RANLIB=$RANLIB
4210  # Extract the first word of "ranlib", so it can be a program name with args.
4211set dummy ranlib; 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_ac_ct_RANLIB+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if test -n "$ac_ct_RANLIB"; then
4218  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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
4237ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4238if test -n "$ac_ct_RANLIB"; then
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4240$as_echo "$ac_ct_RANLIB" >&6; }
4241else
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245
4246  if test "x$ac_ct_RANLIB" = x; then
4247    RANLIB=":"
4248  else
4249    case $cross_compiling:$ac_tool_warned in
4250yes:)
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253ac_tool_warned=yes ;;
4254esac
4255    RANLIB=$ac_ct_RANLIB
4256  fi
4257else
4258  RANLIB="$ac_cv_prog_RANLIB"
4259fi
4260
4261
4262
4263
4264
4265
4266
4267
4268# Check whether --enable-nls was given.
4269if test "${enable_nls+set}" = set; then :
4270  enableval=$enable_nls; USE_NLS=$enableval
4271else
4272  USE_NLS=auto
4273fi
4274
4275
4276
4277      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU msgfmt" >&5
4278$as_echo_n "checking for GNU msgfmt... " >&6; }
4279if ${ac_cv_path_gnu_msgfmt+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  if test -z "$gnu_msgfmt"; then
4283  ac_path_gnu_msgfmt_found=false
4284  # Loop through the user's path and test for each of PROGNAME-LIST
4285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288  IFS=$as_save_IFS
4289  test -z "$as_dir" && as_dir=.
4290    for ac_prog in msgfmt gmsgfmt; do
4291    for ac_exec_ext in '' $ac_executable_extensions; do
4292      ac_path_gnu_msgfmt="$as_dir/$ac_prog$ac_exec_ext"
4293      as_fn_executable_p "$ac_path_gnu_msgfmt" || continue
4294if "$ac_path_gnu_msgfmt" --statistics /dev/null >/dev/null 2>&1; then
4295	  if "$ac_path_gnu_msgfmt" --statistics /dev/null 2>&1 >/dev/null |
4296		 grep usage >/dev/null; then
4297	    : # no good
4298	  else
4299	    ac_cv_path_gnu_msgfmt="$ac_path_gnu_msgfmt"
4300	    ac_path_gnu_msgfmt_found=:
4301	  fi
4302	fi
4303      $ac_path_gnu_msgfmt_found && break 3
4304    done
4305  done
4306  done
4307IFS=$as_save_IFS
4308  if test -z "$ac_cv_path_gnu_msgfmt"; then
4309    ac_cv_path_gnu_msgfmt="not found"
4310  fi
4311else
4312  ac_cv_path_gnu_msgfmt=$gnu_msgfmt
4313fi
4314
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_gnu_msgfmt" >&5
4317$as_echo "$ac_cv_path_gnu_msgfmt" >&6; }
4318  MSGFMT=$ac_cv_path_gnu_msgfmt
4319
4320
4321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU msgmerge" >&5
4322$as_echo_n "checking for GNU msgmerge... " >&6; }
4323if ${ac_cv_path_gnu_msgmerge+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  if test -z "$gnu_msgmerge"; then
4327  ac_path_gnu_msgmerge_found=false
4328  # Loop through the user's path and test for each of PROGNAME-LIST
4329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332  IFS=$as_save_IFS
4333  test -z "$as_dir" && as_dir=.
4334    for ac_prog in msgmerge gmsgmerge; do
4335    for ac_exec_ext in '' $ac_executable_extensions; do
4336      ac_path_gnu_msgmerge="$as_dir/$ac_prog$ac_exec_ext"
4337      as_fn_executable_p "$ac_path_gnu_msgmerge" || continue
4338if "$ac_path_gnu_msgmerge" --update -q /dev/null /dev/null \
4339		 >/dev/null 2>&1; then
4340	    ac_cv_path_gnu_msgmerge="$ac_path_gnu_msgmerge"
4341	    ac_path_gnu_msgmerge_found=:
4342	  fi
4343      $ac_path_gnu_msgmerge_found && break 3
4344    done
4345  done
4346  done
4347IFS=$as_save_IFS
4348  if test -z "$ac_cv_path_gnu_msgmerge"; then
4349    ac_cv_path_gnu_msgmerge="not found"
4350  fi
4351else
4352  ac_cv_path_gnu_msgmerge=$gnu_msgmerge
4353fi
4354
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_gnu_msgmerge" >&5
4357$as_echo "$ac_cv_path_gnu_msgmerge" >&6; }
4358  MSGMERGE=$ac_cv_path_gnu_msgmerge
4359
4360
4361      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU xgettext" >&5
4362$as_echo_n "checking for GNU xgettext... " >&6; }
4363if ${ac_cv_path_gnu_xgettext+:} false; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  if test -z "$gnu_xgettext"; then
4367  ac_path_gnu_xgettext_found=false
4368  # Loop through the user's path and test for each of PROGNAME-LIST
4369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372  IFS=$as_save_IFS
4373  test -z "$as_dir" && as_dir=.
4374    for ac_prog in xgettext gxgettext; do
4375    for ac_exec_ext in '' $ac_executable_extensions; do
4376      ac_path_gnu_xgettext="$as_dir/$ac_prog$ac_exec_ext"
4377      as_fn_executable_p "$ac_path_gnu_xgettext" || continue
4378if "$ac_path_gnu_xgettext" --omit-header --copyright-holder= \
4379		/dev/null >/dev/null 2>&1; then
4380	   if "$ac_path_gnu_xgettext" --omit-header --copyright-holder= \
4381		/dev/null 2>&1 >/dev/null | grep usage >/dev/null; then
4382	     : # no good
4383	   else
4384	     ac_cv_path_gnu_xgettext="$ac_path_gnu_xgettext"
4385	     ac_path_gnu_xgettext_found=:
4386	   fi
4387	 fi
4388      $ac_path_gnu_xgettext_found && break 3
4389    done
4390  done
4391  done
4392IFS=$as_save_IFS
4393  if test -z "$ac_cv_path_gnu_xgettext"; then
4394    ac_cv_path_gnu_xgettext="not found"
4395  fi
4396else
4397  ac_cv_path_gnu_xgettext=$gnu_xgettext
4398fi
4399
4400fi
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_gnu_xgettext" >&5
4402$as_echo "$ac_cv_path_gnu_xgettext" >&6; }
4403  XGETTEXT=$ac_cv_path_gnu_xgettext
4404
4405
4406    rm -f messages.po
4407
4408  if test x"$XGETTEXT" != x"not found"; then
4409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $XGETTEXT supports --flag" >&5
4410$as_echo_n "checking whether $XGETTEXT supports --flag... " >&6; }
4411if ${ac_cv_prog_xgettext_flag_option+:} false; then :
4412  $as_echo_n "(cached) " >&6
4413else
4414  echo 'int main(void) { return 0; }' >> conftest.c
4415      if "$XGETTEXT" --flag printf:1:c-format -o conftest.po conftest.c \
4416	 >/dev/null 2>&1
4417      then ac_cv_prog_xgettext_flag_option=yes
4418      else ac_cv_prog_xgettext_flag_option=no
4419      fi
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_xgettext_flag_option" >&5
4422$as_echo "$ac_cv_prog_xgettext_flag_option" >&6; }
4423
4424    # The variable names here are chosen for compatibility with
4425    # intltool-update; see po/Makevars.
4426    if test $ac_cv_prog_xgettext_flag_option = yes; then
4427      XGETTEXT_OPTS='$(XGETTEXT_OPTIONS)'
4428    else
4429      XGETTEXT_OPTS='$(XGETTEXT_OPTIONS_NO_FLAG)'
4430    fi
4431
4432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $XGETTEXT supports --package-name and --package-version" >&5
4433$as_echo_n "checking whether $XGETTEXT supports --package-name and --package-version... " >&6; }
4434if ${ac_cv_prog_xgettext_package_options+:} false; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  echo 'int main(void) { return 0; }' >> conftest.c
4438      if "$XGETTEXT" --package-name=test --package-version=1.0 \
4439         -o conftest.po conftest.c >/dev/null 2>&1
4440      then ac_cv_prog_xgettext_package_options=yes
4441      else ac_cv_prog_xgettext_package_options=no
4442      fi
4443fi
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_xgettext_package_options" >&5
4445$as_echo "$ac_cv_prog_xgettext_package_options" >&6; }
4446
4447    if test $ac_cv_prog_xgettext_package_options = yes; then
4448      XGETTEXT_PKG_OPTS='--package-name=$(PACKAGE) --package-version=$(VERSION)'
4449    else
4450      XGETTEXT_PKG_OPTS=
4451    fi
4452  else
4453    XGETTEXT_OPTS=
4454    XGETTEXT_PKG_OPTS=
4455  fi
4456
4457
4458
4459  if test x"$MSGFMT" = x"not found" ||
4460     test x"$MSGMERGE" = x"not found" ||
4461     test x"$XGETTEXT" = x"not found"; then
4462    REBUILD_NLS=false
4463  else
4464    REBUILD_NLS=false
4465  fi
4466   if $REBUILD_NLS; then
4467  REBUILD_NLS_TRUE=
4468  REBUILD_NLS_FALSE='#'
4469else
4470  REBUILD_NLS_TRUE='#'
4471  REBUILD_NLS_FALSE=
4472fi
4473
4474
4475
4476if test x"$USE_NLS" != xno; then
4477        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries containing GNU gettext and ngettext" >&5
4478$as_echo_n "checking for libraries containing GNU gettext and ngettext... " >&6; }
4479if ${mtn_cv_lib_gnu_gettext_ngettext+:} false; then :
4480  $as_echo_n "(cached) " >&6
4481else
4482  # If the user specified the libraries we're supposed to use, test
4483    # those and no others.
4484    if test x"${intl_LIBS+set}" = xset; then
4485      set fnord "${intl_LIBS}"
4486    else
4487      set fnord '' '-lintl' '-lintl -liconv'
4488    fi
4489    shift
4490
4491    mtn_cv_lib_gnu_gettext_ngettext="not found"
4492    save_LIBS="$LIBS"
4493    save_CFLAGS="$CFLAGS"
4494    CFLAGS="$save_CFLAGS $intl_CFLAGS"
4495    for try in "$@"; do
4496      LIBS="$save_LIBS $try"
4497      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h.  */
4499#include <libintl.h>
4500int
4501main ()
4502{
4503
4504	const char *a = textdomain("");
4505	const char *b = bindtextdomain("", "");
4506	const char *c = gettext("");
4507	const char *d = ngettext("", "", 0);
4508	return a && b && c && d;
4509
4510  ;
4511  return 0;
4512}
4513_ACEOF
4514if ac_fn_cxx_try_link "$LINENO"; then :
4515  mtn_cv_lib_gnu_gettext_ngettext="${try:-none required}"
4516	 break
4517fi
4518rm -f core conftest.err conftest.$ac_objext \
4519    conftest$ac_exeext conftest.$ac_ext
4520    done
4521    CFLAGS="$save_CFLAGS"
4522    LIBS="$save_LIBS"
4523
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtn_cv_lib_gnu_gettext_ngettext" >&5
4526$as_echo "$mtn_cv_lib_gnu_gettext_ngettext" >&6; }
4527
4528   if test x"$mtn_cv_lib_gnu_gettext_ngettext" = x"not found"; then
4529     if test x"$USE_NLS" = xyes; then
4530       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4532as_fn_error $? "no usable NLS libraries found
4533See \`config.log' for more details" "$LINENO" 5; }
4534     else
4535       intl_LIBS=""
4536       USE_NLS=no
4537     fi
4538   else
4539     USE_NLS=yes
4540     intl_LIBS="$mtn_cv_lib_gnu_gettext_ngettext"
4541     if test x"$intl_LIBS" = x"none required"; then
4542       intl_LIBS=""
4543     fi
4544   fi
4545fi
4546if test $USE_NLS = yes; then
4547
4548$as_echo "#define ENABLE_NLS 1" >>confdefs.h
4549
4550fi
4551 if test x$USE_NLS = xyes; then
4552  USE_NLS_TRUE=
4553  USE_NLS_FALSE='#'
4554else
4555  USE_NLS_TRUE='#'
4556  USE_NLS_FALSE=
4557fi
4558
4559
4560
4561  GOOD_LINGUAS=
4562  if test -f "$srcdir/po/LINGUAS"; then
4563    GOOD_LINGUAS=`sed -e '/^#/d' $srcdir/po/LINGUAS | tr "$as_nl" " "`
4564  fi
4565
4566  if test x"$LINGUAS" = x; then
4567    INST_LINGUAS="$GOOD_LINGUAS"
4568  else
4569    INST_LINGUAS=
4570    for candidate in $GOOD_LINGUAS; do
4571      for desired in $LINGUAS; do
4572	 case "$desired" in "$candidate"*)
4573	   INST_LINGUAS="$INST_LINGUAS $candidate"
4574	   break ;;
4575	 esac
4576      done
4577    done
4578  fi
4579
4580
4581
4582# Do library checks as early as possible so we bail out quickly if
4583# one is missing.
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
4586$as_echo_n "checking for library containing deflate... " >&6; }
4587if ${ac_cv_search_deflate+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  ac_func_search_save_LIBS=$LIBS
4591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593
4594/* Override any GCC internal prototype to avoid an error.
4595   Use char because int might match the return type of a GCC
4596   builtin and then its argument prototype would still apply.  */
4597#ifdef __cplusplus
4598extern "C"
4599#endif
4600char deflate ();
4601int
4602main ()
4603{
4604return deflate ();
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609for ac_lib in '' z; do
4610  if test -z "$ac_lib"; then
4611    ac_res="none required"
4612  else
4613    ac_res=-l$ac_lib
4614    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4615  fi
4616  if ac_fn_cxx_try_link "$LINENO"; then :
4617  ac_cv_search_deflate=$ac_res
4618fi
4619rm -f core conftest.err conftest.$ac_objext \
4620    conftest$ac_exeext
4621  if ${ac_cv_search_deflate+:} false; then :
4622  break
4623fi
4624done
4625if ${ac_cv_search_deflate+:} false; then :
4626
4627else
4628  ac_cv_search_deflate=no
4629fi
4630rm conftest.$ac_ext
4631LIBS=$ac_func_search_save_LIBS
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
4634$as_echo "$ac_cv_search_deflate" >&6; }
4635ac_res=$ac_cv_search_deflate
4636if test "$ac_res" != no; then :
4637  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4638
4639else
4640  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642as_fn_error $? "zlib is required
4643See \`config.log' for more details" "$LINENO" 5; }
4644fi
4645
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking boost version 1.33.0 or newer" >&5
4649$as_echo_n "checking boost version 1.33.0 or newer... " >&6; }
4650if ${ac_cv_boost_version_least_1_33_0+:} false; then :
4651  $as_echo_n "(cached) " >&6
4652else
4653
4654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656#include <boost/version.hpp>
4657  #if BOOST_VERSION >= 103300
4658  int main() { return 0; }
4659  #else
4660  #error boost version is too old
4661  #endif
4662
4663
4664_ACEOF
4665if ac_fn_cxx_try_compile "$LINENO"; then :
4666
4667fi
4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_boost_version_least_1_33_0" >&5
4671$as_echo "$ac_cv_boost_version_least_1_33_0" >&6; }
4672  if test x$ac_cv_boost_version_least_1_33_0 = xno; then
4673        as_fn_error $? "boost 1.33.0 or newer required" "$LINENO" 5
4674  fi
4675
4676
4677
4678
4679
4680
4681if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4682	if test -n "$ac_tool_prefix"; then
4683  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4684set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686$as_echo_n "checking for $ac_word... " >&6; }
4687if ${ac_cv_path_PKG_CONFIG+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  case $PKG_CONFIG in
4691  [\\/]* | ?:[\\/]*)
4692  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4693  ;;
4694  *)
4695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698  IFS=$as_save_IFS
4699  test -z "$as_dir" && as_dir=.
4700    for ac_exec_ext in '' $ac_executable_extensions; do
4701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704    break 2
4705  fi
4706done
4707  done
4708IFS=$as_save_IFS
4709
4710  ;;
4711esac
4712fi
4713PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4714if test -n "$PKG_CONFIG"; then
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4716$as_echo "$PKG_CONFIG" >&6; }
4717else
4718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719$as_echo "no" >&6; }
4720fi
4721
4722
4723fi
4724if test -z "$ac_cv_path_PKG_CONFIG"; then
4725  ac_pt_PKG_CONFIG=$PKG_CONFIG
4726  # Extract the first word of "pkg-config", so it can be a program name with args.
4727set dummy pkg-config; ac_word=$2
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729$as_echo_n "checking for $ac_word... " >&6; }
4730if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  case $ac_pt_PKG_CONFIG in
4734  [\\/]* | ?:[\\/]*)
4735  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4736  ;;
4737  *)
4738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741  IFS=$as_save_IFS
4742  test -z "$as_dir" && as_dir=.
4743    for ac_exec_ext in '' $ac_executable_extensions; do
4744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747    break 2
4748  fi
4749done
4750  done
4751IFS=$as_save_IFS
4752
4753  ;;
4754esac
4755fi
4756ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4757if test -n "$ac_pt_PKG_CONFIG"; then
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4759$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4760else
4761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762$as_echo "no" >&6; }
4763fi
4764
4765  if test "x$ac_pt_PKG_CONFIG" = x; then
4766    PKG_CONFIG=""
4767  else
4768    case $cross_compiling:$ac_tool_warned in
4769yes:)
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772ac_tool_warned=yes ;;
4773esac
4774    PKG_CONFIG=$ac_pt_PKG_CONFIG
4775  fi
4776else
4777  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4778fi
4779
4780fi
4781if test -n "$PKG_CONFIG"; then
4782	_pkg_min_version=0.9.0
4783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4784$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4785	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4786		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787$as_echo "yes" >&6; }
4788	else
4789		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
4791		PKG_CONFIG=""
4792	fi
4793
4794fi
4795
4796# The dummy "pkg-config" package is guaranteed to exist.
4797if test -n "$PKG_CONFIG"; then
4798  mtn__full_pkg_config_path=`$PKG_CONFIG --variable=pc_path pkg-config`
4799  #AC_MSG_NOTICE([detected pkg-config path: $mtn__full_pkg_config_path])
4800fi
4801
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4803$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4804if ${ac_cv_path_GREP+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  if test -z "$GREP"; then
4808  ac_path_GREP_found=false
4809  # Loop through the user's path and test for each of PROGNAME-LIST
4810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815    for ac_prog in grep ggrep; do
4816    for ac_exec_ext in '' $ac_executable_extensions; do
4817      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4818      as_fn_executable_p "$ac_path_GREP" || continue
4819# Check for GNU ac_path_GREP and select it if it is found.
4820  # Check for GNU $ac_path_GREP
4821case `"$ac_path_GREP" --version 2>&1` in
4822*GNU*)
4823  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4824*)
4825  ac_count=0
4826  $as_echo_n 0123456789 >"conftest.in"
4827  while :
4828  do
4829    cat "conftest.in" "conftest.in" >"conftest.tmp"
4830    mv "conftest.tmp" "conftest.in"
4831    cp "conftest.in" "conftest.nl"
4832    $as_echo 'GREP' >> "conftest.nl"
4833    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835    as_fn_arith $ac_count + 1 && ac_count=$as_val
4836    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4837      # Best one so far, save it but keep looking for a better one
4838      ac_cv_path_GREP="$ac_path_GREP"
4839      ac_path_GREP_max=$ac_count
4840    fi
4841    # 10*(2^10) chars as input seems more than enough
4842    test $ac_count -gt 10 && break
4843  done
4844  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845esac
4846
4847      $ac_path_GREP_found && break 3
4848    done
4849  done
4850  done
4851IFS=$as_save_IFS
4852  if test -z "$ac_cv_path_GREP"; then
4853    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854  fi
4855else
4856  ac_cv_path_GREP=$GREP
4857fi
4858
4859fi
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4861$as_echo "$ac_cv_path_GREP" >&6; }
4862 GREP="$ac_cv_path_GREP"
4863
4864
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4866$as_echo_n "checking for egrep... " >&6; }
4867if ${ac_cv_path_EGREP+:} false; then :
4868  $as_echo_n "(cached) " >&6
4869else
4870  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4871   then ac_cv_path_EGREP="$GREP -E"
4872   else
4873     if test -z "$EGREP"; then
4874  ac_path_EGREP_found=false
4875  # Loop through the user's path and test for each of PROGNAME-LIST
4876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4878do
4879  IFS=$as_save_IFS
4880  test -z "$as_dir" && as_dir=.
4881    for ac_prog in egrep; do
4882    for ac_exec_ext in '' $ac_executable_extensions; do
4883      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4884      as_fn_executable_p "$ac_path_EGREP" || continue
4885# Check for GNU ac_path_EGREP and select it if it is found.
4886  # Check for GNU $ac_path_EGREP
4887case `"$ac_path_EGREP" --version 2>&1` in
4888*GNU*)
4889  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4890*)
4891  ac_count=0
4892  $as_echo_n 0123456789 >"conftest.in"
4893  while :
4894  do
4895    cat "conftest.in" "conftest.in" >"conftest.tmp"
4896    mv "conftest.tmp" "conftest.in"
4897    cp "conftest.in" "conftest.nl"
4898    $as_echo 'EGREP' >> "conftest.nl"
4899    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4900    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4901    as_fn_arith $ac_count + 1 && ac_count=$as_val
4902    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4903      # Best one so far, save it but keep looking for a better one
4904      ac_cv_path_EGREP="$ac_path_EGREP"
4905      ac_path_EGREP_max=$ac_count
4906    fi
4907    # 10*(2^10) chars as input seems more than enough
4908    test $ac_count -gt 10 && break
4909  done
4910  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4911esac
4912
4913      $ac_path_EGREP_found && break 3
4914    done
4915  done
4916  done
4917IFS=$as_save_IFS
4918  if test -z "$ac_cv_path_EGREP"; then
4919    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4920  fi
4921else
4922  ac_cv_path_EGREP=$EGREP
4923fi
4924
4925   fi
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4928$as_echo "$ac_cv_path_EGREP" >&6; }
4929 EGREP="$ac_cv_path_EGREP"
4930
4931
4932
4933
4934
4935
4936# Probe for the botan library.
4937_notfound=true
4938_verreq=" >= 1.6.3"
4939
4940# First test for user overrides.  This should work even if pkg-config
4941# isn't installed.  The use of + instead of :+ is deliberate; the user
4942# should be able to tell us that no flags are required.
4943# (PKG_CHECK_MODULES gets this wrong!)
4944if test x${botan_CFLAGS+set} = xset || test x${botan_LIBS+set} = xset; then
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for botan" >&5
4946$as_echo_n "checking for botan... " >&6; }
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: user specified" >&5
4948$as_echo "user specified" >&6; }
4949  _notfound=false
4950fi
4951
4952if $_notfound; then
4953# Second, try a "naive" search for the unqualified package name.  This
4954# also ensures that the ARG_VARs for the desired library are sane.
4955
4956pkg_failed=no
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for botan" >&5
4958$as_echo_n "checking for botan... " >&6; }
4959
4960if test -n "$PKG_CONFIG"; then
4961    if test -n "$botan_CFLAGS"; then
4962        pkg_cv_botan_CFLAGS="$botan_CFLAGS"
4963    else
4964        if test -n "$PKG_CONFIG" && \
4965    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan\$_verreq\""; } >&5
4966  ($PKG_CONFIG --exists --print-errors "botan$_verreq") 2>&5
4967  ac_status=$?
4968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4969  test $ac_status = 0; }; then
4970  pkg_cv_botan_CFLAGS=`$PKG_CONFIG --cflags "botan$_verreq" 2>/dev/null`
4971else
4972  pkg_failed=yes
4973fi
4974    fi
4975else
4976	pkg_failed=untried
4977fi
4978if test -n "$PKG_CONFIG"; then
4979    if test -n "$botan_LIBS"; then
4980        pkg_cv_botan_LIBS="$botan_LIBS"
4981    else
4982        if test -n "$PKG_CONFIG" && \
4983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan\$_verreq\""; } >&5
4984  ($PKG_CONFIG --exists --print-errors "botan$_verreq") 2>&5
4985  ac_status=$?
4986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987  test $ac_status = 0; }; then
4988  pkg_cv_botan_LIBS=`$PKG_CONFIG --libs "botan$_verreq" 2>/dev/null`
4989else
4990  pkg_failed=yes
4991fi
4992    fi
4993else
4994	pkg_failed=untried
4995fi
4996
4997
4998
4999if test $pkg_failed = yes; then
5000
5001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5002        _pkg_short_errors_supported=yes
5003else
5004        _pkg_short_errors_supported=no
5005fi
5006        if test $_pkg_short_errors_supported = yes; then
5007	        botan_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "botan$_verreq"`
5008        else
5009	        botan_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "botan$_verreq"`
5010        fi
5011	# Put the nasty error message in config.log where it belongs
5012	echo "$botan_PKG_ERRORS" >&5
5013
5014	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015$as_echo "no" >&6; }
5016                { $as_echo "$as_me:${as_lineno-$LINENO}: result: botan.pc not found" >&5
5017$as_echo "botan.pc not found" >&6; }
5018elif test $pkg_failed = untried; then
5019	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: botan.pc not found" >&5
5020$as_echo "botan.pc not found" >&6; }
5021else
5022	botan_CFLAGS=$pkg_cv_botan_CFLAGS
5023	botan_LIBS=$pkg_cv_botan_LIBS
5024        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025$as_echo "yes" >&6; }
5026	_notfound=false
5027fi
5028fi
5029
5030# Third, try looking for alternative names known to pkg-config for
5031# the library.
5032if $_notfound; then
5033  _save_IFS="$IFS"
5034  IFS=":"
5035  set fnord $mtn__full_pkg_config_path
5036  shift
5037  IFS="$_save_IFS"
5038
5039  for pkgcfgdir; do
5040    echo $pkgcfgdir/*botan*.pc
5041  done | tr ' ' "$as_nl" |
5042  $EGREP '/(lib)?botan(-?[0-9.]+)?\.pc$' > conftest.candpc
5043
5044  echo "$as_me: candidate .pc files are:" >&5
5045  sed 's/^/| /' conftest.candpc >&5
5046  for f in `cat conftest.candpc`; do
5047    c=`$as_basename -- $f ||
5048$as_expr X/$f : '.*/\([^/][^/]*\)/*$' \| \
5049	 X$f : 'X\(//\)$' \| \
5050	 X$f : 'X\(/\)' \| . 2>/dev/null ||
5051$as_echo X/$f |
5052    sed '/^.*\/\([^/][^/]*\)\/*$/{
5053	    s//\1/
5054	    q
5055	  }
5056	  /^X\/\(\/\/\)$/{
5057	    s//\1/
5058	    q
5059	  }
5060	  /^X\/\(\/\).*/{
5061	    s//\1/
5062	    q
5063	  }
5064	  s/.*/./; q'`
5065    c=`expr X"$c" : 'X\(.*\)\.pc'`
5066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for botan using $c.pc" >&5
5067$as_echo_n "checking for botan using $c.pc... " >&6; }
5068
5069    pkg_failed=no
5070    if test -n "$PKG_CONFIG"; then
5071    if test -n "$botan_CFLAGS"; then
5072        pkg_cv_botan_CFLAGS="$botan_CFLAGS"
5073    else
5074        if test -n "$PKG_CONFIG" && \
5075    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
5076  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
5077  ac_status=$?
5078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5079  test $ac_status = 0; }; then
5080  pkg_cv_botan_CFLAGS=`$PKG_CONFIG --cflags "$c$_verreq" 2>/dev/null`
5081else
5082  pkg_failed=yes
5083fi
5084    fi
5085else
5086	pkg_failed=untried
5087fi
5088    if test -n "$PKG_CONFIG"; then
5089    if test -n "$botan_LIBS"; then
5090        pkg_cv_botan_LIBS="$botan_LIBS"
5091    else
5092        if test -n "$PKG_CONFIG" && \
5093    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
5094  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
5095  ac_status=$?
5096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5097  test $ac_status = 0; }; then
5098  pkg_cv_botan_LIBS=`$PKG_CONFIG --libs "$c$_verreq" 2>/dev/null`
5099else
5100  pkg_failed=yes
5101fi
5102    fi
5103else
5104	pkg_failed=untried
5105fi
5106    if test $pkg_failed = no; then
5107       botan_CFLAGS=$pkg_cv_botan_CFLAGS
5108       botan_LIBS=$pkg_cv_botan_LIBS
5109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5110$as_echo "yes" >&6; }
5111       _notfound=false
5112       break
5113    else
5114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115$as_echo "no" >&6; }
5116    fi
5117  done
5118fi
5119
5120# Fourth, try -config binaries.
5121if $_notfound; then
5122  _save_IFS="$IFS"
5123  IFS=":"
5124  set fnord $PATH
5125  shift
5126  IFS="$_save_IFS"
5127
5128  for pathdir; do
5129    echo $pathdir/*botan*-config
5130  done | tr ' ' "$as_nl" |
5131  $EGREP '/(lib)?botan(-?[0-9.]+)?-config$' > conftest.candcfg
5132
5133  echo "$as_me: candidate -config programs are:" >&5
5134  sed 's/^/| /' conftest.candcfg >&5
5135  for c in `cat conftest.candcfg`; do
5136    n=`$as_basename -- $c ||
5137$as_expr X/$c : '.*/\([^/][^/]*\)/*$' \| \
5138	 X$c : 'X\(//\)$' \| \
5139	 X$c : 'X\(/\)' \| . 2>/dev/null ||
5140$as_echo X/$c |
5141    sed '/^.*\/\([^/][^/]*\)\/*$/{
5142	    s//\1/
5143	    q
5144	  }
5145	  /^X\/\(\/\/\)$/{
5146	    s//\1/
5147	    q
5148	  }
5149	  /^X\/\(\/\).*/{
5150	    s//\1/
5151	    q
5152	  }
5153	  s/.*/./; q'`
5154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for botan using $n" >&5
5155$as_echo_n "checking for botan using $n... " >&6; }
5156    if _ccflg=`$c --cflags 2>&5` &&
5157       _clibs=`$c --libs 2>&5`
5158    then
5159      botan_CFLAGS="$_ccflg"
5160      botan_LIBS="$_clibs"
5161      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162$as_echo "yes" >&6; }
5163      _notfound=false
5164      break
5165    else
5166      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
5168    fi
5169  done
5170fi
5171
5172if $_notfound; then
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for botan" >&5
5174$as_echo_n "checking for botan... " >&6; }
5175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; guessing" >&5
5176$as_echo "not found; guessing" >&6; }
5177  botan_CFLAGS=
5178  botan_LIBS=-lbotan
5179fi
5180
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether botan is usable" >&5
5183$as_echo_n "checking whether botan is usable... " >&6; }
5184save_LIBS="$LIBS"
5185save_CPPFLAGS="$CPPFLAGS"
5186LIBS="$LIBS ${botan_LIBS}"
5187CPPFLAGS="$CPPFLAGS ${botan_CFLAGS}"
5188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h.  */
5190#include <botan/botan.h>
5191     #if BOTAN_VERSION_CODE < BOTAN_VERSION_CODE_FOR(1,6,3)
5192     #error too old
5193     #endif
5194     #if BOTAN_VERSION_CODE == BOTAN_VERSION_CODE_FOR(1,7,14)
5195     #error version 1.7.14 is not usable for monotone
5196     #endif
5197int
5198main ()
5199{
5200Botan::LibraryInitializer li;
5201  ;
5202  return 0;
5203}
5204
5205_ACEOF
5206if ac_fn_cxx_try_link "$LINENO"; then :
5207  _libusable=yes
5208else
5209  _libusable=no
5210fi
5211rm -f core conftest.err conftest.$ac_objext \
5212    conftest$ac_exeext conftest.$ac_ext
5213LIBS="$save_LIBS"
5214CPPFLAGS="$save_CPPFLAGS"
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libusable" >&5
5216$as_echo "$_libusable" >&6; }
5217if test $_libusable = no; then
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: *** botan_CFLAGS=${botan_CFLAGS}" >&5
5219$as_echo "$as_me: *** botan_CFLAGS=${botan_CFLAGS}" >&6;}
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: *** botan_LIBS=${botan_LIBS}" >&5
5221$as_echo "$as_me: *** botan_LIBS=${botan_LIBS}" >&6;}
5222  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5224as_fn_error $? "Must be able to compile and link programs against botan.
5225See \`config.log' for more details" "$LINENO" 5; }
5226fi
5227
5228
5229rm -f conftest.candcfg conftest.candpc
5230
5231
5232
5233
5234
5235
5236# Probe for the idn library.
5237_notfound=true
5238_verreq=
5239
5240# First test for user overrides.  This should work even if pkg-config
5241# isn't installed.  The use of + instead of :+ is deliberate; the user
5242# should be able to tell us that no flags are required.
5243# (PKG_CHECK_MODULES gets this wrong!)
5244if test x${idn_CFLAGS+set} = xset || test x${idn_LIBS+set} = xset; then
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idn" >&5
5246$as_echo_n "checking for idn... " >&6; }
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: user specified" >&5
5248$as_echo "user specified" >&6; }
5249  _notfound=false
5250fi
5251
5252if $_notfound; then
5253# Second, try a "naive" search for the unqualified package name.  This
5254# also ensures that the ARG_VARs for the desired library are sane.
5255
5256pkg_failed=no
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for idn" >&5
5258$as_echo_n "checking for idn... " >&6; }
5259
5260if test -n "$PKG_CONFIG"; then
5261    if test -n "$idn_CFLAGS"; then
5262        pkg_cv_idn_CFLAGS="$idn_CFLAGS"
5263    else
5264        if test -n "$PKG_CONFIG" && \
5265    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"idn\$_verreq\""; } >&5
5266  ($PKG_CONFIG --exists --print-errors "idn$_verreq") 2>&5
5267  ac_status=$?
5268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269  test $ac_status = 0; }; then
5270  pkg_cv_idn_CFLAGS=`$PKG_CONFIG --cflags "idn$_verreq" 2>/dev/null`
5271else
5272  pkg_failed=yes
5273fi
5274    fi
5275else
5276	pkg_failed=untried
5277fi
5278if test -n "$PKG_CONFIG"; then
5279    if test -n "$idn_LIBS"; then
5280        pkg_cv_idn_LIBS="$idn_LIBS"
5281    else
5282        if test -n "$PKG_CONFIG" && \
5283    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"idn\$_verreq\""; } >&5
5284  ($PKG_CONFIG --exists --print-errors "idn$_verreq") 2>&5
5285  ac_status=$?
5286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5287  test $ac_status = 0; }; then
5288  pkg_cv_idn_LIBS=`$PKG_CONFIG --libs "idn$_verreq" 2>/dev/null`
5289else
5290  pkg_failed=yes
5291fi
5292    fi
5293else
5294	pkg_failed=untried
5295fi
5296
5297
5298
5299if test $pkg_failed = yes; then
5300
5301if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5302        _pkg_short_errors_supported=yes
5303else
5304        _pkg_short_errors_supported=no
5305fi
5306        if test $_pkg_short_errors_supported = yes; then
5307	        idn_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "idn$_verreq"`
5308        else
5309	        idn_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "idn$_verreq"`
5310        fi
5311	# Put the nasty error message in config.log where it belongs
5312	echo "$idn_PKG_ERRORS" >&5
5313
5314	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315$as_echo "no" >&6; }
5316                { $as_echo "$as_me:${as_lineno-$LINENO}: result: idn.pc not found" >&5
5317$as_echo "idn.pc not found" >&6; }
5318elif test $pkg_failed = untried; then
5319	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: idn.pc not found" >&5
5320$as_echo "idn.pc not found" >&6; }
5321else
5322	idn_CFLAGS=$pkg_cv_idn_CFLAGS
5323	idn_LIBS=$pkg_cv_idn_LIBS
5324        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5325$as_echo "yes" >&6; }
5326	_notfound=false
5327fi
5328fi
5329
5330# Third, try looking for alternative names known to pkg-config for
5331# the library.
5332if $_notfound; then
5333  _save_IFS="$IFS"
5334  IFS=":"
5335  set fnord $mtn__full_pkg_config_path
5336  shift
5337  IFS="$_save_IFS"
5338
5339  for pkgcfgdir; do
5340    echo $pkgcfgdir/*idn*.pc
5341  done | tr ' ' "$as_nl" |
5342  $EGREP '/(lib)?idn(-?[0-9.]+)?\.pc$' > conftest.candpc
5343
5344  echo "$as_me: candidate .pc files are:" >&5
5345  sed 's/^/| /' conftest.candpc >&5
5346  for f in `cat conftest.candpc`; do
5347    c=`$as_basename -- $f ||
5348$as_expr X/$f : '.*/\([^/][^/]*\)/*$' \| \
5349	 X$f : 'X\(//\)$' \| \
5350	 X$f : 'X\(/\)' \| . 2>/dev/null ||
5351$as_echo X/$f |
5352    sed '/^.*\/\([^/][^/]*\)\/*$/{
5353	    s//\1/
5354	    q
5355	  }
5356	  /^X\/\(\/\/\)$/{
5357	    s//\1/
5358	    q
5359	  }
5360	  /^X\/\(\/\).*/{
5361	    s//\1/
5362	    q
5363	  }
5364	  s/.*/./; q'`
5365    c=`expr X"$c" : 'X\(.*\)\.pc'`
5366    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idn using $c.pc" >&5
5367$as_echo_n "checking for idn using $c.pc... " >&6; }
5368
5369    pkg_failed=no
5370    if test -n "$PKG_CONFIG"; then
5371    if test -n "$idn_CFLAGS"; then
5372        pkg_cv_idn_CFLAGS="$idn_CFLAGS"
5373    else
5374        if test -n "$PKG_CONFIG" && \
5375    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
5376  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
5377  ac_status=$?
5378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5379  test $ac_status = 0; }; then
5380  pkg_cv_idn_CFLAGS=`$PKG_CONFIG --cflags "$c$_verreq" 2>/dev/null`
5381else
5382  pkg_failed=yes
5383fi
5384    fi
5385else
5386	pkg_failed=untried
5387fi
5388    if test -n "$PKG_CONFIG"; then
5389    if test -n "$idn_LIBS"; then
5390        pkg_cv_idn_LIBS="$idn_LIBS"
5391    else
5392        if test -n "$PKG_CONFIG" && \
5393    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
5394  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
5395  ac_status=$?
5396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5397  test $ac_status = 0; }; then
5398  pkg_cv_idn_LIBS=`$PKG_CONFIG --libs "$c$_verreq" 2>/dev/null`
5399else
5400  pkg_failed=yes
5401fi
5402    fi
5403else
5404	pkg_failed=untried
5405fi
5406    if test $pkg_failed = no; then
5407       idn_CFLAGS=$pkg_cv_idn_CFLAGS
5408       idn_LIBS=$pkg_cv_idn_LIBS
5409       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5410$as_echo "yes" >&6; }
5411       _notfound=false
5412       break
5413    else
5414       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415$as_echo "no" >&6; }
5416    fi
5417  done
5418fi
5419
5420# Fourth, try -config binaries.
5421if $_notfound; then
5422  _save_IFS="$IFS"
5423  IFS=":"
5424  set fnord $PATH
5425  shift
5426  IFS="$_save_IFS"
5427
5428  for pathdir; do
5429    echo $pathdir/*idn*-config
5430  done | tr ' ' "$as_nl" |
5431  $EGREP '/(lib)?idn(-?[0-9.]+)?-config$' > conftest.candcfg
5432
5433  echo "$as_me: candidate -config programs are:" >&5
5434  sed 's/^/| /' conftest.candcfg >&5
5435  for c in `cat conftest.candcfg`; do
5436    n=`$as_basename -- $c ||
5437$as_expr X/$c : '.*/\([^/][^/]*\)/*$' \| \
5438	 X$c : 'X\(//\)$' \| \
5439	 X$c : 'X\(/\)' \| . 2>/dev/null ||
5440$as_echo X/$c |
5441    sed '/^.*\/\([^/][^/]*\)\/*$/{
5442	    s//\1/
5443	    q
5444	  }
5445	  /^X\/\(\/\/\)$/{
5446	    s//\1/
5447	    q
5448	  }
5449	  /^X\/\(\/\).*/{
5450	    s//\1/
5451	    q
5452	  }
5453	  s/.*/./; q'`
5454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idn using $n" >&5
5455$as_echo_n "checking for idn using $n... " >&6; }
5456    if _ccflg=`$c --cflags 2>&5` &&
5457       _clibs=`$c --libs 2>&5`
5458    then
5459      idn_CFLAGS="$_ccflg"
5460      idn_LIBS="$_clibs"
5461      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462$as_echo "yes" >&6; }
5463      _notfound=false
5464      break
5465    else
5466      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467$as_echo "no" >&6; }
5468    fi
5469  done
5470fi
5471
5472if $_notfound; then
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idn" >&5
5474$as_echo_n "checking for idn... " >&6; }
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; guessing" >&5
5476$as_echo "not found; guessing" >&6; }
5477  idn_CFLAGS=
5478  idn_LIBS=-lidn
5479fi
5480
5481
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether idn is usable" >&5
5483$as_echo_n "checking whether idn is usable... " >&6; }
5484save_LIBS="$LIBS"
5485save_CPPFLAGS="$CPPFLAGS"
5486LIBS="$LIBS ${idn_LIBS}"
5487CPPFLAGS="$CPPFLAGS ${idn_CFLAGS}"
5488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h.  */
5490#include <idna.h>
5491int
5492main ()
5493{
5494const char *e = idna_strerror(IDNA_SUCCESS);
5495  ;
5496  return 0;
5497}
5498
5499_ACEOF
5500if ac_fn_cxx_try_link "$LINENO"; then :
5501  _libusable=yes
5502else
5503  _libusable=no
5504fi
5505rm -f core conftest.err conftest.$ac_objext \
5506    conftest$ac_exeext conftest.$ac_ext
5507LIBS="$save_LIBS"
5508CPPFLAGS="$save_CPPFLAGS"
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libusable" >&5
5510$as_echo "$_libusable" >&6; }
5511if test $_libusable = no; then
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: *** idn_CFLAGS=${idn_CFLAGS}" >&5
5513$as_echo "$as_me: *** idn_CFLAGS=${idn_CFLAGS}" >&6;}
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: *** idn_LIBS=${idn_LIBS}" >&5
5515$as_echo "$as_me: *** idn_LIBS=${idn_LIBS}" >&6;}
5516  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5518as_fn_error $? "Must be able to compile and link programs against idn.
5519See \`config.log' for more details" "$LINENO" 5; }
5520fi
5521
5522
5523rm -f conftest.candcfg conftest.candpc
5524
5525
5526
5527
5528
5529
5530# Probe for the lua library.
5531_notfound=true
5532_verreq=" >= 5.1"
5533
5534# First test for user overrides.  This should work even if pkg-config
5535# isn't installed.  The use of + instead of :+ is deliberate; the user
5536# should be able to tell us that no flags are required.
5537# (PKG_CHECK_MODULES gets this wrong!)
5538if test x${lua_CFLAGS+set} = xset || test x${lua_LIBS+set} = xset; then
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
5540$as_echo_n "checking for lua... " >&6; }
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: user specified" >&5
5542$as_echo "user specified" >&6; }
5543  _notfound=false
5544fi
5545
5546if $_notfound; then
5547# Second, try a "naive" search for the unqualified package name.  This
5548# also ensures that the ARG_VARs for the desired library are sane.
5549
5550pkg_failed=no
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
5552$as_echo_n "checking for lua... " >&6; }
5553
5554if test -n "$PKG_CONFIG"; then
5555    if test -n "$lua_CFLAGS"; then
5556        pkg_cv_lua_CFLAGS="$lua_CFLAGS"
5557    else
5558        if test -n "$PKG_CONFIG" && \
5559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\$_verreq\""; } >&5
5560  ($PKG_CONFIG --exists --print-errors "lua$_verreq") 2>&5
5561  ac_status=$?
5562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5563  test $ac_status = 0; }; then
5564  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua$_verreq" 2>/dev/null`
5565else
5566  pkg_failed=yes
5567fi
5568    fi
5569else
5570	pkg_failed=untried
5571fi
5572if test -n "$PKG_CONFIG"; then
5573    if test -n "$lua_LIBS"; then
5574        pkg_cv_lua_LIBS="$lua_LIBS"
5575    else
5576        if test -n "$PKG_CONFIG" && \
5577    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\$_verreq\""; } >&5
5578  ($PKG_CONFIG --exists --print-errors "lua$_verreq") 2>&5
5579  ac_status=$?
5580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581  test $ac_status = 0; }; then
5582  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua$_verreq" 2>/dev/null`
5583else
5584  pkg_failed=yes
5585fi
5586    fi
5587else
5588	pkg_failed=untried
5589fi
5590
5591
5592
5593if test $pkg_failed = yes; then
5594
5595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5596        _pkg_short_errors_supported=yes
5597else
5598        _pkg_short_errors_supported=no
5599fi
5600        if test $_pkg_short_errors_supported = yes; then
5601	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua$_verreq"`
5602        else
5603	        lua_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua$_verreq"`
5604        fi
5605	# Put the nasty error message in config.log where it belongs
5606	echo "$lua_PKG_ERRORS" >&5
5607
5608	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }
5610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: lua.pc not found" >&5
5611$as_echo "lua.pc not found" >&6; }
5612elif test $pkg_failed = untried; then
5613	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lua.pc not found" >&5
5614$as_echo "lua.pc not found" >&6; }
5615else
5616	lua_CFLAGS=$pkg_cv_lua_CFLAGS
5617	lua_LIBS=$pkg_cv_lua_LIBS
5618        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619$as_echo "yes" >&6; }
5620	_notfound=false
5621fi
5622fi
5623
5624# Third, try looking for alternative names known to pkg-config for
5625# the library.
5626if $_notfound; then
5627  _save_IFS="$IFS"
5628  IFS=":"
5629  set fnord $mtn__full_pkg_config_path
5630  shift
5631  IFS="$_save_IFS"
5632
5633  for pkgcfgdir; do
5634    echo $pkgcfgdir/*lua*.pc
5635  done | tr ' ' "$as_nl" |
5636  $EGREP '/(lib)?lua(-?[0-9.]+)?\.pc$' > conftest.candpc
5637
5638  echo "$as_me: candidate .pc files are:" >&5
5639  sed 's/^/| /' conftest.candpc >&5
5640  for f in `cat conftest.candpc`; do
5641    c=`$as_basename -- $f ||
5642$as_expr X/$f : '.*/\([^/][^/]*\)/*$' \| \
5643	 X$f : 'X\(//\)$' \| \
5644	 X$f : 'X\(/\)' \| . 2>/dev/null ||
5645$as_echo X/$f |
5646    sed '/^.*\/\([^/][^/]*\)\/*$/{
5647	    s//\1/
5648	    q
5649	  }
5650	  /^X\/\(\/\/\)$/{
5651	    s//\1/
5652	    q
5653	  }
5654	  /^X\/\(\/\).*/{
5655	    s//\1/
5656	    q
5657	  }
5658	  s/.*/./; q'`
5659    c=`expr X"$c" : 'X\(.*\)\.pc'`
5660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua using $c.pc" >&5
5661$as_echo_n "checking for lua using $c.pc... " >&6; }
5662
5663    pkg_failed=no
5664    if test -n "$PKG_CONFIG"; then
5665    if test -n "$lua_CFLAGS"; then
5666        pkg_cv_lua_CFLAGS="$lua_CFLAGS"
5667    else
5668        if test -n "$PKG_CONFIG" && \
5669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
5670  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
5671  ac_status=$?
5672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673  test $ac_status = 0; }; then
5674  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "$c$_verreq" 2>/dev/null`
5675else
5676  pkg_failed=yes
5677fi
5678    fi
5679else
5680	pkg_failed=untried
5681fi
5682    if test -n "$PKG_CONFIG"; then
5683    if test -n "$lua_LIBS"; then
5684        pkg_cv_lua_LIBS="$lua_LIBS"
5685    else
5686        if test -n "$PKG_CONFIG" && \
5687    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
5688  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
5689  ac_status=$?
5690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691  test $ac_status = 0; }; then
5692  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "$c$_verreq" 2>/dev/null`
5693else
5694  pkg_failed=yes
5695fi
5696    fi
5697else
5698	pkg_failed=untried
5699fi
5700    if test $pkg_failed = no; then
5701       lua_CFLAGS=$pkg_cv_lua_CFLAGS
5702       lua_LIBS=$pkg_cv_lua_LIBS
5703       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704$as_echo "yes" >&6; }
5705       _notfound=false
5706       break
5707    else
5708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710    fi
5711  done
5712fi
5713
5714# Fourth, try -config binaries.
5715if $_notfound; then
5716  _save_IFS="$IFS"
5717  IFS=":"
5718  set fnord $PATH
5719  shift
5720  IFS="$_save_IFS"
5721
5722  for pathdir; do
5723    echo $pathdir/*lua*-config
5724  done | tr ' ' "$as_nl" |
5725  $EGREP '/(lib)?lua(-?[0-9.]+)?-config$' > conftest.candcfg
5726
5727  echo "$as_me: candidate -config programs are:" >&5
5728  sed 's/^/| /' conftest.candcfg >&5
5729  for c in `cat conftest.candcfg`; do
5730    n=`$as_basename -- $c ||
5731$as_expr X/$c : '.*/\([^/][^/]*\)/*$' \| \
5732	 X$c : 'X\(//\)$' \| \
5733	 X$c : 'X\(/\)' \| . 2>/dev/null ||
5734$as_echo X/$c |
5735    sed '/^.*\/\([^/][^/]*\)\/*$/{
5736	    s//\1/
5737	    q
5738	  }
5739	  /^X\/\(\/\/\)$/{
5740	    s//\1/
5741	    q
5742	  }
5743	  /^X\/\(\/\).*/{
5744	    s//\1/
5745	    q
5746	  }
5747	  s/.*/./; q'`
5748    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua using $n" >&5
5749$as_echo_n "checking for lua using $n... " >&6; }
5750    if _ccflg=`$c --cflags 2>&5` &&
5751       _clibs=`$c --libs 2>&5`
5752    then
5753      lua_CFLAGS="$_ccflg"
5754      lua_LIBS="$_clibs"
5755      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756$as_echo "yes" >&6; }
5757      _notfound=false
5758      break
5759    else
5760      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762    fi
5763  done
5764fi
5765
5766if $_notfound; then
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
5768$as_echo_n "checking for lua... " >&6; }
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; guessing" >&5
5770$as_echo "not found; guessing" >&6; }
5771  lua_CFLAGS=
5772  lua_LIBS=-llua
5773fi
5774
5775
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lua is usable" >&5
5777$as_echo_n "checking whether lua is usable... " >&6; }
5778save_LIBS="$LIBS"
5779save_CPPFLAGS="$CPPFLAGS"
5780LIBS="$LIBS ${lua_LIBS}"
5781CPPFLAGS="$CPPFLAGS ${lua_CFLAGS}"
5782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h.  */
5784#ifdef __cplusplus
5785     #include <lua.hpp>
5786     #else
5787     #include <lua.h>
5788     #include <lualib.h>
5789     #include <lauxlib.h>
5790     #endif
5791     #if LUA_VERSION_NUM < 501
5792     #error out of date
5793     #endif
5794int
5795main ()
5796{
5797lua_State *st = luaL_newstate();
5798  ;
5799  return 0;
5800}
5801
5802_ACEOF
5803if ac_fn_cxx_try_link "$LINENO"; then :
5804  _libusable=yes
5805else
5806  _libusable=no
5807fi
5808rm -f core conftest.err conftest.$ac_objext \
5809    conftest$ac_exeext conftest.$ac_ext
5810LIBS="$save_LIBS"
5811CPPFLAGS="$save_CPPFLAGS"
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libusable" >&5
5813$as_echo "$_libusable" >&6; }
5814if test $_libusable = no; then
5815  { $as_echo "$as_me:${as_lineno-$LINENO}: *** lua_CFLAGS=${lua_CFLAGS}" >&5
5816$as_echo "$as_me: *** lua_CFLAGS=${lua_CFLAGS}" >&6;}
5817  { $as_echo "$as_me:${as_lineno-$LINENO}: *** lua_LIBS=${lua_LIBS}" >&5
5818$as_echo "$as_me: *** lua_LIBS=${lua_LIBS}" >&6;}
5819  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5821as_fn_error $? "Must be able to compile and link programs against lua.
5822See \`config.log' for more details" "$LINENO" 5; }
5823fi
5824
5825
5826rm -f conftest.candcfg conftest.candpc
5827
5828
5829
5830
5831
5832
5833# Probe for the pcre library.
5834_notfound=true
5835_verreq=" >= 7.4"
5836
5837# First test for user overrides.  This should work even if pkg-config
5838# isn't installed.  The use of + instead of :+ is deliberate; the user
5839# should be able to tell us that no flags are required.
5840# (PKG_CHECK_MODULES gets this wrong!)
5841if test x${pcre_CFLAGS+set} = xset || test x${pcre_LIBS+set} = xset; then
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
5843$as_echo_n "checking for pcre... " >&6; }
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: user specified" >&5
5845$as_echo "user specified" >&6; }
5846  _notfound=false
5847fi
5848
5849if $_notfound; then
5850# Second, try a "naive" search for the unqualified package name.  This
5851# also ensures that the ARG_VARs for the desired library are sane.
5852
5853pkg_failed=no
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
5855$as_echo_n "checking for pcre... " >&6; }
5856
5857if test -n "$PKG_CONFIG"; then
5858    if test -n "$pcre_CFLAGS"; then
5859        pkg_cv_pcre_CFLAGS="$pcre_CFLAGS"
5860    else
5861        if test -n "$PKG_CONFIG" && \
5862    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pcre\$_verreq\""; } >&5
5863  ($PKG_CONFIG --exists --print-errors "pcre$_verreq") 2>&5
5864  ac_status=$?
5865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866  test $ac_status = 0; }; then
5867  pkg_cv_pcre_CFLAGS=`$PKG_CONFIG --cflags "pcre$_verreq" 2>/dev/null`
5868else
5869  pkg_failed=yes
5870fi
5871    fi
5872else
5873	pkg_failed=untried
5874fi
5875if test -n "$PKG_CONFIG"; then
5876    if test -n "$pcre_LIBS"; then
5877        pkg_cv_pcre_LIBS="$pcre_LIBS"
5878    else
5879        if test -n "$PKG_CONFIG" && \
5880    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pcre\$_verreq\""; } >&5
5881  ($PKG_CONFIG --exists --print-errors "pcre$_verreq") 2>&5
5882  ac_status=$?
5883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884  test $ac_status = 0; }; then
5885  pkg_cv_pcre_LIBS=`$PKG_CONFIG --libs "pcre$_verreq" 2>/dev/null`
5886else
5887  pkg_failed=yes
5888fi
5889    fi
5890else
5891	pkg_failed=untried
5892fi
5893
5894
5895
5896if test $pkg_failed = yes; then
5897
5898if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5899        _pkg_short_errors_supported=yes
5900else
5901        _pkg_short_errors_supported=no
5902fi
5903        if test $_pkg_short_errors_supported = yes; then
5904	        pcre_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pcre$_verreq"`
5905        else
5906	        pcre_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pcre$_verreq"`
5907        fi
5908	# Put the nasty error message in config.log where it belongs
5909	echo "$pcre_PKG_ERRORS" >&5
5910
5911	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: pcre.pc not found" >&5
5914$as_echo "pcre.pc not found" >&6; }
5915elif test $pkg_failed = untried; then
5916	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pcre.pc not found" >&5
5917$as_echo "pcre.pc not found" >&6; }
5918else
5919	pcre_CFLAGS=$pkg_cv_pcre_CFLAGS
5920	pcre_LIBS=$pkg_cv_pcre_LIBS
5921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5922$as_echo "yes" >&6; }
5923	_notfound=false
5924fi
5925fi
5926
5927# Third, try looking for alternative names known to pkg-config for
5928# the library.
5929if $_notfound; then
5930  _save_IFS="$IFS"
5931  IFS=":"
5932  set fnord $mtn__full_pkg_config_path
5933  shift
5934  IFS="$_save_IFS"
5935
5936  for pkgcfgdir; do
5937    echo $pkgcfgdir/*pcre*.pc
5938  done | tr ' ' "$as_nl" |
5939  $EGREP '/(lib)?pcre(-?[0-9.]+)?\.pc$' > conftest.candpc
5940
5941  echo "$as_me: candidate .pc files are:" >&5
5942  sed 's/^/| /' conftest.candpc >&5
5943  for f in `cat conftest.candpc`; do
5944    c=`$as_basename -- $f ||
5945$as_expr X/$f : '.*/\([^/][^/]*\)/*$' \| \
5946	 X$f : 'X\(//\)$' \| \
5947	 X$f : 'X\(/\)' \| . 2>/dev/null ||
5948$as_echo X/$f |
5949    sed '/^.*\/\([^/][^/]*\)\/*$/{
5950	    s//\1/
5951	    q
5952	  }
5953	  /^X\/\(\/\/\)$/{
5954	    s//\1/
5955	    q
5956	  }
5957	  /^X\/\(\/\).*/{
5958	    s//\1/
5959	    q
5960	  }
5961	  s/.*/./; q'`
5962    c=`expr X"$c" : 'X\(.*\)\.pc'`
5963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre using $c.pc" >&5
5964$as_echo_n "checking for pcre using $c.pc... " >&6; }
5965
5966    pkg_failed=no
5967    if test -n "$PKG_CONFIG"; then
5968    if test -n "$pcre_CFLAGS"; then
5969        pkg_cv_pcre_CFLAGS="$pcre_CFLAGS"
5970    else
5971        if test -n "$PKG_CONFIG" && \
5972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
5973  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
5974  ac_status=$?
5975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5976  test $ac_status = 0; }; then
5977  pkg_cv_pcre_CFLAGS=`$PKG_CONFIG --cflags "$c$_verreq" 2>/dev/null`
5978else
5979  pkg_failed=yes
5980fi
5981    fi
5982else
5983	pkg_failed=untried
5984fi
5985    if test -n "$PKG_CONFIG"; then
5986    if test -n "$pcre_LIBS"; then
5987        pkg_cv_pcre_LIBS="$pcre_LIBS"
5988    else
5989        if test -n "$PKG_CONFIG" && \
5990    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
5991  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
5992  ac_status=$?
5993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994  test $ac_status = 0; }; then
5995  pkg_cv_pcre_LIBS=`$PKG_CONFIG --libs "$c$_verreq" 2>/dev/null`
5996else
5997  pkg_failed=yes
5998fi
5999    fi
6000else
6001	pkg_failed=untried
6002fi
6003    if test $pkg_failed = no; then
6004       pcre_CFLAGS=$pkg_cv_pcre_CFLAGS
6005       pcre_LIBS=$pkg_cv_pcre_LIBS
6006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6007$as_echo "yes" >&6; }
6008       _notfound=false
6009       break
6010    else
6011       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012$as_echo "no" >&6; }
6013    fi
6014  done
6015fi
6016
6017# Fourth, try -config binaries.
6018if $_notfound; then
6019  _save_IFS="$IFS"
6020  IFS=":"
6021  set fnord $PATH
6022  shift
6023  IFS="$_save_IFS"
6024
6025  for pathdir; do
6026    echo $pathdir/*pcre*-config
6027  done | tr ' ' "$as_nl" |
6028  $EGREP '/(lib)?pcre(-?[0-9.]+)?-config$' > conftest.candcfg
6029
6030  echo "$as_me: candidate -config programs are:" >&5
6031  sed 's/^/| /' conftest.candcfg >&5
6032  for c in `cat conftest.candcfg`; do
6033    n=`$as_basename -- $c ||
6034$as_expr X/$c : '.*/\([^/][^/]*\)/*$' \| \
6035	 X$c : 'X\(//\)$' \| \
6036	 X$c : 'X\(/\)' \| . 2>/dev/null ||
6037$as_echo X/$c |
6038    sed '/^.*\/\([^/][^/]*\)\/*$/{
6039	    s//\1/
6040	    q
6041	  }
6042	  /^X\/\(\/\/\)$/{
6043	    s//\1/
6044	    q
6045	  }
6046	  /^X\/\(\/\).*/{
6047	    s//\1/
6048	    q
6049	  }
6050	  s/.*/./; q'`
6051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre using $n" >&5
6052$as_echo_n "checking for pcre using $n... " >&6; }
6053    if _ccflg=`$c --cflags 2>&5` &&
6054       _clibs=`$c --libs 2>&5`
6055    then
6056      pcre_CFLAGS="$_ccflg"
6057      pcre_LIBS="$_clibs"
6058      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6059$as_echo "yes" >&6; }
6060      _notfound=false
6061      break
6062    else
6063      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065    fi
6066  done
6067fi
6068
6069if $_notfound; then
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
6071$as_echo_n "checking for pcre... " >&6; }
6072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; guessing" >&5
6073$as_echo "not found; guessing" >&6; }
6074  pcre_CFLAGS=
6075  pcre_LIBS=-lpcre
6076fi
6077
6078
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcre is usable" >&5
6080$as_echo_n "checking whether pcre is usable... " >&6; }
6081save_LIBS="$LIBS"
6082save_CPPFLAGS="$CPPFLAGS"
6083LIBS="$LIBS ${pcre_LIBS}"
6084CPPFLAGS="$CPPFLAGS ${pcre_CFLAGS}"
6085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h.  */
6087#include <pcre.h>
6088     #if PCRE_MAJOR < 7 || (PCRE_MAJOR == 7 && PCRE_MINOR < 4)
6089     #error out of date
6090     #endif
6091int
6092main ()
6093{
6094const char *e;
6095     int dummy;
6096     int o;
6097     /* Make sure some definitions are present. */
6098     dummy = PCRE_NEWLINE_CR;
6099     dummy = PCRE_DUPNAMES;
6100     pcre *re = pcre_compile("foo", 0, &e, &o, 0);
6101  ;
6102  return 0;
6103}
6104
6105_ACEOF
6106if ac_fn_cxx_try_link "$LINENO"; then :
6107  _libusable=yes
6108else
6109  _libusable=no
6110fi
6111rm -f core conftest.err conftest.$ac_objext \
6112    conftest$ac_exeext conftest.$ac_ext
6113LIBS="$save_LIBS"
6114CPPFLAGS="$save_CPPFLAGS"
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libusable" >&5
6116$as_echo "$_libusable" >&6; }
6117if test $_libusable = no; then
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: *** pcre_CFLAGS=${pcre_CFLAGS}" >&5
6119$as_echo "$as_me: *** pcre_CFLAGS=${pcre_CFLAGS}" >&6;}
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: *** pcre_LIBS=${pcre_LIBS}" >&5
6121$as_echo "$as_me: *** pcre_LIBS=${pcre_LIBS}" >&6;}
6122  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6124as_fn_error $? "Must be able to compile and link programs against pcre.
6125See \`config.log' for more details" "$LINENO" 5; }
6126fi
6127
6128
6129rm -f conftest.candcfg conftest.candpc
6130
6131
6132
6133
6134
6135
6136# Probe for the sqlite3 library.
6137_notfound=true
6138_verreq=" >= 3.3"
6139
6140# First test for user overrides.  This should work even if pkg-config
6141# isn't installed.  The use of + instead of :+ is deliberate; the user
6142# should be able to tell us that no flags are required.
6143# (PKG_CHECK_MODULES gets this wrong!)
6144if test x${sqlite3_CFLAGS+set} = xset || test x${sqlite3_LIBS+set} = xset; then
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
6146$as_echo_n "checking for sqlite3... " >&6; }
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: user specified" >&5
6148$as_echo "user specified" >&6; }
6149  _notfound=false
6150fi
6151
6152if $_notfound; then
6153# Second, try a "naive" search for the unqualified package name.  This
6154# also ensures that the ARG_VARs for the desired library are sane.
6155
6156pkg_failed=no
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
6158$as_echo_n "checking for sqlite3... " >&6; }
6159
6160if test -n "$PKG_CONFIG"; then
6161    if test -n "$sqlite3_CFLAGS"; then
6162        pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS"
6163    else
6164        if test -n "$PKG_CONFIG" && \
6165    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\$_verreq\""; } >&5
6166  ($PKG_CONFIG --exists --print-errors "sqlite3$_verreq") 2>&5
6167  ac_status=$?
6168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169  test $ac_status = 0; }; then
6170  pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3$_verreq" 2>/dev/null`
6171else
6172  pkg_failed=yes
6173fi
6174    fi
6175else
6176	pkg_failed=untried
6177fi
6178if test -n "$PKG_CONFIG"; then
6179    if test -n "$sqlite3_LIBS"; then
6180        pkg_cv_sqlite3_LIBS="$sqlite3_LIBS"
6181    else
6182        if test -n "$PKG_CONFIG" && \
6183    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\$_verreq\""; } >&5
6184  ($PKG_CONFIG --exists --print-errors "sqlite3$_verreq") 2>&5
6185  ac_status=$?
6186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187  test $ac_status = 0; }; then
6188  pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "sqlite3$_verreq" 2>/dev/null`
6189else
6190  pkg_failed=yes
6191fi
6192    fi
6193else
6194	pkg_failed=untried
6195fi
6196
6197
6198
6199if test $pkg_failed = yes; then
6200
6201if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6202        _pkg_short_errors_supported=yes
6203else
6204        _pkg_short_errors_supported=no
6205fi
6206        if test $_pkg_short_errors_supported = yes; then
6207	        sqlite3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3$_verreq"`
6208        else
6209	        sqlite3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3$_verreq"`
6210        fi
6211	# Put the nasty error message in config.log where it belongs
6212	echo "$sqlite3_PKG_ERRORS" >&5
6213
6214	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216                { $as_echo "$as_me:${as_lineno-$LINENO}: result: sqlite3.pc not found" >&5
6217$as_echo "sqlite3.pc not found" >&6; }
6218elif test $pkg_failed = untried; then
6219	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: sqlite3.pc not found" >&5
6220$as_echo "sqlite3.pc not found" >&6; }
6221else
6222	sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS
6223	sqlite3_LIBS=$pkg_cv_sqlite3_LIBS
6224        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6225$as_echo "yes" >&6; }
6226	_notfound=false
6227fi
6228fi
6229
6230# Third, try looking for alternative names known to pkg-config for
6231# the library.
6232if $_notfound; then
6233  _save_IFS="$IFS"
6234  IFS=":"
6235  set fnord $mtn__full_pkg_config_path
6236  shift
6237  IFS="$_save_IFS"
6238
6239  for pkgcfgdir; do
6240    echo $pkgcfgdir/*sqlite3*.pc
6241  done | tr ' ' "$as_nl" |
6242  $EGREP '/(lib)?sqlite3(-?[0-9.]+)?\.pc$' > conftest.candpc
6243
6244  echo "$as_me: candidate .pc files are:" >&5
6245  sed 's/^/| /' conftest.candpc >&5
6246  for f in `cat conftest.candpc`; do
6247    c=`$as_basename -- $f ||
6248$as_expr X/$f : '.*/\([^/][^/]*\)/*$' \| \
6249	 X$f : 'X\(//\)$' \| \
6250	 X$f : 'X\(/\)' \| . 2>/dev/null ||
6251$as_echo X/$f |
6252    sed '/^.*\/\([^/][^/]*\)\/*$/{
6253	    s//\1/
6254	    q
6255	  }
6256	  /^X\/\(\/\/\)$/{
6257	    s//\1/
6258	    q
6259	  }
6260	  /^X\/\(\/\).*/{
6261	    s//\1/
6262	    q
6263	  }
6264	  s/.*/./; q'`
6265    c=`expr X"$c" : 'X\(.*\)\.pc'`
6266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 using $c.pc" >&5
6267$as_echo_n "checking for sqlite3 using $c.pc... " >&6; }
6268
6269    pkg_failed=no
6270    if test -n "$PKG_CONFIG"; then
6271    if test -n "$sqlite3_CFLAGS"; then
6272        pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS"
6273    else
6274        if test -n "$PKG_CONFIG" && \
6275    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
6276  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
6277  ac_status=$?
6278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279  test $ac_status = 0; }; then
6280  pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "$c$_verreq" 2>/dev/null`
6281else
6282  pkg_failed=yes
6283fi
6284    fi
6285else
6286	pkg_failed=untried
6287fi
6288    if test -n "$PKG_CONFIG"; then
6289    if test -n "$sqlite3_LIBS"; then
6290        pkg_cv_sqlite3_LIBS="$sqlite3_LIBS"
6291    else
6292        if test -n "$PKG_CONFIG" && \
6293    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$c\$_verreq\""; } >&5
6294  ($PKG_CONFIG --exists --print-errors "$c$_verreq") 2>&5
6295  ac_status=$?
6296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297  test $ac_status = 0; }; then
6298  pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "$c$_verreq" 2>/dev/null`
6299else
6300  pkg_failed=yes
6301fi
6302    fi
6303else
6304	pkg_failed=untried
6305fi
6306    if test $pkg_failed = no; then
6307       sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS
6308       sqlite3_LIBS=$pkg_cv_sqlite3_LIBS
6309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6310$as_echo "yes" >&6; }
6311       _notfound=false
6312       break
6313    else
6314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
6316    fi
6317  done
6318fi
6319
6320# Fourth, try -config binaries.
6321if $_notfound; then
6322  _save_IFS="$IFS"
6323  IFS=":"
6324  set fnord $PATH
6325  shift
6326  IFS="$_save_IFS"
6327
6328  for pathdir; do
6329    echo $pathdir/*sqlite3*-config
6330  done | tr ' ' "$as_nl" |
6331  $EGREP '/(lib)?sqlite3(-?[0-9.]+)?-config$' > conftest.candcfg
6332
6333  echo "$as_me: candidate -config programs are:" >&5
6334  sed 's/^/| /' conftest.candcfg >&5
6335  for c in `cat conftest.candcfg`; do
6336    n=`$as_basename -- $c ||
6337$as_expr X/$c : '.*/\([^/][^/]*\)/*$' \| \
6338	 X$c : 'X\(//\)$' \| \
6339	 X$c : 'X\(/\)' \| . 2>/dev/null ||
6340$as_echo X/$c |
6341    sed '/^.*\/\([^/][^/]*\)\/*$/{
6342	    s//\1/
6343	    q
6344	  }
6345	  /^X\/\(\/\/\)$/{
6346	    s//\1/
6347	    q
6348	  }
6349	  /^X\/\(\/\).*/{
6350	    s//\1/
6351	    q
6352	  }
6353	  s/.*/./; q'`
6354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 using $n" >&5
6355$as_echo_n "checking for sqlite3 using $n... " >&6; }
6356    if _ccflg=`$c --cflags 2>&5` &&
6357       _clibs=`$c --libs 2>&5`
6358    then
6359      sqlite3_CFLAGS="$_ccflg"
6360      sqlite3_LIBS="$_clibs"
6361      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6362$as_echo "yes" >&6; }
6363      _notfound=false
6364      break
6365    else
6366      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367$as_echo "no" >&6; }
6368    fi
6369  done
6370fi
6371
6372if $_notfound; then
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
6374$as_echo_n "checking for sqlite3... " >&6; }
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; guessing" >&5
6376$as_echo "not found; guessing" >&6; }
6377  sqlite3_CFLAGS=
6378  sqlite3_LIBS=-lsqlite3
6379fi
6380
6381
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sqlite3 is usable" >&5
6383$as_echo_n "checking whether sqlite3 is usable... " >&6; }
6384save_LIBS="$LIBS"
6385save_CPPFLAGS="$CPPFLAGS"
6386LIBS="$LIBS ${sqlite3_LIBS}"
6387CPPFLAGS="$CPPFLAGS ${sqlite3_CFLAGS}"
6388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h.  */
6390#include <sqlite3.h>
6391     #if SQLITE_VERSION_NUMBER < 3003000
6392     #error out of date
6393     #endif
6394int
6395main ()
6396{
6397sqlite3 *st;
6398     sqlite3_open("testfile.db", &st);
6399     sqlite3_close(st);
6400  ;
6401  return 0;
6402}
6403
6404_ACEOF
6405if ac_fn_cxx_try_link "$LINENO"; then :
6406  _libusable=yes
6407else
6408  _libusable=no
6409fi
6410rm -f core conftest.err conftest.$ac_objext \
6411    conftest$ac_exeext conftest.$ac_ext
6412LIBS="$save_LIBS"
6413CPPFLAGS="$save_CPPFLAGS"
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libusable" >&5
6415$as_echo "$_libusable" >&6; }
6416if test $_libusable = no; then
6417  { $as_echo "$as_me:${as_lineno-$LINENO}: *** sqlite3_CFLAGS=${sqlite3_CFLAGS}" >&5
6418$as_echo "$as_me: *** sqlite3_CFLAGS=${sqlite3_CFLAGS}" >&6;}
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: *** sqlite3_LIBS=${sqlite3_LIBS}" >&5
6420$as_echo "$as_me: *** sqlite3_LIBS=${sqlite3_LIBS}" >&6;}
6421  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6423as_fn_error $? "Must be able to compile and link programs against sqlite3.
6424See \`config.log' for more details" "$LINENO" 5; }
6425fi
6426
6427
6428rm -f conftest.candcfg conftest.candpc
6429
6430
6431
6432# Check whether --enable-ipv6 was given.
6433if test "${enable_ipv6+set}" = set; then :
6434  enableval=$enable_ipv6;
6435else
6436  enable_ipv6=auto
6437fi
6438
6439 if test x"${enable_ipv6}" = xauto || test x"${enable_ipv6}" = xyes; then
6440   ac_fn_cxx_check_type "$LINENO" "sockaddr_in6" "ac_cv_type_sockaddr_in6" "#ifdef WIN32
6441                     #include <winsock2.h>
6442                     #else
6443                     #include <sys/types.h>
6444                     #include <sys/socket.h>
6445                     #include <netinet/in.h>
6446                     #include <arpa/inet.h>
6447                     #endif
6448"
6449if test "x$ac_cv_type_sockaddr_in6" = xyes; then :
6450  enable_ipv6=yes
6451else
6452  if test x"${enable_ipv6}" = xyes; then
6453         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6455as_fn_error $? "IPv6 explicitly requested but it could not be found
6456See \`config.log' for more details" "$LINENO" 5; }
6457       fi
6458       enable_ipv6=no
6459fi
6460
6461 fi
6462 # Control cannot reach this point without $enable_ipv6 being either
6463 # "yes" or "no".
6464 if test $enable_ipv6 = yes; then
6465
6466$as_echo "#define USE_IPV6 1" >>confdefs.h
6467
6468 fi
6469
6470  if test $enable_ipv6 = no; then
6471  MISSING_INET6_TRUE=
6472  MISSING_INET6_FALSE='#'
6473else
6474  MISSING_INET6_TRUE='#'
6475  MISSING_INET6_FALSE=
6476fi
6477
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6479$as_echo_n "checking for library containing gethostbyname... " >&6; }
6480if ${ac_cv_search_gethostbyname+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  ac_func_search_save_LIBS=$LIBS
6484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486
6487/* Override any GCC internal prototype to avoid an error.
6488   Use char because int might match the return type of a GCC
6489   builtin and then its argument prototype would still apply.  */
6490#ifdef __cplusplus
6491extern "C"
6492#endif
6493char gethostbyname ();
6494int
6495main ()
6496{
6497return gethostbyname ();
6498  ;
6499  return 0;
6500}
6501_ACEOF
6502for ac_lib in '' nsl; do
6503  if test -z "$ac_lib"; then
6504    ac_res="none required"
6505  else
6506    ac_res=-l$ac_lib
6507    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6508  fi
6509  if ac_fn_cxx_try_link "$LINENO"; then :
6510  ac_cv_search_gethostbyname=$ac_res
6511fi
6512rm -f core conftest.err conftest.$ac_objext \
6513    conftest$ac_exeext
6514  if ${ac_cv_search_gethostbyname+:} false; then :
6515  break
6516fi
6517done
6518if ${ac_cv_search_gethostbyname+:} false; then :
6519
6520else
6521  ac_cv_search_gethostbyname=no
6522fi
6523rm conftest.$ac_ext
6524LIBS=$ac_func_search_save_LIBS
6525fi
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6527$as_echo "$ac_cv_search_gethostbyname" >&6; }
6528ac_res=$ac_cv_search_gethostbyname
6529if test "$ac_res" != no; then :
6530  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6531
6532fi
6533
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing accept" >&5
6535$as_echo_n "checking for library containing accept... " >&6; }
6536if ${ac_cv_search_accept+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  ac_func_search_save_LIBS=$LIBS
6540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h.  */
6542
6543/* Override any GCC internal prototype to avoid an error.
6544   Use char because int might match the return type of a GCC
6545   builtin and then its argument prototype would still apply.  */
6546#ifdef __cplusplus
6547extern "C"
6548#endif
6549char accept ();
6550int
6551main ()
6552{
6553return accept ();
6554  ;
6555  return 0;
6556}
6557_ACEOF
6558for ac_lib in '' socket; do
6559  if test -z "$ac_lib"; then
6560    ac_res="none required"
6561  else
6562    ac_res=-l$ac_lib
6563    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6564  fi
6565  if ac_fn_cxx_try_link "$LINENO"; then :
6566  ac_cv_search_accept=$ac_res
6567fi
6568rm -f core conftest.err conftest.$ac_objext \
6569    conftest$ac_exeext
6570  if ${ac_cv_search_accept+:} false; then :
6571  break
6572fi
6573done
6574if ${ac_cv_search_accept+:} false; then :
6575
6576else
6577  ac_cv_search_accept=no
6578fi
6579rm conftest.$ac_ext
6580LIBS=$ac_func_search_save_LIBS
6581fi
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_accept" >&5
6583$as_echo "$ac_cv_search_accept" >&6; }
6584ac_res=$ac_cv_search_accept
6585if test "$ac_res" != no; then :
6586  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6587
6588fi
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6591$as_echo_n "checking for library containing inet_aton... " >&6; }
6592if ${ac_cv_search_inet_aton+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  ac_func_search_save_LIBS=$LIBS
6596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598
6599/* Override any GCC internal prototype to avoid an error.
6600   Use char because int might match the return type of a GCC
6601   builtin and then its argument prototype would still apply.  */
6602#ifdef __cplusplus
6603extern "C"
6604#endif
6605char inet_aton ();
6606int
6607main ()
6608{
6609return inet_aton ();
6610  ;
6611  return 0;
6612}
6613_ACEOF
6614for ac_lib in '' resolv; do
6615  if test -z "$ac_lib"; then
6616    ac_res="none required"
6617  else
6618    ac_res=-l$ac_lib
6619    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6620  fi
6621  if ac_fn_cxx_try_link "$LINENO"; then :
6622  ac_cv_search_inet_aton=$ac_res
6623fi
6624rm -f core conftest.err conftest.$ac_objext \
6625    conftest$ac_exeext
6626  if ${ac_cv_search_inet_aton+:} false; then :
6627  break
6628fi
6629done
6630if ${ac_cv_search_inet_aton+:} false; then :
6631
6632else
6633  ac_cv_search_inet_aton=no
6634fi
6635rm conftest.$ac_ext
6636LIBS=$ac_func_search_save_LIBS
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6639$as_echo "$ac_cv_search_inet_aton" >&6; }
6640ac_res=$ac_cv_search_inet_aton
6641if test "$ac_res" != no; then :
6642  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6643
6644fi
6645
6646 for ac_func in gethostbyaddr inet_ntoa socket
6647do :
6648  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6649ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6650if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6651  cat >>confdefs.h <<_ACEOF
6652#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6653_ACEOF
6654
6655fi
6656done
6657
6658 ac_fn_cxx_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
6659if test "x$ac_cv_func_inet_pton" = xyes; then :
6660   if false; then
6661  MISSING_INET_PTON_TRUE=
6662  MISSING_INET_PTON_FALSE='#'
6663else
6664  MISSING_INET_PTON_TRUE='#'
6665  MISSING_INET_PTON_FALSE=
6666fi
6667
6668else
6669   if true; then
6670  MISSING_INET_PTON_TRUE=
6671  MISSING_INET_PTON_FALSE='#'
6672else
6673  MISSING_INET_PTON_TRUE='#'
6674  MISSING_INET_PTON_FALSE=
6675fi
6676
6677fi
6678
6679
6680 ac_fn_cxx_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
6681if test "x$ac_cv_func_inet_ntop" = xyes; then :
6682   if false; then
6683  MISSING_INET_NTOP_TRUE=
6684  MISSING_INET_NTOP_FALSE='#'
6685else
6686  MISSING_INET_NTOP_TRUE='#'
6687  MISSING_INET_NTOP_FALSE=
6688fi
6689
6690else
6691   if true; then
6692  MISSING_INET_NTOP_TRUE=
6693  MISSING_INET_NTOP_FALSE='#'
6694else
6695  MISSING_INET_NTOP_TRUE='#'
6696  MISSING_INET_NTOP_FALSE=
6697fi
6698
6699fi
6700
6701
6702 ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6703if test "x$ac_cv_func_getaddrinfo" = xyes; then :
6704   if false; then
6705  MISSING_GETADDRINFO_TRUE=
6706  MISSING_GETADDRINFO_FALSE='#'
6707else
6708  MISSING_GETADDRINFO_TRUE='#'
6709  MISSING_GETADDRINFO_FALSE=
6710fi
6711
6712else
6713   if true; then
6714  MISSING_GETADDRINFO_TRUE=
6715  MISSING_GETADDRINFO_FALSE='#'
6716else
6717  MISSING_GETADDRINFO_TRUE='#'
6718  MISSING_GETADDRINFO_FALSE=
6719fi
6720
6721fi
6722
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INADDR_NONE is defined" >&5
6724$as_echo_n "checking whether INADDR_NONE is defined... " >&6; }
6725if ${ac_cv_have_inaddr_none+:} false; then :
6726  $as_echo_n "(cached) " >&6
6727else
6728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h.  */
6730
6731#include <sys/types.h>
6732#include <sys/socket.h>
6733#include <netinet/in.h>
6734#include <arpa/inet.h>
6735
6736int
6737main ()
6738{
6739
6740unsigned long foo = INADDR_NONE;
6741
6742  ;
6743  return 0;
6744}
6745_ACEOF
6746if ac_fn_cxx_try_compile "$LINENO"; then :
6747  ac_cv_have_inaddr_none=yes
6748else
6749  ac_cv_have_inaddr_none=no
6750fi
6751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752fi
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_inaddr_none" >&5
6754$as_echo "$ac_cv_have_inaddr_none" >&6; }
6755 if test x$ac_cv_have_inaddr_none != xyes; then
6756
6757$as_echo "#define INADDR_NONE 0xffffffff" >>confdefs.h
6758
6759 fi
6760 ac_fn_cxx_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6761  #include <sys/types.h>
6762  #include <sys/socket.h>
6763
6764"
6765if test "x$ac_cv_type_socklen_t" = xyes; then :
6766
6767cat >>confdefs.h <<_ACEOF
6768#define HAVE_SOCKLEN_T 1
6769_ACEOF
6770
6771
6772fi
6773
6774
6775
6776# Checks for header files.
6777
6778for ac_header in cxxabi.h fcntl.h netinet/in.h
6779do :
6780  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6781ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#
6782"
6783if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6784  cat >>confdefs.h <<_ACEOF
6785#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6786_ACEOF
6787
6788fi
6789
6790done
6791
6792
6793# check for language features and compiler bugs
6794
6795
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports typeof" >&5
6797$as_echo_n "checking whether the compiler supports typeof... " >&6; }
6798if ${ac_cv_cxx_typeof+:} false; then :
6799  $as_echo_n "(cached) " >&6
6800else
6801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h.  */
6803 int x; typeof (x) y[6];
6804_ACEOF
6805if ac_fn_cxx_try_compile "$LINENO"; then :
6806  ac_cv_cxx_typeof=yes
6807else
6808  ac_cv_cxx_typeof=no
6809fi
6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_typeof" >&5
6814$as_echo "$ac_cv_cxx_typeof" >&6; }
6815if test "$ac_cv_cxx_typeof" = yes; then
6816
6817$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
6818
6819fi
6820
6821
6822
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports extern template" >&5
6824$as_echo_n "checking whether the compiler supports extern template... " >&6; }
6825if ${ac_cv_cxx_extern_template+:} false; then :
6826  $as_echo_n "(cached) " >&6
6827else
6828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830
6831  template <typename T> void foo(T);
6832  extern template void foo<int>(int);
6833
6834_ACEOF
6835if ac_fn_cxx_try_compile "$LINENO"; then :
6836  ac_cv_cxx_extern_template=yes
6837else
6838  ac_cv_cxx_extern_template=no
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841
6842fi
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_extern_template" >&5
6844$as_echo "$ac_cv_cxx_extern_template" >&6; }
6845if test x$ac_cv_cxx_extern_template = xyes; then
6846
6847$as_echo "#define HAVE_EXTERN_TEMPLATE 1" >>confdefs.h
6848
6849fi
6850
6851
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __gnu_cxx::hash_map" >&5
6854$as_echo_n "checking whether the compiler supports __gnu_cxx::hash_map... " >&6; }
6855if ${ac_cv_cxx_gnucxx_hashmap+:} false; then :
6856  $as_echo_n "(cached) " >&6
6857else
6858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h.  */
6860
6861#include <ext/hash_map>
6862using __gnu_cxx::hash_map;
6863
6864_ACEOF
6865if ac_fn_cxx_try_compile "$LINENO"; then :
6866  ac_cv_cxx_gnucxx_hashmap=yes
6867else
6868  ac_cv_cxx_gnucxx_hashmap=no
6869fi
6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871
6872fi
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_gnucxx_hashmap" >&5
6874$as_echo "$ac_cv_cxx_gnucxx_hashmap" >&6; }
6875if test "$ac_cv_cxx_gnucxx_hashmap" = yes; then
6876
6877$as_echo "#define HAVE_GNUCXX_HASHMAP 1" >>confdefs.h
6878
6879fi
6880
6881
6882
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports std::hash_map" >&5
6884$as_echo_n "checking whether the compiler supports std::hash_map... " >&6; }
6885if ${ac_cv_cxx_stlport_hashmap+:} false; then :
6886  $as_echo_n "(cached) " >&6
6887else
6888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889/* end confdefs.h.  */
6890
6891#include <hash_map>
6892using std::hash_map;
6893
6894_ACEOF
6895if ac_fn_cxx_try_compile "$LINENO"; then :
6896  ac_cv_cxx_stlport_hashmap=yes
6897else
6898  ac_cv_cxx_stlport_hashmap=no
6899fi
6900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901
6902fi
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stlport_hashmap" >&5
6904$as_echo "$ac_cv_cxx_stlport_hashmap" >&6; }
6905if test "$ac_cv_cxx_stlport_hashmap" = yes; then
6906
6907$as_echo "#define HAVE_STLPORT_HASHMAP 1" >>confdefs.h
6908
6909fi
6910
6911
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports tr1::unordered_map" >&5
6913$as_echo_n "checking whether the compiler supports tr1::unordered_map... " >&6; }
6914if ${ac_cv_cxx_tr1_unordered_map_and_set+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918/* end confdefs.h.  */
6919
6920        #include <tr1/functional>
6921        #include <tr1/unordered_map>
6922        #include <tr1/unordered_set>
6923        using std::hash;
6924        using std::unordered_map;
6925        using std::unordered_set;
6926        using std::unordered_multimap;
6927
6928_ACEOF
6929if ac_fn_cxx_try_compile "$LINENO"; then :
6930  ac_cv_cxx_tr1_unordered_map_and_set=yes
6931else
6932  ac_cv_cxx_tr1_unordered_map_and_set=no
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_tr1_unordered_map_and_set" >&5
6937$as_echo "$ac_cv_cxx_tr1_unordered_map_and_set" >&6; }
6938        if test x$ac_cv_cxx_tr1_unordered_map_and_set = xyes; then
6939
6940$as_echo "#define HAVE_TR1_UNORDERED_MAP_AND_SET 1" >>confdefs.h
6941
6942        fi
6943
6944
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for early 4.0-series g++ bug in tr1 hashtables" >&5
6946$as_echo_n "checking for early 4.0-series g++ bug in tr1 hashtables... " >&6; }
6947if ${ac_cv_cxx_tr1_hashtable_bug+:} false; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950
6951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952/* end confdefs.h.  */
6953#include <tr1/unordered_set>
6954int
6955main ()
6956{
6957std::unordered_set<int> s;
6958                     const std::unordered_set<int> &s_ref = s;
6959                     s_ref.find(27);
6960  ;
6961  return 0;
6962}
6963_ACEOF
6964if ac_fn_cxx_try_compile "$LINENO"; then :
6965  ac_cv_cxx_tr1_hashtable_bug=no
6966else
6967  ac_cv_cxx_tr1_hashtable_bug=yes
6968fi
6969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_tr1_hashtable_bug" >&5
6972$as_echo "$ac_cv_cxx_tr1_hashtable_bug" >&6; }
6973 if test x$ac_cv_cxx_tr1_hashtable_bug = xno; then
6974
6975$as_echo "#define HAVE_WORKING_TR1_UNORDERED_MAP_AND_SET 1" >>confdefs.h
6976
6977 fi
6978
6979
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports std::unordered_map" >&5
6981$as_echo_n "checking whether the compiler supports std::unordered_map... " >&6; }
6982if ${ac_cv_cxx_11_unordered_map_and_set+:} false; then :
6983  $as_echo_n "(cached) " >&6
6984else
6985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986/* end confdefs.h.  */
6987
6988        #include <functional>
6989        #include <unordered_map>
6990        #include <unordered_set>
6991        using std::hash;
6992        using std::unordered_map;
6993        using std::unordered_set;
6994        using std::unordered_multimap;
6995
6996_ACEOF
6997if ac_fn_cxx_try_compile "$LINENO"; then :
6998  ac_cv_cxx_11_unordered_map_and_set=yes
6999else
7000  ac_cv_cxx_11_unordered_map_and_set=no
7001fi
7002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_11_unordered_map_and_set" >&5
7005$as_echo "$ac_cv_cxx_11_unordered_map_and_set" >&6; }
7006        if test x$ac_cv_cxx_11_unordered_map_and_set = xyes; then
7007
7008$as_echo "#define HAVE_CXX11_UNORDERED_MAP_AND_SET 1" >>confdefs.h
7009
7010        fi
7011
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ streams support sync_with_stdio" >&5
7013$as_echo_n "checking whether C++ streams support sync_with_stdio... " >&6; }
7014if ${ac_cv_cxx_sync_with_stdio_works+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017
7018  if test x$cross_compiling = xyes; then
7019    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7021as_fn_error $? "cannot run test program while cross compiling
7022See \`config.log' for more details" "$LINENO" 5; }
7023  fi
7024  # Note that we can't use AC_RUN_IFELSE for these because we have to
7025  # redirect standard input.  Instead, we use AC_LINK_IFELSE to
7026  # generate the binaries and then run them by hand.  Hence the manual
7027  # failure-if-cross-compiling above.
7028  if test "$cross_compiling" = yes; then :
7029  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7031as_fn_error $? "cannot run test program while cross compiling
7032See \`config.log' for more details" "$LINENO" 5; }
7033else
7034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036
7037    /*
7038     * Generates the input file.
7039     */
7040    #include <cstdlib>
7041    #include <fstream>
7042
7043    int
7044    main(void)
7045    {
7046      std::ofstream ofs("_conftest.dat");
7047      for (int i = 0; i < 50000; i++)
7048        ofs << "0123456789\r\n";
7049      ofs.close();
7050
7051      return EXIT_SUCCESS;
7052    }
7053
7054_ACEOF
7055if ac_fn_cxx_try_run "$LINENO"; then :
7056
7057else
7058  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7060as_fn_error $? "could not generate input for test 1
7061See \`config.log' for more details" "$LINENO" 5; }
7062fi
7063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7064  conftest.$ac_objext conftest.beam conftest.$ac_ext
7065fi
7066
7067
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070
7071    /*
7072     * Reads the input file.
7073     */
7074    #include <cstdlib>
7075    #include <fstream>
7076    #include <iostream>
7077
7078    int
7079    main(void)
7080    {
7081      std::cin.sync_with_stdio(false);
7082      int length = 0;
7083      while (std::cin.good())
7084        {
7085          char buffer[1024];
7086          (void)std::cin.read(buffer, sizeof(buffer));
7087          length += std::cin.gcount();
7088        }
7089
7090      return length == 600000 ? EXIT_SUCCESS : EXIT_FAILURE;
7091    }
7092
7093_ACEOF
7094if ac_fn_cxx_try_link "$LINENO"; then :
7095  if ./conftest$ac_exeext <_conftest.dat; then
7096    :
7097  else
7098    ac_cv_sync_with_stdio_works=no
7099  fi
7100else
7101  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7103as_fn_error $? "could not link test program for test 1
7104See \`config.log' for more details" "$LINENO" 5; }
7105fi
7106rm -f core conftest.err conftest.$ac_objext \
7107    conftest$ac_exeext conftest.$ac_ext
7108
7109  rm -f _conftest.dat
7110  if test "x$ac_cv_sync_with_stdio_works" != xno; then
7111  # To check for issue 2, we have a writer with a short delay between
7112  # writes, and a reader who has set sync_with_stdio(false).
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115
7116    #include <cstdlib>
7117    #include <iostream>
7118    #ifdef WIN32
7119    #define WIN32_LEAN_AND_MEAN
7120    #include <windows.h>
7121    #define sleep(x) Sleep((x) * 1000)
7122    #else
7123    #include <unistd.h>
7124    #endif
7125
7126    int
7127    main(int argc, char * argv[])
7128    {
7129      if (argc != 2)
7130        return EXIT_FAILURE;
7131
7132      if (argv[1][0] == 'R')
7133        {
7134          std::cin.sync_with_stdio(false);
7135          int length = 0;
7136          while (std::cin.good())
7137            {
7138              char buffer[1024];
7139              (void)std::cin.read(buffer, sizeof(buffer));
7140              length += std::cin.gcount();
7141            }
7142
7143          return length == 82 ? EXIT_SUCCESS : EXIT_FAILURE;
7144        }
7145      else
7146        {
7147          std::cout << "1234567890123456789012345678901234567890" << std::endl;
7148          sleep(1);
7149          std::cout << "1234567890123456789012345678901234567890" << std::endl;
7150        }
7151      return EXIT_SUCCESS;
7152    }
7153
7154_ACEOF
7155if ac_fn_cxx_try_link "$LINENO"; then :
7156  if ./conftest$ac_exeext W | ./conftest$ac_exeext R; then
7157    ac_cv_cxx_sync_with_stdio_works=yes
7158  else
7159    ac_cv_cxx_sync_with_stdio_works=no
7160  fi
7161else
7162  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7164as_fn_error $? "could not link test program for test 2
7165See \`config.log' for more details" "$LINENO" 5; }
7166fi
7167rm -f core conftest.err conftest.$ac_objext \
7168    conftest$ac_exeext conftest.$ac_ext
7169  fi # skip test 2
7170
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_sync_with_stdio_works" >&5
7173$as_echo "$ac_cv_cxx_sync_with_stdio_works" >&6; }
7174 if test $ac_cv_cxx_sync_with_stdio_works = yes; then
7175
7176$as_echo "#define SYNC_WITH_STDIO_WORKS 1" >>confdefs.h
7177
7178 fi
7179
7180
7181 code='
7182 template<class T> struct S { static const bool B; };
7183 template<class T> const bool S<T>::B = true;'
7184
7185 codeA="
7186 $code
7187 int foo() { return 0; }"
7188
7189 codeB="
7190 $code
7191 extern int foo();
7192 int main() { return foo(); }"
7193
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX handles templates with static const members correctly" >&5
7195$as_echo_n "checking whether $CXX handles templates with static const members correctly... " >&6; }
7196if ${ac_cv_prog_cxx_template_static_const_ok+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199
7200   # Autoconf doesn't make it easy to do a test involving
7201   # linking two files.  This is the best way I know of.
7202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204$codeA
7205_ACEOF
7206if ac_fn_cxx_try_compile "$LINENO"; then :
7207  mv conftest.$ac_objext conftestA.$ac_objext
7208      save_LIBS="$LIBS"
7209      LIBS=conftestA.$ac_objext
7210      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h.  */
7212$codeB
7213_ACEOF
7214if ac_fn_cxx_try_link "$LINENO"; then :
7215  ac_cv_prog_cxx_template_static_const_ok=yes
7216else
7217  ac_cv_prog_cxx_template_static_const_ok=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext \
7220    conftest$ac_exeext conftest.$ac_ext
7221      LIBS="$save_LIBS"
7222else
7223  ac_cv_prog_cxx_template_static_const_ok=no
7224fi
7225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_template_static_const_ok" >&5
7229$as_echo "$ac_cv_prog_cxx_template_static_const_ok" >&6; }
7230if test $ac_cv_prog_cxx_template_static_const_ok = no; then
7231  # ??? This is the correct workaround for g++ and gnu ld, but maybe not
7232  # for others.  (But this is a GNU-specific bug, so...)
7233  LDFLAGS="$LDFLAGS -Wl,-z,muldefs"
7234fi
7235
7236
7237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mktime is 64-bit capable" >&5
7238$as_echo_n "checking whether mktime is 64-bit capable... " >&6; }
7239if ${ac_cv_cxx_mktime_64bit+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242
7243    if test "$cross_compiling" = yes; then :
7244  ac_cv_cxx_mktime_64bit=no
7245else
7246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248
7249#include <cstdlib>
7250#include <ctime>
7251
7252int main() {
7253  /* not an issue if not 64-bit */
7254  if (sizeof(struct tm) <= 4)
7255	return EXIT_SUCCESS;
7256
7257  setenv("TZ", "UTC", 1);
7258
7259  /* equals INT32_MIN */
7260  struct tm tb_lower = { 52, 45, 20, 13, 11, 1, 0, 0, -1 };
7261  time_t i_lower = std::mktime(&tb_lower);
7262
7263  /* step over the boundary */
7264  tb_lower.tm_sec -= 1;
7265
7266  time_t o_lower = std::mktime(&tb_lower);
7267  if (o_lower == -1)
7268    return EXIT_FAILURE;
7269  else if ((o_lower - i_lower) != -1)
7270    return EXIT_FAILURE;
7271
7272  return EXIT_SUCCESS;
7273}
7274
7275_ACEOF
7276if ac_fn_cxx_try_run "$LINENO"; then :
7277  ac_cv_cxx_mktime_64bit=yes
7278else
7279  ac_cv_cxx_mktime_64bit=no
7280fi
7281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7282  conftest.$ac_objext conftest.beam conftest.$ac_ext
7283fi
7284
7285
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_mktime_64bit" >&5
7288$as_echo "$ac_cv_cxx_mktime_64bit" >&6; }
7289  case "$ac_cv_cxx_mktime_64bit" in
7290    *yes) value=1;;
7291    *) value=0;;
7292  esac
7293
7294cat >>confdefs.h <<_ACEOF
7295#define STD_MKTIME_64BIT_WORKS $value
7296_ACEOF
7297
7298
7299
7300# Checks for typedefs and structures.
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char has 8 bits" >&5
7303$as_echo_n "checking whether char has 8 bits... " >&6; }
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h.  */
7306#include <limits>
7307int
7308main ()
7309{
7310static int test_array [1 - 2 * !(std::numeric_limits<unsigned char>::digits == 8)];
7311test_array [0] = 0;
7312return test_array [0];
7313
7314  ;
7315  return 0;
7316}
7317_ACEOF
7318if ac_fn_cxx_try_compile "$LINENO"; then :
7319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7320$as_echo "yes" >&6; }
7321else
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323$as_echo "no" >&6; }
7324     as_fn_error $? "*** Monotone requires a platform with 8-bit bytes." "$LINENO" 5
7325fi
7326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327
7328# s8 and u8 will be some sort of 'char', but we want to use the plain
7329# variety for whichever one it is.
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether plain char is signed" >&5
7331$as_echo_n "checking whether plain char is signed... " >&6; }
7332if ${mtn_cv_plain_char_signed+:} false; then :
7333  $as_echo_n "(cached) " >&6
7334else
7335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336/* end confdefs.h.  */
7337
7338int
7339main ()
7340{
7341static int test_array [1 - 2 * !(((int)(char)-1) < 0)];
7342test_array [0] = 0;
7343return test_array [0];
7344
7345  ;
7346  return 0;
7347}
7348_ACEOF
7349if ac_fn_cxx_try_compile "$LINENO"; then :
7350  mtn_cv_plain_char_signed=yes
7351else
7352  mtn_cv_plain_char_signed=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355fi
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtn_cv_plain_char_signed" >&5
7357$as_echo "$mtn_cv_plain_char_signed" >&6; }
7358if test $mtn_cv_plain_char_signed = yes ; then
7359  mtn_s8_type='char'
7360  mtn_u8_type='unsigned char'
7361else
7362  mtn_s8_type='signed char'
7363  mtn_u8_type='char'
7364fi
7365
7366mtn_s16_type=unknown
7367mtn_u16_type=unknown
7368mtn_s32_type=unknown
7369mtn_u32_type=unknown
7370mtn_s64_type=unknown
7371mtn_u64_type=unknown
7372
7373# See if we can get away without 'long long' (LP64 model).
7374# The order here ensures that 'int' will be used if it happens
7375# to be the same size as 'short' or 'long'.
7376
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7378$as_echo_n "checking size of short... " >&6; }
7379if ${ac_cv_sizeof_short+:} false; then :
7380  $as_echo_n "(cached) " >&6
7381else
7382  if ac_fn_cxx_compute_int "$LINENO" "(long int)(sizeof (ac__type_sizeof_))" "ac_cv_sizeof_short"        "typedef short ac__type_sizeof_;"; then :
7383
7384else
7385  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7387as_fn_error 77 "cannot compute sizeof (short)
7388See \`config.log' for more details" "$LINENO" 5; }
7389fi
7390
7391fi
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7393$as_echo "$ac_cv_sizeof_short" >&6; }
7394case $ac_cv_sizeof_short in
7395  2) mtn_s16_type='short'
7396     mtn_u16_type='unsigned short' ;;
7397  4) mtn_s32_type='short'
7398     mtn_u32_type='unsigned short' ;;
7399  8) mtn_s64_type='short'
7400     mtn_u64_type='unsigned short' ;;
7401esac
7402
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7404$as_echo_n "checking size of long... " >&6; }
7405if ${ac_cv_sizeof_long+:} false; then :
7406  $as_echo_n "(cached) " >&6
7407else
7408  if ac_fn_cxx_compute_int "$LINENO" "(long int)(sizeof (ac__type_sizeof_))" "ac_cv_sizeof_long"        "typedef long ac__type_sizeof_;"; then :
7409
7410else
7411  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7413as_fn_error 77 "cannot compute sizeof (long)
7414See \`config.log' for more details" "$LINENO" 5; }
7415fi
7416
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7419$as_echo "$ac_cv_sizeof_long" >&6; }
7420case $ac_cv_sizeof_long in
7421  2) mtn_s16_type='long'
7422     mtn_u16_type='unsigned long' ;;
7423  4) mtn_s32_type='long'
7424     mtn_u32_type='unsigned long' ;;
7425  8) mtn_s64_type='long'
7426     mtn_u64_type='unsigned long' ;;
7427esac
7428
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7430$as_echo_n "checking size of int... " >&6; }
7431if ${ac_cv_sizeof_int+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  if ac_fn_cxx_compute_int "$LINENO" "(long int)(sizeof (ac__type_sizeof_))" "ac_cv_sizeof_int"        "typedef int ac__type_sizeof_;"; then :
7435
7436else
7437  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7439as_fn_error 77 "cannot compute sizeof (int)
7440See \`config.log' for more details" "$LINENO" 5; }
7441fi
7442
7443fi
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7445$as_echo "$ac_cv_sizeof_int" >&6; }
7446case $ac_cv_sizeof_int in
7447  2) mtn_s16_type='int'
7448     mtn_u16_type='unsigned int' ;;
7449  4) mtn_s32_type='int'
7450     mtn_u32_type='unsigned int' ;;
7451  8) mtn_s64_type='int'
7452     mtn_u64_type='unsigned int' ;;
7453esac
7454
7455# If we didn't get an s16 or an s32 type we are hoz0red.
7456if test "$mtn_s16_type" = unknown
7457then as_fn_error $? "*** no signed 16-bit type found" "$LINENO" 5
7458fi
7459if test "$mtn_s32_type" = unknown
7460then as_fn_error $? "*** no signed 32-bit type found" "$LINENO" 5
7461fi
7462
7463# If we didn't get an s64 type, try long long.
7464if test "$mtn_s64_type" = unknown; then
7465
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7467$as_echo_n "checking size of long long... " >&6; }
7468if ${ac_cv_sizeof_long_long+:} false; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  if ac_fn_cxx_compute_int "$LINENO" "(long int)(sizeof (ac__type_sizeof_))" "ac_cv_sizeof_long_long"        "typedef long long ac__type_sizeof_;"; then :
7472
7473else
7474  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7476as_fn_error 77 "cannot compute sizeof (long long)
7477See \`config.log' for more details" "$LINENO" 5; }
7478fi
7479
7480fi
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7482$as_echo "$ac_cv_sizeof_long_long" >&6; }
7483case $ac_cv_sizeof_long_long in
7484  2) mtn_s16_type='long long'
7485     mtn_u16_type='unsigned long long' ;;
7486  4) mtn_s32_type='long long'
7487     mtn_u32_type='unsigned long long' ;;
7488  8) mtn_s64_type='long long'
7489     mtn_u64_type='unsigned long long' ;;
7490esac
7491 if test "$mtn_s64_type" = unknown
7492 then as_fn_error $? "*** no signed 64-bit type found" "$LINENO" 5
7493 fi
7494
7495cat >>confdefs.h <<_ACEOF
7496#define USING_LONG_LONG 1
7497_ACEOF
7498
7499fi
7500
7501
7502cat >>confdefs.h <<_ACEOF
7503#define TYPE_S8 $mtn_s8_type
7504_ACEOF
7505
7506
7507cat >>confdefs.h <<_ACEOF
7508#define TYPE_S16 $mtn_s16_type
7509_ACEOF
7510
7511
7512cat >>confdefs.h <<_ACEOF
7513#define TYPE_S32 $mtn_s32_type
7514_ACEOF
7515
7516
7517cat >>confdefs.h <<_ACEOF
7518#define TYPE_S64 $mtn_s64_type
7519_ACEOF
7520
7521
7522
7523cat >>confdefs.h <<_ACEOF
7524#define TYPE_U8 $mtn_u8_type
7525_ACEOF
7526
7527
7528cat >>confdefs.h <<_ACEOF
7529#define TYPE_U16 $mtn_u16_type
7530_ACEOF
7531
7532
7533cat >>confdefs.h <<_ACEOF
7534#define TYPE_U32 $mtn_u32_type
7535_ACEOF
7536
7537
7538cat >>confdefs.h <<_ACEOF
7539#define TYPE_U64 $mtn_u64_type
7540_ACEOF
7541
7542
7543
7544
7545ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "#include <sys/types.h>
7546"
7547if test "x$ac_cv_type_off_t" = xyes; then :
7548
7549else
7550
7551$as_echo "#define off_t long int" >>confdefs.h
7552
7553fi
7554
7555
7556ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "#include <sys/types.h>
7557"
7558if test "x$ac_cv_type_pid_t" = xyes; then :
7559
7560else
7561
7562$as_echo "#define pid_t int" >>confdefs.h
7563
7564fi
7565
7566
7567ac_fn_cxx_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "#include <sys/stat.h>
7568"
7569if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
7570
7571cat >>confdefs.h <<_ACEOF
7572#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
7573_ACEOF
7574
7575
7576fi
7577ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h>
7578"
7579if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
7580
7581cat >>confdefs.h <<_ACEOF
7582#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
7583_ACEOF
7584
7585
7586fi
7587ac_fn_cxx_check_member "$LINENO" "struct stat" "st_ctimespec.tv_nsec" "ac_cv_member_struct_stat_st_ctimespec_tv_nsec" "#include <sys/stat.h>
7588"
7589if test "x$ac_cv_member_struct_stat_st_ctimespec_tv_nsec" = xyes; then :
7590
7591cat >>confdefs.h <<_ACEOF
7592#define HAVE_STRUCT_STAT_ST_CTIMESPEC_TV_NSEC 1
7593_ACEOF
7594
7595
7596fi
7597ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "#include <sys/stat.h>
7598"
7599if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
7600
7601cat >>confdefs.h <<_ACEOF
7602#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
7603_ACEOF
7604
7605
7606fi
7607ac_fn_cxx_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "#include <sys/stat.h>
7608"
7609if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
7610
7611cat >>confdefs.h <<_ACEOF
7612#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
7613_ACEOF
7614
7615
7616fi
7617ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
7618"
7619if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
7620
7621cat >>confdefs.h <<_ACEOF
7622#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
7623_ACEOF
7624
7625
7626fi
7627
7628ac_fn_cxx_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
7629"
7630if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
7631
7632cat >>confdefs.h <<_ACEOF
7633#define HAVE_STRUCT_DIRENT_D_TYPE 1
7634_ACEOF
7635
7636
7637fi
7638
7639
7640# Checks for library functions.
7641# We don't do anything especially clever with mmap so we don't need the
7642# complicated check for it.
7643
7644for ac_func in __cxa_current_exception_type __cxa_demangle dirfd \
7645        fstatat mkdtemp mmap putenv setenv strptime unsetenv
7646do :
7647  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7648ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7649if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7650  cat >>confdefs.h <<_ACEOF
7651#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7652_ACEOF
7653
7654fi
7655done
7656
7657
7658cat >confcache <<\_ACEOF
7659# This file is a shell script that caches the results of configure
7660# tests run on this system so they can be shared between configure
7661# scripts and configure runs, see configure's option --config-cache.
7662# It is not useful on other systems.  If it contains results you don't
7663# want to keep, you may remove or edit it.
7664#
7665# config.status only pays attention to the cache file if you give it
7666# the --recheck option to rerun configure.
7667#
7668# `ac_cv_env_foo' variables (set or unset) will be overridden when
7669# loading this file, other *unset* `ac_cv_foo' will be assigned the
7670# following values.
7671
7672_ACEOF
7673
7674# The following way of writing the cache mishandles newlines in values,
7675# but we know of no workaround that is simple, portable, and efficient.
7676# So, we kill variables containing newlines.
7677# Ultrix sh set writes to stderr and can't be redirected directly,
7678# and sets the high bit in the cache file unless we assign to the vars.
7679(
7680  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7681    eval ac_val=\$$ac_var
7682    case $ac_val in #(
7683    *${as_nl}*)
7684      case $ac_var in #(
7685      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7686$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7687      esac
7688      case $ac_var in #(
7689      _ | IFS | as_nl) ;; #(
7690      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7691      *) { eval $ac_var=; unset $ac_var;} ;;
7692      esac ;;
7693    esac
7694  done
7695
7696  (set) 2>&1 |
7697    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7698    *${as_nl}ac_space=\ *)
7699      # `set' does not quote correctly, so add quotes: double-quote
7700      # substitution turns \\\\ into \\, and sed turns \\ into \.
7701      sed -n \
7702	"s/'/'\\\\''/g;
7703	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7704      ;; #(
7705    *)
7706      # `set' quotes correctly as required by POSIX, so do not add quotes.
7707      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7708      ;;
7709    esac |
7710    sort
7711) |
7712  sed '
7713     /^ac_cv_env_/b end
7714     t clear
7715     :clear
7716     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7717     t end
7718     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7719     :end' >>confcache
7720if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7721  if test -w "$cache_file"; then
7722    if test "x$cache_file" != "x/dev/null"; then
7723      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7724$as_echo "$as_me: updating cache $cache_file" >&6;}
7725      if test ! -f "$cache_file" || test -h "$cache_file"; then
7726	cat confcache >"$cache_file"
7727      else
7728        case $cache_file in #(
7729        */* | ?:*)
7730	  mv -f confcache "$cache_file"$$ &&
7731	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7732        *)
7733	  mv -f confcache "$cache_file" ;;
7734	esac
7735      fi
7736    fi
7737  else
7738    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7739$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7740  fi
7741fi
7742rm -f confcache
7743
7744test "x$prefix" = xNONE && prefix=$ac_default_prefix
7745# Let make expand exec_prefix.
7746test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7747
7748DEFS=-DHAVE_CONFIG_H
7749
7750ac_libobjs=
7751ac_ltlibobjs=
7752U=
7753for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7754  # 1. Remove the extension, and $U if already installed.
7755  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7756  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7757  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7758  #    will be set to the directory where LIBOBJS objects are built.
7759  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7760  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7761done
7762LIBOBJS=$ac_libobjs
7763
7764LTLIBOBJS=$ac_ltlibobjs
7765
7766
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7768$as_echo_n "checking that generated files are newer than configure... " >&6; }
7769   if test -n "$am_sleep_pid"; then
7770     # Hide warnings about reused PIDs.
7771     wait $am_sleep_pid 2>/dev/null
7772   fi
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7774$as_echo "done" >&6; }
7775 if test -n "$EXEEXT"; then
7776  am__EXEEXT_TRUE=
7777  am__EXEEXT_FALSE='#'
7778else
7779  am__EXEEXT_TRUE='#'
7780  am__EXEEXT_FALSE=
7781fi
7782
7783if test -z "${WIN32_PLATFORM_TRUE}" && test -z "${WIN32_PLATFORM_FALSE}"; then
7784  as_fn_error $? "conditional \"WIN32_PLATFORM\" was never defined.
7785Usually this means the macro was only invoked conditionally." "$LINENO" 5
7786fi
7787if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7788  as_fn_error $? "conditional \"AMDEP\" was never defined.
7789Usually this means the macro was only invoked conditionally." "$LINENO" 5
7790fi
7791if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7792  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7793Usually this means the macro was only invoked conditionally." "$LINENO" 5
7794fi
7795if test -z "${BUILD_PCH_TRUE}" && test -z "${BUILD_PCH_FALSE}"; then
7796  as_fn_error $? "conditional \"BUILD_PCH\" was never defined.
7797Usually this means the macro was only invoked conditionally." "$LINENO" 5
7798fi
7799if test -z "${BUILD_PCH_TRUE}" && test -z "${BUILD_PCH_FALSE}"; then
7800  as_fn_error $? "conditional \"BUILD_PCH\" was never defined.
7801Usually this means the macro was only invoked conditionally." "$LINENO" 5
7802fi
7803if test -z "${REBUILD_NLS_TRUE}" && test -z "${REBUILD_NLS_FALSE}"; then
7804  as_fn_error $? "conditional \"REBUILD_NLS\" was never defined.
7805Usually this means the macro was only invoked conditionally." "$LINENO" 5
7806fi
7807if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then
7808  as_fn_error $? "conditional \"USE_NLS\" was never defined.
7809Usually this means the macro was only invoked conditionally." "$LINENO" 5
7810fi
7811if test -z "${MISSING_INET6_TRUE}" && test -z "${MISSING_INET6_FALSE}"; then
7812  as_fn_error $? "conditional \"MISSING_INET6\" was never defined.
7813Usually this means the macro was only invoked conditionally." "$LINENO" 5
7814fi
7815if test -z "${MISSING_INET_PTON_TRUE}" && test -z "${MISSING_INET_PTON_FALSE}"; then
7816  as_fn_error $? "conditional \"MISSING_INET_PTON\" was never defined.
7817Usually this means the macro was only invoked conditionally." "$LINENO" 5
7818fi
7819if test -z "${MISSING_INET_PTON_TRUE}" && test -z "${MISSING_INET_PTON_FALSE}"; then
7820  as_fn_error $? "conditional \"MISSING_INET_PTON\" was never defined.
7821Usually this means the macro was only invoked conditionally." "$LINENO" 5
7822fi
7823if test -z "${MISSING_INET_NTOP_TRUE}" && test -z "${MISSING_INET_NTOP_FALSE}"; then
7824  as_fn_error $? "conditional \"MISSING_INET_NTOP\" was never defined.
7825Usually this means the macro was only invoked conditionally." "$LINENO" 5
7826fi
7827if test -z "${MISSING_INET_NTOP_TRUE}" && test -z "${MISSING_INET_NTOP_FALSE}"; then
7828  as_fn_error $? "conditional \"MISSING_INET_NTOP\" was never defined.
7829Usually this means the macro was only invoked conditionally." "$LINENO" 5
7830fi
7831if test -z "${MISSING_GETADDRINFO_TRUE}" && test -z "${MISSING_GETADDRINFO_FALSE}"; then
7832  as_fn_error $? "conditional \"MISSING_GETADDRINFO\" was never defined.
7833Usually this means the macro was only invoked conditionally." "$LINENO" 5
7834fi
7835if test -z "${MISSING_GETADDRINFO_TRUE}" && test -z "${MISSING_GETADDRINFO_FALSE}"; then
7836  as_fn_error $? "conditional \"MISSING_GETADDRINFO\" was never defined.
7837Usually this means the macro was only invoked conditionally." "$LINENO" 5
7838fi
7839
7840: "${CONFIG_STATUS=./config.status}"
7841ac_write_fail=0
7842ac_clean_files_save=$ac_clean_files
7843ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7845$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7846as_write_fail=0
7847cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7848#! $SHELL
7849# Generated by $as_me.
7850# Run this file to recreate the current configuration.
7851# Compiler output produced by configure, useful for debugging
7852# configure, is in config.log if it exists.
7853
7854debug=false
7855ac_cs_recheck=false
7856ac_cs_silent=false
7857
7858SHELL=\${CONFIG_SHELL-$SHELL}
7859export SHELL
7860_ASEOF
7861cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7862## -------------------- ##
7863## M4sh Initialization. ##
7864## -------------------- ##
7865
7866# Be more Bourne compatible
7867DUALCASE=1; export DUALCASE # for MKS sh
7868if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7869  emulate sh
7870  NULLCMD=:
7871  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7872  # is contrary to our usage.  Disable this feature.
7873  alias -g '${1+"$@"}'='"$@"'
7874  setopt NO_GLOB_SUBST
7875else
7876  case `(set -o) 2>/dev/null` in #(
7877  *posix*) :
7878    set -o posix ;; #(
7879  *) :
7880     ;;
7881esac
7882fi
7883
7884
7885as_nl='
7886'
7887export as_nl
7888# Printing a long string crashes Solaris 7 /usr/bin/printf.
7889as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7890as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7891as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7892# Prefer a ksh shell builtin over an external printf program on Solaris,
7893# but without wasting forks for bash or zsh.
7894if test -z "$BASH_VERSION$ZSH_VERSION" \
7895    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7896  as_echo='print -r --'
7897  as_echo_n='print -rn --'
7898elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7899  as_echo='printf %s\n'
7900  as_echo_n='printf %s'
7901else
7902  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7903    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7904    as_echo_n='/usr/ucb/echo -n'
7905  else
7906    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7907    as_echo_n_body='eval
7908      arg=$1;
7909      case $arg in #(
7910      *"$as_nl"*)
7911	expr "X$arg" : "X\\(.*\\)$as_nl";
7912	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7913      esac;
7914      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7915    '
7916    export as_echo_n_body
7917    as_echo_n='sh -c $as_echo_n_body as_echo'
7918  fi
7919  export as_echo_body
7920  as_echo='sh -c $as_echo_body as_echo'
7921fi
7922
7923# The user is always right.
7924if test "${PATH_SEPARATOR+set}" != set; then
7925  PATH_SEPARATOR=:
7926  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7927    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7928      PATH_SEPARATOR=';'
7929  }
7930fi
7931
7932
7933# IFS
7934# We need space, tab and new line, in precisely that order.  Quoting is
7935# there to prevent editors from complaining about space-tab.
7936# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7937# splitting by setting IFS to empty value.)
7938IFS=" ""	$as_nl"
7939
7940# Find who we are.  Look in the path if we contain no directory separator.
7941as_myself=
7942case $0 in #((
7943  *[\\/]* ) as_myself=$0 ;;
7944  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945for as_dir in $PATH
7946do
7947  IFS=$as_save_IFS
7948  test -z "$as_dir" && as_dir=.
7949    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7950  done
7951IFS=$as_save_IFS
7952
7953     ;;
7954esac
7955# We did not find ourselves, most probably we were run as `sh COMMAND'
7956# in which case we are not to be found in the path.
7957if test "x$as_myself" = x; then
7958  as_myself=$0
7959fi
7960if test ! -f "$as_myself"; then
7961  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7962  exit 1
7963fi
7964
7965# Unset variables that we do not need and which cause bugs (e.g. in
7966# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7967# suppresses any "Segmentation fault" message there.  '((' could
7968# trigger a bug in pdksh 5.2.14.
7969for as_var in BASH_ENV ENV MAIL MAILPATH
7970do eval test x\${$as_var+set} = xset \
7971  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7972done
7973PS1='$ '
7974PS2='> '
7975PS4='+ '
7976
7977# NLS nuisances.
7978LC_ALL=C
7979export LC_ALL
7980LANGUAGE=C
7981export LANGUAGE
7982
7983# CDPATH.
7984(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7985
7986
7987# as_fn_error STATUS ERROR [LINENO LOG_FD]
7988# ----------------------------------------
7989# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7990# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7991# script with STATUS, using 1 if that was 0.
7992as_fn_error ()
7993{
7994  as_status=$1; test $as_status -eq 0 && as_status=1
7995  if test "$4"; then
7996    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7997    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7998  fi
7999  $as_echo "$as_me: error: $2" >&2
8000  as_fn_exit $as_status
8001} # as_fn_error
8002
8003
8004# as_fn_set_status STATUS
8005# -----------------------
8006# Set $? to STATUS, without forking.
8007as_fn_set_status ()
8008{
8009  return $1
8010} # as_fn_set_status
8011
8012# as_fn_exit STATUS
8013# -----------------
8014# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8015as_fn_exit ()
8016{
8017  set +e
8018  as_fn_set_status $1
8019  exit $1
8020} # as_fn_exit
8021
8022# as_fn_unset VAR
8023# ---------------
8024# Portably unset VAR.
8025as_fn_unset ()
8026{
8027  { eval $1=; unset $1;}
8028}
8029as_unset=as_fn_unset
8030# as_fn_append VAR VALUE
8031# ----------------------
8032# Append the text in VALUE to the end of the definition contained in VAR. Take
8033# advantage of any shell optimizations that allow amortized linear growth over
8034# repeated appends, instead of the typical quadratic growth present in naive
8035# implementations.
8036if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8037  eval 'as_fn_append ()
8038  {
8039    eval $1+=\$2
8040  }'
8041else
8042  as_fn_append ()
8043  {
8044    eval $1=\$$1\$2
8045  }
8046fi # as_fn_append
8047
8048# as_fn_arith ARG...
8049# ------------------
8050# Perform arithmetic evaluation on the ARGs, and store the result in the
8051# global $as_val. Take advantage of shells that can avoid forks. The arguments
8052# must be portable across $(()) and expr.
8053if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8054  eval 'as_fn_arith ()
8055  {
8056    as_val=$(( $* ))
8057  }'
8058else
8059  as_fn_arith ()
8060  {
8061    as_val=`expr "$@" || test $? -eq 1`
8062  }
8063fi # as_fn_arith
8064
8065
8066if expr a : '\(a\)' >/dev/null 2>&1 &&
8067   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8068  as_expr=expr
8069else
8070  as_expr=false
8071fi
8072
8073if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8074  as_basename=basename
8075else
8076  as_basename=false
8077fi
8078
8079if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8080  as_dirname=dirname
8081else
8082  as_dirname=false
8083fi
8084
8085as_me=`$as_basename -- "$0" ||
8086$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8087	 X"$0" : 'X\(//\)$' \| \
8088	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8089$as_echo X/"$0" |
8090    sed '/^.*\/\([^/][^/]*\)\/*$/{
8091	    s//\1/
8092	    q
8093	  }
8094	  /^X\/\(\/\/\)$/{
8095	    s//\1/
8096	    q
8097	  }
8098	  /^X\/\(\/\).*/{
8099	    s//\1/
8100	    q
8101	  }
8102	  s/.*/./; q'`
8103
8104# Avoid depending upon Character Ranges.
8105as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8106as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8107as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8108as_cr_digits='0123456789'
8109as_cr_alnum=$as_cr_Letters$as_cr_digits
8110
8111ECHO_C= ECHO_N= ECHO_T=
8112case `echo -n x` in #(((((
8113-n*)
8114  case `echo 'xy\c'` in
8115  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8116  xy)  ECHO_C='\c';;
8117  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8118       ECHO_T='	';;
8119  esac;;
8120*)
8121  ECHO_N='-n';;
8122esac
8123
8124rm -f conf$$ conf$$.exe conf$$.file
8125if test -d conf$$.dir; then
8126  rm -f conf$$.dir/conf$$.file
8127else
8128  rm -f conf$$.dir
8129  mkdir conf$$.dir 2>/dev/null
8130fi
8131if (echo >conf$$.file) 2>/dev/null; then
8132  if ln -s conf$$.file conf$$ 2>/dev/null; then
8133    as_ln_s='ln -s'
8134    # ... but there are two gotchas:
8135    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8136    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8137    # In both cases, we have to default to `cp -pR'.
8138    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8139      as_ln_s='cp -pR'
8140  elif ln conf$$.file conf$$ 2>/dev/null; then
8141    as_ln_s=ln
8142  else
8143    as_ln_s='cp -pR'
8144  fi
8145else
8146  as_ln_s='cp -pR'
8147fi
8148rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8149rmdir conf$$.dir 2>/dev/null
8150
8151
8152# as_fn_mkdir_p
8153# -------------
8154# Create "$as_dir" as a directory, including parents if necessary.
8155as_fn_mkdir_p ()
8156{
8157
8158  case $as_dir in #(
8159  -*) as_dir=./$as_dir;;
8160  esac
8161  test -d "$as_dir" || eval $as_mkdir_p || {
8162    as_dirs=
8163    while :; do
8164      case $as_dir in #(
8165      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8166      *) as_qdir=$as_dir;;
8167      esac
8168      as_dirs="'$as_qdir' $as_dirs"
8169      as_dir=`$as_dirname -- "$as_dir" ||
8170$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8171	 X"$as_dir" : 'X\(//\)[^/]' \| \
8172	 X"$as_dir" : 'X\(//\)$' \| \
8173	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8174$as_echo X"$as_dir" |
8175    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8176	    s//\1/
8177	    q
8178	  }
8179	  /^X\(\/\/\)[^/].*/{
8180	    s//\1/
8181	    q
8182	  }
8183	  /^X\(\/\/\)$/{
8184	    s//\1/
8185	    q
8186	  }
8187	  /^X\(\/\).*/{
8188	    s//\1/
8189	    q
8190	  }
8191	  s/.*/./; q'`
8192      test -d "$as_dir" && break
8193    done
8194    test -z "$as_dirs" || eval "mkdir $as_dirs"
8195  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8196
8197
8198} # as_fn_mkdir_p
8199if mkdir -p . 2>/dev/null; then
8200  as_mkdir_p='mkdir -p "$as_dir"'
8201else
8202  test -d ./-p && rmdir ./-p
8203  as_mkdir_p=false
8204fi
8205
8206
8207# as_fn_executable_p FILE
8208# -----------------------
8209# Test if FILE is an executable regular file.
8210as_fn_executable_p ()
8211{
8212  test -f "$1" && test -x "$1"
8213} # as_fn_executable_p
8214as_test_x='test -x'
8215as_executable_p=as_fn_executable_p
8216
8217# Sed expression to map a string onto a valid CPP name.
8218as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8219
8220# Sed expression to map a string onto a valid variable name.
8221as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8222
8223
8224exec 6>&1
8225## ----------------------------------- ##
8226## Main body of $CONFIG_STATUS script. ##
8227## ----------------------------------- ##
8228_ASEOF
8229test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8230
8231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8232# Save the log message, to keep $0 and so on meaningful, and to
8233# report actual input values of CONFIG_FILES etc. instead of their
8234# values after options handling.
8235ac_log="
8236This file was extended by monotone $as_me 1.1, which was
8237generated by GNU Autoconf 2.69.  Invocation command line was
8238
8239  CONFIG_FILES    = $CONFIG_FILES
8240  CONFIG_HEADERS  = $CONFIG_HEADERS
8241  CONFIG_LINKS    = $CONFIG_LINKS
8242  CONFIG_COMMANDS = $CONFIG_COMMANDS
8243  $ $0 $@
8244
8245on `(hostname || uname -n) 2>/dev/null | sed 1q`
8246"
8247
8248_ACEOF
8249
8250case $ac_config_files in *"
8251"*) set x $ac_config_files; shift; ac_config_files=$*;;
8252esac
8253
8254case $ac_config_headers in *"
8255"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8256esac
8257
8258
8259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8260# Files that config.status was made for.
8261config_files="$ac_config_files"
8262config_headers="$ac_config_headers"
8263config_commands="$ac_config_commands"
8264
8265_ACEOF
8266
8267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8268ac_cs_usage="\
8269\`$as_me' instantiates files and other configuration actions
8270from templates according to the current configuration.  Unless the files
8271and actions are specified as TAGs, all are instantiated by default.
8272
8273Usage: $0 [OPTION]... [TAG]...
8274
8275  -h, --help       print this help, then exit
8276  -V, --version    print version number and configuration settings, then exit
8277      --config     print configuration, then exit
8278  -q, --quiet, --silent
8279                   do not print progress messages
8280  -d, --debug      don't remove temporary files
8281      --recheck    update $as_me by reconfiguring in the same conditions
8282      --file=FILE[:TEMPLATE]
8283                   instantiate the configuration file FILE
8284      --header=FILE[:TEMPLATE]
8285                   instantiate the configuration header FILE
8286
8287Configuration files:
8288$config_files
8289
8290Configuration headers:
8291$config_headers
8292
8293Configuration commands:
8294$config_commands
8295
8296Report bugs to <https://code.monotone.ca/p/monotone/issues/>.
8297monotone home page: <http://www.monotone.ca>."
8298
8299_ACEOF
8300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8301ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8302ac_cs_version="\\
8303monotone config.status 1.1
8304configured by $0, generated by GNU Autoconf 2.69,
8305  with options \\"\$ac_cs_config\\"
8306
8307Copyright (C) 2012 Free Software Foundation, Inc.
8308This config.status script is free software; the Free Software Foundation
8309gives unlimited permission to copy, distribute and modify it."
8310
8311ac_pwd='$ac_pwd'
8312srcdir='$srcdir'
8313INSTALL='$INSTALL'
8314MKDIR_P='$MKDIR_P'
8315AWK='$AWK'
8316test -n "\$AWK" || AWK=awk
8317_ACEOF
8318
8319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8320# The default lists apply if the user does not specify any file.
8321ac_need_defaults=:
8322while test $# != 0
8323do
8324  case $1 in
8325  --*=?*)
8326    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8327    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8328    ac_shift=:
8329    ;;
8330  --*=)
8331    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8332    ac_optarg=
8333    ac_shift=:
8334    ;;
8335  *)
8336    ac_option=$1
8337    ac_optarg=$2
8338    ac_shift=shift
8339    ;;
8340  esac
8341
8342  case $ac_option in
8343  # Handling of the options.
8344  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8345    ac_cs_recheck=: ;;
8346  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8347    $as_echo "$ac_cs_version"; exit ;;
8348  --config | --confi | --conf | --con | --co | --c )
8349    $as_echo "$ac_cs_config"; exit ;;
8350  --debug | --debu | --deb | --de | --d | -d )
8351    debug=: ;;
8352  --file | --fil | --fi | --f )
8353    $ac_shift
8354    case $ac_optarg in
8355    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8356    '') as_fn_error $? "missing file argument" ;;
8357    esac
8358    as_fn_append CONFIG_FILES " '$ac_optarg'"
8359    ac_need_defaults=false;;
8360  --header | --heade | --head | --hea )
8361    $ac_shift
8362    case $ac_optarg in
8363    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8364    esac
8365    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8366    ac_need_defaults=false;;
8367  --he | --h)
8368    # Conflict between --help and --header
8369    as_fn_error $? "ambiguous option: \`$1'
8370Try \`$0 --help' for more information.";;
8371  --help | --hel | -h )
8372    $as_echo "$ac_cs_usage"; exit ;;
8373  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8374  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8375    ac_cs_silent=: ;;
8376
8377  # This is an error.
8378  -*) as_fn_error $? "unrecognized option: \`$1'
8379Try \`$0 --help' for more information." ;;
8380
8381  *) as_fn_append ac_config_targets " $1"
8382     ac_need_defaults=false ;;
8383
8384  esac
8385  shift
8386done
8387
8388ac_configure_extra_args=
8389
8390if $ac_cs_silent; then
8391  exec 6>/dev/null
8392  ac_configure_extra_args="$ac_configure_extra_args --silent"
8393fi
8394
8395_ACEOF
8396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8397if \$ac_cs_recheck; then
8398  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8399  shift
8400  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8401  CONFIG_SHELL='$SHELL'
8402  export CONFIG_SHELL
8403  exec "\$@"
8404fi
8405
8406_ACEOF
8407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8408exec 5>>config.log
8409{
8410  echo
8411  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8412## Running $as_me. ##
8413_ASBOX
8414  $as_echo "$ac_log"
8415} >&5
8416
8417_ACEOF
8418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8419#
8420# INIT-COMMANDS
8421#
8422AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8423
8424_ACEOF
8425
8426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8427
8428# Handling of arguments.
8429for ac_config_target in $ac_config_targets
8430do
8431  case $ac_config_target in
8432    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8433    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8434    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8435    "monotone.iss") CONFIG_FILES="$CONFIG_FILES monotone.iss:innosetup/monotone.iss.in" ;;
8436    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8437
8438  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8439  esac
8440done
8441
8442
8443# If the user did not use the arguments to specify the items to instantiate,
8444# then the envvar interface is used.  Set only those that are not.
8445# We use the long form for the default assignment because of an extremely
8446# bizarre bug on SunOS 4.1.3.
8447if $ac_need_defaults; then
8448  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8449  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8450  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8451fi
8452
8453# Have a temporary directory for convenience.  Make it in the build tree
8454# simply because there is no reason against having it here, and in addition,
8455# creating and moving files from /tmp can sometimes cause problems.
8456# Hook for its removal unless debugging.
8457# Note that there is a small window in which the directory will not be cleaned:
8458# after its creation but before its name has been assigned to `$tmp'.
8459$debug ||
8460{
8461  tmp= ac_tmp=
8462  trap 'exit_status=$?
8463  : "${ac_tmp:=$tmp}"
8464  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8465' 0
8466  trap 'as_fn_exit 1' 1 2 13 15
8467}
8468# Create a (secure) tmp directory for tmp files.
8469
8470{
8471  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8472  test -d "$tmp"
8473}  ||
8474{
8475  tmp=./conf$$-$RANDOM
8476  (umask 077 && mkdir "$tmp")
8477} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8478ac_tmp=$tmp
8479
8480# Set up the scripts for CONFIG_FILES section.
8481# No need to generate them if there are no CONFIG_FILES.
8482# This happens for instance with `./config.status config.h'.
8483if test -n "$CONFIG_FILES"; then
8484
8485
8486ac_cr=`echo X | tr X '\015'`
8487# On cygwin, bash can eat \r inside `` if the user requested igncr.
8488# But we know of no other shell where ac_cr would be empty at this
8489# point, so we can use a bashism as a fallback.
8490if test "x$ac_cr" = x; then
8491  eval ac_cr=\$\'\\r\'
8492fi
8493ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8494if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8495  ac_cs_awk_cr='\\r'
8496else
8497  ac_cs_awk_cr=$ac_cr
8498fi
8499
8500echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8501_ACEOF
8502
8503
8504{
8505  echo "cat >conf$$subs.awk <<_ACEOF" &&
8506  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8507  echo "_ACEOF"
8508} >conf$$subs.sh ||
8509  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8510ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8511ac_delim='%!_!# '
8512for ac_last_try in false false false false false :; do
8513  . ./conf$$subs.sh ||
8514    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8515
8516  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8517  if test $ac_delim_n = $ac_delim_num; then
8518    break
8519  elif $ac_last_try; then
8520    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8521  else
8522    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8523  fi
8524done
8525rm -f conf$$subs.sh
8526
8527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8528cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8529_ACEOF
8530sed -n '
8531h
8532s/^/S["/; s/!.*/"]=/
8533p
8534g
8535s/^[^!]*!//
8536:repl
8537t repl
8538s/'"$ac_delim"'$//
8539t delim
8540:nl
8541h
8542s/\(.\{148\}\)..*/\1/
8543t more1
8544s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8545p
8546n
8547b repl
8548:more1
8549s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8550p
8551g
8552s/.\{148\}//
8553t nl
8554:delim
8555h
8556s/\(.\{148\}\)..*/\1/
8557t more2
8558s/["\\]/\\&/g; s/^/"/; s/$/"/
8559p
8560b
8561:more2
8562s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8563p
8564g
8565s/.\{148\}//
8566t delim
8567' <conf$$subs.awk | sed '
8568/^[^""]/{
8569  N
8570  s/\n//
8571}
8572' >>$CONFIG_STATUS || ac_write_fail=1
8573rm -f conf$$subs.awk
8574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8575_ACAWK
8576cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8577  for (key in S) S_is_set[key] = 1
8578  FS = ""
8579
8580}
8581{
8582  line = $ 0
8583  nfields = split(line, field, "@")
8584  substed = 0
8585  len = length(field[1])
8586  for (i = 2; i < nfields; i++) {
8587    key = field[i]
8588    keylen = length(key)
8589    if (S_is_set[key]) {
8590      value = S[key]
8591      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8592      len += length(value) + length(field[++i])
8593      substed = 1
8594    } else
8595      len += 1 + keylen
8596  }
8597
8598  print line
8599}
8600
8601_ACAWK
8602_ACEOF
8603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8604if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8605  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8606else
8607  cat
8608fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8609  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8610_ACEOF
8611
8612# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8613# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8614# trailing colons and then remove the whole line if VPATH becomes empty
8615# (actually we leave an empty line to preserve line numbers).
8616if test "x$srcdir" = x.; then
8617  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8618h
8619s///
8620s/^/:/
8621s/[	 ]*$/:/
8622s/:\$(srcdir):/:/g
8623s/:\${srcdir}:/:/g
8624s/:@srcdir@:/:/g
8625s/^:*//
8626s/:*$//
8627x
8628s/\(=[	 ]*\).*/\1/
8629G
8630s/\n//
8631s/^[^=]*=[	 ]*$//
8632}'
8633fi
8634
8635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8636fi # test -n "$CONFIG_FILES"
8637
8638# Set up the scripts for CONFIG_HEADERS section.
8639# No need to generate them if there are no CONFIG_HEADERS.
8640# This happens for instance with `./config.status Makefile'.
8641if test -n "$CONFIG_HEADERS"; then
8642cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8643BEGIN {
8644_ACEOF
8645
8646# Transform confdefs.h into an awk script `defines.awk', embedded as
8647# here-document in config.status, that substitutes the proper values into
8648# config.h.in to produce config.h.
8649
8650# Create a delimiter string that does not exist in confdefs.h, to ease
8651# handling of long lines.
8652ac_delim='%!_!# '
8653for ac_last_try in false false :; do
8654  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8655  if test -z "$ac_tt"; then
8656    break
8657  elif $ac_last_try; then
8658    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8659  else
8660    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8661  fi
8662done
8663
8664# For the awk script, D is an array of macro values keyed by name,
8665# likewise P contains macro parameters if any.  Preserve backslash
8666# newline sequences.
8667
8668ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8669sed -n '
8670s/.\{148\}/&'"$ac_delim"'/g
8671t rset
8672:rset
8673s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8674t def
8675d
8676:def
8677s/\\$//
8678t bsnl
8679s/["\\]/\\&/g
8680s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8681D["\1"]=" \3"/p
8682s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8683d
8684:bsnl
8685s/["\\]/\\&/g
8686s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8687D["\1"]=" \3\\\\\\n"\\/p
8688t cont
8689s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8690t cont
8691d
8692:cont
8693n
8694s/.\{148\}/&'"$ac_delim"'/g
8695t clear
8696:clear
8697s/\\$//
8698t bsnlc
8699s/["\\]/\\&/g; s/^/"/; s/$/"/p
8700d
8701:bsnlc
8702s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8703b cont
8704' <confdefs.h | sed '
8705s/'"$ac_delim"'/"\\\
8706"/g' >>$CONFIG_STATUS || ac_write_fail=1
8707
8708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8709  for (key in D) D_is_set[key] = 1
8710  FS = ""
8711}
8712/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8713  line = \$ 0
8714  split(line, arg, " ")
8715  if (arg[1] == "#") {
8716    defundef = arg[2]
8717    mac1 = arg[3]
8718  } else {
8719    defundef = substr(arg[1], 2)
8720    mac1 = arg[2]
8721  }
8722  split(mac1, mac2, "(") #)
8723  macro = mac2[1]
8724  prefix = substr(line, 1, index(line, defundef) - 1)
8725  if (D_is_set[macro]) {
8726    # Preserve the white space surrounding the "#".
8727    print prefix "define", macro P[macro] D[macro]
8728    next
8729  } else {
8730    # Replace #undef with comments.  This is necessary, for example,
8731    # in the case of _POSIX_SOURCE, which is predefined and required
8732    # on some systems where configure will not decide to define it.
8733    if (defundef == "undef") {
8734      print "/*", prefix defundef, macro, "*/"
8735      next
8736    }
8737  }
8738}
8739{ print }
8740_ACAWK
8741_ACEOF
8742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8743  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8744fi # test -n "$CONFIG_HEADERS"
8745
8746
8747eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8748shift
8749for ac_tag
8750do
8751  case $ac_tag in
8752  :[FHLC]) ac_mode=$ac_tag; continue;;
8753  esac
8754  case $ac_mode$ac_tag in
8755  :[FHL]*:*);;
8756  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8757  :[FH]-) ac_tag=-:-;;
8758  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8759  esac
8760  ac_save_IFS=$IFS
8761  IFS=:
8762  set x $ac_tag
8763  IFS=$ac_save_IFS
8764  shift
8765  ac_file=$1
8766  shift
8767
8768  case $ac_mode in
8769  :L) ac_source=$1;;
8770  :[FH])
8771    ac_file_inputs=
8772    for ac_f
8773    do
8774      case $ac_f in
8775      -) ac_f="$ac_tmp/stdin";;
8776      *) # Look for the file first in the build tree, then in the source tree
8777	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8778	 # because $ac_f cannot contain `:'.
8779	 test -f "$ac_f" ||
8780	   case $ac_f in
8781	   [\\/$]*) false;;
8782	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8783	   esac ||
8784	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8785      esac
8786      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8787      as_fn_append ac_file_inputs " '$ac_f'"
8788    done
8789
8790    # Let's still pretend it is `configure' which instantiates (i.e., don't
8791    # use $as_me), people would be surprised to read:
8792    #    /* config.h.  Generated by config.status.  */
8793    configure_input='Generated from '`
8794	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8795	`' by configure.'
8796    if test x"$ac_file" != x-; then
8797      configure_input="$ac_file.  $configure_input"
8798      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8799$as_echo "$as_me: creating $ac_file" >&6;}
8800    fi
8801    # Neutralize special characters interpreted by sed in replacement strings.
8802    case $configure_input in #(
8803    *\&* | *\|* | *\\* )
8804       ac_sed_conf_input=`$as_echo "$configure_input" |
8805       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8806    *) ac_sed_conf_input=$configure_input;;
8807    esac
8808
8809    case $ac_tag in
8810    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8811      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8812    esac
8813    ;;
8814  esac
8815
8816  ac_dir=`$as_dirname -- "$ac_file" ||
8817$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8818	 X"$ac_file" : 'X\(//\)[^/]' \| \
8819	 X"$ac_file" : 'X\(//\)$' \| \
8820	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8821$as_echo X"$ac_file" |
8822    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8823	    s//\1/
8824	    q
8825	  }
8826	  /^X\(\/\/\)[^/].*/{
8827	    s//\1/
8828	    q
8829	  }
8830	  /^X\(\/\/\)$/{
8831	    s//\1/
8832	    q
8833	  }
8834	  /^X\(\/\).*/{
8835	    s//\1/
8836	    q
8837	  }
8838	  s/.*/./; q'`
8839  as_dir="$ac_dir"; as_fn_mkdir_p
8840  ac_builddir=.
8841
8842case "$ac_dir" in
8843.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8844*)
8845  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8846  # A ".." for each directory in $ac_dir_suffix.
8847  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8848  case $ac_top_builddir_sub in
8849  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8850  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8851  esac ;;
8852esac
8853ac_abs_top_builddir=$ac_pwd
8854ac_abs_builddir=$ac_pwd$ac_dir_suffix
8855# for backward compatibility:
8856ac_top_builddir=$ac_top_build_prefix
8857
8858case $srcdir in
8859  .)  # We are building in place.
8860    ac_srcdir=.
8861    ac_top_srcdir=$ac_top_builddir_sub
8862    ac_abs_top_srcdir=$ac_pwd ;;
8863  [\\/]* | ?:[\\/]* )  # Absolute name.
8864    ac_srcdir=$srcdir$ac_dir_suffix;
8865    ac_top_srcdir=$srcdir
8866    ac_abs_top_srcdir=$srcdir ;;
8867  *) # Relative name.
8868    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8869    ac_top_srcdir=$ac_top_build_prefix$srcdir
8870    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8871esac
8872ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8873
8874
8875  case $ac_mode in
8876  :F)
8877  #
8878  # CONFIG_FILE
8879  #
8880
8881  case $INSTALL in
8882  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8883  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8884  esac
8885  ac_MKDIR_P=$MKDIR_P
8886  case $MKDIR_P in
8887  [\\/$]* | ?:[\\/]* ) ;;
8888  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8889  esac
8890_ACEOF
8891
8892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8893# If the template does not know about datarootdir, expand it.
8894# FIXME: This hack should be removed a few years after 2.60.
8895ac_datarootdir_hack=; ac_datarootdir_seen=
8896ac_sed_dataroot='
8897/datarootdir/ {
8898  p
8899  q
8900}
8901/@datadir@/p
8902/@docdir@/p
8903/@infodir@/p
8904/@localedir@/p
8905/@mandir@/p'
8906case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8907*datarootdir*) ac_datarootdir_seen=yes;;
8908*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8909  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8910$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8911_ACEOF
8912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8913  ac_datarootdir_hack='
8914  s&@datadir@&$datadir&g
8915  s&@docdir@&$docdir&g
8916  s&@infodir@&$infodir&g
8917  s&@localedir@&$localedir&g
8918  s&@mandir@&$mandir&g
8919  s&\\\${datarootdir}&$datarootdir&g' ;;
8920esac
8921_ACEOF
8922
8923# Neutralize VPATH when `$srcdir' = `.'.
8924# Shell code in configure.ac might set extrasub.
8925# FIXME: do we really want to maintain this feature?
8926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8927ac_sed_extra="$ac_vpsub
8928$extrasub
8929_ACEOF
8930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8931:t
8932/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8933s|@configure_input@|$ac_sed_conf_input|;t t
8934s&@top_builddir@&$ac_top_builddir_sub&;t t
8935s&@top_build_prefix@&$ac_top_build_prefix&;t t
8936s&@srcdir@&$ac_srcdir&;t t
8937s&@abs_srcdir@&$ac_abs_srcdir&;t t
8938s&@top_srcdir@&$ac_top_srcdir&;t t
8939s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8940s&@builddir@&$ac_builddir&;t t
8941s&@abs_builddir@&$ac_abs_builddir&;t t
8942s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8943s&@INSTALL@&$ac_INSTALL&;t t
8944s&@MKDIR_P@&$ac_MKDIR_P&;t t
8945$ac_datarootdir_hack
8946"
8947eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8948  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8949
8950test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8951  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8952  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8953      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8954  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8955which seems to be undefined.  Please make sure it is defined" >&5
8956$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8957which seems to be undefined.  Please make sure it is defined" >&2;}
8958
8959  rm -f "$ac_tmp/stdin"
8960  case $ac_file in
8961  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8962  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8963  esac \
8964  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8965 ;;
8966  :H)
8967  #
8968  # CONFIG_HEADER
8969  #
8970  if test x"$ac_file" != x-; then
8971    {
8972      $as_echo "/* $configure_input  */" \
8973      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8974    } >"$ac_tmp/config.h" \
8975      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8976    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8977      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8978$as_echo "$as_me: $ac_file is unchanged" >&6;}
8979    else
8980      rm -f "$ac_file"
8981      mv "$ac_tmp/config.h" "$ac_file" \
8982	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8983    fi
8984  else
8985    $as_echo "/* $configure_input  */" \
8986      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8987      || as_fn_error $? "could not create -" "$LINENO" 5
8988  fi
8989# Compute "$ac_file"'s index in $config_headers.
8990_am_arg="$ac_file"
8991_am_stamp_count=1
8992for _am_header in $config_headers :; do
8993  case $_am_header in
8994    $_am_arg | $_am_arg:* )
8995      break ;;
8996    * )
8997      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8998  esac
8999done
9000echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9001$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9002	 X"$_am_arg" : 'X\(//\)[^/]' \| \
9003	 X"$_am_arg" : 'X\(//\)$' \| \
9004	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9005$as_echo X"$_am_arg" |
9006    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9007	    s//\1/
9008	    q
9009	  }
9010	  /^X\(\/\/\)[^/].*/{
9011	    s//\1/
9012	    q
9013	  }
9014	  /^X\(\/\/\)$/{
9015	    s//\1/
9016	    q
9017	  }
9018	  /^X\(\/\).*/{
9019	    s//\1/
9020	    q
9021	  }
9022	  s/.*/./; q'`/stamp-h$_am_stamp_count
9023 ;;
9024
9025  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9026$as_echo "$as_me: executing $ac_file commands" >&6;}
9027 ;;
9028  esac
9029
9030
9031  case $ac_file$ac_mode in
9032    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9033  # Older Autoconf quotes --file arguments for eval, but not when files
9034  # are listed without --file.  Let's play safe and only enable the eval
9035  # if we detect the quoting.
9036  case $CONFIG_FILES in
9037  *\'*) eval set x "$CONFIG_FILES" ;;
9038  *)   set x $CONFIG_FILES ;;
9039  esac
9040  shift
9041  for mf
9042  do
9043    # Strip MF so we end up with the name of the file.
9044    mf=`echo "$mf" | sed -e 's/:.*$//'`
9045    # Check whether this is an Automake generated Makefile or not.
9046    # We used to match only the files named 'Makefile.in', but
9047    # some people rename them; so instead we look at the file content.
9048    # Grep'ing the first line is not enough: some people post-process
9049    # each Makefile.in and add a new line on top of each file to say so.
9050    # Grep'ing the whole file is not good either: AIX grep has a line
9051    # limit of 2048, but all sed's we know have understand at least 4000.
9052    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9053      dirpart=`$as_dirname -- "$mf" ||
9054$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9055	 X"$mf" : 'X\(//\)[^/]' \| \
9056	 X"$mf" : 'X\(//\)$' \| \
9057	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9058$as_echo X"$mf" |
9059    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9060	    s//\1/
9061	    q
9062	  }
9063	  /^X\(\/\/\)[^/].*/{
9064	    s//\1/
9065	    q
9066	  }
9067	  /^X\(\/\/\)$/{
9068	    s//\1/
9069	    q
9070	  }
9071	  /^X\(\/\).*/{
9072	    s//\1/
9073	    q
9074	  }
9075	  s/.*/./; q'`
9076    else
9077      continue
9078    fi
9079    # Extract the definition of DEPDIR, am__include, and am__quote
9080    # from the Makefile without running 'make'.
9081    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9082    test -z "$DEPDIR" && continue
9083    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9084    test -z "$am__include" && continue
9085    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9086    # Find all dependency output files, they are included files with
9087    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9088    # simplest approach to changing $(DEPDIR) to its actual value in the
9089    # expansion.
9090    for file in `sed -n "
9091      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9092	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9093      # Make sure the directory exists.
9094      test -f "$dirpart/$file" && continue
9095      fdir=`$as_dirname -- "$file" ||
9096$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9097	 X"$file" : 'X\(//\)[^/]' \| \
9098	 X"$file" : 'X\(//\)$' \| \
9099	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9100$as_echo X"$file" |
9101    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9102	    s//\1/
9103	    q
9104	  }
9105	  /^X\(\/\/\)[^/].*/{
9106	    s//\1/
9107	    q
9108	  }
9109	  /^X\(\/\/\)$/{
9110	    s//\1/
9111	    q
9112	  }
9113	  /^X\(\/\).*/{
9114	    s//\1/
9115	    q
9116	  }
9117	  s/.*/./; q'`
9118      as_dir=$dirpart/$fdir; as_fn_mkdir_p
9119      # echo "creating $dirpart/$file"
9120      echo '# dummy' > "$dirpart/$file"
9121    done
9122  done
9123}
9124 ;;
9125
9126  esac
9127done # for ac_tag
9128
9129
9130as_fn_exit 0
9131_ACEOF
9132ac_clean_files=$ac_clean_files_save
9133
9134test $ac_write_fail = 0 ||
9135  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9136
9137
9138# configure is writing to config.log, and then calls config.status.
9139# config.status does its own redirection, appending to config.log.
9140# Unfortunately, on DOS this fails, as config.log is still kept open
9141# by configure, so config.status won't be able to write to it; its
9142# output is simply discarded.  So we exec the FD to /dev/null,
9143# effectively closing config.log, so it can be properly (re)opened and
9144# appended to by config.status.  When coming back to configure, we
9145# need to make the FD available again.
9146if test "$no_create" != yes; then
9147  ac_cs_success=:
9148  ac_config_status_args=
9149  test "$silent" = yes &&
9150    ac_config_status_args="$ac_config_status_args --quiet"
9151  exec 5>/dev/null
9152  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9153  exec 5>>config.log
9154  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9155  # would make configure fail if this is the last instruction.
9156  $ac_cs_success || as_fn_exit 1
9157fi
9158if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9159  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9160$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9161fi
9162
9163