1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for subversion 1.14.0.
4#
5# Report bugs to <http://subversion.apache.org/>.
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
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://subversion.apache.org/ about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='subversion'
592PACKAGE_TARNAME='subversion'
593PACKAGE_VERSION='1.14.0'
594PACKAGE_STRING='subversion 1.14.0'
595PACKAGE_BUGREPORT='http://subversion.apache.org/'
596PACKAGE_URL=''
597
598ac_unique_file="subversion/include/svn_types.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='LTLIBOBJS
636SVN_CONFIG_SCRIPT_FILES
637INCLUDE_OUTPUTS
638JAVAHL_COMPAT_TESTS_TARGET
639JAVAHL_TESTS_TARGET
640JAVA_CLASSPATH
641LT_CXX_LIBADD
642FIX_JAVAHL_LIB
643JAVAHL_OBJDIR
644INSTALL_EXTRA_JAVAHL_LIB
645SVN_BUILD_SVNXX_TESTS
646SVN_BUILD_SVNXX
647BOOST_LDFLAGS
648BOOST_CPPFLAGS
649BOOST_UNIT_TEST_FRAMEWORK_LIB
650SVN_FS_LIB_LINK
651SVN_FS_LIB_INSTALL_DEPS
652SVN_FS_LIB_DEPS
653SVN_RA_LIB_LINK
654SVN_RA_LIB_INSTALL_DEPS
655SVN_RA_LIB_DEPS
656CTYPESGEN
657SWIG_PY_FEATURES
658SWIG_PL_FEATURES
659SWIG_RB_FEATURES
660SWIG_FEATURES
661SWIG_RB_ERRMSG
662SWIG_RB_TEST_VERBOSE
663SWIG_RB_SITE_ARCH_DIR
664SWIG_RB_SITE_LIB_DIR
665SWIG_RB_COMPILE
666SWIG_RB_INCLUDES
667SWIG_RB_LIBS
668SWIG_RB_LINK
669SWIG_PL_ERRMSG
670SWIG_PL_LINK
671SWIG_PL_INCLUDES
672SWIG_PY_ERRMSG
673SWIG_PY_OPTS
674SWIG_PY_LIBS
675SWIG_PY_LINK
676SWIG_PY_COMPILE
677SWIG_PY_INCLUDES
678SVN_PY3C_INCLUDES
679SWIG
680RUBY_TEENY
681RUBY_MINOR
682RUBY_MAJOR
683RDOC
684RUBY
685PERL
686JNI_INCLUDES
687JAR
688JAVAH
689JAVADOC
690JAVAC_COMPAT_FLAGS
691JAVAC_FLAGS
692JAVAC
693JAVA
694JDK
695PYTHON
696MOD_ACTIVATION
697SVN_UTF8PROC_LIBS
698SVN_UTF8PROC_INCLUDES
699SVN_LZ4_LIBS
700SVN_LZ4_INCLUDES
701SVN_ZLIB_LIBS
702SVN_ZLIB_INCLUDES
703shared_only_LDFLAGS
704libsvn_wc_LDFLAGS
705libsvn_subr_LDFLAGS
706libsvn_repos_LDFLAGS
707libsvn_ra_svn_LDFLAGS
708libsvn_ra_serf_LDFLAGS
709libsvn_ra_local_LDFLAGS
710libsvn_ra_LDFLAGS
711libsvn_fs_util_LDFLAGS
712libsvn_fs_fs_LDFLAGS
713libsvn_fs_base_LDFLAGS
714libsvn_fs_LDFLAGS
715libsvn_diff_LDFLAGS
716libsvn_delta_LDFLAGS
717libsvn_client_LDFLAGS
718LIBOBJS
719BDB_TEST_PROGRAMS
720BDB_TEST_DEPS
721INSTALL_RULES
722INSTALL_STATIC_RULES
723BUILD_RULES
724SVN_KWALLET_LIBS
725SVN_KWALLET_INCLUDES
726KDE_CONFIG
727SVN_MAGIC_LIBS
728SVN_MAGIC_INCLUDES
729MSGFMTFLAGS
730NO_GETTEXT_CODESET
731GETTEXT_CODESET
732SVN_INTL_LIBS
733XGETTEXT
734MSGMERGE
735MSGFMT
736SVN_GNOME_KEYRING_PCLIBS
737SVN_GNOME_KEYRING_LIBS
738SVN_GNOME_KEYRING_INCLUDES
739SVN_HAVE_GPG_AGENT
740SVN_MACOS_KEYCHAIN_LIBS
741SVN_MACOS_PLIST_LIBS
742SVN_SASL_LIBS
743SVN_SASL_INCLUDES
744SVN_DB_LIBS
745SVN_DB_INCLUDES
746SVN_XML_LIBS
747SVN_XML_INCLUDES
748DOXYGEN
749TRANG
750LT_NO_UNDEFINED
751TRANSFORM_LIBTOOL_SCRIPTS
752LT_LDFLAGS
753LT_CFLAGS
754SVN_LIBTOOL
755CXXCPP
756LT_SYS_LIBRARY_PATH
757OTOOL64
758OTOOL
759LIPO
760NMEDIT
761DSYMUTIL
762MANIFEST_TOOL
763AWK
764RANLIB
765STRIP
766ac_ct_AR
767AR
768DLLTOOL
769OBJDUMP
770NM
771ac_ct_DUMPBIN
772DUMPBIN
773LD
774FGREP
775LIBTOOL
776SVN_BINDIR
777SVN_SQLITE_LIBS
778SVN_SQLITE_INCLUDES
779HTTPD_VERSION
780INSTALL_APACHE_MODS
781APACHE_LIBEXECDIR
782APACHE_INCLUDES
783APACHE_LDFLAGS
784APXS
785HTTPD_WHITELIST
786SVN_APR_MEMCACHE_LIBS
787SVN_APR_MEMCACHE_INCLUDES
788SVN_SERF_LIBS
789SVN_SERF_INCLUDES
790PKG_CONFIG
791SVN_LT_SOVERSION
792SVN_APR_MAJOR_VERSION
793SVN_APRUTIL_LIBS
794SVN_APRUTIL_CONFIG
795SVN_APRUTIL_INCLUDES
796SVN_APR_SHLIB_PATH_VAR
797SVN_APR_LIBS
798SVN_APR_INCLUDES
799SVN_APR_CONFIG
800MKDIR
801INSTALL_DATA
802INSTALL_SCRIPT
803INSTALL_PROGRAM
804LN_S
805EGREP
806GREP
807target_os
808target_vendor
809target_cpu
810target
811host_os
812host_vendor
813host_cpu
814host
815build_os
816build_vendor
817build_cpu
818build
819SED
820CPP
821CXXUSERFLAGS
822CXXMAINTAINERFLAGS
823CXXNOWARNFLAGS
824CXXMODEFLAGS
825ac_ct_CXX
826CXXFLAGS
827CXX
828CUSERFLAGS
829CMAINTAINERFLAGS
830CNOWARNFLAGS
831CMODEFLAGS
832OBJEXT
833EXEEXT
834ac_ct_CC
835CPPFLAGS
836LDFLAGS
837CFLAGS
838CC
839SWIG_LDFLAGS
840canonicalized_srcdir
841abs_builddir
842abs_srcdir
843target_alias
844host_alias
845build_alias
846LIBS
847ECHO_T
848ECHO_N
849ECHO_C
850DEFS
851mandir
852localedir
853libdir
854psdir
855pdfdir
856dvidir
857htmldir
858infodir
859docdir
860oldincludedir
861includedir
862localstatedir
863sharedstatedir
864sysconfdir
865datadir
866datarootdir
867libexecdir
868sbindir
869bindir
870program_transform_name
871prefix
872exec_prefix
873PACKAGE_URL
874PACKAGE_BUGREPORT
875PACKAGE_STRING
876PACKAGE_VERSION
877PACKAGE_TARNAME
878PACKAGE_NAME
879PATH_SEPARATOR
880SHELL'
881ac_subst_files=''
882ac_user_opts='
883enable_option_checking
884with_apr
885with_apr_util
886with_serf
887with_apr_memcache
888enable_apache_whitelist
889with_apxs
890with_apache_libexecdir
891enable_broken_httpd_auth
892with_sqlite
893enable_sqlite_compatibility_version
894enable_shared
895enable_static
896with_pic
897enable_fast_install
898with_aix_soname
899with_gnu_ld
900with_sysroot
901enable_libtool_lock
902enable_experimental_libtool
903enable_all_static
904enable_local_library_preloading
905with_trang
906with_doxygen
907with_expat
908with_berkeley_db
909enable_bdb6
910with_sasl
911enable_keychain
912with_gpg_agent
913with_old_gnome_keyring
914with_gnome_keyring
915enable_ev2_impl
916enable_nls
917with_libmagic
918with_kwallet
919enable_plaintext_password_storage
920enable_debug
921enable_optimize
922enable_disallowing_of_undefined_references
923enable_maintainer_mode
924enable_full_version_match
925with_editor
926with_zlib
927with_lz4
928with_utf8proc
929enable_mod_activation
930enable_gcov
931enable_gprof
932with_jdk
933with_jikes
934with_swig
935with_py3c
936with_ruby_sitedir
937with_ruby_test_verbose
938with_ctypesgen
939enable_runtime_module_search
940enable_svnxx
941enable_svnxx_tests
942with_boost
943with_boost_libdir
944with_boost_unit_test_framework
945enable_javahl
946with_junit
947'
948      ac_precious_vars='build_alias
949host_alias
950target_alias
951CC
952CFLAGS
953LDFLAGS
954LIBS
955CPPFLAGS
956CXX
957CXXFLAGS
958CCC
959CPP
960LT_SYS_LIBRARY_PATH
961CXXCPP
962PYTHON
963SWIG_FEATURES
964SWIG_RB_FEATURES
965SWIG_PL_FEATURES
966SWIG_PY_FEATURES'
967
968
969# Initialize some variables set by options.
970ac_init_help=
971ac_init_version=false
972ac_unrecognized_opts=
973ac_unrecognized_sep=
974# The variables have the same names as the options, with
975# dashes changed to underlines.
976cache_file=/dev/null
977exec_prefix=NONE
978no_create=
979no_recursion=
980prefix=NONE
981program_prefix=NONE
982program_suffix=NONE
983program_transform_name=s,x,x,
984silent=
985site=
986srcdir=
987verbose=
988x_includes=NONE
989x_libraries=NONE
990
991# Installation directory options.
992# These are left unexpanded so users can "make install exec_prefix=/foo"
993# and all the variables that are supposed to be based on exec_prefix
994# by default will actually change.
995# Use braces instead of parens because sh, perl, etc. also accept them.
996# (The list follows the same order as the GNU Coding Standards.)
997bindir='${exec_prefix}/bin'
998sbindir='${exec_prefix}/sbin'
999libexecdir='${exec_prefix}/libexec'
1000datarootdir='${prefix}/share'
1001datadir='${datarootdir}'
1002sysconfdir='${prefix}/etc'
1003sharedstatedir='${prefix}/com'
1004localstatedir='${prefix}/var'
1005includedir='${prefix}/include'
1006oldincludedir='/usr/include'
1007docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008infodir='${datarootdir}/info'
1009htmldir='${docdir}'
1010dvidir='${docdir}'
1011pdfdir='${docdir}'
1012psdir='${docdir}'
1013libdir='${exec_prefix}/lib'
1014localedir='${datarootdir}/locale'
1015mandir='${datarootdir}/man'
1016
1017ac_prev=
1018ac_dashdash=
1019for ac_option
1020do
1021  # If the previous option needs an argument, assign it.
1022  if test -n "$ac_prev"; then
1023    eval $ac_prev=\$ac_option
1024    ac_prev=
1025    continue
1026  fi
1027
1028  case $ac_option in
1029  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030  *=)   ac_optarg= ;;
1031  *)    ac_optarg=yes ;;
1032  esac
1033
1034  # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036  case $ac_dashdash$ac_option in
1037  --)
1038    ac_dashdash=yes ;;
1039
1040  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041    ac_prev=bindir ;;
1042  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043    bindir=$ac_optarg ;;
1044
1045  -build | --build | --buil | --bui | --bu)
1046    ac_prev=build_alias ;;
1047  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048    build_alias=$ac_optarg ;;
1049
1050  -cache-file | --cache-file | --cache-fil | --cache-fi \
1051  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052    ac_prev=cache_file ;;
1053  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055    cache_file=$ac_optarg ;;
1056
1057  --config-cache | -C)
1058    cache_file=config.cache ;;
1059
1060  -datadir | --datadir | --datadi | --datad)
1061    ac_prev=datadir ;;
1062  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063    datadir=$ac_optarg ;;
1064
1065  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066  | --dataroo | --dataro | --datar)
1067    ac_prev=datarootdir ;;
1068  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070    datarootdir=$ac_optarg ;;
1071
1072  -disable-* | --disable-*)
1073    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076      as_fn_error $? "invalid feature name: $ac_useropt"
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"enable_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval enable_$ac_useropt=no ;;
1087
1088  -docdir | --docdir | --docdi | --doc | --do)
1089    ac_prev=docdir ;;
1090  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091    docdir=$ac_optarg ;;
1092
1093  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094    ac_prev=dvidir ;;
1095  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096    dvidir=$ac_optarg ;;
1097
1098  -enable-* | --enable-*)
1099    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100    # Reject names that are not valid shell variable names.
1101    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102      as_fn_error $? "invalid feature name: $ac_useropt"
1103    ac_useropt_orig=$ac_useropt
1104    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105    case $ac_user_opts in
1106      *"
1107"enable_$ac_useropt"
1108"*) ;;
1109      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1110	 ac_unrecognized_sep=', ';;
1111    esac
1112    eval enable_$ac_useropt=\$ac_optarg ;;
1113
1114  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1115  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1116  | --exec | --exe | --ex)
1117    ac_prev=exec_prefix ;;
1118  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1119  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1120  | --exec=* | --exe=* | --ex=*)
1121    exec_prefix=$ac_optarg ;;
1122
1123  -gas | --gas | --ga | --g)
1124    # Obsolete; use --with-gas.
1125    with_gas=yes ;;
1126
1127  -help | --help | --hel | --he | -h)
1128    ac_init_help=long ;;
1129  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1130    ac_init_help=recursive ;;
1131  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1132    ac_init_help=short ;;
1133
1134  -host | --host | --hos | --ho)
1135    ac_prev=host_alias ;;
1136  -host=* | --host=* | --hos=* | --ho=*)
1137    host_alias=$ac_optarg ;;
1138
1139  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1140    ac_prev=htmldir ;;
1141  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1142  | --ht=*)
1143    htmldir=$ac_optarg ;;
1144
1145  -includedir | --includedir | --includedi | --included | --include \
1146  | --includ | --inclu | --incl | --inc)
1147    ac_prev=includedir ;;
1148  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1149  | --includ=* | --inclu=* | --incl=* | --inc=*)
1150    includedir=$ac_optarg ;;
1151
1152  -infodir | --infodir | --infodi | --infod | --info | --inf)
1153    ac_prev=infodir ;;
1154  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1155    infodir=$ac_optarg ;;
1156
1157  -libdir | --libdir | --libdi | --libd)
1158    ac_prev=libdir ;;
1159  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1160    libdir=$ac_optarg ;;
1161
1162  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1163  | --libexe | --libex | --libe)
1164    ac_prev=libexecdir ;;
1165  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1166  | --libexe=* | --libex=* | --libe=*)
1167    libexecdir=$ac_optarg ;;
1168
1169  -localedir | --localedir | --localedi | --localed | --locale)
1170    ac_prev=localedir ;;
1171  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1172    localedir=$ac_optarg ;;
1173
1174  -localstatedir | --localstatedir | --localstatedi | --localstated \
1175  | --localstate | --localstat | --localsta | --localst | --locals)
1176    ac_prev=localstatedir ;;
1177  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1178  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1179    localstatedir=$ac_optarg ;;
1180
1181  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1182    ac_prev=mandir ;;
1183  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1184    mandir=$ac_optarg ;;
1185
1186  -nfp | --nfp | --nf)
1187    # Obsolete; use --without-fp.
1188    with_fp=no ;;
1189
1190  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1191  | --no-cr | --no-c | -n)
1192    no_create=yes ;;
1193
1194  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1195  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1196    no_recursion=yes ;;
1197
1198  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1199  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1200  | --oldin | --oldi | --old | --ol | --o)
1201    ac_prev=oldincludedir ;;
1202  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1203  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1204  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1205    oldincludedir=$ac_optarg ;;
1206
1207  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1208    ac_prev=prefix ;;
1209  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1210    prefix=$ac_optarg ;;
1211
1212  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1213  | --program-pre | --program-pr | --program-p)
1214    ac_prev=program_prefix ;;
1215  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1216  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1217    program_prefix=$ac_optarg ;;
1218
1219  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1220  | --program-suf | --program-su | --program-s)
1221    ac_prev=program_suffix ;;
1222  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1223  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1224    program_suffix=$ac_optarg ;;
1225
1226  -program-transform-name | --program-transform-name \
1227  | --program-transform-nam | --program-transform-na \
1228  | --program-transform-n | --program-transform- \
1229  | --program-transform | --program-transfor \
1230  | --program-transfo | --program-transf \
1231  | --program-trans | --program-tran \
1232  | --progr-tra | --program-tr | --program-t)
1233    ac_prev=program_transform_name ;;
1234  -program-transform-name=* | --program-transform-name=* \
1235  | --program-transform-nam=* | --program-transform-na=* \
1236  | --program-transform-n=* | --program-transform-=* \
1237  | --program-transform=* | --program-transfor=* \
1238  | --program-transfo=* | --program-transf=* \
1239  | --program-trans=* | --program-tran=* \
1240  | --progr-tra=* | --program-tr=* | --program-t=*)
1241    program_transform_name=$ac_optarg ;;
1242
1243  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1244    ac_prev=pdfdir ;;
1245  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1246    pdfdir=$ac_optarg ;;
1247
1248  -psdir | --psdir | --psdi | --psd | --ps)
1249    ac_prev=psdir ;;
1250  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1251    psdir=$ac_optarg ;;
1252
1253  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254  | -silent | --silent | --silen | --sile | --sil)
1255    silent=yes ;;
1256
1257  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1258    ac_prev=sbindir ;;
1259  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1260  | --sbi=* | --sb=*)
1261    sbindir=$ac_optarg ;;
1262
1263  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1264  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1265  | --sharedst | --shareds | --shared | --share | --shar \
1266  | --sha | --sh)
1267    ac_prev=sharedstatedir ;;
1268  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1269  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1270  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1271  | --sha=* | --sh=*)
1272    sharedstatedir=$ac_optarg ;;
1273
1274  -site | --site | --sit)
1275    ac_prev=site ;;
1276  -site=* | --site=* | --sit=*)
1277    site=$ac_optarg ;;
1278
1279  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1280    ac_prev=srcdir ;;
1281  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1282    srcdir=$ac_optarg ;;
1283
1284  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1285  | --syscon | --sysco | --sysc | --sys | --sy)
1286    ac_prev=sysconfdir ;;
1287  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1288  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1289    sysconfdir=$ac_optarg ;;
1290
1291  -target | --target | --targe | --targ | --tar | --ta | --t)
1292    ac_prev=target_alias ;;
1293  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1294    target_alias=$ac_optarg ;;
1295
1296  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1297    verbose=yes ;;
1298
1299  -version | --version | --versio | --versi | --vers | -V)
1300    ac_init_version=: ;;
1301
1302  -with-* | --with-*)
1303    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1304    # Reject names that are not valid shell variable names.
1305    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306      as_fn_error $? "invalid package name: $ac_useropt"
1307    ac_useropt_orig=$ac_useropt
1308    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309    case $ac_user_opts in
1310      *"
1311"with_$ac_useropt"
1312"*) ;;
1313      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1314	 ac_unrecognized_sep=', ';;
1315    esac
1316    eval with_$ac_useropt=\$ac_optarg ;;
1317
1318  -without-* | --without-*)
1319    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1320    # Reject names that are not valid shell variable names.
1321    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322      as_fn_error $? "invalid package name: $ac_useropt"
1323    ac_useropt_orig=$ac_useropt
1324    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325    case $ac_user_opts in
1326      *"
1327"with_$ac_useropt"
1328"*) ;;
1329      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1330	 ac_unrecognized_sep=', ';;
1331    esac
1332    eval with_$ac_useropt=no ;;
1333
1334  --x)
1335    # Obsolete; use --with-x.
1336    with_x=yes ;;
1337
1338  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339  | --x-incl | --x-inc | --x-in | --x-i)
1340    ac_prev=x_includes ;;
1341  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343    x_includes=$ac_optarg ;;
1344
1345  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347    ac_prev=x_libraries ;;
1348  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350    x_libraries=$ac_optarg ;;
1351
1352  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1353Try \`$0 --help' for more information"
1354    ;;
1355
1356  *=*)
1357    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358    # Reject names that are not valid shell variable names.
1359    case $ac_envvar in #(
1360      '' | [0-9]* | *[!_$as_cr_alnum]* )
1361      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1362    esac
1363    eval $ac_envvar=\$ac_optarg
1364    export $ac_envvar ;;
1365
1366  *)
1367    # FIXME: should be removed in autoconf 3.0.
1368    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1369    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1371    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1372    ;;
1373
1374  esac
1375done
1376
1377if test -n "$ac_prev"; then
1378  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379  as_fn_error $? "missing argument to $ac_option"
1380fi
1381
1382if test -n "$ac_unrecognized_opts"; then
1383  case $enable_option_checking in
1384    no) ;;
1385    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1386    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387  esac
1388fi
1389
1390# Check all directory arguments for consistency.
1391for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392		datadir sysconfdir sharedstatedir localstatedir includedir \
1393		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394		libdir localedir mandir
1395do
1396  eval ac_val=\$$ac_var
1397  # Remove trailing slashes.
1398  case $ac_val in
1399    */ )
1400      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401      eval $ac_var=\$ac_val;;
1402  esac
1403  # Be sure to have absolute directory names.
1404  case $ac_val in
1405    [\\/$]* | ?:[\\/]* )  continue;;
1406    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407  esac
1408  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1409done
1410
1411# There might be people who depend on the old broken behavior: `$host'
1412# used to hold the argument of --host etc.
1413# FIXME: To remove some day.
1414build=$build_alias
1415host=$host_alias
1416target=$target_alias
1417
1418# FIXME: To remove some day.
1419if test "x$host_alias" != x; then
1420  if test "x$build_alias" = x; then
1421    cross_compiling=maybe
1422  elif test "x$build_alias" != "x$host_alias"; then
1423    cross_compiling=yes
1424  fi
1425fi
1426
1427ac_tool_prefix=
1428test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430test "$silent" = yes && exec 6>/dev/null
1431
1432
1433ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434ac_ls_di=`ls -di .` &&
1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436  as_fn_error $? "working directory cannot be determined"
1437test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1438  as_fn_error $? "pwd does not report name of working directory"
1439
1440
1441# Find the source files, if location was not specified.
1442if test -z "$srcdir"; then
1443  ac_srcdir_defaulted=yes
1444  # Try the directory containing this script, then the parent directory.
1445  ac_confdir=`$as_dirname -- "$as_myself" ||
1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447	 X"$as_myself" : 'X\(//\)[^/]' \| \
1448	 X"$as_myself" : 'X\(//\)$' \| \
1449	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450$as_echo X"$as_myself" |
1451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452	    s//\1/
1453	    q
1454	  }
1455	  /^X\(\/\/\)[^/].*/{
1456	    s//\1/
1457	    q
1458	  }
1459	  /^X\(\/\/\)$/{
1460	    s//\1/
1461	    q
1462	  }
1463	  /^X\(\/\).*/{
1464	    s//\1/
1465	    q
1466	  }
1467	  s/.*/./; q'`
1468  srcdir=$ac_confdir
1469  if test ! -r "$srcdir/$ac_unique_file"; then
1470    srcdir=..
1471  fi
1472else
1473  ac_srcdir_defaulted=no
1474fi
1475if test ! -r "$srcdir/$ac_unique_file"; then
1476  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1478fi
1479ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480ac_abs_confdir=`(
1481	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482	pwd)`
1483# When building in place, set srcdir=.
1484if test "$ac_abs_confdir" = "$ac_pwd"; then
1485  srcdir=.
1486fi
1487# Remove unnecessary trailing slashes from srcdir.
1488# Double slashes in file names in object file debugging info
1489# mess up M-x gdb in Emacs.
1490case $srcdir in
1491*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492esac
1493for ac_var in $ac_precious_vars; do
1494  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495  eval ac_env_${ac_var}_value=\$${ac_var}
1496  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1498done
1499
1500#
1501# Report the --help message.
1502#
1503if test "$ac_init_help" = "long"; then
1504  # Omit some internal or obsolete options to make the list less imposing.
1505  # This message is too long to be a string in the A/UX 3.1 sh.
1506  cat <<_ACEOF
1507\`configure' configures subversion 1.14.0 to adapt to many kinds of systems.
1508
1509Usage: $0 [OPTION]... [VAR=VALUE]...
1510
1511To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512VAR=VALUE.  See below for descriptions of some of the useful variables.
1513
1514Defaults for the options are specified in brackets.
1515
1516Configuration:
1517  -h, --help              display this help and exit
1518      --help=short        display options specific to this package
1519      --help=recursive    display the short help of all the included packages
1520  -V, --version           display version information and exit
1521  -q, --quiet, --silent   do not print \`checking ...' messages
1522      --cache-file=FILE   cache test results in FILE [disabled]
1523  -C, --config-cache      alias for \`--cache-file=config.cache'
1524  -n, --no-create         do not create output files
1525      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1526
1527Installation directories:
1528  --prefix=PREFIX         install architecture-independent files in PREFIX
1529                          [$ac_default_prefix]
1530  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1531                          [PREFIX]
1532
1533By default, \`make install' will install all the files in
1534\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1535an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536for instance \`--prefix=\$HOME'.
1537
1538For better control, use the options below.
1539
1540Fine tuning of the installation directories:
1541  --bindir=DIR            user executables [EPREFIX/bin]
1542  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1543  --libexecdir=DIR        program executables [EPREFIX/libexec]
1544  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1545  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1546  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1547  --libdir=DIR            object code libraries [EPREFIX/lib]
1548  --includedir=DIR        C header files [PREFIX/include]
1549  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1550  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1551  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1552  --infodir=DIR           info documentation [DATAROOTDIR/info]
1553  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1554  --mandir=DIR            man documentation [DATAROOTDIR/man]
1555  --docdir=DIR            documentation root [DATAROOTDIR/doc/subversion]
1556  --htmldir=DIR           html documentation [DOCDIR]
1557  --dvidir=DIR            dvi documentation [DOCDIR]
1558  --pdfdir=DIR            pdf documentation [DOCDIR]
1559  --psdir=DIR             ps documentation [DOCDIR]
1560_ACEOF
1561
1562  cat <<\_ACEOF
1563
1564System types:
1565  --build=BUILD     configure for building on BUILD [guessed]
1566  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1567  --target=TARGET   configure for building compilers for TARGET [HOST]
1568_ACEOF
1569fi
1570
1571if test -n "$ac_init_help"; then
1572  case $ac_init_help in
1573     short | recursive ) echo "Configuration of subversion 1.14.0:";;
1574   esac
1575  cat <<\_ACEOF
1576
1577Optional Features:
1578  --disable-option-checking  ignore unrecognized --enable/--with options
1579  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581  --enable-apache-whitelist=VER
1582                          Whitelist a particular Apache version number,
1583                          typically used to enable the use of a old version
1584                          patched by a distribution.
1585  --enable-broken-httpd-auth
1586                          Force build against httpd 2.4 with broken auth.
1587                          (This is not recommended as Subversion will be
1588                          vulnerable to CVE-2015-3184.)
1589  --enable-sqlite-compatibility-version=X.Y.Z
1590                          Allow binary to run against SQLite as old as ARG
1591  --enable-shared[=PKGS]  build shared libraries [default=yes]
1592  --enable-static[=PKGS]  build static libraries [default=yes]
1593  --enable-fast-install[=PKGS]
1594                          optimize for fast installation [default=yes]
1595  --disable-libtool-lock  avoid locking (might break parallel builds)
1596  --enable-experimental-libtool
1597                          Use APR's libtool
1598  --enable-static         Build static libraries
1599  --enable-shared         Build shared libraries
1600  --enable-all-static     Build completely static (standalone) binaries.
1601  --enable-local-library-preloading
1602                          Enable preloading of locally built libraries in
1603                          locally built executables. This may be necessary for
1604                          testing prior to installation on some platforms. It
1605                          does not work on some platforms (Darwin, OpenBSD,
1606                          ...).
1607  --enable-bdb6           Allow building against BDB 6+. See
1608                          --with-berkeley-db for specifying the location of
1609                          the Berkeley DB installation. Using BDB 6 will fail
1610                          if this option is not used.
1611  --disable-keychain      Disable use of Mac OS KeyChain for auth credentials
1612  --enable-ev2-impl       Use Ev2 implementations, where available
1613                          [EXPERIMENTAL]
1614  --disable-nls           Disable gettext functionality
1615  --enable-plaintext-password-storage
1616                          Enable on-disk caching of plaintext passwords and
1617                          passphrases. (Enabling this functionality will not
1618                          force Subversion to store passwords in plaintext,
1619                          but does permit users to explicitly allow that
1620                          behavior via runtime configuration.)
1621  --enable-debug          Turn on debugging
1622  --enable-optimize       Turn on optimizations
1623  --enable-disallowing-of-undefined-references
1624                          Use -Wl,--no-undefined flag during linking of some
1625                          libraries to disallow undefined references
1626  --enable-maintainer-mode
1627                          Turn on debugging and very strict compile-time
1628                          warnings
1629  --disable-full-version-match
1630                          Disable the full version match rules when checking
1631                          Subversion library compatibility.
1632  --enable-mod-activation Enable mod_dav_svn in httpd.conf
1633  --enable-gcov           Turn on gcov coverage testing (GCC only).
1634  --enable-gprof          Produce gprof profiling data in 'gmon.out' (GCC
1635                          only).
1636  --enable-runtime-module-search
1637                          Turn on dynamic loading of RA/FS libraries including
1638                          third-party FS libraries
1639  --enable-svnxx          Enable compilation of the C++ bindings (requires
1640                          C++)
1641  --enable-svnxx-tests    Enable compilation of tests for the C++ bindings
1642                          (implies --enable-svnxx, requires Boost and
1643                          Boost.Test)
1644  --enable-javahl         Enable compilation of Java high-level bindings
1645                          (requires C++)
1646
1647Optional Packages:
1648  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1649  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1650  --with-apr=PATH         prefix for installed APR or the full path to
1651                             apr-config
1652  --with-apr-util=PATH    prefix for installed APU or the full path to
1653                             apu-config
1654  --with-serf=PREFIX      Serf HTTP client library (enabled by default if
1655                          found)
1656  --with-apr_memcache=PREFIX
1657                          Standalone apr_memcache client library
1658  --with-apxs[=FILE]      Build shared Apache modules. FILE is the optional
1659                          pathname to the Apache apxs tool; defaults to
1660                          "apxs".
1661  --with-apache-libexecdir[=PATH]
1662                          Install Apache modules to Apache's configured
1663                          modules directory instead of LIBEXECDIR; if PATH is
1664                          given, install to PATH.
1665  --with-sqlite=PREFIX    Use installed SQLite library or amalgamation file.
1666  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1667                          both]
1668  --with-aix-soname=aix|svr4|both
1669                          shared library versioning (aka "SONAME") variant to
1670                          provide on AIX, [default=aix].
1671  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1672  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1673                          compiler's sysroot if not specified).
1674  --with-trang=PATH       Specify the command to run the trang schema
1675                          converter
1676  --with-doxygen=PATH     Specify the command to run doxygen
1677  --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1678                          Specify location of Expat
1679  --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1680                          The Subversion Berkeley DB based filesystem library
1681                          requires Berkeley DB $db_version or $db_alt_version.
1682                          If you specify `--without-berkeley-db', that library
1683                          will not be built. If you omit the argument of this
1684                          option completely, the configure script will use
1685                          Berkeley DB used by APR-UTIL.
1686  --with-sasl=PATH        Compile with libsasl2 in PATH
1687  --without-gpg-agent     Disable support for GPG-Agent
1688  --with-old-gnome-keyring
1689                          Enable old GNOME Keyring for auth credentials
1690                          (prefer --with-gnome-keyring)
1691  --with-gnome-keyring    Enable GNOME Keyring for auth credentials (enabled
1692                          by default if found)
1693  --with-libmagic=PREFIX  libmagic filetype detection library
1694  --with-kwallet[=PATH|INCDIR:LIBDIR]
1695                          Enable use of KWallet (KDE 5 or 4) for auth
1696                          credentials. PATH is the KDE install path,
1697                          alternatively INCDIR:LIBDIR are the header and
1698                          library install paths.
1699  --with-editor=PATH      Specify a default editor for the subversion client.
1700  --with-zlib=PREFIX      zlib compression library
1701  --with-lz4=PREFIX|internal
1702                          look for lz4 in PREFIX or use the internal code
1703  --with-utf8proc=PREFIX|internal
1704                          look for utf8proc in PREFIX or use the internal code
1705  --with-jdk=PATH         Try to use 'PATH/include' to find the JNI headers.
1706                          If PATH is not specified, look for a Java
1707                          Development Kit at JAVA_HOME.
1708  --with-jikes=PATH       Deprecated. Provided for backward compatibility.
1709  --with-swig=PATH        Try to use 'PATH/bin/swig' to build the swig
1710                          bindings. If PATH is not specified, look for a
1711                          'swig' binary in your PATH.
1712  --with-py3c=PREFIX      py3c python extension compatibility library
1713  --with-ruby-sitedir=SITEDIR
1714                          install Ruby bindings in SITEDIR (default is same as
1715                          ruby's one)
1716  --with-ruby-test-verbose=LEVEL
1717                          how to use output level for Ruby bindings tests
1718                          (default is normal)
1719  --with-ctypesgen=PATH   Specify the path to ctypesgen. This can either be
1720                          the full path to a ctypesgen installation, the full
1721                          path to a ctypesgen source tree or the full path to
1722                          ctypesgen.py.
1723  --with-boost[=ARG]      use Boost library from a standard location
1724                          (ARG=yes), from the specified location (ARG=<path>),
1725                          or disable it (ARG=no) [ARG=yes]
1726  --with-boost-libdir=LIB_DIR
1727                          Force given directory for boost libraries. Note that
1728                          this will override library path detection, so use
1729                          this parameter only if default library detection
1730                          fails and you know exactly where your boost
1731                          libraries are located.
1732  --with-boost-unit-test-framework[=special-lib]
1733                          use the Unit_Test_Framework library from boost - it
1734                          is possible to specify a certain library for the
1735                          linker e.g.
1736                          --with-boost-unit-test-framework=boost_unit_test_framework-gcc
1737  --with-junit=PATH       Specify a path to the junit JAR file.
1738
1739Some influential environment variables:
1740  CC          C compiler command
1741  CFLAGS      C compiler flags
1742  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1743              nonstandard directory <lib dir>
1744  LIBS        libraries to pass to the linker, e.g. -l<library>
1745  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746              you have headers in a nonstandard directory <include dir>
1747  CXX         C++ compiler command
1748  CXXFLAGS    C++ compiler flags
1749  CPP         C preprocessor
1750  LT_SYS_LIBRARY_PATH
1751              User-defined run-time library search path.
1752  CXXCPP      C++ preprocessor
1753  PYTHON      Python interpreter command
1754  SWIG_FEATURES
1755              SWIG feature flags common to all bindings
1756  SWIG_RB_FEATURES
1757              SWIG feature flags specific to Ruby bindings
1758  SWIG_PL_FEATURES
1759              SWIG feature flags specific to Perl bindings
1760  SWIG_PY_FEATURES
1761              SWIG feature flags specific to Python bindings
1762
1763Use these variables to override the choices made by `configure' or to help
1764it to find libraries and programs with nonstandard names/locations.
1765
1766Report bugs to <http://subversion.apache.org/>.
1767_ACEOF
1768ac_status=$?
1769fi
1770
1771if test "$ac_init_help" = "recursive"; then
1772  # If there are subdirs, report their specific --help.
1773  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774    test -d "$ac_dir" ||
1775      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1776      continue
1777    ac_builddir=.
1778
1779case "$ac_dir" in
1780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781*)
1782  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783  # A ".." for each directory in $ac_dir_suffix.
1784  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785  case $ac_top_builddir_sub in
1786  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788  esac ;;
1789esac
1790ac_abs_top_builddir=$ac_pwd
1791ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792# for backward compatibility:
1793ac_top_builddir=$ac_top_build_prefix
1794
1795case $srcdir in
1796  .)  # We are building in place.
1797    ac_srcdir=.
1798    ac_top_srcdir=$ac_top_builddir_sub
1799    ac_abs_top_srcdir=$ac_pwd ;;
1800  [\\/]* | ?:[\\/]* )  # Absolute name.
1801    ac_srcdir=$srcdir$ac_dir_suffix;
1802    ac_top_srcdir=$srcdir
1803    ac_abs_top_srcdir=$srcdir ;;
1804  *) # Relative name.
1805    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806    ac_top_srcdir=$ac_top_build_prefix$srcdir
1807    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808esac
1809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810
1811    cd "$ac_dir" || { ac_status=$?; continue; }
1812    # Check for guested configure.
1813    if test -f "$ac_srcdir/configure.gnu"; then
1814      echo &&
1815      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816    elif test -f "$ac_srcdir/configure"; then
1817      echo &&
1818      $SHELL "$ac_srcdir/configure" --help=recursive
1819    else
1820      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821    fi || ac_status=$?
1822    cd "$ac_pwd" || { ac_status=$?; break; }
1823  done
1824fi
1825
1826test -n "$ac_init_help" && exit $ac_status
1827if $ac_init_version; then
1828  cat <<\_ACEOF
1829subversion configure 1.14.0
1830generated by GNU Autoconf 2.69
1831
1832Copyright (C) 2012 Free Software Foundation, Inc.
1833This configure script is free software; the Free Software Foundation
1834gives unlimited permission to copy, distribute and modify it.
1835_ACEOF
1836  exit
1837fi
1838
1839## ------------------------ ##
1840## Autoconf initialization. ##
1841## ------------------------ ##
1842
1843# ac_fn_c_try_compile LINENO
1844# --------------------------
1845# Try to compile conftest.$ac_ext, and return whether this succeeded.
1846ac_fn_c_try_compile ()
1847{
1848  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849  rm -f conftest.$ac_objext
1850  if { { ac_try="$ac_compile"
1851case "(($ac_try" in
1852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853  *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857  (eval "$ac_compile") 2>conftest.err
1858  ac_status=$?
1859  if test -s conftest.err; then
1860    grep -v '^ *+' conftest.err >conftest.er1
1861    cat conftest.er1 >&5
1862    mv -f conftest.er1 conftest.err
1863  fi
1864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865  test $ac_status = 0; } && {
1866	 test -z "$ac_c_werror_flag" ||
1867	 test ! -s conftest.err
1868       } && test -s conftest.$ac_objext; then :
1869  ac_retval=0
1870else
1871  $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874	ac_retval=1
1875fi
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877  as_fn_set_status $ac_retval
1878
1879} # ac_fn_c_try_compile
1880
1881# ac_fn_c_try_link LINENO
1882# -----------------------
1883# Try to link conftest.$ac_ext, and return whether this succeeded.
1884ac_fn_c_try_link ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  rm -f conftest.$ac_objext conftest$ac_exeext
1888  if { { ac_try="$ac_link"
1889case "(($ac_try" in
1890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891  *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895  (eval "$ac_link") 2>conftest.err
1896  ac_status=$?
1897  if test -s conftest.err; then
1898    grep -v '^ *+' conftest.err >conftest.er1
1899    cat conftest.er1 >&5
1900    mv -f conftest.er1 conftest.err
1901  fi
1902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903  test $ac_status = 0; } && {
1904	 test -z "$ac_c_werror_flag" ||
1905	 test ! -s conftest.err
1906       } && test -s conftest$ac_exeext && {
1907	 test "$cross_compiling" = yes ||
1908	 test -x conftest$ac_exeext
1909       }; then :
1910  ac_retval=0
1911else
1912  $as_echo "$as_me: failed program was:" >&5
1913sed 's/^/| /' conftest.$ac_ext >&5
1914
1915	ac_retval=1
1916fi
1917  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919  # interfere with the next link command; also delete a directory that is
1920  # left behind by Apple's compiler.  We do this before executing the actions.
1921  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923  as_fn_set_status $ac_retval
1924
1925} # ac_fn_c_try_link
1926
1927# ac_fn_cxx_try_compile LINENO
1928# ----------------------------
1929# Try to compile conftest.$ac_ext, and return whether this succeeded.
1930ac_fn_cxx_try_compile ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  rm -f conftest.$ac_objext
1934  if { { ac_try="$ac_compile"
1935case "(($ac_try" in
1936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937  *) ac_try_echo=$ac_try;;
1938esac
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940$as_echo "$ac_try_echo"; } >&5
1941  (eval "$ac_compile") 2>conftest.err
1942  ac_status=$?
1943  if test -s conftest.err; then
1944    grep -v '^ *+' conftest.err >conftest.er1
1945    cat conftest.er1 >&5
1946    mv -f conftest.er1 conftest.err
1947  fi
1948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949  test $ac_status = 0; } && {
1950	 test -z "$ac_cxx_werror_flag" ||
1951	 test ! -s conftest.err
1952       } && test -s conftest.$ac_objext; then :
1953  ac_retval=0
1954else
1955  $as_echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958	ac_retval=1
1959fi
1960  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961  as_fn_set_status $ac_retval
1962
1963} # ac_fn_cxx_try_compile
1964
1965# ac_fn_cxx_try_link LINENO
1966# -------------------------
1967# Try to link conftest.$ac_ext, and return whether this succeeded.
1968ac_fn_cxx_try_link ()
1969{
1970  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971  rm -f conftest.$ac_objext conftest$ac_exeext
1972  if { { ac_try="$ac_link"
1973case "(($ac_try" in
1974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975  *) ac_try_echo=$ac_try;;
1976esac
1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978$as_echo "$ac_try_echo"; } >&5
1979  (eval "$ac_link") 2>conftest.err
1980  ac_status=$?
1981  if test -s conftest.err; then
1982    grep -v '^ *+' conftest.err >conftest.er1
1983    cat conftest.er1 >&5
1984    mv -f conftest.er1 conftest.err
1985  fi
1986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987  test $ac_status = 0; } && {
1988	 test -z "$ac_cxx_werror_flag" ||
1989	 test ! -s conftest.err
1990       } && test -s conftest$ac_exeext && {
1991	 test "$cross_compiling" = yes ||
1992	 test -x conftest$ac_exeext
1993       }; then :
1994  ac_retval=0
1995else
1996  $as_echo "$as_me: failed program was:" >&5
1997sed 's/^/| /' conftest.$ac_ext >&5
1998
1999	ac_retval=1
2000fi
2001  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2002  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2003  # interfere with the next link command; also delete a directory that is
2004  # left behind by Apple's compiler.  We do this before executing the actions.
2005  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007  as_fn_set_status $ac_retval
2008
2009} # ac_fn_cxx_try_link
2010
2011# ac_fn_c_try_cpp LINENO
2012# ----------------------
2013# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_c_try_cpp ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  if { { ac_try="$ac_cpp conftest.$ac_ext"
2018case "(($ac_try" in
2019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020  *) ac_try_echo=$ac_try;;
2021esac
2022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023$as_echo "$ac_try_echo"; } >&5
2024  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025  ac_status=$?
2026  if test -s conftest.err; then
2027    grep -v '^ *+' conftest.err >conftest.er1
2028    cat conftest.er1 >&5
2029    mv -f conftest.er1 conftest.err
2030  fi
2031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032  test $ac_status = 0; } > conftest.i && {
2033	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2034	 test ! -s conftest.err
2035       }; then :
2036  ac_retval=0
2037else
2038  $as_echo "$as_me: failed program was:" >&5
2039sed 's/^/| /' conftest.$ac_ext >&5
2040
2041    ac_retval=1
2042fi
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044  as_fn_set_status $ac_retval
2045
2046} # ac_fn_c_try_cpp
2047
2048# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2049# -------------------------------------------------------
2050# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2051# the include files in INCLUDES and setting the cache variable VAR
2052# accordingly.
2053ac_fn_c_check_header_mongrel ()
2054{
2055  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056  if eval \${$3+:} false; then :
2057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058$as_echo_n "checking for $2... " >&6; }
2059if eval \${$3+:} false; then :
2060  $as_echo_n "(cached) " >&6
2061fi
2062eval ac_res=\$$3
2063	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064$as_echo "$ac_res" >&6; }
2065else
2066  # Is the header compilable?
2067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2068$as_echo_n "checking $2 usability... " >&6; }
2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h.  */
2071$4
2072#include <$2>
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075  ac_header_compiler=yes
2076else
2077  ac_header_compiler=no
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2081$as_echo "$ac_header_compiler" >&6; }
2082
2083# Is the header present?
2084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2085$as_echo_n "checking $2 presence... " >&6; }
2086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088#include <$2>
2089_ACEOF
2090if ac_fn_c_try_cpp "$LINENO"; then :
2091  ac_header_preproc=yes
2092else
2093  ac_header_preproc=no
2094fi
2095rm -f conftest.err conftest.i conftest.$ac_ext
2096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2097$as_echo "$ac_header_preproc" >&6; }
2098
2099# So?  What about this header?
2100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2101  yes:no: )
2102    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2103$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2104    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2106    ;;
2107  no:yes:* )
2108    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2109$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2111$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2112    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2113$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2115$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2118( $as_echo "## -------------------------------------------- ##
2119## Report this to http://subversion.apache.org/ ##
2120## -------------------------------------------- ##"
2121     ) | sed "s/^/$as_me: WARNING:     /" >&2
2122    ;;
2123esac
2124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125$as_echo_n "checking for $2... " >&6; }
2126if eval \${$3+:} false; then :
2127  $as_echo_n "(cached) " >&6
2128else
2129  eval "$3=\$ac_header_compiler"
2130fi
2131eval ac_res=\$$3
2132	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133$as_echo "$ac_res" >&6; }
2134fi
2135  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137} # ac_fn_c_check_header_mongrel
2138
2139# ac_fn_c_try_run LINENO
2140# ----------------------
2141# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2142# that executables *can* be run.
2143ac_fn_c_try_run ()
2144{
2145  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146  if { { ac_try="$ac_link"
2147case "(($ac_try" in
2148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149  *) ac_try_echo=$ac_try;;
2150esac
2151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152$as_echo "$ac_try_echo"; } >&5
2153  (eval "$ac_link") 2>&5
2154  ac_status=$?
2155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2157  { { case "(($ac_try" in
2158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159  *) ac_try_echo=$ac_try;;
2160esac
2161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162$as_echo "$ac_try_echo"; } >&5
2163  (eval "$ac_try") 2>&5
2164  ac_status=$?
2165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166  test $ac_status = 0; }; }; then :
2167  ac_retval=0
2168else
2169  $as_echo "$as_me: program exited with status $ac_status" >&5
2170       $as_echo "$as_me: failed program was:" >&5
2171sed 's/^/| /' conftest.$ac_ext >&5
2172
2173       ac_retval=$ac_status
2174fi
2175  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2176  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177  as_fn_set_status $ac_retval
2178
2179} # ac_fn_c_try_run
2180
2181# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2182# -------------------------------------------------------
2183# Tests whether HEADER exists and can be compiled using the include files in
2184# INCLUDES, setting the cache variable VAR accordingly.
2185ac_fn_c_check_header_compile ()
2186{
2187  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189$as_echo_n "checking for $2... " >&6; }
2190if eval \${$3+:} false; then :
2191  $as_echo_n "(cached) " >&6
2192else
2193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195$4
2196#include <$2>
2197_ACEOF
2198if ac_fn_c_try_compile "$LINENO"; then :
2199  eval "$3=yes"
2200else
2201  eval "$3=no"
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204fi
2205eval ac_res=\$$3
2206	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209
2210} # ac_fn_c_check_header_compile
2211
2212# ac_fn_c_check_func LINENO FUNC VAR
2213# ----------------------------------
2214# Tests whether FUNC exists, setting the cache variable VAR accordingly
2215ac_fn_c_check_func ()
2216{
2217  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219$as_echo_n "checking for $2... " >&6; }
2220if eval \${$3+:} false; then :
2221  $as_echo_n "(cached) " >&6
2222else
2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2227#define $2 innocuous_$2
2228
2229/* System header to define __stub macros and hopefully few prototypes,
2230    which can conflict with char $2 (); below.
2231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2232    <limits.h> exists even on freestanding compilers.  */
2233
2234#ifdef __STDC__
2235# include <limits.h>
2236#else
2237# include <assert.h>
2238#endif
2239
2240#undef $2
2241
2242/* Override any GCC internal prototype to avoid an error.
2243   Use char because int might match the return type of a GCC
2244   builtin and then its argument prototype would still apply.  */
2245#ifdef __cplusplus
2246extern "C"
2247#endif
2248char $2 ();
2249/* The GNU C library defines this for functions which it implements
2250    to always fail with ENOSYS.  Some functions are actually named
2251    something starting with __ and the normal name is an alias.  */
2252#if defined __stub_$2 || defined __stub___$2
2253choke me
2254#endif
2255
2256int
2257main ()
2258{
2259return $2 ();
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_link "$LINENO"; then :
2265  eval "$3=yes"
2266else
2267  eval "$3=no"
2268fi
2269rm -f core conftest.err conftest.$ac_objext \
2270    conftest$ac_exeext conftest.$ac_ext
2271fi
2272eval ac_res=\$$3
2273	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274$as_echo "$ac_res" >&6; }
2275  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
2277} # ac_fn_c_check_func
2278
2279# ac_fn_cxx_try_cpp LINENO
2280# ------------------------
2281# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2282ac_fn_cxx_try_cpp ()
2283{
2284  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285  if { { ac_try="$ac_cpp conftest.$ac_ext"
2286case "(($ac_try" in
2287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288  *) ac_try_echo=$ac_try;;
2289esac
2290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291$as_echo "$ac_try_echo"; } >&5
2292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2293  ac_status=$?
2294  if test -s conftest.err; then
2295    grep -v '^ *+' conftest.err >conftest.er1
2296    cat conftest.er1 >&5
2297    mv -f conftest.er1 conftest.err
2298  fi
2299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300  test $ac_status = 0; } > conftest.i && {
2301	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2302	 test ! -s conftest.err
2303       }; then :
2304  ac_retval=0
2305else
2306  $as_echo "$as_me: failed program was:" >&5
2307sed 's/^/| /' conftest.$ac_ext >&5
2308
2309    ac_retval=1
2310fi
2311  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312  as_fn_set_status $ac_retval
2313
2314} # ac_fn_cxx_try_cpp
2315
2316# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2317# -------------------------------------------
2318# Tests whether TYPE exists after having included INCLUDES, setting cache
2319# variable VAR accordingly.
2320ac_fn_c_check_type ()
2321{
2322  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324$as_echo_n "checking for $2... " >&6; }
2325if eval \${$3+:} false; then :
2326  $as_echo_n "(cached) " >&6
2327else
2328  eval "$3=no"
2329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330/* end confdefs.h.  */
2331$4
2332int
2333main ()
2334{
2335if (sizeof ($2))
2336	 return 0;
2337  ;
2338  return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343/* end confdefs.h.  */
2344$4
2345int
2346main ()
2347{
2348if (sizeof (($2)))
2349	    return 0;
2350  ;
2351  return 0;
2352}
2353_ACEOF
2354if ac_fn_c_try_compile "$LINENO"; then :
2355
2356else
2357  eval "$3=yes"
2358fi
2359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360fi
2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362fi
2363eval ac_res=\$$3
2364	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365$as_echo "$ac_res" >&6; }
2366  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368} # ac_fn_c_check_type
2369cat >config.log <<_ACEOF
2370This file contains any messages produced by compilers while
2371running configure, to aid debugging if configure makes a mistake.
2372
2373It was created by subversion $as_me 1.14.0, which was
2374generated by GNU Autoconf 2.69.  Invocation command line was
2375
2376  $ $0 $@
2377
2378_ACEOF
2379exec 5>>config.log
2380{
2381cat <<_ASUNAME
2382## --------- ##
2383## Platform. ##
2384## --------- ##
2385
2386hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2387uname -m = `(uname -m) 2>/dev/null || echo unknown`
2388uname -r = `(uname -r) 2>/dev/null || echo unknown`
2389uname -s = `(uname -s) 2>/dev/null || echo unknown`
2390uname -v = `(uname -v) 2>/dev/null || echo unknown`
2391
2392/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2393/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2394
2395/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2396/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2397/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2398/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2399/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2400/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2401/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2402
2403_ASUNAME
2404
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408  IFS=$as_save_IFS
2409  test -z "$as_dir" && as_dir=.
2410    $as_echo "PATH: $as_dir"
2411  done
2412IFS=$as_save_IFS
2413
2414} >&5
2415
2416cat >&5 <<_ACEOF
2417
2418
2419## ----------- ##
2420## Core tests. ##
2421## ----------- ##
2422
2423_ACEOF
2424
2425
2426# Keep a trace of the command line.
2427# Strip out --no-create and --no-recursion so they do not pile up.
2428# Strip out --silent because we don't want to record it for future runs.
2429# Also quote any args containing shell meta-characters.
2430# Make two passes to allow for proper duplicate-argument suppression.
2431ac_configure_args=
2432ac_configure_args0=
2433ac_configure_args1=
2434ac_must_keep_next=false
2435for ac_pass in 1 2
2436do
2437  for ac_arg
2438  do
2439    case $ac_arg in
2440    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2441    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2442    | -silent | --silent | --silen | --sile | --sil)
2443      continue ;;
2444    *\'*)
2445      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2446    esac
2447    case $ac_pass in
2448    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2449    2)
2450      as_fn_append ac_configure_args1 " '$ac_arg'"
2451      if test $ac_must_keep_next = true; then
2452	ac_must_keep_next=false # Got value, back to normal.
2453      else
2454	case $ac_arg in
2455	  *=* | --config-cache | -C | -disable-* | --disable-* \
2456	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2457	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2458	  | -with-* | --with-* | -without-* | --without-* | --x)
2459	    case "$ac_configure_args0 " in
2460	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2461	    esac
2462	    ;;
2463	  -* ) ac_must_keep_next=true ;;
2464	esac
2465      fi
2466      as_fn_append ac_configure_args " '$ac_arg'"
2467      ;;
2468    esac
2469  done
2470done
2471{ ac_configure_args0=; unset ac_configure_args0;}
2472{ ac_configure_args1=; unset ac_configure_args1;}
2473
2474# When interrupted or exit'd, cleanup temporary files, and complete
2475# config.log.  We remove comments because anyway the quotes in there
2476# would cause problems or look ugly.
2477# WARNING: Use '\'' to represent an apostrophe within the trap.
2478# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2479trap 'exit_status=$?
2480  # Save into config.log some information that might help in debugging.
2481  {
2482    echo
2483
2484    $as_echo "## ---------------- ##
2485## Cache variables. ##
2486## ---------------- ##"
2487    echo
2488    # The following way of writing the cache mishandles newlines in values,
2489(
2490  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2491    eval ac_val=\$$ac_var
2492    case $ac_val in #(
2493    *${as_nl}*)
2494      case $ac_var in #(
2495      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2496$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497      esac
2498      case $ac_var in #(
2499      _ | IFS | as_nl) ;; #(
2500      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2501      *) { eval $ac_var=; unset $ac_var;} ;;
2502      esac ;;
2503    esac
2504  done
2505  (set) 2>&1 |
2506    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2507    *${as_nl}ac_space=\ *)
2508      sed -n \
2509	"s/'\''/'\''\\\\'\'''\''/g;
2510	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511      ;; #(
2512    *)
2513      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2514      ;;
2515    esac |
2516    sort
2517)
2518    echo
2519
2520    $as_echo "## ----------------- ##
2521## Output variables. ##
2522## ----------------- ##"
2523    echo
2524    for ac_var in $ac_subst_vars
2525    do
2526      eval ac_val=\$$ac_var
2527      case $ac_val in
2528      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529      esac
2530      $as_echo "$ac_var='\''$ac_val'\''"
2531    done | sort
2532    echo
2533
2534    if test -n "$ac_subst_files"; then
2535      $as_echo "## ------------------- ##
2536## File substitutions. ##
2537## ------------------- ##"
2538      echo
2539      for ac_var in $ac_subst_files
2540      do
2541	eval ac_val=\$$ac_var
2542	case $ac_val in
2543	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2544	esac
2545	$as_echo "$ac_var='\''$ac_val'\''"
2546      done | sort
2547      echo
2548    fi
2549
2550    if test -s confdefs.h; then
2551      $as_echo "## ----------- ##
2552## confdefs.h. ##
2553## ----------- ##"
2554      echo
2555      cat confdefs.h
2556      echo
2557    fi
2558    test "$ac_signal" != 0 &&
2559      $as_echo "$as_me: caught signal $ac_signal"
2560    $as_echo "$as_me: exit $exit_status"
2561  } >&5
2562  rm -f core *.core core.conftest.* &&
2563    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2564    exit $exit_status
2565' 0
2566for ac_signal in 1 2 13 15; do
2567  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2568done
2569ac_signal=0
2570
2571# confdefs.h avoids OS command line length limits that DEFS can exceed.
2572rm -f -r conftest* confdefs.h
2573
2574$as_echo "/* confdefs.h */" > confdefs.h
2575
2576# Predefined preprocessor variables.
2577
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_NAME "$PACKAGE_NAME"
2580_ACEOF
2581
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2584_ACEOF
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_VERSION "$PACKAGE_VERSION"
2588_ACEOF
2589
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_STRING "$PACKAGE_STRING"
2592_ACEOF
2593
2594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2596_ACEOF
2597
2598cat >>confdefs.h <<_ACEOF
2599#define PACKAGE_URL "$PACKAGE_URL"
2600_ACEOF
2601
2602
2603# Let the site file select an alternate cache file if it wants to.
2604# Prefer an explicitly selected file to automatically selected ones.
2605ac_site_file1=NONE
2606ac_site_file2=NONE
2607if test -n "$CONFIG_SITE"; then
2608  # We do not want a PATH search for config.site.
2609  case $CONFIG_SITE in #((
2610    -*)  ac_site_file1=./$CONFIG_SITE;;
2611    */*) ac_site_file1=$CONFIG_SITE;;
2612    *)   ac_site_file1=./$CONFIG_SITE;;
2613  esac
2614elif test "x$prefix" != xNONE; then
2615  ac_site_file1=$prefix/share/config.site
2616  ac_site_file2=$prefix/etc/config.site
2617else
2618  ac_site_file1=$ac_default_prefix/share/config.site
2619  ac_site_file2=$ac_default_prefix/etc/config.site
2620fi
2621for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2622do
2623  test "x$ac_site_file" = xNONE && continue
2624  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2625    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2626$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2627    sed 's/^/| /' "$ac_site_file" >&5
2628    . "$ac_site_file" \
2629      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631as_fn_error $? "failed to load site script $ac_site_file
2632See \`config.log' for more details" "$LINENO" 5; }
2633  fi
2634done
2635
2636if test -r "$cache_file"; then
2637  # Some versions of bash will fail to source /dev/null (special files
2638  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2639  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2640    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2641$as_echo "$as_me: loading cache $cache_file" >&6;}
2642    case $cache_file in
2643      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2644      *)                      . "./$cache_file";;
2645    esac
2646  fi
2647else
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2649$as_echo "$as_me: creating cache $cache_file" >&6;}
2650  >$cache_file
2651fi
2652
2653# Check that the precious variables saved in the cache have kept the same
2654# value.
2655ac_cache_corrupted=false
2656for ac_var in $ac_precious_vars; do
2657  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2658  eval ac_new_set=\$ac_env_${ac_var}_set
2659  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2660  eval ac_new_val=\$ac_env_${ac_var}_value
2661  case $ac_old_set,$ac_new_set in
2662    set,)
2663      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2664$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2665      ac_cache_corrupted=: ;;
2666    ,set)
2667      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2668$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2669      ac_cache_corrupted=: ;;
2670    ,);;
2671    *)
2672      if test "x$ac_old_val" != "x$ac_new_val"; then
2673	# differences in whitespace do not lead to failure.
2674	ac_old_val_w=`echo x $ac_old_val`
2675	ac_new_val_w=`echo x $ac_new_val`
2676	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2677	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2678$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2679	  ac_cache_corrupted=:
2680	else
2681	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2682$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2683	  eval $ac_var=\$ac_old_val
2684	fi
2685	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2686$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2687	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2688$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2689      fi;;
2690  esac
2691  # Pass precious variables to config.status.
2692  if test "$ac_new_set" = set; then
2693    case $ac_new_val in
2694    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2695    *) ac_arg=$ac_var=$ac_new_val ;;
2696    esac
2697    case " $ac_configure_args " in
2698      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2699      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2700    esac
2701  fi
2702done
2703if $ac_cache_corrupted; then
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2707$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2708  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2709fi
2710## -------------------- ##
2711## Main body of script. ##
2712## -------------------- ##
2713
2714ac_ext=c
2715ac_cpp='$CPP $CPPFLAGS'
2716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719
2720
2721
2722
2723ac_aux_dir=
2724for ac_dir in build "$srcdir"/build; do
2725  if test -f "$ac_dir/install-sh"; then
2726    ac_aux_dir=$ac_dir
2727    ac_install_sh="$ac_aux_dir/install-sh -c"
2728    break
2729  elif test -f "$ac_dir/install.sh"; then
2730    ac_aux_dir=$ac_dir
2731    ac_install_sh="$ac_aux_dir/install.sh -c"
2732    break
2733  elif test -f "$ac_dir/shtool"; then
2734    ac_aux_dir=$ac_dir
2735    ac_install_sh="$ac_aux_dir/shtool install -c"
2736    break
2737  fi
2738done
2739if test -z "$ac_aux_dir"; then
2740  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2741fi
2742
2743# These three variables are undocumented and unsupported,
2744# and are intended to be withdrawn in a future Autoconf release.
2745# They can cause serious problems if a builder's source tree is in a directory
2746# whose full name contains unusual characters.
2747ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2748ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2749ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2750
2751
2752
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.14.0" >&5
2754$as_echo "$as_me: Configuring Subversion 1.14.0" >&6;}
2755
2756abs_srcdir="`cd $srcdir && pwd`"
2757
2758abs_builddir="`pwd`"
2759
2760if test "$abs_srcdir" = "$abs_builddir"; then
2761  canonicalized_srcdir=""
2762else
2763  canonicalized_srcdir="$srcdir/"
2764fi
2765
2766
2767SWIG_LDFLAGS="$LDFLAGS"
2768
2769
2770# Generate config.nice early (before the arguments are munged)
2771
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2773$as_echo "$as_me: creating config.nice" >&6;}
2774  # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2775  if test -f "config.nice"; then
2776    mv "config.nice" "config.nice.old"
2777  fi
2778
2779  cat >"config.nice" <<EOF
2780#! /bin/sh
2781#
2782# Created by configure
2783
2784'$0' $ac_configure_args "\$@"
2785EOF
2786
2787  chmod +x "config.nice"
2788  rm -f "config.nice.old"
2789
2790
2791# ==== Check for programs ====================================================
2792
2793# Look for a C compiler (before anything can set CFLAGS)
2794CUSERFLAGS="$CFLAGS"
2795ac_ext=c
2796ac_cpp='$CPP $CPPFLAGS'
2797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800if test -n "$ac_tool_prefix"; then
2801  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804$as_echo_n "checking for $ac_word... " >&6; }
2805if ${ac_cv_prog_CC+:} false; then :
2806  $as_echo_n "(cached) " >&6
2807else
2808  if test -n "$CC"; then
2809  ac_cv_prog_CC="$CC" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814  IFS=$as_save_IFS
2815  test -z "$as_dir" && as_dir=.
2816    for ac_exec_ext in '' $ac_executable_extensions; do
2817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820    break 2
2821  fi
2822done
2823  done
2824IFS=$as_save_IFS
2825
2826fi
2827fi
2828CC=$ac_cv_prog_CC
2829if test -n "$CC"; then
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831$as_echo "$CC" >&6; }
2832else
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835fi
2836
2837
2838fi
2839if test -z "$ac_cv_prog_CC"; then
2840  ac_ct_CC=$CC
2841  # Extract the first word of "gcc", so it can be a program name with args.
2842set dummy gcc; ac_word=$2
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if ${ac_cv_prog_ac_ct_CC+:} false; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test -n "$ac_ct_CC"; then
2849  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_exec_ext in '' $ac_executable_extensions; do
2857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858    ac_cv_prog_ac_ct_CC="gcc"
2859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863  done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869if test -n "$ac_ct_CC"; then
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2871$as_echo "$ac_ct_CC" >&6; }
2872else
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875fi
2876
2877  if test "x$ac_ct_CC" = x; then
2878    CC=""
2879  else
2880    case $cross_compiling:$ac_tool_warned in
2881yes:)
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884ac_tool_warned=yes ;;
2885esac
2886    CC=$ac_ct_CC
2887  fi
2888else
2889  CC="$ac_cv_prog_CC"
2890fi
2891
2892if test -z "$CC"; then
2893          if test -n "$ac_tool_prefix"; then
2894    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}cc; ac_word=$2
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
2898if ${ac_cv_prog_CC+:} false; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  if test -n "$CC"; then
2902  ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  test -z "$as_dir" && as_dir=.
2909    for ac_exec_ext in '' $ac_executable_extensions; do
2910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911    ac_cv_prog_CC="${ac_tool_prefix}cc"
2912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916  done
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924$as_echo "$CC" >&6; }
2925else
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928fi
2929
2930
2931  fi
2932fi
2933if test -z "$CC"; then
2934  # Extract the first word of "cc", so it can be a program name with args.
2935set dummy cc; ac_word=$2
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
2938if ${ac_cv_prog_CC+:} false; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  if test -n "$CC"; then
2942  ac_cv_prog_CC="$CC" # Let the user override the test.
2943else
2944  ac_prog_rejected=no
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953       ac_prog_rejected=yes
2954       continue
2955     fi
2956    ac_cv_prog_CC="cc"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964if test $ac_prog_rejected = yes; then
2965  # We found a bogon in the path, so make sure we never use it.
2966  set dummy $ac_cv_prog_CC
2967  shift
2968  if test $# != 0; then
2969    # We chose a different compiler from the bogus one.
2970    # However, it has the same basename, so the bogon will be chosen
2971    # first if we set CC to just the basename; use the full file name.
2972    shift
2973    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2974  fi
2975fi
2976fi
2977fi
2978CC=$ac_cv_prog_CC
2979if test -n "$CC"; then
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981$as_echo "$CC" >&6; }
2982else
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985fi
2986
2987
2988fi
2989if test -z "$CC"; then
2990  if test -n "$ac_tool_prefix"; then
2991  for ac_prog in cl.exe
2992  do
2993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
2997if ${ac_cv_prog_CC+:} false; then :
2998  $as_echo_n "(cached) " >&6
2999else
3000  if test -n "$CC"; then
3001  ac_cv_prog_CC="$CC" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006  IFS=$as_save_IFS
3007  test -z "$as_dir" && as_dir=.
3008    for ac_exec_ext in '' $ac_executable_extensions; do
3009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012    break 2
3013  fi
3014done
3015  done
3016IFS=$as_save_IFS
3017
3018fi
3019fi
3020CC=$ac_cv_prog_CC
3021if test -n "$CC"; then
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023$as_echo "$CC" >&6; }
3024else
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
3027fi
3028
3029
3030    test -n "$CC" && break
3031  done
3032fi
3033if test -z "$CC"; then
3034  ac_ct_CC=$CC
3035  for ac_prog in cl.exe
3036do
3037  # Extract the first word of "$ac_prog", so it can be a program name with args.
3038set dummy $ac_prog; ac_word=$2
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if ${ac_cv_prog_ac_ct_CC+:} false; then :
3042  $as_echo_n "(cached) " >&6
3043else
3044  if test -n "$ac_ct_CC"; then
3045  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052    for ac_exec_ext in '' $ac_executable_extensions; do
3053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054    ac_cv_prog_ac_ct_CC="$ac_prog"
3055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056    break 2
3057  fi
3058done
3059  done
3060IFS=$as_save_IFS
3061
3062fi
3063fi
3064ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065if test -n "$ac_ct_CC"; then
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3067$as_echo "$ac_ct_CC" >&6; }
3068else
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
3071fi
3072
3073
3074  test -n "$ac_ct_CC" && break
3075done
3076
3077  if test "x$ac_ct_CC" = x; then
3078    CC=""
3079  else
3080    case $cross_compiling:$ac_tool_warned in
3081yes:)
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084ac_tool_warned=yes ;;
3085esac
3086    CC=$ac_ct_CC
3087  fi
3088fi
3089
3090fi
3091
3092
3093test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095as_fn_error $? "no acceptable C compiler found in \$PATH
3096See \`config.log' for more details" "$LINENO" 5; }
3097
3098# Provide some information about the compiler.
3099$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3100set X $ac_compile
3101ac_compiler=$2
3102for ac_option in --version -v -V -qversion; do
3103  { { ac_try="$ac_compiler $ac_option >&5"
3104case "(($ac_try" in
3105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106  *) ac_try_echo=$ac_try;;
3107esac
3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109$as_echo "$ac_try_echo"; } >&5
3110  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3111  ac_status=$?
3112  if test -s conftest.err; then
3113    sed '10a\
3114... rest of stderr output deleted ...
3115         10q' conftest.err >conftest.er1
3116    cat conftest.er1 >&5
3117  fi
3118  rm -f conftest.er1 conftest.err
3119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120  test $ac_status = 0; }
3121done
3122
3123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124/* end confdefs.h.  */
3125
3126int
3127main ()
3128{
3129
3130  ;
3131  return 0;
3132}
3133_ACEOF
3134ac_clean_files_save=$ac_clean_files
3135ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3136# Try to create an executable without -o first, disregard a.out.
3137# It will help us diagnose broken compilers, and finding out an intuition
3138# of exeext.
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3140$as_echo_n "checking whether the C compiler works... " >&6; }
3141ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3142
3143# The possible output files:
3144ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3145
3146ac_rmfiles=
3147for ac_file in $ac_files
3148do
3149  case $ac_file in
3150    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3152  esac
3153done
3154rm -f $ac_rmfiles
3155
3156if { { ac_try="$ac_link_default"
3157case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162$as_echo "$ac_try_echo"; } >&5
3163  (eval "$ac_link_default") 2>&5
3164  ac_status=$?
3165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166  test $ac_status = 0; }; then :
3167  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3168# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3169# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3170# so that the user can short-circuit this test for compilers unknown to
3171# Autoconf.
3172for ac_file in $ac_files ''
3173do
3174  test -f "$ac_file" || continue
3175  case $ac_file in
3176    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3177	;;
3178    [ab].out )
3179	# We found the default executable, but exeext='' is most
3180	# certainly right.
3181	break;;
3182    *.* )
3183	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3184	then :; else
3185	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186	fi
3187	# We set ac_cv_exeext here because the later test for it is not
3188	# safe: cross compilers may not add the suffix if given an `-o'
3189	# argument, so we may need to know it at that point already.
3190	# Even if this section looks crufty: it has the advantage of
3191	# actually working.
3192	break;;
3193    * )
3194	break;;
3195  esac
3196done
3197test "$ac_cv_exeext" = no && ac_cv_exeext=
3198
3199else
3200  ac_file=''
3201fi
3202if test -z "$ac_file"; then :
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205$as_echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error 77 "C compiler cannot create executables
3211See \`config.log' for more details" "$LINENO" 5; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214$as_echo "yes" >&6; }
3215fi
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3217$as_echo_n "checking for C compiler default output file name... " >&6; }
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3219$as_echo "$ac_file" >&6; }
3220ac_exeext=$ac_cv_exeext
3221
3222rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3223ac_clean_files=$ac_clean_files_save
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3225$as_echo_n "checking for suffix of executables... " >&6; }
3226if { { ac_try="$ac_link"
3227case "(($ac_try" in
3228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229  *) ac_try_echo=$ac_try;;
3230esac
3231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232$as_echo "$ac_try_echo"; } >&5
3233  (eval "$ac_link") 2>&5
3234  ac_status=$?
3235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236  test $ac_status = 0; }; then :
3237  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3238# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3239# work properly (i.e., refer to `conftest.exe'), while it won't with
3240# `rm'.
3241for ac_file in conftest.exe conftest conftest.*; do
3242  test -f "$ac_file" || continue
3243  case $ac_file in
3244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3246	  break;;
3247    * ) break;;
3248  esac
3249done
3250else
3251  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3254See \`config.log' for more details" "$LINENO" 5; }
3255fi
3256rm -f conftest conftest$ac_cv_exeext
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3258$as_echo "$ac_cv_exeext" >&6; }
3259
3260rm -f conftest.$ac_ext
3261EXEEXT=$ac_cv_exeext
3262ac_exeext=$EXEEXT
3263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265#include <stdio.h>
3266int
3267main ()
3268{
3269FILE *f = fopen ("conftest.out", "w");
3270 return ferror (f) || fclose (f) != 0;
3271
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276ac_clean_files="$ac_clean_files conftest.out"
3277# Check that the compiler produces executables we can run.  If not, either
3278# the compiler is broken, or we cross compile.
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3280$as_echo_n "checking whether we are cross compiling... " >&6; }
3281if test "$cross_compiling" != yes; then
3282  { { ac_try="$ac_link"
3283case "(($ac_try" in
3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285  *) ac_try_echo=$ac_try;;
3286esac
3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288$as_echo "$ac_try_echo"; } >&5
3289  (eval "$ac_link") 2>&5
3290  ac_status=$?
3291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292  test $ac_status = 0; }
3293  if { ac_try='./conftest$ac_cv_exeext'
3294  { { case "(($ac_try" in
3295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296  *) ac_try_echo=$ac_try;;
3297esac
3298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299$as_echo "$ac_try_echo"; } >&5
3300  (eval "$ac_try") 2>&5
3301  ac_status=$?
3302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303  test $ac_status = 0; }; }; then
3304    cross_compiling=no
3305  else
3306    if test "$cross_compiling" = maybe; then
3307	cross_compiling=yes
3308    else
3309	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311as_fn_error $? "cannot run C compiled programs.
3312If you meant to cross compile, use \`--host'.
3313See \`config.log' for more details" "$LINENO" 5; }
3314    fi
3315  fi
3316fi
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3318$as_echo "$cross_compiling" >&6; }
3319
3320rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3321ac_clean_files=$ac_clean_files_save
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3323$as_echo_n "checking for suffix of object files... " >&6; }
3324if ${ac_cv_objext+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328/* end confdefs.h.  */
3329
3330int
3331main ()
3332{
3333
3334  ;
3335  return 0;
3336}
3337_ACEOF
3338rm -f conftest.o conftest.obj
3339if { { ac_try="$ac_compile"
3340case "(($ac_try" in
3341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342  *) ac_try_echo=$ac_try;;
3343esac
3344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345$as_echo "$ac_try_echo"; } >&5
3346  (eval "$ac_compile") 2>&5
3347  ac_status=$?
3348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349  test $ac_status = 0; }; then :
3350  for ac_file in conftest.o conftest.obj conftest.*; do
3351  test -f "$ac_file" || continue;
3352  case $ac_file in
3353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3354    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3355       break;;
3356  esac
3357done
3358else
3359  $as_echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364as_fn_error $? "cannot compute suffix of object files: cannot compile
3365See \`config.log' for more details" "$LINENO" 5; }
3366fi
3367rm -f conftest.$ac_cv_objext conftest.$ac_ext
3368fi
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3370$as_echo "$ac_cv_objext" >&6; }
3371OBJEXT=$ac_cv_objext
3372ac_objext=$OBJEXT
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3374$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3375if ${ac_cv_c_compiler_gnu+:} false; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h.  */
3380
3381int
3382main ()
3383{
3384#ifndef __GNUC__
3385       choke me
3386#endif
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392if ac_fn_c_try_compile "$LINENO"; then :
3393  ac_compiler_gnu=yes
3394else
3395  ac_compiler_gnu=no
3396fi
3397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398ac_cv_c_compiler_gnu=$ac_compiler_gnu
3399
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3402$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3403if test $ac_compiler_gnu = yes; then
3404  GCC=yes
3405else
3406  GCC=
3407fi
3408ac_test_CFLAGS=${CFLAGS+set}
3409ac_save_CFLAGS=$CFLAGS
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3411$as_echo_n "checking whether $CC accepts -g... " >&6; }
3412if ${ac_cv_prog_cc_g+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  ac_save_c_werror_flag=$ac_c_werror_flag
3416   ac_c_werror_flag=yes
3417   ac_cv_prog_cc_g=no
3418   CFLAGS="-g"
3419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h.  */
3421
3422int
3423main ()
3424{
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430if ac_fn_c_try_compile "$LINENO"; then :
3431  ac_cv_prog_cc_g=yes
3432else
3433  CFLAGS=""
3434      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445if ac_fn_c_try_compile "$LINENO"; then :
3446
3447else
3448  ac_c_werror_flag=$ac_save_c_werror_flag
3449	 CFLAGS="-g"
3450	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451/* end confdefs.h.  */
3452
3453int
3454main ()
3455{
3456
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461if ac_fn_c_try_compile "$LINENO"; then :
3462  ac_cv_prog_cc_g=yes
3463fi
3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465fi
3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467fi
3468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469   ac_c_werror_flag=$ac_save_c_werror_flag
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3472$as_echo "$ac_cv_prog_cc_g" >&6; }
3473if test "$ac_test_CFLAGS" = set; then
3474  CFLAGS=$ac_save_CFLAGS
3475elif test $ac_cv_prog_cc_g = yes; then
3476  if test "$GCC" = yes; then
3477    CFLAGS="-g -O2"
3478  else
3479    CFLAGS="-g"
3480  fi
3481else
3482  if test "$GCC" = yes; then
3483    CFLAGS="-O2"
3484  else
3485    CFLAGS=
3486  fi
3487fi
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3489$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3490if ${ac_cv_prog_cc_c89+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  ac_cv_prog_cc_c89=no
3494ac_save_CC=$CC
3495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497#include <stdarg.h>
3498#include <stdio.h>
3499struct stat;
3500/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3501struct buf { int x; };
3502FILE * (*rcsopen) (struct buf *, struct stat *, int);
3503static char *e (p, i)
3504     char **p;
3505     int i;
3506{
3507  return p[i];
3508}
3509static char *f (char * (*g) (char **, int), char **p, ...)
3510{
3511  char *s;
3512  va_list v;
3513  va_start (v,p);
3514  s = g (p, va_arg (v,int));
3515  va_end (v);
3516  return s;
3517}
3518
3519/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3520   function prototypes and stuff, but not '\xHH' hex character constants.
3521   These don't provoke an error unfortunately, instead are silently treated
3522   as 'x'.  The following induces an error, until -std is added to get
3523   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3524   array size at least.  It's necessary to write '\x00'==0 to get something
3525   that's true only with -std.  */
3526int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3527
3528/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3529   inside strings and character constants.  */
3530#define FOO(x) 'x'
3531int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3532
3533int test (int i, double x);
3534struct s1 {int (*f) (int a);};
3535struct s2 {int (*f) (double a);};
3536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3537int argc;
3538char **argv;
3539int
3540main ()
3541{
3542return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3548	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3549do
3550  CC="$ac_save_CC $ac_arg"
3551  if ac_fn_c_try_compile "$LINENO"; then :
3552  ac_cv_prog_cc_c89=$ac_arg
3553fi
3554rm -f core conftest.err conftest.$ac_objext
3555  test "x$ac_cv_prog_cc_c89" != "xno" && break
3556done
3557rm -f conftest.$ac_ext
3558CC=$ac_save_CC
3559
3560fi
3561# AC_CACHE_VAL
3562case "x$ac_cv_prog_cc_c89" in
3563  x)
3564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565$as_echo "none needed" >&6; } ;;
3566  xno)
3567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3568$as_echo "unsupported" >&6; } ;;
3569  *)
3570    CC="$CC $ac_cv_prog_cc_c89"
3571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3572$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3573esac
3574if test "x$ac_cv_prog_cc_c89" != xno; then :
3575
3576fi
3577
3578ac_ext=c
3579ac_cpp='$CPP $CPPFLAGS'
3580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583
3584
3585
3586  CFLAGS_KEEP="$CFLAGS"
3587  CFLAGS=""
3588
3589  if test "$GCC" = "yes"; then
3590
3591  _svn_xxflags__save="$CFLAGS"
3592  ac_ext=c
3593ac_cpp='$CPP $CPPFLAGS'
3594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597
3598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3599$as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3600  CFLAGS="-std=c90 $CFLAGS"
3601        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603int main(void){return 0;}
3604_ACEOF
3605if ac_fn_c_try_link "$LINENO"; then :
3606
3607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3608$as_echo "yes" >&6; }
3609
3610
3611else
3612
3613    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614$as_echo "no" >&6; }
3615    CFLAGS="$_svn_xxflags__save"
3616
3617
3618  _svn_xxflags__save="$CFLAGS"
3619  ac_ext=c
3620ac_cpp='$CPP $CPPFLAGS'
3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3626$as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3627  CFLAGS="-std=c89 $CFLAGS"
3628        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h.  */
3630int main(void){return 0;}
3631_ACEOF
3632if ac_fn_c_try_link "$LINENO"; then :
3633
3634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3635$as_echo "yes" >&6; }
3636
3637
3638else
3639
3640    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641$as_echo "no" >&6; }
3642    CFLAGS="$_svn_xxflags__save"
3643
3644
3645  _svn_xxflags__save="$CFLAGS"
3646  ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3653$as_echo_n "checking if $CC accepts -ansi... " >&6; }
3654  CFLAGS="-ansi $CFLAGS"
3655        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657int main(void){return 0;}
3658_ACEOF
3659if ac_fn_c_try_link "$LINENO"; then :
3660
3661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662$as_echo "yes" >&6; }
3663
3664
3665else
3666
3667    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
3669    CFLAGS="$_svn_xxflags__save"
3670
3671
3672fi
3673rm -f core conftest.err conftest.$ac_objext \
3674    conftest$ac_exeext conftest.$ac_ext
3675  ac_ext=c
3676ac_cpp='$CPP $CPPFLAGS'
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681
3682
3683
3684fi
3685rm -f core conftest.err conftest.$ac_objext \
3686    conftest$ac_exeext conftest.$ac_ext
3687  ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694
3695
3696fi
3697rm -f core conftest.err conftest.$ac_objext \
3698    conftest$ac_exeext conftest.$ac_ext
3699  ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705
3706  fi
3707
3708  CMODEFLAGS="$CFLAGS"
3709  CFLAGS=""
3710
3711  if test "$GCC" = "yes"; then
3712
3713  _svn_xxflags__save="$CFLAGS"
3714  ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -w" >&5
3721$as_echo_n "checking if $CC accepts -w... " >&6; }
3722  CFLAGS="-w $CFLAGS"
3723        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725int main(void){return 0;}
3726_ACEOF
3727if ac_fn_c_try_link "$LINENO"; then :
3728
3729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730$as_echo "yes" >&6; }
3731
3732
3733else
3734
3735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736$as_echo "no" >&6; }
3737    CFLAGS="$_svn_xxflags__save"
3738
3739
3740fi
3741rm -f core conftest.err conftest.$ac_objext \
3742    conftest$ac_exeext conftest.$ac_ext
3743  ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750  fi
3751
3752  CNOWARNFLAGS="$CFLAGS"
3753  CFLAGS="$CFLAGS_KEEP"
3754
3755
3756
3757
3758
3759
3760  if test "$GCC" = "yes"; then
3761
3762  _svn_xxflags__save="$CFLAGS"
3763  ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3770$as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3771  CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3772        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h.  */
3774int main(void){return 0;}
3775_ACEOF
3776if ac_fn_c_try_link "$LINENO"; then :
3777
3778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779$as_echo "yes" >&6; }
3780
3781
3782else
3783
3784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785$as_echo "no" >&6; }
3786    CFLAGS="$_svn_xxflags__save"
3787
3788
3789fi
3790rm -f core conftest.err conftest.$ac_objext \
3791    conftest$ac_exeext conftest.$ac_ext
3792  ac_ext=c
3793ac_cpp='$CPP $CPPFLAGS'
3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797
3798
3799  fi
3800
3801
3802# Look for a C++ compiler (before anything can set CXXFLAGS)
3803CXXUSERFLAGS="$CXXFLAGS"
3804ac_ext=cpp
3805ac_cpp='$CXXCPP $CPPFLAGS'
3806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3809if test -z "$CXX"; then
3810  if test -n "$CCC"; then
3811    CXX=$CCC
3812  else
3813    if test -n "$ac_tool_prefix"; then
3814  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3815  do
3816    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_prog_CXX+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  if test -n "$CXX"; then
3824  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  test -z "$as_dir" && as_dir=.
3831    for ac_exec_ext in '' $ac_executable_extensions; do
3832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835    break 2
3836  fi
3837done
3838  done
3839IFS=$as_save_IFS
3840
3841fi
3842fi
3843CXX=$ac_cv_prog_CXX
3844if test -n "$CXX"; then
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3846$as_echo "$CXX" >&6; }
3847else
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849$as_echo "no" >&6; }
3850fi
3851
3852
3853    test -n "$CXX" && break
3854  done
3855fi
3856if test -z "$CXX"; then
3857  ac_ct_CXX=$CXX
3858  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3859do
3860  # Extract the first word of "$ac_prog", so it can be a program name with args.
3861set dummy $ac_prog; ac_word=$2
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863$as_echo_n "checking for $ac_word... " >&6; }
3864if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867  if test -n "$ac_ct_CXX"; then
3868  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873  IFS=$as_save_IFS
3874  test -z "$as_dir" && as_dir=.
3875    for ac_exec_ext in '' $ac_executable_extensions; do
3876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877    ac_cv_prog_ac_ct_CXX="$ac_prog"
3878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879    break 2
3880  fi
3881done
3882  done
3883IFS=$as_save_IFS
3884
3885fi
3886fi
3887ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3888if test -n "$ac_ct_CXX"; then
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3890$as_echo "$ac_ct_CXX" >&6; }
3891else
3892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893$as_echo "no" >&6; }
3894fi
3895
3896
3897  test -n "$ac_ct_CXX" && break
3898done
3899
3900  if test "x$ac_ct_CXX" = x; then
3901    CXX="g++"
3902  else
3903    case $cross_compiling:$ac_tool_warned in
3904yes:)
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907ac_tool_warned=yes ;;
3908esac
3909    CXX=$ac_ct_CXX
3910  fi
3911fi
3912
3913  fi
3914fi
3915# Provide some information about the compiler.
3916$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3917set X $ac_compile
3918ac_compiler=$2
3919for ac_option in --version -v -V -qversion; do
3920  { { ac_try="$ac_compiler $ac_option >&5"
3921case "(($ac_try" in
3922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923  *) ac_try_echo=$ac_try;;
3924esac
3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926$as_echo "$ac_try_echo"; } >&5
3927  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3928  ac_status=$?
3929  if test -s conftest.err; then
3930    sed '10a\
3931... rest of stderr output deleted ...
3932         10q' conftest.err >conftest.er1
3933    cat conftest.er1 >&5
3934  fi
3935  rm -f conftest.er1 conftest.err
3936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937  test $ac_status = 0; }
3938done
3939
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3941$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3942if ${ac_cv_cxx_compiler_gnu+:} false; then :
3943  $as_echo_n "(cached) " >&6
3944else
3945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946/* end confdefs.h.  */
3947
3948int
3949main ()
3950{
3951#ifndef __GNUC__
3952       choke me
3953#endif
3954
3955  ;
3956  return 0;
3957}
3958_ACEOF
3959if ac_fn_cxx_try_compile "$LINENO"; then :
3960  ac_compiler_gnu=yes
3961else
3962  ac_compiler_gnu=no
3963fi
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3966
3967fi
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3969$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3970if test $ac_compiler_gnu = yes; then
3971  GXX=yes
3972else
3973  GXX=
3974fi
3975ac_test_CXXFLAGS=${CXXFLAGS+set}
3976ac_save_CXXFLAGS=$CXXFLAGS
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3978$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3979if ${ac_cv_prog_cxx_g+:} false; then :
3980  $as_echo_n "(cached) " >&6
3981else
3982  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3983   ac_cxx_werror_flag=yes
3984   ac_cv_prog_cxx_g=no
3985   CXXFLAGS="-g"
3986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987/* end confdefs.h.  */
3988
3989int
3990main ()
3991{
3992
3993  ;
3994  return 0;
3995}
3996_ACEOF
3997if ac_fn_cxx_try_compile "$LINENO"; then :
3998  ac_cv_prog_cxx_g=yes
3999else
4000  CXXFLAGS=""
4001      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h.  */
4003
4004int
4005main ()
4006{
4007
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012if ac_fn_cxx_try_compile "$LINENO"; then :
4013
4014else
4015  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4016	 CXXFLAGS="-g"
4017	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019
4020int
4021main ()
4022{
4023
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028if ac_fn_cxx_try_compile "$LINENO"; then :
4029  ac_cv_prog_cxx_g=yes
4030fi
4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032fi
4033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034fi
4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4039$as_echo "$ac_cv_prog_cxx_g" >&6; }
4040if test "$ac_test_CXXFLAGS" = set; then
4041  CXXFLAGS=$ac_save_CXXFLAGS
4042elif test $ac_cv_prog_cxx_g = yes; then
4043  if test "$GXX" = yes; then
4044    CXXFLAGS="-g -O2"
4045  else
4046    CXXFLAGS="-g"
4047  fi
4048else
4049  if test "$GXX" = yes; then
4050    CXXFLAGS="-O2"
4051  else
4052    CXXFLAGS=
4053  fi
4054fi
4055ac_ext=c
4056ac_cpp='$CPP $CPPFLAGS'
4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061
4062
4063  CXXFLAGS_KEEP="$CXXFLAGS"
4064  CXXFLAGS=""
4065
4066  if test "$GXX" = "yes"; then
4067
4068  _svn_xxflags__save="$CXXFLAGS"
4069  ac_ext=cpp
4070ac_cpp='$CXXCPP $CPPFLAGS'
4071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4074
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++11" >&5
4076$as_echo_n "checking if $CXX accepts -std=c++11... " >&6; }
4077  CXXFLAGS="-std=c++11 $CXXFLAGS"
4078        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080int main(){}
4081_ACEOF
4082if ac_fn_cxx_try_link "$LINENO"; then :
4083
4084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085$as_echo "yes" >&6; }
4086
4087
4088else
4089
4090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092    CXXFLAGS="$_svn_xxflags__save"
4093
4094
4095fi
4096rm -f core conftest.err conftest.$ac_objext \
4097    conftest$ac_exeext conftest.$ac_ext
4098  ac_ext=c
4099ac_cpp='$CPP $CPPFLAGS'
4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104
4105  fi
4106
4107  CXXMODEFLAGS="$CXXFLAGS"
4108  CXXFLAGS=""
4109
4110  if test "$GXX" = "yes"; then
4111
4112  _svn_xxflags__save="$CXXFLAGS"
4113  ac_ext=cpp
4114ac_cpp='$CXXCPP $CPPFLAGS'
4115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4118
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -w" >&5
4120$as_echo_n "checking if $CXX accepts -w... " >&6; }
4121  CXXFLAGS="-w $CXXFLAGS"
4122        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124int main(){}
4125_ACEOF
4126if ac_fn_cxx_try_link "$LINENO"; then :
4127
4128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129$as_echo "yes" >&6; }
4130
4131
4132else
4133
4134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136    CXXFLAGS="$_svn_xxflags__save"
4137
4138
4139fi
4140rm -f core conftest.err conftest.$ac_objext \
4141    conftest$ac_exeext conftest.$ac_ext
4142  ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148
4149  fi
4150
4151  CXXNOWARNFLAGS="$CXXFLAGS"
4152  CXXFLAGS="$CXXFLAGS_KEEP"
4153
4154
4155
4156
4157
4158
4159  if test "$GXX" = "yes"; then
4160
4161  _svn_xxflags__save="$CXXFLAGS"
4162  ac_ext=cpp
4163ac_cpp='$CXXCPP $CPPFLAGS'
4164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4167
4168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
4169$as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
4170  CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
4171        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h.  */
4173int main(){}
4174_ACEOF
4175if ac_fn_cxx_try_link "$LINENO"; then :
4176
4177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178$as_echo "yes" >&6; }
4179
4180
4181else
4182
4183    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185    CXXFLAGS="$_svn_xxflags__save"
4186
4187
4188fi
4189rm -f core conftest.err conftest.$ac_objext \
4190    conftest$ac_exeext conftest.$ac_ext
4191  ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197
4198  fi
4199
4200
4201# Look for a C pre-processor
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4208$as_echo_n "checking how to run the C preprocessor... " >&6; }
4209# On Suns, sometimes $CPP names a directory.
4210if test -n "$CPP" && test -d "$CPP"; then
4211  CPP=
4212fi
4213if test -z "$CPP"; then
4214  if ${ac_cv_prog_CPP+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217      # Double quotes because CPP needs to be expanded
4218    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4219    do
4220      ac_preproc_ok=false
4221for ac_c_preproc_warn_flag in '' yes
4222do
4223  # Use a header file that comes with gcc, so configuring glibc
4224  # with a fresh cross-compiler works.
4225  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226  # <limits.h> exists even on freestanding compilers.
4227  # On the NeXT, cc -E runs the code through the compiler's parser,
4228  # not just through cpp. "Syntax error" is here to catch this case.
4229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231#ifdef __STDC__
4232# include <limits.h>
4233#else
4234# include <assert.h>
4235#endif
4236		     Syntax error
4237_ACEOF
4238if ac_fn_c_try_cpp "$LINENO"; then :
4239
4240else
4241  # Broken: fails on valid input.
4242continue
4243fi
4244rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246  # OK, works on sane cases.  Now check whether nonexistent headers
4247  # can be detected and how.
4248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250#include <ac_nonexistent.h>
4251_ACEOF
4252if ac_fn_c_try_cpp "$LINENO"; then :
4253  # Broken: success on invalid input.
4254continue
4255else
4256  # Passes both tests.
4257ac_preproc_ok=:
4258break
4259fi
4260rm -f conftest.err conftest.i conftest.$ac_ext
4261
4262done
4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264rm -f conftest.i conftest.err conftest.$ac_ext
4265if $ac_preproc_ok; then :
4266  break
4267fi
4268
4269    done
4270    ac_cv_prog_CPP=$CPP
4271
4272fi
4273  CPP=$ac_cv_prog_CPP
4274else
4275  ac_cv_prog_CPP=$CPP
4276fi
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4278$as_echo "$CPP" >&6; }
4279ac_preproc_ok=false
4280for ac_c_preproc_warn_flag in '' yes
4281do
4282  # Use a header file that comes with gcc, so configuring glibc
4283  # with a fresh cross-compiler works.
4284  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285  # <limits.h> exists even on freestanding compilers.
4286  # On the NeXT, cc -E runs the code through the compiler's parser,
4287  # not just through cpp. "Syntax error" is here to catch this case.
4288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290#ifdef __STDC__
4291# include <limits.h>
4292#else
4293# include <assert.h>
4294#endif
4295		     Syntax error
4296_ACEOF
4297if ac_fn_c_try_cpp "$LINENO"; then :
4298
4299else
4300  # Broken: fails on valid input.
4301continue
4302fi
4303rm -f conftest.err conftest.i conftest.$ac_ext
4304
4305  # OK, works on sane cases.  Now check whether nonexistent headers
4306  # can be detected and how.
4307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309#include <ac_nonexistent.h>
4310_ACEOF
4311if ac_fn_c_try_cpp "$LINENO"; then :
4312  # Broken: success on invalid input.
4313continue
4314else
4315  # Passes both tests.
4316ac_preproc_ok=:
4317break
4318fi
4319rm -f conftest.err conftest.i conftest.$ac_ext
4320
4321done
4322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323rm -f conftest.i conftest.err conftest.$ac_ext
4324if $ac_preproc_ok; then :
4325
4326else
4327  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4330See \`config.log' for more details" "$LINENO" 5; }
4331fi
4332
4333ac_ext=c
4334ac_cpp='$CPP $CPPFLAGS'
4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338
4339
4340# Look for a good sed
4341# AC_PROG_SED was introduced in Autoconf 2.59b
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4343$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4344if ${ac_cv_path_SED+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4348     for ac_i in 1 2 3 4 5 6 7; do
4349       ac_script="$ac_script$as_nl$ac_script"
4350     done
4351     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4352     { ac_script=; unset ac_script;}
4353     if test -z "$SED"; then
4354  ac_path_SED_found=false
4355  # Loop through the user's path and test for each of PROGNAME-LIST
4356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361    for ac_prog in sed gsed; do
4362    for ac_exec_ext in '' $ac_executable_extensions; do
4363      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4364      as_fn_executable_p "$ac_path_SED" || continue
4365# Check for GNU ac_path_SED and select it if it is found.
4366  # Check for GNU $ac_path_SED
4367case `"$ac_path_SED" --version 2>&1` in
4368*GNU*)
4369  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4370*)
4371  ac_count=0
4372  $as_echo_n 0123456789 >"conftest.in"
4373  while :
4374  do
4375    cat "conftest.in" "conftest.in" >"conftest.tmp"
4376    mv "conftest.tmp" "conftest.in"
4377    cp "conftest.in" "conftest.nl"
4378    $as_echo '' >> "conftest.nl"
4379    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381    as_fn_arith $ac_count + 1 && ac_count=$as_val
4382    if test $ac_count -gt ${ac_path_SED_max-0}; then
4383      # Best one so far, save it but keep looking for a better one
4384      ac_cv_path_SED="$ac_path_SED"
4385      ac_path_SED_max=$ac_count
4386    fi
4387    # 10*(2^10) chars as input seems more than enough
4388    test $ac_count -gt 10 && break
4389  done
4390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391esac
4392
4393      $ac_path_SED_found && break 3
4394    done
4395  done
4396  done
4397IFS=$as_save_IFS
4398  if test -z "$ac_cv_path_SED"; then
4399    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4400  fi
4401else
4402  ac_cv_path_SED=$SED
4403fi
4404
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4407$as_echo "$ac_cv_path_SED" >&6; }
4408 SED="$ac_cv_path_SED"
4409  rm -f conftest.sed
4410
4411
4412# Grab target_cpu, so we can use it in the Solaris pkginfo file
4413# Make sure we can run config.sub.
4414$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4415  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4416
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4418$as_echo_n "checking build system type... " >&6; }
4419if ${ac_cv_build+:} false; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  ac_build_alias=$build_alias
4423test "x$ac_build_alias" = x &&
4424  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4425test "x$ac_build_alias" = x &&
4426  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4427ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4428  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4429
4430fi
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4432$as_echo "$ac_cv_build" >&6; }
4433case $ac_cv_build in
4434*-*-*) ;;
4435*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4436esac
4437build=$ac_cv_build
4438ac_save_IFS=$IFS; IFS='-'
4439set x $ac_cv_build
4440shift
4441build_cpu=$1
4442build_vendor=$2
4443shift; shift
4444# Remember, the first character of IFS is used to create $*,
4445# except with old shells:
4446build_os=$*
4447IFS=$ac_save_IFS
4448case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4452$as_echo_n "checking host system type... " >&6; }
4453if ${ac_cv_host+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  if test "x$host_alias" = x; then
4457  ac_cv_host=$ac_cv_build
4458else
4459  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4460    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4461fi
4462
4463fi
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4465$as_echo "$ac_cv_host" >&6; }
4466case $ac_cv_host in
4467*-*-*) ;;
4468*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4469esac
4470host=$ac_cv_host
4471ac_save_IFS=$IFS; IFS='-'
4472set x $ac_cv_host
4473shift
4474host_cpu=$1
4475host_vendor=$2
4476shift; shift
4477# Remember, the first character of IFS is used to create $*,
4478# except with old shells:
4479host_os=$*
4480IFS=$ac_save_IFS
4481case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4482
4483
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4485$as_echo_n "checking target system type... " >&6; }
4486if ${ac_cv_target+:} false; then :
4487  $as_echo_n "(cached) " >&6
4488else
4489  if test "x$target_alias" = x; then
4490  ac_cv_target=$ac_cv_host
4491else
4492  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4493    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4494fi
4495
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4498$as_echo "$ac_cv_target" >&6; }
4499case $ac_cv_target in
4500*-*-*) ;;
4501*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4502esac
4503target=$ac_cv_target
4504ac_save_IFS=$IFS; IFS='-'
4505set x $ac_cv_target
4506shift
4507target_cpu=$1
4508target_vendor=$2
4509shift; shift
4510# Remember, the first character of IFS is used to create $*,
4511# except with old shells:
4512target_os=$*
4513IFS=$ac_save_IFS
4514case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4515
4516
4517# The aliases save the names the user supplied, while $host etc.
4518# will get canonicalized.
4519test -n "$target_alias" &&
4520  test "$program_prefix$program_suffix$program_transform_name" = \
4521    NONENONEs,x,x, &&
4522  program_prefix=${target_alias}-
4523
4524# Look for an extended grep
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4526$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4527if ${ac_cv_path_GREP+:} false; then :
4528  $as_echo_n "(cached) " >&6
4529else
4530  if test -z "$GREP"; then
4531  ac_path_GREP_found=false
4532  # Loop through the user's path and test for each of PROGNAME-LIST
4533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538    for ac_prog in grep ggrep; do
4539    for ac_exec_ext in '' $ac_executable_extensions; do
4540      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4541      as_fn_executable_p "$ac_path_GREP" || continue
4542# Check for GNU ac_path_GREP and select it if it is found.
4543  # Check for GNU $ac_path_GREP
4544case `"$ac_path_GREP" --version 2>&1` in
4545*GNU*)
4546  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4547*)
4548  ac_count=0
4549  $as_echo_n 0123456789 >"conftest.in"
4550  while :
4551  do
4552    cat "conftest.in" "conftest.in" >"conftest.tmp"
4553    mv "conftest.tmp" "conftest.in"
4554    cp "conftest.in" "conftest.nl"
4555    $as_echo 'GREP' >> "conftest.nl"
4556    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558    as_fn_arith $ac_count + 1 && ac_count=$as_val
4559    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4560      # Best one so far, save it but keep looking for a better one
4561      ac_cv_path_GREP="$ac_path_GREP"
4562      ac_path_GREP_max=$ac_count
4563    fi
4564    # 10*(2^10) chars as input seems more than enough
4565    test $ac_count -gt 10 && break
4566  done
4567  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568esac
4569
4570      $ac_path_GREP_found && break 3
4571    done
4572  done
4573  done
4574IFS=$as_save_IFS
4575  if test -z "$ac_cv_path_GREP"; then
4576    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577  fi
4578else
4579  ac_cv_path_GREP=$GREP
4580fi
4581
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4584$as_echo "$ac_cv_path_GREP" >&6; }
4585 GREP="$ac_cv_path_GREP"
4586
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4589$as_echo_n "checking for egrep... " >&6; }
4590if ${ac_cv_path_EGREP+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594   then ac_cv_path_EGREP="$GREP -E"
4595   else
4596     if test -z "$EGREP"; then
4597  ac_path_EGREP_found=false
4598  # Loop through the user's path and test for each of PROGNAME-LIST
4599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601do
4602  IFS=$as_save_IFS
4603  test -z "$as_dir" && as_dir=.
4604    for ac_prog in egrep; do
4605    for ac_exec_ext in '' $ac_executable_extensions; do
4606      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4607      as_fn_executable_p "$ac_path_EGREP" || continue
4608# Check for GNU ac_path_EGREP and select it if it is found.
4609  # Check for GNU $ac_path_EGREP
4610case `"$ac_path_EGREP" --version 2>&1` in
4611*GNU*)
4612  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4613*)
4614  ac_count=0
4615  $as_echo_n 0123456789 >"conftest.in"
4616  while :
4617  do
4618    cat "conftest.in" "conftest.in" >"conftest.tmp"
4619    mv "conftest.tmp" "conftest.in"
4620    cp "conftest.in" "conftest.nl"
4621    $as_echo 'EGREP' >> "conftest.nl"
4622    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624    as_fn_arith $ac_count + 1 && ac_count=$as_val
4625    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626      # Best one so far, save it but keep looking for a better one
4627      ac_cv_path_EGREP="$ac_path_EGREP"
4628      ac_path_EGREP_max=$ac_count
4629    fi
4630    # 10*(2^10) chars as input seems more than enough
4631    test $ac_count -gt 10 && break
4632  done
4633  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634esac
4635
4636      $ac_path_EGREP_found && break 3
4637    done
4638  done
4639  done
4640IFS=$as_save_IFS
4641  if test -z "$ac_cv_path_EGREP"; then
4642    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643  fi
4644else
4645  ac_cv_path_EGREP=$EGREP
4646fi
4647
4648   fi
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4651$as_echo "$ac_cv_path_EGREP" >&6; }
4652 EGREP="$ac_cv_path_EGREP"
4653
4654
4655
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4657$as_echo_n "checking whether ln -s works... " >&6; }
4658LN_S=$as_ln_s
4659if test "$LN_S" = "ln -s"; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4661$as_echo "yes" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4664$as_echo "no, using $LN_S" >&6; }
4665fi
4666
4667
4668# Find a good install program.  We prefer a C program (faster),
4669# so one script is as good as another.  But avoid the broken or
4670# incompatible versions:
4671# SysV /etc/install, /usr/sbin/install
4672# SunOS /usr/etc/install
4673# IRIX /sbin/install
4674# AIX /bin/install
4675# AmigaOS /C/install, which installs bootblocks on floppy discs
4676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4679# OS/2's system install, which has a completely different semantic
4680# ./install, which can be erroneously created by make from ./install.sh.
4681# Reject install programs that cannot install multiple files.
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4683$as_echo_n "checking for a BSD-compatible install... " >&6; }
4684if test -z "$INSTALL"; then
4685if ${ac_cv_path_install+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691  IFS=$as_save_IFS
4692  test -z "$as_dir" && as_dir=.
4693    # Account for people who put trailing slashes in PATH elements.
4694case $as_dir/ in #((
4695  ./ | .// | /[cC]/* | \
4696  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4697  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4698  /usr/ucb/* ) ;;
4699  *)
4700    # OSF1 and SCO ODT 3.0 have their own names for install.
4701    # Don't use installbsd from OSF since it installs stuff as root
4702    # by default.
4703    for ac_prog in ginstall scoinst install; do
4704      for ac_exec_ext in '' $ac_executable_extensions; do
4705	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4706	  if test $ac_prog = install &&
4707	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4708	    # AIX install.  It has an incompatible calling convention.
4709	    :
4710	  elif test $ac_prog = install &&
4711	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4712	    # program-specific install script used by HP pwplus--don't use.
4713	    :
4714	  else
4715	    rm -rf conftest.one conftest.two conftest.dir
4716	    echo one > conftest.one
4717	    echo two > conftest.two
4718	    mkdir conftest.dir
4719	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4720	      test -s conftest.one && test -s conftest.two &&
4721	      test -s conftest.dir/conftest.one &&
4722	      test -s conftest.dir/conftest.two
4723	    then
4724	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4725	      break 3
4726	    fi
4727	  fi
4728	fi
4729      done
4730    done
4731    ;;
4732esac
4733
4734  done
4735IFS=$as_save_IFS
4736
4737rm -rf conftest.one conftest.two conftest.dir
4738
4739fi
4740  if test "${ac_cv_path_install+set}" = set; then
4741    INSTALL=$ac_cv_path_install
4742  else
4743    # As a last resort, use the slow shell script.  Don't cache a
4744    # value for INSTALL within a source directory, because that will
4745    # break other packages using the cache if that directory is
4746    # removed, or if the value is a relative name.
4747    INSTALL=$ac_install_sh
4748  fi
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4751$as_echo "$INSTALL" >&6; }
4752
4753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4754# It thinks the first close brace ends the variable substitution.
4755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4756
4757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4758
4759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4760
4761# If $INSTALL is relative path to our fallback install-sh, then convert
4762# to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4763# may try to use it from a changed working directory.
4764if test "$INSTALL" = "build/install-sh -c"; then
4765  INSTALL="$abs_srcdir/$INSTALL"
4766fi
4767
4768if test -z "$MKDIR"; then
4769  MKDIR="$INSTALL -d"
4770fi
4771
4772
4773# ==== Libraries, for which we may have source to build ======================
4774
4775
4776APR_VER_REGEXES="1\.[5-9]\. 2\."
4777
4778
4779  APR_WANTED_REGEXES="$APR_VER_REGEXES"
4780
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4782$as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4783
4784
4785  apr_found="no"
4786
4787  if test "$target_os" = "os2-emx"; then
4788    # Scripts don't pass test -x on OS/2
4789    TEST_X="test -f"
4790  else
4791    TEST_X="test -x"
4792  fi
4793
4794  acceptable_majors="2 1 0"
4795
4796  apr_temp_acceptable_apr_config=""
4797  for apr_temp_major in $acceptable_majors
4798  do
4799    case $apr_temp_major in
4800      0)
4801      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4802      ;;
4803      *)
4804      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4805      ;;
4806    esac
4807  done
4808
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4810$as_echo_n "checking for APR... " >&6; }
4811
4812# Check whether --with-apr was given.
4813if test "${with_apr+set}" = set; then :
4814  withval=$with_apr;
4815    if test "$withval" = "no" || test "$withval" = "yes"; then
4816      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4817    fi
4818
4819    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4820    do
4821      for lookdir in "$withval/bin" "$withval"
4822      do
4823        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4824          apr_config="$lookdir/$apr_temp_apr_config_file"
4825
4826          apr_found="yes"
4827          break 2
4828        fi
4829      done
4830    done
4831
4832    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4833      apr_config="$withval"
4834      apr_found="yes"
4835    fi
4836
4837            if test "$apr_found" != "yes"; then
4838      as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
4839    fi
4840
4841else
4842
4843        if test -n "1" && test "1" = "1"; then
4844      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4845      do
4846        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4847          apr_config="$apr_temp_apr_config_file"
4848
4849          apr_found="yes"
4850          break
4851        else
4852                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4853            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4854              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4855
4856              apr_found="yes"
4857              break 2
4858            fi
4859          done
4860        fi
4861      done
4862    fi
4863        if test "$apr_found" = "no" && test -d """"; then
4864      apr_temp_abs_srcdir="`cd \"""\" && pwd`"
4865      apr_found="reconfig"
4866      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4867      case $apr_bundled_major in
4868        "")
4869          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4870        ;;
4871        0)
4872          apr_temp_apr_config_file="apr-config"
4873        ;;
4874        *)
4875          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4876        ;;
4877      esac
4878      if test -n """"; then
4879        apr_config="""/$apr_temp_apr_config_file"
4880      else
4881        apr_config="""/$apr_temp_apr_config_file"
4882      fi
4883    fi
4884
4885fi
4886
4887
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4889$as_echo "$apr_found" >&6; }
4890
4891
4892  if test $apr_found = "no"; then
4893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4894$as_echo "$as_me: WARNING: APR not found" >&2;}
4895
4896  echo "The Apache Portable Runtime (APR) library cannot be found."
4897  echo "Please install APR on this system and configure Subversion"
4898  echo "with the appropriate --with-apr option."
4899  echo ""
4900  echo "You probably need to do something similar with the Apache"
4901  echo "Portable Runtime Utility (APRUTIL) library and then configure"
4902  echo "Subversion with both the --with-apr and --with-apr-util options."
4903  echo ""
4904  as_fn_error $? "no suitable APR found" "$LINENO" 5
4905
4906  fi
4907
4908  if test $apr_found = "reconfig"; then
4909    as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4910  fi
4911
4912
4913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4914$as_echo_n "checking APR version... " >&6; }
4915  apr_version="`$apr_config --version`"
4916  if test $? -ne 0; then
4917    as_fn_error $? "apr-config --version failed" "$LINENO" 5
4918  fi
4919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4920$as_echo "$apr_version" >&6; }
4921
4922  APR_WANTED_REGEX_MATCH=0
4923  for apr_wanted_regex in $APR_WANTED_REGEXES; do
4924    if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4925      APR_WANTED_REGEX_MATCH=1
4926      break
4927    fi
4928  done
4929
4930  if test $APR_WANTED_REGEX_MATCH -eq 0; then
4931    echo "wanted regexes are $APR_WANTED_REGEXES"
4932    as_fn_error $? "invalid apr version found" "$LINENO" 5
4933  fi
4934
4935
4936  CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4937  if test $? -ne 0; then
4938    as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4939  fi
4940
4941  CFLAGS="$CFLAGS `$apr_config --cflags`"
4942  if test $? -ne 0; then
4943    as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4944  fi
4945
4946  apr_ldflags="`$apr_config --ldflags`"
4947  if test $? -ne 0; then
4948    as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4949  fi
4950  LDFLAGS="$LDFLAGS `
4951  input_flags="$apr_ldflags"
4952  output_flags=""
4953  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4954  for flag in $input_flags; do
4955    filter="no"
4956    for dir in $filtered_dirs; do
4957      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4958        filter="yes"
4959        break
4960      fi
4961    done
4962    if test "$filter" = "no"; then
4963      output_flags="$output_flags $flag"
4964    fi
4965  done
4966  if test -n "$output_flags"; then
4967    printf "%s" "${output_flags# }"
4968  fi
4969`"
4970
4971  SVN_APR_INCLUDES="`$apr_config --includes`"
4972  if test $? -ne 0; then
4973    as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4974  fi
4975
4976  if test "$enable_all_static" = "yes"; then
4977    SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4978    if test $? -ne 0; then
4979      as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4980    fi
4981  else
4982    SVN_APR_LIBS="`$apr_config --link-ld`"
4983    if test $? -ne 0; then
4984      as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4985    fi
4986  fi
4987  SVN_APR_LIBS="`
4988  input_flags="$SVN_APR_LIBS"
4989  output_flags=""
4990  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4991  for flag in $input_flags; do
4992    filter="no"
4993    for dir in $filtered_dirs; do
4994      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4995        filter="yes"
4996        break
4997      fi
4998    done
4999    if test "$filter" = "no"; then
5000      output_flags="$output_flags $flag"
5001    fi
5002  done
5003  if test -n "$output_flags"; then
5004    printf "%s" "${output_flags# }"
5005  fi
5006`"
5007
5008  SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
5009  if test $? -ne 0; then
5010    as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
5011  fi
5012
5013  SVN_APR_CONFIG="$apr_config"
5014
5015
5016
5017
5018
5019
5020if test `expr $apr_version : 2` -ne 0; then
5021      svn_lib_ver=2
5022    apu_config=$apr_config
5023
5024  SVN_APRUTIL_CONFIG="$apu_config"
5025
5026
5027  SVN_APR_MAJOR_VERSION=2
5028else
5029  svn_lib_ver=0
5030  APU_VER_REGEXES="1\.[3-9]\."
5031
5032  APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
5033
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
5035$as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
5036
5037
5038  apu_found="no"
5039
5040  if test "$target_os" = "os2-emx"; then
5041    # Scripts don't pass test -x on OS/2
5042    TEST_X="test -f"
5043  else
5044    TEST_X="test -x"
5045  fi
5046
5047  acceptable_majors="1 0"
5048
5049  apu_temp_acceptable_apu_config=""
5050  for apu_temp_major in $acceptable_majors
5051  do
5052    case $apu_temp_major in
5053      0)
5054      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
5055      ;;
5056      *)
5057      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
5058      ;;
5059    esac
5060  done
5061
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
5063$as_echo_n "checking for APR-util... " >&6; }
5064
5065# Check whether --with-apr-util was given.
5066if test "${with_apr_util+set}" = set; then :
5067  withval=$with_apr_util;
5068    if test "$withval" = "no" || test "$withval" = "yes"; then
5069      as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
5070    fi
5071
5072    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5073    do
5074      for lookdir in "$withval/bin" "$withval"
5075      do
5076        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
5077          apu_config="$lookdir/$apu_temp_apu_config_file"
5078
5079          apu_found="yes"
5080          break 2
5081        fi
5082      done
5083    done
5084
5085    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
5086      apu_config="$withval"
5087      apu_found="yes"
5088    fi
5089
5090            if test "$apu_found" != "yes"; then
5091      as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
5092    fi
5093
5094else
5095
5096    if test -n "1" && test "1" = "1"; then
5097      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5098      do
5099        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
5100          apu_config="$apu_temp_apu_config_file"
5101
5102          apu_found="yes"
5103          break
5104        else
5105                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
5106            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
5107              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
5108
5109              apu_found="yes"
5110              break 2
5111            fi
5112          done
5113        fi
5114      done
5115    fi
5116        if test "$apu_found" = "no" && test -d """"; then
5117      apu_temp_abs_srcdir="`cd \"""\" && pwd`"
5118      apu_found="reconfig"
5119      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
5120      case $apu_bundled_major in
5121        "")
5122          as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
5123        ;;
5124        0)
5125          apu_temp_apu_config_file="apu-config"
5126        ;;
5127        *)
5128          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
5129        ;;
5130      esac
5131      if test -n """"; then
5132        apu_config="""/$apu_temp_apu_config_file"
5133      else
5134        apu_config="""/$apu_temp_apu_config_file"
5135      fi
5136    fi
5137
5138fi
5139
5140
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
5142$as_echo "$apu_found" >&6; }
5143
5144
5145  if test $apu_found = "no"; then
5146    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
5147$as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
5148
5149  echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
5150  echo "Install APRUTIL on this system and configure Subversion with the"
5151  echo " appropriate --with-apr-util option."
5152  echo ""
5153  as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
5154
5155  fi
5156
5157  if test $apu_found = "reconfig"; then
5158    as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
5159  fi
5160
5161
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
5163$as_echo_n "checking APRUTIL version... " >&6; }
5164  apu_version="`$apu_config --version`"
5165  if test $? -ne 0; then
5166    # This is a hack as suggested by Ben Collins-Sussman.  It can be
5167    # removed after apache 2.0.44 has been released.  (The apu-config
5168    # shipped in 2.0.43 contains a correct version number, but
5169    # stupidly doesn't understand the --version switch.)
5170    apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
5171    #AC_MSG_ERROR([
5172    #    apu-config --version failed.
5173    #    Your apu-config doesn't support the --version switch, please upgrade
5174    #    to APR-UTIL more recent than 2002-Nov-05.])
5175  fi
5176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
5177$as_echo "$apu_version" >&6; }
5178
5179  APU_WANTED_REGEX_MATCH=0
5180  for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
5181    if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
5182      APU_WANTED_REGEX_MATCH=1
5183      break
5184    fi
5185  done
5186
5187  if test $APU_WANTED_REGEX_MATCH -eq 0; then
5188    echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
5189    as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
5190  fi
5191
5192
5193  apu_ldflags="`$apu_config --ldflags`"
5194  if test $? -ne 0; then
5195    as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5196  fi
5197  LDFLAGS="$LDFLAGS `
5198  input_flags="$apu_ldflags"
5199  output_flags=""
5200  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5201  for flag in $input_flags; do
5202    filter="no"
5203    for dir in $filtered_dirs; do
5204      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5205        filter="yes"
5206        break
5207      fi
5208    done
5209    if test "$filter" = "no"; then
5210      output_flags="$output_flags $flag"
5211    fi
5212  done
5213  if test -n "$output_flags"; then
5214    printf "%s" "${output_flags# }"
5215  fi
5216`"
5217
5218  SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5219  if test $? -ne 0; then
5220    as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5221  fi
5222
5223  if test "$enable_all_static" = "yes"; then
5224    SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5225    if test $? -ne 0; then
5226      as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5227    fi
5228  else
5229    SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5230    if test $? -ne 0; then
5231      as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5232    fi
5233  fi
5234  SVN_APRUTIL_LIBS="`
5235  input_flags="$SVN_APRUTIL_LIBS"
5236  output_flags=""
5237  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5238  for flag in $input_flags; do
5239    filter="no"
5240    for dir in $filtered_dirs; do
5241      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5242        filter="yes"
5243        break
5244      fi
5245    done
5246    if test "$filter" = "no"; then
5247      output_flags="$output_flags $flag"
5248    fi
5249  done
5250  if test -n "$output_flags"; then
5251    printf "%s" "${output_flags# }"
5252  fi
5253`"
5254
5255
5256  SVN_APRUTIL_CONFIG="$apu_config"
5257
5258
5259
5260    SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5261  if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5262
5263$as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5264
5265  fi
5266
5267  SVN_APR_MAJOR_VERSION=1
5268fi
5269
5270SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5271
5272
5273cat >>confdefs.h <<_ACEOF
5274#define SVN_SOVERSION $svn_lib_ver
5275_ACEOF
5276
5277
5278# Extract the first word of "pkg-config", so it can be a program name with args.
5279set dummy pkg-config; ac_word=$2
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281$as_echo_n "checking for $ac_word... " >&6; }
5282if ${ac_cv_path_PKG_CONFIG+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285  case $PKG_CONFIG in
5286  [\\/]* | ?:[\\/]*)
5287  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5288  ;;
5289  *)
5290  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291for as_dir in $PATH
5292do
5293  IFS=$as_save_IFS
5294  test -z "$as_dir" && as_dir=.
5295    for ac_exec_ext in '' $ac_executable_extensions; do
5296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299    break 2
5300  fi
5301done
5302  done
5303IFS=$as_save_IFS
5304
5305  ;;
5306esac
5307fi
5308PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5309if test -n "$PKG_CONFIG"; then
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5311$as_echo "$PKG_CONFIG" >&6; }
5312else
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
5316
5317
5318
5319
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5321$as_echo_n "checking for ANSI C header files... " >&6; }
5322if ${ac_cv_header_stdc+:} false; then :
5323  $as_echo_n "(cached) " >&6
5324else
5325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h.  */
5327#include <stdlib.h>
5328#include <stdarg.h>
5329#include <string.h>
5330#include <float.h>
5331
5332int
5333main ()
5334{
5335
5336  ;
5337  return 0;
5338}
5339_ACEOF
5340if ac_fn_c_try_compile "$LINENO"; then :
5341  ac_cv_header_stdc=yes
5342else
5343  ac_cv_header_stdc=no
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346
5347if test $ac_cv_header_stdc = yes; then
5348  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h.  */
5351#include <string.h>
5352
5353_ACEOF
5354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5355  $EGREP "memchr" >/dev/null 2>&1; then :
5356
5357else
5358  ac_cv_header_stdc=no
5359fi
5360rm -f conftest*
5361
5362fi
5363
5364if test $ac_cv_header_stdc = yes; then
5365  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h.  */
5368#include <stdlib.h>
5369
5370_ACEOF
5371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372  $EGREP "free" >/dev/null 2>&1; then :
5373
5374else
5375  ac_cv_header_stdc=no
5376fi
5377rm -f conftest*
5378
5379fi
5380
5381if test $ac_cv_header_stdc = yes; then
5382  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5383  if test "$cross_compiling" = yes; then :
5384  :
5385else
5386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388#include <ctype.h>
5389#include <stdlib.h>
5390#if ((' ' & 0x0FF) == 0x020)
5391# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5392# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5393#else
5394# define ISLOWER(c) \
5395		   (('a' <= (c) && (c) <= 'i') \
5396		     || ('j' <= (c) && (c) <= 'r') \
5397		     || ('s' <= (c) && (c) <= 'z'))
5398# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5399#endif
5400
5401#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5402int
5403main ()
5404{
5405  int i;
5406  for (i = 0; i < 256; i++)
5407    if (XOR (islower (i), ISLOWER (i))
5408	|| toupper (i) != TOUPPER (i))
5409      return 2;
5410  return 0;
5411}
5412_ACEOF
5413if ac_fn_c_try_run "$LINENO"; then :
5414
5415else
5416  ac_cv_header_stdc=no
5417fi
5418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5419  conftest.$ac_objext conftest.beam conftest.$ac_ext
5420fi
5421
5422fi
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5425$as_echo "$ac_cv_header_stdc" >&6; }
5426if test $ac_cv_header_stdc = yes; then
5427
5428$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5429
5430fi
5431
5432# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5433for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5434		  inttypes.h stdint.h unistd.h
5435do :
5436  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5437ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5438"
5439if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5440  cat >>confdefs.h <<_ACEOF
5441#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442_ACEOF
5443
5444fi
5445
5446done
5447
5448
5449
5450  serf_found=no
5451  serf_required=no
5452  serf_skip=no
5453
5454  serf_check_major="1"
5455  serf_check_minor="3"
5456  serf_check_patch="4"
5457  serf_check_version="1.3.4"
5458
5459
5460# Check whether --with-serf was given.
5461if test "${with_serf+set}" = set; then :
5462  withval=$with_serf;
5463    if test "$withval" = "yes" ; then
5464      serf_required=yes
5465    elif test "$withval" = "no" ; then
5466      serf_skip=yes
5467    else
5468      serf_required=yes
5469      serf_prefix="$withval"
5470    fi
5471
5472fi
5473
5474
5475  if test "$serf_skip" = "no" ; then
5476
5477  { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5478$as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5479  if test -n "$PKG_CONFIG"; then
5480    for serf_major in serf-2 serf-1; do
5481      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5482$as_echo_n "checking for $serf_major library... " >&6; }
5483      if test -n "$serf_prefix" ; then
5484                                                        if test -e "$serf_prefix/$serf_major.pc" ; then
5485          serf_pc_arg="$serf_prefix/$serf_major.pc"
5486        elif test -e "$serf_prefix/lib/pkgconfig/$serf_major.pc" ; then
5487          serf_pc_arg="$serf_prefix/lib/pkgconfig/$serf_major.pc"
5488        else
5489          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491          continue
5492        fi
5493      else
5494        serf_pc_arg="$serf_major"
5495      fi
5496      if $PKG_CONFIG $serf_pc_arg --exists; then
5497        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498$as_echo "yes" >&6; }
5499        { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5500$as_echo_n "checking serf library version... " >&6; }
5501        SERF_VERSION=`$PKG_CONFIG $serf_pc_arg --modversion`
5502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5503$as_echo "$SERF_VERSION" >&6; }
5504        { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5505$as_echo_n "checking serf version is suitable... " >&6; }
5506        if $PKG_CONFIG $serf_pc_arg --atleast-version=$serf_check_version; then
5507          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5508$as_echo "yes" >&6; }
5509          serf_found=yes
5510          SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_pc_arg --cflags-only-I`
5511          SVN_SERF_LIBS=`$PKG_CONFIG $serf_pc_arg --libs-only-l`
5512                    LDFLAGS="$LDFLAGS `$PKG_CONFIG $serf_pc_arg --libs | $SED -e 's/-l[^ ]*//g'`"
5513          break
5514        else
5515          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5518$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5519        fi
5520      else
5521        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522$as_echo "no" >&6; }
5523      fi
5524    done
5525  fi
5526
5527    if test -n "$serf_prefix" && test "$serf_found" = "no" ; then
5528
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5530$as_echo "$as_me: serf library configuration via prefix" >&6;}
5531  serf_required=yes
5532  for serf_major in serf-2 serf-1; do
5533    if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5534    save_cppflags="$CPPFLAGS"
5535    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5536    for ac_header in serf.h
5537do :
5538  ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5539if test "x$ac_cv_header_serf_h" = xyes; then :
5540  cat >>confdefs.h <<_ACEOF
5541#define HAVE_SERF_H 1
5542_ACEOF
5543
5544      save_ldflags="$LDFLAGS"
5545      LDFLAGS="$LDFLAGS `
5546  input_flags="-L$serf_prefix/lib"
5547  output_flags=""
5548  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5549  for flag in $input_flags; do
5550    filter="no"
5551    for dir in $filtered_dirs; do
5552      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5553        filter="yes"
5554        break
5555      fi
5556    done
5557    if test "$filter" = "no"; then
5558      output_flags="$output_flags $flag"
5559    fi
5560  done
5561  if test -n "$output_flags"; then
5562    printf "%s" "${output_flags# }"
5563  fi
5564`"
5565      as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5567$as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5568if eval \${$as_ac_Lib+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  ac_check_lib_save_LIBS=$LIBS
5572LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574/* end confdefs.h.  */
5575
5576/* Override any GCC internal prototype to avoid an error.
5577   Use char because int might match the return type of a GCC
5578   builtin and then its argument prototype would still apply.  */
5579#ifdef __cplusplus
5580extern "C"
5581#endif
5582char serf_context_create ();
5583int
5584main ()
5585{
5586return serf_context_create ();
5587  ;
5588  return 0;
5589}
5590_ACEOF
5591if ac_fn_c_try_link "$LINENO"; then :
5592  eval "$as_ac_Lib=yes"
5593else
5594  eval "$as_ac_Lib=no"
5595fi
5596rm -f core conftest.err conftest.$ac_objext \
5597    conftest$ac_exeext conftest.$ac_ext
5598LIBS=$ac_check_lib_save_LIBS
5599fi
5600eval ac_res=\$$as_ac_Lib
5601	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5602$as_echo "$ac_res" >&6; }
5603if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5604
5605        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607
5608#include <stdlib.h>
5609#include "serf.h"
5610
5611int
5612main ()
5613{
5614
5615#if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5616#error Serf version too old: need $serf_check_version
5617#endif
5618
5619  ;
5620  return 0;
5621}
5622_ACEOF
5623if ac_fn_c_try_compile "$LINENO"; then :
5624  serf_found=yes
5625else
5626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5627$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5628      serf_found=no
5629fi
5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631fi
5632
5633    LDFLAGS="$save_ldflags"
5634fi
5635
5636done
5637
5638    CPPFLAGS="$save_cppflags"
5639    test $serf_found = yes && break
5640  done
5641
5642  if test $serf_found = "yes"; then
5643    SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5644    if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5645      SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5646    else
5647      SVN_SERF_LIBS="-l$serf_major"
5648      LDFLAGS="$LDFLAGS `
5649  input_flags="-L$serf_prefix/lib"
5650  output_flags=""
5651  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5652  for flag in $input_flags; do
5653    filter="no"
5654    for dir in $filtered_dirs; do
5655      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5656        filter="yes"
5657        break
5658      fi
5659    done
5660    if test "$filter" = "no"; then
5661      output_flags="$output_flags $flag"
5662    fi
5663  done
5664  if test -n "$output_flags"; then
5665    printf "%s" "${output_flags# }"
5666  fi
5667`"
5668    fi
5669  fi
5670
5671    fi
5672
5673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5674$as_echo_n "checking was serf enabled... " >&6; }
5675    if test "$serf_found" = "yes"; then
5676      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677$as_echo "yes" >&6; }
5678    else
5679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681
5682  echo ""
5683  echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5684  echo "will not be built.  If you want to build libsvn_ra_serf, please"
5685  echo "install serf $serf_check_version or newer."
5686  echo ""
5687
5688      if test "$serf_required" = "yes"; then
5689        as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5690      fi
5691    fi
5692  fi
5693
5694  svn_lib_serf=$serf_found
5695
5696
5697
5698
5699
5700if test "$svn_lib_serf" = "yes"; then
5701
5702$as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5703
5704fi
5705
5706
5707  apr_memcache_found=no
5708
5709
5710# Check whether --with-apr_memcache was given.
5711if test "${with_apr_memcache+set}" = set; then :
5712  withval=$with_apr_memcache;
5713    if test "$withval" = "yes" ; then
5714      as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5715    else
5716      { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5717$as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5718      apr_memcache_prefix=$withval
5719      save_cppflags="$CPPFLAGS"
5720      CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5721      ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5722if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5723
5724        save_ldflags="$LDFLAGS"
5725        LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5726        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5727$as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5728if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731  ac_check_lib_save_LIBS=$LIBS
5732LIBS="-lapr_memcache  $LIBS"
5733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h.  */
5735
5736/* Override any GCC internal prototype to avoid an error.
5737   Use char because int might match the return type of a GCC
5738   builtin and then its argument prototype would still apply.  */
5739#ifdef __cplusplus
5740extern "C"
5741#endif
5742char apr_memcache_create ();
5743int
5744main ()
5745{
5746return apr_memcache_create ();
5747  ;
5748  return 0;
5749}
5750_ACEOF
5751if ac_fn_c_try_link "$LINENO"; then :
5752  ac_cv_lib_apr_memcache_apr_memcache_create=yes
5753else
5754  ac_cv_lib_apr_memcache_apr_memcache_create=no
5755fi
5756rm -f core conftest.err conftest.$ac_objext \
5757    conftest$ac_exeext conftest.$ac_ext
5758LIBS=$ac_check_lib_save_LIBS
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5761$as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5762if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5763  apr_memcache_found="standalone"
5764fi
5765
5766        LDFLAGS="$save_ldflags"
5767fi
5768
5769
5770      CPPFLAGS="$save_cppflags"
5771    fi
5772
5773else
5774
5775    { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5776$as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5777    save_cppflags="$CPPFLAGS"
5778    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5779    ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5780if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5781
5782      save_ldflags="$LDFLAGS"
5783      LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5784      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5785$as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5786if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5787  $as_echo_n "(cached) " >&6
5788else
5789  ac_check_lib_save_LIBS=$LIBS
5790LIBS="-laprutil-1  $LIBS"
5791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792/* end confdefs.h.  */
5793
5794/* Override any GCC internal prototype to avoid an error.
5795   Use char because int might match the return type of a GCC
5796   builtin and then its argument prototype would still apply.  */
5797#ifdef __cplusplus
5798extern "C"
5799#endif
5800char apr_memcache_create ();
5801int
5802main ()
5803{
5804return apr_memcache_create ();
5805  ;
5806  return 0;
5807}
5808_ACEOF
5809if ac_fn_c_try_link "$LINENO"; then :
5810  ac_cv_lib_aprutil_1_apr_memcache_create=yes
5811else
5812  ac_cv_lib_aprutil_1_apr_memcache_create=no
5813fi
5814rm -f core conftest.err conftest.$ac_objext \
5815    conftest$ac_exeext conftest.$ac_ext
5816LIBS=$ac_check_lib_save_LIBS
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5819$as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5820if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5821  apr_memcache_found="aprutil"
5822fi
5823
5824      LDFLAGS="$save_ldflags"
5825fi
5826
5827
5828    CPPFLAGS="$save_cppflags"
5829
5830fi
5831
5832
5833
5834  if test $apr_memcache_found = "standalone"; then
5835    SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5836    SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5837    svn_lib_apr_memcache=yes
5838  elif test $apr_memcache_found = "aprutil"; then
5839    SVN_APR_MEMCACHE_INCLUDES=""
5840    SVN_APR_MEMCACHE_LIBS=""
5841    svn_lib_apr_memcache=yes
5842  elif test $apr_memcache_found = "reconfig"; then
5843    svn_lib_apr_memcache=yes
5844  else
5845    svn_lib_apr_memcache=no
5846  fi
5847
5848
5849
5850
5851
5852if test "$svn_lib_apr_memcache" = "yes"; then
5853
5854$as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5855
5856fi
5857
5858# Check whether --enable-apache-whitelist was given.
5859if test "${enable_apache_whitelist+set}" = set; then :
5860  enableval=$enable_apache_whitelist; apache_whitelist_ver=$enableval
5861else
5862  apache_whitelist_ver=no
5863fi
5864
5865HTTPD_WHITELIST="$apache_whitelist_ver"
5866
5867
5868
5869
5870
5871HTTPD_WANTED_MMN="20051115"
5872
5873HTTPD_WHITELIST_VER="$apache_whitelist_ver"
5874
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5876$as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5877
5878# Check whether --with-apxs was given.
5879if test "${with_apxs+set}" = set; then :
5880  withval=$with_apxs;
5881    if test "$withval" = "yes"; then
5882      APXS=apxs
5883    else
5884      APXS="$withval"
5885    fi
5886    APXS_EXPLICIT=1
5887
5888fi
5889
5890
5891if test -z "$APXS"; then
5892  for i in /usr/local/apache2/bin /usr/local/apache/bin /usr/bin /usr/sbin ; do
5893    if test -f "$i/apxs2"; then
5894      APXS="$i/apxs2"
5895      break
5896    fi
5897    if test -f "$i/apxs"; then
5898      APXS="$i/apxs"
5899      break
5900    fi
5901  done
5902fi
5903
5904if test -n "$APXS" && test "$APXS" != "no"; then
5905    APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5906    if test -r $APXS_INCLUDE/mod_dav.h; then
5907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5908$as_echo "found at $APXS" >&6; }
5909
5910        { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5911$as_echo_n "checking httpd version... " >&6; }
5912        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914
5915#include "$APXS_INCLUDE/ap_mmn.h"
5916#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5917VERSION_OKAY
5918#endif
5919_ACEOF
5920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921  $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5923$as_echo "recent enough" >&6; }
5924else
5925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5926$as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5927         if test "$APXS_EXPLICIT" != ""; then
5928             as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5929         fi
5930         APXS=""
5931
5932fi
5933rm -f conftest*
5934
5935
5936    elif test "$APXS_EXPLICIT" != ""; then
5937        as_fn_error $? "no - APXS refers to an old version of Apache
5938                      Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5939    else
5940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5941$as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5942        APXS=""
5943    fi
5944else
5945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
5947fi
5948
5949# check for some busted versions of mod_dav
5950# in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5951# troublesome for Subversion:
5952# PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5953# PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5954# PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5955if test -n "$APXS" && test "$APXS" != "no"; then
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5957$as_echo_n "checking mod_dav version... " >&6; }
5958  HTTPD_MAJOR=`$SED -ne '/^#define AP_SERVER_MAJORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5959  HTTPD_MINOR=`$SED -ne '/^#define AP_SERVER_MINORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5960  HTTPD_PATCH=`$SED -ne '/^#define AP_SERVER_PATCHLEVEL_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5961  HTTPD_VERSION="${HTTPD_MAJOR}.${HTTPD_MINOR}.${HTTPD_PATCH}"
5962  case "$HTTPD_VERSION" in
5963    $HTTPD_WHITELIST_VER)
5964      { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable (whitelist)" >&5
5965$as_echo "acceptable (whitelist)" >&6; }
5966      ;;
5967    2.2.25 | 2.4.[5-6])
5968      { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5969$as_echo "broken" >&6; }
5970      as_fn_error $? "Apache httpd version $HTTPD_VERSION includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5971      ;;
5972    2.[0-9]*.[0-9]*)
5973      { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5974$as_echo "acceptable" >&6; }
5975      ;;
5976    *)
5977      { $as_echo "$as_me:${as_lineno-$LINENO}: result: unrecognised" >&5
5978$as_echo "unrecognised" >&6; }
5979      as_fn_error $? "Apache httpd version $HTTPD_VERSION not recognised" "$LINENO" 5
5980      ;;
5981  esac
5982fi
5983
5984if test -n "$APXS" && test "$APXS" != "no"; then
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5986$as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5987  apr_major_version="${apr_version%%.*}"
5988  case "$apr_major_version" in
5989    0)
5990      apache_minor_version_wanted_regex="0"
5991      ;;
5992    1)
5993      apache_minor_version_wanted_regex="[1-5]"
5994      ;;
5995    2)
5996      apache_minor_version_wanted_regex="[3-5]"
5997      ;;
5998    *)
5999      as_fn_error $? "unknown APR version" "$LINENO" 5
6000      ;;
6001  esac
6002  case $HTTPD_MINOR in
6003    $apache_minor_version_wanted_regex)
6004      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005$as_echo "yes" >&6; }
6006      ;;
6007    *)
6008      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009$as_echo "no" >&6; }
6010      as_fn_error $? "Apache version $HTTPD_VERSION incompatible with APR version $apr_version" "$LINENO" 5
6011      ;;
6012  esac
6013fi
6014
6015
6016# Check whether --with-apache-libexecdir was given.
6017if test "${with_apache_libexecdir+set}" = set; then :
6018  withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
6019else
6020  APACHE_LIBEXECDIR='no'
6021fi
6022
6023
6024INSTALL_APACHE_MODS=false
6025if test -n "$APXS" && test "$APXS" != "no"; then
6026    APXS_CC="`$APXS -q CC`"
6027    APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
6028
6029    if test "$APACHE_LIBEXECDIR" = 'no'; then
6030        APACHE_LIBEXECDIR="$libexecdir"
6031    elif test "$APACHE_LIBEXECDIR" = 'yes'; then
6032        APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
6033    fi
6034
6035    for ac_header in unistd.h
6036do :
6037  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6038if test "x$ac_cv_header_unistd_h" = xyes; then :
6039  cat >>confdefs.h <<_ACEOF
6040#define HAVE_UNISTD_H 1
6041_ACEOF
6042 for ac_func in getpid
6043do :
6044  ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
6045if test "x$ac_cv_func_getpid" = xyes; then :
6046  cat >>confdefs.h <<_ACEOF
6047#define HAVE_GETPID 1
6048_ACEOF
6049
6050fi
6051done
6052
6053fi
6054
6055done
6056
6057
6058    MMN_MAJOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MAJOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MAJOR *//'`
6059    MMN_MINOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MINOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MINOR *//' | $SED -e 's/ .*//'`
6060    if test "$MMN_MAJOR" = "20120211" && test "$MMN_MINOR" -lt "47" ; then
6061      # This is httpd 2.4 and it doesn't appear to have the required
6062      # API but the installation may have been patched.
6063      # Check whether --enable-broken-httpd-auth was given.
6064if test "${enable_broken_httpd_auth+set}" = set; then :
6065  enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval
6066else
6067  broken_httpd_auth=no
6068fi
6069
6070      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ap_some_authn_required" >&5
6071$as_echo_n "checking for ap_some_authn_required... " >&6; }
6072      old_CPPFLAGS="$CPPFLAGS"
6073      CPPFLAGS="$CPPFLAGS $APACHE_INCLUDES $SVN_APR_INCLUDES"
6074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h.  */
6076#include "http_request.h"
6077_ACEOF
6078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079  $EGREP "int.*\sap_some_authn_required\s*\(" >/dev/null 2>&1; then :
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6081$as_echo "yes" >&6; }
6082                    working_auth=yes
6083else
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085$as_echo "no" >&6; }
6086fi
6087rm -f conftest*
6088
6089      CPPFLAGS="$old_CPPFLAGS"
6090      if test "$working_auth" = "yes" ; then
6091
6092$as_echo "#define SVN_USE_FORCE_AUTHN 1" >>confdefs.h
6093
6094      elif test "$enable_broken_httpd_auth" = "yes"; then
6095        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6096$as_echo "$as_me: WARNING: ==============================================" >&2;}
6097        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&5
6098$as_echo "$as_me: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&2;}
6099        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&5
6100$as_echo "$as_me: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&2;}
6101        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6102$as_echo "$as_me: WARNING: ==============================================" >&2;}
6103
6104$as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h
6105
6106      else
6107        as_fn_error $? "Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR has broken auth (CVE-2015-3184)" "$LINENO" 5
6108      fi
6109    fi
6110
6111    BUILD_APACHE_RULE=apache-mod
6112    INSTALL_APACHE_RULE=install-mods-shared
6113    INSTALL_APACHE_MODS=true
6114    case $host in
6115      *-*-cygwin*)
6116        APACHE_LDFLAGS="-shrext .so"
6117        ;;
6118    esac
6119elif test x"$APXS" != x"no"; then
6120    echo "===============================================