]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/subversion/configure
MFC r257129,257936,258084,258569,258602,262250,262251
[FreeBSD/stable/10.git] / contrib / subversion / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for subversion 1.8.8.
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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   }
81 fi
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export 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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -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
201 test \$(( 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
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
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
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
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
244 fi; }
245 IFS=$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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
268 fi
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
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_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.
316 as_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.
326 as_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.
374 as_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.
384 if (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   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # 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.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # 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.
419 as_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
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_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.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_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
511 ECHO_C= ECHO_N= ECHO_T=
512 case `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';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (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
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_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.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 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.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='subversion'
592 PACKAGE_TARNAME='subversion'
593 PACKAGE_VERSION='1.8.8'
594 PACKAGE_STRING='subversion 1.8.8'
595 PACKAGE_BUGREPORT='http://subversion.apache.org/'
596 PACKAGE_URL=''
597
598 ac_unique_file="subversion/include/svn_types.h"
599 # Factoring default headers for most tests.
600 ac_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
635 ac_subst_vars='LTLIBOBJS
636 SVN_CONFIG_SCRIPT_FILES
637 INCLUDE_OUTPUTS
638 SWIG_CPPFLAGS
639 JAVAHL_COMPAT_TESTS_TARGET
640 JAVAHL_TESTS_TARGET
641 JAVA_CLASSPATH
642 LT_CXX_LIBADD
643 FIX_JAVAHL_LIB
644 JAVAHL_OBJDIR
645 INSTALL_EXTRA_JAVAHL_LIB
646 SVN_FS_LIB_LINK
647 SVN_FS_LIB_INSTALL_DEPS
648 SVN_FS_LIB_DEPS
649 SVN_RA_LIB_LINK
650 SVN_RA_LIB_INSTALL_DEPS
651 SVN_RA_LIB_DEPS
652 CTYPESGEN
653 SWIG_RB_TEST_VERBOSE
654 SWIG_RB_SITE_ARCH_DIR
655 SWIG_RB_SITE_LIB_DIR
656 SWIG_RB_COMPILE
657 SWIG_RB_INCLUDES
658 SWIG_RB_LIBS
659 SWIG_RB_LINK
660 SWIG_PL_INCLUDES
661 SWIG_PY_LIBS
662 SWIG_PY_LINK
663 SWIG_PY_COMPILE
664 SWIG_PY_INCLUDES
665 SWIG
666 RUBY_TEENY
667 RUBY_MINOR
668 RUBY_MAJOR
669 RDOC
670 RUBY
671 PERL
672 JNI_INCLUDES
673 JAR
674 JAVAH
675 JAVADOC
676 JAVAC_FLAGS
677 JAVAC
678 JAVA
679 JDK
680 PYTHON
681 MOD_ACTIVATION
682 SVN_ZLIB_LIBS
683 SVN_ZLIB_INCLUDES
684 libsvn_wc_LDFLAGS
685 libsvn_subr_LDFLAGS
686 libsvn_repos_LDFLAGS
687 libsvn_ra_svn_LDFLAGS
688 libsvn_ra_serf_LDFLAGS
689 libsvn_ra_local_LDFLAGS
690 libsvn_ra_LDFLAGS
691 libsvn_fs_util_LDFLAGS
692 libsvn_fs_fs_LDFLAGS
693 libsvn_fs_base_LDFLAGS
694 libsvn_fs_LDFLAGS
695 libsvn_diff_LDFLAGS
696 libsvn_delta_LDFLAGS
697 libsvn_client_LDFLAGS
698 libsvn_auth_kwallet_LDFLAGS
699 libsvn_auth_gnome_keyring_LDFLAGS
700 LIBOBJS
701 BDB_TEST_PROGRAMS
702 BDB_TEST_DEPS
703 INSTALL_RULES
704 INSTALL_STATIC_RULES
705 BUILD_RULES
706 SVN_KWALLET_LIBS
707 SVN_KWALLET_INCLUDES
708 KDE4_CONFIG
709 SVN_MAGIC_LIBS
710 SVN_MAGIC_INCLUDES
711 MSGFMTFLAGS
712 NO_GETTEXT_CODESET
713 GETTEXT_CODESET
714 XGETTEXT
715 MSGMERGE
716 MSGFMT
717 SVN_GNOME_KEYRING_LIBS
718 SVN_GNOME_KEYRING_INCLUDES
719 SVN_HAVE_GPG_AGENT
720 SVN_SASL_LIBS
721 SVN_SASL_INCLUDES
722 SVN_DB_LIBS
723 SVN_DB_INCLUDES
724 SVN_XML_LIBS
725 SVN_XML_INCLUDES
726 DOXYGEN
727 TRANG
728 LT_NO_UNDEFINED
729 TRANSFORM_LIBTOOL_SCRIPTS
730 LT_LDFLAGS
731 LT_CFLAGS
732 SVN_LIBTOOL
733 CXXCPP
734 OTOOL64
735 OTOOL
736 LIPO
737 NMEDIT
738 DSYMUTIL
739 MANIFEST_TOOL
740 AWK
741 RANLIB
742 STRIP
743 ac_ct_AR
744 AR
745 DLLTOOL
746 OBJDUMP
747 NM
748 ac_ct_DUMPBIN
749 DUMPBIN
750 LD
751 FGREP
752 LIBTOOL
753 SVN_BINDIR
754 SVN_SQLITE_LIBS
755 SVN_SQLITE_INCLUDES
756 INSTALL_APACHE_MODS
757 APACHE_LIBEXECDIR
758 APACHE_INCLUDES
759 APACHE_LDFLAGS
760 APXS
761 SVN_APR_MEMCACHE_LIBS
762 SVN_APR_MEMCACHE_INCLUDES
763 SVN_SERF_LIBS
764 SVN_SERF_INCLUDES
765 PKG_CONFIG
766 SVN_LT_SOVERSION
767 SVN_APRUTIL_LIBS
768 SVN_APRUTIL_CONFIG
769 SVN_APRUTIL_INCLUDES
770 SVN_APR_SHLIB_PATH_VAR
771 SVN_APR_LIBS
772 SVN_APR_INCLUDES
773 SVN_APR_CONFIG
774 MKDIR
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 LN_S
779 EGREP
780 GREP
781 target_os
782 target_vendor
783 target_cpu
784 target
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 SED
794 CPP
795 CXXMAINTAINERFLAGS
796 CXXMODEFLAGS
797 ac_ct_CXX
798 CXXFLAGS
799 CXX
800 CMAINTAINERFLAGS
801 CMODEFLAGS
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
808 CC
809 SWIG_LDFLAGS
810 canonicalized_srcdir
811 abs_builddir
812 abs_srcdir
813 target_alias
814 host_alias
815 build_alias
816 LIBS
817 ECHO_T
818 ECHO_N
819 ECHO_C
820 DEFS
821 mandir
822 localedir
823 libdir
824 psdir
825 pdfdir
826 dvidir
827 htmldir
828 infodir
829 docdir
830 oldincludedir
831 includedir
832 localstatedir
833 sharedstatedir
834 sysconfdir
835 datadir
836 datarootdir
837 libexecdir
838 sbindir
839 bindir
840 program_transform_name
841 prefix
842 exec_prefix
843 PACKAGE_URL
844 PACKAGE_BUGREPORT
845 PACKAGE_STRING
846 PACKAGE_VERSION
847 PACKAGE_TARNAME
848 PACKAGE_NAME
849 PATH_SEPARATOR
850 SHELL'
851 ac_subst_files=''
852 ac_user_opts='
853 enable_option_checking
854 with_apr
855 with_apr_util
856 with_serf
857 with_apr_memcache
858 with_apxs
859 with_apache_libexecdir
860 with_sqlite
861 enable_sqlite_compatibility_version
862 enable_shared
863 enable_static
864 with_pic
865 enable_fast_install
866 with_gnu_ld
867 with_sysroot
868 enable_libtool_lock
869 enable_experimental_libtool
870 enable_all_static
871 enable_local_library_preloading
872 with_trang
873 with_doxygen
874 with_expat
875 with_berkeley_db
876 enable_bdb6
877 with_sasl
878 enable_keychain
879 with_gpg_agent
880 with_gnome_keyring
881 enable_ev2_impl
882 enable_nls
883 with_libmagic
884 with_kwallet
885 enable_plaintext_password_storage
886 with_openssl
887 enable_debug
888 enable_optimize
889 enable_disallowing_of_undefined_references
890 enable_maintainer_mode
891 enable_full_version_match
892 with_editor
893 with_zlib
894 enable_mod_activation
895 enable_gcov
896 enable_gprof
897 with_jdk
898 with_jikes
899 with_swig
900 with_ruby_sitedir
901 with_ruby_test_verbose
902 with_ctypesgen
903 enable_runtime_module_search
904 enable_javahl
905 with_junit
906 '
907       ac_precious_vars='build_alias
908 host_alias
909 target_alias
910 CC
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
915 CXX
916 CXXFLAGS
917 CCC
918 CPP
919 CXXCPP'
920
921
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
943
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
969
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974   # If the previous option needs an argument, assign it.
975   if test -n "$ac_prev"; then
976     eval $ac_prev=\$ac_option
977     ac_prev=
978     continue
979   fi
980
981   case $ac_option in
982   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983   *=)   ac_optarg= ;;
984   *)    ac_optarg=yes ;;
985   esac
986
987   # Accept the important Cygnus configure options, so we can diagnose typos.
988
989   case $ac_dashdash$ac_option in
990   --)
991     ac_dashdash=yes ;;
992
993   -bindir | --bindir | --bindi | --bind | --bin | --bi)
994     ac_prev=bindir ;;
995   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996     bindir=$ac_optarg ;;
997
998   -build | --build | --buil | --bui | --bu)
999     ac_prev=build_alias ;;
1000   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001     build_alias=$ac_optarg ;;
1002
1003   -cache-file | --cache-file | --cache-fil | --cache-fi \
1004   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005     ac_prev=cache_file ;;
1006   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008     cache_file=$ac_optarg ;;
1009
1010   --config-cache | -C)
1011     cache_file=config.cache ;;
1012
1013   -datadir | --datadir | --datadi | --datad)
1014     ac_prev=datadir ;;
1015   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016     datadir=$ac_optarg ;;
1017
1018   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019   | --dataroo | --dataro | --datar)
1020     ac_prev=datarootdir ;;
1021   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023     datarootdir=$ac_optarg ;;
1024
1025   -disable-* | --disable-*)
1026     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027     # Reject names that are not valid shell variable names.
1028     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029       as_fn_error $? "invalid feature name: $ac_useropt"
1030     ac_useropt_orig=$ac_useropt
1031     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032     case $ac_user_opts in
1033       *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037          ac_unrecognized_sep=', ';;
1038     esac
1039     eval enable_$ac_useropt=no ;;
1040
1041   -docdir | --docdir | --docdi | --doc | --do)
1042     ac_prev=docdir ;;
1043   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044     docdir=$ac_optarg ;;
1045
1046   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047     ac_prev=dvidir ;;
1048   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049     dvidir=$ac_optarg ;;
1050
1051   -enable-* | --enable-*)
1052     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055       as_fn_error $? "invalid feature name: $ac_useropt"
1056     ac_useropt_orig=$ac_useropt
1057     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058     case $ac_user_opts in
1059       *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063          ac_unrecognized_sep=', ';;
1064     esac
1065     eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069   | --exec | --exe | --ex)
1070     ac_prev=exec_prefix ;;
1071   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073   | --exec=* | --exe=* | --ex=*)
1074     exec_prefix=$ac_optarg ;;
1075
1076   -gas | --gas | --ga | --g)
1077     # Obsolete; use --with-gas.
1078     with_gas=yes ;;
1079
1080   -help | --help | --hel | --he | -h)
1081     ac_init_help=long ;;
1082   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083     ac_init_help=recursive ;;
1084   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085     ac_init_help=short ;;
1086
1087   -host | --host | --hos | --ho)
1088     ac_prev=host_alias ;;
1089   -host=* | --host=* | --hos=* | --ho=*)
1090     host_alias=$ac_optarg ;;
1091
1092   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093     ac_prev=htmldir ;;
1094   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095   | --ht=*)
1096     htmldir=$ac_optarg ;;
1097
1098   -includedir | --includedir | --includedi | --included | --include \
1099   | --includ | --inclu | --incl | --inc)
1100     ac_prev=includedir ;;
1101   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102   | --includ=* | --inclu=* | --incl=* | --inc=*)
1103     includedir=$ac_optarg ;;
1104
1105   -infodir | --infodir | --infodi | --infod | --info | --inf)
1106     ac_prev=infodir ;;
1107   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108     infodir=$ac_optarg ;;
1109
1110   -libdir | --libdir | --libdi | --libd)
1111     ac_prev=libdir ;;
1112   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113     libdir=$ac_optarg ;;
1114
1115   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116   | --libexe | --libex | --libe)
1117     ac_prev=libexecdir ;;
1118   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119   | --libexe=* | --libex=* | --libe=*)
1120     libexecdir=$ac_optarg ;;
1121
1122   -localedir | --localedir | --localedi | --localed | --locale)
1123     ac_prev=localedir ;;
1124   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125     localedir=$ac_optarg ;;
1126
1127   -localstatedir | --localstatedir | --localstatedi | --localstated \
1128   | --localstate | --localstat | --localsta | --localst | --locals)
1129     ac_prev=localstatedir ;;
1130   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132     localstatedir=$ac_optarg ;;
1133
1134   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135     ac_prev=mandir ;;
1136   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137     mandir=$ac_optarg ;;
1138
1139   -nfp | --nfp | --nf)
1140     # Obsolete; use --without-fp.
1141     with_fp=no ;;
1142
1143   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144   | --no-cr | --no-c | -n)
1145     no_create=yes ;;
1146
1147   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149     no_recursion=yes ;;
1150
1151   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153   | --oldin | --oldi | --old | --ol | --o)
1154     ac_prev=oldincludedir ;;
1155   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158     oldincludedir=$ac_optarg ;;
1159
1160   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161     ac_prev=prefix ;;
1162   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163     prefix=$ac_optarg ;;
1164
1165   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166   | --program-pre | --program-pr | --program-p)
1167     ac_prev=program_prefix ;;
1168   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170     program_prefix=$ac_optarg ;;
1171
1172   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173   | --program-suf | --program-su | --program-s)
1174     ac_prev=program_suffix ;;
1175   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177     program_suffix=$ac_optarg ;;
1178
1179   -program-transform-name | --program-transform-name \
1180   | --program-transform-nam | --program-transform-na \
1181   | --program-transform-n | --program-transform- \
1182   | --program-transform | --program-transfor \
1183   | --program-transfo | --program-transf \
1184   | --program-trans | --program-tran \
1185   | --progr-tra | --program-tr | --program-t)
1186     ac_prev=program_transform_name ;;
1187   -program-transform-name=* | --program-transform-name=* \
1188   | --program-transform-nam=* | --program-transform-na=* \
1189   | --program-transform-n=* | --program-transform-=* \
1190   | --program-transform=* | --program-transfor=* \
1191   | --program-transfo=* | --program-transf=* \
1192   | --program-trans=* | --program-tran=* \
1193   | --progr-tra=* | --program-tr=* | --program-t=*)
1194     program_transform_name=$ac_optarg ;;
1195
1196   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197     ac_prev=pdfdir ;;
1198   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199     pdfdir=$ac_optarg ;;
1200
1201   -psdir | --psdir | --psdi | --psd | --ps)
1202     ac_prev=psdir ;;
1203   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204     psdir=$ac_optarg ;;
1205
1206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207   | -silent | --silent | --silen | --sile | --sil)
1208     silent=yes ;;
1209
1210   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211     ac_prev=sbindir ;;
1212   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213   | --sbi=* | --sb=*)
1214     sbindir=$ac_optarg ;;
1215
1216   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218   | --sharedst | --shareds | --shared | --share | --shar \
1219   | --sha | --sh)
1220     ac_prev=sharedstatedir ;;
1221   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224   | --sha=* | --sh=*)
1225     sharedstatedir=$ac_optarg ;;
1226
1227   -site | --site | --sit)
1228     ac_prev=site ;;
1229   -site=* | --site=* | --sit=*)
1230     site=$ac_optarg ;;
1231
1232   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233     ac_prev=srcdir ;;
1234   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235     srcdir=$ac_optarg ;;
1236
1237   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238   | --syscon | --sysco | --sysc | --sys | --sy)
1239     ac_prev=sysconfdir ;;
1240   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242     sysconfdir=$ac_optarg ;;
1243
1244   -target | --target | --targe | --targ | --tar | --ta | --t)
1245     ac_prev=target_alias ;;
1246   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247     target_alias=$ac_optarg ;;
1248
1249   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250     verbose=yes ;;
1251
1252   -version | --version | --versio | --versi | --vers | -V)
1253     ac_init_version=: ;;
1254
1255   -with-* | --with-*)
1256     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259       as_fn_error $? "invalid package name: $ac_useropt"
1260     ac_useropt_orig=$ac_useropt
1261     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262     case $ac_user_opts in
1263       *"
1264 "with_$ac_useropt"
1265 "*) ;;
1266       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267          ac_unrecognized_sep=', ';;
1268     esac
1269     eval with_$ac_useropt=\$ac_optarg ;;
1270
1271   -without-* | --without-*)
1272     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275       as_fn_error $? "invalid package name: $ac_useropt"
1276     ac_useropt_orig=$ac_useropt
1277     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278     case $ac_user_opts in
1279       *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283          ac_unrecognized_sep=', ';;
1284     esac
1285     eval with_$ac_useropt=no ;;
1286
1287   --x)
1288     # Obsolete; use --with-x.
1289     with_x=yes ;;
1290
1291   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292   | --x-incl | --x-inc | --x-in | --x-i)
1293     ac_prev=x_includes ;;
1294   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296     x_includes=$ac_optarg ;;
1297
1298   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300     ac_prev=x_libraries ;;
1301   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303     x_libraries=$ac_optarg ;;
1304
1305   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1307     ;;
1308
1309   *=*)
1310     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311     # Reject names that are not valid shell variable names.
1312     case $ac_envvar in #(
1313       '' | [0-9]* | *[!_$as_cr_alnum]* )
1314       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315     esac
1316     eval $ac_envvar=\$ac_optarg
1317     export $ac_envvar ;;
1318
1319   *)
1320     # FIXME: should be removed in autoconf 3.0.
1321     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325     ;;
1326
1327   esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332   as_fn_error $? "missing argument to $ac_option"
1333 fi
1334
1335 if test -n "$ac_unrecognized_opts"; then
1336   case $enable_option_checking in
1337     no) ;;
1338     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340   esac
1341 fi
1342
1343 # Check all directory arguments for consistency.
1344 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345                 datadir sysconfdir sharedstatedir localstatedir includedir \
1346                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347                 libdir localedir mandir
1348 do
1349   eval ac_val=\$$ac_var
1350   # Remove trailing slashes.
1351   case $ac_val in
1352     */ )
1353       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354       eval $ac_var=\$ac_val;;
1355   esac
1356   # Be sure to have absolute directory names.
1357   case $ac_val in
1358     [\\/$]* | ?:[\\/]* )  continue;;
1359     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360   esac
1361   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 done
1363
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1370
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373   if test "x$build_alias" = x; then
1374     cross_compiling=maybe
1375   elif test "x$build_alias" != "x$host_alias"; then
1376     cross_compiling=yes
1377   fi
1378 fi
1379
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383 test "$silent" = yes && exec 6>/dev/null
1384
1385
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389   as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391   as_fn_error $? "pwd does not report name of working directory"
1392
1393
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396   ac_srcdir_defaulted=yes
1397   # Try the directory containing this script, then the parent directory.
1398   ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400          X"$as_myself" : 'X\(//\)[^/]' \| \
1401          X"$as_myself" : 'X\(//\)$' \| \
1402          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)[^/].*/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\/\)$/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\).*/{
1417             s//\1/
1418             q
1419           }
1420           s/.*/./; q'`
1421   srcdir=$ac_confdir
1422   if test ! -r "$srcdir/$ac_unique_file"; then
1423     srcdir=..
1424   fi
1425 else
1426   ac_srcdir_defaulted=no
1427 fi
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431 fi
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435         pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438   srcdir=.
1439 fi
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_env_${ac_var}_value=\$${ac_var}
1449   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1452
1453 #
1454 # Report the --help message.
1455 #
1456 if test "$ac_init_help" = "long"; then
1457   # Omit some internal or obsolete options to make the list less imposing.
1458   # This message is too long to be a string in the A/UX 3.1 sh.
1459   cat <<_ACEOF
1460 \`configure' configures subversion 1.8.8 to adapt to many kinds of systems.
1461
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE.  See below for descriptions of some of the useful variables.
1466
1467 Defaults for the options are specified in brackets.
1468
1469 Configuration:
1470   -h, --help              display this help and exit
1471       --help=short        display options specific to this package
1472       --help=recursive    display the short help of all the included packages
1473   -V, --version           display version information and exit
1474   -q, --quiet, --silent   do not print \`checking ...' messages
1475       --cache-file=FILE   cache test results in FILE [disabled]
1476   -C, --config-cache      alias for \`--cache-file=config.cache'
1477   -n, --no-create         do not create output files
1478       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479
1480 Installation directories:
1481   --prefix=PREFIX         install architecture-independent files in PREFIX
1482                           [$ac_default_prefix]
1483   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1484                           [PREFIX]
1485
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1490
1491 For better control, use the options below.
1492
1493 Fine tuning of the installation directories:
1494   --bindir=DIR            user executables [EPREFIX/bin]
1495   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1496   --libexecdir=DIR        program executables [EPREFIX/libexec]
1497   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1498   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1499   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1500   --libdir=DIR            object code libraries [EPREFIX/lib]
1501   --includedir=DIR        C header files [PREFIX/include]
1502   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1503   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1504   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1505   --infodir=DIR           info documentation [DATAROOTDIR/info]
1506   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1507   --mandir=DIR            man documentation [DATAROOTDIR/man]
1508   --docdir=DIR            documentation root [DATAROOTDIR/doc/subversion]
1509   --htmldir=DIR           html documentation [DOCDIR]
1510   --dvidir=DIR            dvi documentation [DOCDIR]
1511   --pdfdir=DIR            pdf documentation [DOCDIR]
1512   --psdir=DIR             ps documentation [DOCDIR]
1513 _ACEOF
1514
1515   cat <<\_ACEOF
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520   --target=TARGET   configure for building compilers for TARGET [HOST]
1521 _ACEOF
1522 fi
1523
1524 if test -n "$ac_init_help"; then
1525   case $ac_init_help in
1526      short | recursive ) echo "Configuration of subversion 1.8.8:";;
1527    esac
1528   cat <<\_ACEOF
1529
1530 Optional Features:
1531   --disable-option-checking  ignore unrecognized --enable/--with options
1532   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534   --enable-sqlite-compatibility-version=X.Y.Z
1535                           Allow binary to run against SQLite as old as ARG
1536   --enable-shared[=PKGS]  build shared libraries [default=yes]
1537   --enable-static[=PKGS]  build static libraries [default=yes]
1538   --enable-fast-install[=PKGS]
1539                           optimize for fast installation [default=yes]
1540   --disable-libtool-lock  avoid locking (might break parallel builds)
1541   --enable-experimental-libtool
1542                           Use APR's libtool
1543   --enable-static         Build static libraries
1544   --enable-shared         Build shared libraries
1545   --enable-all-static     Build completely static (standalone) binaries.
1546   --enable-local-library-preloading
1547                           Enable preloading of locally built libraries in
1548                           locally built executables. This may be necessary for
1549                           testing prior to installation on some platforms. It
1550                           does not work on some platforms (Darwin, OpenBSD,
1551                           ...).
1552   --enable-bdb6           Allow building against BDB 6+. See
1553                           --with-berkeley-db for specifying the location of
1554                           the Berkeley DB installation. Using BDB 6 will fail
1555                           if this option is not used.
1556   --disable-keychain      Disable use of Mac OS KeyChain for auth credentials
1557   --enable-ev2-impl       Use Ev2 implementations, where available
1558                           [EXPERIMENTAL]
1559   --disable-nls           Disable gettext functionality
1560   --disable-plaintext-password-storage
1561                           Disable on-disk caching of plaintext passwords and
1562                           passphrases. (Leaving this functionality enabled
1563                           will not force Subversion to store passwords in
1564                           plaintext, but does permit users to explicitly allow
1565                           that behavior via runtime configuration.)
1566   --enable-debug          Turn on debugging
1567   --enable-optimize       Turn on optimizations
1568   --enable-disallowing-of-undefined-references
1569                           Use -Wl,--no-undefined flag during linking of some
1570                           libraries to disallow undefined references
1571   --enable-maintainer-mode
1572                           Turn on debugging and very strict compile-time
1573                           warnings
1574   --disable-full-version-match
1575                           Disable the full version match rules when checking
1576                           Subversion library compatibility.
1577   --enable-mod-activation Enable mod_dav_svn in httpd.conf
1578   --enable-gcov           Turn on gcov coverage testing (GCC only).
1579   --enable-gprof          Produce gprof profiling data in 'gmon.out' (GCC
1580                           only).
1581   --enable-runtime-module-search
1582                           Turn on dynamic loading of RA/FS libraries including
1583                           third-party FS libraries
1584   --enable-javahl         Enable compilation of Java high-level bindings
1585                           (requires C++)
1586
1587 Optional Packages:
1588   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590   --with-apr=PATH         prefix for installed APR, path to APR build tree,
1591                           or the full path to apr-config
1592   --with-apr-util=PATH    prefix for installed APU, path to APU build tree,
1593                           or the full path to apu-config
1594   --with-serf=PREFIX      Serf HTTP client library (enabled by default if
1595                           found)
1596   --with-apr_memcache=PREFIX
1597                           Standalone apr_memcache client library
1598   --with-apxs[=FILE]      Build shared Apache modules. FILE is the optional
1599                           pathname to the Apache apxs tool; defaults to
1600                           "apxs".
1601   --with-apache-libexecdir[=PATH]
1602                           Install Apache modules to Apache's configured
1603                           modules directory instead of LIBEXECDIR; if PATH is
1604                           given, install to PATH.
1605   --with-sqlite=PREFIX    Use installed SQLite library or amalgamation file.
1606   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1607                           both]
1608   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1609   --with-sysroot=DIR Search for dependent libraries within DIR
1610                         (or the compiler's sysroot if not specified).
1611   --with-trang=PATH       Specify the command to run the trang schema
1612                           converter
1613   --with-doxygen=PATH     Specify the command to run doxygen
1614   --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1615                           Specify location of Expat
1616   --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1617                           The Subversion Berkeley DB based filesystem library
1618                           requires Berkeley DB $db_version or $db_alt_version.
1619                           If you specify `--without-berkeley-db', that library
1620                           will not be built. If you omit the argument of this
1621                           option completely, the configure script will use
1622                           Berkeley DB used by APR-UTIL.
1623   --with-sasl=PATH        Compile with libsasl2 in PATH
1624   --without-gpg-agent     Disable support for GPG-Agent
1625   --with-gnome-keyring    Enable use of GNOME Keyring for auth credentials
1626                           (enabled by default if found)
1627   --with-libmagic=PREFIX  libmagic filetype detection library
1628   --with-kwallet[=PATH]   Enable use of KWallet (KDE 4) for auth credentials
1629   --with-openssl          This option does NOT affect the Subversion build
1630                           process in any way. It tells an integrated Serf HTTP
1631                           client library build process where to locate the
1632                           OpenSSL library when (and only when) building Serf
1633                           as an integrated part of the Subversion build
1634                           process. When linking to a previously installed
1635                           version of Serf instead, you do not need to use this
1636                           option.
1637   --with-editor=PATH      Specify a default editor for the subversion client.
1638   --with-zlib=PREFIX      zlib compression library
1639   --with-jdk=PATH         Try to use 'PATH/include' to find the JNI headers.
1640                           If PATH is not specified, look for a Java
1641                           Development Kit at JAVA_HOME.
1642   --with-jikes=PATH       Specify the path to a jikes binary to use it as your
1643                           Java compiler. The default is to look for jikes
1644                           (PATH optional). This behavior can be switched off
1645                           by supplying 'no'.
1646   --with-swig=PATH        Try to use 'PATH/bin/swig' to build the swig
1647                           bindings. If PATH is not specified, look for a
1648                           'swig' binary in your PATH.
1649   --with-ruby-sitedir=SITEDIR
1650                           install Ruby bindings in SITEDIR (default is same as
1651                           ruby's one)
1652   --with-ruby-test-verbose=LEVEL
1653                           how to use output level for Ruby bindings tests
1654                           (default is normal)
1655   --with-ctypesgen=PATH   Specify the path to ctypesgen. This can either be
1656                           the full path to a ctypesgen installation, the full
1657                           path to a ctypesgen source tree or the full path to
1658                           ctypesgen.py.
1659   --with-junit=PATH       Specify a path to the junit JAR file.
1660
1661 Some influential environment variables:
1662   CC          C compiler command
1663   CFLAGS      C compiler flags
1664   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1665               nonstandard directory <lib dir>
1666   LIBS        libraries to pass to the linker, e.g. -l<library>
1667   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1668               you have headers in a nonstandard directory <include dir>
1669   CXX         C++ compiler command
1670   CXXFLAGS    C++ compiler flags
1671   CPP         C preprocessor
1672   CXXCPP      C++ preprocessor
1673
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1676
1677 Report bugs to <http://subversion.apache.org/>.
1678 _ACEOF
1679 ac_status=$?
1680 fi
1681
1682 if test "$ac_init_help" = "recursive"; then
1683   # If there are subdirs, report their specific --help.
1684   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685     test -d "$ac_dir" ||
1686       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687       continue
1688     ac_builddir=.
1689
1690 case "$ac_dir" in
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 *)
1693   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694   # A ".." for each directory in $ac_dir_suffix.
1695   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696   case $ac_top_builddir_sub in
1697   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699   esac ;;
1700 esac
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1705
1706 case $srcdir in
1707   .)  # We are building in place.
1708     ac_srcdir=.
1709     ac_top_srcdir=$ac_top_builddir_sub
1710     ac_abs_top_srcdir=$ac_pwd ;;
1711   [\\/]* | ?:[\\/]* )  # Absolute name.
1712     ac_srcdir=$srcdir$ac_dir_suffix;
1713     ac_top_srcdir=$srcdir
1714     ac_abs_top_srcdir=$srcdir ;;
1715   *) # Relative name.
1716     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717     ac_top_srcdir=$ac_top_build_prefix$srcdir
1718     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 esac
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
1722     cd "$ac_dir" || { ac_status=$?; continue; }
1723     # Check for guested configure.
1724     if test -f "$ac_srcdir/configure.gnu"; then
1725       echo &&
1726       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727     elif test -f "$ac_srcdir/configure"; then
1728       echo &&
1729       $SHELL "$ac_srcdir/configure" --help=recursive
1730     else
1731       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732     fi || ac_status=$?
1733     cd "$ac_pwd" || { ac_status=$?; break; }
1734   done
1735 fi
1736
1737 test -n "$ac_init_help" && exit $ac_status
1738 if $ac_init_version; then
1739   cat <<\_ACEOF
1740 subversion configure 1.8.8
1741 generated by GNU Autoconf 2.69
1742
1743 Copyright (C) 2012 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1746 _ACEOF
1747   exit
1748 fi
1749
1750 ## ------------------------ ##
1751 ## Autoconf initialization. ##
1752 ## ------------------------ ##
1753
1754 # ac_fn_c_try_compile LINENO
1755 # --------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_compile ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   rm -f conftest.$ac_objext
1761   if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_compile") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && {
1777          test -z "$ac_c_werror_flag" ||
1778          test ! -s conftest.err
1779        } && test -s conftest.$ac_objext; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785         ac_retval=1
1786 fi
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788   as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_compile
1791
1792 # ac_fn_cxx_try_compile LINENO
1793 # ----------------------------
1794 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_cxx_try_compile ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   rm -f conftest.$ac_objext
1799   if { { ac_try="$ac_compile"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_compile") 2>conftest.err
1807   ac_status=$?
1808   if test -s conftest.err; then
1809     grep -v '^ *+' conftest.err >conftest.er1
1810     cat conftest.er1 >&5
1811     mv -f conftest.er1 conftest.err
1812   fi
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; } && {
1815          test -z "$ac_cxx_werror_flag" ||
1816          test ! -s conftest.err
1817        } && test -s conftest.$ac_objext; then :
1818   ac_retval=0
1819 else
1820   $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823         ac_retval=1
1824 fi
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826   as_fn_set_status $ac_retval
1827
1828 } # ac_fn_cxx_try_compile
1829
1830 # ac_fn_c_try_cpp LINENO
1831 # ----------------------
1832 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_cpp ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   if { { ac_try="$ac_cpp conftest.$ac_ext"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844   ac_status=$?
1845   if test -s conftest.err; then
1846     grep -v '^ *+' conftest.err >conftest.er1
1847     cat conftest.er1 >&5
1848     mv -f conftest.er1 conftest.err
1849   fi
1850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851   test $ac_status = 0; } > conftest.i && {
1852          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1853          test ! -s conftest.err
1854        }; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860     ac_retval=1
1861 fi
1862   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863   as_fn_set_status $ac_retval
1864
1865 } # ac_fn_c_try_cpp
1866
1867 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870 # the include files in INCLUDES and setting the cache variable VAR
1871 # accordingly.
1872 ac_fn_c_check_header_mongrel ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if eval \${$3+:} false; then :
1876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879   $as_echo_n "(cached) " >&6
1880 fi
1881 eval ac_res=\$$3
1882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 else
1885   # Is the header compilable?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887 $as_echo_n "checking $2 usability... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894   ac_header_compiler=yes
1895 else
1896   ac_header_compiler=no
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900 $as_echo "$ac_header_compiler" >&6; }
1901
1902 # Is the header present?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904 $as_echo_n "checking $2 presence... " >&6; }
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 #include <$2>
1908 _ACEOF
1909 if ac_fn_c_try_cpp "$LINENO"; then :
1910   ac_header_preproc=yes
1911 else
1912   ac_header_preproc=no
1913 fi
1914 rm -f conftest.err conftest.i conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916 $as_echo "$ac_header_preproc" >&6; }
1917
1918 # So?  What about this header?
1919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920   yes:no: )
1921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925     ;;
1926   no:yes:* )
1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1930 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1934 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 ( $as_echo "## -------------------------------------------- ##
1938 ## Report this to http://subversion.apache.org/ ##
1939 ## -------------------------------------------- ##"
1940      ) | sed "s/^/$as_me: WARNING:     /" >&2
1941     ;;
1942 esac
1943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946   $as_echo_n "(cached) " >&6
1947 else
1948   eval "$3=\$ac_header_compiler"
1949 fi
1950 eval ac_res=\$$3
1951                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 fi
1954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956 } # ac_fn_c_check_header_mongrel
1957
1958 # ac_fn_c_try_run LINENO
1959 # ----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961 # that executables *can* be run.
1962 ac_fn_c_try_run ()
1963 {
1964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965   if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968   *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972   (eval "$ac_link") 2>&5
1973   ac_status=$?
1974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976   { { case "(($ac_try" in
1977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978   *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982   (eval "$ac_try") 2>&5
1983   ac_status=$?
1984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985   test $ac_status = 0; }; }; then :
1986   ac_retval=0
1987 else
1988   $as_echo "$as_me: program exited with status $ac_status" >&5
1989        $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992        ac_retval=$ac_status
1993 fi
1994   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996   as_fn_set_status $ac_retval
1997
1998 } # ac_fn_c_try_run
1999
2000 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists and can be compiled using the include files in
2003 # INCLUDES, setting the cache variable VAR accordingly.
2004 ac_fn_c_check_header_compile ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010   $as_echo_n "(cached) " >&6
2011 else
2012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h.  */
2014 $4
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018   eval "$3=yes"
2019 else
2020   eval "$3=no"
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 fi
2024 eval ac_res=\$$3
2025                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029 } # ac_fn_c_check_header_compile
2030
2031 # ac_fn_c_try_link LINENO
2032 # -----------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded.
2034 ac_fn_c_try_link ()
2035 {
2036   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037   rm -f conftest.$ac_objext conftest$ac_exeext
2038   if { { ac_try="$ac_link"
2039 case "(($ac_try" in
2040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041   *) ac_try_echo=$ac_try;;
2042 esac
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045   (eval "$ac_link") 2>conftest.err
2046   ac_status=$?
2047   if test -s conftest.err; then
2048     grep -v '^ *+' conftest.err >conftest.er1
2049     cat conftest.er1 >&5
2050     mv -f conftest.er1 conftest.err
2051   fi
2052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053   test $ac_status = 0; } && {
2054          test -z "$ac_c_werror_flag" ||
2055          test ! -s conftest.err
2056        } && test -s conftest$ac_exeext && {
2057          test "$cross_compiling" = yes ||
2058          test -x conftest$ac_exeext
2059        }; then :
2060   ac_retval=0
2061 else
2062   $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065         ac_retval=1
2066 fi
2067   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2068   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2069   # interfere with the next link command; also delete a directory that is
2070   # left behind by Apple's compiler.  We do this before executing the actions.
2071   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073   as_fn_set_status $ac_retval
2074
2075 } # ac_fn_c_try_link
2076
2077 # ac_fn_c_check_func LINENO FUNC VAR
2078 # ----------------------------------
2079 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2080 ac_fn_c_check_func ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086   $as_echo_n "(cached) " >&6
2087 else
2088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2092 #define $2 innocuous_$2
2093
2094 /* System header to define __stub macros and hopefully few prototypes,
2095     which can conflict with char $2 (); below.
2096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2097     <limits.h> exists even on freestanding compilers.  */
2098
2099 #ifdef __STDC__
2100 # include <limits.h>
2101 #else
2102 # include <assert.h>
2103 #endif
2104
2105 #undef $2
2106
2107 /* Override any GCC internal prototype to avoid an error.
2108    Use char because int might match the return type of a GCC
2109    builtin and then its argument prototype would still apply.  */
2110 #ifdef __cplusplus
2111 extern "C"
2112 #endif
2113 char $2 ();
2114 /* The GNU C library defines this for functions which it implements
2115     to always fail with ENOSYS.  Some functions are actually named
2116     something starting with __ and the normal name is an alias.  */
2117 #if defined __stub_$2 || defined __stub___$2
2118 choke me
2119 #endif
2120
2121 int
2122 main ()
2123 {
2124 return $2 ();
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_link "$LINENO"; then :
2130   eval "$3=yes"
2131 else
2132   eval "$3=no"
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext \
2135     conftest$ac_exeext conftest.$ac_ext
2136 fi
2137 eval ac_res=\$$3
2138                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142 } # ac_fn_c_check_func
2143
2144 # ac_fn_cxx_try_cpp LINENO
2145 # ------------------------
2146 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2147 ac_fn_cxx_try_cpp ()
2148 {
2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150   if { { ac_try="$ac_cpp conftest.$ac_ext"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2158   ac_status=$?
2159   if test -s conftest.err; then
2160     grep -v '^ *+' conftest.err >conftest.er1
2161     cat conftest.er1 >&5
2162     mv -f conftest.er1 conftest.err
2163   fi
2164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165   test $ac_status = 0; } > conftest.i && {
2166          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2167          test ! -s conftest.err
2168        }; then :
2169   ac_retval=0
2170 else
2171   $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2173
2174     ac_retval=1
2175 fi
2176   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177   as_fn_set_status $ac_retval
2178
2179 } # ac_fn_cxx_try_cpp
2180
2181 # ac_fn_cxx_try_link LINENO
2182 # -------------------------
2183 # Try to link conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_cxx_try_link ()
2185 {
2186   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187   rm -f conftest.$ac_objext conftest$ac_exeext
2188   if { { ac_try="$ac_link"
2189 case "(($ac_try" in
2190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191   *) ac_try_echo=$ac_try;;
2192 esac
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 $as_echo "$ac_try_echo"; } >&5
2195   (eval "$ac_link") 2>conftest.err
2196   ac_status=$?
2197   if test -s conftest.err; then
2198     grep -v '^ *+' conftest.err >conftest.er1
2199     cat conftest.er1 >&5
2200     mv -f conftest.er1 conftest.err
2201   fi
2202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203   test $ac_status = 0; } && {
2204          test -z "$ac_cxx_werror_flag" ||
2205          test ! -s conftest.err
2206        } && test -s conftest$ac_exeext && {
2207          test "$cross_compiling" = yes ||
2208          test -x conftest$ac_exeext
2209        }; then :
2210   ac_retval=0
2211 else
2212   $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215         ac_retval=1
2216 fi
2217   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2218   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2219   # interfere with the next link command; also delete a directory that is
2220   # left behind by Apple's compiler.  We do this before executing the actions.
2221   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2222   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223   as_fn_set_status $ac_retval
2224
2225 } # ac_fn_cxx_try_link
2226
2227 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2228 # -------------------------------------------
2229 # Tests whether TYPE exists after having included INCLUDES, setting cache
2230 # variable VAR accordingly.
2231 ac_fn_c_check_type ()
2232 {
2233   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if eval \${$3+:} false; then :
2237   $as_echo_n "(cached) " >&6
2238 else
2239   eval "$3=no"
2240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $4
2243 int
2244 main ()
2245 {
2246 if (sizeof ($2))
2247          return 0;
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h.  */
2255 $4
2256 int
2257 main ()
2258 {
2259 if (sizeof (($2)))
2260             return 0;
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266
2267 else
2268   eval "$3=yes"
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 fi
2274 eval ac_res=\$$3
2275                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278
2279 } # ac_fn_c_check_type
2280 cat >config.log <<_ACEOF
2281 This file contains any messages produced by compilers while
2282 running configure, to aid debugging if configure makes a mistake.
2283
2284 It was created by subversion $as_me 1.8.8, which was
2285 generated by GNU Autoconf 2.69.  Invocation command line was
2286
2287   $ $0 $@
2288
2289 _ACEOF
2290 exec 5>>config.log
2291 {
2292 cat <<_ASUNAME
2293 ## --------- ##
2294 ## Platform. ##
2295 ## --------- ##
2296
2297 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2298 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2299 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2300 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2301 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2302
2303 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2304 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2305
2306 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2307 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2308 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2309 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2310 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2311 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2312 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2313
2314 _ASUNAME
2315
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321     $as_echo "PATH: $as_dir"
2322   done
2323 IFS=$as_save_IFS
2324
2325 } >&5
2326
2327 cat >&5 <<_ACEOF
2328
2329
2330 ## ----------- ##
2331 ## Core tests. ##
2332 ## ----------- ##
2333
2334 _ACEOF
2335
2336
2337 # Keep a trace of the command line.
2338 # Strip out --no-create and --no-recursion so they do not pile up.
2339 # Strip out --silent because we don't want to record it for future runs.
2340 # Also quote any args containing shell meta-characters.
2341 # Make two passes to allow for proper duplicate-argument suppression.
2342 ac_configure_args=
2343 ac_configure_args0=
2344 ac_configure_args1=
2345 ac_must_keep_next=false
2346 for ac_pass in 1 2
2347 do
2348   for ac_arg
2349   do
2350     case $ac_arg in
2351     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353     | -silent | --silent | --silen | --sile | --sil)
2354       continue ;;
2355     *\'*)
2356       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2357     esac
2358     case $ac_pass in
2359     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2360     2)
2361       as_fn_append ac_configure_args1 " '$ac_arg'"
2362       if test $ac_must_keep_next = true; then
2363         ac_must_keep_next=false # Got value, back to normal.
2364       else
2365         case $ac_arg in
2366           *=* | --config-cache | -C | -disable-* | --disable-* \
2367           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369           | -with-* | --with-* | -without-* | --without-* | --x)
2370             case "$ac_configure_args0 " in
2371               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2372             esac
2373             ;;
2374           -* ) ac_must_keep_next=true ;;
2375         esac
2376       fi
2377       as_fn_append ac_configure_args " '$ac_arg'"
2378       ;;
2379     esac
2380   done
2381 done
2382 { ac_configure_args0=; unset ac_configure_args0;}
2383 { ac_configure_args1=; unset ac_configure_args1;}
2384
2385 # When interrupted or exit'd, cleanup temporary files, and complete
2386 # config.log.  We remove comments because anyway the quotes in there
2387 # would cause problems or look ugly.
2388 # WARNING: Use '\'' to represent an apostrophe within the trap.
2389 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390 trap 'exit_status=$?
2391   # Save into config.log some information that might help in debugging.
2392   {
2393     echo
2394
2395     $as_echo "## ---------------- ##
2396 ## Cache variables. ##
2397 ## ---------------- ##"
2398     echo
2399     # The following way of writing the cache mishandles newlines in values,
2400 (
2401   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2402     eval ac_val=\$$ac_var
2403     case $ac_val in #(
2404     *${as_nl}*)
2405       case $ac_var in #(
2406       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2407 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2408       esac
2409       case $ac_var in #(
2410       _ | IFS | as_nl) ;; #(
2411       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2412       *) { eval $ac_var=; unset $ac_var;} ;;
2413       esac ;;
2414     esac
2415   done
2416   (set) 2>&1 |
2417     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2418     *${as_nl}ac_space=\ *)
2419       sed -n \
2420         "s/'\''/'\''\\\\'\'''\''/g;
2421           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2422       ;; #(
2423     *)
2424       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2425       ;;
2426     esac |
2427     sort
2428 )
2429     echo
2430
2431     $as_echo "## ----------------- ##
2432 ## Output variables. ##
2433 ## ----------------- ##"
2434     echo
2435     for ac_var in $ac_subst_vars
2436     do
2437       eval ac_val=\$$ac_var
2438       case $ac_val in
2439       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440       esac
2441       $as_echo "$ac_var='\''$ac_val'\''"
2442     done | sort
2443     echo
2444
2445     if test -n "$ac_subst_files"; then
2446       $as_echo "## ------------------- ##
2447 ## File substitutions. ##
2448 ## ------------------- ##"
2449       echo
2450       for ac_var in $ac_subst_files
2451       do
2452         eval ac_val=\$$ac_var
2453         case $ac_val in
2454         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2455         esac
2456         $as_echo "$ac_var='\''$ac_val'\''"
2457       done | sort
2458       echo
2459     fi
2460
2461     if test -s confdefs.h; then
2462       $as_echo "## ----------- ##
2463 ## confdefs.h. ##
2464 ## ----------- ##"
2465       echo
2466       cat confdefs.h
2467       echo
2468     fi
2469     test "$ac_signal" != 0 &&
2470       $as_echo "$as_me: caught signal $ac_signal"
2471     $as_echo "$as_me: exit $exit_status"
2472   } >&5
2473   rm -f core *.core core.conftest.* &&
2474     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2475     exit $exit_status
2476 ' 0
2477 for ac_signal in 1 2 13 15; do
2478   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2479 done
2480 ac_signal=0
2481
2482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2483 rm -f -r conftest* confdefs.h
2484
2485 $as_echo "/* confdefs.h */" > confdefs.h
2486
2487 # Predefined preprocessor variables.
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_NAME "$PACKAGE_NAME"
2491 _ACEOF
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_STRING "$PACKAGE_STRING"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_URL "$PACKAGE_URL"
2511 _ACEOF
2512
2513
2514 # Let the site file select an alternate cache file if it wants to.
2515 # Prefer an explicitly selected file to automatically selected ones.
2516 ac_site_file1=NONE
2517 ac_site_file2=NONE
2518 if test -n "$CONFIG_SITE"; then
2519   # We do not want a PATH search for config.site.
2520   case $CONFIG_SITE in #((
2521     -*)  ac_site_file1=./$CONFIG_SITE;;
2522     */*) ac_site_file1=$CONFIG_SITE;;
2523     *)   ac_site_file1=./$CONFIG_SITE;;
2524   esac
2525 elif test "x$prefix" != xNONE; then
2526   ac_site_file1=$prefix/share/config.site
2527   ac_site_file2=$prefix/etc/config.site
2528 else
2529   ac_site_file1=$ac_default_prefix/share/config.site
2530   ac_site_file2=$ac_default_prefix/etc/config.site
2531 fi
2532 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533 do
2534   test "x$ac_site_file" = xNONE && continue
2535   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2536     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2537 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2538     sed 's/^/| /' "$ac_site_file" >&5
2539     . "$ac_site_file" \
2540       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542 as_fn_error $? "failed to load site script $ac_site_file
2543 See \`config.log' for more details" "$LINENO" 5; }
2544   fi
2545 done
2546
2547 if test -r "$cache_file"; then
2548   # Some versions of bash will fail to source /dev/null (special files
2549   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2550   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2551     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2552 $as_echo "$as_me: loading cache $cache_file" >&6;}
2553     case $cache_file in
2554       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2555       *)                      . "./$cache_file";;
2556     esac
2557   fi
2558 else
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2560 $as_echo "$as_me: creating cache $cache_file" >&6;}
2561   >$cache_file
2562 fi
2563
2564 # Check that the precious variables saved in the cache have kept the same
2565 # value.
2566 ac_cache_corrupted=false
2567 for ac_var in $ac_precious_vars; do
2568   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569   eval ac_new_set=\$ac_env_${ac_var}_set
2570   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571   eval ac_new_val=\$ac_env_${ac_var}_value
2572   case $ac_old_set,$ac_new_set in
2573     set,)
2574       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576       ac_cache_corrupted=: ;;
2577     ,set)
2578       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580       ac_cache_corrupted=: ;;
2581     ,);;
2582     *)
2583       if test "x$ac_old_val" != "x$ac_new_val"; then
2584         # differences in whitespace do not lead to failure.
2585         ac_old_val_w=`echo x $ac_old_val`
2586         ac_new_val_w=`echo x $ac_new_val`
2587         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590           ac_cache_corrupted=:
2591         else
2592           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594           eval $ac_var=\$ac_old_val
2595         fi
2596         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2597 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2598         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2599 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2600       fi;;
2601   esac
2602   # Pass precious variables to config.status.
2603   if test "$ac_new_set" = set; then
2604     case $ac_new_val in
2605     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606     *) ac_arg=$ac_var=$ac_new_val ;;
2607     esac
2608     case " $ac_configure_args " in
2609       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2610       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2611     esac
2612   fi
2613 done
2614 if $ac_cache_corrupted; then
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2619   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2620 fi
2621 ## -------------------- ##
2622 ## Main body of script. ##
2623 ## -------------------- ##
2624
2625 ac_ext=c
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632
2633
2634 ac_aux_dir=
2635 for ac_dir in build "$srcdir"/build; do
2636   if test -f "$ac_dir/install-sh"; then
2637     ac_aux_dir=$ac_dir
2638     ac_install_sh="$ac_aux_dir/install-sh -c"
2639     break
2640   elif test -f "$ac_dir/install.sh"; then
2641     ac_aux_dir=$ac_dir
2642     ac_install_sh="$ac_aux_dir/install.sh -c"
2643     break
2644   elif test -f "$ac_dir/shtool"; then
2645     ac_aux_dir=$ac_dir
2646     ac_install_sh="$ac_aux_dir/shtool install -c"
2647     break
2648   fi
2649 done
2650 if test -z "$ac_aux_dir"; then
2651   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2652 fi
2653
2654 # These three variables are undocumented and unsupported,
2655 # and are intended to be withdrawn in a future Autoconf release.
2656 # They can cause serious problems if a builder's source tree is in a directory
2657 # whose full name contains unusual characters.
2658 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2659 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2660 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2661
2662
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.8.8" >&5
2665 $as_echo "$as_me: Configuring Subversion 1.8.8" >&6;}
2666
2667 abs_srcdir="`cd $srcdir && pwd`"
2668
2669 abs_builddir="`pwd`"
2670
2671 if test "$abs_srcdir" = "$abs_builddir"; then
2672   canonicalized_srcdir=""
2673 else
2674   canonicalized_srcdir="$srcdir/"
2675 fi
2676
2677
2678 SWIG_LDFLAGS="$LDFLAGS"
2679
2680
2681 # Generate config.nice early (before the arguments are munged)
2682
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2684 $as_echo "$as_me: creating config.nice" >&6;}
2685   # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2686   if test -f "config.nice"; then
2687     mv "config.nice" "config.nice.old"
2688   fi
2689
2690   cat >"config.nice" <<EOF
2691 #! /bin/sh
2692 #
2693 # Created by configure
2694
2695 '$0' $ac_configure_args "\$@"
2696 EOF
2697
2698   chmod +x "config.nice"
2699   rm -f "config.nice.old"
2700
2701
2702 # ==== Check for programs ====================================================
2703
2704 # Look for a C compiler (before anything can set CFLAGS)
2705 CMAINTAINERFLAGS="$CUSERFLAGS"
2706 CUSERFLAGS="$CFLAGS"
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 if test -n "$ac_tool_prefix"; then
2713   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_CC+:} false; then :
2718   $as_echo_n "(cached) " >&6
2719 else
2720   if test -n "$CC"; then
2721   ac_cv_prog_CC="$CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728     for ac_exec_ext in '' $ac_executable_extensions; do
2729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732     break 2
2733   fi
2734 done
2735   done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 CC=$ac_cv_prog_CC
2741 if test -n "$CC"; then
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2744 else
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749
2750 fi
2751 if test -z "$ac_cv_prog_CC"; then
2752   ac_ct_CC=$CC
2753   # Extract the first word of "gcc", so it can be a program name with args.
2754 set dummy gcc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   if test -n "$ac_ct_CC"; then
2761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768     for ac_exec_ext in '' $ac_executable_extensions; do
2769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770     ac_cv_prog_ac_ct_CC="gcc"
2771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772     break 2
2773   fi
2774 done
2775   done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2783 $as_echo "$ac_ct_CC" >&6; }
2784 else
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2788
2789   if test "x$ac_ct_CC" = x; then
2790     CC=""
2791   else
2792     case $cross_compiling:$ac_tool_warned in
2793 yes:)
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798     CC=$ac_ct_CC
2799   fi
2800 else
2801   CC="$ac_cv_prog_CC"
2802 fi
2803
2804 if test -z "$CC"; then
2805           if test -n "$ac_tool_prefix"; then
2806     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}cc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test -n "$CC"; then
2814   ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_exec_ext in '' $ac_executable_extensions; do
2822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823     ac_cv_prog_CC="${ac_tool_prefix}cc"
2824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828   done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843   fi
2844 fi
2845 if test -z "$CC"; then
2846   # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_CC+:} false; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   if test -n "$CC"; then
2854   ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856   ac_prog_rejected=no
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862     for ac_exec_ext in '' $ac_executable_extensions; do
2863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865        ac_prog_rejected=yes
2866        continue
2867      fi
2868     ac_cv_prog_CC="cc"
2869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873   done
2874 IFS=$as_save_IFS
2875
2876 if test $ac_prog_rejected = yes; then
2877   # We found a bogon in the path, so make sure we never use it.
2878   set dummy $ac_cv_prog_CC
2879   shift
2880   if test $# != 0; then
2881     # We chose a different compiler from the bogus one.
2882     # However, it has the same basename, so the bogon will be chosen
2883     # first if we set CC to just the basename; use the full file name.
2884     shift
2885     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2886   fi
2887 fi
2888 fi
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 $as_echo "$CC" >&6; }
2894 else
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$CC"; then
2902   if test -n "$ac_tool_prefix"; then
2903   for ac_prog in cl.exe
2904   do
2905     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_CC+:} false; then :
2910   $as_echo_n "(cached) " >&6
2911 else
2912   if test -n "$CC"; then
2913   ac_cv_prog_CC="$CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918   IFS=$as_save_IFS
2919   test -z "$as_dir" && as_dir=.
2920     for ac_exec_ext in '' $ac_executable_extensions; do
2921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924     break 2
2925   fi
2926 done
2927   done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 CC=$ac_cv_prog_CC
2933 if test -n "$CC"; then
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2935 $as_echo "$CC" >&6; }
2936 else
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2939 fi
2940
2941
2942     test -n "$CC" && break
2943   done
2944 fi
2945 if test -z "$CC"; then
2946   ac_ct_CC=$CC
2947   for ac_prog in cl.exe
2948 do
2949   # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954   $as_echo_n "(cached) " >&6
2955 else
2956   if test -n "$ac_ct_CC"; then
2957   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962   IFS=$as_save_IFS
2963   test -z "$as_dir" && as_dir=.
2964     for ac_exec_ext in '' $ac_executable_extensions; do
2965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966     ac_cv_prog_ac_ct_CC="$ac_prog"
2967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968     break 2
2969   fi
2970 done
2971   done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979 $as_echo "$ac_ct_CC" >&6; }
2980 else
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986   test -n "$ac_ct_CC" && break
2987 done
2988
2989   if test "x$ac_ct_CC" = x; then
2990     CC=""
2991   else
2992     case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996 ac_tool_warned=yes ;;
2997 esac
2998     CC=$ac_ct_CC
2999   fi
3000 fi
3001
3002 fi
3003
3004
3005 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error $? "no acceptable C compiler found in \$PATH
3008 See \`config.log' for more details" "$LINENO" 5; }
3009
3010 # Provide some information about the compiler.
3011 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3012 set X $ac_compile
3013 ac_compiler=$2
3014 for ac_option in --version -v -V -qversion; do
3015   { { ac_try="$ac_compiler $ac_option >&5"
3016 case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 $as_echo "$ac_try_echo"; } >&5
3022   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3023   ac_status=$?
3024   if test -s conftest.err; then
3025     sed '10a\
3026 ... rest of stderr output deleted ...
3027          10q' conftest.err >conftest.er1
3028     cat conftest.er1 >&5
3029   fi
3030   rm -f conftest.er1 conftest.err
3031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032   test $ac_status = 0; }
3033 done
3034
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h.  */
3037
3038 int
3039 main ()
3040 {
3041
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 ac_clean_files_save=$ac_clean_files
3047 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3048 # Try to create an executable without -o first, disregard a.out.
3049 # It will help us diagnose broken compilers, and finding out an intuition
3050 # of exeext.
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3052 $as_echo_n "checking whether the C compiler works... " >&6; }
3053 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3054
3055 # The possible output files:
3056 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3057
3058 ac_rmfiles=
3059 for ac_file in $ac_files
3060 do
3061   case $ac_file in
3062     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3064   esac
3065 done
3066 rm -f $ac_rmfiles
3067
3068 if { { ac_try="$ac_link_default"
3069 case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075   (eval "$ac_link_default") 2>&5
3076   ac_status=$?
3077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078   test $ac_status = 0; }; then :
3079   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3080 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3081 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3082 # so that the user can short-circuit this test for compilers unknown to
3083 # Autoconf.
3084 for ac_file in $ac_files ''
3085 do
3086   test -f "$ac_file" || continue
3087   case $ac_file in
3088     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3089         ;;
3090     [ab].out )
3091         # We found the default executable, but exeext='' is most
3092         # certainly right.
3093         break;;
3094     *.* )
3095         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3096         then :; else
3097            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3098         fi
3099         # We set ac_cv_exeext here because the later test for it is not
3100         # safe: cross compilers may not add the suffix if given an `-o'
3101         # argument, so we may need to know it at that point already.
3102         # Even if this section looks crufty: it has the advantage of
3103         # actually working.
3104         break;;
3105     * )
3106         break;;
3107   esac
3108 done
3109 test "$ac_cv_exeext" = no && ac_cv_exeext=
3110
3111 else
3112   ac_file=''
3113 fi
3114 if test -z "$ac_file"; then :
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 $as_echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error 77 "C compiler cannot create executables
3123 See \`config.log' for more details" "$LINENO" 5; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126 $as_echo "yes" >&6; }
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3129 $as_echo_n "checking for C compiler default output file name... " >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3131 $as_echo "$ac_file" >&6; }
3132 ac_exeext=$ac_cv_exeext
3133
3134 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3135 ac_clean_files=$ac_clean_files_save
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3137 $as_echo_n "checking for suffix of executables... " >&6; }
3138 if { { ac_try="$ac_link"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145   (eval "$ac_link") 2>&5
3146   ac_status=$?
3147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148   test $ac_status = 0; }; then :
3149   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3150 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3151 # work properly (i.e., refer to `conftest.exe'), while it won't with
3152 # `rm'.
3153 for ac_file in conftest.exe conftest conftest.*; do
3154   test -f "$ac_file" || continue
3155   case $ac_file in
3156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3157     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158           break;;
3159     * ) break;;
3160   esac
3161 done
3162 else
3163   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3166 See \`config.log' for more details" "$LINENO" 5; }
3167 fi
3168 rm -f conftest conftest$ac_cv_exeext
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3170 $as_echo "$ac_cv_exeext" >&6; }
3171
3172 rm -f conftest.$ac_ext
3173 EXEEXT=$ac_cv_exeext
3174 ac_exeext=$EXEEXT
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h.  */
3177 #include <stdio.h>
3178 int
3179 main ()
3180 {
3181 FILE *f = fopen ("conftest.out", "w");
3182  return ferror (f) || fclose (f) != 0;
3183
3184   ;
3185   return 0;
3186 }
3187 _ACEOF
3188 ac_clean_files="$ac_clean_files conftest.out"
3189 # Check that the compiler produces executables we can run.  If not, either
3190 # the compiler is broken, or we cross compile.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3192 $as_echo_n "checking whether we are cross compiling... " >&6; }
3193 if test "$cross_compiling" != yes; then
3194   { { ac_try="$ac_link"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201   (eval "$ac_link") 2>&5
3202   ac_status=$?
3203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204   test $ac_status = 0; }
3205   if { ac_try='./conftest$ac_cv_exeext'
3206   { { case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212   (eval "$ac_try") 2>&5
3213   ac_status=$?
3214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215   test $ac_status = 0; }; }; then
3216     cross_compiling=no
3217   else
3218     if test "$cross_compiling" = maybe; then
3219         cross_compiling=yes
3220     else
3221         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $? "cannot run C compiled programs.
3224 If you meant to cross compile, use \`--host'.
3225 See \`config.log' for more details" "$LINENO" 5; }
3226     fi
3227   fi
3228 fi
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3230 $as_echo "$cross_compiling" >&6; }
3231
3232 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3233 ac_clean_files=$ac_clean_files_save
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3235 $as_echo_n "checking for suffix of object files... " >&6; }
3236 if ${ac_cv_objext+:} false; then :
3237   $as_echo_n "(cached) " >&6
3238 else
3239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h.  */
3241
3242 int
3243 main ()
3244 {
3245
3246   ;
3247   return 0;
3248 }
3249 _ACEOF
3250 rm -f conftest.o conftest.obj
3251 if { { ac_try="$ac_compile"
3252 case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258   (eval "$ac_compile") 2>&5
3259   ac_status=$?
3260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261   test $ac_status = 0; }; then :
3262   for ac_file in conftest.o conftest.obj conftest.*; do
3263   test -f "$ac_file" || continue;
3264   case $ac_file in
3265     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3266     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3267        break;;
3268   esac
3269 done
3270 else
3271   $as_echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "cannot compute suffix of object files: cannot compile
3277 See \`config.log' for more details" "$LINENO" 5; }
3278 fi
3279 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3282 $as_echo "$ac_cv_objext" >&6; }
3283 OBJEXT=$ac_cv_objext
3284 ac_objext=$OBJEXT
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3286 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3287 if ${ac_cv_c_compiler_gnu+:} false; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h.  */
3292
3293 int
3294 main ()
3295 {
3296 #ifndef __GNUC__
3297        choke me
3298 #endif
3299
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 if ac_fn_c_try_compile "$LINENO"; then :
3305   ac_compiler_gnu=yes
3306 else
3307   ac_compiler_gnu=no
3308 fi
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3311
3312 fi
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3314 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3315 if test $ac_compiler_gnu = yes; then
3316   GCC=yes
3317 else
3318   GCC=
3319 fi
3320 ac_test_CFLAGS=${CFLAGS+set}
3321 ac_save_CFLAGS=$CFLAGS
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3323 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3324 if ${ac_cv_prog_cc_g+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   ac_save_c_werror_flag=$ac_c_werror_flag
3328    ac_c_werror_flag=yes
3329    ac_cv_prog_cc_g=no
3330    CFLAGS="-g"
3331    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343   ac_cv_prog_cc_g=yes
3344 else
3345   CFLAGS=""
3346       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h.  */
3348
3349 int
3350 main ()
3351 {
3352
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358
3359 else
3360   ac_c_werror_flag=$ac_save_c_werror_flag
3361          CFLAGS="-g"
3362          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h.  */
3364
3365 int
3366 main ()
3367 {
3368
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374   ac_cv_prog_cc_g=yes
3375 fi
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 fi
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 fi
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381    ac_c_werror_flag=$ac_save_c_werror_flag
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3384 $as_echo "$ac_cv_prog_cc_g" >&6; }
3385 if test "$ac_test_CFLAGS" = set; then
3386   CFLAGS=$ac_save_CFLAGS
3387 elif test $ac_cv_prog_cc_g = yes; then
3388   if test "$GCC" = yes; then
3389     CFLAGS="-g -O2"
3390   else
3391     CFLAGS="-g"
3392   fi
3393 else
3394   if test "$GCC" = yes; then
3395     CFLAGS="-O2"
3396   else
3397     CFLAGS=
3398   fi
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3401 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3402 if ${ac_cv_prog_cc_c89+:} false; then :
3403   $as_echo_n "(cached) " >&6
3404 else
3405   ac_cv_prog_cc_c89=no
3406 ac_save_CC=$CC
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h.  */
3409 #include <stdarg.h>
3410 #include <stdio.h>
3411 struct stat;
3412 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3413 struct buf { int x; };
3414 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3415 static char *e (p, i)
3416      char **p;
3417      int i;
3418 {
3419   return p[i];
3420 }
3421 static char *f (char * (*g) (char **, int), char **p, ...)
3422 {
3423   char *s;
3424   va_list v;
3425   va_start (v,p);
3426   s = g (p, va_arg (v,int));
3427   va_end (v);
3428   return s;
3429 }
3430
3431 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3432    function prototypes and stuff, but not '\xHH' hex character constants.
3433    These don't provoke an error unfortunately, instead are silently treated
3434    as 'x'.  The following induces an error, until -std is added to get
3435    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3436    array size at least.  It's necessary to write '\x00'==0 to get something
3437    that's true only with -std.  */
3438 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3439
3440 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3441    inside strings and character constants.  */
3442 #define FOO(x) 'x'
3443 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3444
3445 int test (int i, double x);
3446 struct s1 {int (*f) (int a);};
3447 struct s2 {int (*f) (double a);};
3448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3449 int argc;
3450 char **argv;
3451 int
3452 main ()
3453 {
3454 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3460         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3461 do
3462   CC="$ac_save_CC $ac_arg"
3463   if ac_fn_c_try_compile "$LINENO"; then :
3464   ac_cv_prog_cc_c89=$ac_arg
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext
3467   test "x$ac_cv_prog_cc_c89" != "xno" && break
3468 done
3469 rm -f conftest.$ac_ext
3470 CC=$ac_save_CC
3471
3472 fi
3473 # AC_CACHE_VAL
3474 case "x$ac_cv_prog_cc_c89" in
3475   x)
3476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3477 $as_echo "none needed" >&6; } ;;
3478   xno)
3479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3480 $as_echo "unsupported" >&6; } ;;
3481   *)
3482     CC="$CC $ac_cv_prog_cc_c89"
3483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3484 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3485 esac
3486 if test "x$ac_cv_prog_cc_c89" != xno; then :
3487
3488 fi
3489
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497
3498   CFLAGS_KEEP="$CFLAGS"
3499   CFLAGS=""
3500
3501
3502   _svn_xxflags__save="$CFLAGS"
3503   ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3510 $as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3511   CFLAGS="-std=c90 $CFLAGS"
3512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h.  */
3514
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517
3518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 $as_echo "yes" >&6; }
3520
3521
3522 else
3523
3524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526     CFLAGS="$_svn_xxflags__save"
3527
3528
3529   _svn_xxflags__save="$CFLAGS"
3530   ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3537 $as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3538   CFLAGS="-std=c89 $CFLAGS"
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 _ACEOF
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544
3545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3547
3548
3549 else
3550
3551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553     CFLAGS="$_svn_xxflags__save"
3554
3555
3556   _svn_xxflags__save="$CFLAGS"
3557   ac_ext=c
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3564 $as_echo_n "checking if $CC accepts -ansi... " >&6; }
3565   CFLAGS="-ansi $CFLAGS"
3566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h.  */
3568
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571
3572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3574
3575
3576 else
3577
3578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580     CFLAGS="$_svn_xxflags__save"
3581
3582
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585   ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590
3591
3592
3593
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596   ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601
3602
3603
3604
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607   ac_ext=c
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613
3614
3615   CMODEFLAGS="$CFLAGS"
3616   CFLAGS="$CFLAGS_KEEP"
3617
3618
3619
3620
3621   _svn_xxflags__save="$CFLAGS"
3622   ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3629 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3630   CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633
3634 _ACEOF
3635 if ac_fn_c_try_compile "$LINENO"; then :
3636
3637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3639
3640
3641 else
3642
3643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645     CFLAGS="$_svn_xxflags__save"
3646
3647
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650   ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656
3657
3658
3659 # Look for a C++ compiler (before anything can set CXXFLAGS)
3660 CXXMAINTAINERFLAGS="$CXXUSERFLAGS"
3661 CXXUSERFLAGS="$CXXFLAGS"
3662 ac_ext=cpp
3663 ac_cpp='$CXXCPP $CPPFLAGS'
3664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3667 if test -z "$CXX"; then
3668   if test -n "$CCC"; then
3669     CXX=$CCC
3670   else
3671     if test -n "$ac_tool_prefix"; then
3672   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3673   do
3674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CXX+:} false; then :
3679   $as_echo_n "(cached) " >&6
3680 else
3681   if test -n "$CXX"; then
3682   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687   IFS=$as_save_IFS
3688   test -z "$as_dir" && as_dir=.
3689     for ac_exec_ext in '' $ac_executable_extensions; do
3690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693     break 2
3694   fi
3695 done
3696   done
3697 IFS=$as_save_IFS
3698
3699 fi
3700 fi
3701 CXX=$ac_cv_prog_CXX
3702 if test -n "$CXX"; then
3703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3704 $as_echo "$CXX" >&6; }
3705 else
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 fi
3709
3710
3711     test -n "$CXX" && break
3712   done
3713 fi
3714 if test -z "$CXX"; then
3715   ac_ct_CXX=$CXX
3716   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3717 do
3718   # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy $ac_prog; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3723   $as_echo_n "(cached) " >&6
3724 else
3725   if test -n "$ac_ct_CXX"; then
3726   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3730 do
3731   IFS=$as_save_IFS
3732   test -z "$as_dir" && as_dir=.
3733     for ac_exec_ext in '' $ac_executable_extensions; do
3734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735     ac_cv_prog_ac_ct_CXX="$ac_prog"
3736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737     break 2
3738   fi
3739 done
3740   done
3741 IFS=$as_save_IFS
3742
3743 fi
3744 fi
3745 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3746 if test -n "$ac_ct_CXX"; then
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3748 $as_echo "$ac_ct_CXX" >&6; }
3749 else
3750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3752 fi
3753
3754
3755   test -n "$ac_ct_CXX" && break
3756 done
3757
3758   if test "x$ac_ct_CXX" = x; then
3759     CXX="g++"
3760   else
3761     case $cross_compiling:$ac_tool_warned in
3762 yes:)
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765 ac_tool_warned=yes ;;
3766 esac
3767     CXX=$ac_ct_CXX
3768   fi
3769 fi
3770
3771   fi
3772 fi
3773 # Provide some information about the compiler.
3774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3775 set X $ac_compile
3776 ac_compiler=$2
3777 for ac_option in --version -v -V -qversion; do
3778   { { ac_try="$ac_compiler $ac_option >&5"
3779 case "(($ac_try" in
3780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781   *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786   ac_status=$?
3787   if test -s conftest.err; then
3788     sed '10a\
3789 ... rest of stderr output deleted ...
3790          10q' conftest.err >conftest.er1
3791     cat conftest.er1 >&5
3792   fi
3793   rm -f conftest.er1 conftest.err
3794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795   test $ac_status = 0; }
3796 done
3797
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3799 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3800 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3801   $as_echo_n "(cached) " >&6
3802 else
3803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h.  */
3805
3806 int
3807 main ()
3808 {
3809 #ifndef __GNUC__
3810        choke me
3811 #endif
3812
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 if ac_fn_cxx_try_compile "$LINENO"; then :
3818   ac_compiler_gnu=yes
3819 else
3820   ac_compiler_gnu=no
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3824
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3828 if test $ac_compiler_gnu = yes; then
3829   GXX=yes
3830 else
3831   GXX=
3832 fi
3833 ac_test_CXXFLAGS=${CXXFLAGS+set}
3834 ac_save_CXXFLAGS=$CXXFLAGS
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3836 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3837 if ${ac_cv_prog_cxx_g+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3841    ac_cxx_werror_flag=yes
3842    ac_cv_prog_cxx_g=no
3843    CXXFLAGS="-g"
3844    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h.  */
3846
3847 int
3848 main ()
3849 {
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_cxx_try_compile "$LINENO"; then :
3856   ac_cv_prog_cxx_g=yes
3857 else
3858   CXXFLAGS=""
3859       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h.  */
3861
3862 int
3863 main ()
3864 {
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_cxx_try_compile "$LINENO"; then :
3871
3872 else
3873   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3874          CXXFLAGS="-g"
3875          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_cxx_try_compile "$LINENO"; then :
3887   ac_cv_prog_cxx_g=yes
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 fi
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3898 if test "$ac_test_CXXFLAGS" = set; then
3899   CXXFLAGS=$ac_save_CXXFLAGS
3900 elif test $ac_cv_prog_cxx_g = yes; then
3901   if test "$GXX" = yes; then
3902     CXXFLAGS="-g -O2"
3903   else
3904     CXXFLAGS="-g"
3905   fi
3906 else
3907   if test "$GXX" = yes; then
3908     CXXFLAGS="-O2"
3909   else
3910     CXXFLAGS=
3911   fi
3912 fi
3913 ac_ext=c
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918
3919
3920
3921   CXXFLAGS_KEEP="$CXXFLAGS"
3922   CXXFLAGS=""
3923
3924
3925   _svn_xxflags__save="$CXXFLAGS"
3926   ac_ext=cpp
3927 ac_cpp='$CXXCPP $CPPFLAGS'
3928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3931
3932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
3933 $as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
3934   CXXFLAGS="-std=c++98 $CXXFLAGS"
3935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h.  */
3937
3938 _ACEOF
3939 if ac_fn_cxx_try_compile "$LINENO"; then :
3940
3941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3943
3944
3945 else
3946
3947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949     CXXFLAGS="$_svn_xxflags__save"
3950
3951
3952 fi
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954   ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960
3961
3962   CXXMODEFLAGS="$CXXFLAGS"
3963   CXXFLAGS="$CXXFLAGS_KEEP"
3964
3965
3966
3967
3968   _svn_xxflags__save="$CXXFLAGS"
3969   ac_ext=cpp
3970 ac_cpp='$CXXCPP $CPPFLAGS'
3971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3974
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
3976 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
3977   CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
3978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h.  */
3980
3981 _ACEOF
3982 if ac_fn_cxx_try_compile "$LINENO"; then :
3983
3984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985 $as_echo "yes" >&6; }
3986
3987
3988 else
3989
3990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992     CXXFLAGS="$_svn_xxflags__save"
3993
3994
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997   ac_ext=c
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003
4004
4005
4006 # Look for a C pre-processor
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4014 # On Suns, sometimes $CPP names a directory.
4015 if test -n "$CPP" && test -d "$CPP"; then
4016   CPP=
4017 fi
4018 if test -z "$CPP"; then
4019   if ${ac_cv_prog_CPP+:} false; then :
4020   $as_echo_n "(cached) " >&6
4021 else
4022       # Double quotes because CPP needs to be expanded
4023     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024     do
4025       ac_preproc_ok=false
4026 for ac_c_preproc_warn_flag in '' yes
4027 do
4028   # Use a header file that comes with gcc, so configuring glibc
4029   # with a fresh cross-compiler works.
4030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031   # <limits.h> exists even on freestanding compilers.
4032   # On the NeXT, cc -E runs the code through the compiler's parser,
4033   # not just through cpp. "Syntax error" is here to catch this case.
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036 #ifdef __STDC__
4037 # include <limits.h>
4038 #else
4039 # include <assert.h>
4040 #endif
4041                      Syntax error
4042 _ACEOF
4043 if ac_fn_c_try_cpp "$LINENO"; then :
4044
4045 else
4046   # Broken: fails on valid input.
4047 continue
4048 fi
4049 rm -f conftest.err conftest.i conftest.$ac_ext
4050
4051   # OK, works on sane cases.  Now check whether nonexistent headers
4052   # can be detected and how.
4053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055 #include <ac_nonexistent.h>
4056 _ACEOF
4057 if ac_fn_c_try_cpp "$LINENO"; then :
4058   # Broken: success on invalid input.
4059 continue
4060 else
4061   # Passes both tests.
4062 ac_preproc_ok=:
4063 break
4064 fi
4065 rm -f conftest.err conftest.i conftest.$ac_ext
4066
4067 done
4068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4069 rm -f conftest.i conftest.err conftest.$ac_ext
4070 if $ac_preproc_ok; then :
4071   break
4072 fi
4073
4074     done
4075     ac_cv_prog_CPP=$CPP
4076
4077 fi
4078   CPP=$ac_cv_prog_CPP
4079 else
4080   ac_cv_prog_CPP=$CPP
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4083 $as_echo "$CPP" >&6; }
4084 ac_preproc_ok=false
4085 for ac_c_preproc_warn_flag in '' yes
4086 do
4087   # Use a header file that comes with gcc, so configuring glibc
4088   # with a fresh cross-compiler works.
4089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090   # <limits.h> exists even on freestanding compilers.
4091   # On the NeXT, cc -E runs the code through the compiler's parser,
4092   # not just through cpp. "Syntax error" is here to catch this case.
4093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095 #ifdef __STDC__
4096 # include <limits.h>
4097 #else
4098 # include <assert.h>
4099 #endif
4100                      Syntax error
4101 _ACEOF
4102 if ac_fn_c_try_cpp "$LINENO"; then :
4103
4104 else
4105   # Broken: fails on valid input.
4106 continue
4107 fi
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4109
4110   # OK, works on sane cases.  Now check whether nonexistent headers
4111   # can be detected and how.
4112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114 #include <ac_nonexistent.h>
4115 _ACEOF
4116 if ac_fn_c_try_cpp "$LINENO"; then :
4117   # Broken: success on invalid input.
4118 continue
4119 else
4120   # Passes both tests.
4121 ac_preproc_ok=:
4122 break
4123 fi
4124 rm -f conftest.err conftest.i conftest.$ac_ext
4125
4126 done
4127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128 rm -f conftest.i conftest.err conftest.$ac_ext
4129 if $ac_preproc_ok; then :
4130
4131 else
4132   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4134 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4135 See \`config.log' for more details" "$LINENO" 5; }
4136 fi
4137
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144
4145 # Look for a good sed
4146 # AC_PROG_SED was introduced in Autoconf 2.59b
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4148 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4149 if ${ac_cv_path_SED+:} false; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4153      for ac_i in 1 2 3 4 5 6 7; do
4154        ac_script="$ac_script$as_nl$ac_script"
4155      done
4156      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4157      { ac_script=; unset ac_script;}
4158      if test -z "$SED"; then
4159   ac_path_SED_found=false
4160   # Loop through the user's path and test for each of PROGNAME-LIST
4161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166     for ac_prog in sed gsed; do
4167     for ac_exec_ext in '' $ac_executable_extensions; do
4168       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4169       as_fn_executable_p "$ac_path_SED" || continue
4170 # Check for GNU ac_path_SED and select it if it is found.
4171   # Check for GNU $ac_path_SED
4172 case `"$ac_path_SED" --version 2>&1` in
4173 *GNU*)
4174   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4175 *)
4176   ac_count=0
4177   $as_echo_n 0123456789 >"conftest.in"
4178   while :
4179   do
4180     cat "conftest.in" "conftest.in" >"conftest.tmp"
4181     mv "conftest.tmp" "conftest.in"
4182     cp "conftest.in" "conftest.nl"
4183     $as_echo '' >> "conftest.nl"
4184     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186     as_fn_arith $ac_count + 1 && ac_count=$as_val
4187     if test $ac_count -gt ${ac_path_SED_max-0}; then
4188       # Best one so far, save it but keep looking for a better one
4189       ac_cv_path_SED="$ac_path_SED"
4190       ac_path_SED_max=$ac_count
4191     fi
4192     # 10*(2^10) chars as input seems more than enough
4193     test $ac_count -gt 10 && break
4194   done
4195   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196 esac
4197
4198       $ac_path_SED_found && break 3
4199     done
4200   done
4201   done
4202 IFS=$as_save_IFS
4203   if test -z "$ac_cv_path_SED"; then
4204     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4205   fi
4206 else
4207   ac_cv_path_SED=$SED
4208 fi
4209
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4212 $as_echo "$ac_cv_path_SED" >&6; }
4213  SED="$ac_cv_path_SED"
4214   rm -f conftest.sed
4215
4216
4217 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4218 # Make sure we can run config.sub.
4219 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4220   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4223 $as_echo_n "checking build system type... " >&6; }
4224 if ${ac_cv_build+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227   ac_build_alias=$build_alias
4228 test "x$ac_build_alias" = x &&
4229   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4230 test "x$ac_build_alias" = x &&
4231   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4232 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4233   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4234
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4237 $as_echo "$ac_cv_build" >&6; }
4238 case $ac_cv_build in
4239 *-*-*) ;;
4240 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4241 esac
4242 build=$ac_cv_build
4243 ac_save_IFS=$IFS; IFS='-'
4244 set x $ac_cv_build
4245 shift
4246 build_cpu=$1
4247 build_vendor=$2
4248 shift; shift
4249 # Remember, the first character of IFS is used to create $*,
4250 # except with old shells:
4251 build_os=$*
4252 IFS=$ac_save_IFS
4253 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4254
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4257 $as_echo_n "checking host system type... " >&6; }
4258 if ${ac_cv_host+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   if test "x$host_alias" = x; then
4262   ac_cv_host=$ac_cv_build
4263 else
4264   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4265     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4266 fi
4267
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4270 $as_echo "$ac_cv_host" >&6; }
4271 case $ac_cv_host in
4272 *-*-*) ;;
4273 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4274 esac
4275 host=$ac_cv_host
4276 ac_save_IFS=$IFS; IFS='-'
4277 set x $ac_cv_host
4278 shift
4279 host_cpu=$1
4280 host_vendor=$2
4281 shift; shift
4282 # Remember, the first character of IFS is used to create $*,
4283 # except with old shells:
4284 host_os=$*
4285 IFS=$ac_save_IFS
4286 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4287
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4290 $as_echo_n "checking target system type... " >&6; }
4291 if ${ac_cv_target+:} false; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   if test "x$target_alias" = x; then
4295   ac_cv_target=$ac_cv_host
4296 else
4297   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4298     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4299 fi
4300
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4303 $as_echo "$ac_cv_target" >&6; }
4304 case $ac_cv_target in
4305 *-*-*) ;;
4306 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4307 esac
4308 target=$ac_cv_target
4309 ac_save_IFS=$IFS; IFS='-'
4310 set x $ac_cv_target
4311 shift
4312 target_cpu=$1
4313 target_vendor=$2
4314 shift; shift
4315 # Remember, the first character of IFS is used to create $*,
4316 # except with old shells:
4317 target_os=$*
4318 IFS=$ac_save_IFS
4319 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4320
4321
4322 # The aliases save the names the user supplied, while $host etc.
4323 # will get canonicalized.
4324 test -n "$target_alias" &&
4325   test "$program_prefix$program_suffix$program_transform_name" = \
4326     NONENONEs,x,x, &&
4327   program_prefix=${target_alias}-
4328
4329 # Look for an extended grep
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4331 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4332 if ${ac_cv_path_GREP+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -z "$GREP"; then
4336   ac_path_GREP_found=false
4337   # Loop through the user's path and test for each of PROGNAME-LIST
4338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343     for ac_prog in grep ggrep; do
4344     for ac_exec_ext in '' $ac_executable_extensions; do
4345       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4346       as_fn_executable_p "$ac_path_GREP" || continue
4347 # Check for GNU ac_path_GREP and select it if it is found.
4348   # Check for GNU $ac_path_GREP
4349 case `"$ac_path_GREP" --version 2>&1` in
4350 *GNU*)
4351   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4352 *)
4353   ac_count=0
4354   $as_echo_n 0123456789 >"conftest.in"
4355   while :
4356   do
4357     cat "conftest.in" "conftest.in" >"conftest.tmp"
4358     mv "conftest.tmp" "conftest.in"
4359     cp "conftest.in" "conftest.nl"
4360     $as_echo 'GREP' >> "conftest.nl"
4361     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363     as_fn_arith $ac_count + 1 && ac_count=$as_val
4364     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4365       # Best one so far, save it but keep looking for a better one
4366       ac_cv_path_GREP="$ac_path_GREP"
4367       ac_path_GREP_max=$ac_count
4368     fi
4369     # 10*(2^10) chars as input seems more than enough
4370     test $ac_count -gt 10 && break
4371   done
4372   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373 esac
4374
4375       $ac_path_GREP_found && break 3
4376     done
4377   done
4378   done
4379 IFS=$as_save_IFS
4380   if test -z "$ac_cv_path_GREP"; then
4381     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4382   fi
4383 else
4384   ac_cv_path_GREP=$GREP
4385 fi
4386
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4389 $as_echo "$ac_cv_path_GREP" >&6; }
4390  GREP="$ac_cv_path_GREP"
4391
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4394 $as_echo_n "checking for egrep... " >&6; }
4395 if ${ac_cv_path_EGREP+:} false; then :
4396   $as_echo_n "(cached) " >&6
4397 else
4398   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4399    then ac_cv_path_EGREP="$GREP -E"
4400    else
4401      if test -z "$EGREP"; then
4402   ac_path_EGREP_found=false
4403   # Loop through the user's path and test for each of PROGNAME-LIST
4404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_prog in egrep; do
4410     for ac_exec_ext in '' $ac_executable_extensions; do
4411       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4412       as_fn_executable_p "$ac_path_EGREP" || continue
4413 # Check for GNU ac_path_EGREP and select it if it is found.
4414   # Check for GNU $ac_path_EGREP
4415 case `"$ac_path_EGREP" --version 2>&1` in
4416 *GNU*)
4417   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4418 *)
4419   ac_count=0
4420   $as_echo_n 0123456789 >"conftest.in"
4421   while :
4422   do
4423     cat "conftest.in" "conftest.in" >"conftest.tmp"
4424     mv "conftest.tmp" "conftest.in"
4425     cp "conftest.in" "conftest.nl"
4426     $as_echo 'EGREP' >> "conftest.nl"
4427     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429     as_fn_arith $ac_count + 1 && ac_count=$as_val
4430     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4431       # Best one so far, save it but keep looking for a better one
4432       ac_cv_path_EGREP="$ac_path_EGREP"
4433       ac_path_EGREP_max=$ac_count
4434     fi
4435     # 10*(2^10) chars as input seems more than enough
4436     test $ac_count -gt 10 && break
4437   done
4438   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4439 esac
4440
4441       $ac_path_EGREP_found && break 3
4442     done
4443   done
4444   done
4445 IFS=$as_save_IFS
4446   if test -z "$ac_cv_path_EGREP"; then
4447     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4448   fi
4449 else
4450   ac_cv_path_EGREP=$EGREP
4451 fi
4452
4453    fi
4454 fi
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4456 $as_echo "$ac_cv_path_EGREP" >&6; }
4457  EGREP="$ac_cv_path_EGREP"
4458
4459
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4462 $as_echo_n "checking whether ln -s works... " >&6; }
4463 LN_S=$as_ln_s
4464 if test "$LN_S" = "ln -s"; then
4465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4466 $as_echo "yes" >&6; }
4467 else
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4469 $as_echo "no, using $LN_S" >&6; }
4470 fi
4471
4472
4473 # Find a good install program.  We prefer a C program (faster),
4474 # so one script is as good as another.  But avoid the broken or
4475 # incompatible versions:
4476 # SysV /etc/install, /usr/sbin/install
4477 # SunOS /usr/etc/install
4478 # IRIX /sbin/install
4479 # AIX /bin/install
4480 # AmigaOS /C/install, which installs bootblocks on floppy discs
4481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4484 # OS/2's system install, which has a completely different semantic
4485 # ./install, which can be erroneously created by make from ./install.sh.
4486 # Reject install programs that cannot install multiple files.
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4489 if test -z "$INSTALL"; then
4490 if ${ac_cv_path_install+:} false; then :
4491   $as_echo_n "(cached) " >&6
4492 else
4493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498     # Account for people who put trailing slashes in PATH elements.
4499 case $as_dir/ in #((
4500   ./ | .// | /[cC]/* | \
4501   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4502   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4503   /usr/ucb/* ) ;;
4504   *)
4505     # OSF1 and SCO ODT 3.0 have their own names for install.
4506     # Don't use installbsd from OSF since it installs stuff as root
4507     # by default.
4508     for ac_prog in ginstall scoinst install; do
4509       for ac_exec_ext in '' $ac_executable_extensions; do
4510         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4511           if test $ac_prog = install &&
4512             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4513             # AIX install.  It has an incompatible calling convention.
4514             :
4515           elif test $ac_prog = install &&
4516             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4517             # program-specific install script used by HP pwplus--don't use.
4518             :
4519           else
4520             rm -rf conftest.one conftest.two conftest.dir
4521             echo one > conftest.one
4522             echo two > conftest.two
4523             mkdir conftest.dir
4524             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4525               test -s conftest.one && test -s conftest.two &&
4526               test -s conftest.dir/conftest.one &&
4527               test -s conftest.dir/conftest.two
4528             then
4529               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4530               break 3
4531             fi
4532           fi
4533         fi
4534       done
4535     done
4536     ;;
4537 esac
4538
4539   done
4540 IFS=$as_save_IFS
4541
4542 rm -rf conftest.one conftest.two conftest.dir
4543
4544 fi
4545   if test "${ac_cv_path_install+set}" = set; then
4546     INSTALL=$ac_cv_path_install
4547   else
4548     # As a last resort, use the slow shell script.  Don't cache a
4549     # value for INSTALL within a source directory, because that will
4550     # break other packages using the cache if that directory is
4551     # removed, or if the value is a relative name.
4552     INSTALL=$ac_install_sh
4553   fi
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4556 $as_echo "$INSTALL" >&6; }
4557
4558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4559 # It thinks the first close brace ends the variable substitution.
4560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4561
4562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4563
4564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4565
4566 # If $INSTALL is relative path to our fallback install-sh, then convert
4567 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4568 # may try to use it from a changed working directory.
4569 if test "$INSTALL" = "build/install-sh -c"; then
4570   INSTALL="$abs_srcdir/$INSTALL"
4571 fi
4572
4573 if test -z "$MKDIR"; then
4574   MKDIR="$INSTALL -d"
4575 fi
4576
4577
4578 # ==== Libraries, for which we may have source to build ======================
4579
4580
4581 APR_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\. 2\."
4582
4583
4584   APR_WANTED_REGEXES="$APR_VER_REGEXES"
4585
4586   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4587 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4588
4589
4590   apr_found="no"
4591
4592   if test "$ac_cv_emxos2" = "yes"; then
4593     # Scripts don't pass test -x on OS/2
4594     TEST_X="test -f"
4595   else
4596     TEST_X="test -x"
4597   fi
4598
4599   acceptable_majors="1 0"
4600
4601   apr_temp_acceptable_apr_config=""
4602   for apr_temp_major in $acceptable_majors
4603   do
4604     case $apr_temp_major in
4605       0)
4606       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4607       ;;
4608       *)
4609       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4610       ;;
4611     esac
4612   done
4613
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4615 $as_echo_n "checking for APR... " >&6; }
4616
4617 # Check whether --with-apr was given.
4618 if test "${with_apr+set}" = set; then :
4619   withval=$with_apr;
4620     if test "$withval" = "no" || test "$withval" = "yes"; then
4621       as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4622     fi
4623
4624     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4625     do
4626       for lookdir in "$withval/bin" "$withval"
4627       do
4628         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4629           apr_found="yes"
4630           apr_config="$lookdir/$apr_temp_apr_config_file"
4631           break 2
4632         fi
4633       done
4634     done
4635
4636     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4637       apr_found="yes"
4638       apr_config="$withval"
4639     fi
4640
4641             if test "$apr_found" != "yes"; then
4642       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
4643     fi
4644
4645 else
4646
4647         if test -d """"; then
4648       apr_temp_abs_srcdir="`cd "" && pwd`"
4649       apr_found="reconfig"
4650       apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4651       case $apr_bundled_major in
4652         "")
4653           as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4654         ;;
4655         0)
4656           apr_temp_apr_config_file="apr-config"
4657         ;;
4658         *)
4659           apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4660         ;;
4661       esac
4662       if test -n """"; then
4663         apr_config="""/$apr_temp_apr_config_file"
4664       else
4665         apr_config="""/$apr_temp_apr_config_file"
4666       fi
4667     fi
4668     if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4669       for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4670       do
4671         if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4672           apr_found="yes"
4673           apr_config="$apr_temp_apr_config_file"
4674           break
4675         else
4676                     for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4677             if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4678               apr_found="yes"
4679               apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4680               break 2
4681             fi
4682           done
4683         fi
4684       done
4685     fi
4686
4687 fi
4688
4689
4690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4691 $as_echo "$apr_found" >&6; }
4692
4693
4694   if test $apr_found = "no"; then
4695     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4696 $as_echo "$as_me: WARNING: APR not found" >&2;}
4697
4698   echo "The Apache Portable Runtime (APR) library cannot be found."
4699   echo "Please install APR on this system and configure Subversion"
4700   echo "with the appropriate --with-apr option."
4701   echo ""
4702   echo "You probably need to do something similar with the Apache"
4703   echo "Portable Runtime Utility (APRUTIL) library and then configure"
4704   echo "Subversion with both the --with-apr and --with-apr-util options."
4705   echo ""
4706   as_fn_error $? "no suitable APR found" "$LINENO" 5
4707
4708   fi
4709
4710   if test $apr_found = "reconfig"; then
4711     as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4712   fi
4713
4714
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4716 $as_echo_n "checking APR version... " >&6; }
4717   apr_version="`$apr_config --version`"
4718   if test $? -ne 0; then
4719     as_fn_error $? "apr-config --version failed" "$LINENO" 5
4720   fi
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4722 $as_echo "$apr_version" >&6; }
4723
4724   APR_WANTED_REGEX_MATCH=0
4725   for apr_wanted_regex in $APR_WANTED_REGEXES; do
4726     if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4727       APR_WANTED_REGEX_MATCH=1
4728       break
4729     fi
4730   done
4731
4732   if test $APR_WANTED_REGEX_MATCH -eq 0; then
4733     echo "wanted regexes are $APR_WANTED_REGEXES"
4734     as_fn_error $? "invalid apr version found" "$LINENO" 5
4735   fi
4736
4737
4738   CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4739   if test $? -ne 0; then
4740     as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4741   fi
4742
4743   CFLAGS="$CFLAGS `$apr_config --cflags`"
4744   if test $? -ne 0; then
4745     as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4746   fi
4747
4748   apr_ldflags="`$apr_config --ldflags`"
4749   if test $? -ne 0; then
4750     as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4751   fi
4752   LDFLAGS="$LDFLAGS `
4753   input_flags="$apr_ldflags"
4754   output_flags=""
4755   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4756   for flag in $input_flags; do
4757     filter="no"
4758     for dir in $filtered_dirs; do
4759       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4760         filter="yes"
4761         break
4762       fi
4763     done
4764     if test "$filter" = "no"; then
4765       output_flags="$output_flags $flag"
4766     fi
4767   done
4768   if test -n "$output_flags"; then
4769     printf "%s" "${output_flags# }"
4770   fi
4771 `"
4772
4773   SVN_APR_INCLUDES="`$apr_config --includes`"
4774   if test $? -ne 0; then
4775     as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4776   fi
4777
4778   if test "$enable_all_static" = "yes"; then
4779     SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4780     if test $? -ne 0; then
4781       as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4782     fi
4783   else
4784     SVN_APR_LIBS="`$apr_config --link-ld`"
4785     if test $? -ne 0; then
4786       as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4787     fi
4788   fi
4789   SVN_APR_LIBS="`
4790   input_flags="$SVN_APR_LIBS"
4791   output_flags=""
4792   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4793   for flag in $input_flags; do
4794     filter="no"
4795     for dir in $filtered_dirs; do
4796       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4797         filter="yes"
4798         break
4799       fi
4800     done
4801     if test "$filter" = "no"; then
4802       output_flags="$output_flags $flag"
4803     fi
4804   done
4805   if test -n "$output_flags"; then
4806     printf "%s" "${output_flags# }"
4807   fi
4808 `"
4809
4810   SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4811   if test $? -ne 0; then
4812     as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4813   fi
4814
4815   SVN_APR_CONFIG="$apr_config"
4816
4817
4818
4819
4820
4821
4822 if test `expr $apr_version : 2` -ne 0; then
4823       svn_lib_ver=2
4824     apu_config=$apr_config
4825
4826   SVN_APRUTIL_CONFIG="$apu_config"
4827
4828
4829 else
4830   svn_lib_ver=0
4831   APU_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\."
4832
4833   APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4834
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4836 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4837
4838
4839   apu_found="no"
4840
4841   if test "$ac_cv_emxos2" = "yes"; then
4842     # Scripts don't pass test -x on OS/2
4843     TEST_X="test -f"
4844   else
4845     TEST_X="test -x"
4846   fi
4847
4848   acceptable_majors="1 0"
4849
4850   apu_temp_acceptable_apu_config=""
4851   for apu_temp_major in $acceptable_majors
4852   do
4853     case $apu_temp_major in
4854       0)
4855       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4856       ;;
4857       *)
4858       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4859       ;;
4860     esac
4861   done
4862
4863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4864 $as_echo_n "checking for APR-util... " >&6; }
4865
4866 # Check whether --with-apr-util was given.
4867 if test "${with_apr_util+set}" = set; then :
4868   withval=$with_apr_util;
4869     if test "$withval" = "no" || test "$withval" = "yes"; then
4870       as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4871     fi
4872
4873     for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4874     do
4875       for lookdir in "$withval/bin" "$withval"
4876       do
4877         if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4878           apu_found="yes"
4879           apu_config="$lookdir/$apu_temp_apu_config_file"
4880           break 2
4881         fi
4882       done
4883     done
4884
4885     if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4886       apu_found="yes"
4887       apu_config="$withval"
4888     fi
4889
4890             if test "$apu_found" != "yes"; then
4891       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
4892     fi
4893
4894 else
4895
4896         if test -d """"; then
4897       apu_temp_abs_srcdir="`cd "" && pwd`"
4898       apu_found="reconfig"
4899       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
4900       case $apu_bundled_major in
4901         "")
4902           as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4903         ;;
4904         0)
4905           apu_temp_apu_config_file="apu-config"
4906         ;;
4907         *)
4908           apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4909         ;;
4910       esac
4911       if test -n """"; then
4912         apu_config="""/$apu_temp_apu_config_file"
4913       else
4914         apu_config="""/$apu_temp_apu_config_file"
4915       fi
4916     fi
4917     if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
4918       for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4919       do
4920         if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4921           apu_found="yes"
4922           apu_config="$apu_temp_apu_config_file"
4923           break
4924         else
4925                     for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4926             if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4927               apu_found="yes"
4928               apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4929               break 2
4930             fi
4931           done
4932         fi
4933       done
4934     fi
4935
4936 fi
4937
4938
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4940 $as_echo "$apu_found" >&6; }
4941
4942
4943   if test $apu_found = "no"; then
4944     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
4945 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
4946
4947   echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
4948   echo "Install APRUTIL on this system and configure Subversion with the"
4949   echo " appropriate --with-apr-util option."
4950   echo ""
4951   as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
4952
4953   fi
4954
4955   if test $apu_found = "reconfig"; then
4956     as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
4957   fi
4958
4959
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
4961 $as_echo_n "checking APRUTIL version... " >&6; }
4962   apu_version="`$apu_config --version`"
4963   if test $? -ne 0; then
4964     # This is a hack as suggested by Ben Collins-Sussman.  It can be
4965     # removed after apache 2.0.44 has been released.  (The apu-config
4966     # shipped in 2.0.43 contains a correct version number, but
4967     # stupidly doesn't understand the --version switch.)
4968     apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
4969     #AC_MSG_ERROR([
4970     #    apu-config --version failed.
4971     #    Your apu-config doesn't support the --version switch, please upgrade
4972     #    to APR-UTIL more recent than 2002-Nov-05.])
4973   fi
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
4975 $as_echo "$apu_version" >&6; }
4976
4977   APU_WANTED_REGEX_MATCH=0
4978   for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
4979     if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
4980       APU_WANTED_REGEX_MATCH=1
4981       break
4982     fi
4983   done
4984
4985   if test $APU_WANTED_REGEX_MATCH -eq 0; then
4986     echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
4987     as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
4988   fi
4989
4990
4991   apu_ldflags="`$apu_config --ldflags`"
4992   if test $? -ne 0; then
4993     as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
4994   fi
4995   LDFLAGS="$LDFLAGS `
4996   input_flags="$apu_ldflags"
4997   output_flags=""
4998   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4999   for flag in $input_flags; do
5000     filter="no"
5001     for dir in $filtered_dirs; do
5002       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5003         filter="yes"
5004         break
5005       fi
5006     done
5007     if test "$filter" = "no"; then
5008       output_flags="$output_flags $flag"
5009     fi
5010   done
5011   if test -n "$output_flags"; then
5012     printf "%s" "${output_flags# }"
5013   fi
5014 `"
5015
5016   SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5017   if test $? -ne 0; then
5018     as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5019   fi
5020
5021   if test "$enable_all_static" = "yes"; then
5022     SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5023     if test $? -ne 0; then
5024       as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5025     fi
5026   else
5027     SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5028     if test $? -ne 0; then
5029       as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5030     fi
5031   fi
5032   SVN_APRUTIL_LIBS="`
5033   input_flags="$SVN_APRUTIL_LIBS"
5034   output_flags=""
5035   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5036   for flag in $input_flags; do
5037     filter="no"
5038     for dir in $filtered_dirs; do
5039       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5040         filter="yes"
5041         break
5042       fi
5043     done
5044     if test "$filter" = "no"; then
5045       output_flags="$output_flags $flag"
5046     fi
5047   done
5048   if test -n "$output_flags"; then
5049     printf "%s" "${output_flags# }"
5050   fi
5051 `"
5052
5053
5054   SVN_APRUTIL_CONFIG="$apu_config"
5055
5056
5057
5058     SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5059   if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5060
5061 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5062
5063   fi
5064
5065 fi
5066 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5067
5068
5069 cat >>confdefs.h <<_ACEOF
5070 #define SVN_SOVERSION $svn_lib_ver
5071 _ACEOF
5072
5073
5074 # Extract the first word of "pkg-config", so it can be a program name with args.
5075 set dummy pkg-config; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   case $PKG_CONFIG in
5082   [\\/]* | ?:[\\/]*)
5083   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5084   ;;
5085   *)
5086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091     for ac_exec_ext in '' $ac_executable_extensions; do
5092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098   done
5099 IFS=$as_save_IFS
5100
5101   ;;
5102 esac
5103 fi
5104 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5105 if test -n "$PKG_CONFIG"; then
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5107 $as_echo "$PKG_CONFIG" >&6; }
5108 else
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5117 $as_echo_n "checking for ANSI C header files... " >&6; }
5118 if ${ac_cv_header_stdc+:} false; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h.  */
5123 #include <stdlib.h>
5124 #include <stdarg.h>
5125 #include <string.h>
5126 #include <float.h>
5127
5128 int
5129 main ()
5130 {
5131
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 if ac_fn_c_try_compile "$LINENO"; then :
5137   ac_cv_header_stdc=yes
5138 else
5139   ac_cv_header_stdc=no
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142
5143 if test $ac_cv_header_stdc = yes; then
5144   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h.  */
5147 #include <string.h>
5148
5149 _ACEOF
5150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151   $EGREP "memchr" >/dev/null 2>&1; then :
5152
5153 else
5154   ac_cv_header_stdc=no
5155 fi
5156 rm -f conftest*
5157
5158 fi
5159
5160 if test $ac_cv_header_stdc = yes; then
5161   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h.  */
5164 #include <stdlib.h>
5165
5166 _ACEOF
5167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5168   $EGREP "free" >/dev/null 2>&1; then :
5169
5170 else
5171   ac_cv_header_stdc=no
5172 fi
5173 rm -f conftest*
5174
5175 fi
5176
5177 if test $ac_cv_header_stdc = yes; then
5178   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5179   if test "$cross_compiling" = yes; then :
5180   :
5181 else
5182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h.  */
5184 #include <ctype.h>
5185 #include <stdlib.h>
5186 #if ((' ' & 0x0FF) == 0x020)
5187 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5188 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5189 #else
5190 # define ISLOWER(c) \
5191                    (('a' <= (c) && (c) <= 'i') \
5192                      || ('j' <= (c) && (c) <= 'r') \
5193                      || ('s' <= (c) && (c) <= 'z'))
5194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5195 #endif
5196
5197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5198 int
5199 main ()
5200 {
5201   int i;
5202   for (i = 0; i < 256; i++)
5203     if (XOR (islower (i), ISLOWER (i))
5204         || toupper (i) != TOUPPER (i))
5205       return 2;
5206   return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_c_try_run "$LINENO"; then :
5210
5211 else
5212   ac_cv_header_stdc=no
5213 fi
5214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5215   conftest.$ac_objext conftest.beam conftest.$ac_ext
5216 fi
5217
5218 fi
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5221 $as_echo "$ac_cv_header_stdc" >&6; }
5222 if test $ac_cv_header_stdc = yes; then
5223
5224 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5225
5226 fi
5227
5228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5230                   inttypes.h stdint.h unistd.h
5231 do :
5232   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5234 "
5235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5236   cat >>confdefs.h <<_ACEOF
5237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5239
5240 fi
5241
5242 done
5243
5244
5245
5246   serf_found=no
5247   serf_required=no
5248   serf_skip=no
5249
5250   serf_check_major="1"
5251   serf_check_minor="2"
5252   serf_check_patch="1"
5253   serf_check_version="1.2.1"
5254
5255
5256 # Check whether --with-serf was given.
5257 if test "${with_serf+set}" = set; then :
5258   withval=$with_serf;
5259     if test "$withval" = "yes" ; then
5260       serf_required=yes
5261     elif test "$withval" = "no" ; then
5262       serf_skip=yes
5263     else
5264
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5266 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5267   serf_required=yes
5268   serf_prefix=$withval
5269   for serf_major in serf-2 serf-1; do
5270     if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5271     save_cppflags="$CPPFLAGS"
5272     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5273     for ac_header in serf.h
5274 do :
5275   ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5276 if test "x$ac_cv_header_serf_h" = xyes; then :
5277   cat >>confdefs.h <<_ACEOF
5278 #define HAVE_SERF_H 1
5279 _ACEOF
5280
5281       save_ldflags="$LDFLAGS"
5282       LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
5283       as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5285 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5286 if eval \${$as_ac_Lib+:} false; then :
5287   $as_echo_n "(cached) " >&6
5288 else
5289   ac_check_lib_save_LIBS=$LIBS
5290 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h.  */
5293
5294 /* Override any GCC internal prototype to avoid an error.
5295    Use char because int might match the return type of a GCC
5296    builtin and then its argument prototype would still apply.  */
5297 #ifdef __cplusplus
5298 extern "C"
5299 #endif
5300 char serf_context_create ();
5301 int
5302 main ()
5303 {
5304 return serf_context_create ();
5305   ;
5306   return 0;
5307 }
5308 _ACEOF
5309 if ac_fn_c_try_link "$LINENO"; then :
5310   eval "$as_ac_Lib=yes"
5311 else
5312   eval "$as_ac_Lib=no"
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext \
5315     conftest$ac_exeext conftest.$ac_ext
5316 LIBS=$ac_check_lib_save_LIBS
5317 fi
5318 eval ac_res=\$$as_ac_Lib
5319                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5320 $as_echo "$ac_res" >&6; }
5321 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5322
5323         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h.  */
5325
5326 #include <stdlib.h>
5327 #include "serf.h"
5328
5329 int
5330 main ()
5331 {
5332
5333 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5334 #error Serf version too old: need $serf_check_version
5335 #endif
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342   serf_found=yes
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5345 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5346       serf_found=no
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 fi
5350
5351     LDFLAGS="$save_ldflags"
5352 fi
5353
5354 done
5355
5356     CPPFLAGS="$save_cppflags"
5357     test $serf_found = yes && break
5358   done
5359
5360   if test $serf_found = "yes"; then
5361     SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5362     if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5363       SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5364     else
5365       SVN_SERF_LIBS="-l$serf_major"
5366       LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
5367     fi
5368   fi
5369
5370     fi
5371
5372 fi
5373
5374
5375   if test "$serf_skip" = "no" ; then
5376     if test "$serf_found" = "no" ; then
5377
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5379 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5380   if test -n "$PKG_CONFIG"; then
5381     for serf_major in serf-2 serf-1; do
5382       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5383 $as_echo_n "checking for $serf_major library... " >&6; }
5384       if $PKG_CONFIG $serf_major --exists; then
5385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5386 $as_echo "yes" >&6; }
5387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5388 $as_echo_n "checking serf library version... " >&6; }
5389         SERF_VERSION=`$PKG_CONFIG $serf_major --modversion`
5390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5391 $as_echo "$SERF_VERSION" >&6; }
5392         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5393 $as_echo_n "checking serf version is suitable... " >&6; }
5394         if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then
5395           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396 $as_echo "yes" >&6; }
5397           serf_found=yes
5398           SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'`
5399           SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs`
5400           break
5401         else
5402           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5405 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5406         fi
5407       else
5408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410       fi
5411     done
5412   fi
5413
5414     fi
5415
5416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5417 $as_echo_n "checking was serf enabled... " >&6; }
5418     if test "$serf_found" = "yes"; then
5419       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5420 $as_echo "yes" >&6; }
5421     else
5422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424
5425   echo ""
5426   echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5427   echo "will not be built.  If you want to build libsvn_ra_serf, please"
5428   echo "install serf $serf_check_version or newer."
5429   echo ""
5430
5431       if test "$serf_required" = "yes"; then
5432         as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5433       fi
5434     fi
5435   fi
5436
5437   svn_lib_serf=$serf_found
5438
5439
5440
5441
5442
5443 if test "$svn_lib_serf" = "yes"; then
5444
5445 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5446
5447 fi
5448
5449
5450   apr_memcache_found=no
5451
5452
5453 # Check whether --with-apr_memcache was given.
5454 if test "${with_apr_memcache+set}" = set; then :
5455   withval=$with_apr_memcache;
5456     if test "$withval" = "yes" ; then
5457       as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5458     else
5459       { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5460 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5461       apr_memcache_prefix=$withval
5462       save_cppflags="$CPPFLAGS"
5463       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5464       ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5465 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5466
5467         save_ldflags="$LDFLAGS"
5468         LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5469         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5470 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5471 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5472   $as_echo_n "(cached) " >&6
5473 else
5474   ac_check_lib_save_LIBS=$LIBS
5475 LIBS="-lapr_memcache  $LIBS"
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478
5479 /* Override any GCC internal prototype to avoid an error.
5480    Use char because int might match the return type of a GCC
5481    builtin and then its argument prototype would still apply.  */
5482 #ifdef __cplusplus
5483 extern "C"
5484 #endif
5485 char apr_memcache_create ();
5486 int
5487 main ()
5488 {
5489 return apr_memcache_create ();
5490   ;
5491   return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_link "$LINENO"; then :
5495   ac_cv_lib_apr_memcache_apr_memcache_create=yes
5496 else
5497   ac_cv_lib_apr_memcache_apr_memcache_create=no
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext \
5500     conftest$ac_exeext conftest.$ac_ext
5501 LIBS=$ac_check_lib_save_LIBS
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5504 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5505 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5506   apr_memcache_found="standalone"
5507 fi
5508
5509         LDFLAGS="$save_ldflags"
5510 fi
5511
5512
5513       CPPFLAGS="$save_cppflags"
5514     fi
5515
5516 else
5517
5518     { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5519 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5520     save_cppflags="$CPPFLAGS"
5521     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5522     ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5523 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5524
5525       save_ldflags="$LDFLAGS"
5526       LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5527       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5528 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5529 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532   ac_check_lib_save_LIBS=$LIBS
5533 LIBS="-laprutil-1  $LIBS"
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h.  */
5536
5537 /* Override any GCC internal prototype to avoid an error.
5538    Use char because int might match the return type of a GCC
5539    builtin and then its argument prototype would still apply.  */
5540 #ifdef __cplusplus
5541 extern "C"
5542 #endif
5543 char apr_memcache_create ();
5544 int
5545 main ()
5546 {
5547 return apr_memcache_create ();
5548   ;
5549   return 0;
5550 }
5551 _ACEOF
5552 if ac_fn_c_try_link "$LINENO"; then :
5553   ac_cv_lib_aprutil_1_apr_memcache_create=yes
5554 else
5555   ac_cv_lib_aprutil_1_apr_memcache_create=no
5556 fi
5557 rm -f core conftest.err conftest.$ac_objext \
5558     conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5562 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5563 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5564   apr_memcache_found="aprutil"
5565 fi
5566
5567       LDFLAGS="$save_ldflags"
5568 fi
5569
5570
5571     CPPFLAGS="$save_cppflags"
5572
5573 fi
5574
5575
5576
5577   if test $apr_memcache_found = "standalone"; then
5578     SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5579     SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5580     svn_lib_apr_memcache=yes
5581   elif test $apr_memcache_found = "aprutil"; then
5582     SVN_APR_MEMCACHE_INCLUDES=""
5583     SVN_APR_MEMCACHE_LIBS=""
5584     svn_lib_apr_memcache=yes
5585   elif test $apr_memcache_found = "reconfig"; then
5586     svn_lib_apr_memcache=yes
5587   else
5588     svn_lib_apr_memcache=no
5589   fi
5590
5591
5592
5593
5594
5595 if test "$svn_lib_apr_memcache" = "yes"; then
5596
5597 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5598
5599 fi
5600
5601
5602
5603
5604
5605 HTTPD_WANTED_MMN="20020903"
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5608 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5609
5610 # Check whether --with-apxs was given.
5611 if test "${with_apxs+set}" = set; then :
5612   withval=$with_apxs;
5613     if test "$withval" = "yes"; then
5614       APXS=apxs
5615     else
5616       APXS="$withval"
5617     fi
5618     APXS_EXPLICIT=1
5619
5620 fi
5621
5622
5623 if test -z "$APXS"; then
5624   for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5625     if test -f "$i/apxs2"; then
5626       APXS="$i/apxs2"
5627       break
5628     fi
5629     if test -f "$i/apxs"; then
5630       APXS="$i/apxs"
5631       break
5632     fi
5633   done
5634 fi
5635
5636 if test -n "$APXS" && test "$APXS" != "no"; then
5637     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5638     if test -r $APXS_INCLUDE/mod_dav.h; then
5639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5640 $as_echo "found at $APXS" >&6; }
5641
5642         { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5643 $as_echo_n "checking httpd version... " >&6; }
5644         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h.  */
5646
5647 #include "$APXS_INCLUDE/ap_mmn.h"
5648 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5649 VERSION_OKAY
5650 #endif
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653   $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5655 $as_echo "recent enough" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5658 $as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5659          if test "$APXS_EXPLICIT" != ""; then
5660              as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5661          fi
5662          APXS=""
5663
5664 fi
5665 rm -f conftest*
5666
5667
5668     elif test "$APXS_EXPLICIT" != ""; then
5669         as_fn_error $? "no - APXS refers to an old version of Apache
5670                       Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5671     else
5672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5673 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5674         APXS=""
5675     fi
5676 else
5677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681 if test -n "$APXS" && test "$APXS" != "no"; then
5682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5683 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5684   apr_major_version="${apr_version%%.*}"
5685   case "$apr_major_version" in
5686     0)
5687       apache_minor_version_wanted_regex="0"
5688       ;;
5689     1)
5690       apache_minor_version_wanted_regex="[1-5]"
5691       ;;
5692     2)
5693       apache_minor_version_wanted_regex="[3-5]"
5694       ;;
5695     *)
5696       as_fn_error $? "unknown APR version" "$LINENO" 5
5697       ;;
5698   esac
5699   old_CPPFLAGS="$CPPFLAGS"
5700   CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h.  */
5703
5704 #include "$APXS_INCLUDE/ap_release.h"
5705 apache_minor_version=AP_SERVER_MINORVERSION
5706 _ACEOF
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708   $EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then :
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5711 else
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714                 as_fn_error $? "Apache version incompatible with APR version" "$LINENO" 5
5715 fi
5716 rm -f conftest*
5717
5718   CPPFLAGS="$old_CPPFLAGS"
5719 fi
5720
5721
5722 # Check whether --with-apache-libexecdir was given.
5723 if test "${with_apache_libexecdir+set}" = set; then :
5724   withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5725 else
5726   APACHE_LIBEXECDIR='no'
5727 fi
5728
5729
5730 INSTALL_APACHE_MODS=false
5731 if test -n "$APXS" && test "$APXS" != "no"; then
5732     APXS_CC="`$APXS -q CC`"
5733     APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5734
5735     if test "$APACHE_LIBEXECDIR" = 'no'; then
5736         APACHE_LIBEXECDIR="$libexecdir"
5737     elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5738         APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5739     fi
5740
5741     BUILD_APACHE_RULE=apache-mod
5742     INSTALL_APACHE_RULE=install-mods-shared
5743     INSTALL_APACHE_MODS=true
5744
5745     case $host in
5746       *-*-cygwin*)
5747         APACHE_LDFLAGS="-shrext .so"
5748         ;;
5749     esac
5750 elif test x"$APXS" != x"no"; then
5751     echo "=================================================================="
5752     echo "WARNING: skipping the build of mod_dav_svn"
5753     echo "         try using --with-apxs"
5754     echo "=================================================================="
5755 fi
5756
5757
5758
5759
5760
5761
5762
5763 # there aren't any flags that interest us ...
5764 #if test -n "$APXS" && test "$APXS" != "no"; then
5765 #  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
5766 #fi
5767
5768 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
5769   echo "=================================================================="
5770   echo "WARNING: You have chosen to compile Subversion with a different"
5771   echo "         compiler than the one used to compile Apache."
5772   echo ""
5773   echo "    Current compiler:      $CC"
5774   echo "   Apache's compiler:      $APXS_CC"
5775   echo ""
5776   echo "This could cause some problems."
5777   echo "=================================================================="
5778 fi
5779
5780
5781
5782 SQLITE_MINIMUM_VER="3.7.12"
5783 SQLITE_RECOMMENDED_VER="3.7.15.1"
5784 SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
5785
5786
5787   SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
5788   SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
5789   SQLITE_URL="${SQLITE_URL}"
5790   SQLITE_PKGNAME="sqlite3"
5791
5792
5793
5794   version_string="$SQLITE_MINIMUM_VER"
5795
5796   major=`expr $version_string : '\([0-9]*\)'`
5797   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
5798   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5799   if test -z "$micro"; then
5800     micro=0
5801   fi
5802   sqlite_min_ver_num=`expr $major \* 1000000 \
5803         \+ $minor \* 1000 \
5804         \+ $micro`
5805
5806
5807
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
5809 $as_echo "$as_me: checking sqlite library" >&6;}
5810
5811
5812 # Check whether --with-sqlite was given.
5813 if test "${with_sqlite+set}" = set; then :
5814   withval=$with_sqlite;
5815     if test "$withval" = "yes" ; then
5816       as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
5817     else
5818       sqlite_dir="$withval"
5819     fi
5820
5821     if test -d $sqlite_dir; then
5822
5823   if test -z "$sqlite_dir"; then
5824     sqlite_dir=""
5825     sqlite_include="sqlite3.h"
5826   else
5827     sqlite_dir="$sqlite_dir"
5828     sqlite_include="$sqlite_dir/include/sqlite3.h"
5829   fi
5830
5831   save_CPPFLAGS="$CPPFLAGS"
5832   save_LDFLAGS="$LDFLAGS"
5833
5834   if test ! -z "$sqlite_dir"; then
5835     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
5836     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
5837   fi
5838
5839   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5840 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5841
5842       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
5843 $as_echo_n "checking sqlite library version (via header)... " >&6; }
5844       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h.  */
5846
5847 #include "$sqlite_include"
5848 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5849 SQLITE_VERSION_OKAY
5850 #endif
5851 _ACEOF
5852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5853   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
5855 $as_echo "okay" >&6; }
5856                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
5857 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
5858 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
5859   $as_echo_n "(cached) " >&6
5860 else
5861   ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-lsqlite3  $LIBS"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h.  */
5865
5866 /* Override any GCC internal prototype to avoid an error.
5867    Use char because int might match the return type of a GCC
5868    builtin and then its argument prototype would still apply.  */
5869 #ifdef __cplusplus
5870 extern "C"
5871 #endif
5872 char sqlite3_close ();
5873 int
5874 main ()
5875 {
5876 return sqlite3_close ();
5877   ;
5878   return 0;
5879 }
5880 _ACEOF
5881 if ac_fn_c_try_link "$LINENO"; then :
5882   ac_cv_lib_sqlite3_sqlite3_close=yes
5883 else
5884   ac_cv_lib_sqlite3_sqlite3_close=no
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext \
5887     conftest$ac_exeext conftest.$ac_ext
5888 LIBS=$ac_check_lib_save_LIBS
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
5891 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
5892 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
5893
5894                       svn_lib_sqlite="yes"
5895                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
5896                         SVN_SQLITE_LIBS="-lsqlite3"
5897                       else
5898                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
5899                         SVN_SQLITE_LIBS="`
5900   input_flags="-L$sqlite_dir/lib -lsqlite3"
5901   output_flags=""
5902   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5903   for flag in $input_flags; do
5904     filter="no"
5905     for dir in $filtered_dirs; do
5906       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5907         filter="yes"
5908         break
5909       fi
5910     done
5911     if test "$filter" = "no"; then
5912       output_flags="$output_flags $flag"
5913     fi
5914   done
5915   if test -n "$output_flags"; then
5916     printf "%s" "${output_flags# }"
5917   fi
5918 `"
5919                       fi
5920
5921 fi
5922
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
5925 $as_echo "unsupported SQLite version" >&6; }
5926 fi
5927 rm -f conftest*
5928
5929
5930 fi
5931
5932
5933
5934   CPPFLAGS="$save_CPPFLAGS"
5935   LDFLAGS="$save_LDFLAGS"
5936
5937     else
5938
5939   sqlite_amalg="$sqlite_dir"
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
5941 $as_echo_n "checking sqlite amalgamation... " >&6; }
5942   if test ! -e $sqlite_amalg; then
5943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945   else
5946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947 $as_echo "yes" >&6; }
5948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
5949 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
5950     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h.  */
5952
5953 #include "$sqlite_amalg"
5954 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5955 SQLITE_VERSION_OKAY
5956 #endif
5957 _ACEOF
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
5961 $as_echo "amalgamation found and is okay" >&6; }
5962
5963   case $host_os in
5964   beos* | mingw* | pw32* | cegcc* | cygwin*)
5965     svn_sqlite_dso_ldflags=
5966     ;;
5967
5968   darwin*)
5969   # if libdl is installed we need to link against it
5970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5971 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5972 if ${ac_cv_lib_dl_dlopen+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   ac_check_lib_save_LIBS=$LIBS
5976 LIBS="-ldl  $LIBS"
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h.  */
5979
5980 /* Override any GCC internal prototype to avoid an error.
5981    Use char because int might match the return type of a GCC
5982    builtin and then its argument prototype would still apply.  */
5983 #ifdef __cplusplus
5984 extern "C"
5985 #endif
5986 char dlopen ();
5987 int
5988 main ()
5989 {
5990 return dlopen ();
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 if ac_fn_c_try_link "$LINENO"; then :
5996   ac_cv_lib_dl_dlopen=yes
5997 else
5998   ac_cv_lib_dl_dlopen=no
5999 fi
6000 rm -f core conftest.err conftest.$ac_objext \
6001     conftest$ac_exeext conftest.$ac_ext
6002 LIBS=$ac_check_lib_save_LIBS
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6005 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6006 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6007   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6008 else
6009
6010     svn_sqlite_dso_ldflags=
6011
6012 fi
6013
6014     ;;
6015
6016   *)
6017     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6018 if test "x$ac_cv_func_shl_load" = xyes; then :
6019   svn_sqlite_dso_ldflags=
6020 else
6021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6022 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6023 if ${ac_cv_lib_dld_shl_load+:} false; then :
6024   $as_echo_n "(cached) " >&6
6025 else
6026   ac_check_lib_save_LIBS=$LIBS
6027 LIBS="-ldld  $LIBS"
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h.  */
6030
6031 /* Override any GCC internal prototype to avoid an error.
6032    Use char because int might match the return type of a GCC
6033    builtin and then its argument prototype would still apply.  */
6034 #ifdef __cplusplus
6035 extern "C"
6036 #endif
6037 char shl_load ();
6038 int
6039 main ()
6040 {
6041 return shl_load ();
6042   ;
6043   return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_c_try_link "$LINENO"; then :
6047   ac_cv_lib_dld_shl_load=yes
6048 else
6049   ac_cv_lib_dld_shl_load=no
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext \
6052     conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6056 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6057 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6058   svn_sqlite_dso_ldflags="-ldld"
6059 else
6060   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6061 if test "x$ac_cv_func_dlopen" = xyes; then :
6062   svn_sqlite_dso_ldflags=
6063 else
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6066 if ${ac_cv_lib_dl_dlopen+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   ac_check_lib_save_LIBS=$LIBS
6070 LIBS="-ldl  $LIBS"
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073
6074 /* Override any GCC internal prototype to avoid an error.
6075    Use char because int might match the return type of a GCC
6076    builtin and then its argument prototype would still apply.  */
6077 #ifdef __cplusplus
6078 extern "C"
6079 #endif
6080 char dlopen ();
6081 int
6082 main ()
6083 {
6084 return dlopen ();
6085   ;
6086   return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_link "$LINENO"; then :
6090   ac_cv_lib_dl_dlopen=yes
6091 else
6092   ac_cv_lib_dl_dlopen=no
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext \
6095     conftest$ac_exeext conftest.$ac_ext
6096 LIBS=$ac_check_lib_save_LIBS
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6100 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6101   svn_sqlite_dso_ldflags="-ldl"
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6104 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6105 if ${ac_cv_lib_svld_dlopen+:} false; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108   ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lsvld  $LIBS"
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h.  */
6112
6113 /* Override any GCC internal prototype to avoid an error.
6114    Use char because int might match the return type of a GCC
6115    builtin and then its argument prototype would still apply.  */
6116 #ifdef __cplusplus
6117 extern "C"
6118 #endif
6119 char dlopen ();
6120 int
6121 main ()
6122 {
6123 return dlopen ();
6124   ;
6125   return 0;
6126 }
6127 _ACEOF
6128 if ac_fn_c_try_link "$LINENO"; then :
6129   ac_cv_lib_svld_dlopen=yes
6130 else
6131   ac_cv_lib_svld_dlopen=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext \
6134     conftest$ac_exeext conftest.$ac_ext
6135 LIBS=$ac_check_lib_save_LIBS
6136 fi
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6138 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6139 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6140   svn_sqlite_dso_ldflags="-lsvld"
6141 else
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6143 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6144 if ${ac_cv_lib_dld_dld_link+:} false; then :
6145   $as_echo_n "(cached) " >&6
6146 else
6147   ac_check_lib_save_LIBS=$LIBS
6148 LIBS="-ldld  $LIBS"
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h.  */
6151
6152 /* Override any GCC internal prototype to avoid an error.
6153    Use char because int might match the return type of a GCC
6154    builtin and then its argument prototype would still apply.  */
6155 #ifdef __cplusplus
6156 extern "C"
6157 #endif
6158 char dld_link ();
6159 int
6160 main ()
6161 {
6162 return dld_link ();
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 if ac_fn_c_try_link "$LINENO"; then :
6168   ac_cv_lib_dld_dld_link=yes
6169 else
6170   ac_cv_lib_dld_dld_link=no
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext \
6173     conftest$ac_exeext conftest.$ac_ext
6174 LIBS=$ac_check_lib_save_LIBS
6175 fi
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6177 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6178 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6179   svn_sqlite_dso_ldflags="-ldld"
6180 fi
6181
6182
6183 fi
6184
6185
6186 fi
6187
6188
6189 fi
6190
6191
6192 fi
6193
6194
6195 fi
6196
6197     ;;
6198   esac
6199
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6201 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6202   if test -n "$svn_sqlite_dso_ldflags"; then
6203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6204 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6205   else
6206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6207 $as_echo "none" >&6; }
6208   fi
6209
6210
6211 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6212
6213                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6214                   if test -n "$svn_sqlite_dso_ldflags"; then
6215                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6216                   else
6217                     SVN_SQLITE_LIBS="-lpthread"
6218                   fi
6219                   svn_lib_sqlite="yes"
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6222 $as_echo "unsupported amalgamation SQLite version" >&6; }
6223 fi
6224 rm -f conftest*
6225
6226   fi
6227
6228     fi
6229
6230     if test -z "$svn_lib_sqlite"; then
6231       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6232 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6233
6234   echo ""
6235   echo "An appropriate version of sqlite could not be found.  We recommmend"
6236   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6237   echo "Please either install a newer sqlite on this system"
6238   echo ""
6239   echo "or"
6240   echo ""
6241   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6242   echo "    ${SQLITE_URL}"
6243   echo "unpack the archive using unzip and rename the resulting"
6244   echo "directory to:"
6245   echo "$abs_srcdir/sqlite-amalgamation"
6246   if test x"$abs_srcdir" != x"$abs_builddir"; then
6247     echo "or to:"
6248     echo "$abs_builddir/sqlite-amalgamation"
6249   fi
6250   echo ""
6251   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6252
6253     fi
6254
6255 else
6256
6257
6258   sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6260 $as_echo_n "checking sqlite amalgamation... " >&6; }
6261   if test ! -e $sqlite_amalg; then
6262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264   else
6265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6266 $as_echo "yes" >&6; }
6267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6268 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h.  */
6271
6272 #include "$sqlite_amalg"
6273 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6274 SQLITE_VERSION_OKAY
6275 #endif
6276 _ACEOF
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6280 $as_echo "amalgamation found and is okay" >&6; }
6281
6282   case $host_os in
6283   beos* | mingw* | pw32* | cegcc* | cygwin*)
6284     svn_sqlite_dso_ldflags=
6285     ;;
6286
6287   darwin*)
6288   # if libdl is installed we need to link against it
6289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6291 if ${ac_cv_lib_dl_dlopen+:} false; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   ac_check_lib_save_LIBS=$LIBS
6295 LIBS="-ldl  $LIBS"
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h.  */
6298
6299 /* Override any GCC internal prototype to avoid an error.
6300    Use char because int might match the return type of a GCC
6301    builtin and then its argument prototype would still apply.  */
6302 #ifdef __cplusplus
6303 extern "C"
6304 #endif
6305 char dlopen ();
6306 int
6307 main ()
6308 {
6309 return dlopen ();
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 if ac_fn_c_try_link "$LINENO"; then :
6315   ac_cv_lib_dl_dlopen=yes
6316 else
6317   ac_cv_lib_dl_dlopen=no
6318 fi
6319 rm -f core conftest.err conftest.$ac_objext \
6320     conftest$ac_exeext conftest.$ac_ext
6321 LIBS=$ac_check_lib_save_LIBS
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6325 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6326   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6327 else
6328
6329     svn_sqlite_dso_ldflags=
6330
6331 fi
6332
6333     ;;
6334
6335   *)
6336     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6337 if test "x$ac_cv_func_shl_load" = xyes; then :
6338   svn_sqlite_dso_ldflags=
6339 else
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6341 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6342 if ${ac_cv_lib_dld_shl_load+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   ac_check_lib_save_LIBS=$LIBS
6346 LIBS="-ldld  $LIBS"
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h.  */
6349
6350 /* Override any GCC internal prototype to avoid an error.
6351    Use char because int might match the return type of a GCC
6352    builtin and then its argument prototype would still apply.  */
6353 #ifdef __cplusplus
6354 extern "C"
6355 #endif
6356 char shl_load ();
6357 int
6358 main ()
6359 {
6360 return shl_load ();
6361   ;
6362   return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_link "$LINENO"; then :
6366   ac_cv_lib_dld_shl_load=yes
6367 else
6368   ac_cv_lib_dld_shl_load=no
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext \
6371     conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6375 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6376 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6377   svn_sqlite_dso_ldflags="-ldld"
6378 else
6379   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6380 if test "x$ac_cv_func_dlopen" = xyes; then :
6381   svn_sqlite_dso_ldflags=
6382 else
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6385 if ${ac_cv_lib_dl_dlopen+:} false; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   ac_check_lib_save_LIBS=$LIBS
6389 LIBS="-ldl  $LIBS"
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h.  */
6392
6393 /* Override any GCC internal prototype to avoid an error.
6394    Use char because int might match the return type of a GCC
6395    builtin and then its argument prototype would still apply.  */
6396 #ifdef __cplusplus
6397 extern "C"
6398 #endif
6399 char dlopen ();
6400 int
6401 main ()
6402 {
6403 return dlopen ();
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 if ac_fn_c_try_link "$LINENO"; then :
6409   ac_cv_lib_dl_dlopen=yes
6410 else
6411   ac_cv_lib_dl_dlopen=no
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext \
6414     conftest$ac_exeext conftest.$ac_ext
6415 LIBS=$ac_check_lib_save_LIBS
6416 fi
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6419 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6420   svn_sqlite_dso_ldflags="-ldl"
6421 else
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6424 if ${ac_cv_lib_svld_dlopen+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   ac_check_lib_save_LIBS=$LIBS
6428 LIBS="-lsvld  $LIBS"
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h.  */
6431
6432 /* Override any GCC internal prototype to avoid an error.
6433    Use char because int might match the return type of a GCC
6434    builtin and then its argument prototype would still apply.  */
6435 #ifdef __cplusplus
6436 extern "C"
6437 #endif
6438 char dlopen ();
6439 int
6440 main ()
6441 {
6442 return dlopen ();
6443   ;
6444   return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_link "$LINENO"; then :
6448   ac_cv_lib_svld_dlopen=yes
6449 else
6450   ac_cv_lib_svld_dlopen=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext \
6453     conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6458 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6459   svn_sqlite_dso_ldflags="-lsvld"
6460 else
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6463 if ${ac_cv_lib_dld_dld_link+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   ac_check_lib_save_LIBS=$LIBS
6467 LIBS="-ldld  $LIBS"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h.  */
6470
6471 /* Override any GCC internal prototype to avoid an error.
6472    Use char because int might match the return type of a GCC
6473    builtin and then its argument prototype would still apply.  */
6474 #ifdef __cplusplus
6475 extern "C"
6476 #endif
6477 char dld_link ();
6478 int
6479 main ()
6480 {
6481 return dld_link ();
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_link "$LINENO"; then :
6487   ac_cv_lib_dld_dld_link=yes
6488 else
6489   ac_cv_lib_dld_dld_link=no
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext \
6492     conftest$ac_exeext conftest.$ac_ext
6493 LIBS=$ac_check_lib_save_LIBS
6494 fi
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6497 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6498   svn_sqlite_dso_ldflags="-ldld"
6499 fi
6500
6501
6502 fi
6503
6504
6505 fi
6506
6507
6508 fi
6509
6510
6511 fi
6512
6513
6514 fi
6515
6516     ;;
6517   esac
6518
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6520 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6521   if test -n "$svn_sqlite_dso_ldflags"; then
6522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6523 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6524   else
6525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6526 $as_echo "none" >&6; }
6527   fi
6528
6529
6530 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6531
6532                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6533                   if test -n "$svn_sqlite_dso_ldflags"; then
6534                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6535                   else
6536                     SVN_SQLITE_LIBS="-lpthread"
6537                   fi
6538                   svn_lib_sqlite="yes"
6539 else
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6541 $as_echo "unsupported amalgamation SQLite version" >&6; }
6542 fi
6543 rm -f conftest*
6544
6545   fi
6546
6547
6548     if test -z "$svn_lib_sqlite"; then
6549
6550   sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6552 $as_echo_n "checking sqlite amalgamation... " >&6; }
6553   if test ! -e $sqlite_amalg; then
6554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556   else
6557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6558 $as_echo "yes" >&6; }
6559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6560 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h.  */
6563
6564 #include "$sqlite_amalg"
6565 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6566 SQLITE_VERSION_OKAY
6567 #endif
6568 _ACEOF
6569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6572 $as_echo "amalgamation found and is okay" >&6; }
6573
6574   case $host_os in
6575   beos* | mingw* | pw32* | cegcc* | cygwin*)
6576     svn_sqlite_dso_ldflags=
6577     ;;
6578
6579   darwin*)
6580   # if libdl is installed we need to link against it
6581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6582 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6583 if ${ac_cv_lib_dl_dlopen+:} false; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   ac_check_lib_save_LIBS=$LIBS
6587 LIBS="-ldl  $LIBS"
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h.  */
6590
6591 /* Override any GCC internal prototype to avoid an error.
6592    Use char because int might match the return type of a GCC
6593    builtin and then its argument prototype would still apply.  */
6594 #ifdef __cplusplus
6595 extern "C"
6596 #endif
6597 char dlopen ();
6598 int
6599 main ()
6600 {
6601 return dlopen ();
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 if ac_fn_c_try_link "$LINENO"; then :
6607   ac_cv_lib_dl_dlopen=yes
6608 else
6609   ac_cv_lib_dl_dlopen=no
6610 fi
6611 rm -f core conftest.err conftest.$ac_objext \
6612     conftest$ac_exeext conftest.$ac_ext
6613 LIBS=$ac_check_lib_save_LIBS
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6616 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6617 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6618   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6619 else
6620
6621     svn_sqlite_dso_ldflags=
6622
6623 fi
6624
6625     ;;
6626
6627   *)
6628     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6629 if test "x$ac_cv_func_shl_load" = xyes; then :
6630   svn_sqlite_dso_ldflags=
6631 else
6632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6633 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6634 if ${ac_cv_lib_dld_shl_load+:} false; then :
6635   $as_echo_n "(cached) " >&6
6636 else
6637   ac_check_lib_save_LIBS=$LIBS
6638 LIBS="-ldld  $LIBS"
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h.  */
6641
6642 /* Override any GCC internal prototype to avoid an error.
6643    Use char because int might match the return type of a GCC
6644    builtin and then its argument prototype would still apply.  */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 char shl_load ();
6649 int
6650 main ()
6651 {
6652 return shl_load ();
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_c_try_link "$LINENO"; then :
6658   ac_cv_lib_dld_shl_load=yes
6659 else
6660   ac_cv_lib_dld_shl_load=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext \
6663     conftest$ac_exeext conftest.$ac_ext
6664 LIBS=$ac_check_lib_save_LIBS
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6667 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6668 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6669   svn_sqlite_dso_ldflags="-ldld"
6670 else
6671   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6672 if test "x$ac_cv_func_dlopen" = xyes; then :
6673   svn_sqlite_dso_ldflags=
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6677 if ${ac_cv_lib_dl_dlopen+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   ac_check_lib_save_LIBS=$LIBS
6681 LIBS="-ldl  $LIBS"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684
6685 /* Override any GCC internal prototype to avoid an error.
6686    Use char because int might match the return type of a GCC
6687    builtin and then its argument prototype would still apply.  */
6688 #ifdef __cplusplus
6689 extern "C"
6690 #endif
6691 char dlopen ();
6692 int
6693 main ()
6694 {
6695 return dlopen ();
6696   ;
6697   return 0;
6698 }
6699 _ACEOF
6700 if ac_fn_c_try_link "$LINENO"; then :
6701   ac_cv_lib_dl_dlopen=yes
6702 else
6703   ac_cv_lib_dl_dlopen=no
6704 fi
6705 rm -f core conftest.err conftest.$ac_objext \
6706     conftest$ac_exeext conftest.$ac_ext
6707 LIBS=$ac_check_lib_save_LIBS
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6712   svn_sqlite_dso_ldflags="-ldl"
6713 else
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6715 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6716 if ${ac_cv_lib_svld_dlopen+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   ac_check_lib_save_LIBS=$LIBS
6720 LIBS="-lsvld  $LIBS"
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h.  */
6723
6724 /* Override any GCC internal prototype to avoid an error.
6725    Use char because int might match the return type of a GCC
6726    builtin and then its argument prototype would still apply.  */
6727 #ifdef __cplusplus
6728 extern "C"
6729 #endif
6730 char dlopen ();
6731 int
6732 main ()
6733 {
6734 return dlopen ();
6735   ;
6736   return 0;
6737 }
6738 _ACEOF
6739 if ac_fn_c_try_link "$LINENO"; then :
6740   ac_cv_lib_svld_dlopen=yes
6741 else
6742   ac_cv_lib_svld_dlopen=no
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext \
6745     conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6749 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6750 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6751   svn_sqlite_dso_ldflags="-lsvld"
6752 else
6753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6754 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6755 if ${ac_cv_lib_dld_dld_link+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   ac_check_lib_save_LIBS=$LIBS
6759 LIBS="-ldld  $LIBS"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h.  */
6762
6763 /* Override any GCC internal prototype to avoid an error.
6764    Use char because int might match the return type of a GCC
6765    builtin and then its argument prototype would still apply.  */
6766 #ifdef __cplusplus
6767 extern "C"
6768 #endif
6769 char dld_link ();
6770 int
6771 main ()
6772 {
6773 return dld_link ();
6774   ;
6775   return 0;
6776 }
6777 _ACEOF
6778 if ac_fn_c_try_link "$LINENO"; then :
6779   ac_cv_lib_dld_dld_link=yes
6780 else
6781   ac_cv_lib_dld_dld_link=no
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext \
6784     conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6786 fi
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6788 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6789 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6790   svn_sqlite_dso_ldflags="-ldld"
6791 fi
6792
6793
6794 fi
6795
6796
6797 fi
6798
6799
6800 fi
6801
6802
6803 fi
6804
6805
6806 fi
6807
6808     ;;
6809   esac
6810
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6812 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6813   if test -n "$svn_sqlite_dso_ldflags"; then
6814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6815 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6816   else
6817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6818 $as_echo "none" >&6; }
6819   fi
6820
6821
6822 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6823
6824                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6825                   if test -n "$svn_sqlite_dso_ldflags"; then
6826                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6827                   else
6828                     SVN_SQLITE_LIBS="-lpthread"
6829                   fi
6830                   svn_lib_sqlite="yes"
6831 else
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6833 $as_echo "unsupported amalgamation SQLite version" >&6; }
6834 fi
6835 rm -f conftest*
6836
6837   fi
6838
6839     fi
6840
6841     if test -z "$svn_lib_sqlite"; then
6842
6843   if test -z ""; then
6844     sqlite_dir=""
6845     sqlite_include="sqlite3.h"
6846   else
6847     sqlite_dir=""
6848     sqlite_include="/include/sqlite3.h"
6849   fi
6850
6851   save_CPPFLAGS="$CPPFLAGS"
6852   save_LDFLAGS="$LDFLAGS"
6853
6854   if test ! -z ""; then
6855     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6856     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6857   fi
6858
6859   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6860 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6861
6862       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6863 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6864       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h.  */
6866
6867 #include "$sqlite_include"
6868 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6869 SQLITE_VERSION_OKAY
6870 #endif
6871 _ACEOF
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6875 $as_echo "okay" >&6; }
6876                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6877 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6878 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6879   $as_echo_n "(cached) " >&6
6880 else
6881   ac_check_lib_save_LIBS=$LIBS
6882 LIBS="-lsqlite3  $LIBS"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885
6886 /* Override any GCC internal prototype to avoid an error.
6887    Use char because int might match the return type of a GCC
6888    builtin and then its argument prototype would still apply.  */
6889 #ifdef __cplusplus
6890 extern "C"
6891 #endif
6892 char sqlite3_close ();
6893 int
6894 main ()
6895 {
6896 return sqlite3_close ();
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 if ac_fn_c_try_link "$LINENO"; then :
6902   ac_cv_lib_sqlite3_sqlite3_close=yes
6903 else
6904   ac_cv_lib_sqlite3_sqlite3_close=no
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext \
6907     conftest$ac_exeext conftest.$ac_ext
6908 LIBS=$ac_check_lib_save_LIBS
6909 fi
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6911 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6912 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6913
6914                       svn_lib_sqlite="yes"
6915                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6916                         SVN_SQLITE_LIBS="-lsqlite3"
6917                       else
6918                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6919                         SVN_SQLITE_LIBS="`
6920   input_flags="-L$sqlite_dir/lib -lsqlite3"
6921   output_flags=""
6922   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6923   for flag in $input_flags; do
6924     filter="no"
6925     for dir in $filtered_dirs; do
6926       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6927         filter="yes"
6928         break
6929       fi
6930     done
6931     if test "$filter" = "no"; then
6932       output_flags="$output_flags $flag"
6933     fi
6934   done
6935   if test -n "$output_flags"; then
6936     printf "%s" "${output_flags# }"
6937   fi
6938 `"
6939                       fi
6940
6941 fi
6942
6943 else
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6945 $as_echo "unsupported SQLite version" >&6; }
6946 fi
6947 rm -f conftest*
6948
6949
6950 fi
6951
6952
6953
6954   CPPFLAGS="$save_CPPFLAGS"
6955   LDFLAGS="$save_LDFLAGS"
6956
6957     fi
6958
6959     if test -z "$svn_lib_sqlite"; then
6960
6961     if test -n "$PKG_CONFIG"; then
6962       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
6963 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
6964       sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
6965
6966       if test -n "$sqlite_version"; then
6967
6968   version_string="$sqlite_version"
6969
6970   major=`expr $version_string : '\([0-9]*\)'`
6971   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
6972   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
6973   if test -z "$micro"; then
6974     micro=0
6975   fi
6976   sqlite_ver_num=`expr $major \* 1000000 \
6977         \+ $minor \* 1000 \
6978         \+ $micro`
6979
6980
6981         if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
6982           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
6983 $as_echo "$sqlite_version" >&6; }
6984           svn_lib_sqlite="yes"
6985           SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
6986           SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
6987         else
6988           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
6989 $as_echo "none or unsupported $sqlite_version" >&6; }
6990         fi
6991       fi
6992     fi
6993
6994     if test -z "$svn_lib_sqlite"; then
6995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997     fi
6998
6999     fi
7000
7001     if test -z "$svn_lib_sqlite"; then
7002
7003   echo ""
7004   echo "An appropriate version of sqlite could not be found.  We recommmend"
7005   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7006   echo "Please either install a newer sqlite on this system"
7007   echo ""
7008   echo "or"
7009   echo ""
7010   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7011   echo "    ${SQLITE_URL}"
7012   echo "unpack the archive using unzip and rename the resulting"
7013   echo "directory to:"
7014   echo "$abs_srcdir/sqlite-amalgamation"
7015   if test x"$abs_srcdir" != x"$abs_builddir"; then
7016     echo "or to:"
7017     echo "$abs_builddir/sqlite-amalgamation"
7018   fi
7019   echo ""
7020   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7021
7022     fi
7023
7024 fi
7025
7026
7027
7028
7029
7030
7031 # Check whether --enable-sqlite-compatibility-version was given.
7032 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7033   enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7034 else
7035   sqlite_compat_ver=no
7036 fi
7037
7038
7039 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7040
7041   version_string="$sqlite_compat_ver"
7042
7043   major=`expr $version_string : '\([0-9]*\)'`
7044   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7045   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7046   if test -z "$micro"; then
7047     micro=0
7048   fi
7049   sqlite_compat_ver_num=`expr $major \* 1000000 \
7050         \+ $minor \* 1000 \
7051         \+ $micro`
7052
7053   CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7054   CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7055 fi
7056
7057
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7059 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7060 if ${svn_cv_atomic_builtins+:} false; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test "$cross_compiling" = yes; then :
7064   svn_cv_atomic_builtins=no
7065 else
7066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068
7069   int main()
7070   {
7071       unsigned long long val = 1010, tmp, *mem = &val;
7072
7073       if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7074           return 1;
7075
7076       tmp = val;
7077
7078       if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7079           return 1;
7080
7081       if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7082           return 1;
7083
7084       tmp = 3030;
7085
7086       if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7087           return 1;
7088
7089       if (__sync_lock_test_and_set(&val, 4040) != 3030)
7090           return 1;
7091
7092       mem = &tmp;
7093
7094       if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7095           return 1;
7096
7097       __sync_synchronize();
7098
7099       if (mem != &val)
7100           return 1;
7101
7102       return 0;
7103   }
7104 _ACEOF
7105 if ac_fn_c_try_run "$LINENO"; then :
7106   svn_cv_atomic_builtins=yes
7107 else
7108   svn_cv_atomic_builtins=no
7109 fi
7110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7111   conftest.$ac_objext conftest.beam conftest.$ac_ext
7112 fi
7113
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7116 $as_echo "$svn_cv_atomic_builtins" >&6; }
7117
7118
7119 if test "$svn_cv_atomic_builtins" = "yes"; then
7120
7121 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7122
7123 fi
7124
7125
7126 if test "${bindir}" = '${exec_prefix}/bin'; then
7127         if test "${exec_prefix}" = "NONE"; then
7128                 if test "${prefix}" = "NONE"; then
7129                         SVN_BINDIR="${ac_default_prefix}/bin"
7130                 else
7131                         SVN_BINDIR="${prefix}/bin"
7132                 fi
7133         else
7134                 SVN_BINDIR="${exec_prefix}/bin"
7135         fi
7136 else
7137         SVN_BINDIR="${bindir}"
7138 fi
7139
7140 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7141
7142
7143
7144 cat >>confdefs.h <<_ACEOF
7145 #define SVN_BINDIR "${SVN_BINDIR}"
7146 _ACEOF
7147
7148
7149 localedir='${datadir}/locale'
7150
7151
7152 if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then
7153   exp_localedir='${ac_default_prefix}/share/locale'
7154 else
7155   exp_localedir=$localedir
7156 fi
7157
7158 svn_last=
7159 svn_cur=""${exp_localedir}""
7160 while test "x${svn_cur}" != "x${svn_last}";
7161 do
7162   svn_last="${svn_cur}"
7163   svn_cur=`eval "echo ${svn_cur}"`
7164 done
7165 svn_localedir="${svn_cur}"
7166
7167
7168 cat >>confdefs.h <<_ACEOF
7169 #define SVN_LOCALE_DIR "${svn_localedir}"
7170 _ACEOF
7171
7172
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7174 $as_echo "$as_me: configuring libtool now" >&6;}
7175 case `pwd` in
7176   *\ * | *\     *)
7177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7178 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7179 esac
7180
7181
7182
7183 macro_version='2.4.2'
7184 macro_revision='1.3337'
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198 ltmain="$ac_aux_dir/ltmain.sh"
7199
7200 # Backslashify metacharacters that are still active within
7201 # double-quoted strings.
7202 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7203
7204 # Same as above, but do not quote variable references.
7205 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7206
7207 # Sed substitution to delay expansion of an escaped shell variable in a
7208 # double_quote_subst'ed string.
7209 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7210
7211 # Sed substitution to delay expansion of an escaped single quote.
7212 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7213
7214 # Sed substitution to avoid accidental globbing in evaled expressions
7215 no_glob_subst='s/\*/\\\*/g'
7216
7217 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7218 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7219 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7222 $as_echo_n "checking how to print strings... " >&6; }
7223 # Test print first, because it will be a builtin if present.
7224 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7225    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7226   ECHO='print -r --'
7227 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7228   ECHO='printf %s\n'
7229 else
7230   # Use this function as a fallback that always works.
7231   func_fallback_echo ()
7232   {
7233     eval 'cat <<_LTECHO_EOF
7234 $1
7235 _LTECHO_EOF'
7236   }
7237   ECHO='func_fallback_echo'
7238 fi
7239
7240 # func_echo_all arg...
7241 # Invoke $ECHO with all args, space-separated.
7242 func_echo_all ()
7243 {
7244     $ECHO ""
7245 }
7246
7247 case "$ECHO" in
7248   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7249 $as_echo "printf" >&6; } ;;
7250   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7251 $as_echo "print -r" >&6; } ;;
7252   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7253 $as_echo "cat" >&6; } ;;
7254 esac
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7270 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7271 if ${ac_cv_path_SED+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7275      for ac_i in 1 2 3 4 5 6 7; do
7276        ac_script="$ac_script$as_nl$ac_script"
7277      done
7278      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7279      { ac_script=; unset ac_script;}
7280      if test -z "$SED"; then
7281   ac_path_SED_found=false
7282   # Loop through the user's path and test for each of PROGNAME-LIST
7283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288     for ac_prog in sed gsed; do
7289     for ac_exec_ext in '' $ac_executable_extensions; do
7290       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7291       as_fn_executable_p "$ac_path_SED" || continue
7292 # Check for GNU ac_path_SED and select it if it is found.
7293   # Check for GNU $ac_path_SED
7294 case `"$ac_path_SED" --version 2>&1` in
7295 *GNU*)
7296   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7297 *)
7298   ac_count=0
7299   $as_echo_n 0123456789 >"conftest.in"
7300   while :
7301   do
7302     cat "conftest.in" "conftest.in" >"conftest.tmp"
7303     mv "conftest.tmp" "conftest.in"
7304     cp "conftest.in" "conftest.nl"
7305     $as_echo '' >> "conftest.nl"
7306     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7308     as_fn_arith $ac_count + 1 && ac_count=$as_val
7309     if test $ac_count -gt ${ac_path_SED_max-0}; then
7310       # Best one so far, save it but keep looking for a better one
7311       ac_cv_path_SED="$ac_path_SED"
7312       ac_path_SED_max=$ac_count
7313     fi
7314     # 10*(2^10) chars as input seems more than enough
7315     test $ac_count -gt 10 && break
7316   done
7317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7318 esac
7319
7320       $ac_path_SED_found && break 3
7321     done
7322   done
7323   done
7324 IFS=$as_save_IFS
7325   if test -z "$ac_cv_path_SED"; then
7326     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7327   fi
7328 else
7329   ac_cv_path_SED=$SED
7330 fi
7331
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7334 $as_echo "$ac_cv_path_SED" >&6; }
7335  SED="$ac_cv_path_SED"
7336   rm -f conftest.sed
7337
7338 test -z "$SED" && SED=sed
7339 Xsed="$SED -e 1s/^X//"
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7352 $as_echo_n "checking for fgrep... " >&6; }
7353 if ${ac_cv_path_FGREP+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7357    then ac_cv_path_FGREP="$GREP -F"
7358    else
7359      if test -z "$FGREP"; then
7360   ac_path_FGREP_found=false
7361   # Loop through the user's path and test for each of PROGNAME-LIST
7362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_prog in fgrep; do
7368     for ac_exec_ext in '' $ac_executable_extensions; do
7369       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7370       as_fn_executable_p "$ac_path_FGREP" || continue
7371 # Check for GNU ac_path_FGREP and select it if it is found.
7372   # Check for GNU $ac_path_FGREP
7373 case `"$ac_path_FGREP" --version 2>&1` in
7374 *GNU*)
7375   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7376 *)
7377   ac_count=0
7378   $as_echo_n 0123456789 >"conftest.in"
7379   while :
7380   do
7381     cat "conftest.in" "conftest.in" >"conftest.tmp"
7382     mv "conftest.tmp" "conftest.in"
7383     cp "conftest.in" "conftest.nl"
7384     $as_echo 'FGREP' >> "conftest.nl"
7385     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7386     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7387     as_fn_arith $ac_count + 1 && ac_count=$as_val
7388     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7389       # Best one so far, save it but keep looking for a better one
7390       ac_cv_path_FGREP="$ac_path_FGREP"
7391       ac_path_FGREP_max=$ac_count
7392     fi
7393     # 10*(2^10) chars as input seems more than enough
7394     test $ac_count -gt 10 && break
7395   done
7396   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7397 esac
7398
7399       $ac_path_FGREP_found && break 3
7400     done
7401   done
7402   done
7403 IFS=$as_save_IFS
7404   if test -z "$ac_cv_path_FGREP"; then
7405     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7406   fi
7407 else
7408   ac_cv_path_FGREP=$FGREP
7409 fi
7410
7411    fi
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7414 $as_echo "$ac_cv_path_FGREP" >&6; }
7415  FGREP="$ac_cv_path_FGREP"
7416
7417
7418 test -z "$GREP" && GREP=grep
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438 # Check whether --with-gnu-ld was given.
7439 if test "${with_gnu_ld+set}" = set; then :
7440   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7441 else
7442   with_gnu_ld=no
7443 fi
7444
7445 ac_prog=ld
7446 if test "$GCC" = yes; then
7447   # Check if gcc -print-prog-name=ld gives a path.
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7449 $as_echo_n "checking for ld used by $CC... " >&6; }
7450   case $host in
7451   *-*-mingw*)
7452     # gcc leaves a trailing carriage return which upsets mingw
7453     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7454   *)
7455     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7456   esac
7457   case $ac_prog in
7458     # Accept absolute paths.
7459     [\\/]* | ?:[\\/]*)
7460       re_direlt='/[^/][^/]*/\.\./'
7461       # Canonicalize the pathname of ld
7462       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7463       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7464         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7465       done
7466       test -z "$LD" && LD="$ac_prog"
7467       ;;
7468   "")
7469     # If it fails, then pretend we aren't using GCC.
7470     ac_prog=ld
7471     ;;
7472   *)
7473     # If it is relative, then search for the first ld in PATH.
7474     with_gnu_ld=unknown
7475     ;;
7476   esac
7477 elif test "$with_gnu_ld" = yes; then
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7479 $as_echo_n "checking for GNU ld... " >&6; }
7480 else
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7482 $as_echo_n "checking for non-GNU ld... " >&6; }
7483 fi
7484 if ${lt_cv_path_LD+:} false; then :
7485   $as_echo_n "(cached) " >&6
7486 else
7487   if test -z "$LD"; then
7488   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7489   for ac_dir in $PATH; do
7490     IFS="$lt_save_ifs"
7491     test -z "$ac_dir" && ac_dir=.
7492     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7493       lt_cv_path_LD="$ac_dir/$ac_prog"
7494       # Check to see if the program is GNU ld.  I'd rather use --version,
7495       # but apparently some variants of GNU ld only accept -v.
7496       # Break only if it was the GNU/non-GNU ld that we prefer.
7497       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7498       *GNU* | *'with BFD'*)
7499         test "$with_gnu_ld" != no && break
7500         ;;
7501       *)
7502         test "$with_gnu_ld" != yes && break
7503         ;;
7504       esac
7505     fi
7506   done
7507   IFS="$lt_save_ifs"
7508 else
7509   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7510 fi
7511 fi
7512
7513 LD="$lt_cv_path_LD"
7514 if test -n "$LD"; then
7515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7516 $as_echo "$LD" >&6; }
7517 else
7518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7523 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7524 if ${lt_cv_prog_gnu_ld+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7528 case `$LD -v 2>&1 </dev/null` in
7529 *GNU* | *'with BFD'*)
7530   lt_cv_prog_gnu_ld=yes
7531   ;;
7532 *)
7533   lt_cv_prog_gnu_ld=no
7534   ;;
7535 esac
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7538 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7539 with_gnu_ld=$lt_cv_prog_gnu_ld
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7550 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7551 if ${lt_cv_path_NM+:} false; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   if test -n "$NM"; then
7555   # Let the user override the test.
7556   lt_cv_path_NM="$NM"
7557 else
7558   lt_nm_to_check="${ac_tool_prefix}nm"
7559   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7560     lt_nm_to_check="$lt_nm_to_check nm"
7561   fi
7562   for lt_tmp_nm in $lt_nm_to_check; do
7563     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7565       IFS="$lt_save_ifs"
7566       test -z "$ac_dir" && ac_dir=.
7567       tmp_nm="$ac_dir/$lt_tmp_nm"
7568       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7569         # Check to see if the nm accepts a BSD-compat flag.
7570         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7571         #   nm: unknown option "B" ignored
7572         # Tru64's nm complains that /dev/null is an invalid object file
7573         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7574         */dev/null* | *'Invalid file or object type'*)
7575           lt_cv_path_NM="$tmp_nm -B"
7576           break
7577           ;;
7578         *)
7579           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7580           */dev/null*)
7581             lt_cv_path_NM="$tmp_nm -p"
7582             break
7583             ;;
7584           *)
7585             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7586             continue # so that we can try to find one that supports BSD flags
7587             ;;
7588           esac
7589           ;;
7590         esac
7591       fi
7592     done
7593     IFS="$lt_save_ifs"
7594   done
7595   : ${lt_cv_path_NM=no}
7596 fi
7597 fi
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7599 $as_echo "$lt_cv_path_NM" >&6; }
7600 if test "$lt_cv_path_NM" != "no"; then
7601   NM="$lt_cv_path_NM"
7602 else
7603   # Didn't find any BSD compatible name lister, look for dumpbin.
7604   if test -n "$DUMPBIN"; then :
7605     # Let the user override the test.
7606   else
7607     if test -n "$ac_tool_prefix"; then
7608   for ac_prog in dumpbin "link -dump"
7609   do
7610     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_DUMPBIN+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$DUMPBIN"; then
7618   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 DUMPBIN=$ac_cv_prog_DUMPBIN
7638 if test -n "$DUMPBIN"; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7640 $as_echo "$DUMPBIN" >&6; }
7641 else
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646
7647     test -n "$DUMPBIN" && break
7648   done
7649 fi
7650 if test -z "$DUMPBIN"; then
7651   ac_ct_DUMPBIN=$DUMPBIN
7652   for ac_prog in dumpbin "link -dump"
7653 do
7654   # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   if test -n "$ac_ct_DUMPBIN"; then
7662   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669     for ac_exec_ext in '' $ac_executable_extensions; do
7670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676   done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7682 if test -n "$ac_ct_DUMPBIN"; then
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7684 $as_echo "$ac_ct_DUMPBIN" >&6; }
7685 else
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690
7691   test -n "$ac_ct_DUMPBIN" && break
7692 done
7693
7694   if test "x$ac_ct_DUMPBIN" = x; then
7695     DUMPBIN=":"
7696   else
7697     case $cross_compiling:$ac_tool_warned in
7698 yes:)
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701 ac_tool_warned=yes ;;
7702 esac
7703     DUMPBIN=$ac_ct_DUMPBIN
7704   fi
7705 fi
7706
7707     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7708     *COFF*)
7709       DUMPBIN="$DUMPBIN -symbols"
7710       ;;
7711     *)
7712       DUMPBIN=:
7713       ;;
7714     esac
7715   fi
7716
7717   if test "$DUMPBIN" != ":"; then
7718     NM="$DUMPBIN"
7719   fi
7720 fi
7721 test -z "$NM" && NM=nm
7722
7723
7724
7725
7726
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7729 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7730 if ${lt_cv_nm_interface+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   lt_cv_nm_interface="BSD nm"
7734   echo "int some_variable = 0;" > conftest.$ac_ext
7735   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7736   (eval "$ac_compile" 2>conftest.err)
7737   cat conftest.err >&5
7738   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7739   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7740   cat conftest.err >&5
7741   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7742   cat conftest.out >&5
7743   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7744     lt_cv_nm_interface="MS dumpbin"
7745   fi
7746   rm -f conftest*
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7749 $as_echo "$lt_cv_nm_interface" >&6; }
7750
7751 # find the maximum length of command line arguments
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7753 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7754 if ${lt_cv_sys_max_cmd_len+:} false; then :
7755   $as_echo_n "(cached) " >&6
7756 else
7757     i=0
7758   teststring="ABCD"
7759
7760   case $build_os in
7761   msdosdjgpp*)
7762     # On DJGPP, this test can blow up pretty badly due to problems in libc
7763     # (any single argument exceeding 2000 bytes causes a buffer overrun
7764     # during glob expansion).  Even if it were fixed, the result of this
7765     # check would be larger than it should be.
7766     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7767     ;;
7768
7769   gnu*)
7770     # Under GNU Hurd, this test is not required because there is
7771     # no limit to the length of command line arguments.
7772     # Libtool will interpret -1 as no limit whatsoever
7773     lt_cv_sys_max_cmd_len=-1;
7774     ;;
7775
7776   cygwin* | mingw* | cegcc*)
7777     # On Win9x/ME, this test blows up -- it succeeds, but takes
7778     # about 5 minutes as the teststring grows exponentially.
7779     # Worse, since 9x/ME are not pre-emptively multitasking,
7780     # you end up with a "frozen" computer, even though with patience
7781     # the test eventually succeeds (with a max line length of 256k).
7782     # Instead, let's just punt: use the minimum linelength reported by
7783     # all of the supported platforms: 8192 (on NT/2K/XP).
7784     lt_cv_sys_max_cmd_len=8192;
7785     ;;
7786
7787   mint*)
7788     # On MiNT this can take a long time and run out of memory.
7789     lt_cv_sys_max_cmd_len=8192;
7790     ;;
7791
7792   amigaos*)
7793     # On AmigaOS with pdksh, this test takes hours, literally.
7794     # So we just punt and use a minimum line length of 8192.
7795     lt_cv_sys_max_cmd_len=8192;
7796     ;;
7797
7798   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7799     # This has been around since 386BSD, at least.  Likely further.
7800     if test -x /sbin/sysctl; then
7801       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7802     elif test -x /usr/sbin/sysctl; then
7803       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7804     else
7805       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7806     fi
7807     # And add a safety zone
7808     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7809     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7810     ;;
7811
7812   interix*)
7813     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7814     lt_cv_sys_max_cmd_len=196608
7815     ;;
7816
7817   os2*)
7818     # The test takes a long time on OS/2.
7819     lt_cv_sys_max_cmd_len=8192
7820     ;;
7821
7822   osf*)
7823     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7824     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7825     # nice to cause kernel panics so lets avoid the loop below.
7826     # First set a reasonable default.
7827     lt_cv_sys_max_cmd_len=16384
7828     #
7829     if test -x /sbin/sysconfig; then
7830       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7831         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7832       esac
7833     fi
7834     ;;
7835   sco3.2v5*)
7836     lt_cv_sys_max_cmd_len=102400
7837     ;;
7838   sysv5* | sco5v6* | sysv4.2uw2*)
7839     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7840     if test -n "$kargmax"; then
7841       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7842     else
7843       lt_cv_sys_max_cmd_len=32768
7844     fi
7845     ;;
7846   *)
7847     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7848     if test -n "$lt_cv_sys_max_cmd_len"; then
7849       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7850       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7851     else
7852       # Make teststring a little bigger before we do anything with it.
7853       # a 1K string should be a reasonable start.
7854       for i in 1 2 3 4 5 6 7 8 ; do
7855         teststring=$teststring$teststring
7856       done
7857       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7858       # If test is not a shell built-in, we'll probably end up computing a
7859       # maximum length that is only half of the actual maximum length, but
7860       # we can't tell.
7861       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7862                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7863               test $i != 17 # 1/2 MB should be enough
7864       do
7865         i=`expr $i + 1`
7866         teststring=$teststring$teststring
7867       done
7868       # Only check the string length outside the loop.
7869       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7870       teststring=
7871       # Add a significant safety factor because C++ compilers can tack on
7872       # massive amounts of additional arguments before passing them to the
7873       # linker.  It appears as though 1/2 is a usable value.
7874       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7875     fi
7876     ;;
7877   esac
7878
7879 fi
7880
7881 if test -n $lt_cv_sys_max_cmd_len ; then
7882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7883 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7884 else
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7886 $as_echo "none" >&6; }
7887 fi
7888 max_cmd_len=$lt_cv_sys_max_cmd_len
7889
7890
7891
7892
7893
7894
7895 : ${CP="cp -f"}
7896 : ${MV="mv -f"}
7897 : ${RM="rm -f"}
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7900 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7901 # Try some XSI features
7902 xsi_shell=no
7903 ( _lt_dummy="a/b/c"
7904   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7905       = c,a/b,b/c, \
7906     && eval 'test $(( 1 + 1 )) -eq 2 \
7907     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7908   && xsi_shell=yes
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7910 $as_echo "$xsi_shell" >&6; }
7911
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7914 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7915 lt_shell_append=no
7916 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7917     >/dev/null 2>&1 \
7918   && lt_shell_append=yes
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7920 $as_echo "$lt_shell_append" >&6; }
7921
7922
7923 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7924   lt_unset=unset
7925 else
7926   lt_unset=false
7927 fi
7928
7929
7930
7931
7932
7933 # test EBCDIC or ASCII
7934 case `echo X|tr X '\101'` in
7935  A) # ASCII based system
7936     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7937   lt_SP2NL='tr \040 \012'
7938   lt_NL2SP='tr \015\012 \040\040'
7939   ;;
7940  *) # EBCDIC based system
7941   lt_SP2NL='tr \100 \n'
7942   lt_NL2SP='tr \r\n \100\100'
7943   ;;
7944 esac
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7955 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7956 if ${lt_cv_to_host_file_cmd+:} false; then :
7957   $as_echo_n "(cached) " >&6
7958 else
7959   case $host in
7960   *-*-mingw* )
7961     case $build in
7962       *-*-mingw* ) # actually msys
7963         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7964         ;;
7965       *-*-cygwin* )
7966         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7967         ;;
7968       * ) # otherwise, assume *nix
7969         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7970         ;;
7971     esac
7972     ;;
7973   *-*-cygwin* )
7974     case $build in
7975       *-*-mingw* ) # actually msys
7976         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7977         ;;
7978       *-*-cygwin* )
7979         lt_cv_to_host_file_cmd=func_convert_file_noop
7980         ;;
7981       * ) # otherwise, assume *nix
7982         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7983         ;;
7984     esac
7985     ;;
7986   * ) # unhandled hosts (and "normal" native builds)
7987     lt_cv_to_host_file_cmd=func_convert_file_noop
7988     ;;
7989 esac
7990
7991 fi
7992
7993 to_host_file_cmd=$lt_cv_to_host_file_cmd
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7995 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7996
7997
7998
7999
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8002 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8003 if ${lt_cv_to_tool_file_cmd+:} false; then :
8004   $as_echo_n "(cached) " >&6
8005 else
8006   #assume ordinary cross tools, or native build.
8007 lt_cv_to_tool_file_cmd=func_convert_file_noop
8008 case $host in
8009   *-*-mingw* )
8010     case $build in
8011       *-*-mingw* ) # actually msys
8012         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8013         ;;
8014     esac
8015     ;;
8016 esac
8017
8018 fi
8019
8020 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8022 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8023
8024
8025
8026
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8029 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8030 if ${lt_cv_ld_reload_flag+:} false; then :
8031   $as_echo_n "(cached) " >&6
8032 else
8033   lt_cv_ld_reload_flag='-r'
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8036 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8037 reload_flag=$lt_cv_ld_reload_flag
8038 case $reload_flag in
8039 "" | " "*) ;;
8040 *) reload_flag=" $reload_flag" ;;
8041 esac
8042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8043 case $host_os in
8044   cygwin* | mingw* | pw32* | cegcc*)
8045     if test "$GCC" != yes; then
8046       reload_cmds=false
8047     fi
8048     ;;
8049   darwin*)
8050     if test "$GCC" = yes; then
8051       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8052     else
8053       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8054     fi
8055     ;;
8056 esac
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066 if test -n "$ac_tool_prefix"; then
8067   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if ${ac_cv_prog_OBJDUMP+:} false; then :
8072   $as_echo_n "(cached) " >&6
8073 else
8074   if test -n "$OBJDUMP"; then
8075   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080   IFS=$as_save_IFS
8081   test -z "$as_dir" && as_dir=.
8082     for ac_exec_ext in '' $ac_executable_extensions; do
8083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086     break 2
8087   fi
8088 done
8089   done
8090 IFS=$as_save_IFS
8091
8092 fi
8093 fi
8094 OBJDUMP=$ac_cv_prog_OBJDUMP
8095 if test -n "$OBJDUMP"; then
8096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8097 $as_echo "$OBJDUMP" >&6; }
8098 else
8099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8101 fi
8102
8103
8104 fi
8105 if test -z "$ac_cv_prog_OBJDUMP"; then
8106   ac_ct_OBJDUMP=$OBJDUMP
8107   # Extract the first word of "objdump", so it can be a program name with args.
8108 set dummy objdump; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   if test -n "$ac_ct_OBJDUMP"; then
8115   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120   IFS=$as_save_IFS
8121   test -z "$as_dir" && as_dir=.
8122     for ac_exec_ext in '' $ac_executable_extensions; do
8123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126     break 2
8127   fi
8128 done
8129   done
8130 IFS=$as_save_IFS
8131
8132 fi
8133 fi
8134 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8135 if test -n "$ac_ct_OBJDUMP"; then
8136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8137 $as_echo "$ac_ct_OBJDUMP" >&6; }
8138 else
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142
8143   if test "x$ac_ct_OBJDUMP" = x; then
8144     OBJDUMP="false"
8145   else
8146     case $cross_compiling:$ac_tool_warned in
8147 yes:)
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150 ac_tool_warned=yes ;;
8151 esac
8152     OBJDUMP=$ac_ct_OBJDUMP
8153   fi
8154 else
8155   OBJDUMP="$ac_cv_prog_OBJDUMP"
8156 fi
8157
8158 test -z "$OBJDUMP" && OBJDUMP=objdump
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8169 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8170 if ${lt_cv_deplibs_check_method+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   lt_cv_file_magic_cmd='$MAGIC_CMD'
8174 lt_cv_file_magic_test_file=
8175 lt_cv_deplibs_check_method='unknown'
8176 # Need to set the preceding variable on all platforms that support
8177 # interlibrary dependencies.
8178 # 'none' -- dependencies not supported.
8179 # `unknown' -- same as none, but documents that we really don't know.
8180 # 'pass_all' -- all dependencies passed with no checks.
8181 # 'test_compile' -- check by making test program.
8182 # 'file_magic [[regex]]' -- check by looking for files in library path
8183 # which responds to the $file_magic_cmd with a given extended regex.
8184 # If you have `file' or equivalent on your system and you're not sure
8185 # whether `pass_all' will *always* work, you probably want this one.
8186
8187 case $host_os in
8188 aix[4-9]*)
8189   lt_cv_deplibs_check_method=pass_all
8190   ;;
8191
8192 beos*)
8193   lt_cv_deplibs_check_method=pass_all
8194   ;;
8195
8196 bsdi[45]*)
8197   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8198   lt_cv_file_magic_cmd='/usr/bin/file -L'
8199   lt_cv_file_magic_test_file=/shlib/libc.so
8200   ;;
8201
8202 cygwin*)
8203   # func_win32_libid is a shell function defined in ltmain.sh
8204   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8205   lt_cv_file_magic_cmd='func_win32_libid'
8206   ;;
8207
8208 mingw* | pw32*)
8209   # Base MSYS/MinGW do not provide the 'file' command needed by
8210   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8211   # unless we find 'file', for example because we are cross-compiling.
8212   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8213   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8214     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8215     lt_cv_file_magic_cmd='func_win32_libid'
8216   else
8217     # Keep this pattern in sync with the one in func_win32_libid.
8218     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8219     lt_cv_file_magic_cmd='$OBJDUMP -f'
8220   fi
8221   ;;
8222
8223 cegcc*)
8224   # use the weaker test based on 'objdump'. See mingw*.
8225   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8226   lt_cv_file_magic_cmd='$OBJDUMP -f'
8227   ;;
8228
8229 darwin* | rhapsody*)
8230   lt_cv_deplibs_check_method=pass_all
8231   ;;
8232
8233 freebsd* | dragonfly*)
8234   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8235     case $host_cpu in
8236     i*86 )
8237       # Not sure whether the presence of OpenBSD here was a mistake.
8238       # Let's accept both of them until this is cleared up.
8239       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8240       lt_cv_file_magic_cmd=/usr/bin/file
8241       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8242       ;;
8243     esac
8244   else
8245     lt_cv_deplibs_check_method=pass_all
8246   fi
8247   ;;
8248
8249 gnu*)
8250   lt_cv_deplibs_check_method=pass_all
8251   ;;
8252
8253 haiku*)
8254   lt_cv_deplibs_check_method=pass_all
8255   ;;
8256
8257 hpux10.20* | hpux11*)
8258   lt_cv_file_magic_cmd=/usr/bin/file
8259   case $host_cpu in
8260   ia64*)
8261     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8262     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8263     ;;
8264   hppa*64*)
8265     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]'
8266     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8267     ;;
8268   *)
8269     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8270     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8271     ;;
8272   esac
8273   ;;
8274
8275 interix[3-9]*)
8276   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8277   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8278   ;;
8279
8280 irix5* | irix6* | nonstopux*)
8281   case $LD in
8282   *-32|*"-32 ") libmagic=32-bit;;
8283   *-n32|*"-n32 ") libmagic=N32;;
8284   *-64|*"-64 ") libmagic=64-bit;;
8285   *) libmagic=never-match;;
8286   esac
8287   lt_cv_deplibs_check_method=pass_all
8288   ;;
8289
8290 # This must be glibc/ELF.
8291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8292   lt_cv_deplibs_check_method=pass_all
8293   ;;
8294
8295 netbsd*)
8296   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8297     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8298   else
8299     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8300   fi
8301   ;;
8302
8303 newos6*)
8304   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8305   lt_cv_file_magic_cmd=/usr/bin/file
8306   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8307   ;;
8308
8309 *nto* | *qnx*)
8310   lt_cv_deplibs_check_method=pass_all
8311   ;;
8312
8313 openbsd*)
8314   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8315     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8316   else
8317     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8318   fi
8319   ;;
8320
8321 osf3* | osf4* | osf5*)
8322   lt_cv_deplibs_check_method=pass_all
8323   ;;
8324
8325 rdos*)
8326   lt_cv_deplibs_check_method=pass_all
8327   ;;
8328
8329 solaris*)
8330   lt_cv_deplibs_check_method=pass_all
8331   ;;
8332
8333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8334   lt_cv_deplibs_check_method=pass_all
8335   ;;
8336
8337 sysv4 | sysv4.3*)
8338   case $host_vendor in
8339   motorola)
8340     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]'
8341     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8342     ;;
8343   ncr)
8344     lt_cv_deplibs_check_method=pass_all
8345     ;;
8346   sequent)
8347     lt_cv_file_magic_cmd='/bin/file'
8348     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8349     ;;
8350   sni)
8351     lt_cv_file_magic_cmd='/bin/file'
8352     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8353     lt_cv_file_magic_test_file=/lib/libc.so
8354     ;;
8355   siemens)
8356     lt_cv_deplibs_check_method=pass_all
8357     ;;
8358   pc)
8359     lt_cv_deplibs_check_method=pass_all
8360     ;;
8361   esac
8362   ;;
8363
8364 tpf*)
8365   lt_cv_deplibs_check_method=pass_all
8366   ;;
8367 esac
8368
8369 fi
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8371 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8372
8373 file_magic_glob=
8374 want_nocaseglob=no
8375 if test "$build" = "$host"; then
8376   case $host_os in
8377   mingw* | pw32*)
8378     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8379       want_nocaseglob=yes
8380     else
8381       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8382     fi
8383     ;;
8384   esac
8385 fi
8386
8387 file_magic_cmd=$lt_cv_file_magic_cmd
8388 deplibs_check_method=$lt_cv_deplibs_check_method
8389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412 if test -n "$ac_tool_prefix"; then
8413   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8414 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if ${ac_cv_prog_DLLTOOL+:} false; then :
8418   $as_echo_n "(cached) " >&6
8419 else
8420   if test -n "$DLLTOOL"; then
8421   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8422 else
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8425 do
8426   IFS=$as_save_IFS
8427   test -z "$as_dir" && as_dir=.
8428     for ac_exec_ext in '' $ac_executable_extensions; do
8429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432     break 2
8433   fi
8434 done
8435   done
8436 IFS=$as_save_IFS
8437
8438 fi
8439 fi
8440 DLLTOOL=$ac_cv_prog_DLLTOOL
8441 if test -n "$DLLTOOL"; then
8442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8443 $as_echo "$DLLTOOL" >&6; }
8444 else
8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8447 fi
8448
8449
8450 fi
8451 if test -z "$ac_cv_prog_DLLTOOL"; then
8452   ac_ct_DLLTOOL=$DLLTOOL
8453   # Extract the first word of "dlltool", so it can be a program name with args.
8454 set dummy dlltool; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8458   $as_echo_n "(cached) " >&6
8459 else
8460   if test -n "$ac_ct_DLLTOOL"; then
8461   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466   IFS=$as_save_IFS
8467   test -z "$as_dir" && as_dir=.
8468     for ac_exec_ext in '' $ac_executable_extensions; do
8469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472     break 2
8473   fi
8474 done
8475   done
8476 IFS=$as_save_IFS
8477
8478 fi
8479 fi
8480 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8481 if test -n "$ac_ct_DLLTOOL"; then
8482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8483 $as_echo "$ac_ct_DLLTOOL" >&6; }
8484 else
8485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 fi
8488
8489   if test "x$ac_ct_DLLTOOL" = x; then
8490     DLLTOOL="false"
8491   else
8492     case $cross_compiling:$ac_tool_warned in
8493 yes:)
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8496 ac_tool_warned=yes ;;
8497 esac
8498     DLLTOOL=$ac_ct_DLLTOOL
8499   fi
8500 else
8501   DLLTOOL="$ac_cv_prog_DLLTOOL"
8502 fi
8503
8504 test -z "$DLLTOOL" && DLLTOOL=dlltool
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8516 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8517 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   lt_cv_sharedlib_from_linklib_cmd='unknown'
8521
8522 case $host_os in
8523 cygwin* | mingw* | pw32* | cegcc*)
8524   # two different shell functions defined in ltmain.sh
8525   # decide which to use based on capabilities of $DLLTOOL
8526   case `$DLLTOOL --help 2>&1` in
8527   *--identify-strict*)
8528     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8529     ;;
8530   *)
8531     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8532     ;;
8533   esac
8534   ;;
8535 *)
8536   # fallback: assume linklib IS sharedlib
8537   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8538   ;;
8539 esac
8540
8541 fi
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8543 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8544 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8545 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8546
8547
8548
8549
8550
8551
8552
8553 if test -n "$ac_tool_prefix"; then
8554   for ac_prog in ar
8555   do
8556     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_AR+:} false; then :
8561   $as_echo_n "(cached) " >&6
8562 else
8563   if test -n "$AR"; then
8564   ac_cv_prog_AR="$AR" # Let the user override the test.
8565 else
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8568 do
8569   IFS=$as_save_IFS
8570   test -z "$as_dir" && as_dir=.
8571     for ac_exec_ext in '' $ac_executable_extensions; do
8572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575     break 2
8576   fi
8577 done
8578   done
8579 IFS=$as_save_IFS
8580
8581 fi
8582 fi
8583 AR=$ac_cv_prog_AR
8584 if test -n "$AR"; then
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8586 $as_echo "$AR" >&6; }
8587 else
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8590 fi
8591
8592
8593     test -n "$AR" && break
8594   done
8595 fi
8596 if test -z "$AR"; then
8597   ac_ct_AR=$AR
8598   for ac_prog in ar
8599 do
8600   # Extract the first word of "$ac_prog", so it can be a program name with args.
8601 set dummy $ac_prog; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8605   $as_echo_n "(cached) " >&6
8606 else
8607   if test -n "$ac_ct_AR"; then
8608   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8609 else
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8612 do
8613   IFS=$as_save_IFS
8614   test -z "$as_dir" && as_dir=.
8615     for ac_exec_ext in '' $ac_executable_extensions; do
8616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617     ac_cv_prog_ac_ct_AR="$ac_prog"
8618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619     break 2
8620   fi
8621 done
8622   done
8623 IFS=$as_save_IFS
8624
8625 fi
8626 fi
8627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8628 if test -n "$ac_ct_AR"; then
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8630 $as_echo "$ac_ct_AR" >&6; }
8631 else
8632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8634 fi
8635
8636
8637   test -n "$ac_ct_AR" && break
8638 done
8639
8640   if test "x$ac_ct_AR" = x; then
8641     AR="false"
8642   else
8643     case $cross_compiling:$ac_tool_warned in
8644 yes:)
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8647 ac_tool_warned=yes ;;
8648 esac
8649     AR=$ac_ct_AR
8650   fi
8651 fi
8652
8653 : ${AR=ar}
8654 : ${AR_FLAGS=cru}
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8667 $as_echo_n "checking for archiver @FILE support... " >&6; }
8668 if ${lt_cv_ar_at_file+:} false; then :
8669   $as_echo_n "(cached) " >&6
8670 else
8671   lt_cv_ar_at_file=no
8672    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h.  */
8674
8675 int
8676 main ()
8677 {
8678
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684   echo conftest.$ac_objext > conftest.lst
8685       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8686       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8687   (eval $lt_ar_try) 2>&5
8688   ac_status=$?
8689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8690   test $ac_status = 0; }
8691       if test "$ac_status" -eq 0; then
8692         # Ensure the archiver fails upon bogus file names.
8693         rm -f conftest.$ac_objext libconftest.a
8694         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8695   (eval $lt_ar_try) 2>&5
8696   ac_status=$?
8697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8698   test $ac_status = 0; }
8699         if test "$ac_status" -ne 0; then
8700           lt_cv_ar_at_file=@
8701         fi
8702       fi
8703       rm -f conftest.* libconftest.a
8704
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8710 $as_echo "$lt_cv_ar_at_file" >&6; }
8711
8712 if test "x$lt_cv_ar_at_file" = xno; then
8713   archiver_list_spec=
8714 else
8715   archiver_list_spec=$lt_cv_ar_at_file
8716 fi
8717
8718
8719
8720
8721
8722
8723
8724 if test -n "$ac_tool_prefix"; then
8725   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}strip; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_prog_STRIP+:} false; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   if test -n "$STRIP"; then
8733   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738   IFS=$as_save_IFS
8739   test -z "$as_dir" && as_dir=.
8740     for ac_exec_ext in '' $ac_executable_extensions; do
8741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744     break 2
8745   fi
8746 done
8747   done
8748 IFS=$as_save_IFS
8749
8750 fi
8751 fi
8752 STRIP=$ac_cv_prog_STRIP
8753 if test -n "$STRIP"; then
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8755 $as_echo "$STRIP" >&6; }
8756 else
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 fi
8760
8761
8762 fi
8763 if test -z "$ac_cv_prog_STRIP"; then
8764   ac_ct_STRIP=$STRIP
8765   # Extract the first word of "strip", so it can be a program name with args.
8766 set dummy strip; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8770   $as_echo_n "(cached) " >&6
8771 else
8772   if test -n "$ac_ct_STRIP"; then
8773   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778   IFS=$as_save_IFS
8779   test -z "$as_dir" && as_dir=.
8780     for ac_exec_ext in '' $ac_executable_extensions; do
8781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782     ac_cv_prog_ac_ct_STRIP="strip"
8783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784     break 2
8785   fi
8786 done
8787   done
8788 IFS=$as_save_IFS
8789
8790 fi
8791 fi
8792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8793 if test -n "$ac_ct_STRIP"; then
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8795 $as_echo "$ac_ct_STRIP" >&6; }
8796 else
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 fi
8800
8801   if test "x$ac_ct_STRIP" = x; then
8802     STRIP=":"
8803   else
8804     case $cross_compiling:$ac_tool_warned in
8805 yes:)
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808 ac_tool_warned=yes ;;
8809 esac
8810     STRIP=$ac_ct_STRIP
8811   fi
8812 else
8813   STRIP="$ac_cv_prog_STRIP"
8814 fi
8815
8816 test -z "$STRIP" && STRIP=:
8817
8818
8819
8820
8821
8822
8823 if test -n "$ac_tool_prefix"; then
8824   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8825 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_prog_RANLIB+:} false; then :
8829   $as_echo_n "(cached) " >&6
8830 else
8831   if test -n "$RANLIB"; then
8832   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837   IFS=$as_save_IFS
8838   test -z "$as_dir" && as_dir=.
8839     for ac_exec_ext in '' $ac_executable_extensions; do
8840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843     break 2
8844   fi
8845 done
8846   done
8847 IFS=$as_save_IFS
8848
8849 fi
8850 fi
8851 RANLIB=$ac_cv_prog_RANLIB
8852 if test -n "$RANLIB"; then
8853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8854 $as_echo "$RANLIB" >&6; }
8855 else
8856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8858 fi
8859
8860
8861 fi
8862 if test -z "$ac_cv_prog_RANLIB"; then
8863   ac_ct_RANLIB=$RANLIB
8864   # Extract the first word of "ranlib", so it can be a program name with args.
8865 set dummy ranlib; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   if test -n "$ac_ct_RANLIB"; then
8872   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8873 else
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 for as_dir in $PATH
8876 do
8877   IFS=$as_save_IFS
8878   test -z "$as_dir" && as_dir=.
8879     for ac_exec_ext in '' $ac_executable_extensions; do
8880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881     ac_cv_prog_ac_ct_RANLIB="ranlib"
8882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883     break 2
8884   fi
8885 done
8886   done
8887 IFS=$as_save_IFS
8888
8889 fi
8890 fi
8891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8892 if test -n "$ac_ct_RANLIB"; then
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8894 $as_echo "$ac_ct_RANLIB" >&6; }
8895 else
8896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898 fi
8899
8900   if test "x$ac_ct_RANLIB" = x; then
8901     RANLIB=":"
8902   else
8903     case $cross_compiling:$ac_tool_warned in
8904 yes:)
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8907 ac_tool_warned=yes ;;
8908 esac
8909     RANLIB=$ac_ct_RANLIB
8910   fi
8911 else
8912   RANLIB="$ac_cv_prog_RANLIB"
8913 fi
8914
8915 test -z "$RANLIB" && RANLIB=:
8916
8917
8918
8919
8920
8921
8922 # Determine commands to create old-style static archives.
8923 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8924 old_postinstall_cmds='chmod 644 $oldlib'
8925 old_postuninstall_cmds=
8926
8927 if test -n "$RANLIB"; then
8928   case $host_os in
8929   openbsd*)
8930     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8931     ;;
8932   *)
8933     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8934     ;;
8935   esac
8936   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8937 fi
8938
8939 case $host_os in
8940   darwin*)
8941     lock_old_archive_extraction=yes ;;
8942   *)
8943     lock_old_archive_extraction=no ;;
8944 esac
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966 for ac_prog in gawk mawk nawk awk
8967 do
8968   # Extract the first word of "$ac_prog", so it can be a program name with args.
8969 set dummy $ac_prog; ac_word=$2
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if ${ac_cv_prog_AWK+:} false; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   if test -n "$AWK"; then
8976   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8980 do
8981   IFS=$as_save_IFS
8982   test -z "$as_dir" && as_dir=.
8983     for ac_exec_ext in '' $ac_executable_extensions; do
8984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985     ac_cv_prog_AWK="$ac_prog"
8986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987     break 2
8988   fi
8989 done
8990   done
8991 IFS=$as_save_IFS
8992
8993 fi
8994 fi
8995 AWK=$ac_cv_prog_AWK
8996 if test -n "$AWK"; then
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8998 $as_echo "$AWK" >&6; }
8999 else
9000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003
9004
9005   test -n "$AWK" && break
9006 done
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026 # If no C compiler was specified, use CC.
9027 LTCC=${LTCC-"$CC"}
9028
9029 # If no C compiler flags were specified, use CFLAGS.
9030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9031
9032 # Allow CC to be a program name with arguments.
9033 compiler=$CC
9034
9035
9036 # Check for command to grab the raw symbol name followed by C symbol from nm.
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9038 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9039 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9040   $as_echo_n "(cached) " >&6
9041 else
9042
9043 # These are sane defaults that work on at least a few old systems.
9044 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9045
9046 # Character class describing NM global symbol codes.
9047 symcode='[BCDEGRST]'
9048
9049 # Regexp to match symbols that can be accessed directly from C.
9050 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9051
9052 # Define system-specific variables.
9053 case $host_os in
9054 aix*)
9055   symcode='[BCDT]'
9056   ;;
9057 cygwin* | mingw* | pw32* | cegcc*)
9058   symcode='[ABCDGISTW]'
9059   ;;
9060 hpux*)
9061   if test "$host_cpu" = ia64; then
9062     symcode='[ABCDEGRST]'
9063   fi
9064   ;;
9065 irix* | nonstopux*)
9066   symcode='[BCDEGRST]'
9067   ;;
9068 osf*)
9069   symcode='[BCDEGQRST]'
9070   ;;
9071 solaris*)
9072   symcode='[BDRT]'
9073   ;;
9074 sco3.2v5*)
9075   symcode='[DT]'
9076   ;;
9077 sysv4.2uw2*)
9078   symcode='[DT]'
9079   ;;
9080 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9081   symcode='[ABDT]'
9082   ;;
9083 sysv4)
9084   symcode='[DFNSTU]'
9085   ;;
9086 esac
9087
9088 # If we're using GNU nm, then use its standard symbol codes.
9089 case `$NM -V 2>&1` in
9090 *GNU* | *'with BFD'*)
9091   symcode='[ABCDGIRSTW]' ;;
9092 esac
9093
9094 # Transform an extracted symbol line into a proper C declaration.
9095 # Some systems (esp. on ia64) link data and code symbols differently,
9096 # so use this general approach.
9097 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9098
9099 # Transform an extracted symbol line into symbol name and symbol address
9100 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9101 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9102
9103 # Handle CRLF in mingw tool chain
9104 opt_cr=
9105 case $build_os in
9106 mingw*)
9107   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9108   ;;
9109 esac
9110
9111 # Try without a prefix underscore, then with it.
9112 for ac_symprfx in "" "_"; do
9113
9114   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9115   symxfrm="\\1 $ac_symprfx\\2 \\2"
9116
9117   # Write the raw and C identifiers.
9118   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9119     # Fake it for dumpbin and say T for any non-static function
9120     # and D for any global variable.
9121     # Also find C++ and __fastcall symbols from MSVC++,
9122     # which start with @ or ?.
9123     lt_cv_sys_global_symbol_pipe="$AWK '"\
9124 "     {last_section=section; section=\$ 3};"\
9125 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9126 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9127 "     \$ 0!~/External *\|/{next};"\
9128 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9129 "     {if(hide[section]) next};"\
9130 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9131 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9132 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9133 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9134 "     ' prfx=^$ac_symprfx"
9135   else
9136     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9137   fi
9138   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9139
9140   # Check to see that the pipe works correctly.
9141   pipe_works=no
9142
9143   rm -f conftest*
9144   cat > conftest.$ac_ext <<_LT_EOF
9145 #ifdef __cplusplus
9146 extern "C" {
9147 #endif
9148 char nm_test_var;
9149 void nm_test_func(void);
9150 void nm_test_func(void){}
9151 #ifdef __cplusplus
9152 }
9153 #endif
9154 int main(){nm_test_var='a';nm_test_func();return(0);}
9155 _LT_EOF
9156
9157   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9158   (eval $ac_compile) 2>&5
9159   ac_status=$?
9160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9161   test $ac_status = 0; }; then
9162     # Now try to grab the symbols.
9163     nlist=conftest.nm
9164     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9165   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9166   ac_status=$?
9167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9168   test $ac_status = 0; } && test -s "$nlist"; then
9169       # Try sorting and uniquifying the output.
9170       if sort "$nlist" | uniq > "$nlist"T; then
9171         mv -f "$nlist"T "$nlist"
9172       else
9173         rm -f "$nlist"T
9174       fi
9175
9176       # Make sure that we snagged all the symbols we need.
9177       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9178         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9179           cat <<_LT_EOF > conftest.$ac_ext
9180 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9181 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9182 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9183    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9184 # define LT_DLSYM_CONST
9185 #elif defined(__osf__)
9186 /* This system does not cope well with relocations in const data.  */
9187 # define LT_DLSYM_CONST
9188 #else
9189 # define LT_DLSYM_CONST const
9190 #endif
9191
9192 #ifdef __cplusplus
9193 extern "C" {
9194 #endif
9195
9196 _LT_EOF
9197           # Now generate the symbol file.
9198           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9199
9200           cat <<_LT_EOF >> conftest.$ac_ext
9201
9202 /* The mapping between symbol names and symbols.  */
9203 LT_DLSYM_CONST struct {
9204   const char *name;
9205   void       *address;
9206 }
9207 lt__PROGRAM__LTX_preloaded_symbols[] =
9208 {
9209   { "@PROGRAM@", (void *) 0 },
9210 _LT_EOF
9211           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9212           cat <<\_LT_EOF >> conftest.$ac_ext
9213   {0, (void *) 0}
9214 };
9215
9216 /* This works around a problem in FreeBSD linker */
9217 #ifdef FREEBSD_WORKAROUND
9218 static const void *lt_preloaded_setup() {
9219   return lt__PROGRAM__LTX_preloaded_symbols;
9220 }
9221 #endif
9222
9223 #ifdef __cplusplus
9224 }
9225 #endif
9226 _LT_EOF
9227           # Now try linking the two files.
9228           mv conftest.$ac_objext conftstm.$ac_objext
9229           lt_globsym_save_LIBS=$LIBS
9230           lt_globsym_save_CFLAGS=$CFLAGS
9231           LIBS="conftstm.$ac_objext"
9232           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9233           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9234   (eval $ac_link) 2>&5
9235   ac_status=$?
9236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9237   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9238             pipe_works=yes
9239           fi
9240           LIBS=$lt_globsym_save_LIBS
9241           CFLAGS=$lt_globsym_save_CFLAGS
9242         else
9243           echo "cannot find nm_test_func in $nlist" >&5
9244         fi
9245       else
9246         echo "cannot find nm_test_var in $nlist" >&5
9247       fi
9248     else
9249       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9250     fi
9251   else
9252     echo "$progname: failed program was:" >&5
9253     cat conftest.$ac_ext >&5
9254   fi
9255   rm -rf conftest* conftst*
9256
9257   # Do not use the global_symbol_pipe unless it works.
9258   if test "$pipe_works" = yes; then
9259     break
9260   else
9261     lt_cv_sys_global_symbol_pipe=
9262   fi
9263 done
9264
9265 fi
9266
9267 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9268   lt_cv_sys_global_symbol_to_cdecl=
9269 fi
9270 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9272 $as_echo "failed" >&6; }
9273 else
9274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9275 $as_echo "ok" >&6; }
9276 fi
9277
9278 # Response file support.
9279 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9280   nm_file_list_spec='@'
9281 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9282   nm_file_list_spec='@'
9283 fi
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9312 $as_echo_n "checking for sysroot... " >&6; }
9313
9314 # Check whether --with-sysroot was given.
9315 if test "${with_sysroot+set}" = set; then :
9316   withval=$with_sysroot;
9317 else
9318   with_sysroot=no
9319 fi
9320
9321
9322 lt_sysroot=
9323 case ${with_sysroot} in #(
9324  yes)
9325    if test "$GCC" = yes; then
9326      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9327    fi
9328    ;; #(
9329  /*)
9330    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9331    ;; #(
9332  no|'')
9333    ;; #(
9334  *)
9335    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9336 $as_echo "${with_sysroot}" >&6; }
9337    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9338    ;;
9339 esac
9340
9341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9342 $as_echo "${lt_sysroot:-no}" >&6; }
9343
9344
9345
9346
9347
9348 # Check whether --enable-libtool-lock was given.
9349 if test "${enable_libtool_lock+set}" = set; then :
9350   enableval=$enable_libtool_lock;
9351 fi
9352
9353 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9354
9355 # Some flags need to be propagated to the compiler or linker for good
9356 # libtool support.
9357 case $host in
9358 ia64-*-hpux*)
9359   # Find out which ABI we are using.
9360   echo 'int i;' > conftest.$ac_ext
9361   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9362   (eval $ac_compile) 2>&5
9363   ac_status=$?
9364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9365   test $ac_status = 0; }; then
9366     case `/usr/bin/file conftest.$ac_objext` in
9367       *ELF-32*)
9368         HPUX_IA64_MODE="32"
9369         ;;
9370       *ELF-64*)
9371         HPUX_IA64_MODE="64"
9372         ;;
9373     esac
9374   fi
9375   rm -rf conftest*
9376   ;;
9377 *-*-irix6*)
9378   # Find out which ABI we are using.
9379   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9380   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9381   (eval $ac_compile) 2>&5
9382   ac_status=$?
9383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9384   test $ac_status = 0; }; then
9385     if test "$lt_cv_prog_gnu_ld" = yes; then
9386       case `/usr/bin/file conftest.$ac_objext` in
9387         *32-bit*)
9388           LD="${LD-ld} -melf32bsmip"
9389           ;;
9390         *N32*)
9391           LD="${LD-ld} -melf32bmipn32"
9392           ;;
9393         *64-bit*)
9394           LD="${LD-ld} -melf64bmip"
9395         ;;
9396       esac
9397     else
9398       case `/usr/bin/file conftest.$ac_objext` in
9399         *32-bit*)
9400           LD="${LD-ld} -32"
9401           ;;
9402         *N32*)
9403           LD="${LD-ld} -n32"
9404           ;;
9405         *64-bit*)
9406           LD="${LD-ld} -64"
9407           ;;
9408       esac
9409     fi
9410   fi
9411   rm -rf conftest*
9412   ;;
9413
9414 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9415 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9416   # Find out which ABI we are using.
9417   echo 'int i;' > conftest.$ac_ext
9418   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9419   (eval $ac_compile) 2>&5
9420   ac_status=$?
9421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9422   test $ac_status = 0; }; then
9423     case `/usr/bin/file conftest.o` in
9424       *32-bit*)
9425         case $host in
9426           x86_64-*kfreebsd*-gnu)
9427             LD="${LD-ld} -m elf_i386_fbsd"
9428             ;;
9429           x86_64-*linux*)
9430             LD="${LD-ld} -m elf_i386"
9431             ;;
9432           ppc64-*linux*|powerpc64-*linux*)
9433             LD="${LD-ld} -m elf32ppclinux"
9434             ;;
9435           s390x-*linux*)
9436             LD="${LD-ld} -m elf_s390"
9437             ;;
9438           sparc64-*linux*)
9439             LD="${LD-ld} -m elf32_sparc"
9440             ;;
9441         esac
9442         ;;
9443       *64-bit*)
9444         case $host in
9445           x86_64-*kfreebsd*-gnu)
9446             LD="${LD-ld} -m elf_x86_64_fbsd"
9447             ;;
9448           x86_64-*linux*)
9449             LD="${LD-ld} -m elf_x86_64"
9450             ;;
9451           ppc*-*linux*|powerpc*-*linux*)
9452             LD="${LD-ld} -m elf64ppc"
9453             ;;
9454           s390*-*linux*|s390*-*tpf*)
9455             LD="${LD-ld} -m elf64_s390"
9456             ;;
9457           sparc*-*linux*)
9458             LD="${LD-ld} -m elf64_sparc"
9459             ;;
9460         esac
9461         ;;
9462     esac
9463   fi
9464   rm -rf conftest*
9465   ;;
9466
9467 *-*-sco3.2v5*)
9468   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9469   SAVE_CFLAGS="$CFLAGS"
9470   CFLAGS="$CFLAGS -belf"
9471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9472 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9473 if ${lt_cv_cc_needs_belf+:} false; then :
9474   $as_echo_n "(cached) " >&6
9475 else
9476   ac_ext=c
9477 ac_cpp='$CPP $CPPFLAGS'
9478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9481
9482      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h.  */
9484
9485 int
9486 main ()
9487 {
9488
9489   ;
9490   return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"; then :
9494   lt_cv_cc_needs_belf=yes
9495 else
9496   lt_cv_cc_needs_belf=no
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext \
9499     conftest$ac_exeext conftest.$ac_ext
9500      ac_ext=c
9501 ac_cpp='$CPP $CPPFLAGS'
9502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9505
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9508 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9509   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9510     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9511     CFLAGS="$SAVE_CFLAGS"
9512   fi
9513   ;;
9514 *-*solaris*)
9515   # Find out which ABI we are using.
9516   echo 'int i;' > conftest.$ac_ext
9517   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9518   (eval $ac_compile) 2>&5
9519   ac_status=$?
9520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521   test $ac_status = 0; }; then
9522     case `/usr/bin/file conftest.o` in
9523     *64-bit*)
9524       case $lt_cv_prog_gnu_ld in
9525       yes*)
9526         case $host in
9527         i?86-*-solaris*)
9528           LD="${LD-ld} -m elf_x86_64"
9529           ;;
9530         sparc*-*-solaris*)
9531           LD="${LD-ld} -m elf64_sparc"
9532           ;;
9533         esac
9534         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9535         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9536           LD="${LD-ld}_sol2"
9537         fi
9538         ;;
9539       *)
9540         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9541           LD="${LD-ld} -64"
9542         fi
9543         ;;
9544       esac
9545       ;;
9546     esac
9547   fi
9548   rm -rf conftest*
9549   ;;
9550 esac
9551
9552 need_locks="$enable_libtool_lock"
9553
9554 if test -n "$ac_tool_prefix"; then
9555   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9556 set dummy ${ac_tool_prefix}mt; ac_word=$2
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558 $as_echo_n "checking for $ac_word... " >&6; }
9559 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9560   $as_echo_n "(cached) " >&6
9561 else
9562   if test -n "$MANIFEST_TOOL"; then
9563   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9564 else
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566 for as_dir in $PATH
9567 do
9568   IFS=$as_save_IFS
9569   test -z "$as_dir" && as_dir=.
9570     for ac_exec_ext in '' $ac_executable_extensions; do
9571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9572     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574     break 2
9575   fi
9576 done
9577   done
9578 IFS=$as_save_IFS
9579
9580 fi
9581 fi
9582 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9583 if test -n "$MANIFEST_TOOL"; then
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9585 $as_echo "$MANIFEST_TOOL" >&6; }
9586 else
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9589 fi
9590
9591
9592 fi
9593 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9594   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9595   # Extract the first word of "mt", so it can be a program name with args.
9596 set dummy mt; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9600   $as_echo_n "(cached) " >&6
9601 else
9602   if test -n "$ac_ct_MANIFEST_TOOL"; then
9603   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9604 else
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9607 do
9608   IFS=$as_save_IFS
9609   test -z "$as_dir" && as_dir=.
9610     for ac_exec_ext in '' $ac_executable_extensions; do
9611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614     break 2
9615   fi
9616 done
9617   done
9618 IFS=$as_save_IFS
9619
9620 fi
9621 fi
9622 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9623 if test -n "$ac_ct_MANIFEST_TOOL"; then
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9625 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9626 else
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9629 fi
9630
9631   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9632     MANIFEST_TOOL=":"
9633   else
9634     case $cross_compiling:$ac_tool_warned in
9635 yes:)
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9638 ac_tool_warned=yes ;;
9639 esac
9640     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9641   fi
9642 else
9643   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9644 fi
9645
9646 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9648 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9649 if ${lt_cv_path_mainfest_tool+:} false; then :
9650   $as_echo_n "(cached) " >&6
9651 else
9652   lt_cv_path_mainfest_tool=no
9653   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9654   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9655   cat conftest.err >&5
9656   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9657     lt_cv_path_mainfest_tool=yes
9658   fi
9659   rm -f conftest*
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9662 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9663 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9664   MANIFEST_TOOL=:
9665 fi
9666
9667
9668
9669
9670
9671
9672   case $host_os in
9673     rhapsody* | darwin*)
9674     if test -n "$ac_tool_prefix"; then
9675   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9676 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9680   $as_echo_n "(cached) " >&6
9681 else
9682   if test -n "$DSYMUTIL"; then
9683   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9684 else
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9687 do
9688   IFS=$as_save_IFS
9689   test -z "$as_dir" && as_dir=.
9690     for ac_exec_ext in '' $ac_executable_extensions; do
9691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694     break 2
9695   fi
9696 done
9697   done
9698 IFS=$as_save_IFS
9699
9700 fi
9701 fi
9702 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9703 if test -n "$DSYMUTIL"; then
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9705 $as_echo "$DSYMUTIL" >&6; }
9706 else
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9709 fi
9710
9711
9712 fi
9713 if test -z "$ac_cv_prog_DSYMUTIL"; then
9714   ac_ct_DSYMUTIL=$DSYMUTIL
9715   # Extract the first word of "dsymutil", so it can be a program name with args.
9716 set dummy dsymutil; ac_word=$2
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718 $as_echo_n "checking for $ac_word... " >&6; }
9719 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9720   $as_echo_n "(cached) " >&6
9721 else
9722   if test -n "$ac_ct_DSYMUTIL"; then
9723   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9724 else
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 for as_dir in $PATH
9727 do
9728   IFS=$as_save_IFS
9729   test -z "$as_dir" && as_dir=.
9730     for ac_exec_ext in '' $ac_executable_extensions; do
9731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9732     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734     break 2
9735   fi
9736 done
9737   done
9738 IFS=$as_save_IFS
9739
9740 fi
9741 fi
9742 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9743 if test -n "$ac_ct_DSYMUTIL"; then
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9745 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9746 else
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9749 fi
9750
9751   if test "x$ac_ct_DSYMUTIL" = x; then
9752     DSYMUTIL=":"
9753   else
9754     case $cross_compiling:$ac_tool_warned in
9755 yes:)
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9758 ac_tool_warned=yes ;;
9759 esac
9760     DSYMUTIL=$ac_ct_DSYMUTIL
9761   fi
9762 else
9763   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9764 fi
9765
9766     if test -n "$ac_tool_prefix"; then
9767   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9768 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if ${ac_cv_prog_NMEDIT+:} false; then :
9772   $as_echo_n "(cached) " >&6
9773 else
9774   if test -n "$NMEDIT"; then
9775   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9776 else
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH
9779 do
9780   IFS=$as_save_IFS
9781   test -z "$as_dir" && as_dir=.
9782     for ac_exec_ext in '' $ac_executable_extensions; do
9783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9784     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786     break 2
9787   fi
9788 done
9789   done
9790 IFS=$as_save_IFS
9791
9792 fi
9793 fi
9794 NMEDIT=$ac_cv_prog_NMEDIT
9795 if test -n "$NMEDIT"; then
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9797 $as_echo "$NMEDIT" >&6; }
9798 else
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9801 fi
9802
9803
9804 fi
9805 if test -z "$ac_cv_prog_NMEDIT"; then
9806   ac_ct_NMEDIT=$NMEDIT
9807   # Extract the first word of "nmedit", so it can be a program name with args.
9808 set dummy nmedit; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   if test -n "$ac_ct_NMEDIT"; then
9815   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9819 do
9820   IFS=$as_save_IFS
9821   test -z "$as_dir" && as_dir=.
9822     for ac_exec_ext in '' $ac_executable_extensions; do
9823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826     break 2
9827   fi
9828 done
9829   done
9830 IFS=$as_save_IFS
9831
9832 fi
9833 fi
9834 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9835 if test -n "$ac_ct_NMEDIT"; then
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9837 $as_echo "$ac_ct_NMEDIT" >&6; }
9838 else
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9841 fi
9842
9843   if test "x$ac_ct_NMEDIT" = x; then
9844     NMEDIT=":"
9845   else
9846     case $cross_compiling:$ac_tool_warned in
9847 yes:)
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9850 ac_tool_warned=yes ;;
9851 esac
9852     NMEDIT=$ac_ct_NMEDIT
9853   fi
9854 else
9855   NMEDIT="$ac_cv_prog_NMEDIT"
9856 fi
9857
9858     if test -n "$ac_tool_prefix"; then
9859   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9860 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_prog_LIPO+:} false; then :
9864   $as_echo_n "(cached) " >&6
9865 else
9866   if test -n "$LIPO"; then
9867   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9868 else
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9871 do
9872   IFS=$as_save_IFS
9873   test -z "$as_dir" && as_dir=.
9874     for ac_exec_ext in '' $ac_executable_extensions; do
9875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878     break 2
9879   fi
9880 done
9881   done
9882 IFS=$as_save_IFS
9883
9884 fi
9885 fi
9886 LIPO=$ac_cv_prog_LIPO
9887 if test -n "$LIPO"; then
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9889 $as_echo "$LIPO" >&6; }
9890 else
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9893 fi
9894
9895
9896 fi
9897 if test -z "$ac_cv_prog_LIPO"; then
9898   ac_ct_LIPO=$LIPO
9899   # Extract the first word of "lipo", so it can be a program name with args.
9900 set dummy lipo; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   if test -n "$ac_ct_LIPO"; then
9907   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9908 else
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 for as_dir in $PATH
9911 do
9912   IFS=$as_save_IFS
9913   test -z "$as_dir" && as_dir=.
9914     for ac_exec_ext in '' $ac_executable_extensions; do
9915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9916     ac_cv_prog_ac_ct_LIPO="lipo"
9917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918     break 2
9919   fi
9920 done
9921   done
9922 IFS=$as_save_IFS
9923
9924 fi
9925 fi
9926 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9927 if test -n "$ac_ct_LIPO"; then
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9929 $as_echo "$ac_ct_LIPO" >&6; }
9930 else
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9933 fi
9934
9935   if test "x$ac_ct_LIPO" = x; then
9936     LIPO=":"
9937   else
9938     case $cross_compiling:$ac_tool_warned in
9939 yes:)
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9942 ac_tool_warned=yes ;;
9943 esac
9944     LIPO=$ac_ct_LIPO
9945   fi
9946 else
9947   LIPO="$ac_cv_prog_LIPO"
9948 fi
9949
9950     if test -n "$ac_tool_prefix"; then
9951   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9952 set dummy ${ac_tool_prefix}otool; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_OTOOL+:} false; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   if test -n "$OTOOL"; then
9959   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9960 else
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9963 do
9964   IFS=$as_save_IFS
9965   test -z "$as_dir" && as_dir=.
9966     for ac_exec_ext in '' $ac_executable_extensions; do
9967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970     break 2
9971   fi
9972 done
9973   done
9974 IFS=$as_save_IFS
9975
9976 fi
9977 fi
9978 OTOOL=$ac_cv_prog_OTOOL
9979 if test -n "$OTOOL"; then
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9981 $as_echo "$OTOOL" >&6; }
9982 else
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9985 fi
9986
9987
9988 fi
9989 if test -z "$ac_cv_prog_OTOOL"; then
9990   ac_ct_OTOOL=$OTOOL
9991   # Extract the first word of "otool", so it can be a program name with args.
9992 set dummy otool; 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; }
9995 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   if test -n "$ac_ct_OTOOL"; then
9999   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10000 else
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10003 do
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_ac_ct_OTOOL="otool"
10009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010     break 2
10011   fi
10012 done
10013   done
10014 IFS=$as_save_IFS
10015
10016 fi
10017 fi
10018 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10019 if test -n "$ac_ct_OTOOL"; then
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10021 $as_echo "$ac_ct_OTOOL" >&6; }
10022 else
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10025 fi
10026
10027   if test "x$ac_ct_OTOOL" = x; then
10028     OTOOL=":"
10029   else
10030     case $cross_compiling:$ac_tool_warned in
10031 yes:)
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10034 ac_tool_warned=yes ;;
10035 esac
10036     OTOOL=$ac_ct_OTOOL
10037   fi
10038 else
10039   OTOOL="$ac_cv_prog_OTOOL"
10040 fi
10041
10042     if test -n "$ac_tool_prefix"; then
10043   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10044 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_prog_OTOOL64+:} false; then :
10048   $as_echo_n "(cached) " >&6
10049 else
10050   if test -n "$OTOOL64"; then
10051   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056   IFS=$as_save_IFS
10057   test -z "$as_dir" && as_dir=.
10058     for ac_exec_ext in '' $ac_executable_extensions; do
10059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062     break 2
10063   fi
10064 done
10065   done
10066 IFS=$as_save_IFS
10067
10068 fi
10069 fi
10070 OTOOL64=$ac_cv_prog_OTOOL64
10071 if test -n "$OTOOL64"; then
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10073 $as_echo "$OTOOL64" >&6; }
10074 else
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10078
10079
10080 fi
10081 if test -z "$ac_cv_prog_OTOOL64"; then
10082   ac_ct_OTOOL64=$OTOOL64
10083   # Extract the first word of "otool64", so it can be a program name with args.
10084 set dummy otool64; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10088   $as_echo_n "(cached) " >&6
10089 else
10090   if test -n "$ac_ct_OTOOL64"; then
10091   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10092 else
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10095 do
10096   IFS=$as_save_IFS
10097   test -z "$as_dir" && as_dir=.
10098     for ac_exec_ext in '' $ac_executable_extensions; do
10099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100     ac_cv_prog_ac_ct_OTOOL64="otool64"
10101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102     break 2
10103   fi
10104 done
10105   done
10106 IFS=$as_save_IFS
10107
10108 fi
10109 fi
10110 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10111 if test -n "$ac_ct_OTOOL64"; then
10112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10113 $as_echo "$ac_ct_OTOOL64" >&6; }
10114 else
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10117 fi
10118
10119   if test "x$ac_ct_OTOOL64" = x; then
10120     OTOOL64=":"
10121   else
10122     case $cross_compiling:$ac_tool_warned in
10123 yes:)
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10126 ac_tool_warned=yes ;;
10127 esac
10128     OTOOL64=$ac_ct_OTOOL64
10129   fi
10130 else
10131   OTOOL64="$ac_cv_prog_OTOOL64"
10132 fi
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10161 $as_echo_n "checking for -single_module linker flag... " >&6; }
10162 if ${lt_cv_apple_cc_single_mod+:} false; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   lt_cv_apple_cc_single_mod=no
10166       if test -z "${LT_MULTI_MODULE}"; then
10167         # By default we will add the -single_module flag. You can override
10168         # by either setting the environment variable LT_MULTI_MODULE
10169         # non-empty at configure time, or by adding -multi_module to the
10170         # link flags.
10171         rm -rf libconftest.dylib*
10172         echo "int foo(void){return 1;}" > conftest.c
10173         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10174 -dynamiclib -Wl,-single_module conftest.c" >&5
10175         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10176           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10177         _lt_result=$?
10178         # If there is a non-empty error log, and "single_module"
10179         # appears in it, assume the flag caused a linker warning
10180         if test -s conftest.err && $GREP single_module conftest.err; then
10181           cat conftest.err >&5
10182         # Otherwise, if the output was created with a 0 exit code from
10183         # the compiler, it worked.
10184         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10185           lt_cv_apple_cc_single_mod=yes
10186         else
10187           cat conftest.err >&5
10188         fi
10189         rm -rf libconftest.dylib*
10190         rm -f conftest.*
10191       fi
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10194 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10195
10196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10197 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10198 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10199   $as_echo_n "(cached) " >&6
10200 else
10201   lt_cv_ld_exported_symbols_list=no
10202       save_LDFLAGS=$LDFLAGS
10203       echo "_main" > conftest.sym
10204       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10205       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h.  */
10207
10208 int
10209 main ()
10210 {
10211
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"; then :
10217   lt_cv_ld_exported_symbols_list=yes
10218 else
10219   lt_cv_ld_exported_symbols_list=no
10220 fi
10221 rm -f core conftest.err conftest.$ac_objext \
10222     conftest$ac_exeext conftest.$ac_ext
10223         LDFLAGS="$save_LDFLAGS"
10224
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10227 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10228
10229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10230 $as_echo_n "checking for -force_load linker flag... " >&6; }
10231 if ${lt_cv_ld_force_load+:} false; then :
10232   $as_echo_n "(cached) " >&6
10233 else
10234   lt_cv_ld_force_load=no
10235       cat > conftest.c << _LT_EOF
10236 int forced_loaded() { return 2;}
10237 _LT_EOF
10238       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10239       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10240       echo "$AR cru libconftest.a conftest.o" >&5
10241       $AR cru libconftest.a conftest.o 2>&5
10242       echo "$RANLIB libconftest.a" >&5
10243       $RANLIB libconftest.a 2>&5
10244       cat > conftest.c << _LT_EOF
10245 int main() { return 0;}
10246 _LT_EOF
10247       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10248       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10249       _lt_result=$?
10250       if test -s conftest.err && $GREP force_load conftest.err; then
10251         cat conftest.err >&5
10252       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10253         lt_cv_ld_force_load=yes
10254       else
10255         cat conftest.err >&5
10256       fi
10257         rm -f conftest.err libconftest.a conftest conftest.c
10258         rm -rf conftest.dSYM
10259
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10262 $as_echo "$lt_cv_ld_force_load" >&6; }
10263     case $host_os in
10264     rhapsody* | darwin1.[012])
10265       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10266     darwin1.*)
10267       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10268     darwin*) # darwin 5.x on
10269       # if running on 10.5 or later, the deployment target defaults
10270       # to the OS version, if on x86, and 10.4, the deployment
10271       # target defaults to 10.4. Don't you love it?
10272       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10273         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10274           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10275         10.[012]*)
10276           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10277         10.*)
10278           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10279       esac
10280     ;;
10281   esac
10282     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10283       _lt_dar_single_mod='$single_module'
10284     fi
10285     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10286       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10287     else
10288       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10289     fi
10290     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10291       _lt_dsymutil='~$DSYMUTIL $lib || :'
10292     else
10293       _lt_dsymutil=
10294     fi
10295     ;;
10296   esac
10297
10298 for ac_header in dlfcn.h
10299 do :
10300   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10301 "
10302 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10303   cat >>confdefs.h <<_ACEOF
10304 #define HAVE_DLFCN_H 1
10305 _ACEOF
10306
10307 fi
10308
10309 done
10310
10311
10312
10313 func_stripname_cnf ()
10314 {
10315   case ${2} in
10316   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10317   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10318   esac
10319 } # func_stripname_cnf
10320
10321
10322
10323
10324
10325 # Set options
10326
10327
10328
10329         enable_dlopen=no
10330
10331
10332   enable_win32_dll=no
10333
10334
10335             # Check whether --enable-shared was given.
10336 if test "${enable_shared+set}" = set; then :
10337   enableval=$enable_shared; p=${PACKAGE-default}
10338     case $enableval in
10339     yes) enable_shared=yes ;;
10340     no) enable_shared=no ;;
10341     *)
10342       enable_shared=no
10343       # Look at the argument we got.  We use all the common list separators.
10344       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10345       for pkg in $enableval; do
10346         IFS="$lt_save_ifs"
10347         if test "X$pkg" = "X$p"; then
10348           enable_shared=yes
10349         fi
10350       done
10351       IFS="$lt_save_ifs"
10352       ;;
10353     esac
10354 else
10355   enable_shared=yes
10356 fi
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366   # Check whether --enable-static was given.
10367 if test "${enable_static+set}" = set; then :
10368   enableval=$enable_static; p=${PACKAGE-default}
10369     case $enableval in
10370     yes) enable_static=yes ;;
10371     no) enable_static=no ;;
10372     *)
10373      enable_static=no
10374       # Look at the argument we got.  We use all the common list separators.
10375       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10376       for pkg in $enableval; do
10377         IFS="$lt_save_ifs"
10378         if test "X$pkg" = "X$p"; then
10379           enable_static=yes
10380         fi
10381       done
10382       IFS="$lt_save_ifs"
10383       ;;
10384     esac
10385 else
10386   enable_static=yes
10387 fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398 # Check whether --with-pic was given.
10399 if test "${with_pic+set}" = set; then :
10400   withval=$with_pic; lt_p=${PACKAGE-default}
10401     case $withval in
10402     yes|no) pic_mode=$withval ;;
10403     *)
10404       pic_mode=default
10405       # Look at the argument we got.  We use all the common list separators.
10406       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10407       for lt_pkg in $withval; do
10408         IFS="$lt_save_ifs"
10409         if test "X$lt_pkg" = "X$lt_p"; then
10410           pic_mode=yes
10411         fi
10412       done
10413       IFS="$lt_save_ifs"
10414       ;;
10415     esac
10416 else
10417   pic_mode=default
10418 fi
10419
10420
10421 test -z "$pic_mode" && pic_mode=default
10422
10423
10424
10425
10426
10427
10428
10429   # Check whether --enable-fast-install was given.
10430 if test "${enable_fast_install+set}" = set; then :
10431   enableval=$enable_fast_install; p=${PACKAGE-default}
10432     case $enableval in
10433     yes) enable_fast_install=yes ;;
10434     no) enable_fast_install=no ;;
10435     *)
10436       enable_fast_install=no
10437       # Look at the argument we got.  We use all the common list separators.
10438       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10439       for pkg in $enableval; do
10440         IFS="$lt_save_ifs"
10441         if test "X$pkg" = "X$p"; then
10442           enable_fast_install=yes
10443         fi
10444       done
10445       IFS="$lt_save_ifs"
10446       ;;
10447     esac
10448 else
10449   enable_fast_install=yes
10450 fi
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462 # This can be used to rebuild libtool when needed
10463 LIBTOOL_DEPS="$ltmain"
10464
10465 # Always use our own libtool.
10466 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497 test -z "$LN_S" && LN_S="ln -s"
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512 if test -n "${ZSH_VERSION+set}" ; then
10513    setopt NO_GLOB_SUBST
10514 fi
10515
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10517 $as_echo_n "checking for objdir... " >&6; }
10518 if ${lt_cv_objdir+:} false; then :
10519   $as_echo_n "(cached) " >&6
10520 else
10521   rm -f .libs 2>/dev/null
10522 mkdir .libs 2>/dev/null
10523 if test -d .libs; then
10524   lt_cv_objdir=.libs
10525 else
10526   # MS-DOS does not allow filenames that begin with a dot.
10527   lt_cv_objdir=_libs
10528 fi
10529 rmdir .libs 2>/dev/null
10530 fi
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10532 $as_echo "$lt_cv_objdir" >&6; }
10533 objdir=$lt_cv_objdir
10534
10535
10536
10537
10538
10539 cat >>confdefs.h <<_ACEOF
10540 #define LT_OBJDIR "$lt_cv_objdir/"
10541 _ACEOF
10542
10543
10544
10545
10546 case $host_os in
10547 aix3*)
10548   # AIX sometimes has problems with the GCC collect2 program.  For some
10549   # reason, if we set the COLLECT_NAMES environment variable, the problems
10550   # vanish in a puff of smoke.
10551   if test "X${COLLECT_NAMES+set}" != Xset; then
10552     COLLECT_NAMES=
10553     export COLLECT_NAMES
10554   fi
10555   ;;
10556 esac
10557
10558 # Global variables:
10559 ofile=libtool
10560 can_build_shared=yes
10561
10562 # All known linkers require a `.a' archive for static linking (except MSVC,
10563 # which needs '.lib').
10564 libext=a
10565
10566 with_gnu_ld="$lt_cv_prog_gnu_ld"
10567
10568 old_CC="$CC"
10569 old_CFLAGS="$CFLAGS"
10570
10571 # Set sane defaults for various variables
10572 test -z "$CC" && CC=cc
10573 test -z "$LTCC" && LTCC=$CC
10574 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10575 test -z "$LD" && LD=ld
10576 test -z "$ac_objext" && ac_objext=o
10577
10578 for cc_temp in $compiler""; do
10579   case $cc_temp in
10580     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10581     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10582     \-*) ;;
10583     *) break;;
10584   esac
10585 done
10586 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10587
10588
10589 # Only perform the check for file, if the check method requires it
10590 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10591 case $deplibs_check_method in
10592 file_magic*)
10593   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10595 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10596 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10597   $as_echo_n "(cached) " >&6
10598 else
10599   case $MAGIC_CMD in
10600 [\\/*] |  ?:[\\/]*)
10601   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10602   ;;
10603 *)
10604   lt_save_MAGIC_CMD="$MAGIC_CMD"
10605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10606   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10607   for ac_dir in $ac_dummy; do
10608     IFS="$lt_save_ifs"
10609     test -z "$ac_dir" && ac_dir=.
10610     if test -f $ac_dir/${ac_tool_prefix}file; then
10611       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10612       if test -n "$file_magic_test_file"; then
10613         case $deplibs_check_method in
10614         "file_magic "*)
10615           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10616           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10617           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10618             $EGREP "$file_magic_regex" > /dev/null; then
10619             :
10620           else
10621             cat <<_LT_EOF 1>&2
10622
10623 *** Warning: the command libtool uses to detect shared libraries,
10624 *** $file_magic_cmd, produces output that libtool cannot recognize.
10625 *** The result is that libtool may fail to recognize shared libraries
10626 *** as such.  This will affect the creation of libtool libraries that
10627 *** depend on shared libraries, but programs linked with such libtool
10628 *** libraries will work regardless of this problem.  Nevertheless, you
10629 *** may want to report the problem to your system manager and/or to
10630 *** bug-libtool@gnu.org
10631
10632 _LT_EOF
10633           fi ;;
10634         esac
10635       fi
10636       break
10637     fi
10638   done
10639   IFS="$lt_save_ifs"
10640   MAGIC_CMD="$lt_save_MAGIC_CMD"
10641   ;;
10642 esac
10643 fi
10644
10645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10646 if test -n "$MAGIC_CMD"; then
10647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10648 $as_echo "$MAGIC_CMD" >&6; }
10649 else
10650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10652 fi
10653
10654
10655
10656
10657
10658 if test -z "$lt_cv_path_MAGIC_CMD"; then
10659   if test -n "$ac_tool_prefix"; then
10660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10661 $as_echo_n "checking for file... " >&6; }
10662 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10663   $as_echo_n "(cached) " >&6
10664 else
10665   case $MAGIC_CMD in
10666 [\\/*] |  ?:[\\/]*)
10667   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10668   ;;
10669 *)
10670   lt_save_MAGIC_CMD="$MAGIC_CMD"
10671   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10672   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10673   for ac_dir in $ac_dummy; do
10674     IFS="$lt_save_ifs"
10675     test -z "$ac_dir" && ac_dir=.
10676     if test -f $ac_dir/file; then
10677       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10678       if test -n "$file_magic_test_file"; then
10679         case $deplibs_check_method in
10680         "file_magic "*)
10681           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10682           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10683           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10684             $EGREP "$file_magic_regex" > /dev/null; then
10685             :
10686           else
10687             cat <<_LT_EOF 1>&2
10688
10689 *** Warning: the command libtool uses to detect shared libraries,
10690 *** $file_magic_cmd, produces output that libtool cannot recognize.
10691 *** The result is that libtool may fail to recognize shared libraries
10692 *** as such.  This will affect the creation of libtool libraries that
10693 *** depend on shared libraries, but programs linked with such libtool
10694 *** libraries will work regardless of this problem.  Nevertheless, you
10695 *** may want to report the problem to your system manager and/or to
10696 *** bug-libtool@gnu.org
10697
10698 _LT_EOF
10699           fi ;;
10700         esac
10701       fi
10702       break
10703     fi
10704   done
10705   IFS="$lt_save_ifs"
10706   MAGIC_CMD="$lt_save_MAGIC_CMD"
10707   ;;
10708 esac
10709 fi
10710
10711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10712 if test -n "$MAGIC_CMD"; then
10713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10714 $as_echo "$MAGIC_CMD" >&6; }
10715 else
10716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10718 fi
10719
10720
10721   else
10722     MAGIC_CMD=:
10723   fi
10724 fi
10725
10726   fi
10727   ;;
10728 esac
10729
10730 # Use C for the default configuration in the libtool script
10731
10732 lt_save_CC="$CC"
10733 ac_ext=c
10734 ac_cpp='$CPP $CPPFLAGS'
10735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10738
10739
10740 # Source file extension for C test sources.
10741 ac_ext=c
10742
10743 # Object file extension for compiled C test sources.
10744 objext=o
10745 objext=$objext
10746
10747 # Code to be used in simple compile tests
10748 lt_simple_compile_test_code="int some_variable = 0;"
10749
10750 # Code to be used in simple link tests
10751 lt_simple_link_test_code='int main(){return(0);}'
10752
10753
10754
10755
10756
10757
10758
10759 # If no C compiler was specified, use CC.
10760 LTCC=${LTCC-"$CC"}
10761
10762 # If no C compiler flags were specified, use CFLAGS.
10763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10764
10765 # Allow CC to be a program name with arguments.
10766 compiler=$CC
10767
10768 # Save the default compiler, since it gets overwritten when the other
10769 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10770 compiler_DEFAULT=$CC
10771
10772 # save warnings/boilerplate of simple test code
10773 ac_outfile=conftest.$ac_objext
10774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10776 _lt_compiler_boilerplate=`cat conftest.err`
10777 $RM conftest*
10778
10779 ac_outfile=conftest.$ac_objext
10780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10782 _lt_linker_boilerplate=`cat conftest.err`
10783 $RM -r conftest*
10784
10785
10786 ## CAVEAT EMPTOR:
10787 ## There is no encapsulation within the following macros, do not change
10788 ## the running order or otherwise move them around unless you know exactly
10789 ## what you are doing...
10790 if test -n "$compiler"; then
10791
10792 lt_prog_compiler_no_builtin_flag=
10793
10794 if test "$GCC" = yes; then
10795   case $cc_basename in
10796   nvcc*)
10797     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10798   *)
10799     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10800   esac
10801
10802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10803 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10804 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10805   $as_echo_n "(cached) " >&6
10806 else
10807   lt_cv_prog_compiler_rtti_exceptions=no
10808    ac_outfile=conftest.$ac_objext
10809    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10810    lt_compiler_flag="-fno-rtti -fno-exceptions"
10811    # Insert the option either (1) after the last *FLAGS variable, or
10812    # (2) before a word containing "conftest.", or (3) at the end.
10813    # Note that $ac_compile itself does not contain backslashes and begins
10814    # with a dollar sign (not a hyphen), so the echo should work correctly.
10815    # The option is referenced via a variable to avoid confusing sed.
10816    lt_compile=`echo "$ac_compile" | $SED \
10817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819    -e 's:$: $lt_compiler_flag:'`
10820    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10821    (eval "$lt_compile" 2>conftest.err)
10822    ac_status=$?
10823    cat conftest.err >&5
10824    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825    if (exit $ac_status) && test -s "$ac_outfile"; then
10826      # The compiler can only warn and ignore the option if not recognized
10827      # So say no if there are warnings other than the usual output.
10828      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10829      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10830      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10831        lt_cv_prog_compiler_rtti_exceptions=yes
10832      fi
10833    fi
10834    $RM conftest*
10835
10836 fi
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10838 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10839
10840 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10841     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10842 else
10843     :
10844 fi
10845
10846 fi
10847
10848
10849
10850
10851
10852
10853   lt_prog_compiler_wl=
10854 lt_prog_compiler_pic=
10855 lt_prog_compiler_static=
10856
10857
10858   if test "$GCC" = yes; then
10859     lt_prog_compiler_wl='-Wl,'
10860     lt_prog_compiler_static='-static'
10861
10862     case $host_os in
10863       aix*)
10864       # All AIX code is PIC.
10865       if test "$host_cpu" = ia64; then
10866         # AIX 5 now supports IA64 processor
10867         lt_prog_compiler_static='-Bstatic'
10868       fi
10869       ;;
10870
10871     amigaos*)
10872       case $host_cpu in
10873       powerpc)
10874             # see comment about AmigaOS4 .so support
10875             lt_prog_compiler_pic='-fPIC'
10876         ;;
10877       m68k)
10878             # FIXME: we need at least 68020 code to build shared libraries, but
10879             # adding the `-m68020' flag to GCC prevents building anything better,
10880             # like `-m68040'.
10881             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10882         ;;
10883       esac
10884       ;;
10885
10886     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10887       # PIC is the default for these OSes.
10888       ;;
10889
10890     mingw* | cygwin* | pw32* | os2* | cegcc*)
10891       # This hack is so that the source file can tell whether it is being
10892       # built for inclusion in a dll (and should export symbols for example).
10893       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10894       # (--disable-auto-import) libraries
10895       lt_prog_compiler_pic='-DDLL_EXPORT'
10896       ;;
10897
10898     darwin* | rhapsody*)
10899       # PIC is the default on this platform
10900       # Common symbols not allowed in MH_DYLIB files
10901       lt_prog_compiler_pic='-fno-common'
10902       ;;
10903
10904     haiku*)
10905       # PIC is the default for Haiku.
10906       # The "-static" flag exists, but is broken.
10907       lt_prog_compiler_static=
10908       ;;
10909
10910     hpux*)
10911       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10912       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10913       # sets the default TLS model and affects inlining.
10914       case $host_cpu in
10915       hppa*64*)
10916         # +Z the default
10917         ;;
10918       *)
10919         lt_prog_compiler_pic='-fPIC'
10920         ;;
10921       esac
10922       ;;
10923
10924     interix[3-9]*)
10925       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10926       # Instead, we relocate shared libraries at runtime.
10927       ;;
10928
10929     msdosdjgpp*)
10930       # Just because we use GCC doesn't mean we suddenly get shared libraries
10931       # on systems that don't support them.
10932       lt_prog_compiler_can_build_shared=no
10933       enable_shared=no
10934       ;;
10935
10936     *nto* | *qnx*)
10937       # QNX uses GNU C++, but need to define -shared option too, otherwise
10938       # it will coredump.
10939       lt_prog_compiler_pic='-fPIC -shared'
10940       ;;
10941
10942     sysv4*MP*)
10943       if test -d /usr/nec; then
10944         lt_prog_compiler_pic=-Kconform_pic
10945       fi
10946       ;;
10947
10948     *)
10949       lt_prog_compiler_pic='-fPIC'
10950       ;;
10951     esac
10952
10953     case $cc_basename in
10954     nvcc*) # Cuda Compiler Driver 2.2
10955       lt_prog_compiler_wl='-Xlinker '
10956       if test -n "$lt_prog_compiler_pic"; then
10957         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10958       fi
10959       ;;
10960     esac
10961   else
10962     # PORTME Check for flag to pass linker flags through the system compiler.
10963     case $host_os in
10964     aix*)
10965       lt_prog_compiler_wl='-Wl,'
10966       if test "$host_cpu" = ia64; then
10967         # AIX 5 now supports IA64 processor
10968         lt_prog_compiler_static='-Bstatic'
10969       else
10970         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10971       fi
10972       ;;
10973
10974     mingw* | cygwin* | pw32* | os2* | cegcc*)
10975       # This hack is so that the source file can tell whether it is being
10976       # built for inclusion in a dll (and should export symbols for example).
10977       lt_prog_compiler_pic='-DDLL_EXPORT'
10978       ;;
10979
10980     hpux9* | hpux10* | hpux11*)
10981       lt_prog_compiler_wl='-Wl,'
10982       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10983       # not for PA HP-UX.
10984       case $host_cpu in
10985       hppa*64*|ia64*)
10986         # +Z the default
10987         ;;
10988       *)
10989         lt_prog_compiler_pic='+Z'
10990         ;;
10991       esac
10992       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10993       lt_prog_compiler_static='${wl}-a ${wl}archive'
10994       ;;
10995
10996     irix5* | irix6* | nonstopux*)
10997       lt_prog_compiler_wl='-Wl,'
10998       # PIC (with -KPIC) is the default.
10999       lt_prog_compiler_static='-non_shared'
11000       ;;
11001
11002     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11003       case $cc_basename in
11004       # old Intel for x86_64 which still supported -KPIC.
11005       ecc*)
11006         lt_prog_compiler_wl='-Wl,'
11007         lt_prog_compiler_pic='-KPIC'
11008         lt_prog_compiler_static='-static'
11009         ;;
11010       # icc used to be incompatible with GCC.
11011       # ICC 10 doesn't accept -KPIC any more.
11012       icc* | ifort*)
11013         lt_prog_compiler_wl='-Wl,'
11014         lt_prog_compiler_pic='-fPIC'
11015         lt_prog_compiler_static='-static'
11016         ;;
11017       # Lahey Fortran 8.1.
11018       lf95*)
11019         lt_prog_compiler_wl='-Wl,'
11020         lt_prog_compiler_pic='--shared'
11021         lt_prog_compiler_static='--static'
11022         ;;
11023       nagfor*)
11024         # NAG Fortran compiler
11025         lt_prog_compiler_wl='-Wl,-Wl,,'
11026         lt_prog_compiler_pic='-PIC'
11027         lt_prog_compiler_static='-Bstatic'
11028         ;;
11029       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11030         # Portland Group compilers (*not* the Pentium gcc compiler,
11031         # which looks to be a dead project)
11032         lt_prog_compiler_wl='-Wl,'
11033         lt_prog_compiler_pic='-fpic'
11034         lt_prog_compiler_static='-Bstatic'
11035         ;;
11036       ccc*)
11037         lt_prog_compiler_wl='-Wl,'
11038         # All Alpha code is PIC.
11039         lt_prog_compiler_static='-non_shared'
11040         ;;
11041       xl* | bgxl* | bgf* | mpixl*)
11042         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11043         lt_prog_compiler_wl='-Wl,'
11044         lt_prog_compiler_pic='-qpic'
11045         lt_prog_compiler_static='-qstaticlink'
11046         ;;
11047       *)
11048         case `$CC -V 2>&1 | sed 5q` in
11049         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11050           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11051           lt_prog_compiler_pic='-KPIC'
11052           lt_prog_compiler_static='-Bstatic'
11053           lt_prog_compiler_wl=''
11054           ;;
11055         *Sun\ F* | *Sun*Fortran*)
11056           lt_prog_compiler_pic='-KPIC'
11057           lt_prog_compiler_static='-Bstatic'
11058           lt_prog_compiler_wl='-Qoption ld '
11059           ;;
11060         *Sun\ C*)
11061           # Sun C 5.9
11062           lt_prog_compiler_pic='-KPIC'
11063           lt_prog_compiler_static='-Bstatic'
11064           lt_prog_compiler_wl='-Wl,'
11065           ;;
11066         *Intel*\ [CF]*Compiler*)
11067           lt_prog_compiler_wl='-Wl,'
11068           lt_prog_compiler_pic='-fPIC'
11069           lt_prog_compiler_static='-static'
11070           ;;
11071         *Portland\ Group*)
11072           lt_prog_compiler_wl='-Wl,'
11073           lt_prog_compiler_pic='-fpic'
11074           lt_prog_compiler_static='-Bstatic'
11075           ;;
11076         esac
11077         ;;
11078       esac
11079       ;;
11080
11081     newsos6)
11082       lt_prog_compiler_pic='-KPIC'
11083       lt_prog_compiler_static='-Bstatic'
11084       ;;
11085
11086     *nto* | *qnx*)
11087       # QNX uses GNU C++, but need to define -shared option too, otherwise
11088       # it will coredump.
11089       lt_prog_compiler_pic='-fPIC -shared'
11090       ;;
11091
11092     osf3* | osf4* | osf5*)
11093       lt_prog_compiler_wl='-Wl,'
11094       # All OSF/1 code is PIC.
11095       lt_prog_compiler_static='-non_shared'
11096       ;;
11097
11098     rdos*)
11099       lt_prog_compiler_static='-non_shared'
11100       ;;
11101
11102     solaris*)
11103       lt_prog_compiler_pic='-KPIC'
11104       lt_prog_compiler_static='-Bstatic'
11105       case $cc_basename in
11106       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11107         lt_prog_compiler_wl='-Qoption ld ';;
11108       *)
11109         lt_prog_compiler_wl='-Wl,';;
11110       esac
11111       ;;
11112
11113     sunos4*)
11114       lt_prog_compiler_wl='-Qoption ld '
11115       lt_prog_compiler_pic='-PIC'
11116       lt_prog_compiler_static='-Bstatic'
11117       ;;
11118
11119     sysv4 | sysv4.2uw2* | sysv4.3*)
11120       lt_prog_compiler_wl='-Wl,'
11121       lt_prog_compiler_pic='-KPIC'
11122       lt_prog_compiler_static='-Bstatic'
11123       ;;
11124
11125     sysv4*MP*)
11126       if test -d /usr/nec ;then
11127         lt_prog_compiler_pic='-Kconform_pic'
11128         lt_prog_compiler_static='-Bstatic'
11129       fi
11130       ;;
11131
11132     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11133       lt_prog_compiler_wl='-Wl,'
11134       lt_prog_compiler_pic='-KPIC'
11135       lt_prog_compiler_static='-Bstatic'
11136       ;;
11137
11138     unicos*)
11139       lt_prog_compiler_wl='-Wl,'
11140       lt_prog_compiler_can_build_shared=no
11141       ;;
11142
11143     uts4*)
11144       lt_prog_compiler_pic='-pic'
11145       lt_prog_compiler_static='-Bstatic'
11146       ;;
11147
11148     *)
11149       lt_prog_compiler_can_build_shared=no
11150       ;;
11151     esac
11152   fi
11153
11154 case $host_os in
11155   # For platforms which do not support PIC, -DPIC is meaningless:
11156   *djgpp*)
11157     lt_prog_compiler_pic=
11158     ;;
11159   *)
11160     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11161     ;;
11162 esac
11163
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11165 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11166 if ${lt_cv_prog_compiler_pic+:} false; then :
11167   $as_echo_n "(cached) " >&6
11168 else
11169   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11170 fi
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11172 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11173 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11174
11175 #
11176 # Check to make sure the PIC flag actually works.
11177 #
11178 if test -n "$lt_prog_compiler_pic"; then
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11181 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11182   $as_echo_n "(cached) " >&6
11183 else
11184   lt_cv_prog_compiler_pic_works=no
11185    ac_outfile=conftest.$ac_objext
11186    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11187    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11188    # Insert the option either (1) after the last *FLAGS variable, or
11189    # (2) before a word containing "conftest.", or (3) at the end.
11190    # Note that $ac_compile itself does not contain backslashes and begins
11191    # with a dollar sign (not a hyphen), so the echo should work correctly.
11192    # The option is referenced via a variable to avoid confusing sed.
11193    lt_compile=`echo "$ac_compile" | $SED \
11194    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11196    -e 's:$: $lt_compiler_flag:'`
11197    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11198    (eval "$lt_compile" 2>conftest.err)
11199    ac_status=$?
11200    cat conftest.err >&5
11201    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202    if (exit $ac_status) && test -s "$ac_outfile"; then
11203      # The compiler can only warn and ignore the option if not recognized
11204      # So say no if there are warnings other than the usual output.
11205      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11206      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11207      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11208        lt_cv_prog_compiler_pic_works=yes
11209      fi
11210    fi
11211    $RM conftest*
11212
11213 fi
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11216
11217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11218     case $lt_prog_compiler_pic in
11219      "" | " "*) ;;
11220      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11221      esac
11222 else
11223     lt_prog_compiler_pic=
11224      lt_prog_compiler_can_build_shared=no
11225 fi
11226
11227 fi
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239 #
11240 # Check to make sure the static flag actually works.
11241 #
11242 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11244 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11245 if ${lt_cv_prog_compiler_static_works+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   lt_cv_prog_compiler_static_works=no
11249    save_LDFLAGS="$LDFLAGS"
11250    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11251    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11252    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11253      # The linker can only warn and ignore the option if not recognized
11254      # So say no if there are warnings
11255      if test -s conftest.err; then
11256        # Append any errors to the config.log.
11257        cat conftest.err 1>&5
11258        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11259        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11260        if diff conftest.exp conftest.er2 >/dev/null; then
11261          lt_cv_prog_compiler_static_works=yes
11262        fi
11263      else
11264        lt_cv_prog_compiler_static_works=yes
11265      fi
11266    fi
11267    $RM -r conftest*
11268    LDFLAGS="$save_LDFLAGS"
11269
11270 fi
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11272 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11273
11274 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11275     :
11276 else
11277     lt_prog_compiler_static=
11278 fi
11279
11280
11281
11282
11283
11284
11285
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11287 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11288 if ${lt_cv_prog_compiler_c_o+:} false; then :
11289   $as_echo_n "(cached) " >&6
11290 else
11291   lt_cv_prog_compiler_c_o=no
11292    $RM -r conftest 2>/dev/null
11293    mkdir conftest
11294    cd conftest
11295    mkdir out
11296    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11297
11298    lt_compiler_flag="-o out/conftest2.$ac_objext"
11299    # Insert the option either (1) after the last *FLAGS variable, or
11300    # (2) before a word containing "conftest.", or (3) at the end.
11301    # Note that $ac_compile itself does not contain backslashes and begins
11302    # with a dollar sign (not a hyphen), so the echo should work correctly.
11303    lt_compile=`echo "$ac_compile" | $SED \
11304    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11306    -e 's:$: $lt_compiler_flag:'`
11307    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11308    (eval "$lt_compile" 2>out/conftest.err)
11309    ac_status=$?
11310    cat out/conftest.err >&5
11311    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11313    then
11314      # The compiler can only warn and ignore the option if not recognized
11315      # So say no if there are warnings
11316      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11317      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11318      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11319        lt_cv_prog_compiler_c_o=yes
11320      fi
11321    fi
11322    chmod u+w . 2>&5
11323    $RM conftest*
11324    # SGI C++ compiler will create directory out/ii_files/ for
11325    # template instantiation
11326    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11327    $RM out/* && rmdir out
11328    cd ..
11329    $RM -r conftest
11330    $RM conftest*
11331
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11334 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11335
11336
11337
11338
11339
11340
11341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11343 if ${lt_cv_prog_compiler_c_o+:} false; then :
11344   $as_echo_n "(cached) " >&6
11345 else
11346   lt_cv_prog_compiler_c_o=no
11347    $RM -r conftest 2>/dev/null
11348    mkdir conftest
11349    cd conftest
11350    mkdir out
11351    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11352
11353    lt_compiler_flag="-o out/conftest2.$ac_objext"
11354    # Insert the option either (1) after the last *FLAGS variable, or
11355    # (2) before a word containing "conftest.", or (3) at the end.
11356    # Note that $ac_compile itself does not contain backslashes and begins
11357    # with a dollar sign (not a hyphen), so the echo should work correctly.
11358    lt_compile=`echo "$ac_compile" | $SED \
11359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11361    -e 's:$: $lt_compiler_flag:'`
11362    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11363    (eval "$lt_compile" 2>out/conftest.err)
11364    ac_status=$?
11365    cat out/conftest.err >&5
11366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11368    then
11369      # The compiler can only warn and ignore the option if not recognized
11370      # So say no if there are warnings
11371      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11372      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11373      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11374        lt_cv_prog_compiler_c_o=yes
11375      fi
11376    fi
11377    chmod u+w . 2>&5
11378    $RM conftest*
11379    # SGI C++ compiler will create directory out/ii_files/ for
11380    # template instantiation
11381    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11382    $RM out/* && rmdir out
11383    cd ..
11384    $RM -r conftest
11385    $RM conftest*
11386
11387 fi
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11389 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11390
11391
11392
11393
11394 hard_links="nottested"
11395 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11396   # do not overwrite the value of need_locks provided by the user
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11398 $as_echo_n "checking if we can lock with hard links... " >&6; }
11399   hard_links=yes
11400   $RM conftest*
11401   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11402   touch conftest.a
11403   ln conftest.a conftest.b 2>&5 || hard_links=no
11404   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11406 $as_echo "$hard_links" >&6; }
11407   if test "$hard_links" = no; then
11408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11409 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11410     need_locks=warn
11411   fi
11412 else
11413   need_locks=no
11414 fi
11415
11416
11417
11418
11419
11420
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11422 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11423
11424   runpath_var=
11425   allow_undefined_flag=
11426   always_export_symbols=no
11427   archive_cmds=
11428   archive_expsym_cmds=
11429   compiler_needs_object=no
11430   enable_shared_with_static_runtimes=no
11431   export_dynamic_flag_spec=
11432   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11433   hardcode_automatic=no
11434   hardcode_direct=no
11435   hardcode_direct_absolute=no
11436   hardcode_libdir_flag_spec=
11437   hardcode_libdir_separator=
11438   hardcode_minus_L=no
11439   hardcode_shlibpath_var=unsupported
11440   inherit_rpath=no
11441   link_all_deplibs=unknown
11442   module_cmds=
11443   module_expsym_cmds=
11444   old_archive_from_new_cmds=
11445   old_archive_from_expsyms_cmds=
11446   thread_safe_flag_spec=
11447   whole_archive_flag_spec=
11448   # include_expsyms should be a list of space-separated symbols to be *always*
11449   # included in the symbol list
11450   include_expsyms=
11451   # exclude_expsyms can be an extended regexp of symbols to exclude
11452   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11453   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11454   # as well as any symbol that contains `d'.
11455   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11456   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11457   # platforms (ab)use it in PIC code, but their linkers get confused if
11458   # the symbol is explicitly referenced.  Since portable code cannot
11459   # rely on this symbol name, it's probably fine to never include it in
11460   # preloaded symbol tables.
11461   # Exclude shared library initialization/finalization symbols.
11462   extract_expsyms_cmds=
11463
11464   case $host_os in
11465   cygwin* | mingw* | pw32* | cegcc*)
11466     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11467     # When not using gcc, we currently assume that we are using
11468     # Microsoft Visual C++.
11469     if test "$GCC" != yes; then
11470       with_gnu_ld=no
11471     fi
11472     ;;
11473   interix*)
11474     # we just hope/assume this is gcc and not c89 (= MSVC++)
11475     with_gnu_ld=yes
11476     ;;
11477   openbsd*)
11478     with_gnu_ld=no
11479     ;;
11480   esac
11481
11482   ld_shlibs=yes
11483
11484   # On some targets, GNU ld is compatible enough with the native linker
11485   # that we're better off using the native interface for both.
11486   lt_use_gnu_ld_interface=no
11487   if test "$with_gnu_ld" = yes; then
11488     case $host_os in
11489       aix*)
11490         # The AIX port of GNU ld has always aspired to compatibility
11491         # with the native linker.  However, as the warning in the GNU ld
11492         # block says, versions before 2.19.5* couldn't really create working
11493         # shared libraries, regardless of the interface used.
11494         case `$LD -v 2>&1` in
11495           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11496           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11497           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11498           *)
11499             lt_use_gnu_ld_interface=yes
11500             ;;
11501         esac
11502         ;;
11503       *)
11504         lt_use_gnu_ld_interface=yes
11505         ;;
11506     esac
11507   fi
11508
11509   if test "$lt_use_gnu_ld_interface" = yes; then
11510     # If archive_cmds runs LD, not CC, wlarc should be empty
11511     wlarc='${wl}'
11512
11513     # Set some defaults for GNU ld with shared library support. These
11514     # are reset later if shared libraries are not supported. Putting them
11515     # here allows them to be overridden if necessary.
11516     runpath_var=LD_RUN_PATH
11517     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11518     export_dynamic_flag_spec='${wl}--export-dynamic'
11519     # ancient GNU ld didn't support --whole-archive et. al.
11520     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11521       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11522     else
11523       whole_archive_flag_spec=
11524     fi
11525     supports_anon_versioning=no
11526     case `$LD -v 2>&1` in
11527       *GNU\ gold*) supports_anon_versioning=yes ;;
11528       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11529       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11530       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11531       *\ 2.11.*) ;; # other 2.11 versions
11532       *) supports_anon_versioning=yes ;;
11533     esac
11534
11535     # See if GNU ld supports shared libraries.
11536     case $host_os in
11537     aix[3-9]*)
11538       # On AIX/PPC, the GNU linker is very broken
11539       if test "$host_cpu" != ia64; then
11540         ld_shlibs=no
11541         cat <<_LT_EOF 1>&2
11542
11543 *** Warning: the GNU linker, at least up to release 2.19, is reported
11544 *** to be unable to reliably create shared libraries on AIX.
11545 *** Therefore, libtool is disabling shared libraries support.  If you
11546 *** really care for shared libraries, you may want to install binutils
11547 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11548 *** You will then need to restart the configuration process.
11549
11550 _LT_EOF
11551       fi
11552       ;;
11553
11554     amigaos*)
11555       case $host_cpu in
11556       powerpc)
11557             # see comment about AmigaOS4 .so support
11558             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11559             archive_expsym_cmds=''
11560         ;;
11561       m68k)
11562             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)'
11563             hardcode_libdir_flag_spec='-L$libdir'
11564             hardcode_minus_L=yes
11565         ;;
11566       esac
11567       ;;
11568
11569     beos*)
11570       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11571         allow_undefined_flag=unsupported
11572         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11573         # support --undefined.  This deserves some investigation.  FIXME
11574         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11575       else
11576         ld_shlibs=no
11577       fi
11578       ;;
11579
11580     cygwin* | mingw* | pw32* | cegcc*)
11581       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11582       # as there is no search path for DLLs.
11583       hardcode_libdir_flag_spec='-L$libdir'
11584       export_dynamic_flag_spec='${wl}--export-all-symbols'
11585       allow_undefined_flag=unsupported
11586       always_export_symbols=no
11587       enable_shared_with_static_runtimes=yes
11588       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'
11589       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11590
11591       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11592         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11593         # If the export-symbols file already is a .def file (1st line
11594         # is EXPORTS), use it as is; otherwise, prepend...
11595         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11596           cp $export_symbols $output_objdir/$soname.def;
11597         else
11598           echo EXPORTS > $output_objdir/$soname.def;
11599           cat $export_symbols >> $output_objdir/$soname.def;
11600         fi~
11601         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11602       else
11603         ld_shlibs=no
11604       fi
11605       ;;
11606
11607     haiku*)
11608       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11609       link_all_deplibs=yes
11610       ;;
11611
11612     interix[3-9]*)
11613       hardcode_direct=no
11614       hardcode_shlibpath_var=no
11615       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11616       export_dynamic_flag_spec='${wl}-E'
11617       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11618       # Instead, shared libraries are loaded at an image base (0x10000000 by
11619       # default) and relocated if they conflict, which is a slow very memory
11620       # consuming and fragmenting process.  To avoid this, we pick a random,
11621       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11622       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11623       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11624       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'
11625       ;;
11626
11627     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11628       tmp_diet=no
11629       if test "$host_os" = linux-dietlibc; then
11630         case $cc_basename in
11631           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11632         esac
11633       fi
11634       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11635          && test "$tmp_diet" = no
11636       then
11637         tmp_addflag=' $pic_flag'
11638         tmp_sharedflag='-shared'
11639         case $cc_basename,$host_cpu in
11640         pgcc*)                          # Portland Group C compiler
11641           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'
11642           tmp_addflag=' $pic_flag'
11643           ;;
11644         pgf77* | pgf90* | pgf95* | pgfortran*)
11645                                         # Portland Group f77 and f90 compilers
11646           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'
11647           tmp_addflag=' $pic_flag -Mnomain' ;;
11648         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11649           tmp_addflag=' -i_dynamic' ;;
11650         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11651           tmp_addflag=' -i_dynamic -nofor_main' ;;
11652         ifc* | ifort*)                  # Intel Fortran compiler
11653           tmp_addflag=' -nofor_main' ;;
11654         lf95*)                          # Lahey Fortran 8.1
11655           whole_archive_flag_spec=
11656           tmp_sharedflag='--shared' ;;
11657         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11658           tmp_sharedflag='-qmkshrobj'
11659           tmp_addflag= ;;
11660         nvcc*)  # Cuda Compiler Driver 2.2
11661           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'
11662           compiler_needs_object=yes
11663           ;;
11664         esac
11665         case `$CC -V 2>&1 | sed 5q` in
11666         *Sun\ C*)                       # Sun C 5.9
11667           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'
11668           compiler_needs_object=yes
11669           tmp_sharedflag='-G' ;;
11670         *Sun\ F*)                       # Sun Fortran 8.3
11671           tmp_sharedflag='-G' ;;
11672         esac
11673         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11674
11675         if test "x$supports_anon_versioning" = xyes; then
11676           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11677             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11678             echo "local: *; };" >> $output_objdir/$libname.ver~
11679             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11680         fi
11681
11682         case $cc_basename in
11683         xlf* | bgf* | bgxlf* | mpixlf*)
11684           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11685           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11686           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11687           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11688           if test "x$supports_anon_versioning" = xyes; then
11689             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11690               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11691               echo "local: *; };" >> $output_objdir/$libname.ver~
11692               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11693           fi
11694           ;;
11695         esac
11696       else
11697         ld_shlibs=no
11698       fi
11699       ;;
11700
11701     netbsd*)
11702       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11703         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11704         wlarc=
11705       else
11706         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11707         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11708       fi
11709       ;;
11710
11711     solaris*)
11712       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11713         ld_shlibs=no
11714         cat <<_LT_EOF 1>&2
11715
11716 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11717 *** create shared libraries on Solaris systems.  Therefore, libtool
11718 *** is disabling shared libraries support.  We urge you to upgrade GNU
11719 *** binutils to release 2.9.1 or newer.  Another option is to modify
11720 *** your PATH or compiler configuration so that the native linker is
11721 *** used, and then restart.
11722
11723 _LT_EOF
11724       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11725         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11726         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11727       else
11728         ld_shlibs=no
11729       fi
11730       ;;
11731
11732     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11733       case `$LD -v 2>&1` in
11734         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11735         ld_shlibs=no
11736         cat <<_LT_EOF 1>&2
11737
11738 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11739 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11740 *** is disabling shared libraries support.  We urge you to upgrade GNU
11741 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11742 *** your PATH or compiler configuration so that the native linker is
11743 *** used, and then restart.
11744
11745 _LT_EOF
11746         ;;
11747         *)
11748           # For security reasons, it is highly recommended that you always
11749           # use absolute paths for naming shared libraries, and exclude the
11750           # DT_RUNPATH tag from executables and libraries.  But doing so
11751           # requires that you compile everything twice, which is a pain.
11752           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11753             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11754             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11755             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11756           else
11757             ld_shlibs=no
11758           fi
11759         ;;
11760       esac
11761       ;;
11762
11763     sunos4*)
11764       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11765       wlarc=
11766       hardcode_direct=yes
11767       hardcode_shlibpath_var=no
11768       ;;
11769
11770     *)
11771       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11772         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11773         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11774       else
11775         ld_shlibs=no
11776       fi
11777       ;;
11778     esac
11779
11780     if test "$ld_shlibs" = no; then
11781       runpath_var=
11782       hardcode_libdir_flag_spec=
11783       export_dynamic_flag_spec=
11784       whole_archive_flag_spec=
11785     fi
11786   else
11787     # PORTME fill in a description of your system's linker (not GNU ld)
11788     case $host_os in
11789     aix3*)
11790       allow_undefined_flag=unsupported
11791       always_export_symbols=yes
11792       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'
11793       # Note: this linker hardcodes the directories in LIBPATH if there
11794       # are no directories specified by -L.
11795       hardcode_minus_L=yes
11796       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11797         # Neither direct hardcoding nor static linking is supported with a
11798         # broken collect2.
11799         hardcode_direct=unsupported
11800       fi
11801       ;;
11802
11803     aix[4-9]*)
11804       if test "$host_cpu" = ia64; then
11805         # On IA64, the linker does run time linking by default, so we don't
11806         # have to do anything special.
11807         aix_use_runtimelinking=no
11808         exp_sym_flag='-Bexport'
11809         no_entry_flag=""
11810       else
11811         # If we're using GNU nm, then we don't want the "-C" option.
11812         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11813         # Also, AIX nm treats weak defined symbols like other global
11814         # defined symbols, whereas GNU nm marks them as "W".
11815         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11816           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11817         else
11818           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11819         fi
11820         aix_use_runtimelinking=no
11821
11822         # Test if we are trying to use run time linking or normal
11823         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11824         # need to do runtime linking.
11825         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11826           for ld_flag in $LDFLAGS; do
11827           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11828             aix_use_runtimelinking=yes
11829             break
11830           fi
11831           done
11832           ;;
11833         esac
11834
11835         exp_sym_flag='-bexport'
11836         no_entry_flag='-bnoentry'
11837       fi
11838
11839       # When large executables or shared objects are built, AIX ld can
11840       # have problems creating the table of contents.  If linking a library
11841       # or program results in "error TOC overflow" add -mminimal-toc to
11842       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11843       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11844
11845       archive_cmds=''
11846       hardcode_direct=yes
11847       hardcode_direct_absolute=yes
11848       hardcode_libdir_separator=':'
11849       link_all_deplibs=yes
11850       file_list_spec='${wl}-f,'
11851
11852       if test "$GCC" = yes; then
11853         case $host_os in aix4.[012]|aix4.[012].*)
11854         # We only want to do this on AIX 4.2 and lower, the check
11855         # below for broken collect2 doesn't work under 4.3+
11856           collect2name=`${CC} -print-prog-name=collect2`
11857           if test -f "$collect2name" &&
11858            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11859           then
11860           # We have reworked collect2
11861           :
11862           else
11863           # We have old collect2
11864           hardcode_direct=unsupported
11865           # It fails to find uninstalled libraries when the uninstalled
11866           # path is not listed in the libpath.  Setting hardcode_minus_L
11867           # to unsupported forces relinking
11868           hardcode_minus_L=yes
11869           hardcode_libdir_flag_spec='-L$libdir'
11870           hardcode_libdir_separator=
11871           fi
11872           ;;
11873         esac
11874         shared_flag='-shared'
11875         if test "$aix_use_runtimelinking" = yes; then
11876           shared_flag="$shared_flag "'${wl}-G'
11877         fi
11878       else
11879         # not using gcc
11880         if test "$host_cpu" = ia64; then
11881         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11882         # chokes on -Wl,-G. The following line is correct:
11883           shared_flag='-G'
11884         else
11885           if test "$aix_use_runtimelinking" = yes; then
11886             shared_flag='${wl}-G'
11887           else
11888             shared_flag='${wl}-bM:SRE'
11889           fi
11890         fi
11891       fi
11892
11893       export_dynamic_flag_spec='${wl}-bexpall'
11894       # It seems that -bexpall does not export symbols beginning with
11895       # underscore (_), so it is better to generate a list of symbols to export.
11896       always_export_symbols=yes
11897       if test "$aix_use_runtimelinking" = yes; then
11898         # Warning - without using the other runtime loading flags (-brtl),
11899         # -berok will link without error, but may produce a broken library.
11900         allow_undefined_flag='-berok'
11901         # Determine the default libpath from the value encoded in an
11902         # empty executable.
11903         if test "${lt_cv_aix_libpath+set}" = set; then
11904   aix_libpath=$lt_cv_aix_libpath
11905 else
11906   if ${lt_cv_aix_libpath_+:} false; then :
11907   $as_echo_n "(cached) " >&6
11908 else
11909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h.  */
11911
11912 int
11913 main ()
11914 {
11915
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921
11922   lt_aix_libpath_sed='
11923       /Import File Strings/,/^$/ {
11924           /^0/ {
11925               s/^0  *\([^ ]*\) *$/\1/
11926               p
11927           }
11928       }'
11929   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11930   # Check for a 64-bit object if we didn't find anything.
11931   if test -z "$lt_cv_aix_libpath_"; then
11932     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11933   fi
11934 fi
11935 rm -f core conftest.err conftest.$ac_objext \
11936     conftest$ac_exeext conftest.$ac_ext
11937   if test -z "$lt_cv_aix_libpath_"; then
11938     lt_cv_aix_libpath_="/usr/lib:/lib"
11939   fi
11940
11941 fi
11942
11943   aix_libpath=$lt_cv_aix_libpath_
11944 fi
11945
11946         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11947         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11948       else
11949         if test "$host_cpu" = ia64; then
11950           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11951           allow_undefined_flag="-z nodefs"
11952           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"
11953         else
11954          # Determine the default libpath from the value encoded in an
11955          # empty executable.
11956          if test "${lt_cv_aix_libpath+set}" = set; then
11957   aix_libpath=$lt_cv_aix_libpath
11958 else
11959   if ${lt_cv_aix_libpath_+:} false; then :
11960   $as_echo_n "(cached) " >&6
11961 else
11962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h.  */
11964
11965 int
11966 main ()
11967 {
11968
11969   ;
11970   return 0;
11971 }
11972 _ACEOF
11973 if ac_fn_c_try_link "$LINENO"; then :
11974
11975   lt_aix_libpath_sed='
11976       /Import File Strings/,/^$/ {
11977           /^0/ {
11978               s/^0  *\([^ ]*\) *$/\1/
11979               p
11980           }
11981       }'
11982   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11983   # Check for a 64-bit object if we didn't find anything.
11984   if test -z "$lt_cv_aix_libpath_"; then
11985     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11986   fi
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext \
11989     conftest$ac_exeext conftest.$ac_ext
11990   if test -z "$lt_cv_aix_libpath_"; then
11991     lt_cv_aix_libpath_="/usr/lib:/lib"
11992   fi
11993
11994 fi
11995
11996   aix_libpath=$lt_cv_aix_libpath_
11997 fi
11998
11999          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12000           # Warning - without using the other run time loading flags,
12001           # -berok will link without error, but may produce a broken library.
12002           no_undefined_flag=' ${wl}-bernotok'
12003           allow_undefined_flag=' ${wl}-berok'
12004           if test "$with_gnu_ld" = yes; then
12005             # We only use this code for GNU lds that support --whole-archive.
12006             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12007           else
12008             # Exported symbols can be pulled into shared objects from archives
12009             whole_archive_flag_spec='$convenience'
12010           fi
12011           archive_cmds_need_lc=yes
12012           # This is similar to how AIX traditionally builds its shared libraries.
12013           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12014         fi
12015       fi
12016       ;;
12017
12018     amigaos*)
12019       case $host_cpu in
12020       powerpc)
12021             # see comment about AmigaOS4 .so support
12022             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12023             archive_expsym_cmds=''
12024         ;;
12025       m68k)
12026             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)'
12027             hardcode_libdir_flag_spec='-L$libdir'
12028             hardcode_minus_L=yes
12029         ;;
12030       esac
12031       ;;
12032
12033     bsdi[45]*)
12034       export_dynamic_flag_spec=-rdynamic
12035       ;;
12036
12037     cygwin* | mingw* | pw32* | cegcc*)
12038       # When not using gcc, we currently assume that we are using
12039       # Microsoft Visual C++.
12040       # hardcode_libdir_flag_spec is actually meaningless, as there is
12041       # no search path for DLLs.
12042       case $cc_basename in
12043       cl*)
12044         # Native MSVC
12045         hardcode_libdir_flag_spec=' '
12046         allow_undefined_flag=unsupported
12047         always_export_symbols=yes
12048         file_list_spec='@'
12049         # Tell ltmain to make .lib files, not .a files.
12050         libext=lib
12051         # Tell ltmain to make .dll files, not .so files.
12052         shrext_cmds=".dll"
12053         # FIXME: Setting linknames here is a bad hack.
12054         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12055         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12056             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12057           else
12058             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12059           fi~
12060           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12061           linknames='
12062         # The linker will not automatically build a static lib if we build a DLL.
12063         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12064         enable_shared_with_static_runtimes=yes
12065         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12066         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12067         # Don't use ranlib
12068         old_postinstall_cmds='chmod 644 $oldlib'
12069         postlink_cmds='lt_outputfile="@OUTPUT@"~
12070           lt_tool_outputfile="@TOOL_OUTPUT@"~
12071           case $lt_outputfile in
12072             *.exe|*.EXE) ;;
12073             *)
12074               lt_outputfile="$lt_outputfile.exe"
12075               lt_tool_outputfile="$lt_tool_outputfile.exe"
12076               ;;
12077           esac~
12078           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12079             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12080             $RM "$lt_outputfile.manifest";
12081           fi'
12082         ;;
12083       *)
12084         # Assume MSVC wrapper
12085         hardcode_libdir_flag_spec=' '
12086         allow_undefined_flag=unsupported
12087         # Tell ltmain to make .lib files, not .a files.
12088         libext=lib
12089         # Tell ltmain to make .dll files, not .so files.
12090         shrext_cmds=".dll"
12091         # FIXME: Setting linknames here is a bad hack.
12092         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12093         # The linker will automatically build a .lib file if we build a DLL.
12094         old_archive_from_new_cmds='true'
12095         # FIXME: Should let the user specify the lib program.
12096         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12097         enable_shared_with_static_runtimes=yes
12098         ;;
12099       esac
12100       ;;
12101
12102     darwin* | rhapsody*)
12103
12104
12105   archive_cmds_need_lc=no
12106   hardcode_direct=no
12107   hardcode_automatic=yes
12108   hardcode_shlibpath_var=unsupported
12109   if test "$lt_cv_ld_force_load" = "yes"; then
12110     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\"`'
12111
12112   else
12113     whole_archive_flag_spec=''
12114   fi
12115   link_all_deplibs=yes
12116   allow_undefined_flag="$_lt_dar_allow_undefined"
12117   case $cc_basename in
12118      ifort*) _lt_dar_can_shared=yes ;;
12119      *) _lt_dar_can_shared=$GCC ;;
12120   esac
12121   if test "$_lt_dar_can_shared" = "yes"; then
12122     output_verbose_link_cmd=func_echo_all
12123     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12124     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12125     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}"
12126     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}"
12127
12128   else
12129   ld_shlibs=no
12130   fi
12131
12132       ;;
12133
12134     dgux*)
12135       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12136       hardcode_libdir_flag_spec='-L$libdir'
12137       hardcode_shlibpath_var=no
12138       ;;
12139
12140     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12141     # support.  Future versions do this automatically, but an explicit c++rt0.o
12142     # does not break anything, and helps significantly (at the cost of a little
12143     # extra space).
12144     freebsd2.2*)
12145       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12146       hardcode_libdir_flag_spec='-R$libdir'
12147       hardcode_direct=yes
12148       hardcode_shlibpath_var=no
12149       ;;
12150
12151     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12152     freebsd2.*)
12153       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12154       hardcode_direct=yes
12155       hardcode_minus_L=yes
12156       hardcode_shlibpath_var=no
12157       ;;
12158
12159     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12160     freebsd* | dragonfly*)
12161       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12162       hardcode_libdir_flag_spec='-R$libdir'
12163       hardcode_direct=yes
12164       hardcode_shlibpath_var=no
12165       ;;
12166
12167     hpux9*)
12168       if test "$GCC" = yes; then
12169         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12170       else
12171         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12172       fi
12173       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12174       hardcode_libdir_separator=:
12175       hardcode_direct=yes
12176
12177       # hardcode_minus_L: Not really in the search PATH,
12178       # but as the default location of the library.
12179       hardcode_minus_L=yes
12180       export_dynamic_flag_spec='${wl}-E'
12181       ;;
12182
12183     hpux10*)
12184       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12185         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12186       else
12187         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12188       fi
12189       if test "$with_gnu_ld" = no; then
12190         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12191         hardcode_libdir_separator=:
12192         hardcode_direct=yes
12193         hardcode_direct_absolute=yes
12194         export_dynamic_flag_spec='${wl}-E'
12195         # hardcode_minus_L: Not really in the search PATH,
12196         # but as the default location of the library.
12197         hardcode_minus_L=yes
12198       fi
12199       ;;
12200
12201     hpux11*)
12202       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12203         case $host_cpu in
12204         hppa*64*)
12205           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12206           ;;
12207         ia64*)
12208           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12209           ;;
12210         *)
12211           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12212           ;;
12213         esac
12214       else
12215         case $host_cpu in
12216         hppa*64*)
12217           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12218           ;;
12219         ia64*)
12220           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12221           ;;
12222         *)
12223
12224           # Older versions of the 11.00 compiler do not understand -b yet
12225           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12226           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12227 $as_echo_n "checking if $CC understands -b... " >&6; }
12228 if ${lt_cv_prog_compiler__b+:} false; then :
12229   $as_echo_n "(cached) " >&6
12230 else
12231   lt_cv_prog_compiler__b=no
12232    save_LDFLAGS="$LDFLAGS"
12233    LDFLAGS="$LDFLAGS -b"
12234    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12235    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12236      # The linker can only warn and ignore the option if not recognized
12237      # So say no if there are warnings
12238      if test -s conftest.err; then
12239        # Append any errors to the config.log.
12240        cat conftest.err 1>&5
12241        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12242        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12243        if diff conftest.exp conftest.er2 >/dev/null; then
12244          lt_cv_prog_compiler__b=yes
12245        fi
12246      else
12247        lt_cv_prog_compiler__b=yes
12248      fi
12249    fi
12250    $RM -r conftest*
12251    LDFLAGS="$save_LDFLAGS"
12252
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12256
12257 if test x"$lt_cv_prog_compiler__b" = xyes; then
12258     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12259 else
12260     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12261 fi
12262
12263           ;;
12264         esac
12265       fi
12266       if test "$with_gnu_ld" = no; then
12267         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12268         hardcode_libdir_separator=:
12269
12270         case $host_cpu in
12271         hppa*64*|ia64*)
12272           hardcode_direct=no
12273           hardcode_shlibpath_var=no
12274           ;;
12275         *)
12276           hardcode_direct=yes
12277           hardcode_direct_absolute=yes
12278           export_dynamic_flag_spec='${wl}-E'
12279
12280           # hardcode_minus_L: Not really in the search PATH,
12281           # but as the default location of the library.
12282           hardcode_minus_L=yes
12283           ;;
12284         esac
12285       fi
12286       ;;
12287
12288     irix5* | irix6* | nonstopux*)
12289       if test "$GCC" = yes; then
12290         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'
12291         # Try to use the -exported_symbol ld option, if it does not
12292         # work, assume that -exports_file does not work either and
12293         # implicitly export all symbols.
12294         # This should be the same for all languages, so no per-tag cache variable.
12295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12296 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12297 if ${lt_cv_irix_exported_symbol+:} false; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   save_LDFLAGS="$LDFLAGS"
12301            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12302            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h.  */
12304 int foo (void) { return 0; }
12305 _ACEOF
12306 if ac_fn_c_try_link "$LINENO"; then :
12307   lt_cv_irix_exported_symbol=yes
12308 else
12309   lt_cv_irix_exported_symbol=no
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext \
12312     conftest$ac_exeext conftest.$ac_ext
12313            LDFLAGS="$save_LDFLAGS"
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12316 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12317         if test "$lt_cv_irix_exported_symbol" = yes; then
12318           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'
12319         fi
12320       else
12321         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'
12322         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'
12323       fi
12324       archive_cmds_need_lc='no'
12325       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12326       hardcode_libdir_separator=:
12327       inherit_rpath=yes
12328       link_all_deplibs=yes
12329       ;;
12330
12331     netbsd*)
12332       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12333         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12334       else
12335         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12336       fi
12337       hardcode_libdir_flag_spec='-R$libdir'
12338       hardcode_direct=yes
12339       hardcode_shlibpath_var=no
12340       ;;
12341
12342     newsos6)
12343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12344       hardcode_direct=yes
12345       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12346       hardcode_libdir_separator=:
12347       hardcode_shlibpath_var=no
12348       ;;
12349
12350     *nto* | *qnx*)
12351       ;;
12352
12353     openbsd*)
12354       if test -f /usr/libexec/ld.so; then
12355         hardcode_direct=yes
12356         hardcode_shlibpath_var=no
12357         hardcode_direct_absolute=yes
12358         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12359           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12360           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12361           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12362           export_dynamic_flag_spec='${wl}-E'
12363         else
12364           case $host_os in
12365            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12366              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12367              hardcode_libdir_flag_spec='-R$libdir'
12368              ;;
12369            *)
12370              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12371              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12372              ;;
12373           esac
12374         fi
12375       else
12376         ld_shlibs=no
12377       fi
12378       ;;
12379
12380     os2*)
12381       hardcode_libdir_flag_spec='-L$libdir'
12382       hardcode_minus_L=yes
12383       allow_undefined_flag=unsupported
12384       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12385       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12386       ;;
12387
12388     osf3*)
12389       if test "$GCC" = yes; then
12390         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12391         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'
12392       else
12393         allow_undefined_flag=' -expect_unresolved \*'
12394         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'
12395       fi
12396       archive_cmds_need_lc='no'
12397       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12398       hardcode_libdir_separator=:
12399       ;;
12400
12401     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12402       if test "$GCC" = yes; then
12403         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12404         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'
12405         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12406       else
12407         allow_undefined_flag=' -expect_unresolved \*'
12408         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'
12409         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~
12410         $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'
12411
12412         # Both c and cxx compiler support -rpath directly
12413         hardcode_libdir_flag_spec='-rpath $libdir'
12414       fi
12415       archive_cmds_need_lc='no'
12416       hardcode_libdir_separator=:
12417       ;;
12418
12419     solaris*)
12420       no_undefined_flag=' -z defs'
12421       if test "$GCC" = yes; then
12422         wlarc='${wl}'
12423         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12424         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12425           $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'
12426       else
12427         case `$CC -V 2>&1` in
12428         *"Compilers 5.0"*)
12429           wlarc=''
12430           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12431           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12432           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12433           ;;
12434         *)
12435           wlarc='${wl}'
12436           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12437           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12438           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12439           ;;
12440         esac
12441       fi
12442       hardcode_libdir_flag_spec='-R$libdir'
12443       hardcode_shlibpath_var=no
12444       case $host_os in
12445       solaris2.[0-5] | solaris2.[0-5].*) ;;
12446       *)
12447         # The compiler driver will combine and reorder linker options,
12448         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12449         # but is careful enough not to reorder.
12450         # Supported since Solaris 2.6 (maybe 2.5.1?)
12451         if test "$GCC" = yes; then
12452           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12453         else
12454           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12455         fi
12456         ;;
12457       esac
12458       link_all_deplibs=yes
12459       ;;
12460
12461     sunos4*)
12462       if test "x$host_vendor" = xsequent; then
12463         # Use $CC to link under sequent, because it throws in some extra .o
12464         # files that make .init and .fini sections work.
12465         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12466       else
12467         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12468       fi
12469       hardcode_libdir_flag_spec='-L$libdir'
12470       hardcode_direct=yes
12471       hardcode_minus_L=yes
12472       hardcode_shlibpath_var=no
12473       ;;
12474
12475     sysv4)
12476       case $host_vendor in
12477         sni)
12478           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12479           hardcode_direct=yes # is this really true???
12480         ;;
12481         siemens)
12482           ## LD is ld it makes a PLAMLIB
12483           ## CC just makes a GrossModule.
12484           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12485           reload_cmds='$CC -r -o $output$reload_objs'
12486           hardcode_direct=no
12487         ;;
12488         motorola)
12489           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12490           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12491         ;;
12492       esac
12493       runpath_var='LD_RUN_PATH'
12494       hardcode_shlibpath_var=no
12495       ;;
12496
12497     sysv4.3*)
12498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12499       hardcode_shlibpath_var=no
12500       export_dynamic_flag_spec='-Bexport'
12501       ;;
12502
12503     sysv4*MP*)
12504       if test -d /usr/nec; then
12505         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12506         hardcode_shlibpath_var=no
12507         runpath_var=LD_RUN_PATH
12508         hardcode_runpath_var=yes
12509         ld_shlibs=yes
12510       fi
12511       ;;
12512
12513     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12514       no_undefined_flag='${wl}-z,text'
12515       archive_cmds_need_lc=no
12516       hardcode_shlibpath_var=no
12517       runpath_var='LD_RUN_PATH'
12518
12519       if test "$GCC" = yes; then
12520         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12521         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12522       else
12523         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12524         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12525       fi
12526       ;;
12527
12528     sysv5* | sco3.2v5* | sco5v6*)
12529       # Note: We can NOT use -z defs as we might desire, because we do not
12530       # link with -lc, and that would cause any symbols used from libc to
12531       # always be unresolved, which means just about no library would
12532       # ever link correctly.  If we're not using GNU ld we use -z text
12533       # though, which does catch some bad symbols but isn't as heavy-handed
12534       # as -z defs.
12535       no_undefined_flag='${wl}-z,text'
12536       allow_undefined_flag='${wl}-z,nodefs'
12537       archive_cmds_need_lc=no
12538       hardcode_shlibpath_var=no
12539       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12540       hardcode_libdir_separator=':'
12541       link_all_deplibs=yes
12542       export_dynamic_flag_spec='${wl}-Bexport'
12543       runpath_var='LD_RUN_PATH'
12544
12545       if test "$GCC" = yes; then
12546         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12548       else
12549         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12550         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12551       fi
12552       ;;
12553
12554     uts4*)
12555       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12556       hardcode_libdir_flag_spec='-L$libdir'
12557       hardcode_shlibpath_var=no
12558       ;;
12559
12560     *)
12561       ld_shlibs=no
12562       ;;
12563     esac
12564
12565     if test x$host_vendor = xsni; then
12566       case $host in
12567       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12568         export_dynamic_flag_spec='${wl}-Blargedynsym'
12569         ;;
12570       esac
12571     fi
12572   fi
12573
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12575 $as_echo "$ld_shlibs" >&6; }
12576 test "$ld_shlibs" = no && can_build_shared=no
12577
12578 with_gnu_ld=$with_gnu_ld
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594 #
12595 # Do we need to explicitly link libc?
12596 #
12597 case "x$archive_cmds_need_lc" in
12598 x|xyes)
12599   # Assume -lc should be added
12600   archive_cmds_need_lc=yes
12601
12602   if test "$enable_shared" = yes && test "$GCC" = yes; then
12603     case $archive_cmds in
12604     *'~'*)
12605       # FIXME: we may have to deal with multi-command sequences.
12606       ;;
12607     '$CC '*)
12608       # Test whether the compiler implicitly links with -lc since on some
12609       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12610       # to ld, don't add -lc before -lgcc.
12611       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12612 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12613 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12614   $as_echo_n "(cached) " >&6
12615 else
12616   $RM conftest*
12617         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12618
12619         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12620   (eval $ac_compile) 2>&5
12621   ac_status=$?
12622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12623   test $ac_status = 0; } 2>conftest.err; then
12624           soname=conftest
12625           lib=conftest
12626           libobjs=conftest.$ac_objext
12627           deplibs=
12628           wl=$lt_prog_compiler_wl
12629           pic_flag=$lt_prog_compiler_pic
12630           compiler_flags=-v
12631           linker_flags=-v
12632           verstring=
12633           output_objdir=.
12634           libname=conftest
12635           lt_save_allow_undefined_flag=$allow_undefined_flag
12636           allow_undefined_flag=
12637           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12638   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12639   ac_status=$?
12640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641   test $ac_status = 0; }
12642           then
12643             lt_cv_archive_cmds_need_lc=no
12644           else
12645             lt_cv_archive_cmds_need_lc=yes
12646           fi
12647           allow_undefined_flag=$lt_save_allow_undefined_flag
12648         else
12649           cat conftest.err 1>&5
12650         fi
12651         $RM conftest*
12652
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12655 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12656       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12657       ;;
12658     esac
12659   fi
12660   ;;
12661 esac
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12816
12817 if test "$GCC" = yes; then
12818   case $host_os in
12819     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12820     *) lt_awk_arg="/^libraries:/" ;;
12821   esac
12822   case $host_os in
12823     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12824     *) lt_sed_strip_eq="s,=/,/,g" ;;
12825   esac
12826   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12827   case $lt_search_path_spec in
12828   *\;*)
12829     # if the path contains ";" then we assume it to be the separator
12830     # otherwise default to the standard path separator (i.e. ":") - it is
12831     # assumed that no part of a normal pathname contains ";" but that should
12832     # okay in the real world where ";" in dirpaths is itself problematic.
12833     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12834     ;;
12835   *)
12836     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12837     ;;
12838   esac
12839   # Ok, now we have the path, separated by spaces, we can step through it
12840   # and add multilib dir if necessary.
12841   lt_tmp_lt_search_path_spec=
12842   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12843   for lt_sys_path in $lt_search_path_spec; do
12844     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12845       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12846     else
12847       test -d "$lt_sys_path" && \
12848         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12849     fi
12850   done
12851   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12852 BEGIN {RS=" "; FS="/|\n";} {
12853   lt_foo="";
12854   lt_count=0;
12855   for (lt_i = NF; lt_i > 0; lt_i--) {
12856     if ($lt_i != "" && $lt_i != ".") {
12857       if ($lt_i == "..") {
12858         lt_count++;
12859       } else {
12860         if (lt_count == 0) {
12861           lt_foo="/" $lt_i lt_foo;
12862         } else {
12863           lt_count--;
12864         }
12865       }
12866     }
12867   }
12868   if (lt_foo != "") { lt_freq[lt_foo]++; }
12869   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12870 }'`
12871   # AWK program above erroneously prepends '/' to C:/dos/paths
12872   # for these hosts.
12873   case $host_os in
12874     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12875       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12876   esac
12877   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12878 else
12879   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12880 fi
12881 library_names_spec=
12882 libname_spec='lib$name'
12883 soname_spec=
12884 shrext_cmds=".so"
12885 postinstall_cmds=
12886 postuninstall_cmds=
12887 finish_cmds=
12888 finish_eval=
12889 shlibpath_var=
12890 shlibpath_overrides_runpath=unknown
12891 version_type=none
12892 dynamic_linker="$host_os ld.so"
12893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12894 need_lib_prefix=unknown
12895 hardcode_into_libs=no
12896
12897 # when you set need_version to no, make sure it does not cause -set_version
12898 # flags to be left without arguments
12899 need_version=unknown
12900
12901 case $host_os in
12902 aix3*)
12903   version_type=linux # correct to gnu/linux during the next big refactor
12904   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12905   shlibpath_var=LIBPATH
12906
12907   # AIX 3 has no versioning support, so we append a major version to the name.
12908   soname_spec='${libname}${release}${shared_ext}$major'
12909   ;;
12910
12911 aix[4-9]*)
12912   version_type=linux # correct to gnu/linux during the next big refactor
12913   need_lib_prefix=no
12914   need_version=no
12915   hardcode_into_libs=yes
12916   if test "$host_cpu" = ia64; then
12917     # AIX 5 supports IA64
12918     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12919     shlibpath_var=LD_LIBRARY_PATH
12920   else
12921     # With GCC up to 2.95.x, collect2 would create an import file
12922     # for dependence libraries.  The import file would start with
12923     # the line `#! .'.  This would cause the generated library to
12924     # depend on `.', always an invalid library.  This was fixed in
12925     # development snapshots of GCC prior to 3.0.
12926     case $host_os in
12927       aix4 | aix4.[01] | aix4.[01].*)
12928       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12929            echo ' yes '
12930            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12931         :
12932       else
12933         can_build_shared=no
12934       fi
12935       ;;
12936     esac
12937     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12938     # soname into executable. Probably we can add versioning support to
12939     # collect2, so additional links can be useful in future.
12940     if test "$aix_use_runtimelinking" = yes; then
12941       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12942       # instead of lib<name>.a to let people know that these are not
12943       # typical AIX shared libraries.
12944       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945     else
12946       # We preserve .a as extension for shared libraries through AIX4.2
12947       # and later when we are not doing run time linking.
12948       library_names_spec='${libname}${release}.a $libname.a'
12949       soname_spec='${libname}${release}${shared_ext}$major'
12950     fi
12951     shlibpath_var=LIBPATH
12952   fi
12953   ;;
12954
12955 amigaos*)
12956   case $host_cpu in
12957   powerpc)
12958     # Since July 2007 AmigaOS4 officially supports .so libraries.
12959     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961     ;;
12962   m68k)
12963     library_names_spec='$libname.ixlibrary $libname.a'
12964     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12965     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12966     ;;
12967   esac
12968   ;;
12969
12970 beos*)
12971   library_names_spec='${libname}${shared_ext}'
12972   dynamic_linker="$host_os ld.so"
12973   shlibpath_var=LIBRARY_PATH
12974   ;;
12975
12976 bsdi[45]*)
12977   version_type=linux # correct to gnu/linux during the next big refactor
12978   need_version=no
12979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980   soname_spec='${libname}${release}${shared_ext}$major'
12981   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12982   shlibpath_var=LD_LIBRARY_PATH
12983   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12984   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12985   # the default ld.so.conf also contains /usr/contrib/lib and
12986   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12987   # libtool to hard-code these into programs
12988   ;;
12989
12990 cygwin* | mingw* | pw32* | cegcc*)
12991   version_type=windows
12992   shrext_cmds=".dll"
12993   need_version=no
12994   need_lib_prefix=no
12995
12996   case $GCC,$cc_basename in
12997   yes,*)
12998     # gcc
12999     library_names_spec='$libname.dll.a'
13000     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13001     postinstall_cmds='base_file=`basename \${file}`~
13002       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13003       dldir=$destdir/`dirname \$dlpath`~
13004       test -d \$dldir || mkdir -p \$dldir~
13005       $install_prog $dir/$dlname \$dldir/$dlname~
13006       chmod a+x \$dldir/$dlname~
13007       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13008         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13009       fi'
13010     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13011       dlpath=$dir/\$dldll~
13012        $RM \$dlpath'
13013     shlibpath_overrides_runpath=yes
13014
13015     case $host_os in
13016     cygwin*)
13017       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13018       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13019
13020       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13021       ;;
13022     mingw* | cegcc*)
13023       # MinGW DLLs use traditional 'lib' prefix
13024       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13025       ;;
13026     pw32*)
13027       # pw32 DLLs use 'pw' prefix rather than 'lib'
13028       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13029       ;;
13030     esac
13031     dynamic_linker='Win32 ld.exe'
13032     ;;
13033
13034   *,cl*)
13035     # Native MSVC
13036     libname_spec='$name'
13037     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13038     library_names_spec='${libname}.dll.lib'
13039
13040     case $build_os in
13041     mingw*)
13042       sys_lib_search_path_spec=
13043       lt_save_ifs=$IFS
13044       IFS=';'
13045       for lt_path in $LIB
13046       do
13047         IFS=$lt_save_ifs
13048         # Let DOS variable expansion print the short 8.3 style file name.
13049         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13050         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13051       done
13052       IFS=$lt_save_ifs
13053       # Convert to MSYS style.
13054       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13055       ;;
13056     cygwin*)
13057       # Convert to unix form, then to dos form, then back to unix form
13058       # but this time dos style (no spaces!) so that the unix form looks
13059       # like /cygdrive/c/PROGRA~1:/cygdr...
13060       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13061       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13062       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13063       ;;
13064     *)
13065       sys_lib_search_path_spec="$LIB"
13066       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13067         # It is most probably a Windows format PATH.
13068         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13069       else
13070         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13071       fi
13072       # FIXME: find the short name or the path components, as spaces are
13073       # common. (e.g. "Program Files" -> "PROGRA~1")
13074       ;;
13075     esac
13076
13077     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13078     postinstall_cmds='base_file=`basename \${file}`~
13079       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13080       dldir=$destdir/`dirname \$dlpath`~
13081       test -d \$dldir || mkdir -p \$dldir~
13082       $install_prog $dir/$dlname \$dldir/$dlname'
13083     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13084       dlpath=$dir/\$dldll~
13085        $RM \$dlpath'
13086     shlibpath_overrides_runpath=yes
13087     dynamic_linker='Win32 link.exe'
13088     ;;
13089
13090   *)
13091     # Assume MSVC wrapper
13092     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13093     dynamic_linker='Win32 ld.exe'
13094     ;;
13095   esac
13096   # FIXME: first we should search . and the directory the executable is in
13097   shlibpath_var=PATH
13098   ;;
13099
13100 darwin* | rhapsody*)
13101   dynamic_linker="$host_os dyld"
13102   version_type=darwin
13103   need_lib_prefix=no
13104   need_version=no
13105   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13106   soname_spec='${libname}${release}${major}$shared_ext'
13107   shlibpath_overrides_runpath=yes
13108   shlibpath_var=DYLD_LIBRARY_PATH
13109   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13110
13111   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13112   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13113   ;;
13114
13115 dgux*)
13116   version_type=linux # correct to gnu/linux during the next big refactor
13117   need_lib_prefix=no
13118   need_version=no
13119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13120   soname_spec='${libname}${release}${shared_ext}$major'
13121   shlibpath_var=LD_LIBRARY_PATH
13122   ;;
13123
13124 freebsd* | dragonfly*)
13125   # DragonFly does not have aout.  When/if they implement a new
13126   # versioning mechanism, adjust this.
13127   if test -x /usr/bin/objformat; then
13128     objformat=`/usr/bin/objformat`
13129   else
13130     case $host_os in
13131     freebsd[23].*) objformat=aout ;;
13132     *) objformat=elf ;;
13133     esac
13134   fi
13135   version_type=freebsd-$objformat
13136   case $version_type in
13137     freebsd-elf*)
13138       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13139       need_version=no
13140       need_lib_prefix=no
13141       ;;
13142     freebsd-*)
13143       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13144       need_version=yes
13145       ;;
13146   esac
13147   shlibpath_var=LD_LIBRARY_PATH
13148   case $host_os in
13149   freebsd2.*)
13150     shlibpath_overrides_runpath=yes
13151     ;;
13152   freebsd3.[01]* | freebsdelf3.[01]*)
13153     shlibpath_overrides_runpath=yes
13154     hardcode_into_libs=yes
13155     ;;
13156   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13157   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13158     shlibpath_overrides_runpath=no
13159     hardcode_into_libs=yes
13160     ;;
13161   *) # from 4.6 on, and DragonFly
13162     shlibpath_overrides_runpath=yes
13163     hardcode_into_libs=yes
13164     ;;
13165   esac
13166   ;;
13167
13168 gnu*)
13169   version_type=linux # correct to gnu/linux during the next big refactor
13170   need_lib_prefix=no
13171   need_version=no
13172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13173   soname_spec='${libname}${release}${shared_ext}$major'
13174   shlibpath_var=LD_LIBRARY_PATH
13175   shlibpath_overrides_runpath=no
13176   hardcode_into_libs=yes
13177   ;;
13178
13179 haiku*)
13180   version_type=linux # correct to gnu/linux during the next big refactor
13181   need_lib_prefix=no
13182   need_version=no
13183   dynamic_linker="$host_os runtime_loader"
13184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13185   soname_spec='${libname}${release}${shared_ext}$major'
13186   shlibpath_var=LIBRARY_PATH
13187   shlibpath_overrides_runpath=yes
13188   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13189   hardcode_into_libs=yes
13190   ;;
13191
13192 hpux9* | hpux10* | hpux11*)
13193   # Give a soname corresponding to the major version so that dld.sl refuses to
13194   # link against other versions.
13195   version_type=sunos
13196   need_lib_prefix=no
13197   need_version=no
13198   case $host_cpu in
13199   ia64*)
13200     shrext_cmds='.so'
13201     hardcode_into_libs=yes
13202     dynamic_linker="$host_os dld.so"
13203     shlibpath_var=LD_LIBRARY_PATH
13204     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206     soname_spec='${libname}${release}${shared_ext}$major'
13207     if test "X$HPUX_IA64_MODE" = X32; then
13208       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13209     else
13210       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13211     fi
13212     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13213     ;;
13214   hppa*64*)
13215     shrext_cmds='.sl'
13216     hardcode_into_libs=yes
13217     dynamic_linker="$host_os dld.sl"
13218     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221     soname_spec='${libname}${release}${shared_ext}$major'
13222     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13223     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13224     ;;
13225   *)
13226     shrext_cmds='.sl'
13227     dynamic_linker="$host_os dld.sl"
13228     shlibpath_var=SHLIB_PATH
13229     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231     soname_spec='${libname}${release}${shared_ext}$major'
13232     ;;
13233   esac
13234   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13235   postinstall_cmds='chmod 555 $lib'
13236   # or fails outright, so override atomically:
13237   install_override_mode=555
13238   ;;
13239
13240 interix[3-9]*)
13241   version_type=linux # correct to gnu/linux during the next big refactor
13242   need_lib_prefix=no
13243   need_version=no
13244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13245   soname_spec='${libname}${release}${shared_ext}$major'
13246   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13247   shlibpath_var=LD_LIBRARY_PATH
13248   shlibpath_overrides_runpath=no
13249   hardcode_into_libs=yes
13250   ;;
13251
13252 irix5* | irix6* | nonstopux*)
13253   case $host_os in
13254     nonstopux*) version_type=nonstopux ;;
13255     *)
13256         if test "$lt_cv_prog_gnu_ld" = yes; then
13257                 version_type=linux # correct to gnu/linux during the next big refactor
13258         else
13259                 version_type=irix
13260         fi ;;
13261   esac
13262   need_lib_prefix=no
13263   need_version=no
13264   soname_spec='${libname}${release}${shared_ext}$major'
13265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13266   case $host_os in
13267   irix5* | nonstopux*)
13268     libsuff= shlibsuff=
13269     ;;
13270   *)
13271     case $LD in # libtool.m4 will add one of these switches to LD
13272     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13273       libsuff= shlibsuff= libmagic=32-bit;;
13274     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13275       libsuff=32 shlibsuff=N32 libmagic=N32;;
13276     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13277       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13278     *) libsuff= shlibsuff= libmagic=never-match;;
13279     esac
13280     ;;
13281   esac
13282   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13283   shlibpath_overrides_runpath=no
13284   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13285   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13286   hardcode_into_libs=yes
13287   ;;
13288
13289 # No shared lib support for Linux oldld, aout, or coff.
13290 linux*oldld* | linux*aout* | linux*coff*)
13291   dynamic_linker=no
13292   ;;
13293
13294 # This must be glibc/ELF.
13295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13296   version_type=linux # correct to gnu/linux during the next big refactor
13297   need_lib_prefix=no
13298   need_version=no
13299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300   soname_spec='${libname}${release}${shared_ext}$major'
13301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13302   shlibpath_var=LD_LIBRARY_PATH
13303   shlibpath_overrides_runpath=no
13304
13305   # Some binutils ld are patched to set DT_RUNPATH
13306   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13307   $as_echo_n "(cached) " >&6
13308 else
13309   lt_cv_shlibpath_overrides_runpath=no
13310     save_LDFLAGS=$LDFLAGS
13311     save_libdir=$libdir
13312     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13313          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13314     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h.  */
13316
13317 int
13318 main ()
13319 {
13320
13321   ;
13322   return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"; then :
13326   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13327   lt_cv_shlibpath_overrides_runpath=yes
13328 fi
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext \
13331     conftest$ac_exeext conftest.$ac_ext
13332     LDFLAGS=$save_LDFLAGS
13333     libdir=$save_libdir
13334
13335 fi
13336
13337   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13338
13339   # This implies no fast_install, which is unacceptable.
13340   # Some rework will be needed to allow for fast_install
13341   # before this can be enabled.
13342   hardcode_into_libs=yes
13343
13344   # Append ld.so.conf contents to the search path
13345   if test -f /etc/ld.so.conf; then
13346     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' ' '`
13347     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13348   fi
13349
13350   # We used to test for /lib/ld.so.1 and disable shared libraries on
13351   # powerpc, because MkLinux only supported shared libraries with the
13352   # GNU dynamic linker.  Since this was broken with cross compilers,
13353   # most powerpc-linux boxes support dynamic linking these days and
13354   # people can always --disable-shared, the test was removed, and we
13355   # assume the GNU/Linux dynamic linker is in use.
13356   dynamic_linker='GNU/Linux ld.so'
13357   ;;
13358
13359 netbsd*)
13360   version_type=sunos
13361   need_lib_prefix=no
13362   need_version=no
13363   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13365     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13366     dynamic_linker='NetBSD (a.out) ld.so'
13367   else
13368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13369     soname_spec='${libname}${release}${shared_ext}$major'
13370     dynamic_linker='NetBSD ld.elf_so'
13371   fi
13372   shlibpath_var=LD_LIBRARY_PATH
13373   shlibpath_overrides_runpath=yes
13374   hardcode_into_libs=yes
13375   ;;
13376
13377 newsos6)
13378   version_type=linux # correct to gnu/linux during the next big refactor
13379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380   shlibpath_var=LD_LIBRARY_PATH
13381   shlibpath_overrides_runpath=yes
13382   ;;
13383
13384 *nto* | *qnx*)
13385   version_type=qnx
13386   need_lib_prefix=no
13387   need_version=no
13388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389   soname_spec='${libname}${release}${shared_ext}$major'
13390   shlibpath_var=LD_LIBRARY_PATH
13391   shlibpath_overrides_runpath=no
13392   hardcode_into_libs=yes
13393   dynamic_linker='ldqnx.so'
13394   ;;
13395
13396 openbsd*)
13397   version_type=sunos
13398   sys_lib_dlsearch_path_spec="/usr/lib"
13399   need_lib_prefix=no
13400   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13401   case $host_os in
13402     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13403     *)                          need_version=no  ;;
13404   esac
13405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13407   shlibpath_var=LD_LIBRARY_PATH
13408   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13409     case $host_os in
13410       openbsd2.[89] | openbsd2.[89].*)
13411         shlibpath_overrides_runpath=no
13412         ;;
13413       *)
13414         shlibpath_overrides_runpath=yes
13415         ;;
13416       esac
13417   else
13418     shlibpath_overrides_runpath=yes
13419   fi
13420   ;;
13421
13422 os2*)
13423   libname_spec='$name'
13424   shrext_cmds=".dll"
13425   need_lib_prefix=no
13426   library_names_spec='$libname${shared_ext} $libname.a'
13427   dynamic_linker='OS/2 ld.exe'
13428   shlibpath_var=LIBPATH
13429   ;;
13430
13431 osf3* | osf4* | osf5*)
13432   version_type=osf
13433   need_lib_prefix=no
13434   need_version=no
13435   soname_spec='${libname}${release}${shared_ext}$major'
13436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437   shlibpath_var=LD_LIBRARY_PATH
13438   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13439   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13440   ;;
13441
13442 rdos*)
13443   dynamic_linker=no
13444   ;;
13445
13446 solaris*)
13447   version_type=linux # correct to gnu/linux during the next big refactor
13448   need_lib_prefix=no
13449   need_version=no
13450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451   soname_spec='${libname}${release}${shared_ext}$major'
13452   shlibpath_var=LD_LIBRARY_PATH
13453   shlibpath_overrides_runpath=yes
13454   hardcode_into_libs=yes
13455   # ldd complains unless libraries are executable
13456   postinstall_cmds='chmod +x $lib'
13457   ;;
13458
13459 sunos4*)
13460   version_type=sunos
13461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13462   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13463   shlibpath_var=LD_LIBRARY_PATH
13464   shlibpath_overrides_runpath=yes
13465   if test "$with_gnu_ld" = yes; then
13466     need_lib_prefix=no
13467   fi
13468   need_version=yes
13469   ;;
13470
13471 sysv4 | sysv4.3*)
13472   version_type=linux # correct to gnu/linux during the next big refactor
13473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474   soname_spec='${libname}${release}${shared_ext}$major'
13475   shlibpath_var=LD_LIBRARY_PATH
13476   case $host_vendor in
13477     sni)
13478       shlibpath_overrides_runpath=no
13479       need_lib_prefix=no
13480       runpath_var=LD_RUN_PATH
13481       ;;
13482     siemens)
13483       need_lib_prefix=no
13484       ;;
13485     motorola)
13486       need_lib_prefix=no
13487       need_version=no
13488       shlibpath_overrides_runpath=no
13489       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13490       ;;
13491   esac
13492   ;;
13493
13494 sysv4*MP*)
13495   if test -d /usr/nec ;then
13496     version_type=linux # correct to gnu/linux during the next big refactor
13497     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13498     soname_spec='$libname${shared_ext}.$major'
13499     shlibpath_var=LD_LIBRARY_PATH
13500   fi
13501   ;;
13502
13503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13504   version_type=freebsd-elf
13505   need_lib_prefix=no
13506   need_version=no
13507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13508   soname_spec='${libname}${release}${shared_ext}$major'
13509   shlibpath_var=LD_LIBRARY_PATH
13510   shlibpath_overrides_runpath=yes
13511   hardcode_into_libs=yes
13512   if test "$with_gnu_ld" = yes; then
13513     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13514   else
13515     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13516     case $host_os in
13517       sco3.2v5*)
13518         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13519         ;;
13520     esac
13521   fi
13522   sys_lib_dlsearch_path_spec='/usr/lib'
13523   ;;
13524
13525 tpf*)
13526   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13527   version_type=linux # correct to gnu/linux during the next big refactor
13528   need_lib_prefix=no
13529   need_version=no
13530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531   shlibpath_var=LD_LIBRARY_PATH
13532   shlibpath_overrides_runpath=no
13533   hardcode_into_libs=yes
13534   ;;
13535
13536 uts4*)
13537   version_type=linux # correct to gnu/linux during the next big refactor
13538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13539   soname_spec='${libname}${release}${shared_ext}$major'
13540   shlibpath_var=LD_LIBRARY_PATH
13541   ;;
13542
13543 *)
13544   dynamic_linker=no
13545   ;;
13546 esac
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13548 $as_echo "$dynamic_linker" >&6; }
13549 test "$dynamic_linker" = no && can_build_shared=no
13550
13551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13552 if test "$GCC" = yes; then
13553   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13554 fi
13555
13556 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13557   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13558 fi
13559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13560   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13561 fi
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13655 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13656 hardcode_action=
13657 if test -n "$hardcode_libdir_flag_spec" ||
13658    test -n "$runpath_var" ||
13659    test "X$hardcode_automatic" = "Xyes" ; then
13660
13661   # We can hardcode non-existent directories.
13662   if test "$hardcode_direct" != no &&
13663      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13664      # have to relink, otherwise we might link with an installed library
13665      # when we should be linking with a yet-to-be-installed one
13666      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13667      test "$hardcode_minus_L" != no; then
13668     # Linking always hardcodes the temporary library directory.
13669     hardcode_action=relink
13670   else
13671     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13672     hardcode_action=immediate
13673   fi
13674 else
13675   # We cannot hardcode anything, or else we can only hardcode existing
13676   # directories.
13677   hardcode_action=unsupported
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13680 $as_echo "$hardcode_action" >&6; }
13681
13682 if test "$hardcode_action" = relink ||
13683    test "$inherit_rpath" = yes; then
13684   # Fast installation is not supported
13685   enable_fast_install=no
13686 elif test "$shlibpath_overrides_runpath" = yes ||
13687      test "$enable_shared" = no; then
13688   # Fast installation is not necessary
13689   enable_fast_install=needless
13690 fi
13691
13692
13693
13694
13695
13696
13697   if test "x$enable_dlopen" != xyes; then
13698   enable_dlopen=unknown
13699   enable_dlopen_self=unknown
13700   enable_dlopen_self_static=unknown
13701 else
13702   lt_cv_dlopen=no
13703   lt_cv_dlopen_libs=
13704
13705   case $host_os in
13706   beos*)
13707     lt_cv_dlopen="load_add_on"
13708     lt_cv_dlopen_libs=
13709     lt_cv_dlopen_self=yes
13710     ;;
13711
13712   mingw* | pw32* | cegcc*)
13713     lt_cv_dlopen="LoadLibrary"
13714     lt_cv_dlopen_libs=
13715     ;;
13716
13717   cygwin*)
13718     lt_cv_dlopen="dlopen"
13719     lt_cv_dlopen_libs=
13720     ;;
13721
13722   darwin*)
13723   # if libdl is installed we need to link against it
13724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13726 if ${ac_cv_lib_dl_dlopen+:} false; then :
13727   $as_echo_n "(cached) " >&6
13728 else
13729   ac_check_lib_save_LIBS=$LIBS
13730 LIBS="-ldl  $LIBS"
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h.  */
13733
13734 /* Override any GCC internal prototype to avoid an error.
13735    Use char because int might match the return type of a GCC
13736    builtin and then its argument prototype would still apply.  */
13737 #ifdef __cplusplus
13738 extern "C"
13739 #endif
13740 char dlopen ();
13741 int
13742 main ()
13743 {
13744 return dlopen ();
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_link "$LINENO"; then :
13750   ac_cv_lib_dl_dlopen=yes
13751 else
13752   ac_cv_lib_dl_dlopen=no
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext \
13755     conftest$ac_exeext conftest.$ac_ext
13756 LIBS=$ac_check_lib_save_LIBS
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13761   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13762 else
13763
13764     lt_cv_dlopen="dyld"
13765     lt_cv_dlopen_libs=
13766     lt_cv_dlopen_self=yes
13767
13768 fi
13769
13770     ;;
13771
13772   *)
13773     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13774 if test "x$ac_cv_func_shl_load" = xyes; then :
13775   lt_cv_dlopen="shl_load"
13776 else
13777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13778 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13779 if ${ac_cv_lib_dld_shl_load+:} false; then :
13780   $as_echo_n "(cached) " >&6
13781 else
13782   ac_check_lib_save_LIBS=$LIBS
13783 LIBS="-ldld  $LIBS"
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h.  */
13786
13787 /* Override any GCC internal prototype to avoid an error.
13788    Use char because int might match the return type of a GCC
13789    builtin and then its argument prototype would still apply.  */
13790 #ifdef __cplusplus
13791 extern "C"
13792 #endif
13793 char shl_load ();
13794 int
13795 main ()
13796 {
13797 return shl_load ();
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 if ac_fn_c_try_link "$LINENO"; then :
13803   ac_cv_lib_dld_shl_load=yes
13804 else
13805   ac_cv_lib_dld_shl_load=no
13806 fi
13807 rm -f core conftest.err conftest.$ac_objext \
13808     conftest$ac_exeext conftest.$ac_ext
13809 LIBS=$ac_check_lib_save_LIBS
13810 fi
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13812 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13813 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13814   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13815 else
13816   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13817 if test "x$ac_cv_func_dlopen" = xyes; then :
13818   lt_cv_dlopen="dlopen"
13819 else
13820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13822 if ${ac_cv_lib_dl_dlopen+:} false; then :
13823   $as_echo_n "(cached) " >&6
13824 else
13825   ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-ldl  $LIBS"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h.  */
13829
13830 /* Override any GCC internal prototype to avoid an error.
13831    Use char because int might match the return type of a GCC
13832    builtin and then its argument prototype would still apply.  */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 char dlopen ();
13837 int
13838 main ()
13839 {
13840 return dlopen ();
13841   ;
13842   return 0;
13843 }
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846   ac_cv_lib_dl_dlopen=yes
13847 else
13848   ac_cv_lib_dl_dlopen=no
13849 fi
13850 rm -f core conftest.err conftest.$ac_objext \
13851     conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13856 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13857   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13858 else
13859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13860 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13861 if ${ac_cv_lib_svld_dlopen+:} false; then :
13862   $as_echo_n "(cached) " >&6
13863 else
13864   ac_check_lib_save_LIBS=$LIBS
13865 LIBS="-lsvld  $LIBS"
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h.  */
13868
13869 /* Override any GCC internal prototype to avoid an error.
13870    Use char because int might match the return type of a GCC
13871    builtin and then its argument prototype would still apply.  */
13872 #ifdef __cplusplus
13873 extern "C"
13874 #endif
13875 char dlopen ();
13876 int
13877 main ()
13878 {
13879 return dlopen ();
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 if ac_fn_c_try_link "$LINENO"; then :
13885   ac_cv_lib_svld_dlopen=yes
13886 else
13887   ac_cv_lib_svld_dlopen=no
13888 fi
13889 rm -f core conftest.err conftest.$ac_objext \
13890     conftest$ac_exeext conftest.$ac_ext
13891 LIBS=$ac_check_lib_save_LIBS
13892 fi
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13894 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13895 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13897 else
13898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13899 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13900 if ${ac_cv_lib_dld_dld_link+:} false; then :
13901   $as_echo_n "(cached) " >&6
13902 else
13903   ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-ldld  $LIBS"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h.  */
13907
13908 /* Override any GCC internal prototype to avoid an error.
13909    Use char because int might match the return type of a GCC
13910    builtin and then its argument prototype would still apply.  */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 char dld_link ();
13915 int
13916 main ()
13917 {
13918 return dld_link ();
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 if ac_fn_c_try_link "$LINENO"; then :
13924   ac_cv_lib_dld_dld_link=yes
13925 else
13926   ac_cv_lib_dld_dld_link=no
13927 fi
13928 rm -f core conftest.err conftest.$ac_objext \
13929     conftest$ac_exeext conftest.$ac_ext
13930 LIBS=$ac_check_lib_save_LIBS
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13933 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13934 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13935   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13936 fi
13937
13938
13939 fi
13940
13941
13942 fi
13943
13944
13945 fi
13946
13947
13948 fi
13949
13950
13951 fi
13952
13953     ;;
13954   esac
13955
13956   if test "x$lt_cv_dlopen" != xno; then
13957     enable_dlopen=yes
13958   else
13959     enable_dlopen=no
13960   fi
13961
13962   case $lt_cv_dlopen in
13963   dlopen)
13964     save_CPPFLAGS="$CPPFLAGS"
13965     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13966
13967     save_LDFLAGS="$LDFLAGS"
13968     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13969
13970     save_LIBS="$LIBS"
13971     LIBS="$lt_cv_dlopen_libs $LIBS"
13972
13973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13974 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13975 if ${lt_cv_dlopen_self+:} false; then :
13976   $as_echo_n "(cached) " >&6
13977 else
13978           if test "$cross_compiling" = yes; then :
13979   lt_cv_dlopen_self=cross
13980 else
13981   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13982   lt_status=$lt_dlunknown
13983   cat > conftest.$ac_ext <<_LT_EOF
13984 #line $LINENO "configure"
13985 #include "confdefs.h"
13986
13987 #if HAVE_DLFCN_H
13988 #include <dlfcn.h>
13989 #endif
13990
13991 #include <stdio.h>
13992
13993 #ifdef RTLD_GLOBAL
13994 #  define LT_DLGLOBAL           RTLD_GLOBAL
13995 #else
13996 #  ifdef DL_GLOBAL
13997 #    define LT_DLGLOBAL         DL_GLOBAL
13998 #  else
13999 #    define LT_DLGLOBAL         0
14000 #  endif
14001 #endif
14002
14003 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14004    find out it does not work in some platform. */
14005 #ifndef LT_DLLAZY_OR_NOW
14006 #  ifdef RTLD_LAZY
14007 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14008 #  else
14009 #    ifdef DL_LAZY
14010 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14011 #    else
14012 #      ifdef RTLD_NOW
14013 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14014 #      else
14015 #        ifdef DL_NOW
14016 #          define LT_DLLAZY_OR_NOW      DL_NOW
14017 #        else
14018 #          define LT_DLLAZY_OR_NOW      0
14019 #        endif
14020 #      endif
14021 #    endif
14022 #  endif
14023 #endif
14024
14025 /* When -fvisbility=hidden is used, assume the code has been annotated
14026    correspondingly for the symbols needed.  */
14027 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14028 int fnord () __attribute__((visibility("default")));
14029 #endif
14030
14031 int fnord () { return 42; }
14032 int main ()
14033 {
14034   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14035   int status = $lt_dlunknown;
14036
14037   if (self)
14038     {
14039       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14040       else
14041         {
14042           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14043           else puts (dlerror ());
14044         }
14045       /* dlclose (self); */
14046     }
14047   else
14048     puts (dlerror ());
14049
14050   return status;
14051 }
14052 _LT_EOF
14053   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14054   (eval $ac_link) 2>&5
14055   ac_status=$?
14056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14057   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14058     (./conftest; exit; ) >&5 2>/dev/null
14059     lt_status=$?
14060     case x$lt_status in
14061       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14062       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14063       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14064     esac
14065   else :
14066     # compilation failed
14067     lt_cv_dlopen_self=no
14068   fi
14069 fi
14070 rm -fr conftest*
14071
14072
14073 fi
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14075 $as_echo "$lt_cv_dlopen_self" >&6; }
14076
14077     if test "x$lt_cv_dlopen_self" = xyes; then
14078       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14079       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14080 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14081 if ${lt_cv_dlopen_self_static+:} false; then :
14082   $as_echo_n "(cached) " >&6
14083 else
14084           if test "$cross_compiling" = yes; then :
14085   lt_cv_dlopen_self_static=cross
14086 else
14087   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14088   lt_status=$lt_dlunknown
14089   cat > conftest.$ac_ext <<_LT_EOF
14090 #line $LINENO "configure"
14091 #include "confdefs.h"
14092
14093 #if HAVE_DLFCN_H
14094 #include <dlfcn.h>
14095 #endif
14096
14097 #include <stdio.h>
14098
14099 #ifdef RTLD_GLOBAL
14100 #  define LT_DLGLOBAL           RTLD_GLOBAL
14101 #else
14102 #  ifdef DL_GLOBAL
14103 #    define LT_DLGLOBAL         DL_GLOBAL
14104 #  else
14105 #    define LT_DLGLOBAL         0
14106 #  endif
14107 #endif
14108
14109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14110    find out it does not work in some platform. */
14111 #ifndef LT_DLLAZY_OR_NOW
14112 #  ifdef RTLD_LAZY
14113 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14114 #  else
14115 #    ifdef DL_LAZY
14116 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14117 #    else
14118 #      ifdef RTLD_NOW
14119 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14120 #      else
14121 #        ifdef DL_NOW
14122 #          define LT_DLLAZY_OR_NOW      DL_NOW
14123 #        else
14124 #          define LT_DLLAZY_OR_NOW      0
14125 #        endif
14126 #      endif
14127 #    endif
14128 #  endif
14129 #endif
14130
14131 /* When -fvisbility=hidden is used, assume the code has been annotated
14132    correspondingly for the symbols needed.  */
14133 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14134 int fnord () __attribute__((visibility("default")));
14135 #endif
14136
14137 int fnord () { return 42; }
14138 int main ()
14139 {
14140   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14141   int status = $lt_dlunknown;
14142
14143   if (self)
14144     {
14145       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14146       else
14147         {
14148           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14149           else puts (dlerror ());
14150         }
14151       /* dlclose (self); */
14152     }
14153   else
14154     puts (dlerror ());
14155
14156   return status;
14157 }
14158 _LT_EOF
14159   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14160   (eval $ac_link) 2>&5
14161   ac_status=$?
14162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14164     (./conftest; exit; ) >&5 2>/dev/null
14165     lt_status=$?
14166     case x$lt_status in
14167       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14168       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14169       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14170     esac
14171   else :
14172     # compilation failed
14173     lt_cv_dlopen_self_static=no
14174   fi
14175 fi
14176 rm -fr conftest*
14177
14178
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14181 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14182     fi
14183
14184     CPPFLAGS="$save_CPPFLAGS"
14185     LDFLAGS="$save_LDFLAGS"
14186     LIBS="$save_LIBS"
14187     ;;
14188   esac
14189
14190   case $lt_cv_dlopen_self in
14191   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14192   *) enable_dlopen_self=unknown ;;
14193   esac
14194
14195   case $lt_cv_dlopen_self_static in
14196   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14197   *) enable_dlopen_self_static=unknown ;;
14198   esac
14199 fi
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217 striplib=
14218 old_striplib=
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14220 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14221 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14222   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14223   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14225 $as_echo "yes" >&6; }
14226 else
14227 # FIXME - insert some real tests, host_os isn't really good enough
14228   case $host_os in
14229   darwin*)
14230     if test -n "$STRIP" ; then
14231       striplib="$STRIP -x"
14232       old_striplib="$STRIP -S"
14233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14234 $as_echo "yes" >&6; }
14235     else
14236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238     fi
14239     ;;
14240   *)
14241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242 $as_echo "no" >&6; }
14243     ;;
14244   esac
14245 fi
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258   # Report which library types will actually be built
14259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14260 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14262 $as_echo "$can_build_shared" >&6; }
14263
14264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14265 $as_echo_n "checking whether to build shared libraries... " >&6; }
14266   test "$can_build_shared" = "no" && enable_shared=no
14267
14268   # On AIX, shared libraries and static libraries use the same namespace, and
14269   # are all built from PIC.
14270   case $host_os in
14271   aix3*)
14272     test "$enable_shared" = yes && enable_static=no
14273     if test -n "$RANLIB"; then
14274       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14275       postinstall_cmds='$RANLIB $lib'
14276     fi
14277     ;;
14278
14279   aix[4-9]*)
14280     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14281       test "$enable_shared" = yes && enable_static=no
14282     fi
14283     ;;
14284   esac
14285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14286 $as_echo "$enable_shared" >&6; }
14287
14288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14289 $as_echo_n "checking whether to build static libraries... " >&6; }
14290   # Make sure either enable_shared or enable_static is yes.
14291   test "$enable_shared" = yes || enable_static=yes
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14293 $as_echo "$enable_static" >&6; }
14294
14295
14296
14297
14298 fi
14299 ac_ext=c
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304
14305 CC="$lt_save_CC"
14306
14307       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14308     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14309     (test "X$CXX" != "Xg++"))) ; then
14310   ac_ext=cpp
14311 ac_cpp='$CXXCPP $CPPFLAGS'
14312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14316 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14317 if test -z "$CXXCPP"; then
14318   if ${ac_cv_prog_CXXCPP+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321       # Double quotes because CXXCPP needs to be expanded
14322     for CXXCPP in "$CXX -E" "/lib/cpp"
14323     do
14324       ac_preproc_ok=false
14325 for ac_cxx_preproc_warn_flag in '' yes
14326 do
14327   # Use a header file that comes with gcc, so configuring glibc
14328   # with a fresh cross-compiler works.
14329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14330   # <limits.h> exists even on freestanding compilers.
14331   # On the NeXT, cc -E runs the code through the compiler's parser,
14332   # not just through cpp. "Syntax error" is here to catch this case.
14333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h.  */
14335 #ifdef __STDC__
14336 # include <limits.h>
14337 #else
14338 # include <assert.h>
14339 #endif
14340                      Syntax error
14341 _ACEOF
14342 if ac_fn_cxx_try_cpp "$LINENO"; then :
14343
14344 else
14345   # Broken: fails on valid input.
14346 continue
14347 fi
14348 rm -f conftest.err conftest.i conftest.$ac_ext
14349
14350   # OK, works on sane cases.  Now check whether nonexistent headers
14351   # can be detected and how.
14352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h.  */
14354 #include <ac_nonexistent.h>
14355 _ACEOF
14356 if ac_fn_cxx_try_cpp "$LINENO"; then :
14357   # Broken: success on invalid input.
14358 continue
14359 else
14360   # Passes both tests.
14361 ac_preproc_ok=:
14362 break
14363 fi
14364 rm -f conftest.err conftest.i conftest.$ac_ext
14365
14366 done
14367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14368 rm -f conftest.i conftest.err conftest.$ac_ext
14369 if $ac_preproc_ok; then :
14370   break
14371 fi
14372
14373     done
14374     ac_cv_prog_CXXCPP=$CXXCPP
14375
14376 fi
14377   CXXCPP=$ac_cv_prog_CXXCPP
14378 else
14379   ac_cv_prog_CXXCPP=$CXXCPP
14380 fi
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14382 $as_echo "$CXXCPP" >&6; }
14383 ac_preproc_ok=false
14384 for ac_cxx_preproc_warn_flag in '' yes
14385 do
14386   # Use a header file that comes with gcc, so configuring glibc
14387   # with a fresh cross-compiler works.
14388   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14389   # <limits.h> exists even on freestanding compilers.
14390   # On the NeXT, cc -E runs the code through the compiler's parser,
14391   # not just through cpp. "Syntax error" is here to catch this case.
14392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h.  */
14394 #ifdef __STDC__
14395 # include <limits.h>
14396 #else
14397 # include <assert.h>
14398 #endif
14399                      Syntax error
14400 _ACEOF
14401 if ac_fn_cxx_try_cpp "$LINENO"; then :
14402
14403 else
14404   # Broken: fails on valid input.
14405 continue
14406 fi
14407 rm -f conftest.err conftest.i conftest.$ac_ext
14408
14409   # OK, works on sane cases.  Now check whether nonexistent headers
14410   # can be detected and how.
14411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h.  */
14413 #include <ac_nonexistent.h>
14414 _ACEOF
14415 if ac_fn_cxx_try_cpp "$LINENO"; then :
14416   # Broken: success on invalid input.
14417 continue
14418 else
14419   # Passes both tests.
14420 ac_preproc_ok=:
14421 break
14422 fi
14423 rm -f conftest.err conftest.i conftest.$ac_ext
14424
14425 done
14426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14427 rm -f conftest.i conftest.err conftest.$ac_ext
14428 if $ac_preproc_ok; then :
14429
14430 else
14431   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14433 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14434 See \`config.log' for more details" "$LINENO" 5; }
14435 fi
14436
14437 ac_ext=c
14438 ac_cpp='$CPP $CPPFLAGS'
14439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14442
14443 else
14444   _lt_caught_CXX_error=yes
14445 fi
14446
14447 ac_ext=cpp
14448 ac_cpp='$CXXCPP $CPPFLAGS'
14449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14452
14453 archive_cmds_need_lc_CXX=no
14454 allow_undefined_flag_CXX=
14455 always_export_symbols_CXX=no
14456 archive_expsym_cmds_CXX=
14457 compiler_needs_object_CXX=no
14458 export_dynamic_flag_spec_CXX=
14459 hardcode_direct_CXX=no
14460 hardcode_direct_absolute_CXX=no
14461 hardcode_libdir_flag_spec_CXX=
14462 hardcode_libdir_separator_CXX=
14463 hardcode_minus_L_CXX=no
14464 hardcode_shlibpath_var_CXX=unsupported
14465 hardcode_automatic_CXX=no
14466 inherit_rpath_CXX=no
14467 module_cmds_CXX=
14468 module_expsym_cmds_CXX=
14469 link_all_deplibs_CXX=unknown
14470 old_archive_cmds_CXX=$old_archive_cmds
14471 reload_flag_CXX=$reload_flag
14472 reload_cmds_CXX=$reload_cmds
14473 no_undefined_flag_CXX=
14474 whole_archive_flag_spec_CXX=
14475 enable_shared_with_static_runtimes_CXX=no
14476
14477 # Source file extension for C++ test sources.
14478 ac_ext=cpp
14479
14480 # Object file extension for compiled C++ test sources.
14481 objext=o
14482 objext_CXX=$objext
14483
14484 # No sense in running all these tests if we already determined that
14485 # the CXX compiler isn't working.  Some variables (like enable_shared)
14486 # are currently assumed to apply to all compilers on this platform,
14487 # and will be corrupted by setting them based on a non-working compiler.
14488 if test "$_lt_caught_CXX_error" != yes; then
14489   # Code to be used in simple compile tests
14490   lt_simple_compile_test_code="int some_variable = 0;"
14491
14492   # Code to be used in simple link tests
14493   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14494
14495   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14496
14497
14498
14499
14500
14501
14502 # If no C compiler was specified, use CC.
14503 LTCC=${LTCC-"$CC"}
14504
14505 # If no C compiler flags were specified, use CFLAGS.
14506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14507
14508 # Allow CC to be a program name with arguments.
14509 compiler=$CC
14510
14511
14512   # save warnings/boilerplate of simple test code
14513   ac_outfile=conftest.$ac_objext
14514 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14516 _lt_compiler_boilerplate=`cat conftest.err`
14517 $RM conftest*
14518
14519   ac_outfile=conftest.$ac_objext
14520 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14522 _lt_linker_boilerplate=`cat conftest.err`
14523 $RM -r conftest*
14524
14525
14526   # Allow CC to be a program name with arguments.
14527   lt_save_CC=$CC
14528   lt_save_CFLAGS=$CFLAGS
14529   lt_save_LD=$LD
14530   lt_save_GCC=$GCC
14531   GCC=$GXX
14532   lt_save_with_gnu_ld=$with_gnu_ld
14533   lt_save_path_LD=$lt_cv_path_LD
14534   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14535     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14536   else
14537     $as_unset lt_cv_prog_gnu_ld
14538   fi
14539   if test -n "${lt_cv_path_LDCXX+set}"; then
14540     lt_cv_path_LD=$lt_cv_path_LDCXX
14541   else
14542     $as_unset lt_cv_path_LD
14543   fi
14544   test -z "${LDCXX+set}" || LD=$LDCXX
14545   CC=${CXX-"c++"}
14546   CFLAGS=$CXXFLAGS
14547   compiler=$CC
14548   compiler_CXX=$CC
14549   for cc_temp in $compiler""; do
14550   case $cc_temp in
14551     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14552     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14553     \-*) ;;
14554     *) break;;
14555   esac
14556 done
14557 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14558
14559
14560   if test -n "$compiler"; then
14561     # We don't want -fno-exception when compiling C++ code, so set the
14562     # no_builtin_flag separately
14563     if test "$GXX" = yes; then
14564       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14565     else
14566       lt_prog_compiler_no_builtin_flag_CXX=
14567     fi
14568
14569     if test "$GXX" = yes; then
14570       # Set up default GNU C++ configuration
14571
14572
14573
14574 # Check whether --with-gnu-ld was given.
14575 if test "${with_gnu_ld+set}" = set; then :
14576   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14577 else
14578   with_gnu_ld=no
14579 fi
14580
14581 ac_prog=ld
14582 if test "$GCC" = yes; then
14583   # Check if gcc -print-prog-name=ld gives a path.
14584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14585 $as_echo_n "checking for ld used by $CC... " >&6; }
14586   case $host in
14587   *-*-mingw*)
14588     # gcc leaves a trailing carriage return which upsets mingw
14589     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14590   *)
14591     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14592   esac
14593   case $ac_prog in
14594     # Accept absolute paths.
14595     [\\/]* | ?:[\\/]*)
14596       re_direlt='/[^/][^/]*/\.\./'
14597       # Canonicalize the pathname of ld
14598       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14599       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14600         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14601       done
14602       test -z "$LD" && LD="$ac_prog"
14603       ;;
14604   "")
14605     # If it fails, then pretend we aren't using GCC.
14606     ac_prog=ld
14607     ;;
14608   *)
14609     # If it is relative, then search for the first ld in PATH.
14610     with_gnu_ld=unknown
14611     ;;
14612   esac
14613 elif test "$with_gnu_ld" = yes; then
14614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14615 $as_echo_n "checking for GNU ld... " >&6; }
14616 else
14617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14618 $as_echo_n "checking for non-GNU ld... " >&6; }
14619 fi
14620 if ${lt_cv_path_LD+:} false; then :
14621   $as_echo_n "(cached) " >&6
14622 else
14623   if test -z "$LD"; then
14624   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14625   for ac_dir in $PATH; do
14626     IFS="$lt_save_ifs"
14627     test -z "$ac_dir" && ac_dir=.
14628     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14629       lt_cv_path_LD="$ac_dir/$ac_prog"
14630       # Check to see if the program is GNU ld.  I'd rather use --version,
14631       # but apparently some variants of GNU ld only accept -v.
14632       # Break only if it was the GNU/non-GNU ld that we prefer.
14633       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14634       *GNU* | *'with BFD'*)
14635         test "$with_gnu_ld" != no && break
14636         ;;
14637       *)
14638         test "$with_gnu_ld" != yes && break
14639         ;;
14640       esac
14641     fi
14642   done
14643   IFS="$lt_save_ifs"
14644 else
14645   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14646 fi
14647 fi
14648
14649 LD="$lt_cv_path_LD"
14650 if test -n "$LD"; then
14651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14652 $as_echo "$LD" >&6; }
14653 else
14654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14656 fi
14657 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14659 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14660 if ${lt_cv_prog_gnu_ld+:} false; then :
14661   $as_echo_n "(cached) " >&6
14662 else
14663   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14664 case `$LD -v 2>&1 </dev/null` in
14665 *GNU* | *'with BFD'*)
14666   lt_cv_prog_gnu_ld=yes
14667   ;;
14668 *)
14669   lt_cv_prog_gnu_ld=no
14670   ;;
14671 esac
14672 fi
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14674 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14675 with_gnu_ld=$lt_cv_prog_gnu_ld
14676
14677
14678
14679
14680
14681
14682
14683       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14684       # archiving commands below assume that GNU ld is being used.
14685       if test "$with_gnu_ld" = yes; then
14686         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14687         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'
14688
14689         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14690         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14691
14692         # If archive_cmds runs LD, not CC, wlarc should be empty
14693         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14694         #     investigate it a little bit more. (MM)
14695         wlarc='${wl}'
14696
14697         # ancient GNU ld didn't support --whole-archive et. al.
14698         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14699           $GREP 'no-whole-archive' > /dev/null; then
14700           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14701         else
14702           whole_archive_flag_spec_CXX=
14703         fi
14704       else
14705         with_gnu_ld=no
14706         wlarc=
14707
14708         # A generic and very simple default shared library creation
14709         # command for GNU C++ for the case where it uses the native
14710         # linker, instead of GNU ld.  If possible, this setting should
14711         # overridden to take advantage of the native linker features on
14712         # the platform it is being used on.
14713         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14714       fi
14715
14716       # Commands to make compiler produce verbose output that lists
14717       # what "hidden" libraries, object files and flags are used when
14718       # linking a shared library.
14719       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14720
14721     else
14722       GXX=no
14723       with_gnu_ld=no
14724       wlarc=
14725     fi
14726
14727     # PORTME: fill in a description of your system's C++ link characteristics
14728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14729 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14730     ld_shlibs_CXX=yes
14731     case $host_os in
14732       aix3*)
14733         # FIXME: insert proper C++ library support
14734         ld_shlibs_CXX=no
14735         ;;
14736       aix[4-9]*)
14737         if test "$host_cpu" = ia64; then
14738           # On IA64, the linker does run time linking by default, so we don't
14739           # have to do anything special.
14740           aix_use_runtimelinking=no
14741           exp_sym_flag='-Bexport'
14742           no_entry_flag=""
14743         else
14744           aix_use_runtimelinking=no
14745
14746           # Test if we are trying to use run time linking or normal
14747           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14748           # need to do runtime linking.
14749           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14750             for ld_flag in $LDFLAGS; do
14751               case $ld_flag in
14752               *-brtl*)
14753                 aix_use_runtimelinking=yes
14754                 break
14755                 ;;
14756               esac
14757             done
14758             ;;
14759           esac
14760
14761           exp_sym_flag='-bexport'
14762           no_entry_flag='-bnoentry'
14763         fi
14764
14765         # When large executables or shared objects are built, AIX ld can
14766         # have problems creating the table of contents.  If linking a library
14767         # or program results in "error TOC overflow" add -mminimal-toc to
14768         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14769         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14770
14771         archive_cmds_CXX=''
14772         hardcode_direct_CXX=yes
14773         hardcode_direct_absolute_CXX=yes
14774         hardcode_libdir_separator_CXX=':'
14775         link_all_deplibs_CXX=yes
14776         file_list_spec_CXX='${wl}-f,'
14777
14778         if test "$GXX" = yes; then
14779           case $host_os in aix4.[012]|aix4.[012].*)
14780           # We only want to do this on AIX 4.2 and lower, the check
14781           # below for broken collect2 doesn't work under 4.3+
14782           collect2name=`${CC} -print-prog-name=collect2`
14783           if test -f "$collect2name" &&
14784              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14785           then
14786             # We have reworked collect2
14787             :
14788           else
14789             # We have old collect2
14790             hardcode_direct_CXX=unsupported
14791             # It fails to find uninstalled libraries when the uninstalled
14792             # path is not listed in the libpath.  Setting hardcode_minus_L
14793             # to unsupported forces relinking
14794             hardcode_minus_L_CXX=yes
14795             hardcode_libdir_flag_spec_CXX='-L$libdir'
14796             hardcode_libdir_separator_CXX=
14797           fi
14798           esac
14799           shared_flag='-shared'
14800           if test "$aix_use_runtimelinking" = yes; then
14801             shared_flag="$shared_flag "'${wl}-G'
14802           fi
14803         else
14804           # not using gcc
14805           if test "$host_cpu" = ia64; then
14806           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14807           # chokes on -Wl,-G. The following line is correct:
14808           shared_flag='-G'
14809           else
14810             if test "$aix_use_runtimelinking" = yes; then
14811               shared_flag='${wl}-G'
14812             else
14813               shared_flag='${wl}-bM:SRE'
14814             fi
14815           fi
14816         fi
14817
14818         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14819         # It seems that -bexpall does not export symbols beginning with
14820         # underscore (_), so it is better to generate a list of symbols to
14821         # export.
14822         always_export_symbols_CXX=yes
14823         if test "$aix_use_runtimelinking" = yes; then
14824           # Warning - without using the other runtime loading flags (-brtl),
14825           # -berok will link without error, but may produce a broken library.
14826           allow_undefined_flag_CXX='-berok'
14827           # Determine the default libpath from the value encoded in an empty
14828           # executable.
14829           if test "${lt_cv_aix_libpath+set}" = set; then
14830   aix_libpath=$lt_cv_aix_libpath
14831 else
14832   if ${lt_cv_aix_libpath__CXX+:} false; then :
14833   $as_echo_n "(cached) " >&6
14834 else
14835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h.  */
14837
14838 int
14839 main ()
14840 {
14841
14842   ;
14843   return 0;
14844 }
14845 _ACEOF
14846 if ac_fn_cxx_try_link "$LINENO"; then :
14847
14848   lt_aix_libpath_sed='
14849       /Import File Strings/,/^$/ {
14850           /^0/ {
14851               s/^0  *\([^ ]*\) *$/\1/
14852               p
14853           }
14854       }'
14855   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14856   # Check for a 64-bit object if we didn't find anything.
14857   if test -z "$lt_cv_aix_libpath__CXX"; then
14858     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14859   fi
14860 fi
14861 rm -f core conftest.err conftest.$ac_objext \
14862     conftest$ac_exeext conftest.$ac_ext
14863   if test -z "$lt_cv_aix_libpath__CXX"; then
14864     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14865   fi
14866
14867 fi
14868
14869   aix_libpath=$lt_cv_aix_libpath__CXX
14870 fi
14871
14872           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14873
14874           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14875         else
14876           if test "$host_cpu" = ia64; then
14877             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14878             allow_undefined_flag_CXX="-z nodefs"
14879             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"
14880           else
14881             # Determine the default libpath from the value encoded in an
14882             # empty executable.
14883             if test "${lt_cv_aix_libpath+set}" = set; then
14884   aix_libpath=$lt_cv_aix_libpath
14885 else
14886   if ${lt_cv_aix_libpath__CXX+:} false; then :
14887   $as_echo_n "(cached) " >&6
14888 else
14889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h.  */
14891
14892 int
14893 main ()
14894 {
14895
14896   ;
14897   return 0;
14898 }
14899 _ACEOF
14900 if ac_fn_cxx_try_link "$LINENO"; then :
14901
14902   lt_aix_libpath_sed='
14903       /Import File Strings/,/^$/ {
14904           /^0/ {
14905               s/^0  *\([^ ]*\) *$/\1/
14906               p
14907           }
14908       }'
14909   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14910   # Check for a 64-bit object if we didn't find anything.
14911   if test -z "$lt_cv_aix_libpath__CXX"; then
14912     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14913   fi
14914 fi
14915 rm -f core conftest.err conftest.$ac_objext \
14916     conftest$ac_exeext conftest.$ac_ext
14917   if test -z "$lt_cv_aix_libpath__CXX"; then
14918     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14919   fi
14920
14921 fi
14922
14923   aix_libpath=$lt_cv_aix_libpath__CXX
14924 fi
14925
14926             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14927             # Warning - without using the other run time loading flags,
14928             # -berok will link without error, but may produce a broken library.
14929             no_undefined_flag_CXX=' ${wl}-bernotok'
14930             allow_undefined_flag_CXX=' ${wl}-berok'
14931             if test "$with_gnu_ld" = yes; then
14932               # We only use this code for GNU lds that support --whole-archive.
14933               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14934             else
14935               # Exported symbols can be pulled into shared objects from archives
14936               whole_archive_flag_spec_CXX='$convenience'
14937             fi
14938             archive_cmds_need_lc_CXX=yes
14939             # This is similar to how AIX traditionally builds its shared
14940             # libraries.
14941             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14942           fi
14943         fi
14944         ;;
14945
14946       beos*)
14947         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14948           allow_undefined_flag_CXX=unsupported
14949           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14950           # support --undefined.  This deserves some investigation.  FIXME
14951           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14952         else
14953           ld_shlibs_CXX=no
14954         fi
14955         ;;
14956
14957       chorus*)
14958         case $cc_basename in
14959           *)
14960           # FIXME: insert proper C++ library support
14961           ld_shlibs_CXX=no
14962           ;;
14963         esac
14964         ;;
14965
14966       cygwin* | mingw* | pw32* | cegcc*)
14967         case $GXX,$cc_basename in
14968         ,cl* | no,cl*)
14969           # Native MSVC
14970           # hardcode_libdir_flag_spec is actually meaningless, as there is
14971           # no search path for DLLs.
14972           hardcode_libdir_flag_spec_CXX=' '
14973           allow_undefined_flag_CXX=unsupported
14974           always_export_symbols_CXX=yes
14975           file_list_spec_CXX='@'
14976           # Tell ltmain to make .lib files, not .a files.
14977           libext=lib
14978           # Tell ltmain to make .dll files, not .so files.
14979           shrext_cmds=".dll"
14980           # FIXME: Setting linknames here is a bad hack.
14981           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14982           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14984             else
14985               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14986             fi~
14987             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14988             linknames='
14989           # The linker will not automatically build a static lib if we build a DLL.
14990           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14991           enable_shared_with_static_runtimes_CXX=yes
14992           # Don't use ranlib
14993           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14994           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14995             lt_tool_outputfile="@TOOL_OUTPUT@"~
14996             case $lt_outputfile in
14997               *.exe|*.EXE) ;;
14998               *)
14999                 lt_outputfile="$lt_outputfile.exe"
15000                 lt_tool_outputfile="$lt_tool_outputfile.exe"
15001                 ;;
15002             esac~
15003             func_to_tool_file "$lt_outputfile"~
15004             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15005               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15006               $RM "$lt_outputfile.manifest";
15007             fi'
15008           ;;
15009         *)
15010           # g++
15011           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15012           # as there is no search path for DLLs.
15013           hardcode_libdir_flag_spec_CXX='-L$libdir'
15014           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15015           allow_undefined_flag_CXX=unsupported
15016           always_export_symbols_CXX=no
15017           enable_shared_with_static_runtimes_CXX=yes
15018
15019           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15020             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'
15021             # If the export-symbols file already is a .def file (1st line
15022             # is EXPORTS), use it as is; otherwise, prepend...
15023             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15024               cp $export_symbols $output_objdir/$soname.def;
15025             else
15026               echo EXPORTS > $output_objdir/$soname.def;
15027               cat $export_symbols >> $output_objdir/$soname.def;
15028             fi~
15029             $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'
15030           else
15031             ld_shlibs_CXX=no
15032           fi
15033           ;;
15034         esac
15035         ;;
15036       darwin* | rhapsody*)
15037
15038
15039   archive_cmds_need_lc_CXX=no
15040   hardcode_direct_CXX=no
15041   hardcode_automatic_CXX=yes
15042   hardcode_shlibpath_var_CXX=unsupported
15043   if test "$lt_cv_ld_force_load" = "yes"; then
15044     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\"`'
15045
15046   else
15047     whole_archive_flag_spec_CXX=''
15048   fi
15049   link_all_deplibs_CXX=yes
15050   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15051   case $cc_basename in
15052      ifort*) _lt_dar_can_shared=yes ;;
15053      *) _lt_dar_can_shared=$GCC ;;
15054   esac
15055   if test "$_lt_dar_can_shared" = "yes"; then
15056     output_verbose_link_cmd=func_echo_all
15057     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}"
15058     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15059     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}"
15060     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}"
15061        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15062       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}"
15063       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}"
15064     fi
15065
15066   else
15067   ld_shlibs_CXX=no
15068   fi
15069
15070         ;;
15071
15072       dgux*)
15073         case $cc_basename in
15074           ec++*)
15075             # FIXME: insert proper C++ library support
15076             ld_shlibs_CXX=no
15077             ;;
15078           ghcx*)
15079             # Green Hills C++ Compiler
15080             # FIXME: insert proper C++ library support
15081             ld_shlibs_CXX=no
15082             ;;
15083           *)
15084             # FIXME: insert proper C++ library support
15085             ld_shlibs_CXX=no
15086             ;;
15087         esac
15088         ;;
15089
15090       freebsd2.*)
15091         # C++ shared libraries reported to be fairly broken before
15092         # switch to ELF
15093         ld_shlibs_CXX=no
15094         ;;
15095
15096       freebsd-elf*)
15097         archive_cmds_need_lc_CXX=no
15098         ;;
15099
15100       freebsd* | dragonfly*)
15101         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15102         # conventions
15103         ld_shlibs_CXX=yes
15104         ;;
15105
15106       gnu*)
15107         ;;
15108
15109       haiku*)
15110         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111         link_all_deplibs_CXX=yes
15112         ;;
15113
15114       hpux9*)
15115         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15116         hardcode_libdir_separator_CXX=:
15117         export_dynamic_flag_spec_CXX='${wl}-E'
15118         hardcode_direct_CXX=yes
15119         hardcode_minus_L_CXX=yes # Not in the search PATH,
15120                                              # but as the default
15121                                              # location of the library.
15122
15123         case $cc_basename in
15124           CC*)
15125             # FIXME: insert proper C++ library support
15126             ld_shlibs_CXX=no
15127             ;;
15128           aCC*)
15129             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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15130             # Commands to make compiler produce verbose output that lists
15131             # what "hidden" libraries, object files and flags are used when
15132             # linking a shared library.
15133             #
15134             # There doesn't appear to be a way to prevent this compiler from
15135             # explicitly linking system object files so we need to strip them
15136             # from the output so that they don't get included in the library
15137             # dependencies.
15138             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"'
15139             ;;
15140           *)
15141             if test "$GXX" = yes; then
15142               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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15143             else
15144               # FIXME: insert proper C++ library support
15145               ld_shlibs_CXX=no
15146             fi
15147             ;;
15148         esac
15149         ;;
15150
15151       hpux10*|hpux11*)
15152         if test $with_gnu_ld = no; then
15153           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15154           hardcode_libdir_separator_CXX=:
15155
15156           case $host_cpu in
15157             hppa*64*|ia64*)
15158               ;;
15159             *)
15160               export_dynamic_flag_spec_CXX='${wl}-E'
15161               ;;
15162           esac
15163         fi
15164         case $host_cpu in
15165           hppa*64*|ia64*)
15166             hardcode_direct_CXX=no
15167             hardcode_shlibpath_var_CXX=no
15168             ;;
15169           *)
15170             hardcode_direct_CXX=yes
15171             hardcode_direct_absolute_CXX=yes
15172             hardcode_minus_L_CXX=yes # Not in the search PATH,
15173                                                  # but as the default
15174                                                  # location of the library.
15175             ;;
15176         esac
15177
15178         case $cc_basename in
15179           CC*)
15180             # FIXME: insert proper C++ library support
15181             ld_shlibs_CXX=no
15182             ;;
15183           aCC*)
15184             case $host_cpu in
15185               hppa*64*)
15186                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15187                 ;;
15188               ia64*)
15189                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15190                 ;;
15191               *)
15192                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15193                 ;;
15194             esac
15195             # Commands to make compiler produce verbose output that lists
15196             # what "hidden" libraries, object files and flags are used when
15197             # linking a shared library.
15198             #
15199             # There doesn't appear to be a way to prevent this compiler from
15200             # explicitly linking system object files so we need to strip them
15201             # from the output so that they don't get included in the library
15202             # dependencies.
15203             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"'
15204             ;;
15205           *)
15206             if test "$GXX" = yes; then
15207               if test $with_gnu_ld = no; then
15208                 case $host_cpu in
15209                   hppa*64*)
15210                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15211                     ;;
15212                   ia64*)
15213                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15214                     ;;
15215                   *)
15216                     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'
15217                     ;;
15218                 esac
15219               fi
15220             else
15221               # FIXME: insert proper C++ library support
15222               ld_shlibs_CXX=no
15223             fi
15224             ;;
15225         esac
15226         ;;
15227
15228       interix[3-9]*)
15229         hardcode_direct_CXX=no
15230         hardcode_shlibpath_var_CXX=no
15231         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15232         export_dynamic_flag_spec_CXX='${wl}-E'
15233         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15234         # Instead, shared libraries are loaded at an image base (0x10000000 by
15235         # default) and relocated if they conflict, which is a slow very memory
15236         # consuming and fragmenting process.  To avoid this, we pick a random,
15237         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15238         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15239         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'
15240         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'
15241         ;;
15242       irix5* | irix6*)
15243         case $cc_basename in
15244           CC*)
15245             # SGI C++
15246             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'
15247
15248             # Archives containing C++ object files must be created using
15249             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15250             # necessary to make sure instantiated templates are included
15251             # in the archive.
15252             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15253             ;;
15254           *)
15255             if test "$GXX" = yes; then
15256               if test "$with_gnu_ld" = no; then
15257                 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'
15258               else
15259                 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'
15260               fi
15261             fi
15262             link_all_deplibs_CXX=yes
15263             ;;
15264         esac
15265         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15266         hardcode_libdir_separator_CXX=:
15267         inherit_rpath_CXX=yes
15268         ;;
15269
15270       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15271         case $cc_basename in
15272           KCC*)
15273             # Kuck and Associates, Inc. (KAI) C++ Compiler
15274
15275             # KCC will only create a shared library if the output file
15276             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15277             # to its proper name (with version) after linking.
15278             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'
15279             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'
15280             # Commands to make compiler produce verbose output that lists
15281             # what "hidden" libraries, object files and flags are used when
15282             # linking a shared library.
15283             #
15284             # There doesn't appear to be a way to prevent this compiler from
15285             # explicitly linking system object files so we need to strip them
15286             # from the output so that they don't get included in the library
15287             # dependencies.
15288             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"'
15289
15290             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15291             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15292
15293             # Archives containing C++ object files must be created using
15294             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15295             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15296             ;;
15297           icpc* | ecpc* )
15298             # Intel C++
15299             with_gnu_ld=yes
15300             # version 8.0 and above of icpc choke on multiply defined symbols
15301             # if we add $predep_objects and $postdep_objects, however 7.1 and
15302             # earlier do not add the objects themselves.
15303             case `$CC -V 2>&1` in
15304               *"Version 7."*)
15305                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15306                 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'
15307                 ;;
15308               *)  # Version 8.0 or newer
15309                 tmp_idyn=
15310                 case $host_cpu in
15311                   ia64*) tmp_idyn=' -i_dynamic';;
15312                 esac
15313                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15314                 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'
15315                 ;;
15316             esac
15317             archive_cmds_need_lc_CXX=no
15318             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15319             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15320             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15321             ;;
15322           pgCC* | pgcpp*)
15323             # Portland Group C++ compiler
15324             case `$CC -V` in
15325             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15326               prelink_cmds_CXX='tpldir=Template.dir~
15327                 rm -rf $tpldir~
15328                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15329                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15330               old_archive_cmds_CXX='tpldir=Template.dir~
15331                 rm -rf $tpldir~
15332                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15333                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15334                 $RANLIB $oldlib'
15335               archive_cmds_CXX='tpldir=Template.dir~
15336                 rm -rf $tpldir~
15337                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15338                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15339               archive_expsym_cmds_CXX='tpldir=Template.dir~
15340                 rm -rf $tpldir~
15341                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15342                 $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'
15343               ;;
15344             *) # Version 6 and above use weak symbols
15345               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15346               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'
15347               ;;
15348             esac
15349
15350             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15351             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15352             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'
15353             ;;
15354           cxx*)
15355             # Compaq C++
15356             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15357             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'
15358
15359             runpath_var=LD_RUN_PATH
15360             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15361             hardcode_libdir_separator_CXX=:
15362
15363             # Commands to make compiler produce verbose output that lists
15364             # what "hidden" libraries, object files and flags are used when
15365             # linking a shared library.
15366             #
15367             # There doesn't appear to be a way to prevent this compiler from
15368             # explicitly linking system object files so we need to strip them
15369             # from the output so that they don't get included in the library
15370             # dependencies.
15371             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'
15372             ;;
15373           xl* | mpixl* | bgxl*)
15374             # IBM XL 8.0 on PPC, with GNU ld
15375             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15376             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15377             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378             if test "x$supports_anon_versioning" = xyes; then
15379               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15380                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15381                 echo "local: *; };" >> $output_objdir/$libname.ver~
15382                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15383             fi
15384             ;;
15385           *)
15386             case `$CC -V 2>&1 | sed 5q` in
15387             *Sun\ C*)
15388               # Sun C++ 5.9
15389               no_undefined_flag_CXX=' -zdefs'
15390               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15391               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'
15392               hardcode_libdir_flag_spec_CXX='-R$libdir'
15393               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'
15394               compiler_needs_object_CXX=yes
15395
15396               # Not sure whether something based on
15397               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15398               # would be better.
15399               output_verbose_link_cmd='func_echo_all'
15400
15401               # Archives containing C++ object files must be created using
15402               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15403               # necessary to make sure instantiated templates are included
15404               # in the archive.
15405               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15406               ;;
15407             esac
15408             ;;
15409         esac
15410         ;;
15411
15412       lynxos*)
15413         # FIXME: insert proper C++ library support
15414         ld_shlibs_CXX=no
15415         ;;
15416
15417       m88k*)
15418         # FIXME: insert proper C++ library support
15419         ld_shlibs_CXX=no
15420         ;;
15421
15422       mvs*)
15423         case $cc_basename in
15424           cxx*)
15425             # FIXME: insert proper C++ library support
15426             ld_shlibs_CXX=no
15427             ;;
15428           *)
15429             # FIXME: insert proper C++ library support
15430             ld_shlibs_CXX=no
15431             ;;
15432         esac
15433         ;;
15434
15435       netbsd*)
15436         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15437           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15438           wlarc=
15439           hardcode_libdir_flag_spec_CXX='-R$libdir'
15440           hardcode_direct_CXX=yes
15441           hardcode_shlibpath_var_CXX=no
15442         fi
15443         # Workaround some broken pre-1.5 toolchains
15444         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15445         ;;
15446
15447       *nto* | *qnx*)
15448         ld_shlibs_CXX=yes
15449         ;;
15450
15451       openbsd2*)
15452         # C++ shared libraries are fairly broken
15453         ld_shlibs_CXX=no
15454         ;;
15455
15456       openbsd*)
15457         if test -f /usr/libexec/ld.so; then
15458           hardcode_direct_CXX=yes
15459           hardcode_shlibpath_var_CXX=no
15460           hardcode_direct_absolute_CXX=yes
15461           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15462           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15463           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15464             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15465             export_dynamic_flag_spec_CXX='${wl}-E'
15466             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15467           fi
15468           output_verbose_link_cmd=func_echo_all
15469         else
15470           ld_shlibs_CXX=no
15471         fi
15472         ;;
15473
15474       osf3* | osf4* | osf5*)
15475         case $cc_basename in
15476           KCC*)
15477             # Kuck and Associates, Inc. (KAI) C++ Compiler
15478
15479             # KCC will only create a shared library if the output file
15480             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15481             # to its proper name (with version) after linking.
15482             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'
15483
15484             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15485             hardcode_libdir_separator_CXX=:
15486
15487             # Archives containing C++ object files must be created using
15488             # the KAI C++ compiler.
15489             case $host in
15490               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15491               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15492             esac
15493             ;;
15494           RCC*)
15495             # Rational C++ 2.4.1
15496             # FIXME: insert proper C++ library support
15497             ld_shlibs_CXX=no
15498             ;;
15499           cxx*)
15500             case $host in
15501               osf3*)
15502                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15503                 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'
15504                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15505                 ;;
15506               *)
15507                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15508                 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'
15509                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15510                   echo "-hidden">> $lib.exp~
15511                   $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~
15512                   $RM $lib.exp'
15513                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15514                 ;;
15515             esac
15516
15517             hardcode_libdir_separator_CXX=:
15518
15519             # Commands to make compiler produce verbose output that lists
15520             # what "hidden" libraries, object files and flags are used when
15521             # linking a shared library.
15522             #
15523             # There doesn't appear to be a way to prevent this compiler from
15524             # explicitly linking system object files so we need to strip them
15525             # from the output so that they don't get included in the library
15526             # dependencies.
15527             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"'
15528             ;;
15529           *)
15530             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15531               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15532               case $host in
15533                 osf3*)
15534                   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'
15535                   ;;
15536                 *)
15537                   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'
15538                   ;;
15539               esac
15540
15541               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15542               hardcode_libdir_separator_CXX=:
15543
15544               # Commands to make compiler produce verbose output that lists
15545               # what "hidden" libraries, object files and flags are used when
15546               # linking a shared library.
15547               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15548
15549             else
15550               # FIXME: insert proper C++ library support
15551               ld_shlibs_CXX=no
15552             fi
15553             ;;
15554         esac
15555         ;;
15556
15557       psos*)
15558         # FIXME: insert proper C++ library support
15559         ld_shlibs_CXX=no
15560         ;;
15561
15562       sunos4*)
15563         case $cc_basename in
15564           CC*)
15565             # Sun C++ 4.x
15566             # FIXME: insert proper C++ library support
15567             ld_shlibs_CXX=no
15568             ;;
15569           lcc*)
15570             # Lucid
15571             # FIXME: insert proper C++ library support
15572             ld_shlibs_CXX=no
15573             ;;
15574           *)
15575             # FIXME: insert proper C++ library support
15576             ld_shlibs_CXX=no
15577             ;;
15578         esac
15579         ;;
15580
15581       solaris*)
15582         case $cc_basename in
15583           CC* | sunCC*)
15584             # Sun C++ 4.2, 5.x and Centerline C++
15585             archive_cmds_need_lc_CXX=yes
15586             no_undefined_flag_CXX=' -zdefs'
15587             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15588             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15589               $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'
15590
15591             hardcode_libdir_flag_spec_CXX='-R$libdir'
15592             hardcode_shlibpath_var_CXX=no
15593             case $host_os in
15594               solaris2.[0-5] | solaris2.[0-5].*) ;;
15595               *)
15596                 # The compiler driver will combine and reorder linker options,
15597                 # but understands `-z linker_flag'.
15598                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15599                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15600                 ;;
15601             esac
15602             link_all_deplibs_CXX=yes
15603
15604             output_verbose_link_cmd='func_echo_all'
15605
15606             # Archives containing C++ object files must be created using
15607             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15608             # necessary to make sure instantiated templates are included
15609             # in the archive.
15610             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15611             ;;
15612           gcx*)
15613             # Green Hills C++ Compiler
15614             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15615
15616             # The C++ compiler must be used to create the archive.
15617             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15618             ;;
15619           *)
15620             # GNU C++ compiler with Solaris linker
15621             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15622               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15623               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15624                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15625                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15626                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15627
15628                 # Commands to make compiler produce verbose output that lists
15629                 # what "hidden" libraries, object files and flags are used when
15630                 # linking a shared library.
15631                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15632               else
15633                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15634                 # platform.
15635                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15636                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15637                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15638
15639                 # Commands to make compiler produce verbose output that lists
15640                 # what "hidden" libraries, object files and flags are used when
15641                 # linking a shared library.
15642                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15643               fi
15644
15645               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15646               case $host_os in
15647                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15648                 *)
15649                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15650                   ;;
15651               esac
15652             fi
15653             ;;
15654         esac
15655         ;;
15656
15657     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15658       no_undefined_flag_CXX='${wl}-z,text'
15659       archive_cmds_need_lc_CXX=no
15660       hardcode_shlibpath_var_CXX=no
15661       runpath_var='LD_RUN_PATH'
15662
15663       case $cc_basename in
15664         CC*)
15665           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667           ;;
15668         *)
15669           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15670           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15671           ;;
15672       esac
15673       ;;
15674
15675       sysv5* | sco3.2v5* | sco5v6*)
15676         # Note: We can NOT use -z defs as we might desire, because we do not
15677         # link with -lc, and that would cause any symbols used from libc to
15678         # always be unresolved, which means just about no library would
15679         # ever link correctly.  If we're not using GNU ld we use -z text
15680         # though, which does catch some bad symbols but isn't as heavy-handed
15681         # as -z defs.
15682         no_undefined_flag_CXX='${wl}-z,text'
15683         allow_undefined_flag_CXX='${wl}-z,nodefs'
15684         archive_cmds_need_lc_CXX=no
15685         hardcode_shlibpath_var_CXX=no
15686         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15687         hardcode_libdir_separator_CXX=':'
15688         link_all_deplibs_CXX=yes
15689         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15690         runpath_var='LD_RUN_PATH'
15691
15692         case $cc_basename in
15693           CC*)
15694             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15697               '"$old_archive_cmds_CXX"
15698             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15699               '"$reload_cmds_CXX"
15700             ;;
15701           *)
15702             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15704             ;;
15705         esac
15706       ;;
15707
15708       tandem*)
15709         case $cc_basename in
15710           NCC*)
15711             # NonStop-UX NCC 3.20
15712             # FIXME: insert proper C++ library support
15713             ld_shlibs_CXX=no
15714             ;;
15715           *)
15716             # FIXME: insert proper C++ library support
15717             ld_shlibs_CXX=no
15718             ;;
15719         esac
15720         ;;
15721
15722       vxworks*)
15723         # FIXME: insert proper C++ library support
15724         ld_shlibs_CXX=no
15725         ;;
15726
15727       *)
15728         # FIXME: insert proper C++ library support
15729         ld_shlibs_CXX=no
15730         ;;
15731     esac
15732
15733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15734 $as_echo "$ld_shlibs_CXX" >&6; }
15735     test "$ld_shlibs_CXX" = no && can_build_shared=no
15736
15737     GCC_CXX="$GXX"
15738     LD_CXX="$LD"
15739
15740     ## CAVEAT EMPTOR:
15741     ## There is no encapsulation within the following macros, do not change
15742     ## the running order or otherwise move them around unless you know exactly
15743     ## what you are doing...
15744     # Dependencies to place before and after the object being linked:
15745 predep_objects_CXX=
15746 postdep_objects_CXX=
15747 predeps_CXX=
15748 postdeps_CXX=
15749 compiler_lib_search_path_CXX=
15750
15751 cat > conftest.$ac_ext <<_LT_EOF
15752 class Foo
15753 {
15754 public:
15755   Foo (void) { a = 0; }
15756 private:
15757   int a;
15758 };
15759 _LT_EOF
15760
15761
15762 _lt_libdeps_save_CFLAGS=$CFLAGS
15763 case "$CC $CFLAGS " in #(
15764 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15765 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15766 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15767 esac
15768
15769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15770   (eval $ac_compile) 2>&5
15771   ac_status=$?
15772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773   test $ac_status = 0; }; then
15774   # Parse the compiler output and extract the necessary
15775   # objects, libraries and library flags.
15776
15777   # Sentinel used to keep track of whether or not we are before
15778   # the conftest object file.
15779   pre_test_object_deps_done=no
15780
15781   for p in `eval "$output_verbose_link_cmd"`; do
15782     case ${prev}${p} in
15783
15784     -L* | -R* | -l*)
15785        # Some compilers place space between "-{L,R}" and the path.
15786        # Remove the space.
15787        if test $p = "-L" ||
15788           test $p = "-R"; then
15789          prev=$p
15790          continue
15791        fi
15792
15793        # Expand the sysroot to ease extracting the directories later.
15794        if test -z "$prev"; then
15795          case $p in
15796          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15797          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15798          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15799          esac
15800        fi
15801        case $p in
15802        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15803        esac
15804        if test "$pre_test_object_deps_done" = no; then
15805          case ${prev} in
15806          -L | -R)
15807            # Internal compiler library paths should come after those
15808            # provided the user.  The postdeps already come after the
15809            # user supplied libs so there is no need to process them.
15810            if test -z "$compiler_lib_search_path_CXX"; then
15811              compiler_lib_search_path_CXX="${prev}${p}"
15812            else
15813              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15814            fi
15815            ;;
15816          # The "-l" case would never come before the object being
15817          # linked, so don't bother handling this case.
15818          esac
15819        else
15820          if test -z "$postdeps_CXX"; then
15821            postdeps_CXX="${prev}${p}"
15822          else
15823            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15824          fi
15825        fi
15826        prev=
15827        ;;
15828
15829     *.lto.$objext) ;; # Ignore GCC LTO objects
15830     *.$objext)
15831        # This assumes that the test object file only shows up
15832        # once in the compiler output.
15833        if test "$p" = "conftest.$objext"; then
15834          pre_test_object_deps_done=yes
15835          continue
15836        fi
15837
15838        if test "$pre_test_object_deps_done" = no; then
15839          if test -z "$predep_objects_CXX"; then
15840            predep_objects_CXX="$p"
15841          else
15842            predep_objects_CXX="$predep_objects_CXX $p"
15843          fi
15844        else
15845          if test -z "$postdep_objects_CXX"; then
15846            postdep_objects_CXX="$p"
15847          else
15848            postdep_objects_CXX="$postdep_objects_CXX $p"
15849          fi
15850        fi
15851        ;;
15852
15853     *) ;; # Ignore the rest.
15854
15855     esac
15856   done
15857
15858   # Clean up.
15859   rm -f a.out a.exe
15860 else
15861   echo "libtool.m4: error: problem compiling CXX test program"
15862 fi
15863
15864 $RM -f confest.$objext
15865 CFLAGS=$_lt_libdeps_save_CFLAGS
15866
15867 # PORTME: override above test on systems where it is broken
15868 case $host_os in
15869 interix[3-9]*)
15870   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15871   # hack all around it, let's just trust "g++" to DTRT.
15872   predep_objects_CXX=
15873   postdep_objects_CXX=
15874   postdeps_CXX=
15875   ;;
15876
15877 linux*)
15878   case `$CC -V 2>&1 | sed 5q` in
15879   *Sun\ C*)
15880     # Sun C++ 5.9
15881
15882     # The more standards-conforming stlport4 library is
15883     # incompatible with the Cstd library. Avoid specifying
15884     # it if it's in CXXFLAGS. Ignore libCrun as
15885     # -library=stlport4 depends on it.
15886     case " $CXX $CXXFLAGS " in
15887     *" -library=stlport4 "*)
15888       solaris_use_stlport4=yes
15889       ;;
15890     esac
15891
15892     if test "$solaris_use_stlport4" != yes; then
15893       postdeps_CXX='-library=Cstd -library=Crun'
15894     fi
15895     ;;
15896   esac
15897   ;;
15898
15899 solaris*)
15900   case $cc_basename in
15901   CC* | sunCC*)
15902     # The more standards-conforming stlport4 library is
15903     # incompatible with the Cstd library. Avoid specifying
15904     # it if it's in CXXFLAGS. Ignore libCrun as
15905     # -library=stlport4 depends on it.
15906     case " $CXX $CXXFLAGS " in
15907     *" -library=stlport4 "*)
15908       solaris_use_stlport4=yes
15909       ;;
15910     esac
15911
15912     # Adding this requires a known-good setup of shared libraries for
15913     # Sun compiler versions before 5.6, else PIC objects from an old
15914     # archive will be linked into the output, leading to subtle bugs.
15915     if test "$solaris_use_stlport4" != yes; then
15916       postdeps_CXX='-library=Cstd -library=Crun'
15917     fi
15918     ;;
15919   esac
15920   ;;
15921 esac
15922
15923
15924 case " $postdeps_CXX " in
15925 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15926 esac
15927  compiler_lib_search_dirs_CXX=
15928 if test -n "${compiler_lib_search_path_CXX}"; then
15929  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15930 fi
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962     lt_prog_compiler_wl_CXX=
15963 lt_prog_compiler_pic_CXX=
15964 lt_prog_compiler_static_CXX=
15965
15966
15967   # C++ specific cases for pic, static, wl, etc.
15968   if test "$GXX" = yes; then
15969     lt_prog_compiler_wl_CXX='-Wl,'
15970     lt_prog_compiler_static_CXX='-static'
15971
15972     case $host_os in
15973     aix*)
15974       # All AIX code is PIC.
15975       if test "$host_cpu" = ia64; then
15976         # AIX 5 now supports IA64 processor
15977         lt_prog_compiler_static_CXX='-Bstatic'
15978       fi
15979       ;;
15980
15981     amigaos*)
15982       case $host_cpu in
15983       powerpc)
15984             # see comment about AmigaOS4 .so support
15985             lt_prog_compiler_pic_CXX='-fPIC'
15986         ;;
15987       m68k)
15988             # FIXME: we need at least 68020 code to build shared libraries, but
15989             # adding the `-m68020' flag to GCC prevents building anything better,
15990             # like `-m68040'.
15991             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15992         ;;
15993       esac
15994       ;;
15995
15996     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15997       # PIC is the default for these OSes.
15998       ;;
15999     mingw* | cygwin* | os2* | pw32* | cegcc*)
16000       # This hack is so that the source file can tell whether it is being
16001       # built for inclusion in a dll (and should export symbols for example).
16002       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16003       # (--disable-auto-import) libraries
16004       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16005       ;;
16006     darwin* | rhapsody*)
16007       # PIC is the default on this platform
16008       # Common symbols not allowed in MH_DYLIB files
16009       lt_prog_compiler_pic_CXX='-fno-common'
16010       ;;
16011     *djgpp*)
16012       # DJGPP does not support shared libraries at all
16013       lt_prog_compiler_pic_CXX=
16014       ;;
16015     haiku*)
16016       # PIC is the default for Haiku.
16017       # The "-static" flag exists, but is broken.
16018       lt_prog_compiler_static_CXX=
16019       ;;
16020     interix[3-9]*)
16021       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16022       # Instead, we relocate shared libraries at runtime.
16023       ;;
16024     sysv4*MP*)
16025       if test -d /usr/nec; then
16026         lt_prog_compiler_pic_CXX=-Kconform_pic
16027       fi
16028       ;;
16029     hpux*)
16030       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16031       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16032       # sets the default TLS model and affects inlining.
16033       case $host_cpu in
16034       hppa*64*)
16035         ;;
16036       *)
16037         lt_prog_compiler_pic_CXX='-fPIC'
16038         ;;
16039       esac
16040       ;;
16041     *qnx* | *nto*)
16042       # QNX uses GNU C++, but need to define -shared option too, otherwise
16043       # it will coredump.
16044       lt_prog_compiler_pic_CXX='-fPIC -shared'
16045       ;;
16046     *)
16047       lt_prog_compiler_pic_CXX='-fPIC'
16048       ;;
16049     esac
16050   else
16051     case $host_os in
16052       aix[4-9]*)
16053         # All AIX code is PIC.
16054         if test "$host_cpu" = ia64; then
16055           # AIX 5 now supports IA64 processor
16056           lt_prog_compiler_static_CXX='-Bstatic'
16057         else
16058           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16059         fi
16060         ;;
16061       chorus*)
16062         case $cc_basename in
16063         cxch68*)
16064           # Green Hills C++ Compiler
16065           # _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"
16066           ;;
16067         esac
16068         ;;
16069       mingw* | cygwin* | os2* | pw32* | cegcc*)
16070         # This hack is so that the source file can tell whether it is being
16071         # built for inclusion in a dll (and should export symbols for example).
16072         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16073         ;;
16074       dgux*)
16075         case $cc_basename in
16076           ec++*)
16077             lt_prog_compiler_pic_CXX='-KPIC'
16078             ;;
16079           ghcx*)
16080             # Green Hills C++ Compiler
16081             lt_prog_compiler_pic_CXX='-pic'
16082             ;;
16083           *)
16084             ;;
16085         esac
16086         ;;
16087       freebsd* | dragonfly*)
16088         # FreeBSD uses GNU C++
16089         ;;
16090       hpux9* | hpux10* | hpux11*)
16091         case $cc_basename in
16092           CC*)
16093             lt_prog_compiler_wl_CXX='-Wl,'
16094             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16095             if test "$host_cpu" != ia64; then
16096               lt_prog_compiler_pic_CXX='+Z'
16097             fi
16098             ;;
16099           aCC*)
16100             lt_prog_compiler_wl_CXX='-Wl,'
16101             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16102             case $host_cpu in
16103             hppa*64*|ia64*)
16104               # +Z the default
16105               ;;
16106             *)
16107               lt_prog_compiler_pic_CXX='+Z'
16108               ;;
16109             esac
16110             ;;
16111           *)
16112             ;;
16113         esac
16114         ;;
16115       interix*)
16116         # This is c89, which is MS Visual C++ (no shared libs)
16117         # Anyone wants to do a port?
16118         ;;
16119       irix5* | irix6* | nonstopux*)
16120         case $cc_basename in
16121           CC*)
16122             lt_prog_compiler_wl_CXX='-Wl,'
16123             lt_prog_compiler_static_CXX='-non_shared'
16124             # CC pic flag -KPIC is the default.
16125             ;;
16126           *)
16127             ;;
16128         esac
16129         ;;
16130       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16131         case $cc_basename in
16132           KCC*)
16133             # KAI C++ Compiler
16134             lt_prog_compiler_wl_CXX='--backend -Wl,'
16135             lt_prog_compiler_pic_CXX='-fPIC'
16136             ;;
16137           ecpc* )
16138             # old Intel C++ for x86_64 which still supported -KPIC.
16139             lt_prog_compiler_wl_CXX='-Wl,'
16140             lt_prog_compiler_pic_CXX='-KPIC'
16141             lt_prog_compiler_static_CXX='-static'
16142             ;;
16143           icpc* )
16144             # Intel C++, used to be incompatible with GCC.
16145             # ICC 10 doesn't accept -KPIC any more.
16146             lt_prog_compiler_wl_CXX='-Wl,'
16147             lt_prog_compiler_pic_CXX='-fPIC'
16148             lt_prog_compiler_static_CXX='-static'
16149             ;;
16150           pgCC* | pgcpp*)
16151             # Portland Group C++ compiler
16152             lt_prog_compiler_wl_CXX='-Wl,'
16153             lt_prog_compiler_pic_CXX='-fpic'
16154             lt_prog_compiler_static_CXX='-Bstatic'
16155             ;;
16156           cxx*)
16157             # Compaq C++
16158             # Make sure the PIC flag is empty.  It appears that all Alpha
16159             # Linux and Compaq Tru64 Unix objects are PIC.
16160             lt_prog_compiler_pic_CXX=
16161             lt_prog_compiler_static_CXX='-non_shared'
16162             ;;
16163           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16164             # IBM XL 8.0, 9.0 on PPC and BlueGene
16165             lt_prog_compiler_wl_CXX='-Wl,'
16166             lt_prog_compiler_pic_CXX='-qpic'
16167             lt_prog_compiler_static_CXX='-qstaticlink'
16168             ;;
16169           *)
16170             case `$CC -V 2>&1 | sed 5q` in
16171             *Sun\ C*)
16172               # Sun C++ 5.9
16173               lt_prog_compiler_pic_CXX='-KPIC'
16174               lt_prog_compiler_static_CXX='-Bstatic'
16175               lt_prog_compiler_wl_CXX='-Qoption ld '
16176               ;;
16177             esac
16178             ;;
16179         esac
16180         ;;
16181       lynxos*)
16182         ;;
16183       m88k*)
16184         ;;
16185       mvs*)
16186         case $cc_basename in
16187           cxx*)
16188             lt_prog_compiler_pic_CXX='-W c,exportall'
16189             ;;
16190           *)
16191             ;;
16192         esac
16193         ;;
16194       netbsd*)
16195         ;;
16196       *qnx* | *nto*)
16197         # QNX uses GNU C++, but need to define -shared option too, otherwise
16198         # it will coredump.
16199         lt_prog_compiler_pic_CXX='-fPIC -shared'
16200         ;;
16201       osf3* | osf4* | osf5*)
16202         case $cc_basename in
16203           KCC*)
16204             lt_prog_compiler_wl_CXX='--backend -Wl,'
16205             ;;
16206           RCC*)
16207             # Rational C++ 2.4.1
16208             lt_prog_compiler_pic_CXX='-pic'
16209             ;;
16210           cxx*)
16211             # Digital/Compaq C++
16212             lt_prog_compiler_wl_CXX='-Wl,'
16213             # Make sure the PIC flag is empty.  It appears that all Alpha
16214             # Linux and Compaq Tru64 Unix objects are PIC.
16215             lt_prog_compiler_pic_CXX=
16216             lt_prog_compiler_static_CXX='-non_shared'
16217             ;;
16218           *)
16219             ;;
16220         esac
16221         ;;
16222       psos*)
16223         ;;
16224       solaris*)
16225         case $cc_basename in
16226           CC* | sunCC*)
16227             # Sun C++ 4.2, 5.x and Centerline C++
16228             lt_prog_compiler_pic_CXX='-KPIC'
16229             lt_prog_compiler_static_CXX='-Bstatic'
16230             lt_prog_compiler_wl_CXX='-Qoption ld '
16231             ;;
16232           gcx*)
16233             # Green Hills C++ Compiler
16234             lt_prog_compiler_pic_CXX='-PIC'
16235             ;;
16236           *)
16237             ;;
16238         esac
16239         ;;
16240       sunos4*)
16241         case $cc_basename in
16242           CC*)
16243             # Sun C++ 4.x
16244             lt_prog_compiler_pic_CXX='-pic'
16245             lt_prog_compiler_static_CXX='-Bstatic'
16246             ;;
16247           lcc*)
16248             # Lucid
16249             lt_prog_compiler_pic_CXX='-pic'
16250             ;;
16251           *)
16252             ;;
16253         esac
16254         ;;
16255       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16256         case $cc_basename in
16257           CC*)
16258             lt_prog_compiler_wl_CXX='-Wl,'
16259             lt_prog_compiler_pic_CXX='-KPIC'
16260             lt_prog_compiler_static_CXX='-Bstatic'
16261             ;;
16262         esac
16263         ;;
16264       tandem*)
16265         case $cc_basename in
16266           NCC*)
16267             # NonStop-UX NCC 3.20
16268             lt_prog_compiler_pic_CXX='-KPIC'
16269             ;;
16270           *)
16271             ;;
16272         esac
16273         ;;
16274       vxworks*)
16275         ;;
16276       *)
16277         lt_prog_compiler_can_build_shared_CXX=no
16278         ;;
16279     esac
16280   fi
16281
16282 case $host_os in
16283   # For platforms which do not support PIC, -DPIC is meaningless:
16284   *djgpp*)
16285     lt_prog_compiler_pic_CXX=
16286     ;;
16287   *)
16288     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16289     ;;
16290 esac
16291
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16293 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16294 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16295   $as_echo_n "(cached) " >&6
16296 else
16297   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16298 fi
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16300 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16301 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16302
16303 #
16304 # Check to make sure the PIC flag actually works.
16305 #
16306 if test -n "$lt_prog_compiler_pic_CXX"; then
16307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16308 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16309 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16310   $as_echo_n "(cached) " >&6
16311 else
16312   lt_cv_prog_compiler_pic_works_CXX=no
16313    ac_outfile=conftest.$ac_objext
16314    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16315    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16316    # Insert the option either (1) after the last *FLAGS variable, or
16317    # (2) before a word containing "conftest.", or (3) at the end.
16318    # Note that $ac_compile itself does not contain backslashes and begins
16319    # with a dollar sign (not a hyphen), so the echo should work correctly.
16320    # The option is referenced via a variable to avoid confusing sed.
16321    lt_compile=`echo "$ac_compile" | $SED \
16322    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16323    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16324    -e 's:$: $lt_compiler_flag:'`
16325    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16326    (eval "$lt_compile" 2>conftest.err)
16327    ac_status=$?
16328    cat conftest.err >&5
16329    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330    if (exit $ac_status) && test -s "$ac_outfile"; then
16331      # The compiler can only warn and ignore the option if not recognized
16332      # So say no if there are warnings other than the usual output.
16333      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16334      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16335      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16336        lt_cv_prog_compiler_pic_works_CXX=yes
16337      fi
16338    fi
16339    $RM conftest*
16340
16341 fi
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16343 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16344
16345 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16346     case $lt_prog_compiler_pic_CXX in
16347      "" | " "*) ;;
16348      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16349      esac
16350 else
16351     lt_prog_compiler_pic_CXX=
16352      lt_prog_compiler_can_build_shared_CXX=no
16353 fi
16354
16355 fi
16356
16357
16358
16359
16360
16361 #
16362 # Check to make sure the static flag actually works.
16363 #
16364 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16366 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16367 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16368   $as_echo_n "(cached) " >&6
16369 else
16370   lt_cv_prog_compiler_static_works_CXX=no
16371    save_LDFLAGS="$LDFLAGS"
16372    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16373    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16374    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16375      # The linker can only warn and ignore the option if not recognized
16376      # So say no if there are warnings
16377      if test -s conftest.err; then
16378        # Append any errors to the config.log.
16379        cat conftest.err 1>&5
16380        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16381        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16382        if diff conftest.exp conftest.er2 >/dev/null; then
16383          lt_cv_prog_compiler_static_works_CXX=yes
16384        fi
16385      else
16386        lt_cv_prog_compiler_static_works_CXX=yes
16387      fi
16388    fi
16389    $RM -r conftest*
16390    LDFLAGS="$save_LDFLAGS"
16391
16392 fi
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16394 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16395
16396 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16397     :
16398 else
16399     lt_prog_compiler_static_CXX=
16400 fi
16401
16402
16403
16404
16405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16407 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16408   $as_echo_n "(cached) " >&6
16409 else
16410   lt_cv_prog_compiler_c_o_CXX=no
16411    $RM -r conftest 2>/dev/null
16412    mkdir conftest
16413    cd conftest
16414    mkdir out
16415    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16416
16417    lt_compiler_flag="-o out/conftest2.$ac_objext"
16418    # Insert the option either (1) after the last *FLAGS variable, or
16419    # (2) before a word containing "conftest.", or (3) at the end.
16420    # Note that $ac_compile itself does not contain backslashes and begins
16421    # with a dollar sign (not a hyphen), so the echo should work correctly.
16422    lt_compile=`echo "$ac_compile" | $SED \
16423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16425    -e 's:$: $lt_compiler_flag:'`
16426    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16427    (eval "$lt_compile" 2>out/conftest.err)
16428    ac_status=$?
16429    cat out/conftest.err >&5
16430    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16432    then
16433      # The compiler can only warn and ignore the option if not recognized
16434      # So say no if there are warnings
16435      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16436      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16437      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16438        lt_cv_prog_compiler_c_o_CXX=yes
16439      fi
16440    fi
16441    chmod u+w . 2>&5
16442    $RM conftest*
16443    # SGI C++ compiler will create directory out/ii_files/ for
16444    # template instantiation
16445    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16446    $RM out/* && rmdir out
16447    cd ..
16448    $RM -r conftest
16449    $RM conftest*
16450
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16453 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16454
16455
16456
16457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16459 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16460   $as_echo_n "(cached) " >&6
16461 else
16462   lt_cv_prog_compiler_c_o_CXX=no
16463    $RM -r conftest 2>/dev/null
16464    mkdir conftest
16465    cd conftest
16466    mkdir out
16467    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16468
16469    lt_compiler_flag="-o out/conftest2.$ac_objext"
16470    # Insert the option either (1) after the last *FLAGS variable, or
16471    # (2) before a word containing "conftest.", or (3) at the end.
16472    # Note that $ac_compile itself does not contain backslashes and begins
16473    # with a dollar sign (not a hyphen), so the echo should work correctly.
16474    lt_compile=`echo "$ac_compile" | $SED \
16475    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477    -e 's:$: $lt_compiler_flag:'`
16478    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16479    (eval "$lt_compile" 2>out/conftest.err)
16480    ac_status=$?
16481    cat out/conftest.err >&5
16482    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16484    then
16485      # The compiler can only warn and ignore the option if not recognized
16486      # So say no if there are warnings
16487      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16488      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16489      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16490        lt_cv_prog_compiler_c_o_CXX=yes
16491      fi
16492    fi
16493    chmod u+w . 2>&5
16494    $RM conftest*
16495    # SGI C++ compiler will create directory out/ii_files/ for
16496    # template instantiation
16497    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16498    $RM out/* && rmdir out
16499    cd ..
16500    $RM -r conftest
16501    $RM conftest*
16502
16503 fi
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16505 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16506
16507
16508
16509
16510 hard_links="nottested"
16511 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16512   # do not overwrite the value of need_locks provided by the user
16513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16514 $as_echo_n "checking if we can lock with hard links... " >&6; }
16515   hard_links=yes
16516   $RM conftest*
16517   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16518   touch conftest.a
16519   ln conftest.a conftest.b 2>&5 || hard_links=no
16520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16522 $as_echo "$hard_links" >&6; }
16523   if test "$hard_links" = no; then
16524     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16525 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16526     need_locks=warn
16527   fi
16528 else
16529   need_locks=no
16530 fi
16531
16532
16533
16534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16535 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16536
16537   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16538   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16539   case $host_os in
16540   aix[4-9]*)
16541     # If we're using GNU nm, then we don't want the "-C" option.
16542     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16543     # Also, AIX nm treats weak defined symbols like other global defined
16544     # symbols, whereas GNU nm marks them as "W".
16545     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16546       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16547     else
16548       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16549     fi
16550     ;;
16551   pw32*)
16552     export_symbols_cmds_CXX="$ltdll_cmds"
16553     ;;
16554   cygwin* | mingw* | cegcc*)
16555     case $cc_basename in
16556     cl*)
16557       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16558       ;;
16559     *)
16560       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'
16561       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16562       ;;
16563     esac
16564     ;;
16565   *)
16566     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16567     ;;
16568   esac
16569
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16571 $as_echo "$ld_shlibs_CXX" >&6; }
16572 test "$ld_shlibs_CXX" = no && can_build_shared=no
16573
16574 with_gnu_ld_CXX=$with_gnu_ld
16575
16576
16577
16578
16579
16580
16581 #
16582 # Do we need to explicitly link libc?
16583 #
16584 case "x$archive_cmds_need_lc_CXX" in
16585 x|xyes)
16586   # Assume -lc should be added
16587   archive_cmds_need_lc_CXX=yes
16588
16589   if test "$enable_shared" = yes && test "$GCC" = yes; then
16590     case $archive_cmds_CXX in
16591     *'~'*)
16592       # FIXME: we may have to deal with multi-command sequences.
16593       ;;
16594     '$CC '*)
16595       # Test whether the compiler implicitly links with -lc since on some
16596       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16597       # to ld, don't add -lc before -lgcc.
16598       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16600 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16601   $as_echo_n "(cached) " >&6
16602 else
16603   $RM conftest*
16604         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16605
16606         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16607   (eval $ac_compile) 2>&5
16608   ac_status=$?
16609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610   test $ac_status = 0; } 2>conftest.err; then
16611           soname=conftest
16612           lib=conftest
16613           libobjs=conftest.$ac_objext
16614           deplibs=
16615           wl=$lt_prog_compiler_wl_CXX
16616           pic_flag=$lt_prog_compiler_pic_CXX
16617           compiler_flags=-v
16618           linker_flags=-v
16619           verstring=
16620           output_objdir=.
16621           libname=conftest
16622           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16623           allow_undefined_flag_CXX=
16624           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16625   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16626   ac_status=$?
16627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16628   test $ac_status = 0; }
16629           then
16630             lt_cv_archive_cmds_need_lc_CXX=no
16631           else
16632             lt_cv_archive_cmds_need_lc_CXX=yes
16633           fi
16634           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16635         else
16636           cat conftest.err 1>&5
16637         fi
16638         $RM conftest*
16639
16640 fi
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16642 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16643       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16644       ;;
16645     esac
16646   fi
16647   ;;
16648 esac
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16712 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16713
16714 library_names_spec=
16715 libname_spec='lib$name'
16716 soname_spec=
16717 shrext_cmds=".so"
16718 postinstall_cmds=
16719 postuninstall_cmds=
16720 finish_cmds=
16721 finish_eval=
16722 shlibpath_var=
16723 shlibpath_overrides_runpath=unknown
16724 version_type=none
16725 dynamic_linker="$host_os ld.so"
16726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16727 need_lib_prefix=unknown
16728 hardcode_into_libs=no
16729
16730 # when you set need_version to no, make sure it does not cause -set_version
16731 # flags to be left without arguments
16732 need_version=unknown
16733
16734 case $host_os in
16735 aix3*)
16736   version_type=linux # correct to gnu/linux during the next big refactor
16737   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16738   shlibpath_var=LIBPATH
16739
16740   # AIX 3 has no versioning support, so we append a major version to the name.
16741   soname_spec='${libname}${release}${shared_ext}$major'
16742   ;;
16743
16744 aix[4-9]*)
16745   version_type=linux # correct to gnu/linux during the next big refactor
16746   need_lib_prefix=no
16747   need_version=no
16748   hardcode_into_libs=yes
16749   if test "$host_cpu" = ia64; then
16750     # AIX 5 supports IA64
16751     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16752     shlibpath_var=LD_LIBRARY_PATH
16753   else
16754     # With GCC up to 2.95.x, collect2 would create an import file
16755     # for dependence libraries.  The import file would start with
16756     # the line `#! .'.  This would cause the generated library to
16757     # depend on `.', always an invalid library.  This was fixed in
16758     # development snapshots of GCC prior to 3.0.
16759     case $host_os in
16760       aix4 | aix4.[01] | aix4.[01].*)
16761       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16762            echo ' yes '
16763            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16764         :
16765       else
16766         can_build_shared=no
16767       fi
16768       ;;
16769     esac
16770     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16771     # soname into executable. Probably we can add versioning support to
16772     # collect2, so additional links can be useful in future.
16773     if test "$aix_use_runtimelinking" = yes; then
16774       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16775       # instead of lib<name>.a to let people know that these are not
16776       # typical AIX shared libraries.
16777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778     else
16779       # We preserve .a as extension for shared libraries through AIX4.2
16780       # and later when we are not doing run time linking.
16781       library_names_spec='${libname}${release}.a $libname.a'
16782       soname_spec='${libname}${release}${shared_ext}$major'
16783     fi
16784     shlibpath_var=LIBPATH
16785   fi
16786   ;;
16787
16788 amigaos*)
16789   case $host_cpu in
16790   powerpc)
16791     # Since July 2007 AmigaOS4 officially supports .so libraries.
16792     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16794     ;;
16795   m68k)
16796     library_names_spec='$libname.ixlibrary $libname.a'
16797     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16798     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16799     ;;
16800   esac
16801   ;;
16802
16803 beos*)
16804   library_names_spec='${libname}${shared_ext}'
16805   dynamic_linker="$host_os ld.so"
16806   shlibpath_var=LIBRARY_PATH
16807   ;;
16808
16809 bsdi[45]*)
16810   version_type=linux # correct to gnu/linux during the next big refactor
16811   need_version=no
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813   soname_spec='${libname}${release}${shared_ext}$major'
16814   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16815   shlibpath_var=LD_LIBRARY_PATH
16816   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16817   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16818   # the default ld.so.conf also contains /usr/contrib/lib and
16819   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16820   # libtool to hard-code these into programs
16821   ;;
16822
16823 cygwin* | mingw* | pw32* | cegcc*)
16824   version_type=windows
16825   shrext_cmds=".dll"
16826   need_version=no
16827   need_lib_prefix=no
16828
16829   case $GCC,$cc_basename in
16830   yes,*)
16831     # gcc
16832     library_names_spec='$libname.dll.a'
16833     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16834     postinstall_cmds='base_file=`basename \${file}`~
16835       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16836       dldir=$destdir/`dirname \$dlpath`~
16837       test -d \$dldir || mkdir -p \$dldir~
16838       $install_prog $dir/$dlname \$dldir/$dlname~
16839       chmod a+x \$dldir/$dlname~
16840       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16841         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16842       fi'
16843     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16844       dlpath=$dir/\$dldll~
16845        $RM \$dlpath'
16846     shlibpath_overrides_runpath=yes
16847
16848     case $host_os in
16849     cygwin*)
16850       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16851       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16852
16853       ;;
16854     mingw* | cegcc*)
16855       # MinGW DLLs use traditional 'lib' prefix
16856       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16857       ;;
16858     pw32*)
16859       # pw32 DLLs use 'pw' prefix rather than 'lib'
16860       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16861       ;;
16862     esac
16863     dynamic_linker='Win32 ld.exe'
16864     ;;
16865
16866   *,cl*)
16867     # Native MSVC
16868     libname_spec='$name'
16869     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16870     library_names_spec='${libname}.dll.lib'
16871
16872     case $build_os in
16873     mingw*)
16874       sys_lib_search_path_spec=
16875       lt_save_ifs=$IFS
16876       IFS=';'
16877       for lt_path in $LIB
16878       do
16879         IFS=$lt_save_ifs
16880         # Let DOS variable expansion print the short 8.3 style file name.
16881         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16882         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16883       done
16884       IFS=$lt_save_ifs
16885       # Convert to MSYS style.
16886       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16887       ;;
16888     cygwin*)
16889       # Convert to unix form, then to dos form, then back to unix form
16890       # but this time dos style (no spaces!) so that the unix form looks
16891       # like /cygdrive/c/PROGRA~1:/cygdr...
16892       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16893       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16894       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16895       ;;
16896     *)
16897       sys_lib_search_path_spec="$LIB"
16898       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16899         # It is most probably a Windows format PATH.
16900         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16901       else
16902         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16903       fi
16904       # FIXME: find the short name or the path components, as spaces are
16905       # common. (e.g. "Program Files" -> "PROGRA~1")
16906       ;;
16907     esac
16908
16909     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16910     postinstall_cmds='base_file=`basename \${file}`~
16911       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16912       dldir=$destdir/`dirname \$dlpath`~
16913       test -d \$dldir || mkdir -p \$dldir~
16914       $install_prog $dir/$dlname \$dldir/$dlname'
16915     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16916       dlpath=$dir/\$dldll~
16917        $RM \$dlpath'
16918     shlibpath_overrides_runpath=yes
16919     dynamic_linker='Win32 link.exe'
16920     ;;
16921
16922   *)
16923     # Assume MSVC wrapper
16924     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16925     dynamic_linker='Win32 ld.exe'
16926     ;;
16927   esac
16928   # FIXME: first we should search . and the directory the executable is in
16929   shlibpath_var=PATH
16930   ;;
16931
16932 darwin* | rhapsody*)
16933   dynamic_linker="$host_os dyld"
16934   version_type=darwin
16935   need_lib_prefix=no
16936   need_version=no
16937   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16938   soname_spec='${libname}${release}${major}$shared_ext'
16939   shlibpath_overrides_runpath=yes
16940   shlibpath_var=DYLD_LIBRARY_PATH
16941   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16942
16943   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16944   ;;
16945
16946 dgux*)
16947   version_type=linux # correct to gnu/linux during the next big refactor
16948   need_lib_prefix=no
16949   need_version=no
16950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16951   soname_spec='${libname}${release}${shared_ext}$major'
16952   shlibpath_var=LD_LIBRARY_PATH
16953   ;;
16954
16955 freebsd* | dragonfly*)
16956   # DragonFly does not have aout.  When/if they implement a new
16957   # versioning mechanism, adjust this.
16958   if test -x /usr/bin/objformat; then
16959     objformat=`/usr/bin/objformat`
16960   else
16961     case $host_os in
16962     freebsd[23].*) objformat=aout ;;
16963     *) objformat=elf ;;
16964     esac
16965   fi
16966   version_type=freebsd-$objformat
16967   case $version_type in
16968     freebsd-elf*)
16969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16970       need_version=no
16971       need_lib_prefix=no
16972       ;;
16973     freebsd-*)
16974       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16975       need_version=yes
16976       ;;
16977   esac
16978   shlibpath_var=LD_LIBRARY_PATH
16979   case $host_os in
16980   freebsd2.*)
16981     shlibpath_overrides_runpath=yes
16982     ;;
16983   freebsd3.[01]* | freebsdelf3.[01]*)
16984     shlibpath_overrides_runpath=yes
16985     hardcode_into_libs=yes
16986     ;;
16987   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16988   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16989     shlibpath_overrides_runpath=no
16990     hardcode_into_libs=yes
16991     ;;
16992   *) # from 4.6 on, and DragonFly
16993     shlibpath_overrides_runpath=yes
16994     hardcode_into_libs=yes
16995     ;;
16996   esac
16997   ;;
16998
16999 gnu*)
17000   version_type=linux # correct to gnu/linux during the next big refactor
17001   need_lib_prefix=no
17002   need_version=no
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17004   soname_spec='${libname}${release}${shared_ext}$major'
17005   shlibpath_var=LD_LIBRARY_PATH
17006   shlibpath_overrides_runpath=no
17007   hardcode_into_libs=yes
17008   ;;
17009
17010 haiku*)
17011   version_type=linux # correct to gnu/linux during the next big refactor
17012   need_lib_prefix=no
17013   need_version=no
17014   dynamic_linker="$host_os runtime_loader"
17015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17016   soname_spec='${libname}${release}${shared_ext}$major'
17017   shlibpath_var=LIBRARY_PATH
17018   shlibpath_overrides_runpath=yes
17019   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17020   hardcode_into_libs=yes
17021   ;;
17022
17023 hpux9* | hpux10* | hpux11*)
17024   # Give a soname corresponding to the major version so that dld.sl refuses to
17025   # link against other versions.
17026   version_type=sunos
17027   need_lib_prefix=no
17028   need_version=no
17029   case $host_cpu in
17030   ia64*)
17031     shrext_cmds='.so'
17032     hardcode_into_libs=yes
17033     dynamic_linker="$host_os dld.so"
17034     shlibpath_var=LD_LIBRARY_PATH
17035     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17036     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037     soname_spec='${libname}${release}${shared_ext}$major'
17038     if test "X$HPUX_IA64_MODE" = X32; then
17039       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17040     else
17041       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17042     fi
17043     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17044     ;;
17045   hppa*64*)
17046     shrext_cmds='.sl'
17047     hardcode_into_libs=yes
17048     dynamic_linker="$host_os dld.sl"
17049     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17050     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052     soname_spec='${libname}${release}${shared_ext}$major'
17053     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17055     ;;
17056   *)
17057     shrext_cmds='.sl'
17058     dynamic_linker="$host_os dld.sl"
17059     shlibpath_var=SHLIB_PATH
17060     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062     soname_spec='${libname}${release}${shared_ext}$major'
17063     ;;
17064   esac
17065   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17066   postinstall_cmds='chmod 555 $lib'
17067   # or fails outright, so override atomically:
17068   install_override_mode=555
17069   ;;
17070
17071 interix[3-9]*)
17072   version_type=linux # correct to gnu/linux during the next big refactor
17073   need_lib_prefix=no
17074   need_version=no
17075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17076   soname_spec='${libname}${release}${shared_ext}$major'
17077   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17078   shlibpath_var=LD_LIBRARY_PATH
17079   shlibpath_overrides_runpath=no
17080   hardcode_into_libs=yes
17081   ;;
17082
17083 irix5* | irix6* | nonstopux*)
17084   case $host_os in
17085     nonstopux*) version_type=nonstopux ;;
17086     *)
17087         if test "$lt_cv_prog_gnu_ld" = yes; then
17088                 version_type=linux # correct to gnu/linux during the next big refactor
17089         else
17090                 version_type=irix
17091         fi ;;
17092   esac
17093   need_lib_prefix=no
17094   need_version=no
17095   soname_spec='${libname}${release}${shared_ext}$major'
17096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17097   case $host_os in
17098   irix5* | nonstopux*)
17099     libsuff= shlibsuff=
17100     ;;
17101   *)
17102     case $LD in # libtool.m4 will add one of these switches to LD
17103     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17104       libsuff= shlibsuff= libmagic=32-bit;;
17105     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17106       libsuff=32 shlibsuff=N32 libmagic=N32;;
17107     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17108       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17109     *) libsuff= shlibsuff= libmagic=never-match;;
17110     esac
17111     ;;
17112   esac
17113   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17114   shlibpath_overrides_runpath=no
17115   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17116   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17117   hardcode_into_libs=yes
17118   ;;
17119
17120 # No shared lib support for Linux oldld, aout, or coff.
17121 linux*oldld* | linux*aout* | linux*coff*)
17122   dynamic_linker=no
17123   ;;
17124
17125 # This must be glibc/ELF.
17126 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17127   version_type=linux # correct to gnu/linux during the next big refactor
17128   need_lib_prefix=no
17129   need_version=no
17130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131   soname_spec='${libname}${release}${shared_ext}$major'
17132   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17133   shlibpath_var=LD_LIBRARY_PATH
17134   shlibpath_overrides_runpath=no
17135
17136   # Some binutils ld are patched to set DT_RUNPATH
17137   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17138   $as_echo_n "(cached) " >&6
17139 else
17140   lt_cv_shlibpath_overrides_runpath=no
17141     save_LDFLAGS=$LDFLAGS
17142     save_libdir=$libdir
17143     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17144          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h.  */
17147
17148 int
17149 main ()
17150 {
17151
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 if ac_fn_cxx_try_link "$LINENO"; then :
17157   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17158   lt_cv_shlibpath_overrides_runpath=yes
17159 fi
17160 fi
17161 rm -f core conftest.err conftest.$ac_objext \
17162     conftest$ac_exeext conftest.$ac_ext
17163     LDFLAGS=$save_LDFLAGS
17164     libdir=$save_libdir
17165
17166 fi
17167
17168   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17169
17170   # This implies no fast_install, which is unacceptable.
17171   # Some rework will be needed to allow for fast_install
17172   # before this can be enabled.
17173   hardcode_into_libs=yes
17174
17175   # Append ld.so.conf contents to the search path
17176   if test -f /etc/ld.so.conf; then
17177     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' ' '`
17178     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17179   fi
17180
17181   # We used to test for /lib/ld.so.1 and disable shared libraries on
17182   # powerpc, because MkLinux only supported shared libraries with the
17183   # GNU dynamic linker.  Since this was broken with cross compilers,
17184   # most powerpc-linux boxes support dynamic linking these days and
17185   # people can always --disable-shared, the test was removed, and we
17186   # assume the GNU/Linux dynamic linker is in use.
17187   dynamic_linker='GNU/Linux ld.so'
17188   ;;
17189
17190 netbsd*)
17191   version_type=sunos
17192   need_lib_prefix=no
17193   need_version=no
17194   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197     dynamic_linker='NetBSD (a.out) ld.so'
17198   else
17199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200     soname_spec='${libname}${release}${shared_ext}$major'
17201     dynamic_linker='NetBSD ld.elf_so'
17202   fi
17203   shlibpath_var=LD_LIBRARY_PATH
17204   shlibpath_overrides_runpath=yes
17205   hardcode_into_libs=yes
17206   ;;
17207
17208 newsos6)
17209   version_type=linux # correct to gnu/linux during the next big refactor
17210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211   shlibpath_var=LD_LIBRARY_PATH
17212   shlibpath_overrides_runpath=yes
17213   ;;
17214
17215 *nto* | *qnx*)
17216   version_type=qnx
17217   need_lib_prefix=no
17218   need_version=no
17219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220   soname_spec='${libname}${release}${shared_ext}$major'
17221   shlibpath_var=LD_LIBRARY_PATH
17222   shlibpath_overrides_runpath=no
17223   hardcode_into_libs=yes
17224   dynamic_linker='ldqnx.so'
17225   ;;
17226
17227 openbsd*)
17228   version_type=sunos
17229   sys_lib_dlsearch_path_spec="/usr/lib"
17230   need_lib_prefix=no
17231   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17232   case $host_os in
17233     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17234     *)                          need_version=no  ;;
17235   esac
17236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17237   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17238   shlibpath_var=LD_LIBRARY_PATH
17239   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17240     case $host_os in
17241       openbsd2.[89] | openbsd2.[89].*)
17242         shlibpath_overrides_runpath=no
17243         ;;
17244       *)
17245         shlibpath_overrides_runpath=yes
17246         ;;
17247       esac
17248   else
17249     shlibpath_overrides_runpath=yes
17250   fi
17251   ;;
17252
17253 os2*)
17254   libname_spec='$name'
17255   shrext_cmds=".dll"
17256   need_lib_prefix=no
17257   library_names_spec='$libname${shared_ext} $libname.a'
17258   dynamic_linker='OS/2 ld.exe'
17259   shlibpath_var=LIBPATH
17260   ;;
17261
17262 osf3* | osf4* | osf5*)
17263   version_type=osf
17264   need_lib_prefix=no
17265   need_version=no
17266   soname_spec='${libname}${release}${shared_ext}$major'
17267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268   shlibpath_var=LD_LIBRARY_PATH
17269   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17270   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17271   ;;
17272
17273 rdos*)
17274   dynamic_linker=no
17275   ;;
17276
17277 solaris*)
17278   version_type=linux # correct to gnu/linux during the next big refactor
17279   need_lib_prefix=no
17280   need_version=no
17281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282   soname_spec='${libname}${release}${shared_ext}$major'
17283   shlibpath_var=LD_LIBRARY_PATH
17284   shlibpath_overrides_runpath=yes
17285   hardcode_into_libs=yes
17286   # ldd complains unless libraries are executable
17287   postinstall_cmds='chmod +x $lib'
17288   ;;
17289
17290 sunos4*)
17291   version_type=sunos
17292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17293   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17294   shlibpath_var=LD_LIBRARY_PATH
17295   shlibpath_overrides_runpath=yes
17296   if test "$with_gnu_ld" = yes; then
17297     need_lib_prefix=no
17298   fi
17299   need_version=yes
17300   ;;
17301
17302 sysv4 | sysv4.3*)
17303   version_type=linux # correct to gnu/linux during the next big refactor
17304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305   soname_spec='${libname}${release}${shared_ext}$major'
17306   shlibpath_var=LD_LIBRARY_PATH
17307   case $host_vendor in
17308     sni)
17309       shlibpath_overrides_runpath=no
17310       need_lib_prefix=no
17311       runpath_var=LD_RUN_PATH
17312       ;;
17313     siemens)
17314       need_lib_prefix=no
17315       ;;
17316     motorola)
17317       need_lib_prefix=no
17318       need_version=no
17319       shlibpath_overrides_runpath=no
17320       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17321       ;;
17322   esac
17323   ;;
17324
17325 sysv4*MP*)
17326   if test -d /usr/nec ;then
17327     version_type=linux # correct to gnu/linux during the next big refactor
17328     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17329     soname_spec='$libname${shared_ext}.$major'
17330     shlibpath_var=LD_LIBRARY_PATH
17331   fi
17332   ;;
17333
17334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17335   version_type=freebsd-elf
17336   need_lib_prefix=no
17337   need_version=no
17338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17339   soname_spec='${libname}${release}${shared_ext}$major'
17340   shlibpath_var=LD_LIBRARY_PATH
17341   shlibpath_overrides_runpath=yes
17342   hardcode_into_libs=yes
17343   if test "$with_gnu_ld" = yes; then
17344     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17345   else
17346     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17347     case $host_os in
17348       sco3.2v5*)
17349         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17350         ;;
17351     esac
17352   fi
17353   sys_lib_dlsearch_path_spec='/usr/lib'
17354   ;;
17355
17356 tpf*)
17357   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17358   version_type=linux # correct to gnu/linux during the next big refactor
17359   need_lib_prefix=no
17360   need_version=no
17361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362   shlibpath_var=LD_LIBRARY_PATH
17363   shlibpath_overrides_runpath=no
17364   hardcode_into_libs=yes
17365   ;;
17366
17367 uts4*)
17368   version_type=linux # correct to gnu/linux during the next big refactor
17369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   shlibpath_var=LD_LIBRARY_PATH
17372   ;;
17373
17374 *)
17375   dynamic_linker=no
17376   ;;
17377 esac
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17379 $as_echo "$dynamic_linker" >&6; }
17380 test "$dynamic_linker" = no && can_build_shared=no
17381
17382 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17383 if test "$GCC" = yes; then
17384   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17385 fi
17386
17387 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17388   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17389 fi
17390 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17391   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17392 fi
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17432 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17433 hardcode_action_CXX=
17434 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17435    test -n "$runpath_var_CXX" ||
17436    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17437
17438   # We can hardcode non-existent directories.
17439   if test "$hardcode_direct_CXX" != no &&
17440      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17441      # have to relink, otherwise we might link with an installed library
17442      # when we should be linking with a yet-to-be-installed one
17443      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17444      test "$hardcode_minus_L_CXX" != no; then
17445     # Linking always hardcodes the temporary library directory.
17446     hardcode_action_CXX=relink
17447   else
17448     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17449     hardcode_action_CXX=immediate
17450   fi
17451 else
17452   # We cannot hardcode anything, or else we can only hardcode existing
17453   # directories.
17454   hardcode_action_CXX=unsupported
17455 fi
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17457 $as_echo "$hardcode_action_CXX" >&6; }
17458
17459 if test "$hardcode_action_CXX" = relink ||
17460    test "$inherit_rpath_CXX" = yes; then
17461   # Fast installation is not supported
17462   enable_fast_install=no
17463 elif test "$shlibpath_overrides_runpath" = yes ||
17464      test "$enable_shared" = no; then
17465   # Fast installation is not necessary
17466   enable_fast_install=needless
17467 fi
17468
17469
17470
17471
17472
17473
17474
17475   fi # test -n "$compiler"
17476
17477   CC=$lt_save_CC
17478   CFLAGS=$lt_save_CFLAGS
17479   LDCXX=$LD
17480   LD=$lt_save_LD
17481   GCC=$lt_save_GCC
17482   with_gnu_ld=$lt_save_with_gnu_ld
17483   lt_cv_path_LDCXX=$lt_cv_path_LD
17484   lt_cv_path_LD=$lt_save_path_LD
17485   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17486   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17487 fi # test "$_lt_caught_CXX_error" != yes
17488
17489 ac_ext=c
17490 ac_cpp='$CPP $CPPFLAGS'
17491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509         ac_config_commands="$ac_config_commands libtool"
17510
17511
17512
17513
17514 # Only expand once:
17515
17516
17517 # Check whether --enable-experimental-libtool was given.
17518 if test "${enable_experimental_libtool+set}" = set; then :
17519   enableval=$enable_experimental_libtool; experimental_libtool=$enableval
17520 else
17521   experimental_libtool=no
17522 fi
17523
17524
17525 if test "$experimental_libtool" = "yes"; then
17526   echo "using APR's libtool"
17527   sh_libtool="`$apr_config --apr-libtool`"
17528   LIBTOOL="$sh_libtool"
17529   SVN_LIBTOOL="$sh_libtool"
17530 else
17531   sh_libtool="$abs_builddir/libtool"
17532   SVN_LIBTOOL="\$(SHELL) $sh_libtool"
17533 fi
17534
17535
17536 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
17537 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
17538 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
17539
17540 svn_enable_static=yes
17541 svn_enable_shared=yes
17542
17543 # Check whether --enable-static was given.
17544 if test "${enable_static+set}" = set; then :
17545   enableval=$enable_static; svn_enable_static="$enableval"
17546 else
17547   svn_enable_static="yes"
17548 fi
17549
17550
17551 # Check whether --enable-shared was given.
17552 if test "${enable_shared+set}" = set; then :
17553   enableval=$enable_shared; svn_enable_shared="$enableval"
17554 else
17555   svn_enable_shared="yes"
17556 fi
17557
17558
17559 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
17560   { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
17561 $as_echo "$as_me: building both shared and static libraries" >&6;}
17562 elif test "$svn_enable_static" = "yes" ; then
17563   { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
17564 $as_echo "$as_me: building static libraries only" >&6;}
17565   LT_CFLAGS="-static $LT_CFLAGS"
17566   LT_LDFLAGS="-static $LT_LDFLAGS"
17567 elif test "$svn_enable_shared" = "yes" ; then
17568   { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
17569 $as_echo "$as_me: building shared libraries only" >&6;}
17570   if test "$lt_major_version" = "1" ; then
17571     LT_CFLAGS="-prefer-pic $LT_CFLAGS"
17572   elif test "$lt_major_version" = "2" ; then
17573     LT_CFLAGS="-shared $LT_CFLAGS"
17574   fi
17575   LT_LDFLAGS="-shared $LT_LDFLAGS"
17576 else
17577   as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
17578 fi
17579
17580 # Check whether --enable-all-static was given.
17581 if test "${enable_all_static+set}" = set; then :
17582   enableval=$enable_all_static;
17583     if test "$enableval" = "yes" ; then
17584       LT_LDFLAGS="-all-static $LT_LDFLAGS"
17585     elif test "$enableval" != "no" ; then
17586       as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
17587     fi
17588
17589 fi
17590
17591
17592
17593
17594
17595 # Check whether --enable-local-library-preloading was given.
17596 if test "${enable_local_library_preloading+set}" = set; then :
17597   enableval=$enable_local_library_preloading;
17598   if test "$enableval" != "no"; then
17599     if test "$svn_enable_shared" = "yes"; then
17600       TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
17601     else
17602       as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
17603     fi
17604   else
17605     TRANSFORM_LIBTOOL_SCRIPTS=""
17606   fi
17607
17608 else
17609
17610   TRANSFORM_LIBTOOL_SCRIPTS=""
17611
17612 fi
17613
17614
17615
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
17617 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
17618 case $host in
17619   *-*-cygwin*)
17620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17621 $as_echo "yes" >&6; }
17622     LT_NO_UNDEFINED="-no-undefined"
17623     ;;
17624   *)
17625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626 $as_echo "no" >&6; }
17627     LT_NO_UNDEFINED=""
17628     ;;
17629 esac
17630
17631
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid circular linkage at all costs" >&5
17633 $as_echo_n "checking whether to avoid circular linkage at all costs... " >&6; }
17634 case $host in
17635   *-*-cygwin*)
17636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17637 $as_echo "yes" >&6; }
17638
17639 $as_echo "#define SVN_AVOID_CIRCULAR_LINKAGE_AT_ALL_COSTS_HACK 1" >>confdefs.h
17640
17641     ;;
17642   *)
17643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17644 $as_echo "no" >&6; }
17645     ;;
17646 esac
17647
17648 trang=yes
17649
17650 # Check whether --with-trang was given.
17651 if test "${with_trang+set}" = set; then :
17652   withval=$with_trang;
17653     trang="$withval"
17654
17655 fi
17656
17657 if test "$trang" = "yes"; then
17658     # Extract the first word of "trang", so it can be a program name with args.
17659 set dummy trang; ac_word=$2
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17661 $as_echo_n "checking for $ac_word... " >&6; }
17662 if ${ac_cv_path_TRANG+:} false; then :
17663   $as_echo_n "(cached) " >&6
17664 else
17665   case $TRANG in
17666   [\\/]* | ?:[\\/]*)
17667   ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
17668   ;;
17669   *)
17670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17671 for as_dir in $PATH
17672 do
17673   IFS=$as_save_IFS
17674   test -z "$as_dir" && as_dir=.
17675     for ac_exec_ext in '' $ac_executable_extensions; do
17676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17677     ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
17678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17679     break 2
17680   fi
17681 done
17682   done
17683 IFS=$as_save_IFS
17684
17685   test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
17686   ;;
17687 esac
17688 fi
17689 TRANG=$ac_cv_path_TRANG
17690 if test -n "$TRANG"; then
17691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
17692 $as_echo "$TRANG" >&6; }
17693 else
17694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17695 $as_echo "no" >&6; }
17696 fi
17697
17698
17699 else
17700     TRANG="$trang"
17701
17702 fi
17703
17704 doxygen=yes
17705
17706 # Check whether --with-doxygen was given.
17707 if test "${with_doxygen+set}" = set; then :
17708   withval=$with_doxygen;
17709     doxygen="$withval"
17710
17711 fi
17712
17713 if test "$doxygen" = "yes"; then
17714     # Extract the first word of "doxygen", so it can be a program name with args.
17715 set dummy doxygen; ac_word=$2
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17717 $as_echo_n "checking for $ac_word... " >&6; }
17718 if ${ac_cv_path_DOXYGEN+:} false; then :
17719   $as_echo_n "(cached) " >&6
17720 else
17721   case $DOXYGEN in
17722   [\\/]* | ?:[\\/]*)
17723   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17724   ;;
17725   *)
17726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17727 for as_dir in $PATH
17728 do
17729   IFS=$as_save_IFS
17730   test -z "$as_dir" && as_dir=.
17731     for ac_exec_ext in '' $ac_executable_extensions; do
17732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17733     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17735     break 2
17736   fi
17737 done
17738   done
17739 IFS=$as_save_IFS
17740
17741   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
17742   ;;
17743 esac
17744 fi
17745 DOXYGEN=$ac_cv_path_DOXYGEN
17746 if test -n "$DOXYGEN"; then
17747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17748 $as_echo "$DOXYGEN" >&6; }
17749 else
17750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17752 fi
17753
17754
17755 else
17756     DOXYGEN="$doxygen"
17757
17758 fi
17759
17760
17761
17762
17763
17764 # Check whether --with-expat was given.
17765 if test "${with_expat+set}" = set; then :
17766   withval=$with_expat; svn_lib_expat="$withval"
17767 else
17768   svn_lib_expat="::expat"
17769 fi
17770
17771
17772 # APR-util accepts "builtin" as an argument to this option so if the user
17773 # passed "builtin" pretend the user didn't specify the --with-expat option
17774 # at all. Expat will (hopefully) be found in apr-util.
17775 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
17776
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
17778 $as_echo_n "checking for Expat... " >&6; }
17779 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
17780   SVN_XML_INCLUDES=""
17781   for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
17782     SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
17783   done
17784   SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
17785   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
17786     LDFLAGS="$LDFLAGS -L$l"
17787   done
17788   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17789     SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
17790   done
17791   SVN_XML_LIBS="${SVN_XML_LIBS## }"
17792   old_CPPFLAGS="$CPPFLAGS"
17793   old_LIBS="$LIBS"
17794   CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
17795   LIBS="$LIBS $SVN_XML_LIBS"
17796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h.  */
17798
17799 #include <expat.h>
17800 int main()
17801 {XML_ParserCreate(NULL);}
17802 _ACEOF
17803 if ac_fn_c_try_link "$LINENO"; then :
17804   svn_lib_expat="yes"
17805 else
17806   svn_lib_expat="no"
17807 fi
17808 rm -f core conftest.err conftest.$ac_objext \
17809     conftest$ac_exeext conftest.$ac_ext
17810   LIBS="$old_LIBS"
17811   if test "$svn_lib_expat" = "yes"; then
17812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17813 $as_echo "yes" >&6; }
17814   else
17815     SVN_XML_INCLUDES=""
17816     SVN_XML_LIBS=""
17817     CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
17818     if test "$enable_all_static" != "yes"; then
17819       SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
17820     fi
17821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h.  */
17823
17824 #include <expat.h>
17825 int main()
17826 {XML_ParserCreate(NULL);}
17827 _ACEOF
17828 if ac_fn_c_try_compile "$LINENO"; then :
17829   svn_lib_expat="yes"
17830 else
17831   svn_lib_expat="no"
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834     if test "$svn_lib_expat" = "yes"; then
17835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17836 $as_echo "yes" >&6; }
17837       { $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
17838 $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;}
17839     else
17840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841 $as_echo "no" >&6; }
17842       as_fn_error $? "Expat not found" "$LINENO" 5
17843     fi
17844   fi
17845   CPPFLAGS="$old_CPPFLAGS"
17846 else
17847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848 $as_echo "no" >&6; }
17849   if test "$svn_lib_expat" = "yes"; then
17850     as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
17851   elif test "$svn_lib_expat" = "no"; then
17852     as_fn_error $? "Expat is required" "$LINENO" 5
17853   else
17854     as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
17855   fi
17856 fi
17857
17858
17859
17860
17861 # Berkeley DB on SCO OpenServer needs -lsocket
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17863 $as_echo_n "checking for socket in -lsocket... " >&6; }
17864 if ${ac_cv_lib_socket_socket+:} false; then :
17865   $as_echo_n "(cached) " >&6
17866 else
17867   ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-lsocket  $LIBS"
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h.  */
17871
17872 /* Override any GCC internal prototype to avoid an error.
17873    Use char because int might match the return type of a GCC
17874    builtin and then its argument prototype would still apply.  */
17875 #ifdef __cplusplus
17876 extern "C"
17877 #endif
17878 char socket ();
17879 int
17880 main ()
17881 {
17882 return socket ();
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 if ac_fn_c_try_link "$LINENO"; then :
17888   ac_cv_lib_socket_socket=yes
17889 else
17890   ac_cv_lib_socket_socket=no
17891 fi
17892 rm -f core conftest.err conftest.$ac_objext \
17893     conftest$ac_exeext conftest.$ac_ext
17894 LIBS=$ac_check_lib_save_LIBS
17895 fi
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17897 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17898 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17899   cat >>confdefs.h <<_ACEOF
17900 #define HAVE_LIBSOCKET 1
17901 _ACEOF
17902
17903   LIBS="-lsocket $LIBS"
17904
17905 fi
17906
17907
17908 # Build the BDB filesystem library only if we have an appropriate
17909 # version of Berkeley DB.
17910 case "$host" in
17911 powerpc-apple-darwin*)
17912     # Berkeley DB 4.0 does not work on OS X.
17913     SVN_FS_WANT_DB_MAJOR=4
17914     SVN_FS_WANT_DB_MINOR=1
17915     SVN_FS_WANT_DB_PATCH=25
17916     ;;
17917 *)
17918     SVN_FS_WANT_DB_MAJOR=4
17919     SVN_FS_WANT_DB_MINOR=0
17920     SVN_FS_WANT_DB_PATCH=14
17921     ;;
17922 esac
17923 db_alt_version="5.x"
17924 # Look for libdb4.so first:
17925
17926   db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
17927
17928
17929 # Check whether --with-berkeley-db was given.
17930 if test "${with_berkeley_db+set}" = set; then :
17931   withval=$with_berkeley_db;
17932     if test "$withval" = "no"; then
17933       bdb_status=skip
17934     elif test "$withval" = "yes"; then
17935       apu_db_version="`$apu_config --db-version`"
17936       if test $? -ne 0; then
17937         as_fn_error $? "Can't determine whether apr-util is linked against a
17938                       proper version of Berkeley DB." "$LINENO" 5
17939       fi
17940
17941       if test "$withval" = "yes"; then
17942         if test "$apu_db_version" -lt "4"; then
17943           as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
17944                         while version 4 or higher is required.  Reinstall
17945                         APR-UTIL with the appropriate options." "$LINENO" 5
17946         fi
17947
17948         bdb_status=required
17949
17950       elif test "$apu_found" != "reconfig"; then
17951         if test "$apu_db_version" -lt 4; then
17952           as_fn_error $? "APR-UTIL was installed independently, it won't be
17953                         possible to use the specified Berkeley DB: $withval" "$LINENO" 5
17954         fi
17955
17956         bdb_status=required
17957       fi
17958     else
17959       if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
17960         svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
17961         SVN_DB_INCLUDES=""
17962         for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
17963           SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
17964         done
17965         SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
17966         for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
17967           LDFLAGS="$LDFLAGS -L$l"
17968         done
17969         SVN_DB_LIBS=""
17970         for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17971           SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
17972         done
17973         SVN_DB_LIBS="${SVN_DB_LIBS## }"
17974
17975         bdb_status=required
17976       else
17977         as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
17978       fi
17979     fi
17980
17981 else
17982
17983     # No --with-berkeley-db option:
17984     #
17985     # Check if APR-UTIL is providing the correct Berkeley DB version
17986     # for us.
17987     #
17988     apu_db_version="`$apu_config --db-version`"
17989     if test $? -ne 0; then
17990       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
17991                    whether apr-util is linked against Berkeley DB
17992                    $db_version" >&5
17993 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
17994                    whether apr-util is linked against Berkeley DB
17995                    $db_version" >&2;}
17996       bdb_status=try-link
17997     elif test "$apu_db_version" -lt "4"; then
17998       bdb_status=skip
17999     else
18000       bdb_status=try-link
18001     fi
18002
18003 fi
18004
18005
18006   if test "$bdb_status" = "skip"; then
18007     svn_lib_berkeley_db=no
18008   else
18009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18010 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18011     # Check whether --enable-bdb6 was given.
18012 if test "${enable_bdb6+set}" = set; then :
18013   enableval=$enable_bdb6; enable_bdb6=$enableval
18014 else
18015   enable_bdb6=unspecified
18016 fi
18017
18018
18019
18020     svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18021     svn_lib_berkeley_db_try_save_libs="$LIBS"
18022
18023     svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18024     svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18025     svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18026     enable_bdb6=$enable_bdb6
18027
18028    if test -z "$SVN_DB_LIBS"; then
18029       # We pass --dbm-libs here since Debian has modified apu-config not
18030       # to return -ldb unless --dbm-libs is passed.  This may also produce
18031       # extra output beyond -ldb but since we're only filtering for -ldb
18032       # it won't matter to us.  However, --dbm-libs was added to apu-config
18033       # in 1.3.8 so it's possible the version we have doesn't support it
18034       # so fallback without it if we get an error.
18035       svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18036       if test $? -ne 0; then
18037         svn_db_libs_prefiltered="`$apu_config --libs`"
18038       fi
18039
18040       # Extract only the -ldb.* flag from the libs supplied by apu-config
18041       # Otherwise we get bit by the fact that expat might not be built yet
18042       # Or that it resides in a non-standard location which we would have
18043       # to compensate with using something like -R`$apu_config --prefix`/lib.
18044       #
18045       SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18046     fi
18047
18048     CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18049     LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18050
18051     if test -n "$svn_berkeley_db_header"; then
18052       SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18053       svn_db_header="#include <$svn_berkeley_db_header>"
18054     else
18055       SVN_DB_HEADER="#include <apu_want.h>"
18056       svn_db_header="#define APU_WANT_DB
18057 #include <apu_want.h>"
18058     fi
18059
18060
18061
18062     if test "$cross_compiling" = yes; then :
18063   svn_have_berkeley_db=yes
18064
18065 else
18066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h.  */
18068
18069 #include <string.h>
18070 #include <stdlib.h>
18071 $svn_db_header
18072
18073 int main ()
18074 {
18075   int major, minor, patch;
18076
18077   db_version (&major, &minor, &patch);
18078
18079   /* Sanity check: ensure that db.h constants actually match the db library */
18080   if (major != DB_VERSION_MAJOR
18081       || minor != DB_VERSION_MINOR
18082       || patch != DB_VERSION_PATCH)
18083     exit (1);
18084
18085   /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18086      and newer are under the AGPL, and we want use of AGPL dependencies to be
18087      opt-in. */
18088   if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18089     exit(2);
18090
18091   /* Run-time check:  ensure the library claims to be the correct version. */
18092
18093   if (major < $svn_check_berkeley_db_major)
18094     exit (1);
18095   if (major > $svn_check_berkeley_db_major)
18096     exit (0);
18097
18098   if (minor < $svn_check_berkeley_db_minor)
18099     exit (1);
18100   if (minor > $svn_check_berkeley_db_minor)
18101     exit (0);
18102
18103   if (patch >= $svn_check_berkeley_db_patch)
18104     exit (0);
18105   else
18106     exit (1);
18107 }
18108
18109 _ACEOF
18110 if ac_fn_c_try_run "$LINENO"; then :
18111   svn_have_berkeley_db=yes
18112 else
18113   rc=$?
18114        svn_have_berkeley_db=no
18115        if test $rc = 2; then
18116          svn_have_berkeley_db=no6
18117        fi
18118 fi
18119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18120   conftest.$ac_objext conftest.beam conftest.$ac_ext
18121 fi
18122
18123
18124   CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
18125   LIBS="$svn_lib_berkeley_db_try_save_libs"
18126
18127
18128     if test "$svn_have_berkeley_db" = "yes"; then
18129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18130 $as_echo "yes" >&6; }
18131       svn_lib_berkeley_db=yes
18132     else
18133       if test "$svn_have_berkeley_db" = "no6"; then
18134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
18135 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
18136         # A warning will be printed at the end of configure.ac.
18137       else
18138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139 $as_echo "no" >&6; }
18140       fi
18141       svn_lib_berkeley_db=no
18142       if test "$bdb_status" = "required"; then
18143         as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
18144       fi
18145     fi
18146   fi
18147
18148
18149
18150 cat >>confdefs.h <<_ACEOF
18151 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
18152 _ACEOF
18153
18154
18155 cat >>confdefs.h <<_ACEOF
18156 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
18157 _ACEOF
18158
18159
18160 cat >>confdefs.h <<_ACEOF
18161 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
18162 _ACEOF
18163
18164
18165
18166
18167
18168
18169
18170 # Check whether --with-sasl was given.
18171 if test "${with_sasl+set}" = set; then :
18172   withval=$with_sasl;
18173     with_sasl="$withval"
18174     required="yes"
18175
18176 else
18177
18178     with_sasl="yes"
18179     required="no"
18180
18181 fi
18182
18183
18184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
18185 $as_echo_n "checking whether to look for SASL... " >&6; }
18186
18187   if test "${with_sasl}" = "no"; then
18188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18190     svn_lib_sasl=no
18191   else
18192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193 $as_echo "yes" >&6; }
18194     saved_LDFLAGS="$LDFLAGS"
18195     saved_CPPFLAGS="$CPPFLAGS"
18196
18197     if test "$with_sasl" = "yes"; then
18198       { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
18199 $as_echo "$as_me: Looking in default locations" >&6;}
18200       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18201 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18202   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18203 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18205 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18206 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18207   $as_echo_n "(cached) " >&6
18208 else
18209   ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-lsasl2  $LIBS"
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h.  */
18213
18214 /* Override any GCC internal prototype to avoid an error.
18215    Use char because int might match the return type of a GCC
18216    builtin and then its argument prototype would still apply.  */
18217 #ifdef __cplusplus
18218 extern "C"
18219 #endif
18220 char prop_get ();
18221 int
18222 main ()
18223 {
18224 return prop_get ();
18225   ;
18226   return 0;
18227 }
18228 _ACEOF
18229 if ac_fn_c_try_link "$LINENO"; then :
18230   ac_cv_lib_sasl2_prop_get=yes
18231 else
18232   ac_cv_lib_sasl2_prop_get=no
18233 fi
18234 rm -f core conftest.err conftest.$ac_objext \
18235     conftest$ac_exeext conftest.$ac_ext
18236 LIBS=$ac_check_lib_save_LIBS
18237 fi
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18239 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18240 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18241   svn_lib_sasl=yes
18242 else
18243   svn_lib_sasl=no
18244 fi
18245
18246 else
18247   svn_lib_sasl=no
18248 fi
18249
18250
18251 else
18252   svn_lib_sasl=no
18253 fi
18254
18255
18256       if test "$svn_lib_sasl" = "no"; then
18257         with_sasl="/usr/local"
18258       fi
18259     else
18260       svn_lib_sasl=no
18261     fi
18262
18263     if test "$svn_lib_sasl" = "no"; then
18264       SVN_SASL_INCLUDES="-I${with_sasl}/include"
18265       CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
18266       LDFLAGS="$LDFLAGS `
18267   input_flags="-L${with_sasl}/lib"
18268   output_flags=""
18269   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18270   for flag in $input_flags; do
18271     filter="no"
18272     for dir in $filtered_dirs; do
18273       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18274         filter="yes"
18275         break
18276       fi
18277     done
18278     if test "$filter" = "no"; then
18279       output_flags="$output_flags $flag"
18280     fi
18281   done
18282   if test -n "$output_flags"; then
18283     printf "%s" "${output_flags# }"
18284   fi
18285 `"
18286
18287       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18288 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18289   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18290 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18292 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18293 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18294   $as_echo_n "(cached) " >&6
18295 else
18296   ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lsasl2  $LIBS"
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h.  */
18300
18301 /* Override any GCC internal prototype to avoid an error.
18302    Use char because int might match the return type of a GCC
18303    builtin and then its argument prototype would still apply.  */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 char prop_get ();
18308 int
18309 main ()
18310 {
18311 return prop_get ();
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 if ac_fn_c_try_link "$LINENO"; then :
18317   ac_cv_lib_sasl2_prop_get=yes
18318 else
18319   ac_cv_lib_sasl2_prop_get=no
18320 fi
18321 rm -f core conftest.err conftest.$ac_objext \
18322     conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18326 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18327 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18328   svn_lib_sasl=yes
18329 else
18330   svn_lib_sasl=no
18331 fi
18332
18333 else
18334   svn_lib_sasl=no
18335 fi
18336
18337
18338 else
18339   svn_lib_sasl=no
18340 fi
18341
18342
18343     fi
18344
18345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
18346 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
18347     if test "$svn_lib_sasl" = "yes"; then
18348       SVN_SASL_LIBS="-lsasl2"
18349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18350 $as_echo "yes" >&6; }
18351     else
18352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18353 $as_echo "no" >&6; }
18354
18355       if test "$required" = "yes"; then
18356                         as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
18357       fi
18358
18359       SVN_SASL_INCLUDES=""
18360       LDFLAGS="$saved_LDFLAGS"
18361     fi
18362
18363     CPPFLAGS="$saved_CPPFLAGS"
18364   fi
18365
18366
18367
18368
18369
18370 if test "$svn_lib_sasl" = "yes"; then
18371
18372 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
18373
18374 fi
18375
18376
18377
18378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
18379 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
18380   if test "$cross_compiling" = yes; then :
18381   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18383 as_fn_error $? "cannot run test program while cross compiling
18384 See \`config.log' for more details" "$LINENO" 5; }
18385 else
18386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h.  */
18388
18389     #include <mach-o/dyld.h>
18390     #include <mach-o/loader.h>
18391
18392 int
18393 main ()
18394 {
18395
18396     const struct mach_header *header = _dyld_get_image_header(0);
18397     const char *name = _dyld_get_image_name(0);
18398     if (name && header) return 0;
18399     return 1;
18400
18401   ;
18402   return 0;
18403 }
18404 _ACEOF
18405 if ac_fn_c_try_run "$LINENO"; then :
18406
18407
18408 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
18409
18410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18411 $as_echo "yes" >&6; }
18412
18413 else
18414
18415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18417
18418 fi
18419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18420   conftest.$ac_objext conftest.beam conftest.$ac_ext
18421 fi
18422
18423
18424
18425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
18426 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
18427
18428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h.  */
18430
18431     #include <AvailabilityMacros.h>
18432     #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18433      || !defined(MAC_OS_X_VERSION_10_0) \
18434      || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
18435     #error ProperyList API unavailable.
18436     #endif
18437
18438 int
18439 main ()
18440 {
18441
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 if ac_fn_c_try_compile "$LINENO"; then :
18447
18448
18449     LIBS="$LIBS -framework CoreFoundation"
18450
18451 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
18452
18453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18454 $as_echo "yes" >&6; }
18455
18456 else
18457
18458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459 $as_echo "no" >&6; }
18460
18461 fi
18462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18463
18464
18465   # Check whether --enable-keychain was given.
18466 if test "${enable_keychain+set}" = set; then :
18467   enableval=$enable_keychain; enable_keychain=$enableval
18468 else
18469   enable_keychain=yes
18470 fi
18471
18472
18473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
18474 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
18475
18476   if test "$enable_keychain" = "yes"; then
18477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478 /* end confdefs.h.  */
18479
18480       #include <AvailabilityMacros.h>
18481       #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18482        || !defined(MAC_OS_X_VERSION_10_2) \
18483        || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
18484       #error KeyChain API unavailable.
18485       #endif
18486
18487 int
18488 main ()
18489 {
18490
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 if ac_fn_c_try_compile "$LINENO"; then :
18496
18497             LIBS="$LIBS -framework Security"
18498       LIBS="$LIBS -framework CoreServices"
18499
18500 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
18501
18502       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18503 $as_echo "yes" >&6; }
18504
18505 else
18506
18507       enable_keychain=no
18508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18510
18511 fi
18512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18513   fi
18514
18515
18516
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
18518 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
18519 old_CPPFLAGS="$CPPFLAGS"
18520 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h.  */
18523
18524 #include <apr.h>
18525 #if !APR_HAS_DSO
18526 #error
18527 #endif
18528 _ACEOF
18529 if ac_fn_c_try_cpp "$LINENO"; then :
18530   APR_HAS_DSO="yes"
18531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18532 $as_echo "yes" >&6; }
18533 else
18534   APR_HAS_DSO="no"
18535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18536 $as_echo "no" >&6; }
18537 fi
18538 rm -f conftest.err conftest.i conftest.$ac_ext
18539 CPPFLAGS="$old_CPPFLAGS"
18540
18541
18542
18543 if test -n "$PKG_CONFIG"; then
18544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
18545 $as_echo_n "checking for D-Bus .pc file... " >&6; }
18546   if $PKG_CONFIG --exists dbus-1; then
18547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18548 $as_echo "yes" >&6; }
18549     old_CPPFLAGS="$CPPFLAGS"
18550     old_LIBS="$LIBS"
18551     DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
18552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
18553 $as_echo_n "checking D-Bus version... " >&6; }
18554     DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
18555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
18556 $as_echo "$DBUS_VERSION" >&6; }
18557     # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
18558     if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
18559       DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
18560     fi
18561     DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
18562     CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
18563     LIBS="$LIBS $DBUS_LIBS"
18564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
18565 $as_echo_n "checking for D-Bus... " >&6; }
18566     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h.  */
18568
18569 #include <dbus/dbus.h>
18570 int main()
18571 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
18572 _ACEOF
18573 if ac_fn_c_try_link "$LINENO"; then :
18574   HAVE_DBUS="yes"
18575 else
18576   HAVE_DBUS="no"
18577 fi
18578 rm -f core conftest.err conftest.$ac_objext \
18579     conftest$ac_exeext conftest.$ac_ext
18580     if test "$HAVE_DBUS" = "yes"; then
18581       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18582 $as_echo "yes" >&6; }
18583     else
18584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18585 $as_echo "no" >&6; }
18586     fi
18587     CPPFLAGS="$old_CPPFLAGS"
18588     LIBS="$old_LIBS"
18589   else
18590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18591 $as_echo "no" >&6; }
18592   fi
18593 fi
18594
18595
18596
18597 # Check whether --with-gpg_agent was given.
18598 if test "${with_gpg_agent+set}" = set; then :
18599   withval=$with_gpg_agent;
18600 else
18601   with_gpg_agent=yes
18602 fi
18603
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
18605 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
18606 if test "$with_gpg_agent" = "yes"; then
18607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18608 $as_echo "yes" >&6; }
18609
18610 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
18611
18612 else
18613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614 $as_echo "no" >&6; }
18615 fi
18616
18617
18618
18619
18620
18621 # Check whether --with-gnome_keyring was given.
18622 if test "${with_gnome_keyring+set}" = set; then :
18623   withval=$with_gnome_keyring; with_gnome_keyring="$withval"
18624 else
18625   with_gnome_keyring=auto
18626 fi
18627
18628
18629 found_gnome_keyring=no
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
18631 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
18632 if test "$with_gnome_keyring" != "no"; then
18633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18634 $as_echo "yes" >&6; }
18635   if test "$svn_enable_shared" = "yes"; then
18636     if test "$APR_HAS_DSO" = "yes"; then
18637       if test -n "$PKG_CONFIG"; then
18638         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
18639 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
18640         if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
18641           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18642 $as_echo "yes" >&6; }
18643           old_CPPFLAGS="$CPPFLAGS"
18644           SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
18645           CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
18646           ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
18647 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
18648   found_gnome_keyring=yes
18649 else
18650   found_gnome_keyring=no
18651 fi
18652
18653
18654           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
18655 $as_echo_n "checking for GNOME Keyring... " >&6; }
18656           if test "$found_gnome_keyring" = "yes"; then
18657             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18658 $as_echo "yes" >&6; }
18659
18660 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
18661
18662             CPPFLAGS="$old_CPPFLAGS"
18663             SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
18664           else
18665             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18666 $as_echo "no" >&6; }
18667             if test "$with_gnome_keyring" = "yes"; then
18668               as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
18669             fi
18670           fi
18671         else
18672           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18673 $as_echo "no" >&6; }
18674           if test "$with_gnome_keyring" = "yes"; then
18675             as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
18676           else
18677             with_gnome_keyring=no
18678           fi
18679         fi
18680       else
18681         if test "$with_gnome_keyring" = "yes"; then
18682           as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
18683         else
18684           with_gnome_keyring=no
18685         fi
18686       fi
18687     else
18688       if test "$with_gnome_keyring" = "yes"; then
18689         as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
18690       else
18691         with_gnome_keyring=no
18692       fi
18693     fi
18694   else
18695     if test "$with_gnome_keyring" = "yes"; then
18696       as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
18697     else
18698       with_gnome_keyring=no
18699     fi
18700   fi
18701 else
18702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; }
18704 fi
18705
18706
18707
18708
18709 # Check whether --enable-ev2-impl was given.
18710 if test "${enable_ev2_impl+set}" = set; then :
18711   enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
18712 else
18713   enable_ev2_impl=no
18714 fi
18715
18716 if test "$enable_ev2_impl" = "yes"; then
18717
18718 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
18719
18720 fi
18721
18722
18723
18724 # Check whether --enable-nls was given.
18725 if test "${enable_nls+set}" = set; then :
18726   enableval=$enable_nls; enable_nls=$enableval
18727 else
18728   enable_nls=yes
18729 fi
18730
18731
18732 USE_NLS="no"
18733 if test "$enable_nls" = "yes"; then
18734     # Extract the first word of "msgfmt", so it can be a program name with args.
18735 set dummy msgfmt; ac_word=$2
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18737 $as_echo_n "checking for $ac_word... " >&6; }
18738 if ${ac_cv_path_MSGFMT+:} false; then :
18739   $as_echo_n "(cached) " >&6
18740 else
18741   case $MSGFMT in
18742   [\\/]* | ?:[\\/]*)
18743   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18744   ;;
18745   *)
18746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18747 for as_dir in $PATH
18748 do
18749   IFS=$as_save_IFS
18750   test -z "$as_dir" && as_dir=.
18751     for ac_exec_ext in '' $ac_executable_extensions; do
18752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18753     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18755     break 2
18756   fi
18757 done
18758   done
18759 IFS=$as_save_IFS
18760
18761   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
18762   ;;
18763 esac
18764 fi
18765 MSGFMT=$ac_cv_path_MSGFMT
18766 if test -n "$MSGFMT"; then
18767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18768 $as_echo "$MSGFMT" >&6; }
18769 else
18770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18772 fi
18773
18774
18775   # Extract the first word of "msgmerge", so it can be a program name with args.
18776 set dummy msgmerge; ac_word=$2
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18778 $as_echo_n "checking for $ac_word... " >&6; }
18779 if ${ac_cv_path_MSGMERGE+:} false; then :
18780   $as_echo_n "(cached) " >&6
18781 else
18782   case $MSGMERGE in
18783   [\\/]* | ?:[\\/]*)
18784   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18785   ;;
18786   *)
18787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788 for as_dir in $PATH
18789 do
18790   IFS=$as_save_IFS
18791   test -z "$as_dir" && as_dir=.
18792     for ac_exec_ext in '' $ac_executable_extensions; do
18793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
18795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18796     break 2
18797   fi
18798 done
18799   done
18800 IFS=$as_save_IFS
18801
18802   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
18803   ;;
18804 esac
18805 fi
18806 MSGMERGE=$ac_cv_path_MSGMERGE
18807 if test -n "$MSGMERGE"; then
18808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18809 $as_echo "$MSGMERGE" >&6; }
18810 else
18811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812 $as_echo "no" >&6; }
18813 fi
18814
18815
18816   # Extract the first word of "xgettext", so it can be a program name with args.
18817 set dummy xgettext; ac_word=$2
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18819 $as_echo_n "checking for $ac_word... " >&6; }
18820 if ${ac_cv_path_XGETTEXT+:} false; then :
18821   $as_echo_n "(cached) " >&6
18822 else
18823   case $XGETTEXT in
18824   [\\/]* | ?:[\\/]*)
18825   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18826   ;;
18827   *)
18828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829 for as_dir in $PATH
18830 do
18831   IFS=$as_save_IFS
18832   test -z "$as_dir" && as_dir=.
18833     for ac_exec_ext in '' $ac_executable_extensions; do
18834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18837     break 2
18838   fi
18839 done
18840   done
18841 IFS=$as_save_IFS
18842
18843   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
18844   ;;
18845 esac
18846 fi
18847 XGETTEXT=$ac_cv_path_XGETTEXT
18848 if test -n "$XGETTEXT"; then
18849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18850 $as_echo "$XGETTEXT" >&6; }
18851 else
18852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853 $as_echo "no" >&6; }
18854 fi
18855
18856
18857   if test "$MSGFMT" != "none"; then
18858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18859 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
18860 if ${ac_cv_search_bindtextdomain+:} false; then :
18861   $as_echo_n "(cached) " >&6
18862 else
18863   ac_func_search_save_LIBS=$LIBS
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h.  */
18866
18867 /* Override any GCC internal prototype to avoid an error.
18868    Use char because int might match the return type of a GCC
18869    builtin and then its argument prototype would still apply.  */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 char bindtextdomain ();
18874 int
18875 main ()
18876 {
18877 return bindtextdomain ();
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 for ac_lib in '' intl; do
18883   if test -z "$ac_lib"; then
18884     ac_res="none required"
18885   else
18886     ac_res=-l$ac_lib
18887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18888   fi
18889   if ac_fn_c_try_link "$LINENO"; then :
18890   ac_cv_search_bindtextdomain=$ac_res
18891 fi
18892 rm -f core conftest.err conftest.$ac_objext \
18893     conftest$ac_exeext
18894   if ${ac_cv_search_bindtextdomain+:} false; then :
18895   break
18896 fi
18897 done
18898 if ${ac_cv_search_bindtextdomain+:} false; then :
18899
18900 else
18901   ac_cv_search_bindtextdomain=no
18902 fi
18903 rm conftest.$ac_ext
18904 LIBS=$ac_func_search_save_LIBS
18905 fi
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
18907 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
18908 ac_res=$ac_cv_search_bindtextdomain
18909 if test "$ac_res" != no; then :
18910   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18911
18912 else
18913
18914                     enable_nls="no"
18915
18916 fi
18917
18918     if test "$enable_nls" = "no"; then
18919       # Destroy the cached result so we can test again
18920       unset ac_cv_search_bindtextdomain
18921       # On some systems, libintl needs libiconv to link properly,
18922       # so try again with -liconv.
18923       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18924 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
18925 if ${ac_cv_search_bindtextdomain+:} false; then :
18926   $as_echo_n "(cached) " >&6
18927 else
18928   ac_func_search_save_LIBS=$LIBS
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h.  */
18931
18932 /* Override any GCC internal prototype to avoid an error.
18933    Use char because int might match the return type of a GCC
18934    builtin and then its argument prototype would still apply.  */
18935 #ifdef __cplusplus
18936 extern "C"
18937 #endif
18938 char bindtextdomain ();
18939 int
18940 main ()
18941 {
18942 return bindtextdomain ();
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 for ac_lib in '' intl; do
18948   if test -z "$ac_lib"; then
18949     ac_res="none required"
18950   else
18951     ac_res=-l$ac_lib
18952     LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
18953   fi
18954   if ac_fn_c_try_link "$LINENO"; then :
18955   ac_cv_search_bindtextdomain=$ac_res
18956 fi
18957 rm -f core conftest.err conftest.$ac_objext \
18958     conftest$ac_exeext
18959   if ${ac_cv_search_bindtextdomain+:} false; then :
18960   break
18961 fi
18962 done
18963 if ${ac_cv_search_bindtextdomain+:} false; then :
18964
18965 else
18966   ac_cv_search_bindtextdomain=no
18967 fi
18968 rm conftest.$ac_ext
18969 LIBS=$ac_func_search_save_LIBS
18970 fi
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
18972 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
18973 ac_res=$ac_cv_search_bindtextdomain
18974 if test "$ac_res" != no; then :
18975   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18976
18977                       enable_nls="yes"
18978                       # This is here so that -liconv ends up in LIBS
18979                       # if it worked with -liconv.
18980                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
18981 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
18982 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
18983   $as_echo_n "(cached) " >&6
18984 else
18985   ac_check_lib_save_LIBS=$LIBS
18986 LIBS="-liconv  $LIBS"
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h.  */
18989
18990 /* Override any GCC internal prototype to avoid an error.
18991    Use char because int might match the return type of a GCC
18992    builtin and then its argument prototype would still apply.  */
18993 #ifdef __cplusplus
18994 extern "C"
18995 #endif
18996 char libiconv_open ();
18997 int
18998 main ()
18999 {
19000 return libiconv_open ();
19001   ;
19002   return 0;
19003 }
19004 _ACEOF
19005 if ac_fn_c_try_link "$LINENO"; then :
19006   ac_cv_lib_iconv_libiconv_open=yes
19007 else
19008   ac_cv_lib_iconv_libiconv_open=no
19009 fi
19010 rm -f core conftest.err conftest.$ac_objext \
19011     conftest$ac_exeext conftest.$ac_ext
19012 LIBS=$ac_check_lib_save_LIBS
19013 fi
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19015 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19016 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19017   cat >>confdefs.h <<_ACEOF
19018 #define HAVE_LIBICONV 1
19019 _ACEOF
19020
19021   LIBS="-liconv $LIBS"
19022
19023 fi
19024
19025
19026 else
19027
19028                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
19029 $as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
19030                       enable_nls="no"
19031
19032 fi
19033
19034     fi
19035     if test "$enable_nls" = "yes"; then
19036
19037 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19038
19039       USE_NLS="yes"
19040     fi
19041   fi
19042 fi
19043
19044
19045
19046 GETTEXT_CODESET=\#
19047 NO_GETTEXT_CODESET=\#
19048 if test $USE_NLS = "yes"; then
19049    for ac_func in bind_textdomain_codeset
19050 do :
19051   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19052 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19053   cat >>confdefs.h <<_ACEOF
19054 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19055 _ACEOF
19056   GETTEXT_CODESET=""
19057 else
19058    NO_GETTEXT_CODESET=""
19059 fi
19060 done
19061
19062 fi
19063
19064
19065
19066 # Check if we are using GNU gettext.
19067 GNU_GETTEXT=no
19068 MSGFMTFLAGS=''
19069 if test $USE_NLS = "yes"; then
19070    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
19071 $as_echo_n "checking if we are using GNU gettext... " >&6; }
19072    if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
19073       GNU_GETTEXT=yes
19074       MSGFMTFLAGS='-c'
19075    fi
19076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
19077 $as_echo "$GNU_GETTEXT" >&6; }
19078 fi
19079
19080
19081
19082 libmagic_found=no
19083
19084
19085 # Check whether --with-libmagic was given.
19086 if test "${with_libmagic+set}" = set; then :
19087   withval=$with_libmagic;
19088   if test "$withval" = "yes" ; then
19089     ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19090 if test "x$ac_cv_header_magic_h" = xyes; then :
19091
19092       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19093 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19094 if ${ac_cv_lib_magic_magic_open+:} false; then :
19095   $as_echo_n "(cached) " >&6
19096 else
19097   ac_check_lib_save_LIBS=$LIBS
19098 LIBS="-lmagic  $LIBS"
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h.  */
19101
19102 /* Override any GCC internal prototype to avoid an error.
19103    Use char because int might match the return type of a GCC
19104    builtin and then its argument prototype would still apply.  */
19105 #ifdef __cplusplus
19106 extern "C"
19107 #endif
19108 char magic_open ();
19109 int
19110 main ()
19111 {
19112 return magic_open ();
19113   ;
19114   return 0;
19115 }
19116 _ACEOF
19117 if ac_fn_c_try_link "$LINENO"; then :
19118   ac_cv_lib_magic_magic_open=yes
19119 else
19120   ac_cv_lib_magic_magic_open=no
19121 fi
19122 rm -f core conftest.err conftest.$ac_objext \
19123     conftest$ac_exeext conftest.$ac_ext
19124 LIBS=$ac_check_lib_save_LIBS
19125 fi
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19127 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19128 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19129   libmagic_found="builtin"
19130 fi
19131
19132
19133 fi
19134
19135
19136     libmagic_prefix="the default locations"
19137   elif test "$withval" != "no"; then
19138     libmagic_prefix=$withval
19139     save_cppflags="$CPPFLAGS"
19140     CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
19141     for ac_header in magic.h
19142 do :
19143   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19144 if test "x$ac_cv_header_magic_h" = xyes; then :
19145   cat >>confdefs.h <<_ACEOF
19146 #define HAVE_MAGIC_H 1
19147 _ACEOF
19148
19149       save_ldflags="$LDFLAGS"
19150       LDFLAGS="-L$libmagic_prefix/lib"
19151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19152 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19153 if ${ac_cv_lib_magic_magic_open+:} false; then :
19154   $as_echo_n "(cached) " >&6
19155 else
19156   ac_check_lib_save_LIBS=$LIBS
19157 LIBS="-lmagic  $LIBS"
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h.  */
19160
19161 /* Override any GCC internal prototype to avoid an error.
19162    Use char because int might match the return type of a GCC
19163    builtin and then its argument prototype would still apply.  */
19164 #ifdef __cplusplus
19165 extern "C"
19166 #endif
19167 char magic_open ();
19168 int
19169 main ()
19170 {
19171 return magic_open ();
19172   ;
19173   return 0;
19174 }
19175 _ACEOF
19176 if ac_fn_c_try_link "$LINENO"; then :
19177   ac_cv_lib_magic_magic_open=yes
19178 else
19179   ac_cv_lib_magic_magic_open=no
19180 fi
19181 rm -f core conftest.err conftest.$ac_objext \
19182     conftest$ac_exeext conftest.$ac_ext
19183 LIBS=$ac_check_lib_save_LIBS
19184 fi
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19186 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19187 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19188   libmagic_found="yes"
19189 fi
19190
19191       LDFLAGS="$save_ldflags"
19192
19193 fi
19194
19195 done
19196
19197     CPPFLAGS="$save_cppflags"
19198   fi
19199   if test "$withval" != "no" && test "$libmagic_found" = "no"; then
19200     as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
19201   fi
19202
19203 else
19204
19205   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19206 if test "x$ac_cv_header_magic_h" = xyes; then :
19207
19208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19209 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19210 if ${ac_cv_lib_magic_magic_open+:} false; then :
19211   $as_echo_n "(cached) " >&6
19212 else
19213   ac_check_lib_save_LIBS=$LIBS
19214 LIBS="-lmagic  $LIBS"
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h.  */
19217
19218 /* Override any GCC internal prototype to avoid an error.
19219    Use char because int might match the return type of a GCC
19220    builtin and then its argument prototype would still apply.  */
19221 #ifdef __cplusplus
19222 extern "C"
19223 #endif
19224 char magic_open ();
19225 int
19226 main ()
19227 {
19228 return magic_open ();
19229   ;
19230   return 0;
19231 }
19232 _ACEOF
19233 if ac_fn_c_try_link "$LINENO"; then :
19234   ac_cv_lib_magic_magic_open=yes
19235 else
19236   ac_cv_lib_magic_magic_open=no
19237 fi
19238 rm -f core conftest.err conftest.$ac_objext \
19239     conftest$ac_exeext conftest.$ac_ext
19240 LIBS=$ac_check_lib_save_LIBS
19241 fi
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19243 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19244 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19245   libmagic_found="builtin"
19246 fi
19247
19248
19249 fi
19250
19251
19252
19253 fi
19254
19255
19256 if test "$libmagic_found" != "no"; then
19257
19258 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
19259
19260   SVN_MAGIC_LIBS="-lmagic"
19261 fi
19262
19263 if test "$libmagic_found" = "yes"; then
19264   SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
19265   LDFLAGS="$LDFLAGS `
19266   input_flags="-L$libmagic_prefix/lib"
19267   output_flags=""
19268   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19269   for flag in $input_flags; do
19270     filter="no"
19271     for dir in $filtered_dirs; do
19272       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19273         filter="yes"
19274         break
19275       fi
19276     done
19277     if test "$filter" = "no"; then
19278       output_flags="$output_flags $flag"
19279     fi
19280   done
19281   if test -n "$output_flags"; then
19282     printf "%s" "${output_flags# }"
19283   fi
19284 `"
19285 fi
19286
19287
19288
19289
19290
19291
19292 # Check whether --with-kwallet was given.
19293 if test "${with_kwallet+set}" = set; then :
19294   withval=$with_kwallet; svn_lib_kwallet="$withval"
19295 else
19296   svn_lib_kwallet=no
19297 fi
19298
19299
19300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
19301 $as_echo_n "checking whether to look for KWallet... " >&6; }
19302   if test "$svn_lib_kwallet" != "no"; then
19303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19304 $as_echo "yes" >&6; }
19305     if test "$svn_enable_shared" = "yes"; then
19306       if test "$APR_HAS_DSO" = "yes"; then
19307         if test -n "$PKG_CONFIG"; then
19308           if test "$HAVE_DBUS" = "yes"; then
19309             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
19310 $as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
19311             if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
19312               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313 $as_echo "yes" >&6; }
19314               if test "$svn_lib_kwallet" != "yes"; then
19315                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
19316 $as_echo_n "checking for kde4-config... " >&6; }
19317                 KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
19318                 if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
19319                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19320 $as_echo "yes" >&6; }
19321                 else
19322                   KDE4_CONFIG=""
19323                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324 $as_echo "no" >&6; }
19325                 fi
19326               else
19327                 # Extract the first word of "kde4-config", so it can be a program name with args.
19328 set dummy kde4-config; ac_word=$2
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19330 $as_echo_n "checking for $ac_word... " >&6; }
19331 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
19332   $as_echo_n "(cached) " >&6
19333 else
19334   case $KDE4_CONFIG in
19335   [\\/]* | ?:[\\/]*)
19336   ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
19337   ;;
19338   *)
19339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19340 for as_dir in $PATH
19341 do
19342   IFS=$as_save_IFS
19343   test -z "$as_dir" && as_dir=.
19344     for ac_exec_ext in '' $ac_executable_extensions; do
19345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19346     ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19348     break 2
19349   fi
19350 done
19351   done
19352 IFS=$as_save_IFS
19353
19354   ;;
19355 esac
19356 fi
19357 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
19358 if test -n "$KDE4_CONFIG"; then
19359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
19360 $as_echo "$KDE4_CONFIG" >&6; }
19361 else
19362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19363 $as_echo "no" >&6; }
19364 fi
19365
19366
19367               fi
19368               if test -n "$KDE4_CONFIG"; then
19369                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
19370 $as_echo_n "checking for KWallet... " >&6; }
19371                 old_CXXFLAGS="$CXXFLAGS"
19372                 old_LDFLAGS="$LDFLAGS"
19373                 old_LIBS="$LIBS"
19374                 for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
19375                   if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
19376                     CPPFLAGS="$CPPFLAGS $d"
19377                   fi
19378                 done
19379                 qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
19380                 kde_dir="`$KDE4_CONFIG --prefix`"
19381                 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
19382                 qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
19383                 SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
19384                 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
19385                 LIBS="$LIBS $SVN_KWALLET_LIBS"
19386                 qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
19387                 kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
19388                 LDFLAGS="$old_LDFLAGS `
19389   input_flags="$qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix"
19390   output_flags=""
19391   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19392   for flag in $input_flags; do
19393     filter="no"
19394     for dir in $filtered_dirs; do
19395       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19396         filter="yes"
19397         break
19398       fi
19399     done
19400     if test "$filter" = "no"; then
19401       output_flags="$output_flags $flag"
19402     fi
19403   done
19404   if test -n "$output_flags"; then
19405     printf "%s" "${output_flags# }"
19406   fi
19407 `"
19408                 ac_ext=cpp
19409 ac_cpp='$CXXCPP $CPPFLAGS'
19410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19413
19414                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h.  */
19416
19417 #include <kwallet.h>
19418 int main()
19419 {KWallet::Wallet::walletList();}
19420 _ACEOF
19421 if ac_fn_cxx_try_link "$LINENO"; then :
19422   svn_lib_kwallet="yes"
19423 else
19424   svn_lib_kwallet="no"
19425 fi
19426 rm -f core conftest.err conftest.$ac_objext \
19427     conftest$ac_exeext conftest.$ac_ext
19428                 ac_ext=c
19429 ac_cpp='$CPP $CPPFLAGS'
19430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19433
19434                 if test "$svn_lib_kwallet" = "yes"; then
19435                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19436 $as_echo "yes" >&6; }
19437                   CXXFLAGS="$old_CXXFLAGS"
19438                   LIBS="$old_LIBS"
19439                 else
19440                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19441 $as_echo "no" >&6; }
19442                   as_fn_error $? "cannot find KWallet" "$LINENO" 5
19443                 fi
19444               else
19445                 as_fn_error $? "cannot find kde4-config" "$LINENO" 5
19446               fi
19447             else
19448               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19449 $as_echo "no" >&6; }
19450               as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
19451             fi
19452           else
19453             as_fn_error $? "cannot find D-Bus" "$LINENO" 5
19454           fi
19455         else
19456           as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19457         fi
19458       else
19459         as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
19460       fi
19461     else
19462       as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
19463     fi
19464   else
19465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19466 $as_echo "no" >&6; }
19467   fi
19468
19469
19470
19471
19472 if test "$svn_lib_kwallet" = "yes"; then
19473
19474 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
19475
19476 fi
19477
19478 # Check whether --enable-plaintext-password-storage was given.
19479 if test "${enable_plaintext_password_storage+set}" = set; then :
19480   enableval=$enable_plaintext_password_storage;
19481    if test "$enableval" = "no"; then
19482       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
19483 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
19484
19485 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
19486
19487    fi
19488
19489 fi
19490
19491
19492
19493 INSTALL_STATIC_RULES="install-bin install-docs"
19494 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
19495 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
19496 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
19497
19498 if test "$svn_lib_berkeley_db" = "yes"; then
19499   BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
19500   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
19501   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
19502   BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
19503   BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
19504 fi
19505
19506 if test "$svn_lib_serf" = "yes"; then
19507   BUILD_RULES="$BUILD_RULES serf-lib"
19508   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
19509   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
19510 fi
19511
19512 if test "$svn_lib_kwallet" = "yes"; then
19513   BUILD_RULES="$BUILD_RULES kwallet-lib"
19514   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
19515   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
19516 fi
19517
19518 if test "$found_gnome_keyring" = "yes"; then
19519   BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
19520   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
19521   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
19522 fi
19523
19524 if test "$USE_NLS" = "yes"; then
19525   BUILD_RULES="$BUILD_RULES locale"
19526   INSTALL_RULES="$INSTALL_RULES install-locale"
19527 fi
19528
19529
19530
19531
19532
19533
19534
19535
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19537 $as_echo_n "checking for ANSI C header files... " >&6; }
19538 if ${ac_cv_header_stdc+:} false; then :
19539   $as_echo_n "(cached) " >&6
19540 else
19541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h.  */
19543 #include <stdlib.h>
19544 #include <stdarg.h>
19545 #include <string.h>
19546 #include <float.h>
19547
19548 int
19549 main ()
19550 {
19551
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 if ac_fn_c_try_compile "$LINENO"; then :
19557   ac_cv_header_stdc=yes
19558 else
19559   ac_cv_header_stdc=no
19560 fi
19561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562
19563 if test $ac_cv_header_stdc = yes; then
19564   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h.  */
19567 #include <string.h>
19568
19569 _ACEOF
19570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19571   $EGREP "memchr" >/dev/null 2>&1; then :
19572
19573 else
19574   ac_cv_header_stdc=no
19575 fi
19576 rm -f conftest*
19577
19578 fi
19579
19580 if test $ac_cv_header_stdc = yes; then
19581   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h.  */
19584 #include <stdlib.h>
19585
19586 _ACEOF
19587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19588   $EGREP "free" >/dev/null 2>&1; then :
19589
19590 else
19591   ac_cv_header_stdc=no
19592 fi
19593 rm -f conftest*
19594
19595 fi
19596
19597 if test $ac_cv_header_stdc = yes; then
19598   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19599   if test "$cross_compiling" = yes; then :
19600   :
19601 else
19602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603 /* end confdefs.h.  */
19604 #include <ctype.h>
19605 #include <stdlib.h>
19606 #if ((' ' & 0x0FF) == 0x020)
19607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19609 #else
19610 # define ISLOWER(c) \
19611                    (('a' <= (c) && (c) <= 'i') \
19612                      || ('j' <= (c) && (c) <= 'r') \
19613                      || ('s' <= (c) && (c) <= 'z'))
19614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19615 #endif
19616
19617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19618 int
19619 main ()
19620 {
19621   int i;
19622   for (i = 0; i < 256; i++)
19623     if (XOR (islower (i), ISLOWER (i))
19624         || toupper (i) != TOUPPER (i))
19625       return 2;
19626   return 0;
19627 }
19628 _ACEOF
19629 if ac_fn_c_try_run "$LINENO"; then :
19630
19631 else
19632   ac_cv_header_stdc=no
19633 fi
19634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19635   conftest.$ac_objext conftest.beam conftest.$ac_ext
19636 fi
19637
19638 fi
19639 fi
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19641 $as_echo "$ac_cv_header_stdc" >&6; }
19642 if test $ac_cv_header_stdc = yes; then
19643
19644 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19645
19646 fi
19647
19648
19649
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19651 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19652 if ${ac_cv_c_const+:} false; then :
19653   $as_echo_n "(cached) " >&6
19654 else
19655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656 /* end confdefs.h.  */
19657
19658 int
19659 main ()
19660 {
19661
19662 #ifndef __cplusplus
19663   /* Ultrix mips cc rejects this sort of thing.  */
19664   typedef int charset[2];
19665   const charset cs = { 0, 0 };
19666   /* SunOS 4.1.1 cc rejects this.  */
19667   char const *const *pcpcc;
19668   char **ppc;
19669   /* NEC SVR4.0.2 mips cc rejects this.  */
19670   struct point {int x, y;};
19671   static struct point const zero = {0,0};
19672   /* AIX XL C 1.02.0.0 rejects this.
19673      It does not let you subtract one const X* pointer from another in
19674      an arm of an if-expression whose if-part is not a constant
19675      expression */
19676   const char *g = "string";
19677   pcpcc = &g + (g ? g-g : 0);
19678   /* HPUX 7.0 cc rejects these. */
19679   ++pcpcc;
19680   ppc = (char**) pcpcc;
19681   pcpcc = (char const *const *) ppc;
19682   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19683     char tx;
19684     char *t = &tx;
19685     char const *s = 0 ? (char *) 0 : (char const *) 0;
19686
19687     *t++ = 0;
19688     if (s) return 0;
19689   }
19690   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19691     int x[] = {25, 17};
19692     const int *foo = &x[0];
19693     ++foo;
19694   }
19695   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19696     typedef const int *iptr;
19697     iptr p = 0;
19698     ++p;
19699   }
19700   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19701        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19702     struct s { int j; const int *ap[3]; } bx;
19703     struct s *b = &bx; b->j = 5;
19704   }
19705   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19706     const int foo = 10;
19707     if (!foo) return 0;
19708   }
19709   return !cs[0] && !zero.x;
19710 #endif
19711
19712   ;
19713   return 0;
19714 }
19715 _ACEOF
19716 if ac_fn_c_try_compile "$LINENO"; then :
19717   ac_cv_c_const=yes
19718 else
19719   ac_cv_c_const=no
19720 fi
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722 fi
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19724 $as_echo "$ac_cv_c_const" >&6; }
19725 if test $ac_cv_c_const = no; then
19726
19727 $as_echo "#define const /**/" >>confdefs.h
19728
19729 fi
19730
19731
19732 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19733 if test "x$ac_cv_type_size_t" = xyes; then :
19734
19735 else
19736
19737 cat >>confdefs.h <<_ACEOF
19738 #define size_t unsigned int
19739 _ACEOF
19740
19741 fi
19742
19743
19744
19745
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19747 $as_echo_n "checking for working memcmp... " >&6; }
19748 if ${ac_cv_func_memcmp_working+:} false; then :
19749   $as_echo_n "(cached) " >&6
19750 else
19751   if test "$cross_compiling" = yes; then :
19752   ac_cv_func_memcmp_working=no
19753 else
19754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h.  */
19756 $ac_includes_default
19757 int
19758 main ()
19759 {
19760
19761   /* Some versions of memcmp are not 8-bit clean.  */
19762   char c0 = '\100', c1 = '\200', c2 = '\201';
19763   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19764     return 1;
19765
19766   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19767      or more and with at least one buffer not starting on a 4-byte boundary.
19768      William Lewis provided this test program.   */
19769   {
19770     char foo[21];
19771     char bar[21];
19772     int i;
19773     for (i = 0; i < 4; i++)
19774       {
19775         char *a = foo + i;
19776         char *b = bar + i;
19777         strcpy (a, "--------01111111");
19778         strcpy (b, "--------10000000");
19779         if (memcmp (a, b, 16) >= 0)
19780           return 1;
19781       }
19782     return 0;
19783   }
19784
19785   ;
19786   return 0;
19787 }
19788 _ACEOF
19789 if ac_fn_c_try_run "$LINENO"; then :
19790   ac_cv_func_memcmp_working=yes
19791 else
19792   ac_cv_func_memcmp_working=no
19793 fi
19794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19795   conftest.$ac_objext conftest.beam conftest.$ac_ext
19796 fi
19797
19798 fi
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19800 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19801 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19802   *" memcmp.$ac_objext "* ) ;;
19803   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19804  ;;
19805 esac
19806
19807
19808
19809 for ac_func in vprintf
19810 do :
19811   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19812 if test "x$ac_cv_func_vprintf" = xyes; then :
19813   cat >>confdefs.h <<_ACEOF
19814 #define HAVE_VPRINTF 1
19815 _ACEOF
19816
19817 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19818 if test "x$ac_cv_func__doprnt" = xyes; then :
19819
19820 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19821
19822 fi
19823
19824 fi
19825 done
19826
19827
19828
19829 for ac_func in symlink readlink
19830 do :
19831   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19833 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19834   cat >>confdefs.h <<_ACEOF
19835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19836 _ACEOF
19837
19838 fi
19839 done
19840
19841
19842 for ac_header in sys/utsname.h
19843 do :
19844   ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19845 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
19846   cat >>confdefs.h <<_ACEOF
19847 #define HAVE_SYS_UTSNAME_H 1
19848 _ACEOF
19849  for ac_func in uname
19850 do :
19851   ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
19852 if test "x$ac_cv_func_uname" = xyes; then :
19853   cat >>confdefs.h <<_ACEOF
19854 #define HAVE_UNAME 1
19855 _ACEOF
19856
19857 fi
19858 done
19859
19860 fi
19861
19862 done
19863
19864
19865 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19866 if test "x$ac_cv_header_termios_h" = xyes; then :
19867
19868   for ac_func in tcgetattr tcsetattr
19869 do :
19870   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19873   cat >>confdefs.h <<_ACEOF
19874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19875 _ACEOF
19876
19877
19878 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
19879
19880
19881 fi
19882 done
19883
19884
19885 fi
19886
19887
19888
19889
19890
19891 # Check whether --with-openssl was given.
19892 if test "${with_openssl+set}" = set; then :
19893   withval=$with_openssl;
19894 fi
19895
19896
19897 # Check whether --enable-debug was given.
19898 if test "${enable_debug+set}" = set; then :
19899   enableval=$enable_debug;
19900     if test "$enableval" = "yes" ; then
19901       enable_debugging="yes"
19902     else
19903       enable_debugging="no"
19904     fi
19905
19906 else
19907
19908     # Neither --enable-debug nor --disable-debug was passed.
19909     enable_debugging="maybe"
19910
19911 fi
19912
19913
19914 # Check whether --enable-optimize was given.
19915 if test "${enable_optimize+set}" = set; then :
19916   enableval=$enable_optimize;
19917     if test "$enableval" = "yes" ; then
19918       enable_optimization="yes"
19919     else
19920       enable_optimization="no"
19921     fi
19922
19923 else
19924
19925     # Neither --enable-optimize nor --disable-optimize was passed.
19926     enable_optimization="maybe"
19927
19928 fi
19929
19930
19931 # Check whether --enable-disallowing-of-undefined-references was given.
19932 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
19933   enableval=$enable_disallowing_of_undefined_references;
19934 fi
19935
19936 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
19937   enable_disallowing_of_undefined_references="no"
19938 fi
19939 if test "$enable_disallowing_of_undefined_references" != "no"; then
19940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
19941 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
19942   old_LDFLAGS="$LDFLAGS"
19943   LDFLAGS="$LDFLAGS -Wl,--no-undefined"
19944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h.  */
19946 int main(){;}
19947 _ACEOF
19948 if ac_fn_c_try_link "$LINENO"; then :
19949   svn_wl_no_undefined="yes"
19950 else
19951   svn_wl_no_undefined="no"
19952 fi
19953 rm -f core conftest.err conftest.$ac_objext \
19954     conftest$ac_exeext conftest.$ac_ext
19955   LDFLAGS="$old_LDFLAGS"
19956   if test "$svn_wl_no_undefined" = "yes"; then
19957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19958 $as_echo "yes" >&6; }
19959     for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
19960       eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
19961     done
19962   else
19963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964 $as_echo "no" >&6; }
19965     if test "$enable_disallowing_of_undefined_references" = "yes"; then
19966       as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
19967     fi
19968   fi
19969 fi
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988 # Check whether --enable-maintainer-mode was given.
19989 if test "${enable_maintainer_mode+set}" = set; then :
19990   enableval=$enable_maintainer_mode;
19991     if test "$enableval" = "yes" ; then
19992       if test "$enable_debugging" = "no" ; then
19993         as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
19994       fi
19995       enable_debugging=yes
19996
19997                   if test "$GCC" = "yes"; then
19998         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
19999 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20000
20001
20002                 CFLAGS_KEEP="$CFLAGS"
20003         CFLAGS=""
20004
20005
20006   _svn_xxflags__save="$CFLAGS"
20007   ac_ext=c
20008 ac_cpp='$CPP $CPPFLAGS'
20009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20012
20013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20014 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20015   CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h.  */
20018
20019 _ACEOF
20020 if ac_fn_c_try_compile "$LINENO"; then :
20021
20022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20023 $as_echo "yes" >&6; }
20024
20025
20026 else
20027
20028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029 $as_echo "no" >&6; }
20030     CFLAGS="$_svn_xxflags__save"
20031
20032
20033 fi
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035   ac_ext=c
20036 ac_cpp='$CPP $CPPFLAGS'
20037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20040
20041
20042
20043   _svn_xxflags__save="$CFLAGS"
20044   ac_ext=c
20045 ac_cpp='$CPP $CPPFLAGS'
20046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20049
20050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20051 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20052   CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054 /* end confdefs.h.  */
20055
20056 _ACEOF
20057 if ac_fn_c_try_compile "$LINENO"; then :
20058
20059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20060 $as_echo "yes" >&6; }
20061
20062
20063 else
20064
20065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20066 $as_echo "no" >&6; }
20067     CFLAGS="$_svn_xxflags__save"
20068
20069
20070 fi
20071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072   ac_ext=c
20073 ac_cpp='$CPP $CPPFLAGS'
20074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20077
20078
20079
20080   _svn_xxflags__save="$CFLAGS"
20081   ac_ext=c
20082 ac_cpp='$CPP $CPPFLAGS'
20083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086
20087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
20088 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
20089   CFLAGS="-Wextra-tokens $CFLAGS"
20090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h.  */
20092
20093 _ACEOF
20094 if ac_fn_c_try_compile "$LINENO"; then :
20095
20096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20097 $as_echo "yes" >&6; }
20098
20099
20100 else
20101
20102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20103 $as_echo "no" >&6; }
20104     CFLAGS="$_svn_xxflags__save"
20105
20106
20107 fi
20108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109   ac_ext=c
20110 ac_cpp='$CPP $CPPFLAGS'
20111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20114
20115
20116
20117   _svn_xxflags__save="$CFLAGS"
20118   ac_ext=c
20119 ac_cpp='$CPP $CPPFLAGS'
20120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20123
20124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
20125 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
20126   CFLAGS="-Wnewline-eof $CFLAGS"
20127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h.  */
20129
20130 _ACEOF
20131 if ac_fn_c_try_compile "$LINENO"; then :
20132
20133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20134 $as_echo "yes" >&6; }
20135
20136
20137 else
20138
20139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20140 $as_echo "no" >&6; }
20141     CFLAGS="$_svn_xxflags__save"
20142
20143
20144 fi
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146   ac_ext=c
20147 ac_cpp='$CPP $CPPFLAGS'
20148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20151
20152
20153
20154   _svn_xxflags__save="$CFLAGS"
20155   ac_ext=c
20156 ac_cpp='$CPP $CPPFLAGS'
20157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20160
20161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
20162 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
20163   CFLAGS="-Wshorten-64-to-32 $CFLAGS"
20164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h.  */
20166
20167 _ACEOF
20168 if ac_fn_c_try_compile "$LINENO"; then :
20169
20170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20171 $as_echo "yes" >&6; }
20172
20173
20174 else
20175
20176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177 $as_echo "no" >&6; }
20178     CFLAGS="$_svn_xxflags__save"
20179
20180
20181 fi
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183   ac_ext=c
20184 ac_cpp='$CPP $CPPFLAGS'
20185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20188
20189
20190
20191   _svn_xxflags__save="$CFLAGS"
20192   ac_ext=c
20193 ac_cpp='$CPP $CPPFLAGS'
20194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20197
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
20199 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
20200   CFLAGS="-Wold-style-definition $CFLAGS"
20201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h.  */
20203
20204 _ACEOF
20205 if ac_fn_c_try_compile "$LINENO"; then :
20206
20207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20208 $as_echo "yes" >&6; }
20209
20210
20211 else
20212
20213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20214 $as_echo "no" >&6; }
20215     CFLAGS="$_svn_xxflags__save"
20216
20217
20218 fi
20219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220   ac_ext=c
20221 ac_cpp='$CPP $CPPFLAGS'
20222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20225
20226
20227
20228   _svn_xxflags__save="$CFLAGS"
20229   ac_ext=c
20230 ac_cpp='$CPP $CPPFLAGS'
20231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20234
20235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
20236 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
20237   CFLAGS="-Wno-system-headers $CFLAGS"
20238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h.  */
20240
20241 _ACEOF
20242 if ac_fn_c_try_compile "$LINENO"; then :
20243
20244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20245 $as_echo "yes" >&6; }
20246
20247
20248 else
20249
20250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20251 $as_echo "no" >&6; }
20252     CFLAGS="$_svn_xxflags__save"
20253
20254
20255 fi
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257   ac_ext=c
20258 ac_cpp='$CPP $CPPFLAGS'
20259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20262
20263
20264
20265   _svn_xxflags__save="$CFLAGS"
20266   ac_ext=c
20267 ac_cpp='$CPP $CPPFLAGS'
20268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20271
20272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
20273 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
20274   CFLAGS="-Wno-format-nonliteral $CFLAGS"
20275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h.  */
20277
20278 _ACEOF
20279 if ac_fn_c_try_compile "$LINENO"; then :
20280
20281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20282 $as_echo "yes" >&6; }
20283
20284
20285 else
20286
20287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20288 $as_echo "no" >&6; }
20289     CFLAGS="$_svn_xxflags__save"
20290
20291
20292 fi
20293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294   ac_ext=c
20295 ac_cpp='$CPP $CPPFLAGS'
20296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20299
20300
20301
20302         CMAINTAINERFLAGS="$CFLAGS $CMAINTAINERFLAGS"
20303         CFLAGS="$CFLAGS_KEEP"
20304
20305                 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 $CMAINTAINERFLAGS"
20306       fi
20307       if test "$GXX" = "yes"; then
20308         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
20309 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
20310
20311                 CXXFLAGS_KEEP="$CXXFLAGS"
20312         CXXFLAGS=""
20313
20314
20315   _svn_xxflags__save="$CXXFLAGS"
20316   ac_ext=cpp
20317 ac_cpp='$CXXCPP $CPPFLAGS'
20318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20321
20322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
20323 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
20324   CXXFLAGS="-Wextra-tokens $CXXFLAGS"
20325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20326 /* end confdefs.h.  */
20327
20328 _ACEOF
20329 if ac_fn_cxx_try_compile "$LINENO"; then :
20330
20331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20332 $as_echo "yes" >&6; }
20333
20334
20335 else
20336
20337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20338 $as_echo "no" >&6; }
20339     CXXFLAGS="$_svn_xxflags__save"
20340
20341
20342 fi
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344   ac_ext=c
20345 ac_cpp='$CPP $CPPFLAGS'
20346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20349
20350
20351
20352   _svn_xxflags__save="$CXXFLAGS"
20353   ac_ext=cpp
20354 ac_cpp='$CXXCPP $CPPFLAGS'
20355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20358
20359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
20360 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
20361   CXXFLAGS="-Wnewline-eof $CXXFLAGS"
20362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h.  */
20364
20365 _ACEOF
20366 if ac_fn_cxx_try_compile "$LINENO"; then :
20367
20368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369 $as_echo "yes" >&6; }
20370
20371
20372 else
20373
20374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375 $as_echo "no" >&6; }
20376     CXXFLAGS="$_svn_xxflags__save"
20377
20378
20379 fi
20380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20381   ac_ext=c
20382 ac_cpp='$CPP $CPPFLAGS'
20383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20386
20387
20388
20389   _svn_xxflags__save="$CXXFLAGS"
20390   ac_ext=cpp
20391 ac_cpp='$CXXCPP $CPPFLAGS'
20392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20395
20396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
20397 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
20398   CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
20399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h.  */
20401
20402 _ACEOF
20403 if ac_fn_cxx_try_compile "$LINENO"; then :
20404
20405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20406 $as_echo "yes" >&6; }
20407
20408
20409 else
20410
20411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20412 $as_echo "no" >&6; }
20413     CXXFLAGS="$_svn_xxflags__save"
20414
20415
20416 fi
20417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418   ac_ext=c
20419 ac_cpp='$CPP $CPPFLAGS'
20420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20423
20424
20425
20426   _svn_xxflags__save="$CXXFLAGS"
20427   ac_ext=cpp
20428 ac_cpp='$CXXCPP $CPPFLAGS'
20429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20432
20433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
20434 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
20435   CXXFLAGS="-Wno-system-headers $CXXFLAGS"
20436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h.  */
20438
20439 _ACEOF
20440 if ac_fn_cxx_try_compile "$LINENO"; then :
20441
20442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20443 $as_echo "yes" >&6; }
20444
20445
20446 else
20447
20448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20449 $as_echo "no" >&6; }
20450     CXXFLAGS="$_svn_xxflags__save"
20451
20452
20453 fi
20454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455   ac_ext=c
20456 ac_cpp='$CPP $CPPFLAGS'
20457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20460
20461
20462
20463         CXXMAINTAINERFLAGS="$CXXFLAGS $CXXMAINTAINERFLAGS"
20464         CXXFLAGS="$CXXFLAGS_KEEP"
20465
20466                 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
20467       fi
20468     fi
20469
20470 fi
20471
20472
20473 if test "$enable_debugging" = "yes" ; then
20474       if test "$enable_optimization" != "yes"; then
20475     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
20476 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
20477     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20478     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20479   fi
20480     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20481     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
20482 $as_echo "$as_me: Enabling debugging for C" >&6;}
20483     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20484
20485   _svn_xxflags__save="$CFLAGS"
20486   ac_ext=c
20487 ac_cpp='$CPP $CPPFLAGS'
20488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491
20492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
20493 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
20494   CFLAGS="-fno-inline $CFLAGS"
20495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h.  */
20497
20498 _ACEOF
20499 if ac_fn_c_try_compile "$LINENO"; then :
20500
20501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20502 $as_echo "yes" >&6; }
20503
20504
20505 else
20506
20507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20508 $as_echo "no" >&6; }
20509     CFLAGS="$_svn_xxflags__save"
20510
20511
20512 fi
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514   ac_ext=c
20515 ac_cpp='$CPP $CPPFLAGS'
20516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20519
20520
20521
20522   _svn_xxflags__save="$CFLAGS"
20523   ac_ext=c
20524 ac_cpp='$CPP $CPPFLAGS'
20525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20528
20529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
20530 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
20531   CFLAGS="-fno-omit-frame-pointer $CFLAGS"
20532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h.  */
20534
20535 _ACEOF
20536 if ac_fn_c_try_compile "$LINENO"; then :
20537
20538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20539 $as_echo "yes" >&6; }
20540
20541
20542 else
20543
20544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20545 $as_echo "no" >&6; }
20546     CFLAGS="$_svn_xxflags__save"
20547
20548
20549 fi
20550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551   ac_ext=c
20552 ac_cpp='$CPP $CPPFLAGS'
20553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556
20557
20558
20559   _svn_xxflags__save="$CFLAGS"
20560   ac_ext=c
20561 ac_cpp='$CPP $CPPFLAGS'
20562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565
20566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
20567 $as_echo_n "checking if $CC accepts -g3... " >&6; }
20568   CFLAGS="-g3 $CFLAGS"
20569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570 /* end confdefs.h.  */
20571
20572 _ACEOF
20573 if ac_fn_c_try_compile "$LINENO"; then :
20574
20575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20576 $as_echo "yes" >&6; }
20577
20578
20579 else
20580
20581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20582 $as_echo "no" >&6; }
20583     CFLAGS="$_svn_xxflags__save"
20584
20585
20586   _svn_xxflags__save="$CFLAGS"
20587   ac_ext=c
20588 ac_cpp='$CPP $CPPFLAGS'
20589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20592
20593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
20594 $as_echo_n "checking if $CC accepts -g2... " >&6; }
20595   CFLAGS="-g2 $CFLAGS"
20596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h.  */
20598
20599 _ACEOF
20600 if ac_fn_c_try_compile "$LINENO"; then :
20601
20602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20603 $as_echo "yes" >&6; }
20604
20605
20606 else
20607
20608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20609 $as_echo "no" >&6; }
20610     CFLAGS="$_svn_xxflags__save"
20611
20612
20613   _svn_xxflags__save="$CFLAGS"
20614   ac_ext=c
20615 ac_cpp='$CPP $CPPFLAGS'
20616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20619
20620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
20621 $as_echo_n "checking if $CC accepts -g... " >&6; }
20622   CFLAGS="-g $CFLAGS"
20623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624 /* end confdefs.h.  */
20625
20626 _ACEOF
20627 if ac_fn_c_try_compile "$LINENO"; then :
20628
20629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20630 $as_echo "yes" >&6; }
20631
20632
20633 else
20634
20635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636 $as_echo "no" >&6; }
20637     CFLAGS="$_svn_xxflags__save"
20638
20639
20640 fi
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642   ac_ext=c
20643 ac_cpp='$CPP $CPPFLAGS'
20644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20647
20648
20649
20650 fi
20651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20652   ac_ext=c
20653 ac_cpp='$CPP $CPPFLAGS'
20654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20657
20658
20659
20660 fi
20661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662   ac_ext=c
20663 ac_cpp='$CPP $CPPFLAGS'
20664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667
20668
20669   fi
20670   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20671     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
20672 $as_echo "$as_me: Enabling debugging for C++" >&6;}
20673     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20674
20675   _svn_xxflags__save="$CXXFLAGS"
20676   ac_ext=cpp
20677 ac_cpp='$CXXCPP $CPPFLAGS'
20678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681
20682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
20683 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
20684   CXXFLAGS="-fno-inline $CXXFLAGS"
20685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20686 /* end confdefs.h.  */
20687
20688 _ACEOF
20689 if ac_fn_cxx_try_compile "$LINENO"; then :
20690
20691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20692 $as_echo "yes" >&6; }
20693
20694
20695 else
20696
20697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20698 $as_echo "no" >&6; }
20699     CXXFLAGS="$_svn_xxflags__save"
20700
20701
20702 fi
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704   ac_ext=c
20705 ac_cpp='$CPP $CPPFLAGS'
20706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709
20710
20711
20712   _svn_xxflags__save="$CXXFLAGS"
20713   ac_ext=cpp
20714 ac_cpp='$CXXCPP $CPPFLAGS'
20715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20718
20719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
20720 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
20721   CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
20722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h.  */
20724
20725 _ACEOF
20726 if ac_fn_cxx_try_compile "$LINENO"; then :
20727
20728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20729 $as_echo "yes" >&6; }
20730
20731
20732 else
20733
20734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735 $as_echo "no" >&6; }
20736     CXXFLAGS="$_svn_xxflags__save"
20737
20738
20739 fi
20740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741   ac_ext=c
20742 ac_cpp='$CPP $CPPFLAGS'
20743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20746
20747
20748
20749   _svn_xxflags__save="$CXXFLAGS"
20750   ac_ext=cpp
20751 ac_cpp='$CXXCPP $CPPFLAGS'
20752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20755
20756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
20757 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
20758   CXXFLAGS="-g3 $CXXFLAGS"
20759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h.  */
20761
20762 _ACEOF
20763 if ac_fn_cxx_try_compile "$LINENO"; then :
20764
20765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20766 $as_echo "yes" >&6; }
20767
20768
20769 else
20770
20771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20773     CXXFLAGS="$_svn_xxflags__save"
20774
20775
20776   _svn_xxflags__save="$CXXFLAGS"
20777   ac_ext=cpp
20778 ac_cpp='$CXXCPP $CPPFLAGS'
20779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20782
20783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
20784 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
20785   CXXFLAGS="-g2 $CXXFLAGS"
20786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h.  */
20788
20789 _ACEOF
20790 if ac_fn_cxx_try_compile "$LINENO"; then :
20791
20792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20793 $as_echo "yes" >&6; }
20794
20795
20796 else
20797
20798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799 $as_echo "no" >&6; }
20800     CXXFLAGS="$_svn_xxflags__save"
20801
20802
20803   _svn_xxflags__save="$CXXFLAGS"
20804   ac_ext=cpp
20805 ac_cpp='$CXXCPP $CPPFLAGS'
20806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20809
20810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
20811 $as_echo_n "checking if $CXX accepts -g... " >&6; }
20812   CXXFLAGS="-g $CXXFLAGS"
20813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814 /* end confdefs.h.  */
20815
20816 _ACEOF
20817 if ac_fn_cxx_try_compile "$LINENO"; then :
20818
20819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20820 $as_echo "yes" >&6; }
20821
20822
20823 else
20824
20825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20826 $as_echo "no" >&6; }
20827     CXXFLAGS="$_svn_xxflags__save"
20828
20829
20830 fi
20831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20832   ac_ext=cpp
20833 ac_cpp='$CXXCPP $CPPFLAGS'
20834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20837
20838
20839
20840 fi
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842   ac_ext=cpp
20843 ac_cpp='$CXXCPP $CPPFLAGS'
20844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20847
20848
20849
20850 fi
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852   ac_ext=c
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20857
20858
20859   fi
20860       CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
20861   CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
20862 elif test "$enable_debugging" = "no" ; then
20863   { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
20864 $as_echo "$as_me: Disabling debugging" >&6;}
20865   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20866   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20867     CFLAGS="$CFLAGS -DNDEBUG"
20868   CXXFLAGS="$CXXFLAGS -DNDEBUG"
20869 # elif test "$enable_debugging" = "maybe" ; then
20870 #   # do nothing
20871 fi
20872
20873 if test "$enable_optimization" = "yes"; then
20874     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
20875     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20876     if test "$enable_debugging" = "yes"; then
20877       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
20878 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
20879
20880   _svn_xxflags__save="$CFLAGS"
20881   ac_ext=c
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
20887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
20888 $as_echo_n "checking if $CC accepts -O1... " >&6; }
20889   CFLAGS="-O1 $CFLAGS"
20890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h.  */
20892
20893 _ACEOF
20894 if ac_fn_c_try_compile "$LINENO"; then :
20895
20896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20897 $as_echo "yes" >&6; }
20898
20899
20900 else
20901
20902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20903 $as_echo "no" >&6; }
20904     CFLAGS="$_svn_xxflags__save"
20905
20906
20907   _svn_xxflags__save="$CFLAGS"
20908   ac_ext=c
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913
20914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
20915 $as_echo_n "checking if $CC accepts -O... " >&6; }
20916   CFLAGS="-O $CFLAGS"
20917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20918 /* end confdefs.h.  */
20919
20920 _ACEOF
20921 if ac_fn_c_try_compile "$LINENO"; then :
20922
20923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20924 $as_echo "yes" >&6; }
20925
20926
20927 else
20928
20929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20930 $as_echo "no" >&6; }
20931     CFLAGS="$_svn_xxflags__save"
20932
20933
20934 fi
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936   ac_ext=c
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20941
20942
20943
20944 fi
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946   ac_ext=c
20947 ac_cpp='$CPP $CPPFLAGS'
20948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20951
20952
20953     else
20954       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
20955 $as_echo "$as_me: Enabling optimizations for C" >&6;}
20956
20957   _svn_xxflags__save="$CFLAGS"
20958   ac_ext=c
20959 ac_cpp='$CPP $CPPFLAGS'
20960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20963
20964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
20965 $as_echo_n "checking if $CC accepts -O3... " >&6; }
20966   CFLAGS="-O3 $CFLAGS"
20967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20968 /* end confdefs.h.  */
20969
20970 _ACEOF
20971 if ac_fn_c_try_compile "$LINENO"; then :
20972
20973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20974 $as_echo "yes" >&6; }
20975
20976
20977 else
20978
20979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20980 $as_echo "no" >&6; }
20981     CFLAGS="$_svn_xxflags__save"
20982
20983
20984   _svn_xxflags__save="$CFLAGS"
20985   ac_ext=c
20986 ac_cpp='$CPP $CPPFLAGS'
20987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990
20991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
20992 $as_echo_n "checking if $CC accepts -O2... " >&6; }
20993   CFLAGS="-O2 $CFLAGS"
20994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h.  */
20996
20997 _ACEOF
20998 if ac_fn_c_try_compile "$LINENO"; then :
20999
21000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21001 $as_echo "yes" >&6; }
21002
21003
21004 else
21005
21006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21007 $as_echo "no" >&6; }
21008     CFLAGS="$_svn_xxflags__save"
21009
21010
21011   _svn_xxflags__save="$CFLAGS"
21012   ac_ext=c
21013 ac_cpp='$CPP $CPPFLAGS'
21014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017
21018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21019 $as_echo_n "checking if $CC accepts -O1... " >&6; }
21020   CFLAGS="-O1 $CFLAGS"
21021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21022 /* end confdefs.h.  */
21023
21024 _ACEOF
21025 if ac_fn_c_try_compile "$LINENO"; then :
21026
21027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21028 $as_echo "yes" >&6; }
21029
21030
21031 else
21032
21033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21034 $as_echo "no" >&6; }
21035     CFLAGS="$_svn_xxflags__save"
21036
21037
21038   _svn_xxflags__save="$CFLAGS"
21039   ac_ext=c
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21044
21045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21046 $as_echo_n "checking if $CC accepts -O... " >&6; }
21047   CFLAGS="-O $CFLAGS"
21048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h.  */
21050
21051 _ACEOF
21052 if ac_fn_c_try_compile "$LINENO"; then :
21053
21054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21055 $as_echo "yes" >&6; }
21056
21057
21058 else
21059
21060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061 $as_echo "no" >&6; }
21062     CFLAGS="$_svn_xxflags__save"
21063
21064
21065 fi
21066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21067   ac_ext=c
21068 ac_cpp='$CPP $CPPFLAGS'
21069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21072
21073
21074
21075 fi
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077   ac_ext=c
21078 ac_cpp='$CPP $CPPFLAGS'
21079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21082
21083
21084
21085 fi
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087   ac_ext=c
21088 ac_cpp='$CPP $CPPFLAGS'
21089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21092
21093
21094
21095 fi
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097   ac_ext=c
21098 ac_cpp='$CPP $CPPFLAGS'
21099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21102
21103
21104
21105   _svn_xxflags__save="$CFLAGS"
21106   ac_ext=c
21107 ac_cpp='$CPP $CPPFLAGS'
21108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
21113 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
21114   CFLAGS="-Wno-clobbered $CFLAGS"
21115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21116 /* end confdefs.h.  */
21117
21118 _ACEOF
21119 if ac_fn_c_try_compile "$LINENO"; then :
21120
21121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21122 $as_echo "yes" >&6; }
21123
21124
21125 else
21126
21127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21128 $as_echo "no" >&6; }
21129     CFLAGS="$_svn_xxflags__save"
21130
21131
21132 fi
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134   ac_ext=c
21135 ac_cpp='$CPP $CPPFLAGS'
21136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21139
21140
21141
21142   _svn_xxflags__save="$CFLAGS"
21143   ac_ext=c
21144 ac_cpp='$CPP $CPPFLAGS'
21145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21148
21149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
21150 $as_echo_n "checking if $CC accepts -flto... " >&6; }
21151   CFLAGS="-flto $CFLAGS"
21152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h.  */
21154
21155 _ACEOF
21156 if ac_fn_c_try_compile "$LINENO"; then :
21157
21158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21159 $as_echo "yes" >&6; }
21160
21161
21162 else
21163
21164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165 $as_echo "no" >&6; }
21166     CFLAGS="$_svn_xxflags__save"
21167
21168
21169 fi
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171   ac_ext=c
21172 ac_cpp='$CPP $CPPFLAGS'
21173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21176
21177
21178     fi
21179   fi
21180   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21181     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21182     if test "$enable_debugging" = "yes"; then
21183       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
21184 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
21185
21186   _svn_xxflags__save="$CXXFLAGS"
21187   ac_ext=cpp
21188 ac_cpp='$CXXCPP $CPPFLAGS'
21189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21192
21193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21194 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21195   CXXFLAGS="-O1 $CXXFLAGS"
21196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21197 /* end confdefs.h.  */
21198
21199 _ACEOF
21200 if ac_fn_cxx_try_compile "$LINENO"; then :
21201
21202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21203 $as_echo "yes" >&6; }
21204
21205
21206 else
21207
21208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21209 $as_echo "no" >&6; }
21210     CXXFLAGS="$_svn_xxflags__save"
21211
21212
21213   _svn_xxflags__save="$CXXFLAGS"
21214   ac_ext=cpp
21215 ac_cpp='$CXXCPP $CPPFLAGS'
21216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21219
21220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21221 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21222   CXXFLAGS="-O $CXXFLAGS"
21223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224 /* end confdefs.h.  */
21225
21226 _ACEOF
21227 if ac_fn_cxx_try_compile "$LINENO"; then :
21228
21229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21230 $as_echo "yes" >&6; }
21231
21232
21233 else
21234
21235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21236 $as_echo "no" >&6; }
21237     CXXFLAGS="$_svn_xxflags__save"
21238
21239
21240 fi
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242   ac_ext=cpp
21243 ac_cpp='$CXXCPP $CPPFLAGS'
21244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21247
21248
21249
21250 fi
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252   ac_ext=c
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258
21259     else
21260       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
21261 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
21262
21263   _svn_xxflags__save="$CXXFLAGS"
21264   ac_ext=cpp
21265 ac_cpp='$CXXCPP $CPPFLAGS'
21266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21269
21270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
21271 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
21272   CXXFLAGS="-O3 $CXXFLAGS"
21273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h.  */
21275
21276 _ACEOF
21277 if ac_fn_cxx_try_compile "$LINENO"; then :
21278
21279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21280 $as_echo "yes" >&6; }
21281
21282
21283 else
21284
21285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286 $as_echo "no" >&6; }
21287     CXXFLAGS="$_svn_xxflags__save"
21288
21289
21290   _svn_xxflags__save="$CXXFLAGS"
21291   ac_ext=cpp
21292 ac_cpp='$CXXCPP $CPPFLAGS'
21293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21296
21297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
21298 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
21299   CXXFLAGS="-O2 $CXXFLAGS"
21300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21301 /* end confdefs.h.  */
21302
21303 _ACEOF
21304 if ac_fn_cxx_try_compile "$LINENO"; then :
21305
21306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21307 $as_echo "yes" >&6; }
21308
21309
21310 else
21311
21312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21313 $as_echo "no" >&6; }
21314     CXXFLAGS="$_svn_xxflags__save"
21315
21316
21317   _svn_xxflags__save="$CXXFLAGS"
21318   ac_ext=cpp
21319 ac_cpp='$CXXCPP $CPPFLAGS'
21320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21323
21324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21325 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21326   CXXFLAGS="-O1 $CXXFLAGS"
21327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21328 /* end confdefs.h.  */
21329
21330 _ACEOF
21331 if ac_fn_cxx_try_compile "$LINENO"; then :
21332
21333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21334 $as_echo "yes" >&6; }
21335
21336
21337 else
21338
21339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21341     CXXFLAGS="$_svn_xxflags__save"
21342
21343
21344   _svn_xxflags__save="$CXXFLAGS"
21345   ac_ext=cpp
21346 ac_cpp='$CXXCPP $CPPFLAGS'
21347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21350
21351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21352 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21353   CXXFLAGS="-O $CXXFLAGS"
21354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21355 /* end confdefs.h.  */
21356
21357 _ACEOF
21358 if ac_fn_cxx_try_compile "$LINENO"; then :
21359
21360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21361 $as_echo "yes" >&6; }
21362
21363
21364 else
21365
21366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21367 $as_echo "no" >&6; }
21368     CXXFLAGS="$_svn_xxflags__save"
21369
21370
21371 fi
21372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21373   ac_ext=cpp
21374 ac_cpp='$CXXCPP $CPPFLAGS'
21375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21378
21379
21380
21381 fi
21382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383   ac_ext=cpp
21384 ac_cpp='$CXXCPP $CPPFLAGS'
21385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21388
21389
21390
21391 fi
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393   ac_ext=cpp
21394 ac_cpp='$CXXCPP $CPPFLAGS'
21395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21398
21399
21400
21401 fi
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403   ac_ext=c
21404 ac_cpp='$CPP $CPPFLAGS'
21405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21408
21409
21410
21411   _svn_xxflags__save="$CXXFLAGS"
21412   ac_ext=cpp
21413 ac_cpp='$CXXCPP $CPPFLAGS'
21414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21417
21418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
21419 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
21420   CXXFLAGS="-Wno-clobbered $CXXFLAGS"
21421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h.  */
21423
21424 _ACEOF
21425 if ac_fn_cxx_try_compile "$LINENO"; then :
21426
21427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21428 $as_echo "yes" >&6; }
21429
21430
21431 else
21432
21433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 $as_echo "no" >&6; }
21435     CXXFLAGS="$_svn_xxflags__save"
21436
21437
21438 fi
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440   ac_ext=c
21441 ac_cpp='$CPP $CPPFLAGS'
21442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21445
21446
21447
21448   _svn_xxflags__save="$CXXFLAGS"
21449   ac_ext=cpp
21450 ac_cpp='$CXXCPP $CPPFLAGS'
21451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21454
21455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
21456 $as_echo_n "checking if $CXX accepts -flto... " >&6; }
21457   CXXFLAGS="-flto $CXXFLAGS"
21458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21459 /* end confdefs.h.  */
21460
21461 _ACEOF
21462 if ac_fn_cxx_try_compile "$LINENO"; then :
21463
21464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21465 $as_echo "yes" >&6; }
21466
21467
21468 else
21469
21470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21471 $as_echo "no" >&6; }
21472     CXXFLAGS="$_svn_xxflags__save"
21473
21474
21475 fi
21476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477   ac_ext=c
21478 ac_cpp='$CPP $CPPFLAGS'
21479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21482
21483
21484     fi
21485   fi
21486 elif test "$enable_optimization" = "no"; then
21487     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
21488 $as_echo "$as_me: Disabling optimizations" >&6;}
21489   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21490   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21491 # elif test "$enable_optimization" = "maybe" ; then
21492 #   # do nothing
21493 fi
21494
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
21496 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
21497 { $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
21498 $as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
21499 { $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
21500 $as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
21502 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
21503 { $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
21504 $as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
21505 { $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
21506 $as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
21507
21508 # Check whether --enable-full-version-match was given.
21509 if test "${enable_full_version_match+set}" = set; then :
21510   enableval=$enable_full_version_match;
21511     if test "$enableval" = "no" ; then
21512       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
21513 $as_echo "$as_me: Disabling svn full version matching" >&6;}
21514
21515 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
21516
21517     fi
21518
21519 fi
21520
21521
21522
21523 # Check whether --with-editor was given.
21524 if test "${with_editor+set}" = set; then :
21525   withval=$with_editor;
21526
21527     if test "$withval" = "yes" ; then
21528       as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
21529     else
21530       SVN_CLIENT_EDITOR=$withval
21531
21532 cat >>confdefs.h <<_ACEOF
21533 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
21534 _ACEOF
21535
21536
21537     fi
21538
21539
21540 fi
21541
21542
21543
21544   zlib_found=no
21545
21546
21547 # Check whether --with-zlib was given.
21548 if test "${with_zlib+set}" = set; then :
21549   withval=$with_zlib;
21550     if test "$withval" = "yes" ; then
21551       ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21552 if test "x$ac_cv_header_zlib_h" = xyes; then :
21553
21554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21555 $as_echo_n "checking for inflate in -lz... " >&6; }
21556 if ${ac_cv_lib_z_inflate+:} false; then :
21557   $as_echo_n "(cached) " >&6
21558 else
21559   ac_check_lib_save_LIBS=$LIBS
21560 LIBS="-lz  $LIBS"
21561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562 /* end confdefs.h.  */
21563
21564 /* Override any GCC internal prototype to avoid an error.
21565    Use char because int might match the return type of a GCC
21566    builtin and then its argument prototype would still apply.  */
21567 #ifdef __cplusplus
21568 extern "C"
21569 #endif
21570 char inflate ();
21571 int
21572 main ()
21573 {
21574 return inflate ();
21575   ;
21576   return 0;
21577 }
21578 _ACEOF
21579 if ac_fn_c_try_link "$LINENO"; then :
21580   ac_cv_lib_z_inflate=yes
21581 else
21582   ac_cv_lib_z_inflate=no
21583 fi
21584 rm -f core conftest.err conftest.$ac_objext \
21585     conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_lib_save_LIBS
21587 fi
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21589 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21590 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21591   zlib_found="builtin"
21592 fi
21593
21594
21595 fi
21596
21597
21598     elif test "$withval" = "no" ; then
21599       as_fn_error $? "cannot compile without zlib." "$LINENO" 5
21600     else
21601       { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
21602 $as_echo "$as_me: zlib library configuration" >&6;}
21603       zlib_prefix=$withval
21604       save_cppflags="$CPPFLAGS"
21605       CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
21606       for ac_header in zlib.h
21607 do :
21608   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21609 if test "x$ac_cv_header_zlib_h" = xyes; then :
21610   cat >>confdefs.h <<_ACEOF
21611 #define HAVE_ZLIB_H 1
21612 _ACEOF
21613
21614         save_ldflags="$LDFLAGS"
21615         LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
21616         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21617 $as_echo_n "checking for inflate in -lz... " >&6; }
21618 if ${ac_cv_lib_z_inflate+:} false; then :
21619   $as_echo_n "(cached) " >&6
21620 else
21621   ac_check_lib_save_LIBS=$LIBS
21622 LIBS="-lz  $LIBS"
21623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21624 /* end confdefs.h.  */
21625
21626 /* Override any GCC internal prototype to avoid an error.
21627    Use char because int might match the return type of a GCC
21628    builtin and then its argument prototype would still apply.  */
21629 #ifdef __cplusplus
21630 extern "C"
21631 #endif
21632 char inflate ();
21633 int
21634 main ()
21635 {
21636 return inflate ();
21637   ;
21638   return 0;
21639 }
21640 _ACEOF
21641 if ac_fn_c_try_link "$LINENO"; then :
21642   ac_cv_lib_z_inflate=yes
21643 else
21644   ac_cv_lib_z_inflate=no
21645 fi
21646 rm -f core conftest.err conftest.$ac_objext \
21647     conftest$ac_exeext conftest.$ac_ext
21648 LIBS=$ac_check_lib_save_LIBS
21649 fi
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21651 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21652 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21653   zlib_found="yes"
21654 fi
21655
21656         LDFLAGS="$save_ldflags"
21657
21658 fi
21659
21660 done
21661
21662       CPPFLAGS="$save_cppflags"
21663     fi
21664
21665 else
21666
21667     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21668 if test "x$ac_cv_header_zlib_h" = xyes; then :
21669
21670       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21671 $as_echo_n "checking for inflate in -lz... " >&6; }
21672 if ${ac_cv_lib_z_inflate+:} false; then :
21673   $as_echo_n "(cached) " >&6
21674 else
21675   ac_check_lib_save_LIBS=$LIBS
21676 LIBS="-lz  $LIBS"
21677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21678 /* end confdefs.h.  */
21679
21680 /* Override any GCC internal prototype to avoid an error.
21681    Use char because int might match the return type of a GCC
21682    builtin and then its argument prototype would still apply.  */
21683 #ifdef __cplusplus
21684 extern "C"
21685 #endif
21686 char inflate ();
21687 int
21688 main ()
21689 {
21690 return inflate ();
21691   ;
21692   return 0;
21693 }
21694 _ACEOF
21695 if ac_fn_c_try_link "$LINENO"; then :
21696   ac_cv_lib_z_inflate=yes
21697 else
21698   ac_cv_lib_z_inflate=no
21699 fi
21700 rm -f core conftest.err conftest.$ac_objext \
21701     conftest$ac_exeext conftest.$ac_ext
21702 LIBS=$ac_check_lib_save_LIBS
21703 fi
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21705 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21706 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21707   zlib_found="builtin"
21708 fi
21709
21710
21711 fi
21712
21713
21714
21715 fi
21716
21717
21718   if test "$zlib_found" = "no"; then
21719     as_fn_error $? "subversion requires zlib" "$LINENO" 5
21720   fi
21721
21722   if test "$zlib_found" = "yes"; then
21723     SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
21724     LDFLAGS="$LDFLAGS `
21725   input_flags="-L$zlib_prefix/lib"
21726   output_flags=""
21727   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
21728   for flag in $input_flags; do
21729     filter="no"
21730     for dir in $filtered_dirs; do
21731       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
21732         filter="yes"
21733         break
21734       fi
21735     done
21736     if test "$filter" = "no"; then
21737       output_flags="$output_flags $flag"
21738     fi
21739   done
21740   if test -n "$output_flags"; then
21741     printf "%s" "${output_flags# }"
21742   fi
21743 `"
21744   fi
21745
21746   SVN_ZLIB_LIBS="-lz"
21747
21748
21749
21750
21751
21752 MOD_ACTIVATION=""
21753 # Check whether --enable-mod-activation was given.
21754 if test "${enable_mod_activation+set}" = set; then :
21755   enableval=$enable_mod_activation;
21756     if test "$enableval" = "yes" ; then
21757       MOD_ACTIVATION="-a"
21758       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
21759 $as_echo "$as_me: Enabling apache module activation" >&6;}
21760     else
21761       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
21762 $as_echo "$as_me: Disabling apache module activation" >&6;}
21763     fi
21764
21765 fi
21766
21767
21768
21769
21770
21771 # Check whether --enable-gcov was given.
21772 if test "${enable_gcov+set}" = set; then :
21773   enableval=$enable_gcov;
21774     if test "$enableval" = "yes" ; then
21775                   if test "$GCC" = "yes"; then
21776         if test "$svn_enable_shared" = "yes" ; then
21777           as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
21778                         recommend also using --enable-all-static)." "$LINENO" 5
21779         fi
21780         if test ! "$enable_all_static" = "yes" ; then
21781           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
21782 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
21783         fi
21784         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
21785 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
21786         CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
21787         CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
21788       else
21789         as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
21790       fi
21791     fi
21792
21793 fi
21794
21795
21796 # Check whether --enable-gprof was given.
21797 if test "${enable_gprof+set}" = set; then :
21798   enableval=$enable_gprof;
21799     if test "$enableval" = "yes" ; then
21800                   if test "$GCC" = "yes"; then
21801         if test "$svn_enable_shared" = "yes" ; then
21802           as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
21803                         recommend also using --enable-all-static)." "$LINENO" 5
21804         fi
21805         if test ! "$enable_all_static" = "yes" ; then
21806           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
21807 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
21808         fi
21809         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
21810 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
21811         CFLAGS="$CFLAGS -pg"
21812         CXXFLAGS="$CXXFLAGS -pg"
21813         LT_LDFLAGS="$LT_LDFLAGS -pg"
21814       else
21815         as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
21816       fi
21817     fi
21818
21819 fi
21820
21821
21822
21823 # Scripting and Bindings languages
21824
21825 # Python: Used for testsuite, and bindings
21826
21827
21828 PYTHON="`$abs_srcdir/build/find_python.sh`"
21829 if test -z "$PYTHON"; then
21830   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.5 or later is required to run the testsuite" >&5
21831 $as_echo "$as_me: WARNING: Python 2.5 or later is required to run the testsuite" >&2;}
21832   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
21833 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
21834   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
21835 $as_echo "$as_me: WARNING: " >&2;}
21836   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
21837 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
21838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
21839 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
21840   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
21841 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
21842 fi
21843 for ac_prog in "$PYTHON"
21844 do
21845   # Extract the first word of "$ac_prog", so it can be a program name with args.
21846 set dummy $ac_prog; ac_word=$2
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21848 $as_echo_n "checking for $ac_word... " >&6; }
21849 if ${ac_cv_path_PYTHON+:} false; then :
21850   $as_echo_n "(cached) " >&6
21851 else
21852   case $PYTHON in
21853   [\\/]* | ?:[\\/]*)
21854   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21855   ;;
21856   *)
21857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21858 for as_dir in $PATH
21859 do
21860   IFS=$as_save_IFS
21861   test -z "$as_dir" && as_dir=.
21862     for ac_exec_ext in '' $ac_executable_extensions; do
21863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21864     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21866     break 2
21867   fi
21868 done
21869   done
21870 IFS=$as_save_IFS
21871
21872   ;;
21873 esac
21874 fi
21875 PYTHON=$ac_cv_path_PYTHON
21876 if test -n "$PYTHON"; then
21877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21878 $as_echo "$PYTHON" >&6; }
21879 else
21880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881 $as_echo "no" >&6; }
21882 fi
21883
21884
21885   test -n "$PYTHON" && break
21886 done
21887 test -n "$PYTHON" || PYTHON="none"
21888
21889
21890 # The minimum version for the JVM runtime for our Java bytecode.
21891 JAVA_OLDEST_WORKING_VER='1.5'
21892 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
21893
21894   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
21895
21896 # Check whether --with-jdk was given.
21897 if test "${with_jdk+set}" = set; then :
21898   withval=$with_jdk;
21899     case "$withval" in
21900       "no")
21901         JDK_SUITABLE=no
21902       ;;
21903       "yes")
21904
21905   where=check
21906   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
21907
21908   JDK=none
21909   JAVA_BIN=none
21910   JAVADOC=none
21911   JAVAC=none
21912   JAVAH=none
21913   JAR=none
21914   JNI_INCLUDES=none
21915
21916   JDK_SUITABLE=no
21917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
21918 $as_echo_n "checking for JDK... " >&6; }
21919   if test $where = check; then
21920             if test -x "$JAVA_HOME/bin/java"; then
21921       JDK="$JAVA_HOME"
21922     elif test -x "/Library/Java/Home/bin/java"; then
21923       JDK="/Library/Java/Home"
21924     elif test -x "/usr/bin/java"; then
21925       JDK="/usr"
21926     elif test -x "/usr/local/bin/java"; then
21927       JDK="/usr/local"
21928     fi
21929   else
21930     JDK=$where
21931   fi
21932
21933           os_arch="`uname`"
21934   if test "$os_arch" = "Darwin"; then
21935     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
21936
21937     if test "$OSX_VER" = "10.4"; then
21938             OSX_VER="10.4u"
21939     fi
21940
21941     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
21942     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
21943     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
21944   fi
21945
21946   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
21947      test -d "/Library/Java/Home"; then
21948     JDK="/Library/Java/Home"
21949   fi
21950
21951   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
21952     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
21953   else
21954     JRE_LIB_DIR="$JDK/jre/lib"
21955   fi
21956
21957   if test -f "$JDK/include/jni.h"; then
21958         JNI_INCLUDEDIR="$JDK/include"
21959     JDK_SUITABLE=yes
21960   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
21961         JNI_INCLUDEDIR="$JDK/Headers"
21962     JDK_SUITABLE=yes
21963   elif test "$os_arch" = "Darwin" &&
21964        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
21965         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
21966     JDK_SUITABLE=yes
21967   elif test "$os_arch" = "Darwin" &&
21968        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
21969         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
21970     JDK_SUITABLE=yes
21971   else
21972     JDK_SUITABLE=no
21973   fi
21974   if test "$JDK_SUITABLE" = "yes"; then
21975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
21976 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
21977   else
21978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21980     if test "$where" != "check"; then
21981       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
21982 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
21983       if test "$os_arch" = "Darwin"; then
21984         { $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
21985 $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;}
21986       fi
21987     fi
21988   fi
21989
21990   if test "$JDK_SUITABLE" = "yes"; then
21991     JAVA_BIN='$(JDK)/bin'
21992
21993     JAVA="$JAVA_BIN/java"
21994     JAVAC="$JAVA_BIN/javac"
21995     JAVAH="$JAVA_BIN/javah"
21996     JAVADOC="$JAVA_BIN/javadoc"
21997     JAR="$JAVA_BIN/jar"
21998
21999         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22000
22001 # Check whether --with-jikes was given.
22002 if test "${with_jikes+set}" = set; then :
22003   withval=$with_jikes;
22004         if test "$withval" != "no" && test "$withval" != "yes"; then
22005                     jikes_options="$withval $jikes_options"
22006         fi
22007         requested_jikes="$withval"  # will be 'yes' if path unspecified
22008
22009 fi
22010
22011     if test "$requested_jikes" != "no"; then
22012             for jikes in $jikes_options; do
22013         if test -z "$jikes_found" && test -x "$jikes"; then
22014           jikes_found="yes"
22015           JAVAC="$jikes"
22016           JAVA_CLASSPATH="$JRE_LIB_DIR"
22017           for jar in $JRE_LIB_DIR/*.jar; do
22018             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22019           done
22020         fi
22021       done
22022     fi
22023     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22024             if test -z "$jikes_found"; then
22025         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22026       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22027            test "$JAVAC" != "$requested_jikes"; then
22028         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22029 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22030       fi
22031     fi
22032
22033         # The release for "-source" could actually be greater than that
22034     # of "-target", if we want to cross-compile for lesser JVMs.
22035     if test -z "$JAVAC_FLAGS"; then
22036       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22037       if test "$enable_debugging" = "yes"; then
22038         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22039       fi
22040     fi
22041
22042     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22043     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22044     for dir in $list; do
22045       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22046     done
22047   fi
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058       ;;
22059       *)
22060
22061   where=$withval
22062   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22063
22064   JDK=none
22065   JAVA_BIN=none
22066   JAVADOC=none
22067   JAVAC=none
22068   JAVAH=none
22069   JAR=none
22070   JNI_INCLUDES=none
22071
22072   JDK_SUITABLE=no
22073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22074 $as_echo_n "checking for JDK... " >&6; }
22075   if test $where = check; then
22076             if test -x "$JAVA_HOME/bin/java"; then
22077       JDK="$JAVA_HOME"
22078     elif test -x "/Library/Java/Home/bin/java"; then
22079       JDK="/Library/Java/Home"
22080     elif test -x "/usr/bin/java"; then
22081       JDK="/usr"
22082     elif test -x "/usr/local/bin/java"; then
22083       JDK="/usr/local"
22084     fi
22085   else
22086     JDK=$where
22087   fi
22088
22089           os_arch="`uname`"
22090   if test "$os_arch" = "Darwin"; then
22091     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22092
22093     if test "$OSX_VER" = "10.4"; then
22094             OSX_VER="10.4u"
22095     fi
22096
22097     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22098     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22099     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22100   fi
22101
22102   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22103      test -d "/Library/Java/Home"; then
22104     JDK="/Library/Java/Home"
22105   fi
22106
22107   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22108     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22109   else
22110     JRE_LIB_DIR="$JDK/jre/lib"
22111   fi
22112
22113   if test -f "$JDK/include/jni.h"; then
22114         JNI_INCLUDEDIR="$JDK/include"
22115     JDK_SUITABLE=yes
22116   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22117         JNI_INCLUDEDIR="$JDK/Headers"
22118     JDK_SUITABLE=yes
22119   elif test "$os_arch" = "Darwin" &&
22120        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22121         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22122     JDK_SUITABLE=yes
22123   elif test "$os_arch" = "Darwin" &&
22124        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22125         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22126     JDK_SUITABLE=yes
22127   else
22128     JDK_SUITABLE=no
22129   fi
22130   if test "$JDK_SUITABLE" = "yes"; then
22131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22132 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22133   else
22134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22135 $as_echo "no" >&6; }
22136     if test "$where" != "check"; then
22137       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22138 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22139       if test "$os_arch" = "Darwin"; then
22140         { $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
22141 $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;}
22142       fi
22143     fi
22144   fi
22145
22146   if test "$JDK_SUITABLE" = "yes"; then
22147     JAVA_BIN='$(JDK)/bin'
22148
22149     JAVA="$JAVA_BIN/java"
22150     JAVAC="$JAVA_BIN/javac"
22151     JAVAH="$JAVA_BIN/javah"
22152     JAVADOC="$JAVA_BIN/javadoc"
22153     JAR="$JAVA_BIN/jar"
22154
22155         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22156
22157 # Check whether --with-jikes was given.
22158 if test "${with_jikes+set}" = set; then :
22159   withval=$with_jikes;
22160         if test "$withval" != "no" && test "$withval" != "yes"; then
22161                     jikes_options="$withval $jikes_options"
22162         fi
22163         requested_jikes="$withval"  # will be 'yes' if path unspecified
22164
22165 fi
22166
22167     if test "$requested_jikes" != "no"; then
22168             for jikes in $jikes_options; do
22169         if test -z "$jikes_found" && test -x "$jikes"; then
22170           jikes_found="yes"
22171           JAVAC="$jikes"
22172           JAVA_CLASSPATH="$JRE_LIB_DIR"
22173           for jar in $JRE_LIB_DIR/*.jar; do
22174             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22175           done
22176         fi
22177       done
22178     fi
22179     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22180             if test -z "$jikes_found"; then
22181         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22182       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22183            test "$JAVAC" != "$requested_jikes"; then
22184         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22185 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22186       fi
22187     fi
22188
22189         # The release for "-source" could actually be greater than that
22190     # of "-target", if we want to cross-compile for lesser JVMs.
22191     if test -z "$JAVAC_FLAGS"; then
22192       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22193       if test "$enable_debugging" = "yes"; then
22194         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22195       fi
22196     fi
22197
22198     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22199     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22200     for dir in $list; do
22201       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22202     done
22203   fi
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214       ;;
22215     esac
22216
22217 else
22218
22219
22220   where=check
22221   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22222
22223   JDK=none
22224   JAVA_BIN=none
22225   JAVADOC=none
22226   JAVAC=none
22227   JAVAH=none
22228   JAR=none
22229   JNI_INCLUDES=none
22230
22231   JDK_SUITABLE=no
22232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22233 $as_echo_n "checking for JDK... " >&6; }
22234   if test $where = check; then
22235             if test -x "$JAVA_HOME/bin/java"; then
22236       JDK="$JAVA_HOME"
22237     elif test -x "/Library/Java/Home/bin/java"; then
22238       JDK="/Library/Java/Home"
22239     elif test -x "/usr/bin/java"; then
22240       JDK="/usr"
22241     elif test -x "/usr/local/bin/java"; then
22242       JDK="/usr/local"
22243     fi
22244   else
22245     JDK=$where
22246   fi
22247
22248           os_arch="`uname`"
22249   if test "$os_arch" = "Darwin"; then
22250     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22251
22252     if test "$OSX_VER" = "10.4"; then
22253             OSX_VER="10.4u"
22254     fi
22255
22256     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22257     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22258     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22259   fi
22260
22261   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22262      test -d "/Library/Java/Home"; then
22263     JDK="/Library/Java/Home"
22264   fi
22265
22266   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22267     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22268   else
22269     JRE_LIB_DIR="$JDK/jre/lib"
22270   fi
22271
22272   if test -f "$JDK/include/jni.h"; then
22273         JNI_INCLUDEDIR="$JDK/include"
22274     JDK_SUITABLE=yes
22275   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22276         JNI_INCLUDEDIR="$JDK/Headers"
22277     JDK_SUITABLE=yes
22278   elif test "$os_arch" = "Darwin" &&
22279        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22280         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22281     JDK_SUITABLE=yes
22282   elif test "$os_arch" = "Darwin" &&
22283        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22284         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22285     JDK_SUITABLE=yes
22286   else
22287     JDK_SUITABLE=no
22288   fi
22289   if test "$JDK_SUITABLE" = "yes"; then
22290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22291 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22292   else
22293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22294 $as_echo "no" >&6; }
22295     if test "$where" != "check"; then
22296       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22297 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22298       if test "$os_arch" = "Darwin"; then
22299         { $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
22300 $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;}
22301       fi
22302     fi
22303   fi
22304
22305   if test "$JDK_SUITABLE" = "yes"; then
22306     JAVA_BIN='$(JDK)/bin'
22307
22308     JAVA="$JAVA_BIN/java"
22309     JAVAC="$JAVA_BIN/javac"
22310     JAVAH="$JAVA_BIN/javah"
22311     JAVADOC="$JAVA_BIN/javadoc"
22312     JAR="$JAVA_BIN/jar"
22313
22314         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22315
22316 # Check whether --with-jikes was given.
22317 if test "${with_jikes+set}" = set; then :
22318   withval=$with_jikes;
22319         if test "$withval" != "no" && test "$withval" != "yes"; then
22320                     jikes_options="$withval $jikes_options"
22321         fi
22322         requested_jikes="$withval"  # will be 'yes' if path unspecified
22323
22324 fi
22325
22326     if test "$requested_jikes" != "no"; then
22327             for jikes in $jikes_options; do
22328         if test -z "$jikes_found" && test -x "$jikes"; then
22329           jikes_found="yes"
22330           JAVAC="$jikes"
22331           JAVA_CLASSPATH="$JRE_LIB_DIR"
22332           for jar in $JRE_LIB_DIR/*.jar; do
22333             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22334           done
22335         fi
22336       done
22337     fi
22338     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22339             if test -z "$jikes_found"; then
22340         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22341       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22342            test "$JAVAC" != "$requested_jikes"; then
22343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22344 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22345       fi
22346     fi
22347
22348         # The release for "-source" could actually be greater than that
22349     # of "-target", if we want to cross-compile for lesser JVMs.
22350     if test -z "$JAVAC_FLAGS"; then
22351       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22352       if test "$enable_debugging" = "yes"; then
22353         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22354       fi
22355     fi
22356
22357     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22358     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22359     for dir in $list; do
22360       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22361     done
22362   fi
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374 fi
22375
22376
22377
22378 # Extract the first word of "perl", so it can be a program name with args.
22379 set dummy perl; ac_word=$2
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22381 $as_echo_n "checking for $ac_word... " >&6; }
22382 if ${ac_cv_path_PERL+:} false; then :
22383   $as_echo_n "(cached) " >&6
22384 else
22385   case $PERL in
22386   [\\/]* | ?:[\\/]*)
22387   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22388   ;;
22389   *)
22390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22391 for as_dir in $PATH
22392 do
22393   IFS=$as_save_IFS
22394   test -z "$as_dir" && as_dir=.
22395     for ac_exec_ext in '' $ac_executable_extensions; do
22396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22397     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22399     break 2
22400   fi
22401 done
22402   done
22403 IFS=$as_save_IFS
22404
22405   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
22406   ;;
22407 esac
22408 fi
22409 PERL=$ac_cv_path_PERL
22410 if test -n "$PERL"; then
22411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22412 $as_echo "$PERL" >&6; }
22413 else
22414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22415 $as_echo "no" >&6; }
22416 fi
22417
22418
22419
22420 if test -n "$RUBY"; then
22421   # Extract the first word of ""$RUBY"", so it can be a program name with args.
22422 set dummy "$RUBY"; ac_word=$2
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22424 $as_echo_n "checking for $ac_word... " >&6; }
22425 if ${ac_cv_path_RUBY+:} false; then :
22426   $as_echo_n "(cached) " >&6
22427 else
22428   case $RUBY in
22429   [\\/]* | ?:[\\/]*)
22430   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22431   ;;
22432   *)
22433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22434 for as_dir in $PATH
22435 do
22436   IFS=$as_save_IFS
22437   test -z "$as_dir" && as_dir=.
22438     for ac_exec_ext in '' $ac_executable_extensions; do
22439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22440     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22442     break 2
22443   fi
22444 done
22445   done
22446 IFS=$as_save_IFS
22447
22448   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
22449   ;;
22450 esac
22451 fi
22452 RUBY=$ac_cv_path_RUBY
22453 if test -n "$RUBY"; then
22454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22455 $as_echo "$RUBY" >&6; }
22456 else
22457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 $as_echo "no" >&6; }
22459 fi
22460
22461
22462 else
22463   for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193
22464 do
22465   # Extract the first word of "$ac_prog", so it can be a program name with args.
22466 set dummy $ac_prog; ac_word=$2
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22468 $as_echo_n "checking for $ac_word... " >&6; }
22469 if ${ac_cv_path_RUBY+:} false; then :
22470   $as_echo_n "(cached) " >&6
22471 else
22472   case $RUBY in
22473   [\\/]* | ?:[\\/]*)
22474   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22475   ;;
22476   *)
22477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22478 for as_dir in $PATH
22479 do
22480   IFS=$as_save_IFS
22481   test -z "$as_dir" && as_dir=.
22482     for ac_exec_ext in '' $ac_executable_extensions; do
22483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22484     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22486     break 2
22487   fi
22488 done
22489   done
22490 IFS=$as_save_IFS
22491
22492   ;;
22493 esac
22494 fi
22495 RUBY=$ac_cv_path_RUBY
22496 if test -n "$RUBY"; then
22497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22498 $as_echo "$RUBY" >&6; }
22499 else
22500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22501 $as_echo "no" >&6; }
22502 fi
22503
22504
22505   test -n "$RUBY" && break
22506 done
22507 test -n "$RUBY" || RUBY="none"
22508
22509 fi
22510 if test "$RUBY" != "none"; then
22511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
22512 $as_echo_n "checking rb_hash_foreach... " >&6; }
22513   if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
22514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22515 $as_echo "yes" >&6; }
22516     if test -n "$RDOC"; then
22517       # Extract the first word of ""$RDOC"", so it can be a program name with args.
22518 set dummy "$RDOC"; ac_word=$2
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22520 $as_echo_n "checking for $ac_word... " >&6; }
22521 if ${ac_cv_path_RDOC+:} false; then :
22522   $as_echo_n "(cached) " >&6
22523 else
22524   case $RDOC in
22525   [\\/]* | ?:[\\/]*)
22526   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22527   ;;
22528   *)
22529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22530 for as_dir in $PATH
22531 do
22532   IFS=$as_save_IFS
22533   test -z "$as_dir" && as_dir=.
22534     for ac_exec_ext in '' $ac_executable_extensions; do
22535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22536     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22538     break 2
22539   fi
22540 done
22541   done
22542 IFS=$as_save_IFS
22543
22544   test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
22545   ;;
22546 esac
22547 fi
22548 RDOC=$ac_cv_path_RDOC
22549 if test -n "$RDOC"; then
22550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22551 $as_echo "$RDOC" >&6; }
22552 else
22553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22554 $as_echo "no" >&6; }
22555 fi
22556
22557
22558     else
22559       for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193
22560 do
22561   # Extract the first word of "$ac_prog", so it can be a program name with args.
22562 set dummy $ac_prog; ac_word=$2
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22564 $as_echo_n "checking for $ac_word... " >&6; }
22565 if ${ac_cv_path_RDOC+:} false; then :
22566   $as_echo_n "(cached) " >&6
22567 else
22568   case $RDOC in
22569   [\\/]* | ?:[\\/]*)
22570   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22571   ;;
22572   *)
22573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22574 for as_dir in $PATH
22575 do
22576   IFS=$as_save_IFS
22577   test -z "$as_dir" && as_dir=.
22578     for ac_exec_ext in '' $ac_executable_extensions; do
22579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22580     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22582     break 2
22583   fi
22584 done
22585   done
22586 IFS=$as_save_IFS
22587
22588   ;;
22589 esac
22590 fi
22591 RDOC=$ac_cv_path_RDOC
22592 if test -n "$RDOC"; then
22593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22594 $as_echo "$RDOC" >&6; }
22595 else
22596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22597 $as_echo "no" >&6; }
22598 fi
22599
22600
22601   test -n "$RDOC" && break
22602 done
22603 test -n "$RDOC" || RDOC="none"
22604
22605     fi
22606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
22607 $as_echo_n "checking for Ruby major version... " >&6; }
22608 if ${svn_cv_ruby_major+:} false; then :
22609   $as_echo_n "(cached) " >&6
22610 else
22611
22612     svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
22613
22614 fi
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
22616 $as_echo "$svn_cv_ruby_major" >&6; }
22617     RUBY_MAJOR="$svn_cv_ruby_major"
22618
22619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
22620 $as_echo_n "checking for Ruby minor version... " >&6; }
22621 if ${svn_cv_ruby_minor+:} false; then :
22622   $as_echo_n "(cached) " >&6
22623 else
22624
22625     svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
22626
22627 fi
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
22629 $as_echo "$svn_cv_ruby_minor" >&6; }
22630     RUBY_MINOR="$svn_cv_ruby_minor"
22631
22632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
22633 $as_echo_n "checking for Ruby teeny version... " >&6; }
22634 if ${svn_cv_ruby_teeny+:} false; then :
22635   $as_echo_n "(cached) " >&6
22636 else
22637
22638     svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
22639
22640 fi
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
22642 $as_echo "$svn_cv_ruby_teeny" >&6; }
22643     RUBY_TEENY="$svn_cv_ruby_teeny"
22644
22645
22646
22647
22648     if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
22649       # Disallow Ruby between 1.8.7 and 1.9.3
22650       RUBY="none"
22651       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
22652 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
22653       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
22654 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
22655     elif test \(  "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -eq "9" -a "$RUBY_TEENY" -eq "3" \); then
22656       #Warn about 1.9.3 support
22657       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: The detected Ruby is 1.9.3" >&5
22658 $as_echo "$as_me: WARNING: WARNING: The detected Ruby is 1.9.3" >&2;}
22659       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&5
22660 $as_echo "$as_me: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&2;}
22661     fi
22662   else
22663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22664 $as_echo "no" >&6; }
22665     RUBY="none"
22666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
22667 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
22668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
22669 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
22670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
22671 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
22672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
22673 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
22674   fi
22675 fi
22676
22677
22678
22679 # Check whether --with-swig was given.
22680 if test "${with_swig+set}" = set; then :
22681   withval=$with_swig;
22682     case "$withval" in
22683       "no")
22684         SWIG_SUITABLE=no
22685
22686   where=no
22687
22688   if test $where = no; then
22689     SWIG=none
22690   elif test $where = check; then
22691     # Extract the first word of "swig", so it can be a program name with args.
22692 set dummy swig; ac_word=$2
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22694 $as_echo_n "checking for $ac_word... " >&6; }
22695 if ${ac_cv_path_SWIG+:} false; then :
22696   $as_echo_n "(cached) " >&6
22697 else
22698   case $SWIG in
22699   [\\/]* | ?:[\\/]*)
22700   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22701   ;;
22702   *)
22703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22704 for as_dir in $PATH
22705 do
22706   IFS=$as_save_IFS
22707   test -z "$as_dir" && as_dir=.
22708     for ac_exec_ext in '' $ac_executable_extensions; do
22709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22710     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22712     break 2
22713   fi
22714 done
22715   done
22716 IFS=$as_save_IFS
22717
22718   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
22719   ;;
22720 esac
22721 fi
22722 SWIG=$ac_cv_path_SWIG
22723 if test -n "$SWIG"; then
22724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22725 $as_echo "$SWIG" >&6; }
22726 else
22727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22728 $as_echo "no" >&6; }
22729 fi
22730
22731
22732   else
22733     if test -f "$where"; then
22734       SWIG="$where"
22735     else
22736       SWIG="$where/bin/swig"
22737     fi
22738     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
22739       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
22740     fi
22741   fi
22742
22743   if test "$SWIG" != "none"; then
22744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
22745 $as_echo_n "checking swig version... " >&6; }
22746     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
22747                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
22748     # We want the version as an integer so we can test against
22749     # which version we're using.  SWIG doesn't provide this
22750     # to us so we have to come up with it on our own.
22751     # The major is passed straight through,
22752     # the minor is zero padded to two places,
22753     # and the patch level is zero padded to three places.
22754     # e.g. 1.3.24 becomes 103024
22755     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
22756                   $SED -e 's/[^0-9\.].*$//' \
22757                       -e 's/\.\([0-9]\)$/.0\1/' \
22758                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
22759                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
22760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
22761 $as_echo "$SWIG_VERSION_RAW" >&6; }
22762     # If you change the required swig version number, don't forget to update:
22763     #   subversion/bindings/swig/INSTALL
22764     #   packages/rpm/redhat-8+/subversion.spec
22765     #   packages/rpm/redhat-7.x/subversion.spec
22766     #   packages/rpm/rhel-3/subversion.spec
22767     #   packages/rpm/rhel-4/subversion.spec
22768     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
22769       SWIG_SUITABLE=yes
22770     else
22771       SWIG_SUITABLE=no
22772       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
22773 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
22774       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
22775 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
22776     fi
22777   fi
22778
22779   SWIG_PY_COMPILE="none"
22780   SWIG_PY_LINK="none"
22781   if test "$PYTHON" != "none"; then
22782     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
22783 $as_echo "$as_me: Configuring python swig binding" >&6;}
22784
22785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
22786 $as_echo_n "checking for Python includes... " >&6; }
22787 if ${ac_cv_python_includes+:} false; then :
22788   $as_echo_n "(cached) " >&6
22789 else
22790
22791       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
22792
22793 fi
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
22795 $as_echo "$ac_cv_python_includes" >&6; }
22796     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
22797
22798     if test "$ac_cv_python_includes" = "none"; then
22799       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
22800 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
22801     fi
22802
22803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
22804 $as_echo_n "checking for compiling Python extensions... " >&6; }
22805 if ${ac_cv_python_compile+:} false; then :
22806   $as_echo_n "(cached) " >&6
22807 else
22808
22809       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
22810
22811 fi
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
22813 $as_echo "$ac_cv_python_compile" >&6; }
22814     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
22815
22816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
22817 $as_echo_n "checking for linking Python extensions... " >&6; }
22818 if ${ac_cv_python_link+:} false; then :
22819   $as_echo_n "(cached) " >&6
22820 else
22821
22822       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
22823
22824 fi
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
22826 $as_echo "$ac_cv_python_link" >&6; }
22827     SWIG_PY_LINK="$ac_cv_python_link"
22828
22829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
22830 $as_echo_n "checking for linking Python libraries... " >&6; }
22831 if ${ac_cv_python_libs+:} false; then :
22832   $as_echo_n "(cached) " >&6
22833 else
22834
22835       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
22836
22837 fi
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
22839 $as_echo "$ac_cv_python_libs" >&6; }
22840     SWIG_PY_LIBS="`
22841   input_flags="$ac_cv_python_libs"
22842   output_flags=""
22843   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22844   for flag in $input_flags; do
22845     filter="no"
22846     for dir in $filtered_dirs; do
22847       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22848         filter="yes"
22849         break
22850       fi
22851     done
22852     if test "$filter" = "no"; then
22853       output_flags="$output_flags $flag"
22854     fi
22855   done
22856   if test -n "$output_flags"; then
22857     printf "%s" "${output_flags# }"
22858   fi
22859 `"
22860
22861                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
22862     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
22863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
22864 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
22865 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
22866   $as_echo_n "(cached) " >&6
22867 else
22868
22869       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22870         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h.  */
22872 #include <apr.h>
22873                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
22874 _ACEOF
22875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22876   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
22877   svn_cv_pycfmt_apr_int64_t="L"
22878 fi
22879 rm -f conftest*
22880
22881       fi
22882       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22883         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22884 /* end confdefs.h.  */
22885 r
22886                      #include <apr.h>
22887                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
22888 _ACEOF
22889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22890   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
22891   svn_cv_pycfmt_apr_int64_t="l"
22892 fi
22893 rm -f conftest*
22894
22895       fi
22896       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22897         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h.  */
22899 #include <apr.h>
22900                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
22901 _ACEOF
22902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22903   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
22904   svn_cv_pycfmt_apr_int64_t="i"
22905 fi
22906 rm -f conftest*
22907
22908       fi
22909
22910 fi
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
22912 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
22913     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
22914     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22915       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
22916     fi
22917
22918 cat >>confdefs.h <<_ACEOF
22919 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
22920 _ACEOF
22921
22922   fi
22923
22924   if test "$PERL" != "none"; then
22925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
22926 $as_echo_n "checking perl version... " >&6; }
22927             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
22928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
22929 $as_echo "$PERL_VERSION" >&6; }
22930     if test "$PERL_VERSION" -ge "5008000"; then
22931       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
22932     else
22933       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
22934 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
22935     fi
22936   fi
22937
22938   SWIG_RB_COMPILE="none"
22939   SWIG_RB_LINK="none"
22940   if test "$RUBY" != "none"; then
22941     rbconfig="$RUBY -rrbconfig -e "
22942
22943     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
22944                     rubyhdrdir sitedir sitelibdir sitearchdir libdir
22945     do
22946       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
22947       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
22948     done
22949
22950     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
22951 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
22952
22953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
22954 $as_echo_n "checking for Ruby include path... " >&6; }
22955 if ${svn_cv_ruby_includes+:} false; then :
22956   $as_echo_n "(cached) " >&6
22957 else
22958
22959     if test -d "$rbconfig_rubyhdrdir"; then
22960             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
22961     else
22962             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
22963     fi
22964
22965 fi
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
22967 $as_echo "$svn_cv_ruby_includes" >&6; }
22968     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
22969
22970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
22971 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
22972 if ${svn_cv_ruby_compile+:} false; then :
22973   $as_echo_n "(cached) " >&6
22974 else
22975
22976       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
22977
22978 fi
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
22980 $as_echo "$svn_cv_ruby_compile" >&6; }
22981     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
22982
22983   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
22984
22985
22986   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
22987
22988
22989   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
22990
22991         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
22992
22993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
22994 $as_echo_n "checking how to link Ruby extensions... " >&6; }
22995 if ${svn_cv_ruby_link+:} false; then :
22996   $as_echo_n "(cached) " >&6
22997 else
22998
22999       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23000                            $rbconfig_LDSHARED`"
23001       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23002       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23003
23004 fi
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23006 $as_echo "$svn_cv_ruby_link" >&6; }
23007     SWIG_RB_LINK="$svn_cv_ruby_link"
23008
23009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23010 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23011 if ${ac_cv_ruby_libs+:} false; then :
23012   $as_echo_n "(cached) " >&6
23013 else
23014
23015       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23016
23017 fi
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23019 $as_echo "$ac_cv_ruby_libs" >&6; }
23020     SWIG_RB_LIBS="`
23021   input_flags="$ac_cv_ruby_libs"
23022   output_flags=""
23023   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23024   for flag in $input_flags; do
23025     filter="no"
23026     for dir in $filtered_dirs; do
23027       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23028         filter="yes"
23029         break
23030       fi
23031     done
23032     if test "$filter" = "no"; then
23033       output_flags="$output_flags $flag"
23034     fi
23035   done
23036   if test -n "$output_flags"; then
23037     printf "%s" "${output_flags# }"
23038   fi
23039 `"
23040
23041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23042 $as_echo_n "checking for rb_errinfo... " >&6; }
23043     old_CFLAGS="$CFLAGS"
23044     old_LIBS="$LIBS"
23045     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23046
23047   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23048
23049
23050   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23051
23052
23053   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23054
23055     LIBS="$SWIG_RB_LIBS"
23056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h.  */
23058
23059 #include <ruby.h>
23060 int main()
23061 {rb_errinfo();}
23062 _ACEOF
23063 if ac_fn_c_try_link "$LINENO"; then :
23064   have_rb_errinfo="yes"
23065 else
23066   have_rb_errinfo="no"
23067 fi
23068 rm -f core conftest.err conftest.$ac_objext \
23069     conftest$ac_exeext conftest.$ac_ext
23070     if test "$have_rb_errinfo" = "yes"; then
23071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23072 $as_echo "yes" >&6; }
23073
23074 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23075
23076     else
23077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23078 $as_echo "no" >&6; }
23079     fi
23080     CFLAGS="$old_CFLAGS"
23081     LIBS="$old_LIBS"
23082
23083     if ${svn_cv_ruby_sitedir+:} false; then :
23084   $as_echo_n "(cached) " >&6
23085 else
23086
23087       svn_cv_ruby_sitedir="$rbconfig_sitedir"
23088
23089 fi
23090
23091
23092 # Check whether --with-ruby-sitedir was given.
23093 if test "${with_ruby_sitedir+set}" = set; then :
23094   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23095 else
23096   svn_ruby_installdir="$svn_cv_ruby_sitedir"
23097 fi
23098
23099
23100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23101 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23102     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23103   $as_echo_n "(cached) " >&6
23104 else
23105
23106       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23107                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23108
23109 fi
23110
23111     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23113 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23114
23115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23116 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23117     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23118   $as_echo_n "(cached) " >&6
23119 else
23120
23121       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23122                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23123
23124 fi
23125
23126     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23128 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23129
23130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23131 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23132     if ${svn_cv_ruby_test_verbose+:} false; then :
23133   $as_echo_n "(cached) " >&6
23134 else
23135
23136       svn_cv_ruby_test_verbose="normal"
23137
23138 fi
23139
23140
23141 # Check whether --with-ruby-test-verbose was given.
23142 if test "${with_ruby_test_verbose+set}" = set; then :
23143   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23144 else
23145   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23146 fi
23147
23148       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23150 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23151   fi
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166       ;;
23167       "yes")
23168
23169   where=check
23170
23171   if test $where = no; then
23172     SWIG=none
23173   elif test $where = check; then
23174     # Extract the first word of "swig", so it can be a program name with args.
23175 set dummy swig; ac_word=$2
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23177 $as_echo_n "checking for $ac_word... " >&6; }
23178 if ${ac_cv_path_SWIG+:} false; then :
23179   $as_echo_n "(cached) " >&6
23180 else
23181   case $SWIG in
23182   [\\/]* | ?:[\\/]*)
23183   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23184   ;;
23185   *)
23186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23187 for as_dir in $PATH
23188 do
23189   IFS=$as_save_IFS
23190   test -z "$as_dir" && as_dir=.
23191     for ac_exec_ext in '' $ac_executable_extensions; do
23192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23193     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23195     break 2
23196   fi
23197 done
23198   done
23199 IFS=$as_save_IFS
23200
23201   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23202   ;;
23203 esac
23204 fi
23205 SWIG=$ac_cv_path_SWIG
23206 if test -n "$SWIG"; then
23207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23208 $as_echo "$SWIG" >&6; }
23209 else
23210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23211 $as_echo "no" >&6; }
23212 fi
23213
23214
23215   else
23216     if test -f "$where"; then
23217       SWIG="$where"
23218     else
23219       SWIG="$where/bin/swig"
23220     fi
23221     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23222       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23223     fi
23224   fi
23225
23226   if test "$SWIG" != "none"; then
23227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23228 $as_echo_n "checking swig version... " >&6; }
23229     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23230                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23231     # We want the version as an integer so we can test against
23232     # which version we're using.  SWIG doesn't provide this
23233     # to us so we have to come up with it on our own.
23234     # The major is passed straight through,
23235     # the minor is zero padded to two places,
23236     # and the patch level is zero padded to three places.
23237     # e.g. 1.3.24 becomes 103024
23238     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23239                   $SED -e 's/[^0-9\.].*$//' \
23240                       -e 's/\.\([0-9]\)$/.0\1/' \
23241                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23242                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23244 $as_echo "$SWIG_VERSION_RAW" >&6; }
23245     # If you change the required swig version number, don't forget to update:
23246     #   subversion/bindings/swig/INSTALL
23247     #   packages/rpm/redhat-8+/subversion.spec
23248     #   packages/rpm/redhat-7.x/subversion.spec
23249     #   packages/rpm/rhel-3/subversion.spec
23250     #   packages/rpm/rhel-4/subversion.spec
23251     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23252       SWIG_SUITABLE=yes
23253     else
23254       SWIG_SUITABLE=no
23255       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23256 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23257       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23258 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23259     fi
23260   fi
23261
23262   SWIG_PY_COMPILE="none"
23263   SWIG_PY_LINK="none"
23264   if test "$PYTHON" != "none"; then
23265     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23266 $as_echo "$as_me: Configuring python swig binding" >&6;}
23267
23268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23269 $as_echo_n "checking for Python includes... " >&6; }
23270 if ${ac_cv_python_includes+:} false; then :
23271   $as_echo_n "(cached) " >&6
23272 else
23273
23274       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23275
23276 fi
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23278 $as_echo "$ac_cv_python_includes" >&6; }
23279     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23280
23281     if test "$ac_cv_python_includes" = "none"; then
23282       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23283 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23284     fi
23285
23286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23287 $as_echo_n "checking for compiling Python extensions... " >&6; }
23288 if ${ac_cv_python_compile+:} false; then :
23289   $as_echo_n "(cached) " >&6
23290 else
23291
23292       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23293
23294 fi
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23296 $as_echo "$ac_cv_python_compile" >&6; }
23297     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23298
23299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23300 $as_echo_n "checking for linking Python extensions... " >&6; }
23301 if ${ac_cv_python_link+:} false; then :
23302   $as_echo_n "(cached) " >&6
23303 else
23304
23305       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23306
23307 fi
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23309 $as_echo "$ac_cv_python_link" >&6; }
23310     SWIG_PY_LINK="$ac_cv_python_link"
23311
23312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23313 $as_echo_n "checking for linking Python libraries... " >&6; }
23314 if ${ac_cv_python_libs+:} false; then :
23315   $as_echo_n "(cached) " >&6
23316 else
23317
23318       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23319
23320 fi
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23322 $as_echo "$ac_cv_python_libs" >&6; }
23323     SWIG_PY_LIBS="`
23324   input_flags="$ac_cv_python_libs"
23325   output_flags=""
23326   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23327   for flag in $input_flags; do
23328     filter="no"
23329     for dir in $filtered_dirs; do
23330       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23331         filter="yes"
23332         break
23333       fi
23334     done
23335     if test "$filter" = "no"; then
23336       output_flags="$output_flags $flag"
23337     fi
23338   done
23339   if test -n "$output_flags"; then
23340     printf "%s" "${output_flags# }"
23341   fi
23342 `"
23343
23344                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23345     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23347 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23348 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23349   $as_echo_n "(cached) " >&6
23350 else
23351
23352       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23353         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23354 /* end confdefs.h.  */
23355 #include <apr.h>
23356                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23357 _ACEOF
23358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23359   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23360   svn_cv_pycfmt_apr_int64_t="L"
23361 fi
23362 rm -f conftest*
23363
23364       fi
23365       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23366         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h.  */
23368 r
23369                      #include <apr.h>
23370                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23371 _ACEOF
23372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23373   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23374   svn_cv_pycfmt_apr_int64_t="l"
23375 fi
23376 rm -f conftest*
23377
23378       fi
23379       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23380         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23381 /* end confdefs.h.  */
23382 #include <apr.h>
23383                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23384 _ACEOF
23385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23386   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23387   svn_cv_pycfmt_apr_int64_t="i"
23388 fi
23389 rm -f conftest*
23390
23391       fi
23392
23393 fi
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23395 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23396     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23397     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23398       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23399     fi
23400
23401 cat >>confdefs.h <<_ACEOF
23402 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23403 _ACEOF
23404
23405   fi
23406
23407   if test "$PERL" != "none"; then
23408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23409 $as_echo_n "checking perl version... " >&6; }
23410             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23412 $as_echo "$PERL_VERSION" >&6; }
23413     if test "$PERL_VERSION" -ge "5008000"; then
23414       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23415     else
23416       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23417 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23418     fi
23419   fi
23420
23421   SWIG_RB_COMPILE="none"
23422   SWIG_RB_LINK="none"
23423   if test "$RUBY" != "none"; then
23424     rbconfig="$RUBY -rrbconfig -e "
23425
23426     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23427                     rubyhdrdir sitedir sitelibdir sitearchdir libdir
23428     do
23429       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23430       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23431     done
23432
23433     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23434 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23435
23436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23437 $as_echo_n "checking for Ruby include path... " >&6; }
23438 if ${svn_cv_ruby_includes+:} false; then :
23439   $as_echo_n "(cached) " >&6
23440 else
23441
23442     if test -d "$rbconfig_rubyhdrdir"; then
23443             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23444     else
23445             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23446     fi
23447
23448 fi
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23450 $as_echo "$svn_cv_ruby_includes" >&6; }
23451     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23452
23453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23454 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23455 if ${svn_cv_ruby_compile+:} false; then :
23456   $as_echo_n "(cached) " >&6
23457 else
23458
23459       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23460
23461 fi
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23463 $as_echo "$svn_cv_ruby_compile" >&6; }
23464     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23465
23466   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23467
23468
23469   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23470
23471
23472   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23473
23474         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23475
23476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23477 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23478 if ${svn_cv_ruby_link+:} false; then :
23479   $as_echo_n "(cached) " >&6
23480 else
23481
23482       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23483                            $rbconfig_LDSHARED`"
23484       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23485       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23486
23487 fi
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23489 $as_echo "$svn_cv_ruby_link" >&6; }
23490     SWIG_RB_LINK="$svn_cv_ruby_link"
23491
23492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23493 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23494 if ${ac_cv_ruby_libs+:} false; then :
23495   $as_echo_n "(cached) " >&6
23496 else
23497
23498       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23499
23500 fi
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23502 $as_echo "$ac_cv_ruby_libs" >&6; }
23503     SWIG_RB_LIBS="`
23504   input_flags="$ac_cv_ruby_libs"
23505   output_flags=""
23506   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23507   for flag in $input_flags; do
23508     filter="no"
23509     for dir in $filtered_dirs; do
23510       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23511         filter="yes"
23512         break
23513       fi
23514     done
23515     if test "$filter" = "no"; then
23516       output_flags="$output_flags $flag"
23517     fi
23518   done
23519   if test -n "$output_flags"; then
23520     printf "%s" "${output_flags# }"
23521   fi
23522 `"
23523
23524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23525 $as_echo_n "checking for rb_errinfo... " >&6; }
23526     old_CFLAGS="$CFLAGS"
23527     old_LIBS="$LIBS"
23528     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23529
23530   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23531
23532
23533   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23534
23535
23536   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23537
23538     LIBS="$SWIG_RB_LIBS"
23539     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540 /* end confdefs.h.  */
23541
23542 #include <ruby.h>
23543 int main()
23544 {rb_errinfo();}
23545 _ACEOF
23546 if ac_fn_c_try_link "$LINENO"; then :
23547   have_rb_errinfo="yes"
23548 else
23549   have_rb_errinfo="no"
23550 fi
23551 rm -f core conftest.err conftest.$ac_objext \
23552     conftest$ac_exeext conftest.$ac_ext
23553     if test "$have_rb_errinfo" = "yes"; then
23554       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23555 $as_echo "yes" >&6; }
23556
23557 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23558
23559     else
23560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23561 $as_echo "no" >&6; }
23562     fi
23563     CFLAGS="$old_CFLAGS"
23564     LIBS="$old_LIBS"
23565
23566     if ${svn_cv_ruby_sitedir+:} false; then :
23567   $as_echo_n "(cached) " >&6
23568 else
23569
23570       svn_cv_ruby_sitedir="$rbconfig_sitedir"
23571
23572 fi
23573
23574
23575 # Check whether --with-ruby-sitedir was given.
23576 if test "${with_ruby_sitedir+set}" = set; then :
23577   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23578 else
23579   svn_ruby_installdir="$svn_cv_ruby_sitedir"
23580 fi
23581
23582
23583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23584 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23585     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23586   $as_echo_n "(cached) " >&6
23587 else
23588
23589       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23590                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23591
23592 fi
23593
23594     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23596 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23597
23598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23599 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23600     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23601   $as_echo_n "(cached) " >&6
23602 else
23603
23604       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23605                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23606
23607 fi
23608
23609     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23611 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23612
23613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23614 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23615     if ${svn_cv_ruby_test_verbose+:} false; then :
23616   $as_echo_n "(cached) " >&6
23617 else
23618
23619       svn_cv_ruby_test_verbose="normal"
23620
23621 fi
23622
23623
23624 # Check whether --with-ruby-test-verbose was given.
23625 if test "${with_ruby_test_verbose+set}" = set; then :
23626   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23627 else
23628   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23629 fi
23630
23631       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23633 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23634   fi
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649       ;;
23650       *)
23651
23652   where=$withval
23653
23654   if test $where = no; then
23655     SWIG=none
23656   elif test $where = check; then
23657     # Extract the first word of "swig", so it can be a program name with args.
23658 set dummy swig; ac_word=$2
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23660 $as_echo_n "checking for $ac_word... " >&6; }
23661 if ${ac_cv_path_SWIG+:} false; then :
23662   $as_echo_n "(cached) " >&6
23663 else
23664   case $SWIG in
23665   [\\/]* | ?:[\\/]*)
23666   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23667   ;;
23668   *)
23669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23670 for as_dir in $PATH
23671 do
23672   IFS=$as_save_IFS
23673   test -z "$as_dir" && as_dir=.
23674     for ac_exec_ext in '' $ac_executable_extensions; do
23675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23676     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23678     break 2
23679   fi
23680 done
23681   done
23682 IFS=$as_save_IFS
23683
23684   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23685   ;;
23686 esac
23687 fi
23688 SWIG=$ac_cv_path_SWIG
23689 if test -n "$SWIG"; then
23690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23691 $as_echo "$SWIG" >&6; }
23692 else
23693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23694 $as_echo "no" >&6; }
23695 fi
23696
23697
23698   else
23699     if test -f "$where"; then
23700       SWIG="$where"
23701     else
23702       SWIG="$where/bin/swig"
23703     fi
23704     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23705       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23706     fi
23707   fi
23708
23709   if test "$SWIG" != "none"; then
23710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23711 $as_echo_n "checking swig version... " >&6; }
23712     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23713                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23714     # We want the version as an integer so we can test against
23715     # which version we're using.  SWIG doesn't provide this
23716     # to us so we have to come up with it on our own.
23717     # The major is passed straight through,
23718     # the minor is zero padded to two places,
23719     # and the patch level is zero padded to three places.
23720     # e.g. 1.3.24 becomes 103024
23721     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23722                   $SED -e 's/[^0-9\.].*$//' \
23723                       -e 's/\.\([0-9]\)$/.0\1/' \
23724                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23725                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23727 $as_echo "$SWIG_VERSION_RAW" >&6; }
23728     # If you change the required swig version number, don't forget to update:
23729     #   subversion/bindings/swig/INSTALL
23730     #   packages/rpm/redhat-8+/subversion.spec
23731     #   packages/rpm/redhat-7.x/subversion.spec
23732     #   packages/rpm/rhel-3/subversion.spec
23733     #   packages/rpm/rhel-4/subversion.spec
23734     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23735       SWIG_SUITABLE=yes
23736     else
23737       SWIG_SUITABLE=no
23738       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23739 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23740       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23741 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23742     fi
23743   fi
23744
23745   SWIG_PY_COMPILE="none"
23746   SWIG_PY_LINK="none"
23747   if test "$PYTHON" != "none"; then
23748     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23749 $as_echo "$as_me: Configuring python swig binding" >&6;}
23750
23751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23752 $as_echo_n "checking for Python includes... " >&6; }
23753 if ${ac_cv_python_includes+:} false; then :
23754   $as_echo_n "(cached) " >&6
23755 else
23756
23757       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23758
23759 fi
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23761 $as_echo "$ac_cv_python_includes" >&6; }
23762     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23763
23764     if test "$ac_cv_python_includes" = "none"; then
23765       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23766 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23767     fi
23768
23769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23770 $as_echo_n "checking for compiling Python extensions... " >&6; }
23771 if ${ac_cv_python_compile+:} false; then :
23772   $as_echo_n "(cached) " >&6
23773 else
23774
23775       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23776
23777 fi
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23779 $as_echo "$ac_cv_python_compile" >&6; }
23780     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23781
23782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23783 $as_echo_n "checking for linking Python extensions... " >&6; }
23784 if ${ac_cv_python_link+:} false; then :
23785   $as_echo_n "(cached) " >&6
23786 else
23787
23788       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23789
23790 fi
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23792 $as_echo "$ac_cv_python_link" >&6; }
23793     SWIG_PY_LINK="$ac_cv_python_link"
23794
23795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23796 $as_echo_n "checking for linking Python libraries... " >&6; }
23797 if ${ac_cv_python_libs+:} false; then :
23798   $as_echo_n "(cached) " >&6
23799 else
23800
23801       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23802
23803 fi
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23805 $as_echo "$ac_cv_python_libs" >&6; }
23806     SWIG_PY_LIBS="`
23807   input_flags="$ac_cv_python_libs"
23808   output_flags=""
23809   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23810   for flag in $input_flags; do
23811     filter="no"
23812     for dir in $filtered_dirs; do
23813       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23814         filter="yes"
23815         break
23816       fi
23817     done
23818     if test "$filter" = "no"; then
23819       output_flags="$output_flags $flag"
23820     fi
23821   done
23822   if test -n "$output_flags"; then
23823     printf "%s" "${output_flags# }"
23824   fi
23825 `"
23826
23827                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23828     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23830 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23831 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23832   $as_echo_n "(cached) " >&6
23833 else
23834
23835       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23836         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837 /* end confdefs.h.  */
23838 #include <apr.h>
23839                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23840 _ACEOF
23841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23842   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23843   svn_cv_pycfmt_apr_int64_t="L"
23844 fi
23845 rm -f conftest*
23846
23847       fi
23848       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23849         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23850 /* end confdefs.h.  */
23851 r
23852                      #include <apr.h>
23853                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23854 _ACEOF
23855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23856   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23857   svn_cv_pycfmt_apr_int64_t="l"
23858 fi
23859 rm -f conftest*
23860
23861       fi
23862       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23863         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h.  */
23865 #include <apr.h>
23866                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23867 _ACEOF
23868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23869   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23870   svn_cv_pycfmt_apr_int64_t="i"
23871 fi
23872 rm -f conftest*
23873
23874       fi
23875
23876 fi
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23878 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23879     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23880     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23881       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23882     fi
23883
23884 cat >>confdefs.h <<_ACEOF
23885 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23886 _ACEOF
23887
23888   fi
23889
23890   if test "$PERL" != "none"; then
23891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23892 $as_echo_n "checking perl version... " >&6; }
23893             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23895 $as_echo "$PERL_VERSION" >&6; }
23896     if test "$PERL_VERSION" -ge "5008000"; then
23897       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23898     else
23899       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23900 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23901     fi
23902   fi
23903
23904   SWIG_RB_COMPILE="none"
23905   SWIG_RB_LINK="none"
23906   if test "$RUBY" != "none"; then
23907     rbconfig="$RUBY -rrbconfig -e "
23908
23909     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23910                     rubyhdrdir sitedir sitelibdir sitearchdir libdir
23911     do
23912       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23913       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23914     done
23915
23916     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23917 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23918
23919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23920 $as_echo_n "checking for Ruby include path... " >&6; }
23921 if ${svn_cv_ruby_includes+:} false; then :
23922   $as_echo_n "(cached) " >&6
23923 else
23924
23925     if test -d "$rbconfig_rubyhdrdir"; then
23926             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23927     else
23928             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23929     fi
23930
23931 fi
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23933 $as_echo "$svn_cv_ruby_includes" >&6; }
23934     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23935
23936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23937 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23938 if ${svn_cv_ruby_compile+:} false; then :
23939   $as_echo_n "(cached) " >&6
23940 else
23941
23942       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23943
23944 fi
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23946 $as_echo "$svn_cv_ruby_compile" >&6; }
23947     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23948
23949   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23950
23951
23952   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23953
23954
23955   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23956
23957         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23958
23959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23960 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23961 if ${svn_cv_ruby_link+:} false; then :
23962   $as_echo_n "(cached) " >&6
23963 else
23964
23965       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23966                            $rbconfig_LDSHARED`"
23967       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23968       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23969
23970 fi
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23972 $as_echo "$svn_cv_ruby_link" >&6; }
23973     SWIG_RB_LINK="$svn_cv_ruby_link"
23974
23975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23976 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23977 if ${ac_cv_ruby_libs+:} false; then :
23978   $as_echo_n "(cached) " >&6
23979 else
23980
23981       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23982
23983 fi
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23985 $as_echo "$ac_cv_ruby_libs" >&6; }
23986     SWIG_RB_LIBS="`
23987   input_flags="$ac_cv_ruby_libs"
23988   output_flags=""
23989   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23990   for flag in $input_flags; do
23991     filter="no"
23992     for dir in $filtered_dirs; do
23993       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23994         filter="yes"
23995         break
23996       fi
23997     done
23998     if test "$filter" = "no"; then
23999       output_flags="$output_flags $flag"
24000     fi
24001   done
24002   if test -n "$output_flags"; then
24003     printf "%s" "${output_flags# }"
24004   fi
24005 `"
24006
24007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24008 $as_echo_n "checking for rb_errinfo... " >&6; }
24009     old_CFLAGS="$CFLAGS"
24010     old_LIBS="$LIBS"
24011     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24012
24013   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24014
24015
24016   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24017
24018
24019   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24020
24021     LIBS="$SWIG_RB_LIBS"
24022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24023 /* end confdefs.h.  */
24024
24025 #include <ruby.h>
24026 int main()
24027 {rb_errinfo();}
24028 _ACEOF
24029 if ac_fn_c_try_link "$LINENO"; then :
24030   have_rb_errinfo="yes"
24031 else
24032   have_rb_errinfo="no"
24033 fi
24034 rm -f core conftest.err conftest.$ac_objext \
24035     conftest$ac_exeext conftest.$ac_ext
24036     if test "$have_rb_errinfo" = "yes"; then
24037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24038 $as_echo "yes" >&6; }
24039
24040 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24041
24042     else
24043       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24044 $as_echo "no" >&6; }
24045     fi
24046     CFLAGS="$old_CFLAGS"
24047     LIBS="$old_LIBS"
24048
24049     if ${svn_cv_ruby_sitedir+:} false; then :
24050   $as_echo_n "(cached) " >&6
24051 else
24052
24053       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24054
24055 fi
24056
24057
24058 # Check whether --with-ruby-sitedir was given.
24059 if test "${with_ruby_sitedir+set}" = set; then :
24060   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24061 else
24062   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24063 fi
24064
24065
24066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24067 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24068     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24069   $as_echo_n "(cached) " >&6
24070 else
24071
24072       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24073                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24074
24075 fi
24076
24077     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24079 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24080
24081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24082 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24083     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24084   $as_echo_n "(cached) " >&6
24085 else
24086
24087       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24088                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24089
24090 fi
24091
24092     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24094 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24095
24096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24097 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24098     if ${svn_cv_ruby_test_verbose+:} false; then :
24099   $as_echo_n "(cached) " >&6
24100 else
24101
24102       svn_cv_ruby_test_verbose="normal"
24103
24104 fi
24105
24106
24107 # Check whether --with-ruby-test-verbose was given.
24108 if test "${with_ruby_test_verbose+set}" = set; then :
24109   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24110 else
24111   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24112 fi
24113
24114       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24115       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24116 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24117   fi
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132       ;;
24133     esac
24134
24135 else
24136
24137
24138   where=check
24139
24140   if test $where = no; then
24141     SWIG=none
24142   elif test $where = check; then
24143     # Extract the first word of "swig", so it can be a program name with args.
24144 set dummy swig; ac_word=$2
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24146 $as_echo_n "checking for $ac_word... " >&6; }
24147 if ${ac_cv_path_SWIG+:} false; then :
24148   $as_echo_n "(cached) " >&6
24149 else
24150   case $SWIG in
24151   [\\/]* | ?:[\\/]*)
24152   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24153   ;;
24154   *)
24155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24156 for as_dir in $PATH
24157 do
24158   IFS=$as_save_IFS
24159   test -z "$as_dir" && as_dir=.
24160     for ac_exec_ext in '' $ac_executable_extensions; do
24161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24162     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24164     break 2
24165   fi
24166 done
24167   done
24168 IFS=$as_save_IFS
24169
24170   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24171   ;;
24172 esac
24173 fi
24174 SWIG=$ac_cv_path_SWIG
24175 if test -n "$SWIG"; then
24176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24177 $as_echo "$SWIG" >&6; }
24178 else
24179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24180 $as_echo "no" >&6; }
24181 fi
24182
24183
24184   else
24185     if test -f "$where"; then
24186       SWIG="$where"
24187     else
24188       SWIG="$where/bin/swig"
24189     fi
24190     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24191       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24192     fi
24193   fi
24194
24195   if test "$SWIG" != "none"; then
24196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24197 $as_echo_n "checking swig version... " >&6; }
24198     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24199                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24200     # We want the version as an integer so we can test against
24201     # which version we're using.  SWIG doesn't provide this
24202     # to us so we have to come up with it on our own.
24203     # The major is passed straight through,
24204     # the minor is zero padded to two places,
24205     # and the patch level is zero padded to three places.
24206     # e.g. 1.3.24 becomes 103024
24207     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24208                   $SED -e 's/[^0-9\.].*$//' \
24209                       -e 's/\.\([0-9]\)$/.0\1/' \
24210                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24211                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24213 $as_echo "$SWIG_VERSION_RAW" >&6; }
24214     # If you change the required swig version number, don't forget to update:
24215     #   subversion/bindings/swig/INSTALL
24216     #   packages/rpm/redhat-8+/subversion.spec
24217     #   packages/rpm/redhat-7.x/subversion.spec
24218     #   packages/rpm/rhel-3/subversion.spec
24219     #   packages/rpm/rhel-4/subversion.spec
24220     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24221       SWIG_SUITABLE=yes
24222     else
24223       SWIG_SUITABLE=no
24224       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24225 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24226       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
24227 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
24228     fi
24229   fi
24230
24231   SWIG_PY_COMPILE="none"
24232   SWIG_PY_LINK="none"
24233   if test "$PYTHON" != "none"; then
24234     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24235 $as_echo "$as_me: Configuring python swig binding" >&6;}
24236
24237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24238 $as_echo_n "checking for Python includes... " >&6; }
24239 if ${ac_cv_python_includes+:} false; then :
24240   $as_echo_n "(cached) " >&6
24241 else
24242
24243       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24244
24245 fi
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24247 $as_echo "$ac_cv_python_includes" >&6; }
24248     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24249
24250     if test "$ac_cv_python_includes" = "none"; then
24251       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24252 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24253     fi
24254
24255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24256 $as_echo_n "checking for compiling Python extensions... " >&6; }
24257 if ${ac_cv_python_compile+:} false; then :
24258   $as_echo_n "(cached) " >&6
24259 else
24260
24261       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24262
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24265 $as_echo "$ac_cv_python_compile" >&6; }
24266     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24267
24268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24269 $as_echo_n "checking for linking Python extensions... " >&6; }
24270 if ${ac_cv_python_link+:} false; then :
24271   $as_echo_n "(cached) " >&6
24272 else
24273
24274       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24275
24276 fi
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24278 $as_echo "$ac_cv_python_link" >&6; }
24279     SWIG_PY_LINK="$ac_cv_python_link"
24280
24281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24282 $as_echo_n "checking for linking Python libraries... " >&6; }
24283 if ${ac_cv_python_libs+:} false; then :
24284   $as_echo_n "(cached) " >&6
24285 else
24286
24287       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24288
24289 fi
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24291 $as_echo "$ac_cv_python_libs" >&6; }
24292     SWIG_PY_LIBS="`
24293   input_flags="$ac_cv_python_libs"
24294   output_flags=""
24295   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24296   for flag in $input_flags; do
24297     filter="no"
24298     for dir in $filtered_dirs; do
24299       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24300         filter="yes"
24301         break
24302       fi
24303     done
24304     if test "$filter" = "no"; then
24305       output_flags="$output_flags $flag"
24306     fi
24307   done
24308   if test -n "$output_flags"; then
24309     printf "%s" "${output_flags# }"
24310   fi
24311 `"
24312
24313                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24314     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24316 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24317 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24318   $as_echo_n "(cached) " >&6
24319 else
24320
24321       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24322         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24323 /* end confdefs.h.  */
24324 #include <apr.h>
24325                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24326 _ACEOF
24327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24328   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24329   svn_cv_pycfmt_apr_int64_t="L"
24330 fi
24331 rm -f conftest*
24332
24333       fi
24334       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24335         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24336 /* end confdefs.h.  */
24337 r
24338                      #include <apr.h>
24339                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24340 _ACEOF
24341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24342   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24343   svn_cv_pycfmt_apr_int64_t="l"
24344 fi
24345 rm -f conftest*
24346
24347       fi
24348       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24349         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h.  */
24351 #include <apr.h>
24352                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24353 _ACEOF
24354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24355   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24356   svn_cv_pycfmt_apr_int64_t="i"
24357 fi
24358 rm -f conftest*
24359
24360       fi
24361
24362 fi
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24364 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24365     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24366     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24367       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24368     fi
24369
24370 cat >>confdefs.h <<_ACEOF
24371 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24372 _ACEOF
24373
24374   fi
24375
24376   if test "$PERL" != "none"; then
24377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24378 $as_echo_n "checking perl version... " >&6; }
24379             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24381 $as_echo "$PERL_VERSION" >&6; }
24382     if test "$PERL_VERSION" -ge "5008000"; then
24383       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24384     else
24385       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24386 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24387     fi
24388   fi
24389
24390   SWIG_RB_COMPILE="none"
24391   SWIG_RB_LINK="none"
24392   if test "$RUBY" != "none"; then
24393     rbconfig="$RUBY -rrbconfig -e "
24394
24395     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24396                     rubyhdrdir sitedir sitelibdir sitearchdir libdir
24397     do
24398       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24399       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24400     done
24401
24402     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24403 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24404
24405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24406 $as_echo_n "checking for Ruby include path... " >&6; }
24407 if ${svn_cv_ruby_includes+:} false; then :
24408   $as_echo_n "(cached) " >&6
24409 else
24410
24411     if test -d "$rbconfig_rubyhdrdir"; then
24412             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24413     else
24414             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24415     fi
24416
24417 fi
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24419 $as_echo "$svn_cv_ruby_includes" >&6; }
24420     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24421
24422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24423 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24424 if ${svn_cv_ruby_compile+:} false; then :
24425   $as_echo_n "(cached) " >&6
24426 else
24427
24428       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24429
24430 fi
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24432 $as_echo "$svn_cv_ruby_compile" >&6; }
24433     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24434
24435   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24436
24437
24438   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24439
24440
24441   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24442
24443         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24444
24445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24446 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24447 if ${svn_cv_ruby_link+:} false; then :
24448   $as_echo_n "(cached) " >&6
24449 else
24450
24451       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24452                            $rbconfig_LDSHARED`"
24453       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24454       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24455
24456 fi
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24458 $as_echo "$svn_cv_ruby_link" >&6; }
24459     SWIG_RB_LINK="$svn_cv_ruby_link"
24460
24461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24462 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24463 if ${ac_cv_ruby_libs+:} false; then :
24464   $as_echo_n "(cached) " >&6
24465 else
24466
24467       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24468
24469 fi
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24471 $as_echo "$ac_cv_ruby_libs" >&6; }
24472     SWIG_RB_LIBS="`
24473   input_flags="$ac_cv_ruby_libs"
24474   output_flags=""
24475   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24476   for flag in $input_flags; do
24477     filter="no"
24478     for dir in $filtered_dirs; do
24479       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24480         filter="yes"
24481         break
24482       fi
24483     done
24484     if test "$filter" = "no"; then
24485       output_flags="$output_flags $flag"
24486     fi
24487   done
24488   if test -n "$output_flags"; then
24489     printf "%s" "${output_flags# }"
24490   fi
24491 `"
24492
24493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24494 $as_echo_n "checking for rb_errinfo... " >&6; }
24495     old_CFLAGS="$CFLAGS"
24496     old_LIBS="$LIBS"
24497     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24498
24499   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24500
24501
24502   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24503
24504
24505   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24506
24507     LIBS="$SWIG_RB_LIBS"
24508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24509 /* end confdefs.h.  */
24510
24511 #include <ruby.h>
24512 int main()
24513 {rb_errinfo();}
24514 _ACEOF
24515 if ac_fn_c_try_link "$LINENO"; then :
24516   have_rb_errinfo="yes"
24517 else
24518   have_rb_errinfo="no"
24519 fi
24520 rm -f core conftest.err conftest.$ac_objext \
24521     conftest$ac_exeext conftest.$ac_ext
24522     if test "$have_rb_errinfo" = "yes"; then
24523       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24524 $as_echo "yes" >&6; }
24525
24526 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24527
24528     else
24529       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24530 $as_echo "no" >&6; }
24531     fi
24532     CFLAGS="$old_CFLAGS"
24533     LIBS="$old_LIBS"
24534
24535     if ${svn_cv_ruby_sitedir+:} false; then :
24536   $as_echo_n "(cached) " >&6
24537 else
24538
24539       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24540
24541 fi
24542
24543
24544 # Check whether --with-ruby-sitedir was given.
24545 if test "${with_ruby_sitedir+set}" = set; then :
24546   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24547 else
24548   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24549 fi
24550
24551
24552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24553 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24554     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24555   $as_echo_n "(cached) " >&6
24556 else
24557
24558       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24559                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24560
24561 fi
24562
24563     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24565 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24566
24567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24568 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24569     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24570   $as_echo_n "(cached) " >&6
24571 else
24572
24573       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24574                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24575
24576 fi
24577
24578     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24580 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24581
24582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24583 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24584     if ${svn_cv_ruby_test_verbose+:} false; then :
24585   $as_echo_n "(cached) " >&6
24586 else
24587
24588       svn_cv_ruby_test_verbose="normal"
24589
24590 fi
24591
24592
24593 # Check whether --with-ruby-test-verbose was given.
24594 if test "${with_ruby_test_verbose+set}" = set; then :
24595   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24596 else
24597   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24598 fi
24599
24600       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24602 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24603   fi
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619 fi
24620
24621
24622
24623
24624
24625 # Check whether --with-ctypesgen was given.
24626 if test "${with_ctypesgen+set}" = set; then :
24627   withval=$with_ctypesgen;
24628     case "$withval" in
24629       "no")
24630
24631   where=no
24632
24633   CTYPESGEN=none
24634
24635   if test $where = check; then
24636     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24637 set dummy "ctypesgen.py"; ac_word=$2
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24639 $as_echo_n "checking for $ac_word... " >&6; }
24640 if ${ac_cv_path_CTYPESGEN+:} false; then :
24641   $as_echo_n "(cached) " >&6
24642 else
24643   case $CTYPESGEN in
24644   [\\/]* | ?:[\\/]*)
24645   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24646   ;;
24647   *)
24648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24649 for as_dir in $PATH
24650 do
24651   IFS=$as_save_IFS
24652   test -z "$as_dir" && as_dir=.
24653     for ac_exec_ext in '' $ac_executable_extensions; do
24654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24655     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24657     break 2
24658   fi
24659 done
24660   done
24661 IFS=$as_save_IFS
24662
24663   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24664   ;;
24665 esac
24666 fi
24667 CTYPESGEN=$ac_cv_path_CTYPESGEN
24668 if test -n "$CTYPESGEN"; then
24669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24670 $as_echo "$CTYPESGEN" >&6; }
24671 else
24672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24673 $as_echo "no" >&6; }
24674 fi
24675
24676
24677   elif test $where != no; then
24678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24679 $as_echo_n "checking for ctypesgen.py... " >&6; }
24680
24681     if test -f "$where"; then
24682       CTYPESGEN="$where"
24683     elif test -f "$where/bin/ctypesgen.py"; then
24684       CTYPESGEN="$where/bin/ctypesgen.py"
24685     else
24686       CTYPESGEN="$where/ctypesgen.py"
24687     fi
24688
24689     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24690       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24691                     $where/bin/ctypesgen.py" "$LINENO" 5
24692     else
24693       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24694 $as_echo "$CTYPESGEN" >&6; }
24695     fi
24696   fi
24697
24698
24699
24700       ;;
24701       "yes")
24702
24703   where=check
24704
24705   CTYPESGEN=none
24706
24707   if test $where = check; then
24708     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24709 set dummy "ctypesgen.py"; ac_word=$2
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24711 $as_echo_n "checking for $ac_word... " >&6; }
24712 if ${ac_cv_path_CTYPESGEN+:} false; then :
24713   $as_echo_n "(cached) " >&6
24714 else
24715   case $CTYPESGEN in
24716   [\\/]* | ?:[\\/]*)
24717   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24718   ;;
24719   *)
24720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24721 for as_dir in $PATH
24722 do
24723   IFS=$as_save_IFS
24724   test -z "$as_dir" && as_dir=.
24725     for ac_exec_ext in '' $ac_executable_extensions; do
24726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24727     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24729     break 2
24730   fi
24731 done
24732   done
24733 IFS=$as_save_IFS
24734
24735   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24736   ;;
24737 esac
24738 fi
24739 CTYPESGEN=$ac_cv_path_CTYPESGEN
24740 if test -n "$CTYPESGEN"; then
24741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24742 $as_echo "$CTYPESGEN" >&6; }
24743 else
24744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24745 $as_echo "no" >&6; }
24746 fi
24747
24748
24749   elif test $where != no; then
24750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24751 $as_echo_n "checking for ctypesgen.py... " >&6; }
24752
24753     if test -f "$where"; then
24754       CTYPESGEN="$where"
24755     elif test -f "$where/bin/ctypesgen.py"; then
24756       CTYPESGEN="$where/bin/ctypesgen.py"
24757     else
24758       CTYPESGEN="$where/ctypesgen.py"
24759     fi
24760
24761     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24762       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24763                     $where/bin/ctypesgen.py" "$LINENO" 5
24764     else
24765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24766 $as_echo "$CTYPESGEN" >&6; }
24767     fi
24768   fi
24769
24770
24771
24772       ;;
24773       *)
24774
24775   where=$withval
24776
24777   CTYPESGEN=none
24778
24779   if test $where = check; then
24780     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24781 set dummy "ctypesgen.py"; ac_word=$2
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24783 $as_echo_n "checking for $ac_word... " >&6; }
24784 if ${ac_cv_path_CTYPESGEN+:} false; then :
24785   $as_echo_n "(cached) " >&6
24786 else
24787   case $CTYPESGEN in
24788   [\\/]* | ?:[\\/]*)
24789   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24790   ;;
24791   *)
24792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24793 for as_dir in $PATH
24794 do
24795   IFS=$as_save_IFS
24796   test -z "$as_dir" && as_dir=.
24797     for ac_exec_ext in '' $ac_executable_extensions; do
24798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24799     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24801     break 2
24802   fi
24803 done
24804   done
24805 IFS=$as_save_IFS
24806
24807   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24808   ;;
24809 esac
24810 fi
24811 CTYPESGEN=$ac_cv_path_CTYPESGEN
24812 if test -n "$CTYPESGEN"; then
24813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24814 $as_echo "$CTYPESGEN" >&6; }
24815 else
24816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24817 $as_echo "no" >&6; }
24818 fi
24819
24820
24821   elif test $where != no; then
24822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24823 $as_echo_n "checking for ctypesgen.py... " >&6; }
24824
24825     if test -f "$where"; then
24826       CTYPESGEN="$where"
24827     elif test -f "$where/bin/ctypesgen.py"; then
24828       CTYPESGEN="$where/bin/ctypesgen.py"
24829     else
24830       CTYPESGEN="$where/ctypesgen.py"
24831     fi
24832
24833     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24834       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24835                     $where/bin/ctypesgen.py" "$LINENO" 5
24836     else
24837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24838 $as_echo "$CTYPESGEN" >&6; }
24839     fi
24840   fi
24841
24842
24843
24844       ;;
24845     esac
24846
24847 else
24848
24849
24850   where=check
24851
24852   CTYPESGEN=none
24853
24854   if test $where = check; then
24855     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24856 set dummy "ctypesgen.py"; ac_word=$2
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24858 $as_echo_n "checking for $ac_word... " >&6; }
24859 if ${ac_cv_path_CTYPESGEN+:} false; then :
24860   $as_echo_n "(cached) " >&6
24861 else
24862   case $CTYPESGEN in
24863   [\\/]* | ?:[\\/]*)
24864   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24865   ;;
24866   *)
24867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24868 for as_dir in $PATH
24869 do
24870   IFS=$as_save_IFS
24871   test -z "$as_dir" && as_dir=.
24872     for ac_exec_ext in '' $ac_executable_extensions; do
24873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24874     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24876     break 2
24877   fi
24878 done
24879   done
24880 IFS=$as_save_IFS
24881
24882   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24883   ;;
24884 esac
24885 fi
24886 CTYPESGEN=$ac_cv_path_CTYPESGEN
24887 if test -n "$CTYPESGEN"; then
24888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24889 $as_echo "$CTYPESGEN" >&6; }
24890 else
24891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24892 $as_echo "no" >&6; }
24893 fi
24894
24895
24896   elif test $where != no; then
24897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24898 $as_echo_n "checking for ctypesgen.py... " >&6; }
24899
24900     if test -f "$where"; then
24901       CTYPESGEN="$where"
24902     elif test -f "$where/bin/ctypesgen.py"; then
24903       CTYPESGEN="$where/bin/ctypesgen.py"
24904     else
24905       CTYPESGEN="$where/ctypesgen.py"
24906     fi
24907
24908     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24909       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24910                     $where/bin/ctypesgen.py" "$LINENO" 5
24911     else
24912       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24913 $as_echo "$CTYPESGEN" >&6; }
24914     fi
24915   fi
24916
24917
24918
24919
24920 fi
24921
24922
24923
24924 # Check whether --enable-runtime-module-search was given.
24925 if test "${enable_runtime_module_search+set}" = set; then :
24926   enableval=$enable_runtime_module_search;
24927     if test "$enableval" = "yes"; then
24928       use_dso=yes
24929       if test "$svn_enable_shared" = "no"; then
24930         as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
24931       fi
24932
24933 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
24934
24935     fi
24936
24937 fi
24938
24939
24940 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
24941
24942 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
24943
24944   svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
24945   svn_ra_lib_install_deps="install-ramod-lib"
24946   svn_ra_lib_link="\$(RA_LOCAL_LINK)"
24947
24948
24949 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
24950
24951   svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
24952   svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
24953
24954   if test "$svn_lib_serf" = "yes"; then
24955
24956 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
24957
24958     svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
24959     svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
24960     svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
24961   fi
24962
24963   SVN_RA_LIB_DEPS=$svn_ra_lib_deps
24964   SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
24965   SVN_RA_LIB_LINK=$svn_ra_lib_link
24966
24967
24968 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
24969
24970   svn_fs_lib_deps="\$(FS_FS_DEPS)"
24971   svn_fs_lib_install_deps="install-fsmod-lib"
24972   svn_fs_lib_link="\$(FS_FS_LINK)"
24973
24974   if test "$svn_lib_berkeley_db" = "yes"; then
24975
24976 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
24977
24978     svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
24979     svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
24980     svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
24981   fi
24982
24983   SVN_FS_LIB_DEPS=$svn_fs_lib_deps
24984   SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
24985   SVN_FS_LIB_LINK=$svn_fs_lib_link
24986 fi
24987
24988
24989
24990
24991
24992
24993
24994
24995 # ==== JavaHL ================================================================
24996
24997 do_javahl_build=no
24998 # Check whether --enable-javahl was given.
24999 if test "${enable_javahl+set}" = set; then :
25000   enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
25001         do_javahl_build="yes"
25002     fi
25003
25004 fi
25005
25006
25007 JAVAHL_OBJDIR=""
25008 INSTALL_EXTRA_JAVAHL_LIB=""
25009 FIX_JAVAHL_LIB=""
25010 JAVAHL_TESTS_TARGET=""
25011 JAVAHL_COMPAT_TESTS_TARGET=""
25012 LT_CXX_LIBADD=""
25013 if test "$do_javahl_build" = "yes"; then
25014     if test "$JDK_SUITABLE" = "no"; then
25015     as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
25016                   Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
25017   fi
25018
25019     JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
25020
25021   os_arch=`uname`
25022   if test "$os_arch" = "Darwin"; then
25023         INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
25024     FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
25025   fi
25026   # This segment (and the rest of r10800) is very likely unnecessary
25027   # with libtool 1.5, which automatically adds libstdc++ as a
25028   # dependency to the C++ libraries it builds.  So at some future time
25029   # when autogen.sh requires libtool 1.5 or higher, we can get rid of
25030   # it.
25031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
25032 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
25033   if test "x$ac_compiler_gnu" = "xyes"; then
25034     LT_CXX_LIBADD="-lstdc++"
25035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
25036 $as_echo "$LT_CXX_LIBADD" >&6; }
25037   else
25038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
25039 $as_echo "none needed" >&6; }
25040   fi
25041 fi
25042
25043
25044
25045
25046
25047
25048 # Check whether --with-junit was given.
25049 if test "${with_junit+set}" = set; then :
25050   withval=$with_junit;
25051     if test "$withval" != "no"; then
25052       if test -n "$JAVA_CLASSPATH"; then
25053         JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
25054       else
25055         JAVA_CLASSPATH="$withval"
25056       fi
25057       JAVAHL_TESTS_TARGET="javahl-tests"
25058       JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
25059     fi
25060
25061 fi
25062
25063
25064
25065
25066
25067 # ==== Miscellaneous bits ====================================================
25068
25069 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
25070 ### I think we get this flag from APR, so the fix probably belongs there
25071 if test "$CC" = "clang"; then
25072
25073   CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25074
25075 fi
25076
25077 # Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well.
25078 SWIG_CPPFLAGS="$CPPFLAGS"
25079
25080   SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25081
25082
25083
25084
25085 cat >>confdefs.h <<_ACEOF
25086 #define SVN_PATH_LOCAL_SEPARATOR '/'
25087 _ACEOF
25088
25089
25090
25091 cat >>confdefs.h <<_ACEOF
25092 #define SVN_NULL_DEVICE_NAME "/dev/null"
25093 _ACEOF
25094
25095
25096 DEFAULT_FS_TYPE="fsfs"
25097
25098 cat >>confdefs.h <<_ACEOF
25099 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
25100 _ACEOF
25101
25102
25103 DEFAULT_HTTP_LIBRARY="serf"
25104
25105 cat >>confdefs.h <<_ACEOF
25106 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
25107 _ACEOF
25108
25109
25110 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
25111 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
25112 case "$host" in
25113   *bsdi*)
25114     # Check whether they've installed GNU make
25115     if ! make --version > /dev/null 2>&1; then
25116       # BSDi make
25117       INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
25118     fi
25119     ;;
25120 esac
25121
25122
25123 # ==== Detection complete - output and run config.status =====================
25124
25125 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
25126
25127 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
25128
25129 ac_config_files="$ac_config_files Makefile"
25130
25131
25132
25133   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
25134   ac_config_files="$ac_config_files tools/backup/hot-backup.py"
25135
25136
25137   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
25138   ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
25139
25140
25141   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
25142   ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
25143
25144 if test -e packages/solaris/pkginfo.in; then
25145
25146   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
25147   ac_config_files="$ac_config_files packages/solaris/pkginfo"
25148
25149 fi
25150
25151
25152 # Ensure that SWIG is checked after reconfiguration.
25153 rm -f .swig_checked
25154
25155
25156 cat >>confdefs.h <<_ACEOF
25157 #define SVN_BUILD_HOST "${host}"
25158 _ACEOF
25159
25160
25161
25162 cat >>confdefs.h <<_ACEOF
25163 #define SVN_BUILD_TARGET "${target}"
25164 _ACEOF
25165
25166
25167 cat >confcache <<\_ACEOF
25168 # This file is a shell script that caches the results of configure
25169 # tests run on this system so they can be shared between configure
25170 # scripts and configure runs, see configure's option --config-cache.
25171 # It is not useful on other systems.  If it contains results you don't
25172 # want to keep, you may remove or edit it.
25173 #
25174 # config.status only pays attention to the cache file if you give it
25175 # the --recheck option to rerun configure.
25176 #
25177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25179 # following values.
25180
25181 _ACEOF
25182
25183 # The following way of writing the cache mishandles newlines in values,
25184 # but we know of no workaround that is simple, portable, and efficient.
25185 # So, we kill variables containing newlines.
25186 # Ultrix sh set writes to stderr and can't be redirected directly,
25187 # and sets the high bit in the cache file unless we assign to the vars.
25188 (
25189   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25190     eval ac_val=\$$ac_var
25191     case $ac_val in #(
25192     *${as_nl}*)
25193       case $ac_var in #(
25194       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25196       esac
25197       case $ac_var in #(
25198       _ | IFS | as_nl) ;; #(
25199       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25200       *) { eval $ac_var=; unset $ac_var;} ;;
25201       esac ;;
25202     esac
25203   done
25204
25205   (set) 2>&1 |
25206     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25207     *${as_nl}ac_space=\ *)
25208       # `set' does not quote correctly, so add quotes: double-quote
25209       # substitution turns \\\\ into \\, and sed turns \\ into \.
25210       sed -n \
25211         "s/'/'\\\\''/g;
25212           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25213       ;; #(
25214     *)
25215       # `set' quotes correctly as required by POSIX, so do not add quotes.
25216       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25217       ;;
25218     esac |
25219     sort
25220 ) |
25221   sed '
25222      /^ac_cv_env_/b end
25223      t clear
25224      :clear
25225      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25226      t end
25227      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25228      :end' >>confcache
25229 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25230   if test -w "$cache_file"; then
25231     if test "x$cache_file" != "x/dev/null"; then
25232       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25233 $as_echo "$as_me: updating cache $cache_file" >&6;}
25234       if test ! -f "$cache_file" || test -h "$cache_file"; then
25235         cat confcache >"$cache_file"
25236       else
25237         case $cache_file in #(
25238         */* | ?:*)
25239           mv -f confcache "$cache_file"$$ &&
25240           mv -f "$cache_file"$$ "$cache_file" ;; #(
25241         *)
25242           mv -f confcache "$cache_file" ;;
25243         esac
25244       fi
25245     fi
25246   else
25247     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25249   fi
25250 fi
25251 rm -f confcache
25252
25253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25254 # Let make expand exec_prefix.
25255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25256
25257 DEFS=-DHAVE_CONFIG_H
25258
25259 ac_libobjs=
25260 ac_ltlibobjs=
25261 U=
25262 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25263   # 1. Remove the extension, and $U if already installed.
25264   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25265   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25266   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25267   #    will be set to the directory where LIBOBJS objects are built.
25268   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25269   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25270 done
25271 LIBOBJS=$ac_libobjs
25272
25273 LTLIBOBJS=$ac_ltlibobjs
25274
25275
25276
25277 : "${CONFIG_STATUS=./config.status}"
25278 ac_write_fail=0
25279 ac_clean_files_save=$ac_clean_files
25280 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25282 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25283 as_write_fail=0
25284 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25285 #! $SHELL
25286 # Generated by $as_me.
25287 # Run this file to recreate the current configuration.
25288 # Compiler output produced by configure, useful for debugging
25289 # configure, is in config.log if it exists.
25290
25291 debug=false
25292 ac_cs_recheck=false
25293 ac_cs_silent=false
25294
25295 SHELL=\${CONFIG_SHELL-$SHELL}
25296 export SHELL
25297 _ASEOF
25298 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25299 ## -------------------- ##
25300 ## M4sh Initialization. ##
25301 ## -------------------- ##
25302
25303 # Be more Bourne compatible
25304 DUALCASE=1; export DUALCASE # for MKS sh
25305 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25306   emulate sh
25307   NULLCMD=:
25308   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25309   # is contrary to our usage.  Disable this feature.
25310   alias -g '${1+"$@"}'='"$@"'
25311   setopt NO_GLOB_SUBST
25312 else
25313   case `(set -o) 2>/dev/null` in #(
25314   *posix*) :
25315     set -o posix ;; #(
25316   *) :
25317      ;;
25318 esac
25319 fi
25320
25321
25322 as_nl='
25323 '
25324 export as_nl
25325 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25326 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25327 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25328 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25329 # Prefer a ksh shell builtin over an external printf program on Solaris,
25330 # but without wasting forks for bash or zsh.
25331 if test -z "$BASH_VERSION$ZSH_VERSION" \
25332     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25333   as_echo='print -r --'
25334   as_echo_n='print -rn --'
25335 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25336   as_echo='printf %s\n'
25337   as_echo_n='printf %s'
25338 else
25339   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25340     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25341     as_echo_n='/usr/ucb/echo -n'
25342   else
25343     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25344     as_echo_n_body='eval
25345       arg=$1;
25346       case $arg in #(
25347       *"$as_nl"*)
25348         expr "X$arg" : "X\\(.*\\)$as_nl";
25349         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25350       esac;
25351       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25352     '
25353     export as_echo_n_body
25354     as_echo_n='sh -c $as_echo_n_body as_echo'
25355   fi
25356   export as_echo_body
25357   as_echo='sh -c $as_echo_body as_echo'
25358 fi
25359
25360 # The user is always right.
25361 if test "${PATH_SEPARATOR+set}" != set; then
25362   PATH_SEPARATOR=:
25363   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25364     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25365       PATH_SEPARATOR=';'
25366   }
25367 fi
25368
25369
25370 # IFS
25371 # We need space, tab and new line, in precisely that order.  Quoting is
25372 # there to prevent editors from complaining about space-tab.
25373 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25374 # splitting by setting IFS to empty value.)
25375 IFS=" ""        $as_nl"
25376
25377 # Find who we are.  Look in the path if we contain no directory separator.
25378 as_myself=
25379 case $0 in #((
25380   *[\\/]* ) as_myself=$0 ;;
25381   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25382 for as_dir in $PATH
25383 do
25384   IFS=$as_save_IFS
25385   test -z "$as_dir" && as_dir=.
25386     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25387   done
25388 IFS=$as_save_IFS
25389
25390      ;;
25391 esac
25392 # We did not find ourselves, most probably we were run as `sh COMMAND'
25393 # in which case we are not to be found in the path.
25394 if test "x$as_myself" = x; then
25395   as_myself=$0
25396 fi
25397 if test ! -f "$as_myself"; then
25398   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25399   exit 1
25400 fi
25401
25402 # Unset variables that we do not need and which cause bugs (e.g. in
25403 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25404 # suppresses any "Segmentation fault" message there.  '((' could
25405 # trigger a bug in pdksh 5.2.14.
25406 for as_var in BASH_ENV ENV MAIL MAILPATH
25407 do eval test x\${$as_var+set} = xset \
25408   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25409 done
25410 PS1='$ '
25411 PS2='> '
25412 PS4='+ '
25413
25414 # NLS nuisances.
25415 LC_ALL=C
25416 export LC_ALL
25417 LANGUAGE=C
25418 export LANGUAGE
25419
25420 # CDPATH.
25421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25422
25423
25424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25425 # ----------------------------------------
25426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25428 # script with STATUS, using 1 if that was 0.
25429 as_fn_error ()
25430 {
25431   as_status=$1; test $as_status -eq 0 && as_status=1
25432   if test "$4"; then
25433     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25434     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25435   fi
25436   $as_echo "$as_me: error: $2" >&2
25437   as_fn_exit $as_status
25438 } # as_fn_error
25439
25440
25441 # as_fn_set_status STATUS
25442 # -----------------------
25443 # Set $? to STATUS, without forking.
25444 as_fn_set_status ()
25445 {
25446   return $1
25447 } # as_fn_set_status
25448
25449 # as_fn_exit STATUS
25450 # -----------------
25451 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25452 as_fn_exit ()
25453 {
25454   set +e
25455   as_fn_set_status $1
25456   exit $1
25457 } # as_fn_exit
25458
25459 # as_fn_unset VAR
25460 # ---------------
25461 # Portably unset VAR.
25462 as_fn_unset ()
25463 {
25464   { eval $1=; unset $1;}
25465 }
25466 as_unset=as_fn_unset
25467 # as_fn_append VAR VALUE
25468 # ----------------------
25469 # Append the text in VALUE to the end of the definition contained in VAR. Take
25470 # advantage of any shell optimizations that allow amortized linear growth over
25471 # repeated appends, instead of the typical quadratic growth present in naive
25472 # implementations.
25473 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25474   eval 'as_fn_append ()
25475   {
25476     eval $1+=\$2
25477   }'
25478 else
25479   as_fn_append ()
25480   {
25481     eval $1=\$$1\$2
25482   }
25483 fi # as_fn_append
25484
25485 # as_fn_arith ARG...
25486 # ------------------
25487 # Perform arithmetic evaluation on the ARGs, and store the result in the
25488 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25489 # must be portable across $(()) and expr.
25490 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25491   eval 'as_fn_arith ()
25492   {
25493     as_val=$(( $* ))
25494   }'
25495 else
25496   as_fn_arith ()
25497   {
25498     as_val=`expr "$@" || test $? -eq 1`
25499   }
25500 fi # as_fn_arith
25501
25502
25503 if expr a : '\(a\)' >/dev/null 2>&1 &&
25504    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25505   as_expr=expr
25506 else
25507   as_expr=false
25508 fi
25509
25510 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25511   as_basename=basename
25512 else
25513   as_basename=false
25514 fi
25515
25516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25517   as_dirname=dirname
25518 else
25519   as_dirname=false
25520 fi
25521
25522 as_me=`$as_basename -- "$0" ||
25523 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25524          X"$0" : 'X\(//\)$' \| \
25525          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25526 $as_echo X/"$0" |
25527     sed '/^.*\/\([^/][^/]*\)\/*$/{
25528             s//\1/
25529             q
25530           }
25531           /^X\/\(\/\/\)$/{
25532             s//\1/
25533             q
25534           }
25535           /^X\/\(\/\).*/{
25536             s//\1/
25537             q
25538           }
25539           s/.*/./; q'`
25540
25541 # Avoid depending upon Character Ranges.
25542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25545 as_cr_digits='0123456789'
25546 as_cr_alnum=$as_cr_Letters$as_cr_digits
25547
25548 ECHO_C= ECHO_N= ECHO_T=
25549 case `echo -n x` in #(((((
25550 -n*)
25551   case `echo 'xy\c'` in
25552   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25553   xy)  ECHO_C='\c';;
25554   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25555        ECHO_T=' ';;
25556   esac;;
25557 *)
25558   ECHO_N='-n';;
25559 esac
25560
25561 rm -f conf$$ conf$$.exe conf$$.file
25562 if test -d conf$$.dir; then
25563   rm -f conf$$.dir/conf$$.file
25564 else
25565   rm -f conf$$.dir
25566   mkdir conf$$.dir 2>/dev/null
25567 fi
25568 if (echo >conf$$.file) 2>/dev/null; then
25569   if ln -s conf$$.file conf$$ 2>/dev/null; then
25570     as_ln_s='ln -s'
25571     # ... but there are two gotchas:
25572     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25573     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25574     # In both cases, we have to default to `cp -pR'.
25575     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25576       as_ln_s='cp -pR'
25577   elif ln conf$$.file conf$$ 2>/dev/null; then
25578     as_ln_s=ln
25579   else
25580     as_ln_s='cp -pR'
25581   fi
25582 else
25583   as_ln_s='cp -pR'
25584 fi
25585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25586 rmdir conf$$.dir 2>/dev/null
25587
25588
25589 # as_fn_mkdir_p
25590 # -------------
25591 # Create "$as_dir" as a directory, including parents if necessary.
25592 as_fn_mkdir_p ()
25593 {
25594
25595   case $as_dir in #(
25596   -*) as_dir=./$as_dir;;
25597   esac
25598   test -d "$as_dir" || eval $as_mkdir_p || {
25599     as_dirs=
25600     while :; do
25601       case $as_dir in #(
25602       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25603       *) as_qdir=$as_dir;;
25604       esac
25605       as_dirs="'$as_qdir' $as_dirs"
25606       as_dir=`$as_dirname -- "$as_dir" ||
25607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25608          X"$as_dir" : 'X\(//\)[^/]' \| \
25609          X"$as_dir" : 'X\(//\)$' \| \
25610          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25611 $as_echo X"$as_dir" |
25612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25613             s//\1/
25614             q
25615           }
25616           /^X\(\/\/\)[^/].*/{
25617             s//\1/
25618             q
25619           }
25620           /^X\(\/\/\)$/{
25621             s//\1/
25622             q
25623           }
25624           /^X\(\/\).*/{
25625             s//\1/
25626             q
25627           }
25628           s/.*/./; q'`
25629       test -d "$as_dir" && break
25630     done
25631     test -z "$as_dirs" || eval "mkdir $as_dirs"
25632   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25633
25634
25635 } # as_fn_mkdir_p
25636 if mkdir -p . 2>/dev/null; then
25637   as_mkdir_p='mkdir -p "$as_dir"'
25638 else
25639   test -d ./-p && rmdir ./-p
25640   as_mkdir_p=false
25641 fi
25642
25643
25644 # as_fn_executable_p FILE
25645 # -----------------------
25646 # Test if FILE is an executable regular file.
25647 as_fn_executable_p ()
25648 {
25649   test -f "$1" && test -x "$1"
25650 } # as_fn_executable_p
25651 as_test_x='test -x'
25652 as_executable_p=as_fn_executable_p
25653
25654 # Sed expression to map a string onto a valid CPP name.
25655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25656
25657 # Sed expression to map a string onto a valid variable name.
25658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25659
25660
25661 exec 6>&1
25662 ## ----------------------------------- ##
25663 ## Main body of $CONFIG_STATUS script. ##
25664 ## ----------------------------------- ##
25665 _ASEOF
25666 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25667
25668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25669 # Save the log message, to keep $0 and so on meaningful, and to
25670 # report actual input values of CONFIG_FILES etc. instead of their
25671 # values after options handling.
25672 ac_log="
25673 This file was extended by subversion $as_me 1.8.8, which was
25674 generated by GNU Autoconf 2.69.  Invocation command line was
25675
25676   CONFIG_FILES    = $CONFIG_FILES
25677   CONFIG_HEADERS  = $CONFIG_HEADERS
25678   CONFIG_LINKS    = $CONFIG_LINKS
25679   CONFIG_COMMANDS = $CONFIG_COMMANDS
25680   $ $0 $@
25681
25682 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25683 "
25684
25685 _ACEOF
25686
25687 case $ac_config_files in *"
25688 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25689 esac
25690
25691 case $ac_config_headers in *"
25692 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25693 esac
25694
25695
25696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25697 # Files that config.status was made for.
25698 config_files="$ac_config_files"
25699 config_headers="$ac_config_headers"
25700 config_commands="$ac_config_commands"
25701
25702 _ACEOF
25703
25704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25705 ac_cs_usage="\
25706 \`$as_me' instantiates files and other configuration actions
25707 from templates according to the current configuration.  Unless the files
25708 and actions are specified as TAGs, all are instantiated by default.
25709
25710 Usage: $0 [OPTION]... [TAG]...
25711
25712   -h, --help       print this help, then exit
25713   -V, --version    print version number and configuration settings, then exit
25714       --config     print configuration, then exit
25715   -q, --quiet, --silent
25716                    do not print progress messages
25717   -d, --debug      don't remove temporary files
25718       --recheck    update $as_me by reconfiguring in the same conditions
25719       --file=FILE[:TEMPLATE]
25720                    instantiate the configuration file FILE
25721       --header=FILE[:TEMPLATE]
25722                    instantiate the configuration header FILE
25723
25724 Configuration files:
25725 $config_files
25726
25727 Configuration headers:
25728 $config_headers
25729
25730 Configuration commands:
25731 $config_commands
25732
25733 Report bugs to <http://subversion.apache.org/>."
25734
25735 _ACEOF
25736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25737 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25738 ac_cs_version="\\
25739 subversion config.status 1.8.8
25740 configured by $0, generated by GNU Autoconf 2.69,
25741   with options \\"\$ac_cs_config\\"
25742
25743 Copyright (C) 2012 Free Software Foundation, Inc.
25744 This config.status script is free software; the Free Software Foundation
25745 gives unlimited permission to copy, distribute and modify it."
25746
25747 ac_pwd='$ac_pwd'
25748 srcdir='$srcdir'
25749 INSTALL='$INSTALL'
25750 AWK='$AWK'
25751 test -n "\$AWK" || AWK=awk
25752 _ACEOF
25753
25754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25755 # The default lists apply if the user does not specify any file.
25756 ac_need_defaults=:
25757 while test $# != 0
25758 do
25759   case $1 in
25760   --*=?*)
25761     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25762     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25763     ac_shift=:
25764     ;;
25765   --*=)
25766     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25767     ac_optarg=
25768     ac_shift=:
25769     ;;
25770   *)
25771     ac_option=$1
25772     ac_optarg=$2
25773     ac_shift=shift
25774     ;;
25775   esac
25776
25777   case $ac_option in
25778   # Handling of the options.
25779   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25780     ac_cs_recheck=: ;;
25781   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25782     $as_echo "$ac_cs_version"; exit ;;
25783   --config | --confi | --conf | --con | --co | --c )
25784     $as_echo "$ac_cs_config"; exit ;;
25785   --debug | --debu | --deb | --de | --d | -d )
25786     debug=: ;;
25787   --file | --fil | --fi | --f )
25788     $ac_shift
25789     case $ac_optarg in
25790     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25791     '') as_fn_error $? "missing file argument" ;;
25792     esac
25793     as_fn_append CONFIG_FILES " '$ac_optarg'"
25794     ac_need_defaults=false;;
25795   --header | --heade | --head | --hea )
25796     $ac_shift
25797     case $ac_optarg in
25798     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25799     esac
25800     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25801     ac_need_defaults=false;;
25802   --he | --h)
25803     # Conflict between --help and --header
25804     as_fn_error $? "ambiguous option: \`$1'
25805 Try \`$0 --help' for more information.";;
25806   --help | --hel | -h )
25807     $as_echo "$ac_cs_usage"; exit ;;
25808   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25809   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25810     ac_cs_silent=: ;;
25811
25812   # This is an error.
25813   -*) as_fn_error $? "unrecognized option: \`$1'
25814 Try \`$0 --help' for more information." ;;
25815
25816   *) as_fn_append ac_config_targets " $1"
25817      ac_need_defaults=false ;;
25818
25819   esac
25820   shift
25821 done
25822
25823 ac_configure_extra_args=
25824
25825 if $ac_cs_silent; then
25826   exec 6>/dev/null
25827   ac_configure_extra_args="$ac_configure_extra_args --silent"
25828 fi
25829
25830 _ACEOF
25831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25832 if \$ac_cs_recheck; then
25833   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25834   shift
25835   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25836   CONFIG_SHELL='$SHELL'
25837   export CONFIG_SHELL
25838   exec "\$@"
25839 fi
25840
25841 _ACEOF
25842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25843 exec 5>>config.log
25844 {
25845   echo
25846   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25847 ## Running $as_me. ##
25848 _ASBOX
25849   $as_echo "$ac_log"
25850 } >&5
25851
25852 _ACEOF
25853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25854 #
25855 # INIT-COMMANDS
25856 #
25857
25858
25859 # The HP-UX ksh and POSIX shell print the target directory to stdout
25860 # if CDPATH is set.
25861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25862
25863 sed_quote_subst='$sed_quote_subst'
25864 double_quote_subst='$double_quote_subst'
25865 delay_variable_subst='$delay_variable_subst'
25866 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25867 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25868 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25869 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25870 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25871 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25872 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25873 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25874 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25875 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25876 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25877 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25878 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25879 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25880 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25881 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25882 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25883 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25884 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25885 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25886 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25887 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25888 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25889 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25890 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25891 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25892 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25893 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25894 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25895 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25896 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25897 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25898 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25899 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25900 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25901 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25902 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25903 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25904 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25905 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25906 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25907 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25908 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25909 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25910 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25911 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25912 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25913 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25914 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25915 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25916 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25917 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25918 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25919 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25920 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25921 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25922 lt_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"`'
25923 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25924 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25925 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25926 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25927 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25928 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25929 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25930 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25931 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25932 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25933 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25934 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25935 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25936 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25937 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25938 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25939 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25940 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25941 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25942 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25943 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25944 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25945 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25946 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25947 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25948 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25949 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25950 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25951 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25952 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25953 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25954 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25955 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25956 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25957 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25958 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25959 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25960 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25961 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25962 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25963 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25964 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25965 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25966 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25967 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25968 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25969 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25970 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25971 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25972 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25973 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25974 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25975 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25976 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25977 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25978 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25979 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25980 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25981 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25982 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25983 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25984 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25985 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25986 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25987 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25988 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25989 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25990 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25991 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25992 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25993 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25994 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25995 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25996 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25997 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25998 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25999 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26000 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26001 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26002 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26003 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26004 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26005 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26006 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26007 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26008 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26009 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26010 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26011 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26012 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26013 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26014 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26015 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26016 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26017 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26018 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26019 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26020 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26021 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26022 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26023 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26024 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26025 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26026 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26027 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26028 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26029 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26030 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26031 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26032 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26033 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26034 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26035 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26036 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26037 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26038 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26039 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26040 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26041 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26042 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26043 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26044 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26045 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26046 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26047 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26048 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26049 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26050
26051 LTCC='$LTCC'
26052 LTCFLAGS='$LTCFLAGS'
26053 compiler='$compiler_DEFAULT'
26054
26055 # A function that is used when there is no print builtin or printf.
26056 func_fallback_echo ()
26057 {
26058   eval 'cat <<_LTECHO_EOF
26059 \$1
26060 _LTECHO_EOF'
26061 }
26062
26063 # Quote evaled strings.
26064 for var in SHELL \
26065 ECHO \
26066 PATH_SEPARATOR \
26067 SED \
26068 GREP \
26069 EGREP \
26070 FGREP \
26071 LD \
26072 NM \
26073 LN_S \
26074 lt_SP2NL \
26075 lt_NL2SP \
26076 reload_flag \
26077 OBJDUMP \
26078 deplibs_check_method \
26079 file_magic_cmd \
26080 file_magic_glob \
26081 want_nocaseglob \
26082 DLLTOOL \
26083 sharedlib_from_linklib_cmd \
26084 AR \
26085 AR_FLAGS \
26086 archiver_list_spec \
26087 STRIP \
26088 RANLIB \
26089 CC \
26090 CFLAGS \
26091 compiler \
26092 lt_cv_sys_global_symbol_pipe \
26093 lt_cv_sys_global_symbol_to_cdecl \
26094 lt_cv_sys_global_symbol_to_c_name_address \
26095 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26096 nm_file_list_spec \
26097 lt_prog_compiler_no_builtin_flag \
26098 lt_prog_compiler_pic \
26099 lt_prog_compiler_wl \
26100 lt_prog_compiler_static \
26101 lt_cv_prog_compiler_c_o \
26102 need_locks \
26103 MANIFEST_TOOL \
26104 DSYMUTIL \
26105 NMEDIT \
26106 LIPO \
26107 OTOOL \
26108 OTOOL64 \
26109 shrext_cmds \
26110 export_dynamic_flag_spec \
26111 whole_archive_flag_spec \
26112 compiler_needs_object \
26113 with_gnu_ld \
26114 allow_undefined_flag \
26115 no_undefined_flag \
26116 hardcode_libdir_flag_spec \
26117 hardcode_libdir_separator \
26118 exclude_expsyms \
26119 include_expsyms \
26120 file_list_spec \
26121 variables_saved_for_relink \
26122 libname_spec \
26123 library_names_spec \
26124 soname_spec \
26125 install_override_mode \
26126 finish_eval \
26127 old_striplib \
26128 striplib \
26129 compiler_lib_search_dirs \
26130 predep_objects \
26131 postdep_objects \
26132 predeps \
26133 postdeps \
26134 compiler_lib_search_path \
26135 LD_CXX \
26136 reload_flag_CXX \
26137 compiler_CXX \
26138 lt_prog_compiler_no_builtin_flag_CXX \
26139 lt_prog_compiler_pic_CXX \
26140 lt_prog_compiler_wl_CXX \
26141 lt_prog_compiler_static_CXX \
26142 lt_cv_prog_compiler_c_o_CXX \
26143 export_dynamic_flag_spec_CXX \
26144 whole_archive_flag_spec_CXX \
26145 compiler_needs_object_CXX \
26146 with_gnu_ld_CXX \
26147 allow_undefined_flag_CXX \
26148 no_undefined_flag_CXX \
26149 hardcode_libdir_flag_spec_CXX \
26150 hardcode_libdir_separator_CXX \
26151 exclude_expsyms_CXX \
26152 include_expsyms_CXX \
26153 file_list_spec_CXX \
26154 compiler_lib_search_dirs_CXX \
26155 predep_objects_CXX \
26156 postdep_objects_CXX \
26157 predeps_CXX \
26158 postdeps_CXX \
26159 compiler_lib_search_path_CXX; do
26160     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26161     *[\\\\\\\`\\"\\\$]*)
26162       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26163       ;;
26164     *)
26165       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26166       ;;
26167     esac
26168 done
26169
26170 # Double-quote double-evaled strings.
26171 for var in reload_cmds \
26172 old_postinstall_cmds \
26173 old_postuninstall_cmds \
26174 old_archive_cmds \
26175 extract_expsyms_cmds \
26176 old_archive_from_new_cmds \
26177 old_archive_from_expsyms_cmds \
26178 archive_cmds \
26179 archive_expsym_cmds \
26180 module_cmds \
26181 module_expsym_cmds \
26182 export_symbols_cmds \
26183 prelink_cmds \
26184 postlink_cmds \
26185 postinstall_cmds \
26186 postuninstall_cmds \
26187 finish_cmds \
26188 sys_lib_search_path_spec \
26189 sys_lib_dlsearch_path_spec \
26190 reload_cmds_CXX \
26191 old_archive_cmds_CXX \
26192 old_archive_from_new_cmds_CXX \
26193 old_archive_from_expsyms_cmds_CXX \
26194 archive_cmds_CXX \
26195 archive_expsym_cmds_CXX \
26196 module_cmds_CXX \
26197 module_expsym_cmds_CXX \
26198 export_symbols_cmds_CXX \
26199 prelink_cmds_CXX \
26200 postlink_cmds_CXX; do
26201     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26202     *[\\\\\\\`\\"\\\$]*)
26203       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26204       ;;
26205     *)
26206       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26207       ;;
26208     esac
26209 done
26210
26211 ac_aux_dir='$ac_aux_dir'
26212 xsi_shell='$xsi_shell'
26213 lt_shell_append='$lt_shell_append'
26214
26215 # See if we are running on zsh, and set the options which allow our
26216 # commands through without removal of \ escapes INIT.
26217 if test -n "\${ZSH_VERSION+set}" ; then
26218    setopt NO_GLOB_SUBST
26219 fi
26220
26221
26222     PACKAGE='$PACKAGE'
26223     VERSION='$VERSION'
26224     TIMESTAMP='$TIMESTAMP'
26225     RM='$RM'
26226     ofile='$ofile'
26227
26228
26229
26230
26231
26232 SED="$SED"
26233                     SVN_DB_HEADER="$SVN_DB_HEADER"
26234
26235 _ACEOF
26236
26237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26238
26239 # Handling of arguments.
26240 for ac_config_target in $ac_config_targets
26241 do
26242   case $ac_config_target in
26243     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26244     "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
26245     "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
26246     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26247     "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
26248     "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
26249     "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
26250     "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
26251
26252   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26253   esac
26254 done
26255
26256
26257 # If the user did not use the arguments to specify the items to instantiate,
26258 # then the envvar interface is used.  Set only those that are not.
26259 # We use the long form for the default assignment because of an extremely
26260 # bizarre bug on SunOS 4.1.3.
26261 if $ac_need_defaults; then
26262   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26263   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26264   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26265 fi
26266
26267 # Have a temporary directory for convenience.  Make it in the build tree
26268 # simply because there is no reason against having it here, and in addition,
26269 # creating and moving files from /tmp can sometimes cause problems.
26270 # Hook for its removal unless debugging.
26271 # Note that there is a small window in which the directory will not be cleaned:
26272 # after its creation but before its name has been assigned to `$tmp'.
26273 $debug ||
26274 {
26275   tmp= ac_tmp=
26276   trap 'exit_status=$?
26277   : "${ac_tmp:=$tmp}"
26278   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26279 ' 0
26280   trap 'as_fn_exit 1' 1 2 13 15
26281 }
26282 # Create a (secure) tmp directory for tmp files.
26283
26284 {
26285   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26286   test -d "$tmp"
26287 }  ||
26288 {
26289   tmp=./conf$$-$RANDOM
26290   (umask 077 && mkdir "$tmp")
26291 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26292 ac_tmp=$tmp
26293
26294 # Set up the scripts for CONFIG_FILES section.
26295 # No need to generate them if there are no CONFIG_FILES.
26296 # This happens for instance with `./config.status config.h'.
26297 if test -n "$CONFIG_FILES"; then
26298
26299
26300 ac_cr=`echo X | tr X '\015'`
26301 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26302 # But we know of no other shell where ac_cr would be empty at this
26303 # point, so we can use a bashism as a fallback.
26304 if test "x$ac_cr" = x; then
26305   eval ac_cr=\$\'\\r\'
26306 fi
26307 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26308 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26309   ac_cs_awk_cr='\\r'
26310 else
26311   ac_cs_awk_cr=$ac_cr
26312 fi
26313
26314 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26315 _ACEOF
26316
26317
26318 {
26319   echo "cat >conf$$subs.awk <<_ACEOF" &&
26320   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26321   echo "_ACEOF"
26322 } >conf$$subs.sh ||
26323   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26324 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26325 ac_delim='%!_!# '
26326 for ac_last_try in false false false false false :; do
26327   . ./conf$$subs.sh ||
26328     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26329
26330   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26331   if test $ac_delim_n = $ac_delim_num; then
26332     break
26333   elif $ac_last_try; then
26334     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26335   else
26336     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26337   fi
26338 done
26339 rm -f conf$$subs.sh
26340
26341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26342 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26343 _ACEOF
26344 sed -n '
26345 h
26346 s/^/S["/; s/!.*/"]=/
26347 p
26348 g
26349 s/^[^!]*!//
26350 :repl
26351 t repl
26352 s/'"$ac_delim"'$//
26353 t delim
26354 :nl
26355 h
26356 s/\(.\{148\}\)..*/\1/
26357 t more1
26358 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26359 p
26360 n
26361 b repl
26362 :more1
26363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26364 p
26365 g
26366 s/.\{148\}//
26367 t nl
26368 :delim
26369 h
26370 s/\(.\{148\}\)..*/\1/
26371 t more2
26372 s/["\\]/\\&/g; s/^/"/; s/$/"/
26373 p
26374 b
26375 :more2
26376 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26377 p
26378 g
26379 s/.\{148\}//
26380 t delim
26381 ' <conf$$subs.awk | sed '
26382 /^[^""]/{
26383   N
26384   s/\n//
26385 }
26386 ' >>$CONFIG_STATUS || ac_write_fail=1
26387 rm -f conf$$subs.awk
26388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26389 _ACAWK
26390 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26391   for (key in S) S_is_set[key] = 1
26392   FS = "\a"
26393
26394 }
26395 {
26396   line = $ 0
26397   nfields = split(line, field, "@")
26398   substed = 0
26399   len = length(field[1])
26400   for (i = 2; i < nfields; i++) {
26401     key = field[i]
26402     keylen = length(key)
26403     if (S_is_set[key]) {
26404       value = S[key]
26405       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26406       len += length(value) + length(field[++i])
26407       substed = 1
26408     } else
26409       len += 1 + keylen
26410   }
26411
26412   print line
26413 }
26414
26415 _ACAWK
26416 _ACEOF
26417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26418 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26419   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26420 else
26421   cat
26422 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26423   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26424 _ACEOF
26425
26426 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26427 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26428 # trailing colons and then remove the whole line if VPATH becomes empty
26429 # (actually we leave an empty line to preserve line numbers).
26430 if test "x$srcdir" = x.; then
26431   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26432 h
26433 s///
26434 s/^/:/
26435 s/[      ]*$/:/
26436 s/:\$(srcdir):/:/g
26437 s/:\${srcdir}:/:/g
26438 s/:@srcdir@:/:/g
26439 s/^:*//
26440 s/:*$//
26441 x
26442 s/\(=[   ]*\).*/\1/
26443 G
26444 s/\n//
26445 s/^[^=]*=[       ]*$//
26446 }'
26447 fi
26448
26449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26450 fi # test -n "$CONFIG_FILES"
26451
26452 # Set up the scripts for CONFIG_HEADERS section.
26453 # No need to generate them if there are no CONFIG_HEADERS.
26454 # This happens for instance with `./config.status Makefile'.
26455 if test -n "$CONFIG_HEADERS"; then
26456 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26457 BEGIN {
26458 _ACEOF
26459
26460 # Transform confdefs.h into an awk script `defines.awk', embedded as
26461 # here-document in config.status, that substitutes the proper values into
26462 # config.h.in to produce config.h.
26463
26464 # Create a delimiter string that does not exist in confdefs.h, to ease
26465 # handling of long lines.
26466 ac_delim='%!_!# '
26467 for ac_last_try in false false :; do
26468   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26469   if test -z "$ac_tt"; then
26470     break
26471   elif $ac_last_try; then
26472     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26473   else
26474     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26475   fi
26476 done
26477
26478 # For the awk script, D is an array of macro values keyed by name,
26479 # likewise P contains macro parameters if any.  Preserve backslash
26480 # newline sequences.
26481
26482 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26483 sed -n '
26484 s/.\{148\}/&'"$ac_delim"'/g
26485 t rset
26486 :rset
26487 s/^[     ]*#[    ]*define[       ][      ]*/ /
26488 t def
26489 d
26490 :def
26491 s/\\$//
26492 t bsnl
26493 s/["\\]/\\&/g
26494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26495 D["\1"]=" \3"/p
26496 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26497 d
26498 :bsnl
26499 s/["\\]/\\&/g
26500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26501 D["\1"]=" \3\\\\\\n"\\/p
26502 t cont
26503 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26504 t cont
26505 d
26506 :cont
26507 n
26508 s/.\{148\}/&'"$ac_delim"'/g
26509 t clear
26510 :clear
26511 s/\\$//
26512 t bsnlc
26513 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26514 d
26515 :bsnlc
26516 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26517 b cont
26518 ' <confdefs.h | sed '
26519 s/'"$ac_delim"'/"\\\
26520 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26521
26522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26523   for (key in D) D_is_set[key] = 1
26524   FS = "\a"
26525 }
26526 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26527   line = \$ 0
26528   split(line, arg, " ")
26529   if (arg[1] == "#") {
26530     defundef = arg[2]
26531     mac1 = arg[3]
26532   } else {
26533     defundef = substr(arg[1], 2)
26534     mac1 = arg[2]
26535   }
26536   split(mac1, mac2, "(") #)
26537   macro = mac2[1]
26538   prefix = substr(line, 1, index(line, defundef) - 1)
26539   if (D_is_set[macro]) {
26540     # Preserve the white space surrounding the "#".
26541     print prefix "define", macro P[macro] D[macro]
26542     next
26543   } else {
26544     # Replace #undef with comments.  This is necessary, for example,
26545     # in the case of _POSIX_SOURCE, which is predefined and required
26546     # on some systems where configure will not decide to define it.
26547     if (defundef == "undef") {
26548       print "/*", prefix defundef, macro, "*/"
26549       next
26550     }
26551   }
26552 }
26553 { print }
26554 _ACAWK
26555 _ACEOF
26556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26557   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26558 fi # test -n "$CONFIG_HEADERS"
26559
26560
26561 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26562 shift
26563 for ac_tag
26564 do
26565   case $ac_tag in
26566   :[FHLC]) ac_mode=$ac_tag; continue;;
26567   esac
26568   case $ac_mode$ac_tag in
26569   :[FHL]*:*);;
26570   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26571   :[FH]-) ac_tag=-:-;;
26572   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26573   esac
26574   ac_save_IFS=$IFS
26575   IFS=:
26576   set x $ac_tag
26577   IFS=$ac_save_IFS
26578   shift
26579   ac_file=$1
26580   shift
26581
26582   case $ac_mode in
26583   :L) ac_source=$1;;
26584   :[FH])
26585     ac_file_inputs=
26586     for ac_f
26587     do
26588       case $ac_f in
26589       -) ac_f="$ac_tmp/stdin";;
26590       *) # Look for the file first in the build tree, then in the source tree
26591          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26592          # because $ac_f cannot contain `:'.
26593          test -f "$ac_f" ||
26594            case $ac_f in
26595            [\\/$]*) false;;
26596            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26597            esac ||
26598            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26599       esac
26600       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26601       as_fn_append ac_file_inputs " '$ac_f'"
26602     done
26603
26604     # Let's still pretend it is `configure' which instantiates (i.e., don't
26605     # use $as_me), people would be surprised to read:
26606     #    /* config.h.  Generated by config.status.  */
26607     configure_input='Generated from '`
26608           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26609         `' by configure.'
26610     if test x"$ac_file" != x-; then
26611       configure_input="$ac_file.  $configure_input"
26612       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26613 $as_echo "$as_me: creating $ac_file" >&6;}
26614     fi
26615     # Neutralize special characters interpreted by sed in replacement strings.
26616     case $configure_input in #(
26617     *\&* | *\|* | *\\* )
26618        ac_sed_conf_input=`$as_echo "$configure_input" |
26619        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26620     *) ac_sed_conf_input=$configure_input;;
26621     esac
26622
26623     case $ac_tag in
26624     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26625       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26626     esac
26627     ;;
26628   esac
26629
26630   ac_dir=`$as_dirname -- "$ac_file" ||
26631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26632          X"$ac_file" : 'X\(//\)[^/]' \| \
26633          X"$ac_file" : 'X\(//\)$' \| \
26634          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26635 $as_echo X"$ac_file" |
26636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26637             s//\1/
26638             q
26639           }
26640           /^X\(\/\/\)[^/].*/{
26641             s//\1/
26642             q
26643           }
26644           /^X\(\/\/\)$/{
26645             s//\1/
26646             q
26647           }
26648           /^X\(\/\).*/{
26649             s//\1/
26650             q
26651           }
26652           s/.*/./; q'`
26653   as_dir="$ac_dir"; as_fn_mkdir_p
26654   ac_builddir=.
26655
26656 case "$ac_dir" in
26657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26658 *)
26659   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26660   # A ".." for each directory in $ac_dir_suffix.
26661   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26662   case $ac_top_builddir_sub in
26663   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26664   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26665   esac ;;
26666 esac
26667 ac_abs_top_builddir=$ac_pwd
26668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26669 # for backward compatibility:
26670 ac_top_builddir=$ac_top_build_prefix
26671
26672 case $srcdir in
26673   .)  # We are building in place.
26674     ac_srcdir=.
26675     ac_top_srcdir=$ac_top_builddir_sub
26676     ac_abs_top_srcdir=$ac_pwd ;;
26677   [\\/]* | ?:[\\/]* )  # Absolute name.
26678     ac_srcdir=$srcdir$ac_dir_suffix;
26679     ac_top_srcdir=$srcdir
26680     ac_abs_top_srcdir=$srcdir ;;
26681   *) # Relative name.
26682     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26683     ac_top_srcdir=$ac_top_build_prefix$srcdir
26684     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26685 esac
26686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26687
26688
26689   case $ac_mode in
26690   :F)
26691   #
26692   # CONFIG_FILE
26693   #
26694
26695   case $INSTALL in
26696   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26697   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26698   esac
26699 _ACEOF
26700
26701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26702 # If the template does not know about datarootdir, expand it.
26703 # FIXME: This hack should be removed a few years after 2.60.
26704 ac_datarootdir_hack=; ac_datarootdir_seen=
26705 ac_sed_dataroot='
26706 /datarootdir/ {
26707   p
26708   q
26709 }
26710 /@datadir@/p
26711 /@docdir@/p
26712 /@infodir@/p
26713 /@localedir@/p
26714 /@mandir@/p'
26715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26716 *datarootdir*) ac_datarootdir_seen=yes;;
26717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26718   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26719 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26720 _ACEOF
26721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26722   ac_datarootdir_hack='
26723   s&@datadir@&$datadir&g
26724   s&@docdir@&$docdir&g
26725   s&@infodir@&$infodir&g
26726   s&@localedir@&$localedir&g
26727   s&@mandir@&$mandir&g
26728   s&\\\${datarootdir}&$datarootdir&g' ;;
26729 esac
26730 _ACEOF
26731
26732 # Neutralize VPATH when `$srcdir' = `.'.
26733 # Shell code in configure.ac might set extrasub.
26734 # FIXME: do we really want to maintain this feature?
26735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26736 ac_sed_extra="$ac_vpsub
26737 $extrasub
26738 _ACEOF
26739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26740 :t
26741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26742 s|@configure_input@|$ac_sed_conf_input|;t t
26743 s&@top_builddir@&$ac_top_builddir_sub&;t t
26744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26745 s&@srcdir@&$ac_srcdir&;t t
26746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26747 s&@top_srcdir@&$ac_top_srcdir&;t t
26748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26749 s&@builddir@&$ac_builddir&;t t
26750 s&@abs_builddir@&$ac_abs_builddir&;t t
26751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26752 s&@INSTALL@&$ac_INSTALL&;t t
26753 $ac_datarootdir_hack
26754 "
26755 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26756   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26757
26758 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26759   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26760   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26761       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26762   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26763 which seems to be undefined.  Please make sure it is defined" >&5
26764 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26765 which seems to be undefined.  Please make sure it is defined" >&2;}
26766
26767   rm -f "$ac_tmp/stdin"
26768   case $ac_file in
26769   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26770   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26771   esac \
26772   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26773  ;;
26774   :H)
26775   #
26776   # CONFIG_HEADER
26777   #
26778   if test x"$ac_file" != x-; then
26779     {
26780       $as_echo "/* $configure_input  */" \
26781       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26782     } >"$ac_tmp/config.h" \
26783       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26784     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26785       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26786 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26787     else
26788       rm -f "$ac_file"
26789       mv "$ac_tmp/config.h" "$ac_file" \
26790         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26791     fi
26792   else
26793     $as_echo "/* $configure_input  */" \
26794       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26795       || as_fn_error $? "could not create -" "$LINENO" 5
26796   fi
26797  ;;
26798
26799   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26800 $as_echo "$as_me: executing $ac_file commands" >&6;}
26801  ;;
26802   esac
26803
26804
26805   case $ac_file$ac_mode in
26806     "libtool":C)
26807
26808     # See if we are running on zsh, and set the options which allow our
26809     # commands through without removal of \ escapes.
26810     if test -n "${ZSH_VERSION+set}" ; then
26811       setopt NO_GLOB_SUBST
26812     fi
26813
26814     cfgfile="${ofile}T"
26815     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26816     $RM "$cfgfile"
26817
26818     cat <<_LT_EOF >> "$cfgfile"
26819 #! $SHELL
26820
26821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26825 #
26826 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26827 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26828 #                 Foundation, Inc.
26829 #   Written by Gordon Matzigkeit, 1996
26830 #
26831 #   This file is part of GNU Libtool.
26832 #
26833 # GNU Libtool is free software; you can redistribute it and/or
26834 # modify it under the terms of the GNU General Public License as
26835 # published by the Free Software Foundation; either version 2 of
26836 # the License, or (at your option) any later version.
26837 #
26838 # As a special exception to the GNU General Public License,
26839 # if you distribute this file as part of a program or library that
26840 # is built using GNU Libtool, you may include this file under the
26841 # same distribution terms that you use for the rest of that program.
26842 #
26843 # GNU Libtool is distributed in the hope that it will be useful,
26844 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26846 # GNU General Public License for more details.
26847 #
26848 # You should have received a copy of the GNU General Public License
26849 # along with GNU Libtool; see the file COPYING.  If not, a copy
26850 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26851 # obtained by writing to the Free Software Foundation, Inc.,
26852 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26853
26854
26855 # The names of the tagged configurations supported by this script.
26856 available_tags="CXX "
26857
26858 # ### BEGIN LIBTOOL CONFIG
26859
26860 # Which release of libtool.m4 was used?
26861 macro_version=$macro_version
26862 macro_revision=$macro_revision
26863
26864 # Whether or not to build shared libraries.
26865 build_libtool_libs=$enable_shared
26866
26867 # Whether or not to build static libraries.
26868 build_old_libs=$enable_static
26869
26870 # What type of objects to build.
26871 pic_mode=$pic_mode
26872
26873 # Whether or not to optimize for fast installation.
26874 fast_install=$enable_fast_install
26875
26876 # Shell to use when invoking shell scripts.
26877 SHELL=$lt_SHELL
26878
26879 # An echo program that protects backslashes.
26880 ECHO=$lt_ECHO
26881
26882 # The PATH separator for the build system.
26883 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26884
26885 # The host system.
26886 host_alias=$host_alias
26887 host=$host
26888 host_os=$host_os
26889
26890 # The build system.
26891 build_alias=$build_alias
26892 build=$build
26893 build_os=$build_os
26894
26895 # A sed program that does not truncate output.
26896 SED=$lt_SED
26897
26898 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26899 Xsed="\$SED -e 1s/^X//"
26900
26901 # A grep program that handles long lines.
26902 GREP=$lt_GREP
26903
26904 # An ERE matcher.
26905 EGREP=$lt_EGREP
26906
26907 # A literal string matcher.
26908 FGREP=$lt_FGREP
26909
26910 # A BSD- or MS-compatible name lister.
26911 NM=$lt_NM
26912
26913 # Whether we need soft or hard links.
26914 LN_S=$lt_LN_S
26915
26916 # What is the maximum length of a command?
26917 max_cmd_len=$max_cmd_len
26918
26919 # Object file suffix (normally "o").
26920 objext=$ac_objext
26921
26922 # Executable file suffix (normally "").
26923 exeext=$exeext
26924
26925 # whether the shell understands "unset".
26926 lt_unset=$lt_unset
26927
26928 # turn spaces into newlines.
26929 SP2NL=$lt_lt_SP2NL
26930
26931 # turn newlines into spaces.
26932 NL2SP=$lt_lt_NL2SP
26933
26934 # convert \$build file names to \$host format.
26935 to_host_file_cmd=$lt_cv_to_host_file_cmd
26936
26937 # convert \$build files to toolchain format.
26938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26939
26940 # An object symbol dumper.
26941 OBJDUMP=$lt_OBJDUMP
26942
26943 # Method to check whether dependent libraries are shared objects.
26944 deplibs_check_method=$lt_deplibs_check_method
26945
26946 # Command to use when deplibs_check_method = "file_magic".
26947 file_magic_cmd=$lt_file_magic_cmd
26948
26949 # How to find potential files when deplibs_check_method = "file_magic".
26950 file_magic_glob=$lt_file_magic_glob
26951
26952 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26953 want_nocaseglob=$lt_want_nocaseglob
26954
26955 # DLL creation program.
26956 DLLTOOL=$lt_DLLTOOL
26957
26958 # Command to associate shared and link libraries.
26959 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26960
26961 # The archiver.
26962 AR=$lt_AR
26963
26964 # Flags to create an archive.
26965 AR_FLAGS=$lt_AR_FLAGS
26966
26967 # How to feed a file listing to the archiver.
26968 archiver_list_spec=$lt_archiver_list_spec
26969
26970 # A symbol stripping program.
26971 STRIP=$lt_STRIP
26972
26973 # Commands used to install an old-style archive.
26974 RANLIB=$lt_RANLIB
26975 old_postinstall_cmds=$lt_old_postinstall_cmds
26976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26977
26978 # Whether to use a lock for old archive extraction.
26979 lock_old_archive_extraction=$lock_old_archive_extraction
26980
26981 # A C compiler.
26982 LTCC=$lt_CC
26983
26984 # LTCC compiler flags.
26985 LTCFLAGS=$lt_CFLAGS
26986
26987 # Take the output of nm and produce a listing of raw symbols and C names.
26988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26989
26990 # Transform the output of nm in a proper C declaration.
26991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26992
26993 # Transform the output of nm in a C name address pair.
26994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26995
26996 # Transform the output of nm in a C name address pair when lib prefix is needed.
26997 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26998
26999 # Specify filename containing input files for \$NM.
27000 nm_file_list_spec=$lt_nm_file_list_spec
27001
27002 # The root where to search for dependent libraries,and in which our libraries should be installed.
27003 lt_sysroot=$lt_sysroot
27004
27005 # The name of the directory that contains temporary libtool files.
27006 objdir=$objdir
27007
27008 # Used to examine libraries when file_magic_cmd begins with "file".
27009 MAGIC_CMD=$MAGIC_CMD
27010
27011 # Must we lock files when doing compilation?
27012 need_locks=$lt_need_locks
27013
27014 # Manifest tool.
27015 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27016
27017 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27018 DSYMUTIL=$lt_DSYMUTIL
27019
27020 # Tool to change global to local symbols on Mac OS X.
27021 NMEDIT=$lt_NMEDIT
27022
27023 # Tool to manipulate fat objects and archives on Mac OS X.
27024 LIPO=$lt_LIPO
27025
27026 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27027 OTOOL=$lt_OTOOL
27028
27029 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27030 OTOOL64=$lt_OTOOL64
27031
27032 # Old archive suffix (normally "a").
27033 libext=$libext
27034
27035 # Shared library suffix (normally ".so").
27036 shrext_cmds=$lt_shrext_cmds
27037
27038 # The commands to extract the exported symbol list from a shared archive.
27039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27040
27041 # Variables whose values should be saved in libtool wrapper scripts and
27042 # restored at link time.
27043 variables_saved_for_relink=$lt_variables_saved_for_relink
27044
27045 # Do we need the "lib" prefix for modules?
27046 need_lib_prefix=$need_lib_prefix
27047
27048 # Do we need a version for libraries?
27049 need_version=$need_version
27050
27051 # Library versioning type.
27052 version_type=$version_type
27053
27054 # Shared library runtime path variable.
27055 runpath_var=$runpath_var
27056
27057 # Shared library path variable.
27058 shlibpath_var=$shlibpath_var
27059
27060 # Is shlibpath searched before the hard-coded library search path?
27061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27062
27063 # Format of library name prefix.
27064 libname_spec=$lt_libname_spec
27065
27066 # List of archive names.  First name is the real one, the rest are links.
27067 # The last name is the one that the linker finds with -lNAME
27068 library_names_spec=$lt_library_names_spec
27069
27070 # The coded name of the library, if different from the real name.
27071 soname_spec=$lt_soname_spec
27072
27073 # Permission mode override for installation of shared libraries.
27074 install_override_mode=$lt_install_override_mode
27075
27076 # Command to use after installation of a shared archive.
27077 postinstall_cmds=$lt_postinstall_cmds
27078
27079 # Command to use after uninstallation of a shared archive.
27080 postuninstall_cmds=$lt_postuninstall_cmds
27081
27082 # Commands used to finish a libtool library installation in a directory.
27083 finish_cmds=$lt_finish_cmds
27084
27085 # As "finish_cmds", except a single script fragment to be evaled but
27086 # not shown.
27087 finish_eval=$lt_finish_eval
27088
27089 # Whether we should hardcode library paths into libraries.
27090 hardcode_into_libs=$hardcode_into_libs
27091
27092 # Compile-time system search path for libraries.
27093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27094
27095 # Run-time system search path for libraries.
27096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27097
27098 # Whether dlopen is supported.
27099 dlopen_support=$enable_dlopen
27100
27101 # Whether dlopen of programs is supported.
27102 dlopen_self=$enable_dlopen_self
27103
27104 # Whether dlopen of statically linked programs is supported.
27105 dlopen_self_static=$enable_dlopen_self_static
27106
27107 # Commands to strip libraries.
27108 old_striplib=$lt_old_striplib
27109 striplib=$lt_striplib
27110
27111
27112 # The linker used to build libraries.
27113 LD=$lt_LD
27114
27115 # How to create reloadable object files.
27116 reload_flag=$lt_reload_flag
27117 reload_cmds=$lt_reload_cmds
27118
27119 # Commands used to build an old-style archive.
27120 old_archive_cmds=$lt_old_archive_cmds
27121
27122 # A language specific compiler.
27123 CC=$lt_compiler
27124
27125 # Is the compiler the GNU compiler?
27126 with_gcc=$GCC
27127
27128 # Compiler flag to turn off builtin functions.
27129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27130
27131 # Additional compiler flags for building library objects.
27132 pic_flag=$lt_lt_prog_compiler_pic
27133
27134 # How to pass a linker flag through the compiler.
27135 wl=$lt_lt_prog_compiler_wl
27136
27137 # Compiler flag to prevent dynamic linking.
27138 link_static_flag=$lt_lt_prog_compiler_static
27139
27140 # Does compiler simultaneously support -c and -o options?
27141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27142
27143 # Whether or not to add -lc for building shared libraries.
27144 build_libtool_need_lc=$archive_cmds_need_lc
27145
27146 # Whether or not to disallow shared libs when runtime libs are static.
27147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27148
27149 # Compiler flag to allow reflexive dlopens.
27150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27151
27152 # Compiler flag to generate shared objects directly from archives.
27153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27154
27155 # Whether the compiler copes with passing no objects directly.
27156 compiler_needs_object=$lt_compiler_needs_object
27157
27158 # Create an old-style archive from a shared archive.
27159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27160
27161 # Create a temporary old-style archive to link instead of a shared archive.
27162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27163
27164 # Commands used to build a shared archive.
27165 archive_cmds=$lt_archive_cmds
27166 archive_expsym_cmds=$lt_archive_expsym_cmds
27167
27168 # Commands used to build a loadable module if different from building
27169 # a shared archive.
27170 module_cmds=$lt_module_cmds
27171 module_expsym_cmds=$lt_module_expsym_cmds
27172
27173 # Whether we are building with GNU ld or not.
27174 with_gnu_ld=$lt_with_gnu_ld
27175
27176 # Flag that allows shared libraries with undefined symbols to be built.
27177 allow_undefined_flag=$lt_allow_undefined_flag
27178
27179 # Flag that enforces no undefined symbols.
27180 no_undefined_flag=$lt_no_undefined_flag
27181
27182 # Flag to hardcode \$libdir into a binary during linking.
27183 # This must work even if \$libdir does not exist
27184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27185
27186 # Whether we need a single "-rpath" flag with a separated argument.
27187 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27188
27189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27190 # DIR into the resulting binary.
27191 hardcode_direct=$hardcode_direct
27192
27193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27194 # DIR into the resulting binary and the resulting library dependency is
27195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27196 # library is relocated.
27197 hardcode_direct_absolute=$hardcode_direct_absolute
27198
27199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27200 # into the resulting binary.
27201 hardcode_minus_L=$hardcode_minus_L
27202
27203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27204 # into the resulting binary.
27205 hardcode_shlibpath_var=$hardcode_shlibpath_var
27206
27207 # Set to "yes" if building a shared library automatically hardcodes DIR
27208 # into the library and all subsequent libraries and executables linked
27209 # against it.
27210 hardcode_automatic=$hardcode_automatic
27211
27212 # Set to yes if linker adds runtime paths of dependent libraries
27213 # to runtime path list.
27214 inherit_rpath=$inherit_rpath
27215
27216 # Whether libtool must link a program against all its dependency libraries.
27217 link_all_deplibs=$link_all_deplibs
27218
27219 # Set to "yes" if exported symbols are required.
27220 always_export_symbols=$always_export_symbols
27221
27222 # The commands to list exported symbols.
27223 export_symbols_cmds=$lt_export_symbols_cmds
27224
27225 # Symbols that should not be listed in the preloaded symbols.
27226 exclude_expsyms=$lt_exclude_expsyms
27227
27228 # Symbols that must always be exported.
27229 include_expsyms=$lt_include_expsyms
27230
27231 # Commands necessary for linking programs (against libraries) with templates.
27232 prelink_cmds=$lt_prelink_cmds
27233
27234 # Commands necessary for finishing linking programs.
27235 postlink_cmds=$lt_postlink_cmds
27236
27237 # Specify filename containing input files.
27238 file_list_spec=$lt_file_list_spec
27239
27240 # How to hardcode a shared library path into an executable.
27241 hardcode_action=$hardcode_action
27242
27243 # The directories searched by this compiler when creating a shared library.
27244 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27245
27246 # Dependencies to place before and after the objects being linked to
27247 # create a shared library.
27248 predep_objects=$lt_predep_objects
27249 postdep_objects=$lt_postdep_objects
27250 predeps=$lt_predeps
27251 postdeps=$lt_postdeps
27252
27253 # The library search path used internally by the compiler when linking
27254 # a shared library.
27255 compiler_lib_search_path=$lt_compiler_lib_search_path
27256
27257 # ### END LIBTOOL CONFIG
27258
27259 _LT_EOF
27260
27261   case $host_os in
27262   aix3*)
27263     cat <<\_LT_EOF >> "$cfgfile"
27264 # AIX sometimes has problems with the GCC collect2 program.  For some
27265 # reason, if we set the COLLECT_NAMES environment variable, the problems
27266 # vanish in a puff of smoke.
27267 if test "X${COLLECT_NAMES+set}" != Xset; then
27268   COLLECT_NAMES=
27269   export COLLECT_NAMES
27270 fi
27271 _LT_EOF
27272     ;;
27273   esac
27274
27275
27276 ltmain="$ac_aux_dir/ltmain.sh"
27277
27278
27279   # We use sed instead of cat because bash on DJGPP gets confused if
27280   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27281   # text mode, it properly converts lines to CR/LF.  This bash problem
27282   # is reportedly fixed, but why not run on old versions too?
27283   sed '$q' "$ltmain" >> "$cfgfile" \
27284      || (rm -f "$cfgfile"; exit 1)
27285
27286   if test x"$xsi_shell" = xyes; then
27287   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27288 func_dirname ()\
27289 {\
27290 \    case ${1} in\
27291 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27292 \      *  ) func_dirname_result="${3}" ;;\
27293 \    esac\
27294 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27295   && mv -f "$cfgfile.tmp" "$cfgfile" \
27296     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27297 test 0 -eq $? || _lt_function_replace_fail=:
27298
27299
27300   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27301 func_basename ()\
27302 {\
27303 \    func_basename_result="${1##*/}"\
27304 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27305   && mv -f "$cfgfile.tmp" "$cfgfile" \
27306     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27307 test 0 -eq $? || _lt_function_replace_fail=:
27308
27309
27310   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27311 func_dirname_and_basename ()\
27312 {\
27313 \    case ${1} in\
27314 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27315 \      *  ) func_dirname_result="${3}" ;;\
27316 \    esac\
27317 \    func_basename_result="${1##*/}"\
27318 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27319   && mv -f "$cfgfile.tmp" "$cfgfile" \
27320     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27321 test 0 -eq $? || _lt_function_replace_fail=:
27322
27323
27324   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27325 func_stripname ()\
27326 {\
27327 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27328 \    # positional parameters, so assign one to ordinary parameter first.\
27329 \    func_stripname_result=${3}\
27330 \    func_stripname_result=${func_stripname_result#"${1}"}\
27331 \    func_stripname_result=${func_stripname_result%"${2}"}\
27332 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27333   && mv -f "$cfgfile.tmp" "$cfgfile" \
27334     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27335 test 0 -eq $? || _lt_function_replace_fail=:
27336
27337
27338   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27339 func_split_long_opt ()\
27340 {\
27341 \    func_split_long_opt_name=${1%%=*}\
27342 \    func_split_long_opt_arg=${1#*=}\
27343 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27344   && mv -f "$cfgfile.tmp" "$cfgfile" \
27345     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27346 test 0 -eq $? || _lt_function_replace_fail=:
27347
27348
27349   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27350 func_split_short_opt ()\
27351 {\
27352 \    func_split_short_opt_arg=${1#??}\
27353 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27354 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27355   && mv -f "$cfgfile.tmp" "$cfgfile" \
27356     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27357 test 0 -eq $? || _lt_function_replace_fail=:
27358
27359
27360   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27361 func_lo2o ()\
27362 {\
27363 \    case ${1} in\
27364 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27365 \      *)    func_lo2o_result=${1} ;;\
27366 \    esac\
27367 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27368   && mv -f "$cfgfile.tmp" "$cfgfile" \
27369     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27370 test 0 -eq $? || _lt_function_replace_fail=:
27371
27372
27373   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27374 func_xform ()\
27375 {\
27376     func_xform_result=${1%.*}.lo\
27377 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27378   && mv -f "$cfgfile.tmp" "$cfgfile" \
27379     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27380 test 0 -eq $? || _lt_function_replace_fail=:
27381
27382
27383   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27384 func_arith ()\
27385 {\
27386     func_arith_result=$(( $* ))\
27387 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27388   && mv -f "$cfgfile.tmp" "$cfgfile" \
27389     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27390 test 0 -eq $? || _lt_function_replace_fail=:
27391
27392
27393   sed -e '/^func_len ()$/,/^} # func_len /c\
27394 func_len ()\
27395 {\
27396     func_len_result=${#1}\
27397 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27398   && mv -f "$cfgfile.tmp" "$cfgfile" \
27399     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27400 test 0 -eq $? || _lt_function_replace_fail=:
27401
27402 fi
27403
27404 if test x"$lt_shell_append" = xyes; then
27405   sed -e '/^func_append ()$/,/^} # func_append /c\
27406 func_append ()\
27407 {\
27408     eval "${1}+=\\${2}"\
27409 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27410   && mv -f "$cfgfile.tmp" "$cfgfile" \
27411     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27412 test 0 -eq $? || _lt_function_replace_fail=:
27413
27414
27415   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27416 func_append_quoted ()\
27417 {\
27418 \    func_quote_for_eval "${2}"\
27419 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27420 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27421   && mv -f "$cfgfile.tmp" "$cfgfile" \
27422     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27423 test 0 -eq $? || _lt_function_replace_fail=:
27424
27425
27426   # Save a `func_append' function call where possible by direct use of '+='
27427   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27428     && mv -f "$cfgfile.tmp" "$cfgfile" \
27429       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27430   test 0 -eq $? || _lt_function_replace_fail=:
27431 else
27432   # Save a `func_append' function call even when '+=' is not available
27433   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27434     && mv -f "$cfgfile.tmp" "$cfgfile" \
27435       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27436   test 0 -eq $? || _lt_function_replace_fail=:
27437 fi
27438
27439 if test x"$_lt_function_replace_fail" = x":"; then
27440   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27441 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27442 fi
27443
27444
27445    mv -f "$cfgfile" "$ofile" ||
27446     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27447   chmod +x "$ofile"
27448
27449
27450     cat <<_LT_EOF >> "$ofile"
27451
27452 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27453
27454 # The linker used to build libraries.
27455 LD=$lt_LD_CXX
27456
27457 # How to create reloadable object files.
27458 reload_flag=$lt_reload_flag_CXX
27459 reload_cmds=$lt_reload_cmds_CXX
27460
27461 # Commands used to build an old-style archive.
27462 old_archive_cmds=$lt_old_archive_cmds_CXX
27463
27464 # A language specific compiler.
27465 CC=$lt_compiler_CXX
27466
27467 # Is the compiler the GNU compiler?
27468 with_gcc=$GCC_CXX
27469
27470 # Compiler flag to turn off builtin functions.
27471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27472
27473 # Additional compiler flags for building library objects.
27474 pic_flag=$lt_lt_prog_compiler_pic_CXX
27475
27476 # How to pass a linker flag through the compiler.
27477 wl=$lt_lt_prog_compiler_wl_CXX
27478
27479 # Compiler flag to prevent dynamic linking.
27480 link_static_flag=$lt_lt_prog_compiler_static_CXX
27481
27482 # Does compiler simultaneously support -c and -o options?
27483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27484
27485 # Whether or not to add -lc for building shared libraries.
27486 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27487
27488 # Whether or not to disallow shared libs when runtime libs are static.
27489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27490
27491 # Compiler flag to allow reflexive dlopens.
27492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27493
27494 # Compiler flag to generate shared objects directly from archives.
27495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27496
27497 # Whether the compiler copes with passing no objects directly.
27498 compiler_needs_object=$lt_compiler_needs_object_CXX
27499
27500 # Create an old-style archive from a shared archive.
27501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27502
27503 # Create a temporary old-style archive to link instead of a shared archive.
27504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27505
27506 # Commands used to build a shared archive.
27507 archive_cmds=$lt_archive_cmds_CXX
27508 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27509
27510 # Commands used to build a loadable module if different from building
27511 # a shared archive.
27512 module_cmds=$lt_module_cmds_CXX
27513 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27514
27515 # Whether we are building with GNU ld or not.
27516 with_gnu_ld=$lt_with_gnu_ld_CXX
27517
27518 # Flag that allows shared libraries with undefined symbols to be built.
27519 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27520
27521 # Flag that enforces no undefined symbols.
27522 no_undefined_flag=$lt_no_undefined_flag_CXX
27523
27524 # Flag to hardcode \$libdir into a binary during linking.
27525 # This must work even if \$libdir does not exist
27526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27527
27528 # Whether we need a single "-rpath" flag with a separated argument.
27529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27530
27531 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27532 # DIR into the resulting binary.
27533 hardcode_direct=$hardcode_direct_CXX
27534
27535 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27536 # DIR into the resulting binary and the resulting library dependency is
27537 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27538 # library is relocated.
27539 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27540
27541 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27542 # into the resulting binary.
27543 hardcode_minus_L=$hardcode_minus_L_CXX
27544
27545 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27546 # into the resulting binary.
27547 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27548
27549 # Set to "yes" if building a shared library automatically hardcodes DIR
27550 # into the library and all subsequent libraries and executables linked
27551 # against it.
27552 hardcode_automatic=$hardcode_automatic_CXX
27553
27554 # Set to yes if linker adds runtime paths of dependent libraries
27555 # to runtime path list.
27556 inherit_rpath=$inherit_rpath_CXX
27557
27558 # Whether libtool must link a program against all its dependency libraries.
27559 link_all_deplibs=$link_all_deplibs_CXX
27560
27561 # Set to "yes" if exported symbols are required.
27562 always_export_symbols=$always_export_symbols_CXX
27563
27564 # The commands to list exported symbols.
27565 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27566
27567 # Symbols that should not be listed in the preloaded symbols.
27568 exclude_expsyms=$lt_exclude_expsyms_CXX
27569
27570 # Symbols that must always be exported.
27571 include_expsyms=$lt_include_expsyms_CXX
27572
27573 # Commands necessary for linking programs (against libraries) with templates.
27574 prelink_cmds=$lt_prelink_cmds_CXX
27575
27576 # Commands necessary for finishing linking programs.
27577 postlink_cmds=$lt_postlink_cmds_CXX
27578
27579 # Specify filename containing input files.
27580 file_list_spec=$lt_file_list_spec_CXX
27581
27582 # How to hardcode a shared library path into an executable.
27583 hardcode_action=$hardcode_action_CXX
27584
27585 # The directories searched by this compiler when creating a shared library.
27586 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27587
27588 # Dependencies to place before and after the objects being linked to
27589 # create a shared library.
27590 predep_objects=$lt_predep_objects_CXX
27591 postdep_objects=$lt_postdep_objects_CXX
27592 predeps=$lt_predeps_CXX
27593 postdeps=$lt_postdeps_CXX
27594
27595 # The library search path used internally by the compiler when linking
27596 # a shared library.
27597 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27598
27599 # ### END LIBTOOL TAG CONFIG: CXX
27600 _LT_EOF
27601
27602  ;;
27603     "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
27604                     $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
27605                     cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
27606                     rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
27607     "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
27608     "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
27609     "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
27610     "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
27611
27612   esac
27613 done # for ac_tag
27614
27615
27616 as_fn_exit 0
27617 _ACEOF
27618 ac_clean_files=$ac_clean_files_save
27619
27620 test $ac_write_fail = 0 ||
27621   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27622
27623
27624 # configure is writing to config.log, and then calls config.status.
27625 # config.status does its own redirection, appending to config.log.
27626 # Unfortunately, on DOS this fails, as config.log is still kept open
27627 # by configure, so config.status won't be able to write to it; its
27628 # output is simply discarded.  So we exec the FD to /dev/null,
27629 # effectively closing config.log, so it can be properly (re)opened and
27630 # appended to by config.status.  When coming back to configure, we
27631 # need to make the FD available again.
27632 if test "$no_create" != yes; then
27633   ac_cs_success=:
27634   ac_config_status_args=
27635   test "$silent" = yes &&
27636     ac_config_status_args="$ac_config_status_args --quiet"
27637   exec 5>/dev/null
27638   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27639   exec 5>>config.log
27640   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27641   # would make configure fail if this is the last instruction.
27642   $ac_cs_success || as_fn_exit 1
27643 fi
27644 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27645   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27646 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27647 fi
27648
27649
27650 # ==== Print final messages to user ==========================================
27651
27652
27653 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
27654   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
27655
27656
27657 Berkeley DB 6 was found, but not used.  Please re-run configure (see
27658 ./config.nice) with the '--enable-bdb6' flag to use it,
27659 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27660 to silence this warning.
27661
27662 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27663 General Public License, version 3:
27664 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27665
27666 The AGPL-3.0 licence may impose special requirements for making available
27667 source code of server-side software.  The text of the licence is:
27668 https://www.gnu.org/licenses/agpl-3.0.html
27669 http://opensource.org/licenses/AGPL-3.0
27670
27671 The Berkeley DB backend to Subversion is deprecated; see
27672 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27673
27674 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27675 technical problems or bugs.
27676 " >&5
27677 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
27678
27679
27680 Berkeley DB 6 was found, but not used.  Please re-run configure (see
27681 ./config.nice) with the '--enable-bdb6' flag to use it,
27682 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27683 to silence this warning.
27684
27685 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27686 General Public License, version 3:
27687 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27688
27689 The AGPL-3.0 licence may impose special requirements for making available
27690 source code of server-side software.  The text of the licence is:
27691 https://www.gnu.org/licenses/agpl-3.0.html
27692 http://opensource.org/licenses/AGPL-3.0
27693
27694 The Berkeley DB backend to Subversion is deprecated; see
27695 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27696
27697 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27698 technical problems or bugs.
27699 " >&2;}
27700 fi