configure revision 309512
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for subversion 1.9.5.
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.9.5'
594PACKAGE_STRING='subversion 1.9.5'
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
638SWIG_CPPFLAGS
639JAVAHL_COMPAT_TESTS_TARGET
640JAVAHL_TESTS_TARGET
641JAVA_CLASSPATH
642LT_CXX_LIBADD
643FIX_JAVAHL_LIB
644JAVAHL_OBJDIR
645INSTALL_EXTRA_JAVAHL_LIB
646SVN_FS_LIB_LINK
647SVN_FS_LIB_INSTALL_DEPS
648SVN_FS_LIB_DEPS
649SVN_RA_LIB_LINK
650SVN_RA_LIB_INSTALL_DEPS
651SVN_RA_LIB_DEPS
652CTYPESGEN
653SWIG_RB_TEST_VERBOSE
654SWIG_RB_SITE_ARCH_DIR
655SWIG_RB_SITE_LIB_DIR
656SWIG_RB_COMPILE
657SWIG_RB_INCLUDES
658SWIG_RB_LIBS
659SWIG_RB_LINK
660SWIG_PL_INCLUDES
661SWIG_PY_LIBS
662SWIG_PY_LINK
663SWIG_PY_COMPILE
664SWIG_PY_INCLUDES
665SWIG
666RUBY_TEENY
667RUBY_MINOR
668RUBY_MAJOR
669RDOC
670RUBY
671PERL
672JNI_INCLUDES
673JAR
674JAVAH
675JAVADOC
676JAVAC_COMPAT_FLAGS
677JAVAC_FLAGS
678JAVAC
679JAVA
680JDK
681PYTHON
682MOD_ACTIVATION
683SVN_ZLIB_LIBS
684SVN_ZLIB_INCLUDES
685libsvn_wc_LDFLAGS
686libsvn_subr_LDFLAGS
687libsvn_repos_LDFLAGS
688libsvn_ra_svn_LDFLAGS
689libsvn_ra_serf_LDFLAGS
690libsvn_ra_local_LDFLAGS
691libsvn_ra_LDFLAGS
692libsvn_fs_util_LDFLAGS
693libsvn_fs_fs_LDFLAGS
694libsvn_fs_base_LDFLAGS
695libsvn_fs_LDFLAGS
696libsvn_diff_LDFLAGS
697libsvn_delta_LDFLAGS
698libsvn_client_LDFLAGS
699libsvn_auth_kwallet_LDFLAGS
700libsvn_auth_gnome_keyring_LDFLAGS
701LIBOBJS
702BDB_TEST_PROGRAMS
703BDB_TEST_DEPS
704INSTALL_RULES
705INSTALL_STATIC_RULES
706BUILD_RULES
707SVN_KWALLET_LIBS
708SVN_KWALLET_INCLUDES
709KDE4_CONFIG
710SVN_MAGIC_LIBS
711SVN_MAGIC_INCLUDES
712MSGFMTFLAGS
713NO_GETTEXT_CODESET
714GETTEXT_CODESET
715SVN_INTL_LIBS
716XGETTEXT
717MSGMERGE
718MSGFMT
719SVN_USE_GMOCK
720GMOCK_SRCDIR
721SVN_GNOME_KEYRING_LIBS
722SVN_GNOME_KEYRING_INCLUDES
723SVN_HAVE_GPG_AGENT
724SVN_SASL_LIBS
725SVN_SASL_INCLUDES
726SVN_DB_LIBS
727SVN_DB_INCLUDES
728SVN_XML_LIBS
729SVN_XML_INCLUDES
730DOXYGEN
731TRANG
732LT_NO_UNDEFINED
733TRANSFORM_LIBTOOL_SCRIPTS
734LT_LDFLAGS
735LT_CFLAGS
736SVN_LIBTOOL
737CXXCPP
738LT_SYS_LIBRARY_PATH
739OTOOL64
740OTOOL
741LIPO
742NMEDIT
743DSYMUTIL
744MANIFEST_TOOL
745AWK
746RANLIB
747STRIP
748ac_ct_AR
749AR
750DLLTOOL
751OBJDUMP
752NM
753ac_ct_DUMPBIN
754DUMPBIN
755LD
756FGREP
757LIBTOOL
758SVN_BINDIR
759SVN_SQLITE_LIBS
760SVN_SQLITE_INCLUDES
761HTTPD_VERSION
762INSTALL_APACHE_MODS
763APACHE_LIBEXECDIR
764APACHE_INCLUDES
765APACHE_LDFLAGS
766APXS
767SVN_APR_MEMCACHE_LIBS
768SVN_APR_MEMCACHE_INCLUDES
769SVN_SERF_LIBS
770SVN_SERF_INCLUDES
771PKG_CONFIG
772SVN_LT_SOVERSION
773SVN_APR_MAJOR_VERSION
774SVN_APRUTIL_LIBS
775SVN_APRUTIL_CONFIG
776SVN_APRUTIL_INCLUDES
777SVN_APR_SHLIB_PATH_VAR
778SVN_APR_LIBS
779SVN_APR_INCLUDES
780SVN_APR_CONFIG
781MKDIR
782INSTALL_DATA
783INSTALL_SCRIPT
784INSTALL_PROGRAM
785LN_S
786EGREP
787GREP
788target_os
789target_vendor
790target_cpu
791target
792host_os
793host_vendor
794host_cpu
795host
796build_os
797build_vendor
798build_cpu
799build
800SED
801CPP
802CXXUSERFLAGS
803CXXMAINTAINERFLAGS
804CXXNOWARNFLAGS
805CXXMODEFLAGS
806ac_ct_CXX
807CXXFLAGS
808CXX
809CUSERFLAGS
810CMAINTAINERFLAGS
811CNOWARNFLAGS
812CMODEFLAGS
813OBJEXT
814EXEEXT
815ac_ct_CC
816CPPFLAGS
817LDFLAGS
818CFLAGS
819CC
820SWIG_LDFLAGS
821canonicalized_srcdir
822abs_builddir
823abs_srcdir
824target_alias
825host_alias
826build_alias
827LIBS
828ECHO_T
829ECHO_N
830ECHO_C
831DEFS
832mandir
833localedir
834libdir
835psdir
836pdfdir
837dvidir
838htmldir
839infodir
840docdir
841oldincludedir
842includedir
843localstatedir
844sharedstatedir
845sysconfdir
846datadir
847datarootdir
848libexecdir
849sbindir
850bindir
851program_transform_name
852prefix
853exec_prefix
854PACKAGE_URL
855PACKAGE_BUGREPORT
856PACKAGE_STRING
857PACKAGE_VERSION
858PACKAGE_TARNAME
859PACKAGE_NAME
860PATH_SEPARATOR
861SHELL'
862ac_subst_files=''
863ac_user_opts='
864enable_option_checking
865with_apr
866with_apr_util
867with_serf
868with_apr_memcache
869with_apxs
870with_apache_libexecdir
871enable_broken_httpd_auth
872with_sqlite
873enable_sqlite_compatibility_version
874enable_shared
875enable_static
876with_pic
877enable_fast_install
878with_aix_soname
879with_gnu_ld
880with_sysroot
881enable_libtool_lock
882enable_experimental_libtool
883enable_all_static
884enable_local_library_preloading
885with_trang
886with_doxygen
887with_expat
888with_berkeley_db
889enable_bdb6
890with_sasl
891enable_keychain
892with_gpg_agent
893with_gnome_keyring
894enable_gmock
895enable_ev2_impl
896enable_nls
897with_libmagic
898with_kwallet
899enable_plaintext_password_storage
900enable_debug
901enable_optimize
902enable_disallowing_of_undefined_references
903enable_maintainer_mode
904enable_full_version_match
905with_editor
906with_zlib
907enable_mod_activation
908enable_gcov
909enable_gprof
910with_jdk
911with_jikes
912with_swig
913with_ruby_sitedir
914with_ruby_test_verbose
915with_ctypesgen
916enable_runtime_module_search
917enable_javahl
918with_junit
919'
920      ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
928CXX
929CXXFLAGS
930CCC
931CPP
932LT_SYS_LIBRARY_PATH
933CXXCPP'
934
935
936# Initialize some variables set by options.
937ac_init_help=
938ac_init_version=false
939ac_unrecognized_opts=
940ac_unrecognized_sep=
941# The variables have the same names as the options, with
942# dashes changed to underlines.
943cache_file=/dev/null
944exec_prefix=NONE
945no_create=
946no_recursion=
947prefix=NONE
948program_prefix=NONE
949program_suffix=NONE
950program_transform_name=s,x,x,
951silent=
952site=
953srcdir=
954verbose=
955x_includes=NONE
956x_libraries=NONE
957
958# Installation directory options.
959# These are left unexpanded so users can "make install exec_prefix=/foo"
960# and all the variables that are supposed to be based on exec_prefix
961# by default will actually change.
962# Use braces instead of parens because sh, perl, etc. also accept them.
963# (The list follows the same order as the GNU Coding Standards.)
964bindir='${exec_prefix}/bin'
965sbindir='${exec_prefix}/sbin'
966libexecdir='${exec_prefix}/libexec'
967datarootdir='${prefix}/share'
968datadir='${datarootdir}'
969sysconfdir='${prefix}/etc'
970sharedstatedir='${prefix}/com'
971localstatedir='${prefix}/var'
972includedir='${prefix}/include'
973oldincludedir='/usr/include'
974docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975infodir='${datarootdir}/info'
976htmldir='${docdir}'
977dvidir='${docdir}'
978pdfdir='${docdir}'
979psdir='${docdir}'
980libdir='${exec_prefix}/lib'
981localedir='${datarootdir}/locale'
982mandir='${datarootdir}/man'
983
984ac_prev=
985ac_dashdash=
986for ac_option
987do
988  # If the previous option needs an argument, assign it.
989  if test -n "$ac_prev"; then
990    eval $ac_prev=\$ac_option
991    ac_prev=
992    continue
993  fi
994
995  case $ac_option in
996  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997  *=)   ac_optarg= ;;
998  *)    ac_optarg=yes ;;
999  esac
1000
1001  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003  case $ac_dashdash$ac_option in
1004  --)
1005    ac_dashdash=yes ;;
1006
1007  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008    ac_prev=bindir ;;
1009  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010    bindir=$ac_optarg ;;
1011
1012  -build | --build | --buil | --bui | --bu)
1013    ac_prev=build_alias ;;
1014  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015    build_alias=$ac_optarg ;;
1016
1017  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019    ac_prev=cache_file ;;
1020  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022    cache_file=$ac_optarg ;;
1023
1024  --config-cache | -C)
1025    cache_file=config.cache ;;
1026
1027  -datadir | --datadir | --datadi | --datad)
1028    ac_prev=datadir ;;
1029  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030    datadir=$ac_optarg ;;
1031
1032  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033  | --dataroo | --dataro | --datar)
1034    ac_prev=datarootdir ;;
1035  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037    datarootdir=$ac_optarg ;;
1038
1039  -disable-* | --disable-*)
1040    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041    # Reject names that are not valid shell variable names.
1042    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043      as_fn_error $? "invalid feature name: $ac_useropt"
1044    ac_useropt_orig=$ac_useropt
1045    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046    case $ac_user_opts in
1047      *"
1048"enable_$ac_useropt"
1049"*) ;;
1050      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051	 ac_unrecognized_sep=', ';;
1052    esac
1053    eval enable_$ac_useropt=no ;;
1054
1055  -docdir | --docdir | --docdi | --doc | --do)
1056    ac_prev=docdir ;;
1057  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058    docdir=$ac_optarg ;;
1059
1060  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061    ac_prev=dvidir ;;
1062  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063    dvidir=$ac_optarg ;;
1064
1065  -enable-* | --enable-*)
1066    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067    # Reject names that are not valid shell variable names.
1068    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069      as_fn_error $? "invalid feature name: $ac_useropt"
1070    ac_useropt_orig=$ac_useropt
1071    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072    case $ac_user_opts in
1073      *"
1074"enable_$ac_useropt"
1075"*) ;;
1076      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077	 ac_unrecognized_sep=', ';;
1078    esac
1079    eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083  | --exec | --exe | --ex)
1084    ac_prev=exec_prefix ;;
1085  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087  | --exec=* | --exe=* | --ex=*)
1088    exec_prefix=$ac_optarg ;;
1089
1090  -gas | --gas | --ga | --g)
1091    # Obsolete; use --with-gas.
1092    with_gas=yes ;;
1093
1094  -help | --help | --hel | --he | -h)
1095    ac_init_help=long ;;
1096  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097    ac_init_help=recursive ;;
1098  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099    ac_init_help=short ;;
1100
1101  -host | --host | --hos | --ho)
1102    ac_prev=host_alias ;;
1103  -host=* | --host=* | --hos=* | --ho=*)
1104    host_alias=$ac_optarg ;;
1105
1106  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107    ac_prev=htmldir ;;
1108  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109  | --ht=*)
1110    htmldir=$ac_optarg ;;
1111
1112  -includedir | --includedir | --includedi | --included | --include \
1113  | --includ | --inclu | --incl | --inc)
1114    ac_prev=includedir ;;
1115  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117    includedir=$ac_optarg ;;
1118
1119  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120    ac_prev=infodir ;;
1121  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122    infodir=$ac_optarg ;;
1123
1124  -libdir | --libdir | --libdi | --libd)
1125    ac_prev=libdir ;;
1126  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127    libdir=$ac_optarg ;;
1128
1129  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130  | --libexe | --libex | --libe)
1131    ac_prev=libexecdir ;;
1132  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133  | --libexe=* | --libex=* | --libe=*)
1134    libexecdir=$ac_optarg ;;
1135
1136  -localedir | --localedir | --localedi | --localed | --locale)
1137    ac_prev=localedir ;;
1138  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139    localedir=$ac_optarg ;;
1140
1141  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142  | --localstate | --localstat | --localsta | --localst | --locals)
1143    ac_prev=localstatedir ;;
1144  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146    localstatedir=$ac_optarg ;;
1147
1148  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149    ac_prev=mandir ;;
1150  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151    mandir=$ac_optarg ;;
1152
1153  -nfp | --nfp | --nf)
1154    # Obsolete; use --without-fp.
1155    with_fp=no ;;
1156
1157  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158  | --no-cr | --no-c | -n)
1159    no_create=yes ;;
1160
1161  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163    no_recursion=yes ;;
1164
1165  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167  | --oldin | --oldi | --old | --ol | --o)
1168    ac_prev=oldincludedir ;;
1169  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172    oldincludedir=$ac_optarg ;;
1173
1174  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175    ac_prev=prefix ;;
1176  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177    prefix=$ac_optarg ;;
1178
1179  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180  | --program-pre | --program-pr | --program-p)
1181    ac_prev=program_prefix ;;
1182  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184    program_prefix=$ac_optarg ;;
1185
1186  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187  | --program-suf | --program-su | --program-s)
1188    ac_prev=program_suffix ;;
1189  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191    program_suffix=$ac_optarg ;;
1192
1193  -program-transform-name | --program-transform-name \
1194  | --program-transform-nam | --program-transform-na \
1195  | --program-transform-n | --program-transform- \
1196  | --program-transform | --program-transfor \
1197  | --program-transfo | --program-transf \
1198  | --program-trans | --program-tran \
1199  | --progr-tra | --program-tr | --program-t)
1200    ac_prev=program_transform_name ;;
1201  -program-transform-name=* | --program-transform-name=* \
1202  | --program-transform-nam=* | --program-transform-na=* \
1203  | --program-transform-n=* | --program-transform-=* \
1204  | --program-transform=* | --program-transfor=* \
1205  | --program-transfo=* | --program-transf=* \
1206  | --program-trans=* | --program-tran=* \
1207  | --progr-tra=* | --program-tr=* | --program-t=*)
1208    program_transform_name=$ac_optarg ;;
1209
1210  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211    ac_prev=pdfdir ;;
1212  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213    pdfdir=$ac_optarg ;;
1214
1215  -psdir | --psdir | --psdi | --psd | --ps)
1216    ac_prev=psdir ;;
1217  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218    psdir=$ac_optarg ;;
1219
1220  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221  | -silent | --silent | --silen | --sile | --sil)
1222    silent=yes ;;
1223
1224  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225    ac_prev=sbindir ;;
1226  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227  | --sbi=* | --sb=*)
1228    sbindir=$ac_optarg ;;
1229
1230  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232  | --sharedst | --shareds | --shared | --share | --shar \
1233  | --sha | --sh)
1234    ac_prev=sharedstatedir ;;
1235  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238  | --sha=* | --sh=*)
1239    sharedstatedir=$ac_optarg ;;
1240
1241  -site | --site | --sit)
1242    ac_prev=site ;;
1243  -site=* | --site=* | --sit=*)
1244    site=$ac_optarg ;;
1245
1246  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247    ac_prev=srcdir ;;
1248  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249    srcdir=$ac_optarg ;;
1250
1251  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252  | --syscon | --sysco | --sysc | --sys | --sy)
1253    ac_prev=sysconfdir ;;
1254  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256    sysconfdir=$ac_optarg ;;
1257
1258  -target | --target | --targe | --targ | --tar | --ta | --t)
1259    ac_prev=target_alias ;;
1260  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261    target_alias=$ac_optarg ;;
1262
1263  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264    verbose=yes ;;
1265
1266  -version | --version | --versio | --versi | --vers | -V)
1267    ac_init_version=: ;;
1268
1269  -with-* | --with-*)
1270    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271    # Reject names that are not valid shell variable names.
1272    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273      as_fn_error $? "invalid package name: $ac_useropt"
1274    ac_useropt_orig=$ac_useropt
1275    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276    case $ac_user_opts in
1277      *"
1278"with_$ac_useropt"
1279"*) ;;
1280      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281	 ac_unrecognized_sep=', ';;
1282    esac
1283    eval with_$ac_useropt=\$ac_optarg ;;
1284
1285  -without-* | --without-*)
1286    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289      as_fn_error $? "invalid package name: $ac_useropt"
1290    ac_useropt_orig=$ac_useropt
1291    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292    case $ac_user_opts in
1293      *"
1294"with_$ac_useropt"
1295"*) ;;
1296      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297	 ac_unrecognized_sep=', ';;
1298    esac
1299    eval with_$ac_useropt=no ;;
1300
1301  --x)
1302    # Obsolete; use --with-x.
1303    with_x=yes ;;
1304
1305  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306  | --x-incl | --x-inc | --x-in | --x-i)
1307    ac_prev=x_includes ;;
1308  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310    x_includes=$ac_optarg ;;
1311
1312  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314    ac_prev=x_libraries ;;
1315  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317    x_libraries=$ac_optarg ;;
1318
1319  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1320Try \`$0 --help' for more information"
1321    ;;
1322
1323  *=*)
1324    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325    # Reject names that are not valid shell variable names.
1326    case $ac_envvar in #(
1327      '' | [0-9]* | *[!_$as_cr_alnum]* )
1328      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1329    esac
1330    eval $ac_envvar=\$ac_optarg
1331    export $ac_envvar ;;
1332
1333  *)
1334    # FIXME: should be removed in autoconf 3.0.
1335    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1339    ;;
1340
1341  esac
1342done
1343
1344if test -n "$ac_prev"; then
1345  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346  as_fn_error $? "missing argument to $ac_option"
1347fi
1348
1349if test -n "$ac_unrecognized_opts"; then
1350  case $enable_option_checking in
1351    no) ;;
1352    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1353    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354  esac
1355fi
1356
1357# Check all directory arguments for consistency.
1358for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359		datadir sysconfdir sharedstatedir localstatedir includedir \
1360		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361		libdir localedir mandir
1362do
1363  eval ac_val=\$$ac_var
1364  # Remove trailing slashes.
1365  case $ac_val in
1366    */ )
1367      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368      eval $ac_var=\$ac_val;;
1369  esac
1370  # Be sure to have absolute directory names.
1371  case $ac_val in
1372    [\\/$]* | ?:[\\/]* )  continue;;
1373    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374  esac
1375  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1376done
1377
1378# There might be people who depend on the old broken behavior: `$host'
1379# used to hold the argument of --host etc.
1380# FIXME: To remove some day.
1381build=$build_alias
1382host=$host_alias
1383target=$target_alias
1384
1385# FIXME: To remove some day.
1386if test "x$host_alias" != x; then
1387  if test "x$build_alias" = x; then
1388    cross_compiling=maybe
1389  elif test "x$build_alias" != "x$host_alias"; then
1390    cross_compiling=yes
1391  fi
1392fi
1393
1394ac_tool_prefix=
1395test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396
1397test "$silent" = yes && exec 6>/dev/null
1398
1399
1400ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401ac_ls_di=`ls -di .` &&
1402ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403  as_fn_error $? "working directory cannot be determined"
1404test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405  as_fn_error $? "pwd does not report name of working directory"
1406
1407
1408# Find the source files, if location was not specified.
1409if test -z "$srcdir"; then
1410  ac_srcdir_defaulted=yes
1411  # Try the directory containing this script, then the parent directory.
1412  ac_confdir=`$as_dirname -- "$as_myself" ||
1413$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414	 X"$as_myself" : 'X\(//\)[^/]' \| \
1415	 X"$as_myself" : 'X\(//\)$' \| \
1416	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417$as_echo X"$as_myself" |
1418    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419	    s//\1/
1420	    q
1421	  }
1422	  /^X\(\/\/\)[^/].*/{
1423	    s//\1/
1424	    q
1425	  }
1426	  /^X\(\/\/\)$/{
1427	    s//\1/
1428	    q
1429	  }
1430	  /^X\(\/\).*/{
1431	    s//\1/
1432	    q
1433	  }
1434	  s/.*/./; q'`
1435  srcdir=$ac_confdir
1436  if test ! -r "$srcdir/$ac_unique_file"; then
1437    srcdir=..
1438  fi
1439else
1440  ac_srcdir_defaulted=no
1441fi
1442if test ! -r "$srcdir/$ac_unique_file"; then
1443  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1445fi
1446ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447ac_abs_confdir=`(
1448	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1449	pwd)`
1450# When building in place, set srcdir=.
1451if test "$ac_abs_confdir" = "$ac_pwd"; then
1452  srcdir=.
1453fi
1454# Remove unnecessary trailing slashes from srcdir.
1455# Double slashes in file names in object file debugging info
1456# mess up M-x gdb in Emacs.
1457case $srcdir in
1458*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459esac
1460for ac_var in $ac_precious_vars; do
1461  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462  eval ac_env_${ac_var}_value=\$${ac_var}
1463  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465done
1466
1467#
1468# Report the --help message.
1469#
1470if test "$ac_init_help" = "long"; then
1471  # Omit some internal or obsolete options to make the list less imposing.
1472  # This message is too long to be a string in the A/UX 3.1 sh.
1473  cat <<_ACEOF
1474\`configure' configures subversion 1.9.5 to adapt to many kinds of systems.
1475
1476Usage: $0 [OPTION]... [VAR=VALUE]...
1477
1478To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479VAR=VALUE.  See below for descriptions of some of the useful variables.
1480
1481Defaults for the options are specified in brackets.
1482
1483Configuration:
1484  -h, --help              display this help and exit
1485      --help=short        display options specific to this package
1486      --help=recursive    display the short help of all the included packages
1487  -V, --version           display version information and exit
1488  -q, --quiet, --silent   do not print \`checking ...' messages
1489      --cache-file=FILE   cache test results in FILE [disabled]
1490  -C, --config-cache      alias for \`--cache-file=config.cache'
1491  -n, --no-create         do not create output files
1492      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1493
1494Installation directories:
1495  --prefix=PREFIX         install architecture-independent files in PREFIX
1496                          [$ac_default_prefix]
1497  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1498                          [PREFIX]
1499
1500By default, \`make install' will install all the files in
1501\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1502an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503for instance \`--prefix=\$HOME'.
1504
1505For better control, use the options below.
1506
1507Fine tuning of the installation directories:
1508  --bindir=DIR            user executables [EPREFIX/bin]
1509  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1510  --libexecdir=DIR        program executables [EPREFIX/libexec]
1511  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1512  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1513  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1514  --libdir=DIR            object code libraries [EPREFIX/lib]
1515  --includedir=DIR        C header files [PREFIX/include]
1516  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1517  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1518  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1519  --infodir=DIR           info documentation [DATAROOTDIR/info]
1520  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1521  --mandir=DIR            man documentation [DATAROOTDIR/man]
1522  --docdir=DIR            documentation root [DATAROOTDIR/doc/subversion]
1523  --htmldir=DIR           html documentation [DOCDIR]
1524  --dvidir=DIR            dvi documentation [DOCDIR]
1525  --pdfdir=DIR            pdf documentation [DOCDIR]
1526  --psdir=DIR             ps documentation [DOCDIR]
1527_ACEOF
1528
1529  cat <<\_ACEOF
1530
1531System types:
1532  --build=BUILD     configure for building on BUILD [guessed]
1533  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1534  --target=TARGET   configure for building compilers for TARGET [HOST]
1535_ACEOF
1536fi
1537
1538if test -n "$ac_init_help"; then
1539  case $ac_init_help in
1540     short | recursive ) echo "Configuration of subversion 1.9.5:";;
1541   esac
1542  cat <<\_ACEOF
1543
1544Optional Features:
1545  --disable-option-checking  ignore unrecognized --enable/--with options
1546  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548  --enable-broken-httpd-auth
1549                          Force build against httpd 2.4 with broken auth
1550  --enable-sqlite-compatibility-version=X.Y.Z
1551                          Allow binary to run against SQLite as old as ARG
1552  --enable-shared[=PKGS]  build shared libraries [default=yes]
1553  --enable-static[=PKGS]  build static libraries [default=yes]
1554  --enable-fast-install[=PKGS]
1555                          optimize for fast installation [default=yes]
1556  --disable-libtool-lock  avoid locking (might break parallel builds)
1557  --enable-experimental-libtool
1558                          Use APR's libtool
1559  --enable-static         Build static libraries
1560  --enable-shared         Build shared libraries
1561  --enable-all-static     Build completely static (standalone) binaries.
1562  --enable-local-library-preloading
1563                          Enable preloading of locally built libraries in
1564                          locally built executables. This may be necessary for
1565                          testing prior to installation on some platforms. It
1566                          does not work on some platforms (Darwin, OpenBSD,
1567                          ...).
1568  --enable-bdb6           Allow building against BDB 6+. See
1569                          --with-berkeley-db for specifying the location of
1570                          the Berkeley DB installation. Using BDB 6 will fail
1571                          if this option is not used.
1572  --disable-keychain      Disable use of Mac OS KeyChain for auth credentials
1573  --disable-gmock         Do not use the Googlemock testing framework
1574  --enable-ev2-impl       Use Ev2 implementations, where available
1575                          [EXPERIMENTAL]
1576  --disable-nls           Disable gettext functionality
1577  --disable-plaintext-password-storage
1578                          Disable on-disk caching of plaintext passwords and
1579                          passphrases. (Leaving this functionality enabled
1580                          will not force Subversion to store passwords in
1581                          plaintext, but does permit users to explicitly allow
1582                          that behavior via runtime configuration.)
1583  --enable-debug          Turn on debugging
1584  --enable-optimize       Turn on optimizations
1585  --enable-disallowing-of-undefined-references
1586                          Use -Wl,--no-undefined flag during linking of some
1587                          libraries to disallow undefined references
1588  --enable-maintainer-mode
1589                          Turn on debugging and very strict compile-time
1590                          warnings
1591  --disable-full-version-match
1592                          Disable the full version match rules when checking
1593                          Subversion library compatibility.
1594  --enable-mod-activation Enable mod_dav_svn in httpd.conf
1595  --enable-gcov           Turn on gcov coverage testing (GCC only).
1596  --enable-gprof          Produce gprof profiling data in 'gmon.out' (GCC
1597                          only).
1598  --enable-runtime-module-search
1599                          Turn on dynamic loading of RA/FS libraries including
1600                          third-party FS libraries
1601  --enable-javahl         Enable compilation of Java high-level bindings
1602                          (requires C++)
1603
1604Optional Packages:
1605  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1606  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1607  --with-apr=PATH         prefix for installed APR, path to APR build tree,
1608                          or the full path to apr-config
1609  --with-apr-util=PATH    prefix for installed APU, path to APU build tree,
1610                          or the full path to apu-config
1611  --with-serf=PREFIX      Serf HTTP client library (enabled by default if
1612                          found)
1613  --with-apr_memcache=PREFIX
1614                          Standalone apr_memcache client library
1615  --with-apxs[=FILE]      Build shared Apache modules. FILE is the optional
1616                          pathname to the Apache apxs tool; defaults to
1617                          "apxs".
1618  --with-apache-libexecdir[=PATH]
1619                          Install Apache modules to Apache's configured
1620                          modules directory instead of LIBEXECDIR; if PATH is
1621                          given, install to PATH.
1622  --with-sqlite=PREFIX    Use installed SQLite library or amalgamation file.
1623  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1624                          both]
1625  --with-aix-soname=aix|svr4|both
1626                          shared library versioning (aka "SONAME") variant to
1627                          provide on AIX, [default=aix].
1628  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1630                          compiler's sysroot if not specified).
1631  --with-trang=PATH       Specify the command to run the trang schema
1632                          converter
1633  --with-doxygen=PATH     Specify the command to run doxygen
1634  --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1635                          Specify location of Expat
1636  --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1637                          The Subversion Berkeley DB based filesystem library
1638                          requires Berkeley DB $db_version or $db_alt_version.
1639                          If you specify `--without-berkeley-db', that library
1640                          will not be built. If you omit the argument of this
1641                          option completely, the configure script will use
1642                          Berkeley DB used by APR-UTIL.
1643  --with-sasl=PATH        Compile with libsasl2 in PATH
1644  --without-gpg-agent     Disable support for GPG-Agent
1645  --with-gnome-keyring    Enable use of GNOME Keyring for auth credentials
1646                          (enabled by default if found)
1647  --with-libmagic=PREFIX  libmagic filetype detection library
1648  --with-kwallet[=PATH]   Enable use of KWallet (KDE 4) for auth credentials
1649  --with-editor=PATH      Specify a default editor for the subversion client.
1650  --with-zlib=PREFIX      zlib compression library
1651  --with-jdk=PATH         Try to use 'PATH/include' to find the JNI headers.
1652                          If PATH is not specified, look for a Java
1653                          Development Kit at JAVA_HOME.
1654  --with-jikes=PATH       Specify the path to a jikes binary to use it as your
1655                          Java compiler. The default is to look for jikes
1656                          (PATH optional). This behavior can be switched off
1657                          by supplying 'no'.
1658  --with-swig=PATH        Try to use 'PATH/bin/swig' to build the swig
1659                          bindings. If PATH is not specified, look for a
1660                          'swig' binary in your PATH.
1661  --with-ruby-sitedir=SITEDIR
1662                          install Ruby bindings in SITEDIR (default is same as
1663                          ruby's one)
1664  --with-ruby-test-verbose=LEVEL
1665                          how to use output level for Ruby bindings tests
1666                          (default is normal)
1667  --with-ctypesgen=PATH   Specify the path to ctypesgen. This can either be
1668                          the full path to a ctypesgen installation, the full
1669                          path to a ctypesgen source tree or the full path to
1670                          ctypesgen.py.
1671  --with-junit=PATH       Specify a path to the junit JAR file.
1672
1673Some influential environment variables:
1674  CC          C compiler command
1675  CFLAGS      C compiler flags
1676  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1677              nonstandard directory <lib dir>
1678  LIBS        libraries to pass to the linker, e.g. -l<library>
1679  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1680              you have headers in a nonstandard directory <include dir>
1681  CXX         C++ compiler command
1682  CXXFLAGS    C++ compiler flags
1683  CPP         C preprocessor
1684  LT_SYS_LIBRARY_PATH
1685              User-defined run-time library search path.
1686  CXXCPP      C++ preprocessor
1687
1688Use these variables to override the choices made by `configure' or to help
1689it to find libraries and programs with nonstandard names/locations.
1690
1691Report bugs to <http://subversion.apache.org/>.
1692_ACEOF
1693ac_status=$?
1694fi
1695
1696if test "$ac_init_help" = "recursive"; then
1697  # If there are subdirs, report their specific --help.
1698  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699    test -d "$ac_dir" ||
1700      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701      continue
1702    ac_builddir=.
1703
1704case "$ac_dir" in
1705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706*)
1707  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708  # A ".." for each directory in $ac_dir_suffix.
1709  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710  case $ac_top_builddir_sub in
1711  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713  esac ;;
1714esac
1715ac_abs_top_builddir=$ac_pwd
1716ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717# for backward compatibility:
1718ac_top_builddir=$ac_top_build_prefix
1719
1720case $srcdir in
1721  .)  # We are building in place.
1722    ac_srcdir=.
1723    ac_top_srcdir=$ac_top_builddir_sub
1724    ac_abs_top_srcdir=$ac_pwd ;;
1725  [\\/]* | ?:[\\/]* )  # Absolute name.
1726    ac_srcdir=$srcdir$ac_dir_suffix;
1727    ac_top_srcdir=$srcdir
1728    ac_abs_top_srcdir=$srcdir ;;
1729  *) # Relative name.
1730    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731    ac_top_srcdir=$ac_top_build_prefix$srcdir
1732    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733esac
1734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736    cd "$ac_dir" || { ac_status=$?; continue; }
1737    # Check for guested configure.
1738    if test -f "$ac_srcdir/configure.gnu"; then
1739      echo &&
1740      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741    elif test -f "$ac_srcdir/configure"; then
1742      echo &&
1743      $SHELL "$ac_srcdir/configure" --help=recursive
1744    else
1745      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746    fi || ac_status=$?
1747    cd "$ac_pwd" || { ac_status=$?; break; }
1748  done
1749fi
1750
1751test -n "$ac_init_help" && exit $ac_status
1752if $ac_init_version; then
1753  cat <<\_ACEOF
1754subversion configure 1.9.5
1755generated by GNU Autoconf 2.69
1756
1757Copyright (C) 2012 Free Software Foundation, Inc.
1758This configure script is free software; the Free Software Foundation
1759gives unlimited permission to copy, distribute and modify it.
1760_ACEOF
1761  exit
1762fi
1763
1764## ------------------------ ##
1765## Autoconf initialization. ##
1766## ------------------------ ##
1767
1768# ac_fn_c_try_compile LINENO
1769# --------------------------
1770# Try to compile conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_compile ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  rm -f conftest.$ac_objext
1775  if { { ac_try="$ac_compile"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_compile") 2>conftest.err
1783  ac_status=$?
1784  if test -s conftest.err; then
1785    grep -v '^ *+' conftest.err >conftest.er1
1786    cat conftest.er1 >&5
1787    mv -f conftest.er1 conftest.err
1788  fi
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && {
1791	 test -z "$ac_c_werror_flag" ||
1792	 test ! -s conftest.err
1793       } && test -s conftest.$ac_objext; then :
1794  ac_retval=0
1795else
1796  $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799	ac_retval=1
1800fi
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_compile
1805
1806# ac_fn_c_try_link LINENO
1807# -----------------------
1808# Try to link conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_c_try_link ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  rm -f conftest.$ac_objext conftest$ac_exeext
1813  if { { ac_try="$ac_link"
1814case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820  (eval "$ac_link") 2>conftest.err
1821  ac_status=$?
1822  if test -s conftest.err; then
1823    grep -v '^ *+' conftest.err >conftest.er1
1824    cat conftest.er1 >&5
1825    mv -f conftest.er1 conftest.err
1826  fi
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } && {
1829	 test -z "$ac_c_werror_flag" ||
1830	 test ! -s conftest.err
1831       } && test -s conftest$ac_exeext && {
1832	 test "$cross_compiling" = yes ||
1833	 test -x conftest$ac_exeext
1834       }; then :
1835  ac_retval=0
1836else
1837  $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840	ac_retval=1
1841fi
1842  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844  # interfere with the next link command; also delete a directory that is
1845  # left behind by Apple's compiler.  We do this before executing the actions.
1846  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848  as_fn_set_status $ac_retval
1849
1850} # ac_fn_c_try_link
1851
1852# ac_fn_cxx_try_compile LINENO
1853# ----------------------------
1854# Try to compile conftest.$ac_ext, and return whether this succeeded.
1855ac_fn_cxx_try_compile ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  rm -f conftest.$ac_objext
1859  if { { ac_try="$ac_compile"
1860case "(($ac_try" in
1861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862  *) ac_try_echo=$ac_try;;
1863esac
1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865$as_echo "$ac_try_echo"; } >&5
1866  (eval "$ac_compile") 2>conftest.err
1867  ac_status=$?
1868  if test -s conftest.err; then
1869    grep -v '^ *+' conftest.err >conftest.er1
1870    cat conftest.er1 >&5
1871    mv -f conftest.er1 conftest.err
1872  fi
1873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874  test $ac_status = 0; } && {
1875	 test -z "$ac_cxx_werror_flag" ||
1876	 test ! -s conftest.err
1877       } && test -s conftest.$ac_objext; then :
1878  ac_retval=0
1879else
1880  $as_echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883	ac_retval=1
1884fi
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_cxx_try_compile
1889
1890# ac_fn_cxx_try_link LINENO
1891# -------------------------
1892# Try to link conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_cxx_try_link ()
1894{
1895  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896  rm -f conftest.$ac_objext conftest$ac_exeext
1897  if { { ac_try="$ac_link"
1898case "(($ac_try" in
1899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900  *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904  (eval "$ac_link") 2>conftest.err
1905  ac_status=$?
1906  if test -s conftest.err; then
1907    grep -v '^ *+' conftest.err >conftest.er1
1908    cat conftest.er1 >&5
1909    mv -f conftest.er1 conftest.err
1910  fi
1911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912  test $ac_status = 0; } && {
1913	 test -z "$ac_cxx_werror_flag" ||
1914	 test ! -s conftest.err
1915       } && test -s conftest$ac_exeext && {
1916	 test "$cross_compiling" = yes ||
1917	 test -x conftest$ac_exeext
1918       }; then :
1919  ac_retval=0
1920else
1921  $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924	ac_retval=1
1925fi
1926  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928  # interfere with the next link command; also delete a directory that is
1929  # left behind by Apple's compiler.  We do this before executing the actions.
1930  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_cxx_try_link
1935
1936# ac_fn_c_try_cpp LINENO
1937# ----------------------
1938# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1939ac_fn_c_try_cpp ()
1940{
1941  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942  if { { ac_try="$ac_cpp conftest.$ac_ext"
1943case "(($ac_try" in
1944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945  *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1950  ac_status=$?
1951  if test -s conftest.err; then
1952    grep -v '^ *+' conftest.err >conftest.er1
1953    cat conftest.er1 >&5
1954    mv -f conftest.er1 conftest.err
1955  fi
1956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957  test $ac_status = 0; } > conftest.i && {
1958	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1959	 test ! -s conftest.err
1960       }; then :
1961  ac_retval=0
1962else
1963  $as_echo "$as_me: failed program was:" >&5
1964sed 's/^/| /' conftest.$ac_ext >&5
1965
1966    ac_retval=1
1967fi
1968  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969  as_fn_set_status $ac_retval
1970
1971} # ac_fn_c_try_cpp
1972
1973# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1974# -------------------------------------------------------
1975# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1976# the include files in INCLUDES and setting the cache variable VAR
1977# accordingly.
1978ac_fn_c_check_header_mongrel ()
1979{
1980  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981  if eval \${$3+:} false; then :
1982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval \${$3+:} false; then :
1985  $as_echo_n "(cached) " >&6
1986fi
1987eval ac_res=\$$3
1988	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
1990else
1991  # Is the header compilable?
1992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1993$as_echo_n "checking $2 usability... " >&6; }
1994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996$4
1997#include <$2>
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000  ac_header_compiler=yes
2001else
2002  ac_header_compiler=no
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2006$as_echo "$ac_header_compiler" >&6; }
2007
2008# Is the header present?
2009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2010$as_echo_n "checking $2 presence... " >&6; }
2011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013#include <$2>
2014_ACEOF
2015if ac_fn_c_try_cpp "$LINENO"; then :
2016  ac_header_preproc=yes
2017else
2018  ac_header_preproc=no
2019fi
2020rm -f conftest.err conftest.i conftest.$ac_ext
2021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2022$as_echo "$ac_header_preproc" >&6; }
2023
2024# So?  What about this header?
2025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2026  yes:no: )
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2028$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2030$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031    ;;
2032  no:yes:* )
2033    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2034$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2035    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2036$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2037    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2038$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2039    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2040$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2041    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043( $as_echo "## -------------------------------------------- ##
2044## Report this to http://subversion.apache.org/ ##
2045## -------------------------------------------- ##"
2046     ) | sed "s/^/$as_me: WARNING:     /" >&2
2047    ;;
2048esac
2049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050$as_echo_n "checking for $2... " >&6; }
2051if eval \${$3+:} false; then :
2052  $as_echo_n "(cached) " >&6
2053else
2054  eval "$3=\$ac_header_compiler"
2055fi
2056eval ac_res=\$$3
2057	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059fi
2060  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062} # ac_fn_c_check_header_mongrel
2063
2064# ac_fn_c_try_run LINENO
2065# ----------------------
2066# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2067# that executables *can* be run.
2068ac_fn_c_try_run ()
2069{
2070  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071  if { { ac_try="$ac_link"
2072case "(($ac_try" in
2073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074  *) ac_try_echo=$ac_try;;
2075esac
2076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077$as_echo "$ac_try_echo"; } >&5
2078  (eval "$ac_link") 2>&5
2079  ac_status=$?
2080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2082  { { case "(($ac_try" in
2083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084  *) ac_try_echo=$ac_try;;
2085esac
2086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087$as_echo "$ac_try_echo"; } >&5
2088  (eval "$ac_try") 2>&5
2089  ac_status=$?
2090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091  test $ac_status = 0; }; }; then :
2092  ac_retval=0
2093else
2094  $as_echo "$as_me: program exited with status $ac_status" >&5
2095       $as_echo "$as_me: failed program was:" >&5
2096sed 's/^/| /' conftest.$ac_ext >&5
2097
2098       ac_retval=$ac_status
2099fi
2100  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2101  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102  as_fn_set_status $ac_retval
2103
2104} # ac_fn_c_try_run
2105
2106# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2107# -------------------------------------------------------
2108# Tests whether HEADER exists and can be compiled using the include files in
2109# INCLUDES, setting the cache variable VAR accordingly.
2110ac_fn_c_check_header_compile ()
2111{
2112  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114$as_echo_n "checking for $2... " >&6; }
2115if eval \${$3+:} false; then :
2116  $as_echo_n "(cached) " >&6
2117else
2118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h.  */
2120$4
2121#include <$2>
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then :
2124  eval "$3=yes"
2125else
2126  eval "$3=no"
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129fi
2130eval ac_res=\$$3
2131	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132$as_echo "$ac_res" >&6; }
2133  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135} # ac_fn_c_check_header_compile
2136
2137# ac_fn_c_check_func LINENO FUNC VAR
2138# ----------------------------------
2139# Tests whether FUNC exists, setting the cache variable VAR accordingly
2140ac_fn_c_check_func ()
2141{
2142  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144$as_echo_n "checking for $2... " >&6; }
2145if eval \${$3+:} false; then :
2146  $as_echo_n "(cached) " >&6
2147else
2148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2151   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2152#define $2 innocuous_$2
2153
2154/* System header to define __stub macros and hopefully few prototypes,
2155    which can conflict with char $2 (); below.
2156    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2157    <limits.h> exists even on freestanding compilers.  */
2158
2159#ifdef __STDC__
2160# include <limits.h>
2161#else
2162# include <assert.h>
2163#endif
2164
2165#undef $2
2166
2167/* Override any GCC internal prototype to avoid an error.
2168   Use char because int might match the return type of a GCC
2169   builtin and then its argument prototype would still apply.  */
2170#ifdef __cplusplus
2171extern "C"
2172#endif
2173char $2 ();
2174/* The GNU C library defines this for functions which it implements
2175    to always fail with ENOSYS.  Some functions are actually named
2176    something starting with __ and the normal name is an alias.  */
2177#if defined __stub_$2 || defined __stub___$2
2178choke me
2179#endif
2180
2181int
2182main ()
2183{
2184return $2 ();
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_link "$LINENO"; then :
2190  eval "$3=yes"
2191else
2192  eval "$3=no"
2193fi
2194rm -f core conftest.err conftest.$ac_objext \
2195    conftest$ac_exeext conftest.$ac_ext
2196fi
2197eval ac_res=\$$3
2198	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199$as_echo "$ac_res" >&6; }
2200  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202} # ac_fn_c_check_func
2203
2204# ac_fn_cxx_try_cpp LINENO
2205# ------------------------
2206# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2207ac_fn_cxx_try_cpp ()
2208{
2209  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210  if { { ac_try="$ac_cpp conftest.$ac_ext"
2211case "(($ac_try" in
2212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213  *) ac_try_echo=$ac_try;;
2214esac
2215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2216$as_echo "$ac_try_echo"; } >&5
2217  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2218  ac_status=$?
2219  if test -s conftest.err; then
2220    grep -v '^ *+' conftest.err >conftest.er1
2221    cat conftest.er1 >&5
2222    mv -f conftest.er1 conftest.err
2223  fi
2224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2225  test $ac_status = 0; } > conftest.i && {
2226	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2227	 test ! -s conftest.err
2228       }; then :
2229  ac_retval=0
2230else
2231  $as_echo "$as_me: failed program was:" >&5
2232sed 's/^/| /' conftest.$ac_ext >&5
2233
2234    ac_retval=1
2235fi
2236  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237  as_fn_set_status $ac_retval
2238
2239} # ac_fn_cxx_try_cpp
2240
2241# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242# -------------------------------------------
2243# Tests whether TYPE exists after having included INCLUDES, setting cache
2244# variable VAR accordingly.
2245ac_fn_c_check_type ()
2246{
2247  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249$as_echo_n "checking for $2... " >&6; }
2250if eval \${$3+:} false; then :
2251  $as_echo_n "(cached) " >&6
2252else
2253  eval "$3=no"
2254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h.  */
2256$4
2257int
2258main ()
2259{
2260if (sizeof ($2))
2261	 return 0;
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266if ac_fn_c_try_compile "$LINENO"; then :
2267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268/* end confdefs.h.  */
2269$4
2270int
2271main ()
2272{
2273if (sizeof (($2)))
2274	    return 0;
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280
2281else
2282  eval "$3=yes"
2283fi
2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285fi
2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288eval ac_res=\$$3
2289	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
2291  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292
2293} # ac_fn_c_check_type
2294cat >config.log <<_ACEOF
2295This file contains any messages produced by compilers while
2296running configure, to aid debugging if configure makes a mistake.
2297
2298It was created by subversion $as_me 1.9.5, which was
2299generated by GNU Autoconf 2.69.  Invocation command line was
2300
2301  $ $0 $@
2302
2303_ACEOF
2304exec 5>>config.log
2305{
2306cat <<_ASUNAME
2307## --------- ##
2308## Platform. ##
2309## --------- ##
2310
2311hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2312uname -m = `(uname -m) 2>/dev/null || echo unknown`
2313uname -r = `(uname -r) 2>/dev/null || echo unknown`
2314uname -s = `(uname -s) 2>/dev/null || echo unknown`
2315uname -v = `(uname -v) 2>/dev/null || echo unknown`
2316
2317/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2318/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2319
2320/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2321/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2322/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2323/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2324/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2325/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2326/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2327
2328_ASUNAME
2329
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335    $as_echo "PATH: $as_dir"
2336  done
2337IFS=$as_save_IFS
2338
2339} >&5
2340
2341cat >&5 <<_ACEOF
2342
2343
2344## ----------- ##
2345## Core tests. ##
2346## ----------- ##
2347
2348_ACEOF
2349
2350
2351# Keep a trace of the command line.
2352# Strip out --no-create and --no-recursion so they do not pile up.
2353# Strip out --silent because we don't want to record it for future runs.
2354# Also quote any args containing shell meta-characters.
2355# Make two passes to allow for proper duplicate-argument suppression.
2356ac_configure_args=
2357ac_configure_args0=
2358ac_configure_args1=
2359ac_must_keep_next=false
2360for ac_pass in 1 2
2361do
2362  for ac_arg
2363  do
2364    case $ac_arg in
2365    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2366    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2367    | -silent | --silent | --silen | --sile | --sil)
2368      continue ;;
2369    *\'*)
2370      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2371    esac
2372    case $ac_pass in
2373    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2374    2)
2375      as_fn_append ac_configure_args1 " '$ac_arg'"
2376      if test $ac_must_keep_next = true; then
2377	ac_must_keep_next=false # Got value, back to normal.
2378      else
2379	case $ac_arg in
2380	  *=* | --config-cache | -C | -disable-* | --disable-* \
2381	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2382	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2383	  | -with-* | --with-* | -without-* | --without-* | --x)
2384	    case "$ac_configure_args0 " in
2385	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2386	    esac
2387	    ;;
2388	  -* ) ac_must_keep_next=true ;;
2389	esac
2390      fi
2391      as_fn_append ac_configure_args " '$ac_arg'"
2392      ;;
2393    esac
2394  done
2395done
2396{ ac_configure_args0=; unset ac_configure_args0;}
2397{ ac_configure_args1=; unset ac_configure_args1;}
2398
2399# When interrupted or exit'd, cleanup temporary files, and complete
2400# config.log.  We remove comments because anyway the quotes in there
2401# would cause problems or look ugly.
2402# WARNING: Use '\'' to represent an apostrophe within the trap.
2403# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2404trap 'exit_status=$?
2405  # Save into config.log some information that might help in debugging.
2406  {
2407    echo
2408
2409    $as_echo "## ---------------- ##
2410## Cache variables. ##
2411## ---------------- ##"
2412    echo
2413    # The following way of writing the cache mishandles newlines in values,
2414(
2415  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2416    eval ac_val=\$$ac_var
2417    case $ac_val in #(
2418    *${as_nl}*)
2419      case $ac_var in #(
2420      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2422      esac
2423      case $ac_var in #(
2424      _ | IFS | as_nl) ;; #(
2425      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2426      *) { eval $ac_var=; unset $ac_var;} ;;
2427      esac ;;
2428    esac
2429  done
2430  (set) 2>&1 |
2431    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2432    *${as_nl}ac_space=\ *)
2433      sed -n \
2434	"s/'\''/'\''\\\\'\'''\''/g;
2435	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2436      ;; #(
2437    *)
2438      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2439      ;;
2440    esac |
2441    sort
2442)
2443    echo
2444
2445    $as_echo "## ----------------- ##
2446## Output variables. ##
2447## ----------------- ##"
2448    echo
2449    for ac_var in $ac_subst_vars
2450    do
2451      eval ac_val=\$$ac_var
2452      case $ac_val in
2453      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454      esac
2455      $as_echo "$ac_var='\''$ac_val'\''"
2456    done | sort
2457    echo
2458
2459    if test -n "$ac_subst_files"; then
2460      $as_echo "## ------------------- ##
2461## File substitutions. ##
2462## ------------------- ##"
2463      echo
2464      for ac_var in $ac_subst_files
2465      do
2466	eval ac_val=\$$ac_var
2467	case $ac_val in
2468	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469	esac
2470	$as_echo "$ac_var='\''$ac_val'\''"
2471      done | sort
2472      echo
2473    fi
2474
2475    if test -s confdefs.h; then
2476      $as_echo "## ----------- ##
2477## confdefs.h. ##
2478## ----------- ##"
2479      echo
2480      cat confdefs.h
2481      echo
2482    fi
2483    test "$ac_signal" != 0 &&
2484      $as_echo "$as_me: caught signal $ac_signal"
2485    $as_echo "$as_me: exit $exit_status"
2486  } >&5
2487  rm -f core *.core core.conftest.* &&
2488    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2489    exit $exit_status
2490' 0
2491for ac_signal in 1 2 13 15; do
2492  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2493done
2494ac_signal=0
2495
2496# confdefs.h avoids OS command line length limits that DEFS can exceed.
2497rm -f -r conftest* confdefs.h
2498
2499$as_echo "/* confdefs.h */" > confdefs.h
2500
2501# Predefined preprocessor variables.
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_NAME "$PACKAGE_NAME"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_VERSION "$PACKAGE_VERSION"
2513_ACEOF
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_STRING "$PACKAGE_STRING"
2517_ACEOF
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2521_ACEOF
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_URL "$PACKAGE_URL"
2525_ACEOF
2526
2527
2528# Let the site file select an alternate cache file if it wants to.
2529# Prefer an explicitly selected file to automatically selected ones.
2530ac_site_file1=NONE
2531ac_site_file2=NONE
2532if test -n "$CONFIG_SITE"; then
2533  # We do not want a PATH search for config.site.
2534  case $CONFIG_SITE in #((
2535    -*)  ac_site_file1=./$CONFIG_SITE;;
2536    */*) ac_site_file1=$CONFIG_SITE;;
2537    *)   ac_site_file1=./$CONFIG_SITE;;
2538  esac
2539elif test "x$prefix" != xNONE; then
2540  ac_site_file1=$prefix/share/config.site
2541  ac_site_file2=$prefix/etc/config.site
2542else
2543  ac_site_file1=$ac_default_prefix/share/config.site
2544  ac_site_file2=$ac_default_prefix/etc/config.site
2545fi
2546for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2547do
2548  test "x$ac_site_file" = xNONE && continue
2549  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2550    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2551$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2552    sed 's/^/| /' "$ac_site_file" >&5
2553    . "$ac_site_file" \
2554      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556as_fn_error $? "failed to load site script $ac_site_file
2557See \`config.log' for more details" "$LINENO" 5; }
2558  fi
2559done
2560
2561if test -r "$cache_file"; then
2562  # Some versions of bash will fail to source /dev/null (special files
2563  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2564  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2565    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2566$as_echo "$as_me: loading cache $cache_file" >&6;}
2567    case $cache_file in
2568      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2569      *)                      . "./$cache_file";;
2570    esac
2571  fi
2572else
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2574$as_echo "$as_me: creating cache $cache_file" >&6;}
2575  >$cache_file
2576fi
2577
2578# Check that the precious variables saved in the cache have kept the same
2579# value.
2580ac_cache_corrupted=false
2581for ac_var in $ac_precious_vars; do
2582  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583  eval ac_new_set=\$ac_env_${ac_var}_set
2584  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585  eval ac_new_val=\$ac_env_${ac_var}_value
2586  case $ac_old_set,$ac_new_set in
2587    set,)
2588      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2589$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2590      ac_cache_corrupted=: ;;
2591    ,set)
2592      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2593$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2594      ac_cache_corrupted=: ;;
2595    ,);;
2596    *)
2597      if test "x$ac_old_val" != "x$ac_new_val"; then
2598	# differences in whitespace do not lead to failure.
2599	ac_old_val_w=`echo x $ac_old_val`
2600	ac_new_val_w=`echo x $ac_new_val`
2601	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2603$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2604	  ac_cache_corrupted=:
2605	else
2606	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2607$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2608	  eval $ac_var=\$ac_old_val
2609	fi
2610	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2611$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2612	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2613$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2614      fi;;
2615  esac
2616  # Pass precious variables to config.status.
2617  if test "$ac_new_set" = set; then
2618    case $ac_new_val in
2619    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620    *) ac_arg=$ac_var=$ac_new_val ;;
2621    esac
2622    case " $ac_configure_args " in
2623      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2624      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625    esac
2626  fi
2627done
2628if $ac_cache_corrupted; then
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2633  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2634fi
2635## -------------------- ##
2636## Main body of script. ##
2637## -------------------- ##
2638
2639ac_ext=c
2640ac_cpp='$CPP $CPPFLAGS'
2641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
2645
2646
2647
2648ac_aux_dir=
2649for ac_dir in build "$srcdir"/build; do
2650  if test -f "$ac_dir/install-sh"; then
2651    ac_aux_dir=$ac_dir
2652    ac_install_sh="$ac_aux_dir/install-sh -c"
2653    break
2654  elif test -f "$ac_dir/install.sh"; then
2655    ac_aux_dir=$ac_dir
2656    ac_install_sh="$ac_aux_dir/install.sh -c"
2657    break
2658  elif test -f "$ac_dir/shtool"; then
2659    ac_aux_dir=$ac_dir
2660    ac_install_sh="$ac_aux_dir/shtool install -c"
2661    break
2662  fi
2663done
2664if test -z "$ac_aux_dir"; then
2665  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2666fi
2667
2668# These three variables are undocumented and unsupported,
2669# and are intended to be withdrawn in a future Autoconf release.
2670# They can cause serious problems if a builder's source tree is in a directory
2671# whose full name contains unusual characters.
2672ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2673ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2674ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2675
2676
2677
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.9.5" >&5
2679$as_echo "$as_me: Configuring Subversion 1.9.5" >&6;}
2680
2681abs_srcdir="`cd $srcdir && pwd`"
2682
2683abs_builddir="`pwd`"
2684
2685if test "$abs_srcdir" = "$abs_builddir"; then
2686  canonicalized_srcdir=""
2687else
2688  canonicalized_srcdir="$srcdir/"
2689fi
2690
2691
2692SWIG_LDFLAGS="$LDFLAGS"
2693
2694
2695# Generate config.nice early (before the arguments are munged)
2696
2697  { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2698$as_echo "$as_me: creating config.nice" >&6;}
2699  # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2700  if test -f "config.nice"; then
2701    mv "config.nice" "config.nice.old"
2702  fi
2703
2704  cat >"config.nice" <<EOF
2705#! /bin/sh
2706#
2707# Created by configure
2708
2709'$0' $ac_configure_args "\$@"
2710EOF
2711
2712  chmod +x "config.nice"
2713  rm -f "config.nice.old"
2714
2715
2716# ==== Check for programs ====================================================
2717
2718# Look for a C compiler (before anything can set CFLAGS)
2719CUSERFLAGS="$CFLAGS"
2720ac_ext=c
2721ac_cpp='$CPP $CPPFLAGS'
2722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725if test -n "$ac_tool_prefix"; then
2726  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2727set dummy ${ac_tool_prefix}gcc; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if ${ac_cv_prog_CC+:} false; then :
2731  $as_echo_n "(cached) " >&6
2732else
2733  if test -n "$CC"; then
2734  ac_cv_prog_CC="$CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739  IFS=$as_save_IFS
2740  test -z "$as_dir" && as_dir=.
2741    for ac_exec_ext in '' $ac_executable_extensions; do
2742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748  done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753CC=$ac_cv_prog_CC
2754if test -n "$CC"; then
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756$as_echo "$CC" >&6; }
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762
2763fi
2764if test -z "$ac_cv_prog_CC"; then
2765  ac_ct_CC=$CC
2766  # Extract the first word of "gcc", so it can be a program name with args.
2767set dummy gcc; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_ac_ct_CC+:} false; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  if test -n "$ac_ct_CC"; then
2774  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779  IFS=$as_save_IFS
2780  test -z "$as_dir" && as_dir=.
2781    for ac_exec_ext in '' $ac_executable_extensions; do
2782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783    ac_cv_prog_ac_ct_CC="gcc"
2784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785    break 2
2786  fi
2787done
2788  done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794if test -n "$ac_ct_CC"; then
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2796$as_echo "$ac_ct_CC" >&6; }
2797else
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800fi
2801
2802  if test "x$ac_ct_CC" = x; then
2803    CC=""
2804  else
2805    case $cross_compiling:$ac_tool_warned in
2806yes:)
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2809ac_tool_warned=yes ;;
2810esac
2811    CC=$ac_ct_CC
2812  fi
2813else
2814  CC="$ac_cv_prog_CC"
2815fi
2816
2817if test -z "$CC"; then
2818          if test -n "$ac_tool_prefix"; then
2819    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2820set dummy ${ac_tool_prefix}cc; ac_word=$2
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822$as_echo_n "checking for $ac_word... " >&6; }
2823if ${ac_cv_prog_CC+:} false; then :
2824  $as_echo_n "(cached) " >&6
2825else
2826  if test -n "$CC"; then
2827  ac_cv_prog_CC="$CC" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832  IFS=$as_save_IFS
2833  test -z "$as_dir" && as_dir=.
2834    for ac_exec_ext in '' $ac_executable_extensions; do
2835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836    ac_cv_prog_CC="${ac_tool_prefix}cc"
2837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838    break 2
2839  fi
2840done
2841  done
2842IFS=$as_save_IFS
2843
2844fi
2845fi
2846CC=$ac_cv_prog_CC
2847if test -n "$CC"; then
2848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849$as_echo "$CC" >&6; }
2850else
2851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852$as_echo "no" >&6; }
2853fi
2854
2855
2856  fi
2857fi
2858if test -z "$CC"; then
2859  # Extract the first word of "cc", so it can be a program name with args.
2860set dummy cc; ac_word=$2
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; }
2863if ${ac_cv_prog_CC+:} false; then :
2864  $as_echo_n "(cached) " >&6
2865else
2866  if test -n "$CC"; then
2867  ac_cv_prog_CC="$CC" # Let the user override the test.
2868else
2869  ac_prog_rejected=no
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875    for ac_exec_ext in '' $ac_executable_extensions; do
2876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2878       ac_prog_rejected=yes
2879       continue
2880     fi
2881    ac_cv_prog_CC="cc"
2882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883    break 2
2884  fi
2885done
2886  done
2887IFS=$as_save_IFS
2888
2889if test $ac_prog_rejected = yes; then
2890  # We found a bogon in the path, so make sure we never use it.
2891  set dummy $ac_cv_prog_CC
2892  shift
2893  if test $# != 0; then
2894    # We chose a different compiler from the bogus one.
2895    # However, it has the same basename, so the bogon will be chosen
2896    # first if we set CC to just the basename; use the full file name.
2897    shift
2898    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2899  fi
2900fi
2901fi
2902fi
2903CC=$ac_cv_prog_CC
2904if test -n "$CC"; then
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906$as_echo "$CC" >&6; }
2907else
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
2910fi
2911
2912
2913fi
2914if test -z "$CC"; then
2915  if test -n "$ac_tool_prefix"; then
2916  for ac_prog in cl.exe
2917  do
2918    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if ${ac_cv_prog_CC+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  if test -n "$CC"; then
2926  ac_cv_prog_CC="$CC" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  test -z "$as_dir" && as_dir=.
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937    break 2
2938  fi
2939done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945CC=$ac_cv_prog_CC
2946if test -n "$CC"; then
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948$as_echo "$CC" >&6; }
2949else
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954
2955    test -n "$CC" && break
2956  done
2957fi
2958if test -z "$CC"; then
2959  ac_ct_CC=$CC
2960  for ac_prog in cl.exe
2961do
2962  # Extract the first word of "$ac_prog", so it can be a program name with args.
2963set dummy $ac_prog; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_ac_ct_CC+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$ac_ct_CC"; then
2970  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_ac_ct_CC="$ac_prog"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990if test -n "$ac_ct_CC"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992$as_echo "$ac_ct_CC" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998
2999  test -n "$ac_ct_CC" && break
3000done
3001
3002  if test "x$ac_ct_CC" = x; then
3003    CC=""
3004  else
3005    case $cross_compiling:$ac_tool_warned in
3006yes:)
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009ac_tool_warned=yes ;;
3010esac
3011    CC=$ac_ct_CC
3012  fi
3013fi
3014
3015fi
3016
3017
3018test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020as_fn_error $? "no acceptable C compiler found in \$PATH
3021See \`config.log' for more details" "$LINENO" 5; }
3022
3023# Provide some information about the compiler.
3024$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3025set X $ac_compile
3026ac_compiler=$2
3027for ac_option in --version -v -V -qversion; do
3028  { { ac_try="$ac_compiler $ac_option >&5"
3029case "(($ac_try" in
3030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031  *) ac_try_echo=$ac_try;;
3032esac
3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034$as_echo "$ac_try_echo"; } >&5
3035  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3036  ac_status=$?
3037  if test -s conftest.err; then
3038    sed '10a\
3039... rest of stderr output deleted ...
3040         10q' conftest.err >conftest.er1
3041    cat conftest.er1 >&5
3042  fi
3043  rm -f conftest.er1 conftest.err
3044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045  test $ac_status = 0; }
3046done
3047
3048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049/* end confdefs.h.  */
3050
3051int
3052main ()
3053{
3054
3055  ;
3056  return 0;
3057}
3058_ACEOF
3059ac_clean_files_save=$ac_clean_files
3060ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3061# Try to create an executable without -o first, disregard a.out.
3062# It will help us diagnose broken compilers, and finding out an intuition
3063# of exeext.
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3065$as_echo_n "checking whether the C compiler works... " >&6; }
3066ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3067
3068# The possible output files:
3069ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3070
3071ac_rmfiles=
3072for ac_file in $ac_files
3073do
3074  case $ac_file in
3075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3077  esac
3078done
3079rm -f $ac_rmfiles
3080
3081if { { ac_try="$ac_link_default"
3082case "(($ac_try" in
3083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084  *) ac_try_echo=$ac_try;;
3085esac
3086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087$as_echo "$ac_try_echo"; } >&5
3088  (eval "$ac_link_default") 2>&5
3089  ac_status=$?
3090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091  test $ac_status = 0; }; then :
3092  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3093# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3094# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3095# so that the user can short-circuit this test for compilers unknown to
3096# Autoconf.
3097for ac_file in $ac_files ''
3098do
3099  test -f "$ac_file" || continue
3100  case $ac_file in
3101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3102	;;
3103    [ab].out )
3104	# We found the default executable, but exeext='' is most
3105	# certainly right.
3106	break;;
3107    *.* )
3108	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3109	then :; else
3110	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3111	fi
3112	# We set ac_cv_exeext here because the later test for it is not
3113	# safe: cross compilers may not add the suffix if given an `-o'
3114	# argument, so we may need to know it at that point already.
3115	# Even if this section looks crufty: it has the advantage of
3116	# actually working.
3117	break;;
3118    * )
3119	break;;
3120  esac
3121done
3122test "$ac_cv_exeext" = no && ac_cv_exeext=
3123
3124else
3125  ac_file=''
3126fi
3127if test -z "$ac_file"; then :
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129$as_echo "no" >&6; }
3130$as_echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135as_fn_error 77 "C compiler cannot create executables
3136See \`config.log' for more details" "$LINENO" 5; }
3137else
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139$as_echo "yes" >&6; }
3140fi
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3142$as_echo_n "checking for C compiler default output file name... " >&6; }
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3144$as_echo "$ac_file" >&6; }
3145ac_exeext=$ac_cv_exeext
3146
3147rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3148ac_clean_files=$ac_clean_files_save
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3150$as_echo_n "checking for suffix of executables... " >&6; }
3151if { { ac_try="$ac_link"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158  (eval "$ac_link") 2>&5
3159  ac_status=$?
3160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161  test $ac_status = 0; }; then :
3162  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3164# work properly (i.e., refer to `conftest.exe'), while it won't with
3165# `rm'.
3166for ac_file in conftest.exe conftest conftest.*; do
3167  test -f "$ac_file" || continue
3168  case $ac_file in
3169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171	  break;;
3172    * ) break;;
3173  esac
3174done
3175else
3176  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3179See \`config.log' for more details" "$LINENO" 5; }
3180fi
3181rm -f conftest conftest$ac_cv_exeext
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183$as_echo "$ac_cv_exeext" >&6; }
3184
3185rm -f conftest.$ac_ext
3186EXEEXT=$ac_cv_exeext
3187ac_exeext=$EXEEXT
3188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189/* end confdefs.h.  */
3190#include <stdio.h>
3191int
3192main ()
3193{
3194FILE *f = fopen ("conftest.out", "w");
3195 return ferror (f) || fclose (f) != 0;
3196
3197  ;
3198  return 0;
3199}
3200_ACEOF
3201ac_clean_files="$ac_clean_files conftest.out"
3202# Check that the compiler produces executables we can run.  If not, either
3203# the compiler is broken, or we cross compile.
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205$as_echo_n "checking whether we are cross compiling... " >&6; }
3206if test "$cross_compiling" != yes; then
3207  { { ac_try="$ac_link"
3208case "(($ac_try" in
3209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210  *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213$as_echo "$ac_try_echo"; } >&5
3214  (eval "$ac_link") 2>&5
3215  ac_status=$?
3216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217  test $ac_status = 0; }
3218  if { ac_try='./conftest$ac_cv_exeext'
3219  { { case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_try") 2>&5
3226  ac_status=$?
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }; }; then
3229    cross_compiling=no
3230  else
3231    if test "$cross_compiling" = maybe; then
3232	cross_compiling=yes
3233    else
3234	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236as_fn_error $? "cannot run C compiled programs.
3237If you meant to cross compile, use \`--host'.
3238See \`config.log' for more details" "$LINENO" 5; }
3239    fi
3240  fi
3241fi
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3243$as_echo "$cross_compiling" >&6; }
3244
3245rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3246ac_clean_files=$ac_clean_files_save
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3248$as_echo_n "checking for suffix of object files... " >&6; }
3249if ${ac_cv_objext+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258
3259  ;
3260  return 0;
3261}
3262_ACEOF
3263rm -f conftest.o conftest.obj
3264if { { ac_try="$ac_compile"
3265case "(($ac_try" in
3266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267  *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
3271  (eval "$ac_compile") 2>&5
3272  ac_status=$?
3273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274  test $ac_status = 0; }; then :
3275  for ac_file in conftest.o conftest.obj conftest.*; do
3276  test -f "$ac_file" || continue;
3277  case $ac_file in
3278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3279    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280       break;;
3281  esac
3282done
3283else
3284  $as_echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289as_fn_error $? "cannot compute suffix of object files: cannot compile
3290See \`config.log' for more details" "$LINENO" 5; }
3291fi
3292rm -f conftest.$ac_cv_objext conftest.$ac_ext
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3295$as_echo "$ac_cv_objext" >&6; }
3296OBJEXT=$ac_cv_objext
3297ac_objext=$OBJEXT
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3299$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3300if ${ac_cv_c_compiler_gnu+:} false; then :
3301  $as_echo_n "(cached) " >&6
3302else
3303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304/* end confdefs.h.  */
3305
3306int
3307main ()
3308{
3309#ifndef __GNUC__
3310       choke me
3311#endif
3312
3313  ;
3314  return 0;
3315}
3316_ACEOF
3317if ac_fn_c_try_compile "$LINENO"; then :
3318  ac_compiler_gnu=yes
3319else
3320  ac_compiler_gnu=no
3321fi
3322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323ac_cv_c_compiler_gnu=$ac_compiler_gnu
3324
3325fi
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3327$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3328if test $ac_compiler_gnu = yes; then
3329  GCC=yes
3330else
3331  GCC=
3332fi
3333ac_test_CFLAGS=${CFLAGS+set}
3334ac_save_CFLAGS=$CFLAGS
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3336$as_echo_n "checking whether $CC accepts -g... " >&6; }
3337if ${ac_cv_prog_cc_g+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  ac_save_c_werror_flag=$ac_c_werror_flag
3341   ac_c_werror_flag=yes
3342   ac_cv_prog_cc_g=no
3343   CFLAGS="-g"
3344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h.  */
3346
3347int
3348main ()
3349{
3350
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355if ac_fn_c_try_compile "$LINENO"; then :
3356  ac_cv_prog_cc_g=yes
3357else
3358  CFLAGS=""
3359      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h.  */
3361
3362int
3363main ()
3364{
3365
3366  ;
3367  return 0;
3368}
3369_ACEOF
3370if ac_fn_c_try_compile "$LINENO"; then :
3371
3372else
3373  ac_c_werror_flag=$ac_save_c_werror_flag
3374	 CFLAGS="-g"
3375	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386if ac_fn_c_try_compile "$LINENO"; then :
3387  ac_cv_prog_cc_g=yes
3388fi
3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390fi
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392fi
3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394   ac_c_werror_flag=$ac_save_c_werror_flag
3395fi
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3397$as_echo "$ac_cv_prog_cc_g" >&6; }
3398if test "$ac_test_CFLAGS" = set; then
3399  CFLAGS=$ac_save_CFLAGS
3400elif test $ac_cv_prog_cc_g = yes; then
3401  if test "$GCC" = yes; then
3402    CFLAGS="-g -O2"
3403  else
3404    CFLAGS="-g"
3405  fi
3406else
3407  if test "$GCC" = yes; then
3408    CFLAGS="-O2"
3409  else
3410    CFLAGS=
3411  fi
3412fi
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3414$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3415if ${ac_cv_prog_cc_c89+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  ac_cv_prog_cc_c89=no
3419ac_save_CC=$CC
3420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h.  */
3422#include <stdarg.h>
3423#include <stdio.h>
3424struct stat;
3425/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3426struct buf { int x; };
3427FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428static char *e (p, i)
3429     char **p;
3430     int i;
3431{
3432  return p[i];
3433}
3434static char *f (char * (*g) (char **, int), char **p, ...)
3435{
3436  char *s;
3437  va_list v;
3438  va_start (v,p);
3439  s = g (p, va_arg (v,int));
3440  va_end (v);
3441  return s;
3442}
3443
3444/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3445   function prototypes and stuff, but not '\xHH' hex character constants.
3446   These don't provoke an error unfortunately, instead are silently treated
3447   as 'x'.  The following induces an error, until -std is added to get
3448   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3449   array size at least.  It's necessary to write '\x00'==0 to get something
3450   that's true only with -std.  */
3451int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452
3453/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454   inside strings and character constants.  */
3455#define FOO(x) 'x'
3456int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457
3458int test (int i, double x);
3459struct s1 {int (*f) (int a);};
3460struct s2 {int (*f) (double a);};
3461int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462int argc;
3463char **argv;
3464int
3465main ()
3466{
3467return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3474do
3475  CC="$ac_save_CC $ac_arg"
3476  if ac_fn_c_try_compile "$LINENO"; then :
3477  ac_cv_prog_cc_c89=$ac_arg
3478fi
3479rm -f core conftest.err conftest.$ac_objext
3480  test "x$ac_cv_prog_cc_c89" != "xno" && break
3481done
3482rm -f conftest.$ac_ext
3483CC=$ac_save_CC
3484
3485fi
3486# AC_CACHE_VAL
3487case "x$ac_cv_prog_cc_c89" in
3488  x)
3489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490$as_echo "none needed" >&6; } ;;
3491  xno)
3492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493$as_echo "unsupported" >&6; } ;;
3494  *)
3495    CC="$CC $ac_cv_prog_cc_c89"
3496    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3498esac
3499if test "x$ac_cv_prog_cc_c89" != xno; then :
3500
3501fi
3502
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510
3511  CFLAGS_KEEP="$CFLAGS"
3512  CFLAGS=""
3513
3514  if test "$GCC" = "yes"; then
3515
3516  _svn_xxflags__save="$CFLAGS"
3517  ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3524$as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3525  CFLAGS="-std=c90 $CFLAGS"
3526        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528int main(void){return 0;}
3529_ACEOF
3530if ac_fn_c_try_link "$LINENO"; then :
3531
3532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533$as_echo "yes" >&6; }
3534
3535
3536else
3537
3538    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539$as_echo "no" >&6; }
3540    CFLAGS="$_svn_xxflags__save"
3541
3542
3543  _svn_xxflags__save="$CFLAGS"
3544  ac_ext=c
3545ac_cpp='$CPP $CPPFLAGS'
3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3551$as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3552  CFLAGS="-std=c89 $CFLAGS"
3553        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h.  */
3555int main(void){return 0;}
3556_ACEOF
3557if ac_fn_c_try_link "$LINENO"; then :
3558
3559    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3560$as_echo "yes" >&6; }
3561
3562
3563else
3564
3565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566$as_echo "no" >&6; }
3567    CFLAGS="$_svn_xxflags__save"
3568
3569
3570  _svn_xxflags__save="$CFLAGS"
3571  ac_ext=c
3572ac_cpp='$CPP $CPPFLAGS'
3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3578$as_echo_n "checking if $CC accepts -ansi... " >&6; }
3579  CFLAGS="-ansi $CFLAGS"
3580        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582int main(void){return 0;}
3583_ACEOF
3584if ac_fn_c_try_link "$LINENO"; then :
3585
3586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3587$as_echo "yes" >&6; }
3588
3589
3590else
3591
3592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593$as_echo "no" >&6; }
3594    CFLAGS="$_svn_xxflags__save"
3595
3596
3597fi
3598rm -f core conftest.err conftest.$ac_objext \
3599    conftest$ac_exeext conftest.$ac_ext
3600  ac_ext=c
3601ac_cpp='$CPP $CPPFLAGS'
3602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606
3607
3608
3609fi
3610rm -f core conftest.err conftest.$ac_objext \
3611    conftest$ac_exeext conftest.$ac_ext
3612  ac_ext=c
3613ac_cpp='$CPP $CPPFLAGS'
3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618
3619
3620
3621fi
3622rm -f core conftest.err conftest.$ac_objext \
3623    conftest$ac_exeext conftest.$ac_ext
3624  ac_ext=c
3625ac_cpp='$CPP $CPPFLAGS'
3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630
3631  fi
3632
3633  CMODEFLAGS="$CFLAGS"
3634  CFLAGS=""
3635
3636  if test "$GCC" = "yes"; then
3637
3638  _svn_xxflags__save="$CFLAGS"
3639  ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -w" >&5
3646$as_echo_n "checking if $CC accepts -w... " >&6; }
3647  CFLAGS="-w $CFLAGS"
3648        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650int main(void){return 0;}
3651_ACEOF
3652if ac_fn_c_try_link "$LINENO"; then :
3653
3654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3655$as_echo "yes" >&6; }
3656
3657
3658else
3659
3660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661$as_echo "no" >&6; }
3662    CFLAGS="$_svn_xxflags__save"
3663
3664
3665fi
3666rm -f core conftest.err conftest.$ac_objext \
3667    conftest$ac_exeext conftest.$ac_ext
3668  ac_ext=c
3669ac_cpp='$CPP $CPPFLAGS'
3670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674
3675  fi
3676
3677  CNOWARNFLAGS="$CFLAGS"
3678  CFLAGS="$CFLAGS_KEEP"
3679
3680
3681
3682
3683
3684
3685  if test "$GCC" = "yes"; then
3686
3687  _svn_xxflags__save="$CFLAGS"
3688  ac_ext=c
3689ac_cpp='$CPP $CPPFLAGS'
3690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693
3694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3695$as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3696  CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3697        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699int main(void){return 0;}
3700_ACEOF
3701if ac_fn_c_try_link "$LINENO"; then :
3702
3703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704$as_echo "yes" >&6; }
3705
3706
3707else
3708
3709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710$as_echo "no" >&6; }
3711    CFLAGS="$_svn_xxflags__save"
3712
3713
3714fi
3715rm -f core conftest.err conftest.$ac_objext \
3716    conftest$ac_exeext conftest.$ac_ext
3717  ac_ext=c
3718ac_cpp='$CPP $CPPFLAGS'
3719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723
3724  fi
3725
3726
3727# Look for a C++ compiler (before anything can set CXXFLAGS)
3728CXXUSERFLAGS="$CXXFLAGS"
3729ac_ext=cpp
3730ac_cpp='$CXXCPP $CPPFLAGS'
3731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3734if test -z "$CXX"; then
3735  if test -n "$CCC"; then
3736    CXX=$CCC
3737  else
3738    if test -n "$ac_tool_prefix"; then
3739  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3740  do
3741    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744$as_echo_n "checking for $ac_word... " >&6; }
3745if ${ac_cv_prog_CXX+:} false; then :
3746  $as_echo_n "(cached) " >&6
3747else
3748  if test -n "$CXX"; then
3749  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3750else
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754  IFS=$as_save_IFS
3755  test -z "$as_dir" && as_dir=.
3756    for ac_exec_ext in '' $ac_executable_extensions; do
3757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760    break 2
3761  fi
3762done
3763  done
3764IFS=$as_save_IFS
3765
3766fi
3767fi
3768CXX=$ac_cv_prog_CXX
3769if test -n "$CXX"; then
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3771$as_echo "$CXX" >&6; }
3772else
3773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774$as_echo "no" >&6; }
3775fi
3776
3777
3778    test -n "$CXX" && break
3779  done
3780fi
3781if test -z "$CXX"; then
3782  ac_ct_CXX=$CXX
3783  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3784do
3785  # Extract the first word of "$ac_prog", so it can be a program name with args.
3786set dummy $ac_prog; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
3789if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  if test -n "$ac_ct_CXX"; then
3793  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    for ac_exec_ext in '' $ac_executable_extensions; do
3801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802    ac_cv_prog_ac_ct_CXX="$ac_prog"
3803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804    break 2
3805  fi
3806done
3807  done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3813if test -n "$ac_ct_CXX"; then
3814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3815$as_echo "$ac_ct_CXX" >&6; }
3816else
3817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821
3822  test -n "$ac_ct_CXX" && break
3823done
3824
3825  if test "x$ac_ct_CXX" = x; then
3826    CXX="g++"
3827  else
3828    case $cross_compiling:$ac_tool_warned in
3829yes:)
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832ac_tool_warned=yes ;;
3833esac
3834    CXX=$ac_ct_CXX
3835  fi
3836fi
3837
3838  fi
3839fi
3840# Provide some information about the compiler.
3841$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3842set X $ac_compile
3843ac_compiler=$2
3844for ac_option in --version -v -V -qversion; do
3845  { { ac_try="$ac_compiler $ac_option >&5"
3846case "(($ac_try" in
3847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848  *) ac_try_echo=$ac_try;;
3849esac
3850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851$as_echo "$ac_try_echo"; } >&5
3852  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3853  ac_status=$?
3854  if test -s conftest.err; then
3855    sed '10a\
3856... rest of stderr output deleted ...
3857         10q' conftest.err >conftest.er1
3858    cat conftest.er1 >&5
3859  fi
3860  rm -f conftest.er1 conftest.err
3861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862  test $ac_status = 0; }
3863done
3864
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3866$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3867if ${ac_cv_cxx_compiler_gnu+:} false; then :
3868  $as_echo_n "(cached) " >&6
3869else
3870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main ()
3875{
3876#ifndef __GNUC__
3877       choke me
3878#endif
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884if ac_fn_cxx_try_compile "$LINENO"; then :
3885  ac_compiler_gnu=yes
3886else
3887  ac_compiler_gnu=no
3888fi
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3891
3892fi
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3894$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3895if test $ac_compiler_gnu = yes; then
3896  GXX=yes
3897else
3898  GXX=
3899fi
3900ac_test_CXXFLAGS=${CXXFLAGS+set}
3901ac_save_CXXFLAGS=$CXXFLAGS
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3903$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3904if ${ac_cv_prog_cxx_g+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3908   ac_cxx_werror_flag=yes
3909   ac_cv_prog_cxx_g=no
3910   CXXFLAGS="-g"
3911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_cxx_try_compile "$LINENO"; then :
3923  ac_cv_prog_cxx_g=yes
3924else
3925  CXXFLAGS=""
3926      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927/* end confdefs.h.  */
3928
3929int
3930main ()
3931{
3932
3933  ;
3934  return 0;
3935}
3936_ACEOF
3937if ac_fn_cxx_try_compile "$LINENO"; then :
3938
3939else
3940  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3941	 CXXFLAGS="-g"
3942	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943/* end confdefs.h.  */
3944
3945int
3946main ()
3947{
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953if ac_fn_cxx_try_compile "$LINENO"; then :
3954  ac_cv_prog_cxx_g=yes
3955fi
3956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959fi
3960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3962fi
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3964$as_echo "$ac_cv_prog_cxx_g" >&6; }
3965if test "$ac_test_CXXFLAGS" = set; then
3966  CXXFLAGS=$ac_save_CXXFLAGS
3967elif test $ac_cv_prog_cxx_g = yes; then
3968  if test "$GXX" = yes; then
3969    CXXFLAGS="-g -O2"
3970  else
3971    CXXFLAGS="-g"
3972  fi
3973else
3974  if test "$GXX" = yes; then
3975    CXXFLAGS="-O2"
3976  else
3977    CXXFLAGS=
3978  fi
3979fi
3980ac_ext=c
3981ac_cpp='$CPP $CPPFLAGS'
3982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985
3986
3987
3988  CXXFLAGS_KEEP="$CXXFLAGS"
3989  CXXFLAGS=""
3990
3991  if test "$GXX" = "yes"; then
3992
3993  _svn_xxflags__save="$CXXFLAGS"
3994  ac_ext=cpp
3995ac_cpp='$CXXCPP $CPPFLAGS'
3996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3999
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
4001$as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
4002  CXXFLAGS="-std=c++98 $CXXFLAGS"
4003        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h.  */
4005int main(){}
4006_ACEOF
4007if ac_fn_cxx_try_link "$LINENO"; then :
4008
4009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010$as_echo "yes" >&6; }
4011
4012
4013else
4014
4015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016$as_echo "no" >&6; }
4017    CXXFLAGS="$_svn_xxflags__save"
4018
4019
4020fi
4021rm -f core conftest.err conftest.$ac_objext \
4022    conftest$ac_exeext conftest.$ac_ext
4023  ac_ext=c
4024ac_cpp='$CPP $CPPFLAGS'
4025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028
4029
4030  fi
4031
4032  CXXMODEFLAGS="$CXXFLAGS"
4033  CXXFLAGS=""
4034
4035  if test "$GXX" = "yes"; then
4036
4037  _svn_xxflags__save="$CXXFLAGS"
4038  ac_ext=cpp
4039ac_cpp='$CXXCPP $CPPFLAGS'
4040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4043
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -w" >&5
4045$as_echo_n "checking if $CXX accepts -w... " >&6; }
4046  CXXFLAGS="-w $CXXFLAGS"
4047        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h.  */
4049int main(){}
4050_ACEOF
4051if ac_fn_cxx_try_link "$LINENO"; then :
4052
4053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4054$as_echo "yes" >&6; }
4055
4056
4057else
4058
4059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060$as_echo "no" >&6; }
4061    CXXFLAGS="$_svn_xxflags__save"
4062
4063
4064fi
4065rm -f core conftest.err conftest.$ac_objext \
4066    conftest$ac_exeext conftest.$ac_ext
4067  ac_ext=c
4068ac_cpp='$CPP $CPPFLAGS'
4069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
4073
4074  fi
4075
4076  CXXNOWARNFLAGS="$CXXFLAGS"
4077  CXXFLAGS="$CXXFLAGS_KEEP"
4078
4079
4080
4081
4082
4083
4084  if test "$GXX" = "yes"; then
4085
4086  _svn_xxflags__save="$CXXFLAGS"
4087  ac_ext=cpp
4088ac_cpp='$CXXCPP $CPPFLAGS'
4089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4092
4093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
4094$as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
4095  CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
4096        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098int main(){}
4099_ACEOF
4100if ac_fn_cxx_try_link "$LINENO"; then :
4101
4102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103$as_echo "yes" >&6; }
4104
4105
4106else
4107
4108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
4110    CXXFLAGS="$_svn_xxflags__save"
4111
4112
4113fi
4114rm -f core conftest.err conftest.$ac_objext \
4115    conftest$ac_exeext conftest.$ac_ext
4116  ac_ext=c
4117ac_cpp='$CPP $CPPFLAGS'
4118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121
4122
4123  fi
4124
4125
4126# Look for a C pre-processor
4127ac_ext=c
4128ac_cpp='$CPP $CPPFLAGS'
4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4133$as_echo_n "checking how to run the C preprocessor... " >&6; }
4134# On Suns, sometimes $CPP names a directory.
4135if test -n "$CPP" && test -d "$CPP"; then
4136  CPP=
4137fi
4138if test -z "$CPP"; then
4139  if ${ac_cv_prog_CPP+:} false; then :
4140  $as_echo_n "(cached) " >&6
4141else
4142      # Double quotes because CPP needs to be expanded
4143    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4144    do
4145      ac_preproc_ok=false
4146for ac_c_preproc_warn_flag in '' yes
4147do
4148  # Use a header file that comes with gcc, so configuring glibc
4149  # with a fresh cross-compiler works.
4150  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151  # <limits.h> exists even on freestanding compilers.
4152  # On the NeXT, cc -E runs the code through the compiler's parser,
4153  # not just through cpp. "Syntax error" is here to catch this case.
4154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155/* end confdefs.h.  */
4156#ifdef __STDC__
4157# include <limits.h>
4158#else
4159# include <assert.h>
4160#endif
4161		     Syntax error
4162_ACEOF
4163if ac_fn_c_try_cpp "$LINENO"; then :
4164
4165else
4166  # Broken: fails on valid input.
4167continue
4168fi
4169rm -f conftest.err conftest.i conftest.$ac_ext
4170
4171  # OK, works on sane cases.  Now check whether nonexistent headers
4172  # can be detected and how.
4173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175#include <ac_nonexistent.h>
4176_ACEOF
4177if ac_fn_c_try_cpp "$LINENO"; then :
4178  # Broken: success on invalid input.
4179continue
4180else
4181  # Passes both tests.
4182ac_preproc_ok=:
4183break
4184fi
4185rm -f conftest.err conftest.i conftest.$ac_ext
4186
4187done
4188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189rm -f conftest.i conftest.err conftest.$ac_ext
4190if $ac_preproc_ok; then :
4191  break
4192fi
4193
4194    done
4195    ac_cv_prog_CPP=$CPP
4196
4197fi
4198  CPP=$ac_cv_prog_CPP
4199else
4200  ac_cv_prog_CPP=$CPP
4201fi
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4203$as_echo "$CPP" >&6; }
4204ac_preproc_ok=false
4205for ac_c_preproc_warn_flag in '' yes
4206do
4207  # Use a header file that comes with gcc, so configuring glibc
4208  # with a fresh cross-compiler works.
4209  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210  # <limits.h> exists even on freestanding compilers.
4211  # On the NeXT, cc -E runs the code through the compiler's parser,
4212  # not just through cpp. "Syntax error" is here to catch this case.
4213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215#ifdef __STDC__
4216# include <limits.h>
4217#else
4218# include <assert.h>
4219#endif
4220		     Syntax error
4221_ACEOF
4222if ac_fn_c_try_cpp "$LINENO"; then :
4223
4224else
4225  # Broken: fails on valid input.
4226continue
4227fi
4228rm -f conftest.err conftest.i conftest.$ac_ext
4229
4230  # OK, works on sane cases.  Now check whether nonexistent headers
4231  # can be detected and how.
4232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234#include <ac_nonexistent.h>
4235_ACEOF
4236if ac_fn_c_try_cpp "$LINENO"; then :
4237  # Broken: success on invalid input.
4238continue
4239else
4240  # Passes both tests.
4241ac_preproc_ok=:
4242break
4243fi
4244rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246done
4247# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248rm -f conftest.i conftest.err conftest.$ac_ext
4249if $ac_preproc_ok; then :
4250
4251else
4252  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4255See \`config.log' for more details" "$LINENO" 5; }
4256fi
4257
4258ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263
4264
4265# Look for a good sed
4266# AC_PROG_SED was introduced in Autoconf 2.59b
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4268$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4269if ${ac_cv_path_SED+:} false; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4273     for ac_i in 1 2 3 4 5 6 7; do
4274       ac_script="$ac_script$as_nl$ac_script"
4275     done
4276     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4277     { ac_script=; unset ac_script;}
4278     if test -z "$SED"; then
4279  ac_path_SED_found=false
4280  # Loop through the user's path and test for each of PROGNAME-LIST
4281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284  IFS=$as_save_IFS
4285  test -z "$as_dir" && as_dir=.
4286    for ac_prog in sed gsed; do
4287    for ac_exec_ext in '' $ac_executable_extensions; do
4288      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4289      as_fn_executable_p "$ac_path_SED" || continue
4290# Check for GNU ac_path_SED and select it if it is found.
4291  # Check for GNU $ac_path_SED
4292case `"$ac_path_SED" --version 2>&1` in
4293*GNU*)
4294  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4295*)
4296  ac_count=0
4297  $as_echo_n 0123456789 >"conftest.in"
4298  while :
4299  do
4300    cat "conftest.in" "conftest.in" >"conftest.tmp"
4301    mv "conftest.tmp" "conftest.in"
4302    cp "conftest.in" "conftest.nl"
4303    $as_echo '' >> "conftest.nl"
4304    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4305    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4306    as_fn_arith $ac_count + 1 && ac_count=$as_val
4307    if test $ac_count -gt ${ac_path_SED_max-0}; then
4308      # Best one so far, save it but keep looking for a better one
4309      ac_cv_path_SED="$ac_path_SED"
4310      ac_path_SED_max=$ac_count
4311    fi
4312    # 10*(2^10) chars as input seems more than enough
4313    test $ac_count -gt 10 && break
4314  done
4315  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4316esac
4317
4318      $ac_path_SED_found && break 3
4319    done
4320  done
4321  done
4322IFS=$as_save_IFS
4323  if test -z "$ac_cv_path_SED"; then
4324    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4325  fi
4326else
4327  ac_cv_path_SED=$SED
4328fi
4329
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4332$as_echo "$ac_cv_path_SED" >&6; }
4333 SED="$ac_cv_path_SED"
4334  rm -f conftest.sed
4335
4336
4337# Grab target_cpu, so we can use it in the Solaris pkginfo file
4338# Make sure we can run config.sub.
4339$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4340  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4343$as_echo_n "checking build system type... " >&6; }
4344if ${ac_cv_build+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  ac_build_alias=$build_alias
4348test "x$ac_build_alias" = x &&
4349  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4350test "x$ac_build_alias" = x &&
4351  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4352ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4353  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4354
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4357$as_echo "$ac_cv_build" >&6; }
4358case $ac_cv_build in
4359*-*-*) ;;
4360*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4361esac
4362build=$ac_cv_build
4363ac_save_IFS=$IFS; IFS='-'
4364set x $ac_cv_build
4365shift
4366build_cpu=$1
4367build_vendor=$2
4368shift; shift
4369# Remember, the first character of IFS is used to create $*,
4370# except with old shells:
4371build_os=$*
4372IFS=$ac_save_IFS
4373case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4374
4375
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4377$as_echo_n "checking host system type... " >&6; }
4378if ${ac_cv_host+:} false; then :
4379  $as_echo_n "(cached) " >&6
4380else
4381  if test "x$host_alias" = x; then
4382  ac_cv_host=$ac_cv_build
4383else
4384  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4385    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4386fi
4387
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4390$as_echo "$ac_cv_host" >&6; }
4391case $ac_cv_host in
4392*-*-*) ;;
4393*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4394esac
4395host=$ac_cv_host
4396ac_save_IFS=$IFS; IFS='-'
4397set x $ac_cv_host
4398shift
4399host_cpu=$1
4400host_vendor=$2
4401shift; shift
4402# Remember, the first character of IFS is used to create $*,
4403# except with old shells:
4404host_os=$*
4405IFS=$ac_save_IFS
4406case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4407
4408
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4410$as_echo_n "checking target system type... " >&6; }
4411if ${ac_cv_target+:} false; then :
4412  $as_echo_n "(cached) " >&6
4413else
4414  if test "x$target_alias" = x; then
4415  ac_cv_target=$ac_cv_host
4416else
4417  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4418    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4419fi
4420
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4423$as_echo "$ac_cv_target" >&6; }
4424case $ac_cv_target in
4425*-*-*) ;;
4426*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4427esac
4428target=$ac_cv_target
4429ac_save_IFS=$IFS; IFS='-'
4430set x $ac_cv_target
4431shift
4432target_cpu=$1
4433target_vendor=$2
4434shift; shift
4435# Remember, the first character of IFS is used to create $*,
4436# except with old shells:
4437target_os=$*
4438IFS=$ac_save_IFS
4439case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4440
4441
4442# The aliases save the names the user supplied, while $host etc.
4443# will get canonicalized.
4444test -n "$target_alias" &&
4445  test "$program_prefix$program_suffix$program_transform_name" = \
4446    NONENONEs,x,x, &&
4447  program_prefix=${target_alias}-
4448
4449# Look for an extended grep
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4451$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4452if ${ac_cv_path_GREP+:} false; then :
4453  $as_echo_n "(cached) " >&6
4454else
4455  if test -z "$GREP"; then
4456  ac_path_GREP_found=false
4457  # Loop through the user's path and test for each of PROGNAME-LIST
4458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460do
4461  IFS=$as_save_IFS
4462  test -z "$as_dir" && as_dir=.
4463    for ac_prog in grep ggrep; do
4464    for ac_exec_ext in '' $ac_executable_extensions; do
4465      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4466      as_fn_executable_p "$ac_path_GREP" || continue
4467# Check for GNU ac_path_GREP and select it if it is found.
4468  # Check for GNU $ac_path_GREP
4469case `"$ac_path_GREP" --version 2>&1` in
4470*GNU*)
4471  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4472*)
4473  ac_count=0
4474  $as_echo_n 0123456789 >"conftest.in"
4475  while :
4476  do
4477    cat "conftest.in" "conftest.in" >"conftest.tmp"
4478    mv "conftest.tmp" "conftest.in"
4479    cp "conftest.in" "conftest.nl"
4480    $as_echo 'GREP' >> "conftest.nl"
4481    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483    as_fn_arith $ac_count + 1 && ac_count=$as_val
4484    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4485      # Best one so far, save it but keep looking for a better one
4486      ac_cv_path_GREP="$ac_path_GREP"
4487      ac_path_GREP_max=$ac_count
4488    fi
4489    # 10*(2^10) chars as input seems more than enough
4490    test $ac_count -gt 10 && break
4491  done
4492  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493esac
4494
4495      $ac_path_GREP_found && break 3
4496    done
4497  done
4498  done
4499IFS=$as_save_IFS
4500  if test -z "$ac_cv_path_GREP"; then
4501    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502  fi
4503else
4504  ac_cv_path_GREP=$GREP
4505fi
4506
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4509$as_echo "$ac_cv_path_GREP" >&6; }
4510 GREP="$ac_cv_path_GREP"
4511
4512
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4514$as_echo_n "checking for egrep... " >&6; }
4515if ${ac_cv_path_EGREP+:} false; then :
4516  $as_echo_n "(cached) " >&6
4517else
4518  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4519   then ac_cv_path_EGREP="$GREP -E"
4520   else
4521     if test -z "$EGREP"; then
4522  ac_path_EGREP_found=false
4523  # Loop through the user's path and test for each of PROGNAME-LIST
4524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529    for ac_prog in egrep; do
4530    for ac_exec_ext in '' $ac_executable_extensions; do
4531      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4532      as_fn_executable_p "$ac_path_EGREP" || continue
4533# Check for GNU ac_path_EGREP and select it if it is found.
4534  # Check for GNU $ac_path_EGREP
4535case `"$ac_path_EGREP" --version 2>&1` in
4536*GNU*)
4537  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4538*)
4539  ac_count=0
4540  $as_echo_n 0123456789 >"conftest.in"
4541  while :
4542  do
4543    cat "conftest.in" "conftest.in" >"conftest.tmp"
4544    mv "conftest.tmp" "conftest.in"
4545    cp "conftest.in" "conftest.nl"
4546    $as_echo 'EGREP' >> "conftest.nl"
4547    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549    as_fn_arith $ac_count + 1 && ac_count=$as_val
4550    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4551      # Best one so far, save it but keep looking for a better one
4552      ac_cv_path_EGREP="$ac_path_EGREP"
4553      ac_path_EGREP_max=$ac_count
4554    fi
4555    # 10*(2^10) chars as input seems more than enough
4556    test $ac_count -gt 10 && break
4557  done
4558  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559esac
4560
4561      $ac_path_EGREP_found && break 3
4562    done
4563  done
4564  done
4565IFS=$as_save_IFS
4566  if test -z "$ac_cv_path_EGREP"; then
4567    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568  fi
4569else
4570  ac_cv_path_EGREP=$EGREP
4571fi
4572
4573   fi
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4576$as_echo "$ac_cv_path_EGREP" >&6; }
4577 EGREP="$ac_cv_path_EGREP"
4578
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4582$as_echo_n "checking whether ln -s works... " >&6; }
4583LN_S=$as_ln_s
4584if test "$LN_S" = "ln -s"; then
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4586$as_echo "yes" >&6; }
4587else
4588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4589$as_echo "no, using $LN_S" >&6; }
4590fi
4591
4592
4593# Find a good install program.  We prefer a C program (faster),
4594# so one script is as good as another.  But avoid the broken or
4595# incompatible versions:
4596# SysV /etc/install, /usr/sbin/install
4597# SunOS /usr/etc/install
4598# IRIX /sbin/install
4599# AIX /bin/install
4600# AmigaOS /C/install, which installs bootblocks on floppy discs
4601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4602# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4604# OS/2's system install, which has a completely different semantic
4605# ./install, which can be erroneously created by make from ./install.sh.
4606# Reject install programs that cannot install multiple files.
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4608$as_echo_n "checking for a BSD-compatible install... " >&6; }
4609if test -z "$INSTALL"; then
4610if ${ac_cv_path_install+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616  IFS=$as_save_IFS
4617  test -z "$as_dir" && as_dir=.
4618    # Account for people who put trailing slashes in PATH elements.
4619case $as_dir/ in #((
4620  ./ | .// | /[cC]/* | \
4621  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4622  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4623  /usr/ucb/* ) ;;
4624  *)
4625    # OSF1 and SCO ODT 3.0 have their own names for install.
4626    # Don't use installbsd from OSF since it installs stuff as root
4627    # by default.
4628    for ac_prog in ginstall scoinst install; do
4629      for ac_exec_ext in '' $ac_executable_extensions; do
4630	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4631	  if test $ac_prog = install &&
4632	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4633	    # AIX install.  It has an incompatible calling convention.
4634	    :
4635	  elif test $ac_prog = install &&
4636	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4637	    # program-specific install script used by HP pwplus--don't use.
4638	    :
4639	  else
4640	    rm -rf conftest.one conftest.two conftest.dir
4641	    echo one > conftest.one
4642	    echo two > conftest.two
4643	    mkdir conftest.dir
4644	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4645	      test -s conftest.one && test -s conftest.two &&
4646	      test -s conftest.dir/conftest.one &&
4647	      test -s conftest.dir/conftest.two
4648	    then
4649	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4650	      break 3
4651	    fi
4652	  fi
4653	fi
4654      done
4655    done
4656    ;;
4657esac
4658
4659  done
4660IFS=$as_save_IFS
4661
4662rm -rf conftest.one conftest.two conftest.dir
4663
4664fi
4665  if test "${ac_cv_path_install+set}" = set; then
4666    INSTALL=$ac_cv_path_install
4667  else
4668    # As a last resort, use the slow shell script.  Don't cache a
4669    # value for INSTALL within a source directory, because that will
4670    # break other packages using the cache if that directory is
4671    # removed, or if the value is a relative name.
4672    INSTALL=$ac_install_sh
4673  fi
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4676$as_echo "$INSTALL" >&6; }
4677
4678# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4679# It thinks the first close brace ends the variable substitution.
4680test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4681
4682test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4683
4684test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4685
4686# If $INSTALL is relative path to our fallback install-sh, then convert
4687# to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4688# may try to use it from a changed working directory.
4689if test "$INSTALL" = "build/install-sh -c"; then
4690  INSTALL="$abs_srcdir/$INSTALL"
4691fi
4692
4693if test -z "$MKDIR"; then
4694  MKDIR="$INSTALL -d"
4695fi
4696
4697
4698# ==== Libraries, for which we may have source to build ======================
4699
4700
4701APR_VER_REGEXES="1\.[3-9]\. 2\."
4702
4703
4704  APR_WANTED_REGEXES="$APR_VER_REGEXES"
4705
4706  { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4707$as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4708
4709
4710  apr_found="no"
4711
4712  if test "$ac_cv_emxos2" = "yes"; then
4713    # Scripts don't pass test -x on OS/2
4714    TEST_X="test -f"
4715  else
4716    TEST_X="test -x"
4717  fi
4718
4719  acceptable_majors="2 1 0"
4720
4721  apr_temp_acceptable_apr_config=""
4722  for apr_temp_major in $acceptable_majors
4723  do
4724    case $apr_temp_major in
4725      0)
4726      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4727      ;;
4728      *)
4729      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4730      ;;
4731    esac
4732  done
4733
4734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4735$as_echo_n "checking for APR... " >&6; }
4736
4737# Check whether --with-apr was given.
4738if test "${with_apr+set}" = set; then :
4739  withval=$with_apr;
4740    if test "$withval" = "no" || test "$withval" = "yes"; then
4741      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4742    fi
4743
4744    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4745    do
4746      for lookdir in "$withval/bin" "$withval"
4747      do
4748        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4749          apr_found="yes"
4750          apr_config="$lookdir/$apr_temp_apr_config_file"
4751          break 2
4752        fi
4753      done
4754    done
4755
4756    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4757      apr_found="yes"
4758      apr_config="$withval"
4759    fi
4760
4761            if test "$apr_found" != "yes"; then
4762      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
4763    fi
4764
4765else
4766
4767        if test -d """"; then
4768      apr_temp_abs_srcdir="`cd "" && pwd`"
4769      apr_found="reconfig"
4770      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4771      case $apr_bundled_major in
4772        "")
4773          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4774        ;;
4775        0)
4776          apr_temp_apr_config_file="apr-config"
4777        ;;
4778        *)
4779          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4780        ;;
4781      esac
4782      if test -n """"; then
4783        apr_config="""/$apr_temp_apr_config_file"
4784      else
4785        apr_config="""/$apr_temp_apr_config_file"
4786      fi
4787    fi
4788    if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4789      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4790      do
4791        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4792          apr_found="yes"
4793          apr_config="$apr_temp_apr_config_file"
4794          break
4795        else
4796                    for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4797            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4798              apr_found="yes"
4799              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4800              break 2
4801            fi
4802          done
4803        fi
4804      done
4805    fi
4806
4807fi
4808
4809
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4811$as_echo "$apr_found" >&6; }
4812
4813
4814  if test $apr_found = "no"; then
4815    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4816$as_echo "$as_me: WARNING: APR not found" >&2;}
4817
4818  echo "The Apache Portable Runtime (APR) library cannot be found."
4819  echo "Please install APR on this system and configure Subversion"
4820  echo "with the appropriate --with-apr option."
4821  echo ""
4822  echo "You probably need to do something similar with the Apache"
4823  echo "Portable Runtime Utility (APRUTIL) library and then configure"
4824  echo "Subversion with both the --with-apr and --with-apr-util options."
4825  echo ""
4826  as_fn_error $? "no suitable APR found" "$LINENO" 5
4827
4828  fi
4829
4830  if test $apr_found = "reconfig"; then
4831    as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4832  fi
4833
4834
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4836$as_echo_n "checking APR version... " >&6; }
4837  apr_version="`$apr_config --version`"
4838  if test $? -ne 0; then
4839    as_fn_error $? "apr-config --version failed" "$LINENO" 5
4840  fi
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4842$as_echo "$apr_version" >&6; }
4843
4844  APR_WANTED_REGEX_MATCH=0
4845  for apr_wanted_regex in $APR_WANTED_REGEXES; do
4846    if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4847      APR_WANTED_REGEX_MATCH=1
4848      break
4849    fi
4850  done
4851
4852  if test $APR_WANTED_REGEX_MATCH -eq 0; then
4853    echo "wanted regexes are $APR_WANTED_REGEXES"
4854    as_fn_error $? "invalid apr version found" "$LINENO" 5
4855  fi
4856
4857
4858  CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4859  if test $? -ne 0; then
4860    as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4861  fi
4862
4863  CFLAGS="$CFLAGS `$apr_config --cflags`"
4864  if test $? -ne 0; then
4865    as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4866  fi
4867
4868  apr_ldflags="`$apr_config --ldflags`"
4869  if test $? -ne 0; then
4870    as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4871  fi
4872  LDFLAGS="$LDFLAGS `
4873  input_flags="$apr_ldflags"
4874  output_flags=""
4875  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4876  for flag in $input_flags; do
4877    filter="no"
4878    for dir in $filtered_dirs; do
4879      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4880        filter="yes"
4881        break
4882      fi
4883    done
4884    if test "$filter" = "no"; then
4885      output_flags="$output_flags $flag"
4886    fi
4887  done
4888  if test -n "$output_flags"; then
4889    printf "%s" "${output_flags# }"
4890  fi
4891`"
4892
4893  SVN_APR_INCLUDES="`$apr_config --includes`"
4894  if test $? -ne 0; then
4895    as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4896  fi
4897
4898  if test "$enable_all_static" = "yes"; then
4899    SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4900    if test $? -ne 0; then
4901      as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4902    fi
4903  else
4904    SVN_APR_LIBS="`$apr_config --link-ld`"
4905    if test $? -ne 0; then
4906      as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4907    fi
4908  fi
4909  SVN_APR_LIBS="`
4910  input_flags="$SVN_APR_LIBS"
4911  output_flags=""
4912  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4913  for flag in $input_flags; do
4914    filter="no"
4915    for dir in $filtered_dirs; do
4916      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4917        filter="yes"
4918        break
4919      fi
4920    done
4921    if test "$filter" = "no"; then
4922      output_flags="$output_flags $flag"
4923    fi
4924  done
4925  if test -n "$output_flags"; then
4926    printf "%s" "${output_flags# }"
4927  fi
4928`"
4929
4930  SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4931  if test $? -ne 0; then
4932    as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4933  fi
4934
4935  SVN_APR_CONFIG="$apr_config"
4936
4937
4938
4939
4940
4941
4942if test `expr $apr_version : 2` -ne 0; then
4943      svn_lib_ver=2
4944    apu_config=$apr_config
4945
4946  SVN_APRUTIL_CONFIG="$apu_config"
4947
4948
4949  SVN_APR_MAJOR_VERSION=2
4950else
4951  svn_lib_ver=0
4952  APU_VER_REGEXES="1\.[3-9]\."
4953
4954  APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4955
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4957$as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4958
4959
4960  apu_found="no"
4961
4962  if test "$ac_cv_emxos2" = "yes"; then
4963    # Scripts don't pass test -x on OS/2
4964    TEST_X="test -f"
4965  else
4966    TEST_X="test -x"
4967  fi
4968
4969  acceptable_majors="1 0"
4970
4971  apu_temp_acceptable_apu_config=""
4972  for apu_temp_major in $acceptable_majors
4973  do
4974    case $apu_temp_major in
4975      0)
4976      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4977      ;;
4978      *)
4979      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4980      ;;
4981    esac
4982  done
4983
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4985$as_echo_n "checking for APR-util... " >&6; }
4986
4987# Check whether --with-apr-util was given.
4988if test "${with_apr_util+set}" = set; then :
4989  withval=$with_apr_util;
4990    if test "$withval" = "no" || test "$withval" = "yes"; then
4991      as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4992    fi
4993
4994    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4995    do
4996      for lookdir in "$withval/bin" "$withval"
4997      do
4998        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4999          apu_found="yes"
5000          apu_config="$lookdir/$apu_temp_apu_config_file"
5001          break 2
5002        fi
5003      done
5004    done
5005
5006    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
5007      apu_found="yes"
5008      apu_config="$withval"
5009    fi
5010
5011            if test "$apu_found" != "yes"; then
5012      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
5013    fi
5014
5015else
5016
5017        if test -d """"; then
5018      apu_temp_abs_srcdir="`cd "" && pwd`"
5019      apu_found="reconfig"
5020      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
5021      case $apu_bundled_major in
5022        "")
5023          as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
5024        ;;
5025        0)
5026          apu_temp_apu_config_file="apu-config"
5027        ;;
5028        *)
5029          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
5030        ;;
5031      esac
5032      if test -n """"; then
5033        apu_config="""/$apu_temp_apu_config_file"
5034      else
5035        apu_config="""/$apu_temp_apu_config_file"
5036      fi
5037    fi
5038    if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
5039      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
5040      do
5041        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
5042          apu_found="yes"
5043          apu_config="$apu_temp_apu_config_file"
5044          break
5045        else
5046                    for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
5047            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
5048              apu_found="yes"
5049              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
5050              break 2
5051            fi
5052          done
5053        fi
5054      done
5055    fi
5056
5057fi
5058
5059
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
5061$as_echo "$apu_found" >&6; }
5062
5063
5064  if test $apu_found = "no"; then
5065    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
5066$as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
5067
5068  echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
5069  echo "Install APRUTIL on this system and configure Subversion with the"
5070  echo " appropriate --with-apr-util option."
5071  echo ""
5072  as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
5073
5074  fi
5075
5076  if test $apu_found = "reconfig"; then
5077    as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
5078  fi
5079
5080
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
5082$as_echo_n "checking APRUTIL version... " >&6; }
5083  apu_version="`$apu_config --version`"
5084  if test $? -ne 0; then
5085    # This is a hack as suggested by Ben Collins-Sussman.  It can be
5086    # removed after apache 2.0.44 has been released.  (The apu-config
5087    # shipped in 2.0.43 contains a correct version number, but
5088    # stupidly doesn't understand the --version switch.)
5089    apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
5090    #AC_MSG_ERROR([
5091    #    apu-config --version failed.
5092    #    Your apu-config doesn't support the --version switch, please upgrade
5093    #    to APR-UTIL more recent than 2002-Nov-05.])
5094  fi
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
5096$as_echo "$apu_version" >&6; }
5097
5098  APU_WANTED_REGEX_MATCH=0
5099  for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
5100    if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
5101      APU_WANTED_REGEX_MATCH=1
5102      break
5103    fi
5104  done
5105
5106  if test $APU_WANTED_REGEX_MATCH -eq 0; then
5107    echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
5108    as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
5109  fi
5110
5111
5112  apu_ldflags="`$apu_config --ldflags`"
5113  if test $? -ne 0; then
5114    as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5115  fi
5116  LDFLAGS="$LDFLAGS `
5117  input_flags="$apu_ldflags"
5118  output_flags=""
5119  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5120  for flag in $input_flags; do
5121    filter="no"
5122    for dir in $filtered_dirs; do
5123      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5124        filter="yes"
5125        break
5126      fi
5127    done
5128    if test "$filter" = "no"; then
5129      output_flags="$output_flags $flag"
5130    fi
5131  done
5132  if test -n "$output_flags"; then
5133    printf "%s" "${output_flags# }"
5134  fi
5135`"
5136
5137  SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5138  if test $? -ne 0; then
5139    as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5140  fi
5141
5142  if test "$enable_all_static" = "yes"; then
5143    SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5144    if test $? -ne 0; then
5145      as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5146    fi
5147  else
5148    SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5149    if test $? -ne 0; then
5150      as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5151    fi
5152  fi
5153  SVN_APRUTIL_LIBS="`
5154  input_flags="$SVN_APRUTIL_LIBS"
5155  output_flags=""
5156  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5157  for flag in $input_flags; do
5158    filter="no"
5159    for dir in $filtered_dirs; do
5160      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5161        filter="yes"
5162        break
5163      fi
5164    done
5165    if test "$filter" = "no"; then
5166      output_flags="$output_flags $flag"
5167    fi
5168  done
5169  if test -n "$output_flags"; then
5170    printf "%s" "${output_flags# }"
5171  fi
5172`"
5173
5174
5175  SVN_APRUTIL_CONFIG="$apu_config"
5176
5177
5178
5179    SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5180  if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5181
5182$as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5183
5184  fi
5185
5186  SVN_APR_MAJOR_VERSION=1
5187fi
5188
5189SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5190
5191
5192cat >>confdefs.h <<_ACEOF
5193#define SVN_SOVERSION $svn_lib_ver
5194_ACEOF
5195
5196
5197# Extract the first word of "pkg-config", so it can be a program name with args.
5198set dummy pkg-config; ac_word=$2
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200$as_echo_n "checking for $ac_word... " >&6; }
5201if ${ac_cv_path_PKG_CONFIG+:} false; then :
5202  $as_echo_n "(cached) " >&6
5203else
5204  case $PKG_CONFIG in
5205  [\\/]* | ?:[\\/]*)
5206  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5207  ;;
5208  *)
5209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212  IFS=$as_save_IFS
5213  test -z "$as_dir" && as_dir=.
5214    for ac_exec_ext in '' $ac_executable_extensions; do
5215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218    break 2
5219  fi
5220done
5221  done
5222IFS=$as_save_IFS
5223
5224  ;;
5225esac
5226fi
5227PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5228if test -n "$PKG_CONFIG"; then
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5230$as_echo "$PKG_CONFIG" >&6; }
5231else
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }
5234fi
5235
5236
5237
5238
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5240$as_echo_n "checking for ANSI C header files... " >&6; }
5241if ${ac_cv_header_stdc+:} false; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246#include <stdlib.h>
5247#include <stdarg.h>
5248#include <string.h>
5249#include <float.h>
5250
5251int
5252main ()
5253{
5254
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259if ac_fn_c_try_compile "$LINENO"; then :
5260  ac_cv_header_stdc=yes
5261else
5262  ac_cv_header_stdc=no
5263fi
5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265
5266if test $ac_cv_header_stdc = yes; then
5267  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h.  */
5270#include <string.h>
5271
5272_ACEOF
5273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274  $EGREP "memchr" >/dev/null 2>&1; then :
5275
5276else
5277  ac_cv_header_stdc=no
5278fi
5279rm -f conftest*
5280
5281fi
5282
5283if test $ac_cv_header_stdc = yes; then
5284  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287#include <stdlib.h>
5288
5289_ACEOF
5290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291  $EGREP "free" >/dev/null 2>&1; then :
5292
5293else
5294  ac_cv_header_stdc=no
5295fi
5296rm -f conftest*
5297
5298fi
5299
5300if test $ac_cv_header_stdc = yes; then
5301  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5302  if test "$cross_compiling" = yes; then :
5303  :
5304else
5305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307#include <ctype.h>
5308#include <stdlib.h>
5309#if ((' ' & 0x0FF) == 0x020)
5310# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5311# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312#else
5313# define ISLOWER(c) \
5314		   (('a' <= (c) && (c) <= 'i') \
5315		     || ('j' <= (c) && (c) <= 'r') \
5316		     || ('s' <= (c) && (c) <= 'z'))
5317# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5318#endif
5319
5320#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5321int
5322main ()
5323{
5324  int i;
5325  for (i = 0; i < 256; i++)
5326    if (XOR (islower (i), ISLOWER (i))
5327	|| toupper (i) != TOUPPER (i))
5328      return 2;
5329  return 0;
5330}
5331_ACEOF
5332if ac_fn_c_try_run "$LINENO"; then :
5333
5334else
5335  ac_cv_header_stdc=no
5336fi
5337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5338  conftest.$ac_objext conftest.beam conftest.$ac_ext
5339fi
5340
5341fi
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5344$as_echo "$ac_cv_header_stdc" >&6; }
5345if test $ac_cv_header_stdc = yes; then
5346
5347$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5348
5349fi
5350
5351# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5353		  inttypes.h stdint.h unistd.h
5354do :
5355  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5357"
5358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5359  cat >>confdefs.h <<_ACEOF
5360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361_ACEOF
5362
5363fi
5364
5365done
5366
5367
5368
5369  serf_found=no
5370  serf_required=no
5371  serf_skip=no
5372
5373  serf_check_major="1"
5374  serf_check_minor="3"
5375  serf_check_patch="4"
5376  serf_check_version="1.3.4"
5377
5378
5379# Check whether --with-serf was given.
5380if test "${with_serf+set}" = set; then :
5381  withval=$with_serf;
5382    if test "$withval" = "yes" ; then
5383      serf_required=yes
5384    elif test "$withval" = "no" ; then
5385      serf_skip=yes
5386    else
5387      serf_required=yes
5388      serf_prefix="$withval"
5389    fi
5390
5391fi
5392
5393
5394  if test "$serf_skip" = "no" ; then
5395
5396  { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5397$as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5398  if test -n "$PKG_CONFIG"; then
5399    for serf_major in serf-2 serf-1; do
5400      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5401$as_echo_n "checking for $serf_major library... " >&6; }
5402      if test -n "$serf_prefix" ; then
5403                                                        if test -e "$serf_prefix/$serf_major.pc" ; then
5404          serf_pc_arg="$serf_prefix/$serf_major.pc"
5405        elif test -e "$serf_prefix/lib/pkgconfig/$serf_major.pc" ; then
5406          serf_pc_arg="$serf_prefix/lib/pkgconfig/$serf_major.pc"
5407        else
5408          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409$as_echo "no" >&6; }
5410          continue
5411        fi
5412      else
5413        serf_pc_arg="$serf_major"
5414      fi
5415      if $PKG_CONFIG $serf_pc_arg --exists; then
5416        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417$as_echo "yes" >&6; }
5418        { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5419$as_echo_n "checking serf library version... " >&6; }
5420        SERF_VERSION=`$PKG_CONFIG $serf_pc_arg --modversion`
5421        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5422$as_echo "$SERF_VERSION" >&6; }
5423        { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5424$as_echo_n "checking serf version is suitable... " >&6; }
5425        if $PKG_CONFIG $serf_pc_arg --atleast-version=$serf_check_version; then
5426          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5427$as_echo "yes" >&6; }
5428          serf_found=yes
5429          SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_pc_arg --cflags | $SED -e 's/-D[^ ]*//g'`
5430          SVN_SERF_LIBS=`$PKG_CONFIG $serf_pc_arg --libs-only-l`
5431                    LDFLAGS="$LDFLAGS `$PKG_CONFIG $serf_pc_arg --libs | $SED -e 's/-l[^ ]*//g'`"
5432          break
5433        else
5434          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5437$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5438        fi
5439      else
5440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441$as_echo "no" >&6; }
5442      fi
5443    done
5444  fi
5445
5446    if test -n "$serf_prefix" && test "$serf_found" = "no" ; then
5447
5448  { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5449$as_echo "$as_me: serf library configuration via prefix" >&6;}
5450  serf_required=yes
5451  for serf_major in serf-2 serf-1; do
5452    if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5453    save_cppflags="$CPPFLAGS"
5454    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5455    for ac_header in serf.h
5456do :
5457  ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5458if test "x$ac_cv_header_serf_h" = xyes; then :
5459  cat >>confdefs.h <<_ACEOF
5460#define HAVE_SERF_H 1
5461_ACEOF
5462
5463      save_ldflags="$LDFLAGS"
5464      LDFLAGS="$LDFLAGS `
5465  input_flags="-L$serf_prefix/lib"
5466  output_flags=""
5467  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5468  for flag in $input_flags; do
5469    filter="no"
5470    for dir in $filtered_dirs; do
5471      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5472        filter="yes"
5473        break
5474      fi
5475    done
5476    if test "$filter" = "no"; then
5477      output_flags="$output_flags $flag"
5478    fi
5479  done
5480  if test -n "$output_flags"; then
5481    printf "%s" "${output_flags# }"
5482  fi
5483`"
5484      as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5486$as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5487if eval \${$as_ac_Lib+:} false; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  ac_check_lib_save_LIBS=$LIBS
5491LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h.  */
5494
5495/* Override any GCC internal prototype to avoid an error.
5496   Use char because int might match the return type of a GCC
5497   builtin and then its argument prototype would still apply.  */
5498#ifdef __cplusplus
5499extern "C"
5500#endif
5501char serf_context_create ();
5502int
5503main ()
5504{
5505return serf_context_create ();
5506  ;
5507  return 0;
5508}
5509_ACEOF
5510if ac_fn_c_try_link "$LINENO"; then :
5511  eval "$as_ac_Lib=yes"
5512else
5513  eval "$as_ac_Lib=no"
5514fi
5515rm -f core conftest.err conftest.$ac_objext \
5516    conftest$ac_exeext conftest.$ac_ext
5517LIBS=$ac_check_lib_save_LIBS
5518fi
5519eval ac_res=\$$as_ac_Lib
5520	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5521$as_echo "$ac_res" >&6; }
5522if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5523
5524        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526
5527#include <stdlib.h>
5528#include "serf.h"
5529
5530int
5531main ()
5532{
5533
5534#if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5535#error Serf version too old: need $serf_check_version
5536#endif
5537
5538  ;
5539  return 0;
5540}
5541_ACEOF
5542if ac_fn_c_try_compile "$LINENO"; then :
5543  serf_found=yes
5544else
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5546$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5547      serf_found=no
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550fi
5551
5552    LDFLAGS="$save_ldflags"
5553fi
5554
5555done
5556
5557    CPPFLAGS="$save_cppflags"
5558    test $serf_found = yes && break
5559  done
5560
5561  if test $serf_found = "yes"; then
5562    SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5563    if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5564      SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5565    else
5566      SVN_SERF_LIBS="-l$serf_major"
5567      LDFLAGS="$LDFLAGS `
5568  input_flags="-L$serf_prefix/lib"
5569  output_flags=""
5570  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5571  for flag in $input_flags; do
5572    filter="no"
5573    for dir in $filtered_dirs; do
5574      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5575        filter="yes"
5576        break
5577      fi
5578    done
5579    if test "$filter" = "no"; then
5580      output_flags="$output_flags $flag"
5581    fi
5582  done
5583  if test -n "$output_flags"; then
5584    printf "%s" "${output_flags# }"
5585  fi
5586`"
5587    fi
5588  fi
5589
5590    fi
5591
5592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5593$as_echo_n "checking was serf enabled... " >&6; }
5594    if test "$serf_found" = "yes"; then
5595      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596$as_echo "yes" >&6; }
5597    else
5598      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }
5600
5601  echo ""
5602  echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5603  echo "will not be built.  If you want to build libsvn_ra_serf, please"
5604  echo "install serf $serf_check_version or newer."
5605  echo ""
5606
5607      if test "$serf_required" = "yes"; then
5608        as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5609      fi
5610    fi
5611  fi
5612
5613  svn_lib_serf=$serf_found
5614
5615
5616
5617
5618
5619if test "$svn_lib_serf" = "yes"; then
5620
5621$as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5622
5623fi
5624
5625
5626  apr_memcache_found=no
5627
5628
5629# Check whether --with-apr_memcache was given.
5630if test "${with_apr_memcache+set}" = set; then :
5631  withval=$with_apr_memcache;
5632    if test "$withval" = "yes" ; then
5633      as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5634    else
5635      { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5636$as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5637      apr_memcache_prefix=$withval
5638      save_cppflags="$CPPFLAGS"
5639      CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5640      ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5641if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5642
5643        save_ldflags="$LDFLAGS"
5644        LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5645        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5646$as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5647if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  ac_check_lib_save_LIBS=$LIBS
5651LIBS="-lapr_memcache  $LIBS"
5652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654
5655/* Override any GCC internal prototype to avoid an error.
5656   Use char because int might match the return type of a GCC
5657   builtin and then its argument prototype would still apply.  */
5658#ifdef __cplusplus
5659extern "C"
5660#endif
5661char apr_memcache_create ();
5662int
5663main ()
5664{
5665return apr_memcache_create ();
5666  ;
5667  return 0;
5668}
5669_ACEOF
5670if ac_fn_c_try_link "$LINENO"; then :
5671  ac_cv_lib_apr_memcache_apr_memcache_create=yes
5672else
5673  ac_cv_lib_apr_memcache_apr_memcache_create=no
5674fi
5675rm -f core conftest.err conftest.$ac_objext \
5676    conftest$ac_exeext conftest.$ac_ext
5677LIBS=$ac_check_lib_save_LIBS
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5680$as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5681if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5682  apr_memcache_found="standalone"
5683fi
5684
5685        LDFLAGS="$save_ldflags"
5686fi
5687
5688
5689      CPPFLAGS="$save_cppflags"
5690    fi
5691
5692else
5693
5694    { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5695$as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5696    save_cppflags="$CPPFLAGS"
5697    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5698    ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5699if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5700
5701      save_ldflags="$LDFLAGS"
5702      LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5703      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5704$as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5705if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5706  $as_echo_n "(cached) " >&6
5707else
5708  ac_check_lib_save_LIBS=$LIBS
5709LIBS="-laprutil-1  $LIBS"
5710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712
5713/* Override any GCC internal prototype to avoid an error.
5714   Use char because int might match the return type of a GCC
5715   builtin and then its argument prototype would still apply.  */
5716#ifdef __cplusplus
5717extern "C"
5718#endif
5719char apr_memcache_create ();
5720int
5721main ()
5722{
5723return apr_memcache_create ();
5724  ;
5725  return 0;
5726}
5727_ACEOF
5728if ac_fn_c_try_link "$LINENO"; then :
5729  ac_cv_lib_aprutil_1_apr_memcache_create=yes
5730else
5731  ac_cv_lib_aprutil_1_apr_memcache_create=no
5732fi
5733rm -f core conftest.err conftest.$ac_objext \
5734    conftest$ac_exeext conftest.$ac_ext
5735LIBS=$ac_check_lib_save_LIBS
5736fi
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5738$as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5739if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5740  apr_memcache_found="aprutil"
5741fi
5742
5743      LDFLAGS="$save_ldflags"
5744fi
5745
5746
5747    CPPFLAGS="$save_cppflags"
5748
5749fi
5750
5751
5752
5753  if test $apr_memcache_found = "standalone"; then
5754    SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5755    SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5756    svn_lib_apr_memcache=yes
5757  elif test $apr_memcache_found = "aprutil"; then
5758    SVN_APR_MEMCACHE_INCLUDES=""
5759    SVN_APR_MEMCACHE_LIBS=""
5760    svn_lib_apr_memcache=yes
5761  elif test $apr_memcache_found = "reconfig"; then
5762    svn_lib_apr_memcache=yes
5763  else
5764    svn_lib_apr_memcache=no
5765  fi
5766
5767
5768
5769
5770
5771if test "$svn_lib_apr_memcache" = "yes"; then
5772
5773$as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5774
5775fi
5776
5777
5778
5779
5780
5781HTTPD_WANTED_MMN="20051115"
5782
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5784$as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5785
5786# Check whether --with-apxs was given.
5787if test "${with_apxs+set}" = set; then :
5788  withval=$with_apxs;
5789    if test "$withval" = "yes"; then
5790      APXS=apxs
5791    else
5792      APXS="$withval"
5793    fi
5794    APXS_EXPLICIT=1
5795
5796fi
5797
5798
5799if test -z "$APXS"; then
5800  for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5801    if test -f "$i/apxs2"; then
5802      APXS="$i/apxs2"
5803      break
5804    fi
5805    if test -f "$i/apxs"; then
5806      APXS="$i/apxs"
5807      break
5808    fi
5809  done
5810fi
5811
5812if test -n "$APXS" && test "$APXS" != "no"; then
5813    APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5814    if test -r $APXS_INCLUDE/mod_dav.h; then
5815        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5816$as_echo "found at $APXS" >&6; }
5817
5818        { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5819$as_echo_n "checking httpd version... " >&6; }
5820        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h.  */
5822
5823#include "$APXS_INCLUDE/ap_mmn.h"
5824#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5825VERSION_OKAY
5826#endif
5827_ACEOF
5828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5829  $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5831$as_echo "recent enough" >&6; }
5832else
5833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5834$as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5835         if test "$APXS_EXPLICIT" != ""; then
5836             as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5837         fi
5838         APXS=""
5839
5840fi
5841rm -f conftest*
5842
5843
5844    elif test "$APXS_EXPLICIT" != ""; then
5845        as_fn_error $? "no - APXS refers to an old version of Apache
5846                      Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5847    else
5848        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5849$as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5850        APXS=""
5851    fi
5852else
5853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855fi
5856
5857# check for some busted versions of mod_dav
5858# in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5859# troublesome for Subversion:
5860# PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5861# PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5862# PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5863if test -n "$APXS" && test "$APXS" != "no"; then
5864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5865$as_echo_n "checking mod_dav version... " >&6; }
5866  HTTPD_MAJOR=`$SED -ne '/^#define AP_SERVER_MAJORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5867  HTTPD_MINOR=`$SED -ne '/^#define AP_SERVER_MINORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5868  HTTPD_PATCH=`$SED -ne '/^#define AP_SERVER_PATCHLEVEL_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'`
5869  HTTPD_VERSION="${HTTPD_MAJOR}.${HTTPD_MINOR}.${HTTPD_PATCH}"
5870  case "$HTTPD_VERSION" in
5871    2.2.25 | 2.4.[5-6])
5872      { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5873$as_echo "broken" >&6; }
5874      as_fn_error $? "Apache httpd version $HTTPD_VERSION includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5875      ;;
5876    2.[0-9]*.[0-9]*)
5877      { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5878$as_echo "acceptable" >&6; }
5879      ;;
5880    *)
5881      { $as_echo "$as_me:${as_lineno-$LINENO}: result: unrecognised" >&5
5882$as_echo "unrecognised" >&6; }
5883      as_fn_error $? "Apache httpd version $HTTPD_VERSION not recognised" "$LINENO" 5
5884      ;;
5885  esac
5886fi
5887
5888if test -n "$APXS" && test "$APXS" != "no"; then
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5890$as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5891  apr_major_version="${apr_version%%.*}"
5892  case "$apr_major_version" in
5893    0)
5894      apache_minor_version_wanted_regex="0"
5895      ;;
5896    1)
5897      apache_minor_version_wanted_regex="[1-5]"
5898      ;;
5899    2)
5900      apache_minor_version_wanted_regex="[3-5]"
5901      ;;
5902    *)
5903      as_fn_error $? "unknown APR version" "$LINENO" 5
5904      ;;
5905  esac
5906  case $HTTPD_MINOR in
5907    $apache_minor_version_wanted_regex)
5908      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5909$as_echo "yes" >&6; }
5910      ;;
5911    *)
5912      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914      as_fn_error $? "Apache version $HTTPD_VERSION incompatible with APR version $apr_version" "$LINENO" 5
5915      ;;
5916  esac
5917fi
5918
5919
5920# Check whether --with-apache-libexecdir was given.
5921if test "${with_apache_libexecdir+set}" = set; then :
5922  withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5923else
5924  APACHE_LIBEXECDIR='no'
5925fi
5926
5927
5928INSTALL_APACHE_MODS=false
5929if test -n "$APXS" && test "$APXS" != "no"; then
5930    APXS_CC="`$APXS -q CC`"
5931    APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5932
5933    if test "$APACHE_LIBEXECDIR" = 'no'; then
5934        APACHE_LIBEXECDIR="$libexecdir"
5935    elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5936        APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5937    fi
5938
5939    for ac_header in unistd.h
5940do :
5941  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5942if test "x$ac_cv_header_unistd_h" = xyes; then :
5943  cat >>confdefs.h <<_ACEOF
5944#define HAVE_UNISTD_H 1
5945_ACEOF
5946 for ac_func in getpid
5947do :
5948  ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
5949if test "x$ac_cv_func_getpid" = xyes; then :
5950  cat >>confdefs.h <<_ACEOF
5951#define HAVE_GETPID 1
5952_ACEOF
5953
5954fi
5955done
5956
5957fi
5958
5959done
5960
5961
5962    MMN_MAJOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MAJOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MAJOR *//'`
5963    MMN_MINOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MINOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MINOR *//' | $SED -e 's/ .*//'`
5964    if test "$MMN_MAJOR" = "20120211" && test "$MMN_MINOR" -lt "47" ; then
5965      # This is httpd 2.4 and it doesn't appear to have the required
5966      # API but the installation may have been patched.
5967      # Check whether --enable-broken-httpd-auth was given.
5968if test "${enable_broken_httpd_auth+set}" = set; then :
5969  enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval
5970else
5971  broken_httpd_auth=no
5972fi
5973
5974      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ap_some_authn_required" >&5
5975$as_echo_n "checking for ap_some_authn_required... " >&6; }
5976      old_CPPFLAGS="$CPPFLAGS"
5977      CPPFLAGS="$CPPFLAGS $APACHE_INCLUDES $SVN_APR_INCLUDES"
5978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h.  */
5980#include "http_request.h"
5981_ACEOF
5982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983  $EGREP "int.*\sap_some_authn_required\s*\(" >/dev/null 2>&1; then :
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5985$as_echo "yes" >&6; }
5986                    working_auth=yes
5987else
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991rm -f conftest*
5992
5993      CPPFLAGS="$old_CPPFLAGS"
5994      if test "$working_auth" = "yes" ; then
5995
5996$as_echo "#define SVN_USE_FORCE_AUTHN 1" >>confdefs.h
5997
5998      elif test "$enable_broken_httpd_auth" = "yes"; then
5999        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6000$as_echo "$as_me: WARNING: ==============================================" >&2;}
6001        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&5
6002$as_echo "$as_me: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&2;}
6003        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&5
6004$as_echo "$as_me: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&2;}
6005        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5
6006$as_echo "$as_me: WARNING: ==============================================" >&2;}
6007
6008$as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h
6009
6010      else
6011        as_fn_error $? "Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR has broken auth (CVE-2015-3184)" "$LINENO" 5
6012      fi
6013    fi
6014
6015    BUILD_APACHE_RULE=apache-mod
6016    INSTALL_APACHE_RULE=install-mods-shared
6017    INSTALL_APACHE_MODS=true
6018    case $host in
6019      *-*-cygwin*)
6020        APACHE_LDFLAGS="-shrext .so"
6021        ;;
6022    esac
6023elif test x"$APXS" != x"no"; then
6024    echo "=================================================================="
6025    echo "WARNING: skipping the build of mod_dav_svn"
6026    echo "         try using --with-apxs"
6027    echo "=================================================================="
6028fi
6029
6030
6031
6032
6033
6034
6035
6036
6037# there aren't any flags that interest us ...
6038#if test -n "$APXS" && test "$APXS" != "no"; then
6039#  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
6040#fi
6041
6042if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
6043  echo "=================================================================="
6044  echo "WARNING: You have chosen to compile Subversion with a different"
6045  echo "         compiler than the one used to compile Apache."
6046  echo ""
6047  echo "    Current compiler:      $CC"
6048  echo "   Apache's compiler:      $APXS_CC"
6049  echo ""
6050  echo "This could cause some problems."
6051  echo "=================================================================="
6052fi
6053
6054
6055
6056SQLITE_MINIMUM_VER="3.7.12"
6057SQLITE_RECOMMENDED_VER="3.7.15.1"
6058SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
6059
6060
6061  SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
6062  SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
6063  SQLITE_URL="${SQLITE_URL}"
6064  SQLITE_PKGNAME="sqlite3"
6065
6066
6067
6068  version_string="$SQLITE_MINIMUM_VER"
6069
6070  major=`expr $version_string : '\([0-9]*\)'`
6071  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6072  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6073  if test -z "$micro"; then
6074    micro=0
6075  fi
6076  sqlite_min_ver_num=`expr $major \* 1000000 \
6077        \+ $minor \* 1000 \
6078        \+ $micro`
6079
6080
6081
6082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
6083$as_echo "$as_me: checking sqlite library" >&6;}
6084
6085
6086# Check whether --with-sqlite was given.
6087if test "${with_sqlite+set}" = set; then :
6088  withval=$with_sqlite;
6089    if test "$withval" = "yes" ; then
6090      as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
6091    else
6092      sqlite_dir="$withval"
6093    fi
6094
6095    if test -d $sqlite_dir; then
6096
6097  if test -z "$sqlite_dir"; then
6098    sqlite_dir=""
6099    sqlite_include="sqlite3.h"
6100  else
6101    sqlite_dir="$sqlite_dir"
6102    sqlite_include="$sqlite_dir/include/sqlite3.h"
6103  fi
6104
6105  save_CPPFLAGS="$CPPFLAGS"
6106  save_LDFLAGS="$LDFLAGS"
6107
6108  if test ! -z "$sqlite_dir"; then
6109    CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6110    LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6111  fi
6112
6113  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6114if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6115
6116      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6117$as_echo_n "checking sqlite library version (via header)... " >&6; }
6118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120
6121#include "$sqlite_include"
6122#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6123SQLITE_VERSION_OKAY
6124#endif
6125_ACEOF
6126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6129$as_echo "okay" >&6; }
6130                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6131$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6132if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  ac_check_lib_save_LIBS=$LIBS
6136LIBS="-lsqlite3  $LIBS"
6137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h.  */
6139
6140/* Override any GCC internal prototype to avoid an error.
6141   Use char because int might match the return type of a GCC
6142   builtin and then its argument prototype would still apply.  */
6143#ifdef __cplusplus
6144extern "C"
6145#endif
6146char sqlite3_close ();
6147int
6148main ()
6149{
6150return sqlite3_close ();
6151  ;
6152  return 0;
6153}
6154_ACEOF
6155if ac_fn_c_try_link "$LINENO"; then :
6156  ac_cv_lib_sqlite3_sqlite3_close=yes
6157else
6158  ac_cv_lib_sqlite3_sqlite3_close=no
6159fi
6160rm -f core conftest.err conftest.$ac_objext \
6161    conftest$ac_exeext conftest.$ac_ext
6162LIBS=$ac_check_lib_save_LIBS
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6165$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6166if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6167
6168                      svn_lib_sqlite="yes"
6169                      if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6170                        SVN_SQLITE_LIBS="-lsqlite3"
6171                      else
6172                        SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6173                        SVN_SQLITE_LIBS="`
6174  input_flags="-L$sqlite_dir/lib -lsqlite3"
6175  output_flags=""
6176  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6177  for flag in $input_flags; do
6178    filter="no"
6179    for dir in $filtered_dirs; do
6180      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6181        filter="yes"
6182        break
6183      fi
6184    done
6185    if test "$filter" = "no"; then
6186      output_flags="$output_flags $flag"
6187    fi
6188  done
6189  if test -n "$output_flags"; then
6190    printf "%s" "${output_flags# }"
6191  fi
6192`"
6193                      fi
6194
6195fi
6196
6197else
6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6199$as_echo "unsupported SQLite version" >&6; }
6200fi
6201rm -f conftest*
6202
6203
6204fi
6205
6206
6207
6208  CPPFLAGS="$save_CPPFLAGS"
6209  LDFLAGS="$save_LDFLAGS"
6210
6211    else
6212
6213  sqlite_amalg="$sqlite_dir"
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6215$as_echo_n "checking sqlite amalgamation... " >&6; }
6216  if test ! -e $sqlite_amalg; then
6217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218$as_echo "no" >&6; }
6219  else
6220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221$as_echo "yes" >&6; }
6222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6223$as_echo_n "checking sqlite amalgamation file version... " >&6; }
6224    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226
6227#include "$sqlite_amalg"
6228#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6229SQLITE_VERSION_OKAY
6230#endif
6231_ACEOF
6232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6233  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6235$as_echo "amalgamation found and is okay" >&6; }
6236
6237  case $host_os in
6238  beos* | mingw* | pw32* | cegcc* | cygwin*)
6239    svn_sqlite_dso_ldflags=
6240    ;;
6241
6242  darwin*)
6243  # if libdl is installed we need to link against it
6244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6245$as_echo_n "checking for dlopen in -ldl... " >&6; }
6246if ${ac_cv_lib_dl_dlopen+:} false; then :
6247  $as_echo_n "(cached) " >&6
6248else
6249  ac_check_lib_save_LIBS=$LIBS
6250LIBS="-ldl  $LIBS"
6251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252/* end confdefs.h.  */
6253
6254/* Override any GCC internal prototype to avoid an error.
6255   Use char because int might match the return type of a GCC
6256   builtin and then its argument prototype would still apply.  */
6257#ifdef __cplusplus
6258extern "C"
6259#endif
6260char dlopen ();
6261int
6262main ()
6263{
6264return dlopen ();
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269if ac_fn_c_try_link "$LINENO"; then :
6270  ac_cv_lib_dl_dlopen=yes
6271else
6272  ac_cv_lib_dl_dlopen=no
6273fi
6274rm -f core conftest.err conftest.$ac_objext \
6275    conftest$ac_exeext conftest.$ac_ext
6276LIBS=$ac_check_lib_save_LIBS
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6279$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6280if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6281  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6282else
6283
6284    svn_sqlite_dso_ldflags=
6285
6286fi
6287
6288    ;;
6289
6290  *)
6291    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6292if test "x$ac_cv_func_shl_load" = xyes; then :
6293  svn_sqlite_dso_ldflags=
6294else
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6296$as_echo_n "checking for shl_load in -ldld... " >&6; }
6297if ${ac_cv_lib_dld_shl_load+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  ac_check_lib_save_LIBS=$LIBS
6301LIBS="-ldld  $LIBS"
6302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304
6305/* Override any GCC internal prototype to avoid an error.
6306   Use char because int might match the return type of a GCC
6307   builtin and then its argument prototype would still apply.  */
6308#ifdef __cplusplus
6309extern "C"
6310#endif
6311char shl_load ();
6312int
6313main ()
6314{
6315return shl_load ();
6316  ;
6317  return 0;
6318}
6319_ACEOF
6320if ac_fn_c_try_link "$LINENO"; then :
6321  ac_cv_lib_dld_shl_load=yes
6322else
6323  ac_cv_lib_dld_shl_load=no
6324fi
6325rm -f core conftest.err conftest.$ac_objext \
6326    conftest$ac_exeext conftest.$ac_ext
6327LIBS=$ac_check_lib_save_LIBS
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6330$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6331if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6332  svn_sqlite_dso_ldflags="-ldld"
6333else
6334  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6335if test "x$ac_cv_func_dlopen" = xyes; then :
6336  svn_sqlite_dso_ldflags=
6337else
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6339$as_echo_n "checking for dlopen in -ldl... " >&6; }
6340if ${ac_cv_lib_dl_dlopen+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343  ac_check_lib_save_LIBS=$LIBS
6344LIBS="-ldl  $LIBS"
6345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h.  */
6347
6348/* Override any GCC internal prototype to avoid an error.
6349   Use char because int might match the return type of a GCC
6350   builtin and then its argument prototype would still apply.  */
6351#ifdef __cplusplus
6352extern "C"
6353#endif
6354char dlopen ();
6355int
6356main ()
6357{
6358return dlopen ();
6359  ;
6360  return 0;
6361}
6362_ACEOF
6363if ac_fn_c_try_link "$LINENO"; then :
6364  ac_cv_lib_dl_dlopen=yes
6365else
6366  ac_cv_lib_dl_dlopen=no
6367fi
6368rm -f core conftest.err conftest.$ac_objext \
6369    conftest$ac_exeext conftest.$ac_ext
6370LIBS=$ac_check_lib_save_LIBS
6371fi
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6373$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6374if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6375  svn_sqlite_dso_ldflags="-ldl"
6376else
6377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6378$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6379if ${ac_cv_lib_svld_dlopen+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  ac_check_lib_save_LIBS=$LIBS
6383LIBS="-lsvld  $LIBS"
6384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h.  */
6386
6387/* Override any GCC internal prototype to avoid an error.
6388   Use char because int might match the return type of a GCC
6389   builtin and then its argument prototype would still apply.  */
6390#ifdef __cplusplus
6391extern "C"
6392#endif
6393char dlopen ();
6394int
6395main ()
6396{
6397return dlopen ();
6398  ;
6399  return 0;
6400}
6401_ACEOF
6402if ac_fn_c_try_link "$LINENO"; then :
6403  ac_cv_lib_svld_dlopen=yes
6404else
6405  ac_cv_lib_svld_dlopen=no
6406fi
6407rm -f core conftest.err conftest.$ac_objext \
6408    conftest$ac_exeext conftest.$ac_ext
6409LIBS=$ac_check_lib_save_LIBS
6410fi
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6412$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6413if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6414  svn_sqlite_dso_ldflags="-lsvld"
6415else
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6417$as_echo_n "checking for dld_link in -ldld... " >&6; }
6418if ${ac_cv_lib_dld_dld_link+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  ac_check_lib_save_LIBS=$LIBS
6422LIBS="-ldld  $LIBS"
6423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424/* end confdefs.h.  */
6425
6426/* Override any GCC internal prototype to avoid an error.
6427   Use char because int might match the return type of a GCC
6428   builtin and then its argument prototype would still apply.  */
6429#ifdef __cplusplus
6430extern "C"
6431#endif
6432char dld_link ();
6433int
6434main ()
6435{
6436return dld_link ();
6437  ;
6438  return 0;
6439}
6440_ACEOF
6441if ac_fn_c_try_link "$LINENO"; then :
6442  ac_cv_lib_dld_dld_link=yes
6443else
6444  ac_cv_lib_dld_dld_link=no
6445fi
6446rm -f core conftest.err conftest.$ac_objext \
6447    conftest$ac_exeext conftest.$ac_ext
6448LIBS=$ac_check_lib_save_LIBS
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6451$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6452if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6453  svn_sqlite_dso_ldflags="-ldld"
6454fi
6455
6456
6457fi
6458
6459
6460fi
6461
6462
6463fi
6464
6465
6466fi
6467
6468
6469fi
6470
6471    ;;
6472  esac
6473
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6475$as_echo_n "checking additional libraries for sqlite... " >&6; }
6476  if test -n "$svn_sqlite_dso_ldflags"; then
6477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6478$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6479  else
6480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6481$as_echo "none" >&6; }
6482  fi
6483
6484
6485$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6486
6487                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6488                  if test -n "$svn_sqlite_dso_ldflags"; then
6489                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6490                  else
6491                    SVN_SQLITE_LIBS="-lpthread"
6492                  fi
6493                  svn_lib_sqlite="yes"
6494else
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6496$as_echo "unsupported amalgamation SQLite version" >&6; }
6497fi
6498rm -f conftest*
6499
6500  fi
6501
6502    fi
6503
6504    if test -z "$svn_lib_sqlite"; then
6505      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6506$as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6507
6508  echo ""
6509  echo "An appropriate version of sqlite could not be found.  We recommmend"
6510  echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6511  echo "Please either install a newer sqlite on this system"
6512  echo ""
6513  echo "or"
6514  echo ""
6515  echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6516  echo "    ${SQLITE_URL}"
6517  echo "unpack the archive using unzip and rename the resulting"
6518  echo "directory to:"
6519  echo "$abs_srcdir/sqlite-amalgamation"
6520  if test x"$abs_srcdir" != x"$abs_builddir"; then
6521    echo "or to:"
6522    echo "$abs_builddir/sqlite-amalgamation"
6523  fi
6524  echo ""
6525  as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6526
6527    fi
6528
6529else
6530
6531
6532  sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6534$as_echo_n "checking sqlite amalgamation... " >&6; }
6535  if test ! -e $sqlite_amalg; then
6536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537$as_echo "no" >&6; }
6538  else
6539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6540$as_echo "yes" >&6; }
6541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6542$as_echo_n "checking sqlite amalgamation file version... " >&6; }
6543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545
6546#include "$sqlite_amalg"
6547#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6548SQLITE_VERSION_OKAY
6549#endif
6550_ACEOF
6551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6554$as_echo "amalgamation found and is okay" >&6; }
6555
6556  case $host_os in
6557  beos* | mingw* | pw32* | cegcc* | cygwin*)
6558    svn_sqlite_dso_ldflags=
6559    ;;
6560
6561  darwin*)
6562  # if libdl is installed we need to link against it
6563    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6564$as_echo_n "checking for dlopen in -ldl... " >&6; }
6565if ${ac_cv_lib_dl_dlopen+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  ac_check_lib_save_LIBS=$LIBS
6569LIBS="-ldl  $LIBS"
6570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h.  */
6572
6573/* Override any GCC internal prototype to avoid an error.
6574   Use char because int might match the return type of a GCC
6575   builtin and then its argument prototype would still apply.  */
6576#ifdef __cplusplus
6577extern "C"
6578#endif
6579char dlopen ();
6580int
6581main ()
6582{
6583return dlopen ();
6584  ;
6585  return 0;
6586}
6587_ACEOF
6588if ac_fn_c_try_link "$LINENO"; then :
6589  ac_cv_lib_dl_dlopen=yes
6590else
6591  ac_cv_lib_dl_dlopen=no
6592fi
6593rm -f core conftest.err conftest.$ac_objext \
6594    conftest$ac_exeext conftest.$ac_ext
6595LIBS=$ac_check_lib_save_LIBS
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6598$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6599if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6600  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6601else
6602
6603    svn_sqlite_dso_ldflags=
6604
6605fi
6606
6607    ;;
6608
6609  *)
6610    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6611if test "x$ac_cv_func_shl_load" = xyes; then :
6612  svn_sqlite_dso_ldflags=
6613else
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6615$as_echo_n "checking for shl_load in -ldld... " >&6; }
6616if ${ac_cv_lib_dld_shl_load+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  ac_check_lib_save_LIBS=$LIBS
6620LIBS="-ldld  $LIBS"
6621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h.  */
6623
6624/* Override any GCC internal prototype to avoid an error.
6625   Use char because int might match the return type of a GCC
6626   builtin and then its argument prototype would still apply.  */
6627#ifdef __cplusplus
6628extern "C"
6629#endif
6630char shl_load ();
6631int
6632main ()
6633{
6634return shl_load ();
6635  ;
6636  return 0;
6637}
6638_ACEOF
6639if ac_fn_c_try_link "$LINENO"; then :
6640  ac_cv_lib_dld_shl_load=yes
6641else
6642  ac_cv_lib_dld_shl_load=no
6643fi
6644rm -f core conftest.err conftest.$ac_objext \
6645    conftest$ac_exeext conftest.$ac_ext
6646LIBS=$ac_check_lib_save_LIBS
6647fi
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6649$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6650if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6651  svn_sqlite_dso_ldflags="-ldld"
6652else
6653  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6654if test "x$ac_cv_func_dlopen" = xyes; then :
6655  svn_sqlite_dso_ldflags=
6656else
6657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6658$as_echo_n "checking for dlopen in -ldl... " >&6; }
6659if ${ac_cv_lib_dl_dlopen+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  ac_check_lib_save_LIBS=$LIBS
6663LIBS="-ldl  $LIBS"
6664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666
6667/* Override any GCC internal prototype to avoid an error.
6668   Use char because int might match the return type of a GCC
6669   builtin and then its argument prototype would still apply.  */
6670#ifdef __cplusplus
6671extern "C"
6672#endif
6673char dlopen ();
6674int
6675main ()
6676{
6677return dlopen ();
6678  ;
6679  return 0;
6680}
6681_ACEOF
6682if ac_fn_c_try_link "$LINENO"; then :
6683  ac_cv_lib_dl_dlopen=yes
6684else
6685  ac_cv_lib_dl_dlopen=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext \
6688    conftest$ac_exeext conftest.$ac_ext
6689LIBS=$ac_check_lib_save_LIBS
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6692$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6693if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6694  svn_sqlite_dso_ldflags="-ldl"
6695else
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6697$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6698if ${ac_cv_lib_svld_dlopen+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  ac_check_lib_save_LIBS=$LIBS
6702LIBS="-lsvld  $LIBS"
6703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704/* end confdefs.h.  */
6705
6706/* Override any GCC internal prototype to avoid an error.
6707   Use char because int might match the return type of a GCC
6708   builtin and then its argument prototype would still apply.  */
6709#ifdef __cplusplus
6710extern "C"
6711#endif
6712char dlopen ();
6713int
6714main ()
6715{
6716return dlopen ();
6717  ;
6718  return 0;
6719}
6720_ACEOF
6721if ac_fn_c_try_link "$LINENO"; then :
6722  ac_cv_lib_svld_dlopen=yes
6723else
6724  ac_cv_lib_svld_dlopen=no
6725fi
6726rm -f core conftest.err conftest.$ac_objext \
6727    conftest$ac_exeext conftest.$ac_ext
6728LIBS=$ac_check_lib_save_LIBS
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6731$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6732if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6733  svn_sqlite_dso_ldflags="-lsvld"
6734else
6735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6736$as_echo_n "checking for dld_link in -ldld... " >&6; }
6737if ${ac_cv_lib_dld_dld_link+:} false; then :
6738  $as_echo_n "(cached) " >&6
6739else
6740  ac_check_lib_save_LIBS=$LIBS
6741LIBS="-ldld  $LIBS"
6742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h.  */
6744
6745/* Override any GCC internal prototype to avoid an error.
6746   Use char because int might match the return type of a GCC
6747   builtin and then its argument prototype would still apply.  */
6748#ifdef __cplusplus
6749extern "C"
6750#endif
6751char dld_link ();
6752int
6753main ()
6754{
6755return dld_link ();
6756  ;
6757  return 0;
6758}
6759_ACEOF
6760if ac_fn_c_try_link "$LINENO"; then :
6761  ac_cv_lib_dld_dld_link=yes
6762else
6763  ac_cv_lib_dld_dld_link=no
6764fi
6765rm -f core conftest.err conftest.$ac_objext \
6766    conftest$ac_exeext conftest.$ac_ext
6767LIBS=$ac_check_lib_save_LIBS
6768fi
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6770$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6771if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6772  svn_sqlite_dso_ldflags="-ldld"
6773fi
6774
6775
6776fi
6777
6778
6779fi
6780
6781
6782fi
6783
6784
6785fi
6786
6787
6788fi
6789
6790    ;;
6791  esac
6792
6793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6794$as_echo_n "checking additional libraries for sqlite... " >&6; }
6795  if test -n "$svn_sqlite_dso_ldflags"; then
6796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6797$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6798  else
6799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6800$as_echo "none" >&6; }
6801  fi
6802
6803
6804$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6805
6806                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6807                  if test -n "$svn_sqlite_dso_ldflags"; then
6808                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6809                  else
6810                    SVN_SQLITE_LIBS="-lpthread"
6811                  fi
6812                  svn_lib_sqlite="yes"
6813else
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6815$as_echo "unsupported amalgamation SQLite version" >&6; }
6816fi
6817rm -f conftest*
6818
6819  fi
6820
6821
6822    if test -z "$svn_lib_sqlite"; then
6823
6824  sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6826$as_echo_n "checking sqlite amalgamation... " >&6; }
6827  if test ! -e $sqlite_amalg; then
6828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830  else
6831    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6832$as_echo "yes" >&6; }
6833    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6834$as_echo_n "checking sqlite amalgamation file version... " >&6; }
6835    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h.  */
6837
6838#include "$sqlite_amalg"
6839#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6840SQLITE_VERSION_OKAY
6841#endif
6842_ACEOF
6843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6846$as_echo "amalgamation found and is okay" >&6; }
6847
6848  case $host_os in
6849  beos* | mingw* | pw32* | cegcc* | cygwin*)
6850    svn_sqlite_dso_ldflags=
6851    ;;
6852
6853  darwin*)
6854  # if libdl is installed we need to link against it
6855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6856$as_echo_n "checking for dlopen in -ldl... " >&6; }
6857if ${ac_cv_lib_dl_dlopen+:} false; then :
6858  $as_echo_n "(cached) " >&6
6859else
6860  ac_check_lib_save_LIBS=$LIBS
6861LIBS="-ldl  $LIBS"
6862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864
6865/* Override any GCC internal prototype to avoid an error.
6866   Use char because int might match the return type of a GCC
6867   builtin and then its argument prototype would still apply.  */
6868#ifdef __cplusplus
6869extern "C"
6870#endif
6871char dlopen ();
6872int
6873main ()
6874{
6875return dlopen ();
6876  ;
6877  return 0;
6878}
6879_ACEOF
6880if ac_fn_c_try_link "$LINENO"; then :
6881  ac_cv_lib_dl_dlopen=yes
6882else
6883  ac_cv_lib_dl_dlopen=no
6884fi
6885rm -f core conftest.err conftest.$ac_objext \
6886    conftest$ac_exeext conftest.$ac_ext
6887LIBS=$ac_check_lib_save_LIBS
6888fi
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6890$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6891if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6892  lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6893else
6894
6895    svn_sqlite_dso_ldflags=
6896
6897fi
6898
6899    ;;
6900
6901  *)
6902    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6903if test "x$ac_cv_func_shl_load" = xyes; then :
6904  svn_sqlite_dso_ldflags=
6905else
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6907$as_echo_n "checking for shl_load in -ldld... " >&6; }
6908if ${ac_cv_lib_dld_shl_load+:} false; then :
6909  $as_echo_n "(cached) " >&6
6910else
6911  ac_check_lib_save_LIBS=$LIBS
6912LIBS="-ldld  $LIBS"
6913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915
6916/* Override any GCC internal prototype to avoid an error.
6917   Use char because int might match the return type of a GCC
6918   builtin and then its argument prototype would still apply.  */
6919#ifdef __cplusplus
6920extern "C"
6921#endif
6922char shl_load ();
6923int
6924main ()
6925{
6926return shl_load ();
6927  ;
6928  return 0;
6929}
6930_ACEOF
6931if ac_fn_c_try_link "$LINENO"; then :
6932  ac_cv_lib_dld_shl_load=yes
6933else
6934  ac_cv_lib_dld_shl_load=no
6935fi
6936rm -f core conftest.err conftest.$ac_objext \
6937    conftest$ac_exeext conftest.$ac_ext
6938LIBS=$ac_check_lib_save_LIBS
6939fi
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6941$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6942if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6943  svn_sqlite_dso_ldflags="-ldld"
6944else
6945  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6946if test "x$ac_cv_func_dlopen" = xyes; then :
6947  svn_sqlite_dso_ldflags=
6948else
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6950$as_echo_n "checking for dlopen in -ldl... " >&6; }
6951if ${ac_cv_lib_dl_dlopen+:} false; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  ac_check_lib_save_LIBS=$LIBS
6955LIBS="-ldl  $LIBS"
6956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957/* end confdefs.h.  */
6958
6959/* Override any GCC internal prototype to avoid an error.
6960   Use char because int might match the return type of a GCC
6961   builtin and then its argument prototype would still apply.  */
6962#ifdef __cplusplus
6963extern "C"
6964#endif
6965char dlopen ();
6966int
6967main ()
6968{
6969return dlopen ();
6970  ;
6971  return 0;
6972}
6973_ACEOF
6974if ac_fn_c_try_link "$LINENO"; then :
6975  ac_cv_lib_dl_dlopen=yes
6976else
6977  ac_cv_lib_dl_dlopen=no
6978fi
6979rm -f core conftest.err conftest.$ac_objext \
6980    conftest$ac_exeext conftest.$ac_ext
6981LIBS=$ac_check_lib_save_LIBS
6982fi
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6984$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6985if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6986  svn_sqlite_dso_ldflags="-ldl"
6987else
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6989$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6990if ${ac_cv_lib_svld_dlopen+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  ac_check_lib_save_LIBS=$LIBS
6994LIBS="-lsvld  $LIBS"
6995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997
6998/* Override any GCC internal prototype to avoid an error.
6999   Use char because int might match the return type of a GCC
7000   builtin and then its argument prototype would still apply.  */
7001#ifdef __cplusplus
7002extern "C"
7003#endif
7004char dlopen ();
7005int
7006main ()
7007{
7008return dlopen ();
7009  ;
7010  return 0;
7011}
7012_ACEOF
7013if ac_fn_c_try_link "$LINENO"; then :
7014  ac_cv_lib_svld_dlopen=yes
7015else
7016  ac_cv_lib_svld_dlopen=no
7017fi
7018rm -f core conftest.err conftest.$ac_objext \
7019    conftest$ac_exeext conftest.$ac_ext
7020LIBS=$ac_check_lib_save_LIBS
7021fi
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
7023$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7024if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7025  svn_sqlite_dso_ldflags="-lsvld"
7026else
7027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
7028$as_echo_n "checking for dld_link in -ldld... " >&6; }
7029if ${ac_cv_lib_dld_dld_link+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  ac_check_lib_save_LIBS=$LIBS
7033LIBS="-ldld  $LIBS"
7034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036
7037/* Override any GCC internal prototype to avoid an error.
7038   Use char because int might match the return type of a GCC
7039   builtin and then its argument prototype would still apply.  */
7040#ifdef __cplusplus
7041extern "C"
7042#endif
7043char dld_link ();
7044int
7045main ()
7046{
7047return dld_link ();
7048  ;
7049  return 0;
7050}
7051_ACEOF
7052if ac_fn_c_try_link "$LINENO"; then :
7053  ac_cv_lib_dld_dld_link=yes
7054else
7055  ac_cv_lib_dld_dld_link=no
7056fi
7057rm -f core conftest.err conftest.$ac_objext \
7058    conftest$ac_exeext conftest.$ac_ext
7059LIBS=$ac_check_lib_save_LIBS
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
7062$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7063if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7064  svn_sqlite_dso_ldflags="-ldld"
7065fi
7066
7067
7068fi
7069
7070
7071fi
7072
7073
7074fi
7075
7076
7077fi
7078
7079
7080fi
7081
7082    ;;
7083  esac
7084
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
7086$as_echo_n "checking additional libraries for sqlite... " >&6; }
7087  if test -n "$svn_sqlite_dso_ldflags"; then
7088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
7089$as_echo "${svn_sqlite_dso_ldflags}" >&6; }
7090  else
7091    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7092$as_echo "none" >&6; }
7093  fi
7094
7095
7096$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
7097
7098                  SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
7099                  if test -n "$svn_sqlite_dso_ldflags"; then
7100                    SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
7101                  else
7102                    SVN_SQLITE_LIBS="-lpthread"
7103                  fi
7104                  svn_lib_sqlite="yes"
7105else
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
7107$as_echo "unsupported amalgamation SQLite version" >&6; }
7108fi
7109rm -f conftest*
7110
7111  fi
7112
7113    fi
7114
7115    if test -z "$svn_lib_sqlite"; then
7116
7117  if test -z ""; then
7118    sqlite_dir=""
7119    sqlite_include="sqlite3.h"
7120  else
7121    sqlite_dir=""
7122    sqlite_include="/include/sqlite3.h"
7123  fi
7124
7125  save_CPPFLAGS="$CPPFLAGS"
7126  save_LDFLAGS="$LDFLAGS"
7127
7128  if test ! -z ""; then
7129    CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
7130    LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
7131  fi
7132
7133  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
7134if test "x$ac_cv_header_sqlite3_h" = xyes; then :
7135
7136      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
7137$as_echo_n "checking sqlite library version (via header)... " >&6; }
7138      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140
7141#include "$sqlite_include"
7142#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
7143SQLITE_VERSION_OKAY
7144#endif
7145_ACEOF
7146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7147  $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
7148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
7149$as_echo "okay" >&6; }
7150                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
7151$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
7152if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  ac_check_lib_save_LIBS=$LIBS
7156LIBS="-lsqlite3  $LIBS"
7157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159
7160/* Override any GCC internal prototype to avoid an error.
7161   Use char because int might match the return type of a GCC
7162   builtin and then its argument prototype would still apply.  */
7163#ifdef __cplusplus
7164extern "C"
7165#endif
7166char sqlite3_close ();
7167int
7168main ()
7169{
7170return sqlite3_close ();
7171  ;
7172  return 0;
7173}
7174_ACEOF
7175if ac_fn_c_try_link "$LINENO"; then :
7176  ac_cv_lib_sqlite3_sqlite3_close=yes
7177else
7178  ac_cv_lib_sqlite3_sqlite3_close=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext \
7181    conftest$ac_exeext conftest.$ac_ext
7182LIBS=$ac_check_lib_save_LIBS
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
7185$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
7186if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
7187
7188                      svn_lib_sqlite="yes"
7189                      if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
7190                        SVN_SQLITE_LIBS="-lsqlite3"
7191                      else
7192                        SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
7193                        SVN_SQLITE_LIBS="`
7194  input_flags="-L$sqlite_dir/lib -lsqlite3"
7195  output_flags=""
7196  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
7197  for flag in $input_flags; do
7198    filter="no"
7199    for dir in $filtered_dirs; do
7200      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
7201        filter="yes"
7202        break
7203      fi
7204    done
7205    if test "$filter" = "no"; then
7206      output_flags="$output_flags $flag"
7207    fi
7208  done
7209  if test -n "$output_flags"; then
7210    printf "%s" "${output_flags# }"
7211  fi
7212`"
7213                      fi
7214
7215fi
7216
7217else
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
7219$as_echo "unsupported SQLite version" >&6; }
7220fi
7221rm -f conftest*
7222
7223
7224fi
7225
7226
7227
7228  CPPFLAGS="$save_CPPFLAGS"
7229  LDFLAGS="$save_LDFLAGS"
7230
7231    fi
7232
7233    if test -z "$svn_lib_sqlite"; then
7234
7235    if test -n "$PKG_CONFIG"; then
7236      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
7237$as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
7238      sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
7239
7240      if test -n "$sqlite_version"; then
7241
7242  version_string="$sqlite_version"
7243
7244  major=`expr $version_string : '\([0-9]*\)'`
7245  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7246  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7247  if test -z "$micro"; then
7248    micro=0
7249  fi
7250  sqlite_ver_num=`expr $major \* 1000000 \
7251        \+ $minor \* 1000 \
7252        \+ $micro`
7253
7254
7255        if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
7256          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
7257$as_echo "$sqlite_version" >&6; }
7258          svn_lib_sqlite="yes"
7259          SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
7260          SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
7261        else
7262          { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
7263$as_echo "none or unsupported $sqlite_version" >&6; }
7264        fi
7265      fi
7266    fi
7267
7268    if test -z "$svn_lib_sqlite"; then
7269      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270$as_echo "no" >&6; }
7271    fi
7272
7273    fi
7274
7275    if test -z "$svn_lib_sqlite"; then
7276
7277  echo ""
7278  echo "An appropriate version of sqlite could not be found.  We recommmend"
7279  echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7280  echo "Please either install a newer sqlite on this system"
7281  echo ""
7282  echo "or"
7283  echo ""
7284  echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7285  echo "    ${SQLITE_URL}"
7286  echo "unpack the archive using unzip and rename the resulting"
7287  echo "directory to:"
7288  echo "$abs_srcdir/sqlite-amalgamation"
7289  if test x"$abs_srcdir" != x"$abs_builddir"; then
7290    echo "or to:"
7291    echo "$abs_builddir/sqlite-amalgamation"
7292  fi
7293  echo ""
7294  as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7295
7296    fi
7297
7298fi
7299
7300
7301
7302
7303
7304
7305# Check whether --enable-sqlite-compatibility-version was given.
7306if test "${enable_sqlite_compatibility_version+set}" = set; then :
7307  enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7308else
7309  sqlite_compat_ver=no
7310fi
7311
7312
7313if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7314
7315  version_string="$sqlite_compat_ver"
7316
7317  major=`expr $version_string : '\([0-9]*\)'`
7318  minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7319  micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7320  if test -z "$micro"; then
7321    micro=0
7322  fi
7323  sqlite_compat_ver_num=`expr $major \* 1000000 \
7324        \+ $minor \* 1000 \
7325        \+ $micro`
7326
7327  CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7328  CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7329fi
7330
7331
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7333$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7334if ${svn_cv_atomic_builtins+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  if test "$cross_compiling" = yes; then :
7338  svn_cv_atomic_builtins=no
7339else
7340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h.  */
7342
7343  int main()
7344  {
7345      unsigned long long val = 1010, tmp, *mem = &val;
7346
7347      if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7348          return 1;
7349
7350      tmp = val;
7351
7352      if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7353          return 1;
7354
7355      if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7356          return 1;
7357
7358      tmp = 3030;
7359
7360      if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7361          return 1;
7362
7363      if (__sync_lock_test_and_set(&val, 4040) != 3030)
7364          return 1;
7365
7366      mem = &tmp;
7367
7368      if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7369          return 1;
7370
7371      __sync_synchronize();
7372
7373      if (mem != &val)
7374          return 1;
7375
7376      return 0;
7377  }
7378_ACEOF
7379if ac_fn_c_try_run "$LINENO"; then :
7380  svn_cv_atomic_builtins=yes
7381else
7382  svn_cv_atomic_builtins=no
7383fi
7384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385  conftest.$ac_objext conftest.beam conftest.$ac_ext
7386fi
7387
7388fi
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7390$as_echo "$svn_cv_atomic_builtins" >&6; }
7391
7392if test "$svn_cv_atomic_builtins" = "yes"; then
7393
7394$as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7395
7396fi
7397
7398
7399if test "${bindir}" = '${exec_prefix}/bin'; then
7400        if test "${exec_prefix}" = "NONE"; then
7401                if test "${prefix}" = "NONE"; then
7402                        SVN_BINDIR="${ac_default_prefix}/bin"
7403                else
7404                        SVN_BINDIR="${prefix}/bin"
7405                fi
7406        else
7407                SVN_BINDIR="${exec_prefix}/bin"
7408        fi
7409else
7410        SVN_BINDIR="${bindir}"
7411fi
7412
7413SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7414
7415
7416
7417cat >>confdefs.h <<_ACEOF
7418#define SVN_BINDIR "${SVN_BINDIR}"
7419_ACEOF
7420
7421
7422localedir='${datadir}/locale'
7423
7424
7425if test "${prefix}" = "NONE" \
7426  && ( test "${datadir}" = '${prefix}/share' \
7427       || ( test "${datadir}" = '${datarootdir}' \
7428            && test "${datarootdir}" = '${prefix}/share' ) ); then
7429  exp_localedir='${ac_default_prefix}/share/locale'
7430else
7431  exp_localedir=$localedir
7432fi
7433
7434svn_last=
7435svn_cur=""${exp_localedir}""
7436while test "x${svn_cur}" != "x${svn_last}";
7437do
7438  svn_last="${svn_cur}"
7439  svn_cur=`eval "echo ${svn_cur}"`
7440done
7441svn_localedir="${svn_cur}"
7442
7443
7444cat >>confdefs.h <<_ACEOF
7445#define SVN_LOCALE_DIR "${svn_localedir}"
7446_ACEOF
7447
7448
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7450$as_echo "$as_me: configuring libtool now" >&6;}
7451case `pwd` in
7452  *\ * | *\	*)
7453    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7454$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7455esac
7456
7457
7458
7459macro_version='2.4.6'
7460macro_revision='2.4.6'
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474ltmain=$ac_aux_dir/ltmain.sh
7475
7476# Backslashify metacharacters that are still active within
7477# double-quoted strings.
7478sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7479
7480# Same as above, but do not quote variable references.
7481double_quote_subst='s/\(["`\\]\)/\\\1/g'
7482
7483# Sed substitution to delay expansion of an escaped shell variable in a
7484# double_quote_subst'ed string.
7485delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7486
7487# Sed substitution to delay expansion of an escaped single quote.
7488delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7489
7490# Sed substitution to avoid accidental globbing in evaled expressions
7491no_glob_subst='s/\*/\\\*/g'
7492
7493ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7494ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7495ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7496
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7498$as_echo_n "checking how to print strings... " >&6; }
7499# Test print first, because it will be a builtin if present.
7500if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7501   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7502  ECHO='print -r --'
7503elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7504  ECHO='printf %s\n'
7505else
7506  # Use this function as a fallback that always works.
7507  func_fallback_echo ()
7508  {
7509    eval 'cat <<_LTECHO_EOF
7510$1
7511_LTECHO_EOF'
7512  }
7513  ECHO='func_fallback_echo'
7514fi
7515
7516# func_echo_all arg...
7517# Invoke $ECHO with all args, space-separated.
7518func_echo_all ()
7519{
7520    $ECHO ""
7521}
7522
7523case $ECHO in
7524  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7525$as_echo "printf" >&6; } ;;
7526  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7527$as_echo "print -r" >&6; } ;;
7528  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7529$as_echo "cat" >&6; } ;;
7530esac
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7546$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7547if ${ac_cv_path_SED+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7551     for ac_i in 1 2 3 4 5 6 7; do
7552       ac_script="$ac_script$as_nl$ac_script"
7553     done
7554     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7555     { ac_script=; unset ac_script;}
7556     if test -z "$SED"; then
7557  ac_path_SED_found=false
7558  # Loop through the user's path and test for each of PROGNAME-LIST
7559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  test -z "$as_dir" && as_dir=.
7564    for ac_prog in sed gsed; do
7565    for ac_exec_ext in '' $ac_executable_extensions; do
7566      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7567      as_fn_executable_p "$ac_path_SED" || continue
7568# Check for GNU ac_path_SED and select it if it is found.
7569  # Check for GNU $ac_path_SED
7570case `"$ac_path_SED" --version 2>&1` in
7571*GNU*)
7572  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7573*)
7574  ac_count=0
7575  $as_echo_n 0123456789 >"conftest.in"
7576  while :
7577  do
7578    cat "conftest.in" "conftest.in" >"conftest.tmp"
7579    mv "conftest.tmp" "conftest.in"
7580    cp "conftest.in" "conftest.nl"
7581    $as_echo '' >> "conftest.nl"
7582    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7583    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7584    as_fn_arith $ac_count + 1 && ac_count=$as_val
7585    if test $ac_count -gt ${ac_path_SED_max-0}; then
7586      # Best one so far, save it but keep looking for a better one
7587      ac_cv_path_SED="$ac_path_SED"
7588      ac_path_SED_max=$ac_count
7589    fi
7590    # 10*(2^10) chars as input seems more than enough
7591    test $ac_count -gt 10 && break
7592  done
7593  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7594esac
7595
7596      $ac_path_SED_found && break 3
7597    done
7598  done
7599  done
7600IFS=$as_save_IFS
7601  if test -z "$ac_cv_path_SED"; then
7602    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7603  fi
7604else
7605  ac_cv_path_SED=$SED
7606fi
7607
7608fi
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7610$as_echo "$ac_cv_path_SED" >&6; }
7611 SED="$ac_cv_path_SED"
7612  rm -f conftest.sed
7613
7614test -z "$SED" && SED=sed
7615Xsed="$SED -e 1s/^X//"
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7628$as_echo_n "checking for fgrep... " >&6; }
7629if ${ac_cv_path_FGREP+:} false; then :
7630  $as_echo_n "(cached) " >&6
7631else
7632  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7633   then ac_cv_path_FGREP="$GREP -F"
7634   else
7635     if test -z "$FGREP"; then
7636  ac_path_FGREP_found=false
7637  # Loop through the user's path and test for each of PROGNAME-LIST
7638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7640do
7641  IFS=$as_save_IFS
7642  test -z "$as_dir" && as_dir=.
7643    for ac_prog in fgrep; do
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7646      as_fn_executable_p "$ac_path_FGREP" || continue
7647# Check for GNU ac_path_FGREP and select it if it is found.
7648  # Check for GNU $ac_path_FGREP
7649case `"$ac_path_FGREP" --version 2>&1` in
7650*GNU*)
7651  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7652*)
7653  ac_count=0
7654  $as_echo_n 0123456789 >"conftest.in"
7655  while :
7656  do
7657    cat "conftest.in" "conftest.in" >"conftest.tmp"
7658    mv "conftest.tmp" "conftest.in"
7659    cp "conftest.in" "conftest.nl"
7660    $as_echo 'FGREP' >> "conftest.nl"
7661    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7662    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7663    as_fn_arith $ac_count + 1 && ac_count=$as_val
7664    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7665      # Best one so far, save it but keep looking for a better one
7666      ac_cv_path_FGREP="$ac_path_FGREP"
7667      ac_path_FGREP_max=$ac_count
7668    fi
7669    # 10*(2^10) chars as input seems more than enough
7670    test $ac_count -gt 10 && break
7671  done
7672  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7673esac
7674
7675      $ac_path_FGREP_found && break 3
7676    done
7677  done
7678  done
7679IFS=$as_save_IFS
7680  if test -z "$ac_cv_path_FGREP"; then
7681    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7682  fi
7683else
7684  ac_cv_path_FGREP=$FGREP
7685fi
7686
7687   fi
7688fi
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7690$as_echo "$ac_cv_path_FGREP" >&6; }
7691 FGREP="$ac_cv_path_FGREP"
7692
7693
7694test -z "$GREP" && GREP=grep
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714# Check whether --with-gnu-ld was given.
7715if test "${with_gnu_ld+set}" = set; then :
7716  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7717else
7718  with_gnu_ld=no
7719fi
7720
7721ac_prog=ld
7722if test yes = "$GCC"; then
7723  # Check if gcc -print-prog-name=ld gives a path.
7724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7725$as_echo_n "checking for ld used by $CC... " >&6; }
7726  case $host in
7727  *-*-mingw*)
7728    # gcc leaves a trailing carriage return, which upsets mingw
7729    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7730  *)
7731    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7732  esac
7733  case $ac_prog in
7734    # Accept absolute paths.
7735    [\\/]* | ?:[\\/]*)
7736      re_direlt='/[^/][^/]*/\.\./'
7737      # Canonicalize the pathname of ld
7738      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7739      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7740	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7741      done
7742      test -z "$LD" && LD=$ac_prog
7743      ;;
7744  "")
7745    # If it fails, then pretend we aren't using GCC.
7746    ac_prog=ld
7747    ;;
7748  *)
7749    # If it is relative, then search for the first ld in PATH.
7750    with_gnu_ld=unknown
7751    ;;
7752  esac
7753elif test yes = "$with_gnu_ld"; then
7754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7755$as_echo_n "checking for GNU ld... " >&6; }
7756else
7757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7758$as_echo_n "checking for non-GNU ld... " >&6; }
7759fi
7760if ${lt_cv_path_LD+:} false; then :
7761  $as_echo_n "(cached) " >&6
7762else
7763  if test -z "$LD"; then
7764  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7765  for ac_dir in $PATH; do
7766    IFS=$lt_save_ifs
7767    test -z "$ac_dir" && ac_dir=.
7768    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7769      lt_cv_path_LD=$ac_dir/$ac_prog
7770      # Check to see if the program is GNU ld.  I'd rather use --version,
7771      # but apparently some variants of GNU ld only accept -v.
7772      # Break only if it was the GNU/non-GNU ld that we prefer.
7773      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7774      *GNU* | *'with BFD'*)
7775	test no != "$with_gnu_ld" && break
7776	;;
7777      *)
7778	test yes != "$with_gnu_ld" && break
7779	;;
7780      esac
7781    fi
7782  done
7783  IFS=$lt_save_ifs
7784else
7785  lt_cv_path_LD=$LD # Let the user override the test with a path.
7786fi
7787fi
7788
7789LD=$lt_cv_path_LD
7790if test -n "$LD"; then
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7792$as_echo "$LD" >&6; }
7793else
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795$as_echo "no" >&6; }
7796fi
7797test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7799$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7800if ${lt_cv_prog_gnu_ld+:} false; then :
7801  $as_echo_n "(cached) " >&6
7802else
7803  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7804case `$LD -v 2>&1 </dev/null` in
7805*GNU* | *'with BFD'*)
7806  lt_cv_prog_gnu_ld=yes
7807  ;;
7808*)
7809  lt_cv_prog_gnu_ld=no
7810  ;;
7811esac
7812fi
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7814$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7815with_gnu_ld=$lt_cv_prog_gnu_ld
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7826$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7827if ${lt_cv_path_NM+:} false; then :
7828  $as_echo_n "(cached) " >&6
7829else
7830  if test -n "$NM"; then
7831  # Let the user override the test.
7832  lt_cv_path_NM=$NM
7833else
7834  lt_nm_to_check=${ac_tool_prefix}nm
7835  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7836    lt_nm_to_check="$lt_nm_to_check nm"
7837  fi
7838  for lt_tmp_nm in $lt_nm_to_check; do
7839    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7840    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7841      IFS=$lt_save_ifs
7842      test -z "$ac_dir" && ac_dir=.
7843      tmp_nm=$ac_dir/$lt_tmp_nm
7844      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7845	# Check to see if the nm accepts a BSD-compat flag.
7846	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7847	#   nm: unknown option "B" ignored
7848	# Tru64's nm complains that /dev/null is an invalid object file
7849	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7850	case $build_os in
7851	mingw*) lt_bad_file=conftest.nm/nofile ;;
7852	*) lt_bad_file=/dev/null ;;
7853	esac
7854	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7855	*$lt_bad_file* | *'Invalid file or object type'*)
7856	  lt_cv_path_NM="$tmp_nm -B"
7857	  break 2
7858	  ;;
7859	*)
7860	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7861	  */dev/null*)
7862	    lt_cv_path_NM="$tmp_nm -p"
7863	    break 2
7864	    ;;
7865	  *)
7866	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7867	    continue # so that we can try to find one that supports BSD flags
7868	    ;;
7869	  esac
7870	  ;;
7871	esac
7872      fi
7873    done
7874    IFS=$lt_save_ifs
7875  done
7876  : ${lt_cv_path_NM=no}
7877fi
7878fi
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7880$as_echo "$lt_cv_path_NM" >&6; }
7881if test no != "$lt_cv_path_NM"; then
7882  NM=$lt_cv_path_NM
7883else
7884  # Didn't find any BSD compatible name lister, look for dumpbin.
7885  if test -n "$DUMPBIN"; then :
7886    # Let the user override the test.
7887  else
7888    if test -n "$ac_tool_prefix"; then
7889  for ac_prog in dumpbin "link -dump"
7890  do
7891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if ${ac_cv_prog_DUMPBIN+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  if test -n "$DUMPBIN"; then
7899  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904  IFS=$as_save_IFS
7905  test -z "$as_dir" && as_dir=.
7906    for ac_exec_ext in '' $ac_executable_extensions; do
7907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910    break 2
7911  fi
7912done
7913  done
7914IFS=$as_save_IFS
7915
7916fi
7917fi
7918DUMPBIN=$ac_cv_prog_DUMPBIN
7919if test -n "$DUMPBIN"; then
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7921$as_echo "$DUMPBIN" >&6; }
7922else
7923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
7925fi
7926
7927
7928    test -n "$DUMPBIN" && break
7929  done
7930fi
7931if test -z "$DUMPBIN"; then
7932  ac_ct_DUMPBIN=$DUMPBIN
7933  for ac_prog in dumpbin "link -dump"
7934do
7935  # Extract the first word of "$ac_prog", so it can be a program name with args.
7936set dummy $ac_prog; ac_word=$2
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
7939if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7940  $as_echo_n "(cached) " >&6
7941else
7942  if test -n "$ac_ct_DUMPBIN"; then
7943  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7944else
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948  IFS=$as_save_IFS
7949  test -z "$as_dir" && as_dir=.
7950    for ac_exec_ext in '' $ac_executable_extensions; do
7951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954    break 2
7955  fi
7956done
7957  done
7958IFS=$as_save_IFS
7959
7960fi
7961fi
7962ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7963if test -n "$ac_ct_DUMPBIN"; then
7964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7965$as_echo "$ac_ct_DUMPBIN" >&6; }
7966else
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
7969fi
7970
7971
7972  test -n "$ac_ct_DUMPBIN" && break
7973done
7974
7975  if test "x$ac_ct_DUMPBIN" = x; then
7976    DUMPBIN=":"
7977  else
7978    case $cross_compiling:$ac_tool_warned in
7979yes:)
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982ac_tool_warned=yes ;;
7983esac
7984    DUMPBIN=$ac_ct_DUMPBIN
7985  fi
7986fi
7987
7988    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7989    *COFF*)
7990      DUMPBIN="$DUMPBIN -symbols -headers"
7991      ;;
7992    *)
7993      DUMPBIN=:
7994      ;;
7995    esac
7996  fi
7997
7998  if test : != "$DUMPBIN"; then
7999    NM=$DUMPBIN
8000  fi
8001fi
8002test -z "$NM" && NM=nm
8003
8004
8005
8006
8007
8008
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8010$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8011if ${lt_cv_nm_interface+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  lt_cv_nm_interface="BSD nm"
8015  echo "int some_variable = 0;" > conftest.$ac_ext
8016  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8017  (eval "$ac_compile" 2>conftest.err)
8018  cat conftest.err >&5
8019  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8020  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8021  cat conftest.err >&5
8022  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8023  cat conftest.out >&5
8024  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8025    lt_cv_nm_interface="MS dumpbin"
8026  fi
8027  rm -f conftest*
8028fi
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8030$as_echo "$lt_cv_nm_interface" >&6; }
8031
8032# find the maximum length of command line arguments
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8034$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8035if ${lt_cv_sys_max_cmd_len+:} false; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038    i=0
8039  teststring=ABCD
8040
8041  case $build_os in
8042  msdosdjgpp*)
8043    # On DJGPP, this test can blow up pretty badly due to problems in libc
8044    # (any single argument exceeding 2000 bytes causes a buffer overrun
8045    # during glob expansion).  Even if it were fixed, the result of this
8046    # check would be larger than it should be.
8047    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8048    ;;
8049
8050  gnu*)
8051    # Under GNU Hurd, this test is not required because there is
8052    # no limit to the length of command line arguments.
8053    # Libtool will interpret -1 as no limit whatsoever
8054    lt_cv_sys_max_cmd_len=-1;
8055    ;;
8056
8057  cygwin* | mingw* | cegcc*)
8058    # On Win9x/ME, this test blows up -- it succeeds, but takes
8059    # about 5 minutes as the teststring grows exponentially.
8060    # Worse, since 9x/ME are not pre-emptively multitasking,
8061    # you end up with a "frozen" computer, even though with patience
8062    # the test eventually succeeds (with a max line length of 256k).
8063    # Instead, let's just punt: use the minimum linelength reported by
8064    # all of the supported platforms: 8192 (on NT/2K/XP).
8065    lt_cv_sys_max_cmd_len=8192;
8066    ;;
8067
8068  mint*)
8069    # On MiNT this can take a long time and run out of memory.
8070    lt_cv_sys_max_cmd_len=8192;
8071    ;;
8072
8073  amigaos*)
8074    # On AmigaOS with pdksh, this test takes hours, literally.
8075    # So we just punt and use a minimum line length of 8192.
8076    lt_cv_sys_max_cmd_len=8192;
8077    ;;
8078
8079  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8080    # This has been around since 386BSD, at least.  Likely further.
8081    if test -x /sbin/sysctl; then
8082      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8083    elif test -x /usr/sbin/sysctl; then
8084      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8085    else
8086      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8087    fi
8088    # And add a safety zone
8089    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8090    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8091    ;;
8092
8093  interix*)
8094    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8095    lt_cv_sys_max_cmd_len=196608
8096    ;;
8097
8098  os2*)
8099    # The test takes a long time on OS/2.
8100    lt_cv_sys_max_cmd_len=8192
8101    ;;
8102
8103  osf*)
8104    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8105    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8106    # nice to cause kernel panics so lets avoid the loop below.
8107    # First set a reasonable default.
8108    lt_cv_sys_max_cmd_len=16384
8109    #
8110    if test -x /sbin/sysconfig; then
8111      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8112        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8113      esac
8114    fi
8115    ;;
8116  sco3.2v5*)
8117    lt_cv_sys_max_cmd_len=102400
8118    ;;
8119  sysv5* | sco5v6* | sysv4.2uw2*)
8120    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8121    if test -n "$kargmax"; then
8122      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8123    else
8124      lt_cv_sys_max_cmd_len=32768
8125    fi
8126    ;;
8127  *)
8128    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8129    if test -n "$lt_cv_sys_max_cmd_len" && \
8130       test undefined != "$lt_cv_sys_max_cmd_len"; then
8131      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8132      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8133    else
8134      # Make teststring a little bigger before we do anything with it.
8135      # a 1K string should be a reasonable start.
8136      for i in 1 2 3 4 5 6 7 8; do
8137        teststring=$teststring$teststring
8138      done
8139      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8140      # If test is not a shell built-in, we'll probably end up computing a
8141      # maximum length that is only half of the actual maximum length, but
8142      # we can't tell.
8143      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8144	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8145	      test 17 != "$i" # 1/2 MB should be enough
8146      do
8147        i=`expr $i + 1`
8148        teststring=$teststring$teststring
8149      done
8150      # Only check the string length outside the loop.
8151      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8152      teststring=
8153      # Add a significant safety factor because C++ compilers can tack on
8154      # massive amounts of additional arguments before passing them to the
8155      # linker.  It appears as though 1/2 is a usable value.
8156      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8157    fi
8158    ;;
8159  esac
8160
8161fi
8162
8163if test -n "$lt_cv_sys_max_cmd_len"; then
8164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8165$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8166else
8167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8168$as_echo "none" >&6; }
8169fi
8170max_cmd_len=$lt_cv_sys_max_cmd_len
8171
8172
8173
8174
8175
8176
8177: ${CP="cp -f"}
8178: ${MV="mv -f"}
8179: ${RM="rm -f"}
8180
8181if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8182  lt_unset=unset
8183else
8184  lt_unset=false
8185fi
8186
8187
8188
8189
8190
8191# test EBCDIC or ASCII
8192case `echo X|tr X '\101'` in
8193 A) # ASCII based system
8194    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8195  lt_SP2NL='tr \040 \012'
8196  lt_NL2SP='tr \015\012 \040\040'
8197  ;;
8198 *) # EBCDIC based system
8199  lt_SP2NL='tr \100 \n'
8200  lt_NL2SP='tr \r\n \100\100'
8201  ;;
8202esac
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8213$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8214if ${lt_cv_to_host_file_cmd+:} false; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217  case $host in
8218  *-*-mingw* )
8219    case $build in
8220      *-*-mingw* ) # actually msys
8221        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8222        ;;
8223      *-*-cygwin* )
8224        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8225        ;;
8226      * ) # otherwise, assume *nix
8227        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8228        ;;
8229    esac
8230    ;;
8231  *-*-cygwin* )
8232    case $build in
8233      *-*-mingw* ) # actually msys
8234        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8235        ;;
8236      *-*-cygwin* )
8237        lt_cv_to_host_file_cmd=func_convert_file_noop
8238        ;;
8239      * ) # otherwise, assume *nix
8240        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8241        ;;
8242    esac
8243    ;;
8244  * ) # unhandled hosts (and "normal" native builds)
8245    lt_cv_to_host_file_cmd=func_convert_file_noop
8246    ;;
8247esac
8248
8249fi
8250
8251to_host_file_cmd=$lt_cv_to_host_file_cmd
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8253$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8254
8255
8256
8257
8258
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8260$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8261if ${lt_cv_to_tool_file_cmd+:} false; then :
8262  $as_echo_n "(cached) " >&6
8263else
8264  #assume ordinary cross tools, or native build.
8265lt_cv_to_tool_file_cmd=func_convert_file_noop
8266case $host in
8267  *-*-mingw* )
8268    case $build in
8269      *-*-mingw* ) # actually msys
8270        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8271        ;;
8272    esac
8273    ;;
8274esac
8275
8276fi
8277
8278to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8280$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8281
8282
8283
8284
8285
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8287$as_echo_n "checking for $LD option to reload object files... " >&6; }
8288if ${lt_cv_ld_reload_flag+:} false; then :
8289  $as_echo_n "(cached) " >&6
8290else
8291  lt_cv_ld_reload_flag='-r'
8292fi
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8294$as_echo "$lt_cv_ld_reload_flag" >&6; }
8295reload_flag=$lt_cv_ld_reload_flag
8296case $reload_flag in
8297"" | " "*) ;;
8298*) reload_flag=" $reload_flag" ;;
8299esac
8300reload_cmds='$LD$reload_flag -o $output$reload_objs'
8301case $host_os in
8302  cygwin* | mingw* | pw32* | cegcc*)
8303    if test yes != "$GCC"; then
8304      reload_cmds=false
8305    fi
8306    ;;
8307  darwin*)
8308    if test yes = "$GCC"; then
8309      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8310    else
8311      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8312    fi
8313    ;;
8314esac
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324if test -n "$ac_tool_prefix"; then
8325  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8326set dummy ${ac_tool_prefix}objdump; ac_word=$2
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328$as_echo_n "checking for $ac_word... " >&6; }
8329if ${ac_cv_prog_OBJDUMP+:} false; then :
8330  $as_echo_n "(cached) " >&6
8331else
8332  if test -n "$OBJDUMP"; then
8333  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8334else
8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336for as_dir in $PATH
8337do
8338  IFS=$as_save_IFS
8339  test -z "$as_dir" && as_dir=.
8340    for ac_exec_ext in '' $ac_executable_extensions; do
8341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344    break 2
8345  fi
8346done
8347  done
8348IFS=$as_save_IFS
8349
8350fi
8351fi
8352OBJDUMP=$ac_cv_prog_OBJDUMP
8353if test -n "$OBJDUMP"; then
8354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8355$as_echo "$OBJDUMP" >&6; }
8356else
8357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358$as_echo "no" >&6; }
8359fi
8360
8361
8362fi
8363if test -z "$ac_cv_prog_OBJDUMP"; then
8364  ac_ct_OBJDUMP=$OBJDUMP
8365  # Extract the first word of "objdump", so it can be a program name with args.
8366set dummy objdump; ac_word=$2
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368$as_echo_n "checking for $ac_word... " >&6; }
8369if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8370  $as_echo_n "(cached) " >&6
8371else
8372  if test -n "$ac_ct_OBJDUMP"; then
8373  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8374else
8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376for as_dir in $PATH
8377do
8378  IFS=$as_save_IFS
8379  test -z "$as_dir" && as_dir=.
8380    for ac_exec_ext in '' $ac_executable_extensions; do
8381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384    break 2
8385  fi
8386done
8387  done
8388IFS=$as_save_IFS
8389
8390fi
8391fi
8392ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8393if test -n "$ac_ct_OBJDUMP"; then
8394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8395$as_echo "$ac_ct_OBJDUMP" >&6; }
8396else
8397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398$as_echo "no" >&6; }
8399fi
8400
8401  if test "x$ac_ct_OBJDUMP" = x; then
8402    OBJDUMP="false"
8403  else
8404    case $cross_compiling:$ac_tool_warned in
8405yes:)
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408ac_tool_warned=yes ;;
8409esac
8410    OBJDUMP=$ac_ct_OBJDUMP
8411  fi
8412else
8413  OBJDUMP="$ac_cv_prog_OBJDUMP"
8414fi
8415
8416test -z "$OBJDUMP" && OBJDUMP=objdump
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8427$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8428if ${lt_cv_deplibs_check_method+:} false; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  lt_cv_file_magic_cmd='$MAGIC_CMD'
8432lt_cv_file_magic_test_file=
8433lt_cv_deplibs_check_method='unknown'
8434# Need to set the preceding variable on all platforms that support
8435# interlibrary dependencies.
8436# 'none' -- dependencies not supported.
8437# 'unknown' -- same as none, but documents that we really don't know.
8438# 'pass_all' -- all dependencies passed with no checks.
8439# 'test_compile' -- check by making test program.
8440# 'file_magic [[regex]]' -- check by looking for files in library path
8441# that responds to the $file_magic_cmd with a given extended regex.
8442# If you have 'file' or equivalent on your system and you're not sure
8443# whether 'pass_all' will *always* work, you probably want this one.
8444
8445case $host_os in
8446aix[4-9]*)
8447  lt_cv_deplibs_check_method=pass_all
8448  ;;
8449
8450beos*)
8451  lt_cv_deplibs_check_method=pass_all
8452  ;;
8453
8454bsdi[45]*)
8455  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8456  lt_cv_file_magic_cmd='/usr/bin/file -L'
8457  lt_cv_file_magic_test_file=/shlib/libc.so
8458  ;;
8459
8460cygwin*)
8461  # func_win32_libid is a shell function defined in ltmain.sh
8462  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8463  lt_cv_file_magic_cmd='func_win32_libid'
8464  ;;
8465
8466mingw* | pw32*)
8467  # Base MSYS/MinGW do not provide the 'file' command needed by
8468  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8469  # unless we find 'file', for example because we are cross-compiling.
8470  if ( file / ) >/dev/null 2>&1; then
8471    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8472    lt_cv_file_magic_cmd='func_win32_libid'
8473  else
8474    # Keep this pattern in sync with the one in func_win32_libid.
8475    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8476    lt_cv_file_magic_cmd='$OBJDUMP -f'
8477  fi
8478  ;;
8479
8480cegcc*)
8481  # use the weaker test based on 'objdump'. See mingw*.
8482  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8483  lt_cv_file_magic_cmd='$OBJDUMP -f'
8484  ;;
8485
8486darwin* | rhapsody*)
8487  lt_cv_deplibs_check_method=pass_all
8488  ;;
8489
8490freebsd* | dragonfly*)
8491  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8492    case $host_cpu in
8493    i*86 )
8494      # Not sure whether the presence of OpenBSD here was a mistake.
8495      # Let's accept both of them until this is cleared up.
8496      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8497      lt_cv_file_magic_cmd=/usr/bin/file
8498      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8499      ;;
8500    esac
8501  else
8502    lt_cv_deplibs_check_method=pass_all
8503  fi
8504  ;;
8505
8506haiku*)
8507  lt_cv_deplibs_check_method=pass_all
8508  ;;
8509
8510hpux10.20* | hpux11*)
8511  lt_cv_file_magic_cmd=/usr/bin/file
8512  case $host_cpu in
8513  ia64*)
8514    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8515    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8516    ;;
8517  hppa*64*)
8518    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8519    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8520    ;;
8521  *)
8522    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8523    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8524    ;;
8525  esac
8526  ;;
8527
8528interix[3-9]*)
8529  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8530  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8531  ;;
8532
8533irix5* | irix6* | nonstopux*)
8534  case $LD in
8535  *-32|*"-32 ") libmagic=32-bit;;
8536  *-n32|*"-n32 ") libmagic=N32;;
8537  *-64|*"-64 ") libmagic=64-bit;;
8538  *) libmagic=never-match;;
8539  esac
8540  lt_cv_deplibs_check_method=pass_all
8541  ;;
8542
8543# This must be glibc/ELF.
8544linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8545  lt_cv_deplibs_check_method=pass_all
8546  ;;
8547
8548netbsd*)
8549  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8550    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8551  else
8552    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8553  fi
8554  ;;
8555
8556newos6*)
8557  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8558  lt_cv_file_magic_cmd=/usr/bin/file
8559  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8560  ;;
8561
8562*nto* | *qnx*)
8563  lt_cv_deplibs_check_method=pass_all
8564  ;;
8565
8566openbsd* | bitrig*)
8567  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8569  else
8570    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8571  fi
8572  ;;
8573
8574osf3* | osf4* | osf5*)
8575  lt_cv_deplibs_check_method=pass_all
8576  ;;
8577
8578rdos*)
8579  lt_cv_deplibs_check_method=pass_all
8580  ;;
8581
8582solaris*)
8583  lt_cv_deplibs_check_method=pass_all
8584  ;;
8585
8586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8587  lt_cv_deplibs_check_method=pass_all
8588  ;;
8589
8590sysv4 | sysv4.3*)
8591  case $host_vendor in
8592  motorola)
8593    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8594    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8595    ;;
8596  ncr)
8597    lt_cv_deplibs_check_method=pass_all
8598    ;;
8599  sequent)
8600    lt_cv_file_magic_cmd='/bin/file'
8601    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8602    ;;
8603  sni)
8604    lt_cv_file_magic_cmd='/bin/file'
8605    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8606    lt_cv_file_magic_test_file=/lib/libc.so
8607    ;;
8608  siemens)
8609    lt_cv_deplibs_check_method=pass_all
8610    ;;
8611  pc)
8612    lt_cv_deplibs_check_method=pass_all
8613    ;;
8614  esac
8615  ;;
8616
8617tpf*)
8618  lt_cv_deplibs_check_method=pass_all
8619  ;;
8620os2*)
8621  lt_cv_deplibs_check_method=pass_all
8622  ;;
8623esac
8624
8625fi
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8627$as_echo "$lt_cv_deplibs_check_method" >&6; }
8628
8629file_magic_glob=
8630want_nocaseglob=no
8631if test "$build" = "$host"; then
8632  case $host_os in
8633  mingw* | pw32*)
8634    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8635      want_nocaseglob=yes
8636    else
8637      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8638    fi
8639    ;;
8640  esac
8641fi
8642
8643file_magic_cmd=$lt_cv_file_magic_cmd
8644deplibs_check_method=$lt_cv_deplibs_check_method
8645test -z "$deplibs_check_method" && deplibs_check_method=unknown
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668if test -n "$ac_tool_prefix"; then
8669  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8670set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672$as_echo_n "checking for $ac_word... " >&6; }
8673if ${ac_cv_prog_DLLTOOL+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676  if test -n "$DLLTOOL"; then
8677  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8678else
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682  IFS=$as_save_IFS
8683  test -z "$as_dir" && as_dir=.
8684    for ac_exec_ext in '' $ac_executable_extensions; do
8685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688    break 2
8689  fi
8690done
8691  done
8692IFS=$as_save_IFS
8693
8694fi
8695fi
8696DLLTOOL=$ac_cv_prog_DLLTOOL
8697if test -n "$DLLTOOL"; then
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8699$as_echo "$DLLTOOL" >&6; }
8700else
8701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702$as_echo "no" >&6; }
8703fi
8704
8705
8706fi
8707if test -z "$ac_cv_prog_DLLTOOL"; then
8708  ac_ct_DLLTOOL=$DLLTOOL
8709  # Extract the first word of "dlltool", so it can be a program name with args.
8710set dummy dlltool; ac_word=$2
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712$as_echo_n "checking for $ac_word... " >&6; }
8713if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8714  $as_echo_n "(cached) " >&6
8715else
8716  if test -n "$ac_ct_DLLTOOL"; then
8717  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8718else
8719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720for as_dir in $PATH
8721do
8722  IFS=$as_save_IFS
8723  test -z "$as_dir" && as_dir=.
8724    for ac_exec_ext in '' $ac_executable_extensions; do
8725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8726    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728    break 2
8729  fi
8730done
8731  done
8732IFS=$as_save_IFS
8733
8734fi
8735fi
8736ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8737if test -n "$ac_ct_DLLTOOL"; then
8738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8739$as_echo "$ac_ct_DLLTOOL" >&6; }
8740else
8741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742$as_echo "no" >&6; }
8743fi
8744
8745  if test "x$ac_ct_DLLTOOL" = x; then
8746    DLLTOOL="false"
8747  else
8748    case $cross_compiling:$ac_tool_warned in
8749yes:)
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8752ac_tool_warned=yes ;;
8753esac
8754    DLLTOOL=$ac_ct_DLLTOOL
8755  fi
8756else
8757  DLLTOOL="$ac_cv_prog_DLLTOOL"
8758fi
8759
8760test -z "$DLLTOOL" && DLLTOOL=dlltool
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8772$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8773if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  lt_cv_sharedlib_from_linklib_cmd='unknown'
8777
8778case $host_os in
8779cygwin* | mingw* | pw32* | cegcc*)
8780  # two different shell functions defined in ltmain.sh;
8781  # decide which one to use based on capabilities of $DLLTOOL
8782  case `$DLLTOOL --help 2>&1` in
8783  *--identify-strict*)
8784    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8785    ;;
8786  *)
8787    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8788    ;;
8789  esac
8790  ;;
8791*)
8792  # fallback: assume linklib IS sharedlib
8793  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8794  ;;
8795esac
8796
8797fi
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8799$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8800sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8801test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8802
8803
8804
8805
8806
8807
8808
8809if test -n "$ac_tool_prefix"; then
8810  for ac_prog in ar
8811  do
8812    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815$as_echo_n "checking for $ac_word... " >&6; }
8816if ${ac_cv_prog_AR+:} false; then :
8817  $as_echo_n "(cached) " >&6
8818else
8819  if test -n "$AR"; then
8820  ac_cv_prog_AR="$AR" # Let the user override the test.
8821else
8822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823for as_dir in $PATH
8824do
8825  IFS=$as_save_IFS
8826  test -z "$as_dir" && as_dir=.
8827    for ac_exec_ext in '' $ac_executable_extensions; do
8828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8829    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831    break 2
8832  fi
8833done
8834  done
8835IFS=$as_save_IFS
8836
8837fi
8838fi
8839AR=$ac_cv_prog_AR
8840if test -n "$AR"; then
8841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8842$as_echo "$AR" >&6; }
8843else
8844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845$as_echo "no" >&6; }
8846fi
8847
8848
8849    test -n "$AR" && break
8850  done
8851fi
8852if test -z "$AR"; then
8853  ac_ct_AR=$AR
8854  for ac_prog in ar
8855do
8856  # Extract the first word of "$ac_prog", so it can be a program name with args.
8857set dummy $ac_prog; ac_word=$2
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8859$as_echo_n "checking for $ac_word... " >&6; }
8860if ${ac_cv_prog_ac_ct_AR+:} false; then :
8861  $as_echo_n "(cached) " >&6
8862else
8863  if test -n "$ac_ct_AR"; then
8864  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8865else
8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH
8868do
8869  IFS=$as_save_IFS
8870  test -z "$as_dir" && as_dir=.
8871    for ac_exec_ext in '' $ac_executable_extensions; do
8872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8873    ac_cv_prog_ac_ct_AR="$ac_prog"
8874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875    break 2
8876  fi
8877done
8878  done
8879IFS=$as_save_IFS
8880
8881fi
8882fi
8883ac_ct_AR=$ac_cv_prog_ac_ct_AR
8884if test -n "$ac_ct_AR"; then
8885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8886$as_echo "$ac_ct_AR" >&6; }
8887else
8888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889$as_echo "no" >&6; }
8890fi
8891
8892
8893  test -n "$ac_ct_AR" && break
8894done
8895
8896  if test "x$ac_ct_AR" = x; then
8897    AR="false"
8898  else
8899    case $cross_compiling:$ac_tool_warned in
8900yes:)
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8903ac_tool_warned=yes ;;
8904esac
8905    AR=$ac_ct_AR
8906  fi
8907fi
8908
8909: ${AR=ar}
8910: ${AR_FLAGS=cru}
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8923$as_echo_n "checking for archiver @FILE support... " >&6; }
8924if ${lt_cv_ar_at_file+:} false; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  lt_cv_ar_at_file=no
8928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h.  */
8930
8931int
8932main ()
8933{
8934
8935  ;
8936  return 0;
8937}
8938_ACEOF
8939if ac_fn_c_try_compile "$LINENO"; then :
8940  echo conftest.$ac_objext > conftest.lst
8941      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8942      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8943  (eval $lt_ar_try) 2>&5
8944  ac_status=$?
8945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8946  test $ac_status = 0; }
8947      if test 0 -eq "$ac_status"; then
8948	# Ensure the archiver fails upon bogus file names.
8949	rm -f conftest.$ac_objext libconftest.a
8950	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8951  (eval $lt_ar_try) 2>&5
8952  ac_status=$?
8953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8954  test $ac_status = 0; }
8955	if test 0 -ne "$ac_status"; then
8956          lt_cv_ar_at_file=@
8957        fi
8958      fi
8959      rm -f conftest.* libconftest.a
8960
8961fi
8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963
8964fi
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8966$as_echo "$lt_cv_ar_at_file" >&6; }
8967
8968if test no = "$lt_cv_ar_at_file"; then
8969  archiver_list_spec=
8970else
8971  archiver_list_spec=$lt_cv_ar_at_file
8972fi
8973
8974
8975
8976
8977
8978
8979
8980if test -n "$ac_tool_prefix"; then
8981  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8982set dummy ${ac_tool_prefix}strip; ac_word=$2
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984$as_echo_n "checking for $ac_word... " >&6; }
8985if ${ac_cv_prog_STRIP+:} false; then :
8986  $as_echo_n "(cached) " >&6
8987else
8988  if test -n "$STRIP"; then
8989  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8990else
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994  IFS=$as_save_IFS
8995  test -z "$as_dir" && as_dir=.
8996    for ac_exec_ext in '' $ac_executable_extensions; do
8997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8998    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000    break 2
9001  fi
9002done
9003  done
9004IFS=$as_save_IFS
9005
9006fi
9007fi
9008STRIP=$ac_cv_prog_STRIP
9009if test -n "$STRIP"; then
9010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9011$as_echo "$STRIP" >&6; }
9012else
9013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
9015fi
9016
9017
9018fi
9019if test -z "$ac_cv_prog_STRIP"; then
9020  ac_ct_STRIP=$STRIP
9021  # Extract the first word of "strip", so it can be a program name with args.
9022set dummy strip; ac_word=$2
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024$as_echo_n "checking for $ac_word... " >&6; }
9025if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9026  $as_echo_n "(cached) " >&6
9027else
9028  if test -n "$ac_ct_STRIP"; then
9029  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9030else
9031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032for as_dir in $PATH
9033do
9034  IFS=$as_save_IFS
9035  test -z "$as_dir" && as_dir=.
9036    for ac_exec_ext in '' $ac_executable_extensions; do
9037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038    ac_cv_prog_ac_ct_STRIP="strip"
9039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040    break 2
9041  fi
9042done
9043  done
9044IFS=$as_save_IFS
9045
9046fi
9047fi
9048ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9049if test -n "$ac_ct_STRIP"; then
9050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9051$as_echo "$ac_ct_STRIP" >&6; }
9052else
9053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054$as_echo "no" >&6; }
9055fi
9056
9057  if test "x$ac_ct_STRIP" = x; then
9058    STRIP=":"
9059  else
9060    case $cross_compiling:$ac_tool_warned in
9061yes:)
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9064ac_tool_warned=yes ;;
9065esac
9066    STRIP=$ac_ct_STRIP
9067  fi
9068else
9069  STRIP="$ac_cv_prog_STRIP"
9070fi
9071
9072test -z "$STRIP" && STRIP=:
9073
9074
9075
9076
9077
9078
9079if test -n "$ac_tool_prefix"; then
9080  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9081set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083$as_echo_n "checking for $ac_word... " >&6; }
9084if ${ac_cv_prog_RANLIB+:} false; then :
9085  $as_echo_n "(cached) " >&6
9086else
9087  if test -n "$RANLIB"; then
9088  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9089else
9090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093  IFS=$as_save_IFS
9094  test -z "$as_dir" && as_dir=.
9095    for ac_exec_ext in '' $ac_executable_extensions; do
9096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099    break 2
9100  fi
9101done
9102  done
9103IFS=$as_save_IFS
9104
9105fi
9106fi
9107RANLIB=$ac_cv_prog_RANLIB
9108if test -n "$RANLIB"; then
9109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9110$as_echo "$RANLIB" >&6; }
9111else
9112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
9114fi
9115
9116
9117fi
9118if test -z "$ac_cv_prog_RANLIB"; then
9119  ac_ct_RANLIB=$RANLIB
9120  # Extract the first word of "ranlib", so it can be a program name with args.
9121set dummy ranlib; ac_word=$2
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123$as_echo_n "checking for $ac_word... " >&6; }
9124if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9125  $as_echo_n "(cached) " >&6
9126else
9127  if test -n "$ac_ct_RANLIB"; then
9128  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9129else
9130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131for as_dir in $PATH
9132do
9133  IFS=$as_save_IFS
9134  test -z "$as_dir" && as_dir=.
9135    for ac_exec_ext in '' $ac_executable_extensions; do
9136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137    ac_cv_prog_ac_ct_RANLIB="ranlib"
9138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139    break 2
9140  fi
9141done
9142  done
9143IFS=$as_save_IFS
9144
9145fi
9146fi
9147ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9148if test -n "$ac_ct_RANLIB"; then
9149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9150$as_echo "$ac_ct_RANLIB" >&6; }
9151else
9152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153$as_echo "no" >&6; }
9154fi
9155
9156  if test "x$ac_ct_RANLIB" = x; then
9157    RANLIB=":"
9158  else
9159    case $cross_compiling:$ac_tool_warned in
9160yes:)
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9163ac_tool_warned=yes ;;
9164esac
9165    RANLIB=$ac_ct_RANLIB
9166  fi
9167else
9168  RANLIB="$ac_cv_prog_RANLIB"
9169fi
9170
9171test -z "$RANLIB" && RANLIB=:
9172
9173
9174
9175
9176
9177
9178# Determine commands to create old-style static archives.
9179old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9180old_postinstall_cmds='chmod 644 $oldlib'
9181old_postuninstall_cmds=
9182
9183if test -n "$RANLIB"; then
9184  case $host_os in
9185  bitrig* | openbsd*)
9186    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9187    ;;
9188  *)
9189    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9190    ;;
9191  esac
9192  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9193fi
9194
9195case $host_os in
9196  darwin*)
9197    lock_old_archive_extraction=yes ;;
9198  *)
9199    lock_old_archive_extraction=no ;;
9200esac
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222for ac_prog in gawk mawk nawk awk
9223do
9224  # Extract the first word of "$ac_prog", so it can be a program name with args.
9225set dummy $ac_prog; ac_word=$2
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227$as_echo_n "checking for $ac_word... " >&6; }
9228if ${ac_cv_prog_AWK+:} false; then :
9229  $as_echo_n "(cached) " >&6
9230else
9231  if test -n "$AWK"; then
9232  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9233else
9234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235for as_dir in $PATH
9236do
9237  IFS=$as_save_IFS
9238  test -z "$as_dir" && as_dir=.
9239    for ac_exec_ext in '' $ac_executable_extensions; do
9240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241    ac_cv_prog_AWK="$ac_prog"
9242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243    break 2
9244  fi
9245done
9246  done
9247IFS=$as_save_IFS
9248
9249fi
9250fi
9251AWK=$ac_cv_prog_AWK
9252if test -n "$AWK"; then
9253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9254$as_echo "$AWK" >&6; }
9255else
9256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257$as_echo "no" >&6; }
9258fi
9259
9260
9261  test -n "$AWK" && break
9262done
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282# If no C compiler was specified, use CC.
9283LTCC=${LTCC-"$CC"}
9284
9285# If no C compiler flags were specified, use CFLAGS.
9286LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9287
9288# Allow CC to be a program name with arguments.
9289compiler=$CC
9290
9291
9292# Check for command to grab the raw symbol name followed by C symbol from nm.
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9294$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9295if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9296  $as_echo_n "(cached) " >&6
9297else
9298
9299# These are sane defaults that work on at least a few old systems.
9300# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9301
9302# Character class describing NM global symbol codes.
9303symcode='[BCDEGRST]'
9304
9305# Regexp to match symbols that can be accessed directly from C.
9306sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9307
9308# Define system-specific variables.
9309case $host_os in
9310aix*)
9311  symcode='[BCDT]'
9312  ;;
9313cygwin* | mingw* | pw32* | cegcc*)
9314  symcode='[ABCDGISTW]'
9315  ;;
9316hpux*)
9317  if test ia64 = "$host_cpu"; then
9318    symcode='[ABCDEGRST]'
9319  fi
9320  ;;
9321irix* | nonstopux*)
9322  symcode='[BCDEGRST]'
9323  ;;
9324osf*)
9325  symcode='[BCDEGQRST]'
9326  ;;
9327solaris*)
9328  symcode='[BDRT]'
9329  ;;
9330sco3.2v5*)
9331  symcode='[DT]'
9332  ;;
9333sysv4.2uw2*)
9334  symcode='[DT]'
9335  ;;
9336sysv5* | sco5v6* | unixware* | OpenUNIX*)
9337  symcode='[ABDT]'
9338  ;;
9339sysv4)
9340  symcode='[DFNSTU]'
9341  ;;
9342esac
9343
9344# If we're using GNU nm, then use its standard symbol codes.
9345case `$NM -V 2>&1` in
9346*GNU* | *'with BFD'*)
9347  symcode='[ABCDGIRSTW]' ;;
9348esac
9349
9350if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9351  # Gets list of data symbols to import.
9352  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9353  # Adjust the below global symbol transforms to fixup imported variables.
9354  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9355  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9356  lt_c_name_lib_hook="\
9357  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9358  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9359else
9360  # Disable hooks by default.
9361  lt_cv_sys_global_symbol_to_import=
9362  lt_cdecl_hook=
9363  lt_c_name_hook=
9364  lt_c_name_lib_hook=
9365fi
9366
9367# Transform an extracted symbol line into a proper C declaration.
9368# Some systems (esp. on ia64) link data and code symbols differently,
9369# so use this general approach.
9370lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9371$lt_cdecl_hook\
9372" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9373" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9374
9375# Transform an extracted symbol line into symbol name and symbol address
9376lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9377$lt_c_name_hook\
9378" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9379" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9380
9381# Transform an extracted symbol line into symbol name with lib prefix and
9382# symbol address.
9383lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9384$lt_c_name_lib_hook\
9385" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9386" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9387" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9388
9389# Handle CRLF in mingw tool chain
9390opt_cr=
9391case $build_os in
9392mingw*)
9393  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9394  ;;
9395esac
9396
9397# Try without a prefix underscore, then with it.
9398for ac_symprfx in "" "_"; do
9399
9400  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9401  symxfrm="\\1 $ac_symprfx\\2 \\2"
9402
9403  # Write the raw and C identifiers.
9404  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9405    # Fake it for dumpbin and say T for any non-static function,
9406    # D for any global variable and I for any imported variable.
9407    # Also find C++ and __fastcall symbols from MSVC++,
9408    # which start with @ or ?.
9409    lt_cv_sys_global_symbol_pipe="$AWK '"\
9410"     {last_section=section; section=\$ 3};"\
9411"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9412"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9413"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9414"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9415"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9416"     \$ 0!~/External *\|/{next};"\
9417"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9418"     {if(hide[section]) next};"\
9419"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9420"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9421"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9422"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9423"     ' prfx=^$ac_symprfx"
9424  else
9425    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9426  fi
9427  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9428
9429  # Check to see that the pipe works correctly.
9430  pipe_works=no
9431
9432  rm -f conftest*
9433  cat > conftest.$ac_ext <<_LT_EOF
9434#ifdef __cplusplus
9435extern "C" {
9436#endif
9437char nm_test_var;
9438void nm_test_func(void);
9439void nm_test_func(void){}
9440#ifdef __cplusplus
9441}
9442#endif
9443int main(){nm_test_var='a';nm_test_func();return(0);}
9444_LT_EOF
9445
9446  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9447  (eval $ac_compile) 2>&5
9448  ac_status=$?
9449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9450  test $ac_status = 0; }; then
9451    # Now try to grab the symbols.
9452    nlist=conftest.nm
9453    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9454  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9455  ac_status=$?
9456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9457  test $ac_status = 0; } && test -s "$nlist"; then
9458      # Try sorting and uniquifying the output.
9459      if sort "$nlist" | uniq > "$nlist"T; then
9460	mv -f "$nlist"T "$nlist"
9461      else
9462	rm -f "$nlist"T
9463      fi
9464
9465      # Make sure that we snagged all the symbols we need.
9466      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9467	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9468	  cat <<_LT_EOF > conftest.$ac_ext
9469/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9470#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9471/* DATA imports from DLLs on WIN32 can't be const, because runtime
9472   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9473# define LT_DLSYM_CONST
9474#elif defined __osf__
9475/* This system does not cope well with relocations in const data.  */
9476# define LT_DLSYM_CONST
9477#else
9478# define LT_DLSYM_CONST const
9479#endif
9480
9481#ifdef __cplusplus
9482extern "C" {
9483#endif
9484
9485_LT_EOF
9486	  # Now generate the symbol file.
9487	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9488
9489	  cat <<_LT_EOF >> conftest.$ac_ext
9490
9491/* The mapping between symbol names and symbols.  */
9492LT_DLSYM_CONST struct {
9493  const char *name;
9494  void       *address;
9495}
9496lt__PROGRAM__LTX_preloaded_symbols[] =
9497{
9498  { "@PROGRAM@", (void *) 0 },
9499_LT_EOF
9500	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9501	  cat <<\_LT_EOF >> conftest.$ac_ext
9502  {0, (void *) 0}
9503};
9504
9505/* This works around a problem in FreeBSD linker */
9506#ifdef FREEBSD_WORKAROUND
9507static const void *lt_preloaded_setup() {
9508  return lt__PROGRAM__LTX_preloaded_symbols;
9509}
9510#endif
9511
9512#ifdef __cplusplus
9513}
9514#endif
9515_LT_EOF
9516	  # Now try linking the two files.
9517	  mv conftest.$ac_objext conftstm.$ac_objext
9518	  lt_globsym_save_LIBS=$LIBS
9519	  lt_globsym_save_CFLAGS=$CFLAGS
9520	  LIBS=conftstm.$ac_objext
9521	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9522	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9523  (eval $ac_link) 2>&5
9524  ac_status=$?
9525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9527	    pipe_works=yes
9528	  fi
9529	  LIBS=$lt_globsym_save_LIBS
9530	  CFLAGS=$lt_globsym_save_CFLAGS
9531	else
9532	  echo "cannot find nm_test_func in $nlist" >&5
9533	fi
9534      else
9535	echo "cannot find nm_test_var in $nlist" >&5
9536      fi
9537    else
9538      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9539    fi
9540  else
9541    echo "$progname: failed program was:" >&5
9542    cat conftest.$ac_ext >&5
9543  fi
9544  rm -rf conftest* conftst*
9545
9546  # Do not use the global_symbol_pipe unless it works.
9547  if test yes = "$pipe_works"; then
9548    break
9549  else
9550    lt_cv_sys_global_symbol_pipe=
9551  fi
9552done
9553
9554fi
9555
9556if test -z "$lt_cv_sys_global_symbol_pipe"; then
9557  lt_cv_sys_global_symbol_to_cdecl=
9558fi
9559if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9561$as_echo "failed" >&6; }
9562else
9563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9564$as_echo "ok" >&6; }
9565fi
9566
9567# Response file support.
9568if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9569  nm_file_list_spec='@'
9570elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9571  nm_file_list_spec='@'
9572fi
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9611$as_echo_n "checking for sysroot... " >&6; }
9612
9613# Check whether --with-sysroot was given.
9614if test "${with_sysroot+set}" = set; then :
9615  withval=$with_sysroot;
9616else
9617  with_sysroot=no
9618fi
9619
9620
9621lt_sysroot=
9622case $with_sysroot in #(
9623 yes)
9624   if test yes = "$GCC"; then
9625     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9626   fi
9627   ;; #(
9628 /*)
9629   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9630   ;; #(
9631 no|'')
9632   ;; #(
9633 *)
9634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9635$as_echo "$with_sysroot" >&6; }
9636   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9637   ;;
9638esac
9639
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9641$as_echo "${lt_sysroot:-no}" >&6; }
9642
9643
9644
9645
9646
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9648$as_echo_n "checking for a working dd... " >&6; }
9649if ${ac_cv_path_lt_DD+:} false; then :
9650  $as_echo_n "(cached) " >&6
9651else
9652  printf 0123456789abcdef0123456789abcdef >conftest.i
9653cat conftest.i conftest.i >conftest2.i
9654: ${lt_DD:=$DD}
9655if test -z "$lt_DD"; then
9656  ac_path_lt_DD_found=false
9657  # Loop through the user's path and test for each of PROGNAME-LIST
9658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9659for as_dir in $PATH
9660do
9661  IFS=$as_save_IFS
9662  test -z "$as_dir" && as_dir=.
9663    for ac_prog in dd; do
9664    for ac_exec_ext in '' $ac_executable_extensions; do
9665      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9666      as_fn_executable_p "$ac_path_lt_DD" || continue
9667if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9668  cmp -s conftest.i conftest.out \
9669  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9670fi
9671      $ac_path_lt_DD_found && break 3
9672    done
9673  done
9674  done
9675IFS=$as_save_IFS
9676  if test -z "$ac_cv_path_lt_DD"; then
9677    :
9678  fi
9679else
9680  ac_cv_path_lt_DD=$lt_DD
9681fi
9682
9683rm -f conftest.i conftest2.i conftest.out
9684fi
9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9686$as_echo "$ac_cv_path_lt_DD" >&6; }
9687
9688
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9690$as_echo_n "checking how to truncate binary pipes... " >&6; }
9691if ${lt_cv_truncate_bin+:} false; then :
9692  $as_echo_n "(cached) " >&6
9693else
9694  printf 0123456789abcdef0123456789abcdef >conftest.i
9695cat conftest.i conftest.i >conftest2.i
9696lt_cv_truncate_bin=
9697if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9698  cmp -s conftest.i conftest.out \
9699  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9700fi
9701rm -f conftest.i conftest2.i conftest.out
9702test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9703fi
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9705$as_echo "$lt_cv_truncate_bin" >&6; }
9706
9707
9708
9709
9710
9711
9712
9713# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9714func_cc_basename ()
9715{
9716    for cc_temp in $*""; do
9717      case $cc_temp in
9718        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9719        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9720        \-*) ;;
9721        *) break;;
9722      esac
9723    done
9724    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9725}
9726
9727# Check whether --enable-libtool-lock was given.
9728if test "${enable_libtool_lock+set}" = set; then :
9729  enableval=$enable_libtool_lock;
9730fi
9731
9732test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9733
9734# Some flags need to be propagated to the compiler or linker for good
9735# libtool support.
9736case $host in
9737ia64-*-hpux*)
9738  # Find out what ABI is being produced by ac_compile, and set mode
9739  # options accordingly.
9740  echo 'int i;' > conftest.$ac_ext
9741  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9742  (eval $ac_compile) 2>&5
9743  ac_status=$?
9744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9745  test $ac_status = 0; }; then
9746    case `/usr/bin/file conftest.$ac_objext` in
9747      *ELF-32*)
9748	HPUX_IA64_MODE=32
9749	;;
9750      *ELF-64*)
9751	HPUX_IA64_MODE=64
9752	;;
9753    esac
9754  fi
9755  rm -rf conftest*
9756  ;;
9757*-*-irix6*)
9758  # Find out what ABI is being produced by ac_compile, and set linker
9759  # options accordingly.
9760  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9761  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9762  (eval $ac_compile) 2>&5
9763  ac_status=$?
9764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765  test $ac_status = 0; }; then
9766    if test yes = "$lt_cv_prog_gnu_ld"; then
9767      case `/usr/bin/file conftest.$ac_objext` in
9768	*32-bit*)
9769	  LD="${LD-ld} -melf32bsmip"
9770	  ;;
9771	*N32*)
9772	  LD="${LD-ld} -melf32bmipn32"
9773	  ;;
9774	*64-bit*)
9775	  LD="${LD-ld} -melf64bmip"
9776	;;
9777      esac
9778    else
9779      case `/usr/bin/file conftest.$ac_objext` in
9780	*32-bit*)
9781	  LD="${LD-ld} -32"
9782	  ;;
9783	*N32*)
9784	  LD="${LD-ld} -n32"
9785	  ;;
9786	*64-bit*)
9787	  LD="${LD-ld} -64"
9788	  ;;
9789      esac
9790    fi
9791  fi
9792  rm -rf conftest*
9793  ;;
9794
9795mips64*-*linux*)
9796  # Find out what ABI is being produced by ac_compile, and set linker
9797  # options accordingly.
9798  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9799  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9800  (eval $ac_compile) 2>&5
9801  ac_status=$?
9802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9803  test $ac_status = 0; }; then
9804    emul=elf
9805    case `/usr/bin/file conftest.$ac_objext` in
9806      *32-bit*)
9807	emul="${emul}32"
9808	;;
9809      *64-bit*)
9810	emul="${emul}64"
9811	;;
9812    esac
9813    case `/usr/bin/file conftest.$ac_objext` in
9814      *MSB*)
9815	emul="${emul}btsmip"
9816	;;
9817      *LSB*)
9818	emul="${emul}ltsmip"
9819	;;
9820    esac
9821    case `/usr/bin/file conftest.$ac_objext` in
9822      *N32*)
9823	emul="${emul}n32"
9824	;;
9825    esac
9826    LD="${LD-ld} -m $emul"
9827  fi
9828  rm -rf conftest*
9829  ;;
9830
9831x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9832s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9833  # Find out what ABI is being produced by ac_compile, and set linker
9834  # options accordingly.  Note that the listed cases only cover the
9835  # situations where additional linker options are needed (such as when
9836  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9837  # vice versa); the common cases where no linker options are needed do
9838  # not appear in the list.
9839  echo 'int i;' > conftest.$ac_ext
9840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9841  (eval $ac_compile) 2>&5
9842  ac_status=$?
9843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844  test $ac_status = 0; }; then
9845    case `/usr/bin/file conftest.o` in
9846      *32-bit*)
9847	case $host in
9848	  x86_64-*kfreebsd*-gnu)
9849	    LD="${LD-ld} -m elf_i386_fbsd"
9850	    ;;
9851	  x86_64-*linux*)
9852	    case `/usr/bin/file conftest.o` in
9853	      *x86-64*)
9854		LD="${LD-ld} -m elf32_x86_64"
9855		;;
9856	      *)
9857		LD="${LD-ld} -m elf_i386"
9858		;;
9859	    esac
9860	    ;;
9861	  powerpc64le-*linux*)
9862	    LD="${LD-ld} -m elf32lppclinux"
9863	    ;;
9864	  powerpc64-*linux*)
9865	    LD="${LD-ld} -m elf32ppclinux"
9866	    ;;
9867	  s390x-*linux*)
9868	    LD="${LD-ld} -m elf_s390"
9869	    ;;
9870	  sparc64-*linux*)
9871	    LD="${LD-ld} -m elf32_sparc"
9872	    ;;
9873	esac
9874	;;
9875      *64-bit*)
9876	case $host in
9877	  x86_64-*kfreebsd*-gnu)
9878	    LD="${LD-ld} -m elf_x86_64_fbsd"
9879	    ;;
9880	  x86_64-*linux*)
9881	    LD="${LD-ld} -m elf_x86_64"
9882	    ;;
9883	  powerpcle-*linux*)
9884	    LD="${LD-ld} -m elf64lppc"
9885	    ;;
9886	  powerpc-*linux*)
9887	    LD="${LD-ld} -m elf64ppc"
9888	    ;;
9889	  s390*-*linux*|s390*-*tpf*)
9890	    LD="${LD-ld} -m elf64_s390"
9891	    ;;
9892	  sparc*-*linux*)
9893	    LD="${LD-ld} -m elf64_sparc"
9894	    ;;
9895	esac
9896	;;
9897    esac
9898  fi
9899  rm -rf conftest*
9900  ;;
9901
9902*-*-sco3.2v5*)
9903  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9904  SAVE_CFLAGS=$CFLAGS
9905  CFLAGS="$CFLAGS -belf"
9906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9907$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9908if ${lt_cv_cc_needs_belf+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  ac_ext=c
9912ac_cpp='$CPP $CPPFLAGS'
9913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9915ac_compiler_gnu=$ac_cv_c_compiler_gnu
9916
9917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918/* end confdefs.h.  */
9919
9920int
9921main ()
9922{
9923
9924  ;
9925  return 0;
9926}
9927_ACEOF
9928if ac_fn_c_try_link "$LINENO"; then :
9929  lt_cv_cc_needs_belf=yes
9930else
9931  lt_cv_cc_needs_belf=no
9932fi
9933rm -f core conftest.err conftest.$ac_objext \
9934    conftest$ac_exeext conftest.$ac_ext
9935     ac_ext=c
9936ac_cpp='$CPP $CPPFLAGS'
9937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9939ac_compiler_gnu=$ac_cv_c_compiler_gnu
9940
9941fi
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9943$as_echo "$lt_cv_cc_needs_belf" >&6; }
9944  if test yes != "$lt_cv_cc_needs_belf"; then
9945    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9946    CFLAGS=$SAVE_CFLAGS
9947  fi
9948  ;;
9949*-*solaris*)
9950  # Find out what ABI is being produced by ac_compile, and set linker
9951  # options accordingly.
9952  echo 'int i;' > conftest.$ac_ext
9953  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9954  (eval $ac_compile) 2>&5
9955  ac_status=$?
9956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9957  test $ac_status = 0; }; then
9958    case `/usr/bin/file conftest.o` in
9959    *64-bit*)
9960      case $lt_cv_prog_gnu_ld in
9961      yes*)
9962        case $host in
9963        i?86-*-solaris*|x86_64-*-solaris*)
9964          LD="${LD-ld} -m elf_x86_64"
9965          ;;
9966        sparc*-*-solaris*)
9967          LD="${LD-ld} -m elf64_sparc"
9968          ;;
9969        esac
9970        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9971        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9972          LD=${LD-ld}_sol2
9973        fi
9974        ;;
9975      *)
9976	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9977	  LD="${LD-ld} -64"
9978	fi
9979	;;
9980      esac
9981      ;;
9982    esac
9983  fi
9984  rm -rf conftest*
9985  ;;
9986esac
9987
9988need_locks=$enable_libtool_lock
9989
9990if test -n "$ac_tool_prefix"; then
9991  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9992set dummy ${ac_tool_prefix}mt; ac_word=$2
9993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994$as_echo_n "checking for $ac_word... " >&6; }
9995if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9996  $as_echo_n "(cached) " >&6
9997else
9998  if test -n "$MANIFEST_TOOL"; then
9999  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10000else
10001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004  IFS=$as_save_IFS
10005  test -z "$as_dir" && as_dir=.
10006    for ac_exec_ext in '' $ac_executable_extensions; do
10007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010    break 2
10011  fi
10012done
10013  done
10014IFS=$as_save_IFS
10015
10016fi
10017fi
10018MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10019if test -n "$MANIFEST_TOOL"; then
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10021$as_echo "$MANIFEST_TOOL" >&6; }
10022else
10023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024$as_echo "no" >&6; }
10025fi
10026
10027
10028fi
10029if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10030  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10031  # Extract the first word of "mt", so it can be a program name with args.
10032set dummy mt; ac_word=$2
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034$as_echo_n "checking for $ac_word... " >&6; }
10035if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  if test -n "$ac_ct_MANIFEST_TOOL"; then
10039  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10040else
10041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042for as_dir in $PATH
10043do
10044  IFS=$as_save_IFS
10045  test -z "$as_dir" && as_dir=.
10046    for ac_exec_ext in '' $ac_executable_extensions; do
10047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10050    break 2
10051  fi
10052done
10053  done
10054IFS=$as_save_IFS
10055
10056fi
10057fi
10058ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10059if test -n "$ac_ct_MANIFEST_TOOL"; then
10060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10061$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10062else
10063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064$as_echo "no" >&6; }
10065fi
10066
10067  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10068    MANIFEST_TOOL=":"
10069  else
10070    case $cross_compiling:$ac_tool_warned in
10071yes:)
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10074ac_tool_warned=yes ;;
10075esac
10076    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10077  fi
10078else
10079  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10080fi
10081
10082test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10084$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10085if ${lt_cv_path_mainfest_tool+:} false; then :
10086  $as_echo_n "(cached) " >&6
10087else
10088  lt_cv_path_mainfest_tool=no
10089  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10090  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10091  cat conftest.err >&5
10092  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10093    lt_cv_path_mainfest_tool=yes
10094  fi
10095  rm -f conftest*
10096fi
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10098$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10099if test yes != "$lt_cv_path_mainfest_tool"; then
10100  MANIFEST_TOOL=:
10101fi
10102
10103
10104
10105
10106
10107
10108  case $host_os in
10109    rhapsody* | darwin*)
10110    if test -n "$ac_tool_prefix"; then
10111  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10112set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114$as_echo_n "checking for $ac_word... " >&6; }
10115if ${ac_cv_prog_DSYMUTIL+:} false; then :
10116  $as_echo_n "(cached) " >&6
10117else
10118  if test -n "$DSYMUTIL"; then
10119  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10120else
10121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122for as_dir in $PATH
10123do
10124  IFS=$as_save_IFS
10125  test -z "$as_dir" && as_dir=.
10126    for ac_exec_ext in '' $ac_executable_extensions; do
10127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10128    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130    break 2
10131  fi
10132done
10133  done
10134IFS=$as_save_IFS
10135
10136fi
10137fi
10138DSYMUTIL=$ac_cv_prog_DSYMUTIL
10139if test -n "$DSYMUTIL"; then
10140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10141$as_echo "$DSYMUTIL" >&6; }
10142else
10143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144$as_echo "no" >&6; }
10145fi
10146
10147
10148fi
10149if test -z "$ac_cv_prog_DSYMUTIL"; then
10150  ac_ct_DSYMUTIL=$DSYMUTIL
10151  # Extract the first word of "dsymutil", so it can be a program name with args.
10152set dummy dsymutil; ac_word=$2
10153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154$as_echo_n "checking for $ac_word... " >&6; }
10155if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10156  $as_echo_n "(cached) " >&6
10157else
10158  if test -n "$ac_ct_DSYMUTIL"; then
10159  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10160else
10161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162for as_dir in $PATH
10163do
10164  IFS=$as_save_IFS
10165  test -z "$as_dir" && as_dir=.
10166    for ac_exec_ext in '' $ac_executable_extensions; do
10167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10168    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170    break 2
10171  fi
10172done
10173  done
10174IFS=$as_save_IFS
10175
10176fi
10177fi
10178ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10179if test -n "$ac_ct_DSYMUTIL"; then
10180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10181$as_echo "$ac_ct_DSYMUTIL" >&6; }
10182else
10183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184$as_echo "no" >&6; }
10185fi
10186
10187  if test "x$ac_ct_DSYMUTIL" = x; then
10188    DSYMUTIL=":"
10189  else
10190    case $cross_compiling:$ac_tool_warned in
10191yes:)
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10194ac_tool_warned=yes ;;
10195esac
10196    DSYMUTIL=$ac_ct_DSYMUTIL
10197  fi
10198else
10199  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10200fi
10201
10202    if test -n "$ac_tool_prefix"; then
10203  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10204set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206$as_echo_n "checking for $ac_word... " >&6; }
10207if ${ac_cv_prog_NMEDIT+:} false; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210  if test -n "$NMEDIT"; then
10211  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10212else
10213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214for as_dir in $PATH
10215do
10216  IFS=$as_save_IFS
10217  test -z "$as_dir" && as_dir=.
10218    for ac_exec_ext in '' $ac_executable_extensions; do
10219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222    break 2
10223  fi
10224done
10225  done
10226IFS=$as_save_IFS
10227
10228fi
10229fi
10230NMEDIT=$ac_cv_prog_NMEDIT
10231if test -n "$NMEDIT"; then
10232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10233$as_echo "$NMEDIT" >&6; }
10234else
10235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236$as_echo "no" >&6; }
10237fi
10238
10239
10240fi
10241if test -z "$ac_cv_prog_NMEDIT"; then
10242  ac_ct_NMEDIT=$NMEDIT
10243  # Extract the first word of "nmedit", so it can be a program name with args.
10244set dummy nmedit; ac_word=$2
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246$as_echo_n "checking for $ac_word... " >&6; }
10247if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10248  $as_echo_n "(cached) " >&6
10249else
10250  if test -n "$ac_ct_NMEDIT"; then
10251  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10252else
10253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254for as_dir in $PATH
10255do
10256  IFS=$as_save_IFS
10257  test -z "$as_dir" && as_dir=.
10258    for ac_exec_ext in '' $ac_executable_extensions; do
10259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10262    break 2
10263  fi
10264done
10265  done
10266IFS=$as_save_IFS
10267
10268fi
10269fi
10270ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10271if test -n "$ac_ct_NMEDIT"; then
10272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10273$as_echo "$ac_ct_NMEDIT" >&6; }
10274else
10275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276$as_echo "no" >&6; }
10277fi
10278
10279  if test "x$ac_ct_NMEDIT" = x; then
10280    NMEDIT=":"
10281  else
10282    case $cross_compiling:$ac_tool_warned in
10283yes:)
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10286ac_tool_warned=yes ;;
10287esac
10288    NMEDIT=$ac_ct_NMEDIT
10289  fi
10290else
10291  NMEDIT="$ac_cv_prog_NMEDIT"
10292fi
10293
10294    if test -n "$ac_tool_prefix"; then
10295  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10296set dummy ${ac_tool_prefix}lipo; ac_word=$2
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298$as_echo_n "checking for $ac_word... " >&6; }
10299if ${ac_cv_prog_LIPO+:} false; then :
10300  $as_echo_n "(cached) " >&6
10301else
10302  if test -n "$LIPO"; then
10303  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10304else
10305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $PATH
10307do
10308  IFS=$as_save_IFS
10309  test -z "$as_dir" && as_dir=.
10310    for ac_exec_ext in '' $ac_executable_extensions; do
10311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10312    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314    break 2
10315  fi
10316done
10317  done
10318IFS=$as_save_IFS
10319
10320fi
10321fi
10322LIPO=$ac_cv_prog_LIPO
10323if test -n "$LIPO"; then
10324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10325$as_echo "$LIPO" >&6; }
10326else
10327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328$as_echo "no" >&6; }
10329fi
10330
10331
10332fi
10333if test -z "$ac_cv_prog_LIPO"; then
10334  ac_ct_LIPO=$LIPO
10335  # Extract the first word of "lipo", so it can be a program name with args.
10336set dummy lipo; ac_word=$2
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338$as_echo_n "checking for $ac_word... " >&6; }
10339if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10340  $as_echo_n "(cached) " >&6
10341else
10342  if test -n "$ac_ct_LIPO"; then
10343  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10344else
10345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346for as_dir in $PATH
10347do
10348  IFS=$as_save_IFS
10349  test -z "$as_dir" && as_dir=.
10350    for ac_exec_ext in '' $ac_executable_extensions; do
10351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352    ac_cv_prog_ac_ct_LIPO="lipo"
10353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354    break 2
10355  fi
10356done
10357  done
10358IFS=$as_save_IFS
10359
10360fi
10361fi
10362ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10363if test -n "$ac_ct_LIPO"; then
10364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10365$as_echo "$ac_ct_LIPO" >&6; }
10366else
10367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368$as_echo "no" >&6; }
10369fi
10370
10371  if test "x$ac_ct_LIPO" = x; then
10372    LIPO=":"
10373  else
10374    case $cross_compiling:$ac_tool_warned in
10375yes:)
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10378ac_tool_warned=yes ;;
10379esac
10380    LIPO=$ac_ct_LIPO
10381  fi
10382else
10383  LIPO="$ac_cv_prog_LIPO"
10384fi
10385
10386    if test -n "$ac_tool_prefix"; then
10387  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10388set dummy ${ac_tool_prefix}otool; ac_word=$2
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390$as_echo_n "checking for $ac_word... " >&6; }
10391if ${ac_cv_prog_OTOOL+:} false; then :
10392  $as_echo_n "(cached) " >&6
10393else
10394  if test -n "$OTOOL"; then
10395  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10396else
10397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398for as_dir in $PATH
10399do
10400  IFS=$as_save_IFS
10401  test -z "$as_dir" && as_dir=.
10402    for ac_exec_ext in '' $ac_executable_extensions; do
10403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10404    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406    break 2
10407  fi
10408done
10409  done
10410IFS=$as_save_IFS
10411
10412fi
10413fi
10414OTOOL=$ac_cv_prog_OTOOL
10415if test -n "$OTOOL"; then
10416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10417$as_echo "$OTOOL" >&6; }
10418else
10419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420$as_echo "no" >&6; }
10421fi
10422
10423
10424fi
10425if test -z "$ac_cv_prog_OTOOL"; then
10426  ac_ct_OTOOL=$OTOOL
10427  # Extract the first word of "otool", so it can be a program name with args.
10428set dummy otool; ac_word=$2
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430$as_echo_n "checking for $ac_word... " >&6; }
10431if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  if test -n "$ac_ct_OTOOL"; then
10435  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10436else
10437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438for as_dir in $PATH
10439do
10440  IFS=$as_save_IFS
10441  test -z "$as_dir" && as_dir=.
10442    for ac_exec_ext in '' $ac_executable_extensions; do
10443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444    ac_cv_prog_ac_ct_OTOOL="otool"
10445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446    break 2
10447  fi
10448done
10449  done
10450IFS=$as_save_IFS
10451
10452fi
10453fi
10454ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10455if test -n "$ac_ct_OTOOL"; then
10456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10457$as_echo "$ac_ct_OTOOL" >&6; }
10458else
10459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460$as_echo "no" >&6; }
10461fi
10462
10463  if test "x$ac_ct_OTOOL" = x; then
10464    OTOOL=":"
10465  else
10466    case $cross_compiling:$ac_tool_warned in
10467yes:)
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10470ac_tool_warned=yes ;;
10471esac
10472    OTOOL=$ac_ct_OTOOL
10473  fi
10474else
10475  OTOOL="$ac_cv_prog_OTOOL"
10476fi
10477
10478    if test -n "$ac_tool_prefix"; then
10479  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10480set dummy ${ac_tool_prefix}otool64; ac_word=$2
10481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482$as_echo_n "checking for $ac_word... " >&6; }
10483if ${ac_cv_prog_OTOOL64+:} false; then :
10484  $as_echo_n "(cached) " >&6
10485else
10486  if test -n "$OTOOL64"; then
10487  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10488else
10489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $PATH
10491do
10492  IFS=$as_save_IFS
10493  test -z "$as_dir" && as_dir=.
10494    for ac_exec_ext in '' $ac_executable_extensions; do
10495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498    break 2
10499  fi
10500done
10501  done
10502IFS=$as_save_IFS
10503
10504fi
10505fi
10506OTOOL64=$ac_cv_prog_OTOOL64
10507if test -n "$OTOOL64"; then
10508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10509$as_echo "$OTOOL64" >&6; }
10510else
10511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512$as_echo "no" >&6; }
10513fi
10514
10515
10516fi
10517if test -z "$ac_cv_prog_OTOOL64"; then
10518  ac_ct_OTOOL64=$OTOOL64
10519  # Extract the first word of "otool64", so it can be a program name with args.
10520set dummy otool64; ac_word=$2
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522$as_echo_n "checking for $ac_word... " >&6; }
10523if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10524  $as_echo_n "(cached) " >&6
10525else
10526  if test -n "$ac_ct_OTOOL64"; then
10527  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10528else
10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $PATH
10531do
10532  IFS=$as_save_IFS
10533  test -z "$as_dir" && as_dir=.
10534    for ac_exec_ext in '' $ac_executable_extensions; do
10535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536    ac_cv_prog_ac_ct_OTOOL64="otool64"
10537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538    break 2
10539  fi
10540done
10541  done
10542IFS=$as_save_IFS
10543
10544fi
10545fi
10546ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10547if test -n "$ac_ct_OTOOL64"; then
10548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10549$as_echo "$ac_ct_OTOOL64" >&6; }
10550else
10551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552$as_echo "no" >&6; }
10553fi
10554
10555  if test "x$ac_ct_OTOOL64" = x; then
10556    OTOOL64=":"
10557  else
10558    case $cross_compiling:$ac_tool_warned in
10559yes:)
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10562ac_tool_warned=yes ;;
10563esac
10564    OTOOL64=$ac_ct_OTOOL64
10565  fi
10566else
10567  OTOOL64="$ac_cv_prog_OTOOL64"
10568fi
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10597$as_echo_n "checking for -single_module linker flag... " >&6; }
10598if ${lt_cv_apple_cc_single_mod+:} false; then :
10599  $as_echo_n "(cached) " >&6
10600else
10601  lt_cv_apple_cc_single_mod=no
10602      if test -z "$LT_MULTI_MODULE"; then
10603	# By default we will add the -single_module flag. You can override
10604	# by either setting the environment variable LT_MULTI_MODULE
10605	# non-empty at configure time, or by adding -multi_module to the
10606	# link flags.
10607	rm -rf libconftest.dylib*
10608	echo "int foo(void){return 1;}" > conftest.c
10609	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10610-dynamiclib -Wl,-single_module conftest.c" >&5
10611	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10612	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10613        _lt_result=$?
10614	# If there is a non-empty error log, and "single_module"
10615	# appears in it, assume the flag caused a linker warning
10616        if test -s conftest.err && $GREP single_module conftest.err; then
10617	  cat conftest.err >&5
10618	# Otherwise, if the output was created with a 0 exit code from
10619	# the compiler, it worked.
10620	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10621	  lt_cv_apple_cc_single_mod=yes
10622	else
10623	  cat conftest.err >&5
10624	fi
10625	rm -rf libconftest.dylib*
10626	rm -f conftest.*
10627      fi
10628fi
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10630$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10631
10632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10633$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10634if ${lt_cv_ld_exported_symbols_list+:} false; then :
10635  $as_echo_n "(cached) " >&6
10636else
10637  lt_cv_ld_exported_symbols_list=no
10638      save_LDFLAGS=$LDFLAGS
10639      echo "_main" > conftest.sym
10640      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10641      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642/* end confdefs.h.  */
10643
10644int
10645main ()
10646{
10647
10648  ;
10649  return 0;
10650}
10651_ACEOF
10652if ac_fn_c_try_link "$LINENO"; then :
10653  lt_cv_ld_exported_symbols_list=yes
10654else
10655  lt_cv_ld_exported_symbols_list=no
10656fi
10657rm -f core conftest.err conftest.$ac_objext \
10658    conftest$ac_exeext conftest.$ac_ext
10659	LDFLAGS=$save_LDFLAGS
10660
10661fi
10662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10663$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10664
10665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10666$as_echo_n "checking for -force_load linker flag... " >&6; }
10667if ${lt_cv_ld_force_load+:} false; then :
10668  $as_echo_n "(cached) " >&6
10669else
10670  lt_cv_ld_force_load=no
10671      cat > conftest.c << _LT_EOF
10672int forced_loaded() { return 2;}
10673_LT_EOF
10674      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10675      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10676      echo "$AR cru libconftest.a conftest.o" >&5
10677      $AR cru libconftest.a conftest.o 2>&5
10678      echo "$RANLIB libconftest.a" >&5
10679      $RANLIB libconftest.a 2>&5
10680      cat > conftest.c << _LT_EOF
10681int main() { return 0;}
10682_LT_EOF
10683      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10684      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10685      _lt_result=$?
10686      if test -s conftest.err && $GREP force_load conftest.err; then
10687	cat conftest.err >&5
10688      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10689	lt_cv_ld_force_load=yes
10690      else
10691	cat conftest.err >&5
10692      fi
10693        rm -f conftest.err libconftest.a conftest conftest.c
10694        rm -rf conftest.dSYM
10695
10696fi
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10698$as_echo "$lt_cv_ld_force_load" >&6; }
10699    case $host_os in
10700    rhapsody* | darwin1.[012])
10701      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10702    darwin1.*)
10703      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10704    darwin*) # darwin 5.x on
10705      # if running on 10.5 or later, the deployment target defaults
10706      # to the OS version, if on x86, and 10.4, the deployment
10707      # target defaults to 10.4. Don't you love it?
10708      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10709	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10710	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10711	10.[012][,.]*)
10712	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10713	10.*)
10714	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10715      esac
10716    ;;
10717  esac
10718    if test yes = "$lt_cv_apple_cc_single_mod"; then
10719      _lt_dar_single_mod='$single_module'
10720    fi
10721    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10722      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10723    else
10724      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10725    fi
10726    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10727      _lt_dsymutil='~$DSYMUTIL $lib || :'
10728    else
10729      _lt_dsymutil=
10730    fi
10731    ;;
10732  esac
10733
10734# func_munge_path_list VARIABLE PATH
10735# -----------------------------------
10736# VARIABLE is name of variable containing _space_ separated list of
10737# directories to be munged by the contents of PATH, which is string
10738# having a format:
10739# "DIR[:DIR]:"
10740#       string "DIR[ DIR]" will be prepended to VARIABLE
10741# ":DIR[:DIR]"
10742#       string "DIR[ DIR]" will be appended to VARIABLE
10743# "DIRP[:DIRP]::[DIRA:]DIRA"
10744#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10745#       "DIRA[ DIRA]" will be appended to VARIABLE
10746# "DIR[:DIR]"
10747#       VARIABLE will be replaced by "DIR[ DIR]"
10748func_munge_path_list ()
10749{
10750    case x$2 in
10751    x)
10752        ;;
10753    *:)
10754        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10755        ;;
10756    x:*)
10757        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10758        ;;
10759    *::*)
10760        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10761        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10762        ;;
10763    *)
10764        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10765        ;;
10766    esac
10767}
10768
10769for ac_header in dlfcn.h
10770do :
10771  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10772"
10773if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10774  cat >>confdefs.h <<_ACEOF
10775#define HAVE_DLFCN_H 1
10776_ACEOF
10777
10778fi
10779
10780done
10781
10782
10783
10784func_stripname_cnf ()
10785{
10786  case $2 in
10787  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10788  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10789  esac
10790} # func_stripname_cnf
10791
10792
10793
10794
10795
10796# Set options
10797
10798
10799
10800        enable_dlopen=no
10801
10802
10803  enable_win32_dll=no
10804
10805
10806            # Check whether --enable-shared was given.
10807if test "${enable_shared+set}" = set; then :
10808  enableval=$enable_shared; p=${PACKAGE-default}
10809    case $enableval in
10810    yes) enable_shared=yes ;;
10811    no) enable_shared=no ;;
10812    *)
10813      enable_shared=no
10814      # Look at the argument we got.  We use all the common list separators.
10815      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10816      for pkg in $enableval; do
10817	IFS=$lt_save_ifs
10818	if test "X$pkg" = "X$p"; then
10819	  enable_shared=yes
10820	fi
10821      done
10822      IFS=$lt_save_ifs
10823      ;;
10824    esac
10825else
10826  enable_shared=yes
10827fi
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837  # Check whether --enable-static was given.
10838if test "${enable_static+set}" = set; then :
10839  enableval=$enable_static; p=${PACKAGE-default}
10840    case $enableval in
10841    yes) enable_static=yes ;;
10842    no) enable_static=no ;;
10843    *)
10844     enable_static=no
10845      # Look at the argument we got.  We use all the common list separators.
10846      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10847      for pkg in $enableval; do
10848	IFS=$lt_save_ifs
10849	if test "X$pkg" = "X$p"; then
10850	  enable_static=yes
10851	fi
10852      done
10853      IFS=$lt_save_ifs
10854      ;;
10855    esac
10856else
10857  enable_static=yes
10858fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869# Check whether --with-pic was given.
10870if test "${with_pic+set}" = set; then :
10871  withval=$with_pic; lt_p=${PACKAGE-default}
10872    case $withval in
10873    yes|no) pic_mode=$withval ;;
10874    *)
10875      pic_mode=default
10876      # Look at the argument we got.  We use all the common list separators.
10877      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10878      for lt_pkg in $withval; do
10879	IFS=$lt_save_ifs
10880	if test "X$lt_pkg" = "X$lt_p"; then
10881	  pic_mode=yes
10882	fi
10883      done
10884      IFS=$lt_save_ifs
10885      ;;
10886    esac
10887else
10888  pic_mode=default
10889fi
10890
10891
10892
10893
10894
10895
10896
10897
10898  # Check whether --enable-fast-install was given.
10899if test "${enable_fast_install+set}" = set; then :
10900  enableval=$enable_fast_install; p=${PACKAGE-default}
10901    case $enableval in
10902    yes) enable_fast_install=yes ;;
10903    no) enable_fast_install=no ;;
10904    *)
10905      enable_fast_install=no
10906      # Look at the argument we got.  We use all the common list separators.
10907      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10908      for pkg in $enableval; do
10909	IFS=$lt_save_ifs
10910	if test "X$pkg" = "X$p"; then
10911	  enable_fast_install=yes
10912	fi
10913      done
10914      IFS=$lt_save_ifs
10915      ;;
10916    esac
10917else
10918  enable_fast_install=yes
10919fi
10920
10921
10922
10923
10924
10925
10926
10927
10928  shared_archive_member_spec=
10929case $host,$enable_shared in
10930power*-*-aix[5-9]*,yes)
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10932$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10933
10934# Check whether --with-aix-soname was given.
10935if test "${with_aix_soname+set}" = set; then :
10936  withval=$with_aix_soname; case $withval in
10937    aix|svr4|both)
10938      ;;
10939    *)
10940      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10941      ;;
10942    esac
10943    lt_cv_with_aix_soname=$with_aix_soname
10944else
10945  if ${lt_cv_with_aix_soname+:} false; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  lt_cv_with_aix_soname=aix
10949fi
10950
10951    with_aix_soname=$lt_cv_with_aix_soname
10952fi
10953
10954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10955$as_echo "$with_aix_soname" >&6; }
10956  if test aix != "$with_aix_soname"; then
10957    # For the AIX way of multilib, we name the shared archive member
10958    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10959    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10960    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10961    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10962    if test 64 = "${OBJECT_MODE-32}"; then
10963      shared_archive_member_spec=shr_64
10964    else
10965      shared_archive_member_spec=shr
10966    fi
10967  fi
10968  ;;
10969*)
10970  with_aix_soname=aix
10971  ;;
10972esac
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983# This can be used to rebuild libtool when needed
10984LIBTOOL_DEPS=$ltmain
10985
10986# Always use our own libtool.
10987LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018test -z "$LN_S" && LN_S="ln -s"
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033if test -n "${ZSH_VERSION+set}"; then
11034   setopt NO_GLOB_SUBST
11035fi
11036
11037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11038$as_echo_n "checking for objdir... " >&6; }
11039if ${lt_cv_objdir+:} false; then :
11040  $as_echo_n "(cached) " >&6
11041else
11042  rm -f .libs 2>/dev/null
11043mkdir .libs 2>/dev/null
11044if test -d .libs; then
11045  lt_cv_objdir=.libs
11046else
11047  # MS-DOS does not allow filenames that begin with a dot.
11048  lt_cv_objdir=_libs
11049fi
11050rmdir .libs 2>/dev/null
11051fi
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11053$as_echo "$lt_cv_objdir" >&6; }
11054objdir=$lt_cv_objdir
11055
11056
11057
11058
11059
11060cat >>confdefs.h <<_ACEOF
11061#define LT_OBJDIR "$lt_cv_objdir/"
11062_ACEOF
11063
11064
11065
11066
11067case $host_os in
11068aix3*)
11069  # AIX sometimes has problems with the GCC collect2 program.  For some
11070  # reason, if we set the COLLECT_NAMES environment variable, the problems
11071  # vanish in a puff of smoke.
11072  if test set != "${COLLECT_NAMES+set}"; then
11073    COLLECT_NAMES=
11074    export COLLECT_NAMES
11075  fi
11076  ;;
11077esac
11078
11079# Global variables:
11080ofile=libtool
11081can_build_shared=yes
11082
11083# All known linkers require a '.a' archive for static linking (except MSVC,
11084# which needs '.lib').
11085libext=a
11086
11087with_gnu_ld=$lt_cv_prog_gnu_ld
11088
11089old_CC=$CC
11090old_CFLAGS=$CFLAGS
11091
11092# Set sane defaults for various variables
11093test -z "$CC" && CC=cc
11094test -z "$LTCC" && LTCC=$CC
11095test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11096test -z "$LD" && LD=ld
11097test -z "$ac_objext" && ac_objext=o
11098
11099func_cc_basename $compiler
11100cc_basename=$func_cc_basename_result
11101
11102
11103# Only perform the check for file, if the check method requires it
11104test -z "$MAGIC_CMD" && MAGIC_CMD=file
11105case $deplibs_check_method in
11106file_magic*)
11107  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11109$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11110if ${lt_cv_path_MAGIC_CMD+:} false; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  case $MAGIC_CMD in
11114[\\/*] |  ?:[\\/]*)
11115  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11116  ;;
11117*)
11118  lt_save_MAGIC_CMD=$MAGIC_CMD
11119  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11120  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11121  for ac_dir in $ac_dummy; do
11122    IFS=$lt_save_ifs
11123    test -z "$ac_dir" && ac_dir=.
11124    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11125      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11126      if test -n "$file_magic_test_file"; then
11127	case $deplibs_check_method in
11128	"file_magic "*)
11129	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11130	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11131	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11132	    $EGREP "$file_magic_regex" > /dev/null; then
11133	    :
11134	  else
11135	    cat <<_LT_EOF 1>&2
11136
11137*** Warning: the command libtool uses to detect shared libraries,
11138*** $file_magic_cmd, produces output that libtool cannot recognize.
11139*** The result is that libtool may fail to recognize shared libraries
11140*** as such.  This will affect the creation of libtool libraries that
11141*** depend on shared libraries, but programs linked with such libtool
11142*** libraries will work regardless of this problem.  Nevertheless, you
11143*** may want to report the problem to your system manager and/or to
11144*** bug-libtool@gnu.org
11145
11146_LT_EOF
11147	  fi ;;
11148	esac
11149      fi
11150      break
11151    fi
11152  done
11153  IFS=$lt_save_ifs
11154  MAGIC_CMD=$lt_save_MAGIC_CMD
11155  ;;
11156esac
11157fi
11158
11159MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11160if test -n "$MAGIC_CMD"; then
11161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11162$as_echo "$MAGIC_CMD" >&6; }
11163else
11164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165$as_echo "no" >&6; }
11166fi
11167
11168
11169
11170
11171
11172if test -z "$lt_cv_path_MAGIC_CMD"; then
11173  if test -n "$ac_tool_prefix"; then
11174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11175$as_echo_n "checking for file... " >&6; }
11176if ${lt_cv_path_MAGIC_CMD+:} false; then :
11177  $as_echo_n "(cached) " >&6
11178else
11179  case $MAGIC_CMD in
11180[\\/*] |  ?:[\\/]*)
11181  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11182  ;;
11183*)
11184  lt_save_MAGIC_CMD=$MAGIC_CMD
11185  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11186  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11187  for ac_dir in $ac_dummy; do
11188    IFS=$lt_save_ifs
11189    test -z "$ac_dir" && ac_dir=.
11190    if test -f "$ac_dir/file"; then
11191      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11192      if test -n "$file_magic_test_file"; then
11193	case $deplibs_check_method in
11194	"file_magic "*)
11195	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11196	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11197	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11198	    $EGREP "$file_magic_regex" > /dev/null; then
11199	    :
11200	  else
11201	    cat <<_LT_EOF 1>&2
11202
11203*** Warning: the command libtool uses to detect shared libraries,
11204*** $file_magic_cmd, produces output that libtool cannot recognize.
11205*** The result is that libtool may fail to recognize shared libraries
11206*** as such.  This will affect the creation of libtool libraries that
11207*** depend on shared libraries, but programs linked with such libtool
11208*** libraries will work regardless of this problem.  Nevertheless, you
11209*** may want to report the problem to your system manager and/or to
11210*** bug-libtool@gnu.org
11211
11212_LT_EOF
11213	  fi ;;
11214	esac
11215      fi
11216      break
11217    fi
11218  done
11219  IFS=$lt_save_ifs
11220  MAGIC_CMD=$lt_save_MAGIC_CMD
11221  ;;
11222esac
11223fi
11224
11225MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11226if test -n "$MAGIC_CMD"; then
11227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11228$as_echo "$MAGIC_CMD" >&6; }
11229else
11230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
11232fi
11233
11234
11235  else
11236    MAGIC_CMD=:
11237  fi
11238fi
11239
11240  fi
11241  ;;
11242esac
11243
11244# Use C for the default configuration in the libtool script
11245
11246lt_save_CC=$CC
11247ac_ext=c
11248ac_cpp='$CPP $CPPFLAGS'
11249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11251ac_compiler_gnu=$ac_cv_c_compiler_gnu
11252
11253
11254# Source file extension for C test sources.
11255ac_ext=c
11256
11257# Object file extension for compiled C test sources.
11258objext=o
11259objext=$objext
11260
11261# Code to be used in simple compile tests
11262lt_simple_compile_test_code="int some_variable = 0;"
11263
11264# Code to be used in simple link tests
11265lt_simple_link_test_code='int main(){return(0);}'
11266
11267
11268
11269
11270
11271
11272
11273# If no C compiler was specified, use CC.
11274LTCC=${LTCC-"$CC"}
11275
11276# If no C compiler flags were specified, use CFLAGS.
11277LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11278
11279# Allow CC to be a program name with arguments.
11280compiler=$CC
11281
11282# Save the default compiler, since it gets overwritten when the other
11283# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11284compiler_DEFAULT=$CC
11285
11286# save warnings/boilerplate of simple test code
11287ac_outfile=conftest.$ac_objext
11288echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11290_lt_compiler_boilerplate=`cat conftest.err`
11291$RM conftest*
11292
11293ac_outfile=conftest.$ac_objext
11294echo "$lt_simple_link_test_code" >conftest.$ac_ext
11295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11296_lt_linker_boilerplate=`cat conftest.err`
11297$RM -r conftest*
11298
11299
11300## CAVEAT EMPTOR:
11301## There is no encapsulation within the following macros, do not change
11302## the running order or otherwise move them around unless you know exactly
11303## what you are doing...
11304if test -n "$compiler"; then
11305
11306lt_prog_compiler_no_builtin_flag=
11307
11308if test yes = "$GCC"; then
11309  case $cc_basename in
11310  nvcc*)
11311    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11312  *)
11313    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11314  esac
11315
11316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11317$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11318if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11319  $as_echo_n "(cached) " >&6
11320else
11321  lt_cv_prog_compiler_rtti_exceptions=no
11322   ac_outfile=conftest.$ac_objext
11323   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11324   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11325   # Insert the option either (1) after the last *FLAGS variable, or
11326   # (2) before a word containing "conftest.", or (3) at the end.
11327   # Note that $ac_compile itself does not contain backslashes and begins
11328   # with a dollar sign (not a hyphen), so the echo should work correctly.
11329   # The option is referenced via a variable to avoid confusing sed.
11330   lt_compile=`echo "$ac_compile" | $SED \
11331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11333   -e 's:$: $lt_compiler_flag:'`
11334   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11335   (eval "$lt_compile" 2>conftest.err)
11336   ac_status=$?
11337   cat conftest.err >&5
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   if (exit $ac_status) && test -s "$ac_outfile"; then
11340     # The compiler can only warn and ignore the option if not recognized
11341     # So say no if there are warnings other than the usual output.
11342     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11343     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11344     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11345       lt_cv_prog_compiler_rtti_exceptions=yes
11346     fi
11347   fi
11348   $RM conftest*
11349
11350fi
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11352$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11353
11354if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11355    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11356else
11357    :
11358fi
11359
11360fi
11361
11362
11363
11364
11365
11366
11367  lt_prog_compiler_wl=
11368lt_prog_compiler_pic=
11369lt_prog_compiler_static=
11370
11371
11372  if test yes = "$GCC"; then
11373    lt_prog_compiler_wl='-Wl,'
11374    lt_prog_compiler_static='-static'
11375
11376    case $host_os in
11377      aix*)
11378      # All AIX code is PIC.
11379      if test ia64 = "$host_cpu"; then
11380	# AIX 5 now supports IA64 processor
11381	lt_prog_compiler_static='-Bstatic'
11382      fi
11383      lt_prog_compiler_pic='-fPIC'
11384      ;;
11385
11386    amigaos*)
11387      case $host_cpu in
11388      powerpc)
11389            # see comment about AmigaOS4 .so support
11390            lt_prog_compiler_pic='-fPIC'
11391        ;;
11392      m68k)
11393            # FIXME: we need at least 68020 code to build shared libraries, but
11394            # adding the '-m68020' flag to GCC prevents building anything better,
11395            # like '-m68040'.
11396            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11397        ;;
11398      esac
11399      ;;
11400
11401    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11402      # PIC is the default for these OSes.
11403      ;;
11404
11405    mingw* | cygwin* | pw32* | os2* | cegcc*)
11406      # This hack is so that the source file can tell whether it is being
11407      # built for inclusion in a dll (and should export symbols for example).
11408      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11409      # (--disable-auto-import) libraries
11410      lt_prog_compiler_pic='-DDLL_EXPORT'
11411      case $host_os in
11412      os2*)
11413	lt_prog_compiler_static='$wl-static'
11414	;;
11415      esac
11416      ;;
11417
11418    darwin* | rhapsody*)
11419      # PIC is the default on this platform
11420      # Common symbols not allowed in MH_DYLIB files
11421      lt_prog_compiler_pic='-fno-common'
11422      ;;
11423
11424    haiku*)
11425      # PIC is the default for Haiku.
11426      # The "-static" flag exists, but is broken.
11427      lt_prog_compiler_static=
11428      ;;
11429
11430    hpux*)
11431      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11432      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11433      # sets the default TLS model and affects inlining.
11434      case $host_cpu in
11435      hppa*64*)
11436	# +Z the default
11437	;;
11438      *)
11439	lt_prog_compiler_pic='-fPIC'
11440	;;
11441      esac
11442      ;;
11443
11444    interix[3-9]*)
11445      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11446      # Instead, we relocate shared libraries at runtime.
11447      ;;
11448
11449    msdosdjgpp*)
11450      # Just because we use GCC doesn't mean we suddenly get shared libraries
11451      # on systems that don't support them.
11452      lt_prog_compiler_can_build_shared=no
11453      enable_shared=no
11454      ;;
11455
11456    *nto* | *qnx*)
11457      # QNX uses GNU C++, but need to define -shared option too, otherwise
11458      # it will coredump.
11459      lt_prog_compiler_pic='-fPIC -shared'
11460      ;;
11461
11462    sysv4*MP*)
11463      if test -d /usr/nec; then
11464	lt_prog_compiler_pic=-Kconform_pic
11465      fi
11466      ;;
11467
11468    *)
11469      lt_prog_compiler_pic='-fPIC'
11470      ;;
11471    esac
11472
11473    case $cc_basename in
11474    nvcc*) # Cuda Compiler Driver 2.2
11475      lt_prog_compiler_wl='-Xlinker '
11476      if test -n "$lt_prog_compiler_pic"; then
11477        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11478      fi
11479      ;;
11480    esac
11481  else
11482    # PORTME Check for flag to pass linker flags through the system compiler.
11483    case $host_os in
11484    aix*)
11485      lt_prog_compiler_wl='-Wl,'
11486      if test ia64 = "$host_cpu"; then
11487	# AIX 5 now supports IA64 processor
11488	lt_prog_compiler_static='-Bstatic'
11489      else
11490	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11491      fi
11492      ;;
11493
11494    darwin* | rhapsody*)
11495      # PIC is the default on this platform
11496      # Common symbols not allowed in MH_DYLIB files
11497      lt_prog_compiler_pic='-fno-common'
11498      case $cc_basename in
11499      nagfor*)
11500        # NAG Fortran compiler
11501        lt_prog_compiler_wl='-Wl,-Wl,,'
11502        lt_prog_compiler_pic='-PIC'
11503        lt_prog_compiler_static='-Bstatic'
11504        ;;
11505      esac
11506      ;;
11507
11508    mingw* | cygwin* | pw32* | os2* | cegcc*)
11509      # This hack is so that the source file can tell whether it is being
11510      # built for inclusion in a dll (and should export symbols for example).
11511      lt_prog_compiler_pic='-DDLL_EXPORT'
11512      case $host_os in
11513      os2*)
11514	lt_prog_compiler_static='$wl-static'
11515	;;
11516      esac
11517      ;;
11518
11519    hpux9* | hpux10* | hpux11*)
11520      lt_prog_compiler_wl='-Wl,'
11521      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11522      # not for PA HP-UX.
11523      case $host_cpu in
11524      hppa*64*|ia64*)
11525	# +Z the default
11526	;;
11527      *)
11528	lt_prog_compiler_pic='+Z'
11529	;;
11530      esac
11531      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11532      lt_prog_compiler_static='$wl-a ${wl}archive'
11533      ;;
11534
11535    irix5* | irix6* | nonstopux*)
11536      lt_prog_compiler_wl='-Wl,'
11537      # PIC (with -KPIC) is the default.
11538      lt_prog_compiler_static='-non_shared'
11539      ;;
11540
11541    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11542      case $cc_basename in
11543      # old Intel for x86_64, which still supported -KPIC.
11544      ecc*)
11545	lt_prog_compiler_wl='-Wl,'
11546	lt_prog_compiler_pic='-KPIC'
11547	lt_prog_compiler_static='-static'
11548        ;;
11549      # icc used to be incompatible with GCC.
11550      # ICC 10 doesn't accept -KPIC any more.
11551      icc* | ifort*)
11552	lt_prog_compiler_wl='-Wl,'
11553	lt_prog_compiler_pic='-fPIC'
11554	lt_prog_compiler_static='-static'
11555        ;;
11556      # Lahey Fortran 8.1.
11557      lf95*)
11558	lt_prog_compiler_wl='-Wl,'
11559	lt_prog_compiler_pic='--shared'
11560	lt_prog_compiler_static='--static'
11561	;;
11562      nagfor*)
11563	# NAG Fortran compiler
11564	lt_prog_compiler_wl='-Wl,-Wl,,'
11565	lt_prog_compiler_pic='-PIC'
11566	lt_prog_compiler_static='-Bstatic'
11567	;;
11568      tcc*)
11569	# Fabrice Bellard et al's Tiny C Compiler
11570	lt_prog_compiler_wl='-Wl,'
11571	lt_prog_compiler_pic='-fPIC'
11572	lt_prog_compiler_static='-static'
11573	;;
11574      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11575        # Portland Group compilers (*not* the Pentium gcc compiler,
11576	# which looks to be a dead project)
11577	lt_prog_compiler_wl='-Wl,'
11578	lt_prog_compiler_pic='-fpic'
11579	lt_prog_compiler_static='-Bstatic'
11580        ;;
11581      ccc*)
11582        lt_prog_compiler_wl='-Wl,'
11583        # All Alpha code is PIC.
11584        lt_prog_compiler_static='-non_shared'
11585        ;;
11586      xl* | bgxl* | bgf* | mpixl*)
11587	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11588	lt_prog_compiler_wl='-Wl,'
11589	lt_prog_compiler_pic='-qpic'
11590	lt_prog_compiler_static='-qstaticlink'
11591	;;
11592      *)
11593	case `$CC -V 2>&1 | sed 5q` in
11594	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11595	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11596	  lt_prog_compiler_pic='-KPIC'
11597	  lt_prog_compiler_static='-Bstatic'
11598	  lt_prog_compiler_wl=''
11599	  ;;
11600	*Sun\ F* | *Sun*Fortran*)
11601	  lt_prog_compiler_pic='-KPIC'
11602	  lt_prog_compiler_static='-Bstatic'
11603	  lt_prog_compiler_wl='-Qoption ld '
11604	  ;;
11605	*Sun\ C*)
11606	  # Sun C 5.9
11607	  lt_prog_compiler_pic='-KPIC'
11608	  lt_prog_compiler_static='-Bstatic'
11609	  lt_prog_compiler_wl='-Wl,'
11610	  ;;
11611        *Intel*\ [CF]*Compiler*)
11612	  lt_prog_compiler_wl='-Wl,'
11613	  lt_prog_compiler_pic='-fPIC'
11614	  lt_prog_compiler_static='-static'
11615	  ;;
11616	*Portland\ Group*)
11617	  lt_prog_compiler_wl='-Wl,'
11618	  lt_prog_compiler_pic='-fpic'
11619	  lt_prog_compiler_static='-Bstatic'
11620	  ;;
11621	esac
11622	;;
11623      esac
11624      ;;
11625
11626    newsos6)
11627      lt_prog_compiler_pic='-KPIC'
11628      lt_prog_compiler_static='-Bstatic'
11629      ;;
11630
11631    *nto* | *qnx*)
11632      # QNX uses GNU C++, but need to define -shared option too, otherwise
11633      # it will coredump.
11634      lt_prog_compiler_pic='-fPIC -shared'
11635      ;;
11636
11637    osf3* | osf4* | osf5*)
11638      lt_prog_compiler_wl='-Wl,'
11639      # All OSF/1 code is PIC.
11640      lt_prog_compiler_static='-non_shared'
11641      ;;
11642
11643    rdos*)
11644      lt_prog_compiler_static='-non_shared'
11645      ;;
11646
11647    solaris*)
11648      lt_prog_compiler_pic='-KPIC'
11649      lt_prog_compiler_static='-Bstatic'
11650      case $cc_basename in
11651      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11652	lt_prog_compiler_wl='-Qoption ld ';;
11653      *)
11654	lt_prog_compiler_wl='-Wl,';;
11655      esac
11656      ;;
11657
11658    sunos4*)
11659      lt_prog_compiler_wl='-Qoption ld '
11660      lt_prog_compiler_pic='-PIC'
11661      lt_prog_compiler_static='-Bstatic'
11662      ;;
11663
11664    sysv4 | sysv4.2uw2* | sysv4.3*)
11665      lt_prog_compiler_wl='-Wl,'
11666      lt_prog_compiler_pic='-KPIC'
11667      lt_prog_compiler_static='-Bstatic'
11668      ;;
11669
11670    sysv4*MP*)
11671      if test -d /usr/nec; then
11672	lt_prog_compiler_pic='-Kconform_pic'
11673	lt_prog_compiler_static='-Bstatic'
11674      fi
11675      ;;
11676
11677    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11678      lt_prog_compiler_wl='-Wl,'
11679      lt_prog_compiler_pic='-KPIC'
11680      lt_prog_compiler_static='-Bstatic'
11681      ;;
11682
11683    unicos*)
11684      lt_prog_compiler_wl='-Wl,'
11685      lt_prog_compiler_can_build_shared=no
11686      ;;
11687
11688    uts4*)
11689      lt_prog_compiler_pic='-pic'
11690      lt_prog_compiler_static='-Bstatic'
11691      ;;
11692
11693    *)
11694      lt_prog_compiler_can_build_shared=no
11695      ;;
11696    esac
11697  fi
11698
11699case $host_os in
11700  # For platforms that do not support PIC, -DPIC is meaningless:
11701  *djgpp*)
11702    lt_prog_compiler_pic=
11703    ;;
11704  *)
11705    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11706    ;;
11707esac
11708
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11710$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11711if ${lt_cv_prog_compiler_pic+:} false; then :
11712  $as_echo_n "(cached) " >&6
11713else
11714  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11715fi
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11717$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11718lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11719
11720#
11721# Check to make sure the PIC flag actually works.
11722#
11723if test -n "$lt_prog_compiler_pic"; then
11724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11725$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11726if ${lt_cv_prog_compiler_pic_works+:} false; then :
11727  $as_echo_n "(cached) " >&6
11728else
11729  lt_cv_prog_compiler_pic_works=no
11730   ac_outfile=conftest.$ac_objext
11731   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11732   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11733   # Insert the option either (1) after the last *FLAGS variable, or
11734   # (2) before a word containing "conftest.", or (3) at the end.
11735   # Note that $ac_compile itself does not contain backslashes and begins
11736   # with a dollar sign (not a hyphen), so the echo should work correctly.
11737   # The option is referenced via a variable to avoid confusing sed.
11738   lt_compile=`echo "$ac_compile" | $SED \
11739   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11740   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11741   -e 's:$: $lt_compiler_flag:'`
11742   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11743   (eval "$lt_compile" 2>conftest.err)
11744   ac_status=$?
11745   cat conftest.err >&5
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   if (exit $ac_status) && test -s "$ac_outfile"; then
11748     # The compiler can only warn and ignore the option if not recognized
11749     # So say no if there are warnings other than the usual output.
11750     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11751     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11752     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11753       lt_cv_prog_compiler_pic_works=yes
11754     fi
11755   fi
11756   $RM conftest*
11757
11758fi
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11760$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11761
11762if test yes = "$lt_cv_prog_compiler_pic_works"; then
11763    case $lt_prog_compiler_pic in
11764     "" | " "*) ;;
11765     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11766     esac
11767else
11768    lt_prog_compiler_pic=
11769     lt_prog_compiler_can_build_shared=no
11770fi
11771
11772fi
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784#
11785# Check to make sure the static flag actually works.
11786#
11787wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11789$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11790if ${lt_cv_prog_compiler_static_works+:} false; then :
11791  $as_echo_n "(cached) " >&6
11792else
11793  lt_cv_prog_compiler_static_works=no
11794   save_LDFLAGS=$LDFLAGS
11795   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11796   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11797   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11798     # The linker can only warn and ignore the option if not recognized
11799     # So say no if there are warnings
11800     if test -s conftest.err; then
11801       # Append any errors to the config.log.
11802       cat conftest.err 1>&5
11803       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11804       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11805       if diff conftest.exp conftest.er2 >/dev/null; then
11806         lt_cv_prog_compiler_static_works=yes
11807       fi
11808     else
11809       lt_cv_prog_compiler_static_works=yes
11810     fi
11811   fi
11812   $RM -r conftest*
11813   LDFLAGS=$save_LDFLAGS
11814
11815fi
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11817$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11818
11819if test yes = "$lt_cv_prog_compiler_static_works"; then
11820    :
11821else
11822    lt_prog_compiler_static=
11823fi
11824
11825
11826
11827
11828
11829
11830
11831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11832$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11833if ${lt_cv_prog_compiler_c_o+:} false; then :
11834  $as_echo_n "(cached) " >&6
11835else
11836  lt_cv_prog_compiler_c_o=no
11837   $RM -r conftest 2>/dev/null
11838   mkdir conftest
11839   cd conftest
11840   mkdir out
11841   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11842
11843   lt_compiler_flag="-o out/conftest2.$ac_objext"
11844   # Insert the option either (1) after the last *FLAGS variable, or
11845   # (2) before a word containing "conftest.", or (3) at the end.
11846   # Note that $ac_compile itself does not contain backslashes and begins
11847   # with a dollar sign (not a hyphen), so the echo should work correctly.
11848   lt_compile=`echo "$ac_compile" | $SED \
11849   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11850   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11851   -e 's:$: $lt_compiler_flag:'`
11852   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11853   (eval "$lt_compile" 2>out/conftest.err)
11854   ac_status=$?
11855   cat out/conftest.err >&5
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11858   then
11859     # The compiler can only warn and ignore the option if not recognized
11860     # So say no if there are warnings
11861     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11862     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11863     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11864       lt_cv_prog_compiler_c_o=yes
11865     fi
11866   fi
11867   chmod u+w . 2>&5
11868   $RM conftest*
11869   # SGI C++ compiler will create directory out/ii_files/ for
11870   # template instantiation
11871   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11872   $RM out/* && rmdir out
11873   cd ..
11874   $RM -r conftest
11875   $RM conftest*
11876
11877fi
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11879$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11880
11881
11882
11883
11884
11885
11886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11887$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11888if ${lt_cv_prog_compiler_c_o+:} false; then :
11889  $as_echo_n "(cached) " >&6
11890else
11891  lt_cv_prog_compiler_c_o=no
11892   $RM -r conftest 2>/dev/null
11893   mkdir conftest
11894   cd conftest
11895   mkdir out
11896   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11897
11898   lt_compiler_flag="-o out/conftest2.$ac_objext"
11899   # Insert the option either (1) after the last *FLAGS variable, or
11900   # (2) before a word containing "conftest.", or (3) at the end.
11901   # Note that $ac_compile itself does not contain backslashes and begins
11902   # with a dollar sign (not a hyphen), so the echo should work correctly.
11903   lt_compile=`echo "$ac_compile" | $SED \
11904   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11905   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11906   -e 's:$: $lt_compiler_flag:'`
11907   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11908   (eval "$lt_compile" 2>out/conftest.err)
11909   ac_status=$?
11910   cat out/conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11913   then
11914     # The compiler can only warn and ignore the option if not recognized
11915     # So say no if there are warnings
11916     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11917     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11918     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11919       lt_cv_prog_compiler_c_o=yes
11920     fi
11921   fi
11922   chmod u+w . 2>&5
11923   $RM conftest*
11924   # SGI C++ compiler will create directory out/ii_files/ for
11925   # template instantiation
11926   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11927   $RM out/* && rmdir out
11928   cd ..
11929   $RM -r conftest
11930   $RM conftest*
11931
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11934$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11935
11936
11937
11938
11939hard_links=nottested
11940if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11941  # do not overwrite the value of need_locks provided by the user
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11943$as_echo_n "checking if we can lock with hard links... " >&6; }
11944  hard_links=yes
11945  $RM conftest*
11946  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11947  touch conftest.a
11948  ln conftest.a conftest.b 2>&5 || hard_links=no
11949  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11951$as_echo "$hard_links" >&6; }
11952  if test no = "$hard_links"; then
11953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11954$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11955    need_locks=warn
11956  fi
11957else
11958  need_locks=no
11959fi
11960
11961
11962
11963
11964
11965
11966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11967$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11968
11969  runpath_var=
11970  allow_undefined_flag=
11971  always_export_symbols=no
11972  archive_cmds=
11973  archive_expsym_cmds=
11974  compiler_needs_object=no
11975  enable_shared_with_static_runtimes=no
11976  export_dynamic_flag_spec=
11977  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11978  hardcode_automatic=no
11979  hardcode_direct=no
11980  hardcode_direct_absolute=no
11981  hardcode_libdir_flag_spec=
11982  hardcode_libdir_separator=
11983  hardcode_minus_L=no
11984  hardcode_shlibpath_var=unsupported
11985  inherit_rpath=no
11986  link_all_deplibs=unknown
11987  module_cmds=
11988  module_expsym_cmds=
11989  old_archive_from_new_cmds=
11990  old_archive_from_expsyms_cmds=
11991  thread_safe_flag_spec=
11992  whole_archive_flag_spec=
11993  # include_expsyms should be a list of space-separated symbols to be *always*
11994  # included in the symbol list
11995  include_expsyms=
11996  # exclude_expsyms can be an extended regexp of symbols to exclude
11997  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11998  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11999  # as well as any symbol that contains 'd'.
12000  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12001  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12002  # platforms (ab)use it in PIC code, but their linkers get confused if
12003  # the symbol is explicitly referenced.  Since portable code cannot
12004  # rely on this symbol name, it's probably fine to never include it in
12005  # preloaded symbol tables.
12006  # Exclude shared library initialization/finalization symbols.
12007  extract_expsyms_cmds=
12008
12009  case $host_os in
12010  cygwin* | mingw* | pw32* | cegcc*)
12011    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12012    # When not using gcc, we currently assume that we are using
12013    # Microsoft Visual C++.
12014    if test yes != "$GCC"; then
12015      with_gnu_ld=no
12016    fi
12017    ;;
12018  interix*)
12019    # we just hope/assume this is gcc and not c89 (= MSVC++)
12020    with_gnu_ld=yes
12021    ;;
12022  openbsd* | bitrig*)
12023    with_gnu_ld=no
12024    ;;
12025  esac
12026
12027  ld_shlibs=yes
12028
12029  # On some targets, GNU ld is compatible enough with the native linker
12030  # that we're better off using the native interface for both.
12031  lt_use_gnu_ld_interface=no
12032  if test yes = "$with_gnu_ld"; then
12033    case $host_os in
12034      aix*)
12035	# The AIX port of GNU ld has always aspired to compatibility
12036	# with the native linker.  However, as the warning in the GNU ld
12037	# block says, versions before 2.19.5* couldn't really create working
12038	# shared libraries, regardless of the interface used.
12039	case `$LD -v 2>&1` in
12040	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12041	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12042	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12043	  *)
12044	    lt_use_gnu_ld_interface=yes
12045	    ;;
12046	esac
12047	;;
12048      *)
12049	lt_use_gnu_ld_interface=yes
12050	;;
12051    esac
12052  fi
12053
12054  if test yes = "$lt_use_gnu_ld_interface"; then
12055    # If archive_cmds runs LD, not CC, wlarc should be empty
12056    wlarc='$wl'
12057
12058    # Set some defaults for GNU ld with shared library support. These
12059    # are reset later if shared libraries are not supported. Putting them
12060    # here allows them to be overridden if necessary.
12061    runpath_var=LD_RUN_PATH
12062    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12063    export_dynamic_flag_spec='$wl--export-dynamic'
12064    # ancient GNU ld didn't support --whole-archive et. al.
12065    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12066      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12067    else
12068      whole_archive_flag_spec=
12069    fi
12070    supports_anon_versioning=no
12071    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12072      *GNU\ gold*) supports_anon_versioning=yes ;;
12073      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12074      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12075      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12076      *\ 2.11.*) ;; # other 2.11 versions
12077      *) supports_anon_versioning=yes ;;
12078    esac
12079
12080    # See if GNU ld supports shared libraries.
12081    case $host_os in
12082    aix[3-9]*)
12083      # On AIX/PPC, the GNU linker is very broken
12084      if test ia64 != "$host_cpu"; then
12085	ld_shlibs=no
12086	cat <<_LT_EOF 1>&2
12087
12088*** Warning: the GNU linker, at least up to release 2.19, is reported
12089*** to be unable to reliably create shared libraries on AIX.
12090*** Therefore, libtool is disabling shared libraries support.  If you
12091*** really care for shared libraries, you may want to install binutils
12092*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12093*** You will then need to restart the configuration process.
12094
12095_LT_EOF
12096      fi
12097      ;;
12098
12099    amigaos*)
12100      case $host_cpu in
12101      powerpc)
12102            # see comment about AmigaOS4 .so support
12103            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12104            archive_expsym_cmds=''
12105        ;;
12106      m68k)
12107            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12108            hardcode_libdir_flag_spec='-L$libdir'
12109            hardcode_minus_L=yes
12110        ;;
12111      esac
12112      ;;
12113
12114    beos*)
12115      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12116	allow_undefined_flag=unsupported
12117	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12118	# support --undefined.  This deserves some investigation.  FIXME
12119	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12120      else
12121	ld_shlibs=no
12122      fi
12123      ;;
12124
12125    cygwin* | mingw* | pw32* | cegcc*)
12126      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12127      # as there is no search path for DLLs.
12128      hardcode_libdir_flag_spec='-L$libdir'
12129      export_dynamic_flag_spec='$wl--export-all-symbols'
12130      allow_undefined_flag=unsupported
12131      always_export_symbols=no
12132      enable_shared_with_static_runtimes=yes
12133      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12134      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12135
12136      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12137        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12138	# If the export-symbols file already is a .def file, use it as
12139	# is; otherwise, prepend EXPORTS...
12140	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12141          cp $export_symbols $output_objdir/$soname.def;
12142        else
12143          echo EXPORTS > $output_objdir/$soname.def;
12144          cat $export_symbols >> $output_objdir/$soname.def;
12145        fi~
12146        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12147      else
12148	ld_shlibs=no
12149      fi
12150      ;;
12151
12152    haiku*)
12153      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12154      link_all_deplibs=yes
12155      ;;
12156
12157    os2*)
12158      hardcode_libdir_flag_spec='-L$libdir'
12159      hardcode_minus_L=yes
12160      allow_undefined_flag=unsupported
12161      shrext_cmds=.dll
12162      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12163	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12164	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12165	$ECHO EXPORTS >> $output_objdir/$libname.def~
12166	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12167	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12168	emximp -o $lib $output_objdir/$libname.def'
12169      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12170	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12171	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12172	$ECHO EXPORTS >> $output_objdir/$libname.def~
12173	prefix_cmds="$SED"~
12174	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12175	  prefix_cmds="$prefix_cmds -e 1d";
12176	fi~
12177	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12178	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12179	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12180	emximp -o $lib $output_objdir/$libname.def'
12181      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12182      enable_shared_with_static_runtimes=yes
12183      ;;
12184
12185    interix[3-9]*)
12186      hardcode_direct=no
12187      hardcode_shlibpath_var=no
12188      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12189      export_dynamic_flag_spec='$wl-E'
12190      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12191      # Instead, shared libraries are loaded at an image base (0x10000000 by
12192      # default) and relocated if they conflict, which is a slow very memory
12193      # consuming and fragmenting process.  To avoid this, we pick a random,
12194      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12195      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12196      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12197      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12198      ;;
12199
12200    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12201      tmp_diet=no
12202      if test linux-dietlibc = "$host_os"; then
12203	case $cc_basename in
12204	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12205	esac
12206      fi
12207      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12208	 && test no = "$tmp_diet"
12209      then
12210	tmp_addflag=' $pic_flag'
12211	tmp_sharedflag='-shared'
12212	case $cc_basename,$host_cpu in
12213        pgcc*)				# Portland Group C compiler
12214	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12215	  tmp_addflag=' $pic_flag'
12216	  ;;
12217	pgf77* | pgf90* | pgf95* | pgfortran*)
12218					# Portland Group f77 and f90 compilers
12219	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12220	  tmp_addflag=' $pic_flag -Mnomain' ;;
12221	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12222	  tmp_addflag=' -i_dynamic' ;;
12223	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12224	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12225	ifc* | ifort*)			# Intel Fortran compiler
12226	  tmp_addflag=' -nofor_main' ;;
12227	lf95*)				# Lahey Fortran 8.1
12228	  whole_archive_flag_spec=
12229	  tmp_sharedflag='--shared' ;;
12230        nagfor*)                        # NAGFOR 5.3
12231          tmp_sharedflag='-Wl,-shared' ;;
12232	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12233	  tmp_sharedflag='-qmkshrobj'
12234	  tmp_addflag= ;;
12235	nvcc*)	# Cuda Compiler Driver 2.2
12236	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12237	  compiler_needs_object=yes
12238	  ;;
12239	esac
12240	case `$CC -V 2>&1 | sed 5q` in
12241	*Sun\ C*)			# Sun C 5.9
12242	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12243	  compiler_needs_object=yes
12244	  tmp_sharedflag='-G' ;;
12245	*Sun\ F*)			# Sun Fortran 8.3
12246	  tmp_sharedflag='-G' ;;
12247	esac
12248	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12249
12250        if test yes = "$supports_anon_versioning"; then
12251          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12252            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12253            echo "local: *; };" >> $output_objdir/$libname.ver~
12254            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12255        fi
12256
12257	case $cc_basename in
12258	tcc*)
12259	  export_dynamic_flag_spec='-rdynamic'
12260	  ;;
12261	xlf* | bgf* | bgxlf* | mpixlf*)
12262	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12263	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12264	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12265	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12266	  if test yes = "$supports_anon_versioning"; then
12267	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12268              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12269              echo "local: *; };" >> $output_objdir/$libname.ver~
12270              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12271	  fi
12272	  ;;
12273	esac
12274      else
12275        ld_shlibs=no
12276      fi
12277      ;;
12278
12279    netbsd*)
12280      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12281	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12282	wlarc=
12283      else
12284	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12285	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12286      fi
12287      ;;
12288
12289    solaris*)
12290      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12291	ld_shlibs=no
12292	cat <<_LT_EOF 1>&2
12293
12294*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12295*** create shared libraries on Solaris systems.  Therefore, libtool
12296*** is disabling shared libraries support.  We urge you to upgrade GNU
12297*** binutils to release 2.9.1 or newer.  Another option is to modify
12298*** your PATH or compiler configuration so that the native linker is
12299*** used, and then restart.
12300
12301_LT_EOF
12302      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12303	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12304	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12305      else
12306	ld_shlibs=no
12307      fi
12308      ;;
12309
12310    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12311      case `$LD -v 2>&1` in
12312        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12313	ld_shlibs=no
12314	cat <<_LT_EOF 1>&2
12315
12316*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12317*** reliably create shared libraries on SCO systems.  Therefore, libtool
12318*** is disabling shared libraries support.  We urge you to upgrade GNU
12319*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12320*** your PATH or compiler configuration so that the native linker is
12321*** used, and then restart.
12322
12323_LT_EOF
12324	;;
12325	*)
12326	  # For security reasons, it is highly recommended that you always
12327	  # use absolute paths for naming shared libraries, and exclude the
12328	  # DT_RUNPATH tag from executables and libraries.  But doing so
12329	  # requires that you compile everything twice, which is a pain.
12330	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12331	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12332	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12333	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12334	  else
12335	    ld_shlibs=no
12336	  fi
12337	;;
12338      esac
12339      ;;
12340
12341    sunos4*)
12342      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12343      wlarc=
12344      hardcode_direct=yes
12345      hardcode_shlibpath_var=no
12346      ;;
12347
12348    *)
12349      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12350	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12351	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12352      else
12353	ld_shlibs=no
12354      fi
12355      ;;
12356    esac
12357
12358    if test no = "$ld_shlibs"; then
12359      runpath_var=
12360      hardcode_libdir_flag_spec=
12361      export_dynamic_flag_spec=
12362      whole_archive_flag_spec=
12363    fi
12364  else
12365    # PORTME fill in a description of your system's linker (not GNU ld)
12366    case $host_os in
12367    aix3*)
12368      allow_undefined_flag=unsupported
12369      always_export_symbols=yes
12370      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12371      # Note: this linker hardcodes the directories in LIBPATH if there
12372      # are no directories specified by -L.
12373      hardcode_minus_L=yes
12374      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12375	# Neither direct hardcoding nor static linking is supported with a
12376	# broken collect2.
12377	hardcode_direct=unsupported
12378      fi
12379      ;;
12380
12381    aix[4-9]*)
12382      if test ia64 = "$host_cpu"; then
12383	# On IA64, the linker does run time linking by default, so we don't
12384	# have to do anything special.
12385	aix_use_runtimelinking=no
12386	exp_sym_flag='-Bexport'
12387	no_entry_flag=
12388      else
12389	# If we're using GNU nm, then we don't want the "-C" option.
12390	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12391	# Without the "-l" option, or with the "-B" option, AIX nm treats
12392	# weak defined symbols like other global defined symbols, whereas
12393	# GNU nm marks them as "W".
12394	# While the 'weak' keyword is ignored in the Export File, we need
12395	# it in the Import File for the 'aix-soname' feature, so we have
12396	# to replace the "-B" option with "-P" for AIX nm.
12397	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12398	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12399	else
12400	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12401	fi
12402	aix_use_runtimelinking=no
12403
12404	# Test if we are trying to use run time linking or normal
12405	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12406	# have runtime linking enabled, and use it for executables.
12407	# For shared libraries, we enable/disable runtime linking
12408	# depending on the kind of the shared library created -
12409	# when "with_aix_soname,aix_use_runtimelinking" is:
12410	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12411	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12412	#            lib.a           static archive
12413	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12414	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12415	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12416	#            lib.a(lib.so.V) shared, rtl:no
12417	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12418	#            lib.a           static archive
12419	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12420	  for ld_flag in $LDFLAGS; do
12421	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12422	    aix_use_runtimelinking=yes
12423	    break
12424	  fi
12425	  done
12426	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12427	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12428	    # so we don't have lib.a shared libs to link our executables.
12429	    # We have to force runtime linking in this case.
12430	    aix_use_runtimelinking=yes
12431	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12432	  fi
12433	  ;;
12434	esac
12435
12436	exp_sym_flag='-bexport'
12437	no_entry_flag='-bnoentry'
12438      fi
12439
12440      # When large executables or shared objects are built, AIX ld can
12441      # have problems creating the table of contents.  If linking a library
12442      # or program results in "error TOC overflow" add -mminimal-toc to
12443      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12444      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12445
12446      archive_cmds=''
12447      hardcode_direct=yes
12448      hardcode_direct_absolute=yes
12449      hardcode_libdir_separator=':'
12450      link_all_deplibs=yes
12451      file_list_spec='$wl-f,'
12452      case $with_aix_soname,$aix_use_runtimelinking in
12453      aix,*) ;; # traditional, no import file
12454      svr4,* | *,yes) # use import file
12455	# The Import File defines what to hardcode.
12456	hardcode_direct=no
12457	hardcode_direct_absolute=no
12458	;;
12459      esac
12460
12461      if test yes = "$GCC"; then
12462	case $host_os in aix4.[012]|aix4.[012].*)
12463	# We only want to do this on AIX 4.2 and lower, the check
12464	# below for broken collect2 doesn't work under 4.3+
12465	  collect2name=`$CC -print-prog-name=collect2`
12466	  if test -f "$collect2name" &&
12467	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12468	  then
12469	  # We have reworked collect2
12470	  :
12471	  else
12472	  # We have old collect2
12473	  hardcode_direct=unsupported
12474	  # It fails to find uninstalled libraries when the uninstalled
12475	  # path is not listed in the libpath.  Setting hardcode_minus_L
12476	  # to unsupported forces relinking
12477	  hardcode_minus_L=yes
12478	  hardcode_libdir_flag_spec='-L$libdir'
12479	  hardcode_libdir_separator=
12480	  fi
12481	  ;;
12482	esac
12483	shared_flag='-shared'
12484	if test yes = "$aix_use_runtimelinking"; then
12485	  shared_flag="$shared_flag "'$wl-G'
12486	fi
12487	# Need to ensure runtime linking is disabled for the traditional
12488	# shared library, or the linker may eventually find shared libraries
12489	# /with/ Import File - we do not want to mix them.
12490	shared_flag_aix='-shared'
12491	shared_flag_svr4='-shared $wl-G'
12492      else
12493	# not using gcc
12494	if test ia64 = "$host_cpu"; then
12495	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12496	# chokes on -Wl,-G. The following line is correct:
12497	  shared_flag='-G'
12498	else
12499	  if test yes = "$aix_use_runtimelinking"; then
12500	    shared_flag='$wl-G'
12501	  else
12502	    shared_flag='$wl-bM:SRE'
12503	  fi
12504	  shared_flag_aix='$wl-bM:SRE'
12505	  shared_flag_svr4='$wl-G'
12506	fi
12507      fi
12508
12509      export_dynamic_flag_spec='$wl-bexpall'
12510      # It seems that -bexpall does not export symbols beginning with
12511      # underscore (_), so it is better to generate a list of symbols to export.
12512      always_export_symbols=yes
12513      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12514	# Warning - without using the other runtime loading flags (-brtl),
12515	# -berok will link without error, but may produce a broken library.
12516	allow_undefined_flag='-berok'
12517        # Determine the default libpath from the value encoded in an
12518        # empty executable.
12519        if test set = "${lt_cv_aix_libpath+set}"; then
12520  aix_libpath=$lt_cv_aix_libpath
12521else
12522  if ${lt_cv_aix_libpath_+:} false; then :
12523  $as_echo_n "(cached) " >&6
12524else
12525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h.  */
12527
12528int
12529main ()
12530{
12531
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_link "$LINENO"; then :
12537
12538  lt_aix_libpath_sed='
12539      /Import File Strings/,/^$/ {
12540	  /^0/ {
12541	      s/^0  *\([^ ]*\) *$/\1/
12542	      p
12543	  }
12544      }'
12545  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12546  # Check for a 64-bit object if we didn't find anything.
12547  if test -z "$lt_cv_aix_libpath_"; then
12548    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12549  fi
12550fi
12551rm -f core conftest.err conftest.$ac_objext \
12552    conftest$ac_exeext conftest.$ac_ext
12553  if test -z "$lt_cv_aix_libpath_"; then
12554    lt_cv_aix_libpath_=/usr/lib:/lib
12555  fi
12556
12557fi
12558
12559  aix_libpath=$lt_cv_aix_libpath_
12560fi
12561
12562        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12563        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12564      else
12565	if test ia64 = "$host_cpu"; then
12566	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12567	  allow_undefined_flag="-z nodefs"
12568	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12569	else
12570	 # Determine the default libpath from the value encoded in an
12571	 # empty executable.
12572	 if test set = "${lt_cv_aix_libpath+set}"; then
12573  aix_libpath=$lt_cv_aix_libpath
12574else
12575  if ${lt_cv_aix_libpath_+:} false; then :
12576  $as_echo_n "(cached) " >&6
12577else
12578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579/* end confdefs.h.  */
12580
12581int
12582main ()
12583{
12584
12585  ;
12586  return 0;
12587}
12588_ACEOF
12589if ac_fn_c_try_link "$LINENO"; then :
12590
12591  lt_aix_libpath_sed='
12592      /Import File Strings/,/^$/ {
12593	  /^0/ {
12594	      s/^0  *\([^ ]*\) *$/\1/
12595	      p
12596	  }
12597      }'
12598  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599  # Check for a 64-bit object if we didn't find anything.
12600  if test -z "$lt_cv_aix_libpath_"; then
12601    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602  fi
12603fi
12604rm -f core conftest.err conftest.$ac_objext \
12605    conftest$ac_exeext conftest.$ac_ext
12606  if test -z "$lt_cv_aix_libpath_"; then
12607    lt_cv_aix_libpath_=/usr/lib:/lib
12608  fi
12609
12610fi
12611
12612  aix_libpath=$lt_cv_aix_libpath_
12613fi
12614
12615	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12616	  # Warning - without using the other run time loading flags,
12617	  # -berok will link without error, but may produce a broken library.
12618	  no_undefined_flag=' $wl-bernotok'
12619	  allow_undefined_flag=' $wl-berok'
12620	  if test yes = "$with_gnu_ld"; then
12621	    # We only use this code for GNU lds that support --whole-archive.
12622	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12623	  else
12624	    # Exported symbols can be pulled into shared objects from archives
12625	    whole_archive_flag_spec='$convenience'
12626	  fi
12627	  archive_cmds_need_lc=yes
12628	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12629	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12630	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12631	  if test svr4 != "$with_aix_soname"; then
12632	    # This is similar to how AIX traditionally builds its shared libraries.
12633	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12634	  fi
12635	  if test aix != "$with_aix_soname"; then
12636	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12637	  else
12638	    # used by -dlpreopen to get the symbols
12639	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12640	  fi
12641	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12642	fi
12643      fi
12644      ;;
12645
12646    amigaos*)
12647      case $host_cpu in
12648      powerpc)
12649            # see comment about AmigaOS4 .so support
12650            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12651            archive_expsym_cmds=''
12652        ;;
12653      m68k)
12654            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12655            hardcode_libdir_flag_spec='-L$libdir'
12656            hardcode_minus_L=yes
12657        ;;
12658      esac
12659      ;;
12660
12661    bsdi[45]*)
12662      export_dynamic_flag_spec=-rdynamic
12663      ;;
12664
12665    cygwin* | mingw* | pw32* | cegcc*)
12666      # When not using gcc, we currently assume that we are using
12667      # Microsoft Visual C++.
12668      # hardcode_libdir_flag_spec is actually meaningless, as there is
12669      # no search path for DLLs.
12670      case $cc_basename in
12671      cl*)
12672	# Native MSVC
12673	hardcode_libdir_flag_spec=' '
12674	allow_undefined_flag=unsupported
12675	always_export_symbols=yes
12676	file_list_spec='@'
12677	# Tell ltmain to make .lib files, not .a files.
12678	libext=lib
12679	# Tell ltmain to make .dll files, not .so files.
12680	shrext_cmds=.dll
12681	# FIXME: Setting linknames here is a bad hack.
12682	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12683	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12684            cp "$export_symbols" "$output_objdir/$soname.def";
12685            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12686          else
12687            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12688          fi~
12689          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12690          linknames='
12691	# The linker will not automatically build a static lib if we build a DLL.
12692	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12693	enable_shared_with_static_runtimes=yes
12694	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12695	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12696	# Don't use ranlib
12697	old_postinstall_cmds='chmod 644 $oldlib'
12698	postlink_cmds='lt_outputfile="@OUTPUT@"~
12699          lt_tool_outputfile="@TOOL_OUTPUT@"~
12700          case $lt_outputfile in
12701            *.exe|*.EXE) ;;
12702            *)
12703              lt_outputfile=$lt_outputfile.exe
12704              lt_tool_outputfile=$lt_tool_outputfile.exe
12705              ;;
12706          esac~
12707          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12708            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12709            $RM "$lt_outputfile.manifest";
12710          fi'
12711	;;
12712      *)
12713	# Assume MSVC wrapper
12714	hardcode_libdir_flag_spec=' '
12715	allow_undefined_flag=unsupported
12716	# Tell ltmain to make .lib files, not .a files.
12717	libext=lib
12718	# Tell ltmain to make .dll files, not .so files.
12719	shrext_cmds=.dll
12720	# FIXME: Setting linknames here is a bad hack.
12721	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12722	# The linker will automatically build a .lib file if we build a DLL.
12723	old_archive_from_new_cmds='true'
12724	# FIXME: Should let the user specify the lib program.
12725	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12726	enable_shared_with_static_runtimes=yes
12727	;;
12728      esac
12729      ;;
12730
12731    darwin* | rhapsody*)
12732
12733
12734  archive_cmds_need_lc=no
12735  hardcode_direct=no
12736  hardcode_automatic=yes
12737  hardcode_shlibpath_var=unsupported
12738  if test yes = "$lt_cv_ld_force_load"; then
12739    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12740
12741  else
12742    whole_archive_flag_spec=''
12743  fi
12744  link_all_deplibs=yes
12745  allow_undefined_flag=$_lt_dar_allow_undefined
12746  case $cc_basename in
12747     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12748     *) _lt_dar_can_shared=$GCC ;;
12749  esac
12750  if test yes = "$_lt_dar_can_shared"; then
12751    output_verbose_link_cmd=func_echo_all
12752    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12753    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12754    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12755    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12756
12757  else
12758  ld_shlibs=no
12759  fi
12760
12761      ;;
12762
12763    dgux*)
12764      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12765      hardcode_libdir_flag_spec='-L$libdir'
12766      hardcode_shlibpath_var=no
12767      ;;
12768
12769    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12770    # support.  Future versions do this automatically, but an explicit c++rt0.o
12771    # does not break anything, and helps significantly (at the cost of a little
12772    # extra space).
12773    freebsd2.2*)
12774      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12775      hardcode_libdir_flag_spec='-R$libdir'
12776      hardcode_direct=yes
12777      hardcode_shlibpath_var=no
12778      ;;
12779
12780    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12781    freebsd2.*)
12782      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12783      hardcode_direct=yes
12784      hardcode_minus_L=yes
12785      hardcode_shlibpath_var=no
12786      ;;
12787
12788    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12789    freebsd* | dragonfly*)
12790      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12791      hardcode_libdir_flag_spec='-R$libdir'
12792      hardcode_direct=yes
12793      hardcode_shlibpath_var=no
12794      ;;
12795
12796    hpux9*)
12797      if test yes = "$GCC"; then
12798	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12799      else
12800	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12801      fi
12802      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12803      hardcode_libdir_separator=:
12804      hardcode_direct=yes
12805
12806      # hardcode_minus_L: Not really in the search PATH,
12807      # but as the default location of the library.
12808      hardcode_minus_L=yes
12809      export_dynamic_flag_spec='$wl-E'
12810      ;;
12811
12812    hpux10*)
12813      if test yes,no = "$GCC,$with_gnu_ld"; then
12814	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12815      else
12816	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12817      fi
12818      if test no = "$with_gnu_ld"; then
12819	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12820	hardcode_libdir_separator=:
12821	hardcode_direct=yes
12822	hardcode_direct_absolute=yes
12823	export_dynamic_flag_spec='$wl-E'
12824	# hardcode_minus_L: Not really in the search PATH,
12825	# but as the default location of the library.
12826	hardcode_minus_L=yes
12827      fi
12828      ;;
12829
12830    hpux11*)
12831      if test yes,no = "$GCC,$with_gnu_ld"; then
12832	case $host_cpu in
12833	hppa*64*)
12834	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12835	  ;;
12836	ia64*)
12837	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12838	  ;;
12839	*)
12840	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12841	  ;;
12842	esac
12843      else
12844	case $host_cpu in
12845	hppa*64*)
12846	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12847	  ;;
12848	ia64*)
12849	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12850	  ;;
12851	*)
12852
12853	  # Older versions of the 11.00 compiler do not understand -b yet
12854	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12855	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12856$as_echo_n "checking if $CC understands -b... " >&6; }
12857if ${lt_cv_prog_compiler__b+:} false; then :
12858  $as_echo_n "(cached) " >&6
12859else
12860  lt_cv_prog_compiler__b=no
12861   save_LDFLAGS=$LDFLAGS
12862   LDFLAGS="$LDFLAGS -b"
12863   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12864   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12865     # The linker can only warn and ignore the option if not recognized
12866     # So say no if there are warnings
12867     if test -s conftest.err; then
12868       # Append any errors to the config.log.
12869       cat conftest.err 1>&5
12870       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12871       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12872       if diff conftest.exp conftest.er2 >/dev/null; then
12873         lt_cv_prog_compiler__b=yes
12874       fi
12875     else
12876       lt_cv_prog_compiler__b=yes
12877     fi
12878   fi
12879   $RM -r conftest*
12880   LDFLAGS=$save_LDFLAGS
12881
12882fi
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12884$as_echo "$lt_cv_prog_compiler__b" >&6; }
12885
12886if test yes = "$lt_cv_prog_compiler__b"; then
12887    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12888else
12889    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12890fi
12891
12892	  ;;
12893	esac
12894      fi
12895      if test no = "$with_gnu_ld"; then
12896	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12897	hardcode_libdir_separator=:
12898
12899	case $host_cpu in
12900	hppa*64*|ia64*)
12901	  hardcode_direct=no
12902	  hardcode_shlibpath_var=no
12903	  ;;
12904	*)
12905	  hardcode_direct=yes
12906	  hardcode_direct_absolute=yes
12907	  export_dynamic_flag_spec='$wl-E'
12908
12909	  # hardcode_minus_L: Not really in the search PATH,
12910	  # but as the default location of the library.
12911	  hardcode_minus_L=yes
12912	  ;;
12913	esac
12914      fi
12915      ;;
12916
12917    irix5* | irix6* | nonstopux*)
12918      if test yes = "$GCC"; then
12919	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12920	# Try to use the -exported_symbol ld option, if it does not
12921	# work, assume that -exports_file does not work either and
12922	# implicitly export all symbols.
12923	# This should be the same for all languages, so no per-tag cache variable.
12924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12925$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12926if ${lt_cv_irix_exported_symbol+:} false; then :
12927  $as_echo_n "(cached) " >&6
12928else
12929  save_LDFLAGS=$LDFLAGS
12930	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12931	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h.  */
12933int foo (void) { return 0; }
12934_ACEOF
12935if ac_fn_c_try_link "$LINENO"; then :
12936  lt_cv_irix_exported_symbol=yes
12937else
12938  lt_cv_irix_exported_symbol=no
12939fi
12940rm -f core conftest.err conftest.$ac_objext \
12941    conftest$ac_exeext conftest.$ac_ext
12942           LDFLAGS=$save_LDFLAGS
12943fi
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12945$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12946	if test yes = "$lt_cv_irix_exported_symbol"; then
12947          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12948	fi
12949      else
12950	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12951	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12952      fi
12953      archive_cmds_need_lc='no'
12954      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12955      hardcode_libdir_separator=:
12956      inherit_rpath=yes
12957      link_all_deplibs=yes
12958      ;;
12959
12960    linux*)
12961      case $cc_basename in
12962      tcc*)
12963	# Fabrice Bellard et al's Tiny C Compiler
12964	ld_shlibs=yes
12965	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12966	;;
12967      esac
12968      ;;
12969
12970    netbsd*)
12971      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12972	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12973      else
12974	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12975      fi
12976      hardcode_libdir_flag_spec='-R$libdir'
12977      hardcode_direct=yes
12978      hardcode_shlibpath_var=no
12979      ;;
12980
12981    newsos6)
12982      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12983      hardcode_direct=yes
12984      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12985      hardcode_libdir_separator=:
12986      hardcode_shlibpath_var=no
12987      ;;
12988
12989    *nto* | *qnx*)
12990      ;;
12991
12992    openbsd* | bitrig*)
12993      if test -f /usr/libexec/ld.so; then
12994	hardcode_direct=yes
12995	hardcode_shlibpath_var=no
12996	hardcode_direct_absolute=yes
12997	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12998	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12999	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13000	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13001	  export_dynamic_flag_spec='$wl-E'
13002	else
13003	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13004	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13005	fi
13006      else
13007	ld_shlibs=no
13008      fi
13009      ;;
13010
13011    os2*)
13012      hardcode_libdir_flag_spec='-L$libdir'
13013      hardcode_minus_L=yes
13014      allow_undefined_flag=unsupported
13015      shrext_cmds=.dll
13016      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13017	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13018	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13019	$ECHO EXPORTS >> $output_objdir/$libname.def~
13020	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13021	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13022	emximp -o $lib $output_objdir/$libname.def'
13023      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13024	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13025	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13026	$ECHO EXPORTS >> $output_objdir/$libname.def~
13027	prefix_cmds="$SED"~
13028	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13029	  prefix_cmds="$prefix_cmds -e 1d";
13030	fi~
13031	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13032	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13033	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13034	emximp -o $lib $output_objdir/$libname.def'
13035      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13036      enable_shared_with_static_runtimes=yes
13037      ;;
13038
13039    osf3*)
13040      if test yes = "$GCC"; then
13041	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13042	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13043      else
13044	allow_undefined_flag=' -expect_unresolved \*'
13045	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13046      fi
13047      archive_cmds_need_lc='no'
13048      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13049      hardcode_libdir_separator=:
13050      ;;
13051
13052    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13053      if test yes = "$GCC"; then
13054	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13055	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13056	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13057      else
13058	allow_undefined_flag=' -expect_unresolved \*'
13059	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13060	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13061          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13062
13063	# Both c and cxx compiler support -rpath directly
13064	hardcode_libdir_flag_spec='-rpath $libdir'
13065      fi
13066      archive_cmds_need_lc='no'
13067      hardcode_libdir_separator=:
13068      ;;
13069
13070    solaris*)
13071      no_undefined_flag=' -z defs'
13072      if test yes = "$GCC"; then
13073	wlarc='$wl'
13074	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13075	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13076          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13077      else
13078	case `$CC -V 2>&1` in
13079	*"Compilers 5.0"*)
13080	  wlarc=''
13081	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13082	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13083            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13084	  ;;
13085	*)
13086	  wlarc='$wl'
13087	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13088	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13089            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13090	  ;;
13091	esac
13092      fi
13093      hardcode_libdir_flag_spec='-R$libdir'
13094      hardcode_shlibpath_var=no
13095      case $host_os in
13096      solaris2.[0-5] | solaris2.[0-5].*) ;;
13097      *)
13098	# The compiler driver will combine and reorder linker options,
13099	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13100	# but is careful enough not to reorder.
13101	# Supported since Solaris 2.6 (maybe 2.5.1?)
13102	if test yes = "$GCC"; then
13103	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13104	else
13105	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13106	fi
13107	;;
13108      esac
13109      link_all_deplibs=yes
13110      ;;
13111
13112    sunos4*)
13113      if test sequent = "$host_vendor"; then
13114	# Use $CC to link under sequent, because it throws in some extra .o
13115	# files that make .init and .fini sections work.
13116	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13117      else
13118	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13119      fi
13120      hardcode_libdir_flag_spec='-L$libdir'
13121      hardcode_direct=yes
13122      hardcode_minus_L=yes
13123      hardcode_shlibpath_var=no
13124      ;;
13125
13126    sysv4)
13127      case $host_vendor in
13128	sni)
13129	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13130	  hardcode_direct=yes # is this really true???
13131	;;
13132	siemens)
13133	  ## LD is ld it makes a PLAMLIB
13134	  ## CC just makes a GrossModule.
13135	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13136	  reload_cmds='$CC -r -o $output$reload_objs'
13137	  hardcode_direct=no
13138        ;;
13139	motorola)
13140	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13141	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13142	;;
13143      esac
13144      runpath_var='LD_RUN_PATH'
13145      hardcode_shlibpath_var=no
13146      ;;
13147
13148    sysv4.3*)
13149      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13150      hardcode_shlibpath_var=no
13151      export_dynamic_flag_spec='-Bexport'
13152      ;;
13153
13154    sysv4*MP*)
13155      if test -d /usr/nec; then
13156	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13157	hardcode_shlibpath_var=no
13158	runpath_var=LD_RUN_PATH
13159	hardcode_runpath_var=yes
13160	ld_shlibs=yes
13161      fi
13162      ;;
13163
13164    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13165      no_undefined_flag='$wl-z,text'
13166      archive_cmds_need_lc=no
13167      hardcode_shlibpath_var=no
13168      runpath_var='LD_RUN_PATH'
13169
13170      if test yes = "$GCC"; then
13171	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13173      else
13174	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13175	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13176      fi
13177      ;;
13178
13179    sysv5* | sco3.2v5* | sco5v6*)
13180      # Note: We CANNOT use -z defs as we might desire, because we do not
13181      # link with -lc, and that would cause any symbols used from libc to
13182      # always be unresolved, which means just about no library would
13183      # ever link correctly.  If we're not using GNU ld we use -z text
13184      # though, which does catch some bad symbols but isn't as heavy-handed
13185      # as -z defs.
13186      no_undefined_flag='$wl-z,text'
13187      allow_undefined_flag='$wl-z,nodefs'
13188      archive_cmds_need_lc=no
13189      hardcode_shlibpath_var=no
13190      hardcode_libdir_flag_spec='$wl-R,$libdir'
13191      hardcode_libdir_separator=':'
13192      link_all_deplibs=yes
13193      export_dynamic_flag_spec='$wl-Bexport'
13194      runpath_var='LD_RUN_PATH'
13195
13196      if test yes = "$GCC"; then
13197	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13198	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13199      else
13200	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202      fi
13203      ;;
13204
13205    uts4*)
13206      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13207      hardcode_libdir_flag_spec='-L$libdir'
13208      hardcode_shlibpath_var=no
13209      ;;
13210
13211    *)
13212      ld_shlibs=no
13213      ;;
13214    esac
13215
13216    if test sni = "$host_vendor"; then
13217      case $host in
13218      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13219	export_dynamic_flag_spec='$wl-Blargedynsym'
13220	;;
13221      esac
13222    fi
13223  fi
13224
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13226$as_echo "$ld_shlibs" >&6; }
13227test no = "$ld_shlibs" && can_build_shared=no
13228
13229with_gnu_ld=$with_gnu_ld
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245#
13246# Do we need to explicitly link libc?
13247#
13248case "x$archive_cmds_need_lc" in
13249x|xyes)
13250  # Assume -lc should be added
13251  archive_cmds_need_lc=yes
13252
13253  if test yes,yes = "$GCC,$enable_shared"; then
13254    case $archive_cmds in
13255    *'~'*)
13256      # FIXME: we may have to deal with multi-command sequences.
13257      ;;
13258    '$CC '*)
13259      # Test whether the compiler implicitly links with -lc since on some
13260      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13261      # to ld, don't add -lc before -lgcc.
13262      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13263$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13264if ${lt_cv_archive_cmds_need_lc+:} false; then :
13265  $as_echo_n "(cached) " >&6
13266else
13267  $RM conftest*
13268	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13269
13270	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13271  (eval $ac_compile) 2>&5
13272  ac_status=$?
13273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13274  test $ac_status = 0; } 2>conftest.err; then
13275	  soname=conftest
13276	  lib=conftest
13277	  libobjs=conftest.$ac_objext
13278	  deplibs=
13279	  wl=$lt_prog_compiler_wl
13280	  pic_flag=$lt_prog_compiler_pic
13281	  compiler_flags=-v
13282	  linker_flags=-v
13283	  verstring=
13284	  output_objdir=.
13285	  libname=conftest
13286	  lt_save_allow_undefined_flag=$allow_undefined_flag
13287	  allow_undefined_flag=
13288	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13289  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13290  ac_status=$?
13291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13292  test $ac_status = 0; }
13293	  then
13294	    lt_cv_archive_cmds_need_lc=no
13295	  else
13296	    lt_cv_archive_cmds_need_lc=yes
13297	  fi
13298	  allow_undefined_flag=$lt_save_allow_undefined_flag
13299	else
13300	  cat conftest.err 1>&5
13301	fi
13302	$RM conftest*
13303
13304fi
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13306$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13307      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13308      ;;
13309    esac
13310  fi
13311  ;;
13312esac
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13466$as_echo_n "checking dynamic linker characteristics... " >&6; }
13467
13468if test yes = "$GCC"; then
13469  case $host_os in
13470    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13471    *) lt_awk_arg='/^libraries:/' ;;
13472  esac
13473  case $host_os in
13474    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13475    *) lt_sed_strip_eq='s|=/|/|g' ;;
13476  esac
13477  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13478  case $lt_search_path_spec in
13479  *\;*)
13480    # if the path contains ";" then we assume it to be the separator
13481    # otherwise default to the standard path separator (i.e. ":") - it is
13482    # assumed that no part of a normal pathname contains ";" but that should
13483    # okay in the real world where ";" in dirpaths is itself problematic.
13484    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13485    ;;
13486  *)
13487    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13488    ;;
13489  esac
13490  # Ok, now we have the path, separated by spaces, we can step through it
13491  # and add multilib dir if necessary...
13492  lt_tmp_lt_search_path_spec=
13493  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13494  # ...but if some path component already ends with the multilib dir we assume
13495  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13496  case "$lt_multi_os_dir; $lt_search_path_spec " in
13497  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13498    lt_multi_os_dir=
13499    ;;
13500  esac
13501  for lt_sys_path in $lt_search_path_spec; do
13502    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13503      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13504    elif test -n "$lt_multi_os_dir"; then
13505      test -d "$lt_sys_path" && \
13506	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13507    fi
13508  done
13509  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13510BEGIN {RS = " "; FS = "/|\n";} {
13511  lt_foo = "";
13512  lt_count = 0;
13513  for (lt_i = NF; lt_i > 0; lt_i--) {
13514    if ($lt_i != "" && $lt_i != ".") {
13515      if ($lt_i == "..") {
13516        lt_count++;
13517      } else {
13518        if (lt_count == 0) {
13519          lt_foo = "/" $lt_i lt_foo;
13520        } else {
13521          lt_count--;
13522        }
13523      }
13524    }
13525  }
13526  if (lt_foo != "") { lt_freq[lt_foo]++; }
13527  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13528}'`
13529  # AWK program above erroneously prepends '/' to C:/dos/paths
13530  # for these hosts.
13531  case $host_os in
13532    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13533      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13534  esac
13535  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13536else
13537  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13538fi
13539library_names_spec=
13540libname_spec='lib$name'
13541soname_spec=
13542shrext_cmds=.so
13543postinstall_cmds=
13544postuninstall_cmds=
13545finish_cmds=
13546finish_eval=
13547shlibpath_var=
13548shlibpath_overrides_runpath=unknown
13549version_type=none
13550dynamic_linker="$host_os ld.so"
13551sys_lib_dlsearch_path_spec="/lib /usr/lib"
13552need_lib_prefix=unknown
13553hardcode_into_libs=no
13554
13555# when you set need_version to no, make sure it does not cause -set_version
13556# flags to be left without arguments
13557need_version=unknown
13558
13559
13560
13561case $host_os in
13562aix3*)
13563  version_type=linux # correct to gnu/linux during the next big refactor
13564  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13565  shlibpath_var=LIBPATH
13566
13567  # AIX 3 has no versioning support, so we append a major version to the name.
13568  soname_spec='$libname$release$shared_ext$major'
13569  ;;
13570
13571aix[4-9]*)
13572  version_type=linux # correct to gnu/linux during the next big refactor
13573  need_lib_prefix=no
13574  need_version=no
13575  hardcode_into_libs=yes
13576  if test ia64 = "$host_cpu"; then
13577    # AIX 5 supports IA64
13578    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13579    shlibpath_var=LD_LIBRARY_PATH
13580  else
13581    # With GCC up to 2.95.x, collect2 would create an import file
13582    # for dependence libraries.  The import file would start with
13583    # the line '#! .'.  This would cause the generated library to
13584    # depend on '.', always an invalid library.  This was fixed in
13585    # development snapshots of GCC prior to 3.0.
13586    case $host_os in
13587      aix4 | aix4.[01] | aix4.[01].*)
13588      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13589	   echo ' yes '
13590	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13591	:
13592      else
13593	can_build_shared=no
13594      fi
13595      ;;
13596    esac
13597    # Using Import Files as archive members, it is possible to support
13598    # filename-based versioning of shared library archives on AIX. While
13599    # this would work for both with and without runtime linking, it will
13600    # prevent static linking of such archives. So we do filename-based
13601    # shared library versioning with .so extension only, which is used
13602    # when both runtime linking and shared linking is enabled.
13603    # Unfortunately, runtime linking may impact performance, so we do
13604    # not want this to be the default eventually. Also, we use the
13605    # versioned .so libs for executables only if there is the -brtl
13606    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13607    # To allow for filename-based versioning support, we need to create
13608    # libNAME.so.V as an archive file, containing:
13609    # *) an Import File, referring to the versioned filename of the
13610    #    archive as well as the shared archive member, telling the
13611    #    bitwidth (32 or 64) of that shared object, and providing the
13612    #    list of exported symbols of that shared object, eventually
13613    #    decorated with the 'weak' keyword
13614    # *) the shared object with the F_LOADONLY flag set, to really avoid
13615    #    it being seen by the linker.
13616    # At run time we better use the real file rather than another symlink,
13617    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13618
13619    case $with_aix_soname,$aix_use_runtimelinking in
13620    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13621    # soname into executable. Probably we can add versioning support to
13622    # collect2, so additional links can be useful in future.
13623    aix,yes) # traditional libtool
13624      dynamic_linker='AIX unversionable lib.so'
13625      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13626      # instead of lib<name>.a to let people know that these are not
13627      # typical AIX shared libraries.
13628      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13629      ;;
13630    aix,no) # traditional AIX only
13631      dynamic_linker='AIX lib.a(lib.so.V)'
13632      # We preserve .a as extension for shared libraries through AIX4.2
13633      # and later when we are not doing run time linking.
13634      library_names_spec='$libname$release.a $libname.a'
13635      soname_spec='$libname$release$shared_ext$major'
13636      ;;
13637    svr4,*) # full svr4 only
13638      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13639      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13640      # We do not specify a path in Import Files, so LIBPATH fires.
13641      shlibpath_overrides_runpath=yes
13642      ;;
13643    *,yes) # both, prefer svr4
13644      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13645      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13646      # unpreferred sharedlib libNAME.a needs extra handling
13647      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13648      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13649      # We do not specify a path in Import Files, so LIBPATH fires.
13650      shlibpath_overrides_runpath=yes
13651      ;;
13652    *,no) # both, prefer aix
13653      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13654      library_names_spec='$libname$release.a $libname.a'
13655      soname_spec='$libname$release$shared_ext$major'
13656      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13657      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13658      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13659      ;;
13660    esac
13661    shlibpath_var=LIBPATH
13662  fi
13663  ;;
13664
13665amigaos*)
13666  case $host_cpu in
13667  powerpc)
13668    # Since July 2007 AmigaOS4 officially supports .so libraries.
13669    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13670    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13671    ;;
13672  m68k)
13673    library_names_spec='$libname.ixlibrary $libname.a'
13674    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13675    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13676    ;;
13677  esac
13678  ;;
13679
13680beos*)
13681  library_names_spec='$libname$shared_ext'
13682  dynamic_linker="$host_os ld.so"
13683  shlibpath_var=LIBRARY_PATH
13684  ;;
13685
13686bsdi[45]*)
13687  version_type=linux # correct to gnu/linux during the next big refactor
13688  need_version=no
13689  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13690  soname_spec='$libname$release$shared_ext$major'
13691  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13692  shlibpath_var=LD_LIBRARY_PATH
13693  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13694  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13695  # the default ld.so.conf also contains /usr/contrib/lib and
13696  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13697  # libtool to hard-code these into programs
13698  ;;
13699
13700cygwin* | mingw* | pw32* | cegcc*)
13701  version_type=windows
13702  shrext_cmds=.dll
13703  need_version=no
13704  need_lib_prefix=no
13705
13706  case $GCC,$cc_basename in
13707  yes,*)
13708    # gcc
13709    library_names_spec='$libname.dll.a'
13710    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13711    postinstall_cmds='base_file=`basename \$file`~
13712      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13713      dldir=$destdir/`dirname \$dlpath`~
13714      test -d \$dldir || mkdir -p \$dldir~
13715      $install_prog $dir/$dlname \$dldir/$dlname~
13716      chmod a+x \$dldir/$dlname~
13717      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13718        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13719      fi'
13720    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13721      dlpath=$dir/\$dldll~
13722       $RM \$dlpath'
13723    shlibpath_overrides_runpath=yes
13724
13725    case $host_os in
13726    cygwin*)
13727      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13728      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13729
13730      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13731      ;;
13732    mingw* | cegcc*)
13733      # MinGW DLLs use traditional 'lib' prefix
13734      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13735      ;;
13736    pw32*)
13737      # pw32 DLLs use 'pw' prefix rather than 'lib'
13738      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13739      ;;
13740    esac
13741    dynamic_linker='Win32 ld.exe'
13742    ;;
13743
13744  *,cl*)
13745    # Native MSVC
13746    libname_spec='$name'
13747    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13748    library_names_spec='$libname.dll.lib'
13749
13750    case $build_os in
13751    mingw*)
13752      sys_lib_search_path_spec=
13753      lt_save_ifs=$IFS
13754      IFS=';'
13755      for lt_path in $LIB
13756      do
13757        IFS=$lt_save_ifs
13758        # Let DOS variable expansion print the short 8.3 style file name.
13759        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13760        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13761      done
13762      IFS=$lt_save_ifs
13763      # Convert to MSYS style.
13764      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13765      ;;
13766    cygwin*)
13767      # Convert to unix form, then to dos form, then back to unix form
13768      # but this time dos style (no spaces!) so that the unix form looks
13769      # like /cygdrive/c/PROGRA~1:/cygdr...
13770      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13771      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13772      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13773      ;;
13774    *)
13775      sys_lib_search_path_spec=$LIB
13776      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13777        # It is most probably a Windows format PATH.
13778        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13779      else
13780        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13781      fi
13782      # FIXME: find the short name or the path components, as spaces are
13783      # common. (e.g. "Program Files" -> "PROGRA~1")
13784      ;;
13785    esac
13786
13787    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13788    postinstall_cmds='base_file=`basename \$file`~
13789      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13790      dldir=$destdir/`dirname \$dlpath`~
13791      test -d \$dldir || mkdir -p \$dldir~
13792      $install_prog $dir/$dlname \$dldir/$dlname'
13793    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13794      dlpath=$dir/\$dldll~
13795       $RM \$dlpath'
13796    shlibpath_overrides_runpath=yes
13797    dynamic_linker='Win32 link.exe'
13798    ;;
13799
13800  *)
13801    # Assume MSVC wrapper
13802    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13803    dynamic_linker='Win32 ld.exe'
13804    ;;
13805  esac
13806  # FIXME: first we should search . and the directory the executable is in
13807  shlibpath_var=PATH
13808  ;;
13809
13810darwin* | rhapsody*)
13811  dynamic_linker="$host_os dyld"
13812  version_type=darwin
13813  need_lib_prefix=no
13814  need_version=no
13815  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13816  soname_spec='$libname$release$major$shared_ext'
13817  shlibpath_overrides_runpath=yes
13818  shlibpath_var=DYLD_LIBRARY_PATH
13819  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13820
13821  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13822  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13823  ;;
13824
13825dgux*)
13826  version_type=linux # correct to gnu/linux during the next big refactor
13827  need_lib_prefix=no
13828  need_version=no
13829  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13830  soname_spec='$libname$release$shared_ext$major'
13831  shlibpath_var=LD_LIBRARY_PATH
13832  ;;
13833
13834freebsd* | dragonfly*)
13835  # DragonFly does not have aout.  When/if they implement a new
13836  # versioning mechanism, adjust this.
13837  if test -x /usr/bin/objformat; then
13838    objformat=`/usr/bin/objformat`
13839  else
13840    case $host_os in
13841    freebsd[23].*) objformat=aout ;;
13842    *) objformat=elf ;;
13843    esac
13844  fi
13845  version_type=freebsd-$objformat
13846  case $version_type in
13847    freebsd-elf*)
13848      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13849      soname_spec='$libname$release$shared_ext$major'
13850      need_version=no
13851      need_lib_prefix=no
13852      ;;
13853    freebsd-*)
13854      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13855      need_version=yes
13856      ;;
13857  esac
13858  shlibpath_var=LD_LIBRARY_PATH
13859  case $host_os in
13860  freebsd2.*)
13861    shlibpath_overrides_runpath=yes
13862    ;;
13863  freebsd3.[01]* | freebsdelf3.[01]*)
13864    shlibpath_overrides_runpath=yes
13865    hardcode_into_libs=yes
13866    ;;
13867  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13868  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13869    shlibpath_overrides_runpath=no
13870    hardcode_into_libs=yes
13871    ;;
13872  *) # from 4.6 on, and DragonFly
13873    shlibpath_overrides_runpath=yes
13874    hardcode_into_libs=yes
13875    ;;
13876  esac
13877  ;;
13878
13879haiku*)
13880  version_type=linux # correct to gnu/linux during the next big refactor
13881  need_lib_prefix=no
13882  need_version=no
13883  dynamic_linker="$host_os runtime_loader"
13884  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13885  soname_spec='$libname$release$shared_ext$major'
13886  shlibpath_var=LIBRARY_PATH
13887  shlibpath_overrides_runpath=no
13888  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13889  hardcode_into_libs=yes
13890  ;;
13891
13892hpux9* | hpux10* | hpux11*)
13893  # Give a soname corresponding to the major version so that dld.sl refuses to
13894  # link against other versions.
13895  version_type=sunos
13896  need_lib_prefix=no
13897  need_version=no
13898  case $host_cpu in
13899  ia64*)
13900    shrext_cmds='.so'
13901    hardcode_into_libs=yes
13902    dynamic_linker="$host_os dld.so"
13903    shlibpath_var=LD_LIBRARY_PATH
13904    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13905    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13906    soname_spec='$libname$release$shared_ext$major'
13907    if test 32 = "$HPUX_IA64_MODE"; then
13908      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13909      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13910    else
13911      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13912      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13913    fi
13914    ;;
13915  hppa*64*)
13916    shrext_cmds='.sl'
13917    hardcode_into_libs=yes
13918    dynamic_linker="$host_os dld.sl"
13919    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13921    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13922    soname_spec='$libname$release$shared_ext$major'
13923    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13924    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13925    ;;
13926  *)
13927    shrext_cmds='.sl'
13928    dynamic_linker="$host_os dld.sl"
13929    shlibpath_var=SHLIB_PATH
13930    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13931    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13932    soname_spec='$libname$release$shared_ext$major'
13933    ;;
13934  esac
13935  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13936  postinstall_cmds='chmod 555 $lib'
13937  # or fails outright, so override atomically:
13938  install_override_mode=555
13939  ;;
13940
13941interix[3-9]*)
13942  version_type=linux # correct to gnu/linux during the next big refactor
13943  need_lib_prefix=no
13944  need_version=no
13945  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13946  soname_spec='$libname$release$shared_ext$major'
13947  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13948  shlibpath_var=LD_LIBRARY_PATH
13949  shlibpath_overrides_runpath=no
13950  hardcode_into_libs=yes
13951  ;;
13952
13953irix5* | irix6* | nonstopux*)
13954  case $host_os in
13955    nonstopux*) version_type=nonstopux ;;
13956    *)
13957	if test yes = "$lt_cv_prog_gnu_ld"; then
13958		version_type=linux # correct to gnu/linux during the next big refactor
13959	else
13960		version_type=irix
13961	fi ;;
13962  esac
13963  need_lib_prefix=no
13964  need_version=no
13965  soname_spec='$libname$release$shared_ext$major'
13966  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13967  case $host_os in
13968  irix5* | nonstopux*)
13969    libsuff= shlibsuff=
13970    ;;
13971  *)
13972    case $LD in # libtool.m4 will add one of these switches to LD
13973    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13974      libsuff= shlibsuff= libmagic=32-bit;;
13975    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13976      libsuff=32 shlibsuff=N32 libmagic=N32;;
13977    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13978      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13979    *) libsuff= shlibsuff= libmagic=never-match;;
13980    esac
13981    ;;
13982  esac
13983  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13984  shlibpath_overrides_runpath=no
13985  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13986  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13987  hardcode_into_libs=yes
13988  ;;
13989
13990# No shared lib support for Linux oldld, aout, or coff.
13991linux*oldld* | linux*aout* | linux*coff*)
13992  dynamic_linker=no
13993  ;;
13994
13995linux*android*)
13996  version_type=none # Android doesn't support versioned libraries.
13997  need_lib_prefix=no
13998  need_version=no
13999  library_names_spec='$libname$release$shared_ext'
14000  soname_spec='$libname$release$shared_ext'
14001  finish_cmds=
14002  shlibpath_var=LD_LIBRARY_PATH
14003  shlibpath_overrides_runpath=yes
14004
14005  # This implies no fast_install, which is unacceptable.
14006  # Some rework will be needed to allow for fast_install
14007  # before this can be enabled.
14008  hardcode_into_libs=yes
14009
14010  dynamic_linker='Android linker'
14011  # Don't embed -rpath directories since the linker doesn't support them.
14012  hardcode_libdir_flag_spec='-L$libdir'
14013  ;;
14014
14015# This must be glibc/ELF.
14016linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14017  version_type=linux # correct to gnu/linux during the next big refactor
14018  need_lib_prefix=no
14019  need_version=no
14020  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14021  soname_spec='$libname$release$shared_ext$major'
14022  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14023  shlibpath_var=LD_LIBRARY_PATH
14024  shlibpath_overrides_runpath=no
14025
14026  # Some binutils ld are patched to set DT_RUNPATH
14027  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14028  $as_echo_n "(cached) " >&6
14029else
14030  lt_cv_shlibpath_overrides_runpath=no
14031    save_LDFLAGS=$LDFLAGS
14032    save_libdir=$libdir
14033    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14034	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14035    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036/* end confdefs.h.  */
14037
14038int
14039main ()
14040{
14041
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046if ac_fn_c_try_link "$LINENO"; then :
14047  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14048  lt_cv_shlibpath_overrides_runpath=yes
14049fi
14050fi
14051rm -f core conftest.err conftest.$ac_objext \
14052    conftest$ac_exeext conftest.$ac_ext
14053    LDFLAGS=$save_LDFLAGS
14054    libdir=$save_libdir
14055
14056fi
14057
14058  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14059
14060  # This implies no fast_install, which is unacceptable.
14061  # Some rework will be needed to allow for fast_install
14062  # before this can be enabled.
14063  hardcode_into_libs=yes
14064
14065  # Ideally, we could use ldconfig to report *all* directores which are
14066  # searched for libraries, however this is still not possible.  Aside from not
14067  # being certain /sbin/ldconfig is available, command
14068  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14069  # even though it is searched at run-time.  Try to do the best guess by
14070  # appending ld.so.conf contents (and includes) to the search path.
14071  if test -f /etc/ld.so.conf; then
14072    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14073    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14074  fi
14075
14076  # We used to test for /lib/ld.so.1 and disable shared libraries on
14077  # powerpc, because MkLinux only supported shared libraries with the
14078  # GNU dynamic linker.  Since this was broken with cross compilers,
14079  # most powerpc-linux boxes support dynamic linking these days and
14080  # people can always --disable-shared, the test was removed, and we
14081  # assume the GNU/Linux dynamic linker is in use.
14082  dynamic_linker='GNU/Linux ld.so'
14083  ;;
14084
14085netbsd*)
14086  version_type=sunos
14087  need_lib_prefix=no
14088  need_version=no
14089  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14090    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14091    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14092    dynamic_linker='NetBSD (a.out) ld.so'
14093  else
14094    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14095    soname_spec='$libname$release$shared_ext$major'
14096    dynamic_linker='NetBSD ld.elf_so'
14097  fi
14098  shlibpath_var=LD_LIBRARY_PATH
14099  shlibpath_overrides_runpath=yes
14100  hardcode_into_libs=yes
14101  ;;
14102
14103newsos6)
14104  version_type=linux # correct to gnu/linux during the next big refactor
14105  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14106  shlibpath_var=LD_LIBRARY_PATH
14107  shlibpath_overrides_runpath=yes
14108  ;;
14109
14110*nto* | *qnx*)
14111  version_type=qnx
14112  need_lib_prefix=no
14113  need_version=no
14114  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14115  soname_spec='$libname$release$shared_ext$major'
14116  shlibpath_var=LD_LIBRARY_PATH
14117  shlibpath_overrides_runpath=no
14118  hardcode_into_libs=yes
14119  dynamic_linker='ldqnx.so'
14120  ;;
14121
14122openbsd* | bitrig*)
14123  version_type=sunos
14124  sys_lib_dlsearch_path_spec=/usr/lib
14125  need_lib_prefix=no
14126  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14127    need_version=no
14128  else
14129    need_version=yes
14130  fi
14131  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14132  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14133  shlibpath_var=LD_LIBRARY_PATH
14134  shlibpath_overrides_runpath=yes
14135  ;;
14136
14137os2*)
14138  libname_spec='$name'
14139  version_type=windows
14140  shrext_cmds=.dll
14141  need_version=no
14142  need_lib_prefix=no
14143  # OS/2 can only load a DLL with a base name of 8 characters or less.
14144  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14145    v=$($ECHO $release$versuffix | tr -d .-);
14146    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14147    $ECHO $n$v`$shared_ext'
14148  library_names_spec='${libname}_dll.$libext'
14149  dynamic_linker='OS/2 ld.exe'
14150  shlibpath_var=BEGINLIBPATH
14151  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14152  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14153  postinstall_cmds='base_file=`basename \$file`~
14154    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14155    dldir=$destdir/`dirname \$dlpath`~
14156    test -d \$dldir || mkdir -p \$dldir~
14157    $install_prog $dir/$dlname \$dldir/$dlname~
14158    chmod a+x \$dldir/$dlname~
14159    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14160      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14161    fi'
14162  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14163    dlpath=$dir/\$dldll~
14164    $RM \$dlpath'
14165  ;;
14166
14167osf3* | osf4* | osf5*)
14168  version_type=osf
14169  need_lib_prefix=no
14170  need_version=no
14171  soname_spec='$libname$release$shared_ext$major'
14172  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14173  shlibpath_var=LD_LIBRARY_PATH
14174  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14175  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14176  ;;
14177
14178rdos*)
14179  dynamic_linker=no
14180  ;;
14181
14182solaris*)
14183  version_type=linux # correct to gnu/linux during the next big refactor
14184  need_lib_prefix=no
14185  need_version=no
14186  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14187  soname_spec='$libname$release$shared_ext$major'
14188  shlibpath_var=LD_LIBRARY_PATH
14189  shlibpath_overrides_runpath=yes
14190  hardcode_into_libs=yes
14191  # ldd complains unless libraries are executable
14192  postinstall_cmds='chmod +x $lib'
14193  ;;
14194
14195sunos4*)
14196  version_type=sunos
14197  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14198  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14199  shlibpath_var=LD_LIBRARY_PATH
14200  shlibpath_overrides_runpath=yes
14201  if test yes = "$with_gnu_ld"; then
14202    need_lib_prefix=no
14203  fi
14204  need_version=yes
14205  ;;
14206
14207sysv4 | sysv4.3*)
14208  version_type=linux # correct to gnu/linux during the next big refactor
14209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14210  soname_spec='$libname$release$shared_ext$major'
14211  shlibpath_var=LD_LIBRARY_PATH
14212  case $host_vendor in
14213    sni)
14214      shlibpath_overrides_runpath=no
14215      need_lib_prefix=no
14216      runpath_var=LD_RUN_PATH
14217      ;;
14218    siemens)
14219      need_lib_prefix=no
14220      ;;
14221    motorola)
14222      need_lib_prefix=no
14223      need_version=no
14224      shlibpath_overrides_runpath=no
14225      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14226      ;;
14227  esac
14228  ;;
14229
14230sysv4*MP*)
14231  if test -d /usr/nec; then
14232    version_type=linux # correct to gnu/linux during the next big refactor
14233    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14234    soname_spec='$libname$shared_ext.$major'
14235    shlibpath_var=LD_LIBRARY_PATH
14236  fi
14237  ;;
14238
14239sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14240  version_type=sco
14241  need_lib_prefix=no
14242  need_version=no
14243  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14244  soname_spec='$libname$release$shared_ext$major'
14245  shlibpath_var=LD_LIBRARY_PATH
14246  shlibpath_overrides_runpath=yes
14247  hardcode_into_libs=yes
14248  if test yes = "$with_gnu_ld"; then
14249    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14250  else
14251    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14252    case $host_os in
14253      sco3.2v5*)
14254        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14255	;;
14256    esac
14257  fi
14258  sys_lib_dlsearch_path_spec='/usr/lib'
14259  ;;
14260
14261tpf*)
14262  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14263  version_type=linux # correct to gnu/linux during the next big refactor
14264  need_lib_prefix=no
14265  need_version=no
14266  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14267  shlibpath_var=LD_LIBRARY_PATH
14268  shlibpath_overrides_runpath=no
14269  hardcode_into_libs=yes
14270  ;;
14271
14272uts4*)
14273  version_type=linux # correct to gnu/linux during the next big refactor
14274  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14275  soname_spec='$libname$release$shared_ext$major'
14276  shlibpath_var=LD_LIBRARY_PATH
14277  ;;
14278
14279*)
14280  dynamic_linker=no
14281  ;;
14282esac
14283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14284$as_echo "$dynamic_linker" >&6; }
14285test no = "$dynamic_linker" && can_build_shared=no
14286
14287variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14288if test yes = "$GCC"; then
14289  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14290fi
14291
14292if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14293  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14294fi
14295
14296if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14297  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14298fi
14299
14300# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14301configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14302
14303# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14304func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14305
14306# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14307configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14406$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14407hardcode_action=
14408if test -n "$hardcode_libdir_flag_spec" ||
14409   test -n "$runpath_var" ||
14410   test yes = "$hardcode_automatic"; then
14411
14412  # We can hardcode non-existent directories.
14413  if test no != "$hardcode_direct" &&
14414     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14415     # have to relink, otherwise we might link with an installed library
14416     # when we should be linking with a yet-to-be-installed one
14417     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14418     test no != "$hardcode_minus_L"; then
14419    # Linking always hardcodes the temporary library directory.
14420    hardcode_action=relink
14421  else
14422    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14423    hardcode_action=immediate
14424  fi
14425else
14426  # We cannot hardcode anything, or else we can only hardcode existing
14427  # directories.
14428  hardcode_action=unsupported
14429fi
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14431$as_echo "$hardcode_action" >&6; }
14432
14433if test relink = "$hardcode_action" ||
14434   test yes = "$inherit_rpath"; then
14435  # Fast installation is not supported
14436  enable_fast_install=no
14437elif test yes = "$shlibpath_overrides_runpath" ||
14438     test no = "$enable_shared"; then
14439  # Fast installation is not necessary
14440  enable_fast_install=needless
14441fi
14442
14443
14444
14445
14446
14447
14448  if test yes != "$enable_dlopen"; then
14449  enable_dlopen=unknown
14450  enable_dlopen_self=unknown
14451  enable_dlopen_self_static=unknown
14452else
14453  lt_cv_dlopen=no
14454  lt_cv_dlopen_libs=
14455
14456  case $host_os in
14457  beos*)
14458    lt_cv_dlopen=load_add_on
14459    lt_cv_dlopen_libs=
14460    lt_cv_dlopen_self=yes
14461    ;;
14462
14463  mingw* | pw32* | cegcc*)
14464    lt_cv_dlopen=LoadLibrary
14465    lt_cv_dlopen_libs=
14466    ;;
14467
14468  cygwin*)
14469    lt_cv_dlopen=dlopen
14470    lt_cv_dlopen_libs=
14471    ;;
14472
14473  darwin*)
14474    # if libdl is installed we need to link against it
14475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14476$as_echo_n "checking for dlopen in -ldl... " >&6; }
14477if ${ac_cv_lib_dl_dlopen+:} false; then :
14478  $as_echo_n "(cached) " >&6
14479else
14480  ac_check_lib_save_LIBS=$LIBS
14481LIBS="-ldl  $LIBS"
14482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483/* end confdefs.h.  */
14484
14485/* Override any GCC internal prototype to avoid an error.
14486   Use char because int might match the return type of a GCC
14487   builtin and then its argument prototype would still apply.  */
14488#ifdef __cplusplus
14489extern "C"
14490#endif
14491char dlopen ();
14492int
14493main ()
14494{
14495return dlopen ();
14496  ;
14497  return 0;
14498}
14499_ACEOF
14500if ac_fn_c_try_link "$LINENO"; then :
14501  ac_cv_lib_dl_dlopen=yes
14502else
14503  ac_cv_lib_dl_dlopen=no
14504fi
14505rm -f core conftest.err conftest.$ac_objext \
14506    conftest$ac_exeext conftest.$ac_ext
14507LIBS=$ac_check_lib_save_LIBS
14508fi
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14510$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14511if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14512  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14513else
14514
14515    lt_cv_dlopen=dyld
14516    lt_cv_dlopen_libs=
14517    lt_cv_dlopen_self=yes
14518
14519fi
14520
14521    ;;
14522
14523  tpf*)
14524    # Don't try to run any link tests for TPF.  We know it's impossible
14525    # because TPF is a cross-compiler, and we know how we open DSOs.
14526    lt_cv_dlopen=dlopen
14527    lt_cv_dlopen_libs=
14528    lt_cv_dlopen_self=no
14529    ;;
14530
14531  *)
14532    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14533if test "x$ac_cv_func_shl_load" = xyes; then :
14534  lt_cv_dlopen=shl_load
14535else
14536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14537$as_echo_n "checking for shl_load in -ldld... " >&6; }
14538if ${ac_cv_lib_dld_shl_load+:} false; then :
14539  $as_echo_n "(cached) " >&6
14540else
14541  ac_check_lib_save_LIBS=$LIBS
14542LIBS="-ldld  $LIBS"
14543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544/* end confdefs.h.  */
14545
14546/* Override any GCC internal prototype to avoid an error.
14547   Use char because int might match the return type of a GCC
14548   builtin and then its argument prototype would still apply.  */
14549#ifdef __cplusplus
14550extern "C"
14551#endif
14552char shl_load ();
14553int
14554main ()
14555{
14556return shl_load ();
14557  ;
14558  return 0;
14559}
14560_ACEOF
14561if ac_fn_c_try_link "$LINENO"; then :
14562  ac_cv_lib_dld_shl_load=yes
14563else
14564  ac_cv_lib_dld_shl_load=no
14565fi
14566rm -f core conftest.err conftest.$ac_objext \
14567    conftest$ac_exeext conftest.$ac_ext
14568LIBS=$ac_check_lib_save_LIBS
14569fi
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14571$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14572if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14573  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14574else
14575  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14576if test "x$ac_cv_func_dlopen" = xyes; then :
14577  lt_cv_dlopen=dlopen
14578else
14579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14580$as_echo_n "checking for dlopen in -ldl... " >&6; }
14581if ${ac_cv_lib_dl_dlopen+:} false; then :
14582  $as_echo_n "(cached) " >&6
14583else
14584  ac_check_lib_save_LIBS=$LIBS
14585LIBS="-ldl  $LIBS"
14586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587/* end confdefs.h.  */
14588
14589/* Override any GCC internal prototype to avoid an error.
14590   Use char because int might match the return type of a GCC
14591   builtin and then its argument prototype would still apply.  */
14592#ifdef __cplusplus
14593extern "C"
14594#endif
14595char dlopen ();
14596int
14597main ()
14598{
14599return dlopen ();
14600  ;
14601  return 0;
14602}
14603_ACEOF
14604if ac_fn_c_try_link "$LINENO"; then :
14605  ac_cv_lib_dl_dlopen=yes
14606else
14607  ac_cv_lib_dl_dlopen=no
14608fi
14609rm -f core conftest.err conftest.$ac_objext \
14610    conftest$ac_exeext conftest.$ac_ext
14611LIBS=$ac_check_lib_save_LIBS
14612fi
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14614$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14615if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14616  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14617else
14618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14619$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14620if ${ac_cv_lib_svld_dlopen+:} false; then :
14621  $as_echo_n "(cached) " >&6
14622else
14623  ac_check_lib_save_LIBS=$LIBS
14624LIBS="-lsvld  $LIBS"
14625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626/* end confdefs.h.  */
14627
14628/* Override any GCC internal prototype to avoid an error.
14629   Use char because int might match the return type of a GCC
14630   builtin and then its argument prototype would still apply.  */
14631#ifdef __cplusplus
14632extern "C"
14633#endif
14634char dlopen ();
14635int
14636main ()
14637{
14638return dlopen ();
14639  ;
14640  return 0;
14641}
14642_ACEOF
14643if ac_fn_c_try_link "$LINENO"; then :
14644  ac_cv_lib_svld_dlopen=yes
14645else
14646  ac_cv_lib_svld_dlopen=no
14647fi
14648rm -f core conftest.err conftest.$ac_objext \
14649    conftest$ac_exeext conftest.$ac_ext
14650LIBS=$ac_check_lib_save_LIBS
14651fi
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14653$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14654if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14655  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14656else
14657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14658$as_echo_n "checking for dld_link in -ldld... " >&6; }
14659if ${ac_cv_lib_dld_dld_link+:} false; then :
14660  $as_echo_n "(cached) " >&6
14661else
14662  ac_check_lib_save_LIBS=$LIBS
14663LIBS="-ldld  $LIBS"
14664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666
14667/* Override any GCC internal prototype to avoid an error.
14668   Use char because int might match the return type of a GCC
14669   builtin and then its argument prototype would still apply.  */
14670#ifdef __cplusplus
14671extern "C"
14672#endif
14673char dld_link ();
14674int
14675main ()
14676{
14677return dld_link ();
14678  ;
14679  return 0;
14680}
14681_ACEOF
14682if ac_fn_c_try_link "$LINENO"; then :
14683  ac_cv_lib_dld_dld_link=yes
14684else
14685  ac_cv_lib_dld_dld_link=no
14686fi
14687rm -f core conftest.err conftest.$ac_objext \
14688    conftest$ac_exeext conftest.$ac_ext
14689LIBS=$ac_check_lib_save_LIBS
14690fi
14691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14692$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14693if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14694  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14695fi
14696
14697
14698fi
14699
14700
14701fi
14702
14703
14704fi
14705
14706
14707fi
14708
14709
14710fi
14711
14712    ;;
14713  esac
14714
14715  if test no = "$lt_cv_dlopen"; then
14716    enable_dlopen=no
14717  else
14718    enable_dlopen=yes
14719  fi
14720
14721  case $lt_cv_dlopen in
14722  dlopen)
14723    save_CPPFLAGS=$CPPFLAGS
14724    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14725
14726    save_LDFLAGS=$LDFLAGS
14727    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14728
14729    save_LIBS=$LIBS
14730    LIBS="$lt_cv_dlopen_libs $LIBS"
14731
14732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14733$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14734if ${lt_cv_dlopen_self+:} false; then :
14735  $as_echo_n "(cached) " >&6
14736else
14737  	  if test yes = "$cross_compiling"; then :
14738  lt_cv_dlopen_self=cross
14739else
14740  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14741  lt_status=$lt_dlunknown
14742  cat > conftest.$ac_ext <<_LT_EOF
14743#line $LINENO "configure"
14744#include "confdefs.h"
14745
14746#if HAVE_DLFCN_H
14747#include <dlfcn.h>
14748#endif
14749
14750#include <stdio.h>
14751
14752#ifdef RTLD_GLOBAL
14753#  define LT_DLGLOBAL		RTLD_GLOBAL
14754#else
14755#  ifdef DL_GLOBAL
14756#    define LT_DLGLOBAL		DL_GLOBAL
14757#  else
14758#    define LT_DLGLOBAL		0
14759#  endif
14760#endif
14761
14762/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14763   find out it does not work in some platform. */
14764#ifndef LT_DLLAZY_OR_NOW
14765#  ifdef RTLD_LAZY
14766#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14767#  else
14768#    ifdef DL_LAZY
14769#      define LT_DLLAZY_OR_NOW		DL_LAZY
14770#    else
14771#      ifdef RTLD_NOW
14772#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14773#      else
14774#        ifdef DL_NOW
14775#          define LT_DLLAZY_OR_NOW	DL_NOW
14776#        else
14777#          define LT_DLLAZY_OR_NOW	0
14778#        endif
14779#      endif
14780#    endif
14781#  endif
14782#endif
14783
14784/* When -fvisibility=hidden is used, assume the code has been annotated
14785   correspondingly for the symbols needed.  */
14786#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14787int fnord () __attribute__((visibility("default")));
14788#endif
14789
14790int fnord () { return 42; }
14791int main ()
14792{
14793  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14794  int status = $lt_dlunknown;
14795
14796  if (self)
14797    {
14798      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14799      else
14800        {
14801	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14802          else puts (dlerror ());
14803	}
14804      /* dlclose (self); */
14805    }
14806  else
14807    puts (dlerror ());
14808
14809  return status;
14810}
14811_LT_EOF
14812  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14813  (eval $ac_link) 2>&5
14814  ac_status=$?
14815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14817    (./conftest; exit; ) >&5 2>/dev/null
14818    lt_status=$?
14819    case x$lt_status in
14820      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14821      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14822      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14823    esac
14824  else :
14825    # compilation failed
14826    lt_cv_dlopen_self=no
14827  fi
14828fi
14829rm -fr conftest*
14830
14831
14832fi
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14834$as_echo "$lt_cv_dlopen_self" >&6; }
14835
14836    if test yes = "$lt_cv_dlopen_self"; then
14837      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14838      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14839$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14840if ${lt_cv_dlopen_self_static+:} false; then :
14841  $as_echo_n "(cached) " >&6
14842else
14843  	  if test yes = "$cross_compiling"; then :
14844  lt_cv_dlopen_self_static=cross
14845else
14846  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14847  lt_status=$lt_dlunknown
14848  cat > conftest.$ac_ext <<_LT_EOF
14849#line $LINENO "configure"
14850#include "confdefs.h"
14851
14852#if HAVE_DLFCN_H
14853#include <dlfcn.h>
14854#endif
14855
14856#include <stdio.h>
14857
14858#ifdef RTLD_GLOBAL
14859#  define LT_DLGLOBAL		RTLD_GLOBAL
14860#else
14861#  ifdef DL_GLOBAL
14862#    define LT_DLGLOBAL		DL_GLOBAL
14863#  else
14864#    define LT_DLGLOBAL		0
14865#  endif
14866#endif
14867
14868/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14869   find out it does not work in some platform. */
14870#ifndef LT_DLLAZY_OR_NOW
14871#  ifdef RTLD_LAZY
14872#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14873#  else
14874#    ifdef DL_LAZY
14875#      define LT_DLLAZY_OR_NOW		DL_LAZY
14876#    else
14877#      ifdef RTLD_NOW
14878#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14879#      else
14880#        ifdef DL_NOW
14881#          define LT_DLLAZY_OR_NOW	DL_NOW
14882#        else
14883#          define LT_DLLAZY_OR_NOW	0
14884#        endif
14885#      endif
14886#    endif
14887#  endif
14888#endif
14889
14890/* When -fvisibility=hidden is used, assume the code has been annotated
14891   correspondingly for the symbols needed.  */
14892#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14893int fnord () __attribute__((visibility("default")));
14894#endif
14895
14896int fnord () { return 42; }
14897int main ()
14898{
14899  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14900  int status = $lt_dlunknown;
14901
14902  if (self)
14903    {
14904      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14905      else
14906        {
14907	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14908          else puts (dlerror ());
14909	}
14910      /* dlclose (self); */
14911    }
14912  else
14913    puts (dlerror ());
14914
14915  return status;
14916}
14917_LT_EOF
14918  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14919  (eval $ac_link) 2>&5
14920  ac_status=$?
14921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14922  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14923    (./conftest; exit; ) >&5 2>/dev/null
14924    lt_status=$?
14925    case x$lt_status in
14926      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14927      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14928      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14929    esac
14930  else :
14931    # compilation failed
14932    lt_cv_dlopen_self_static=no
14933  fi
14934fi
14935rm -fr conftest*
14936
14937
14938fi
14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14940$as_echo "$lt_cv_dlopen_self_static" >&6; }
14941    fi
14942
14943    CPPFLAGS=$save_CPPFLAGS
14944    LDFLAGS=$save_LDFLAGS
14945    LIBS=$save_LIBS
14946    ;;
14947  esac
14948
14949  case $lt_cv_dlopen_self in
14950  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14951  *) enable_dlopen_self=unknown ;;
14952  esac
14953
14954  case $lt_cv_dlopen_self_static in
14955  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14956  *) enable_dlopen_self_static=unknown ;;
14957  esac
14958fi
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976striplib=
14977old_striplib=
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14979$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14980if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14981  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14982  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14984$as_echo "yes" >&6; }
14985else
14986# FIXME - insert some real tests, host_os isn't really good enough
14987  case $host_os in
14988  darwin*)
14989    if test -n "$STRIP"; then
14990      striplib="$STRIP -x"
14991      old_striplib="$STRIP -S"
14992      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14993$as_echo "yes" >&6; }
14994    else
14995      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996$as_echo "no" >&6; }
14997    fi
14998    ;;
14999  *)
15000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001$as_echo "no" >&6; }
15002    ;;
15003  esac
15004fi
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017  # Report what library types will actually be built
15018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15019$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15021$as_echo "$can_build_shared" >&6; }
15022
15023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15024$as_echo_n "checking whether to build shared libraries... " >&6; }
15025  test no = "$can_build_shared" && enable_shared=no
15026
15027  # On AIX, shared libraries and static libraries use the same namespace, and
15028  # are all built from PIC.
15029  case $host_os in
15030  aix3*)
15031    test yes = "$enable_shared" && enable_static=no
15032    if test -n "$RANLIB"; then
15033      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15034      postinstall_cmds='$RANLIB $lib'
15035    fi
15036    ;;
15037
15038  aix[4-9]*)
15039    if test ia64 != "$host_cpu"; then
15040      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15041      yes,aix,yes) ;;			# shared object as lib.so file only
15042      yes,svr4,*) ;;			# shared object as lib.so archive member only
15043      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15044      esac
15045    fi
15046    ;;
15047  esac
15048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15049$as_echo "$enable_shared" >&6; }
15050
15051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15052$as_echo_n "checking whether to build static libraries... " >&6; }
15053  # Make sure either enable_shared or enable_static is yes.
15054  test yes = "$enable_shared" || enable_static=yes
15055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15056$as_echo "$enable_static" >&6; }
15057
15058
15059
15060
15061fi
15062ac_ext=c
15063ac_cpp='$CPP $CPPFLAGS'
15064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15066ac_compiler_gnu=$ac_cv_c_compiler_gnu
15067
15068CC=$lt_save_CC
15069
15070      if test -n "$CXX" && ( test no != "$CXX" &&
15071    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15072    (test g++ != "$CXX"))); then
15073  ac_ext=cpp
15074ac_cpp='$CXXCPP $CPPFLAGS'
15075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15079$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15080if test -z "$CXXCPP"; then
15081  if ${ac_cv_prog_CXXCPP+:} false; then :
15082  $as_echo_n "(cached) " >&6
15083else
15084      # Double quotes because CXXCPP needs to be expanded
15085    for CXXCPP in "$CXX -E" "/lib/cpp"
15086    do
15087      ac_preproc_ok=false
15088for ac_cxx_preproc_warn_flag in '' yes
15089do
15090  # Use a header file that comes with gcc, so configuring glibc
15091  # with a fresh cross-compiler works.
15092  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15093  # <limits.h> exists even on freestanding compilers.
15094  # On the NeXT, cc -E runs the code through the compiler's parser,
15095  # not just through cpp. "Syntax error" is here to catch this case.
15096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h.  */
15098#ifdef __STDC__
15099# include <limits.h>
15100#else
15101# include <assert.h>
15102#endif
15103		     Syntax error
15104_ACEOF
15105if ac_fn_cxx_try_cpp "$LINENO"; then :
15106
15107else
15108  # Broken: fails on valid input.
15109continue
15110fi
15111rm -f conftest.err conftest.i conftest.$ac_ext
15112
15113  # OK, works on sane cases.  Now check whether nonexistent headers
15114  # can be detected and how.
15115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116/* end confdefs.h.  */
15117#include <ac_nonexistent.h>
15118_ACEOF
15119if ac_fn_cxx_try_cpp "$LINENO"; then :
15120  # Broken: success on invalid input.
15121continue
15122else
15123  # Passes both tests.
15124ac_preproc_ok=:
15125break
15126fi
15127rm -f conftest.err conftest.i conftest.$ac_ext
15128
15129done
15130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15131rm -f conftest.i conftest.err conftest.$ac_ext
15132if $ac_preproc_ok; then :
15133  break
15134fi
15135
15136    done
15137    ac_cv_prog_CXXCPP=$CXXCPP
15138
15139fi
15140  CXXCPP=$ac_cv_prog_CXXCPP
15141else
15142  ac_cv_prog_CXXCPP=$CXXCPP
15143fi
15144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15145$as_echo "$CXXCPP" >&6; }
15146ac_preproc_ok=false
15147for ac_cxx_preproc_warn_flag in '' yes
15148do
15149  # Use a header file that comes with gcc, so configuring glibc
15150  # with a fresh cross-compiler works.
15151  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15152  # <limits.h> exists even on freestanding compilers.
15153  # On the NeXT, cc -E runs the code through the compiler's parser,
15154  # not just through cpp. "Syntax error" is here to catch this case.
15155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156/* end confdefs.h.  */
15157#ifdef __STDC__
15158# include <limits.h>
15159#else
15160# include <assert.h>
15161#endif
15162		     Syntax error
15163_ACEOF
15164if ac_fn_cxx_try_cpp "$LINENO"; then :
15165
15166else
15167  # Broken: fails on valid input.
15168continue
15169fi
15170rm -f conftest.err conftest.i conftest.$ac_ext
15171
15172  # OK, works on sane cases.  Now check whether nonexistent headers
15173  # can be detected and how.
15174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175/* end confdefs.h.  */
15176#include <ac_nonexistent.h>
15177_ACEOF
15178if ac_fn_cxx_try_cpp "$LINENO"; then :
15179  # Broken: success on invalid input.
15180continue
15181else
15182  # Passes both tests.
15183ac_preproc_ok=:
15184break
15185fi
15186rm -f conftest.err conftest.i conftest.$ac_ext
15187
15188done
15189# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15190rm -f conftest.i conftest.err conftest.$ac_ext
15191if $ac_preproc_ok; then :
15192
15193else
15194  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15196as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15197See \`config.log' for more details" "$LINENO" 5; }
15198fi
15199
15200ac_ext=c
15201ac_cpp='$CPP $CPPFLAGS'
15202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204ac_compiler_gnu=$ac_cv_c_compiler_gnu
15205
15206else
15207  _lt_caught_CXX_error=yes
15208fi
15209
15210ac_ext=cpp
15211ac_cpp='$CXXCPP $CPPFLAGS'
15212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15215
15216archive_cmds_need_lc_CXX=no
15217allow_undefined_flag_CXX=
15218always_export_symbols_CXX=no
15219archive_expsym_cmds_CXX=
15220compiler_needs_object_CXX=no
15221export_dynamic_flag_spec_CXX=
15222hardcode_direct_CXX=no
15223hardcode_direct_absolute_CXX=no
15224hardcode_libdir_flag_spec_CXX=
15225hardcode_libdir_separator_CXX=
15226hardcode_minus_L_CXX=no
15227hardcode_shlibpath_var_CXX=unsupported
15228hardcode_automatic_CXX=no
15229inherit_rpath_CXX=no
15230module_cmds_CXX=
15231module_expsym_cmds_CXX=
15232link_all_deplibs_CXX=unknown
15233old_archive_cmds_CXX=$old_archive_cmds
15234reload_flag_CXX=$reload_flag
15235reload_cmds_CXX=$reload_cmds
15236no_undefined_flag_CXX=
15237whole_archive_flag_spec_CXX=
15238enable_shared_with_static_runtimes_CXX=no
15239
15240# Source file extension for C++ test sources.
15241ac_ext=cpp
15242
15243# Object file extension for compiled C++ test sources.
15244objext=o
15245objext_CXX=$objext
15246
15247# No sense in running all these tests if we already determined that
15248# the CXX compiler isn't working.  Some variables (like enable_shared)
15249# are currently assumed to apply to all compilers on this platform,
15250# and will be corrupted by setting them based on a non-working compiler.
15251if test yes != "$_lt_caught_CXX_error"; then
15252  # Code to be used in simple compile tests
15253  lt_simple_compile_test_code="int some_variable = 0;"
15254
15255  # Code to be used in simple link tests
15256  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15257
15258  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15259
15260
15261
15262
15263
15264
15265# If no C compiler was specified, use CC.
15266LTCC=${LTCC-"$CC"}
15267
15268# If no C compiler flags were specified, use CFLAGS.
15269LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15270
15271# Allow CC to be a program name with arguments.
15272compiler=$CC
15273
15274
15275  # save warnings/boilerplate of simple test code
15276  ac_outfile=conftest.$ac_objext
15277echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15278eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15279_lt_compiler_boilerplate=`cat conftest.err`
15280$RM conftest*
15281
15282  ac_outfile=conftest.$ac_objext
15283echo "$lt_simple_link_test_code" >conftest.$ac_ext
15284eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15285_lt_linker_boilerplate=`cat conftest.err`
15286$RM -r conftest*
15287
15288
15289  # Allow CC to be a program name with arguments.
15290  lt_save_CC=$CC
15291  lt_save_CFLAGS=$CFLAGS
15292  lt_save_LD=$LD
15293  lt_save_GCC=$GCC
15294  GCC=$GXX
15295  lt_save_with_gnu_ld=$with_gnu_ld
15296  lt_save_path_LD=$lt_cv_path_LD
15297  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15298    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15299  else
15300    $as_unset lt_cv_prog_gnu_ld
15301  fi
15302  if test -n "${lt_cv_path_LDCXX+set}"; then
15303    lt_cv_path_LD=$lt_cv_path_LDCXX
15304  else
15305    $as_unset lt_cv_path_LD
15306  fi
15307  test -z "${LDCXX+set}" || LD=$LDCXX
15308  CC=${CXX-"c++"}
15309  CFLAGS=$CXXFLAGS
15310  compiler=$CC
15311  compiler_CXX=$CC
15312  func_cc_basename $compiler
15313cc_basename=$func_cc_basename_result
15314
15315
15316  if test -n "$compiler"; then
15317    # We don't want -fno-exception when compiling C++ code, so set the
15318    # no_builtin_flag separately
15319    if test yes = "$GXX"; then
15320      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15321    else
15322      lt_prog_compiler_no_builtin_flag_CXX=
15323    fi
15324
15325    if test yes = "$GXX"; then
15326      # Set up default GNU C++ configuration
15327
15328
15329
15330# Check whether --with-gnu-ld was given.
15331if test "${with_gnu_ld+set}" = set; then :
15332  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15333else
15334  with_gnu_ld=no
15335fi
15336
15337ac_prog=ld
15338if test yes = "$GCC"; then
15339  # Check if gcc -print-prog-name=ld gives a path.
15340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15341$as_echo_n "checking for ld used by $CC... " >&6; }
15342  case $host in
15343  *-*-mingw*)
15344    # gcc leaves a trailing carriage return, which upsets mingw
15345    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15346  *)
15347    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15348  esac
15349  case $ac_prog in
15350    # Accept absolute paths.
15351    [\\/]* | ?:[\\/]*)
15352      re_direlt='/[^/][^/]*/\.\./'
15353      # Canonicalize the pathname of ld
15354      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15355      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15356	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15357      done
15358      test -z "$LD" && LD=$ac_prog
15359      ;;
15360  "")
15361    # If it fails, then pretend we aren't using GCC.
15362    ac_prog=ld
15363    ;;
15364  *)
15365    # If it is relative, then search for the first ld in PATH.
15366    with_gnu_ld=unknown
15367    ;;
15368  esac
15369elif test yes = "$with_gnu_ld"; then
15370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15371$as_echo_n "checking for GNU ld... " >&6; }
15372else
15373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15374$as_echo_n "checking for non-GNU ld... " >&6; }
15375fi
15376if ${lt_cv_path_LD+:} false; then :
15377  $as_echo_n "(cached) " >&6
15378else
15379  if test -z "$LD"; then
15380  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15381  for ac_dir in $PATH; do
15382    IFS=$lt_save_ifs
15383    test -z "$ac_dir" && ac_dir=.
15384    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15385      lt_cv_path_LD=$ac_dir/$ac_prog
15386      # Check to see if the program is GNU ld.  I'd rather use --version,
15387      # but apparently some variants of GNU ld only accept -v.
15388      # Break only if it was the GNU/non-GNU ld that we prefer.
15389      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15390      *GNU* | *'with BFD'*)
15391	test no != "$with_gnu_ld" && break
15392	;;
15393      *)
15394	test yes != "$with_gnu_ld" && break
15395	;;
15396      esac
15397    fi
15398  done
15399  IFS=$lt_save_ifs
15400else
15401  lt_cv_path_LD=$LD # Let the user override the test with a path.
15402fi
15403fi
15404
15405LD=$lt_cv_path_LD
15406if test -n "$LD"; then
15407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15408$as_echo "$LD" >&6; }
15409else
15410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15411$as_echo "no" >&6; }
15412fi
15413test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15415$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15416if ${lt_cv_prog_gnu_ld+:} false; then :
15417  $as_echo_n "(cached) " >&6
15418else
15419  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15420case `$LD -v 2>&1 </dev/null` in
15421*GNU* | *'with BFD'*)
15422  lt_cv_prog_gnu_ld=yes
15423  ;;
15424*)
15425  lt_cv_prog_gnu_ld=no
15426  ;;
15427esac
15428fi
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15430$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15431with_gnu_ld=$lt_cv_prog_gnu_ld
15432
15433
15434
15435
15436
15437
15438
15439      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15440      # archiving commands below assume that GNU ld is being used.
15441      if test yes = "$with_gnu_ld"; then
15442        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15443        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15444
15445        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15446        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15447
15448        # If archive_cmds runs LD, not CC, wlarc should be empty
15449        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15450        #     investigate it a little bit more. (MM)
15451        wlarc='$wl'
15452
15453        # ancient GNU ld didn't support --whole-archive et. al.
15454        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15455	  $GREP 'no-whole-archive' > /dev/null; then
15456          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15457        else
15458          whole_archive_flag_spec_CXX=
15459        fi
15460      else
15461        with_gnu_ld=no
15462        wlarc=
15463
15464        # A generic and very simple default shared library creation
15465        # command for GNU C++ for the case where it uses the native
15466        # linker, instead of GNU ld.  If possible, this setting should
15467        # overridden to take advantage of the native linker features on
15468        # the platform it is being used on.
15469        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15470      fi
15471
15472      # Commands to make compiler produce verbose output that lists
15473      # what "hidden" libraries, object files and flags are used when
15474      # linking a shared library.
15475      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15476
15477    else
15478      GXX=no
15479      with_gnu_ld=no
15480      wlarc=
15481    fi
15482
15483    # PORTME: fill in a description of your system's C++ link characteristics
15484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15485$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15486    ld_shlibs_CXX=yes
15487    case $host_os in
15488      aix3*)
15489        # FIXME: insert proper C++ library support
15490        ld_shlibs_CXX=no
15491        ;;
15492      aix[4-9]*)
15493        if test ia64 = "$host_cpu"; then
15494          # On IA64, the linker does run time linking by default, so we don't
15495          # have to do anything special.
15496          aix_use_runtimelinking=no
15497          exp_sym_flag='-Bexport'
15498          no_entry_flag=
15499        else
15500          aix_use_runtimelinking=no
15501
15502          # Test if we are trying to use run time linking or normal
15503          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15504          # have runtime linking enabled, and use it for executables.
15505          # For shared libraries, we enable/disable runtime linking
15506          # depending on the kind of the shared library created -
15507          # when "with_aix_soname,aix_use_runtimelinking" is:
15508          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15509          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15510          #            lib.a           static archive
15511          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15512          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15513          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15514          #            lib.a(lib.so.V) shared, rtl:no
15515          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15516          #            lib.a           static archive
15517          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15518	    for ld_flag in $LDFLAGS; do
15519	      case $ld_flag in
15520	      *-brtl*)
15521	        aix_use_runtimelinking=yes
15522	        break
15523	        ;;
15524	      esac
15525	    done
15526	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15527	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15528	      # so we don't have lib.a shared libs to link our executables.
15529	      # We have to force runtime linking in this case.
15530	      aix_use_runtimelinking=yes
15531	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15532	    fi
15533	    ;;
15534          esac
15535
15536          exp_sym_flag='-bexport'
15537          no_entry_flag='-bnoentry'
15538        fi
15539
15540        # When large executables or shared objects are built, AIX ld can
15541        # have problems creating the table of contents.  If linking a library
15542        # or program results in "error TOC overflow" add -mminimal-toc to
15543        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15544        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15545
15546        archive_cmds_CXX=''
15547        hardcode_direct_CXX=yes
15548        hardcode_direct_absolute_CXX=yes
15549        hardcode_libdir_separator_CXX=':'
15550        link_all_deplibs_CXX=yes
15551        file_list_spec_CXX='$wl-f,'
15552        case $with_aix_soname,$aix_use_runtimelinking in
15553        aix,*) ;;	# no import file
15554        svr4,* | *,yes) # use import file
15555          # The Import File defines what to hardcode.
15556          hardcode_direct_CXX=no
15557          hardcode_direct_absolute_CXX=no
15558          ;;
15559        esac
15560
15561        if test yes = "$GXX"; then
15562          case $host_os in aix4.[012]|aix4.[012].*)
15563          # We only want to do this on AIX 4.2 and lower, the check
15564          # below for broken collect2 doesn't work under 4.3+
15565	  collect2name=`$CC -print-prog-name=collect2`
15566	  if test -f "$collect2name" &&
15567	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15568	  then
15569	    # We have reworked collect2
15570	    :
15571	  else
15572	    # We have old collect2
15573	    hardcode_direct_CXX=unsupported
15574	    # It fails to find uninstalled libraries when the uninstalled
15575	    # path is not listed in the libpath.  Setting hardcode_minus_L
15576	    # to unsupported forces relinking
15577	    hardcode_minus_L_CXX=yes
15578	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15579	    hardcode_libdir_separator_CXX=
15580	  fi
15581          esac
15582          shared_flag='-shared'
15583	  if test yes = "$aix_use_runtimelinking"; then
15584	    shared_flag=$shared_flag' $wl-G'
15585	  fi
15586	  # Need to ensure runtime linking is disabled for the traditional
15587	  # shared library, or the linker may eventually find shared libraries
15588	  # /with/ Import File - we do not want to mix them.
15589	  shared_flag_aix='-shared'
15590	  shared_flag_svr4='-shared $wl-G'
15591        else
15592          # not using gcc
15593          if test ia64 = "$host_cpu"; then
15594	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15595	  # chokes on -Wl,-G. The following line is correct:
15596	  shared_flag='-G'
15597          else
15598	    if test yes = "$aix_use_runtimelinking"; then
15599	      shared_flag='$wl-G'
15600	    else
15601	      shared_flag='$wl-bM:SRE'
15602	    fi
15603	    shared_flag_aix='$wl-bM:SRE'
15604	    shared_flag_svr4='$wl-G'
15605          fi
15606        fi
15607
15608        export_dynamic_flag_spec_CXX='$wl-bexpall'
15609        # It seems that -bexpall does not export symbols beginning with
15610        # underscore (_), so it is better to generate a list of symbols to
15611	# export.
15612        always_export_symbols_CXX=yes
15613	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15614          # Warning - without using the other runtime loading flags (-brtl),
15615          # -berok will link without error, but may produce a broken library.
15616          # The "-G" linker flag allows undefined symbols.
15617          no_undefined_flag_CXX='-bernotok'
15618          # Determine the default libpath from the value encoded in an empty
15619          # executable.
15620          if test set = "${lt_cv_aix_libpath+set}"; then
15621  aix_libpath=$lt_cv_aix_libpath
15622else
15623  if ${lt_cv_aix_libpath__CXX+:} false; then :
15624  $as_echo_n "(cached) " >&6
15625else
15626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627/* end confdefs.h.  */
15628
15629int
15630main ()
15631{
15632
15633  ;
15634  return 0;
15635}
15636_ACEOF
15637if ac_fn_cxx_try_link "$LINENO"; then :
15638
15639  lt_aix_libpath_sed='
15640      /Import File Strings/,/^$/ {
15641	  /^0/ {
15642	      s/^0  *\([^ ]*\) *$/\1/
15643	      p
15644	  }
15645      }'
15646  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15647  # Check for a 64-bit object if we didn't find anything.
15648  if test -z "$lt_cv_aix_libpath__CXX"; then
15649    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15650  fi
15651fi
15652rm -f core conftest.err conftest.$ac_objext \
15653    conftest$ac_exeext conftest.$ac_ext
15654  if test -z "$lt_cv_aix_libpath__CXX"; then
15655    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15656  fi
15657
15658fi
15659
15660  aix_libpath=$lt_cv_aix_libpath__CXX
15661fi
15662
15663          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15664
15665          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15666        else
15667          if test ia64 = "$host_cpu"; then
15668	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15669	    allow_undefined_flag_CXX="-z nodefs"
15670	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15671          else
15672	    # Determine the default libpath from the value encoded in an
15673	    # empty executable.
15674	    if test set = "${lt_cv_aix_libpath+set}"; then
15675  aix_libpath=$lt_cv_aix_libpath
15676else
15677  if ${lt_cv_aix_libpath__CXX+:} false; then :
15678  $as_echo_n "(cached) " >&6
15679else
15680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681/* end confdefs.h.  */
15682
15683int
15684main ()
15685{
15686
15687  ;
15688  return 0;
15689}
15690_ACEOF
15691if ac_fn_cxx_try_link "$LINENO"; then :
15692
15693  lt_aix_libpath_sed='
15694      /Import File Strings/,/^$/ {
15695	  /^0/ {
15696	      s/^0  *\([^ ]*\) *$/\1/
15697	      p
15698	  }
15699      }'
15700  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15701  # Check for a 64-bit object if we didn't find anything.
15702  if test -z "$lt_cv_aix_libpath__CXX"; then
15703    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15704  fi
15705fi
15706rm -f core conftest.err conftest.$ac_objext \
15707    conftest$ac_exeext conftest.$ac_ext
15708  if test -z "$lt_cv_aix_libpath__CXX"; then
15709    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15710  fi
15711
15712fi
15713
15714  aix_libpath=$lt_cv_aix_libpath__CXX
15715fi
15716
15717	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15718	    # Warning - without using the other run time loading flags,
15719	    # -berok will link without error, but may produce a broken library.
15720	    no_undefined_flag_CXX=' $wl-bernotok'
15721	    allow_undefined_flag_CXX=' $wl-berok'
15722	    if test yes = "$with_gnu_ld"; then
15723	      # We only use this code for GNU lds that support --whole-archive.
15724	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15725	    else
15726	      # Exported symbols can be pulled into shared objects from archives
15727	      whole_archive_flag_spec_CXX='$convenience'
15728	    fi
15729	    archive_cmds_need_lc_CXX=yes
15730	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15731	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15732	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15733	    if test svr4 != "$with_aix_soname"; then
15734	      # This is similar to how AIX traditionally builds its shared
15735	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15736	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15737	    fi
15738	    if test aix != "$with_aix_soname"; then
15739	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15740	    else
15741	      # used by -dlpreopen to get the symbols
15742	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15743	    fi
15744	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15745          fi
15746        fi
15747        ;;
15748
15749      beos*)
15750	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15751	  allow_undefined_flag_CXX=unsupported
15752	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15753	  # support --undefined.  This deserves some investigation.  FIXME
15754	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15755	else
15756	  ld_shlibs_CXX=no
15757	fi
15758	;;
15759
15760      chorus*)
15761        case $cc_basename in
15762          *)
15763	  # FIXME: insert proper C++ library support
15764	  ld_shlibs_CXX=no
15765	  ;;
15766        esac
15767        ;;
15768
15769      cygwin* | mingw* | pw32* | cegcc*)
15770	case $GXX,$cc_basename in
15771	,cl* | no,cl*)
15772	  # Native MSVC
15773	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15774	  # no search path for DLLs.
15775	  hardcode_libdir_flag_spec_CXX=' '
15776	  allow_undefined_flag_CXX=unsupported
15777	  always_export_symbols_CXX=yes
15778	  file_list_spec_CXX='@'
15779	  # Tell ltmain to make .lib files, not .a files.
15780	  libext=lib
15781	  # Tell ltmain to make .dll files, not .so files.
15782	  shrext_cmds=.dll
15783	  # FIXME: Setting linknames here is a bad hack.
15784	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15785	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15786              cp "$export_symbols" "$output_objdir/$soname.def";
15787              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15788            else
15789              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15790            fi~
15791            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15792            linknames='
15793	  # The linker will not automatically build a static lib if we build a DLL.
15794	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15795	  enable_shared_with_static_runtimes_CXX=yes
15796	  # Don't use ranlib
15797	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15798	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15799            lt_tool_outputfile="@TOOL_OUTPUT@"~
15800            case $lt_outputfile in
15801              *.exe|*.EXE) ;;
15802              *)
15803                lt_outputfile=$lt_outputfile.exe
15804                lt_tool_outputfile=$lt_tool_outputfile.exe
15805                ;;
15806            esac~
15807            func_to_tool_file "$lt_outputfile"~
15808            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15809              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15810              $RM "$lt_outputfile.manifest";
15811            fi'
15812	  ;;
15813	*)
15814	  # g++
15815	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15816	  # as there is no search path for DLLs.
15817	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15818	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15819	  allow_undefined_flag_CXX=unsupported
15820	  always_export_symbols_CXX=no
15821	  enable_shared_with_static_runtimes_CXX=yes
15822
15823	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15824	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15825	    # If the export-symbols file already is a .def file, use it as
15826	    # is; otherwise, prepend EXPORTS...
15827	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15828              cp $export_symbols $output_objdir/$soname.def;
15829            else
15830              echo EXPORTS > $output_objdir/$soname.def;
15831              cat $export_symbols >> $output_objdir/$soname.def;
15832            fi~
15833            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15834	  else
15835	    ld_shlibs_CXX=no
15836	  fi
15837	  ;;
15838	esac
15839	;;
15840      darwin* | rhapsody*)
15841
15842
15843  archive_cmds_need_lc_CXX=no
15844  hardcode_direct_CXX=no
15845  hardcode_automatic_CXX=yes
15846  hardcode_shlibpath_var_CXX=unsupported
15847  if test yes = "$lt_cv_ld_force_load"; then
15848    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15849
15850  else
15851    whole_archive_flag_spec_CXX=''
15852  fi
15853  link_all_deplibs_CXX=yes
15854  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15855  case $cc_basename in
15856     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15857     *) _lt_dar_can_shared=$GCC ;;
15858  esac
15859  if test yes = "$_lt_dar_can_shared"; then
15860    output_verbose_link_cmd=func_echo_all
15861    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15862    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15863    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15864    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15865       if test yes != "$lt_cv_apple_cc_single_mod"; then
15866      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15867      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15868    fi
15869
15870  else
15871  ld_shlibs_CXX=no
15872  fi
15873
15874	;;
15875
15876      os2*)
15877	hardcode_libdir_flag_spec_CXX='-L$libdir'
15878	hardcode_minus_L_CXX=yes
15879	allow_undefined_flag_CXX=unsupported
15880	shrext_cmds=.dll
15881	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15882	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15883	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15884	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15885	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15886	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15887	  emximp -o $lib $output_objdir/$libname.def'
15888	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15889	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15890	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15891	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15892	  prefix_cmds="$SED"~
15893	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15894	    prefix_cmds="$prefix_cmds -e 1d";
15895	  fi~
15896	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15897	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15898	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15899	  emximp -o $lib $output_objdir/$libname.def'
15900	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15901	enable_shared_with_static_runtimes_CXX=yes
15902	;;
15903
15904      dgux*)
15905        case $cc_basename in
15906          ec++*)
15907	    # FIXME: insert proper C++ library support
15908	    ld_shlibs_CXX=no
15909	    ;;
15910          ghcx*)
15911	    # Green Hills C++ Compiler
15912	    # FIXME: insert proper C++ library support
15913	    ld_shlibs_CXX=no
15914	    ;;
15915          *)
15916	    # FIXME: insert proper C++ library support
15917	    ld_shlibs_CXX=no
15918	    ;;
15919        esac
15920        ;;
15921
15922      freebsd2.*)
15923        # C++ shared libraries reported to be fairly broken before
15924	# switch to ELF
15925        ld_shlibs_CXX=no
15926        ;;
15927
15928      freebsd-elf*)
15929        archive_cmds_need_lc_CXX=no
15930        ;;
15931
15932      freebsd* | dragonfly*)
15933        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15934        # conventions
15935        ld_shlibs_CXX=yes
15936        ;;
15937
15938      haiku*)
15939        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15940        link_all_deplibs_CXX=yes
15941        ;;
15942
15943      hpux9*)
15944        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15945        hardcode_libdir_separator_CXX=:
15946        export_dynamic_flag_spec_CXX='$wl-E'
15947        hardcode_direct_CXX=yes
15948        hardcode_minus_L_CXX=yes # Not in the search PATH,
15949				             # but as the default
15950				             # location of the library.
15951
15952        case $cc_basename in
15953          CC*)
15954            # FIXME: insert proper C++ library support
15955            ld_shlibs_CXX=no
15956            ;;
15957          aCC*)
15958            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15959            # Commands to make compiler produce verbose output that lists
15960            # what "hidden" libraries, object files and flags are used when
15961            # linking a shared library.
15962            #
15963            # There doesn't appear to be a way to prevent this compiler from
15964            # explicitly linking system object files so we need to strip them
15965            # from the output so that they don't get included in the library
15966            # dependencies.
15967            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15968            ;;
15969          *)
15970            if test yes = "$GXX"; then
15971              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15972            else
15973              # FIXME: insert proper C++ library support
15974              ld_shlibs_CXX=no
15975            fi
15976            ;;
15977        esac
15978        ;;
15979
15980      hpux10*|hpux11*)
15981        if test no = "$with_gnu_ld"; then
15982	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15983	  hardcode_libdir_separator_CXX=:
15984
15985          case $host_cpu in
15986            hppa*64*|ia64*)
15987              ;;
15988            *)
15989	      export_dynamic_flag_spec_CXX='$wl-E'
15990              ;;
15991          esac
15992        fi
15993        case $host_cpu in
15994          hppa*64*|ia64*)
15995            hardcode_direct_CXX=no
15996            hardcode_shlibpath_var_CXX=no
15997            ;;
15998          *)
15999            hardcode_direct_CXX=yes
16000            hardcode_direct_absolute_CXX=yes
16001            hardcode_minus_L_CXX=yes # Not in the search PATH,
16002					         # but as the default
16003					         # location of the library.
16004            ;;
16005        esac
16006
16007        case $cc_basename in
16008          CC*)
16009	    # FIXME: insert proper C++ library support
16010	    ld_shlibs_CXX=no
16011	    ;;
16012          aCC*)
16013	    case $host_cpu in
16014	      hppa*64*)
16015	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16016	        ;;
16017	      ia64*)
16018	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16019	        ;;
16020	      *)
16021	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16022	        ;;
16023	    esac
16024	    # Commands to make compiler produce verbose output that lists
16025	    # what "hidden" libraries, object files and flags are used when
16026	    # linking a shared library.
16027	    #
16028	    # There doesn't appear to be a way to prevent this compiler from
16029	    # explicitly linking system object files so we need to strip them
16030	    # from the output so that they don't get included in the library
16031	    # dependencies.
16032	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16033	    ;;
16034          *)
16035	    if test yes = "$GXX"; then
16036	      if test no = "$with_gnu_ld"; then
16037	        case $host_cpu in
16038	          hppa*64*)
16039	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16040	            ;;
16041	          ia64*)
16042	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16043	            ;;
16044	          *)
16045	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16046	            ;;
16047	        esac
16048	      fi
16049	    else
16050	      # FIXME: insert proper C++ library support
16051	      ld_shlibs_CXX=no
16052	    fi
16053	    ;;
16054        esac
16055        ;;
16056
16057      interix[3-9]*)
16058	hardcode_direct_CXX=no
16059	hardcode_shlibpath_var_CXX=no
16060	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16061	export_dynamic_flag_spec_CXX='$wl-E'
16062	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16063	# Instead, shared libraries are loaded at an image base (0x10000000 by
16064	# default) and relocated if they conflict, which is a slow very memory
16065	# consuming and fragmenting process.  To avoid this, we pick a random,
16066	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16067	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16068	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16069	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16070	;;
16071      irix5* | irix6*)
16072        case $cc_basename in
16073          CC*)
16074	    # SGI C++
16075	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16076
16077	    # Archives containing C++ object files must be created using
16078	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16079	    # necessary to make sure instantiated templates are included
16080	    # in the archive.
16081	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16082	    ;;
16083          *)
16084	    if test yes = "$GXX"; then
16085	      if test no = "$with_gnu_ld"; then
16086	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16087	      else
16088	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16089	      fi
16090	    fi
16091	    link_all_deplibs_CXX=yes
16092	    ;;
16093        esac
16094        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16095        hardcode_libdir_separator_CXX=:
16096        inherit_rpath_CXX=yes
16097        ;;
16098
16099      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16100        case $cc_basename in
16101          KCC*)
16102	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16103
16104	    # KCC will only create a shared library if the output file
16105	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16106	    # to its proper name (with version) after linking.
16107	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16108	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16109	    # Commands to make compiler produce verbose output that lists
16110	    # what "hidden" libraries, object files and flags are used when
16111	    # linking a shared library.
16112	    #
16113	    # There doesn't appear to be a way to prevent this compiler from
16114	    # explicitly linking system object files so we need to strip them
16115	    # from the output so that they don't get included in the library
16116	    # dependencies.
16117	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16118
16119	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16120	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16121
16122	    # Archives containing C++ object files must be created using
16123	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16124	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16125	    ;;
16126	  icpc* | ecpc* )
16127	    # Intel C++
16128	    with_gnu_ld=yes
16129	    # version 8.0 and above of icpc choke on multiply defined symbols
16130	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16131	    # earlier do not add the objects themselves.
16132	    case `$CC -V 2>&1` in
16133	      *"Version 7."*)
16134	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16135		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16136		;;
16137	      *)  # Version 8.0 or newer
16138	        tmp_idyn=
16139	        case $host_cpu in
16140		  ia64*) tmp_idyn=' -i_dynamic';;
16141		esac
16142	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16143		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16144		;;
16145	    esac
16146	    archive_cmds_need_lc_CXX=no
16147	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16148	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16149	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16150	    ;;
16151          pgCC* | pgcpp*)
16152            # Portland Group C++ compiler
16153	    case `$CC -V` in
16154	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16155	      prelink_cmds_CXX='tpldir=Template.dir~
16156               rm -rf $tpldir~
16157               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16158               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16159	      old_archive_cmds_CXX='tpldir=Template.dir~
16160                rm -rf $tpldir~
16161                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16162                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16163                $RANLIB $oldlib'
16164	      archive_cmds_CXX='tpldir=Template.dir~
16165                rm -rf $tpldir~
16166                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16167                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16168	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16169                rm -rf $tpldir~
16170                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16171                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16172	      ;;
16173	    *) # Version 6 and above use weak symbols
16174	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16175	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16176	      ;;
16177	    esac
16178
16179	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16180	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16181	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16182            ;;
16183	  cxx*)
16184	    # Compaq C++
16185	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16186	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
16187
16188	    runpath_var=LD_RUN_PATH
16189	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16190	    hardcode_libdir_separator_CXX=:
16191
16192	    # Commands to make compiler produce verbose output that lists
16193	    # what "hidden" libraries, object files and flags are used when
16194	    # linking a shared library.
16195	    #
16196	    # There doesn't appear to be a way to prevent this compiler from
16197	    # explicitly linking system object files so we need to strip them
16198	    # from the output so that they don't get included in the library
16199	    # dependencies.
16200	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16201	    ;;
16202	  xl* | mpixl* | bgxl*)
16203	    # IBM XL 8.0 on PPC, with GNU ld
16204	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16205	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16206	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16207	    if test yes = "$supports_anon_versioning"; then
16208	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16209                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16210                echo "local: *; };" >> $output_objdir/$libname.ver~
16211                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16212	    fi
16213	    ;;
16214	  *)
16215	    case `$CC -V 2>&1 | sed 5q` in
16216	    *Sun\ C*)
16217	      # Sun C++ 5.9
16218	      no_undefined_flag_CXX=' -zdefs'
16219	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16220	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16221	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16222	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16223	      compiler_needs_object_CXX=yes
16224
16225	      # Not sure whether something based on
16226	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16227	      # would be better.
16228	      output_verbose_link_cmd='func_echo_all'
16229
16230	      # Archives containing C++ object files must be created using
16231	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16232	      # necessary to make sure instantiated templates are included
16233	      # in the archive.
16234	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16235	      ;;
16236	    esac
16237	    ;;
16238	esac
16239	;;
16240
16241      lynxos*)
16242        # FIXME: insert proper C++ library support
16243	ld_shlibs_CXX=no
16244	;;
16245
16246      m88k*)
16247        # FIXME: insert proper C++ library support
16248        ld_shlibs_CXX=no
16249	;;
16250
16251      mvs*)
16252        case $cc_basename in
16253          cxx*)
16254	    # FIXME: insert proper C++ library support
16255	    ld_shlibs_CXX=no
16256	    ;;
16257	  *)
16258	    # FIXME: insert proper C++ library support
16259	    ld_shlibs_CXX=no
16260	    ;;
16261	esac
16262	;;
16263
16264      netbsd*)
16265        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16266	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16267	  wlarc=
16268	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16269	  hardcode_direct_CXX=yes
16270	  hardcode_shlibpath_var_CXX=no
16271	fi
16272	# Workaround some broken pre-1.5 toolchains
16273	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16274	;;
16275
16276      *nto* | *qnx*)
16277        ld_shlibs_CXX=yes
16278	;;
16279
16280      openbsd* | bitrig*)
16281	if test -f /usr/libexec/ld.so; then
16282	  hardcode_direct_CXX=yes
16283	  hardcode_shlibpath_var_CXX=no
16284	  hardcode_direct_absolute_CXX=yes
16285	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16286	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16287	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16288	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16289	    export_dynamic_flag_spec_CXX='$wl-E'
16290	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16291	  fi
16292	  output_verbose_link_cmd=func_echo_all
16293	else
16294	  ld_shlibs_CXX=no
16295	fi
16296	;;
16297
16298      osf3* | osf4* | osf5*)
16299        case $cc_basename in
16300          KCC*)
16301	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16302
16303	    # KCC will only create a shared library if the output file
16304	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16305	    # to its proper name (with version) after linking.
16306	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16307
16308	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16309	    hardcode_libdir_separator_CXX=:
16310
16311	    # Archives containing C++ object files must be created using
16312	    # the KAI C++ compiler.
16313	    case $host in
16314	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16315	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16316	    esac
16317	    ;;
16318          RCC*)
16319	    # Rational C++ 2.4.1
16320	    # FIXME: insert proper C++ library support
16321	    ld_shlibs_CXX=no
16322	    ;;
16323          cxx*)
16324	    case $host in
16325	      osf3*)
16326	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16327	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16328	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16329		;;
16330	      *)
16331	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16332	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16333	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16334                  echo "-hidden">> $lib.exp~
16335                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
16336                  $RM $lib.exp'
16337	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16338		;;
16339	    esac
16340
16341	    hardcode_libdir_separator_CXX=:
16342
16343	    # Commands to make compiler produce verbose output that lists
16344	    # what "hidden" libraries, object files and flags are used when
16345	    # linking a shared library.
16346	    #
16347	    # There doesn't appear to be a way to prevent this compiler from
16348	    # explicitly linking system object files so we need to strip them
16349	    # from the output so that they don't get included in the library
16350	    # dependencies.
16351	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16352	    ;;
16353	  *)
16354	    if test yes,no = "$GXX,$with_gnu_ld"; then
16355	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16356	      case $host in
16357	        osf3*)
16358	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16359		  ;;
16360	        *)
16361	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16362		  ;;
16363	      esac
16364
16365	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16366	      hardcode_libdir_separator_CXX=:
16367
16368	      # Commands to make compiler produce verbose output that lists
16369	      # what "hidden" libraries, object files and flags are used when
16370	      # linking a shared library.
16371	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16372
16373	    else
16374	      # FIXME: insert proper C++ library support
16375	      ld_shlibs_CXX=no
16376	    fi
16377	    ;;
16378        esac
16379        ;;
16380
16381      psos*)
16382        # FIXME: insert proper C++ library support
16383        ld_shlibs_CXX=no
16384        ;;
16385
16386      sunos4*)
16387        case $cc_basename in
16388          CC*)
16389	    # Sun C++ 4.x
16390	    # FIXME: insert proper C++ library support
16391	    ld_shlibs_CXX=no
16392	    ;;
16393          lcc*)
16394	    # Lucid
16395	    # FIXME: insert proper C++ library support
16396	    ld_shlibs_CXX=no
16397	    ;;
16398          *)
16399	    # FIXME: insert proper C++ library support
16400	    ld_shlibs_CXX=no
16401	    ;;
16402        esac
16403        ;;
16404
16405      solaris*)
16406        case $cc_basename in
16407          CC* | sunCC*)
16408	    # Sun C++ 4.2, 5.x and Centerline C++
16409            archive_cmds_need_lc_CXX=yes
16410	    no_undefined_flag_CXX=' -zdefs'
16411	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16412	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16413              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16414
16415	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16416	    hardcode_shlibpath_var_CXX=no
16417	    case $host_os in
16418	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16419	      *)
16420		# The compiler driver will combine and reorder linker options,
16421		# but understands '-z linker_flag'.
16422	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16423		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16424	        ;;
16425	    esac
16426	    link_all_deplibs_CXX=yes
16427
16428	    output_verbose_link_cmd='func_echo_all'
16429
16430	    # Archives containing C++ object files must be created using
16431	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16432	    # necessary to make sure instantiated templates are included
16433	    # in the archive.
16434	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16435	    ;;
16436          gcx*)
16437	    # Green Hills C++ Compiler
16438	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16439
16440	    # The C++ compiler must be used to create the archive.
16441	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16442	    ;;
16443          *)
16444	    # GNU C++ compiler with Solaris linker
16445	    if test yes,no = "$GXX,$with_gnu_ld"; then
16446	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16447	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16448	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16449	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16450                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16451
16452	        # Commands to make compiler produce verbose output that lists
16453	        # what "hidden" libraries, object files and flags are used when
16454	        # linking a shared library.
16455	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16456	      else
16457	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16458	        # platform.
16459	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16460	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16461                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16462
16463	        # Commands to make compiler produce verbose output that lists
16464	        # what "hidden" libraries, object files and flags are used when
16465	        # linking a shared library.
16466	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16467	      fi
16468
16469	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16470	      case $host_os in
16471		solaris2.[0-5] | solaris2.[0-5].*) ;;
16472		*)
16473		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16474		  ;;
16475	      esac
16476	    fi
16477	    ;;
16478        esac
16479        ;;
16480
16481    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16482      no_undefined_flag_CXX='$wl-z,text'
16483      archive_cmds_need_lc_CXX=no
16484      hardcode_shlibpath_var_CXX=no
16485      runpath_var='LD_RUN_PATH'
16486
16487      case $cc_basename in
16488        CC*)
16489	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16490	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16491	  ;;
16492	*)
16493	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16494	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495	  ;;
16496      esac
16497      ;;
16498
16499      sysv5* | sco3.2v5* | sco5v6*)
16500	# Note: We CANNOT use -z defs as we might desire, because we do not
16501	# link with -lc, and that would cause any symbols used from libc to
16502	# always be unresolved, which means just about no library would
16503	# ever link correctly.  If we're not using GNU ld we use -z text
16504	# though, which does catch some bad symbols but isn't as heavy-handed
16505	# as -z defs.
16506	no_undefined_flag_CXX='$wl-z,text'
16507	allow_undefined_flag_CXX='$wl-z,nodefs'
16508	archive_cmds_need_lc_CXX=no
16509	hardcode_shlibpath_var_CXX=no
16510	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16511	hardcode_libdir_separator_CXX=':'
16512	link_all_deplibs_CXX=yes
16513	export_dynamic_flag_spec_CXX='$wl-Bexport'
16514	runpath_var='LD_RUN_PATH'
16515
16516	case $cc_basename in
16517          CC*)
16518	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16519	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16520	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16521              '"$old_archive_cmds_CXX"
16522	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16523              '"$reload_cmds_CXX"
16524	    ;;
16525	  *)
16526	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16527	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16528	    ;;
16529	esac
16530      ;;
16531
16532      tandem*)
16533        case $cc_basename in
16534          NCC*)
16535	    # NonStop-UX NCC 3.20
16536	    # FIXME: insert proper C++ library support
16537	    ld_shlibs_CXX=no
16538	    ;;
16539          *)
16540	    # FIXME: insert proper C++ library support
16541	    ld_shlibs_CXX=no
16542	    ;;
16543        esac
16544        ;;
16545
16546      vxworks*)
16547        # FIXME: insert proper C++ library support
16548        ld_shlibs_CXX=no
16549        ;;
16550
16551      *)
16552        # FIXME: insert proper C++ library support
16553        ld_shlibs_CXX=no
16554        ;;
16555    esac
16556
16557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16558$as_echo "$ld_shlibs_CXX" >&6; }
16559    test no = "$ld_shlibs_CXX" && can_build_shared=no
16560
16561    GCC_CXX=$GXX
16562    LD_CXX=$LD
16563
16564    ## CAVEAT EMPTOR:
16565    ## There is no encapsulation within the following macros, do not change
16566    ## the running order or otherwise move them around unless you know exactly
16567    ## what you are doing...
16568    # Dependencies to place before and after the object being linked:
16569predep_objects_CXX=
16570postdep_objects_CXX=
16571predeps_CXX=
16572postdeps_CXX=
16573compiler_lib_search_path_CXX=
16574
16575cat > conftest.$ac_ext <<_LT_EOF
16576class Foo
16577{
16578public:
16579  Foo (void) { a = 0; }
16580private:
16581  int a;
16582};
16583_LT_EOF
16584
16585
16586_lt_libdeps_save_CFLAGS=$CFLAGS
16587case "$CC $CFLAGS " in #(
16588*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16589*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16590*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16591esac
16592
16593if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16594  (eval $ac_compile) 2>&5
16595  ac_status=$?
16596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16597  test $ac_status = 0; }; then
16598  # Parse the compiler output and extract the necessary
16599  # objects, libraries and library flags.
16600
16601  # Sentinel used to keep track of whether or not we are before
16602  # the conftest object file.
16603  pre_test_object_deps_done=no
16604
16605  for p in `eval "$output_verbose_link_cmd"`; do
16606    case $prev$p in
16607
16608    -L* | -R* | -l*)
16609       # Some compilers place space between "-{L,R}" and the path.
16610       # Remove the space.
16611       if test x-L = "$p" ||
16612          test x-R = "$p"; then
16613	 prev=$p
16614	 continue
16615       fi
16616
16617       # Expand the sysroot to ease extracting the directories later.
16618       if test -z "$prev"; then
16619         case $p in
16620         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16621         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16622         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16623         esac
16624       fi
16625       case $p in
16626       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16627       esac
16628       if test no = "$pre_test_object_deps_done"; then
16629	 case $prev in
16630	 -L | -R)
16631	   # Internal compiler library paths should come after those
16632	   # provided the user.  The postdeps already come after the
16633	   # user supplied libs so there is no need to process them.
16634	   if test -z "$compiler_lib_search_path_CXX"; then
16635	     compiler_lib_search_path_CXX=$prev$p
16636	   else
16637	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16638	   fi
16639	   ;;
16640	 # The "-l" case would never come before the object being
16641	 # linked, so don't bother handling this case.
16642	 esac
16643       else
16644	 if test -z "$postdeps_CXX"; then
16645	   postdeps_CXX=$prev$p
16646	 else
16647	   postdeps_CXX="${postdeps_CXX} $prev$p"
16648	 fi
16649       fi
16650       prev=
16651       ;;
16652
16653    *.lto.$objext) ;; # Ignore GCC LTO objects
16654    *.$objext)
16655       # This assumes that the test object file only shows up
16656       # once in the compiler output.
16657       if test "$p" = "conftest.$objext"; then
16658	 pre_test_object_deps_done=yes
16659	 continue
16660       fi
16661
16662       if test no = "$pre_test_object_deps_done"; then
16663	 if test -z "$predep_objects_CXX"; then
16664	   predep_objects_CXX=$p
16665	 else
16666	   predep_objects_CXX="$predep_objects_CXX $p"
16667	 fi
16668       else
16669	 if test -z "$postdep_objects_CXX"; then
16670	   postdep_objects_CXX=$p
16671	 else
16672	   postdep_objects_CXX="$postdep_objects_CXX $p"
16673	 fi
16674       fi
16675       ;;
16676
16677    *) ;; # Ignore the rest.
16678
16679    esac
16680  done
16681
16682  # Clean up.
16683  rm -f a.out a.exe
16684else
16685  echo "libtool.m4: error: problem compiling CXX test program"
16686fi
16687
16688$RM -f confest.$objext
16689CFLAGS=$_lt_libdeps_save_CFLAGS
16690
16691# PORTME: override above test on systems where it is broken
16692case $host_os in
16693interix[3-9]*)
16694  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16695  # hack all around it, let's just trust "g++" to DTRT.
16696  predep_objects_CXX=
16697  postdep_objects_CXX=
16698  postdeps_CXX=
16699  ;;
16700esac
16701
16702
16703case " $postdeps_CXX " in
16704*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16705esac
16706 compiler_lib_search_dirs_CXX=
16707if test -n "${compiler_lib_search_path_CXX}"; then
16708 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16709fi
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741    lt_prog_compiler_wl_CXX=
16742lt_prog_compiler_pic_CXX=
16743lt_prog_compiler_static_CXX=
16744
16745
16746  # C++ specific cases for pic, static, wl, etc.
16747  if test yes = "$GXX"; then
16748    lt_prog_compiler_wl_CXX='-Wl,'
16749    lt_prog_compiler_static_CXX='-static'
16750
16751    case $host_os in
16752    aix*)
16753      # All AIX code is PIC.
16754      if test ia64 = "$host_cpu"; then
16755	# AIX 5 now supports IA64 processor
16756	lt_prog_compiler_static_CXX='-Bstatic'
16757      fi
16758      lt_prog_compiler_pic_CXX='-fPIC'
16759      ;;
16760
16761    amigaos*)
16762      case $host_cpu in
16763      powerpc)
16764            # see comment about AmigaOS4 .so support
16765            lt_prog_compiler_pic_CXX='-fPIC'
16766        ;;
16767      m68k)
16768            # FIXME: we need at least 68020 code to build shared libraries, but
16769            # adding the '-m68020' flag to GCC prevents building anything better,
16770            # like '-m68040'.
16771            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16772        ;;
16773      esac
16774      ;;
16775
16776    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16777      # PIC is the default for these OSes.
16778      ;;
16779    mingw* | cygwin* | os2* | pw32* | cegcc*)
16780      # This hack is so that the source file can tell whether it is being
16781      # built for inclusion in a dll (and should export symbols for example).
16782      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16783      # (--disable-auto-import) libraries
16784      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16785      case $host_os in
16786      os2*)
16787	lt_prog_compiler_static_CXX='$wl-static'
16788	;;
16789      esac
16790      ;;
16791    darwin* | rhapsody*)
16792      # PIC is the default on this platform
16793      # Common symbols not allowed in MH_DYLIB files
16794      lt_prog_compiler_pic_CXX='-fno-common'
16795      ;;
16796    *djgpp*)
16797      # DJGPP does not support shared libraries at all
16798      lt_prog_compiler_pic_CXX=
16799      ;;
16800    haiku*)
16801      # PIC is the default for Haiku.
16802      # The "-static" flag exists, but is broken.
16803      lt_prog_compiler_static_CXX=
16804      ;;
16805    interix[3-9]*)
16806      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16807      # Instead, we relocate shared libraries at runtime.
16808      ;;
16809    sysv4*MP*)
16810      if test -d /usr/nec; then
16811	lt_prog_compiler_pic_CXX=-Kconform_pic
16812      fi
16813      ;;
16814    hpux*)
16815      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16816      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16817      # sets the default TLS model and affects inlining.
16818      case $host_cpu in
16819      hppa*64*)
16820	;;
16821      *)
16822	lt_prog_compiler_pic_CXX='-fPIC'
16823	;;
16824      esac
16825      ;;
16826    *qnx* | *nto*)
16827      # QNX uses GNU C++, but need to define -shared option too, otherwise
16828      # it will coredump.
16829      lt_prog_compiler_pic_CXX='-fPIC -shared'
16830      ;;
16831    *)
16832      lt_prog_compiler_pic_CXX='-fPIC'
16833      ;;
16834    esac
16835  else
16836    case $host_os in
16837      aix[4-9]*)
16838	# All AIX code is PIC.
16839	if test ia64 = "$host_cpu"; then
16840	  # AIX 5 now supports IA64 processor
16841	  lt_prog_compiler_static_CXX='-Bstatic'
16842	else
16843	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16844	fi
16845	;;
16846      chorus*)
16847	case $cc_basename in
16848	cxch68*)
16849	  # Green Hills C++ Compiler
16850	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16851	  ;;
16852	esac
16853	;;
16854      mingw* | cygwin* | os2* | pw32* | cegcc*)
16855	# This hack is so that the source file can tell whether it is being
16856	# built for inclusion in a dll (and should export symbols for example).
16857	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16858	;;
16859      dgux*)
16860	case $cc_basename in
16861	  ec++*)
16862	    lt_prog_compiler_pic_CXX='-KPIC'
16863	    ;;
16864	  ghcx*)
16865	    # Green Hills C++ Compiler
16866	    lt_prog_compiler_pic_CXX='-pic'
16867	    ;;
16868	  *)
16869	    ;;
16870	esac
16871	;;
16872      freebsd* | dragonfly*)
16873	# FreeBSD uses GNU C++
16874	;;
16875      hpux9* | hpux10* | hpux11*)
16876	case $cc_basename in
16877	  CC*)
16878	    lt_prog_compiler_wl_CXX='-Wl,'
16879	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16880	    if test ia64 != "$host_cpu"; then
16881	      lt_prog_compiler_pic_CXX='+Z'
16882	    fi
16883	    ;;
16884	  aCC*)
16885	    lt_prog_compiler_wl_CXX='-Wl,'
16886	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16887	    case $host_cpu in
16888	    hppa*64*|ia64*)
16889	      # +Z the default
16890	      ;;
16891	    *)
16892	      lt_prog_compiler_pic_CXX='+Z'
16893	      ;;
16894	    esac
16895	    ;;
16896	  *)
16897	    ;;
16898	esac
16899	;;
16900      interix*)
16901	# This is c89, which is MS Visual C++ (no shared libs)
16902	# Anyone wants to do a port?
16903	;;
16904      irix5* | irix6* | nonstopux*)
16905	case $cc_basename in
16906	  CC*)
16907	    lt_prog_compiler_wl_CXX='-Wl,'
16908	    lt_prog_compiler_static_CXX='-non_shared'
16909	    # CC pic flag -KPIC is the default.
16910	    ;;
16911	  *)
16912	    ;;
16913	esac
16914	;;
16915      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16916	case $cc_basename in
16917	  KCC*)
16918	    # KAI C++ Compiler
16919	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16920	    lt_prog_compiler_pic_CXX='-fPIC'
16921	    ;;
16922	  ecpc* )
16923	    # old Intel C++ for x86_64, which still supported -KPIC.
16924	    lt_prog_compiler_wl_CXX='-Wl,'
16925	    lt_prog_compiler_pic_CXX='-KPIC'
16926	    lt_prog_compiler_static_CXX='-static'
16927	    ;;
16928	  icpc* )
16929	    # Intel C++, used to be incompatible with GCC.
16930	    # ICC 10 doesn't accept -KPIC any more.
16931	    lt_prog_compiler_wl_CXX='-Wl,'
16932	    lt_prog_compiler_pic_CXX='-fPIC'
16933	    lt_prog_compiler_static_CXX='-static'
16934	    ;;
16935	  pgCC* | pgcpp*)
16936	    # Portland Group C++ compiler
16937	    lt_prog_compiler_wl_CXX='-Wl,'
16938	    lt_prog_compiler_pic_CXX='-fpic'
16939	    lt_prog_compiler_static_CXX='-Bstatic'
16940	    ;;
16941	  cxx*)
16942	    # Compaq C++
16943	    # Make sure the PIC flag is empty.  It appears that all Alpha
16944	    # Linux and Compaq Tru64 Unix objects are PIC.
16945	    lt_prog_compiler_pic_CXX=
16946	    lt_prog_compiler_static_CXX='-non_shared'
16947	    ;;
16948	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16949	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16950	    lt_prog_compiler_wl_CXX='-Wl,'
16951	    lt_prog_compiler_pic_CXX='-qpic'
16952	    lt_prog_compiler_static_CXX='-qstaticlink'
16953	    ;;
16954	  *)
16955	    case `$CC -V 2>&1 | sed 5q` in
16956	    *Sun\ C*)
16957	      # Sun C++ 5.9
16958	      lt_prog_compiler_pic_CXX='-KPIC'
16959	      lt_prog_compiler_static_CXX='-Bstatic'
16960	      lt_prog_compiler_wl_CXX='-Qoption ld '
16961	      ;;
16962	    esac
16963	    ;;
16964	esac
16965	;;
16966      lynxos*)
16967	;;
16968      m88k*)
16969	;;
16970      mvs*)
16971	case $cc_basename in
16972	  cxx*)
16973	    lt_prog_compiler_pic_CXX='-W c,exportall'
16974	    ;;
16975	  *)
16976	    ;;
16977	esac
16978	;;
16979      netbsd*)
16980	;;
16981      *qnx* | *nto*)
16982        # QNX uses GNU C++, but need to define -shared option too, otherwise
16983        # it will coredump.
16984        lt_prog_compiler_pic_CXX='-fPIC -shared'
16985        ;;
16986      osf3* | osf4* | osf5*)
16987	case $cc_basename in
16988	  KCC*)
16989	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16990	    ;;
16991	  RCC*)
16992	    # Rational C++ 2.4.1
16993	    lt_prog_compiler_pic_CXX='-pic'
16994	    ;;
16995	  cxx*)
16996	    # Digital/Compaq C++
16997	    lt_prog_compiler_wl_CXX='-Wl,'
16998	    # Make sure the PIC flag is empty.  It appears that all Alpha
16999	    # Linux and Compaq Tru64 Unix objects are PIC.
17000	    lt_prog_compiler_pic_CXX=
17001	    lt_prog_compiler_static_CXX='-non_shared'
17002	    ;;
17003	  *)
17004	    ;;
17005	esac
17006	;;
17007      psos*)
17008	;;
17009      solaris*)
17010	case $cc_basename in
17011	  CC* | sunCC*)
17012	    # Sun C++ 4.2, 5.x and Centerline C++
17013	    lt_prog_compiler_pic_CXX='-KPIC'
17014	    lt_prog_compiler_static_CXX='-Bstatic'
17015	    lt_prog_compiler_wl_CXX='-Qoption ld '
17016	    ;;
17017	  gcx*)
17018	    # Green Hills C++ Compiler
17019	    lt_prog_compiler_pic_CXX='-PIC'
17020	    ;;
17021	  *)
17022	    ;;
17023	esac
17024	;;
17025      sunos4*)
17026	case $cc_basename in
17027	  CC*)
17028	    # Sun C++ 4.x
17029	    lt_prog_compiler_pic_CXX='-pic'
17030	    lt_prog_compiler_static_CXX='-Bstatic'
17031	    ;;
17032	  lcc*)
17033	    # Lucid
17034	    lt_prog_compiler_pic_CXX='-pic'
17035	    ;;
17036	  *)
17037	    ;;
17038	esac
17039	;;
17040      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17041	case $cc_basename in
17042	  CC*)
17043	    lt_prog_compiler_wl_CXX='-Wl,'
17044	    lt_prog_compiler_pic_CXX='-KPIC'
17045	    lt_prog_compiler_static_CXX='-Bstatic'
17046	    ;;
17047	esac
17048	;;
17049      tandem*)
17050	case $cc_basename in
17051	  NCC*)
17052	    # NonStop-UX NCC 3.20
17053	    lt_prog_compiler_pic_CXX='-KPIC'
17054	    ;;
17055	  *)
17056	    ;;
17057	esac
17058	;;
17059      vxworks*)
17060	;;
17061      *)
17062	lt_prog_compiler_can_build_shared_CXX=no
17063	;;
17064    esac
17065  fi
17066
17067case $host_os in
17068  # For platforms that do not support PIC, -DPIC is meaningless:
17069  *djgpp*)
17070    lt_prog_compiler_pic_CXX=
17071    ;;
17072  *)
17073    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17074    ;;
17075esac
17076
17077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17078$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17079if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17080  $as_echo_n "(cached) " >&6
17081else
17082  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17083fi
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17085$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17086lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17087
17088#
17089# Check to make sure the PIC flag actually works.
17090#
17091if test -n "$lt_prog_compiler_pic_CXX"; then
17092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17093$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17094if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17095  $as_echo_n "(cached) " >&6
17096else
17097  lt_cv_prog_compiler_pic_works_CXX=no
17098   ac_outfile=conftest.$ac_objext
17099   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17100   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17101   # Insert the option either (1) after the last *FLAGS variable, or
17102   # (2) before a word containing "conftest.", or (3) at the end.
17103   # Note that $ac_compile itself does not contain backslashes and begins
17104   # with a dollar sign (not a hyphen), so the echo should work correctly.
17105   # The option is referenced via a variable to avoid confusing sed.
17106   lt_compile=`echo "$ac_compile" | $SED \
17107   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17108   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17109   -e 's:$: $lt_compiler_flag:'`
17110   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17111   (eval "$lt_compile" 2>conftest.err)
17112   ac_status=$?
17113   cat conftest.err >&5
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   if (exit $ac_status) && test -s "$ac_outfile"; then
17116     # The compiler can only warn and ignore the option if not recognized
17117     # So say no if there are warnings other than the usual output.
17118     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17119     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17120     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17121       lt_cv_prog_compiler_pic_works_CXX=yes
17122     fi
17123   fi
17124   $RM conftest*
17125
17126fi
17127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17128$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17129
17130if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17131    case $lt_prog_compiler_pic_CXX in
17132     "" | " "*) ;;
17133     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17134     esac
17135else
17136    lt_prog_compiler_pic_CXX=
17137     lt_prog_compiler_can_build_shared_CXX=no
17138fi
17139
17140fi
17141
17142
17143
17144
17145
17146#
17147# Check to make sure the static flag actually works.
17148#
17149wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17151$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17152if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17153  $as_echo_n "(cached) " >&6
17154else
17155  lt_cv_prog_compiler_static_works_CXX=no
17156   save_LDFLAGS=$LDFLAGS
17157   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17158   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17159   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17160     # The linker can only warn and ignore the option if not recognized
17161     # So say no if there are warnings
17162     if test -s conftest.err; then
17163       # Append any errors to the config.log.
17164       cat conftest.err 1>&5
17165       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17166       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17167       if diff conftest.exp conftest.er2 >/dev/null; then
17168         lt_cv_prog_compiler_static_works_CXX=yes
17169       fi
17170     else
17171       lt_cv_prog_compiler_static_works_CXX=yes
17172     fi
17173   fi
17174   $RM -r conftest*
17175   LDFLAGS=$save_LDFLAGS
17176
17177fi
17178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17179$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17180
17181if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17182    :
17183else
17184    lt_prog_compiler_static_CXX=
17185fi
17186
17187
17188
17189
17190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17191$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17192if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17193  $as_echo_n "(cached) " >&6
17194else
17195  lt_cv_prog_compiler_c_o_CXX=no
17196   $RM -r conftest 2>/dev/null
17197   mkdir conftest
17198   cd conftest
17199   mkdir out
17200   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17201
17202   lt_compiler_flag="-o out/conftest2.$ac_objext"
17203   # Insert the option either (1) after the last *FLAGS variable, or
17204   # (2) before a word containing "conftest.", or (3) at the end.
17205   # Note that $ac_compile itself does not contain backslashes and begins
17206   # with a dollar sign (not a hyphen), so the echo should work correctly.
17207   lt_compile=`echo "$ac_compile" | $SED \
17208   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17209   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17210   -e 's:$: $lt_compiler_flag:'`
17211   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17212   (eval "$lt_compile" 2>out/conftest.err)
17213   ac_status=$?
17214   cat out/conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17217   then
17218     # The compiler can only warn and ignore the option if not recognized
17219     # So say no if there are warnings
17220     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17221     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17222     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17223       lt_cv_prog_compiler_c_o_CXX=yes
17224     fi
17225   fi
17226   chmod u+w . 2>&5
17227   $RM conftest*
17228   # SGI C++ compiler will create directory out/ii_files/ for
17229   # template instantiation
17230   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17231   $RM out/* && rmdir out
17232   cd ..
17233   $RM -r conftest
17234   $RM conftest*
17235
17236fi
17237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17238$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17239
17240
17241
17242    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17243$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17244if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17245  $as_echo_n "(cached) " >&6
17246else
17247  lt_cv_prog_compiler_c_o_CXX=no
17248   $RM -r conftest 2>/dev/null
17249   mkdir conftest
17250   cd conftest
17251   mkdir out
17252   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17253
17254   lt_compiler_flag="-o out/conftest2.$ac_objext"
17255   # Insert the option either (1) after the last *FLAGS variable, or
17256   # (2) before a word containing "conftest.", or (3) at the end.
17257   # Note that $ac_compile itself does not contain backslashes and begins
17258   # with a dollar sign (not a hyphen), so the echo should work correctly.
17259   lt_compile=`echo "$ac_compile" | $SED \
17260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17262   -e 's:$: $lt_compiler_flag:'`
17263   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17264   (eval "$lt_compile" 2>out/conftest.err)
17265   ac_status=$?
17266   cat out/conftest.err >&5
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17269   then
17270     # The compiler can only warn and ignore the option if not recognized
17271     # So say no if there are warnings
17272     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17273     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17274     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17275       lt_cv_prog_compiler_c_o_CXX=yes
17276     fi
17277   fi
17278   chmod u+w . 2>&5
17279   $RM conftest*
17280   # SGI C++ compiler will create directory out/ii_files/ for
17281   # template instantiation
17282   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17283   $RM out/* && rmdir out
17284   cd ..
17285   $RM -r conftest
17286   $RM conftest*
17287
17288fi
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17290$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17291
17292
17293
17294
17295hard_links=nottested
17296if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17297  # do not overwrite the value of need_locks provided by the user
17298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17299$as_echo_n "checking if we can lock with hard links... " >&6; }
17300  hard_links=yes
17301  $RM conftest*
17302  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17303  touch conftest.a
17304  ln conftest.a conftest.b 2>&5 || hard_links=no
17305  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17307$as_echo "$hard_links" >&6; }
17308  if test no = "$hard_links"; then
17309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17310$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17311    need_locks=warn
17312  fi
17313else
17314  need_locks=no
17315fi
17316
17317
17318
17319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17320$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17321
17322  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17323  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17324  case $host_os in
17325  aix[4-9]*)
17326    # If we're using GNU nm, then we don't want the "-C" option.
17327    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17328    # Without the "-l" option, or with the "-B" option, AIX nm treats
17329    # weak defined symbols like other global defined symbols, whereas
17330    # GNU nm marks them as "W".
17331    # While the 'weak' keyword is ignored in the Export File, we need
17332    # it in the Import File for the 'aix-soname' feature, so we have
17333    # to replace the "-B" option with "-P" for AIX nm.
17334    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17335      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17336    else
17337      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17338    fi
17339    ;;
17340  pw32*)
17341    export_symbols_cmds_CXX=$ltdll_cmds
17342    ;;
17343  cygwin* | mingw* | cegcc*)
17344    case $cc_basename in
17345    cl*)
17346      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17347      ;;
17348    *)
17349      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17350      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17351      ;;
17352    esac
17353    ;;
17354  *)
17355    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17356    ;;
17357  esac
17358
17359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17360$as_echo "$ld_shlibs_CXX" >&6; }
17361test no = "$ld_shlibs_CXX" && can_build_shared=no
17362
17363with_gnu_ld_CXX=$with_gnu_ld
17364
17365
17366
17367
17368
17369
17370#
17371# Do we need to explicitly link libc?
17372#
17373case "x$archive_cmds_need_lc_CXX" in
17374x|xyes)
17375  # Assume -lc should be added
17376  archive_cmds_need_lc_CXX=yes
17377
17378  if test yes,yes = "$GCC,$enable_shared"; then
17379    case $archive_cmds_CXX in
17380    *'~'*)
17381      # FIXME: we may have to deal with multi-command sequences.
17382      ;;
17383    '$CC '*)
17384      # Test whether the compiler implicitly links with -lc since on some
17385      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17386      # to ld, don't add -lc before -lgcc.
17387      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17388$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17389if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17390  $as_echo_n "(cached) " >&6
17391else
17392  $RM conftest*
17393	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17394
17395	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17396  (eval $ac_compile) 2>&5
17397  ac_status=$?
17398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17399  test $ac_status = 0; } 2>conftest.err; then
17400	  soname=conftest
17401	  lib=conftest
17402	  libobjs=conftest.$ac_objext
17403	  deplibs=
17404	  wl=$lt_prog_compiler_wl_CXX
17405	  pic_flag=$lt_prog_compiler_pic_CXX
17406	  compiler_flags=-v
17407	  linker_flags=-v
17408	  verstring=
17409	  output_objdir=.
17410	  libname=conftest
17411	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17412	  allow_undefined_flag_CXX=
17413	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17414  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17415  ac_status=$?
17416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17417  test $ac_status = 0; }
17418	  then
17419	    lt_cv_archive_cmds_need_lc_CXX=no
17420	  else
17421	    lt_cv_archive_cmds_need_lc_CXX=yes
17422	  fi
17423	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17424	else
17425	  cat conftest.err 1>&5
17426	fi
17427	$RM conftest*
17428
17429fi
17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17431$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17432      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17433      ;;
17434    esac
17435  fi
17436  ;;
17437esac
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17501$as_echo_n "checking dynamic linker characteristics... " >&6; }
17502
17503library_names_spec=
17504libname_spec='lib$name'
17505soname_spec=
17506shrext_cmds=.so
17507postinstall_cmds=
17508postuninstall_cmds=
17509finish_cmds=
17510finish_eval=
17511shlibpath_var=
17512shlibpath_overrides_runpath=unknown
17513version_type=none
17514dynamic_linker="$host_os ld.so"
17515sys_lib_dlsearch_path_spec="/lib /usr/lib"
17516need_lib_prefix=unknown
17517hardcode_into_libs=no
17518
17519# when you set need_version to no, make sure it does not cause -set_version
17520# flags to be left without arguments
17521need_version=unknown
17522
17523
17524
17525case $host_os in
17526aix3*)
17527  version_type=linux # correct to gnu/linux during the next big refactor
17528  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17529  shlibpath_var=LIBPATH
17530
17531  # AIX 3 has no versioning support, so we append a major version to the name.
17532  soname_spec='$libname$release$shared_ext$major'
17533  ;;
17534
17535aix[4-9]*)
17536  version_type=linux # correct to gnu/linux during the next big refactor
17537  need_lib_prefix=no
17538  need_version=no
17539  hardcode_into_libs=yes
17540  if test ia64 = "$host_cpu"; then
17541    # AIX 5 supports IA64
17542    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17543    shlibpath_var=LD_LIBRARY_PATH
17544  else
17545    # With GCC up to 2.95.x, collect2 would create an import file
17546    # for dependence libraries.  The import file would start with
17547    # the line '#! .'.  This would cause the generated library to
17548    # depend on '.', always an invalid library.  This was fixed in
17549    # development snapshots of GCC prior to 3.0.
17550    case $host_os in
17551      aix4 | aix4.[01] | aix4.[01].*)
17552      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17553	   echo ' yes '
17554	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17555	:
17556      else
17557	can_build_shared=no
17558      fi
17559      ;;
17560    esac
17561    # Using Import Files as archive members, it is possible to support
17562    # filename-based versioning of shared library archives on AIX. While
17563    # this would work for both with and without runtime linking, it will
17564    # prevent static linking of such archives. So we do filename-based
17565    # shared library versioning with .so extension only, which is used
17566    # when both runtime linking and shared linking is enabled.
17567    # Unfortunately, runtime linking may impact performance, so we do
17568    # not want this to be the default eventually. Also, we use the
17569    # versioned .so libs for executables only if there is the -brtl
17570    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17571    # To allow for filename-based versioning support, we need to create
17572    # libNAME.so.V as an archive file, containing:
17573    # *) an Import File, referring to the versioned filename of the
17574    #    archive as well as the shared archive member, telling the
17575    #    bitwidth (32 or 64) of that shared object, and providing the
17576    #    list of exported symbols of that shared object, eventually
17577    #    decorated with the 'weak' keyword
17578    # *) the shared object with the F_LOADONLY flag set, to really avoid
17579    #    it being seen by the linker.
17580    # At run time we better use the real file rather than another symlink,
17581    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17582
17583    case $with_aix_soname,$aix_use_runtimelinking in
17584    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17585    # soname into executable. Probably we can add versioning support to
17586    # collect2, so additional links can be useful in future.
17587    aix,yes) # traditional libtool
17588      dynamic_linker='AIX unversionable lib.so'
17589      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17590      # instead of lib<name>.a to let people know that these are not
17591      # typical AIX shared libraries.
17592      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17593      ;;
17594    aix,no) # traditional AIX only
17595      dynamic_linker='AIX lib.a(lib.so.V)'
17596      # We preserve .a as extension for shared libraries through AIX4.2
17597      # and later when we are not doing run time linking.
17598      library_names_spec='$libname$release.a $libname.a'
17599      soname_spec='$libname$release$shared_ext$major'
17600      ;;
17601    svr4,*) # full svr4 only
17602      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17603      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17604      # We do not specify a path in Import Files, so LIBPATH fires.
17605      shlibpath_overrides_runpath=yes
17606      ;;
17607    *,yes) # both, prefer svr4
17608      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17609      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17610      # unpreferred sharedlib libNAME.a needs extra handling
17611      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17612      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17613      # We do not specify a path in Import Files, so LIBPATH fires.
17614      shlibpath_overrides_runpath=yes
17615      ;;
17616    *,no) # both, prefer aix
17617      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17618      library_names_spec='$libname$release.a $libname.a'
17619      soname_spec='$libname$release$shared_ext$major'
17620      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17621      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17622      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17623      ;;
17624    esac
17625    shlibpath_var=LIBPATH
17626  fi
17627  ;;
17628
17629amigaos*)
17630  case $host_cpu in
17631  powerpc)
17632    # Since July 2007 AmigaOS4 officially supports .so libraries.
17633    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17634    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17635    ;;
17636  m68k)
17637    library_names_spec='$libname.ixlibrary $libname.a'
17638    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17639    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17640    ;;
17641  esac
17642  ;;
17643
17644beos*)
17645  library_names_spec='$libname$shared_ext'
17646  dynamic_linker="$host_os ld.so"
17647  shlibpath_var=LIBRARY_PATH
17648  ;;
17649
17650bsdi[45]*)
17651  version_type=linux # correct to gnu/linux during the next big refactor
17652  need_version=no
17653  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17654  soname_spec='$libname$release$shared_ext$major'
17655  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17656  shlibpath_var=LD_LIBRARY_PATH
17657  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17658  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17659  # the default ld.so.conf also contains /usr/contrib/lib and
17660  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17661  # libtool to hard-code these into programs
17662  ;;
17663
17664cygwin* | mingw* | pw32* | cegcc*)
17665  version_type=windows
17666  shrext_cmds=.dll
17667  need_version=no
17668  need_lib_prefix=no
17669
17670  case $GCC,$cc_basename in
17671  yes,*)
17672    # gcc
17673    library_names_spec='$libname.dll.a'
17674    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17675    postinstall_cmds='base_file=`basename \$file`~
17676      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17677      dldir=$destdir/`dirname \$dlpath`~
17678      test -d \$dldir || mkdir -p \$dldir~
17679      $install_prog $dir/$dlname \$dldir/$dlname~
17680      chmod a+x \$dldir/$dlname~
17681      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17682        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17683      fi'
17684    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17685      dlpath=$dir/\$dldll~
17686       $RM \$dlpath'
17687    shlibpath_overrides_runpath=yes
17688
17689    case $host_os in
17690    cygwin*)
17691      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17692      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17693
17694      ;;
17695    mingw* | cegcc*)
17696      # MinGW DLLs use traditional 'lib' prefix
17697      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17698      ;;
17699    pw32*)
17700      # pw32 DLLs use 'pw' prefix rather than 'lib'
17701      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17702      ;;
17703    esac
17704    dynamic_linker='Win32 ld.exe'
17705    ;;
17706
17707  *,cl*)
17708    # Native MSVC
17709    libname_spec='$name'
17710    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17711    library_names_spec='$libname.dll.lib'
17712
17713    case $build_os in
17714    mingw*)
17715      sys_lib_search_path_spec=
17716      lt_save_ifs=$IFS
17717      IFS=';'
17718      for lt_path in $LIB
17719      do
17720        IFS=$lt_save_ifs
17721        # Let DOS variable expansion print the short 8.3 style file name.
17722        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17723        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17724      done
17725      IFS=$lt_save_ifs
17726      # Convert to MSYS style.
17727      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17728      ;;
17729    cygwin*)
17730      # Convert to unix form, then to dos form, then back to unix form
17731      # but this time dos style (no spaces!) so that the unix form looks
17732      # like /cygdrive/c/PROGRA~1:/cygdr...
17733      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17734      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17735      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17736      ;;
17737    *)
17738      sys_lib_search_path_spec=$LIB
17739      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17740        # It is most probably a Windows format PATH.
17741        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17742      else
17743        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17744      fi
17745      # FIXME: find the short name or the path components, as spaces are
17746      # common. (e.g. "Program Files" -> "PROGRA~1")
17747      ;;
17748    esac
17749
17750    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17751    postinstall_cmds='base_file=`basename \$file`~
17752      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17753      dldir=$destdir/`dirname \$dlpath`~
17754      test -d \$dldir || mkdir -p \$dldir~
17755      $install_prog $dir/$dlname \$dldir/$dlname'
17756    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17757      dlpath=$dir/\$dldll~
17758       $RM \$dlpath'
17759    shlibpath_overrides_runpath=yes
17760    dynamic_linker='Win32 link.exe'
17761    ;;
17762
17763  *)
17764    # Assume MSVC wrapper
17765    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17766    dynamic_linker='Win32 ld.exe'
17767    ;;
17768  esac
17769  # FIXME: first we should search . and the directory the executable is in
17770  shlibpath_var=PATH
17771  ;;
17772
17773darwin* | rhapsody*)
17774  dynamic_linker="$host_os dyld"
17775  version_type=darwin
17776  need_lib_prefix=no
17777  need_version=no
17778  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17779  soname_spec='$libname$release$major$shared_ext'
17780  shlibpath_overrides_runpath=yes
17781  shlibpath_var=DYLD_LIBRARY_PATH
17782  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17783
17784  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17785  ;;
17786
17787dgux*)
17788  version_type=linux # correct to gnu/linux during the next big refactor
17789  need_lib_prefix=no
17790  need_version=no
17791  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17792  soname_spec='$libname$release$shared_ext$major'
17793  shlibpath_var=LD_LIBRARY_PATH
17794  ;;
17795
17796freebsd* | dragonfly*)
17797  # DragonFly does not have aout.  When/if they implement a new
17798  # versioning mechanism, adjust this.
17799  if test -x /usr/bin/objformat; then
17800    objformat=`/usr/bin/objformat`
17801  else
17802    case $host_os in
17803    freebsd[23].*) objformat=aout ;;
17804    *) objformat=elf ;;
17805    esac
17806  fi
17807  version_type=freebsd-$objformat
17808  case $version_type in
17809    freebsd-elf*)
17810      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17811      soname_spec='$libname$release$shared_ext$major'
17812      need_version=no
17813      need_lib_prefix=no
17814      ;;
17815    freebsd-*)
17816      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17817      need_version=yes
17818      ;;
17819  esac
17820  shlibpath_var=LD_LIBRARY_PATH
17821  case $host_os in
17822  freebsd2.*)
17823    shlibpath_overrides_runpath=yes
17824    ;;
17825  freebsd3.[01]* | freebsdelf3.[01]*)
17826    shlibpath_overrides_runpath=yes
17827    hardcode_into_libs=yes
17828    ;;
17829  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17830  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17831    shlibpath_overrides_runpath=no
17832    hardcode_into_libs=yes
17833    ;;
17834  *) # from 4.6 on, and DragonFly
17835    shlibpath_overrides_runpath=yes
17836    hardcode_into_libs=yes
17837    ;;
17838  esac
17839  ;;
17840
17841haiku*)
17842  version_type=linux # correct to gnu/linux during the next big refactor
17843  need_lib_prefix=no
17844  need_version=no
17845  dynamic_linker="$host_os runtime_loader"
17846  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17847  soname_spec='$libname$release$shared_ext$major'
17848  shlibpath_var=LIBRARY_PATH
17849  shlibpath_overrides_runpath=no
17850  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17851  hardcode_into_libs=yes
17852  ;;
17853
17854hpux9* | hpux10* | hpux11*)
17855  # Give a soname corresponding to the major version so that dld.sl refuses to
17856  # link against other versions.
17857  version_type=sunos
17858  need_lib_prefix=no
17859  need_version=no
17860  case $host_cpu in
17861  ia64*)
17862    shrext_cmds='.so'
17863    hardcode_into_libs=yes
17864    dynamic_linker="$host_os dld.so"
17865    shlibpath_var=LD_LIBRARY_PATH
17866    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17867    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17868    soname_spec='$libname$release$shared_ext$major'
17869    if test 32 = "$HPUX_IA64_MODE"; then
17870      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17871      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17872    else
17873      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17874      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17875    fi
17876    ;;
17877  hppa*64*)
17878    shrext_cmds='.sl'
17879    hardcode_into_libs=yes
17880    dynamic_linker="$host_os dld.sl"
17881    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17882    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17883    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17884    soname_spec='$libname$release$shared_ext$major'
17885    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17886    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17887    ;;
17888  *)
17889    shrext_cmds='.sl'
17890    dynamic_linker="$host_os dld.sl"
17891    shlibpath_var=SHLIB_PATH
17892    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17893    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17894    soname_spec='$libname$release$shared_ext$major'
17895    ;;
17896  esac
17897  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17898  postinstall_cmds='chmod 555 $lib'
17899  # or fails outright, so override atomically:
17900  install_override_mode=555
17901  ;;
17902
17903interix[3-9]*)
17904  version_type=linux # correct to gnu/linux during the next big refactor
17905  need_lib_prefix=no
17906  need_version=no
17907  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17908  soname_spec='$libname$release$shared_ext$major'
17909  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17910  shlibpath_var=LD_LIBRARY_PATH
17911  shlibpath_overrides_runpath=no
17912  hardcode_into_libs=yes
17913  ;;
17914
17915irix5* | irix6* | nonstopux*)
17916  case $host_os in
17917    nonstopux*) version_type=nonstopux ;;
17918    *)
17919	if test yes = "$lt_cv_prog_gnu_ld"; then
17920		version_type=linux # correct to gnu/linux during the next big refactor
17921	else
17922		version_type=irix
17923	fi ;;
17924  esac
17925  need_lib_prefix=no
17926  need_version=no
17927  soname_spec='$libname$release$shared_ext$major'
17928  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17929  case $host_os in
17930  irix5* | nonstopux*)
17931    libsuff= shlibsuff=
17932    ;;
17933  *)
17934    case $LD in # libtool.m4 will add one of these switches to LD
17935    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17936      libsuff= shlibsuff= libmagic=32-bit;;
17937    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17938      libsuff=32 shlibsuff=N32 libmagic=N32;;
17939    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17940      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17941    *) libsuff= shlibsuff= libmagic=never-match;;
17942    esac
17943    ;;
17944  esac
17945  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17946  shlibpath_overrides_runpath=no
17947  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17948  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17949  hardcode_into_libs=yes
17950  ;;
17951
17952# No shared lib support for Linux oldld, aout, or coff.
17953linux*oldld* | linux*aout* | linux*coff*)
17954  dynamic_linker=no
17955  ;;
17956
17957linux*android*)
17958  version_type=none # Android doesn't support versioned libraries.
17959  need_lib_prefix=no
17960  need_version=no
17961  library_names_spec='$libname$release$shared_ext'
17962  soname_spec='$libname$release$shared_ext'
17963  finish_cmds=
17964  shlibpath_var=LD_LIBRARY_PATH
17965  shlibpath_overrides_runpath=yes
17966
17967  # This implies no fast_install, which is unacceptable.
17968  # Some rework will be needed to allow for fast_install
17969  # before this can be enabled.
17970  hardcode_into_libs=yes
17971
17972  dynamic_linker='Android linker'
17973  # Don't embed -rpath directories since the linker doesn't support them.
17974  hardcode_libdir_flag_spec_CXX='-L$libdir'
17975  ;;
17976
17977# This must be glibc/ELF.
17978linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17979  version_type=linux # correct to gnu/linux during the next big refactor
17980  need_lib_prefix=no
17981  need_version=no
17982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17983  soname_spec='$libname$release$shared_ext$major'
17984  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17985  shlibpath_var=LD_LIBRARY_PATH
17986  shlibpath_overrides_runpath=no
17987
17988  # Some binutils ld are patched to set DT_RUNPATH
17989  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17990  $as_echo_n "(cached) " >&6
17991else
17992  lt_cv_shlibpath_overrides_runpath=no
17993    save_LDFLAGS=$LDFLAGS
17994    save_libdir=$libdir
17995    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17996	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17997    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998/* end confdefs.h.  */
17999
18000int
18001main ()
18002{
18003
18004  ;
18005  return 0;
18006}
18007_ACEOF
18008if ac_fn_cxx_try_link "$LINENO"; then :
18009  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18010  lt_cv_shlibpath_overrides_runpath=yes
18011fi
18012fi
18013rm -f core conftest.err conftest.$ac_objext \
18014    conftest$ac_exeext conftest.$ac_ext
18015    LDFLAGS=$save_LDFLAGS
18016    libdir=$save_libdir
18017
18018fi
18019
18020  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18021
18022  # This implies no fast_install, which is unacceptable.
18023  # Some rework will be needed to allow for fast_install
18024  # before this can be enabled.
18025  hardcode_into_libs=yes
18026
18027  # Ideally, we could use ldconfig to report *all* directores which are
18028  # searched for libraries, however this is still not possible.  Aside from not
18029  # being certain /sbin/ldconfig is available, command
18030  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18031  # even though it is searched at run-time.  Try to do the best guess by
18032  # appending ld.so.conf contents (and includes) to the search path.
18033  if test -f /etc/ld.so.conf; then
18034    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18035    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18036  fi
18037
18038  # We used to test for /lib/ld.so.1 and disable shared libraries on
18039  # powerpc, because MkLinux only supported shared libraries with the
18040  # GNU dynamic linker.  Since this was broken with cross compilers,
18041  # most powerpc-linux boxes support dynamic linking these days and
18042  # people can always --disable-shared, the test was removed, and we
18043  # assume the GNU/Linux dynamic linker is in use.
18044  dynamic_linker='GNU/Linux ld.so'
18045  ;;
18046
18047netbsd*)
18048  version_type=sunos
18049  need_lib_prefix=no
18050  need_version=no
18051  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18052    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18053    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18054    dynamic_linker='NetBSD (a.out) ld.so'
18055  else
18056    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18057    soname_spec='$libname$release$shared_ext$major'
18058    dynamic_linker='NetBSD ld.elf_so'
18059  fi
18060  shlibpath_var=LD_LIBRARY_PATH
18061  shlibpath_overrides_runpath=yes
18062  hardcode_into_libs=yes
18063  ;;
18064
18065newsos6)
18066  version_type=linux # correct to gnu/linux during the next big refactor
18067  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18068  shlibpath_var=LD_LIBRARY_PATH
18069  shlibpath_overrides_runpath=yes
18070  ;;
18071
18072*nto* | *qnx*)
18073  version_type=qnx
18074  need_lib_prefix=no
18075  need_version=no
18076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18077  soname_spec='$libname$release$shared_ext$major'
18078  shlibpath_var=LD_LIBRARY_PATH
18079  shlibpath_overrides_runpath=no
18080  hardcode_into_libs=yes
18081  dynamic_linker='ldqnx.so'
18082  ;;
18083
18084openbsd* | bitrig*)
18085  version_type=sunos
18086  sys_lib_dlsearch_path_spec=/usr/lib
18087  need_lib_prefix=no
18088  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18089    need_version=no
18090  else
18091    need_version=yes
18092  fi
18093  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18094  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18095  shlibpath_var=LD_LIBRARY_PATH
18096  shlibpath_overrides_runpath=yes
18097  ;;
18098
18099os2*)
18100  libname_spec='$name'
18101  version_type=windows
18102  shrext_cmds=.dll
18103  need_version=no
18104  need_lib_prefix=no
18105  # OS/2 can only load a DLL with a base name of 8 characters or less.
18106  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18107    v=$($ECHO $release$versuffix | tr -d .-);
18108    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18109    $ECHO $n$v`$shared_ext'
18110  library_names_spec='${libname}_dll.$libext'
18111  dynamic_linker='OS/2 ld.exe'
18112  shlibpath_var=BEGINLIBPATH
18113  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18114  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18115  postinstall_cmds='base_file=`basename \$file`~
18116    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18117    dldir=$destdir/`dirname \$dlpath`~
18118    test -d \$dldir || mkdir -p \$dldir~
18119    $install_prog $dir/$dlname \$dldir/$dlname~
18120    chmod a+x \$dldir/$dlname~
18121    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18122      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18123    fi'
18124  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18125    dlpath=$dir/\$dldll~
18126    $RM \$dlpath'
18127  ;;
18128
18129osf3* | osf4* | osf5*)
18130  version_type=osf
18131  need_lib_prefix=no
18132  need_version=no
18133  soname_spec='$libname$release$shared_ext$major'
18134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18135  shlibpath_var=LD_LIBRARY_PATH
18136  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18137  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18138  ;;
18139
18140rdos*)
18141  dynamic_linker=no
18142  ;;
18143
18144solaris*)
18145  version_type=linux # correct to gnu/linux during the next big refactor
18146  need_lib_prefix=no
18147  need_version=no
18148  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18149  soname_spec='$libname$release$shared_ext$major'
18150  shlibpath_var=LD_LIBRARY_PATH
18151  shlibpath_overrides_runpath=yes
18152  hardcode_into_libs=yes
18153  # ldd complains unless libraries are executable
18154  postinstall_cmds='chmod +x $lib'
18155  ;;
18156
18157sunos4*)
18158  version_type=sunos
18159  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18160  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18161  shlibpath_var=LD_LIBRARY_PATH
18162  shlibpath_overrides_runpath=yes
18163  if test yes = "$with_gnu_ld"; then
18164    need_lib_prefix=no
18165  fi
18166  need_version=yes
18167  ;;
18168
18169sysv4 | sysv4.3*)
18170  version_type=linux # correct to gnu/linux during the next big refactor
18171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18172  soname_spec='$libname$release$shared_ext$major'
18173  shlibpath_var=LD_LIBRARY_PATH
18174  case $host_vendor in
18175    sni)
18176      shlibpath_overrides_runpath=no
18177      need_lib_prefix=no
18178      runpath_var=LD_RUN_PATH
18179      ;;
18180    siemens)
18181      need_lib_prefix=no
18182      ;;
18183    motorola)
18184      need_lib_prefix=no
18185      need_version=no
18186      shlibpath_overrides_runpath=no
18187      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18188      ;;
18189  esac
18190  ;;
18191
18192sysv4*MP*)
18193  if test -d /usr/nec; then
18194    version_type=linux # correct to gnu/linux during the next big refactor
18195    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18196    soname_spec='$libname$shared_ext.$major'
18197    shlibpath_var=LD_LIBRARY_PATH
18198  fi
18199  ;;
18200
18201sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18202  version_type=sco
18203  need_lib_prefix=no
18204  need_version=no
18205  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18206  soname_spec='$libname$release$shared_ext$major'
18207  shlibpath_var=LD_LIBRARY_PATH
18208  shlibpath_overrides_runpath=yes
18209  hardcode_into_libs=yes
18210  if test yes = "$with_gnu_ld"; then
18211    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18212  else
18213    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18214    case $host_os in
18215      sco3.2v5*)
18216        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18217	;;
18218    esac
18219  fi
18220  sys_lib_dlsearch_path_spec='/usr/lib'
18221  ;;
18222
18223tpf*)
18224  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18225  version_type=linux # correct to gnu/linux during the next big refactor
18226  need_lib_prefix=no
18227  need_version=no
18228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18229  shlibpath_var=LD_LIBRARY_PATH
18230  shlibpath_overrides_runpath=no
18231  hardcode_into_libs=yes
18232  ;;
18233
18234uts4*)
18235  version_type=linux # correct to gnu/linux during the next big refactor
18236  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18237  soname_spec='$libname$release$shared_ext$major'
18238  shlibpath_var=LD_LIBRARY_PATH
18239  ;;
18240
18241*)
18242  dynamic_linker=no
18243  ;;
18244esac
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18246$as_echo "$dynamic_linker" >&6; }
18247test no = "$dynamic_linker" && can_build_shared=no
18248
18249variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18250if test yes = "$GCC"; then
18251  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18252fi
18253
18254if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18255  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18256fi
18257
18258if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18259  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18260fi
18261
18262# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18263configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18264
18265# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18266func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18267
18268# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18269configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18311$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18312hardcode_action_CXX=
18313if test -n "$hardcode_libdir_flag_spec_CXX" ||
18314   test -n "$runpath_var_CXX" ||
18315   test yes = "$hardcode_automatic_CXX"; then
18316
18317  # We can hardcode non-existent directories.
18318  if test no != "$hardcode_direct_CXX" &&
18319     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18320     # have to relink, otherwise we might link with an installed library
18321     # when we should be linking with a yet-to-be-installed one
18322     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18323     test no != "$hardcode_minus_L_CXX"; then
18324    # Linking always hardcodes the temporary library directory.
18325    hardcode_action_CXX=relink
18326  else
18327    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18328    hardcode_action_CXX=immediate
18329  fi
18330else
18331  # We cannot hardcode anything, or else we can only hardcode existing
18332  # directories.
18333  hardcode_action_CXX=unsupported
18334fi
18335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18336$as_echo "$hardcode_action_CXX" >&6; }
18337
18338if test relink = "$hardcode_action_CXX" ||
18339   test yes = "$inherit_rpath_CXX"; then
18340  # Fast installation is not supported
18341  enable_fast_install=no
18342elif test yes = "$shlibpath_overrides_runpath" ||
18343     test no = "$enable_shared"; then
18344  # Fast installation is not necessary
18345  enable_fast_install=needless
18346fi
18347
18348
18349
18350
18351
18352
18353
18354  fi # test -n "$compiler"
18355
18356  CC=$lt_save_CC
18357  CFLAGS=$lt_save_CFLAGS
18358  LDCXX=$LD
18359  LD=$lt_save_LD
18360  GCC=$lt_save_GCC
18361  with_gnu_ld=$lt_save_with_gnu_ld
18362  lt_cv_path_LDCXX=$lt_cv_path_LD
18363  lt_cv_path_LD=$lt_save_path_LD
18364  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18365  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18366fi # test yes != "$_lt_caught_CXX_error"
18367
18368ac_ext=c
18369ac_cpp='$CPP $CPPFLAGS'
18370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18372ac_compiler_gnu=$ac_cv_c_compiler_gnu
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388        ac_config_commands="$ac_config_commands libtool"
18389
18390
18391
18392
18393# Only expand once:
18394
18395
18396# Check whether --enable-experimental-libtool was given.
18397if test "${enable_experimental_libtool+set}" = set; then :
18398  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
18399else
18400  experimental_libtool=no
18401fi
18402
18403
18404if test "$experimental_libtool" = "yes"; then
18405  echo "using APR's libtool"
18406  sh_libtool="`$apr_config --apr-libtool`"
18407  LIBTOOL="$sh_libtool"
18408  SVN_LIBTOOL="$sh_libtool"
18409else
18410  sh_libtool="$abs_builddir/libtool"
18411  SVN_LIBTOOL="\$(SHELL) \"$sh_libtool\""
18412fi
18413
18414
18415lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
18416lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
18417lt_major_version=`echo $lt_version | cut -d'.' -f 1`
18418
18419svn_enable_static=yes
18420svn_enable_shared=yes
18421
18422# Check whether --enable-static was given.
18423if test "${enable_static+set}" = set; then :
18424  enableval=$enable_static; svn_enable_static="$enableval"
18425else
18426  svn_enable_static="yes"
18427fi
18428
18429
18430# Check whether --enable-shared was given.
18431if test "${enable_shared+set}" = set; then :
18432  enableval=$enable_shared; svn_enable_shared="$enableval"
18433else
18434  svn_enable_shared="yes"
18435fi
18436
18437
18438if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
18439  { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
18440$as_echo "$as_me: building both shared and static libraries" >&6;}
18441elif test "$svn_enable_static" = "yes" ; then
18442  { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
18443$as_echo "$as_me: building static libraries only" >&6;}
18444  LT_CFLAGS="-static $LT_CFLAGS"
18445  LT_LDFLAGS="-static $LT_LDFLAGS"
18446elif test "$svn_enable_shared" = "yes" ; then
18447  { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
18448$as_echo "$as_me: building shared libraries only" >&6;}
18449  if test "$lt_major_version" = "1" ; then
18450    LT_CFLAGS="-prefer-pic $LT_CFLAGS"
18451  elif test "$lt_major_version" = "2" ; then
18452    LT_CFLAGS="-shared $LT_CFLAGS"
18453  fi
18454  LT_LDFLAGS="-shared $LT_LDFLAGS"
18455else
18456  as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
18457fi
18458
18459# Check whether --enable-all-static was given.
18460if test "${enable_all_static+set}" = set; then :
18461  enableval=$enable_all_static;
18462    if test "$enableval" = "yes" ; then
18463      LT_LDFLAGS="-all-static $LT_LDFLAGS"
18464    elif test "$enableval" != "no" ; then
18465      as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
18466    fi
18467
18468fi
18469
18470
18471
18472
18473
18474# Check whether --enable-local-library-preloading was given.
18475if test "${enable_local_library_preloading+set}" = set; then :
18476  enableval=$enable_local_library_preloading;
18477  if test "$enableval" != "no"; then
18478    if test "$svn_enable_shared" = "yes"; then
18479      TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
18480    else
18481      as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
18482    fi
18483  else
18484    TRANSFORM_LIBTOOL_SCRIPTS=""
18485  fi
18486
18487else
18488
18489  TRANSFORM_LIBTOOL_SCRIPTS=""
18490
18491fi
18492
18493
18494
18495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
18496$as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
18497case $host in
18498  *-*-cygwin*)
18499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18500$as_echo "yes" >&6; }
18501    LT_NO_UNDEFINED="-no-undefined"
18502    ;;
18503  *)
18504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18505$as_echo "no" >&6; }
18506    LT_NO_UNDEFINED=""
18507    ;;
18508esac
18509
18510
18511trang=yes
18512
18513# Check whether --with-trang was given.
18514if test "${with_trang+set}" = set; then :
18515  withval=$with_trang;
18516    trang="$withval"
18517
18518fi
18519
18520if test "$trang" = "yes"; then
18521    # Extract the first word of "trang", so it can be a program name with args.
18522set dummy trang; ac_word=$2
18523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18524$as_echo_n "checking for $ac_word... " >&6; }
18525if ${ac_cv_path_TRANG+:} false; then :
18526  $as_echo_n "(cached) " >&6
18527else
18528  case $TRANG in
18529  [\\/]* | ?:[\\/]*)
18530  ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
18531  ;;
18532  *)
18533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18534for as_dir in $PATH
18535do
18536  IFS=$as_save_IFS
18537  test -z "$as_dir" && as_dir=.
18538    for ac_exec_ext in '' $ac_executable_extensions; do
18539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18540    ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
18541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18542    break 2
18543  fi
18544done
18545  done
18546IFS=$as_save_IFS
18547
18548  test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
18549  ;;
18550esac
18551fi
18552TRANG=$ac_cv_path_TRANG
18553if test -n "$TRANG"; then
18554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
18555$as_echo "$TRANG" >&6; }
18556else
18557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18558$as_echo "no" >&6; }
18559fi
18560
18561
18562else
18563    TRANG="$trang"
18564
18565fi
18566
18567doxygen=yes
18568
18569# Check whether --with-doxygen was given.
18570if test "${with_doxygen+set}" = set; then :
18571  withval=$with_doxygen;
18572    doxygen="$withval"
18573
18574fi
18575
18576if test "$doxygen" = "yes"; then
18577    # Extract the first word of "doxygen", so it can be a program name with args.
18578set dummy doxygen; ac_word=$2
18579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18580$as_echo_n "checking for $ac_word... " >&6; }
18581if ${ac_cv_path_DOXYGEN+:} false; then :
18582  $as_echo_n "(cached) " >&6
18583else
18584  case $DOXYGEN in
18585  [\\/]* | ?:[\\/]*)
18586  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18587  ;;
18588  *)
18589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18590for as_dir in $PATH
18591do
18592  IFS=$as_save_IFS
18593  test -z "$as_dir" && as_dir=.
18594    for ac_exec_ext in '' $ac_executable_extensions; do
18595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18596    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18598    break 2
18599  fi
18600done
18601  done
18602IFS=$as_save_IFS
18603
18604  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
18605  ;;
18606esac
18607fi
18608DOXYGEN=$ac_cv_path_DOXYGEN
18609if test -n "$DOXYGEN"; then
18610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18611$as_echo "$DOXYGEN" >&6; }
18612else
18613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614$as_echo "no" >&6; }
18615fi
18616
18617
18618else
18619    DOXYGEN="$doxygen"
18620
18621fi
18622
18623
18624
18625
18626
18627# Check whether --with-expat was given.
18628if test "${with_expat+set}" = set; then :
18629  withval=$with_expat; svn_lib_expat="$withval"
18630else
18631  svn_lib_expat="::expat"
18632fi
18633
18634
18635# APR-util accepts "builtin" as an argument to this option so if the user
18636# passed "builtin" pretend the user didn't specify the --with-expat option
18637# at all. Expat will (hopefully) be found in apr-util.
18638test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
18639
18640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
18641$as_echo_n "checking for Expat... " >&6; }
18642if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
18643  SVN_XML_INCLUDES=""
18644  for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
18645    SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
18646  done
18647  SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
18648  for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
18649    LDFLAGS="$LDFLAGS -L$l"
18650  done
18651  for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18652    SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
18653  done
18654  SVN_XML_LIBS="${SVN_XML_LIBS## }"
18655  old_CPPFLAGS="$CPPFLAGS"
18656  old_LIBS="$LIBS"
18657  CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
18658  LIBS="$LIBS $SVN_XML_LIBS"
18659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660/* end confdefs.h.  */
18661
18662#include <expat.h>
18663int main()
18664{XML_ParserCreate(NULL);}
18665_ACEOF
18666if ac_fn_c_try_link "$LINENO"; then :
18667  svn_lib_expat="yes"
18668else
18669  svn_lib_expat="no"
18670fi
18671rm -f core conftest.err conftest.$ac_objext \
18672    conftest$ac_exeext conftest.$ac_ext
18673  LIBS="$old_LIBS"
18674  if test "$svn_lib_expat" = "yes"; then
18675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18676$as_echo "yes" >&6; }
18677  else
18678    SVN_XML_INCLUDES=""
18679    SVN_XML_LIBS=""
18680    CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
18681    if test "$enable_all_static" != "yes"; then
18682      SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
18683    fi
18684    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685/* end confdefs.h.  */
18686
18687#include <expat.h>
18688int main()
18689{XML_ParserCreate(NULL);}
18690_ACEOF
18691if ac_fn_c_try_compile "$LINENO"; then :
18692  svn_lib_expat="yes"
18693else
18694  svn_lib_expat="no"
18695fi
18696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697    if test "$svn_lib_expat" = "yes"; then
18698      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18699$as_echo "yes" >&6; }
18700      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&5
18701$as_echo "$as_me: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&2;}
18702    else
18703      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704$as_echo "no" >&6; }
18705      as_fn_error $? "Expat not found" "$LINENO" 5
18706    fi
18707  fi
18708  CPPFLAGS="$old_CPPFLAGS"
18709else
18710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18711$as_echo "no" >&6; }
18712  if test "$svn_lib_expat" = "yes"; then
18713    as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
18714  elif test "$svn_lib_expat" = "no"; then
18715    as_fn_error $? "Expat is required" "$LINENO" 5
18716  else
18717    as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
18718  fi
18719fi
18720
18721
18722
18723
18724# Berkeley DB on SCO OpenServer needs -lsocket
18725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18726$as_echo_n "checking for socket in -lsocket... " >&6; }
18727if ${ac_cv_lib_socket_socket+:} false; then :
18728  $as_echo_n "(cached) " >&6
18729else
18730  ac_check_lib_save_LIBS=$LIBS
18731LIBS="-lsocket  $LIBS"
18732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733/* end confdefs.h.  */
18734
18735/* Override any GCC internal prototype to avoid an error.
18736   Use char because int might match the return type of a GCC
18737   builtin and then its argument prototype would still apply.  */
18738#ifdef __cplusplus
18739extern "C"
18740#endif
18741char socket ();
18742int
18743main ()
18744{
18745return socket ();
18746  ;
18747  return 0;
18748}
18749_ACEOF
18750if ac_fn_c_try_link "$LINENO"; then :
18751  ac_cv_lib_socket_socket=yes
18752else
18753  ac_cv_lib_socket_socket=no
18754fi
18755rm -f core conftest.err conftest.$ac_objext \
18756    conftest$ac_exeext conftest.$ac_ext
18757LIBS=$ac_check_lib_save_LIBS
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18760$as_echo "$ac_cv_lib_socket_socket" >&6; }
18761if test "x$ac_cv_lib_socket_socket" = xyes; then :
18762  cat >>confdefs.h <<_ACEOF
18763#define HAVE_LIBSOCKET 1
18764_ACEOF
18765
18766  LIBS="-lsocket $LIBS"
18767
18768fi
18769
18770
18771# Build the BDB filesystem library only if we have an appropriate
18772# version of Berkeley DB.
18773case "$host" in
18774powerpc-apple-darwin*)
18775    # Berkeley DB 4.0 does not work on OS X.
18776    SVN_FS_WANT_DB_MAJOR=4
18777    SVN_FS_WANT_DB_MINOR=1
18778    SVN_FS_WANT_DB_PATCH=25
18779    ;;
18780*)
18781    SVN_FS_WANT_DB_MAJOR=4
18782    SVN_FS_WANT_DB_MINOR=0
18783    SVN_FS_WANT_DB_PATCH=14
18784    ;;
18785esac
18786db_alt_version="5.x"
18787# Look for libdb4.so first:
18788
18789  db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
18790
18791
18792# Check whether --with-berkeley-db was given.
18793if test "${with_berkeley_db+set}" = set; then :
18794  withval=$with_berkeley_db;
18795    if test "$withval" = "no"; then
18796      bdb_status=skip
18797    elif test "$withval" = "yes"; then
18798      apu_db_version="`$apu_config --db-version`"
18799      if test $? -ne 0; then
18800        as_fn_error $? "Can't determine whether apr-util is linked against a
18801                      proper version of Berkeley DB." "$LINENO" 5
18802      fi
18803
18804      if test "$withval" = "yes"; then
18805        if test "$apu_db_version" -lt "4"; then
18806          as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
18807                        while version 4 or higher is required.  Reinstall
18808                        APR-UTIL with the appropriate options." "$LINENO" 5
18809        fi
18810
18811        bdb_status=required
18812
18813      elif test "$apu_found" != "reconfig"; then
18814        if test "$apu_db_version" -lt 4; then
18815          as_fn_error $? "APR-UTIL was installed independently, it won't be
18816                        possible to use the specified Berkeley DB: $withval" "$LINENO" 5
18817        fi
18818
18819        bdb_status=required
18820      fi
18821    else
18822      if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
18823        svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
18824        SVN_DB_INCLUDES=""
18825        for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
18826          SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
18827        done
18828        SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
18829        for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
18830          LDFLAGS="$LDFLAGS `
18831  input_flags="-L$l"
18832  output_flags=""
18833  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18834  for flag in $input_flags; do
18835    filter="no"
18836    for dir in $filtered_dirs; do
18837      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18838        filter="yes"
18839        break
18840      fi
18841    done
18842    if test "$filter" = "no"; then
18843      output_flags="$output_flags $flag"
18844    fi
18845  done
18846  if test -n "$output_flags"; then
18847    printf "%s" "${output_flags# }"
18848  fi
18849`"
18850        done
18851        SVN_DB_LIBS=""
18852        for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18853          SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
18854        done
18855        SVN_DB_LIBS="${SVN_DB_LIBS## }"
18856
18857        bdb_status=required
18858      else
18859        as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
18860      fi
18861    fi
18862
18863else
18864
18865    # No --with-berkeley-db option:
18866    #
18867    # Check if APR-UTIL is providing the correct Berkeley DB version
18868    # for us.
18869    #
18870    apu_db_version="`$apu_config --db-version`"
18871    if test $? -ne 0; then
18872      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
18873                   whether apr-util is linked against Berkeley DB
18874                   $db_version" >&5
18875$as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
18876                   whether apr-util is linked against Berkeley DB
18877                   $db_version" >&2;}
18878      bdb_status=try-link
18879    elif test "$apu_db_version" -lt "4"; then
18880      bdb_status=skip
18881    else
18882      bdb_status=try-link
18883    fi
18884
18885fi
18886
18887
18888  if test "$bdb_status" = "skip"; then
18889    svn_lib_berkeley_db=no
18890  else
18891    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18892$as_echo_n "checking for availability of Berkeley DB... " >&6; }
18893    # Check whether --enable-bdb6 was given.
18894if test "${enable_bdb6+set}" = set; then :
18895  enableval=$enable_bdb6; enable_bdb6=$enableval
18896else
18897  enable_bdb6=unspecified
18898fi
18899
18900
18901
18902    svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18903    svn_lib_berkeley_db_try_save_libs="$LIBS"
18904
18905    svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18906    svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18907    svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18908    enable_bdb6=$enable_bdb6
18909
18910   if test -z "$SVN_DB_LIBS"; then
18911      # We pass --dbm-libs here since Debian has modified apu-config not
18912      # to return -ldb unless --dbm-libs is passed.  This may also produce
18913      # extra output beyond -ldb but since we're only filtering for -ldb
18914      # it won't matter to us.  However, --dbm-libs was added to apu-config
18915      # in 1.3.8 so it's possible the version we have doesn't support it
18916      # so fallback without it if we get an error.
18917      svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18918      if test $? -ne 0; then
18919        svn_db_libs_prefiltered="`$apu_config --libs`"
18920      fi
18921
18922      # Extract only the -ldb.* flag from the libs supplied by apu-config
18923      # Otherwise we get bit by the fact that expat might not be built yet
18924      # Or that it resides in a non-standard location which we would have
18925      # to compensate with using something like -R`$apu_config --prefix`/lib.
18926      #
18927      SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18928    fi
18929
18930    CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18931    LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18932
18933    if test -n "$svn_berkeley_db_header"; then
18934      SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18935      svn_db_header="#include <$svn_berkeley_db_header>"
18936    else
18937      SVN_DB_HEADER="#include <apu_want.h>"
18938      svn_db_header="#define APU_WANT_DB
18939#include <apu_want.h>"
18940    fi
18941
18942
18943
18944    if test "$cross_compiling" = yes; then :
18945  svn_have_berkeley_db=yes
18946
18947else
18948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18949/* end confdefs.h.  */
18950
18951#include <string.h>
18952#include <stdlib.h>
18953$svn_db_header
18954
18955int main ()
18956{
18957  int major, minor, patch;
18958
18959  db_version (&major, &minor, &patch);
18960
18961  /* Sanity check: ensure that db.h constants actually match the db library */
18962  if (major != DB_VERSION_MAJOR
18963      || minor != DB_VERSION_MINOR
18964      || patch != DB_VERSION_PATCH)
18965    exit (1);
18966
18967  /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18968     and newer are under the AGPL, and we want use of AGPL dependencies to be
18969     opt-in. */
18970  if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18971    exit(2);
18972
18973  /* Run-time check:  ensure the library claims to be the correct version. */
18974
18975  if (major < $svn_check_berkeley_db_major)
18976    exit (1);
18977  if (major > $svn_check_berkeley_db_major)
18978    exit (0);
18979
18980  if (minor < $svn_check_berkeley_db_minor)
18981    exit (1);
18982  if (minor > $svn_check_berkeley_db_minor)
18983    exit (0);
18984
18985  if (patch >= $svn_check_berkeley_db_patch)
18986    exit (0);
18987  else
18988    exit (1);
18989}
18990
18991_ACEOF
18992if ac_fn_c_try_run "$LINENO"; then :
18993  svn_have_berkeley_db=yes
18994else
18995  rc=$?
18996       svn_have_berkeley_db=no
18997       if test $rc = 2; then
18998         svn_have_berkeley_db=no6
18999       fi
19000fi
19001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19002  conftest.$ac_objext conftest.beam conftest.$ac_ext
19003fi
19004
19005
19006  CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
19007  LIBS="$svn_lib_berkeley_db_try_save_libs"
19008
19009
19010    if test "$svn_have_berkeley_db" = "yes"; then
19011      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19012$as_echo "yes" >&6; }
19013      svn_lib_berkeley_db=yes
19014    else
19015      if test "$svn_have_berkeley_db" = "no6"; then
19016        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
19017$as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
19018        # A warning will be printed at the end of configure.ac.
19019      else
19020        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19021$as_echo "no" >&6; }
19022      fi
19023      svn_lib_berkeley_db=no
19024      if test "$bdb_status" = "required"; then
19025        as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
19026      fi
19027    fi
19028  fi
19029
19030
19031
19032cat >>confdefs.h <<_ACEOF
19033#define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
19034_ACEOF
19035
19036
19037cat >>confdefs.h <<_ACEOF
19038#define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
19039_ACEOF
19040
19041
19042cat >>confdefs.h <<_ACEOF
19043#define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
19044_ACEOF
19045
19046
19047
19048
19049
19050
19051
19052# Check whether --with-sasl was given.
19053if test "${with_sasl+set}" = set; then :
19054  withval=$with_sasl;
19055    with_sasl="$withval"
19056    required="yes"
19057
19058else
19059
19060    with_sasl="yes"
19061    required="no"
19062
19063fi
19064
19065
19066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
19067$as_echo_n "checking whether to look for SASL... " >&6; }
19068
19069  if test "${with_sasl}" = "no"; then
19070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19071$as_echo "no" >&6; }
19072    svn_lib_sasl=no
19073  else
19074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19075$as_echo "yes" >&6; }
19076    saved_LDFLAGS="$LDFLAGS"
19077    saved_CPPFLAGS="$CPPFLAGS"
19078
19079    if test "$with_sasl" = "yes"; then
19080      { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
19081$as_echo "$as_me: Looking in default locations" >&6;}
19082      ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19083if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19084  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19085if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19087$as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19088if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19089  $as_echo_n "(cached) " >&6
19090else
19091  ac_check_lib_save_LIBS=$LIBS
19092LIBS="-lsasl2  $LIBS"
19093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094/* end confdefs.h.  */
19095
19096/* Override any GCC internal prototype to avoid an error.
19097   Use char because int might match the return type of a GCC
19098   builtin and then its argument prototype would still apply.  */
19099#ifdef __cplusplus
19100extern "C"
19101#endif
19102char prop_get ();
19103int
19104main ()
19105{
19106return prop_get ();
19107  ;
19108  return 0;
19109}
19110_ACEOF
19111if ac_fn_c_try_link "$LINENO"; then :
19112  ac_cv_lib_sasl2_prop_get=yes
19113else
19114  ac_cv_lib_sasl2_prop_get=no
19115fi
19116rm -f core conftest.err conftest.$ac_objext \
19117    conftest$ac_exeext conftest.$ac_ext
19118LIBS=$ac_check_lib_save_LIBS
19119fi
19120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19121$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19122if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19123  svn_lib_sasl=yes
19124else
19125  svn_lib_sasl=no
19126fi
19127
19128else
19129  svn_lib_sasl=no
19130fi
19131
19132
19133else
19134  svn_lib_sasl=no
19135fi
19136
19137
19138      if test "$svn_lib_sasl" = "no"; then
19139        with_sasl="/usr/local"
19140      fi
19141    else
19142      svn_lib_sasl=no
19143    fi
19144
19145    if test "$svn_lib_sasl" = "no"; then
19146      SVN_SASL_INCLUDES="-I${with_sasl}/include"
19147      CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
19148      LDFLAGS="$LDFLAGS `
19149  input_flags="-L${with_sasl}/lib"
19150  output_flags=""
19151  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19152  for flag in $input_flags; do
19153    filter="no"
19154    for dir in $filtered_dirs; do
19155      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19156        filter="yes"
19157        break
19158      fi
19159    done
19160    if test "$filter" = "no"; then
19161      output_flags="$output_flags $flag"
19162    fi
19163  done
19164  if test -n "$output_flags"; then
19165    printf "%s" "${output_flags# }"
19166  fi
19167`"
19168
19169      ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19170if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19171  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
19172if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
19173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
19174$as_echo_n "checking for prop_get in -lsasl2... " >&6; }
19175if ${ac_cv_lib_sasl2_prop_get+:} false; then :
19176  $as_echo_n "(cached) " >&6
19177else
19178  ac_check_lib_save_LIBS=$LIBS
19179LIBS="-lsasl2  $LIBS"
19180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181/* end confdefs.h.  */
19182
19183/* Override any GCC internal prototype to avoid an error.
19184   Use char because int might match the return type of a GCC
19185   builtin and then its argument prototype would still apply.  */
19186#ifdef __cplusplus
19187extern "C"
19188#endif
19189char prop_get ();
19190int
19191main ()
19192{
19193return prop_get ();
19194  ;
19195  return 0;
19196}
19197_ACEOF
19198if ac_fn_c_try_link "$LINENO"; then :
19199  ac_cv_lib_sasl2_prop_get=yes
19200else
19201  ac_cv_lib_sasl2_prop_get=no
19202fi
19203rm -f core conftest.err conftest.$ac_objext \
19204    conftest$ac_exeext conftest.$ac_ext
19205LIBS=$ac_check_lib_save_LIBS
19206fi
19207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
19208$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
19209if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
19210  svn_lib_sasl=yes
19211else
19212  svn_lib_sasl=no
19213fi
19214
19215else
19216  svn_lib_sasl=no
19217fi
19218
19219
19220else
19221  svn_lib_sasl=no
19222fi
19223
19224
19225    fi
19226
19227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
19228$as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
19229    if test "$svn_lib_sasl" = "yes"; then
19230      SVN_SASL_LIBS="-lsasl2"
19231      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232$as_echo "yes" >&6; }
19233    else
19234      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235$as_echo "no" >&6; }
19236
19237      if test "$required" = "yes"; then
19238                        as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
19239      fi
19240
19241      SVN_SASL_INCLUDES=""
19242      LDFLAGS="$saved_LDFLAGS"
19243    fi
19244
19245    CPPFLAGS="$saved_CPPFLAGS"
19246  fi
19247
19248
19249
19250
19251
19252if test "$svn_lib_sasl" = "yes"; then
19253
19254$as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
19255
19256fi
19257
19258
19259
19260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
19261$as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
19262  if test "$cross_compiling" = yes; then :
19263  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19265as_fn_error $? "cannot run test program while cross compiling
19266See \`config.log' for more details" "$LINENO" 5; }
19267else
19268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269/* end confdefs.h.  */
19270
19271    #include <mach-o/dyld.h>
19272    #include <mach-o/loader.h>
19273
19274int
19275main ()
19276{
19277
19278    const struct mach_header *header = _dyld_get_image_header(0);
19279    const char *name = _dyld_get_image_name(0);
19280    if (name && header) return 0;
19281    return 1;
19282
19283  ;
19284  return 0;
19285}
19286_ACEOF
19287if ac_fn_c_try_run "$LINENO"; then :
19288
19289
19290$as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
19291
19292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19293$as_echo "yes" >&6; }
19294
19295else
19296
19297    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19298$as_echo "no" >&6; }
19299
19300fi
19301rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19302  conftest.$ac_objext conftest.beam conftest.$ac_ext
19303fi
19304
19305
19306
19307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
19308$as_echo_n "checking for Mac OS property list utilities... " >&6; }
19309
19310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311/* end confdefs.h.  */
19312
19313    #include <AvailabilityMacros.h>
19314    #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19315     || !defined(MAC_OS_X_VERSION_10_0) \
19316     || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
19317    #error ProperyList API unavailable.
19318    #endif
19319
19320int
19321main ()
19322{
19323
19324  ;
19325  return 0;
19326}
19327_ACEOF
19328if ac_fn_c_try_compile "$LINENO"; then :
19329
19330
19331    LIBS="$LIBS -framework CoreFoundation"
19332
19333$as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
19334
19335    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19336$as_echo "yes" >&6; }
19337
19338else
19339
19340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19341$as_echo "no" >&6; }
19342
19343fi
19344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345
19346
19347  # Check whether --enable-keychain was given.
19348if test "${enable_keychain+set}" = set; then :
19349  enableval=$enable_keychain; enable_keychain=$enableval
19350else
19351  enable_keychain=yes
19352fi
19353
19354
19355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
19356$as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
19357
19358  if test "$enable_keychain" = "yes"; then
19359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360/* end confdefs.h.  */
19361
19362      #include <AvailabilityMacros.h>
19363      #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
19364       || !defined(MAC_OS_X_VERSION_10_2) \
19365       || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
19366      #error KeyChain API unavailable.
19367      #endif
19368
19369int
19370main ()
19371{
19372
19373  ;
19374  return 0;
19375}
19376_ACEOF
19377if ac_fn_c_try_compile "$LINENO"; then :
19378
19379            LIBS="$LIBS -framework Security"
19380      LIBS="$LIBS -framework CoreServices"
19381
19382$as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
19383
19384      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19385$as_echo "yes" >&6; }
19386
19387else
19388
19389      enable_keychain=no
19390      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19391$as_echo "no" >&6; }
19392
19393fi
19394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19395  fi
19396
19397
19398
19399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
19400$as_echo_n "checking whether APR has support for DSOs... " >&6; }
19401old_CPPFLAGS="$CPPFLAGS"
19402CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
19403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19404/* end confdefs.h.  */
19405
19406#include <apr.h>
19407#if !APR_HAS_DSO
19408#error
19409#endif
19410_ACEOF
19411if ac_fn_c_try_cpp "$LINENO"; then :
19412  APR_HAS_DSO="yes"
19413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19414$as_echo "yes" >&6; }
19415else
19416  APR_HAS_DSO="no"
19417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19418$as_echo "no" >&6; }
19419fi
19420rm -f conftest.err conftest.i conftest.$ac_ext
19421CPPFLAGS="$old_CPPFLAGS"
19422
19423
19424
19425if test -n "$PKG_CONFIG"; then
19426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
19427$as_echo_n "checking for D-Bus .pc file... " >&6; }
19428  if $PKG_CONFIG --exists dbus-1; then
19429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19430$as_echo "yes" >&6; }
19431    old_CPPFLAGS="$CPPFLAGS"
19432    old_LIBS="$LIBS"
19433    DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
19434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
19435$as_echo_n "checking D-Bus version... " >&6; }
19436    DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
19437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
19438$as_echo "$DBUS_VERSION" >&6; }
19439    # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
19440    if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
19441      DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
19442    fi
19443    DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
19444    CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
19445    LIBS="$LIBS $DBUS_LIBS"
19446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
19447$as_echo_n "checking for D-Bus... " >&6; }
19448    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449/* end confdefs.h.  */
19450
19451#include <dbus/dbus.h>
19452int main()
19453{dbus_bus_get(DBUS_BUS_SESSION, NULL);}
19454_ACEOF
19455if ac_fn_c_try_link "$LINENO"; then :
19456  HAVE_DBUS="yes"
19457else
19458  HAVE_DBUS="no"
19459fi
19460rm -f core conftest.err conftest.$ac_objext \
19461    conftest$ac_exeext conftest.$ac_ext
19462    if test "$HAVE_DBUS" = "yes"; then
19463      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19464$as_echo "yes" >&6; }
19465    else
19466      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467$as_echo "no" >&6; }
19468    fi
19469    CPPFLAGS="$old_CPPFLAGS"
19470    LIBS="$old_LIBS"
19471  else
19472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19473$as_echo "no" >&6; }
19474  fi
19475fi
19476
19477
19478
19479# Check whether --with-gpg_agent was given.
19480if test "${with_gpg_agent+set}" = set; then :
19481  withval=$with_gpg_agent;
19482else
19483  with_gpg_agent=yes
19484fi
19485
19486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
19487$as_echo_n "checking whether to support GPG-Agent... " >&6; }
19488if test "$with_gpg_agent" = "yes"; then
19489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19490$as_echo "yes" >&6; }
19491
19492$as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
19493
19494else
19495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19496$as_echo "no" >&6; }
19497fi
19498
19499
19500
19501
19502
19503# Check whether --with-gnome_keyring was given.
19504if test "${with_gnome_keyring+set}" = set; then :
19505  withval=$with_gnome_keyring; with_gnome_keyring="$withval"
19506else
19507  with_gnome_keyring=auto
19508fi
19509
19510
19511found_gnome_keyring=no
19512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
19513$as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
19514if test "$with_gnome_keyring" != "no"; then
19515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19516$as_echo "yes" >&6; }
19517  case "$host" in
19518  *-*-darwin*)
19519    if test "$with_gnome_keyring" = "yes"; then
19520      as_fn_error $? "--with-gnome-keyring is not supported on Mac OS X." "$LINENO" 5
19521    else
19522      with_gnome_keyring=no
19523    fi
19524    ;;
19525  *)
19526    if test "$svn_enable_shared" = "yes"; then
19527      if test "$APR_HAS_DSO" = "yes"; then
19528        if test -n "$PKG_CONFIG"; then
19529          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
19530$as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
19531          if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
19532            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19533$as_echo "yes" >&6; }
19534            old_CPPFLAGS="$CPPFLAGS"
19535            SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
19536            CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
19537            ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
19538if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
19539  found_gnome_keyring=yes
19540else
19541  found_gnome_keyring=no
19542fi
19543
19544
19545            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
19546$as_echo_n "checking for GNOME Keyring... " >&6; }
19547            if test "$found_gnome_keyring" = "yes"; then
19548              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19549$as_echo "yes" >&6; }
19550
19551$as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
19552
19553              CPPFLAGS="$old_CPPFLAGS"
19554              SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
19555            else
19556              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557$as_echo "no" >&6; }
19558              if test "$with_gnome_keyring" = "yes"; then
19559                as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
19560              fi
19561            fi
19562          else
19563            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564$as_echo "no" >&6; }
19565            if test "$with_gnome_keyring" = "yes"; then
19566              as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
19567            else
19568              with_gnome_keyring=no
19569            fi
19570          fi
19571        else
19572          if test "$with_gnome_keyring" = "yes"; then
19573            as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
19574          else
19575            with_gnome_keyring=no
19576          fi
19577        fi
19578      else
19579        if test "$with_gnome_keyring" = "yes"; then
19580          as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
19581        else
19582          with_gnome_keyring=no
19583        fi
19584      fi
19585    else
19586      if test "$with_gnome_keyring" = "yes"; then
19587        as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
19588      else
19589        with_gnome_keyring=no
19590      fi
19591    fi
19592    ;;
19593  esac
19594else
19595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19596$as_echo "no" >&6; }
19597fi
19598
19599
19600
19601# Check whether --enable-gmock was given.
19602if test "${enable_gmock+set}" = set; then :
19603  enableval=$enable_gmock;
19604else
19605  enable_gmock=yes
19606fi
19607
19608
19609GMOCK_SRCDIR=$abs_srcdir/gmock-fused
19610
19611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use Googlemock" >&5
19612$as_echo_n "checking whether use Googlemock... " >&6; }
19613if test "$enable_gmock" != "no"; then
19614  if test -d "$GMOCK_SRCDIR"; then
19615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19616$as_echo "yes" >&6; }
19617    SVN_USE_GMOCK=true
19618  else
19619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19620$as_echo "no" >&6; }
19621    SVN_USE_GMOCK=false
19622  fi
19623else
19624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19625$as_echo "no" >&6; }
19626  SVN_USE_GMOCK_SOURCES=false
19627fi
19628
19629
19630# Check whether --enable-ev2-impl was given.
19631if test "${enable_ev2_impl+set}" = set; then :
19632  enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
19633else
19634  enable_ev2_impl=no
19635fi
19636
19637if test "$enable_ev2_impl" = "yes"; then
19638
19639$as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
19640
19641fi
19642
19643
19644
19645# Check whether --enable-nls was given.
19646if test "${enable_nls+set}" = set; then :
19647  enableval=$enable_nls; enable_nls=$enableval
19648else
19649  enable_nls=yes
19650fi
19651
19652
19653USE_NLS="no"
19654SVN_INTL_LIBS=""
19655if test "$enable_nls" = "yes"; then
19656    # Extract the first word of "msgfmt", so it can be a program name with args.
19657set dummy msgfmt; ac_word=$2
19658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19659$as_echo_n "checking for $ac_word... " >&6; }
19660if ${ac_cv_path_MSGFMT+:} false; then :
19661  $as_echo_n "(cached) " >&6
19662else
19663  case $MSGFMT in
19664  [\\/]* | ?:[\\/]*)
19665  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19666  ;;
19667  *)
19668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669for as_dir in $PATH
19670do
19671  IFS=$as_save_IFS
19672  test -z "$as_dir" && as_dir=.
19673    for ac_exec_ext in '' $ac_executable_extensions; do
19674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19675    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19677    break 2
19678  fi
19679done
19680  done
19681IFS=$as_save_IFS
19682
19683  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
19684  ;;
19685esac
19686fi
19687MSGFMT=$ac_cv_path_MSGFMT
19688if test -n "$MSGFMT"; then
19689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19690$as_echo "$MSGFMT" >&6; }
19691else
19692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19693$as_echo "no" >&6; }
19694fi
19695
19696
19697  # Extract the first word of "msgmerge", so it can be a program name with args.
19698set dummy msgmerge; ac_word=$2
19699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19700$as_echo_n "checking for $ac_word... " >&6; }
19701if ${ac_cv_path_MSGMERGE+:} false; then :
19702  $as_echo_n "(cached) " >&6
19703else
19704  case $MSGMERGE in
19705  [\\/]* | ?:[\\/]*)
19706  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19707  ;;
19708  *)
19709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19710for as_dir in $PATH
19711do
19712  IFS=$as_save_IFS
19713  test -z "$as_dir" && as_dir=.
19714    for ac_exec_ext in '' $ac_executable_extensions; do
19715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19716    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19718    break 2
19719  fi
19720done
19721  done
19722IFS=$as_save_IFS
19723
19724  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
19725  ;;
19726esac
19727fi
19728MSGMERGE=$ac_cv_path_MSGMERGE
19729if test -n "$MSGMERGE"; then
19730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19731$as_echo "$MSGMERGE" >&6; }
19732else
19733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19734$as_echo "no" >&6; }
19735fi
19736
19737
19738  # Extract the first word of "xgettext", so it can be a program name with args.
19739set dummy xgettext; ac_word=$2
19740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19741$as_echo_n "checking for $ac_word... " >&6; }
19742if ${ac_cv_path_XGETTEXT+:} false; then :
19743  $as_echo_n "(cached) " >&6
19744else
19745  case $XGETTEXT in
19746  [\\/]* | ?:[\\/]*)
19747  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19748  ;;
19749  *)
19750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19751for as_dir in $PATH
19752do
19753  IFS=$as_save_IFS
19754  test -z "$as_dir" && as_dir=.
19755    for ac_exec_ext in '' $ac_executable_extensions; do
19756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19757    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19759    break 2
19760  fi
19761done
19762  done
19763IFS=$as_save_IFS
19764
19765  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
19766  ;;
19767esac
19768fi
19769XGETTEXT=$ac_cv_path_XGETTEXT
19770if test -n "$XGETTEXT"; then
19771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19772$as_echo "$XGETTEXT" >&6; }
19773else
19774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19775$as_echo "no" >&6; }
19776fi
19777
19778
19779  if test "$MSGFMT" != "none"; then
19780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19781$as_echo_n "checking for library containing bindtextdomain... " >&6; }
19782if ${ac_cv_search_bindtextdomain+:} false; then :
19783  $as_echo_n "(cached) " >&6
19784else
19785  ac_func_search_save_LIBS=$LIBS
19786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19787/* end confdefs.h.  */
19788
19789/* Override any GCC internal prototype to avoid an error.
19790   Use char because int might match the return type of a GCC
19791   builtin and then its argument prototype would still apply.  */
19792#ifdef __cplusplus
19793extern "C"
19794#endif
19795char bindtextdomain ();
19796int
19797main ()
19798{
19799return bindtextdomain ();
19800  ;
19801  return 0;
19802}
19803_ACEOF
19804for ac_lib in '' intl; do
19805  if test -z "$ac_lib"; then
19806    ac_res="none required"
19807  else
19808    ac_res=-l$ac_lib
19809    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19810  fi
19811  if ac_fn_c_try_link "$LINENO"; then :
19812  ac_cv_search_bindtextdomain=$ac_res
19813fi
19814rm -f core conftest.err conftest.$ac_objext \
19815    conftest$ac_exeext
19816  if ${ac_cv_search_bindtextdomain+:} false; then :
19817  break
19818fi
19819done
19820if ${ac_cv_search_bindtextdomain+:} false; then :
19821
19822else
19823  ac_cv_search_bindtextdomain=no
19824fi
19825rm conftest.$ac_ext
19826LIBS=$ac_func_search_save_LIBS
19827fi
19828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19829$as_echo "$ac_cv_search_bindtextdomain" >&6; }
19830ac_res=$ac_cv_search_bindtextdomain
19831if test "$ac_res" != no; then :
19832  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19833
19834                      # in case libintl needs to be linked explicitly,
19835                      # $ac_cv_search_bindtextdomain contains -l linker flags
19836                      if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
19837                      then
19838                        SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
19839                      fi
19840
19841else
19842
19843                    enable_nls="no"
19844
19845fi
19846
19847    if test "$enable_nls" = "no"; then
19848      # Destroy the cached result so we can test again
19849      unset ac_cv_search_bindtextdomain
19850      # On some systems, libintl needs libiconv to link properly,
19851      # so try again with -liconv.
19852      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19853$as_echo_n "checking for library containing bindtextdomain... " >&6; }
19854if ${ac_cv_search_bindtextdomain+:} false; then :
19855  $as_echo_n "(cached) " >&6
19856else
19857  ac_func_search_save_LIBS=$LIBS
19858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859/* end confdefs.h.  */
19860
19861/* Override any GCC internal prototype to avoid an error.
19862   Use char because int might match the return type of a GCC
19863   builtin and then its argument prototype would still apply.  */
19864#ifdef __cplusplus
19865extern "C"
19866#endif
19867char bindtextdomain ();
19868int
19869main ()
19870{
19871return bindtextdomain ();
19872  ;
19873  return 0;
19874}
19875_ACEOF
19876for ac_lib in '' intl; do
19877  if test -z "$ac_lib"; then
19878    ac_res="none required"
19879  else
19880    ac_res=-l$ac_lib
19881    LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
19882  fi
19883  if ac_fn_c_try_link "$LINENO"; then :
19884  ac_cv_search_bindtextdomain=$ac_res
19885fi
19886rm -f core conftest.err conftest.$ac_objext \
19887    conftest$ac_exeext
19888  if ${ac_cv_search_bindtextdomain+:} false; then :
19889  break
19890fi
19891done
19892if ${ac_cv_search_bindtextdomain+:} false; then :
19893
19894else
19895  ac_cv_search_bindtextdomain=no
19896fi
19897rm conftest.$ac_ext
19898LIBS=$ac_func_search_save_LIBS
19899fi
19900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19901$as_echo "$ac_cv_search_bindtextdomain" >&6; }
19902ac_res=$ac_cv_search_bindtextdomain
19903if test "$ac_res" != no; then :
19904  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19905
19906                      enable_nls="yes"
19907                      if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null
19908                      then
19909                        SVN_INTL_LIBS="$ac_cv_search_bindtextdomain"
19910                      fi
19911                      # This is here so that -liconv ends up in LIBS
19912                      # if it worked with -liconv.
19913                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
19914$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
19915if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
19916  $as_echo_n "(cached) " >&6
19917else
19918  ac_check_lib_save_LIBS=$LIBS
19919LIBS="-liconv  $LIBS"
19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921/* end confdefs.h.  */
19922
19923/* Override any GCC internal prototype to avoid an error.
19924   Use char because int might match the return type of a GCC
19925   builtin and then its argument prototype would still apply.  */
19926#ifdef __cplusplus
19927extern "C"
19928#endif
19929char libiconv_open ();
19930int
19931main ()
19932{
19933return libiconv_open ();
19934  ;
19935  return 0;
19936}
19937_ACEOF
19938if ac_fn_c_try_link "$LINENO"; then :
19939  ac_cv_lib_iconv_libiconv_open=yes
19940else
19941  ac_cv_lib_iconv_libiconv_open=no
19942fi
19943rm -f core conftest.err conftest.$ac_objext \
19944    conftest$ac_exeext conftest.$ac_ext
19945LIBS=$ac_check_lib_save_LIBS
19946fi
19947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19948$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19949if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19950  cat >>confdefs.h <<_ACEOF
19951#define HAVE_LIBICONV 1
19952_ACEOF
19953
19954  LIBS="-liconv $LIBS"
19955
19956fi
19957
19958
19959else
19960
19961                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
19962$as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
19963                      enable_nls="no"
19964
19965fi
19966
19967    fi
19968    if test "$enable_nls" = "yes"; then
19969
19970$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19971
19972      USE_NLS="yes"
19973    fi
19974  fi
19975fi
19976
19977
19978
19979
19980
19981GETTEXT_CODESET=\#
19982NO_GETTEXT_CODESET=\#
19983if test $USE_NLS = "yes"; then
19984   for ac_func in bind_textdomain_codeset
19985do :
19986  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19987if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19988  cat >>confdefs.h <<_ACEOF
19989#define HAVE_BIND_TEXTDOMAIN_CODESET 1
19990_ACEOF
19991  GETTEXT_CODESET=""
19992else
19993   NO_GETTEXT_CODESET=""
19994fi
19995done
19996
19997fi
19998
19999
20000
20001# Check if we are using GNU gettext.
20002GNU_GETTEXT=no
20003MSGFMTFLAGS=''
20004if test $USE_NLS = "yes"; then
20005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
20006$as_echo_n "checking if we are using GNU gettext... " >&6; }
20007   if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
20008      GNU_GETTEXT=yes
20009      MSGFMTFLAGS='-c'
20010   fi
20011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
20012$as_echo "$GNU_GETTEXT" >&6; }
20013fi
20014
20015
20016
20017libmagic_found=no
20018
20019
20020# Check whether --with-libmagic was given.
20021if test "${with_libmagic+set}" = set; then :
20022  withval=$with_libmagic;
20023  if test "$withval" = "yes" ; then
20024    ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20025if test "x$ac_cv_header_magic_h" = xyes; then :
20026
20027      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20028$as_echo_n "checking for magic_open in -lmagic... " >&6; }
20029if ${ac_cv_lib_magic_magic_open+:} false; then :
20030  $as_echo_n "(cached) " >&6
20031else
20032  ac_check_lib_save_LIBS=$LIBS
20033LIBS="-lmagic  $LIBS"
20034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035/* end confdefs.h.  */
20036
20037/* Override any GCC internal prototype to avoid an error.
20038   Use char because int might match the return type of a GCC
20039   builtin and then its argument prototype would still apply.  */
20040#ifdef __cplusplus
20041extern "C"
20042#endif
20043char magic_open ();
20044int
20045main ()
20046{
20047return magic_open ();
20048  ;
20049  return 0;
20050}
20051_ACEOF
20052if ac_fn_c_try_link "$LINENO"; then :
20053  ac_cv_lib_magic_magic_open=yes
20054else
20055  ac_cv_lib_magic_magic_open=no
20056fi
20057rm -f core conftest.err conftest.$ac_objext \
20058    conftest$ac_exeext conftest.$ac_ext
20059LIBS=$ac_check_lib_save_LIBS
20060fi
20061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20062$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20063if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20064  libmagic_found="builtin"
20065fi
20066
20067
20068fi
20069
20070
20071    libmagic_prefix="the default locations"
20072  elif test "$withval" != "no"; then
20073    libmagic_prefix=$withval
20074    save_cppflags="$CPPFLAGS"
20075    CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
20076    for ac_header in magic.h
20077do :
20078  ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20079if test "x$ac_cv_header_magic_h" = xyes; then :
20080  cat >>confdefs.h <<_ACEOF
20081#define HAVE_MAGIC_H 1
20082_ACEOF
20083
20084      save_ldflags="$LDFLAGS"
20085      LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS"
20086      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20087$as_echo_n "checking for magic_open in -lmagic... " >&6; }
20088if ${ac_cv_lib_magic_magic_open+:} false; then :
20089  $as_echo_n "(cached) " >&6
20090else
20091  ac_check_lib_save_LIBS=$LIBS
20092LIBS="-lmagic  $LIBS"
20093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20094/* end confdefs.h.  */
20095
20096/* Override any GCC internal prototype to avoid an error.
20097   Use char because int might match the return type of a GCC
20098   builtin and then its argument prototype would still apply.  */
20099#ifdef __cplusplus
20100extern "C"
20101#endif
20102char magic_open ();
20103int
20104main ()
20105{
20106return magic_open ();
20107  ;
20108  return 0;
20109}
20110_ACEOF
20111if ac_fn_c_try_link "$LINENO"; then :
20112  ac_cv_lib_magic_magic_open=yes
20113else
20114  ac_cv_lib_magic_magic_open=no
20115fi
20116rm -f core conftest.err conftest.$ac_objext \
20117    conftest$ac_exeext conftest.$ac_ext
20118LIBS=$ac_check_lib_save_LIBS
20119fi
20120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20121$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20122if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20123  libmagic_found="yes"
20124fi
20125
20126      LDFLAGS="$save_ldflags"
20127
20128fi
20129
20130done
20131
20132    CPPFLAGS="$save_cppflags"
20133  fi
20134  if test "$withval" != "no" && test "$libmagic_found" = "no"; then
20135    as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
20136  fi
20137
20138else
20139
20140  ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
20141if test "x$ac_cv_header_magic_h" = xyes; then :
20142
20143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
20144$as_echo_n "checking for magic_open in -lmagic... " >&6; }
20145if ${ac_cv_lib_magic_magic_open+:} false; then :
20146  $as_echo_n "(cached) " >&6
20147else
20148  ac_check_lib_save_LIBS=$LIBS
20149LIBS="-lmagic  $LIBS"
20150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151/* end confdefs.h.  */
20152
20153/* Override any GCC internal prototype to avoid an error.
20154   Use char because int might match the return type of a GCC
20155   builtin and then its argument prototype would still apply.  */
20156#ifdef __cplusplus
20157extern "C"
20158#endif
20159char magic_open ();
20160int
20161main ()
20162{
20163return magic_open ();
20164  ;
20165  return 0;
20166}
20167_ACEOF
20168if ac_fn_c_try_link "$LINENO"; then :
20169  ac_cv_lib_magic_magic_open=yes
20170else
20171  ac_cv_lib_magic_magic_open=no
20172fi
20173rm -f core conftest.err conftest.$ac_objext \
20174    conftest$ac_exeext conftest.$ac_ext
20175LIBS=$ac_check_lib_save_LIBS
20176fi
20177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
20178$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
20179if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
20180  libmagic_found="builtin"
20181fi
20182
20183
20184fi
20185
20186
20187
20188fi
20189
20190
20191if test "$libmagic_found" != "no"; then
20192
20193$as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
20194
20195  SVN_MAGIC_LIBS="-lmagic"
20196fi
20197
20198if test "$libmagic_found" = "yes"; then
20199  SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
20200  LDFLAGS="$LDFLAGS `
20201  input_flags="-L$libmagic_prefix/lib"
20202  output_flags=""
20203  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20204  for flag in $input_flags; do
20205    filter="no"
20206    for dir in $filtered_dirs; do
20207      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20208        filter="yes"
20209        break
20210      fi
20211    done
20212    if test "$filter" = "no"; then
20213      output_flags="$output_flags $flag"
20214    fi
20215  done
20216  if test -n "$output_flags"; then
20217    printf "%s" "${output_flags# }"
20218  fi
20219`"
20220fi
20221
20222
20223
20224
20225
20226
20227# Check whether --with-kwallet was given.
20228if test "${with_kwallet+set}" = set; then :
20229  withval=$with_kwallet; svn_lib_kwallet="$withval"
20230else
20231  svn_lib_kwallet=no
20232fi
20233
20234
20235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
20236$as_echo_n "checking whether to look for KWallet... " >&6; }
20237  if test "$svn_lib_kwallet" != "no"; then
20238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20239$as_echo "yes" >&6; }
20240    case "$host" in
20241    *-*-darwin*)
20242      as_fn_error $? "--with-kwallet is not supported on Mac OS X." "$LINENO" 5
20243      ;;
20244    *)
20245      if test "$svn_enable_shared" = "yes"; then
20246        if test "$APR_HAS_DSO" = "yes"; then
20247          if test -n "$PKG_CONFIG"; then
20248            if test "$HAVE_DBUS" = "yes"; then
20249              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
20250$as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
20251              if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
20252                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20253$as_echo "yes" >&6; }
20254                if test "$svn_lib_kwallet" != "yes"; then
20255                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
20256$as_echo_n "checking for kde4-config... " >&6; }
20257                  KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
20258                  if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
20259                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20260$as_echo "yes" >&6; }
20261                  else
20262                    KDE4_CONFIG=""
20263                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20264$as_echo "no" >&6; }
20265                  fi
20266                else
20267                  # Extract the first word of "kde4-config", so it can be a program name with args.
20268set dummy kde4-config; ac_word=$2
20269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20270$as_echo_n "checking for $ac_word... " >&6; }
20271if ${ac_cv_path_KDE4_CONFIG+:} false; then :
20272  $as_echo_n "(cached) " >&6
20273else
20274  case $KDE4_CONFIG in
20275  [\\/]* | ?:[\\/]*)
20276  ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
20277  ;;
20278  *)
20279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20280for as_dir in $PATH
20281do
20282  IFS=$as_save_IFS
20283  test -z "$as_dir" && as_dir=.
20284    for ac_exec_ext in '' $ac_executable_extensions; do
20285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20286    ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20288    break 2
20289  fi
20290done
20291  done
20292IFS=$as_save_IFS
20293
20294  ;;
20295esac
20296fi
20297KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
20298if test -n "$KDE4_CONFIG"; then
20299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
20300$as_echo "$KDE4_CONFIG" >&6; }
20301else
20302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20303$as_echo "no" >&6; }
20304fi
20305
20306
20307                fi
20308                if test -n "$KDE4_CONFIG"; then
20309                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
20310$as_echo_n "checking for KWallet... " >&6; }
20311                  old_CXXFLAGS="$CXXFLAGS"
20312                  old_LDFLAGS="$LDFLAGS"
20313                  old_LIBS="$LIBS"
20314                  for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
20315                    if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
20316                      CPPFLAGS="$CPPFLAGS $d"
20317                    fi
20318                  done
20319                  qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
20320                  kde_incdir="`$KDE4_CONFIG --install include`"
20321                  SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_incdir"
20322                  qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
20323                  SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
20324                  CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
20325                  LIBS="$LIBS $SVN_KWALLET_LIBS"
20326                  qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
20327                  kde_libdir="`$KDE4_CONFIG --install lib`"
20328                  LDFLAGS="$old_LDFLAGS `
20329  input_flags="$qt_lib_dirs -L$kde_libdir"
20330  output_flags=""
20331  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
20332  for flag in $input_flags; do
20333    filter="no"
20334    for dir in $filtered_dirs; do
20335      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
20336        filter="yes"
20337        break
20338      fi
20339    done
20340    if test "$filter" = "no"; then
20341      output_flags="$output_flags $flag"
20342    fi
20343  done
20344  if test -n "$output_flags"; then
20345    printf "%s" "${output_flags# }"
20346  fi
20347`"
20348                  ac_ext=cpp
20349ac_cpp='$CXXCPP $CPPFLAGS'
20350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20353
20354                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355/* end confdefs.h.  */
20356
20357#include <kwallet.h>
20358int main()
20359{KWallet::Wallet::walletList();}
20360_ACEOF
20361if ac_fn_cxx_try_link "$LINENO"; then :
20362  svn_lib_kwallet="yes"
20363else
20364  svn_lib_kwallet="no"
20365fi
20366rm -f core conftest.err conftest.$ac_objext \
20367    conftest$ac_exeext conftest.$ac_ext
20368                  ac_ext=c
20369ac_cpp='$CPP $CPPFLAGS'
20370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372ac_compiler_gnu=$ac_cv_c_compiler_gnu
20373
20374                  if test "$svn_lib_kwallet" = "yes"; then
20375                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20376$as_echo "yes" >&6; }
20377                    CXXFLAGS="$old_CXXFLAGS"
20378                    LIBS="$old_LIBS"
20379                  else
20380                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20381$as_echo "no" >&6; }
20382                    as_fn_error $? "cannot find KWallet" "$LINENO" 5
20383                  fi
20384                else
20385                  as_fn_error $? "cannot find kde4-config" "$LINENO" 5
20386                fi
20387              else
20388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20389$as_echo "no" >&6; }
20390                as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
20391              fi
20392            else
20393              as_fn_error $? "cannot find D-Bus" "$LINENO" 5
20394            fi
20395          else
20396            as_fn_error $? "cannot find pkg-config" "$LINENO" 5
20397          fi
20398        else
20399          as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
20400        fi
20401      else
20402        as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
20403      fi
20404    ;;
20405    esac
20406  else
20407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20408$as_echo "no" >&6; }
20409  fi
20410
20411
20412
20413
20414if test "$svn_lib_kwallet" = "yes"; then
20415
20416$as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
20417
20418fi
20419
20420# Check whether --enable-plaintext-password-storage was given.
20421if test "${enable_plaintext_password_storage+set}" = set; then :
20422  enableval=$enable_plaintext_password_storage;
20423   if test "$enableval" = "no"; then
20424      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
20425$as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
20426
20427$as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
20428
20429   fi
20430
20431fi
20432
20433
20434
20435INSTALL_STATIC_RULES="install-bin install-docs"
20436INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
20437INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
20438BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
20439
20440if test "$svn_lib_berkeley_db" = "yes"; then
20441  BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
20442  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
20443  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
20444  BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
20445  BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
20446fi
20447
20448if test "$svn_lib_serf" = "yes"; then
20449  BUILD_RULES="$BUILD_RULES serf-lib"
20450  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
20451  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
20452fi
20453
20454if test "$svn_lib_kwallet" = "yes"; then
20455  BUILD_RULES="$BUILD_RULES kwallet-lib"
20456  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
20457  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
20458fi
20459
20460if test "$found_gnome_keyring" = "yes"; then
20461  BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
20462  INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
20463  INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
20464fi
20465
20466if test "$USE_NLS" = "yes"; then
20467  BUILD_RULES="$BUILD_RULES locale"
20468  INSTALL_RULES="$INSTALL_RULES install-locale"
20469fi
20470
20471
20472
20473
20474
20475
20476
20477
20478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20479$as_echo_n "checking for ANSI C header files... " >&6; }
20480if ${ac_cv_header_stdc+:} false; then :
20481  $as_echo_n "(cached) " >&6
20482else
20483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484/* end confdefs.h.  */
20485#include <stdlib.h>
20486#include <stdarg.h>
20487#include <string.h>
20488#include <float.h>
20489
20490int
20491main ()
20492{
20493
20494  ;
20495  return 0;
20496}
20497_ACEOF
20498if ac_fn_c_try_compile "$LINENO"; then :
20499  ac_cv_header_stdc=yes
20500else
20501  ac_cv_header_stdc=no
20502fi
20503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504
20505if test $ac_cv_header_stdc = yes; then
20506  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508/* end confdefs.h.  */
20509#include <string.h>
20510
20511_ACEOF
20512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20513  $EGREP "memchr" >/dev/null 2>&1; then :
20514
20515else
20516  ac_cv_header_stdc=no
20517fi
20518rm -f conftest*
20519
20520fi
20521
20522if test $ac_cv_header_stdc = yes; then
20523  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20525/* end confdefs.h.  */
20526#include <stdlib.h>
20527
20528_ACEOF
20529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20530  $EGREP "free" >/dev/null 2>&1; then :
20531
20532else
20533  ac_cv_header_stdc=no
20534fi
20535rm -f conftest*
20536
20537fi
20538
20539if test $ac_cv_header_stdc = yes; then
20540  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20541  if test "$cross_compiling" = yes; then :
20542  :
20543else
20544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20545/* end confdefs.h.  */
20546#include <ctype.h>
20547#include <stdlib.h>
20548#if ((' ' & 0x0FF) == 0x020)
20549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20551#else
20552# define ISLOWER(c) \
20553		   (('a' <= (c) && (c) <= 'i') \
20554		     || ('j' <= (c) && (c) <= 'r') \
20555		     || ('s' <= (c) && (c) <= 'z'))
20556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20557#endif
20558
20559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20560int
20561main ()
20562{
20563  int i;
20564  for (i = 0; i < 256; i++)
20565    if (XOR (islower (i), ISLOWER (i))
20566	|| toupper (i) != TOUPPER (i))
20567      return 2;
20568  return 0;
20569}
20570_ACEOF
20571if ac_fn_c_try_run "$LINENO"; then :
20572
20573else
20574  ac_cv_header_stdc=no
20575fi
20576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20577  conftest.$ac_objext conftest.beam conftest.$ac_ext
20578fi
20579
20580fi
20581fi
20582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20583$as_echo "$ac_cv_header_stdc" >&6; }
20584if test $ac_cv_header_stdc = yes; then
20585
20586$as_echo "#define STDC_HEADERS 1" >>confdefs.h
20587
20588fi
20589
20590
20591
20592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20593$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20594if ${ac_cv_c_const+:} false; then :
20595  $as_echo_n "(cached) " >&6
20596else
20597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20598/* end confdefs.h.  */
20599
20600int
20601main ()
20602{
20603
20604#ifndef __cplusplus
20605  /* Ultrix mips cc rejects this sort of thing.  */
20606  typedef int charset[2];
20607  const charset cs = { 0, 0 };
20608  /* SunOS 4.1.1 cc rejects this.  */
20609  char const *const *pcpcc;
20610  char **ppc;
20611  /* NEC SVR4.0.2 mips cc rejects this.  */
20612  struct point {int x, y;};
20613  static struct point const zero = {0,0};
20614  /* AIX XL C 1.02.0.0 rejects this.
20615     It does not let you subtract one const X* pointer from another in
20616     an arm of an if-expression whose if-part is not a constant
20617     expression */
20618  const char *g = "string";
20619  pcpcc = &g + (g ? g-g : 0);
20620  /* HPUX 7.0 cc rejects these. */
20621  ++pcpcc;
20622  ppc = (char**) pcpcc;
20623  pcpcc = (char const *const *) ppc;
20624  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20625    char tx;
20626    char *t = &tx;
20627    char const *s = 0 ? (char *) 0 : (char const *) 0;
20628
20629    *t++ = 0;
20630    if (s) return 0;
20631  }
20632  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20633    int x[] = {25, 17};
20634    const int *foo = &x[0];
20635    ++foo;
20636  }
20637  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20638    typedef const int *iptr;
20639    iptr p = 0;
20640    ++p;
20641  }
20642  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20643       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20644    struct s { int j; const int *ap[3]; } bx;
20645    struct s *b = &bx; b->j = 5;
20646  }
20647  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20648    const int foo = 10;
20649    if (!foo) return 0;
20650  }
20651  return !cs[0] && !zero.x;
20652#endif
20653
20654  ;
20655  return 0;
20656}
20657_ACEOF
20658if ac_fn_c_try_compile "$LINENO"; then :
20659  ac_cv_c_const=yes
20660else
20661  ac_cv_c_const=no
20662fi
20663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664fi
20665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20666$as_echo "$ac_cv_c_const" >&6; }
20667if test $ac_cv_c_const = no; then
20668
20669$as_echo "#define const /**/" >>confdefs.h
20670
20671fi
20672
20673
20674ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20675if test "x$ac_cv_type_size_t" = xyes; then :
20676
20677else
20678
20679cat >>confdefs.h <<_ACEOF
20680#define size_t unsigned int
20681_ACEOF
20682
20683fi
20684
20685
20686
20687
20688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20689$as_echo_n "checking for working memcmp... " >&6; }
20690if ${ac_cv_func_memcmp_working+:} false; then :
20691  $as_echo_n "(cached) " >&6
20692else
20693  if test "$cross_compiling" = yes; then :
20694  ac_cv_func_memcmp_working=no
20695else
20696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697/* end confdefs.h.  */
20698$ac_includes_default
20699int
20700main ()
20701{
20702
20703  /* Some versions of memcmp are not 8-bit clean.  */
20704  char c0 = '\100', c1 = '\200', c2 = '\201';
20705  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20706    return 1;
20707
20708  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20709     or more and with at least one buffer not starting on a 4-byte boundary.
20710     William Lewis provided this test program.   */
20711  {
20712    char foo[21];
20713    char bar[21];
20714    int i;
20715    for (i = 0; i < 4; i++)
20716      {
20717	char *a = foo + i;
20718	char *b = bar + i;
20719	strcpy (a, "--------01111111");
20720	strcpy (b, "--------10000000");
20721	if (memcmp (a, b, 16) >= 0)
20722	  return 1;
20723      }
20724    return 0;
20725  }
20726
20727  ;
20728  return 0;
20729}
20730_ACEOF
20731if ac_fn_c_try_run "$LINENO"; then :
20732  ac_cv_func_memcmp_working=yes
20733else
20734  ac_cv_func_memcmp_working=no
20735fi
20736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20737  conftest.$ac_objext conftest.beam conftest.$ac_ext
20738fi
20739
20740fi
20741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20742$as_echo "$ac_cv_func_memcmp_working" >&6; }
20743test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20744  *" memcmp.$ac_objext "* ) ;;
20745  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20746 ;;
20747esac
20748
20749
20750
20751for ac_func in vprintf
20752do :
20753  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20754if test "x$ac_cv_func_vprintf" = xyes; then :
20755  cat >>confdefs.h <<_ACEOF
20756#define HAVE_VPRINTF 1
20757_ACEOF
20758
20759ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20760if test "x$ac_cv_func__doprnt" = xyes; then :
20761
20762$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20763
20764fi
20765
20766fi
20767done
20768
20769
20770
20771for ac_func in symlink readlink
20772do :
20773  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20774ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20775if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20776  cat >>confdefs.h <<_ACEOF
20777#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20778_ACEOF
20779
20780fi
20781done
20782
20783
20784for ac_header in sys/utsname.h
20785do :
20786  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
20787if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
20788  cat >>confdefs.h <<_ACEOF
20789#define HAVE_SYS_UTSNAME_H 1
20790_ACEOF
20791 for ac_func in uname
20792do :
20793  ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20794if test "x$ac_cv_func_uname" = xyes; then :
20795  cat >>confdefs.h <<_ACEOF
20796#define HAVE_UNAME 1
20797_ACEOF
20798
20799fi
20800done
20801
20802fi
20803
20804done
20805
20806
20807ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20808if test "x$ac_cv_header_termios_h" = xyes; then :
20809
20810  for ac_func in tcgetattr tcsetattr
20811do :
20812  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20813ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20814if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20815  cat >>confdefs.h <<_ACEOF
20816#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20817_ACEOF
20818
20819
20820$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
20821
20822
20823fi
20824done
20825
20826
20827fi
20828
20829
20830
20831
20832# Check whether --enable-debug was given.
20833if test "${enable_debug+set}" = set; then :
20834  enableval=$enable_debug;
20835    if test "$enableval" = "yes" ; then
20836      enable_debugging="yes"
20837    else
20838      enable_debugging="no"
20839    fi
20840
20841else
20842
20843    # Neither --enable-debug nor --disable-debug was passed.
20844    enable_debugging="maybe"
20845
20846fi
20847
20848
20849# Check whether --enable-optimize was given.
20850if test "${enable_optimize+set}" = set; then :
20851  enableval=$enable_optimize;
20852    if test "$enableval" = "yes" ; then
20853      enable_optimization="yes"
20854    else
20855      enable_optimization="no"
20856    fi
20857
20858else
20859
20860    # Neither --enable-optimize nor --disable-optimize was passed.
20861    enable_optimization="maybe"
20862
20863fi
20864
20865
20866# Check whether --enable-disallowing-of-undefined-references was given.
20867if test "${enable_disallowing_of_undefined_references+set}" = set; then :
20868  enableval=$enable_disallowing_of_undefined_references;
20869fi
20870
20871if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
20872  enable_disallowing_of_undefined_references="no"
20873fi
20874if test "$enable_disallowing_of_undefined_references" != "no"; then
20875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
20876$as_echo_n "checking for -Wl,--no-undefined... " >&6; }
20877  old_LDFLAGS="$LDFLAGS"
20878  LDFLAGS="$LDFLAGS -Wl,--no-undefined"
20879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880/* end confdefs.h.  */
20881int main(){;}
20882_ACEOF
20883if ac_fn_c_try_link "$LINENO"; then :
20884  svn_wl_no_undefined="yes"
20885else
20886  svn_wl_no_undefined="no"
20887fi
20888rm -f core conftest.err conftest.$ac_objext \
20889    conftest$ac_exeext conftest.$ac_ext
20890  LDFLAGS="$old_LDFLAGS"
20891  if test "$svn_wl_no_undefined" = "yes"; then
20892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20893$as_echo "yes" >&6; }
20894    for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
20895      eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
20896    done
20897  else
20898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20899$as_echo "no" >&6; }
20900    if test "$enable_disallowing_of_undefined_references" = "yes"; then
20901      as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
20902    fi
20903  fi
20904fi
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923# Check whether --enable-maintainer-mode was given.
20924if test "${enable_maintainer_mode+set}" = set; then :
20925  enableval=$enable_maintainer_mode;
20926    if test "$enableval" = "yes" ; then
20927      if test "$enable_debugging" = "no" ; then
20928        as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
20929      fi
20930      enable_debugging=yes
20931
20932                  if test "$GCC" = "yes"; then
20933        { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
20934$as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20935
20936
20937                CFLAGS_KEEP="$CFLAGS"
20938        CFLAGS=""
20939
20940
20941  _svn_xxflags__save="$CFLAGS"
20942  ac_ext=c
20943ac_cpp='$CPP $CPPFLAGS'
20944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946ac_compiler_gnu=$ac_cv_c_compiler_gnu
20947
20948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20949$as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20950  CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20951        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20952/* end confdefs.h.  */
20953int main(void){return 0;}
20954_ACEOF
20955if ac_fn_c_try_link "$LINENO"; then :
20956
20957    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20958$as_echo "yes" >&6; }
20959
20960
20961else
20962
20963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964$as_echo "no" >&6; }
20965    CFLAGS="$_svn_xxflags__save"
20966
20967
20968fi
20969rm -f core conftest.err conftest.$ac_objext \
20970    conftest$ac_exeext conftest.$ac_ext
20971  ac_ext=c
20972ac_cpp='$CPP $CPPFLAGS'
20973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975ac_compiler_gnu=$ac_cv_c_compiler_gnu
20976
20977
20978
20979  _svn_xxflags__save="$CFLAGS"
20980  ac_ext=c
20981ac_cpp='$CPP $CPPFLAGS'
20982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984ac_compiler_gnu=$ac_cv_c_compiler_gnu
20985
20986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20987$as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20988  CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20989        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990/* end confdefs.h.  */
20991int main(void){return 0;}
20992_ACEOF
20993if ac_fn_c_try_link "$LINENO"; then :
20994
20995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20996$as_echo "yes" >&6; }
20997
20998
20999else
21000
21001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21002$as_echo "no" >&6; }
21003    CFLAGS="$_svn_xxflags__save"
21004
21005
21006fi
21007rm -f core conftest.err conftest.$ac_objext \
21008    conftest$ac_exeext conftest.$ac_ext
21009  ac_ext=c
21010ac_cpp='$CPP $CPPFLAGS'
21011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015
21016
21017  _svn_xxflags__save="$CFLAGS"
21018  ac_ext=c
21019ac_cpp='$CPP $CPPFLAGS'
21020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
21025$as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
21026  CFLAGS="-Wextra-tokens $CFLAGS"
21027        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028/* end confdefs.h.  */
21029int main(void){return 0;}
21030_ACEOF
21031if ac_fn_c_try_link "$LINENO"; then :
21032
21033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21034$as_echo "yes" >&6; }
21035
21036
21037else
21038
21039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21040$as_echo "no" >&6; }
21041    CFLAGS="$_svn_xxflags__save"
21042
21043
21044fi
21045rm -f core conftest.err conftest.$ac_objext \
21046    conftest$ac_exeext conftest.$ac_ext
21047  ac_ext=c
21048ac_cpp='$CPP $CPPFLAGS'
21049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21051ac_compiler_gnu=$ac_cv_c_compiler_gnu
21052
21053
21054
21055  _svn_xxflags__save="$CFLAGS"
21056  ac_ext=c
21057ac_cpp='$CPP $CPPFLAGS'
21058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060ac_compiler_gnu=$ac_cv_c_compiler_gnu
21061
21062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
21063$as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
21064  CFLAGS="-Wnewline-eof $CFLAGS"
21065        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066/* end confdefs.h.  */
21067int main(void){return 0;}
21068_ACEOF
21069if ac_fn_c_try_link "$LINENO"; then :
21070
21071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21072$as_echo "yes" >&6; }
21073
21074
21075else
21076
21077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21078$as_echo "no" >&6; }
21079    CFLAGS="$_svn_xxflags__save"
21080
21081
21082fi
21083rm -f core conftest.err conftest.$ac_objext \
21084    conftest$ac_exeext conftest.$ac_ext
21085  ac_ext=c
21086ac_cpp='$CPP $CPPFLAGS'
21087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089ac_compiler_gnu=$ac_cv_c_compiler_gnu
21090
21091
21092
21093  _svn_xxflags__save="$CFLAGS"
21094  ac_ext=c
21095ac_cpp='$CPP $CPPFLAGS'
21096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099
21100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
21101$as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
21102  CFLAGS="-Wshorten-64-to-32 $CFLAGS"
21103        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21104/* end confdefs.h.  */
21105int main(void){return 0;}
21106_ACEOF
21107if ac_fn_c_try_link "$LINENO"; then :
21108
21109    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21110$as_echo "yes" >&6; }
21111
21112
21113else
21114
21115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21116$as_echo "no" >&6; }
21117    CFLAGS="$_svn_xxflags__save"
21118
21119
21120fi
21121rm -f core conftest.err conftest.$ac_objext \
21122    conftest$ac_exeext conftest.$ac_ext
21123  ac_ext=c
21124ac_cpp='$CPP $CPPFLAGS'
21125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
21129
21130
21131  _svn_xxflags__save="$CFLAGS"
21132  ac_ext=c
21133ac_cpp='$CPP $CPPFLAGS'
21134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136ac_compiler_gnu=$ac_cv_c_compiler_gnu
21137
21138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
21139$as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
21140  CFLAGS="-Wold-style-definition $CFLAGS"
21141        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21142/* end confdefs.h.  */
21143int main(void){return 0;}
21144_ACEOF
21145if ac_fn_c_try_link "$LINENO"; then :
21146
21147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21148$as_echo "yes" >&6; }
21149
21150
21151else
21152
21153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21154$as_echo "no" >&6; }
21155    CFLAGS="$_svn_xxflags__save"
21156
21157
21158fi
21159rm -f core conftest.err conftest.$ac_objext \
21160    conftest$ac_exeext conftest.$ac_ext
21161  ac_ext=c
21162ac_cpp='$CPP $CPPFLAGS'
21163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21165ac_compiler_gnu=$ac_cv_c_compiler_gnu
21166
21167
21168
21169  _svn_xxflags__save="$CFLAGS"
21170  ac_ext=c
21171ac_cpp='$CPP $CPPFLAGS'
21172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21174ac_compiler_gnu=$ac_cv_c_compiler_gnu
21175
21176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
21177$as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
21178  CFLAGS="-Wno-system-headers $CFLAGS"
21179        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180/* end confdefs.h.  */
21181int main(void){return 0;}
21182_ACEOF
21183if ac_fn_c_try_link "$LINENO"; then :
21184
21185    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21186$as_echo "yes" >&6; }
21187
21188
21189else
21190
21191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21192$as_echo "no" >&6; }
21193    CFLAGS="$_svn_xxflags__save"
21194
21195
21196fi
21197rm -f core conftest.err conftest.$ac_objext \
21198    conftest$ac_exeext conftest.$ac_ext
21199  ac_ext=c
21200ac_cpp='$CPP $CPPFLAGS'
21201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21203ac_compiler_gnu=$ac_cv_c_compiler_gnu
21204
21205
21206
21207  _svn_xxflags__save="$CFLAGS"
21208  ac_ext=c
21209ac_cpp='$CPP $CPPFLAGS'
21210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21212ac_compiler_gnu=$ac_cv_c_compiler_gnu
21213
21214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
21215$as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
21216  CFLAGS="-Wno-format-nonliteral $CFLAGS"
21217        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21218/* end confdefs.h.  */
21219int main(void){return 0;}
21220_ACEOF
21221if ac_fn_c_try_link "$LINENO"; then :
21222
21223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21224$as_echo "yes" >&6; }
21225
21226
21227else
21228
21229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21230$as_echo "no" >&6; }
21231    CFLAGS="$_svn_xxflags__save"
21232
21233
21234fi
21235rm -f core conftest.err conftest.$ac_objext \
21236    conftest$ac_exeext conftest.$ac_ext
21237  ac_ext=c
21238ac_cpp='$CPP $CPPFLAGS'
21239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241ac_compiler_gnu=$ac_cv_c_compiler_gnu
21242
21243
21244
21245  _svn_xxflags__save="$CFLAGS"
21246  ac_ext=c
21247ac_cpp='$CPP $CPPFLAGS'
21248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21250ac_compiler_gnu=$ac_cv_c_compiler_gnu
21251
21252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wmissing-variable-declarations" >&5
21253$as_echo_n "checking if $CC accepts -Wmissing-variable-declarations... " >&6; }
21254  CFLAGS="-Wmissing-variable-declarations $CFLAGS"
21255        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21256/* end confdefs.h.  */
21257int main(void){return 0;}
21258_ACEOF
21259if ac_fn_c_try_link "$LINENO"; then :
21260
21261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21262$as_echo "yes" >&6; }
21263
21264
21265else
21266
21267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21268$as_echo "no" >&6; }
21269    CFLAGS="$_svn_xxflags__save"
21270
21271
21272fi
21273rm -f core conftest.err conftest.$ac_objext \
21274    conftest$ac_exeext conftest.$ac_ext
21275  ac_ext=c
21276ac_cpp='$CPP $CPPFLAGS'
21277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281
21282
21283        CMAINTAINERFLAGS="$CFLAGS"
21284        CFLAGS="$CFLAGS_KEEP"
21285
21286                CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wbad-function-cast $CMAINTAINERFLAGS"
21287      fi
21288      if test "$GXX" = "yes"; then
21289        { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
21290$as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
21291
21292                CXXFLAGS_KEEP="$CXXFLAGS"
21293        CXXFLAGS=""
21294
21295
21296  _svn_xxflags__save="$CXXFLAGS"
21297  ac_ext=cpp
21298ac_cpp='$CXXCPP $CPPFLAGS'
21299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21302
21303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
21304$as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
21305  CXXFLAGS="-Wextra-tokens $CXXFLAGS"
21306        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21307/* end confdefs.h.  */
21308int main(){}
21309_ACEOF
21310if ac_fn_cxx_try_link "$LINENO"; then :
21311
21312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21313$as_echo "yes" >&6; }
21314
21315
21316else
21317
21318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319$as_echo "no" >&6; }
21320    CXXFLAGS="$_svn_xxflags__save"
21321
21322
21323fi
21324rm -f core conftest.err conftest.$ac_objext \
21325    conftest$ac_exeext conftest.$ac_ext
21326  ac_ext=c
21327ac_cpp='$CPP $CPPFLAGS'
21328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330ac_compiler_gnu=$ac_cv_c_compiler_gnu
21331
21332
21333
21334  _svn_xxflags__save="$CXXFLAGS"
21335  ac_ext=cpp
21336ac_cpp='$CXXCPP $CPPFLAGS'
21337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21340
21341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
21342$as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
21343  CXXFLAGS="-Wnewline-eof $CXXFLAGS"
21344        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21345/* end confdefs.h.  */
21346int main(){}
21347_ACEOF
21348if ac_fn_cxx_try_link "$LINENO"; then :
21349
21350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21351$as_echo "yes" >&6; }
21352
21353
21354else
21355
21356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21357$as_echo "no" >&6; }
21358    CXXFLAGS="$_svn_xxflags__save"
21359
21360
21361fi
21362rm -f core conftest.err conftest.$ac_objext \
21363    conftest$ac_exeext conftest.$ac_ext
21364  ac_ext=c
21365ac_cpp='$CPP $CPPFLAGS'
21366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21368ac_compiler_gnu=$ac_cv_c_compiler_gnu
21369
21370
21371
21372  _svn_xxflags__save="$CXXFLAGS"
21373  ac_ext=cpp
21374ac_cpp='$CXXCPP $CPPFLAGS'
21375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21378
21379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
21380$as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
21381  CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
21382        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21383/* end confdefs.h.  */
21384int main(){}
21385_ACEOF
21386if ac_fn_cxx_try_link "$LINENO"; then :
21387
21388    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21389$as_echo "yes" >&6; }
21390
21391
21392else
21393
21394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21395$as_echo "no" >&6; }
21396    CXXFLAGS="$_svn_xxflags__save"
21397
21398
21399fi
21400rm -f core conftest.err conftest.$ac_objext \
21401    conftest$ac_exeext conftest.$ac_ext
21402  ac_ext=c
21403ac_cpp='$CPP $CPPFLAGS'
21404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21406ac_compiler_gnu=$ac_cv_c_compiler_gnu
21407
21408
21409
21410  _svn_xxflags__save="$CXXFLAGS"
21411  ac_ext=cpp
21412ac_cpp='$CXXCPP $CPPFLAGS'
21413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21416
21417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
21418$as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
21419  CXXFLAGS="-Wno-system-headers $CXXFLAGS"
21420        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21421/* end confdefs.h.  */
21422int main(){}
21423_ACEOF
21424if ac_fn_cxx_try_link "$LINENO"; then :
21425
21426    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21427$as_echo "yes" >&6; }
21428
21429
21430else
21431
21432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21433$as_echo "no" >&6; }
21434    CXXFLAGS="$_svn_xxflags__save"
21435
21436
21437fi
21438rm -f core conftest.err conftest.$ac_objext \
21439    conftest$ac_exeext conftest.$ac_ext
21440  ac_ext=c
21441ac_cpp='$CPP $CPPFLAGS'
21442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21444ac_compiler_gnu=$ac_cv_c_compiler_gnu
21445
21446
21447
21448        CXXMAINTAINERFLAGS="$CXXFLAGS"
21449        CXXFLAGS="$CXXFLAGS_KEEP"
21450
21451                CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
21452      fi
21453    fi
21454
21455fi
21456
21457
21458if test "$enable_debugging" = "yes" ; then
21459      if test "$enable_optimization" != "yes"; then
21460    { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
21461$as_echo "$as_me: Disabling optimizations for debugging" >&6;}
21462    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21463    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21464  fi
21465    if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21466    { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
21467$as_echo "$as_me: Enabling debugging for C" >&6;}
21468    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21469
21470  _svn_xxflags__save="$CFLAGS"
21471  ac_ext=c
21472ac_cpp='$CPP $CPPFLAGS'
21473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21475ac_compiler_gnu=$ac_cv_c_compiler_gnu
21476
21477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
21478$as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
21479  CFLAGS="-fno-inline $CFLAGS"
21480        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21481/* end confdefs.h.  */
21482int main(void){return 0;}
21483_ACEOF
21484if ac_fn_c_try_link "$LINENO"; then :
21485
21486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21487$as_echo "yes" >&6; }
21488
21489
21490else
21491
21492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493$as_echo "no" >&6; }
21494    CFLAGS="$_svn_xxflags__save"
21495
21496
21497fi
21498rm -f core conftest.err conftest.$ac_objext \
21499    conftest$ac_exeext conftest.$ac_ext
21500  ac_ext=c
21501ac_cpp='$CPP $CPPFLAGS'
21502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21504ac_compiler_gnu=$ac_cv_c_compiler_gnu
21505
21506
21507
21508  _svn_xxflags__save="$CFLAGS"
21509  ac_ext=c
21510ac_cpp='$CPP $CPPFLAGS'
21511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21513ac_compiler_gnu=$ac_cv_c_compiler_gnu
21514
21515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
21516$as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
21517  CFLAGS="-fno-omit-frame-pointer $CFLAGS"
21518        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21519/* end confdefs.h.  */
21520int main(void){return 0;}
21521_ACEOF
21522if ac_fn_c_try_link "$LINENO"; then :
21523
21524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21525$as_echo "yes" >&6; }
21526
21527
21528else
21529
21530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21531$as_echo "no" >&6; }
21532    CFLAGS="$_svn_xxflags__save"
21533
21534
21535fi
21536rm -f core conftest.err conftest.$ac_objext \
21537    conftest$ac_exeext conftest.$ac_ext
21538  ac_ext=c
21539ac_cpp='$CPP $CPPFLAGS'
21540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21542ac_compiler_gnu=$ac_cv_c_compiler_gnu
21543
21544
21545
21546  _svn_xxflags__save="$CFLAGS"
21547  ac_ext=c
21548ac_cpp='$CPP $CPPFLAGS'
21549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21551ac_compiler_gnu=$ac_cv_c_compiler_gnu
21552
21553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
21554$as_echo_n "checking if $CC accepts -g3... " >&6; }
21555  CFLAGS="-g3 $CFLAGS"
21556        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557/* end confdefs.h.  */
21558int main(void){return 0;}
21559_ACEOF
21560if ac_fn_c_try_link "$LINENO"; then :
21561
21562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21563$as_echo "yes" >&6; }
21564
21565
21566else
21567
21568    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21569$as_echo "no" >&6; }
21570    CFLAGS="$_svn_xxflags__save"
21571
21572
21573  _svn_xxflags__save="$CFLAGS"
21574  ac_ext=c
21575ac_cpp='$CPP $CPPFLAGS'
21576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21578ac_compiler_gnu=$ac_cv_c_compiler_gnu
21579
21580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
21581$as_echo_n "checking if $CC accepts -g2... " >&6; }
21582  CFLAGS="-g2 $CFLAGS"
21583        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21584/* end confdefs.h.  */
21585int main(void){return 0;}
21586_ACEOF
21587if ac_fn_c_try_link "$LINENO"; then :
21588
21589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21590$as_echo "yes" >&6; }
21591
21592
21593else
21594
21595    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21596$as_echo "no" >&6; }
21597    CFLAGS="$_svn_xxflags__save"
21598
21599
21600  _svn_xxflags__save="$CFLAGS"
21601  ac_ext=c
21602ac_cpp='$CPP $CPPFLAGS'
21603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21605ac_compiler_gnu=$ac_cv_c_compiler_gnu
21606
21607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
21608$as_echo_n "checking if $CC accepts -g... " >&6; }
21609  CFLAGS="-g $CFLAGS"
21610        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611/* end confdefs.h.  */
21612int main(void){return 0;}
21613_ACEOF
21614if ac_fn_c_try_link "$LINENO"; then :
21615
21616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21617$as_echo "yes" >&6; }
21618
21619
21620else
21621
21622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21623$as_echo "no" >&6; }
21624    CFLAGS="$_svn_xxflags__save"
21625
21626
21627fi
21628rm -f core conftest.err conftest.$ac_objext \
21629    conftest$ac_exeext conftest.$ac_ext
21630  ac_ext=c
21631ac_cpp='$CPP $CPPFLAGS'
21632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21634ac_compiler_gnu=$ac_cv_c_compiler_gnu
21635
21636
21637
21638fi
21639rm -f core conftest.err conftest.$ac_objext \
21640    conftest$ac_exeext conftest.$ac_ext
21641  ac_ext=c
21642ac_cpp='$CPP $CPPFLAGS'
21643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21645ac_compiler_gnu=$ac_cv_c_compiler_gnu
21646
21647
21648
21649fi
21650rm -f core conftest.err conftest.$ac_objext \
21651    conftest$ac_exeext conftest.$ac_ext
21652  ac_ext=c
21653ac_cpp='$CPP $CPPFLAGS'
21654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21656ac_compiler_gnu=$ac_cv_c_compiler_gnu
21657
21658
21659  fi
21660  if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
21661    { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
21662$as_echo "$as_me: Enabling debugging for C++" >&6;}
21663    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21664
21665  _svn_xxflags__save="$CXXFLAGS"
21666  ac_ext=cpp
21667ac_cpp='$CXXCPP $CPPFLAGS'
21668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21671
21672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
21673$as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
21674  CXXFLAGS="-fno-inline $CXXFLAGS"
21675        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676/* end confdefs.h.  */
21677int main(){}
21678_ACEOF
21679if ac_fn_cxx_try_link "$LINENO"; then :
21680
21681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21682$as_echo "yes" >&6; }
21683
21684
21685else
21686
21687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21688$as_echo "no" >&6; }
21689    CXXFLAGS="$_svn_xxflags__save"
21690
21691
21692fi
21693rm -f core conftest.err conftest.$ac_objext \
21694    conftest$ac_exeext conftest.$ac_ext
21695  ac_ext=c
21696ac_cpp='$CPP $CPPFLAGS'
21697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21699ac_compiler_gnu=$ac_cv_c_compiler_gnu
21700
21701
21702
21703  _svn_xxflags__save="$CXXFLAGS"
21704  ac_ext=cpp
21705ac_cpp='$CXXCPP $CPPFLAGS'
21706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21709
21710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
21711$as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
21712  CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
21713        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714/* end confdefs.h.  */
21715int main(){}
21716_ACEOF
21717if ac_fn_cxx_try_link "$LINENO"; then :
21718
21719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21720$as_echo "yes" >&6; }
21721
21722
21723else
21724
21725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21726$as_echo "no" >&6; }
21727    CXXFLAGS="$_svn_xxflags__save"
21728
21729
21730fi
21731rm -f core conftest.err conftest.$ac_objext \
21732    conftest$ac_exeext conftest.$ac_ext
21733  ac_ext=c
21734ac_cpp='$CPP $CPPFLAGS'
21735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21737ac_compiler_gnu=$ac_cv_c_compiler_gnu
21738
21739
21740
21741  _svn_xxflags__save="$CXXFLAGS"
21742  ac_ext=cpp
21743ac_cpp='$CXXCPP $CPPFLAGS'
21744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21747
21748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
21749$as_echo_n "checking if $CXX accepts -g3... " >&6; }
21750  CXXFLAGS="-g3 $CXXFLAGS"
21751        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752/* end confdefs.h.  */
21753int main(){}
21754_ACEOF
21755if ac_fn_cxx_try_link "$LINENO"; then :
21756
21757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21758$as_echo "yes" >&6; }
21759
21760
21761else
21762
21763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21764$as_echo "no" >&6; }
21765    CXXFLAGS="$_svn_xxflags__save"
21766
21767
21768  _svn_xxflags__save="$CXXFLAGS"
21769  ac_ext=cpp
21770ac_cpp='$CXXCPP $CPPFLAGS'
21771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21774
21775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
21776$as_echo_n "checking if $CXX accepts -g2... " >&6; }
21777  CXXFLAGS="-g2 $CXXFLAGS"
21778        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779/* end confdefs.h.  */
21780int main(){}
21781_ACEOF
21782if ac_fn_cxx_try_link "$LINENO"; then :
21783
21784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21785$as_echo "yes" >&6; }
21786
21787
21788else
21789
21790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21791$as_echo "no" >&6; }
21792    CXXFLAGS="$_svn_xxflags__save"
21793
21794
21795  _svn_xxflags__save="$CXXFLAGS"
21796  ac_ext=cpp
21797ac_cpp='$CXXCPP $CPPFLAGS'
21798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21801
21802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
21803$as_echo_n "checking if $CXX accepts -g... " >&6; }
21804  CXXFLAGS="-g $CXXFLAGS"
21805        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21806/* end confdefs.h.  */
21807int main(){}
21808_ACEOF
21809if ac_fn_cxx_try_link "$LINENO"; then :
21810
21811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21812$as_echo "yes" >&6; }
21813
21814
21815else
21816
21817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21818$as_echo "no" >&6; }
21819    CXXFLAGS="$_svn_xxflags__save"
21820
21821
21822fi
21823rm -f core conftest.err conftest.$ac_objext \
21824    conftest$ac_exeext conftest.$ac_ext
21825  ac_ext=cpp
21826ac_cpp='$CXXCPP $CPPFLAGS'
21827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21830
21831
21832
21833fi
21834rm -f core conftest.err conftest.$ac_objext \
21835    conftest$ac_exeext conftest.$ac_ext
21836  ac_ext=cpp
21837ac_cpp='$CXXCPP $CPPFLAGS'
21838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21841
21842
21843
21844fi
21845rm -f core conftest.err conftest.$ac_objext \
21846    conftest$ac_exeext conftest.$ac_ext
21847  ac_ext=c
21848ac_cpp='$CPP $CPPFLAGS'
21849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851ac_compiler_gnu=$ac_cv_c_compiler_gnu
21852
21853
21854  fi
21855      CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
21856  CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
21857elif test "$enable_debugging" = "no" ; then
21858  { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
21859$as_echo "$as_me: Disabling debugging" >&6;}
21860  CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21861  CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21862    CFLAGS="$CFLAGS -DNDEBUG"
21863  CXXFLAGS="$CXXFLAGS -DNDEBUG"
21864# elif test "$enable_debugging" = "maybe" ; then
21865#   # do nothing
21866fi
21867
21868if test "$enable_optimization" = "yes"; then
21869    if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21870    CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21871    if test "$enable_debugging" = "yes"; then
21872      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
21873$as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
21874
21875  _svn_xxflags__save="$CFLAGS"
21876  ac_ext=c
21877ac_cpp='$CPP $CPPFLAGS'
21878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21880ac_compiler_gnu=$ac_cv_c_compiler_gnu
21881
21882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21883$as_echo_n "checking if $CC accepts -O1... " >&6; }
21884  CFLAGS="-O1 $CFLAGS"
21885        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21886/* end confdefs.h.  */
21887int main(void){return 0;}
21888_ACEOF
21889if ac_fn_c_try_link "$LINENO"; then :
21890
21891    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21892$as_echo "yes" >&6; }
21893
21894
21895else
21896
21897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898$as_echo "no" >&6; }
21899    CFLAGS="$_svn_xxflags__save"
21900
21901
21902  _svn_xxflags__save="$CFLAGS"
21903  ac_ext=c
21904ac_cpp='$CPP $CPPFLAGS'
21905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908
21909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21910$as_echo_n "checking if $CC accepts -O... " >&6; }
21911  CFLAGS="-O $CFLAGS"
21912        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913/* end confdefs.h.  */
21914int main(void){return 0;}
21915_ACEOF
21916if ac_fn_c_try_link "$LINENO"; then :
21917
21918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21919$as_echo "yes" >&6; }
21920
21921
21922else
21923
21924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21925$as_echo "no" >&6; }
21926    CFLAGS="$_svn_xxflags__save"
21927
21928
21929fi
21930rm -f core conftest.err conftest.$ac_objext \
21931    conftest$ac_exeext conftest.$ac_ext
21932  ac_ext=c
21933ac_cpp='$CPP $CPPFLAGS'
21934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21936ac_compiler_gnu=$ac_cv_c_compiler_gnu
21937
21938
21939
21940fi
21941rm -f core conftest.err conftest.$ac_objext \
21942    conftest$ac_exeext conftest.$ac_ext
21943  ac_ext=c
21944ac_cpp='$CPP $CPPFLAGS'
21945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947ac_compiler_gnu=$ac_cv_c_compiler_gnu
21948
21949
21950    else
21951      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
21952$as_echo "$as_me: Enabling optimizations for C" >&6;}
21953
21954  _svn_xxflags__save="$CFLAGS"
21955  ac_ext=c
21956ac_cpp='$CPP $CPPFLAGS'
21957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21959ac_compiler_gnu=$ac_cv_c_compiler_gnu
21960
21961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
21962$as_echo_n "checking if $CC accepts -O3... " >&6; }
21963  CFLAGS="-O3 $CFLAGS"
21964        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21965/* end confdefs.h.  */
21966int main(void){return 0;}
21967_ACEOF
21968if ac_fn_c_try_link "$LINENO"; then :
21969
21970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21971$as_echo "yes" >&6; }
21972
21973
21974else
21975
21976    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21977$as_echo "no" >&6; }
21978    CFLAGS="$_svn_xxflags__save"
21979
21980
21981  _svn_xxflags__save="$CFLAGS"
21982  ac_ext=c
21983ac_cpp='$CPP $CPPFLAGS'
21984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986ac_compiler_gnu=$ac_cv_c_compiler_gnu
21987
21988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
21989$as_echo_n "checking if $CC accepts -O2... " >&6; }
21990  CFLAGS="-O2 $CFLAGS"
21991        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992/* end confdefs.h.  */
21993int main(void){return 0;}
21994_ACEOF
21995if ac_fn_c_try_link "$LINENO"; then :
21996
21997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21998$as_echo "yes" >&6; }
21999
22000
22001else
22002
22003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22004$as_echo "no" >&6; }
22005    CFLAGS="$_svn_xxflags__save"
22006
22007
22008  _svn_xxflags__save="$CFLAGS"
22009  ac_ext=c
22010ac_cpp='$CPP $CPPFLAGS'
22011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013ac_compiler_gnu=$ac_cv_c_compiler_gnu
22014
22015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
22016$as_echo_n "checking if $CC accepts -O1... " >&6; }
22017  CFLAGS="-O1 $CFLAGS"
22018        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22019/* end confdefs.h.  */
22020int main(void){return 0;}
22021_ACEOF
22022if ac_fn_c_try_link "$LINENO"; then :
22023
22024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22025$as_echo "yes" >&6; }
22026
22027
22028else
22029
22030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22031$as_echo "no" >&6; }
22032    CFLAGS="$_svn_xxflags__save"
22033
22034
22035  _svn_xxflags__save="$CFLAGS"
22036  ac_ext=c
22037ac_cpp='$CPP $CPPFLAGS'
22038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22040ac_compiler_gnu=$ac_cv_c_compiler_gnu
22041
22042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
22043$as_echo_n "checking if $CC accepts -O... " >&6; }
22044  CFLAGS="-O $CFLAGS"
22045        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22046/* end confdefs.h.  */
22047int main(void){return 0;}
22048_ACEOF
22049if ac_fn_c_try_link "$LINENO"; then :
22050
22051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22052$as_echo "yes" >&6; }
22053
22054
22055else
22056
22057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22058$as_echo "no" >&6; }
22059    CFLAGS="$_svn_xxflags__save"
22060
22061
22062fi
22063rm -f core conftest.err conftest.$ac_objext \
22064    conftest$ac_exeext conftest.$ac_ext
22065  ac_ext=c
22066ac_cpp='$CPP $CPPFLAGS'
22067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22069ac_compiler_gnu=$ac_cv_c_compiler_gnu
22070
22071
22072
22073fi
22074rm -f core conftest.err conftest.$ac_objext \
22075    conftest$ac_exeext conftest.$ac_ext
22076  ac_ext=c
22077ac_cpp='$CPP $CPPFLAGS'
22078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080ac_compiler_gnu=$ac_cv_c_compiler_gnu
22081
22082
22083
22084fi
22085rm -f core conftest.err conftest.$ac_objext \
22086    conftest$ac_exeext conftest.$ac_ext
22087  ac_ext=c
22088ac_cpp='$CPP $CPPFLAGS'
22089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22091ac_compiler_gnu=$ac_cv_c_compiler_gnu
22092
22093
22094
22095fi
22096rm -f core conftest.err conftest.$ac_objext \
22097    conftest$ac_exeext conftest.$ac_ext
22098  ac_ext=c
22099ac_cpp='$CPP $CPPFLAGS'
22100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102ac_compiler_gnu=$ac_cv_c_compiler_gnu
22103
22104
22105
22106  _svn_xxflags__save="$CFLAGS"
22107  ac_ext=c
22108ac_cpp='$CPP $CPPFLAGS'
22109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22111ac_compiler_gnu=$ac_cv_c_compiler_gnu
22112
22113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
22114$as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
22115  CFLAGS="-Wno-clobbered $CFLAGS"
22116        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22117/* end confdefs.h.  */
22118int main(void){return 0;}
22119_ACEOF
22120if ac_fn_c_try_link "$LINENO"; then :
22121
22122    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22123$as_echo "yes" >&6; }
22124
22125
22126else
22127
22128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22129$as_echo "no" >&6; }
22130    CFLAGS="$_svn_xxflags__save"
22131
22132
22133fi
22134rm -f core conftest.err conftest.$ac_objext \
22135    conftest$ac_exeext conftest.$ac_ext
22136  ac_ext=c
22137ac_cpp='$CPP $CPPFLAGS'
22138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22140ac_compiler_gnu=$ac_cv_c_compiler_gnu
22141
22142
22143
22144  _svn_xxflags__save="$CFLAGS"
22145  ac_ext=c
22146ac_cpp='$CPP $CPPFLAGS'
22147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22149ac_compiler_gnu=$ac_cv_c_compiler_gnu
22150
22151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
22152$as_echo_n "checking if $CC accepts -flto... " >&6; }
22153  CFLAGS="-flto $CFLAGS"
22154        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22155/* end confdefs.h.  */
22156int main(void){return 0;}
22157_ACEOF
22158if ac_fn_c_try_link "$LINENO"; then :
22159
22160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22161$as_echo "yes" >&6; }
22162
22163
22164else
22165
22166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22167$as_echo "no" >&6; }
22168    CFLAGS="$_svn_xxflags__save"
22169
22170
22171fi
22172rm -f core conftest.err conftest.$ac_objext \
22173    conftest$ac_exeext conftest.$ac_ext
22174  ac_ext=c
22175ac_cpp='$CPP $CPPFLAGS'
22176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22178ac_compiler_gnu=$ac_cv_c_compiler_gnu
22179
22180
22181    fi
22182  fi
22183  if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
22184    CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22185    if test "$enable_debugging" = "yes"; then
22186      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
22187$as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
22188
22189  _svn_xxflags__save="$CXXFLAGS"
22190  ac_ext=cpp
22191ac_cpp='$CXXCPP $CPPFLAGS'
22192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22195
22196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22197$as_echo_n "checking if $CXX accepts -O1... " >&6; }
22198  CXXFLAGS="-O1 $CXXFLAGS"
22199        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22200/* end confdefs.h.  */
22201int main(){}
22202_ACEOF
22203if ac_fn_cxx_try_link "$LINENO"; then :
22204
22205    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22206$as_echo "yes" >&6; }
22207
22208
22209else
22210
22211    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22212$as_echo "no" >&6; }
22213    CXXFLAGS="$_svn_xxflags__save"
22214
22215
22216  _svn_xxflags__save="$CXXFLAGS"
22217  ac_ext=cpp
22218ac_cpp='$CXXCPP $CPPFLAGS'
22219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22222
22223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22224$as_echo_n "checking if $CXX accepts -O... " >&6; }
22225  CXXFLAGS="-O $CXXFLAGS"
22226        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227/* end confdefs.h.  */
22228int main(){}
22229_ACEOF
22230if ac_fn_cxx_try_link "$LINENO"; then :
22231
22232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22233$as_echo "yes" >&6; }
22234
22235
22236else
22237
22238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22239$as_echo "no" >&6; }
22240    CXXFLAGS="$_svn_xxflags__save"
22241
22242
22243fi
22244rm -f core conftest.err conftest.$ac_objext \
22245    conftest$ac_exeext conftest.$ac_ext
22246  ac_ext=cpp
22247ac_cpp='$CXXCPP $CPPFLAGS'
22248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22251
22252
22253
22254fi
22255rm -f core conftest.err conftest.$ac_objext \
22256    conftest$ac_exeext conftest.$ac_ext
22257  ac_ext=c
22258ac_cpp='$CPP $CPPFLAGS'
22259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22261ac_compiler_gnu=$ac_cv_c_compiler_gnu
22262
22263
22264    else
22265      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
22266$as_echo "$as_me: Enabling optimizations for C++" >&6;}
22267
22268  _svn_xxflags__save="$CXXFLAGS"
22269  ac_ext=cpp
22270ac_cpp='$CXXCPP $CPPFLAGS'
22271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22274
22275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
22276$as_echo_n "checking if $CXX accepts -O3... " >&6; }
22277  CXXFLAGS="-O3 $CXXFLAGS"
22278        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22279/* end confdefs.h.  */
22280int main(){}
22281_ACEOF
22282if ac_fn_cxx_try_link "$LINENO"; then :
22283
22284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22285$as_echo "yes" >&6; }
22286
22287
22288else
22289
22290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22291$as_echo "no" >&6; }
22292    CXXFLAGS="$_svn_xxflags__save"
22293
22294
22295  _svn_xxflags__save="$CXXFLAGS"
22296  ac_ext=cpp
22297ac_cpp='$CXXCPP $CPPFLAGS'
22298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22301
22302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
22303$as_echo_n "checking if $CXX accepts -O2... " >&6; }
22304  CXXFLAGS="-O2 $CXXFLAGS"
22305        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22306/* end confdefs.h.  */
22307int main(){}
22308_ACEOF
22309if ac_fn_cxx_try_link "$LINENO"; then :
22310
22311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22312$as_echo "yes" >&6; }
22313
22314
22315else
22316
22317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318$as_echo "no" >&6; }
22319    CXXFLAGS="$_svn_xxflags__save"
22320
22321
22322  _svn_xxflags__save="$CXXFLAGS"
22323  ac_ext=cpp
22324ac_cpp='$CXXCPP $CPPFLAGS'
22325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22328
22329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
22330$as_echo_n "checking if $CXX accepts -O1... " >&6; }
22331  CXXFLAGS="-O1 $CXXFLAGS"
22332        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333/* end confdefs.h.  */
22334int main(){}
22335_ACEOF
22336if ac_fn_cxx_try_link "$LINENO"; then :
22337
22338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22339$as_echo "yes" >&6; }
22340
22341
22342else
22343
22344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22345$as_echo "no" >&6; }
22346    CXXFLAGS="$_svn_xxflags__save"
22347
22348
22349  _svn_xxflags__save="$CXXFLAGS"
22350  ac_ext=cpp
22351ac_cpp='$CXXCPP $CPPFLAGS'
22352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22355
22356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
22357$as_echo_n "checking if $CXX accepts -O... " >&6; }
22358  CXXFLAGS="-O $CXXFLAGS"
22359        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22360/* end confdefs.h.  */
22361int main(){}
22362_ACEOF
22363if ac_fn_cxx_try_link "$LINENO"; then :
22364
22365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22366$as_echo "yes" >&6; }
22367
22368
22369else
22370
22371    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22372$as_echo "no" >&6; }
22373    CXXFLAGS="$_svn_xxflags__save"
22374
22375
22376fi
22377rm -f core conftest.err conftest.$ac_objext \
22378    conftest$ac_exeext conftest.$ac_ext
22379  ac_ext=cpp
22380ac_cpp='$CXXCPP $CPPFLAGS'
22381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22384
22385
22386
22387fi
22388rm -f core conftest.err conftest.$ac_objext \
22389    conftest$ac_exeext conftest.$ac_ext
22390  ac_ext=cpp
22391ac_cpp='$CXXCPP $CPPFLAGS'
22392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22395
22396
22397
22398fi
22399rm -f core conftest.err conftest.$ac_objext \
22400    conftest$ac_exeext conftest.$ac_ext
22401  ac_ext=cpp
22402ac_cpp='$CXXCPP $CPPFLAGS'
22403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22406
22407
22408
22409fi
22410rm -f core conftest.err conftest.$ac_objext \
22411    conftest$ac_exeext conftest.$ac_ext
22412  ac_ext=c
22413ac_cpp='$CPP $CPPFLAGS'
22414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22416ac_compiler_gnu=$ac_cv_c_compiler_gnu
22417
22418
22419
22420  _svn_xxflags__save="$CXXFLAGS"
22421  ac_ext=cpp
22422ac_cpp='$CXXCPP $CPPFLAGS'
22423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22426
22427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
22428$as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
22429  CXXFLAGS="-Wno-clobbered $CXXFLAGS"
22430        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22431/* end confdefs.h.  */
22432int main(){}
22433_ACEOF
22434if ac_fn_cxx_try_link "$LINENO"; then :
22435
22436    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22437$as_echo "yes" >&6; }
22438
22439
22440else
22441
22442    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22443$as_echo "no" >&6; }
22444    CXXFLAGS="$_svn_xxflags__save"
22445
22446
22447fi
22448rm -f core conftest.err conftest.$ac_objext \
22449    conftest$ac_exeext conftest.$ac_ext
22450  ac_ext=c
22451ac_cpp='$CPP $CPPFLAGS'
22452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22454ac_compiler_gnu=$ac_cv_c_compiler_gnu
22455
22456
22457
22458  _svn_xxflags__save="$CXXFLAGS"
22459  ac_ext=cpp
22460ac_cpp='$CXXCPP $CPPFLAGS'
22461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22464
22465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
22466$as_echo_n "checking if $CXX accepts -flto... " >&6; }
22467  CXXFLAGS="-flto $CXXFLAGS"
22468        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469/* end confdefs.h.  */
22470int main(){}
22471_ACEOF
22472if ac_fn_cxx_try_link "$LINENO"; then :
22473
22474    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22475$as_echo "yes" >&6; }
22476
22477
22478else
22479
22480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22481$as_echo "no" >&6; }
22482    CXXFLAGS="$_svn_xxflags__save"
22483
22484
22485fi
22486rm -f core conftest.err conftest.$ac_objext \
22487    conftest$ac_exeext conftest.$ac_ext
22488  ac_ext=c
22489ac_cpp='$CPP $CPPFLAGS'
22490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22492ac_compiler_gnu=$ac_cv_c_compiler_gnu
22493
22494
22495    fi
22496  fi
22497elif test "$enable_optimization" = "no"; then
22498    { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
22499$as_echo "$as_me: Disabling optimizations" >&6;}
22500  CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22501  CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
22502# elif test "$enable_optimization" = "maybe" ; then
22503#   # do nothing
22504fi
22505
22506{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
22507$as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
22508{ $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
22509$as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
22510{ $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
22511$as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
22512{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
22513$as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
22514{ $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
22515$as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
22516{ $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
22517$as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
22518
22519# Check whether --enable-full-version-match was given.
22520if test "${enable_full_version_match+set}" = set; then :
22521  enableval=$enable_full_version_match;
22522    if test "$enableval" = "no" ; then
22523      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
22524$as_echo "$as_me: Disabling svn full version matching" >&6;}
22525
22526$as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
22527
22528    fi
22529
22530fi
22531
22532
22533
22534# Check whether --with-editor was given.
22535if test "${with_editor+set}" = set; then :
22536  withval=$with_editor;
22537
22538    if test "$withval" = "yes" ; then
22539      as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
22540    else
22541      SVN_CLIENT_EDITOR=$withval
22542
22543cat >>confdefs.h <<_ACEOF
22544#define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
22545_ACEOF
22546
22547
22548    fi
22549
22550
22551fi
22552
22553
22554
22555  zlib_found=no
22556  zlib_skip=no
22557
22558
22559# Check whether --with-zlib was given.
22560if test "${with_zlib+set}" = set; then :
22561  withval=$with_zlib;
22562    if test "$withval" = "yes"; then
22563      zlib_skip=no
22564    elif test "$withval" = "no"; then
22565      zlib_skip=yes
22566    else
22567      zlib_skip=no
22568      zlib_prefix="$withval"
22569    fi
22570
22571fi
22572
22573
22574  if test "$zlib_skip" = "yes"; then
22575    as_fn_error $? "subversion requires zlib" "$LINENO" 5
22576  fi
22577
22578  if test -n "$zlib_prefix"; then
22579    { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via prefix" >&5
22580$as_echo "$as_me: zlib library configuration via prefix" >&6;}
22581    save_cppflags="$CPPFLAGS"
22582    CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
22583    for ac_header in zlib.h
22584do :
22585  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22586if test "x$ac_cv_header_zlib_h" = xyes; then :
22587  cat >>confdefs.h <<_ACEOF
22588#define HAVE_ZLIB_H 1
22589_ACEOF
22590
22591      save_ldflags="$LDFLAGS"
22592      LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
22593      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22594$as_echo_n "checking for inflate in -lz... " >&6; }
22595if ${ac_cv_lib_z_inflate+:} false; then :
22596  $as_echo_n "(cached) " >&6
22597else
22598  ac_check_lib_save_LIBS=$LIBS
22599LIBS="-lz  $LIBS"
22600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22601/* end confdefs.h.  */
22602
22603/* Override any GCC internal prototype to avoid an error.
22604   Use char because int might match the return type of a GCC
22605   builtin and then its argument prototype would still apply.  */
22606#ifdef __cplusplus
22607extern "C"
22608#endif
22609char inflate ();
22610int
22611main ()
22612{
22613return inflate ();
22614  ;
22615  return 0;
22616}
22617_ACEOF
22618if ac_fn_c_try_link "$LINENO"; then :
22619  ac_cv_lib_z_inflate=yes
22620else
22621  ac_cv_lib_z_inflate=no
22622fi
22623rm -f core conftest.err conftest.$ac_objext \
22624    conftest$ac_exeext conftest.$ac_ext
22625LIBS=$ac_check_lib_save_LIBS
22626fi
22627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22628$as_echo "$ac_cv_lib_z_inflate" >&6; }
22629if test "x$ac_cv_lib_z_inflate" = xyes; then :
22630
22631        zlib_found="yes"
22632        SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
22633        SVN_ZLIB_LIBS="`
22634  input_flags="-L$zlib_prefix/lib"
22635  output_flags=""
22636  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22637  for flag in $input_flags; do
22638    filter="no"
22639    for dir in $filtered_dirs; do
22640      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22641        filter="yes"
22642        break
22643      fi
22644    done
22645    if test "$filter" = "no"; then
22646      output_flags="$output_flags $flag"
22647    fi
22648  done
22649  if test -n "$output_flags"; then
22650    printf "%s" "${output_flags# }"
22651  fi
22652` -lz"
22653
22654fi
22655
22656      LDFLAGS="$save_ldflags"
22657
22658fi
22659
22660done
22661
22662    CPPFLAGS="$save_cppflags"
22663  else
22664
22665  { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via pkg-config" >&5
22666$as_echo "$as_me: zlib library configuration via pkg-config" >&6;}
22667  if test -n "$PKG_CONFIG"; then
22668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
22669$as_echo_n "checking for zlib library... " >&6; }
22670    if $PKG_CONFIG zlib --exists; then
22671      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22672$as_echo "yes" >&6; }
22673      zlib_found=yes
22674      SVN_ZLIB_INCLUDES=`$PKG_CONFIG zlib --cflags`
22675      SVN_ZLIB_LIBS=`$PKG_CONFIG zlib --libs`
22676      SVN_ZLIB_LIBS="`
22677  input_flags="$SVN_ZLIB_LIBS"
22678  output_flags=""
22679  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22680  for flag in $input_flags; do
22681    filter="no"
22682    for dir in $filtered_dirs; do
22683      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22684        filter="yes"
22685        break
22686      fi
22687    done
22688    if test "$filter" = "no"; then
22689      output_flags="$output_flags $flag"
22690    fi
22691  done
22692  if test -n "$output_flags"; then
22693    printf "%s" "${output_flags# }"
22694  fi
22695`"
22696    else
22697      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22698$as_echo "no" >&6; }
22699    fi
22700  fi
22701
22702
22703    if test "$zlib_found" = "no"; then
22704      { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
22705$as_echo "$as_me: zlib library configuration" >&6;}
22706      ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22707if test "x$ac_cv_header_zlib_h" = xyes; then :
22708
22709        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
22710$as_echo_n "checking for inflate in -lz... " >&6; }
22711if ${ac_cv_lib_z_inflate+:} false; then :
22712  $as_echo_n "(cached) " >&6
22713else
22714  ac_check_lib_save_LIBS=$LIBS
22715LIBS="-lz  $LIBS"
22716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22717/* end confdefs.h.  */
22718
22719/* Override any GCC internal prototype to avoid an error.
22720   Use char because int might match the return type of a GCC
22721   builtin and then its argument prototype would still apply.  */
22722#ifdef __cplusplus
22723extern "C"
22724#endif
22725char inflate ();
22726int
22727main ()
22728{
22729return inflate ();
22730  ;
22731  return 0;
22732}
22733_ACEOF
22734if ac_fn_c_try_link "$LINENO"; then :
22735  ac_cv_lib_z_inflate=yes
22736else
22737  ac_cv_lib_z_inflate=no
22738fi
22739rm -f core conftest.err conftest.$ac_objext \
22740    conftest$ac_exeext conftest.$ac_ext
22741LIBS=$ac_check_lib_save_LIBS
22742fi
22743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22744$as_echo "$ac_cv_lib_z_inflate" >&6; }
22745if test "x$ac_cv_lib_z_inflate" = xyes; then :
22746
22747          zlib_found="builtin"
22748          SVN_ZLIB_LIBS="-lz"
22749
22750fi
22751
22752
22753fi
22754
22755
22756    fi
22757  fi
22758
22759  if test "$zlib_found" = "no"; then
22760    as_fn_error $? "subversion requires zlib" "$LINENO" 5
22761  fi
22762
22763
22764
22765
22766
22767MOD_ACTIVATION=""
22768# Check whether --enable-mod-activation was given.
22769if test "${enable_mod_activation+set}" = set; then :
22770  enableval=$enable_mod_activation;
22771    if test "$enableval" = "yes" ; then
22772      MOD_ACTIVATION="-a"
22773      { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
22774$as_echo "$as_me: Enabling apache module activation" >&6;}
22775    else
22776      { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
22777$as_echo "$as_me: Disabling apache module activation" >&6;}
22778    fi
22779
22780fi
22781
22782
22783
22784
22785
22786# Check whether --enable-gcov was given.
22787if test "${enable_gcov+set}" = set; then :
22788  enableval=$enable_gcov;
22789    if test "$enableval" = "yes" ; then
22790                  if test "$GCC" = "yes"; then
22791        if test "$svn_enable_shared" = "yes" ; then
22792          as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
22793                        recommend also using --enable-all-static)." "$LINENO" 5
22794        fi
22795        if test ! "$enable_all_static" = "yes" ; then
22796          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
22797$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
22798        fi
22799        { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
22800$as_echo "$as_me: Enabling gcov coverage testing." >&6;}
22801        CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
22802        CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
22803      else
22804        as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
22805      fi
22806    fi
22807
22808fi
22809
22810
22811# Check whether --enable-gprof was given.
22812if test "${enable_gprof+set}" = set; then :
22813  enableval=$enable_gprof;
22814    if test "$enableval" = "yes" ; then
22815                  if test "$GCC" = "yes"; then
22816        if test "$svn_enable_shared" = "yes" ; then
22817          as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
22818                        recommend also using --enable-all-static)." "$LINENO" 5
22819        fi
22820        if test ! "$enable_all_static" = "yes" ; then
22821          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
22822$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
22823        fi
22824        { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
22825$as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
22826        CFLAGS="$CFLAGS -pg"
22827        CXXFLAGS="$CXXFLAGS -pg"
22828        LT_LDFLAGS="$LT_LDFLAGS -pg"
22829      else
22830        as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
22831      fi
22832    fi
22833
22834fi
22835
22836
22837
22838# Scripting and Bindings languages
22839
22840# Python: Used for testsuite, and bindings
22841
22842
22843PYTHON="`$abs_srcdir/build/find_python.sh`"
22844if test -z "$PYTHON"; then
22845  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.7 or later is required to run the testsuite" >&5
22846$as_echo "$as_me: WARNING: Python 2.7 or later is required to run the testsuite" >&2;}
22847  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
22848$as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
22849  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
22850$as_echo "$as_me: WARNING: " >&2;}
22851  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
22852$as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
22853  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
22854$as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
22855  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
22856$as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
22857fi
22858for ac_prog in "$PYTHON"
22859do
22860  # Extract the first word of "$ac_prog", so it can be a program name with args.
22861set dummy $ac_prog; ac_word=$2
22862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22863$as_echo_n "checking for $ac_word... " >&6; }
22864if ${ac_cv_path_PYTHON+:} false; then :
22865  $as_echo_n "(cached) " >&6
22866else
22867  case $PYTHON in
22868  [\\/]* | ?:[\\/]*)
22869  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22870  ;;
22871  *)
22872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22873for as_dir in $PATH
22874do
22875  IFS=$as_save_IFS
22876  test -z "$as_dir" && as_dir=.
22877    for ac_exec_ext in '' $ac_executable_extensions; do
22878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22879    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22881    break 2
22882  fi
22883done
22884  done
22885IFS=$as_save_IFS
22886
22887  ;;
22888esac
22889fi
22890PYTHON=$ac_cv_path_PYTHON
22891if test -n "$PYTHON"; then
22892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22893$as_echo "$PYTHON" >&6; }
22894else
22895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22896$as_echo "no" >&6; }
22897fi
22898
22899
22900  test -n "$PYTHON" && break
22901done
22902test -n "$PYTHON" || PYTHON="none"
22903
22904
22905# The minimum version for the JVM runtime for our Java bytecode.
22906JAVA_OLDEST_WORKING_VER='1.6'
22907# SVN_CHECK_JDK sets $JAVA_CLASSPATH
22908
22909  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22910
22911# Check whether --with-jdk was given.
22912if test "${with_jdk+set}" = set; then :
22913  withval=$with_jdk;
22914    case "$withval" in
22915      "no")
22916        JDK_SUITABLE=no
22917      ;;
22918      "yes")
22919
22920  where=check
22921  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22922
22923  JDK=none
22924  JAVA_BIN=none
22925  JAVADOC=none
22926  JAVAC=none
22927  JAVAH=none
22928  JAR=none
22929  JNI_INCLUDES=none
22930
22931  JDK_SUITABLE=no
22932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22933$as_echo_n "checking for JDK... " >&6; }
22934  if test $where = check; then
22935                if test -x "$JAVA_HOME/bin/java"; then
22936      JDK="$JAVA_HOME"
22937    elif test -x "/usr/libexec/java_home"; then
22938      JDK=`/usr/libexec/java_home`
22939    elif test -x "/Library/Java/Home/bin/java"; then
22940      JDK="/Library/Java/Home"
22941    elif test -x "/usr/bin/java"; then
22942      JDK="/usr"
22943    elif test -x "/usr/local/bin/java"; then
22944      JDK="/usr/local"
22945    fi
22946  else
22947    JDK=$where
22948  fi
22949
22950          os_arch="`uname`"
22951  if test "$os_arch" = "Darwin"; then
22952    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22953
22954    if test "$OSX_VER" = "10.4"; then
22955            OSX_VER="10.4u"
22956    fi
22957
22958    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22959    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22960    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22961  fi
22962
22963  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22964     test -d "/Library/Java/Home"; then
22965    JDK="/Library/Java/Home"
22966  fi
22967
22968  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22969    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22970  else
22971    JRE_LIB_DIR="$JDK/jre/lib"
22972  fi
22973
22974  if test -f "$JDK/include/jni.h"; then
22975        JNI_INCLUDEDIR="$JDK/include"
22976    JDK_SUITABLE=yes
22977  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22978        JNI_INCLUDEDIR="$JDK/Headers"
22979    JDK_SUITABLE=yes
22980  elif test "$os_arch" = "Darwin" &&
22981       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22982        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22983    JDK_SUITABLE=yes
22984  elif test "$os_arch" = "Darwin" &&
22985       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22986        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22987    JDK_SUITABLE=yes
22988  else
22989    JDK_SUITABLE=no
22990  fi
22991  if test "$JDK_SUITABLE" = "yes"; then
22992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22993$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22994  else
22995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22996$as_echo "no" >&6; }
22997    if test "$where" != "check"; then
22998      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22999$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23000      if test "$os_arch" = "Darwin"; then
23001        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
23002$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
23003      fi
23004    fi
23005  fi
23006
23007  if test "$JDK_SUITABLE" = "yes"; then
23008    JAVA_BIN='$(JDK)/bin'
23009
23010    JAVA="$JAVA_BIN/java"
23011    JAVAC="$JAVA_BIN/javac"
23012    JAVAH="$JAVA_BIN/javah"
23013    JAVADOC="$JAVA_BIN/javadoc"
23014    JAR="$JAVA_BIN/jar"
23015
23016        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
23017
23018# Check whether --with-jikes was given.
23019if test "${with_jikes+set}" = set; then :
23020  withval=$with_jikes;
23021        if test "$withval" != "no" && test "$withval" != "yes"; then
23022                    jikes_options="$withval $jikes_options"
23023        fi
23024        requested_jikes="$withval"  # will be 'yes' if path unspecified
23025
23026fi
23027
23028    if test "$requested_jikes" != "no"; then
23029            for jikes in $jikes_options; do
23030        if test -z "$jikes_found" && test -x "$jikes"; then
23031          jikes_found="yes"
23032          JAVAC="$jikes"
23033          JAVA_CLASSPATH="$JRE_LIB_DIR"
23034          for jar in $JRE_LIB_DIR/*.jar; do
23035            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
23036          done
23037        fi
23038      done
23039    fi
23040    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
23041            if test -z "$jikes_found"; then
23042        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
23043      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
23044           test "$JAVAC" != "$requested_jikes"; then
23045        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
23046$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
23047      fi
23048    fi
23049
23050        # The release for "-source" could actually be greater than that
23051    # of "-target", if we want to cross-compile for lesser JVMs.
23052    if test -z "$JAVAC_FLAGS"; then
23053      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23054      if test "$enable_debugging" = "yes"; then
23055        JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23056        if test -z "$JAVAC_COMPAT_FLAGS"; then
23057          JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23058        fi
23059      fi
23060    fi
23061
23062    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23063    list="`find "$JNI_INCLUDEDIR" -type d -print`"
23064    for dir in $list; do
23065      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23066    done
23067  fi
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079      ;;
23080      *)
23081
23082  where=$withval
23083  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23084
23085  JDK=none
23086  JAVA_BIN=none
23087  JAVADOC=none
23088  JAVAC=none
23089  JAVAH=none
23090  JAR=none
23091  JNI_INCLUDES=none
23092
23093  JDK_SUITABLE=no
23094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23095$as_echo_n "checking for JDK... " >&6; }
23096  if test $where = check; then
23097                if test -x "$JAVA_HOME/bin/java"; then
23098      JDK="$JAVA_HOME"
23099    elif test -x "/usr/libexec/java_home"; then
23100      JDK=`/usr/libexec/java_home`
23101    elif test -x "/Library/Java/Home/bin/java"; then
23102      JDK="/Library/Java/Home"
23103    elif test -x "/usr/bin/java"; then
23104      JDK="/usr"
23105    elif test -x "/usr/local/bin/java"; then
23106      JDK="/usr/local"
23107    fi
23108  else
23109    JDK=$where
23110  fi
23111
23112          os_arch="`uname`"
23113  if test "$os_arch" = "Darwin"; then
23114    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23115
23116    if test "$OSX_VER" = "10.4"; then
23117            OSX_VER="10.4u"
23118    fi
23119
23120    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23121    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23122    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23123  fi
23124
23125  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23126     test -d "/Library/Java/Home"; then
23127    JDK="/Library/Java/Home"
23128  fi
23129
23130  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23131    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23132  else
23133    JRE_LIB_DIR="$JDK/jre/lib"
23134  fi
23135
23136  if test -f "$JDK/include/jni.h"; then
23137        JNI_INCLUDEDIR="$JDK/include"
23138    JDK_SUITABLE=yes
23139  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23140        JNI_INCLUDEDIR="$JDK/Headers"
23141    JDK_SUITABLE=yes
23142  elif test "$os_arch" = "Darwin" &&
23143       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23144        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23145    JDK_SUITABLE=yes
23146  elif test "$os_arch" = "Darwin" &&
23147       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23148        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23149    JDK_SUITABLE=yes
23150  else
23151    JDK_SUITABLE=no
23152  fi
23153  if test "$JDK_SUITABLE" = "yes"; then
23154    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23155$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23156  else
23157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23158$as_echo "no" >&6; }
23159    if test "$where" != "check"; then
23160      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23161$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23162      if test "$os_arch" = "Darwin"; then
23163        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
23164$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
23165      fi
23166    fi
23167  fi
23168
23169  if test "$JDK_SUITABLE" = "yes"; then
23170    JAVA_BIN='$(JDK)/bin'
23171
23172    JAVA="$JAVA_BIN/java"
23173    JAVAC="$JAVA_BIN/javac"
23174    JAVAH="$JAVA_BIN/javah"
23175    JAVADOC="$JAVA_BIN/javadoc"
23176    JAR="$JAVA_BIN/jar"
23177
23178        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
23179
23180# Check whether --with-jikes was given.
23181if test "${with_jikes+set}" = set; then :
23182  withval=$with_jikes;
23183        if test "$withval" != "no" && test "$withval" != "yes"; then
23184                    jikes_options="$withval $jikes_options"
23185        fi
23186        requested_jikes="$withval"  # will be 'yes' if path unspecified
23187
23188fi
23189
23190    if test "$requested_jikes" != "no"; then
23191            for jikes in $jikes_options; do
23192        if test -z "$jikes_found" && test -x "$jikes"; then
23193          jikes_found="yes"
23194          JAVAC="$jikes"
23195          JAVA_CLASSPATH="$JRE_LIB_DIR"
23196          for jar in $JRE_LIB_DIR/*.jar; do
23197            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
23198          done
23199        fi
23200      done
23201    fi
23202    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
23203            if test -z "$jikes_found"; then
23204        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
23205      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
23206           test "$JAVAC" != "$requested_jikes"; then
23207        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
23208$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
23209      fi
23210    fi
23211
23212        # The release for "-source" could actually be greater than that
23213    # of "-target", if we want to cross-compile for lesser JVMs.
23214    if test -z "$JAVAC_FLAGS"; then
23215      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23216      if test "$enable_debugging" = "yes"; then
23217        JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23218        if test -z "$JAVAC_COMPAT_FLAGS"; then
23219          JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23220        fi
23221      fi
23222    fi
23223
23224    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23225    list="`find "$JNI_INCLUDEDIR" -type d -print`"
23226    for dir in $list; do
23227      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23228    done
23229  fi
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241      ;;
23242    esac
23243
23244else
23245
23246
23247  where=check
23248  JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
23249
23250  JDK=none
23251  JAVA_BIN=none
23252  JAVADOC=none
23253  JAVAC=none
23254  JAVAH=none
23255  JAR=none
23256  JNI_INCLUDES=none
23257
23258  JDK_SUITABLE=no
23259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
23260$as_echo_n "checking for JDK... " >&6; }
23261  if test $where = check; then
23262                if test -x "$JAVA_HOME/bin/java"; then
23263      JDK="$JAVA_HOME"
23264    elif test -x "/usr/libexec/java_home"; then
23265      JDK=`/usr/libexec/java_home`
23266    elif test -x "/Library/Java/Home/bin/java"; then
23267      JDK="/Library/Java/Home"
23268    elif test -x "/usr/bin/java"; then
23269      JDK="/usr"
23270    elif test -x "/usr/local/bin/java"; then
23271      JDK="/usr/local"
23272    fi
23273  else
23274    JDK=$where
23275  fi
23276
23277          os_arch="`uname`"
23278  if test "$os_arch" = "Darwin"; then
23279    OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
23280
23281    if test "$OSX_VER" = "10.4"; then
23282            OSX_VER="10.4u"
23283    fi
23284
23285    OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
23286    OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
23287    OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
23288  fi
23289
23290  if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
23291     test -d "/Library/Java/Home"; then
23292    JDK="/Library/Java/Home"
23293  fi
23294
23295  if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
23296    JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
23297  else
23298    JRE_LIB_DIR="$JDK/jre/lib"
23299  fi
23300
23301  if test -f "$JDK/include/jni.h"; then
23302        JNI_INCLUDEDIR="$JDK/include"
23303    JDK_SUITABLE=yes
23304  elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
23305        JNI_INCLUDEDIR="$JDK/Headers"
23306    JDK_SUITABLE=yes
23307  elif test "$os_arch" = "Darwin" &&
23308       test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
23309        JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
23310    JDK_SUITABLE=yes
23311  elif test "$os_arch" = "Darwin" &&
23312       test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
23313        JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
23314    JDK_SUITABLE=yes
23315  else
23316    JDK_SUITABLE=no
23317  fi
23318  if test "$JDK_SUITABLE" = "yes"; then
23319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
23320$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
23321  else
23322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23323$as_echo "no" >&6; }
23324    if test "$where" != "check"; then
23325      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
23326$as_echo "$as_me: WARNING: no JNI header files found." >&2;}
23327      if test "$os_arch" = "Darwin"; then
23328        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&5
23329$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/.  Apple no longer includes the JNI header files by default on Java updates." >&2;}
23330      fi
23331    fi
23332  fi
23333
23334  if test "$JDK_SUITABLE" = "yes"; then
23335    JAVA_BIN='$(JDK)/bin'
23336
23337    JAVA="$JAVA_BIN/java"
23338    JAVAC="$JAVA_BIN/javac"
23339    JAVAH="$JAVA_BIN/javah"
23340    JAVADOC="$JAVA_BIN/javadoc"
23341    JAR="$JAVA_BIN/jar"
23342
23343        jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
23344
23345# Check whether --with-jikes was given.
23346if test "${with_jikes+set}" = set; then :
23347  withval=$with_jikes;
23348        if test "$withval" != "no" && test "$withval" != "yes"; then
23349                    jikes_options="$withval $jikes_options"
23350        fi
23351        requested_jikes="$withval"  # will be 'yes' if path unspecified
23352
23353fi
23354
23355    if test "$requested_jikes" != "no"; then
23356            for jikes in $jikes_options; do
23357        if test -z "$jikes_found" && test -x "$jikes"; then
23358          jikes_found="yes"
23359          JAVAC="$jikes"
23360          JAVA_CLASSPATH="$JRE_LIB_DIR"
23361          for jar in $JRE_LIB_DIR/*.jar; do
23362            JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
23363          done
23364        fi
23365      done
23366    fi
23367    if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
23368            if test -z "$jikes_found"; then
23369        as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
23370      elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
23371           test "$JAVAC" != "$requested_jikes"; then
23372        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
23373$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
23374      fi
23375    fi
23376
23377        # The release for "-source" could actually be greater than that
23378    # of "-target", if we want to cross-compile for lesser JVMs.
23379    if test -z "$JAVAC_FLAGS"; then
23380      JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6"
23381      if test "$enable_debugging" = "yes"; then
23382        JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS"
23383        if test -z "$JAVAC_COMPAT_FLAGS"; then
23384          JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes"
23385        fi
23386      fi
23387    fi
23388
23389    JNI_INCLUDES="-I$JNI_INCLUDEDIR"
23390    list="`find "$JNI_INCLUDEDIR" -type d -print`"
23391    for dir in $list; do
23392      JNI_INCLUDES="$JNI_INCLUDES -I$dir"
23393    done
23394  fi
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407fi
23408
23409
23410
23411# Extract the first word of "perl", so it can be a program name with args.
23412set dummy perl; ac_word=$2
23413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23414$as_echo_n "checking for $ac_word... " >&6; }
23415if ${ac_cv_path_PERL+:} false; then :
23416  $as_echo_n "(cached) " >&6
23417else
23418  case $PERL in
23419  [\\/]* | ?:[\\/]*)
23420  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23421  ;;
23422  *)
23423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23424for as_dir in $PATH
23425do
23426  IFS=$as_save_IFS
23427  test -z "$as_dir" && as_dir=.
23428    for ac_exec_ext in '' $ac_executable_extensions; do
23429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23430    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23432    break 2
23433  fi
23434done
23435  done
23436IFS=$as_save_IFS
23437
23438  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
23439  ;;
23440esac
23441fi
23442PERL=$ac_cv_path_PERL
23443if test -n "$PERL"; then
23444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23445$as_echo "$PERL" >&6; }
23446else
23447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23448$as_echo "no" >&6; }
23449fi
23450
23451
23452
23453if test -n "$RUBY"; then
23454  # Extract the first word of ""$RUBY"", so it can be a program name with args.
23455set dummy "$RUBY"; ac_word=$2
23456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23457$as_echo_n "checking for $ac_word... " >&6; }
23458if ${ac_cv_path_RUBY+:} false; then :
23459  $as_echo_n "(cached) " >&6
23460else
23461  case $RUBY in
23462  [\\/]* | ?:[\\/]*)
23463  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
23464  ;;
23465  *)
23466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23467for as_dir in $PATH
23468do
23469  IFS=$as_save_IFS
23470  test -z "$as_dir" && as_dir=.
23471    for ac_exec_ext in '' $ac_executable_extensions; do
23472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23473    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
23474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23475    break 2
23476  fi
23477done
23478  done
23479IFS=$as_save_IFS
23480
23481  test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
23482  ;;
23483esac
23484fi
23485RUBY=$ac_cv_path_RUBY
23486if test -n "$RUBY"; then
23487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
23488$as_echo "$RUBY" >&6; }
23489else
23490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23491$as_echo "no" >&6; }
23492fi
23493
23494
23495else
23496  for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193 ruby2.0 ruby2.1
23497do
23498  # Extract the first word of "$ac_prog", so it can be a program name with args.
23499set dummy $ac_prog; ac_word=$2
23500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23501$as_echo_n "checking for $ac_word... " >&6; }
23502if ${ac_cv_path_RUBY+:} false; then :
23503  $as_echo_n "(cached) " >&6
23504else
23505  case $RUBY in
23506  [\\/]* | ?:[\\/]*)
23507  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
23508  ;;
23509  *)
23510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23511for as_dir in $PATH
23512do
23513  IFS=$as_save_IFS
23514  test -z "$as_dir" && as_dir=.
23515    for ac_exec_ext in '' $ac_executable_extensions; do
23516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23517    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
23518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23519    break 2
23520  fi
23521done
23522  done
23523IFS=$as_save_IFS
23524
23525  ;;
23526esac
23527fi
23528RUBY=$ac_cv_path_RUBY
23529if test -n "$RUBY"; then
23530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
23531$as_echo "$RUBY" >&6; }
23532else
23533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23534$as_echo "no" >&6; }
23535fi
23536
23537
23538  test -n "$RUBY" && break
23539done
23540test -n "$RUBY" || RUBY="none"
23541
23542fi
23543if test "$RUBY" != "none"; then
23544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
23545$as_echo_n "checking rb_hash_foreach... " >&6; }
23546  if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
23547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23548$as_echo "yes" >&6; }
23549    if test -n "$RDOC"; then
23550      # Extract the first word of ""$RDOC"", so it can be a program name with args.
23551set dummy "$RDOC"; ac_word=$2
23552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23553$as_echo_n "checking for $ac_word... " >&6; }
23554if ${ac_cv_path_RDOC+:} false; then :
23555  $as_echo_n "(cached) " >&6
23556else
23557  case $RDOC in
23558  [\\/]* | ?:[\\/]*)
23559  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
23560  ;;
23561  *)
23562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23563for as_dir in $PATH
23564do
23565  IFS=$as_save_IFS
23566  test -z "$as_dir" && as_dir=.
23567    for ac_exec_ext in '' $ac_executable_extensions; do
23568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23569    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
23570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23571    break 2
23572  fi
23573done
23574  done
23575IFS=$as_save_IFS
23576
23577  test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
23578  ;;
23579esac
23580fi
23581RDOC=$ac_cv_path_RDOC
23582if test -n "$RDOC"; then
23583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
23584$as_echo "$RDOC" >&6; }
23585else
23586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23587$as_echo "no" >&6; }
23588fi
23589
23590
23591    else
23592      for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 rdoc2.0 rdoc2.1
23593do
23594  # Extract the first word of "$ac_prog", so it can be a program name with args.
23595set dummy $ac_prog; ac_word=$2
23596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23597$as_echo_n "checking for $ac_word... " >&6; }
23598if ${ac_cv_path_RDOC+:} false; then :
23599  $as_echo_n "(cached) " >&6
23600else
23601  case $RDOC in
23602  [\\/]* | ?:[\\/]*)
23603  ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
23604  ;;
23605  *)
23606  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23607for as_dir in $PATH
23608do
23609  IFS=$as_save_IFS
23610  test -z "$as_dir" && as_dir=.
23611    for ac_exec_ext in '' $ac_executable_extensions; do
23612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23613    ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
23614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23615    break 2
23616  fi
23617done
23618  done
23619IFS=$as_save_IFS
23620
23621  ;;
23622esac
23623fi
23624RDOC=$ac_cv_path_RDOC
23625if test -n "$RDOC"; then
23626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
23627$as_echo "$RDOC" >&6; }
23628else
23629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23630$as_echo "no" >&6; }
23631fi
23632
23633
23634  test -n "$RDOC" && break
23635done
23636test -n "$RDOC" || RDOC="none"
23637
23638    fi
23639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
23640$as_echo_n "checking for Ruby major version... " >&6; }
23641if ${svn_cv_ruby_major+:} false; then :
23642  $as_echo_n "(cached) " >&6
23643else
23644
23645    svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
23646
23647fi
23648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
23649$as_echo "$svn_cv_ruby_major" >&6; }
23650    RUBY_MAJOR="$svn_cv_ruby_major"
23651
23652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
23653$as_echo_n "checking for Ruby minor version... " >&6; }
23654if ${svn_cv_ruby_minor+:} false; then :
23655  $as_echo_n "(cached) " >&6
23656else
23657
23658    svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
23659
23660fi
23661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
23662$as_echo "$svn_cv_ruby_minor" >&6; }
23663    RUBY_MINOR="$svn_cv_ruby_minor"
23664
23665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
23666$as_echo_n "checking for Ruby teeny version... " >&6; }
23667if ${svn_cv_ruby_teeny+:} false; then :
23668  $as_echo_n "(cached) " >&6
23669else
23670
23671    svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
23672
23673fi
23674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
23675$as_echo "$svn_cv_ruby_teeny" >&6; }
23676    RUBY_TEENY="$svn_cv_ruby_teeny"
23677
23678
23679
23680
23681    if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
23682      # Disallow Ruby between 1.8.7 and 1.9.3
23683      RUBY="none"
23684      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
23685$as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
23686      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
23687$as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
23688    fi
23689  else
23690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23691$as_echo "no" >&6; }
23692    RUBY="none"
23693    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
23694$as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
23695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
23696$as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
23697    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
23698$as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
23699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
23700$as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
23701  fi
23702fi
23703
23704
23705
23706# Check whether --with-swig was given.
23707if test "${with_swig+set}" = set; then :
23708  withval=$with_swig;
23709    case "$withval" in
23710      "no")
23711        SWIG_SUITABLE=no
23712
23713  where=no
23714
23715  if test $where = no; then
23716    SWIG=none
23717  elif test $where = check; then
23718    # Extract the first word of "swig", so it can be a program name with args.
23719set dummy swig; ac_word=$2
23720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23721$as_echo_n "checking for $ac_word... " >&6; }
23722if ${ac_cv_path_SWIG+:} false; then :
23723  $as_echo_n "(cached) " >&6
23724else
23725  case $SWIG in
23726  [\\/]* | ?:[\\/]*)
23727  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23728  ;;
23729  *)
23730  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23731for as_dir in $PATH
23732do
23733  IFS=$as_save_IFS
23734  test -z "$as_dir" && as_dir=.
23735    for ac_exec_ext in '' $ac_executable_extensions; do
23736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23737    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23739    break 2
23740  fi
23741done
23742  done
23743IFS=$as_save_IFS
23744
23745  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23746  ;;
23747esac
23748fi
23749SWIG=$ac_cv_path_SWIG
23750if test -n "$SWIG"; then
23751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23752$as_echo "$SWIG" >&6; }
23753else
23754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23755$as_echo "no" >&6; }
23756fi
23757
23758
23759  else
23760    if test -f "$where"; then
23761      SWIG="$where"
23762    else
23763      SWIG="$where/bin/swig"
23764    fi
23765    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23766      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23767    fi
23768  fi
23769
23770  if test "$SWIG" != "none"; then
23771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23772$as_echo_n "checking swig version... " >&6; }
23773    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23774                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23775    # We want the version as an integer so we can test against
23776    # which version we're using.  SWIG doesn't provide this
23777    # to us so we have to come up with it on our own.
23778    # The major is passed straight through,
23779    # the minor is zero padded to two places,
23780    # and the patch level is zero padded to three places.
23781    # e.g. 1.3.24 becomes 103024
23782    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23783                  $SED -e 's/[^0-9\.].*$//' \
23784                      -e 's/\.\([0-9]\)$/.0\1/' \
23785                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23786                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23788$as_echo "$SWIG_VERSION_RAW" >&6; }
23789    # If you change the required swig version number, don't forget to update:
23790    #   subversion/bindings/swig/INSTALL
23791    #   packages/rpm/redhat-8+/subversion.spec
23792    #   packages/rpm/redhat-7.x/subversion.spec
23793    #   packages/rpm/rhel-3/subversion.spec
23794    #   packages/rpm/rhel-4/subversion.spec
23795    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23796      SWIG_SUITABLE=yes
23797    else
23798      SWIG_SUITABLE=no
23799      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23800$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23801      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
23802$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
23803    fi
23804  fi
23805
23806  SWIG_PY_COMPILE="none"
23807  SWIG_PY_LINK="none"
23808  if test "$PYTHON" != "none"; then
23809    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23810$as_echo "$as_me: Configuring python swig binding" >&6;}
23811
23812    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23813$as_echo_n "checking for Python includes... " >&6; }
23814if ${ac_cv_python_includes+:} false; then :
23815  $as_echo_n "(cached) " >&6
23816else
23817
23818      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23819
23820fi
23821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23822$as_echo "$ac_cv_python_includes" >&6; }
23823    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23824
23825    if test "$ac_cv_python_includes" = "none"; then
23826      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23827$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23828    fi
23829
23830    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23831$as_echo_n "checking for compiling Python extensions... " >&6; }
23832if ${ac_cv_python_compile+:} false; then :
23833  $as_echo_n "(cached) " >&6
23834else
23835
23836      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23837
23838fi
23839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23840$as_echo "$ac_cv_python_compile" >&6; }
23841    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23842
23843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23844$as_echo_n "checking for linking Python extensions... " >&6; }
23845if ${ac_cv_python_link+:} false; then :
23846  $as_echo_n "(cached) " >&6
23847else
23848
23849      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23850
23851fi
23852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23853$as_echo "$ac_cv_python_link" >&6; }
23854    SWIG_PY_LINK="$ac_cv_python_link"
23855
23856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23857$as_echo_n "checking for linking Python libraries... " >&6; }
23858if ${ac_cv_python_libs+:} false; then :
23859  $as_echo_n "(cached) " >&6
23860else
23861
23862      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23863
23864fi
23865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23866$as_echo "$ac_cv_python_libs" >&6; }
23867    SWIG_PY_LIBS="`
23868  input_flags="$ac_cv_python_libs"
23869  output_flags=""
23870  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23871  for flag in $input_flags; do
23872    filter="no"
23873    for dir in $filtered_dirs; do
23874      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23875        filter="yes"
23876        break
23877      fi
23878    done
23879    if test "$filter" = "no"; then
23880      output_flags="$output_flags $flag"
23881    fi
23882  done
23883  if test -n "$output_flags"; then
23884    printf "%s" "${output_flags# }"
23885  fi
23886`"
23887
23888                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23889    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23890    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23891$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23892if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23893  $as_echo_n "(cached) " >&6
23894else
23895
23896      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23897        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23898/* end confdefs.h.  */
23899#include <apr.h>
23900                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23901_ACEOF
23902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23903  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23904  svn_cv_pycfmt_apr_int64_t="L"
23905fi
23906rm -f conftest*
23907
23908      fi
23909      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23910        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23911/* end confdefs.h.  */
23912r
23913                     #include <apr.h>
23914                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23915_ACEOF
23916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23917  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23918  svn_cv_pycfmt_apr_int64_t="l"
23919fi
23920rm -f conftest*
23921
23922      fi
23923      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23924        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23925/* end confdefs.h.  */
23926#include <apr.h>
23927                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
23928_ACEOF
23929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23930  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23931  svn_cv_pycfmt_apr_int64_t="i"
23932fi
23933rm -f conftest*
23934
23935      fi
23936
23937fi
23938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23939$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23940    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23941    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23942      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23943    fi
23944
23945cat >>confdefs.h <<_ACEOF
23946#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23947_ACEOF
23948
23949  fi
23950
23951  if test "$PERL" != "none"; then
23952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23953$as_echo_n "checking perl version... " >&6; }
23954            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23956$as_echo "$PERL_VERSION" >&6; }
23957    if test "$PERL_VERSION" -ge "5008000"; then
23958      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23959    else
23960      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23961$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23962    fi
23963  fi
23964
23965  SWIG_RB_COMPILE="none"
23966  SWIG_RB_LINK="none"
23967  if test "$RUBY" != "none"; then
23968    rbconfig="$RUBY -rrbconfig -e "
23969
23970    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23971                    rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
23972    do
23973      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23974      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23975    done
23976
23977    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23978$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23979
23980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23981$as_echo_n "checking for Ruby include path... " >&6; }
23982if ${svn_cv_ruby_includes+:} false; then :
23983  $as_echo_n "(cached) " >&6
23984else
23985
23986    if test -d "$rbconfig_rubyhdrdir"; then
23987            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
23988      if test -d "$rbconfig_rubyarchhdrdir"; then
23989                svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
23990      else
23991        svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23992      fi
23993    else
23994            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23995    fi
23996
23997fi
23998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23999$as_echo "$svn_cv_ruby_includes" >&6; }
24000    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24001
24002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24003$as_echo_n "checking how to compile Ruby extensions... " >&6; }
24004if ${svn_cv_ruby_compile+:} false; then :
24005  $as_echo_n "(cached) " >&6
24006else
24007
24008      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24009
24010fi
24011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24012$as_echo "$svn_cv_ruby_compile" >&6; }
24013    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24014
24015  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24016
24017
24018  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24019
24020
24021  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24022
24023        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24024
24025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24026$as_echo_n "checking how to link Ruby extensions... " >&6; }
24027if ${svn_cv_ruby_link+:} false; then :
24028  $as_echo_n "(cached) " >&6
24029else
24030
24031      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24032                           $rbconfig_LDSHARED`"
24033      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24034      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24035
24036fi
24037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24038$as_echo "$svn_cv_ruby_link" >&6; }
24039    SWIG_RB_LINK="$svn_cv_ruby_link"
24040
24041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24042$as_echo_n "checking how to link Ruby libraries... " >&6; }
24043if ${ac_cv_ruby_libs+:} false; then :
24044  $as_echo_n "(cached) " >&6
24045else
24046
24047      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24048
24049fi
24050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24051$as_echo "$ac_cv_ruby_libs" >&6; }
24052    SWIG_RB_LIBS="`
24053  input_flags="$ac_cv_ruby_libs"
24054  output_flags=""
24055  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24056  for flag in $input_flags; do
24057    filter="no"
24058    for dir in $filtered_dirs; do
24059      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24060        filter="yes"
24061        break
24062      fi
24063    done
24064    if test "$filter" = "no"; then
24065      output_flags="$output_flags $flag"
24066    fi
24067  done
24068  if test -n "$output_flags"; then
24069    printf "%s" "${output_flags# }"
24070  fi
24071`"
24072
24073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24074$as_echo_n "checking for rb_errinfo... " >&6; }
24075    old_CFLAGS="$CFLAGS"
24076    old_LIBS="$LIBS"
24077    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24078
24079  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24080
24081
24082  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24083
24084
24085  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24086
24087    LIBS="$SWIG_RB_LIBS"
24088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24089/* end confdefs.h.  */
24090
24091#include <ruby.h>
24092int main()
24093{rb_errinfo();}
24094_ACEOF
24095if ac_fn_c_try_link "$LINENO"; then :
24096  have_rb_errinfo="yes"
24097else
24098  have_rb_errinfo="no"
24099fi
24100rm -f core conftest.err conftest.$ac_objext \
24101    conftest$ac_exeext conftest.$ac_ext
24102    if test "$have_rb_errinfo" = "yes"; then
24103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24104$as_echo "yes" >&6; }
24105
24106$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24107
24108    else
24109      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24110$as_echo "no" >&6; }
24111    fi
24112    CFLAGS="$old_CFLAGS"
24113    LIBS="$old_LIBS"
24114
24115    if ${svn_cv_ruby_sitedir+:} false; then :
24116  $as_echo_n "(cached) " >&6
24117else
24118
24119      svn_cv_ruby_sitedir="$rbconfig_sitedir"
24120
24121fi
24122
24123
24124# Check whether --with-ruby-sitedir was given.
24125if test "${with_ruby_sitedir+set}" = set; then :
24126  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24127else
24128  svn_ruby_installdir="$svn_cv_ruby_sitedir"
24129fi
24130
24131
24132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24133$as_echo_n "checking where to install Ruby scripts... " >&6; }
24134    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24135  $as_echo_n "(cached) " >&6
24136else
24137
24138      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24139                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24140
24141fi
24142
24143    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24145$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24146
24147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24148$as_echo_n "checking where to install Ruby extensions... " >&6; }
24149    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24150  $as_echo_n "(cached) " >&6
24151else
24152
24153      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24154                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24155
24156fi
24157
24158    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24160$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24161
24162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24163$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24164    if ${svn_cv_ruby_test_verbose+:} false; then :
24165  $as_echo_n "(cached) " >&6
24166else
24167
24168      svn_cv_ruby_test_verbose="normal"
24169
24170fi
24171
24172
24173# Check whether --with-ruby-test-verbose was given.
24174if test "${with_ruby_test_verbose+set}" = set; then :
24175  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24176else
24177  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24178fi
24179
24180      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24181      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24182$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24183  fi
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198      ;;
24199      "yes")
24200
24201  where=check
24202
24203  if test $where = no; then
24204    SWIG=none
24205  elif test $where = check; then
24206    # Extract the first word of "swig", so it can be a program name with args.
24207set dummy swig; ac_word=$2
24208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24209$as_echo_n "checking for $ac_word... " >&6; }
24210if ${ac_cv_path_SWIG+:} false; then :
24211  $as_echo_n "(cached) " >&6
24212else
24213  case $SWIG in
24214  [\\/]* | ?:[\\/]*)
24215  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24216  ;;
24217  *)
24218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24219for as_dir in $PATH
24220do
24221  IFS=$as_save_IFS
24222  test -z "$as_dir" && as_dir=.
24223    for ac_exec_ext in '' $ac_executable_extensions; do
24224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24225    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24227    break 2
24228  fi
24229done
24230  done
24231IFS=$as_save_IFS
24232
24233  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24234  ;;
24235esac
24236fi
24237SWIG=$ac_cv_path_SWIG
24238if test -n "$SWIG"; then
24239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24240$as_echo "$SWIG" >&6; }
24241else
24242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24243$as_echo "no" >&6; }
24244fi
24245
24246
24247  else
24248    if test -f "$where"; then
24249      SWIG="$where"
24250    else
24251      SWIG="$where/bin/swig"
24252    fi
24253    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24254      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24255    fi
24256  fi
24257
24258  if test "$SWIG" != "none"; then
24259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24260$as_echo_n "checking swig version... " >&6; }
24261    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24262                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24263    # We want the version as an integer so we can test against
24264    # which version we're using.  SWIG doesn't provide this
24265    # to us so we have to come up with it on our own.
24266    # The major is passed straight through,
24267    # the minor is zero padded to two places,
24268    # and the patch level is zero padded to three places.
24269    # e.g. 1.3.24 becomes 103024
24270    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24271                  $SED -e 's/[^0-9\.].*$//' \
24272                      -e 's/\.\([0-9]\)$/.0\1/' \
24273                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24274                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24276$as_echo "$SWIG_VERSION_RAW" >&6; }
24277    # If you change the required swig version number, don't forget to update:
24278    #   subversion/bindings/swig/INSTALL
24279    #   packages/rpm/redhat-8+/subversion.spec
24280    #   packages/rpm/redhat-7.x/subversion.spec
24281    #   packages/rpm/rhel-3/subversion.spec
24282    #   packages/rpm/rhel-4/subversion.spec
24283    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24284      SWIG_SUITABLE=yes
24285    else
24286      SWIG_SUITABLE=no
24287      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24288$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24289      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
24290$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
24291    fi
24292  fi
24293
24294  SWIG_PY_COMPILE="none"
24295  SWIG_PY_LINK="none"
24296  if test "$PYTHON" != "none"; then
24297    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24298$as_echo "$as_me: Configuring python swig binding" >&6;}
24299
24300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24301$as_echo_n "checking for Python includes... " >&6; }
24302if ${ac_cv_python_includes+:} false; then :
24303  $as_echo_n "(cached) " >&6
24304else
24305
24306      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24307
24308fi
24309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24310$as_echo "$ac_cv_python_includes" >&6; }
24311    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24312
24313    if test "$ac_cv_python_includes" = "none"; then
24314      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24315$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24316    fi
24317
24318    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24319$as_echo_n "checking for compiling Python extensions... " >&6; }
24320if ${ac_cv_python_compile+:} false; then :
24321  $as_echo_n "(cached) " >&6
24322else
24323
24324      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24325
24326fi
24327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24328$as_echo "$ac_cv_python_compile" >&6; }
24329    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24330
24331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24332$as_echo_n "checking for linking Python extensions... " >&6; }
24333if ${ac_cv_python_link+:} false; then :
24334  $as_echo_n "(cached) " >&6
24335else
24336
24337      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24338
24339fi
24340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24341$as_echo "$ac_cv_python_link" >&6; }
24342    SWIG_PY_LINK="$ac_cv_python_link"
24343
24344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24345$as_echo_n "checking for linking Python libraries... " >&6; }
24346if ${ac_cv_python_libs+:} false; then :
24347  $as_echo_n "(cached) " >&6
24348else
24349
24350      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24351
24352fi
24353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24354$as_echo "$ac_cv_python_libs" >&6; }
24355    SWIG_PY_LIBS="`
24356  input_flags="$ac_cv_python_libs"
24357  output_flags=""
24358  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24359  for flag in $input_flags; do
24360    filter="no"
24361    for dir in $filtered_dirs; do
24362      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24363        filter="yes"
24364        break
24365      fi
24366    done
24367    if test "$filter" = "no"; then
24368      output_flags="$output_flags $flag"
24369    fi
24370  done
24371  if test -n "$output_flags"; then
24372    printf "%s" "${output_flags# }"
24373  fi
24374`"
24375
24376                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24377    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24379$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24380if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24381  $as_echo_n "(cached) " >&6
24382else
24383
24384      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24385        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24386/* end confdefs.h.  */
24387#include <apr.h>
24388                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24389_ACEOF
24390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24391  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24392  svn_cv_pycfmt_apr_int64_t="L"
24393fi
24394rm -f conftest*
24395
24396      fi
24397      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24398        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399/* end confdefs.h.  */
24400r
24401                     #include <apr.h>
24402                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24403_ACEOF
24404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24405  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24406  svn_cv_pycfmt_apr_int64_t="l"
24407fi
24408rm -f conftest*
24409
24410      fi
24411      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24412        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24413/* end confdefs.h.  */
24414#include <apr.h>
24415                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24416_ACEOF
24417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24418  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24419  svn_cv_pycfmt_apr_int64_t="i"
24420fi
24421rm -f conftest*
24422
24423      fi
24424
24425fi
24426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24427$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24428    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24429    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24430      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24431    fi
24432
24433cat >>confdefs.h <<_ACEOF
24434#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24435_ACEOF
24436
24437  fi
24438
24439  if test "$PERL" != "none"; then
24440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24441$as_echo_n "checking perl version... " >&6; }
24442            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24444$as_echo "$PERL_VERSION" >&6; }
24445    if test "$PERL_VERSION" -ge "5008000"; then
24446      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24447    else
24448      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24449$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24450    fi
24451  fi
24452
24453  SWIG_RB_COMPILE="none"
24454  SWIG_RB_LINK="none"
24455  if test "$RUBY" != "none"; then
24456    rbconfig="$RUBY -rrbconfig -e "
24457
24458    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24459                    rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24460    do
24461      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24462      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24463    done
24464
24465    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24466$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24467
24468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24469$as_echo_n "checking for Ruby include path... " >&6; }
24470if ${svn_cv_ruby_includes+:} false; then :
24471  $as_echo_n "(cached) " >&6
24472else
24473
24474    if test -d "$rbconfig_rubyhdrdir"; then
24475            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
24476      if test -d "$rbconfig_rubyarchhdrdir"; then
24477                svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24478      else
24479        svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24480      fi
24481    else
24482            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24483    fi
24484
24485fi
24486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24487$as_echo "$svn_cv_ruby_includes" >&6; }
24488    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24489
24490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24491$as_echo_n "checking how to compile Ruby extensions... " >&6; }
24492if ${svn_cv_ruby_compile+:} false; then :
24493  $as_echo_n "(cached) " >&6
24494else
24495
24496      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24497
24498fi
24499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24500$as_echo "$svn_cv_ruby_compile" >&6; }
24501    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24502
24503  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24504
24505
24506  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24507
24508
24509  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24510
24511        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24512
24513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24514$as_echo_n "checking how to link Ruby extensions... " >&6; }
24515if ${svn_cv_ruby_link+:} false; then :
24516  $as_echo_n "(cached) " >&6
24517else
24518
24519      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24520                           $rbconfig_LDSHARED`"
24521      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24522      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24523
24524fi
24525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24526$as_echo "$svn_cv_ruby_link" >&6; }
24527    SWIG_RB_LINK="$svn_cv_ruby_link"
24528
24529    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24530$as_echo_n "checking how to link Ruby libraries... " >&6; }
24531if ${ac_cv_ruby_libs+:} false; then :
24532  $as_echo_n "(cached) " >&6
24533else
24534
24535      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24536
24537fi
24538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24539$as_echo "$ac_cv_ruby_libs" >&6; }
24540    SWIG_RB_LIBS="`
24541  input_flags="$ac_cv_ruby_libs"
24542  output_flags=""
24543  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24544  for flag in $input_flags; do
24545    filter="no"
24546    for dir in $filtered_dirs; do
24547      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24548        filter="yes"
24549        break
24550      fi
24551    done
24552    if test "$filter" = "no"; then
24553      output_flags="$output_flags $flag"
24554    fi
24555  done
24556  if test -n "$output_flags"; then
24557    printf "%s" "${output_flags# }"
24558  fi
24559`"
24560
24561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24562$as_echo_n "checking for rb_errinfo... " >&6; }
24563    old_CFLAGS="$CFLAGS"
24564    old_LIBS="$LIBS"
24565    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24566
24567  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24568
24569
24570  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24571
24572
24573  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24574
24575    LIBS="$SWIG_RB_LIBS"
24576    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24577/* end confdefs.h.  */
24578
24579#include <ruby.h>
24580int main()
24581{rb_errinfo();}
24582_ACEOF
24583if ac_fn_c_try_link "$LINENO"; then :
24584  have_rb_errinfo="yes"
24585else
24586  have_rb_errinfo="no"
24587fi
24588rm -f core conftest.err conftest.$ac_objext \
24589    conftest$ac_exeext conftest.$ac_ext
24590    if test "$have_rb_errinfo" = "yes"; then
24591      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24592$as_echo "yes" >&6; }
24593
24594$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24595
24596    else
24597      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24598$as_echo "no" >&6; }
24599    fi
24600    CFLAGS="$old_CFLAGS"
24601    LIBS="$old_LIBS"
24602
24603    if ${svn_cv_ruby_sitedir+:} false; then :
24604  $as_echo_n "(cached) " >&6
24605else
24606
24607      svn_cv_ruby_sitedir="$rbconfig_sitedir"
24608
24609fi
24610
24611
24612# Check whether --with-ruby-sitedir was given.
24613if test "${with_ruby_sitedir+set}" = set; then :
24614  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24615else
24616  svn_ruby_installdir="$svn_cv_ruby_sitedir"
24617fi
24618
24619
24620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24621$as_echo_n "checking where to install Ruby scripts... " >&6; }
24622    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24623  $as_echo_n "(cached) " >&6
24624else
24625
24626      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24627                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24628
24629fi
24630
24631    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24633$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24634
24635    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24636$as_echo_n "checking where to install Ruby extensions... " >&6; }
24637    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24638  $as_echo_n "(cached) " >&6
24639else
24640
24641      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24642                                        $SED -e "s,^$rbconfig_sitedir,,"`"
24643
24644fi
24645
24646    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24648$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24649
24650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24651$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24652    if ${svn_cv_ruby_test_verbose+:} false; then :
24653  $as_echo_n "(cached) " >&6
24654else
24655
24656      svn_cv_ruby_test_verbose="normal"
24657
24658fi
24659
24660
24661# Check whether --with-ruby-test-verbose was given.
24662if test "${with_ruby_test_verbose+set}" = set; then :
24663  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24664else
24665  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24666fi
24667
24668      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24669      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24670$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24671  fi
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686      ;;
24687      *)
24688
24689  where=$withval
24690
24691  if test $where = no; then
24692    SWIG=none
24693  elif test $where = check; then
24694    # Extract the first word of "swig", so it can be a program name with args.
24695set dummy swig; ac_word=$2
24696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24697$as_echo_n "checking for $ac_word... " >&6; }
24698if ${ac_cv_path_SWIG+:} false; then :
24699  $as_echo_n "(cached) " >&6
24700else
24701  case $SWIG in
24702  [\\/]* | ?:[\\/]*)
24703  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24704  ;;
24705  *)
24706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24707for as_dir in $PATH
24708do
24709  IFS=$as_save_IFS
24710  test -z "$as_dir" && as_dir=.
24711    for ac_exec_ext in '' $ac_executable_extensions; do
24712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24713    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24715    break 2
24716  fi
24717done
24718  done
24719IFS=$as_save_IFS
24720
24721  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24722  ;;
24723esac
24724fi
24725SWIG=$ac_cv_path_SWIG
24726if test -n "$SWIG"; then
24727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24728$as_echo "$SWIG" >&6; }
24729else
24730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24731$as_echo "no" >&6; }
24732fi
24733
24734
24735  else
24736    if test -f "$where"; then
24737      SWIG="$where"
24738    else
24739      SWIG="$where/bin/swig"
24740    fi
24741    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24742      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24743    fi
24744  fi
24745
24746  if test "$SWIG" != "none"; then
24747    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24748$as_echo_n "checking swig version... " >&6; }
24749    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24750                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24751    # We want the version as an integer so we can test against
24752    # which version we're using.  SWIG doesn't provide this
24753    # to us so we have to come up with it on our own.
24754    # The major is passed straight through,
24755    # the minor is zero padded to two places,
24756    # and the patch level is zero padded to three places.
24757    # e.g. 1.3.24 becomes 103024
24758    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24759                  $SED -e 's/[^0-9\.].*$//' \
24760                      -e 's/\.\([0-9]\)$/.0\1/' \
24761                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24762                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24764$as_echo "$SWIG_VERSION_RAW" >&6; }
24765    # If you change the required swig version number, don't forget to update:
24766    #   subversion/bindings/swig/INSTALL
24767    #   packages/rpm/redhat-8+/subversion.spec
24768    #   packages/rpm/redhat-7.x/subversion.spec
24769    #   packages/rpm/rhel-3/subversion.spec
24770    #   packages/rpm/rhel-4/subversion.spec
24771    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24772      SWIG_SUITABLE=yes
24773    else
24774      SWIG_SUITABLE=no
24775      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24776$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24777      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
24778$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
24779    fi
24780  fi
24781
24782  SWIG_PY_COMPILE="none"
24783  SWIG_PY_LINK="none"
24784  if test "$PYTHON" != "none"; then
24785    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24786$as_echo "$as_me: Configuring python swig binding" >&6;}
24787
24788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24789$as_echo_n "checking for Python includes... " >&6; }
24790if ${ac_cv_python_includes+:} false; then :
24791  $as_echo_n "(cached) " >&6
24792else
24793
24794      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24795
24796fi
24797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24798$as_echo "$ac_cv_python_includes" >&6; }
24799    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24800
24801    if test "$ac_cv_python_includes" = "none"; then
24802      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24803$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24804    fi
24805
24806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24807$as_echo_n "checking for compiling Python extensions... " >&6; }
24808if ${ac_cv_python_compile+:} false; then :
24809  $as_echo_n "(cached) " >&6
24810else
24811
24812      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24813
24814fi
24815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24816$as_echo "$ac_cv_python_compile" >&6; }
24817    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24818
24819    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24820$as_echo_n "checking for linking Python extensions... " >&6; }
24821if ${ac_cv_python_link+:} false; then :
24822  $as_echo_n "(cached) " >&6
24823else
24824
24825      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24826
24827fi
24828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24829$as_echo "$ac_cv_python_link" >&6; }
24830    SWIG_PY_LINK="$ac_cv_python_link"
24831
24832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24833$as_echo_n "checking for linking Python libraries... " >&6; }
24834if ${ac_cv_python_libs+:} false; then :
24835  $as_echo_n "(cached) " >&6
24836else
24837
24838      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24839
24840fi
24841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24842$as_echo "$ac_cv_python_libs" >&6; }
24843    SWIG_PY_LIBS="`
24844  input_flags="$ac_cv_python_libs"
24845  output_flags=""
24846  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24847  for flag in $input_flags; do
24848    filter="no"
24849    for dir in $filtered_dirs; do
24850      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24851        filter="yes"
24852        break
24853      fi
24854    done
24855    if test "$filter" = "no"; then
24856      output_flags="$output_flags $flag"
24857    fi
24858  done
24859  if test -n "$output_flags"; then
24860    printf "%s" "${output_flags# }"
24861  fi
24862`"
24863
24864                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24865    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24867$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24868if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24869  $as_echo_n "(cached) " >&6
24870else
24871
24872      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24873        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874/* end confdefs.h.  */
24875#include <apr.h>
24876                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24877_ACEOF
24878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24879  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24880  svn_cv_pycfmt_apr_int64_t="L"
24881fi
24882rm -f conftest*
24883
24884      fi
24885      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24886        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24887/* end confdefs.h.  */
24888r
24889                     #include <apr.h>
24890                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24891_ACEOF
24892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24893  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24894  svn_cv_pycfmt_apr_int64_t="l"
24895fi
24896rm -f conftest*
24897
24898      fi
24899      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24900        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24901/* end confdefs.h.  */
24902#include <apr.h>
24903                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
24904_ACEOF
24905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24906  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24907  svn_cv_pycfmt_apr_int64_t="i"
24908fi
24909rm -f conftest*
24910
24911      fi
24912
24913fi
24914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24915$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24916    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24917    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24918      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24919    fi
24920
24921cat >>confdefs.h <<_ACEOF
24922#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24923_ACEOF
24924
24925  fi
24926
24927  if test "$PERL" != "none"; then
24928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24929$as_echo_n "checking perl version... " >&6; }
24930            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24932$as_echo "$PERL_VERSION" >&6; }
24933    if test "$PERL_VERSION" -ge "5008000"; then
24934      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24935    else
24936      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24937$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24938    fi
24939  fi
24940
24941  SWIG_RB_COMPILE="none"
24942  SWIG_RB_LINK="none"
24943  if test "$RUBY" != "none"; then
24944    rbconfig="$RUBY -rrbconfig -e "
24945
24946    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24947                    rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24948    do
24949      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24950      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24951    done
24952
24953    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24954$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24955
24956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24957$as_echo_n "checking for Ruby include path... " >&6; }
24958if ${svn_cv_ruby_includes+:} false; then :
24959  $as_echo_n "(cached) " >&6
24960else
24961
24962    if test -d "$rbconfig_rubyhdrdir"; then
24963            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
24964      if test -d "$rbconfig_rubyarchhdrdir"; then
24965                svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24966      else
24967        svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24968      fi
24969    else
24970            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24971    fi
24972
24973fi
24974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24975$as_echo "$svn_cv_ruby_includes" >&6; }
24976    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24977
24978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24979$as_echo_n "checking how to compile Ruby extensions... " >&6; }
24980if ${svn_cv_ruby_compile+:} false; then :
24981  $as_echo_n "(cached) " >&6
24982else
24983
24984      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24985
24986fi
24987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24988$as_echo "$svn_cv_ruby_compile" >&6; }
24989    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24990
24991  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24992
24993
24994  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24995
24996
24997  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24998
24999        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25000
25001    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25002$as_echo_n "checking how to link Ruby extensions... " >&6; }
25003if ${svn_cv_ruby_link+:} false; then :
25004  $as_echo_n "(cached) " >&6
25005else
25006
25007      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25008                           $rbconfig_LDSHARED`"
25009      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25010      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25011
25012fi
25013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25014$as_echo "$svn_cv_ruby_link" >&6; }
25015    SWIG_RB_LINK="$svn_cv_ruby_link"
25016
25017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25018$as_echo_n "checking how to link Ruby libraries... " >&6; }
25019if ${ac_cv_ruby_libs+:} false; then :
25020  $as_echo_n "(cached) " >&6
25021else
25022
25023      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25024
25025fi
25026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25027$as_echo "$ac_cv_ruby_libs" >&6; }
25028    SWIG_RB_LIBS="`
25029  input_flags="$ac_cv_ruby_libs"
25030  output_flags=""
25031  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25032  for flag in $input_flags; do
25033    filter="no"
25034    for dir in $filtered_dirs; do
25035      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25036        filter="yes"
25037        break
25038      fi
25039    done
25040    if test "$filter" = "no"; then
25041      output_flags="$output_flags $flag"
25042    fi
25043  done
25044  if test -n "$output_flags"; then
25045    printf "%s" "${output_flags# }"
25046  fi
25047`"
25048
25049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25050$as_echo_n "checking for rb_errinfo... " >&6; }
25051    old_CFLAGS="$CFLAGS"
25052    old_LIBS="$LIBS"
25053    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25054
25055  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25056
25057
25058  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25059
25060
25061  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25062
25063    LIBS="$SWIG_RB_LIBS"
25064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065/* end confdefs.h.  */
25066
25067#include <ruby.h>
25068int main()
25069{rb_errinfo();}
25070_ACEOF
25071if ac_fn_c_try_link "$LINENO"; then :
25072  have_rb_errinfo="yes"
25073else
25074  have_rb_errinfo="no"
25075fi
25076rm -f core conftest.err conftest.$ac_objext \
25077    conftest$ac_exeext conftest.$ac_ext
25078    if test "$have_rb_errinfo" = "yes"; then
25079      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25080$as_echo "yes" >&6; }
25081
25082$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25083
25084    else
25085      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25086$as_echo "no" >&6; }
25087    fi
25088    CFLAGS="$old_CFLAGS"
25089    LIBS="$old_LIBS"
25090
25091    if ${svn_cv_ruby_sitedir+:} false; then :
25092  $as_echo_n "(cached) " >&6
25093else
25094
25095      svn_cv_ruby_sitedir="$rbconfig_sitedir"
25096
25097fi
25098
25099
25100# Check whether --with-ruby-sitedir was given.
25101if test "${with_ruby_sitedir+set}" = set; then :
25102  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25103else
25104  svn_ruby_installdir="$svn_cv_ruby_sitedir"
25105fi
25106
25107
25108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25109$as_echo_n "checking where to install Ruby scripts... " >&6; }
25110    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25111  $as_echo_n "(cached) " >&6
25112else
25113
25114      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25115                                        $SED -e "s,^$rbconfig_sitedir,,"`"
25116
25117fi
25118
25119    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25121$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25122
25123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
25124$as_echo_n "checking where to install Ruby extensions... " >&6; }
25125    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
25126  $as_echo_n "(cached) " >&6
25127else
25128
25129      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
25130                                        $SED -e "s,^$rbconfig_sitedir,,"`"
25131
25132fi
25133
25134    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
25135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
25136$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
25137
25138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
25139$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
25140    if ${svn_cv_ruby_test_verbose+:} false; then :
25141  $as_echo_n "(cached) " >&6
25142else
25143
25144      svn_cv_ruby_test_verbose="normal"
25145
25146fi
25147
25148
25149# Check whether --with-ruby-test-verbose was given.
25150if test "${with_ruby_test_verbose+set}" = set; then :
25151  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
25152else
25153  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
25154fi
25155
25156      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
25157      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
25158$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
25159  fi
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174      ;;
25175    esac
25176
25177else
25178
25179
25180  where=check
25181
25182  if test $where = no; then
25183    SWIG=none
25184  elif test $where = check; then
25185    # Extract the first word of "swig", so it can be a program name with args.
25186set dummy swig; ac_word=$2
25187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25188$as_echo_n "checking for $ac_word... " >&6; }
25189if ${ac_cv_path_SWIG+:} false; then :
25190  $as_echo_n "(cached) " >&6
25191else
25192  case $SWIG in
25193  [\\/]* | ?:[\\/]*)
25194  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
25195  ;;
25196  *)
25197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25198for as_dir in $PATH
25199do
25200  IFS=$as_save_IFS
25201  test -z "$as_dir" && as_dir=.
25202    for ac_exec_ext in '' $ac_executable_extensions; do
25203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25204    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
25205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25206    break 2
25207  fi
25208done
25209  done
25210IFS=$as_save_IFS
25211
25212  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
25213  ;;
25214esac
25215fi
25216SWIG=$ac_cv_path_SWIG
25217if test -n "$SWIG"; then
25218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
25219$as_echo "$SWIG" >&6; }
25220else
25221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25222$as_echo "no" >&6; }
25223fi
25224
25225
25226  else
25227    if test -f "$where"; then
25228      SWIG="$where"
25229    else
25230      SWIG="$where/bin/swig"
25231    fi
25232    if test ! -f "$SWIG" || test ! -x "$SWIG"; then
25233      as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
25234    fi
25235  fi
25236
25237  if test "$SWIG" != "none"; then
25238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
25239$as_echo_n "checking swig version... " >&6; }
25240    SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
25241                       $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
25242    # We want the version as an integer so we can test against
25243    # which version we're using.  SWIG doesn't provide this
25244    # to us so we have to come up with it on our own.
25245    # The major is passed straight through,
25246    # the minor is zero padded to two places,
25247    # and the patch level is zero padded to three places.
25248    # e.g. 1.3.24 becomes 103024
25249    SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
25250                  $SED -e 's/[^0-9\.].*$//' \
25251                      -e 's/\.\([0-9]\)$/.0\1/' \
25252                      -e 's/\.\([0-9][0-9]\)$/.0\1/' \
25253                      -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
25254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
25255$as_echo "$SWIG_VERSION_RAW" >&6; }
25256    # If you change the required swig version number, don't forget to update:
25257    #   subversion/bindings/swig/INSTALL
25258    #   packages/rpm/redhat-8+/subversion.spec
25259    #   packages/rpm/redhat-7.x/subversion.spec
25260    #   packages/rpm/rhel-3/subversion.spec
25261    #   packages/rpm/rhel-4/subversion.spec
25262    if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
25263      SWIG_SUITABLE=yes
25264    else
25265      SWIG_SUITABLE=no
25266      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
25267$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
25268      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5
25269$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;}
25270    fi
25271  fi
25272
25273  SWIG_PY_COMPILE="none"
25274  SWIG_PY_LINK="none"
25275  if test "$PYTHON" != "none"; then
25276    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
25277$as_echo "$as_me: Configuring python swig binding" >&6;}
25278
25279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
25280$as_echo_n "checking for Python includes... " >&6; }
25281if ${ac_cv_python_includes+:} false; then :
25282  $as_echo_n "(cached) " >&6
25283else
25284
25285      ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
25286
25287fi
25288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
25289$as_echo "$ac_cv_python_includes" >&6; }
25290    SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
25291
25292    if test "$ac_cv_python_includes" = "none"; then
25293      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
25294$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
25295    fi
25296
25297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
25298$as_echo_n "checking for compiling Python extensions... " >&6; }
25299if ${ac_cv_python_compile+:} false; then :
25300  $as_echo_n "(cached) " >&6
25301else
25302
25303      ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
25304
25305fi
25306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
25307$as_echo "$ac_cv_python_compile" >&6; }
25308    SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
25309
25310    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
25311$as_echo_n "checking for linking Python extensions... " >&6; }
25312if ${ac_cv_python_link+:} false; then :
25313  $as_echo_n "(cached) " >&6
25314else
25315
25316      ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
25317
25318fi
25319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
25320$as_echo "$ac_cv_python_link" >&6; }
25321    SWIG_PY_LINK="$ac_cv_python_link"
25322
25323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
25324$as_echo_n "checking for linking Python libraries... " >&6; }
25325if ${ac_cv_python_libs+:} false; then :
25326  $as_echo_n "(cached) " >&6
25327else
25328
25329      ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
25330
25331fi
25332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
25333$as_echo "$ac_cv_python_libs" >&6; }
25334    SWIG_PY_LIBS="`
25335  input_flags="$ac_cv_python_libs"
25336  output_flags=""
25337  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25338  for flag in $input_flags; do
25339    filter="no"
25340    for dir in $filtered_dirs; do
25341      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25342        filter="yes"
25343        break
25344      fi
25345    done
25346    if test "$filter" = "no"; then
25347      output_flags="$output_flags $flag"
25348    fi
25349  done
25350  if test -n "$output_flags"; then
25351    printf "%s" "${output_flags# }"
25352  fi
25353`"
25354
25355                SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
25356    CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
25357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
25358$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
25359if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
25360  $as_echo_n "(cached) " >&6
25361else
25362
25363      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25364        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365/* end confdefs.h.  */
25366#include <apr.h>
25367                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
25368_ACEOF
25369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25370  $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
25371  svn_cv_pycfmt_apr_int64_t="L"
25372fi
25373rm -f conftest*
25374
25375      fi
25376      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25377        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378/* end confdefs.h.  */
25379r
25380                     #include <apr.h>
25381                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
25382_ACEOF
25383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25384  $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
25385  svn_cv_pycfmt_apr_int64_t="l"
25386fi
25387rm -f conftest*
25388
25389      fi
25390      if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25391        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25392/* end confdefs.h.  */
25393#include <apr.h>
25394                      MaTcHtHiS APR_INT64_T_FMT EnDeNd
25395_ACEOF
25396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25397  $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
25398  svn_cv_pycfmt_apr_int64_t="i"
25399fi
25400rm -f conftest*
25401
25402      fi
25403
25404fi
25405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
25406$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
25407    CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
25408    if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
25409      as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
25410    fi
25411
25412cat >>confdefs.h <<_ACEOF
25413#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
25414_ACEOF
25415
25416  fi
25417
25418  if test "$PERL" != "none"; then
25419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
25420$as_echo_n "checking perl version... " >&6; }
25421            PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
25422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
25423$as_echo "$PERL_VERSION" >&6; }
25424    if test "$PERL_VERSION" -ge "5008000"; then
25425      SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
25426    else
25427      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
25428$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
25429    fi
25430  fi
25431
25432  SWIG_RB_COMPILE="none"
25433  SWIG_RB_LINK="none"
25434  if test "$RUBY" != "none"; then
25435    rbconfig="$RUBY -rrbconfig -e "
25436
25437    for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
25438                    rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
25439    do
25440      rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
25441      eval "rbconfig_$var_name=\"$rbconfig_tmp\""
25442    done
25443
25444    { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
25445$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
25446
25447    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
25448$as_echo_n "checking for Ruby include path... " >&6; }
25449if ${svn_cv_ruby_includes+:} false; then :
25450  $as_echo_n "(cached) " >&6
25451else
25452
25453    if test -d "$rbconfig_rubyhdrdir"; then
25454            svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
25455      if test -d "$rbconfig_rubyarchhdrdir"; then
25456                svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
25457      else
25458        svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
25459      fi
25460    else
25461            svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
25462    fi
25463
25464fi
25465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
25466$as_echo "$svn_cv_ruby_includes" >&6; }
25467    SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
25468
25469    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
25470$as_echo_n "checking how to compile Ruby extensions... " >&6; }
25471if ${svn_cv_ruby_compile+:} false; then :
25472  $as_echo_n "(cached) " >&6
25473else
25474
25475      svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
25476
25477fi
25478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
25479$as_echo "$svn_cv_ruby_compile" >&6; }
25480    SWIG_RB_COMPILE="$svn_cv_ruby_compile"
25481
25482  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
25483
25484
25485  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
25486
25487
25488  SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
25489
25490        SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
25491
25492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
25493$as_echo_n "checking how to link Ruby extensions... " >&6; }
25494if ${svn_cv_ruby_link+:} false; then :
25495  $as_echo_n "(cached) " >&6
25496else
25497
25498      svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
25499                           $rbconfig_LDSHARED`"
25500      svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
25501      svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
25502
25503fi
25504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
25505$as_echo "$svn_cv_ruby_link" >&6; }
25506    SWIG_RB_LINK="$svn_cv_ruby_link"
25507
25508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
25509$as_echo_n "checking how to link Ruby libraries... " >&6; }
25510if ${ac_cv_ruby_libs+:} false; then :
25511  $as_echo_n "(cached) " >&6
25512else
25513
25514      ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
25515
25516fi
25517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
25518$as_echo "$ac_cv_ruby_libs" >&6; }
25519    SWIG_RB_LIBS="`
25520  input_flags="$ac_cv_ruby_libs"
25521  output_flags=""
25522  filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
25523  for flag in $input_flags; do
25524    filter="no"
25525    for dir in $filtered_dirs; do
25526      if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
25527        filter="yes"
25528        break
25529      fi
25530    done
25531    if test "$filter" = "no"; then
25532      output_flags="$output_flags $flag"
25533    fi
25534  done
25535  if test -n "$output_flags"; then
25536    printf "%s" "${output_flags# }"
25537  fi
25538`"
25539
25540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
25541$as_echo_n "checking for rb_errinfo... " >&6; }
25542    old_CFLAGS="$CFLAGS"
25543    old_LIBS="$LIBS"
25544    CFLAGS="$CFLAGS $svn_cv_ruby_includes"
25545
25546  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
25547
25548
25549  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
25550
25551
25552  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
25553
25554    LIBS="$SWIG_RB_LIBS"
25555    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25556/* end confdefs.h.  */
25557
25558#include <ruby.h>
25559int main()
25560{rb_errinfo();}
25561_ACEOF
25562if ac_fn_c_try_link "$LINENO"; then :
25563  have_rb_errinfo="yes"
25564else
25565  have_rb_errinfo="no"
25566fi
25567rm -f core conftest.err conftest.$ac_objext \
25568    conftest$ac_exeext conftest.$ac_ext
25569    if test "$have_rb_errinfo" = "yes"; then
25570      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25571$as_echo "yes" >&6; }
25572
25573$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
25574
25575    else
25576      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25577$as_echo "no" >&6; }
25578    fi
25579    CFLAGS="$old_CFLAGS"
25580    LIBS="$old_LIBS"
25581
25582    if ${svn_cv_ruby_sitedir+:} false; then :
25583  $as_echo_n "(cached) " >&6
25584else
25585
25586      svn_cv_ruby_sitedir="$rbconfig_sitedir"
25587
25588fi
25589
25590
25591# Check whether --with-ruby-sitedir was given.
25592if test "${with_ruby_sitedir+set}" = set; then :
25593  withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
25594else
25595  svn_ruby_installdir="$svn_cv_ruby_sitedir"
25596fi
25597
25598
25599    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
25600$as_echo_n "checking where to install Ruby scripts... " >&6; }
25601    if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
25602  $as_echo_n "(cached) " >&6
25603else
25604
25605      svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
25606                                        $SED -e "s,^$rbconfig_sitedir,,"`"
25607
25608fi
25609
25610    SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
25611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
25612$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
25613
25614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
25615$as_echo_n "checking where to install Ruby extensions... " >&6; }
25616    if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
25617  $as_echo_n "(cached) " >&6
25618else
25619
25620      svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
25621                                        $SED -e "s,^$rbconfig_sitedir,,"`"
25622
25623fi
25624
25625    SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
25626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
25627$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
25628
25629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
25630$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
25631    if ${svn_cv_ruby_test_verbose+:} false; then :
25632  $as_echo_n "(cached) " >&6
25633else
25634
25635      svn_cv_ruby_test_verbose="normal"
25636
25637fi
25638
25639
25640# Check whether --with-ruby-test-verbose was given.
25641if test "${with_ruby_test_verbose+set}" = set; then :
25642  withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
25643else
25644  svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
25645fi
25646
25647      SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
25648      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
25649$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
25650  fi
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666fi
25667
25668
25669
25670
25671
25672# Check whether --with-ctypesgen was given.
25673if test "${with_ctypesgen+set}" = set; then :
25674  withval=$with_ctypesgen;
25675    case "$withval" in
25676      "no")
25677
25678  where=no
25679
25680  CTYPESGEN=none
25681
25682  if test $where = check; then
25683    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25684set dummy "ctypesgen.py"; ac_word=$2
25685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25686$as_echo_n "checking for $ac_word... " >&6; }
25687if ${ac_cv_path_CTYPESGEN+:} false; then :
25688  $as_echo_n "(cached) " >&6
25689else
25690  case $CTYPESGEN in
25691  [\\/]* | ?:[\\/]*)
25692  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25693  ;;
25694  *)
25695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25696for as_dir in $PATH
25697do
25698  IFS=$as_save_IFS
25699  test -z "$as_dir" && as_dir=.
25700    for ac_exec_ext in '' $ac_executable_extensions; do
25701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25702    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25704    break 2
25705  fi
25706done
25707  done
25708IFS=$as_save_IFS
25709
25710  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25711  ;;
25712esac
25713fi
25714CTYPESGEN=$ac_cv_path_CTYPESGEN
25715if test -n "$CTYPESGEN"; then
25716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25717$as_echo "$CTYPESGEN" >&6; }
25718else
25719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25720$as_echo "no" >&6; }
25721fi
25722
25723
25724  elif test $where != no; then
25725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25726$as_echo_n "checking for ctypesgen.py... " >&6; }
25727
25728    if test -f "$where"; then
25729      CTYPESGEN="$where"
25730    elif test -f "$where/bin/ctypesgen.py"; then
25731      CTYPESGEN="$where/bin/ctypesgen.py"
25732    else
25733      CTYPESGEN="$where/ctypesgen.py"
25734    fi
25735
25736    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25737      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25738                    $where/bin/ctypesgen.py" "$LINENO" 5
25739    else
25740      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25741$as_echo "$CTYPESGEN" >&6; }
25742    fi
25743  fi
25744
25745
25746
25747      ;;
25748      "yes")
25749
25750  where=check
25751
25752  CTYPESGEN=none
25753
25754  if test $where = check; then
25755    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25756set dummy "ctypesgen.py"; ac_word=$2
25757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25758$as_echo_n "checking for $ac_word... " >&6; }
25759if ${ac_cv_path_CTYPESGEN+:} false; then :
25760  $as_echo_n "(cached) " >&6
25761else
25762  case $CTYPESGEN in
25763  [\\/]* | ?:[\\/]*)
25764  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25765  ;;
25766  *)
25767  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25768for as_dir in $PATH
25769do
25770  IFS=$as_save_IFS
25771  test -z "$as_dir" && as_dir=.
25772    for ac_exec_ext in '' $ac_executable_extensions; do
25773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25774    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25776    break 2
25777  fi
25778done
25779  done
25780IFS=$as_save_IFS
25781
25782  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25783  ;;
25784esac
25785fi
25786CTYPESGEN=$ac_cv_path_CTYPESGEN
25787if test -n "$CTYPESGEN"; then
25788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25789$as_echo "$CTYPESGEN" >&6; }
25790else
25791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25792$as_echo "no" >&6; }
25793fi
25794
25795
25796  elif test $where != no; then
25797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25798$as_echo_n "checking for ctypesgen.py... " >&6; }
25799
25800    if test -f "$where"; then
25801      CTYPESGEN="$where"
25802    elif test -f "$where/bin/ctypesgen.py"; then
25803      CTYPESGEN="$where/bin/ctypesgen.py"
25804    else
25805      CTYPESGEN="$where/ctypesgen.py"
25806    fi
25807
25808    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25809      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25810                    $where/bin/ctypesgen.py" "$LINENO" 5
25811    else
25812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25813$as_echo "$CTYPESGEN" >&6; }
25814    fi
25815  fi
25816
25817
25818
25819      ;;
25820      *)
25821
25822  where=$withval
25823
25824  CTYPESGEN=none
25825
25826  if test $where = check; then
25827    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25828set dummy "ctypesgen.py"; ac_word=$2
25829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25830$as_echo_n "checking for $ac_word... " >&6; }
25831if ${ac_cv_path_CTYPESGEN+:} false; then :
25832  $as_echo_n "(cached) " >&6
25833else
25834  case $CTYPESGEN in
25835  [\\/]* | ?:[\\/]*)
25836  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25837  ;;
25838  *)
25839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25840for as_dir in $PATH
25841do
25842  IFS=$as_save_IFS
25843  test -z "$as_dir" && as_dir=.
25844    for ac_exec_ext in '' $ac_executable_extensions; do
25845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25846    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25848    break 2
25849  fi
25850done
25851  done
25852IFS=$as_save_IFS
25853
25854  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25855  ;;
25856esac
25857fi
25858CTYPESGEN=$ac_cv_path_CTYPESGEN
25859if test -n "$CTYPESGEN"; then
25860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25861$as_echo "$CTYPESGEN" >&6; }
25862else
25863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25864$as_echo "no" >&6; }
25865fi
25866
25867
25868  elif test $where != no; then
25869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25870$as_echo_n "checking for ctypesgen.py... " >&6; }
25871
25872    if test -f "$where"; then
25873      CTYPESGEN="$where"
25874    elif test -f "$where/bin/ctypesgen.py"; then
25875      CTYPESGEN="$where/bin/ctypesgen.py"
25876    else
25877      CTYPESGEN="$where/ctypesgen.py"
25878    fi
25879
25880    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25881      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25882                    $where/bin/ctypesgen.py" "$LINENO" 5
25883    else
25884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25885$as_echo "$CTYPESGEN" >&6; }
25886    fi
25887  fi
25888
25889
25890
25891      ;;
25892    esac
25893
25894else
25895
25896
25897  where=check
25898
25899  CTYPESGEN=none
25900
25901  if test $where = check; then
25902    # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25903set dummy "ctypesgen.py"; ac_word=$2
25904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25905$as_echo_n "checking for $ac_word... " >&6; }
25906if ${ac_cv_path_CTYPESGEN+:} false; then :
25907  $as_echo_n "(cached) " >&6
25908else
25909  case $CTYPESGEN in
25910  [\\/]* | ?:[\\/]*)
25911  ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25912  ;;
25913  *)
25914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25915for as_dir in $PATH
25916do
25917  IFS=$as_save_IFS
25918  test -z "$as_dir" && as_dir=.
25919    for ac_exec_ext in '' $ac_executable_extensions; do
25920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25921    ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25923    break 2
25924  fi
25925done
25926  done
25927IFS=$as_save_IFS
25928
25929  test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25930  ;;
25931esac
25932fi
25933CTYPESGEN=$ac_cv_path_CTYPESGEN
25934if test -n "$CTYPESGEN"; then
25935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25936$as_echo "$CTYPESGEN" >&6; }
25937else
25938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25939$as_echo "no" >&6; }
25940fi
25941
25942
25943  elif test $where != no; then
25944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25945$as_echo_n "checking for ctypesgen.py... " >&6; }
25946
25947    if test -f "$where"; then
25948      CTYPESGEN="$where"
25949    elif test -f "$where/bin/ctypesgen.py"; then
25950      CTYPESGEN="$where/bin/ctypesgen.py"
25951    else
25952      CTYPESGEN="$where/ctypesgen.py"
25953    fi
25954
25955    if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25956      as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25957                    $where/bin/ctypesgen.py" "$LINENO" 5
25958    else
25959      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25960$as_echo "$CTYPESGEN" >&6; }
25961    fi
25962  fi
25963
25964
25965
25966
25967fi
25968
25969
25970
25971# Check whether --enable-runtime-module-search was given.
25972if test "${enable_runtime_module_search+set}" = set; then :
25973  enableval=$enable_runtime_module_search;
25974    if test "$enableval" = "yes"; then
25975      use_dso=yes
25976      if test "$svn_enable_shared" = "no"; then
25977        as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
25978      fi
25979
25980$as_echo "#define SVN_USE_DSO 1" >>confdefs.h
25981
25982    fi
25983
25984fi
25985
25986
25987if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
25988
25989$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
25990
25991  svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
25992  svn_ra_lib_install_deps="install-ramod-lib"
25993  svn_ra_lib_link="\$(RA_LOCAL_LINK)"
25994
25995
25996$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
25997
25998  svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
25999  svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
26000
26001  if test "$svn_lib_serf" = "yes"; then
26002
26003$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
26004
26005    svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
26006    svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
26007    svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
26008  fi
26009
26010  SVN_RA_LIB_DEPS=$svn_ra_lib_deps
26011  SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
26012  SVN_RA_LIB_LINK=$svn_ra_lib_link
26013
26014
26015$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
26016
26017  svn_fs_lib_deps="\$(FS_FS_DEPS)"
26018  svn_fs_lib_install_deps="install-fsmod-lib"
26019  svn_fs_lib_link="\$(FS_FS_LINK)"
26020
26021
26022$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_X 1" >>confdefs.h
26023
26024  svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_X_DEPS)"
26025  svn_fs_lib_link="$svn_fs_lib_link \$(FS_X_LINK)"
26026
26027  if test "$svn_lib_berkeley_db" = "yes"; then
26028
26029$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
26030
26031    svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
26032    svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
26033    svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
26034  fi
26035
26036  SVN_FS_LIB_DEPS=$svn_fs_lib_deps
26037  SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
26038  SVN_FS_LIB_LINK=$svn_fs_lib_link
26039fi
26040
26041
26042
26043
26044
26045
26046
26047
26048# ==== JavaHL ================================================================
26049
26050do_javahl_build=no
26051# Check whether --enable-javahl was given.
26052if test "${enable_javahl+set}" = set; then :
26053  enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
26054        do_javahl_build="yes"
26055    fi
26056
26057fi
26058
26059
26060JAVAHL_OBJDIR=""
26061INSTALL_EXTRA_JAVAHL_LIB=""
26062FIX_JAVAHL_LIB=""
26063JAVAHL_TESTS_TARGET=""
26064JAVAHL_COMPAT_TESTS_TARGET=""
26065LT_CXX_LIBADD=""
26066if test "$do_javahl_build" = "yes"; then
26067    if test "$JDK_SUITABLE" = "no"; then
26068    as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
26069                  Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
26070  fi
26071
26072    JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
26073
26074  os_arch=`uname`
26075  if test "$os_arch" = "Darwin"; then
26076        INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
26077    FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
26078  fi
26079  # This segment (and the rest of r10800) is very likely unnecessary
26080  # with libtool 1.5, which automatically adds libstdc++ as a
26081  # dependency to the C++ libraries it builds.  So at some future time
26082  # when autogen.sh requires libtool 1.5 or higher, we can get rid of
26083  # it.
26084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
26085$as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
26086  if test "x$ac_compiler_gnu" = "xyes"; then
26087    case "$host" in
26088      *freebsd10*)
26089        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
26090$as_echo "none needed" >&6; }
26091      ;;
26092      *)
26093        LT_CXX_LIBADD="-lstdc++"
26094        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
26095$as_echo "$LT_CXX_LIBADD" >&6; }
26096      ;;
26097    esac
26098  else
26099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
26100$as_echo "none needed" >&6; }
26101  fi
26102fi
26103
26104
26105
26106
26107
26108
26109# Check whether --with-junit was given.
26110if test "${with_junit+set}" = set; then :
26111  withval=$with_junit;
26112    if test "$withval" != "no"; then
26113      if test -n "$JAVA_CLASSPATH"; then
26114        JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
26115      else
26116        JAVA_CLASSPATH="$withval"
26117      fi
26118      JAVAHL_TESTS_TARGET="javahl-tests"
26119      JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
26120    fi
26121
26122fi
26123
26124
26125
26126
26127
26128# ==== Miscellaneous bits ====================================================
26129
26130for ac_header in stdbool.h inttypes.h
26131do :
26132  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26133ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26134if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26135  cat >>confdefs.h <<_ACEOF
26136#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26137_ACEOF
26138
26139fi
26140
26141done
26142
26143
26144# Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
26145### I think we get this flag from APR, so the fix probably belongs there
26146if test "$CC" = "clang"; then
26147
26148  CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
26149
26150fi
26151
26152# Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well.
26153SWIG_CPPFLAGS="$CPPFLAGS"
26154
26155  SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
26156
26157
26158  SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-Wdate-time //'`
26159
26160
26161
26162
26163cat >>confdefs.h <<_ACEOF
26164#define SVN_PATH_LOCAL_SEPARATOR '/'
26165_ACEOF
26166
26167
26168
26169cat >>confdefs.h <<_ACEOF
26170#define SVN_NULL_DEVICE_NAME "/dev/null"
26171_ACEOF
26172
26173
26174DEFAULT_FS_TYPE="fsfs"
26175
26176cat >>confdefs.h <<_ACEOF
26177#define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
26178_ACEOF
26179
26180
26181DEFAULT_HTTP_LIBRARY="serf"
26182
26183cat >>confdefs.h <<_ACEOF
26184#define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
26185_ACEOF
26186
26187
26188# BSD/OS (BSDi) needs to use a different include syntax in Makefile
26189INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
26190case "$host" in
26191  *bsdi*)
26192    # Check whether they've installed GNU make
26193    if ! make --version > /dev/null 2>&1; then
26194      # BSDi make
26195      INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
26196    fi
26197    ;;
26198esac
26199
26200
26201# ==== Detection complete - output and run config.status =====================
26202
26203ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
26204
26205ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
26206
26207ac_config_files="$ac_config_files Makefile"
26208
26209
26210# Create pkg-config .pc files from .pc.in files
26211for pc_in_file in "${abs_srcdir}"/subversion/libsvn_*/*.pc.in; do
26212  pc_file=${pc_in_file#${abs_srcdir}/}
26213  pc_file=${pc_file%.in}
26214  ac_config_files="$ac_config_files ${pc_file}"
26215
26216done
26217
26218
26219  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
26220  ac_config_files="$ac_config_files tools/backup/hot-backup.py"
26221
26222
26223  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
26224  ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
26225
26226
26227  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
26228  ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
26229
26230if test -e packages/solaris/pkginfo.in; then
26231
26232  SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
26233  ac_config_files="$ac_config_files packages/solaris/pkginfo"
26234
26235fi
26236
26237
26238# Ensure that SWIG is checked after reconfiguration.
26239rm -f .swig_checked
26240
26241
26242cat >>confdefs.h <<_ACEOF
26243#define SVN_BUILD_HOST "${host}"
26244_ACEOF
26245
26246
26247
26248cat >>confdefs.h <<_ACEOF
26249#define SVN_BUILD_TARGET "${target}"
26250_ACEOF
26251
26252
26253cat >confcache <<\_ACEOF
26254# This file is a shell script that caches the results of configure
26255# tests run on this system so they can be shared between configure
26256# scripts and configure runs, see configure's option --config-cache.
26257# It is not useful on other systems.  If it contains results you don't
26258# want to keep, you may remove or edit it.
26259#
26260# config.status only pays attention to the cache file if you give it
26261# the --recheck option to rerun configure.
26262#
26263# `ac_cv_env_foo' variables (set or unset) will be overridden when
26264# loading this file, other *unset* `ac_cv_foo' will be assigned the
26265# following values.
26266
26267_ACEOF
26268
26269# The following way of writing the cache mishandles newlines in values,
26270# but we know of no workaround that is simple, portable, and efficient.
26271# So, we kill variables containing newlines.
26272# Ultrix sh set writes to stderr and can't be redirected directly,
26273# and sets the high bit in the cache file unless we assign to the vars.
26274(
26275  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26276    eval ac_val=\$$ac_var
26277    case $ac_val in #(
26278    *${as_nl}*)
26279      case $ac_var in #(
26280      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26281$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26282      esac
26283      case $ac_var in #(
26284      _ | IFS | as_nl) ;; #(
26285      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26286      *) { eval $ac_var=; unset $ac_var;} ;;
26287      esac ;;
26288    esac
26289  done
26290
26291  (set) 2>&1 |
26292    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26293    *${as_nl}ac_space=\ *)
26294      # `set' does not quote correctly, so add quotes: double-quote
26295      # substitution turns \\\\ into \\, and sed turns \\ into \.
26296      sed -n \
26297	"s/'/'\\\\''/g;
26298	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26299      ;; #(
26300    *)
26301      # `set' quotes correctly as required by POSIX, so do not add quotes.
26302      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26303      ;;
26304    esac |
26305    sort
26306) |
26307  sed '
26308     /^ac_cv_env_/b end
26309     t clear
26310     :clear
26311     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26312     t end
26313     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26314     :end' >>confcache
26315if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26316  if test -w "$cache_file"; then
26317    if test "x$cache_file" != "x/dev/null"; then
26318      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26319$as_echo "$as_me: updating cache $cache_file" >&6;}
26320      if test ! -f "$cache_file" || test -h "$cache_file"; then
26321	cat confcache >"$cache_file"
26322      else
26323        case $cache_file in #(
26324        */* | ?:*)
26325	  mv -f confcache "$cache_file"$$ &&
26326	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26327        *)
26328	  mv -f confcache "$cache_file" ;;
26329	esac
26330      fi
26331    fi
26332  else
26333    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26334$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26335  fi
26336fi
26337rm -f confcache
26338
26339test "x$prefix" = xNONE && prefix=$ac_default_prefix
26340# Let make expand exec_prefix.
26341test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26342
26343DEFS=-DHAVE_CONFIG_H
26344
26345ac_libobjs=
26346ac_ltlibobjs=
26347U=
26348for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26349  # 1. Remove the extension, and $U if already installed.
26350  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26351  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26352  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26353  #    will be set to the directory where LIBOBJS objects are built.
26354  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26355  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26356done
26357LIBOBJS=$ac_libobjs
26358
26359LTLIBOBJS=$ac_ltlibobjs
26360
26361
26362
26363: "${CONFIG_STATUS=./config.status}"
26364ac_write_fail=0
26365ac_clean_files_save=$ac_clean_files
26366ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26367{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26368$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26369as_write_fail=0
26370cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26371#! $SHELL
26372# Generated by $as_me.
26373# Run this file to recreate the current configuration.
26374# Compiler output produced by configure, useful for debugging
26375# configure, is in config.log if it exists.
26376
26377debug=false
26378ac_cs_recheck=false
26379ac_cs_silent=false
26380
26381SHELL=\${CONFIG_SHELL-$SHELL}
26382export SHELL
26383_ASEOF
26384cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26385## -------------------- ##
26386## M4sh Initialization. ##
26387## -------------------- ##
26388
26389# Be more Bourne compatible
26390DUALCASE=1; export DUALCASE # for MKS sh
26391if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26392  emulate sh
26393  NULLCMD=:
26394  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26395  # is contrary to our usage.  Disable this feature.
26396  alias -g '${1+"$@"}'='"$@"'
26397  setopt NO_GLOB_SUBST
26398else
26399  case `(set -o) 2>/dev/null` in #(
26400  *posix*) :
26401    set -o posix ;; #(
26402  *) :
26403     ;;
26404esac
26405fi
26406
26407
26408as_nl='
26409'
26410export as_nl
26411# Printing a long string crashes Solaris 7 /usr/bin/printf.
26412as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26413as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26414as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26415# Prefer a ksh shell builtin over an external printf program on Solaris,
26416# but without wasting forks for bash or zsh.
26417if test -z "$BASH_VERSION$ZSH_VERSION" \
26418    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26419  as_echo='print -r --'
26420  as_echo_n='print -rn --'
26421elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26422  as_echo='printf %s\n'
26423  as_echo_n='printf %s'
26424else
26425  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26426    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26427    as_echo_n='/usr/ucb/echo -n'
26428  else
26429    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26430    as_echo_n_body='eval
26431      arg=$1;
26432      case $arg in #(
26433      *"$as_nl"*)
26434	expr "X$arg" : "X\\(.*\\)$as_nl";
26435	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26436      esac;
26437      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26438    '
26439    export as_echo_n_body
26440    as_echo_n='sh -c $as_echo_n_body as_echo'
26441  fi
26442  export as_echo_body
26443  as_echo='sh -c $as_echo_body as_echo'
26444fi
26445
26446# The user is always right.
26447if test "${PATH_SEPARATOR+set}" != set; then
26448  PATH_SEPARATOR=:
26449  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26450    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26451      PATH_SEPARATOR=';'
26452  }
26453fi
26454
26455
26456# IFS
26457# We need space, tab and new line, in precisely that order.  Quoting is
26458# there to prevent editors from complaining about space-tab.
26459# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26460# splitting by setting IFS to empty value.)
26461IFS=" ""	$as_nl"
26462
26463# Find who we are.  Look in the path if we contain no directory separator.
26464as_myself=
26465case $0 in #((
26466  *[\\/]* ) as_myself=$0 ;;
26467  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26468for as_dir in $PATH
26469do
26470  IFS=$as_save_IFS
26471  test -z "$as_dir" && as_dir=.
26472    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26473  done
26474IFS=$as_save_IFS
26475
26476     ;;
26477esac
26478# We did not find ourselves, most probably we were run as `sh COMMAND'
26479# in which case we are not to be found in the path.
26480if test "x$as_myself" = x; then
26481  as_myself=$0
26482fi
26483if test ! -f "$as_myself"; then
26484  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26485  exit 1
26486fi
26487
26488# Unset variables that we do not need and which cause bugs (e.g. in
26489# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26490# suppresses any "Segmentation fault" message there.  '((' could
26491# trigger a bug in pdksh 5.2.14.
26492for as_var in BASH_ENV ENV MAIL MAILPATH
26493do eval test x\${$as_var+set} = xset \
26494  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26495done
26496PS1='$ '
26497PS2='> '
26498PS4='+ '
26499
26500# NLS nuisances.
26501LC_ALL=C
26502export LC_ALL
26503LANGUAGE=C
26504export LANGUAGE
26505
26506# CDPATH.
26507(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26508
26509
26510# as_fn_error STATUS ERROR [LINENO LOG_FD]
26511# ----------------------------------------
26512# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26513# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26514# script with STATUS, using 1 if that was 0.
26515as_fn_error ()
26516{
26517  as_status=$1; test $as_status -eq 0 && as_status=1
26518  if test "$4"; then
26519    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26520    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26521  fi
26522  $as_echo "$as_me: error: $2" >&2
26523  as_fn_exit $as_status
26524} # as_fn_error
26525
26526
26527# as_fn_set_status STATUS
26528# -----------------------
26529# Set $? to STATUS, without forking.
26530as_fn_set_status ()
26531{
26532  return $1
26533} # as_fn_set_status
26534
26535# as_fn_exit STATUS
26536# -----------------
26537# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26538as_fn_exit ()
26539{
26540  set +e
26541  as_fn_set_status $1
26542  exit $1
26543} # as_fn_exit
26544
26545# as_fn_unset VAR
26546# ---------------
26547# Portably unset VAR.
26548as_fn_unset ()
26549{
26550  { eval $1=; unset $1;}
26551}
26552as_unset=as_fn_unset
26553# as_fn_append VAR VALUE
26554# ----------------------
26555# Append the text in VALUE to the end of the definition contained in VAR. Take
26556# advantage of any shell optimizations that allow amortized linear growth over
26557# repeated appends, instead of the typical quadratic growth present in naive
26558# implementations.
26559if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26560  eval 'as_fn_append ()
26561  {
26562    eval $1+=\$2
26563  }'
26564else
26565  as_fn_append ()
26566  {
26567    eval $1=\$$1\$2
26568  }
26569fi # as_fn_append
26570
26571# as_fn_arith ARG...
26572# ------------------
26573# Perform arithmetic evaluation on the ARGs, and store the result in the
26574# global $as_val. Take advantage of shells that can avoid forks. The arguments
26575# must be portable across $(()) and expr.
26576if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26577  eval 'as_fn_arith ()
26578  {
26579    as_val=$(( $* ))
26580  }'
26581else
26582  as_fn_arith ()
26583  {
26584    as_val=`expr "$@" || test $? -eq 1`
26585  }
26586fi # as_fn_arith
26587
26588
26589if expr a : '\(a\)' >/dev/null 2>&1 &&
26590   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26591  as_expr=expr
26592else
26593  as_expr=false
26594fi
26595
26596if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26597  as_basename=basename
26598else
26599  as_basename=false
26600fi
26601
26602if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26603  as_dirname=dirname
26604else
26605  as_dirname=false
26606fi
26607
26608as_me=`$as_basename -- "$0" ||
26609$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26610	 X"$0" : 'X\(//\)$' \| \
26611	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26612$as_echo X/"$0" |
26613    sed '/^.*\/\([^/][^/]*\)\/*$/{
26614	    s//\1/
26615	    q
26616	  }
26617	  /^X\/\(\/\/\)$/{
26618	    s//\1/
26619	    q
26620	  }
26621	  /^X\/\(\/\).*/{
26622	    s//\1/
26623	    q
26624	  }
26625	  s/.*/./; q'`
26626
26627# Avoid depending upon Character Ranges.
26628as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26629as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26630as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26631as_cr_digits='0123456789'
26632as_cr_alnum=$as_cr_Letters$as_cr_digits
26633
26634ECHO_C= ECHO_N= ECHO_T=
26635case `echo -n x` in #(((((
26636-n*)
26637  case `echo 'xy\c'` in
26638  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26639  xy)  ECHO_C='\c';;
26640  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26641       ECHO_T='	';;
26642  esac;;
26643*)
26644  ECHO_N='-n';;
26645esac
26646
26647rm -f conf$$ conf$$.exe conf$$.file
26648if test -d conf$$.dir; then
26649  rm -f conf$$.dir/conf$$.file
26650else
26651  rm -f conf$$.dir
26652  mkdir conf$$.dir 2>/dev/null
26653fi
26654if (echo >conf$$.file) 2>/dev/null; then
26655  if ln -s conf$$.file conf$$ 2>/dev/null; then
26656    as_ln_s='ln -s'
26657    # ... but there are two gotchas:
26658    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26659    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26660    # In both cases, we have to default to `cp -pR'.
26661    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26662      as_ln_s='cp -pR'
26663  elif ln conf$$.file conf$$ 2>/dev/null; then
26664    as_ln_s=ln
26665  else
26666    as_ln_s='cp -pR'
26667  fi
26668else
26669  as_ln_s='cp -pR'
26670fi
26671rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26672rmdir conf$$.dir 2>/dev/null
26673
26674
26675# as_fn_mkdir_p
26676# -------------
26677# Create "$as_dir" as a directory, including parents if necessary.
26678as_fn_mkdir_p ()
26679{
26680
26681  case $as_dir in #(
26682  -*) as_dir=./$as_dir;;
26683  esac
26684  test -d "$as_dir" || eval $as_mkdir_p || {
26685    as_dirs=
26686    while :; do
26687      case $as_dir in #(
26688      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26689      *) as_qdir=$as_dir;;
26690      esac
26691      as_dirs="'$as_qdir' $as_dirs"
26692      as_dir=`$as_dirname -- "$as_dir" ||
26693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26694	 X"$as_dir" : 'X\(//\)[^/]' \| \
26695	 X"$as_dir" : 'X\(//\)$' \| \
26696	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26697$as_echo X"$as_dir" |
26698    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26699	    s//\1/
26700	    q
26701	  }
26702	  /^X\(\/\/\)[^/].*/{
26703	    s//\1/
26704	    q
26705	  }
26706	  /^X\(\/\/\)$/{
26707	    s//\1/
26708	    q
26709	  }
26710	  /^X\(\/\).*/{
26711	    s//\1/
26712	    q
26713	  }
26714	  s/.*/./; q'`
26715      test -d "$as_dir" && break
26716    done
26717    test -z "$as_dirs" || eval "mkdir $as_dirs"
26718  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26719
26720
26721} # as_fn_mkdir_p
26722if mkdir -p . 2>/dev/null; then
26723  as_mkdir_p='mkdir -p "$as_dir"'
26724else
26725  test -d ./-p && rmdir ./-p
26726  as_mkdir_p=false
26727fi
26728
26729
26730# as_fn_executable_p FILE
26731# -----------------------
26732# Test if FILE is an executable regular file.
26733as_fn_executable_p ()
26734{
26735  test -f "$1" && test -x "$1"
26736} # as_fn_executable_p
26737as_test_x='test -x'
26738as_executable_p=as_fn_executable_p
26739
26740# Sed expression to map a string onto a valid CPP name.
26741as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26742
26743# Sed expression to map a string onto a valid variable name.
26744as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26745
26746
26747exec 6>&1
26748## ----------------------------------- ##
26749## Main body of $CONFIG_STATUS script. ##
26750## ----------------------------------- ##
26751_ASEOF
26752test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26753
26754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26755# Save the log message, to keep $0 and so on meaningful, and to
26756# report actual input values of CONFIG_FILES etc. instead of their
26757# values after options handling.
26758ac_log="
26759This file was extended by subversion $as_me 1.9.5, which was
26760generated by GNU Autoconf 2.69.  Invocation command line was
26761
26762  CONFIG_FILES    = $CONFIG_FILES
26763  CONFIG_HEADERS  = $CONFIG_HEADERS
26764  CONFIG_LINKS    = $CONFIG_LINKS
26765  CONFIG_COMMANDS = $CONFIG_COMMANDS
26766  $ $0 $@
26767
26768on `(hostname || uname -n) 2>/dev/null | sed 1q`
26769"
26770
26771_ACEOF
26772
26773case $ac_config_files in *"
26774"*) set x $ac_config_files; shift; ac_config_files=$*;;
26775esac
26776
26777case $ac_config_headers in *"
26778"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26779esac
26780
26781
26782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26783# Files that config.status was made for.
26784config_files="$ac_config_files"
26785config_headers="$ac_config_headers"
26786config_commands="$ac_config_commands"
26787
26788_ACEOF
26789
26790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26791ac_cs_usage="\
26792\`$as_me' instantiates files and other configuration actions
26793from templates according to the current configuration.  Unless the files
26794and actions are specified as TAGs, all are instantiated by default.
26795
26796Usage: $0 [OPTION]... [TAG]...
26797
26798  -h, --help       print this help, then exit
26799  -V, --version    print version number and configuration settings, then exit
26800      --config     print configuration, then exit
26801  -q, --quiet, --silent
26802                   do not print progress messages
26803  -d, --debug      don't remove temporary files
26804      --recheck    update $as_me by reconfiguring in the same conditions
26805      --file=FILE[:TEMPLATE]
26806                   instantiate the configuration file FILE
26807      --header=FILE[:TEMPLATE]
26808                   instantiate the configuration header FILE
26809
26810Configuration files:
26811$config_files
26812
26813Configuration headers:
26814$config_headers
26815
26816Configuration commands:
26817$config_commands
26818
26819Report bugs to <http://subversion.apache.org/>."
26820
26821_ACEOF
26822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26823ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26824ac_cs_version="\\
26825subversion config.status 1.9.5
26826configured by $0, generated by GNU Autoconf 2.69,
26827  with options \\"\$ac_cs_config\\"
26828
26829Copyright (C) 2012 Free Software Foundation, Inc.
26830This config.status script is free software; the Free Software Foundation
26831gives unlimited permission to copy, distribute and modify it."
26832
26833ac_pwd='$ac_pwd'
26834srcdir='$srcdir'
26835INSTALL='$INSTALL'
26836AWK='$AWK'
26837test -n "\$AWK" || AWK=awk
26838_ACEOF
26839
26840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26841# The default lists apply if the user does not specify any file.
26842ac_need_defaults=:
26843while test $# != 0
26844do
26845  case $1 in
26846  --*=?*)
26847    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26848    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26849    ac_shift=:
26850    ;;
26851  --*=)
26852    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26853    ac_optarg=
26854    ac_shift=:
26855    ;;
26856  *)
26857    ac_option=$1
26858    ac_optarg=$2
26859    ac_shift=shift
26860    ;;
26861  esac
26862
26863  case $ac_option in
26864  # Handling of the options.
26865  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26866    ac_cs_recheck=: ;;
26867  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26868    $as_echo "$ac_cs_version"; exit ;;
26869  --config | --confi | --conf | --con | --co | --c )
26870    $as_echo "$ac_cs_config"; exit ;;
26871  --debug | --debu | --deb | --de | --d | -d )
26872    debug=: ;;
26873  --file | --fil | --fi | --f )
26874    $ac_shift
26875    case $ac_optarg in
26876    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26877    '') as_fn_error $? "missing file argument" ;;
26878    esac
26879    as_fn_append CONFIG_FILES " '$ac_optarg'"
26880    ac_need_defaults=false;;
26881  --header | --heade | --head | --hea )
26882    $ac_shift
26883    case $ac_optarg in
26884    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26885    esac
26886    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26887    ac_need_defaults=false;;
26888  --he | --h)
26889    # Conflict between --help and --header
26890    as_fn_error $? "ambiguous option: \`$1'
26891Try \`$0 --help' for more information.";;
26892  --help | --hel | -h )
26893    $as_echo "$ac_cs_usage"; exit ;;
26894  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26895  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26896    ac_cs_silent=: ;;
26897
26898  # This is an error.
26899  -*) as_fn_error $? "unrecognized option: \`$1'
26900Try \`$0 --help' for more information." ;;
26901
26902  *) as_fn_append ac_config_targets " $1"
26903     ac_need_defaults=false ;;
26904
26905  esac
26906  shift
26907done
26908
26909ac_configure_extra_args=
26910
26911if $ac_cs_silent; then
26912  exec 6>/dev/null
26913  ac_configure_extra_args="$ac_configure_extra_args --silent"
26914fi
26915
26916_ACEOF
26917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26918if \$ac_cs_recheck; then
26919  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26920  shift
26921  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26922  CONFIG_SHELL='$SHELL'
26923  export CONFIG_SHELL
26924  exec "\$@"
26925fi
26926
26927_ACEOF
26928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26929exec 5>>config.log
26930{
26931  echo
26932  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26933## Running $as_me. ##
26934_ASBOX
26935  $as_echo "$ac_log"
26936} >&5
26937
26938_ACEOF
26939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26940#
26941# INIT-COMMANDS
26942#
26943
26944
26945# The HP-UX ksh and POSIX shell print the target directory to stdout
26946# if CDPATH is set.
26947(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26948
26949sed_quote_subst='$sed_quote_subst'
26950double_quote_subst='$double_quote_subst'
26951delay_variable_subst='$delay_variable_subst'
26952macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26953macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26954enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26955enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26956pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26957enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26958shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26959SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26960ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26961PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26962host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26963host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26964host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26965build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26966build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26967build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26968SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26969Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26970GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26971EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26972FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26973LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26974NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26975LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26976max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26977ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26978exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26979lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26980lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26981lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26982lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26983lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26984reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26985reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26986OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26987deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26988file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26989file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26990want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26991DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26992sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26993AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26994AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26995archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26996STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26997RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26998old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26999old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27000old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27001lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27002CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27003CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27004compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27005GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27006lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27007lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27008lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27009lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27010lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
27011lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27012nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27013lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27014lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27015objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27016MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27017lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27018lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27019lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27020lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27021lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27022need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27023MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27024DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27025NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27026LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27027OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27028OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27029libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27030shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27031extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27032archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27033enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27034export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27035whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27036compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27037old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27038old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27039archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27040archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27041module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27042module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27043with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27044allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27045no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27046hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27047hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27048hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27049hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27050hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27051hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27052hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27053inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27054link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27055always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27056export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27057exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27058include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27059prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27060postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27061file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27062variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27063need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27064need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27065version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27066runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27067shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27068shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27069libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27070library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27071soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27072install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27073postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27074postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27075finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27076finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27077hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27078sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27079configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27080configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27081hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27082enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27083enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27084enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27085old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27086striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27087compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27088predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27089postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27090predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27091postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27092compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27093LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27094reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27095reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27096old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27097compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27098GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27099lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27100lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27101lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27102lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27103lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27104archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27105enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27106export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27107whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27108compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27109old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27110old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27111archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27112archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27113module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27114module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27115with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27116allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27117no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27118hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27119hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27120hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27121hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27122hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27123hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27124hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27125inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27126link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27127always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27128export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27129exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27130include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27131prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27132postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27133file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27134hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27135compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27136predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27137postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27138predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27139postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27140compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27141
27142LTCC='$LTCC'
27143LTCFLAGS='$LTCFLAGS'
27144compiler='$compiler_DEFAULT'
27145
27146# A function that is used when there is no print builtin or printf.
27147func_fallback_echo ()
27148{
27149  eval 'cat <<_LTECHO_EOF
27150\$1
27151_LTECHO_EOF'
27152}
27153
27154# Quote evaled strings.
27155for var in SHELL \
27156ECHO \
27157PATH_SEPARATOR \
27158SED \
27159GREP \
27160EGREP \
27161FGREP \
27162LD \
27163NM \
27164LN_S \
27165lt_SP2NL \
27166lt_NL2SP \
27167reload_flag \
27168OBJDUMP \
27169deplibs_check_method \
27170file_magic_cmd \
27171file_magic_glob \
27172want_nocaseglob \
27173DLLTOOL \
27174sharedlib_from_linklib_cmd \
27175AR \
27176AR_FLAGS \
27177archiver_list_spec \
27178STRIP \
27179RANLIB \
27180CC \
27181CFLAGS \
27182compiler \
27183lt_cv_sys_global_symbol_pipe \
27184lt_cv_sys_global_symbol_to_cdecl \
27185lt_cv_sys_global_symbol_to_import \
27186lt_cv_sys_global_symbol_to_c_name_address \
27187lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27188lt_cv_nm_interface \
27189nm_file_list_spec \
27190lt_cv_truncate_bin \
27191lt_prog_compiler_no_builtin_flag \
27192lt_prog_compiler_pic \
27193lt_prog_compiler_wl \
27194lt_prog_compiler_static \
27195lt_cv_prog_compiler_c_o \
27196need_locks \
27197MANIFEST_TOOL \
27198DSYMUTIL \
27199NMEDIT \
27200LIPO \
27201OTOOL \
27202OTOOL64 \
27203shrext_cmds \
27204export_dynamic_flag_spec \
27205whole_archive_flag_spec \
27206compiler_needs_object \
27207with_gnu_ld \
27208allow_undefined_flag \
27209no_undefined_flag \
27210hardcode_libdir_flag_spec \
27211hardcode_libdir_separator \
27212exclude_expsyms \
27213include_expsyms \
27214file_list_spec \
27215variables_saved_for_relink \
27216libname_spec \
27217library_names_spec \
27218soname_spec \
27219install_override_mode \
27220finish_eval \
27221old_striplib \
27222striplib \
27223compiler_lib_search_dirs \
27224predep_objects \
27225postdep_objects \
27226predeps \
27227postdeps \
27228compiler_lib_search_path \
27229LD_CXX \
27230reload_flag_CXX \
27231compiler_CXX \
27232lt_prog_compiler_no_builtin_flag_CXX \
27233lt_prog_compiler_pic_CXX \
27234lt_prog_compiler_wl_CXX \
27235lt_prog_compiler_static_CXX \
27236lt_cv_prog_compiler_c_o_CXX \
27237export_dynamic_flag_spec_CXX \
27238whole_archive_flag_spec_CXX \
27239compiler_needs_object_CXX \
27240with_gnu_ld_CXX \
27241allow_undefined_flag_CXX \
27242no_undefined_flag_CXX \
27243hardcode_libdir_flag_spec_CXX \
27244hardcode_libdir_separator_CXX \
27245exclude_expsyms_CXX \
27246include_expsyms_CXX \
27247file_list_spec_CXX \
27248compiler_lib_search_dirs_CXX \
27249predep_objects_CXX \
27250postdep_objects_CXX \
27251predeps_CXX \
27252postdeps_CXX \
27253compiler_lib_search_path_CXX; do
27254    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27255    *[\\\\\\\`\\"\\\$]*)
27256      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27257      ;;
27258    *)
27259      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27260      ;;
27261    esac
27262done
27263
27264# Double-quote double-evaled strings.
27265for var in reload_cmds \
27266old_postinstall_cmds \
27267old_postuninstall_cmds \
27268old_archive_cmds \
27269extract_expsyms_cmds \
27270old_archive_from_new_cmds \
27271old_archive_from_expsyms_cmds \
27272archive_cmds \
27273archive_expsym_cmds \
27274module_cmds \
27275module_expsym_cmds \
27276export_symbols_cmds \
27277prelink_cmds \
27278postlink_cmds \
27279postinstall_cmds \
27280postuninstall_cmds \
27281finish_cmds \
27282sys_lib_search_path_spec \
27283configure_time_dlsearch_path \
27284configure_time_lt_sys_library_path \
27285reload_cmds_CXX \
27286old_archive_cmds_CXX \
27287old_archive_from_new_cmds_CXX \
27288old_archive_from_expsyms_cmds_CXX \
27289archive_cmds_CXX \
27290archive_expsym_cmds_CXX \
27291module_cmds_CXX \
27292module_expsym_cmds_CXX \
27293export_symbols_cmds_CXX \
27294prelink_cmds_CXX \
27295postlink_cmds_CXX; do
27296    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27297    *[\\\\\\\`\\"\\\$]*)
27298      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27299      ;;
27300    *)
27301      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27302      ;;
27303    esac
27304done
27305
27306ac_aux_dir='$ac_aux_dir'
27307
27308# See if we are running on zsh, and set the options that allow our
27309# commands through without removal of \ escapes INIT.
27310if test -n "\${ZSH_VERSION+set}"; then
27311   setopt NO_GLOB_SUBST
27312fi
27313
27314
27315    PACKAGE='$PACKAGE'
27316    VERSION='$VERSION'
27317    RM='$RM'
27318    ofile='$ofile'
27319
27320
27321
27322
27323
27324SED="$SED"
27325                    SVN_DB_HEADER="$SVN_DB_HEADER"
27326
27327_ACEOF
27328
27329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27330
27331# Handling of arguments.
27332for ac_config_target in $ac_config_targets
27333do
27334  case $ac_config_target in
27335    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27336    "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
27337    "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
27338    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27339    "${pc_file}") CONFIG_FILES="$CONFIG_FILES ${pc_file}" ;;
27340    "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
27341    "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
27342    "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
27343    "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
27344
27345  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27346  esac
27347done
27348
27349
27350# If the user did not use the arguments to specify the items to instantiate,
27351# then the envvar interface is used.  Set only those that are not.
27352# We use the long form for the default assignment because of an extremely
27353# bizarre bug on SunOS 4.1.3.
27354if $ac_need_defaults; then
27355  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27356  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27357  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27358fi
27359
27360# Have a temporary directory for convenience.  Make it in the build tree
27361# simply because there is no reason against having it here, and in addition,
27362# creating and moving files from /tmp can sometimes cause problems.
27363# Hook for its removal unless debugging.
27364# Note that there is a small window in which the directory will not be cleaned:
27365# after its creation but before its name has been assigned to `$tmp'.
27366$debug ||
27367{
27368  tmp= ac_tmp=
27369  trap 'exit_status=$?
27370  : "${ac_tmp:=$tmp}"
27371  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27372' 0
27373  trap 'as_fn_exit 1' 1 2 13 15
27374}
27375# Create a (secure) tmp directory for tmp files.
27376
27377{
27378  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27379  test -d "$tmp"
27380}  ||
27381{
27382  tmp=./conf$$-$RANDOM
27383  (umask 077 && mkdir "$tmp")
27384} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27385ac_tmp=$tmp
27386
27387# Set up the scripts for CONFIG_FILES section.
27388# No need to generate them if there are no CONFIG_FILES.
27389# This happens for instance with `./config.status config.h'.
27390if test -n "$CONFIG_FILES"; then
27391
27392
27393ac_cr=`echo X | tr X '\015'`
27394# On cygwin, bash can eat \r inside `` if the user requested igncr.
27395# But we know of no other shell where ac_cr would be empty at this
27396# point, so we can use a bashism as a fallback.
27397if test "x$ac_cr" = x; then
27398  eval ac_cr=\$\'\\r\'
27399fi
27400ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27401if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27402  ac_cs_awk_cr='\\r'
27403else
27404  ac_cs_awk_cr=$ac_cr
27405fi
27406
27407echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27408_ACEOF
27409
27410
27411{
27412  echo "cat >conf$$subs.awk <<_ACEOF" &&
27413  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27414  echo "_ACEOF"
27415} >conf$$subs.sh ||
27416  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27417ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27418ac_delim='%!_!# '
27419for ac_last_try in false false false false false :; do
27420  . ./conf$$subs.sh ||
27421    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27422
27423  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27424  if test $ac_delim_n = $ac_delim_num; then
27425    break
27426  elif $ac_last_try; then
27427    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27428  else
27429    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27430  fi
27431done
27432rm -f conf$$subs.sh
27433
27434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27435cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27436_ACEOF
27437sed -n '
27438h
27439s/^/S["/; s/!.*/"]=/
27440p
27441g
27442s/^[^!]*!//
27443:repl
27444t repl
27445s/'"$ac_delim"'$//
27446t delim
27447:nl
27448h
27449s/\(.\{148\}\)..*/\1/
27450t more1
27451s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27452p
27453n
27454b repl
27455:more1
27456s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27457p
27458g
27459s/.\{148\}//
27460t nl
27461:delim
27462h
27463s/\(.\{148\}\)..*/\1/
27464t more2
27465s/["\\]/\\&/g; s/^/"/; s/$/"/
27466p
27467b
27468:more2
27469s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27470p
27471g
27472s/.\{148\}//
27473t delim
27474' <conf$$subs.awk | sed '
27475/^[^""]/{
27476  N
27477  s/\n//
27478}
27479' >>$CONFIG_STATUS || ac_write_fail=1
27480rm -f conf$$subs.awk
27481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27482_ACAWK
27483cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27484  for (key in S) S_is_set[key] = 1
27485  FS = ""
27486
27487}
27488{
27489  line = $ 0
27490  nfields = split(line, field, "@")
27491  substed = 0
27492  len = length(field[1])
27493  for (i = 2; i < nfields; i++) {
27494    key = field[i]
27495    keylen = length(key)
27496    if (S_is_set[key]) {
27497      value = S[key]
27498      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27499      len += length(value) + length(field[++i])
27500      substed = 1
27501    } else
27502      len += 1 + keylen
27503  }
27504
27505  print line
27506}
27507
27508_ACAWK
27509_ACEOF
27510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27511if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27512  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27513else
27514  cat
27515fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27516  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27517_ACEOF
27518
27519# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27520# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27521# trailing colons and then remove the whole line if VPATH becomes empty
27522# (actually we leave an empty line to preserve line numbers).
27523if test "x$srcdir" = x.; then
27524  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27525h
27526s///
27527s/^/:/
27528s/[	 ]*$/:/
27529s/:\$(srcdir):/:/g
27530s/:\${srcdir}:/:/g
27531s/:@srcdir@:/:/g
27532s/^:*//
27533s/:*$//
27534x
27535s/\(=[	 ]*\).*/\1/
27536G
27537s/\n//
27538s/^[^=]*=[	 ]*$//
27539}'
27540fi
27541
27542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27543fi # test -n "$CONFIG_FILES"
27544
27545# Set up the scripts for CONFIG_HEADERS section.
27546# No need to generate them if there are no CONFIG_HEADERS.
27547# This happens for instance with `./config.status Makefile'.
27548if test -n "$CONFIG_HEADERS"; then
27549cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27550BEGIN {
27551_ACEOF
27552
27553# Transform confdefs.h into an awk script `defines.awk', embedded as
27554# here-document in config.status, that substitutes the proper values into
27555# config.h.in to produce config.h.
27556
27557# Create a delimiter string that does not exist in confdefs.h, to ease
27558# handling of long lines.
27559ac_delim='%!_!# '
27560for ac_last_try in false false :; do
27561  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27562  if test -z "$ac_tt"; then
27563    break
27564  elif $ac_last_try; then
27565    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27566  else
27567    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27568  fi
27569done
27570
27571# For the awk script, D is an array of macro values keyed by name,
27572# likewise P contains macro parameters if any.  Preserve backslash
27573# newline sequences.
27574
27575ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27576sed -n '
27577s/.\{148\}/&'"$ac_delim"'/g
27578t rset
27579:rset
27580s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27581t def
27582d
27583:def
27584s/\\$//
27585t bsnl
27586s/["\\]/\\&/g
27587s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27588D["\1"]=" \3"/p
27589s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27590d
27591:bsnl
27592s/["\\]/\\&/g
27593s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27594D["\1"]=" \3\\\\\\n"\\/p
27595t cont
27596s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27597t cont
27598d
27599:cont
27600n
27601s/.\{148\}/&'"$ac_delim"'/g
27602t clear
27603:clear
27604s/\\$//
27605t bsnlc
27606s/["\\]/\\&/g; s/^/"/; s/$/"/p
27607d
27608:bsnlc
27609s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27610b cont
27611' <confdefs.h | sed '
27612s/'"$ac_delim"'/"\\\
27613"/g' >>$CONFIG_STATUS || ac_write_fail=1
27614
27615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27616  for (key in D) D_is_set[key] = 1
27617  FS = ""
27618}
27619/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27620  line = \$ 0
27621  split(line, arg, " ")
27622  if (arg[1] == "#") {
27623    defundef = arg[2]
27624    mac1 = arg[3]
27625  } else {
27626    defundef = substr(arg[1], 2)
27627    mac1 = arg[2]
27628  }
27629  split(mac1, mac2, "(") #)
27630  macro = mac2[1]
27631  prefix = substr(line, 1, index(line, defundef) - 1)
27632  if (D_is_set[macro]) {
27633    # Preserve the white space surrounding the "#".
27634    print prefix "define", macro P[macro] D[macro]
27635    next
27636  } else {
27637    # Replace #undef with comments.  This is necessary, for example,
27638    # in the case of _POSIX_SOURCE, which is predefined and required
27639    # on some systems where configure will not decide to define it.
27640    if (defundef == "undef") {
27641      print "/*", prefix defundef, macro, "*/"
27642      next
27643    }
27644  }
27645}
27646{ print }
27647_ACAWK
27648_ACEOF
27649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27650  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27651fi # test -n "$CONFIG_HEADERS"
27652
27653
27654eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27655shift
27656for ac_tag
27657do
27658  case $ac_tag in
27659  :[FHLC]) ac_mode=$ac_tag; continue;;
27660  esac
27661  case $ac_mode$ac_tag in
27662  :[FHL]*:*);;
27663  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27664  :[FH]-) ac_tag=-:-;;
27665  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27666  esac
27667  ac_save_IFS=$IFS
27668  IFS=:
27669  set x $ac_tag
27670  IFS=$ac_save_IFS
27671  shift
27672  ac_file=$1
27673  shift
27674
27675  case $ac_mode in
27676  :L) ac_source=$1;;
27677  :[FH])
27678    ac_file_inputs=
27679    for ac_f
27680    do
27681      case $ac_f in
27682      -) ac_f="$ac_tmp/stdin";;
27683      *) # Look for the file first in the build tree, then in the source tree
27684	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27685	 # because $ac_f cannot contain `:'.
27686	 test -f "$ac_f" ||
27687	   case $ac_f in
27688	   [\\/$]*) false;;
27689	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27690	   esac ||
27691	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27692      esac
27693      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27694      as_fn_append ac_file_inputs " '$ac_f'"
27695    done
27696
27697    # Let's still pretend it is `configure' which instantiates (i.e., don't
27698    # use $as_me), people would be surprised to read:
27699    #    /* config.h.  Generated by config.status.  */
27700    configure_input='Generated from '`
27701	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27702	`' by configure.'
27703    if test x"$ac_file" != x-; then
27704      configure_input="$ac_file.  $configure_input"
27705      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27706$as_echo "$as_me: creating $ac_file" >&6;}
27707    fi
27708    # Neutralize special characters interpreted by sed in replacement strings.
27709    case $configure_input in #(
27710    *\&* | *\|* | *\\* )
27711       ac_sed_conf_input=`$as_echo "$configure_input" |
27712       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27713    *) ac_sed_conf_input=$configure_input;;
27714    esac
27715
27716    case $ac_tag in
27717    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27718      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27719    esac
27720    ;;
27721  esac
27722
27723  ac_dir=`$as_dirname -- "$ac_file" ||
27724$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27725	 X"$ac_file" : 'X\(//\)[^/]' \| \
27726	 X"$ac_file" : 'X\(//\)$' \| \
27727	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27728$as_echo X"$ac_file" |
27729    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27730	    s//\1/
27731	    q
27732	  }
27733	  /^X\(\/\/\)[^/].*/{
27734	    s//\1/
27735	    q
27736	  }
27737	  /^X\(\/\/\)$/{
27738	    s//\1/
27739	    q
27740	  }
27741	  /^X\(\/\).*/{
27742	    s//\1/
27743	    q
27744	  }
27745	  s/.*/./; q'`
27746  as_dir="$ac_dir"; as_fn_mkdir_p
27747  ac_builddir=.
27748
27749case "$ac_dir" in
27750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27751*)
27752  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27753  # A ".." for each directory in $ac_dir_suffix.
27754  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27755  case $ac_top_builddir_sub in
27756  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27757  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27758  esac ;;
27759esac
27760ac_abs_top_builddir=$ac_pwd
27761ac_abs_builddir=$ac_pwd$ac_dir_suffix
27762# for backward compatibility:
27763ac_top_builddir=$ac_top_build_prefix
27764
27765case $srcdir in
27766  .)  # We are building in place.
27767    ac_srcdir=.
27768    ac_top_srcdir=$ac_top_builddir_sub
27769    ac_abs_top_srcdir=$ac_pwd ;;
27770  [\\/]* | ?:[\\/]* )  # Absolute name.
27771    ac_srcdir=$srcdir$ac_dir_suffix;
27772    ac_top_srcdir=$srcdir
27773    ac_abs_top_srcdir=$srcdir ;;
27774  *) # Relative name.
27775    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27776    ac_top_srcdir=$ac_top_build_prefix$srcdir
27777    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27778esac
27779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27780
27781
27782  case $ac_mode in
27783  :F)
27784  #
27785  # CONFIG_FILE
27786  #
27787
27788  case $INSTALL in
27789  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27790  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27791  esac
27792_ACEOF
27793
27794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27795# If the template does not know about datarootdir, expand it.
27796# FIXME: This hack should be removed a few years after 2.60.
27797ac_datarootdir_hack=; ac_datarootdir_seen=
27798ac_sed_dataroot='
27799/datarootdir/ {
27800  p
27801  q
27802}
27803/@datadir@/p
27804/@docdir@/p
27805/@infodir@/p
27806/@localedir@/p
27807/@mandir@/p'
27808case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27809*datarootdir*) ac_datarootdir_seen=yes;;
27810*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27811  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27812$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27813_ACEOF
27814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27815  ac_datarootdir_hack='
27816  s&@datadir@&$datadir&g
27817  s&@docdir@&$docdir&g
27818  s&@infodir@&$infodir&g
27819  s&@localedir@&$localedir&g
27820  s&@mandir@&$mandir&g
27821  s&\\\${datarootdir}&$datarootdir&g' ;;
27822esac
27823_ACEOF
27824
27825# Neutralize VPATH when `$srcdir' = `.'.
27826# Shell code in configure.ac might set extrasub.
27827# FIXME: do we really want to maintain this feature?
27828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27829ac_sed_extra="$ac_vpsub
27830$extrasub
27831_ACEOF
27832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27833:t
27834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27835s|@configure_input@|$ac_sed_conf_input|;t t
27836s&@top_builddir@&$ac_top_builddir_sub&;t t
27837s&@top_build_prefix@&$ac_top_build_prefix&;t t
27838s&@srcdir@&$ac_srcdir&;t t
27839s&@abs_srcdir@&$ac_abs_srcdir&;t t
27840s&@top_srcdir@&$ac_top_srcdir&;t t
27841s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27842s&@builddir@&$ac_builddir&;t t
27843s&@abs_builddir@&$ac_abs_builddir&;t t
27844s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27845s&@INSTALL@&$ac_INSTALL&;t t
27846$ac_datarootdir_hack
27847"
27848eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27849  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27850
27851test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27852  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27853  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27854      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27855  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27856which seems to be undefined.  Please make sure it is defined" >&5
27857$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27858which seems to be undefined.  Please make sure it is defined" >&2;}
27859
27860  rm -f "$ac_tmp/stdin"
27861  case $ac_file in
27862  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27863  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27864  esac \
27865  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27866 ;;
27867  :H)
27868  #
27869  # CONFIG_HEADER
27870  #
27871  if test x"$ac_file" != x-; then
27872    {
27873      $as_echo "/* $configure_input  */" \
27874      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27875    } >"$ac_tmp/config.h" \
27876      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27877    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27878      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27879$as_echo "$as_me: $ac_file is unchanged" >&6;}
27880    else
27881      rm -f "$ac_file"
27882      mv "$ac_tmp/config.h" "$ac_file" \
27883	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27884    fi
27885  else
27886    $as_echo "/* $configure_input  */" \
27887      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27888      || as_fn_error $? "could not create -" "$LINENO" 5
27889  fi
27890 ;;
27891
27892  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27893$as_echo "$as_me: executing $ac_file commands" >&6;}
27894 ;;
27895  esac
27896
27897
27898  case $ac_file$ac_mode in
27899    "libtool":C)
27900
27901    # See if we are running on zsh, and set the options that allow our
27902    # commands through without removal of \ escapes.
27903    if test -n "${ZSH_VERSION+set}"; then
27904      setopt NO_GLOB_SUBST
27905    fi
27906
27907    cfgfile=${ofile}T
27908    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27909    $RM "$cfgfile"
27910
27911    cat <<_LT_EOF >> "$cfgfile"
27912#! $SHELL
27913# Generated automatically by $as_me ($PACKAGE) $VERSION
27914# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27915# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27916
27917# Provide generalized library-building support services.
27918# Written by Gordon Matzigkeit, 1996
27919
27920# Copyright (C) 2014 Free Software Foundation, Inc.
27921# This is free software; see the source for copying conditions.  There is NO
27922# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27923
27924# GNU Libtool is free software; you can redistribute it and/or modify
27925# it under the terms of the GNU General Public License as published by
27926# the Free Software Foundation; either version 2 of of the License, or
27927# (at your option) any later version.
27928#
27929# As a special exception to the GNU General Public License, if you
27930# distribute this file as part of a program or library that is built
27931# using GNU Libtool, you may include this file under the  same
27932# distribution terms that you use for the rest of that program.
27933#
27934# GNU Libtool is distributed in the hope that it will be useful, but
27935# WITHOUT ANY WARRANTY; without even the implied warranty of
27936# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27937# GNU General Public License for more details.
27938#
27939# You should have received a copy of the GNU General Public License
27940# along with this program.  If not, see <http://www.gnu.org/licenses/>.
27941
27942
27943# The names of the tagged configurations supported by this script.
27944available_tags='CXX '
27945
27946# Configured defaults for sys_lib_dlsearch_path munging.
27947: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27948
27949# ### BEGIN LIBTOOL CONFIG
27950
27951# Which release of libtool.m4 was used?
27952macro_version=$macro_version
27953macro_revision=$macro_revision
27954
27955# Whether or not to build shared libraries.
27956build_libtool_libs=$enable_shared
27957
27958# Whether or not to build static libraries.
27959build_old_libs=$enable_static
27960
27961# What type of objects to build.
27962pic_mode=$pic_mode
27963
27964# Whether or not to optimize for fast installation.
27965fast_install=$enable_fast_install
27966
27967# Shared archive member basename,for filename based shared library versioning on AIX.
27968shared_archive_member_spec=$shared_archive_member_spec
27969
27970# Shell to use when invoking shell scripts.
27971SHELL=$lt_SHELL
27972
27973# An echo program that protects backslashes.
27974ECHO=$lt_ECHO
27975
27976# The PATH separator for the build system.
27977PATH_SEPARATOR=$lt_PATH_SEPARATOR
27978
27979# The host system.
27980host_alias=$host_alias
27981host=$host
27982host_os=$host_os
27983
27984# The build system.
27985build_alias=$build_alias
27986build=$build
27987build_os=$build_os
27988
27989# A sed program that does not truncate output.
27990SED=$lt_SED
27991
27992# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27993Xsed="\$SED -e 1s/^X//"
27994
27995# A grep program that handles long lines.
27996GREP=$lt_GREP
27997
27998# An ERE matcher.
27999EGREP=$lt_EGREP
28000
28001# A literal string matcher.
28002FGREP=$lt_FGREP
28003
28004# A BSD- or MS-compatible name lister.
28005NM=$lt_NM
28006
28007# Whether we need soft or hard links.
28008LN_S=$lt_LN_S
28009
28010# What is the maximum length of a command?
28011max_cmd_len=$max_cmd_len
28012
28013# Object file suffix (normally "o").
28014objext=$ac_objext
28015
28016# Executable file suffix (normally "").
28017exeext=$exeext
28018
28019# whether the shell understands "unset".
28020lt_unset=$lt_unset
28021
28022# turn spaces into newlines.
28023SP2NL=$lt_lt_SP2NL
28024
28025# turn newlines into spaces.
28026NL2SP=$lt_lt_NL2SP
28027
28028# convert \$build file names to \$host format.
28029to_host_file_cmd=$lt_cv_to_host_file_cmd
28030
28031# convert \$build files to toolchain format.
28032to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28033
28034# An object symbol dumper.
28035OBJDUMP=$lt_OBJDUMP
28036
28037# Method to check whether dependent libraries are shared objects.
28038deplibs_check_method=$lt_deplibs_check_method
28039
28040# Command to use when deplibs_check_method = "file_magic".
28041file_magic_cmd=$lt_file_magic_cmd
28042
28043# How to find potential files when deplibs_check_method = "file_magic".
28044file_magic_glob=$lt_file_magic_glob
28045
28046# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28047want_nocaseglob=$lt_want_nocaseglob
28048
28049# DLL creation program.
28050DLLTOOL=$lt_DLLTOOL
28051
28052# Command to associate shared and link libraries.
28053sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28054
28055# The archiver.
28056AR=$lt_AR
28057
28058# Flags to create an archive.
28059AR_FLAGS=$lt_AR_FLAGS
28060
28061# How to feed a file listing to the archiver.
28062archiver_list_spec=$lt_archiver_list_spec
28063
28064# A symbol stripping program.
28065STRIP=$lt_STRIP
28066
28067# Commands used to install an old-style archive.
28068RANLIB=$lt_RANLIB
28069old_postinstall_cmds=$lt_old_postinstall_cmds
28070old_postuninstall_cmds=$lt_old_postuninstall_cmds
28071
28072# Whether to use a lock for old archive extraction.
28073lock_old_archive_extraction=$lock_old_archive_extraction
28074
28075# A C compiler.
28076LTCC=$lt_CC
28077
28078# LTCC compiler flags.
28079LTCFLAGS=$lt_CFLAGS
28080
28081# Take the output of nm and produce a listing of raw symbols and C names.
28082global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28083
28084# Transform the output of nm in a proper C declaration.
28085global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28086
28087# Transform the output of nm into a list of symbols to manually relocate.
28088global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28089
28090# Transform the output of nm in a C name address pair.
28091global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28092
28093# Transform the output of nm in a C name address pair when lib prefix is needed.
28094global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28095
28096# The name lister interface.
28097nm_interface=$lt_lt_cv_nm_interface
28098
28099# Specify filename containing input files for \$NM.
28100nm_file_list_spec=$lt_nm_file_list_spec
28101
28102# The root where to search for dependent libraries,and where our libraries should be installed.
28103lt_sysroot=$lt_sysroot
28104
28105# Command to truncate a binary pipe.
28106lt_truncate_bin=$lt_lt_cv_truncate_bin
28107
28108# The name of the directory that contains temporary libtool files.
28109objdir=$objdir
28110
28111# Used to examine libraries when file_magic_cmd begins with "file".
28112MAGIC_CMD=$MAGIC_CMD
28113
28114# Must we lock files when doing compilation?
28115need_locks=$lt_need_locks
28116
28117# Manifest tool.
28118MANIFEST_TOOL=$lt_MANIFEST_TOOL
28119
28120# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28121DSYMUTIL=$lt_DSYMUTIL
28122
28123# Tool to change global to local symbols on Mac OS X.
28124NMEDIT=$lt_NMEDIT
28125
28126# Tool to manipulate fat objects and archives on Mac OS X.
28127LIPO=$lt_LIPO
28128
28129# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28130OTOOL=$lt_OTOOL
28131
28132# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28133OTOOL64=$lt_OTOOL64
28134
28135# Old archive suffix (normally "a").
28136libext=$libext
28137
28138# Shared library suffix (normally ".so").
28139shrext_cmds=$lt_shrext_cmds
28140
28141# The commands to extract the exported symbol list from a shared archive.
28142extract_expsyms_cmds=$lt_extract_expsyms_cmds
28143
28144# Variables whose values should be saved in libtool wrapper scripts and
28145# restored at link time.
28146variables_saved_for_relink=$lt_variables_saved_for_relink
28147
28148# Do we need the "lib" prefix for modules?
28149need_lib_prefix=$need_lib_prefix
28150
28151# Do we need a version for libraries?
28152need_version=$need_version
28153
28154# Library versioning type.
28155version_type=$version_type
28156
28157# Shared library runtime path variable.
28158runpath_var=$runpath_var
28159
28160# Shared library path variable.
28161shlibpath_var=$shlibpath_var
28162
28163# Is shlibpath searched before the hard-coded library search path?
28164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28165
28166# Format of library name prefix.
28167libname_spec=$lt_libname_spec
28168
28169# List of archive names.  First name is the real one, the rest are links.
28170# The last name is the one that the linker finds with -lNAME
28171library_names_spec=$lt_library_names_spec
28172
28173# The coded name of the library, if different from the real name.
28174soname_spec=$lt_soname_spec
28175
28176# Permission mode override for installation of shared libraries.
28177install_override_mode=$lt_install_override_mode
28178
28179# Command to use after installation of a shared archive.
28180postinstall_cmds=$lt_postinstall_cmds
28181
28182# Command to use after uninstallation of a shared archive.
28183postuninstall_cmds=$lt_postuninstall_cmds
28184
28185# Commands used to finish a libtool library installation in a directory.
28186finish_cmds=$lt_finish_cmds
28187
28188# As "finish_cmds", except a single script fragment to be evaled but
28189# not shown.
28190finish_eval=$lt_finish_eval
28191
28192# Whether we should hardcode library paths into libraries.
28193hardcode_into_libs=$hardcode_into_libs
28194
28195# Compile-time system search path for libraries.
28196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28197
28198# Detected run-time system search path for libraries.
28199sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28200
28201# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28202configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28203
28204# Whether dlopen is supported.
28205dlopen_support=$enable_dlopen
28206
28207# Whether dlopen of programs is supported.
28208dlopen_self=$enable_dlopen_self
28209
28210# Whether dlopen of statically linked programs is supported.
28211dlopen_self_static=$enable_dlopen_self_static
28212
28213# Commands to strip libraries.
28214old_striplib=$lt_old_striplib
28215striplib=$lt_striplib
28216
28217
28218# The linker used to build libraries.
28219LD=$lt_LD
28220
28221# How to create reloadable object files.
28222reload_flag=$lt_reload_flag
28223reload_cmds=$lt_reload_cmds
28224
28225# Commands used to build an old-style archive.
28226old_archive_cmds=$lt_old_archive_cmds
28227
28228# A language specific compiler.
28229CC=$lt_compiler
28230
28231# Is the compiler the GNU compiler?
28232with_gcc=$GCC
28233
28234# Compiler flag to turn off builtin functions.
28235no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28236
28237# Additional compiler flags for building library objects.
28238pic_flag=$lt_lt_prog_compiler_pic
28239
28240# How to pass a linker flag through the compiler.
28241wl=$lt_lt_prog_compiler_wl
28242
28243# Compiler flag to prevent dynamic linking.
28244link_static_flag=$lt_lt_prog_compiler_static
28245
28246# Does compiler simultaneously support -c and -o options?
28247compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28248
28249# Whether or not to add -lc for building shared libraries.
28250build_libtool_need_lc=$archive_cmds_need_lc
28251
28252# Whether or not to disallow shared libs when runtime libs are static.
28253allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28254
28255# Compiler flag to allow reflexive dlopens.
28256export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28257
28258# Compiler flag to generate shared objects directly from archives.
28259whole_archive_flag_spec=$lt_whole_archive_flag_spec
28260
28261# Whether the compiler copes with passing no objects directly.
28262compiler_needs_object=$lt_compiler_needs_object
28263
28264# Create an old-style archive from a shared archive.
28265old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28266
28267# Create a temporary old-style archive to link instead of a shared archive.
28268old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28269
28270# Commands used to build a shared archive.
28271archive_cmds=$lt_archive_cmds
28272archive_expsym_cmds=$lt_archive_expsym_cmds
28273
28274# Commands used to build a loadable module if different from building
28275# a shared archive.
28276module_cmds=$lt_module_cmds
28277module_expsym_cmds=$lt_module_expsym_cmds
28278
28279# Whether we are building with GNU ld or not.
28280with_gnu_ld=$lt_with_gnu_ld
28281
28282# Flag that allows shared libraries with undefined symbols to be built.
28283allow_undefined_flag=$lt_allow_undefined_flag
28284
28285# Flag that enforces no undefined symbols.
28286no_undefined_flag=$lt_no_undefined_flag
28287
28288# Flag to hardcode \$libdir into a binary during linking.
28289# This must work even if \$libdir does not exist
28290hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28291
28292# Whether we need a single "-rpath" flag with a separated argument.
28293hardcode_libdir_separator=$lt_hardcode_libdir_separator
28294
28295# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28296# DIR into the resulting binary.
28297hardcode_direct=$hardcode_direct
28298
28299# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28300# DIR into the resulting binary and the resulting library dependency is
28301# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28302# library is relocated.
28303hardcode_direct_absolute=$hardcode_direct_absolute
28304
28305# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28306# into the resulting binary.
28307hardcode_minus_L=$hardcode_minus_L
28308
28309# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28310# into the resulting binary.
28311hardcode_shlibpath_var=$hardcode_shlibpath_var
28312
28313# Set to "yes" if building a shared library automatically hardcodes DIR
28314# into the library and all subsequent libraries and executables linked
28315# against it.
28316hardcode_automatic=$hardcode_automatic
28317
28318# Set to yes if linker adds runtime paths of dependent libraries
28319# to runtime path list.
28320inherit_rpath=$inherit_rpath
28321
28322# Whether libtool must link a program against all its dependency libraries.
28323link_all_deplibs=$link_all_deplibs
28324
28325# Set to "yes" if exported symbols are required.
28326always_export_symbols=$always_export_symbols
28327
28328# The commands to list exported symbols.
28329export_symbols_cmds=$lt_export_symbols_cmds
28330
28331# Symbols that should not be listed in the preloaded symbols.
28332exclude_expsyms=$lt_exclude_expsyms
28333
28334# Symbols that must always be exported.
28335include_expsyms=$lt_include_expsyms
28336
28337# Commands necessary for linking programs (against libraries) with templates.
28338prelink_cmds=$lt_prelink_cmds
28339
28340# Commands necessary for finishing linking programs.
28341postlink_cmds=$lt_postlink_cmds
28342
28343# Specify filename containing input files.
28344file_list_spec=$lt_file_list_spec
28345
28346# How to hardcode a shared library path into an executable.
28347hardcode_action=$hardcode_action
28348
28349# The directories searched by this compiler when creating a shared library.
28350compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28351
28352# Dependencies to place before and after the objects being linked to
28353# create a shared library.
28354predep_objects=$lt_predep_objects
28355postdep_objects=$lt_postdep_objects
28356predeps=$lt_predeps
28357postdeps=$lt_postdeps
28358
28359# The library search path used internally by the compiler when linking
28360# a shared library.
28361compiler_lib_search_path=$lt_compiler_lib_search_path
28362
28363# ### END LIBTOOL CONFIG
28364
28365_LT_EOF
28366
28367    cat <<'_LT_EOF' >> "$cfgfile"
28368
28369# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28370
28371# func_munge_path_list VARIABLE PATH
28372# -----------------------------------
28373# VARIABLE is name of variable containing _space_ separated list of
28374# directories to be munged by the contents of PATH, which is string
28375# having a format:
28376# "DIR[:DIR]:"
28377#       string "DIR[ DIR]" will be prepended to VARIABLE
28378# ":DIR[:DIR]"
28379#       string "DIR[ DIR]" will be appended to VARIABLE
28380# "DIRP[:DIRP]::[DIRA:]DIRA"
28381#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28382#       "DIRA[ DIRA]" will be appended to VARIABLE
28383# "DIR[:DIR]"
28384#       VARIABLE will be replaced by "DIR[ DIR]"
28385func_munge_path_list ()
28386{
28387    case x$2 in
28388    x)
28389        ;;
28390    *:)
28391        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28392        ;;
28393    x:*)
28394        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28395        ;;
28396    *::*)
28397        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28398        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28399        ;;
28400    *)
28401        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28402        ;;
28403    esac
28404}
28405
28406
28407# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
28408func_cc_basename ()
28409{
28410    for cc_temp in $*""; do
28411      case $cc_temp in
28412        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28413        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28414        \-*) ;;
28415        *) break;;
28416      esac
28417    done
28418    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28419}
28420
28421
28422# ### END FUNCTIONS SHARED WITH CONFIGURE
28423
28424_LT_EOF
28425
28426  case $host_os in
28427  aix3*)
28428    cat <<\_LT_EOF >> "$cfgfile"
28429# AIX sometimes has problems with the GCC collect2 program.  For some
28430# reason, if we set the COLLECT_NAMES environment variable, the problems
28431# vanish in a puff of smoke.
28432if test set != "${COLLECT_NAMES+set}"; then
28433  COLLECT_NAMES=
28434  export COLLECT_NAMES
28435fi
28436_LT_EOF
28437    ;;
28438  esac
28439
28440
28441ltmain=$ac_aux_dir/ltmain.sh
28442
28443
28444  # We use sed instead of cat because bash on DJGPP gets confused if
28445  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28446  # text mode, it properly converts lines to CR/LF.  This bash problem
28447  # is reportedly fixed, but why not run on old versions too?
28448  sed '$q' "$ltmain" >> "$cfgfile" \
28449     || (rm -f "$cfgfile"; exit 1)
28450
28451   mv -f "$cfgfile" "$ofile" ||
28452    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28453  chmod +x "$ofile"
28454
28455
28456    cat <<_LT_EOF >> "$ofile"
28457
28458# ### BEGIN LIBTOOL TAG CONFIG: CXX
28459
28460# The linker used to build libraries.
28461LD=$lt_LD_CXX
28462
28463# How to create reloadable object files.
28464reload_flag=$lt_reload_flag_CXX
28465reload_cmds=$lt_reload_cmds_CXX
28466
28467# Commands used to build an old-style archive.
28468old_archive_cmds=$lt_old_archive_cmds_CXX
28469
28470# A language specific compiler.
28471CC=$lt_compiler_CXX
28472
28473# Is the compiler the GNU compiler?
28474with_gcc=$GCC_CXX
28475
28476# Compiler flag to turn off builtin functions.
28477no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28478
28479# Additional compiler flags for building library objects.
28480pic_flag=$lt_lt_prog_compiler_pic_CXX
28481
28482# How to pass a linker flag through the compiler.
28483wl=$lt_lt_prog_compiler_wl_CXX
28484
28485# Compiler flag to prevent dynamic linking.
28486link_static_flag=$lt_lt_prog_compiler_static_CXX
28487
28488# Does compiler simultaneously support -c and -o options?
28489compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28490
28491# Whether or not to add -lc for building shared libraries.
28492build_libtool_need_lc=$archive_cmds_need_lc_CXX
28493
28494# Whether or not to disallow shared libs when runtime libs are static.
28495allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28496
28497# Compiler flag to allow reflexive dlopens.
28498export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28499
28500# Compiler flag to generate shared objects directly from archives.
28501whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28502
28503# Whether the compiler copes with passing no objects directly.
28504compiler_needs_object=$lt_compiler_needs_object_CXX
28505
28506# Create an old-style archive from a shared archive.
28507old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28508
28509# Create a temporary old-style archive to link instead of a shared archive.
28510old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28511
28512# Commands used to build a shared archive.
28513archive_cmds=$lt_archive_cmds_CXX
28514archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28515
28516# Commands used to build a loadable module if different from building
28517# a shared archive.
28518module_cmds=$lt_module_cmds_CXX
28519module_expsym_cmds=$lt_module_expsym_cmds_CXX
28520
28521# Whether we are building with GNU ld or not.
28522with_gnu_ld=$lt_with_gnu_ld_CXX
28523
28524# Flag that allows shared libraries with undefined symbols to be built.
28525allow_undefined_flag=$lt_allow_undefined_flag_CXX
28526
28527# Flag that enforces no undefined symbols.
28528no_undefined_flag=$lt_no_undefined_flag_CXX
28529
28530# Flag to hardcode \$libdir into a binary during linking.
28531# This must work even if \$libdir does not exist
28532hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28533
28534# Whether we need a single "-rpath" flag with a separated argument.
28535hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28536
28537# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28538# DIR into the resulting binary.
28539hardcode_direct=$hardcode_direct_CXX
28540
28541# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28542# DIR into the resulting binary and the resulting library dependency is
28543# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28544# library is relocated.
28545hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28546
28547# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28548# into the resulting binary.
28549hardcode_minus_L=$hardcode_minus_L_CXX
28550
28551# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28552# into the resulting binary.
28553hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28554
28555# Set to "yes" if building a shared library automatically hardcodes DIR
28556# into the library and all subsequent libraries and executables linked
28557# against it.
28558hardcode_automatic=$hardcode_automatic_CXX
28559
28560# Set to yes if linker adds runtime paths of dependent libraries
28561# to runtime path list.
28562inherit_rpath=$inherit_rpath_CXX
28563
28564# Whether libtool must link a program against all its dependency libraries.
28565link_all_deplibs=$link_all_deplibs_CXX
28566
28567# Set to "yes" if exported symbols are required.
28568always_export_symbols=$always_export_symbols_CXX
28569
28570# The commands to list exported symbols.
28571export_symbols_cmds=$lt_export_symbols_cmds_CXX
28572
28573# Symbols that should not be listed in the preloaded symbols.
28574exclude_expsyms=$lt_exclude_expsyms_CXX
28575
28576# Symbols that must always be exported.
28577include_expsyms=$lt_include_expsyms_CXX
28578
28579# Commands necessary for linking programs (against libraries) with templates.
28580prelink_cmds=$lt_prelink_cmds_CXX
28581
28582# Commands necessary for finishing linking programs.
28583postlink_cmds=$lt_postlink_cmds_CXX
28584
28585# Specify filename containing input files.
28586file_list_spec=$lt_file_list_spec_CXX
28587
28588# How to hardcode a shared library path into an executable.
28589hardcode_action=$hardcode_action_CXX
28590
28591# The directories searched by this compiler when creating a shared library.
28592compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28593
28594# Dependencies to place before and after the objects being linked to
28595# create a shared library.
28596predep_objects=$lt_predep_objects_CXX
28597postdep_objects=$lt_postdep_objects_CXX
28598predeps=$lt_predeps_CXX
28599postdeps=$lt_postdeps_CXX
28600
28601# The library search path used internally by the compiler when linking
28602# a shared library.
28603compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28604
28605# ### END LIBTOOL TAG CONFIG: CXX
28606_LT_EOF
28607
28608 ;;
28609    "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
28610                    $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
28611                    cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
28612                    rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
28613    "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
28614    "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
28615    "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
28616    "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
28617
28618  esac
28619done # for ac_tag
28620
28621
28622as_fn_exit 0
28623_ACEOF
28624ac_clean_files=$ac_clean_files_save
28625
28626test $ac_write_fail = 0 ||
28627  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28628
28629
28630# configure is writing to config.log, and then calls config.status.
28631# config.status does its own redirection, appending to config.log.
28632# Unfortunately, on DOS this fails, as config.log is still kept open
28633# by configure, so config.status won't be able to write to it; its
28634# output is simply discarded.  So we exec the FD to /dev/null,
28635# effectively closing config.log, so it can be properly (re)opened and
28636# appended to by config.status.  When coming back to configure, we
28637# need to make the FD available again.
28638if test "$no_create" != yes; then
28639  ac_cs_success=:
28640  ac_config_status_args=
28641  test "$silent" = yes &&
28642    ac_config_status_args="$ac_config_status_args --quiet"
28643  exec 5>/dev/null
28644  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28645  exec 5>>config.log
28646  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28647  # would make configure fail if this is the last instruction.
28648  $ac_cs_success || as_fn_exit 1
28649fi
28650if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28651  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28652$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28653fi
28654
28655
28656# ==== Print final messages to user ==========================================
28657
28658
28659if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
28660  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
28661
28662
28663Berkeley DB 6 was found, but not used.  Please re-run configure (see
28664./config.nice) with the '--enable-bdb6' flag to use it,
28665or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
28666to silence this warning.
28667
28668Please note that some versions of Berkeley DB 6+ are under the GNU Affero
28669General Public License, version 3:
28670https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
28671
28672The AGPL-3.0 licence may impose special requirements for making available
28673source code of server-side software.  The text of the licence is:
28674https://www.gnu.org/licenses/agpl-3.0.html
28675http://opensource.org/licenses/AGPL-3.0
28676
28677The Berkeley DB backend to Subversion is deprecated; see
28678http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
28679
28680The Subversion developers have not tested Subversion with Berkeley DB 6 for
28681technical problems or bugs.
28682" >&5
28683$as_echo "$as_me: WARNING: We have configured without BDB filesystem support
28684
28685
28686Berkeley DB 6 was found, but not used.  Please re-run configure (see
28687./config.nice) with the '--enable-bdb6' flag to use it,
28688or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
28689to silence this warning.
28690
28691Please note that some versions of Berkeley DB 6+ are under the GNU Affero
28692General Public License, version 3:
28693https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
28694
28695The AGPL-3.0 licence may impose special requirements for making available
28696source code of server-side software.  The text of the licence is:
28697https://www.gnu.org/licenses/agpl-3.0.html
28698http://opensource.org/licenses/AGPL-3.0
28699
28700The Berkeley DB backend to Subversion is deprecated; see
28701http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
28702
28703The Subversion developers have not tested Subversion with Berkeley DB 6 for
28704technical problems or bugs.
28705" >&2;}
28706fi
28707