]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/subversion/configure
Cleanup pass through the relnotes file:
[FreeBSD/releng/10.2.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.10.
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.10'
594 PACKAGE_STRING='subversion 1.8.10'
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.10 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.10:";;
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.10
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_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   rm -f conftest.$ac_objext conftest$ac_exeext
1799   if { { ac_try="$ac_link"
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_link") 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_c_werror_flag" ||
1816          test ! -s conftest.err
1817        } && test -s conftest$ac_exeext && {
1818          test "$cross_compiling" = yes ||
1819          test -x conftest$ac_exeext
1820        }; then :
1821   ac_retval=0
1822 else
1823   $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826         ac_retval=1
1827 fi
1828   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830   # interfere with the next link command; also delete a directory that is
1831   # left behind by Apple's compiler.  We do this before executing the actions.
1832   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834   as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_cxx_try_compile LINENO
1839 # ----------------------------
1840 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_cxx_try_compile ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   rm -f conftest.$ac_objext
1845   if { { ac_try="$ac_compile"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_compile") 2>conftest.err
1853   ac_status=$?
1854   if test -s conftest.err; then
1855     grep -v '^ *+' conftest.err >conftest.er1
1856     cat conftest.er1 >&5
1857     mv -f conftest.er1 conftest.err
1858   fi
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && {
1861          test -z "$ac_cxx_werror_flag" ||
1862          test ! -s conftest.err
1863        } && test -s conftest.$ac_objext; then :
1864   ac_retval=0
1865 else
1866   $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869         ac_retval=1
1870 fi
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872   as_fn_set_status $ac_retval
1873
1874 } # ac_fn_cxx_try_compile
1875
1876 # ac_fn_cxx_try_link LINENO
1877 # -------------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_cxx_try_link ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   rm -f conftest.$ac_objext conftest$ac_exeext
1883   if { { ac_try="$ac_link"
1884 case "(($ac_try" in
1885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886   *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890   (eval "$ac_link") 2>conftest.err
1891   ac_status=$?
1892   if test -s conftest.err; then
1893     grep -v '^ *+' conftest.err >conftest.er1
1894     cat conftest.er1 >&5
1895     mv -f conftest.er1 conftest.err
1896   fi
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; } && {
1899          test -z "$ac_cxx_werror_flag" ||
1900          test ! -s conftest.err
1901        } && test -s conftest$ac_exeext && {
1902          test "$cross_compiling" = yes ||
1903          test -x conftest$ac_exeext
1904        }; then :
1905   ac_retval=0
1906 else
1907   $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910         ac_retval=1
1911 fi
1912   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914   # interfere with the next link command; also delete a directory that is
1915   # left behind by Apple's compiler.  We do this before executing the actions.
1916   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918   as_fn_set_status $ac_retval
1919
1920 } # ac_fn_cxx_try_link
1921
1922 # ac_fn_c_try_cpp LINENO
1923 # ----------------------
1924 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_c_try_cpp ()
1926 {
1927   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928   if { { ac_try="$ac_cpp conftest.$ac_ext"
1929 case "(($ac_try" in
1930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931   *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1936   ac_status=$?
1937   if test -s conftest.err; then
1938     grep -v '^ *+' conftest.err >conftest.er1
1939     cat conftest.er1 >&5
1940     mv -f conftest.er1 conftest.err
1941   fi
1942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943   test $ac_status = 0; } > conftest.i && {
1944          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1945          test ! -s conftest.err
1946        }; then :
1947   ac_retval=0
1948 else
1949   $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952     ac_retval=1
1953 fi
1954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955   as_fn_set_status $ac_retval
1956
1957 } # ac_fn_c_try_cpp
1958
1959 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1962 # the include files in INCLUDES and setting the cache variable VAR
1963 # accordingly.
1964 ac_fn_c_check_header_mongrel ()
1965 {
1966   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967   if eval \${$3+:} false; then :
1968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971   $as_echo_n "(cached) " >&6
1972 fi
1973 eval ac_res=\$$3
1974                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 else
1977   # Is the header compilable?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1979 $as_echo_n "checking $2 usability... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986   ac_header_compiler=yes
1987 else
1988   ac_header_compiler=no
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1992 $as_echo "$ac_header_compiler" >&6; }
1993
1994 # Is the header present?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1996 $as_echo_n "checking $2 presence... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h.  */
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_cpp "$LINENO"; then :
2002   ac_header_preproc=yes
2003 else
2004   ac_header_preproc=no
2005 fi
2006 rm -f conftest.err conftest.i conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2008 $as_echo "$ac_header_preproc" >&6; }
2009
2010 # So?  What about this header?
2011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2012   yes:no: )
2013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2014 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017     ;;
2018   no:yes:* )
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2020 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2021     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2022 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2023     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2024 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2026 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 ( $as_echo "## -------------------------------------------- ##
2030 ## Report this to http://subversion.apache.org/ ##
2031 ## -------------------------------------------- ##"
2032      ) | sed "s/^/$as_me: WARNING:     /" >&2
2033     ;;
2034 esac
2035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval \${$3+:} false; then :
2038   $as_echo_n "(cached) " >&6
2039 else
2040   eval "$3=\$ac_header_compiler"
2041 fi
2042 eval ac_res=\$$3
2043                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 fi
2046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048 } # ac_fn_c_check_header_mongrel
2049
2050 # ac_fn_c_try_run LINENO
2051 # ----------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2053 # that executables *can* be run.
2054 ac_fn_c_try_run ()
2055 {
2056   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057   if { { ac_try="$ac_link"
2058 case "(($ac_try" in
2059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060   *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064   (eval "$ac_link") 2>&5
2065   ac_status=$?
2066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2068   { { case "(($ac_try" in
2069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070   *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074   (eval "$ac_try") 2>&5
2075   ac_status=$?
2076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077   test $ac_status = 0; }; }; then :
2078   ac_retval=0
2079 else
2080   $as_echo "$as_me: program exited with status $ac_status" >&5
2081        $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2083
2084        ac_retval=$ac_status
2085 fi
2086   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088   as_fn_set_status $ac_retval
2089
2090 } # ac_fn_c_try_run
2091
2092 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2093 # -------------------------------------------------------
2094 # Tests whether HEADER exists and can be compiled using the include files in
2095 # INCLUDES, setting the cache variable VAR accordingly.
2096 ac_fn_c_check_header_compile ()
2097 {
2098   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval \${$3+:} false; then :
2102   $as_echo_n "(cached) " >&6
2103 else
2104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h.  */
2106 $4
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110   eval "$3=yes"
2111 else
2112   eval "$3=no"
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$3
2117                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121 } # ac_fn_c_check_header_compile
2122
2123 # ac_fn_c_check_func LINENO FUNC VAR
2124 # ----------------------------------
2125 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2126 ac_fn_c_check_func ()
2127 {
2128   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132   $as_echo_n "(cached) " >&6
2133 else
2134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h.  */
2136 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2138 #define $2 innocuous_$2
2139
2140 /* System header to define __stub macros and hopefully few prototypes,
2141     which can conflict with char $2 (); below.
2142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2143     <limits.h> exists even on freestanding compilers.  */
2144
2145 #ifdef __STDC__
2146 # include <limits.h>
2147 #else
2148 # include <assert.h>
2149 #endif
2150
2151 #undef $2
2152
2153 /* Override any GCC internal prototype to avoid an error.
2154    Use char because int might match the return type of a GCC
2155    builtin and then its argument prototype would still apply.  */
2156 #ifdef __cplusplus
2157 extern "C"
2158 #endif
2159 char $2 ();
2160 /* The GNU C library defines this for functions which it implements
2161     to always fail with ENOSYS.  Some functions are actually named
2162     something starting with __ and the normal name is an alias.  */
2163 #if defined __stub_$2 || defined __stub___$2
2164 choke me
2165 #endif
2166
2167 int
2168 main ()
2169 {
2170 return $2 ();
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_link "$LINENO"; then :
2176   eval "$3=yes"
2177 else
2178   eval "$3=no"
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext \
2181     conftest$ac_exeext conftest.$ac_ext
2182 fi
2183 eval ac_res=\$$3
2184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187
2188 } # ac_fn_c_check_func
2189
2190 # ac_fn_cxx_try_cpp LINENO
2191 # ------------------------
2192 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_cxx_try_cpp ()
2194 {
2195   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196   if { { ac_try="$ac_cpp conftest.$ac_ext"
2197 case "(($ac_try" in
2198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199   *) ac_try_echo=$ac_try;;
2200 esac
2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202 $as_echo "$ac_try_echo"; } >&5
2203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2204   ac_status=$?
2205   if test -s conftest.err; then
2206     grep -v '^ *+' conftest.err >conftest.er1
2207     cat conftest.er1 >&5
2208     mv -f conftest.er1 conftest.err
2209   fi
2210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211   test $ac_status = 0; } > conftest.i && {
2212          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2213          test ! -s conftest.err
2214        }; then :
2215   ac_retval=0
2216 else
2217   $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220     ac_retval=1
2221 fi
2222   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223   as_fn_set_status $ac_retval
2224
2225 } # ac_fn_cxx_try_cpp
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.10, 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.10" >&5
2665 $as_echo "$as_me: Configuring Subversion 1.8.10" >&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 int main(void){return 0;}
3515 _ACEOF
3516 if ac_fn_c_try_link "$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 int main(void){return 0;}
3542 _ACEOF
3543 if ac_fn_c_try_link "$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 int main(void){return 0;}
3569 _ACEOF
3570 if ac_fn_c_try_link "$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 \
3585     conftest$ac_exeext conftest.$ac_ext
3586   ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591
3592
3593
3594
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext \
3597     conftest$ac_exeext conftest.$ac_ext
3598   ac_ext=c
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603
3604
3605
3606
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext \
3609     conftest$ac_exeext conftest.$ac_ext
3610   ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
3616
3617
3618   CMODEFLAGS="$CFLAGS"
3619   CFLAGS="$CFLAGS_KEEP"
3620
3621
3622
3623
3624   _svn_xxflags__save="$CFLAGS"
3625   ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3632 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3633   CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3634         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636 int main(void){return 0;}
3637 _ACEOF
3638 if ac_fn_c_try_link "$LINENO"; then :
3639
3640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 $as_echo "yes" >&6; }
3642
3643
3644 else
3645
3646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648     CFLAGS="$_svn_xxflags__save"
3649
3650
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext \
3653     conftest$ac_exeext conftest.$ac_ext
3654   ac_ext=c
3655 ac_cpp='$CPP $CPPFLAGS'
3656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659
3660
3661
3662
3663 # Look for a C++ compiler (before anything can set CXXFLAGS)
3664 CXXMAINTAINERFLAGS="$CXXUSERFLAGS"
3665 CXXUSERFLAGS="$CXXFLAGS"
3666 ac_ext=cpp
3667 ac_cpp='$CXXCPP $CPPFLAGS'
3668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671 if test -z "$CXX"; then
3672   if test -n "$CCC"; then
3673     CXX=$CCC
3674   else
3675     if test -n "$ac_tool_prefix"; then
3676   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3677   do
3678     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_CXX+:} false; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   if test -n "$CXX"; then
3686   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691   IFS=$as_save_IFS
3692   test -z "$as_dir" && as_dir=.
3693     for ac_exec_ext in '' $ac_executable_extensions; do
3694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697     break 2
3698   fi
3699 done
3700   done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 CXX=$ac_cv_prog_CXX
3706 if test -n "$CXX"; then
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3708 $as_echo "$CXX" >&6; }
3709 else
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714
3715     test -n "$CXX" && break
3716   done
3717 fi
3718 if test -z "$CXX"; then
3719   ac_ct_CXX=$CXX
3720   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3721 do
3722   # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729   if test -n "$ac_ct_CXX"; then
3730   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735   IFS=$as_save_IFS
3736   test -z "$as_dir" && as_dir=.
3737     for ac_exec_ext in '' $ac_executable_extensions; do
3738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739     ac_cv_prog_ac_ct_CXX="$ac_prog"
3740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741     break 2
3742   fi
3743 done
3744   done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3750 if test -n "$ac_ct_CXX"; then
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3752 $as_echo "$ac_ct_CXX" >&6; }
3753 else
3754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 fi
3757
3758
3759   test -n "$ac_ct_CXX" && break
3760 done
3761
3762   if test "x$ac_ct_CXX" = x; then
3763     CXX="g++"
3764   else
3765     case $cross_compiling:$ac_tool_warned in
3766 yes:)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769 ac_tool_warned=yes ;;
3770 esac
3771     CXX=$ac_ct_CXX
3772   fi
3773 fi
3774
3775   fi
3776 fi
3777 # Provide some information about the compiler.
3778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3779 set X $ac_compile
3780 ac_compiler=$2
3781 for ac_option in --version -v -V -qversion; do
3782   { { ac_try="$ac_compiler $ac_option >&5"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3790   ac_status=$?
3791   if test -s conftest.err; then
3792     sed '10a\
3793 ... rest of stderr output deleted ...
3794          10q' conftest.err >conftest.er1
3795     cat conftest.er1 >&5
3796   fi
3797   rm -f conftest.er1 conftest.err
3798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799   test $ac_status = 0; }
3800 done
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3803 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3804 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h.  */
3809
3810 int
3811 main ()
3812 {
3813 #ifndef __GNUC__
3814        choke me
3815 #endif
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 if ac_fn_cxx_try_compile "$LINENO"; then :
3822   ac_compiler_gnu=yes
3823 else
3824   ac_compiler_gnu=no
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3828
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3831 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3832 if test $ac_compiler_gnu = yes; then
3833   GXX=yes
3834 else
3835   GXX=
3836 fi
3837 ac_test_CXXFLAGS=${CXXFLAGS+set}
3838 ac_save_CXXFLAGS=$CXXFLAGS
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3840 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3841 if ${ac_cv_prog_cxx_g+:} false; then :
3842   $as_echo_n "(cached) " >&6
3843 else
3844   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3845    ac_cxx_werror_flag=yes
3846    ac_cv_prog_cxx_g=no
3847    CXXFLAGS="-g"
3848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h.  */
3850
3851 int
3852 main ()
3853 {
3854
3855   ;
3856   return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_cxx_try_compile "$LINENO"; then :
3860   ac_cv_prog_cxx_g=yes
3861 else
3862   CXXFLAGS=""
3863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h.  */
3865
3866 int
3867 main ()
3868 {
3869
3870   ;
3871   return 0;
3872 }
3873 _ACEOF
3874 if ac_fn_cxx_try_compile "$LINENO"; then :
3875
3876 else
3877   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3878          CXXFLAGS="-g"
3879          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h.  */
3881
3882 int
3883 main ()
3884 {
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_cxx_try_compile "$LINENO"; then :
3891   ac_cv_prog_cxx_g=yes
3892 fi
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3901 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3902 if test "$ac_test_CXXFLAGS" = set; then
3903   CXXFLAGS=$ac_save_CXXFLAGS
3904 elif test $ac_cv_prog_cxx_g = yes; then
3905   if test "$GXX" = yes; then
3906     CXXFLAGS="-g -O2"
3907   else
3908     CXXFLAGS="-g"
3909   fi
3910 else
3911   if test "$GXX" = yes; then
3912     CXXFLAGS="-O2"
3913   else
3914     CXXFLAGS=
3915   fi
3916 fi
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923
3924
3925   CXXFLAGS_KEEP="$CXXFLAGS"
3926   CXXFLAGS=""
3927
3928
3929   _svn_xxflags__save="$CXXFLAGS"
3930   ac_ext=cpp
3931 ac_cpp='$CXXCPP $CPPFLAGS'
3932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3935
3936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
3937 $as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
3938   CXXFLAGS="-std=c++98 $CXXFLAGS"
3939         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941 int main(){}
3942 _ACEOF
3943 if ac_fn_cxx_try_link "$LINENO"; then :
3944
3945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3946 $as_echo "yes" >&6; }
3947
3948
3949 else
3950
3951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953     CXXFLAGS="$_svn_xxflags__save"
3954
3955
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext \
3958     conftest$ac_exeext conftest.$ac_ext
3959   ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
3965
3966
3967   CXXMODEFLAGS="$CXXFLAGS"
3968   CXXFLAGS="$CXXFLAGS_KEEP"
3969
3970
3971
3972
3973   _svn_xxflags__save="$CXXFLAGS"
3974   ac_ext=cpp
3975 ac_cpp='$CXXCPP $CPPFLAGS'
3976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3979
3980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
3981 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
3982   CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
3983         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985 int main(){}
3986 _ACEOF
3987 if ac_fn_cxx_try_link "$LINENO"; then :
3988
3989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3990 $as_echo "yes" >&6; }
3991
3992
3993 else
3994
3995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997     CXXFLAGS="$_svn_xxflags__save"
3998
3999
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext \
4002     conftest$ac_exeext conftest.$ac_ext
4003   ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008
4009
4010
4011
4012 # Look for a C pre-processor
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4019 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4020 # On Suns, sometimes $CPP names a directory.
4021 if test -n "$CPP" && test -d "$CPP"; then
4022   CPP=
4023 fi
4024 if test -z "$CPP"; then
4025   if ${ac_cv_prog_CPP+:} false; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028       # Double quotes because CPP needs to be expanded
4029     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4030     do
4031       ac_preproc_ok=false
4032 for ac_c_preproc_warn_flag in '' yes
4033 do
4034   # Use a header file that comes with gcc, so configuring glibc
4035   # with a fresh cross-compiler works.
4036   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037   # <limits.h> exists even on freestanding compilers.
4038   # On the NeXT, cc -E runs the code through the compiler's parser,
4039   # not just through cpp. "Syntax error" is here to catch this case.
4040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h.  */
4042 #ifdef __STDC__
4043 # include <limits.h>
4044 #else
4045 # include <assert.h>
4046 #endif
4047                      Syntax error
4048 _ACEOF
4049 if ac_fn_c_try_cpp "$LINENO"; then :
4050
4051 else
4052   # Broken: fails on valid input.
4053 continue
4054 fi
4055 rm -f conftest.err conftest.i conftest.$ac_ext
4056
4057   # OK, works on sane cases.  Now check whether nonexistent headers
4058   # can be detected and how.
4059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h.  */
4061 #include <ac_nonexistent.h>
4062 _ACEOF
4063 if ac_fn_c_try_cpp "$LINENO"; then :
4064   # Broken: success on invalid input.
4065 continue
4066 else
4067   # Passes both tests.
4068 ac_preproc_ok=:
4069 break
4070 fi
4071 rm -f conftest.err conftest.i conftest.$ac_ext
4072
4073 done
4074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 rm -f conftest.i conftest.err conftest.$ac_ext
4076 if $ac_preproc_ok; then :
4077   break
4078 fi
4079
4080     done
4081     ac_cv_prog_CPP=$CPP
4082
4083 fi
4084   CPP=$ac_cv_prog_CPP
4085 else
4086   ac_cv_prog_CPP=$CPP
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4089 $as_echo "$CPP" >&6; }
4090 ac_preproc_ok=false
4091 for ac_c_preproc_warn_flag in '' yes
4092 do
4093   # Use a header file that comes with gcc, so configuring glibc
4094   # with a fresh cross-compiler works.
4095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096   # <limits.h> exists even on freestanding compilers.
4097   # On the NeXT, cc -E runs the code through the compiler's parser,
4098   # not just through cpp. "Syntax error" is here to catch this case.
4099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101 #ifdef __STDC__
4102 # include <limits.h>
4103 #else
4104 # include <assert.h>
4105 #endif
4106                      Syntax error
4107 _ACEOF
4108 if ac_fn_c_try_cpp "$LINENO"; then :
4109
4110 else
4111   # Broken: fails on valid input.
4112 continue
4113 fi
4114 rm -f conftest.err conftest.i conftest.$ac_ext
4115
4116   # OK, works on sane cases.  Now check whether nonexistent headers
4117   # can be detected and how.
4118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h.  */
4120 #include <ac_nonexistent.h>
4121 _ACEOF
4122 if ac_fn_c_try_cpp "$LINENO"; then :
4123   # Broken: success on invalid input.
4124 continue
4125 else
4126   # Passes both tests.
4127 ac_preproc_ok=:
4128 break
4129 fi
4130 rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132 done
4133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4134 rm -f conftest.i conftest.err conftest.$ac_ext
4135 if $ac_preproc_ok; then :
4136
4137 else
4138   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4141 See \`config.log' for more details" "$LINENO" 5; }
4142 fi
4143
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150
4151 # Look for a good sed
4152 # AC_PROG_SED was introduced in Autoconf 2.59b
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4154 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4155 if ${ac_cv_path_SED+:} false; then :
4156   $as_echo_n "(cached) " >&6
4157 else
4158             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4159      for ac_i in 1 2 3 4 5 6 7; do
4160        ac_script="$ac_script$as_nl$ac_script"
4161      done
4162      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4163      { ac_script=; unset ac_script;}
4164      if test -z "$SED"; then
4165   ac_path_SED_found=false
4166   # Loop through the user's path and test for each of PROGNAME-LIST
4167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172     for ac_prog in sed gsed; do
4173     for ac_exec_ext in '' $ac_executable_extensions; do
4174       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4175       as_fn_executable_p "$ac_path_SED" || continue
4176 # Check for GNU ac_path_SED and select it if it is found.
4177   # Check for GNU $ac_path_SED
4178 case `"$ac_path_SED" --version 2>&1` in
4179 *GNU*)
4180   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4181 *)
4182   ac_count=0
4183   $as_echo_n 0123456789 >"conftest.in"
4184   while :
4185   do
4186     cat "conftest.in" "conftest.in" >"conftest.tmp"
4187     mv "conftest.tmp" "conftest.in"
4188     cp "conftest.in" "conftest.nl"
4189     $as_echo '' >> "conftest.nl"
4190     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192     as_fn_arith $ac_count + 1 && ac_count=$as_val
4193     if test $ac_count -gt ${ac_path_SED_max-0}; then
4194       # Best one so far, save it but keep looking for a better one
4195       ac_cv_path_SED="$ac_path_SED"
4196       ac_path_SED_max=$ac_count
4197     fi
4198     # 10*(2^10) chars as input seems more than enough
4199     test $ac_count -gt 10 && break
4200   done
4201   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202 esac
4203
4204       $ac_path_SED_found && break 3
4205     done
4206   done
4207   done
4208 IFS=$as_save_IFS
4209   if test -z "$ac_cv_path_SED"; then
4210     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4211   fi
4212 else
4213   ac_cv_path_SED=$SED
4214 fi
4215
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4218 $as_echo "$ac_cv_path_SED" >&6; }
4219  SED="$ac_cv_path_SED"
4220   rm -f conftest.sed
4221
4222
4223 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4224 # Make sure we can run config.sub.
4225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4226   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4229 $as_echo_n "checking build system type... " >&6; }
4230 if ${ac_cv_build+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   ac_build_alias=$build_alias
4234 test "x$ac_build_alias" = x &&
4235   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4236 test "x$ac_build_alias" = x &&
4237   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4238 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4239   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4240
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4243 $as_echo "$ac_cv_build" >&6; }
4244 case $ac_cv_build in
4245 *-*-*) ;;
4246 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4247 esac
4248 build=$ac_cv_build
4249 ac_save_IFS=$IFS; IFS='-'
4250 set x $ac_cv_build
4251 shift
4252 build_cpu=$1
4253 build_vendor=$2
4254 shift; shift
4255 # Remember, the first character of IFS is used to create $*,
4256 # except with old shells:
4257 build_os=$*
4258 IFS=$ac_save_IFS
4259 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4263 $as_echo_n "checking host system type... " >&6; }
4264 if ${ac_cv_host+:} false; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   if test "x$host_alias" = x; then
4268   ac_cv_host=$ac_cv_build
4269 else
4270   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4271     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4272 fi
4273
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4276 $as_echo "$ac_cv_host" >&6; }
4277 case $ac_cv_host in
4278 *-*-*) ;;
4279 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4280 esac
4281 host=$ac_cv_host
4282 ac_save_IFS=$IFS; IFS='-'
4283 set x $ac_cv_host
4284 shift
4285 host_cpu=$1
4286 host_vendor=$2
4287 shift; shift
4288 # Remember, the first character of IFS is used to create $*,
4289 # except with old shells:
4290 host_os=$*
4291 IFS=$ac_save_IFS
4292 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4293
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4296 $as_echo_n "checking target system type... " >&6; }
4297 if ${ac_cv_target+:} false; then :
4298   $as_echo_n "(cached) " >&6
4299 else
4300   if test "x$target_alias" = x; then
4301   ac_cv_target=$ac_cv_host
4302 else
4303   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4304     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4305 fi
4306
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4309 $as_echo "$ac_cv_target" >&6; }
4310 case $ac_cv_target in
4311 *-*-*) ;;
4312 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4313 esac
4314 target=$ac_cv_target
4315 ac_save_IFS=$IFS; IFS='-'
4316 set x $ac_cv_target
4317 shift
4318 target_cpu=$1
4319 target_vendor=$2
4320 shift; shift
4321 # Remember, the first character of IFS is used to create $*,
4322 # except with old shells:
4323 target_os=$*
4324 IFS=$ac_save_IFS
4325 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4326
4327
4328 # The aliases save the names the user supplied, while $host etc.
4329 # will get canonicalized.
4330 test -n "$target_alias" &&
4331   test "$program_prefix$program_suffix$program_transform_name" = \
4332     NONENONEs,x,x, &&
4333   program_prefix=${target_alias}-
4334
4335 # Look for an extended grep
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4337 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4338 if ${ac_cv_path_GREP+:} false; then :
4339   $as_echo_n "(cached) " >&6
4340 else
4341   if test -z "$GREP"; then
4342   ac_path_GREP_found=false
4343   # Loop through the user's path and test for each of PROGNAME-LIST
4344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346 do
4347   IFS=$as_save_IFS
4348   test -z "$as_dir" && as_dir=.
4349     for ac_prog in grep ggrep; do
4350     for ac_exec_ext in '' $ac_executable_extensions; do
4351       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4352       as_fn_executable_p "$ac_path_GREP" || continue
4353 # Check for GNU ac_path_GREP and select it if it is found.
4354   # Check for GNU $ac_path_GREP
4355 case `"$ac_path_GREP" --version 2>&1` in
4356 *GNU*)
4357   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4358 *)
4359   ac_count=0
4360   $as_echo_n 0123456789 >"conftest.in"
4361   while :
4362   do
4363     cat "conftest.in" "conftest.in" >"conftest.tmp"
4364     mv "conftest.tmp" "conftest.in"
4365     cp "conftest.in" "conftest.nl"
4366     $as_echo 'GREP' >> "conftest.nl"
4367     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369     as_fn_arith $ac_count + 1 && ac_count=$as_val
4370     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4371       # Best one so far, save it but keep looking for a better one
4372       ac_cv_path_GREP="$ac_path_GREP"
4373       ac_path_GREP_max=$ac_count
4374     fi
4375     # 10*(2^10) chars as input seems more than enough
4376     test $ac_count -gt 10 && break
4377   done
4378   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379 esac
4380
4381       $ac_path_GREP_found && break 3
4382     done
4383   done
4384   done
4385 IFS=$as_save_IFS
4386   if test -z "$ac_cv_path_GREP"; then
4387     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388   fi
4389 else
4390   ac_cv_path_GREP=$GREP
4391 fi
4392
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4395 $as_echo "$ac_cv_path_GREP" >&6; }
4396  GREP="$ac_cv_path_GREP"
4397
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4400 $as_echo_n "checking for egrep... " >&6; }
4401 if ${ac_cv_path_EGREP+:} false; then :
4402   $as_echo_n "(cached) " >&6
4403 else
4404   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4405    then ac_cv_path_EGREP="$GREP -E"
4406    else
4407      if test -z "$EGREP"; then
4408   ac_path_EGREP_found=false
4409   # Loop through the user's path and test for each of PROGNAME-LIST
4410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412 do
4413   IFS=$as_save_IFS
4414   test -z "$as_dir" && as_dir=.
4415     for ac_prog in egrep; do
4416     for ac_exec_ext in '' $ac_executable_extensions; do
4417       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4418       as_fn_executable_p "$ac_path_EGREP" || continue
4419 # Check for GNU ac_path_EGREP and select it if it is found.
4420   # Check for GNU $ac_path_EGREP
4421 case `"$ac_path_EGREP" --version 2>&1` in
4422 *GNU*)
4423   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4424 *)
4425   ac_count=0
4426   $as_echo_n 0123456789 >"conftest.in"
4427   while :
4428   do
4429     cat "conftest.in" "conftest.in" >"conftest.tmp"
4430     mv "conftest.tmp" "conftest.in"
4431     cp "conftest.in" "conftest.nl"
4432     $as_echo 'EGREP' >> "conftest.nl"
4433     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435     as_fn_arith $ac_count + 1 && ac_count=$as_val
4436     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4437       # Best one so far, save it but keep looking for a better one
4438       ac_cv_path_EGREP="$ac_path_EGREP"
4439       ac_path_EGREP_max=$ac_count
4440     fi
4441     # 10*(2^10) chars as input seems more than enough
4442     test $ac_count -gt 10 && break
4443   done
4444   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 esac
4446
4447       $ac_path_EGREP_found && break 3
4448     done
4449   done
4450   done
4451 IFS=$as_save_IFS
4452   if test -z "$ac_cv_path_EGREP"; then
4453     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454   fi
4455 else
4456   ac_cv_path_EGREP=$EGREP
4457 fi
4458
4459    fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4462 $as_echo "$ac_cv_path_EGREP" >&6; }
4463  EGREP="$ac_cv_path_EGREP"
4464
4465
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4468 $as_echo_n "checking whether ln -s works... " >&6; }
4469 LN_S=$as_ln_s
4470 if test "$LN_S" = "ln -s"; then
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4473 else
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4475 $as_echo "no, using $LN_S" >&6; }
4476 fi
4477
4478
4479 # Find a good install program.  We prefer a C program (faster),
4480 # so one script is as good as another.  But avoid the broken or
4481 # incompatible versions:
4482 # SysV /etc/install, /usr/sbin/install
4483 # SunOS /usr/etc/install
4484 # IRIX /sbin/install
4485 # AIX /bin/install
4486 # AmigaOS /C/install, which installs bootblocks on floppy discs
4487 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4488 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4489 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4490 # OS/2's system install, which has a completely different semantic
4491 # ./install, which can be erroneously created by make from ./install.sh.
4492 # Reject install programs that cannot install multiple files.
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4494 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4495 if test -z "$INSTALL"; then
4496 if ${ac_cv_path_install+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504     # Account for people who put trailing slashes in PATH elements.
4505 case $as_dir/ in #((
4506   ./ | .// | /[cC]/* | \
4507   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4508   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4509   /usr/ucb/* ) ;;
4510   *)
4511     # OSF1 and SCO ODT 3.0 have their own names for install.
4512     # Don't use installbsd from OSF since it installs stuff as root
4513     # by default.
4514     for ac_prog in ginstall scoinst install; do
4515       for ac_exec_ext in '' $ac_executable_extensions; do
4516         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4517           if test $ac_prog = install &&
4518             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4519             # AIX install.  It has an incompatible calling convention.
4520             :
4521           elif test $ac_prog = install &&
4522             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4523             # program-specific install script used by HP pwplus--don't use.
4524             :
4525           else
4526             rm -rf conftest.one conftest.two conftest.dir
4527             echo one > conftest.one
4528             echo two > conftest.two
4529             mkdir conftest.dir
4530             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4531               test -s conftest.one && test -s conftest.two &&
4532               test -s conftest.dir/conftest.one &&
4533               test -s conftest.dir/conftest.two
4534             then
4535               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4536               break 3
4537             fi
4538           fi
4539         fi
4540       done
4541     done
4542     ;;
4543 esac
4544
4545   done
4546 IFS=$as_save_IFS
4547
4548 rm -rf conftest.one conftest.two conftest.dir
4549
4550 fi
4551   if test "${ac_cv_path_install+set}" = set; then
4552     INSTALL=$ac_cv_path_install
4553   else
4554     # As a last resort, use the slow shell script.  Don't cache a
4555     # value for INSTALL within a source directory, because that will
4556     # break other packages using the cache if that directory is
4557     # removed, or if the value is a relative name.
4558     INSTALL=$ac_install_sh
4559   fi
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4562 $as_echo "$INSTALL" >&6; }
4563
4564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4565 # It thinks the first close brace ends the variable substitution.
4566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4567
4568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4569
4570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4571
4572 # If $INSTALL is relative path to our fallback install-sh, then convert
4573 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4574 # may try to use it from a changed working directory.
4575 if test "$INSTALL" = "build/install-sh -c"; then
4576   INSTALL="$abs_srcdir/$INSTALL"
4577 fi
4578
4579 if test -z "$MKDIR"; then
4580   MKDIR="$INSTALL -d"
4581 fi
4582
4583
4584 # ==== Libraries, for which we may have source to build ======================
4585
4586
4587 APR_VER_REGEXES="0\.9\.[7-9] 0\.9\.[12][0-9] 1\. 2\."
4588
4589
4590   APR_WANTED_REGEXES="$APR_VER_REGEXES"
4591
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4593 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4594
4595
4596   apr_found="no"
4597
4598   if test "$ac_cv_emxos2" = "yes"; then
4599     # Scripts don't pass test -x on OS/2
4600     TEST_X="test -f"
4601   else
4602     TEST_X="test -x"
4603   fi
4604
4605   acceptable_majors="1 0"
4606
4607   apr_temp_acceptable_apr_config=""
4608   for apr_temp_major in $acceptable_majors
4609   do
4610     case $apr_temp_major in
4611       0)
4612       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4613       ;;
4614       *)
4615       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4616       ;;
4617     esac
4618   done
4619
4620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4621 $as_echo_n "checking for APR... " >&6; }
4622
4623 # Check whether --with-apr was given.
4624 if test "${with_apr+set}" = set; then :
4625   withval=$with_apr;
4626     if test "$withval" = "no" || test "$withval" = "yes"; then
4627       as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4628     fi
4629
4630     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4631     do
4632       for lookdir in "$withval/bin" "$withval"
4633       do
4634         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4635           apr_found="yes"
4636           apr_config="$lookdir/$apr_temp_apr_config_file"
4637           break 2
4638         fi
4639       done
4640     done
4641
4642     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4643       apr_found="yes"
4644       apr_config="$withval"
4645     fi
4646
4647             if test "$apr_found" != "yes"; then
4648       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
4649     fi
4650
4651 else
4652
4653         if test -d """"; then
4654       apr_temp_abs_srcdir="`cd "" && pwd`"
4655       apr_found="reconfig"
4656       apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4657       case $apr_bundled_major in
4658         "")
4659           as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4660         ;;
4661         0)
4662           apr_temp_apr_config_file="apr-config"
4663         ;;
4664         *)
4665           apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4666         ;;
4667       esac
4668       if test -n """"; then
4669         apr_config="""/$apr_temp_apr_config_file"
4670       else
4671         apr_config="""/$apr_temp_apr_config_file"
4672       fi
4673     fi
4674     if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4675       for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4676       do
4677         if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4678           apr_found="yes"
4679           apr_config="$apr_temp_apr_config_file"
4680           break
4681         else
4682                     for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4683             if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4684               apr_found="yes"
4685               apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4686               break 2
4687             fi
4688           done
4689         fi
4690       done
4691     fi
4692
4693 fi
4694
4695
4696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4697 $as_echo "$apr_found" >&6; }
4698
4699
4700   if test $apr_found = "no"; then
4701     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4702 $as_echo "$as_me: WARNING: APR not found" >&2;}
4703
4704   echo "The Apache Portable Runtime (APR) library cannot be found."
4705   echo "Please install APR on this system and configure Subversion"
4706   echo "with the appropriate --with-apr option."
4707   echo ""
4708   echo "You probably need to do something similar with the Apache"
4709   echo "Portable Runtime Utility (APRUTIL) library and then configure"
4710   echo "Subversion with both the --with-apr and --with-apr-util options."
4711   echo ""
4712   as_fn_error $? "no suitable APR found" "$LINENO" 5
4713
4714   fi
4715
4716   if test $apr_found = "reconfig"; then
4717     as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4718   fi
4719
4720
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4722 $as_echo_n "checking APR version... " >&6; }
4723   apr_version="`$apr_config --version`"
4724   if test $? -ne 0; then
4725     as_fn_error $? "apr-config --version failed" "$LINENO" 5
4726   fi
4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4728 $as_echo "$apr_version" >&6; }
4729
4730   APR_WANTED_REGEX_MATCH=0
4731   for apr_wanted_regex in $APR_WANTED_REGEXES; do
4732     if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4733       APR_WANTED_REGEX_MATCH=1
4734       break
4735     fi
4736   done
4737
4738   if test $APR_WANTED_REGEX_MATCH -eq 0; then
4739     echo "wanted regexes are $APR_WANTED_REGEXES"
4740     as_fn_error $? "invalid apr version found" "$LINENO" 5
4741   fi
4742
4743
4744   CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4745   if test $? -ne 0; then
4746     as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4747   fi
4748
4749   CFLAGS="$CFLAGS `$apr_config --cflags`"
4750   if test $? -ne 0; then
4751     as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4752   fi
4753
4754   apr_ldflags="`$apr_config --ldflags`"
4755   if test $? -ne 0; then
4756     as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4757   fi
4758   LDFLAGS="$LDFLAGS `
4759   input_flags="$apr_ldflags"
4760   output_flags=""
4761   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4762   for flag in $input_flags; do
4763     filter="no"
4764     for dir in $filtered_dirs; do
4765       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4766         filter="yes"
4767         break
4768       fi
4769     done
4770     if test "$filter" = "no"; then
4771       output_flags="$output_flags $flag"
4772     fi
4773   done
4774   if test -n "$output_flags"; then
4775     printf "%s" "${output_flags# }"
4776   fi
4777 `"
4778
4779   SVN_APR_INCLUDES="`$apr_config --includes`"
4780   if test $? -ne 0; then
4781     as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4782   fi
4783
4784   if test "$enable_all_static" = "yes"; then
4785     SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4786     if test $? -ne 0; then
4787       as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4788     fi
4789   else
4790     SVN_APR_LIBS="`$apr_config --link-ld`"
4791     if test $? -ne 0; then
4792       as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4793     fi
4794   fi
4795   SVN_APR_LIBS="`
4796   input_flags="$SVN_APR_LIBS"
4797   output_flags=""
4798   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4799   for flag in $input_flags; do
4800     filter="no"
4801     for dir in $filtered_dirs; do
4802       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4803         filter="yes"
4804         break
4805       fi
4806     done
4807     if test "$filter" = "no"; then
4808       output_flags="$output_flags $flag"
4809     fi
4810   done
4811   if test -n "$output_flags"; then
4812     printf "%s" "${output_flags# }"
4813   fi
4814 `"
4815
4816   SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4817   if test $? -ne 0; then
4818     as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4819   fi
4820
4821   SVN_APR_CONFIG="$apr_config"
4822
4823
4824
4825
4826
4827
4828 if test `expr $apr_version : 2` -ne 0; then
4829       svn_lib_ver=2
4830     apu_config=$apr_config
4831
4832   SVN_APRUTIL_CONFIG="$apu_config"
4833
4834
4835 else
4836   svn_lib_ver=0
4837   APU_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\."
4838
4839   APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4840
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4842 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4843
4844
4845   apu_found="no"
4846
4847   if test "$ac_cv_emxos2" = "yes"; then
4848     # Scripts don't pass test -x on OS/2
4849     TEST_X="test -f"
4850   else
4851     TEST_X="test -x"
4852   fi
4853
4854   acceptable_majors="1 0"
4855
4856   apu_temp_acceptable_apu_config=""
4857   for apu_temp_major in $acceptable_majors
4858   do
4859     case $apu_temp_major in
4860       0)
4861       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4862       ;;
4863       *)
4864       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4865       ;;
4866     esac
4867   done
4868
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4870 $as_echo_n "checking for APR-util... " >&6; }
4871
4872 # Check whether --with-apr-util was given.
4873 if test "${with_apr_util+set}" = set; then :
4874   withval=$with_apr_util;
4875     if test "$withval" = "no" || test "$withval" = "yes"; then
4876       as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4877     fi
4878
4879     for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4880     do
4881       for lookdir in "$withval/bin" "$withval"
4882       do
4883         if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4884           apu_found="yes"
4885           apu_config="$lookdir/$apu_temp_apu_config_file"
4886           break 2
4887         fi
4888       done
4889     done
4890
4891     if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4892       apu_found="yes"
4893       apu_config="$withval"
4894     fi
4895
4896             if test "$apu_found" != "yes"; then
4897       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
4898     fi
4899
4900 else
4901
4902         if test -d """"; then
4903       apu_temp_abs_srcdir="`cd "" && pwd`"
4904       apu_found="reconfig"
4905       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
4906       case $apu_bundled_major in
4907         "")
4908           as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4909         ;;
4910         0)
4911           apu_temp_apu_config_file="apu-config"
4912         ;;
4913         *)
4914           apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4915         ;;
4916       esac
4917       if test -n """"; then
4918         apu_config="""/$apu_temp_apu_config_file"
4919       else
4920         apu_config="""/$apu_temp_apu_config_file"
4921       fi
4922     fi
4923     if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
4924       for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4925       do
4926         if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4927           apu_found="yes"
4928           apu_config="$apu_temp_apu_config_file"
4929           break
4930         else
4931                     for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4932             if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4933               apu_found="yes"
4934               apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4935               break 2
4936             fi
4937           done
4938         fi
4939       done
4940     fi
4941
4942 fi
4943
4944
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4946 $as_echo "$apu_found" >&6; }
4947
4948
4949   if test $apu_found = "no"; then
4950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
4951 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
4952
4953   echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
4954   echo "Install APRUTIL on this system and configure Subversion with the"
4955   echo " appropriate --with-apr-util option."
4956   echo ""
4957   as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
4958
4959   fi
4960
4961   if test $apu_found = "reconfig"; then
4962     as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
4963   fi
4964
4965
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
4967 $as_echo_n "checking APRUTIL version... " >&6; }
4968   apu_version="`$apu_config --version`"
4969   if test $? -ne 0; then
4970     # This is a hack as suggested by Ben Collins-Sussman.  It can be
4971     # removed after apache 2.0.44 has been released.  (The apu-config
4972     # shipped in 2.0.43 contains a correct version number, but
4973     # stupidly doesn't understand the --version switch.)
4974     apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
4975     #AC_MSG_ERROR([
4976     #    apu-config --version failed.
4977     #    Your apu-config doesn't support the --version switch, please upgrade
4978     #    to APR-UTIL more recent than 2002-Nov-05.])
4979   fi
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
4981 $as_echo "$apu_version" >&6; }
4982
4983   APU_WANTED_REGEX_MATCH=0
4984   for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
4985     if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
4986       APU_WANTED_REGEX_MATCH=1
4987       break
4988     fi
4989   done
4990
4991   if test $APU_WANTED_REGEX_MATCH -eq 0; then
4992     echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
4993     as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
4994   fi
4995
4996
4997   apu_ldflags="`$apu_config --ldflags`"
4998   if test $? -ne 0; then
4999     as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5000   fi
5001   LDFLAGS="$LDFLAGS `
5002   input_flags="$apu_ldflags"
5003   output_flags=""
5004   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5005   for flag in $input_flags; do
5006     filter="no"
5007     for dir in $filtered_dirs; do
5008       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5009         filter="yes"
5010         break
5011       fi
5012     done
5013     if test "$filter" = "no"; then
5014       output_flags="$output_flags $flag"
5015     fi
5016   done
5017   if test -n "$output_flags"; then
5018     printf "%s" "${output_flags# }"
5019   fi
5020 `"
5021
5022   SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5023   if test $? -ne 0; then
5024     as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5025   fi
5026
5027   if test "$enable_all_static" = "yes"; then
5028     SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5029     if test $? -ne 0; then
5030       as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5031     fi
5032   else
5033     SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5034     if test $? -ne 0; then
5035       as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5036     fi
5037   fi
5038   SVN_APRUTIL_LIBS="`
5039   input_flags="$SVN_APRUTIL_LIBS"
5040   output_flags=""
5041   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5042   for flag in $input_flags; do
5043     filter="no"
5044     for dir in $filtered_dirs; do
5045       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5046         filter="yes"
5047         break
5048       fi
5049     done
5050     if test "$filter" = "no"; then
5051       output_flags="$output_flags $flag"
5052     fi
5053   done
5054   if test -n "$output_flags"; then
5055     printf "%s" "${output_flags# }"
5056   fi
5057 `"
5058
5059
5060   SVN_APRUTIL_CONFIG="$apu_config"
5061
5062
5063
5064     SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5065   if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5066
5067 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5068
5069   fi
5070
5071 fi
5072 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5073
5074
5075 cat >>confdefs.h <<_ACEOF
5076 #define SVN_SOVERSION $svn_lib_ver
5077 _ACEOF
5078
5079
5080 # Extract the first word of "pkg-config", so it can be a program name with args.
5081 set dummy pkg-config; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   case $PKG_CONFIG in
5088   [\\/]* | ?:[\\/]*)
5089   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5090   ;;
5091   *)
5092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104   done
5105 IFS=$as_save_IFS
5106
5107   ;;
5108 esac
5109 fi
5110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5111 if test -n "$PKG_CONFIG"; then
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5113 $as_echo "$PKG_CONFIG" >&6; }
5114 else
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5123 $as_echo_n "checking for ANSI C header files... " >&6; }
5124 if ${ac_cv_header_stdc+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h.  */
5129 #include <stdlib.h>
5130 #include <stdarg.h>
5131 #include <string.h>
5132 #include <float.h>
5133
5134 int
5135 main ()
5136 {
5137
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143   ac_cv_header_stdc=yes
5144 else
5145   ac_cv_header_stdc=no
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148
5149 if test $ac_cv_header_stdc = yes; then
5150   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h.  */
5153 #include <string.h>
5154
5155 _ACEOF
5156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157   $EGREP "memchr" >/dev/null 2>&1; then :
5158
5159 else
5160   ac_cv_header_stdc=no
5161 fi
5162 rm -f conftest*
5163
5164 fi
5165
5166 if test $ac_cv_header_stdc = yes; then
5167   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h.  */
5170 #include <stdlib.h>
5171
5172 _ACEOF
5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174   $EGREP "free" >/dev/null 2>&1; then :
5175
5176 else
5177   ac_cv_header_stdc=no
5178 fi
5179 rm -f conftest*
5180
5181 fi
5182
5183 if test $ac_cv_header_stdc = yes; then
5184   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5185   if test "$cross_compiling" = yes; then :
5186   :
5187 else
5188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h.  */
5190 #include <ctype.h>
5191 #include <stdlib.h>
5192 #if ((' ' & 0x0FF) == 0x020)
5193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5195 #else
5196 # define ISLOWER(c) \
5197                    (('a' <= (c) && (c) <= 'i') \
5198                      || ('j' <= (c) && (c) <= 'r') \
5199                      || ('s' <= (c) && (c) <= 'z'))
5200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5201 #endif
5202
5203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5204 int
5205 main ()
5206 {
5207   int i;
5208   for (i = 0; i < 256; i++)
5209     if (XOR (islower (i), ISLOWER (i))
5210         || toupper (i) != TOUPPER (i))
5211       return 2;
5212   return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_run "$LINENO"; then :
5216
5217 else
5218   ac_cv_header_stdc=no
5219 fi
5220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5221   conftest.$ac_objext conftest.beam conftest.$ac_ext
5222 fi
5223
5224 fi
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5227 $as_echo "$ac_cv_header_stdc" >&6; }
5228 if test $ac_cv_header_stdc = yes; then
5229
5230 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5231
5232 fi
5233
5234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5236                   inttypes.h stdint.h unistd.h
5237 do :
5238   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5240 "
5241 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5242   cat >>confdefs.h <<_ACEOF
5243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244 _ACEOF
5245
5246 fi
5247
5248 done
5249
5250
5251
5252   serf_found=no
5253   serf_required=no
5254   serf_skip=no
5255
5256   serf_check_major="1"
5257   serf_check_minor="2"
5258   serf_check_patch="1"
5259   serf_check_version="1.2.1"
5260
5261
5262 # Check whether --with-serf was given.
5263 if test "${with_serf+set}" = set; then :
5264   withval=$with_serf;
5265     if test "$withval" = "yes" ; then
5266       serf_required=yes
5267     elif test "$withval" = "no" ; then
5268       serf_skip=yes
5269     else
5270
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5272 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5273   serf_required=yes
5274   serf_prefix=$withval
5275   for serf_major in serf-2 serf-1; do
5276     if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5277     save_cppflags="$CPPFLAGS"
5278     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5279     for ac_header in serf.h
5280 do :
5281   ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5282 if test "x$ac_cv_header_serf_h" = xyes; then :
5283   cat >>confdefs.h <<_ACEOF
5284 #define HAVE_SERF_H 1
5285 _ACEOF
5286
5287       save_ldflags="$LDFLAGS"
5288       LDFLAGS="$LDFLAGS `
5289   input_flags="-L$serf_prefix/lib"
5290   output_flags=""
5291   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5292   for flag in $input_flags; do
5293     filter="no"
5294     for dir in $filtered_dirs; do
5295       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5296         filter="yes"
5297         break
5298       fi
5299     done
5300     if test "$filter" = "no"; then
5301       output_flags="$output_flags $flag"
5302     fi
5303   done
5304   if test -n "$output_flags"; then
5305     printf "%s" "${output_flags# }"
5306   fi
5307 `"
5308       as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5310 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5311 if eval \${$as_ac_Lib+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   ac_check_lib_save_LIBS=$LIBS
5315 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h.  */
5318
5319 /* Override any GCC internal prototype to avoid an error.
5320    Use char because int might match the return type of a GCC
5321    builtin and then its argument prototype would still apply.  */
5322 #ifdef __cplusplus
5323 extern "C"
5324 #endif
5325 char serf_context_create ();
5326 int
5327 main ()
5328 {
5329 return serf_context_create ();
5330   ;
5331   return 0;
5332 }
5333 _ACEOF
5334 if ac_fn_c_try_link "$LINENO"; then :
5335   eval "$as_ac_Lib=yes"
5336 else
5337   eval "$as_ac_Lib=no"
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext \
5340     conftest$ac_exeext conftest.$ac_ext
5341 LIBS=$ac_check_lib_save_LIBS
5342 fi
5343 eval ac_res=\$$as_ac_Lib
5344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5345 $as_echo "$ac_res" >&6; }
5346 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5347
5348         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350
5351 #include <stdlib.h>
5352 #include "serf.h"
5353
5354 int
5355 main ()
5356 {
5357
5358 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5359 #error Serf version too old: need $serf_check_version
5360 #endif
5361
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367   serf_found=yes
5368 else
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5370 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5371       serf_found=no
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 fi
5375
5376     LDFLAGS="$save_ldflags"
5377 fi
5378
5379 done
5380
5381     CPPFLAGS="$save_cppflags"
5382     test $serf_found = yes && break
5383   done
5384
5385   if test $serf_found = "yes"; then
5386     SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5387     if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5388       SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5389     else
5390       SVN_SERF_LIBS="-l$serf_major"
5391       LDFLAGS="$LDFLAGS `
5392   input_flags="-L$serf_prefix/lib"
5393   output_flags=""
5394   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5395   for flag in $input_flags; do
5396     filter="no"
5397     for dir in $filtered_dirs; do
5398       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5399         filter="yes"
5400         break
5401       fi
5402     done
5403     if test "$filter" = "no"; then
5404       output_flags="$output_flags $flag"
5405     fi
5406   done
5407   if test -n "$output_flags"; then
5408     printf "%s" "${output_flags# }"
5409   fi
5410 `"
5411     fi
5412   fi
5413
5414     fi
5415
5416 fi
5417
5418
5419   if test "$serf_skip" = "no" ; then
5420     if test "$serf_found" = "no" ; then
5421
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5423 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5424   if test -n "$PKG_CONFIG"; then
5425     for serf_major in serf-2 serf-1; do
5426       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5427 $as_echo_n "checking for $serf_major library... " >&6; }
5428       if $PKG_CONFIG $serf_major --exists; then
5429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5430 $as_echo "yes" >&6; }
5431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5432 $as_echo_n "checking serf library version... " >&6; }
5433         SERF_VERSION=`$PKG_CONFIG $serf_major --modversion`
5434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5435 $as_echo "$SERF_VERSION" >&6; }
5436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5437 $as_echo_n "checking serf version is suitable... " >&6; }
5438         if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then
5439           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5440 $as_echo "yes" >&6; }
5441           serf_found=yes
5442           SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'`
5443           SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs`
5444           break
5445         else
5446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5448           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5449 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5450         fi
5451       else
5452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454       fi
5455     done
5456   fi
5457
5458     fi
5459
5460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5461 $as_echo_n "checking was serf enabled... " >&6; }
5462     if test "$serf_found" = "yes"; then
5463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464 $as_echo "yes" >&6; }
5465     else
5466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468
5469   echo ""
5470   echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5471   echo "will not be built.  If you want to build libsvn_ra_serf, please"
5472   echo "install serf $serf_check_version or newer."
5473   echo ""
5474
5475       if test "$serf_required" = "yes"; then
5476         as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5477       fi
5478     fi
5479   fi
5480
5481   svn_lib_serf=$serf_found
5482
5483
5484
5485
5486
5487 if test "$svn_lib_serf" = "yes"; then
5488
5489 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5490
5491 fi
5492
5493
5494   apr_memcache_found=no
5495
5496
5497 # Check whether --with-apr_memcache was given.
5498 if test "${with_apr_memcache+set}" = set; then :
5499   withval=$with_apr_memcache;
5500     if test "$withval" = "yes" ; then
5501       as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5502     else
5503       { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5504 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5505       apr_memcache_prefix=$withval
5506       save_cppflags="$CPPFLAGS"
5507       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5508       ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5510
5511         save_ldflags="$LDFLAGS"
5512         LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5514 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5515 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5516   $as_echo_n "(cached) " >&6
5517 else
5518   ac_check_lib_save_LIBS=$LIBS
5519 LIBS="-lapr_memcache  $LIBS"
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h.  */
5522
5523 /* Override any GCC internal prototype to avoid an error.
5524    Use char because int might match the return type of a GCC
5525    builtin and then its argument prototype would still apply.  */
5526 #ifdef __cplusplus
5527 extern "C"
5528 #endif
5529 char apr_memcache_create ();
5530 int
5531 main ()
5532 {
5533 return apr_memcache_create ();
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 if ac_fn_c_try_link "$LINENO"; then :
5539   ac_cv_lib_apr_memcache_apr_memcache_create=yes
5540 else
5541   ac_cv_lib_apr_memcache_apr_memcache_create=no
5542 fi
5543 rm -f core conftest.err conftest.$ac_objext \
5544     conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5548 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5549 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5550   apr_memcache_found="standalone"
5551 fi
5552
5553         LDFLAGS="$save_ldflags"
5554 fi
5555
5556
5557       CPPFLAGS="$save_cppflags"
5558     fi
5559
5560 else
5561
5562     { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5563 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5564     save_cppflags="$CPPFLAGS"
5565     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5566     ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5567 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5568
5569       save_ldflags="$LDFLAGS"
5570       LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5571       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5572 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5573 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5574   $as_echo_n "(cached) " >&6
5575 else
5576   ac_check_lib_save_LIBS=$LIBS
5577 LIBS="-laprutil-1  $LIBS"
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h.  */
5580
5581 /* Override any GCC internal prototype to avoid an error.
5582    Use char because int might match the return type of a GCC
5583    builtin and then its argument prototype would still apply.  */
5584 #ifdef __cplusplus
5585 extern "C"
5586 #endif
5587 char apr_memcache_create ();
5588 int
5589 main ()
5590 {
5591 return apr_memcache_create ();
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_link "$LINENO"; then :
5597   ac_cv_lib_aprutil_1_apr_memcache_create=yes
5598 else
5599   ac_cv_lib_aprutil_1_apr_memcache_create=no
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext \
5602     conftest$ac_exeext conftest.$ac_ext
5603 LIBS=$ac_check_lib_save_LIBS
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5606 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5607 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5608   apr_memcache_found="aprutil"
5609 fi
5610
5611       LDFLAGS="$save_ldflags"
5612 fi
5613
5614
5615     CPPFLAGS="$save_cppflags"
5616
5617 fi
5618
5619
5620
5621   if test $apr_memcache_found = "standalone"; then
5622     SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5623     SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5624     svn_lib_apr_memcache=yes
5625   elif test $apr_memcache_found = "aprutil"; then
5626     SVN_APR_MEMCACHE_INCLUDES=""
5627     SVN_APR_MEMCACHE_LIBS=""
5628     svn_lib_apr_memcache=yes
5629   elif test $apr_memcache_found = "reconfig"; then
5630     svn_lib_apr_memcache=yes
5631   else
5632     svn_lib_apr_memcache=no
5633   fi
5634
5635
5636
5637
5638
5639 if test "$svn_lib_apr_memcache" = "yes"; then
5640
5641 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5642
5643 fi
5644
5645
5646
5647
5648
5649 HTTPD_WANTED_MMN="20020903"
5650
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5652 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5653
5654 # Check whether --with-apxs was given.
5655 if test "${with_apxs+set}" = set; then :
5656   withval=$with_apxs;
5657     if test "$withval" = "yes"; then
5658       APXS=apxs
5659     else
5660       APXS="$withval"
5661     fi
5662     APXS_EXPLICIT=1
5663
5664 fi
5665
5666
5667 if test -z "$APXS"; then
5668   for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5669     if test -f "$i/apxs2"; then
5670       APXS="$i/apxs2"
5671       break
5672     fi
5673     if test -f "$i/apxs"; then
5674       APXS="$i/apxs"
5675       break
5676     fi
5677   done
5678 fi
5679
5680 if test -n "$APXS" && test "$APXS" != "no"; then
5681     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5682     if test -r $APXS_INCLUDE/mod_dav.h; then
5683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5684 $as_echo "found at $APXS" >&6; }
5685
5686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5687 $as_echo_n "checking httpd version... " >&6; }
5688         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h.  */
5690
5691 #include "$APXS_INCLUDE/ap_mmn.h"
5692 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5693 VERSION_OKAY
5694 #endif
5695 _ACEOF
5696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5697   $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5699 $as_echo "recent enough" >&6; }
5700 else
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5702 $as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5703          if test "$APXS_EXPLICIT" != ""; then
5704              as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5705          fi
5706          APXS=""
5707
5708 fi
5709 rm -f conftest*
5710
5711
5712     elif test "$APXS_EXPLICIT" != ""; then
5713         as_fn_error $? "no - APXS refers to an old version of Apache
5714                       Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5715     else
5716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5717 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5718         APXS=""
5719     fi
5720 else
5721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5723 fi
5724
5725 if test -n "$APXS" && test "$APXS" != "no"; then
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5727 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5728   apr_major_version="${apr_version%%.*}"
5729   case "$apr_major_version" in
5730     0)
5731       apache_minor_version_wanted_regex="0"
5732       ;;
5733     1)
5734       apache_minor_version_wanted_regex="[1-5]"
5735       ;;
5736     2)
5737       apache_minor_version_wanted_regex="[3-5]"
5738       ;;
5739     *)
5740       as_fn_error $? "unknown APR version" "$LINENO" 5
5741       ;;
5742   esac
5743   old_CPPFLAGS="$CPPFLAGS"
5744   CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h.  */
5747
5748 #include "$APXS_INCLUDE/ap_release.h"
5749 apache_minor_version=AP_SERVER_MINORVERSION
5750 _ACEOF
5751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5752   $EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then :
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754 $as_echo "yes" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758                 as_fn_error $? "Apache version incompatible with APR version" "$LINENO" 5
5759 fi
5760 rm -f conftest*
5761
5762   CPPFLAGS="$old_CPPFLAGS"
5763 fi
5764
5765 # check for some busted versions of mod_dav
5766 # in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5767 # troublesome for Subversion:
5768 # PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5769 # PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5770 # PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5771 if test -n "$APXS" && test "$APXS" != "no"; then
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5773 $as_echo_n "checking mod_dav version... " >&6; }
5774   old_CPPFLAGS="$CPPFLAGS"
5775   CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5776   blacklisted_versions_regex="\"2\" \"\.\" (\"2\" \"\.\" \"25\"|\"4\" \"\.\" \"[56]\")"
5777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h.  */
5779
5780 #include "$APXS_INCLUDE/ap_release.h"
5781 apache_version=AP_SERVER_BASEREVISION
5782 _ACEOF
5783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5784   $EGREP "apache_version= *$blacklisted_versions_regex" >/dev/null 2>&1; then :
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5786 $as_echo "broken" >&6; }
5787                 as_fn_error $? "Apache httpd version includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5788 else
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5790 $as_echo "acceptable" >&6; }
5791 fi
5792 rm -f conftest*
5793
5794   CPPFLAGS="$old_CPPFLAGS"
5795 fi
5796
5797
5798 # Check whether --with-apache-libexecdir was given.
5799 if test "${with_apache_libexecdir+set}" = set; then :
5800   withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5801 else
5802   APACHE_LIBEXECDIR='no'
5803 fi
5804
5805
5806 INSTALL_APACHE_MODS=false
5807 if test -n "$APXS" && test "$APXS" != "no"; then
5808     APXS_CC="`$APXS -q CC`"
5809     APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5810
5811     if test "$APACHE_LIBEXECDIR" = 'no'; then
5812         APACHE_LIBEXECDIR="$libexecdir"
5813     elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5814         APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5815     fi
5816
5817     BUILD_APACHE_RULE=apache-mod
5818     INSTALL_APACHE_RULE=install-mods-shared
5819     INSTALL_APACHE_MODS=true
5820
5821     case $host in
5822       *-*-cygwin*)
5823         APACHE_LDFLAGS="-shrext .so"
5824         ;;
5825     esac
5826 elif test x"$APXS" != x"no"; then
5827     echo "=================================================================="
5828     echo "WARNING: skipping the build of mod_dav_svn"
5829     echo "         try using --with-apxs"
5830     echo "=================================================================="
5831 fi
5832
5833
5834
5835
5836
5837
5838
5839 # there aren't any flags that interest us ...
5840 #if test -n "$APXS" && test "$APXS" != "no"; then
5841 #  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
5842 #fi
5843
5844 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
5845   echo "=================================================================="
5846   echo "WARNING: You have chosen to compile Subversion with a different"
5847   echo "         compiler than the one used to compile Apache."
5848   echo ""
5849   echo "    Current compiler:      $CC"
5850   echo "   Apache's compiler:      $APXS_CC"
5851   echo ""
5852   echo "This could cause some problems."
5853   echo "=================================================================="
5854 fi
5855
5856
5857
5858 SQLITE_MINIMUM_VER="3.7.12"
5859 SQLITE_RECOMMENDED_VER="3.7.15.1"
5860 SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
5861
5862
5863   SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
5864   SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
5865   SQLITE_URL="${SQLITE_URL}"
5866   SQLITE_PKGNAME="sqlite3"
5867
5868
5869
5870   version_string="$SQLITE_MINIMUM_VER"
5871
5872   major=`expr $version_string : '\([0-9]*\)'`
5873   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
5874   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5875   if test -z "$micro"; then
5876     micro=0
5877   fi
5878   sqlite_min_ver_num=`expr $major \* 1000000 \
5879         \+ $minor \* 1000 \
5880         \+ $micro`
5881
5882
5883
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
5885 $as_echo "$as_me: checking sqlite library" >&6;}
5886
5887
5888 # Check whether --with-sqlite was given.
5889 if test "${with_sqlite+set}" = set; then :
5890   withval=$with_sqlite;
5891     if test "$withval" = "yes" ; then
5892       as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
5893     else
5894       sqlite_dir="$withval"
5895     fi
5896
5897     if test -d $sqlite_dir; then
5898
5899   if test -z "$sqlite_dir"; then
5900     sqlite_dir=""
5901     sqlite_include="sqlite3.h"
5902   else
5903     sqlite_dir="$sqlite_dir"
5904     sqlite_include="$sqlite_dir/include/sqlite3.h"
5905   fi
5906
5907   save_CPPFLAGS="$CPPFLAGS"
5908   save_LDFLAGS="$LDFLAGS"
5909
5910   if test ! -z "$sqlite_dir"; then
5911     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
5912     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
5913   fi
5914
5915   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5916 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5917
5918       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
5919 $as_echo_n "checking sqlite library version (via header)... " >&6; }
5920       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h.  */
5922
5923 #include "$sqlite_include"
5924 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5925 SQLITE_VERSION_OKAY
5926 #endif
5927 _ACEOF
5928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
5931 $as_echo "okay" >&6; }
5932                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
5933 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
5934 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
5935   $as_echo_n "(cached) " >&6
5936 else
5937   ac_check_lib_save_LIBS=$LIBS
5938 LIBS="-lsqlite3  $LIBS"
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h.  */
5941
5942 /* Override any GCC internal prototype to avoid an error.
5943    Use char because int might match the return type of a GCC
5944    builtin and then its argument prototype would still apply.  */
5945 #ifdef __cplusplus
5946 extern "C"
5947 #endif
5948 char sqlite3_close ();
5949 int
5950 main ()
5951 {
5952 return sqlite3_close ();
5953   ;
5954   return 0;
5955 }
5956 _ACEOF
5957 if ac_fn_c_try_link "$LINENO"; then :
5958   ac_cv_lib_sqlite3_sqlite3_close=yes
5959 else
5960   ac_cv_lib_sqlite3_sqlite3_close=no
5961 fi
5962 rm -f core conftest.err conftest.$ac_objext \
5963     conftest$ac_exeext conftest.$ac_ext
5964 LIBS=$ac_check_lib_save_LIBS
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
5967 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
5968 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
5969
5970                       svn_lib_sqlite="yes"
5971                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
5972                         SVN_SQLITE_LIBS="-lsqlite3"
5973                       else
5974                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
5975                         SVN_SQLITE_LIBS="`
5976   input_flags="-L$sqlite_dir/lib -lsqlite3"
5977   output_flags=""
5978   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5979   for flag in $input_flags; do
5980     filter="no"
5981     for dir in $filtered_dirs; do
5982       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5983         filter="yes"
5984         break
5985       fi
5986     done
5987     if test "$filter" = "no"; then
5988       output_flags="$output_flags $flag"
5989     fi
5990   done
5991   if test -n "$output_flags"; then
5992     printf "%s" "${output_flags# }"
5993   fi
5994 `"
5995                       fi
5996
5997 fi
5998
5999 else
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6001 $as_echo "unsupported SQLite version" >&6; }
6002 fi
6003 rm -f conftest*
6004
6005
6006 fi
6007
6008
6009
6010   CPPFLAGS="$save_CPPFLAGS"
6011   LDFLAGS="$save_LDFLAGS"
6012
6013     else
6014
6015   sqlite_amalg="$sqlite_dir"
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6017 $as_echo_n "checking sqlite amalgamation... " >&6; }
6018   if test ! -e $sqlite_amalg; then
6019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021   else
6022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6023 $as_echo "yes" >&6; }
6024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6025 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h.  */
6028
6029 #include "$sqlite_amalg"
6030 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6031 SQLITE_VERSION_OKAY
6032 #endif
6033 _ACEOF
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6037 $as_echo "amalgamation found and is okay" >&6; }
6038
6039   case $host_os in
6040   beos* | mingw* | pw32* | cegcc* | cygwin*)
6041     svn_sqlite_dso_ldflags=
6042     ;;
6043
6044   darwin*)
6045   # if libdl is installed we need to link against it
6046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6047 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6048 if ${ac_cv_lib_dl_dlopen+:} false; then :
6049   $as_echo_n "(cached) " >&6
6050 else
6051   ac_check_lib_save_LIBS=$LIBS
6052 LIBS="-ldl  $LIBS"
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h.  */
6055
6056 /* Override any GCC internal prototype to avoid an error.
6057    Use char because int might match the return type of a GCC
6058    builtin and then its argument prototype would still apply.  */
6059 #ifdef __cplusplus
6060 extern "C"
6061 #endif
6062 char dlopen ();
6063 int
6064 main ()
6065 {
6066 return dlopen ();
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_link "$LINENO"; then :
6072   ac_cv_lib_dl_dlopen=yes
6073 else
6074   ac_cv_lib_dl_dlopen=no
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext \
6077     conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6081 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6082 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6083   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6084 else
6085
6086     svn_sqlite_dso_ldflags=
6087
6088 fi
6089
6090     ;;
6091
6092   *)
6093     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6094 if test "x$ac_cv_func_shl_load" = xyes; then :
6095   svn_sqlite_dso_ldflags=
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6098 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6099 if ${ac_cv_lib_dld_shl_load+:} false; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102   ac_check_lib_save_LIBS=$LIBS
6103 LIBS="-ldld  $LIBS"
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h.  */
6106
6107 /* Override any GCC internal prototype to avoid an error.
6108    Use char because int might match the return type of a GCC
6109    builtin and then its argument prototype would still apply.  */
6110 #ifdef __cplusplus
6111 extern "C"
6112 #endif
6113 char shl_load ();
6114 int
6115 main ()
6116 {
6117 return shl_load ();
6118   ;
6119   return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_c_try_link "$LINENO"; then :
6123   ac_cv_lib_dld_shl_load=yes
6124 else
6125   ac_cv_lib_dld_shl_load=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext \
6128     conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6130 fi
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6132 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6133 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6134   svn_sqlite_dso_ldflags="-ldld"
6135 else
6136   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6137 if test "x$ac_cv_func_dlopen" = xyes; then :
6138   svn_sqlite_dso_ldflags=
6139 else
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6141 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6142 if ${ac_cv_lib_dl_dlopen+:} false; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   ac_check_lib_save_LIBS=$LIBS
6146 LIBS="-ldl  $LIBS"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h.  */
6149
6150 /* Override any GCC internal prototype to avoid an error.
6151    Use char because int might match the return type of a GCC
6152    builtin and then its argument prototype would still apply.  */
6153 #ifdef __cplusplus
6154 extern "C"
6155 #endif
6156 char dlopen ();
6157 int
6158 main ()
6159 {
6160 return dlopen ();
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 if ac_fn_c_try_link "$LINENO"; then :
6166   ac_cv_lib_dl_dlopen=yes
6167 else
6168   ac_cv_lib_dl_dlopen=no
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext \
6171     conftest$ac_exeext conftest.$ac_ext
6172 LIBS=$ac_check_lib_save_LIBS
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6175 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6176 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6177   svn_sqlite_dso_ldflags="-ldl"
6178 else
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6180 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6181 if ${ac_cv_lib_svld_dlopen+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   ac_check_lib_save_LIBS=$LIBS
6185 LIBS="-lsvld  $LIBS"
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h.  */
6188
6189 /* Override any GCC internal prototype to avoid an error.
6190    Use char because int might match the return type of a GCC
6191    builtin and then its argument prototype would still apply.  */
6192 #ifdef __cplusplus
6193 extern "C"
6194 #endif
6195 char dlopen ();
6196 int
6197 main ()
6198 {
6199 return dlopen ();
6200   ;
6201   return 0;
6202 }
6203 _ACEOF
6204 if ac_fn_c_try_link "$LINENO"; then :
6205   ac_cv_lib_svld_dlopen=yes
6206 else
6207   ac_cv_lib_svld_dlopen=no
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext \
6210     conftest$ac_exeext conftest.$ac_ext
6211 LIBS=$ac_check_lib_save_LIBS
6212 fi
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6214 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6215 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6216   svn_sqlite_dso_ldflags="-lsvld"
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6219 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6220 if ${ac_cv_lib_dld_dld_link+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   ac_check_lib_save_LIBS=$LIBS
6224 LIBS="-ldld  $LIBS"
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h.  */
6227
6228 /* Override any GCC internal prototype to avoid an error.
6229    Use char because int might match the return type of a GCC
6230    builtin and then its argument prototype would still apply.  */
6231 #ifdef __cplusplus
6232 extern "C"
6233 #endif
6234 char dld_link ();
6235 int
6236 main ()
6237 {
6238 return dld_link ();
6239   ;
6240   return 0;
6241 }
6242 _ACEOF
6243 if ac_fn_c_try_link "$LINENO"; then :
6244   ac_cv_lib_dld_dld_link=yes
6245 else
6246   ac_cv_lib_dld_dld_link=no
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext \
6249     conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6251 fi
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6253 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6254 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6255   svn_sqlite_dso_ldflags="-ldld"
6256 fi
6257
6258
6259 fi
6260
6261
6262 fi
6263
6264
6265 fi
6266
6267
6268 fi
6269
6270
6271 fi
6272
6273     ;;
6274   esac
6275
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6277 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6278   if test -n "$svn_sqlite_dso_ldflags"; then
6279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6280 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6281   else
6282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6283 $as_echo "none" >&6; }
6284   fi
6285
6286
6287 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6288
6289                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6290                   if test -n "$svn_sqlite_dso_ldflags"; then
6291                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6292                   else
6293                     SVN_SQLITE_LIBS="-lpthread"
6294                   fi
6295                   svn_lib_sqlite="yes"
6296 else
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6298 $as_echo "unsupported amalgamation SQLite version" >&6; }
6299 fi
6300 rm -f conftest*
6301
6302   fi
6303
6304     fi
6305
6306     if test -z "$svn_lib_sqlite"; then
6307       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6308 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6309
6310   echo ""
6311   echo "An appropriate version of sqlite could not be found.  We recommmend"
6312   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6313   echo "Please either install a newer sqlite on this system"
6314   echo ""
6315   echo "or"
6316   echo ""
6317   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6318   echo "    ${SQLITE_URL}"
6319   echo "unpack the archive using unzip and rename the resulting"
6320   echo "directory to:"
6321   echo "$abs_srcdir/sqlite-amalgamation"
6322   if test x"$abs_srcdir" != x"$abs_builddir"; then
6323     echo "or to:"
6324     echo "$abs_builddir/sqlite-amalgamation"
6325   fi
6326   echo ""
6327   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6328
6329     fi
6330
6331 else
6332
6333
6334   sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6336 $as_echo_n "checking sqlite amalgamation... " >&6; }
6337   if test ! -e $sqlite_amalg; then
6338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340   else
6341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6342 $as_echo "yes" >&6; }
6343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6344 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6345     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h.  */
6347
6348 #include "$sqlite_amalg"
6349 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6350 SQLITE_VERSION_OKAY
6351 #endif
6352 _ACEOF
6353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6356 $as_echo "amalgamation found and is okay" >&6; }
6357
6358   case $host_os in
6359   beos* | mingw* | pw32* | cegcc* | cygwin*)
6360     svn_sqlite_dso_ldflags=
6361     ;;
6362
6363   darwin*)
6364   # if libdl is installed we need to link against it
6365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6366 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6367 if ${ac_cv_lib_dl_dlopen+:} false; then :
6368   $as_echo_n "(cached) " >&6
6369 else
6370   ac_check_lib_save_LIBS=$LIBS
6371 LIBS="-ldl  $LIBS"
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h.  */
6374
6375 /* Override any GCC internal prototype to avoid an error.
6376    Use char because int might match the return type of a GCC
6377    builtin and then its argument prototype would still apply.  */
6378 #ifdef __cplusplus
6379 extern "C"
6380 #endif
6381 char dlopen ();
6382 int
6383 main ()
6384 {
6385 return dlopen ();
6386   ;
6387   return 0;
6388 }
6389 _ACEOF
6390 if ac_fn_c_try_link "$LINENO"; then :
6391   ac_cv_lib_dl_dlopen=yes
6392 else
6393   ac_cv_lib_dl_dlopen=no
6394 fi
6395 rm -f core conftest.err conftest.$ac_objext \
6396     conftest$ac_exeext conftest.$ac_ext
6397 LIBS=$ac_check_lib_save_LIBS
6398 fi
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6400 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6401 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6402   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6403 else
6404
6405     svn_sqlite_dso_ldflags=
6406
6407 fi
6408
6409     ;;
6410
6411   *)
6412     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6413 if test "x$ac_cv_func_shl_load" = xyes; then :
6414   svn_sqlite_dso_ldflags=
6415 else
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6417 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6418 if ${ac_cv_lib_dld_shl_load+:} false; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421   ac_check_lib_save_LIBS=$LIBS
6422 LIBS="-ldld  $LIBS"
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h.  */
6425
6426 /* Override any GCC internal prototype to avoid an error.
6427    Use char because int might match the return type of a GCC
6428    builtin and then its argument prototype would still apply.  */
6429 #ifdef __cplusplus
6430 extern "C"
6431 #endif
6432 char shl_load ();
6433 int
6434 main ()
6435 {
6436 return shl_load ();
6437   ;
6438   return 0;
6439 }
6440 _ACEOF
6441 if ac_fn_c_try_link "$LINENO"; then :
6442   ac_cv_lib_dld_shl_load=yes
6443 else
6444   ac_cv_lib_dld_shl_load=no
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext \
6447     conftest$ac_exeext conftest.$ac_ext
6448 LIBS=$ac_check_lib_save_LIBS
6449 fi
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6451 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6452 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6453   svn_sqlite_dso_ldflags="-ldld"
6454 else
6455   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6456 if test "x$ac_cv_func_dlopen" = xyes; then :
6457   svn_sqlite_dso_ldflags=
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6461 if ${ac_cv_lib_dl_dlopen+:} false; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-ldl  $LIBS"
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h.  */
6468
6469 /* Override any GCC internal prototype to avoid an error.
6470    Use char because int might match the return type of a GCC
6471    builtin and then its argument prototype would still apply.  */
6472 #ifdef __cplusplus
6473 extern "C"
6474 #endif
6475 char dlopen ();
6476 int
6477 main ()
6478 {
6479 return dlopen ();
6480   ;
6481   return 0;
6482 }
6483 _ACEOF
6484 if ac_fn_c_try_link "$LINENO"; then :
6485   ac_cv_lib_dl_dlopen=yes
6486 else
6487   ac_cv_lib_dl_dlopen=no
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext \
6490     conftest$ac_exeext conftest.$ac_ext
6491 LIBS=$ac_check_lib_save_LIBS
6492 fi
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6495 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6496   svn_sqlite_dso_ldflags="-ldl"
6497 else
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6499 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6500 if ${ac_cv_lib_svld_dlopen+:} false; then :
6501   $as_echo_n "(cached) " >&6
6502 else
6503   ac_check_lib_save_LIBS=$LIBS
6504 LIBS="-lsvld  $LIBS"
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h.  */
6507
6508 /* Override any GCC internal prototype to avoid an error.
6509    Use char because int might match the return type of a GCC
6510    builtin and then its argument prototype would still apply.  */
6511 #ifdef __cplusplus
6512 extern "C"
6513 #endif
6514 char dlopen ();
6515 int
6516 main ()
6517 {
6518 return dlopen ();
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_link "$LINENO"; then :
6524   ac_cv_lib_svld_dlopen=yes
6525 else
6526   ac_cv_lib_svld_dlopen=no
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext \
6529     conftest$ac_exeext conftest.$ac_ext
6530 LIBS=$ac_check_lib_save_LIBS
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6533 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6534 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6535   svn_sqlite_dso_ldflags="-lsvld"
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6538 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6539 if ${ac_cv_lib_dld_dld_link+:} false; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   ac_check_lib_save_LIBS=$LIBS
6543 LIBS="-ldld  $LIBS"
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h.  */
6546
6547 /* Override any GCC internal prototype to avoid an error.
6548    Use char because int might match the return type of a GCC
6549    builtin and then its argument prototype would still apply.  */
6550 #ifdef __cplusplus
6551 extern "C"
6552 #endif
6553 char dld_link ();
6554 int
6555 main ()
6556 {
6557 return dld_link ();
6558   ;
6559   return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_c_try_link "$LINENO"; then :
6563   ac_cv_lib_dld_dld_link=yes
6564 else
6565   ac_cv_lib_dld_dld_link=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext \
6568     conftest$ac_exeext conftest.$ac_ext
6569 LIBS=$ac_check_lib_save_LIBS
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6572 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6573 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6574   svn_sqlite_dso_ldflags="-ldld"
6575 fi
6576
6577
6578 fi
6579
6580
6581 fi
6582
6583
6584 fi
6585
6586
6587 fi
6588
6589
6590 fi
6591
6592     ;;
6593   esac
6594
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6596 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6597   if test -n "$svn_sqlite_dso_ldflags"; then
6598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6599 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6600   else
6601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6602 $as_echo "none" >&6; }
6603   fi
6604
6605
6606 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6607
6608                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6609                   if test -n "$svn_sqlite_dso_ldflags"; then
6610                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6611                   else
6612                     SVN_SQLITE_LIBS="-lpthread"
6613                   fi
6614                   svn_lib_sqlite="yes"
6615 else
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6617 $as_echo "unsupported amalgamation SQLite version" >&6; }
6618 fi
6619 rm -f conftest*
6620
6621   fi
6622
6623
6624     if test -z "$svn_lib_sqlite"; then
6625
6626   sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6628 $as_echo_n "checking sqlite amalgamation... " >&6; }
6629   if test ! -e $sqlite_amalg; then
6630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632   else
6633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6634 $as_echo "yes" >&6; }
6635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6636 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h.  */
6639
6640 #include "$sqlite_amalg"
6641 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6642 SQLITE_VERSION_OKAY
6643 #endif
6644 _ACEOF
6645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6646   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6648 $as_echo "amalgamation found and is okay" >&6; }
6649
6650   case $host_os in
6651   beos* | mingw* | pw32* | cegcc* | cygwin*)
6652     svn_sqlite_dso_ldflags=
6653     ;;
6654
6655   darwin*)
6656   # if libdl is installed we need to link against it
6657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6658 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6659 if ${ac_cv_lib_dl_dlopen+:} false; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-ldl  $LIBS"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h.  */
6666
6667 /* Override any GCC internal prototype to avoid an error.
6668    Use char because int might match the return type of a GCC
6669    builtin and then its argument prototype would still apply.  */
6670 #ifdef __cplusplus
6671 extern "C"
6672 #endif
6673 char dlopen ();
6674 int
6675 main ()
6676 {
6677 return dlopen ();
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 if ac_fn_c_try_link "$LINENO"; then :
6683   ac_cv_lib_dl_dlopen=yes
6684 else
6685   ac_cv_lib_dl_dlopen=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext \
6688     conftest$ac_exeext conftest.$ac_ext
6689 LIBS=$ac_check_lib_save_LIBS
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6692 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6693 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6694   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6695 else
6696
6697     svn_sqlite_dso_ldflags=
6698
6699 fi
6700
6701     ;;
6702
6703   *)
6704     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6705 if test "x$ac_cv_func_shl_load" = xyes; then :
6706   svn_sqlite_dso_ldflags=
6707 else
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6709 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6710 if ${ac_cv_lib_dld_shl_load+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   ac_check_lib_save_LIBS=$LIBS
6714 LIBS="-ldld  $LIBS"
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h.  */
6717
6718 /* Override any GCC internal prototype to avoid an error.
6719    Use char because int might match the return type of a GCC
6720    builtin and then its argument prototype would still apply.  */
6721 #ifdef __cplusplus
6722 extern "C"
6723 #endif
6724 char shl_load ();
6725 int
6726 main ()
6727 {
6728 return shl_load ();
6729   ;
6730   return 0;
6731 }
6732 _ACEOF
6733 if ac_fn_c_try_link "$LINENO"; then :
6734   ac_cv_lib_dld_shl_load=yes
6735 else
6736   ac_cv_lib_dld_shl_load=no
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext \
6739     conftest$ac_exeext conftest.$ac_ext
6740 LIBS=$ac_check_lib_save_LIBS
6741 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6743 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6744 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6745   svn_sqlite_dso_ldflags="-ldld"
6746 else
6747   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6748 if test "x$ac_cv_func_dlopen" = xyes; then :
6749   svn_sqlite_dso_ldflags=
6750 else
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6752 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6753 if ${ac_cv_lib_dl_dlopen+:} false; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   ac_check_lib_save_LIBS=$LIBS
6757 LIBS="-ldl  $LIBS"
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h.  */
6760
6761 /* Override any GCC internal prototype to avoid an error.
6762    Use char because int might match the return type of a GCC
6763    builtin and then its argument prototype would still apply.  */
6764 #ifdef __cplusplus
6765 extern "C"
6766 #endif
6767 char dlopen ();
6768 int
6769 main ()
6770 {
6771 return dlopen ();
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 if ac_fn_c_try_link "$LINENO"; then :
6777   ac_cv_lib_dl_dlopen=yes
6778 else
6779   ac_cv_lib_dl_dlopen=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext \
6782     conftest$ac_exeext conftest.$ac_ext
6783 LIBS=$ac_check_lib_save_LIBS
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6786 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6787 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6788   svn_sqlite_dso_ldflags="-ldl"
6789 else
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6791 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6792 if ${ac_cv_lib_svld_dlopen+:} false; then :
6793   $as_echo_n "(cached) " >&6
6794 else
6795   ac_check_lib_save_LIBS=$LIBS
6796 LIBS="-lsvld  $LIBS"
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h.  */
6799
6800 /* Override any GCC internal prototype to avoid an error.
6801    Use char because int might match the return type of a GCC
6802    builtin and then its argument prototype would still apply.  */
6803 #ifdef __cplusplus
6804 extern "C"
6805 #endif
6806 char dlopen ();
6807 int
6808 main ()
6809 {
6810 return dlopen ();
6811   ;
6812   return 0;
6813 }
6814 _ACEOF
6815 if ac_fn_c_try_link "$LINENO"; then :
6816   ac_cv_lib_svld_dlopen=yes
6817 else
6818   ac_cv_lib_svld_dlopen=no
6819 fi
6820 rm -f core conftest.err conftest.$ac_objext \
6821     conftest$ac_exeext conftest.$ac_ext
6822 LIBS=$ac_check_lib_save_LIBS
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6825 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6826 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6827   svn_sqlite_dso_ldflags="-lsvld"
6828 else
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6830 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6831 if ${ac_cv_lib_dld_dld_link+:} false; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   ac_check_lib_save_LIBS=$LIBS
6835 LIBS="-ldld  $LIBS"
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h.  */
6838
6839 /* Override any GCC internal prototype to avoid an error.
6840    Use char because int might match the return type of a GCC
6841    builtin and then its argument prototype would still apply.  */
6842 #ifdef __cplusplus
6843 extern "C"
6844 #endif
6845 char dld_link ();
6846 int
6847 main ()
6848 {
6849 return dld_link ();
6850   ;
6851   return 0;
6852 }
6853 _ACEOF
6854 if ac_fn_c_try_link "$LINENO"; then :
6855   ac_cv_lib_dld_dld_link=yes
6856 else
6857   ac_cv_lib_dld_dld_link=no
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext \
6860     conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_check_lib_save_LIBS
6862 fi
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6864 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6865 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6866   svn_sqlite_dso_ldflags="-ldld"
6867 fi
6868
6869
6870 fi
6871
6872
6873 fi
6874
6875
6876 fi
6877
6878
6879 fi
6880
6881
6882 fi
6883
6884     ;;
6885   esac
6886
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6888 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6889   if test -n "$svn_sqlite_dso_ldflags"; then
6890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6891 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6892   else
6893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6894 $as_echo "none" >&6; }
6895   fi
6896
6897
6898 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6899
6900                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6901                   if test -n "$svn_sqlite_dso_ldflags"; then
6902                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6903                   else
6904                     SVN_SQLITE_LIBS="-lpthread"
6905                   fi
6906                   svn_lib_sqlite="yes"
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6909 $as_echo "unsupported amalgamation SQLite version" >&6; }
6910 fi
6911 rm -f conftest*
6912
6913   fi
6914
6915     fi
6916
6917     if test -z "$svn_lib_sqlite"; then
6918
6919   if test -z ""; then
6920     sqlite_dir=""
6921     sqlite_include="sqlite3.h"
6922   else
6923     sqlite_dir=""
6924     sqlite_include="/include/sqlite3.h"
6925   fi
6926
6927   save_CPPFLAGS="$CPPFLAGS"
6928   save_LDFLAGS="$LDFLAGS"
6929
6930   if test ! -z ""; then
6931     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6932     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6933   fi
6934
6935   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6936 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6937
6938       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6939 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6940       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h.  */
6942
6943 #include "$sqlite_include"
6944 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6945 SQLITE_VERSION_OKAY
6946 #endif
6947 _ACEOF
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6951 $as_echo "okay" >&6; }
6952                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6953 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6954 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   ac_check_lib_save_LIBS=$LIBS
6958 LIBS="-lsqlite3  $LIBS"
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h.  */
6961
6962 /* Override any GCC internal prototype to avoid an error.
6963    Use char because int might match the return type of a GCC
6964    builtin and then its argument prototype would still apply.  */
6965 #ifdef __cplusplus
6966 extern "C"
6967 #endif
6968 char sqlite3_close ();
6969 int
6970 main ()
6971 {
6972 return sqlite3_close ();
6973   ;
6974   return 0;
6975 }
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978   ac_cv_lib_sqlite3_sqlite3_close=yes
6979 else
6980   ac_cv_lib_sqlite3_sqlite3_close=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983     conftest$ac_exeext conftest.$ac_ext
6984 LIBS=$ac_check_lib_save_LIBS
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
6987 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
6988 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
6989
6990                       svn_lib_sqlite="yes"
6991                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
6992                         SVN_SQLITE_LIBS="-lsqlite3"
6993                       else
6994                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
6995                         SVN_SQLITE_LIBS="`
6996   input_flags="-L$sqlite_dir/lib -lsqlite3"
6997   output_flags=""
6998   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6999   for flag in $input_flags; do
7000     filter="no"
7001     for dir in $filtered_dirs; do
7002       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
7003         filter="yes"
7004         break
7005       fi
7006     done
7007     if test "$filter" = "no"; then
7008       output_flags="$output_flags $flag"
7009     fi
7010   done
7011   if test -n "$output_flags"; then
7012     printf "%s" "${output_flags# }"
7013   fi
7014 `"
7015                       fi
7016
7017 fi
7018
7019 else
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
7021 $as_echo "unsupported SQLite version" >&6; }
7022 fi
7023 rm -f conftest*
7024
7025
7026 fi
7027
7028
7029
7030   CPPFLAGS="$save_CPPFLAGS"
7031   LDFLAGS="$save_LDFLAGS"
7032
7033     fi
7034
7035     if test -z "$svn_lib_sqlite"; then
7036
7037     if test -n "$PKG_CONFIG"; then
7038       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
7039 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
7040       sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
7041
7042       if test -n "$sqlite_version"; then
7043
7044   version_string="$sqlite_version"
7045
7046   major=`expr $version_string : '\([0-9]*\)'`
7047   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7048   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7049   if test -z "$micro"; then
7050     micro=0
7051   fi
7052   sqlite_ver_num=`expr $major \* 1000000 \
7053         \+ $minor \* 1000 \
7054         \+ $micro`
7055
7056
7057         if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
7058           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
7059 $as_echo "$sqlite_version" >&6; }
7060           svn_lib_sqlite="yes"
7061           SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
7062           SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
7063         else
7064           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
7065 $as_echo "none or unsupported $sqlite_version" >&6; }
7066         fi
7067       fi
7068     fi
7069
7070     if test -z "$svn_lib_sqlite"; then
7071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073     fi
7074
7075     fi
7076
7077     if test -z "$svn_lib_sqlite"; then
7078
7079   echo ""
7080   echo "An appropriate version of sqlite could not be found.  We recommmend"
7081   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7082   echo "Please either install a newer sqlite on this system"
7083   echo ""
7084   echo "or"
7085   echo ""
7086   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7087   echo "    ${SQLITE_URL}"
7088   echo "unpack the archive using unzip and rename the resulting"
7089   echo "directory to:"
7090   echo "$abs_srcdir/sqlite-amalgamation"
7091   if test x"$abs_srcdir" != x"$abs_builddir"; then
7092     echo "or to:"
7093     echo "$abs_builddir/sqlite-amalgamation"
7094   fi
7095   echo ""
7096   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7097
7098     fi
7099
7100 fi
7101
7102
7103
7104
7105
7106
7107 # Check whether --enable-sqlite-compatibility-version was given.
7108 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7109   enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7110 else
7111   sqlite_compat_ver=no
7112 fi
7113
7114
7115 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7116
7117   version_string="$sqlite_compat_ver"
7118
7119   major=`expr $version_string : '\([0-9]*\)'`
7120   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7121   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7122   if test -z "$micro"; then
7123     micro=0
7124   fi
7125   sqlite_compat_ver_num=`expr $major \* 1000000 \
7126         \+ $minor \* 1000 \
7127         \+ $micro`
7128
7129   CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7130   CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7131 fi
7132
7133
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7135 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7136 if ${svn_cv_atomic_builtins+:} false; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   if test "$cross_compiling" = yes; then :
7140   svn_cv_atomic_builtins=no
7141 else
7142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h.  */
7144
7145   int main()
7146   {
7147       unsigned long long val = 1010, tmp, *mem = &val;
7148
7149       if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7150           return 1;
7151
7152       tmp = val;
7153
7154       if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7155           return 1;
7156
7157       if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7158           return 1;
7159
7160       tmp = 3030;
7161
7162       if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7163           return 1;
7164
7165       if (__sync_lock_test_and_set(&val, 4040) != 3030)
7166           return 1;
7167
7168       mem = &tmp;
7169
7170       if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7171           return 1;
7172
7173       __sync_synchronize();
7174
7175       if (mem != &val)
7176           return 1;
7177
7178       return 0;
7179   }
7180 _ACEOF
7181 if ac_fn_c_try_run "$LINENO"; then :
7182   svn_cv_atomic_builtins=yes
7183 else
7184   svn_cv_atomic_builtins=no
7185 fi
7186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7187   conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 fi
7189
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7192 $as_echo "$svn_cv_atomic_builtins" >&6; }
7193
7194
7195 if test "$svn_cv_atomic_builtins" = "yes"; then
7196
7197 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7198
7199 fi
7200
7201
7202 if test "${bindir}" = '${exec_prefix}/bin'; then
7203         if test "${exec_prefix}" = "NONE"; then
7204                 if test "${prefix}" = "NONE"; then
7205                         SVN_BINDIR="${ac_default_prefix}/bin"
7206                 else
7207                         SVN_BINDIR="${prefix}/bin"
7208                 fi
7209         else
7210                 SVN_BINDIR="${exec_prefix}/bin"
7211         fi
7212 else
7213         SVN_BINDIR="${bindir}"
7214 fi
7215
7216 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7217
7218
7219
7220 cat >>confdefs.h <<_ACEOF
7221 #define SVN_BINDIR "${SVN_BINDIR}"
7222 _ACEOF
7223
7224
7225 localedir='${datadir}/locale'
7226
7227
7228 if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then
7229   exp_localedir='${ac_default_prefix}/share/locale'
7230 else
7231   exp_localedir=$localedir
7232 fi
7233
7234 svn_last=
7235 svn_cur=""${exp_localedir}""
7236 while test "x${svn_cur}" != "x${svn_last}";
7237 do
7238   svn_last="${svn_cur}"
7239   svn_cur=`eval "echo ${svn_cur}"`
7240 done
7241 svn_localedir="${svn_cur}"
7242
7243
7244 cat >>confdefs.h <<_ACEOF
7245 #define SVN_LOCALE_DIR "${svn_localedir}"
7246 _ACEOF
7247
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7250 $as_echo "$as_me: configuring libtool now" >&6;}
7251 case `pwd` in
7252   *\ * | *\     *)
7253     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7254 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7255 esac
7256
7257
7258
7259 macro_version='2.4.2'
7260 macro_revision='1.3337'
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 ltmain="$ac_aux_dir/ltmain.sh"
7275
7276 # Backslashify metacharacters that are still active within
7277 # double-quoted strings.
7278 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7279
7280 # Same as above, but do not quote variable references.
7281 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7282
7283 # Sed substitution to delay expansion of an escaped shell variable in a
7284 # double_quote_subst'ed string.
7285 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7286
7287 # Sed substitution to delay expansion of an escaped single quote.
7288 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7289
7290 # Sed substitution to avoid accidental globbing in evaled expressions
7291 no_glob_subst='s/\*/\\\*/g'
7292
7293 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7294 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7295 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7298 $as_echo_n "checking how to print strings... " >&6; }
7299 # Test print first, because it will be a builtin if present.
7300 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7301    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7302   ECHO='print -r --'
7303 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7304   ECHO='printf %s\n'
7305 else
7306   # Use this function as a fallback that always works.
7307   func_fallback_echo ()
7308   {
7309     eval 'cat <<_LTECHO_EOF
7310 $1
7311 _LTECHO_EOF'
7312   }
7313   ECHO='func_fallback_echo'
7314 fi
7315
7316 # func_echo_all arg...
7317 # Invoke $ECHO with all args, space-separated.
7318 func_echo_all ()
7319 {
7320     $ECHO ""
7321 }
7322
7323 case "$ECHO" in
7324   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7325 $as_echo "printf" >&6; } ;;
7326   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7327 $as_echo "print -r" >&6; } ;;
7328   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7329 $as_echo "cat" >&6; } ;;
7330 esac
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7346 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7347 if ${ac_cv_path_SED+:} false; then :
7348   $as_echo_n "(cached) " >&6
7349 else
7350             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7351      for ac_i in 1 2 3 4 5 6 7; do
7352        ac_script="$ac_script$as_nl$ac_script"
7353      done
7354      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7355      { ac_script=; unset ac_script;}
7356      if test -z "$SED"; then
7357   ac_path_SED_found=false
7358   # Loop through the user's path and test for each of PROGNAME-LIST
7359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_prog in sed gsed; do
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7367       as_fn_executable_p "$ac_path_SED" || continue
7368 # Check for GNU ac_path_SED and select it if it is found.
7369   # Check for GNU $ac_path_SED
7370 case `"$ac_path_SED" --version 2>&1` in
7371 *GNU*)
7372   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7373 *)
7374   ac_count=0
7375   $as_echo_n 0123456789 >"conftest.in"
7376   while :
7377   do
7378     cat "conftest.in" "conftest.in" >"conftest.tmp"
7379     mv "conftest.tmp" "conftest.in"
7380     cp "conftest.in" "conftest.nl"
7381     $as_echo '' >> "conftest.nl"
7382     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7383     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7384     as_fn_arith $ac_count + 1 && ac_count=$as_val
7385     if test $ac_count -gt ${ac_path_SED_max-0}; then
7386       # Best one so far, save it but keep looking for a better one
7387       ac_cv_path_SED="$ac_path_SED"
7388       ac_path_SED_max=$ac_count
7389     fi
7390     # 10*(2^10) chars as input seems more than enough
7391     test $ac_count -gt 10 && break
7392   done
7393   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7394 esac
7395
7396       $ac_path_SED_found && break 3
7397     done
7398   done
7399   done
7400 IFS=$as_save_IFS
7401   if test -z "$ac_cv_path_SED"; then
7402     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7403   fi
7404 else
7405   ac_cv_path_SED=$SED
7406 fi
7407
7408 fi
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7410 $as_echo "$ac_cv_path_SED" >&6; }
7411  SED="$ac_cv_path_SED"
7412   rm -f conftest.sed
7413
7414 test -z "$SED" && SED=sed
7415 Xsed="$SED -e 1s/^X//"
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7428 $as_echo_n "checking for fgrep... " >&6; }
7429 if ${ac_cv_path_FGREP+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7433    then ac_cv_path_FGREP="$GREP -F"
7434    else
7435      if test -z "$FGREP"; then
7436   ac_path_FGREP_found=false
7437   # Loop through the user's path and test for each of PROGNAME-LIST
7438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443     for ac_prog in fgrep; do
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7446       as_fn_executable_p "$ac_path_FGREP" || continue
7447 # Check for GNU ac_path_FGREP and select it if it is found.
7448   # Check for GNU $ac_path_FGREP
7449 case `"$ac_path_FGREP" --version 2>&1` in
7450 *GNU*)
7451   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7452 *)
7453   ac_count=0
7454   $as_echo_n 0123456789 >"conftest.in"
7455   while :
7456   do
7457     cat "conftest.in" "conftest.in" >"conftest.tmp"
7458     mv "conftest.tmp" "conftest.in"
7459     cp "conftest.in" "conftest.nl"
7460     $as_echo 'FGREP' >> "conftest.nl"
7461     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7462     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7463     as_fn_arith $ac_count + 1 && ac_count=$as_val
7464     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7465       # Best one so far, save it but keep looking for a better one
7466       ac_cv_path_FGREP="$ac_path_FGREP"
7467       ac_path_FGREP_max=$ac_count
7468     fi
7469     # 10*(2^10) chars as input seems more than enough
7470     test $ac_count -gt 10 && break
7471   done
7472   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7473 esac
7474
7475       $ac_path_FGREP_found && break 3
7476     done
7477   done
7478   done
7479 IFS=$as_save_IFS
7480   if test -z "$ac_cv_path_FGREP"; then
7481     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7482   fi
7483 else
7484   ac_cv_path_FGREP=$FGREP
7485 fi
7486
7487    fi
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7490 $as_echo "$ac_cv_path_FGREP" >&6; }
7491  FGREP="$ac_cv_path_FGREP"
7492
7493
7494 test -z "$GREP" && GREP=grep
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514 # Check whether --with-gnu-ld was given.
7515 if test "${with_gnu_ld+set}" = set; then :
7516   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7517 else
7518   with_gnu_ld=no
7519 fi
7520
7521 ac_prog=ld
7522 if test "$GCC" = yes; then
7523   # Check if gcc -print-prog-name=ld gives a path.
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7525 $as_echo_n "checking for ld used by $CC... " >&6; }
7526   case $host in
7527   *-*-mingw*)
7528     # gcc leaves a trailing carriage return which upsets mingw
7529     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7530   *)
7531     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7532   esac
7533   case $ac_prog in
7534     # Accept absolute paths.
7535     [\\/]* | ?:[\\/]*)
7536       re_direlt='/[^/][^/]*/\.\./'
7537       # Canonicalize the pathname of ld
7538       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7539       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7540         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7541       done
7542       test -z "$LD" && LD="$ac_prog"
7543       ;;
7544   "")
7545     # If it fails, then pretend we aren't using GCC.
7546     ac_prog=ld
7547     ;;
7548   *)
7549     # If it is relative, then search for the first ld in PATH.
7550     with_gnu_ld=unknown
7551     ;;
7552   esac
7553 elif test "$with_gnu_ld" = yes; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7555 $as_echo_n "checking for GNU ld... " >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7558 $as_echo_n "checking for non-GNU ld... " >&6; }
7559 fi
7560 if ${lt_cv_path_LD+:} false; then :
7561   $as_echo_n "(cached) " >&6
7562 else
7563   if test -z "$LD"; then
7564   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7565   for ac_dir in $PATH; do
7566     IFS="$lt_save_ifs"
7567     test -z "$ac_dir" && ac_dir=.
7568     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7569       lt_cv_path_LD="$ac_dir/$ac_prog"
7570       # Check to see if the program is GNU ld.  I'd rather use --version,
7571       # but apparently some variants of GNU ld only accept -v.
7572       # Break only if it was the GNU/non-GNU ld that we prefer.
7573       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7574       *GNU* | *'with BFD'*)
7575         test "$with_gnu_ld" != no && break
7576         ;;
7577       *)
7578         test "$with_gnu_ld" != yes && break
7579         ;;
7580       esac
7581     fi
7582   done
7583   IFS="$lt_save_ifs"
7584 else
7585   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7586 fi
7587 fi
7588
7589 LD="$lt_cv_path_LD"
7590 if test -n "$LD"; then
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7592 $as_echo "$LD" >&6; }
7593 else
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 fi
7597 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7599 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7600 if ${lt_cv_prog_gnu_ld+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7604 case `$LD -v 2>&1 </dev/null` in
7605 *GNU* | *'with BFD'*)
7606   lt_cv_prog_gnu_ld=yes
7607   ;;
7608 *)
7609   lt_cv_prog_gnu_ld=no
7610   ;;
7611 esac
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7614 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7615 with_gnu_ld=$lt_cv_prog_gnu_ld
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7626 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7627 if ${lt_cv_path_NM+:} false; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   if test -n "$NM"; then
7631   # Let the user override the test.
7632   lt_cv_path_NM="$NM"
7633 else
7634   lt_nm_to_check="${ac_tool_prefix}nm"
7635   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7636     lt_nm_to_check="$lt_nm_to_check nm"
7637   fi
7638   for lt_tmp_nm in $lt_nm_to_check; do
7639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7640     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7641       IFS="$lt_save_ifs"
7642       test -z "$ac_dir" && ac_dir=.
7643       tmp_nm="$ac_dir/$lt_tmp_nm"
7644       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7645         # Check to see if the nm accepts a BSD-compat flag.
7646         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7647         #   nm: unknown option "B" ignored
7648         # Tru64's nm complains that /dev/null is an invalid object file
7649         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7650         */dev/null* | *'Invalid file or object type'*)
7651           lt_cv_path_NM="$tmp_nm -B"
7652           break
7653           ;;
7654         *)
7655           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7656           */dev/null*)
7657             lt_cv_path_NM="$tmp_nm -p"
7658             break
7659             ;;
7660           *)
7661             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7662             continue # so that we can try to find one that supports BSD flags
7663             ;;
7664           esac
7665           ;;
7666         esac
7667       fi
7668     done
7669     IFS="$lt_save_ifs"
7670   done
7671   : ${lt_cv_path_NM=no}
7672 fi
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7675 $as_echo "$lt_cv_path_NM" >&6; }
7676 if test "$lt_cv_path_NM" != "no"; then
7677   NM="$lt_cv_path_NM"
7678 else
7679   # Didn't find any BSD compatible name lister, look for dumpbin.
7680   if test -n "$DUMPBIN"; then :
7681     # Let the user override the test.
7682   else
7683     if test -n "$ac_tool_prefix"; then
7684   for ac_prog in dumpbin "link -dump"
7685   do
7686     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689 $as_echo_n "checking for $ac_word... " >&6; }
7690 if ${ac_cv_prog_DUMPBIN+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   if test -n "$DUMPBIN"; then
7694   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699   IFS=$as_save_IFS
7700   test -z "$as_dir" && as_dir=.
7701     for ac_exec_ext in '' $ac_executable_extensions; do
7702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705     break 2
7706   fi
7707 done
7708   done
7709 IFS=$as_save_IFS
7710
7711 fi
7712 fi
7713 DUMPBIN=$ac_cv_prog_DUMPBIN
7714 if test -n "$DUMPBIN"; then
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7716 $as_echo "$DUMPBIN" >&6; }
7717 else
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722
7723     test -n "$DUMPBIN" && break
7724   done
7725 fi
7726 if test -z "$DUMPBIN"; then
7727   ac_ct_DUMPBIN=$DUMPBIN
7728   for ac_prog in dumpbin "link -dump"
7729 do
7730   # Extract the first word of "$ac_prog", so it can be a program name with args.
7731 set dummy $ac_prog; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   if test -n "$ac_ct_DUMPBIN"; then
7738   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745     for ac_exec_ext in '' $ac_executable_extensions; do
7746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752   done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7758 if test -n "$ac_ct_DUMPBIN"; then
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7760 $as_echo "$ac_ct_DUMPBIN" >&6; }
7761 else
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767   test -n "$ac_ct_DUMPBIN" && break
7768 done
7769
7770   if test "x$ac_ct_DUMPBIN" = x; then
7771     DUMPBIN=":"
7772   else
7773     case $cross_compiling:$ac_tool_warned in
7774 yes:)
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777 ac_tool_warned=yes ;;
7778 esac
7779     DUMPBIN=$ac_ct_DUMPBIN
7780   fi
7781 fi
7782
7783     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7784     *COFF*)
7785       DUMPBIN="$DUMPBIN -symbols"
7786       ;;
7787     *)
7788       DUMPBIN=:
7789       ;;
7790     esac
7791   fi
7792
7793   if test "$DUMPBIN" != ":"; then
7794     NM="$DUMPBIN"
7795   fi
7796 fi
7797 test -z "$NM" && NM=nm
7798
7799
7800
7801
7802
7803
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7805 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7806 if ${lt_cv_nm_interface+:} false; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   lt_cv_nm_interface="BSD nm"
7810   echo "int some_variable = 0;" > conftest.$ac_ext
7811   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7812   (eval "$ac_compile" 2>conftest.err)
7813   cat conftest.err >&5
7814   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7815   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7816   cat conftest.err >&5
7817   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7818   cat conftest.out >&5
7819   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7820     lt_cv_nm_interface="MS dumpbin"
7821   fi
7822   rm -f conftest*
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7825 $as_echo "$lt_cv_nm_interface" >&6; }
7826
7827 # find the maximum length of command line arguments
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7829 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7830 if ${lt_cv_sys_max_cmd_len+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833     i=0
7834   teststring="ABCD"
7835
7836   case $build_os in
7837   msdosdjgpp*)
7838     # On DJGPP, this test can blow up pretty badly due to problems in libc
7839     # (any single argument exceeding 2000 bytes causes a buffer overrun
7840     # during glob expansion).  Even if it were fixed, the result of this
7841     # check would be larger than it should be.
7842     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7843     ;;
7844
7845   gnu*)
7846     # Under GNU Hurd, this test is not required because there is
7847     # no limit to the length of command line arguments.
7848     # Libtool will interpret -1 as no limit whatsoever
7849     lt_cv_sys_max_cmd_len=-1;
7850     ;;
7851
7852   cygwin* | mingw* | cegcc*)
7853     # On Win9x/ME, this test blows up -- it succeeds, but takes
7854     # about 5 minutes as the teststring grows exponentially.
7855     # Worse, since 9x/ME are not pre-emptively multitasking,
7856     # you end up with a "frozen" computer, even though with patience
7857     # the test eventually succeeds (with a max line length of 256k).
7858     # Instead, let's just punt: use the minimum linelength reported by
7859     # all of the supported platforms: 8192 (on NT/2K/XP).
7860     lt_cv_sys_max_cmd_len=8192;
7861     ;;
7862
7863   mint*)
7864     # On MiNT this can take a long time and run out of memory.
7865     lt_cv_sys_max_cmd_len=8192;
7866     ;;
7867
7868   amigaos*)
7869     # On AmigaOS with pdksh, this test takes hours, literally.
7870     # So we just punt and use a minimum line length of 8192.
7871     lt_cv_sys_max_cmd_len=8192;
7872     ;;
7873
7874   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7875     # This has been around since 386BSD, at least.  Likely further.
7876     if test -x /sbin/sysctl; then
7877       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7878     elif test -x /usr/sbin/sysctl; then
7879       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7880     else
7881       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7882     fi
7883     # And add a safety zone
7884     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7885     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7886     ;;
7887
7888   interix*)
7889     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7890     lt_cv_sys_max_cmd_len=196608
7891     ;;
7892
7893   os2*)
7894     # The test takes a long time on OS/2.
7895     lt_cv_sys_max_cmd_len=8192
7896     ;;
7897
7898   osf*)
7899     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7900     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7901     # nice to cause kernel panics so lets avoid the loop below.
7902     # First set a reasonable default.
7903     lt_cv_sys_max_cmd_len=16384
7904     #
7905     if test -x /sbin/sysconfig; then
7906       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7907         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7908       esac
7909     fi
7910     ;;
7911   sco3.2v5*)
7912     lt_cv_sys_max_cmd_len=102400
7913     ;;
7914   sysv5* | sco5v6* | sysv4.2uw2*)
7915     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7916     if test -n "$kargmax"; then
7917       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7918     else
7919       lt_cv_sys_max_cmd_len=32768
7920     fi
7921     ;;
7922   *)
7923     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7924     if test -n "$lt_cv_sys_max_cmd_len"; then
7925       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7926       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7927     else
7928       # Make teststring a little bigger before we do anything with it.
7929       # a 1K string should be a reasonable start.
7930       for i in 1 2 3 4 5 6 7 8 ; do
7931         teststring=$teststring$teststring
7932       done
7933       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7934       # If test is not a shell built-in, we'll probably end up computing a
7935       # maximum length that is only half of the actual maximum length, but
7936       # we can't tell.
7937       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7938                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7939               test $i != 17 # 1/2 MB should be enough
7940       do
7941         i=`expr $i + 1`
7942         teststring=$teststring$teststring
7943       done
7944       # Only check the string length outside the loop.
7945       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7946       teststring=
7947       # Add a significant safety factor because C++ compilers can tack on
7948       # massive amounts of additional arguments before passing them to the
7949       # linker.  It appears as though 1/2 is a usable value.
7950       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7951     fi
7952     ;;
7953   esac
7954
7955 fi
7956
7957 if test -n $lt_cv_sys_max_cmd_len ; then
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7959 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7960 else
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7962 $as_echo "none" >&6; }
7963 fi
7964 max_cmd_len=$lt_cv_sys_max_cmd_len
7965
7966
7967
7968
7969
7970
7971 : ${CP="cp -f"}
7972 : ${MV="mv -f"}
7973 : ${RM="rm -f"}
7974
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7976 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7977 # Try some XSI features
7978 xsi_shell=no
7979 ( _lt_dummy="a/b/c"
7980   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7981       = c,a/b,b/c, \
7982     && eval 'test $(( 1 + 1 )) -eq 2 \
7983     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7984   && xsi_shell=yes
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7986 $as_echo "$xsi_shell" >&6; }
7987
7988
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7990 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7991 lt_shell_append=no
7992 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7993     >/dev/null 2>&1 \
7994   && lt_shell_append=yes
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7996 $as_echo "$lt_shell_append" >&6; }
7997
7998
7999 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8000   lt_unset=unset
8001 else
8002   lt_unset=false
8003 fi
8004
8005
8006
8007
8008
8009 # test EBCDIC or ASCII
8010 case `echo X|tr X '\101'` in
8011  A) # ASCII based system
8012     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8013   lt_SP2NL='tr \040 \012'
8014   lt_NL2SP='tr \015\012 \040\040'
8015   ;;
8016  *) # EBCDIC based system
8017   lt_SP2NL='tr \100 \n'
8018   lt_NL2SP='tr \r\n \100\100'
8019   ;;
8020 esac
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8031 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8032 if ${lt_cv_to_host_file_cmd+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   case $host in
8036   *-*-mingw* )
8037     case $build in
8038       *-*-mingw* ) # actually msys
8039         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8040         ;;
8041       *-*-cygwin* )
8042         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8043         ;;
8044       * ) # otherwise, assume *nix
8045         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8046         ;;
8047     esac
8048     ;;
8049   *-*-cygwin* )
8050     case $build in
8051       *-*-mingw* ) # actually msys
8052         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8053         ;;
8054       *-*-cygwin* )
8055         lt_cv_to_host_file_cmd=func_convert_file_noop
8056         ;;
8057       * ) # otherwise, assume *nix
8058         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8059         ;;
8060     esac
8061     ;;
8062   * ) # unhandled hosts (and "normal" native builds)
8063     lt_cv_to_host_file_cmd=func_convert_file_noop
8064     ;;
8065 esac
8066
8067 fi
8068
8069 to_host_file_cmd=$lt_cv_to_host_file_cmd
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8071 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8072
8073
8074
8075
8076
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8078 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8079 if ${lt_cv_to_tool_file_cmd+:} false; then :
8080   $as_echo_n "(cached) " >&6
8081 else
8082   #assume ordinary cross tools, or native build.
8083 lt_cv_to_tool_file_cmd=func_convert_file_noop
8084 case $host in
8085   *-*-mingw* )
8086     case $build in
8087       *-*-mingw* ) # actually msys
8088         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8089         ;;
8090     esac
8091     ;;
8092 esac
8093
8094 fi
8095
8096 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8098 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8099
8100
8101
8102
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8105 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8106 if ${lt_cv_ld_reload_flag+:} false; then :
8107   $as_echo_n "(cached) " >&6
8108 else
8109   lt_cv_ld_reload_flag='-r'
8110 fi
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8112 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8113 reload_flag=$lt_cv_ld_reload_flag
8114 case $reload_flag in
8115 "" | " "*) ;;
8116 *) reload_flag=" $reload_flag" ;;
8117 esac
8118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8119 case $host_os in
8120   cygwin* | mingw* | pw32* | cegcc*)
8121     if test "$GCC" != yes; then
8122       reload_cmds=false
8123     fi
8124     ;;
8125   darwin*)
8126     if test "$GCC" = yes; then
8127       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8128     else
8129       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8130     fi
8131     ;;
8132 esac
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142 if test -n "$ac_tool_prefix"; then
8143   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8144 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 $as_echo_n "checking for $ac_word... " >&6; }
8147 if ${ac_cv_prog_OBJDUMP+:} false; then :
8148   $as_echo_n "(cached) " >&6
8149 else
8150   if test -n "$OBJDUMP"; then
8151   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8152 else
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156   IFS=$as_save_IFS
8157   test -z "$as_dir" && as_dir=.
8158     for ac_exec_ext in '' $ac_executable_extensions; do
8159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162     break 2
8163   fi
8164 done
8165   done
8166 IFS=$as_save_IFS
8167
8168 fi
8169 fi
8170 OBJDUMP=$ac_cv_prog_OBJDUMP
8171 if test -n "$OBJDUMP"; then
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8173 $as_echo "$OBJDUMP" >&6; }
8174 else
8175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8177 fi
8178
8179
8180 fi
8181 if test -z "$ac_cv_prog_OBJDUMP"; then
8182   ac_ct_OBJDUMP=$OBJDUMP
8183   # Extract the first word of "objdump", so it can be a program name with args.
8184 set dummy objdump; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   if test -n "$ac_ct_OBJDUMP"; then
8191   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198     for ac_exec_ext in '' $ac_executable_extensions; do
8199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205   done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8211 if test -n "$ac_ct_OBJDUMP"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8213 $as_echo "$ac_ct_OBJDUMP" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218
8219   if test "x$ac_ct_OBJDUMP" = x; then
8220     OBJDUMP="false"
8221   else
8222     case $cross_compiling:$ac_tool_warned in
8223 yes:)
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8226 ac_tool_warned=yes ;;
8227 esac
8228     OBJDUMP=$ac_ct_OBJDUMP
8229   fi
8230 else
8231   OBJDUMP="$ac_cv_prog_OBJDUMP"
8232 fi
8233
8234 test -z "$OBJDUMP" && OBJDUMP=objdump
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8245 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8246 if ${lt_cv_deplibs_check_method+:} false; then :
8247   $as_echo_n "(cached) " >&6
8248 else
8249   lt_cv_file_magic_cmd='$MAGIC_CMD'
8250 lt_cv_file_magic_test_file=
8251 lt_cv_deplibs_check_method='unknown'
8252 # Need to set the preceding variable on all platforms that support
8253 # interlibrary dependencies.
8254 # 'none' -- dependencies not supported.
8255 # `unknown' -- same as none, but documents that we really don't know.
8256 # 'pass_all' -- all dependencies passed with no checks.
8257 # 'test_compile' -- check by making test program.
8258 # 'file_magic [[regex]]' -- check by looking for files in library path
8259 # which responds to the $file_magic_cmd with a given extended regex.
8260 # If you have `file' or equivalent on your system and you're not sure
8261 # whether `pass_all' will *always* work, you probably want this one.
8262
8263 case $host_os in
8264 aix[4-9]*)
8265   lt_cv_deplibs_check_method=pass_all
8266   ;;
8267
8268 beos*)
8269   lt_cv_deplibs_check_method=pass_all
8270   ;;
8271
8272 bsdi[45]*)
8273   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8274   lt_cv_file_magic_cmd='/usr/bin/file -L'
8275   lt_cv_file_magic_test_file=/shlib/libc.so
8276   ;;
8277
8278 cygwin*)
8279   # func_win32_libid is a shell function defined in ltmain.sh
8280   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8281   lt_cv_file_magic_cmd='func_win32_libid'
8282   ;;
8283
8284 mingw* | pw32*)
8285   # Base MSYS/MinGW do not provide the 'file' command needed by
8286   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8287   # unless we find 'file', for example because we are cross-compiling.
8288   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8289   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8290     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8291     lt_cv_file_magic_cmd='func_win32_libid'
8292   else
8293     # Keep this pattern in sync with the one in func_win32_libid.
8294     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8295     lt_cv_file_magic_cmd='$OBJDUMP -f'
8296   fi
8297   ;;
8298
8299 cegcc*)
8300   # use the weaker test based on 'objdump'. See mingw*.
8301   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8302   lt_cv_file_magic_cmd='$OBJDUMP -f'
8303   ;;
8304
8305 darwin* | rhapsody*)
8306   lt_cv_deplibs_check_method=pass_all
8307   ;;
8308
8309 freebsd* | dragonfly*)
8310   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8311     case $host_cpu in
8312     i*86 )
8313       # Not sure whether the presence of OpenBSD here was a mistake.
8314       # Let's accept both of them until this is cleared up.
8315       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8316       lt_cv_file_magic_cmd=/usr/bin/file
8317       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8318       ;;
8319     esac
8320   else
8321     lt_cv_deplibs_check_method=pass_all
8322   fi
8323   ;;
8324
8325 gnu*)
8326   lt_cv_deplibs_check_method=pass_all
8327   ;;
8328
8329 haiku*)
8330   lt_cv_deplibs_check_method=pass_all
8331   ;;
8332
8333 hpux10.20* | hpux11*)
8334   lt_cv_file_magic_cmd=/usr/bin/file
8335   case $host_cpu in
8336   ia64*)
8337     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8338     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8339     ;;
8340   hppa*64*)
8341     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]'
8342     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8343     ;;
8344   *)
8345     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8346     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8347     ;;
8348   esac
8349   ;;
8350
8351 interix[3-9]*)
8352   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8353   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8354   ;;
8355
8356 irix5* | irix6* | nonstopux*)
8357   case $LD in
8358   *-32|*"-32 ") libmagic=32-bit;;
8359   *-n32|*"-n32 ") libmagic=N32;;
8360   *-64|*"-64 ") libmagic=64-bit;;
8361   *) libmagic=never-match;;
8362   esac
8363   lt_cv_deplibs_check_method=pass_all
8364   ;;
8365
8366 # This must be glibc/ELF.
8367 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8368   lt_cv_deplibs_check_method=pass_all
8369   ;;
8370
8371 netbsd*)
8372   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8373     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8374   else
8375     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8376   fi
8377   ;;
8378
8379 newos6*)
8380   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8381   lt_cv_file_magic_cmd=/usr/bin/file
8382   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8383   ;;
8384
8385 *nto* | *qnx*)
8386   lt_cv_deplibs_check_method=pass_all
8387   ;;
8388
8389 openbsd*)
8390   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8391     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8392   else
8393     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8394   fi
8395   ;;
8396
8397 osf3* | osf4* | osf5*)
8398   lt_cv_deplibs_check_method=pass_all
8399   ;;
8400
8401 rdos*)
8402   lt_cv_deplibs_check_method=pass_all
8403   ;;
8404
8405 solaris*)
8406   lt_cv_deplibs_check_method=pass_all
8407   ;;
8408
8409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8410   lt_cv_deplibs_check_method=pass_all
8411   ;;
8412
8413 sysv4 | sysv4.3*)
8414   case $host_vendor in
8415   motorola)
8416     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]'
8417     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8418     ;;
8419   ncr)
8420     lt_cv_deplibs_check_method=pass_all
8421     ;;
8422   sequent)
8423     lt_cv_file_magic_cmd='/bin/file'
8424     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8425     ;;
8426   sni)
8427     lt_cv_file_magic_cmd='/bin/file'
8428     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8429     lt_cv_file_magic_test_file=/lib/libc.so
8430     ;;
8431   siemens)
8432     lt_cv_deplibs_check_method=pass_all
8433     ;;
8434   pc)
8435     lt_cv_deplibs_check_method=pass_all
8436     ;;
8437   esac
8438   ;;
8439
8440 tpf*)
8441   lt_cv_deplibs_check_method=pass_all
8442   ;;
8443 esac
8444
8445 fi
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8447 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8448
8449 file_magic_glob=
8450 want_nocaseglob=no
8451 if test "$build" = "$host"; then
8452   case $host_os in
8453   mingw* | pw32*)
8454     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8455       want_nocaseglob=yes
8456     else
8457       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8458     fi
8459     ;;
8460   esac
8461 fi
8462
8463 file_magic_cmd=$lt_cv_file_magic_cmd
8464 deplibs_check_method=$lt_cv_deplibs_check_method
8465 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488 if test -n "$ac_tool_prefix"; then
8489   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8490 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_DLLTOOL+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   if test -n "$DLLTOOL"; then
8497   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502   IFS=$as_save_IFS
8503   test -z "$as_dir" && as_dir=.
8504     for ac_exec_ext in '' $ac_executable_extensions; do
8505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508     break 2
8509   fi
8510 done
8511   done
8512 IFS=$as_save_IFS
8513
8514 fi
8515 fi
8516 DLLTOOL=$ac_cv_prog_DLLTOOL
8517 if test -n "$DLLTOOL"; then
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8519 $as_echo "$DLLTOOL" >&6; }
8520 else
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523 fi
8524
8525
8526 fi
8527 if test -z "$ac_cv_prog_DLLTOOL"; then
8528   ac_ct_DLLTOOL=$DLLTOOL
8529   # Extract the first word of "dlltool", so it can be a program name with args.
8530 set dummy dlltool; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   if test -n "$ac_ct_DLLTOOL"; then
8537   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542   IFS=$as_save_IFS
8543   test -z "$as_dir" && as_dir=.
8544     for ac_exec_ext in '' $ac_executable_extensions; do
8545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548     break 2
8549   fi
8550 done
8551   done
8552 IFS=$as_save_IFS
8553
8554 fi
8555 fi
8556 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8557 if test -n "$ac_ct_DLLTOOL"; then
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8559 $as_echo "$ac_ct_DLLTOOL" >&6; }
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565   if test "x$ac_ct_DLLTOOL" = x; then
8566     DLLTOOL="false"
8567   else
8568     case $cross_compiling:$ac_tool_warned in
8569 yes:)
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned=yes ;;
8573 esac
8574     DLLTOOL=$ac_ct_DLLTOOL
8575   fi
8576 else
8577   DLLTOOL="$ac_cv_prog_DLLTOOL"
8578 fi
8579
8580 test -z "$DLLTOOL" && DLLTOOL=dlltool
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8592 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8593 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8594   $as_echo_n "(cached) " >&6
8595 else
8596   lt_cv_sharedlib_from_linklib_cmd='unknown'
8597
8598 case $host_os in
8599 cygwin* | mingw* | pw32* | cegcc*)
8600   # two different shell functions defined in ltmain.sh
8601   # decide which to use based on capabilities of $DLLTOOL
8602   case `$DLLTOOL --help 2>&1` in
8603   *--identify-strict*)
8604     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8605     ;;
8606   *)
8607     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8608     ;;
8609   esac
8610   ;;
8611 *)
8612   # fallback: assume linklib IS sharedlib
8613   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8614   ;;
8615 esac
8616
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8619 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8620 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8621 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8622
8623
8624
8625
8626
8627
8628
8629 if test -n "$ac_tool_prefix"; then
8630   for ac_prog in ar
8631   do
8632     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_prog_AR+:} false; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   if test -n "$AR"; then
8640   ac_cv_prog_AR="$AR" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645   IFS=$as_save_IFS
8646   test -z "$as_dir" && as_dir=.
8647     for ac_exec_ext in '' $ac_executable_extensions; do
8648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651     break 2
8652   fi
8653 done
8654   done
8655 IFS=$as_save_IFS
8656
8657 fi
8658 fi
8659 AR=$ac_cv_prog_AR
8660 if test -n "$AR"; then
8661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8662 $as_echo "$AR" >&6; }
8663 else
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666 fi
8667
8668
8669     test -n "$AR" && break
8670   done
8671 fi
8672 if test -z "$AR"; then
8673   ac_ct_AR=$AR
8674   for ac_prog in ar
8675 do
8676   # Extract the first word of "$ac_prog", so it can be a program name with args.
8677 set dummy $ac_prog; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   if test -n "$ac_ct_AR"; then
8684   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689   IFS=$as_save_IFS
8690   test -z "$as_dir" && as_dir=.
8691     for ac_exec_ext in '' $ac_executable_extensions; do
8692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693     ac_cv_prog_ac_ct_AR="$ac_prog"
8694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695     break 2
8696   fi
8697 done
8698   done
8699 IFS=$as_save_IFS
8700
8701 fi
8702 fi
8703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8704 if test -n "$ac_ct_AR"; then
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8706 $as_echo "$ac_ct_AR" >&6; }
8707 else
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713   test -n "$ac_ct_AR" && break
8714 done
8715
8716   if test "x$ac_ct_AR" = x; then
8717     AR="false"
8718   else
8719     case $cross_compiling:$ac_tool_warned in
8720 yes:)
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8723 ac_tool_warned=yes ;;
8724 esac
8725     AR=$ac_ct_AR
8726   fi
8727 fi
8728
8729 : ${AR=ar}
8730 : ${AR_FLAGS=cru}
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8743 $as_echo_n "checking for archiver @FILE support... " >&6; }
8744 if ${lt_cv_ar_at_file+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   lt_cv_ar_at_file=no
8748    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h.  */
8750
8751 int
8752 main ()
8753 {
8754
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_c_try_compile "$LINENO"; then :
8760   echo conftest.$ac_objext > conftest.lst
8761       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8762       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8763   (eval $lt_ar_try) 2>&5
8764   ac_status=$?
8765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8766   test $ac_status = 0; }
8767       if test "$ac_status" -eq 0; then
8768         # Ensure the archiver fails upon bogus file names.
8769         rm -f conftest.$ac_objext libconftest.a
8770         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8771   (eval $lt_ar_try) 2>&5
8772   ac_status=$?
8773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8774   test $ac_status = 0; }
8775         if test "$ac_status" -ne 0; then
8776           lt_cv_ar_at_file=@
8777         fi
8778       fi
8779       rm -f conftest.* libconftest.a
8780
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8786 $as_echo "$lt_cv_ar_at_file" >&6; }
8787
8788 if test "x$lt_cv_ar_at_file" = xno; then
8789   archiver_list_spec=
8790 else
8791   archiver_list_spec=$lt_cv_ar_at_file
8792 fi
8793
8794
8795
8796
8797
8798
8799
8800 if test -n "$ac_tool_prefix"; then
8801   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8802 set dummy ${ac_tool_prefix}strip; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_prog_STRIP+:} false; then :
8806   $as_echo_n "(cached) " >&6
8807 else
8808   if test -n "$STRIP"; then
8809   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8810 else
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814   IFS=$as_save_IFS
8815   test -z "$as_dir" && as_dir=.
8816     for ac_exec_ext in '' $ac_executable_extensions; do
8817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820     break 2
8821   fi
8822 done
8823   done
8824 IFS=$as_save_IFS
8825
8826 fi
8827 fi
8828 STRIP=$ac_cv_prog_STRIP
8829 if test -n "$STRIP"; then
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8831 $as_echo "$STRIP" >&6; }
8832 else
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8835 fi
8836
8837
8838 fi
8839 if test -z "$ac_cv_prog_STRIP"; then
8840   ac_ct_STRIP=$STRIP
8841   # Extract the first word of "strip", so it can be a program name with args.
8842 set dummy strip; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8846   $as_echo_n "(cached) " >&6
8847 else
8848   if test -n "$ac_ct_STRIP"; then
8849   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8850 else
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8853 do
8854   IFS=$as_save_IFS
8855   test -z "$as_dir" && as_dir=.
8856     for ac_exec_ext in '' $ac_executable_extensions; do
8857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858     ac_cv_prog_ac_ct_STRIP="strip"
8859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860     break 2
8861   fi
8862 done
8863   done
8864 IFS=$as_save_IFS
8865
8866 fi
8867 fi
8868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8869 if test -n "$ac_ct_STRIP"; then
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8871 $as_echo "$ac_ct_STRIP" >&6; }
8872 else
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8875 fi
8876
8877   if test "x$ac_ct_STRIP" = x; then
8878     STRIP=":"
8879   else
8880     case $cross_compiling:$ac_tool_warned in
8881 yes:)
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8884 ac_tool_warned=yes ;;
8885 esac
8886     STRIP=$ac_ct_STRIP
8887   fi
8888 else
8889   STRIP="$ac_cv_prog_STRIP"
8890 fi
8891
8892 test -z "$STRIP" && STRIP=:
8893
8894
8895
8896
8897
8898
8899 if test -n "$ac_tool_prefix"; then
8900   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_RANLIB+:} false; then :
8905   $as_echo_n "(cached) " >&6
8906 else
8907   if test -n "$RANLIB"; then
8908   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8912 do
8913   IFS=$as_save_IFS
8914   test -z "$as_dir" && as_dir=.
8915     for ac_exec_ext in '' $ac_executable_extensions; do
8916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919     break 2
8920   fi
8921 done
8922   done
8923 IFS=$as_save_IFS
8924
8925 fi
8926 fi
8927 RANLIB=$ac_cv_prog_RANLIB
8928 if test -n "$RANLIB"; then
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8930 $as_echo "$RANLIB" >&6; }
8931 else
8932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 fi
8935
8936
8937 fi
8938 if test -z "$ac_cv_prog_RANLIB"; then
8939   ac_ct_RANLIB=$RANLIB
8940   # Extract the first word of "ranlib", so it can be a program name with args.
8941 set dummy ranlib; ac_word=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   if test -n "$ac_ct_RANLIB"; then
8948   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8949 else
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8952 do
8953   IFS=$as_save_IFS
8954   test -z "$as_dir" && as_dir=.
8955     for ac_exec_ext in '' $ac_executable_extensions; do
8956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957     ac_cv_prog_ac_ct_RANLIB="ranlib"
8958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959     break 2
8960   fi
8961 done
8962   done
8963 IFS=$as_save_IFS
8964
8965 fi
8966 fi
8967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8968 if test -n "$ac_ct_RANLIB"; then
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8970 $as_echo "$ac_ct_RANLIB" >&6; }
8971 else
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8975
8976   if test "x$ac_ct_RANLIB" = x; then
8977     RANLIB=":"
8978   else
8979     case $cross_compiling:$ac_tool_warned in
8980 yes:)
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8983 ac_tool_warned=yes ;;
8984 esac
8985     RANLIB=$ac_ct_RANLIB
8986   fi
8987 else
8988   RANLIB="$ac_cv_prog_RANLIB"
8989 fi
8990
8991 test -z "$RANLIB" && RANLIB=:
8992
8993
8994
8995
8996
8997
8998 # Determine commands to create old-style static archives.
8999 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9000 old_postinstall_cmds='chmod 644 $oldlib'
9001 old_postuninstall_cmds=
9002
9003 if test -n "$RANLIB"; then
9004   case $host_os in
9005   openbsd*)
9006     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9007     ;;
9008   *)
9009     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9010     ;;
9011   esac
9012   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9013 fi
9014
9015 case $host_os in
9016   darwin*)
9017     lock_old_archive_extraction=yes ;;
9018   *)
9019     lock_old_archive_extraction=no ;;
9020 esac
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042 for ac_prog in gawk mawk nawk awk
9043 do
9044   # Extract the first word of "$ac_prog", so it can be a program name with args.
9045 set dummy $ac_prog; ac_word=$2
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 $as_echo_n "checking for $ac_word... " >&6; }
9048 if ${ac_cv_prog_AWK+:} false; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   if test -n "$AWK"; then
9052   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9053 else
9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9056 do
9057   IFS=$as_save_IFS
9058   test -z "$as_dir" && as_dir=.
9059     for ac_exec_ext in '' $ac_executable_extensions; do
9060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061     ac_cv_prog_AWK="$ac_prog"
9062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063     break 2
9064   fi
9065 done
9066   done
9067 IFS=$as_save_IFS
9068
9069 fi
9070 fi
9071 AWK=$ac_cv_prog_AWK
9072 if test -n "$AWK"; then
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9074 $as_echo "$AWK" >&6; }
9075 else
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9078 fi
9079
9080
9081   test -n "$AWK" && break
9082 done
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102 # If no C compiler was specified, use CC.
9103 LTCC=${LTCC-"$CC"}
9104
9105 # If no C compiler flags were specified, use CFLAGS.
9106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9107
9108 # Allow CC to be a program name with arguments.
9109 compiler=$CC
9110
9111
9112 # Check for command to grab the raw symbol name followed by C symbol from nm.
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9114 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9115 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9116   $as_echo_n "(cached) " >&6
9117 else
9118
9119 # These are sane defaults that work on at least a few old systems.
9120 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9121
9122 # Character class describing NM global symbol codes.
9123 symcode='[BCDEGRST]'
9124
9125 # Regexp to match symbols that can be accessed directly from C.
9126 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9127
9128 # Define system-specific variables.
9129 case $host_os in
9130 aix*)
9131   symcode='[BCDT]'
9132   ;;
9133 cygwin* | mingw* | pw32* | cegcc*)
9134   symcode='[ABCDGISTW]'
9135   ;;
9136 hpux*)
9137   if test "$host_cpu" = ia64; then
9138     symcode='[ABCDEGRST]'
9139   fi
9140   ;;
9141 irix* | nonstopux*)
9142   symcode='[BCDEGRST]'
9143   ;;
9144 osf*)
9145   symcode='[BCDEGQRST]'
9146   ;;
9147 solaris*)
9148   symcode='[BDRT]'
9149   ;;
9150 sco3.2v5*)
9151   symcode='[DT]'
9152   ;;
9153 sysv4.2uw2*)
9154   symcode='[DT]'
9155   ;;
9156 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9157   symcode='[ABDT]'
9158   ;;
9159 sysv4)
9160   symcode='[DFNSTU]'
9161   ;;
9162 esac
9163
9164 # If we're using GNU nm, then use its standard symbol codes.
9165 case `$NM -V 2>&1` in
9166 *GNU* | *'with BFD'*)
9167   symcode='[ABCDGIRSTW]' ;;
9168 esac
9169
9170 # Transform an extracted symbol line into a proper C declaration.
9171 # Some systems (esp. on ia64) link data and code symbols differently,
9172 # so use this general approach.
9173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9174
9175 # Transform an extracted symbol line into symbol name and symbol address
9176 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9177 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'"
9178
9179 # Handle CRLF in mingw tool chain
9180 opt_cr=
9181 case $build_os in
9182 mingw*)
9183   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9184   ;;
9185 esac
9186
9187 # Try without a prefix underscore, then with it.
9188 for ac_symprfx in "" "_"; do
9189
9190   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9191   symxfrm="\\1 $ac_symprfx\\2 \\2"
9192
9193   # Write the raw and C identifiers.
9194   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9195     # Fake it for dumpbin and say T for any non-static function
9196     # and D for any global variable.
9197     # Also find C++ and __fastcall symbols from MSVC++,
9198     # which start with @ or ?.
9199     lt_cv_sys_global_symbol_pipe="$AWK '"\
9200 "     {last_section=section; section=\$ 3};"\
9201 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9202 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9203 "     \$ 0!~/External *\|/{next};"\
9204 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9205 "     {if(hide[section]) next};"\
9206 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9207 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9208 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9209 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9210 "     ' prfx=^$ac_symprfx"
9211   else
9212     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9213   fi
9214   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9215
9216   # Check to see that the pipe works correctly.
9217   pipe_works=no
9218
9219   rm -f conftest*
9220   cat > conftest.$ac_ext <<_LT_EOF
9221 #ifdef __cplusplus
9222 extern "C" {
9223 #endif
9224 char nm_test_var;
9225 void nm_test_func(void);
9226 void nm_test_func(void){}
9227 #ifdef __cplusplus
9228 }
9229 #endif
9230 int main(){nm_test_var='a';nm_test_func();return(0);}
9231 _LT_EOF
9232
9233   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9234   (eval $ac_compile) 2>&5
9235   ac_status=$?
9236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9237   test $ac_status = 0; }; then
9238     # Now try to grab the symbols.
9239     nlist=conftest.nm
9240     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9241   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9242   ac_status=$?
9243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9244   test $ac_status = 0; } && test -s "$nlist"; then
9245       # Try sorting and uniquifying the output.
9246       if sort "$nlist" | uniq > "$nlist"T; then
9247         mv -f "$nlist"T "$nlist"
9248       else
9249         rm -f "$nlist"T
9250       fi
9251
9252       # Make sure that we snagged all the symbols we need.
9253       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9254         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9255           cat <<_LT_EOF > conftest.$ac_ext
9256 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9257 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9258 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9259    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9260 # define LT_DLSYM_CONST
9261 #elif defined(__osf__)
9262 /* This system does not cope well with relocations in const data.  */
9263 # define LT_DLSYM_CONST
9264 #else
9265 # define LT_DLSYM_CONST const
9266 #endif
9267
9268 #ifdef __cplusplus
9269 extern "C" {
9270 #endif
9271
9272 _LT_EOF
9273           # Now generate the symbol file.
9274           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9275
9276           cat <<_LT_EOF >> conftest.$ac_ext
9277
9278 /* The mapping between symbol names and symbols.  */
9279 LT_DLSYM_CONST struct {
9280   const char *name;
9281   void       *address;
9282 }
9283 lt__PROGRAM__LTX_preloaded_symbols[] =
9284 {
9285   { "@PROGRAM@", (void *) 0 },
9286 _LT_EOF
9287           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9288           cat <<\_LT_EOF >> conftest.$ac_ext
9289   {0, (void *) 0}
9290 };
9291
9292 /* This works around a problem in FreeBSD linker */
9293 #ifdef FREEBSD_WORKAROUND
9294 static const void *lt_preloaded_setup() {
9295   return lt__PROGRAM__LTX_preloaded_symbols;
9296 }
9297 #endif
9298
9299 #ifdef __cplusplus
9300 }
9301 #endif
9302 _LT_EOF
9303           # Now try linking the two files.
9304           mv conftest.$ac_objext conftstm.$ac_objext
9305           lt_globsym_save_LIBS=$LIBS
9306           lt_globsym_save_CFLAGS=$CFLAGS
9307           LIBS="conftstm.$ac_objext"
9308           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9309           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9310   (eval $ac_link) 2>&5
9311   ac_status=$?
9312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9313   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9314             pipe_works=yes
9315           fi
9316           LIBS=$lt_globsym_save_LIBS
9317           CFLAGS=$lt_globsym_save_CFLAGS
9318         else
9319           echo "cannot find nm_test_func in $nlist" >&5
9320         fi
9321       else
9322         echo "cannot find nm_test_var in $nlist" >&5
9323       fi
9324     else
9325       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9326     fi
9327   else
9328     echo "$progname: failed program was:" >&5
9329     cat conftest.$ac_ext >&5
9330   fi
9331   rm -rf conftest* conftst*
9332
9333   # Do not use the global_symbol_pipe unless it works.
9334   if test "$pipe_works" = yes; then
9335     break
9336   else
9337     lt_cv_sys_global_symbol_pipe=
9338   fi
9339 done
9340
9341 fi
9342
9343 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9344   lt_cv_sys_global_symbol_to_cdecl=
9345 fi
9346 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9348 $as_echo "failed" >&6; }
9349 else
9350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9351 $as_echo "ok" >&6; }
9352 fi
9353
9354 # Response file support.
9355 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9356   nm_file_list_spec='@'
9357 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9358   nm_file_list_spec='@'
9359 fi
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9388 $as_echo_n "checking for sysroot... " >&6; }
9389
9390 # Check whether --with-sysroot was given.
9391 if test "${with_sysroot+set}" = set; then :
9392   withval=$with_sysroot;
9393 else
9394   with_sysroot=no
9395 fi
9396
9397
9398 lt_sysroot=
9399 case ${with_sysroot} in #(
9400  yes)
9401    if test "$GCC" = yes; then
9402      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9403    fi
9404    ;; #(
9405  /*)
9406    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9407    ;; #(
9408  no|'')
9409    ;; #(
9410  *)
9411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9412 $as_echo "${with_sysroot}" >&6; }
9413    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9414    ;;
9415 esac
9416
9417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9418 $as_echo "${lt_sysroot:-no}" >&6; }
9419
9420
9421
9422
9423
9424 # Check whether --enable-libtool-lock was given.
9425 if test "${enable_libtool_lock+set}" = set; then :
9426   enableval=$enable_libtool_lock;
9427 fi
9428
9429 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9430
9431 # Some flags need to be propagated to the compiler or linker for good
9432 # libtool support.
9433 case $host in
9434 ia64-*-hpux*)
9435   # Find out which ABI we are using.
9436   echo 'int i;' > conftest.$ac_ext
9437   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9438   (eval $ac_compile) 2>&5
9439   ac_status=$?
9440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9441   test $ac_status = 0; }; then
9442     case `/usr/bin/file conftest.$ac_objext` in
9443       *ELF-32*)
9444         HPUX_IA64_MODE="32"
9445         ;;
9446       *ELF-64*)
9447         HPUX_IA64_MODE="64"
9448         ;;
9449     esac
9450   fi
9451   rm -rf conftest*
9452   ;;
9453 *-*-irix6*)
9454   # Find out which ABI we are using.
9455   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9456   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9457   (eval $ac_compile) 2>&5
9458   ac_status=$?
9459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9460   test $ac_status = 0; }; then
9461     if test "$lt_cv_prog_gnu_ld" = yes; then
9462       case `/usr/bin/file conftest.$ac_objext` in
9463         *32-bit*)
9464           LD="${LD-ld} -melf32bsmip"
9465           ;;
9466         *N32*)
9467           LD="${LD-ld} -melf32bmipn32"
9468           ;;
9469         *64-bit*)
9470           LD="${LD-ld} -melf64bmip"
9471         ;;
9472       esac
9473     else
9474       case `/usr/bin/file conftest.$ac_objext` in
9475         *32-bit*)
9476           LD="${LD-ld} -32"
9477           ;;
9478         *N32*)
9479           LD="${LD-ld} -n32"
9480           ;;
9481         *64-bit*)
9482           LD="${LD-ld} -64"
9483           ;;
9484       esac
9485     fi
9486   fi
9487   rm -rf conftest*
9488   ;;
9489
9490 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9491 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9492   # Find out which ABI we are using.
9493   echo 'int i;' > conftest.$ac_ext
9494   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9495   (eval $ac_compile) 2>&5
9496   ac_status=$?
9497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9498   test $ac_status = 0; }; then
9499     case `/usr/bin/file conftest.o` in
9500       *32-bit*)
9501         case $host in
9502           x86_64-*kfreebsd*-gnu)
9503             LD="${LD-ld} -m elf_i386_fbsd"
9504             ;;
9505           x86_64-*linux*)
9506             LD="${LD-ld} -m elf_i386"
9507             ;;
9508           ppc64-*linux*|powerpc64-*linux*)
9509             LD="${LD-ld} -m elf32ppclinux"
9510             ;;
9511           s390x-*linux*)
9512             LD="${LD-ld} -m elf_s390"
9513             ;;
9514           sparc64-*linux*)
9515             LD="${LD-ld} -m elf32_sparc"
9516             ;;
9517         esac
9518         ;;
9519       *64-bit*)
9520         case $host in
9521           x86_64-*kfreebsd*-gnu)
9522             LD="${LD-ld} -m elf_x86_64_fbsd"
9523             ;;
9524           x86_64-*linux*)
9525             LD="${LD-ld} -m elf_x86_64"
9526             ;;
9527           ppc*-*linux*|powerpc*-*linux*)
9528             LD="${LD-ld} -m elf64ppc"
9529             ;;
9530           s390*-*linux*|s390*-*tpf*)
9531             LD="${LD-ld} -m elf64_s390"
9532             ;;
9533           sparc*-*linux*)
9534             LD="${LD-ld} -m elf64_sparc"
9535             ;;
9536         esac
9537         ;;
9538     esac
9539   fi
9540   rm -rf conftest*
9541   ;;
9542
9543 *-*-sco3.2v5*)
9544   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9545   SAVE_CFLAGS="$CFLAGS"
9546   CFLAGS="$CFLAGS -belf"
9547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9548 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9549 if ${lt_cv_cc_needs_belf+:} false; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   ac_ext=c
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557
9558      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h.  */
9560
9561 int
9562 main ()
9563 {
9564
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"; then :
9570   lt_cv_cc_needs_belf=yes
9571 else
9572   lt_cv_cc_needs_belf=no
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext \
9575     conftest$ac_exeext conftest.$ac_ext
9576      ac_ext=c
9577 ac_cpp='$CPP $CPPFLAGS'
9578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9581
9582 fi
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9584 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9585   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9586     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9587     CFLAGS="$SAVE_CFLAGS"
9588   fi
9589   ;;
9590 *-*solaris*)
9591   # Find out which ABI we are using.
9592   echo 'int i;' > conftest.$ac_ext
9593   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9594   (eval $ac_compile) 2>&5
9595   ac_status=$?
9596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597   test $ac_status = 0; }; then
9598     case `/usr/bin/file conftest.o` in
9599     *64-bit*)
9600       case $lt_cv_prog_gnu_ld in
9601       yes*)
9602         case $host in
9603         i?86-*-solaris*)
9604           LD="${LD-ld} -m elf_x86_64"
9605           ;;
9606         sparc*-*-solaris*)
9607           LD="${LD-ld} -m elf64_sparc"
9608           ;;
9609         esac
9610         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9611         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9612           LD="${LD-ld}_sol2"
9613         fi
9614         ;;
9615       *)
9616         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9617           LD="${LD-ld} -64"
9618         fi
9619         ;;
9620       esac
9621       ;;
9622     esac
9623   fi
9624   rm -rf conftest*
9625   ;;
9626 esac
9627
9628 need_locks="$enable_libtool_lock"
9629
9630 if test -n "$ac_tool_prefix"; then
9631   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9632 set dummy ${ac_tool_prefix}mt; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9636   $as_echo_n "(cached) " >&6
9637 else
9638   if test -n "$MANIFEST_TOOL"; then
9639   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9643 do
9644   IFS=$as_save_IFS
9645   test -z "$as_dir" && as_dir=.
9646     for ac_exec_ext in '' $ac_executable_extensions; do
9647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650     break 2
9651   fi
9652 done
9653   done
9654 IFS=$as_save_IFS
9655
9656 fi
9657 fi
9658 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9659 if test -n "$MANIFEST_TOOL"; then
9660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9661 $as_echo "$MANIFEST_TOOL" >&6; }
9662 else
9663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9665 fi
9666
9667
9668 fi
9669 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9670   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9671   # Extract the first word of "mt", so it can be a program name with args.
9672 set dummy mt; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9676   $as_echo_n "(cached) " >&6
9677 else
9678   if test -n "$ac_ct_MANIFEST_TOOL"; then
9679   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684   IFS=$as_save_IFS
9685   test -z "$as_dir" && as_dir=.
9686     for ac_exec_ext in '' $ac_executable_extensions; do
9687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690     break 2
9691   fi
9692 done
9693   done
9694 IFS=$as_save_IFS
9695
9696 fi
9697 fi
9698 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9699 if test -n "$ac_ct_MANIFEST_TOOL"; then
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9701 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9702 else
9703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706
9707   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9708     MANIFEST_TOOL=":"
9709   else
9710     case $cross_compiling:$ac_tool_warned in
9711 yes:)
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9714 ac_tool_warned=yes ;;
9715 esac
9716     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9717   fi
9718 else
9719   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9720 fi
9721
9722 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9724 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9725 if ${lt_cv_path_mainfest_tool+:} false; then :
9726   $as_echo_n "(cached) " >&6
9727 else
9728   lt_cv_path_mainfest_tool=no
9729   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9730   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9731   cat conftest.err >&5
9732   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9733     lt_cv_path_mainfest_tool=yes
9734   fi
9735   rm -f conftest*
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9738 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9739 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9740   MANIFEST_TOOL=:
9741 fi
9742
9743
9744
9745
9746
9747
9748   case $host_os in
9749     rhapsody* | darwin*)
9750     if test -n "$ac_tool_prefix"; then
9751   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9752 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754 $as_echo_n "checking for $ac_word... " >&6; }
9755 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9756   $as_echo_n "(cached) " >&6
9757 else
9758   if test -n "$DSYMUTIL"; then
9759   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9760 else
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9763 do
9764   IFS=$as_save_IFS
9765   test -z "$as_dir" && as_dir=.
9766     for ac_exec_ext in '' $ac_executable_extensions; do
9767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770     break 2
9771   fi
9772 done
9773   done
9774 IFS=$as_save_IFS
9775
9776 fi
9777 fi
9778 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9779 if test -n "$DSYMUTIL"; then
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9781 $as_echo "$DSYMUTIL" >&6; }
9782 else
9783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9785 fi
9786
9787
9788 fi
9789 if test -z "$ac_cv_prog_DSYMUTIL"; then
9790   ac_ct_DSYMUTIL=$DSYMUTIL
9791   # Extract the first word of "dsymutil", so it can be a program name with args.
9792 set dummy dsymutil; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9796   $as_echo_n "(cached) " >&6
9797 else
9798   if test -n "$ac_ct_DSYMUTIL"; then
9799   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9800 else
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9803 do
9804   IFS=$as_save_IFS
9805   test -z "$as_dir" && as_dir=.
9806     for ac_exec_ext in '' $ac_executable_extensions; do
9807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9808     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810     break 2
9811   fi
9812 done
9813   done
9814 IFS=$as_save_IFS
9815
9816 fi
9817 fi
9818 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9819 if test -n "$ac_ct_DSYMUTIL"; then
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9821 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9822 else
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9825 fi
9826
9827   if test "x$ac_ct_DSYMUTIL" = x; then
9828     DSYMUTIL=":"
9829   else
9830     case $cross_compiling:$ac_tool_warned in
9831 yes:)
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9834 ac_tool_warned=yes ;;
9835 esac
9836     DSYMUTIL=$ac_ct_DSYMUTIL
9837   fi
9838 else
9839   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9840 fi
9841
9842     if test -n "$ac_tool_prefix"; then
9843   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9844 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if ${ac_cv_prog_NMEDIT+:} false; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   if test -n "$NMEDIT"; then
9851   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9852 else
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9855 do
9856   IFS=$as_save_IFS
9857   test -z "$as_dir" && as_dir=.
9858     for ac_exec_ext in '' $ac_executable_extensions; do
9859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9860     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862     break 2
9863   fi
9864 done
9865   done
9866 IFS=$as_save_IFS
9867
9868 fi
9869 fi
9870 NMEDIT=$ac_cv_prog_NMEDIT
9871 if test -n "$NMEDIT"; then
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9873 $as_echo "$NMEDIT" >&6; }
9874 else
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9877 fi
9878
9879
9880 fi
9881 if test -z "$ac_cv_prog_NMEDIT"; then
9882   ac_ct_NMEDIT=$NMEDIT
9883   # Extract the first word of "nmedit", so it can be a program name with args.
9884 set dummy nmedit; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9888   $as_echo_n "(cached) " >&6
9889 else
9890   if test -n "$ac_ct_NMEDIT"; then
9891   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9892 else
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 for as_dir in $PATH
9895 do
9896   IFS=$as_save_IFS
9897   test -z "$as_dir" && as_dir=.
9898     for ac_exec_ext in '' $ac_executable_extensions; do
9899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902     break 2
9903   fi
9904 done
9905   done
9906 IFS=$as_save_IFS
9907
9908 fi
9909 fi
9910 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9911 if test -n "$ac_ct_NMEDIT"; then
9912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9913 $as_echo "$ac_ct_NMEDIT" >&6; }
9914 else
9915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9917 fi
9918
9919   if test "x$ac_ct_NMEDIT" = x; then
9920     NMEDIT=":"
9921   else
9922     case $cross_compiling:$ac_tool_warned in
9923 yes:)
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9926 ac_tool_warned=yes ;;
9927 esac
9928     NMEDIT=$ac_ct_NMEDIT
9929   fi
9930 else
9931   NMEDIT="$ac_cv_prog_NMEDIT"
9932 fi
9933
9934     if test -n "$ac_tool_prefix"; then
9935   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9936 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_prog_LIPO+:} false; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   if test -n "$LIPO"; then
9943   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9944 else
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9947 do
9948   IFS=$as_save_IFS
9949   test -z "$as_dir" && as_dir=.
9950     for ac_exec_ext in '' $ac_executable_extensions; do
9951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954     break 2
9955   fi
9956 done
9957   done
9958 IFS=$as_save_IFS
9959
9960 fi
9961 fi
9962 LIPO=$ac_cv_prog_LIPO
9963 if test -n "$LIPO"; then
9964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9965 $as_echo "$LIPO" >&6; }
9966 else
9967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9969 fi
9970
9971
9972 fi
9973 if test -z "$ac_cv_prog_LIPO"; then
9974   ac_ct_LIPO=$LIPO
9975   # Extract the first word of "lipo", so it can be a program name with args.
9976 set dummy lipo; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9980   $as_echo_n "(cached) " >&6
9981 else
9982   if test -n "$ac_ct_LIPO"; then
9983   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9984 else
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9987 do
9988   IFS=$as_save_IFS
9989   test -z "$as_dir" && as_dir=.
9990     for ac_exec_ext in '' $ac_executable_extensions; do
9991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9992     ac_cv_prog_ac_ct_LIPO="lipo"
9993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994     break 2
9995   fi
9996 done
9997   done
9998 IFS=$as_save_IFS
9999
10000 fi
10001 fi
10002 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10003 if test -n "$ac_ct_LIPO"; then
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10005 $as_echo "$ac_ct_LIPO" >&6; }
10006 else
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10009 fi
10010
10011   if test "x$ac_ct_LIPO" = x; then
10012     LIPO=":"
10013   else
10014     case $cross_compiling:$ac_tool_warned in
10015 yes:)
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10018 ac_tool_warned=yes ;;
10019 esac
10020     LIPO=$ac_ct_LIPO
10021   fi
10022 else
10023   LIPO="$ac_cv_prog_LIPO"
10024 fi
10025
10026     if test -n "$ac_tool_prefix"; then
10027   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10028 set dummy ${ac_tool_prefix}otool; ac_word=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 $as_echo_n "checking for $ac_word... " >&6; }
10031 if ${ac_cv_prog_OTOOL+:} false; then :
10032   $as_echo_n "(cached) " >&6
10033 else
10034   if test -n "$OTOOL"; then
10035   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10036 else
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10039 do
10040   IFS=$as_save_IFS
10041   test -z "$as_dir" && as_dir=.
10042     for ac_exec_ext in '' $ac_executable_extensions; do
10043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046     break 2
10047   fi
10048 done
10049   done
10050 IFS=$as_save_IFS
10051
10052 fi
10053 fi
10054 OTOOL=$ac_cv_prog_OTOOL
10055 if test -n "$OTOOL"; then
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10057 $as_echo "$OTOOL" >&6; }
10058 else
10059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10061 fi
10062
10063
10064 fi
10065 if test -z "$ac_cv_prog_OTOOL"; then
10066   ac_ct_OTOOL=$OTOOL
10067   # Extract the first word of "otool", so it can be a program name with args.
10068 set dummy otool; ac_word=$2
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070 $as_echo_n "checking for $ac_word... " >&6; }
10071 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10072   $as_echo_n "(cached) " >&6
10073 else
10074   if test -n "$ac_ct_OTOOL"; then
10075   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10076 else
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10079 do
10080   IFS=$as_save_IFS
10081   test -z "$as_dir" && as_dir=.
10082     for ac_exec_ext in '' $ac_executable_extensions; do
10083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084     ac_cv_prog_ac_ct_OTOOL="otool"
10085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086     break 2
10087   fi
10088 done
10089   done
10090 IFS=$as_save_IFS
10091
10092 fi
10093 fi
10094 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10095 if test -n "$ac_ct_OTOOL"; then
10096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10097 $as_echo "$ac_ct_OTOOL" >&6; }
10098 else
10099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10101 fi
10102
10103   if test "x$ac_ct_OTOOL" = x; then
10104     OTOOL=":"
10105   else
10106     case $cross_compiling:$ac_tool_warned in
10107 yes:)
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110 ac_tool_warned=yes ;;
10111 esac
10112     OTOOL=$ac_ct_OTOOL
10113   fi
10114 else
10115   OTOOL="$ac_cv_prog_OTOOL"
10116 fi
10117
10118     if test -n "$ac_tool_prefix"; then
10119   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10120 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if ${ac_cv_prog_OTOOL64+:} false; then :
10124   $as_echo_n "(cached) " >&6
10125 else
10126   if test -n "$OTOOL64"; then
10127   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132   IFS=$as_save_IFS
10133   test -z "$as_dir" && as_dir=.
10134     for ac_exec_ext in '' $ac_executable_extensions; do
10135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138     break 2
10139   fi
10140 done
10141   done
10142 IFS=$as_save_IFS
10143
10144 fi
10145 fi
10146 OTOOL64=$ac_cv_prog_OTOOL64
10147 if test -n "$OTOOL64"; then
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10149 $as_echo "$OTOOL64" >&6; }
10150 else
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10153 fi
10154
10155
10156 fi
10157 if test -z "$ac_cv_prog_OTOOL64"; then
10158   ac_ct_OTOOL64=$OTOOL64
10159   # Extract the first word of "otool64", so it can be a program name with args.
10160 set dummy otool64; ac_word=$2
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162 $as_echo_n "checking for $ac_word... " >&6; }
10163 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10164   $as_echo_n "(cached) " >&6
10165 else
10166   if test -n "$ac_ct_OTOOL64"; then
10167   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10168 else
10169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170 for as_dir in $PATH
10171 do
10172   IFS=$as_save_IFS
10173   test -z "$as_dir" && as_dir=.
10174     for ac_exec_ext in '' $ac_executable_extensions; do
10175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10176     ac_cv_prog_ac_ct_OTOOL64="otool64"
10177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178     break 2
10179   fi
10180 done
10181   done
10182 IFS=$as_save_IFS
10183
10184 fi
10185 fi
10186 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10187 if test -n "$ac_ct_OTOOL64"; then
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10189 $as_echo "$ac_ct_OTOOL64" >&6; }
10190 else
10191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10193 fi
10194
10195   if test "x$ac_ct_OTOOL64" = x; then
10196     OTOOL64=":"
10197   else
10198     case $cross_compiling:$ac_tool_warned in
10199 yes:)
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10202 ac_tool_warned=yes ;;
10203 esac
10204     OTOOL64=$ac_ct_OTOOL64
10205   fi
10206 else
10207   OTOOL64="$ac_cv_prog_OTOOL64"
10208 fi
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10237 $as_echo_n "checking for -single_module linker flag... " >&6; }
10238 if ${lt_cv_apple_cc_single_mod+:} false; then :
10239   $as_echo_n "(cached) " >&6
10240 else
10241   lt_cv_apple_cc_single_mod=no
10242       if test -z "${LT_MULTI_MODULE}"; then
10243         # By default we will add the -single_module flag. You can override
10244         # by either setting the environment variable LT_MULTI_MODULE
10245         # non-empty at configure time, or by adding -multi_module to the
10246         # link flags.
10247         rm -rf libconftest.dylib*
10248         echo "int foo(void){return 1;}" > conftest.c
10249         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10250 -dynamiclib -Wl,-single_module conftest.c" >&5
10251         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10252           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10253         _lt_result=$?
10254         # If there is a non-empty error log, and "single_module"
10255         # appears in it, assume the flag caused a linker warning
10256         if test -s conftest.err && $GREP single_module conftest.err; then
10257           cat conftest.err >&5
10258         # Otherwise, if the output was created with a 0 exit code from
10259         # the compiler, it worked.
10260         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10261           lt_cv_apple_cc_single_mod=yes
10262         else
10263           cat conftest.err >&5
10264         fi
10265         rm -rf libconftest.dylib*
10266         rm -f conftest.*
10267       fi
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10270 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10271
10272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10273 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10274 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10275   $as_echo_n "(cached) " >&6
10276 else
10277   lt_cv_ld_exported_symbols_list=no
10278       save_LDFLAGS=$LDFLAGS
10279       echo "_main" > conftest.sym
10280       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h.  */
10283
10284 int
10285 main ()
10286 {
10287
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 if ac_fn_c_try_link "$LINENO"; then :
10293   lt_cv_ld_exported_symbols_list=yes
10294 else
10295   lt_cv_ld_exported_symbols_list=no
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext \
10298     conftest$ac_exeext conftest.$ac_ext
10299         LDFLAGS="$save_LDFLAGS"
10300
10301 fi
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10303 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10304
10305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10306 $as_echo_n "checking for -force_load linker flag... " >&6; }
10307 if ${lt_cv_ld_force_load+:} false; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   lt_cv_ld_force_load=no
10311       cat > conftest.c << _LT_EOF
10312 int forced_loaded() { return 2;}
10313 _LT_EOF
10314       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10315       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10316       echo "$AR cru libconftest.a conftest.o" >&5
10317       $AR cru libconftest.a conftest.o 2>&5
10318       echo "$RANLIB libconftest.a" >&5
10319       $RANLIB libconftest.a 2>&5
10320       cat > conftest.c << _LT_EOF
10321 int main() { return 0;}
10322 _LT_EOF
10323       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10324       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10325       _lt_result=$?
10326       if test -s conftest.err && $GREP force_load conftest.err; then
10327         cat conftest.err >&5
10328       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10329         lt_cv_ld_force_load=yes
10330       else
10331         cat conftest.err >&5
10332       fi
10333         rm -f conftest.err libconftest.a conftest conftest.c
10334         rm -rf conftest.dSYM
10335
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10338 $as_echo "$lt_cv_ld_force_load" >&6; }
10339     case $host_os in
10340     rhapsody* | darwin1.[012])
10341       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10342     darwin1.*)
10343       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10344     darwin*) # darwin 5.x on
10345       # if running on 10.5 or later, the deployment target defaults
10346       # to the OS version, if on x86, and 10.4, the deployment
10347       # target defaults to 10.4. Don't you love it?
10348       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10349         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10350           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10351         10.[012]*)
10352           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10353         10.*)
10354           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10355       esac
10356     ;;
10357   esac
10358     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10359       _lt_dar_single_mod='$single_module'
10360     fi
10361     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10362       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10363     else
10364       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10365     fi
10366     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10367       _lt_dsymutil='~$DSYMUTIL $lib || :'
10368     else
10369       _lt_dsymutil=
10370     fi
10371     ;;
10372   esac
10373
10374 for ac_header in dlfcn.h
10375 do :
10376   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10377 "
10378 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10379   cat >>confdefs.h <<_ACEOF
10380 #define HAVE_DLFCN_H 1
10381 _ACEOF
10382
10383 fi
10384
10385 done
10386
10387
10388
10389 func_stripname_cnf ()
10390 {
10391   case ${2} in
10392   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10393   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10394   esac
10395 } # func_stripname_cnf
10396
10397
10398
10399
10400
10401 # Set options
10402
10403
10404
10405         enable_dlopen=no
10406
10407
10408   enable_win32_dll=no
10409
10410
10411             # Check whether --enable-shared was given.
10412 if test "${enable_shared+set}" = set; then :
10413   enableval=$enable_shared; p=${PACKAGE-default}
10414     case $enableval in
10415     yes) enable_shared=yes ;;
10416     no) enable_shared=no ;;
10417     *)
10418       enable_shared=no
10419       # Look at the argument we got.  We use all the common list separators.
10420       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10421       for pkg in $enableval; do
10422         IFS="$lt_save_ifs"
10423         if test "X$pkg" = "X$p"; then
10424           enable_shared=yes
10425         fi
10426       done
10427       IFS="$lt_save_ifs"
10428       ;;
10429     esac
10430 else
10431   enable_shared=yes
10432 fi
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442   # Check whether --enable-static was given.
10443 if test "${enable_static+set}" = set; then :
10444   enableval=$enable_static; p=${PACKAGE-default}
10445     case $enableval in
10446     yes) enable_static=yes ;;
10447     no) enable_static=no ;;
10448     *)
10449      enable_static=no
10450       # Look at the argument we got.  We use all the common list separators.
10451       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10452       for pkg in $enableval; do
10453         IFS="$lt_save_ifs"
10454         if test "X$pkg" = "X$p"; then
10455           enable_static=yes
10456         fi
10457       done
10458       IFS="$lt_save_ifs"
10459       ;;
10460     esac
10461 else
10462   enable_static=yes
10463 fi
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474 # Check whether --with-pic was given.
10475 if test "${with_pic+set}" = set; then :
10476   withval=$with_pic; lt_p=${PACKAGE-default}
10477     case $withval in
10478     yes|no) pic_mode=$withval ;;
10479     *)
10480       pic_mode=default
10481       # Look at the argument we got.  We use all the common list separators.
10482       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10483       for lt_pkg in $withval; do
10484         IFS="$lt_save_ifs"
10485         if test "X$lt_pkg" = "X$lt_p"; then
10486           pic_mode=yes
10487         fi
10488       done
10489       IFS="$lt_save_ifs"
10490       ;;
10491     esac
10492 else
10493   pic_mode=default
10494 fi
10495
10496
10497 test -z "$pic_mode" && pic_mode=default
10498
10499
10500
10501
10502
10503
10504
10505   # Check whether --enable-fast-install was given.
10506 if test "${enable_fast_install+set}" = set; then :
10507   enableval=$enable_fast_install; p=${PACKAGE-default}
10508     case $enableval in
10509     yes) enable_fast_install=yes ;;
10510     no) enable_fast_install=no ;;
10511     *)
10512       enable_fast_install=no
10513       # Look at the argument we got.  We use all the common list separators.
10514       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10515       for pkg in $enableval; do
10516         IFS="$lt_save_ifs"
10517         if test "X$pkg" = "X$p"; then
10518           enable_fast_install=yes
10519         fi
10520       done
10521       IFS="$lt_save_ifs"
10522       ;;
10523     esac
10524 else
10525   enable_fast_install=yes
10526 fi
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538 # This can be used to rebuild libtool when needed
10539 LIBTOOL_DEPS="$ltmain"
10540
10541 # Always use our own libtool.
10542 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573 test -z "$LN_S" && LN_S="ln -s"
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588 if test -n "${ZSH_VERSION+set}" ; then
10589    setopt NO_GLOB_SUBST
10590 fi
10591
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10593 $as_echo_n "checking for objdir... " >&6; }
10594 if ${lt_cv_objdir+:} false; then :
10595   $as_echo_n "(cached) " >&6
10596 else
10597   rm -f .libs 2>/dev/null
10598 mkdir .libs 2>/dev/null
10599 if test -d .libs; then
10600   lt_cv_objdir=.libs
10601 else
10602   # MS-DOS does not allow filenames that begin with a dot.
10603   lt_cv_objdir=_libs
10604 fi
10605 rmdir .libs 2>/dev/null
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10608 $as_echo "$lt_cv_objdir" >&6; }
10609 objdir=$lt_cv_objdir
10610
10611
10612
10613
10614
10615 cat >>confdefs.h <<_ACEOF
10616 #define LT_OBJDIR "$lt_cv_objdir/"
10617 _ACEOF
10618
10619
10620
10621
10622 case $host_os in
10623 aix3*)
10624   # AIX sometimes has problems with the GCC collect2 program.  For some
10625   # reason, if we set the COLLECT_NAMES environment variable, the problems
10626   # vanish in a puff of smoke.
10627   if test "X${COLLECT_NAMES+set}" != Xset; then
10628     COLLECT_NAMES=
10629     export COLLECT_NAMES
10630   fi
10631   ;;
10632 esac
10633
10634 # Global variables:
10635 ofile=libtool
10636 can_build_shared=yes
10637
10638 # All known linkers require a `.a' archive for static linking (except MSVC,
10639 # which needs '.lib').
10640 libext=a
10641
10642 with_gnu_ld="$lt_cv_prog_gnu_ld"
10643
10644 old_CC="$CC"
10645 old_CFLAGS="$CFLAGS"
10646
10647 # Set sane defaults for various variables
10648 test -z "$CC" && CC=cc
10649 test -z "$LTCC" && LTCC=$CC
10650 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10651 test -z "$LD" && LD=ld
10652 test -z "$ac_objext" && ac_objext=o
10653
10654 for cc_temp in $compiler""; do
10655   case $cc_temp in
10656     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10657     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10658     \-*) ;;
10659     *) break;;
10660   esac
10661 done
10662 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10663
10664
10665 # Only perform the check for file, if the check method requires it
10666 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10667 case $deplibs_check_method in
10668 file_magic*)
10669   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10671 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10672 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10673   $as_echo_n "(cached) " >&6
10674 else
10675   case $MAGIC_CMD in
10676 [\\/*] |  ?:[\\/]*)
10677   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10678   ;;
10679 *)
10680   lt_save_MAGIC_CMD="$MAGIC_CMD"
10681   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10682   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10683   for ac_dir in $ac_dummy; do
10684     IFS="$lt_save_ifs"
10685     test -z "$ac_dir" && ac_dir=.
10686     if test -f $ac_dir/${ac_tool_prefix}file; then
10687       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10688       if test -n "$file_magic_test_file"; then
10689         case $deplibs_check_method in
10690         "file_magic "*)
10691           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10692           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10693           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10694             $EGREP "$file_magic_regex" > /dev/null; then
10695             :
10696           else
10697             cat <<_LT_EOF 1>&2
10698
10699 *** Warning: the command libtool uses to detect shared libraries,
10700 *** $file_magic_cmd, produces output that libtool cannot recognize.
10701 *** The result is that libtool may fail to recognize shared libraries
10702 *** as such.  This will affect the creation of libtool libraries that
10703 *** depend on shared libraries, but programs linked with such libtool
10704 *** libraries will work regardless of this problem.  Nevertheless, you
10705 *** may want to report the problem to your system manager and/or to
10706 *** bug-libtool@gnu.org
10707
10708 _LT_EOF
10709           fi ;;
10710         esac
10711       fi
10712       break
10713     fi
10714   done
10715   IFS="$lt_save_ifs"
10716   MAGIC_CMD="$lt_save_MAGIC_CMD"
10717   ;;
10718 esac
10719 fi
10720
10721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10722 if test -n "$MAGIC_CMD"; then
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10724 $as_echo "$MAGIC_CMD" >&6; }
10725 else
10726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728 fi
10729
10730
10731
10732
10733
10734 if test -z "$lt_cv_path_MAGIC_CMD"; then
10735   if test -n "$ac_tool_prefix"; then
10736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10737 $as_echo_n "checking for file... " >&6; }
10738 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10739   $as_echo_n "(cached) " >&6
10740 else
10741   case $MAGIC_CMD in
10742 [\\/*] |  ?:[\\/]*)
10743   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10744   ;;
10745 *)
10746   lt_save_MAGIC_CMD="$MAGIC_CMD"
10747   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10748   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10749   for ac_dir in $ac_dummy; do
10750     IFS="$lt_save_ifs"
10751     test -z "$ac_dir" && ac_dir=.
10752     if test -f $ac_dir/file; then
10753       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10754       if test -n "$file_magic_test_file"; then
10755         case $deplibs_check_method in
10756         "file_magic "*)
10757           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10758           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10759           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10760             $EGREP "$file_magic_regex" > /dev/null; then
10761             :
10762           else
10763             cat <<_LT_EOF 1>&2
10764
10765 *** Warning: the command libtool uses to detect shared libraries,
10766 *** $file_magic_cmd, produces output that libtool cannot recognize.
10767 *** The result is that libtool may fail to recognize shared libraries
10768 *** as such.  This will affect the creation of libtool libraries that
10769 *** depend on shared libraries, but programs linked with such libtool
10770 *** libraries will work regardless of this problem.  Nevertheless, you
10771 *** may want to report the problem to your system manager and/or to
10772 *** bug-libtool@gnu.org
10773
10774 _LT_EOF
10775           fi ;;
10776         esac
10777       fi
10778       break
10779     fi
10780   done
10781   IFS="$lt_save_ifs"
10782   MAGIC_CMD="$lt_save_MAGIC_CMD"
10783   ;;
10784 esac
10785 fi
10786
10787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10788 if test -n "$MAGIC_CMD"; then
10789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10790 $as_echo "$MAGIC_CMD" >&6; }
10791 else
10792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10794 fi
10795
10796
10797   else
10798     MAGIC_CMD=:
10799   fi
10800 fi
10801
10802   fi
10803   ;;
10804 esac
10805
10806 # Use C for the default configuration in the libtool script
10807
10808 lt_save_CC="$CC"
10809 ac_ext=c
10810 ac_cpp='$CPP $CPPFLAGS'
10811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10814
10815
10816 # Source file extension for C test sources.
10817 ac_ext=c
10818
10819 # Object file extension for compiled C test sources.
10820 objext=o
10821 objext=$objext
10822
10823 # Code to be used in simple compile tests
10824 lt_simple_compile_test_code="int some_variable = 0;"
10825
10826 # Code to be used in simple link tests
10827 lt_simple_link_test_code='int main(){return(0);}'
10828
10829
10830
10831
10832
10833
10834
10835 # If no C compiler was specified, use CC.
10836 LTCC=${LTCC-"$CC"}
10837
10838 # If no C compiler flags were specified, use CFLAGS.
10839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10840
10841 # Allow CC to be a program name with arguments.
10842 compiler=$CC
10843
10844 # Save the default compiler, since it gets overwritten when the other
10845 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10846 compiler_DEFAULT=$CC
10847
10848 # save warnings/boilerplate of simple test code
10849 ac_outfile=conftest.$ac_objext
10850 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10851 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10852 _lt_compiler_boilerplate=`cat conftest.err`
10853 $RM conftest*
10854
10855 ac_outfile=conftest.$ac_objext
10856 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10857 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10858 _lt_linker_boilerplate=`cat conftest.err`
10859 $RM -r conftest*
10860
10861
10862 ## CAVEAT EMPTOR:
10863 ## There is no encapsulation within the following macros, do not change
10864 ## the running order or otherwise move them around unless you know exactly
10865 ## what you are doing...
10866 if test -n "$compiler"; then
10867
10868 lt_prog_compiler_no_builtin_flag=
10869
10870 if test "$GCC" = yes; then
10871   case $cc_basename in
10872   nvcc*)
10873     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10874   *)
10875     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10876   esac
10877
10878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10879 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10880 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   lt_cv_prog_compiler_rtti_exceptions=no
10884    ac_outfile=conftest.$ac_objext
10885    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10886    lt_compiler_flag="-fno-rtti -fno-exceptions"
10887    # Insert the option either (1) after the last *FLAGS variable, or
10888    # (2) before a word containing "conftest.", or (3) at the end.
10889    # Note that $ac_compile itself does not contain backslashes and begins
10890    # with a dollar sign (not a hyphen), so the echo should work correctly.
10891    # The option is referenced via a variable to avoid confusing sed.
10892    lt_compile=`echo "$ac_compile" | $SED \
10893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10895    -e 's:$: $lt_compiler_flag:'`
10896    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10897    (eval "$lt_compile" 2>conftest.err)
10898    ac_status=$?
10899    cat conftest.err >&5
10900    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901    if (exit $ac_status) && test -s "$ac_outfile"; then
10902      # The compiler can only warn and ignore the option if not recognized
10903      # So say no if there are warnings other than the usual output.
10904      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10905      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10906      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10907        lt_cv_prog_compiler_rtti_exceptions=yes
10908      fi
10909    fi
10910    $RM conftest*
10911
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10914 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10915
10916 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10917     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10918 else
10919     :
10920 fi
10921
10922 fi
10923
10924
10925
10926
10927
10928
10929   lt_prog_compiler_wl=
10930 lt_prog_compiler_pic=
10931 lt_prog_compiler_static=
10932
10933
10934   if test "$GCC" = yes; then
10935     lt_prog_compiler_wl='-Wl,'
10936     lt_prog_compiler_static='-static'
10937
10938     case $host_os in
10939       aix*)
10940       # All AIX code is PIC.
10941       if test "$host_cpu" = ia64; then
10942         # AIX 5 now supports IA64 processor
10943         lt_prog_compiler_static='-Bstatic'
10944       fi
10945       ;;
10946
10947     amigaos*)
10948       case $host_cpu in
10949       powerpc)
10950             # see comment about AmigaOS4 .so support
10951             lt_prog_compiler_pic='-fPIC'
10952         ;;
10953       m68k)
10954             # FIXME: we need at least 68020 code to build shared libraries, but
10955             # adding the `-m68020' flag to GCC prevents building anything better,
10956             # like `-m68040'.
10957             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10958         ;;
10959       esac
10960       ;;
10961
10962     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10963       # PIC is the default for these OSes.
10964       ;;
10965
10966     mingw* | cygwin* | pw32* | os2* | cegcc*)
10967       # This hack is so that the source file can tell whether it is being
10968       # built for inclusion in a dll (and should export symbols for example).
10969       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10970       # (--disable-auto-import) libraries
10971       lt_prog_compiler_pic='-DDLL_EXPORT'
10972       ;;
10973
10974     darwin* | rhapsody*)
10975       # PIC is the default on this platform
10976       # Common symbols not allowed in MH_DYLIB files
10977       lt_prog_compiler_pic='-fno-common'
10978       ;;
10979
10980     haiku*)
10981       # PIC is the default for Haiku.
10982       # The "-static" flag exists, but is broken.
10983       lt_prog_compiler_static=
10984       ;;
10985
10986     hpux*)
10987       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10988       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10989       # sets the default TLS model and affects inlining.
10990       case $host_cpu in
10991       hppa*64*)
10992         # +Z the default
10993         ;;
10994       *)
10995         lt_prog_compiler_pic='-fPIC'
10996         ;;
10997       esac
10998       ;;
10999
11000     interix[3-9]*)
11001       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11002       # Instead, we relocate shared libraries at runtime.
11003       ;;
11004
11005     msdosdjgpp*)
11006       # Just because we use GCC doesn't mean we suddenly get shared libraries
11007       # on systems that don't support them.
11008       lt_prog_compiler_can_build_shared=no
11009       enable_shared=no
11010       ;;
11011
11012     *nto* | *qnx*)
11013       # QNX uses GNU C++, but need to define -shared option too, otherwise
11014       # it will coredump.
11015       lt_prog_compiler_pic='-fPIC -shared'
11016       ;;
11017
11018     sysv4*MP*)
11019       if test -d /usr/nec; then
11020         lt_prog_compiler_pic=-Kconform_pic
11021       fi
11022       ;;
11023
11024     *)
11025       lt_prog_compiler_pic='-fPIC'
11026       ;;
11027     esac
11028
11029     case $cc_basename in
11030     nvcc*) # Cuda Compiler Driver 2.2
11031       lt_prog_compiler_wl='-Xlinker '
11032       if test -n "$lt_prog_compiler_pic"; then
11033         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11034       fi
11035       ;;
11036     esac
11037   else
11038     # PORTME Check for flag to pass linker flags through the system compiler.
11039     case $host_os in
11040     aix*)
11041       lt_prog_compiler_wl='-Wl,'
11042       if test "$host_cpu" = ia64; then
11043         # AIX 5 now supports IA64 processor
11044         lt_prog_compiler_static='-Bstatic'
11045       else
11046         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11047       fi
11048       ;;
11049
11050     mingw* | cygwin* | pw32* | os2* | cegcc*)
11051       # This hack is so that the source file can tell whether it is being
11052       # built for inclusion in a dll (and should export symbols for example).
11053       lt_prog_compiler_pic='-DDLL_EXPORT'
11054       ;;
11055
11056     hpux9* | hpux10* | hpux11*)
11057       lt_prog_compiler_wl='-Wl,'
11058       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11059       # not for PA HP-UX.
11060       case $host_cpu in
11061       hppa*64*|ia64*)
11062         # +Z the default
11063         ;;
11064       *)
11065         lt_prog_compiler_pic='+Z'
11066         ;;
11067       esac
11068       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11069       lt_prog_compiler_static='${wl}-a ${wl}archive'
11070       ;;
11071
11072     irix5* | irix6* | nonstopux*)
11073       lt_prog_compiler_wl='-Wl,'
11074       # PIC (with -KPIC) is the default.
11075       lt_prog_compiler_static='-non_shared'
11076       ;;
11077
11078     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11079       case $cc_basename in
11080       # old Intel for x86_64 which still supported -KPIC.
11081       ecc*)
11082         lt_prog_compiler_wl='-Wl,'
11083         lt_prog_compiler_pic='-KPIC'
11084         lt_prog_compiler_static='-static'
11085         ;;
11086       # icc used to be incompatible with GCC.
11087       # ICC 10 doesn't accept -KPIC any more.
11088       icc* | ifort*)
11089         lt_prog_compiler_wl='-Wl,'
11090         lt_prog_compiler_pic='-fPIC'
11091         lt_prog_compiler_static='-static'
11092         ;;
11093       # Lahey Fortran 8.1.
11094       lf95*)
11095         lt_prog_compiler_wl='-Wl,'
11096         lt_prog_compiler_pic='--shared'
11097         lt_prog_compiler_static='--static'
11098         ;;
11099       nagfor*)
11100         # NAG Fortran compiler
11101         lt_prog_compiler_wl='-Wl,-Wl,,'
11102         lt_prog_compiler_pic='-PIC'
11103         lt_prog_compiler_static='-Bstatic'
11104         ;;
11105       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11106         # Portland Group compilers (*not* the Pentium gcc compiler,
11107         # which looks to be a dead project)
11108         lt_prog_compiler_wl='-Wl,'
11109         lt_prog_compiler_pic='-fpic'
11110         lt_prog_compiler_static='-Bstatic'
11111         ;;
11112       ccc*)
11113         lt_prog_compiler_wl='-Wl,'
11114         # All Alpha code is PIC.
11115         lt_prog_compiler_static='-non_shared'
11116         ;;
11117       xl* | bgxl* | bgf* | mpixl*)
11118         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11119         lt_prog_compiler_wl='-Wl,'
11120         lt_prog_compiler_pic='-qpic'
11121         lt_prog_compiler_static='-qstaticlink'
11122         ;;
11123       *)
11124         case `$CC -V 2>&1 | sed 5q` in
11125         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11126           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11127           lt_prog_compiler_pic='-KPIC'
11128           lt_prog_compiler_static='-Bstatic'
11129           lt_prog_compiler_wl=''
11130           ;;
11131         *Sun\ F* | *Sun*Fortran*)
11132           lt_prog_compiler_pic='-KPIC'
11133           lt_prog_compiler_static='-Bstatic'
11134           lt_prog_compiler_wl='-Qoption ld '
11135           ;;
11136         *Sun\ C*)
11137           # Sun C 5.9
11138           lt_prog_compiler_pic='-KPIC'
11139           lt_prog_compiler_static='-Bstatic'
11140           lt_prog_compiler_wl='-Wl,'
11141           ;;
11142         *Intel*\ [CF]*Compiler*)
11143           lt_prog_compiler_wl='-Wl,'
11144           lt_prog_compiler_pic='-fPIC'
11145           lt_prog_compiler_static='-static'
11146           ;;
11147         *Portland\ Group*)
11148           lt_prog_compiler_wl='-Wl,'
11149           lt_prog_compiler_pic='-fpic'
11150           lt_prog_compiler_static='-Bstatic'
11151           ;;
11152         esac
11153         ;;
11154       esac
11155       ;;
11156
11157     newsos6)
11158       lt_prog_compiler_pic='-KPIC'
11159       lt_prog_compiler_static='-Bstatic'
11160       ;;
11161
11162     *nto* | *qnx*)
11163       # QNX uses GNU C++, but need to define -shared option too, otherwise
11164       # it will coredump.
11165       lt_prog_compiler_pic='-fPIC -shared'
11166       ;;
11167
11168     osf3* | osf4* | osf5*)
11169       lt_prog_compiler_wl='-Wl,'
11170       # All OSF/1 code is PIC.
11171       lt_prog_compiler_static='-non_shared'
11172       ;;
11173
11174     rdos*)
11175       lt_prog_compiler_static='-non_shared'
11176       ;;
11177
11178     solaris*)
11179       lt_prog_compiler_pic='-KPIC'
11180       lt_prog_compiler_static='-Bstatic'
11181       case $cc_basename in
11182       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11183         lt_prog_compiler_wl='-Qoption ld ';;
11184       *)
11185         lt_prog_compiler_wl='-Wl,';;
11186       esac
11187       ;;
11188
11189     sunos4*)
11190       lt_prog_compiler_wl='-Qoption ld '
11191       lt_prog_compiler_pic='-PIC'
11192       lt_prog_compiler_static='-Bstatic'
11193       ;;
11194
11195     sysv4 | sysv4.2uw2* | sysv4.3*)
11196       lt_prog_compiler_wl='-Wl,'
11197       lt_prog_compiler_pic='-KPIC'
11198       lt_prog_compiler_static='-Bstatic'
11199       ;;
11200
11201     sysv4*MP*)
11202       if test -d /usr/nec ;then
11203         lt_prog_compiler_pic='-Kconform_pic'
11204         lt_prog_compiler_static='-Bstatic'
11205       fi
11206       ;;
11207
11208     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11209       lt_prog_compiler_wl='-Wl,'
11210       lt_prog_compiler_pic='-KPIC'
11211       lt_prog_compiler_static='-Bstatic'
11212       ;;
11213
11214     unicos*)
11215       lt_prog_compiler_wl='-Wl,'
11216       lt_prog_compiler_can_build_shared=no
11217       ;;
11218
11219     uts4*)
11220       lt_prog_compiler_pic='-pic'
11221       lt_prog_compiler_static='-Bstatic'
11222       ;;
11223
11224     *)
11225       lt_prog_compiler_can_build_shared=no
11226       ;;
11227     esac
11228   fi
11229
11230 case $host_os in
11231   # For platforms which do not support PIC, -DPIC is meaningless:
11232   *djgpp*)
11233     lt_prog_compiler_pic=
11234     ;;
11235   *)
11236     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11237     ;;
11238 esac
11239
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11241 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11242 if ${lt_cv_prog_compiler_pic+:} false; then :
11243   $as_echo_n "(cached) " >&6
11244 else
11245   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11246 fi
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11248 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11249 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11250
11251 #
11252 # Check to make sure the PIC flag actually works.
11253 #
11254 if test -n "$lt_prog_compiler_pic"; then
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11257 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11258   $as_echo_n "(cached) " >&6
11259 else
11260   lt_cv_prog_compiler_pic_works=no
11261    ac_outfile=conftest.$ac_objext
11262    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11263    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11264    # Insert the option either (1) after the last *FLAGS variable, or
11265    # (2) before a word containing "conftest.", or (3) at the end.
11266    # Note that $ac_compile itself does not contain backslashes and begins
11267    # with a dollar sign (not a hyphen), so the echo should work correctly.
11268    # The option is referenced via a variable to avoid confusing sed.
11269    lt_compile=`echo "$ac_compile" | $SED \
11270    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11271    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11272    -e 's:$: $lt_compiler_flag:'`
11273    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11274    (eval "$lt_compile" 2>conftest.err)
11275    ac_status=$?
11276    cat conftest.err >&5
11277    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278    if (exit $ac_status) && test -s "$ac_outfile"; then
11279      # The compiler can only warn and ignore the option if not recognized
11280      # So say no if there are warnings other than the usual output.
11281      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11282      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11283      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11284        lt_cv_prog_compiler_pic_works=yes
11285      fi
11286    fi
11287    $RM conftest*
11288
11289 fi
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11291 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11292
11293 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11294     case $lt_prog_compiler_pic in
11295      "" | " "*) ;;
11296      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11297      esac
11298 else
11299     lt_prog_compiler_pic=
11300      lt_prog_compiler_can_build_shared=no
11301 fi
11302
11303 fi
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315 #
11316 # Check to make sure the static flag actually works.
11317 #
11318 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11320 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11321 if ${lt_cv_prog_compiler_static_works+:} false; then :
11322   $as_echo_n "(cached) " >&6
11323 else
11324   lt_cv_prog_compiler_static_works=no
11325    save_LDFLAGS="$LDFLAGS"
11326    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11327    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11328    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11329      # The linker can only warn and ignore the option if not recognized
11330      # So say no if there are warnings
11331      if test -s conftest.err; then
11332        # Append any errors to the config.log.
11333        cat conftest.err 1>&5
11334        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11335        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11336        if diff conftest.exp conftest.er2 >/dev/null; then
11337          lt_cv_prog_compiler_static_works=yes
11338        fi
11339      else
11340        lt_cv_prog_compiler_static_works=yes
11341      fi
11342    fi
11343    $RM -r conftest*
11344    LDFLAGS="$save_LDFLAGS"
11345
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11348 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11349
11350 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11351     :
11352 else
11353     lt_prog_compiler_static=
11354 fi
11355
11356
11357
11358
11359
11360
11361
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11363 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11364 if ${lt_cv_prog_compiler_c_o+:} false; then :
11365   $as_echo_n "(cached) " >&6
11366 else
11367   lt_cv_prog_compiler_c_o=no
11368    $RM -r conftest 2>/dev/null
11369    mkdir conftest
11370    cd conftest
11371    mkdir out
11372    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11373
11374    lt_compiler_flag="-o out/conftest2.$ac_objext"
11375    # Insert the option either (1) after the last *FLAGS variable, or
11376    # (2) before a word containing "conftest.", or (3) at the end.
11377    # Note that $ac_compile itself does not contain backslashes and begins
11378    # with a dollar sign (not a hyphen), so the echo should work correctly.
11379    lt_compile=`echo "$ac_compile" | $SED \
11380    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11381    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11382    -e 's:$: $lt_compiler_flag:'`
11383    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11384    (eval "$lt_compile" 2>out/conftest.err)
11385    ac_status=$?
11386    cat out/conftest.err >&5
11387    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11389    then
11390      # The compiler can only warn and ignore the option if not recognized
11391      # So say no if there are warnings
11392      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11393      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11394      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11395        lt_cv_prog_compiler_c_o=yes
11396      fi
11397    fi
11398    chmod u+w . 2>&5
11399    $RM conftest*
11400    # SGI C++ compiler will create directory out/ii_files/ for
11401    # template instantiation
11402    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11403    $RM out/* && rmdir out
11404    cd ..
11405    $RM -r conftest
11406    $RM conftest*
11407
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11410 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11411
11412
11413
11414
11415
11416
11417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11418 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11419 if ${lt_cv_prog_compiler_c_o+:} false; then :
11420   $as_echo_n "(cached) " >&6
11421 else
11422   lt_cv_prog_compiler_c_o=no
11423    $RM -r conftest 2>/dev/null
11424    mkdir conftest
11425    cd conftest
11426    mkdir out
11427    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11428
11429    lt_compiler_flag="-o out/conftest2.$ac_objext"
11430    # Insert the option either (1) after the last *FLAGS variable, or
11431    # (2) before a word containing "conftest.", or (3) at the end.
11432    # Note that $ac_compile itself does not contain backslashes and begins
11433    # with a dollar sign (not a hyphen), so the echo should work correctly.
11434    lt_compile=`echo "$ac_compile" | $SED \
11435    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11437    -e 's:$: $lt_compiler_flag:'`
11438    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11439    (eval "$lt_compile" 2>out/conftest.err)
11440    ac_status=$?
11441    cat out/conftest.err >&5
11442    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11444    then
11445      # The compiler can only warn and ignore the option if not recognized
11446      # So say no if there are warnings
11447      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11448      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11449      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11450        lt_cv_prog_compiler_c_o=yes
11451      fi
11452    fi
11453    chmod u+w . 2>&5
11454    $RM conftest*
11455    # SGI C++ compiler will create directory out/ii_files/ for
11456    # template instantiation
11457    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11458    $RM out/* && rmdir out
11459    cd ..
11460    $RM -r conftest
11461    $RM conftest*
11462
11463 fi
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11465 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11466
11467
11468
11469
11470 hard_links="nottested"
11471 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11472   # do not overwrite the value of need_locks provided by the user
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11474 $as_echo_n "checking if we can lock with hard links... " >&6; }
11475   hard_links=yes
11476   $RM conftest*
11477   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11478   touch conftest.a
11479   ln conftest.a conftest.b 2>&5 || hard_links=no
11480   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11482 $as_echo "$hard_links" >&6; }
11483   if test "$hard_links" = no; then
11484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11485 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11486     need_locks=warn
11487   fi
11488 else
11489   need_locks=no
11490 fi
11491
11492
11493
11494
11495
11496
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11498 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11499
11500   runpath_var=
11501   allow_undefined_flag=
11502   always_export_symbols=no
11503   archive_cmds=
11504   archive_expsym_cmds=
11505   compiler_needs_object=no
11506   enable_shared_with_static_runtimes=no
11507   export_dynamic_flag_spec=
11508   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11509   hardcode_automatic=no
11510   hardcode_direct=no
11511   hardcode_direct_absolute=no
11512   hardcode_libdir_flag_spec=
11513   hardcode_libdir_separator=
11514   hardcode_minus_L=no
11515   hardcode_shlibpath_var=unsupported
11516   inherit_rpath=no
11517   link_all_deplibs=unknown
11518   module_cmds=
11519   module_expsym_cmds=
11520   old_archive_from_new_cmds=
11521   old_archive_from_expsyms_cmds=
11522   thread_safe_flag_spec=
11523   whole_archive_flag_spec=
11524   # include_expsyms should be a list of space-separated symbols to be *always*
11525   # included in the symbol list
11526   include_expsyms=
11527   # exclude_expsyms can be an extended regexp of symbols to exclude
11528   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11529   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11530   # as well as any symbol that contains `d'.
11531   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11532   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11533   # platforms (ab)use it in PIC code, but their linkers get confused if
11534   # the symbol is explicitly referenced.  Since portable code cannot
11535   # rely on this symbol name, it's probably fine to never include it in
11536   # preloaded symbol tables.
11537   # Exclude shared library initialization/finalization symbols.
11538   extract_expsyms_cmds=
11539
11540   case $host_os in
11541   cygwin* | mingw* | pw32* | cegcc*)
11542     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11543     # When not using gcc, we currently assume that we are using
11544     # Microsoft Visual C++.
11545     if test "$GCC" != yes; then
11546       with_gnu_ld=no
11547     fi
11548     ;;
11549   interix*)
11550     # we just hope/assume this is gcc and not c89 (= MSVC++)
11551     with_gnu_ld=yes
11552     ;;
11553   openbsd*)
11554     with_gnu_ld=no
11555     ;;
11556   esac
11557
11558   ld_shlibs=yes
11559
11560   # On some targets, GNU ld is compatible enough with the native linker
11561   # that we're better off using the native interface for both.
11562   lt_use_gnu_ld_interface=no
11563   if test "$with_gnu_ld" = yes; then
11564     case $host_os in
11565       aix*)
11566         # The AIX port of GNU ld has always aspired to compatibility
11567         # with the native linker.  However, as the warning in the GNU ld
11568         # block says, versions before 2.19.5* couldn't really create working
11569         # shared libraries, regardless of the interface used.
11570         case `$LD -v 2>&1` in
11571           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11572           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11573           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11574           *)
11575             lt_use_gnu_ld_interface=yes
11576             ;;
11577         esac
11578         ;;
11579       *)
11580         lt_use_gnu_ld_interface=yes
11581         ;;
11582     esac
11583   fi
11584
11585   if test "$lt_use_gnu_ld_interface" = yes; then
11586     # If archive_cmds runs LD, not CC, wlarc should be empty
11587     wlarc='${wl}'
11588
11589     # Set some defaults for GNU ld with shared library support. These
11590     # are reset later if shared libraries are not supported. Putting them
11591     # here allows them to be overridden if necessary.
11592     runpath_var=LD_RUN_PATH
11593     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11594     export_dynamic_flag_spec='${wl}--export-dynamic'
11595     # ancient GNU ld didn't support --whole-archive et. al.
11596     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11597       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11598     else
11599       whole_archive_flag_spec=
11600     fi
11601     supports_anon_versioning=no
11602     case `$LD -v 2>&1` in
11603       *GNU\ gold*) supports_anon_versioning=yes ;;
11604       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11605       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11606       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11607       *\ 2.11.*) ;; # other 2.11 versions
11608       *) supports_anon_versioning=yes ;;
11609     esac
11610
11611     # See if GNU ld supports shared libraries.
11612     case $host_os in
11613     aix[3-9]*)
11614       # On AIX/PPC, the GNU linker is very broken
11615       if test "$host_cpu" != ia64; then
11616         ld_shlibs=no
11617         cat <<_LT_EOF 1>&2
11618
11619 *** Warning: the GNU linker, at least up to release 2.19, is reported
11620 *** to be unable to reliably create shared libraries on AIX.
11621 *** Therefore, libtool is disabling shared libraries support.  If you
11622 *** really care for shared libraries, you may want to install binutils
11623 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11624 *** You will then need to restart the configuration process.
11625
11626 _LT_EOF
11627       fi
11628       ;;
11629
11630     amigaos*)
11631       case $host_cpu in
11632       powerpc)
11633             # see comment about AmigaOS4 .so support
11634             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11635             archive_expsym_cmds=''
11636         ;;
11637       m68k)
11638             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)'
11639             hardcode_libdir_flag_spec='-L$libdir'
11640             hardcode_minus_L=yes
11641         ;;
11642       esac
11643       ;;
11644
11645     beos*)
11646       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11647         allow_undefined_flag=unsupported
11648         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11649         # support --undefined.  This deserves some investigation.  FIXME
11650         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11651       else
11652         ld_shlibs=no
11653       fi
11654       ;;
11655
11656     cygwin* | mingw* | pw32* | cegcc*)
11657       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11658       # as there is no search path for DLLs.
11659       hardcode_libdir_flag_spec='-L$libdir'
11660       export_dynamic_flag_spec='${wl}--export-all-symbols'
11661       allow_undefined_flag=unsupported
11662       always_export_symbols=no
11663       enable_shared_with_static_runtimes=yes
11664       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'
11665       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11666
11667       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11668         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11669         # If the export-symbols file already is a .def file (1st line
11670         # is EXPORTS), use it as is; otherwise, prepend...
11671         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11672           cp $export_symbols $output_objdir/$soname.def;
11673         else
11674           echo EXPORTS > $output_objdir/$soname.def;
11675           cat $export_symbols >> $output_objdir/$soname.def;
11676         fi~
11677         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11678       else
11679         ld_shlibs=no
11680       fi
11681       ;;
11682
11683     haiku*)
11684       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11685       link_all_deplibs=yes
11686       ;;
11687
11688     interix[3-9]*)
11689       hardcode_direct=no
11690       hardcode_shlibpath_var=no
11691       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11692       export_dynamic_flag_spec='${wl}-E'
11693       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11694       # Instead, shared libraries are loaded at an image base (0x10000000 by
11695       # default) and relocated if they conflict, which is a slow very memory
11696       # consuming and fragmenting process.  To avoid this, we pick a random,
11697       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11698       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11699       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11700       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'
11701       ;;
11702
11703     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11704       tmp_diet=no
11705       if test "$host_os" = linux-dietlibc; then
11706         case $cc_basename in
11707           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11708         esac
11709       fi
11710       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11711          && test "$tmp_diet" = no
11712       then
11713         tmp_addflag=' $pic_flag'
11714         tmp_sharedflag='-shared'
11715         case $cc_basename,$host_cpu in
11716         pgcc*)                          # Portland Group C compiler
11717           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'
11718           tmp_addflag=' $pic_flag'
11719           ;;
11720         pgf77* | pgf90* | pgf95* | pgfortran*)
11721                                         # Portland Group f77 and f90 compilers
11722           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'
11723           tmp_addflag=' $pic_flag -Mnomain' ;;
11724         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11725           tmp_addflag=' -i_dynamic' ;;
11726         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11727           tmp_addflag=' -i_dynamic -nofor_main' ;;
11728         ifc* | ifort*)                  # Intel Fortran compiler
11729           tmp_addflag=' -nofor_main' ;;
11730         lf95*)                          # Lahey Fortran 8.1
11731           whole_archive_flag_spec=
11732           tmp_sharedflag='--shared' ;;
11733         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11734           tmp_sharedflag='-qmkshrobj'
11735           tmp_addflag= ;;
11736         nvcc*)  # Cuda Compiler Driver 2.2
11737           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'
11738           compiler_needs_object=yes
11739           ;;
11740         esac
11741         case `$CC -V 2>&1 | sed 5q` in
11742         *Sun\ C*)                       # Sun C 5.9
11743           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'
11744           compiler_needs_object=yes
11745           tmp_sharedflag='-G' ;;
11746         *Sun\ F*)                       # Sun Fortran 8.3
11747           tmp_sharedflag='-G' ;;
11748         esac
11749         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11750
11751         if test "x$supports_anon_versioning" = xyes; then
11752           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11753             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11754             echo "local: *; };" >> $output_objdir/$libname.ver~
11755             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11756         fi
11757
11758         case $cc_basename in
11759         xlf* | bgf* | bgxlf* | mpixlf*)
11760           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11761           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11762           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11763           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11764           if test "x$supports_anon_versioning" = xyes; then
11765             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11766               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11767               echo "local: *; };" >> $output_objdir/$libname.ver~
11768               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11769           fi
11770           ;;
11771         esac
11772       else
11773         ld_shlibs=no
11774       fi
11775       ;;
11776
11777     netbsd*)
11778       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11779         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11780         wlarc=
11781       else
11782         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11783         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11784       fi
11785       ;;
11786
11787     solaris*)
11788       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11789         ld_shlibs=no
11790         cat <<_LT_EOF 1>&2
11791
11792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11793 *** create shared libraries on Solaris systems.  Therefore, libtool
11794 *** is disabling shared libraries support.  We urge you to upgrade GNU
11795 *** binutils to release 2.9.1 or newer.  Another option is to modify
11796 *** your PATH or compiler configuration so that the native linker is
11797 *** used, and then restart.
11798
11799 _LT_EOF
11800       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11801         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11803       else
11804         ld_shlibs=no
11805       fi
11806       ;;
11807
11808     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11809       case `$LD -v 2>&1` in
11810         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11811         ld_shlibs=no
11812         cat <<_LT_EOF 1>&2
11813
11814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11815 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11816 *** is disabling shared libraries support.  We urge you to upgrade GNU
11817 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11818 *** your PATH or compiler configuration so that the native linker is
11819 *** used, and then restart.
11820
11821 _LT_EOF
11822         ;;
11823         *)
11824           # For security reasons, it is highly recommended that you always
11825           # use absolute paths for naming shared libraries, and exclude the
11826           # DT_RUNPATH tag from executables and libraries.  But doing so
11827           # requires that you compile everything twice, which is a pain.
11828           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11829             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11830             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11831             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11832           else
11833             ld_shlibs=no
11834           fi
11835         ;;
11836       esac
11837       ;;
11838
11839     sunos4*)
11840       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11841       wlarc=
11842       hardcode_direct=yes
11843       hardcode_shlibpath_var=no
11844       ;;
11845
11846     *)
11847       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11848         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11849         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11850       else
11851         ld_shlibs=no
11852       fi
11853       ;;
11854     esac
11855
11856     if test "$ld_shlibs" = no; then
11857       runpath_var=
11858       hardcode_libdir_flag_spec=
11859       export_dynamic_flag_spec=
11860       whole_archive_flag_spec=
11861     fi
11862   else
11863     # PORTME fill in a description of your system's linker (not GNU ld)
11864     case $host_os in
11865     aix3*)
11866       allow_undefined_flag=unsupported
11867       always_export_symbols=yes
11868       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'
11869       # Note: this linker hardcodes the directories in LIBPATH if there
11870       # are no directories specified by -L.
11871       hardcode_minus_L=yes
11872       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11873         # Neither direct hardcoding nor static linking is supported with a
11874         # broken collect2.
11875         hardcode_direct=unsupported
11876       fi
11877       ;;
11878
11879     aix[4-9]*)
11880       if test "$host_cpu" = ia64; then
11881         # On IA64, the linker does run time linking by default, so we don't
11882         # have to do anything special.
11883         aix_use_runtimelinking=no
11884         exp_sym_flag='-Bexport'
11885         no_entry_flag=""
11886       else
11887         # If we're using GNU nm, then we don't want the "-C" option.
11888         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11889         # Also, AIX nm treats weak defined symbols like other global
11890         # defined symbols, whereas GNU nm marks them as "W".
11891         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11892           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'
11893         else
11894           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'
11895         fi
11896         aix_use_runtimelinking=no
11897
11898         # Test if we are trying to use run time linking or normal
11899         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11900         # need to do runtime linking.
11901         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11902           for ld_flag in $LDFLAGS; do
11903           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11904             aix_use_runtimelinking=yes
11905             break
11906           fi
11907           done
11908           ;;
11909         esac
11910
11911         exp_sym_flag='-bexport'
11912         no_entry_flag='-bnoentry'
11913       fi
11914
11915       # When large executables or shared objects are built, AIX ld can
11916       # have problems creating the table of contents.  If linking a library
11917       # or program results in "error TOC overflow" add -mminimal-toc to
11918       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11919       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11920
11921       archive_cmds=''
11922       hardcode_direct=yes
11923       hardcode_direct_absolute=yes
11924       hardcode_libdir_separator=':'
11925       link_all_deplibs=yes
11926       file_list_spec='${wl}-f,'
11927
11928       if test "$GCC" = yes; then
11929         case $host_os in aix4.[012]|aix4.[012].*)
11930         # We only want to do this on AIX 4.2 and lower, the check
11931         # below for broken collect2 doesn't work under 4.3+
11932           collect2name=`${CC} -print-prog-name=collect2`
11933           if test -f "$collect2name" &&
11934            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11935           then
11936           # We have reworked collect2
11937           :
11938           else
11939           # We have old collect2
11940           hardcode_direct=unsupported
11941           # It fails to find uninstalled libraries when the uninstalled
11942           # path is not listed in the libpath.  Setting hardcode_minus_L
11943           # to unsupported forces relinking
11944           hardcode_minus_L=yes
11945           hardcode_libdir_flag_spec='-L$libdir'
11946           hardcode_libdir_separator=
11947           fi
11948           ;;
11949         esac
11950         shared_flag='-shared'
11951         if test "$aix_use_runtimelinking" = yes; then
11952           shared_flag="$shared_flag "'${wl}-G'
11953         fi
11954       else
11955         # not using gcc
11956         if test "$host_cpu" = ia64; then
11957         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11958         # chokes on -Wl,-G. The following line is correct:
11959           shared_flag='-G'
11960         else
11961           if test "$aix_use_runtimelinking" = yes; then
11962             shared_flag='${wl}-G'
11963           else
11964             shared_flag='${wl}-bM:SRE'
11965           fi
11966         fi
11967       fi
11968
11969       export_dynamic_flag_spec='${wl}-bexpall'
11970       # It seems that -bexpall does not export symbols beginning with
11971       # underscore (_), so it is better to generate a list of symbols to export.
11972       always_export_symbols=yes
11973       if test "$aix_use_runtimelinking" = yes; then
11974         # Warning - without using the other runtime loading flags (-brtl),
11975         # -berok will link without error, but may produce a broken library.
11976         allow_undefined_flag='-berok'
11977         # Determine the default libpath from the value encoded in an
11978         # empty executable.
11979         if test "${lt_cv_aix_libpath+set}" = set; then
11980   aix_libpath=$lt_cv_aix_libpath
11981 else
11982   if ${lt_cv_aix_libpath_+:} false; then :
11983   $as_echo_n "(cached) " >&6
11984 else
11985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h.  */
11987
11988 int
11989 main ()
11990 {
11991
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997
11998   lt_aix_libpath_sed='
11999       /Import File Strings/,/^$/ {
12000           /^0/ {
12001               s/^0  *\([^ ]*\) *$/\1/
12002               p
12003           }
12004       }'
12005   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12006   # Check for a 64-bit object if we didn't find anything.
12007   if test -z "$lt_cv_aix_libpath_"; then
12008     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12009   fi
12010 fi
12011 rm -f core conftest.err conftest.$ac_objext \
12012     conftest$ac_exeext conftest.$ac_ext
12013   if test -z "$lt_cv_aix_libpath_"; then
12014     lt_cv_aix_libpath_="/usr/lib:/lib"
12015   fi
12016
12017 fi
12018
12019   aix_libpath=$lt_cv_aix_libpath_
12020 fi
12021
12022         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12023         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"
12024       else
12025         if test "$host_cpu" = ia64; then
12026           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12027           allow_undefined_flag="-z nodefs"
12028           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"
12029         else
12030          # Determine the default libpath from the value encoded in an
12031          # empty executable.
12032          if test "${lt_cv_aix_libpath+set}" = set; then
12033   aix_libpath=$lt_cv_aix_libpath
12034 else
12035   if ${lt_cv_aix_libpath_+:} false; then :
12036   $as_echo_n "(cached) " >&6
12037 else
12038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h.  */
12040
12041 int
12042 main ()
12043 {
12044
12045   ;
12046   return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050
12051   lt_aix_libpath_sed='
12052       /Import File Strings/,/^$/ {
12053           /^0/ {
12054               s/^0  *\([^ ]*\) *$/\1/
12055               p
12056           }
12057       }'
12058   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12059   # Check for a 64-bit object if we didn't find anything.
12060   if test -z "$lt_cv_aix_libpath_"; then
12061     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12062   fi
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext \
12065     conftest$ac_exeext conftest.$ac_ext
12066   if test -z "$lt_cv_aix_libpath_"; then
12067     lt_cv_aix_libpath_="/usr/lib:/lib"
12068   fi
12069
12070 fi
12071
12072   aix_libpath=$lt_cv_aix_libpath_
12073 fi
12074
12075          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12076           # Warning - without using the other run time loading flags,
12077           # -berok will link without error, but may produce a broken library.
12078           no_undefined_flag=' ${wl}-bernotok'
12079           allow_undefined_flag=' ${wl}-berok'
12080           if test "$with_gnu_ld" = yes; then
12081             # We only use this code for GNU lds that support --whole-archive.
12082             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12083           else
12084             # Exported symbols can be pulled into shared objects from archives
12085             whole_archive_flag_spec='$convenience'
12086           fi
12087           archive_cmds_need_lc=yes
12088           # This is similar to how AIX traditionally builds its shared libraries.
12089           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'
12090         fi
12091       fi
12092       ;;
12093
12094     amigaos*)
12095       case $host_cpu in
12096       powerpc)
12097             # see comment about AmigaOS4 .so support
12098             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12099             archive_expsym_cmds=''
12100         ;;
12101       m68k)
12102             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)'
12103             hardcode_libdir_flag_spec='-L$libdir'
12104             hardcode_minus_L=yes
12105         ;;
12106       esac
12107       ;;
12108
12109     bsdi[45]*)
12110       export_dynamic_flag_spec=-rdynamic
12111       ;;
12112
12113     cygwin* | mingw* | pw32* | cegcc*)
12114       # When not using gcc, we currently assume that we are using
12115       # Microsoft Visual C++.
12116       # hardcode_libdir_flag_spec is actually meaningless, as there is
12117       # no search path for DLLs.
12118       case $cc_basename in
12119       cl*)
12120         # Native MSVC
12121         hardcode_libdir_flag_spec=' '
12122         allow_undefined_flag=unsupported
12123         always_export_symbols=yes
12124         file_list_spec='@'
12125         # Tell ltmain to make .lib files, not .a files.
12126         libext=lib
12127         # Tell ltmain to make .dll files, not .so files.
12128         shrext_cmds=".dll"
12129         # FIXME: Setting linknames here is a bad hack.
12130         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12131         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12132             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12133           else
12134             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12135           fi~
12136           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12137           linknames='
12138         # The linker will not automatically build a static lib if we build a DLL.
12139         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12140         enable_shared_with_static_runtimes=yes
12141         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12142         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12143         # Don't use ranlib
12144         old_postinstall_cmds='chmod 644 $oldlib'
12145         postlink_cmds='lt_outputfile="@OUTPUT@"~
12146           lt_tool_outputfile="@TOOL_OUTPUT@"~
12147           case $lt_outputfile in
12148             *.exe|*.EXE) ;;
12149             *)
12150               lt_outputfile="$lt_outputfile.exe"
12151               lt_tool_outputfile="$lt_tool_outputfile.exe"
12152               ;;
12153           esac~
12154           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12155             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12156             $RM "$lt_outputfile.manifest";
12157           fi'
12158         ;;
12159       *)
12160         # Assume MSVC wrapper
12161         hardcode_libdir_flag_spec=' '
12162         allow_undefined_flag=unsupported
12163         # Tell ltmain to make .lib files, not .a files.
12164         libext=lib
12165         # Tell ltmain to make .dll files, not .so files.
12166         shrext_cmds=".dll"
12167         # FIXME: Setting linknames here is a bad hack.
12168         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12169         # The linker will automatically build a .lib file if we build a DLL.
12170         old_archive_from_new_cmds='true'
12171         # FIXME: Should let the user specify the lib program.
12172         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12173         enable_shared_with_static_runtimes=yes
12174         ;;
12175       esac
12176       ;;
12177
12178     darwin* | rhapsody*)
12179
12180
12181   archive_cmds_need_lc=no
12182   hardcode_direct=no
12183   hardcode_automatic=yes
12184   hardcode_shlibpath_var=unsupported
12185   if test "$lt_cv_ld_force_load" = "yes"; then
12186     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\"`'
12187
12188   else
12189     whole_archive_flag_spec=''
12190   fi
12191   link_all_deplibs=yes
12192   allow_undefined_flag="$_lt_dar_allow_undefined"
12193   case $cc_basename in
12194      ifort*) _lt_dar_can_shared=yes ;;
12195      *) _lt_dar_can_shared=$GCC ;;
12196   esac
12197   if test "$_lt_dar_can_shared" = "yes"; then
12198     output_verbose_link_cmd=func_echo_all
12199     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12200     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12201     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}"
12202     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}"
12203
12204   else
12205   ld_shlibs=no
12206   fi
12207
12208       ;;
12209
12210     dgux*)
12211       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12212       hardcode_libdir_flag_spec='-L$libdir'
12213       hardcode_shlibpath_var=no
12214       ;;
12215
12216     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12217     # support.  Future versions do this automatically, but an explicit c++rt0.o
12218     # does not break anything, and helps significantly (at the cost of a little
12219     # extra space).
12220     freebsd2.2*)
12221       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12222       hardcode_libdir_flag_spec='-R$libdir'
12223       hardcode_direct=yes
12224       hardcode_shlibpath_var=no
12225       ;;
12226
12227     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12228     freebsd2.*)
12229       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12230       hardcode_direct=yes
12231       hardcode_minus_L=yes
12232       hardcode_shlibpath_var=no
12233       ;;
12234
12235     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12236     freebsd* | dragonfly*)
12237       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12238       hardcode_libdir_flag_spec='-R$libdir'
12239       hardcode_direct=yes
12240       hardcode_shlibpath_var=no
12241       ;;
12242
12243     hpux9*)
12244       if test "$GCC" = yes; then
12245         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'
12246       else
12247         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'
12248       fi
12249       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12250       hardcode_libdir_separator=:
12251       hardcode_direct=yes
12252
12253       # hardcode_minus_L: Not really in the search PATH,
12254       # but as the default location of the library.
12255       hardcode_minus_L=yes
12256       export_dynamic_flag_spec='${wl}-E'
12257       ;;
12258
12259     hpux10*)
12260       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12261         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12262       else
12263         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12264       fi
12265       if test "$with_gnu_ld" = no; then
12266         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12267         hardcode_libdir_separator=:
12268         hardcode_direct=yes
12269         hardcode_direct_absolute=yes
12270         export_dynamic_flag_spec='${wl}-E'
12271         # hardcode_minus_L: Not really in the search PATH,
12272         # but as the default location of the library.
12273         hardcode_minus_L=yes
12274       fi
12275       ;;
12276
12277     hpux11*)
12278       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12279         case $host_cpu in
12280         hppa*64*)
12281           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12282           ;;
12283         ia64*)
12284           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12285           ;;
12286         *)
12287           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12288           ;;
12289         esac
12290       else
12291         case $host_cpu in
12292         hppa*64*)
12293           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12294           ;;
12295         ia64*)
12296           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12297           ;;
12298         *)
12299
12300           # Older versions of the 11.00 compiler do not understand -b yet
12301           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12302           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12303 $as_echo_n "checking if $CC understands -b... " >&6; }
12304 if ${lt_cv_prog_compiler__b+:} false; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   lt_cv_prog_compiler__b=no
12308    save_LDFLAGS="$LDFLAGS"
12309    LDFLAGS="$LDFLAGS -b"
12310    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12311    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12312      # The linker can only warn and ignore the option if not recognized
12313      # So say no if there are warnings
12314      if test -s conftest.err; then
12315        # Append any errors to the config.log.
12316        cat conftest.err 1>&5
12317        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12318        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12319        if diff conftest.exp conftest.er2 >/dev/null; then
12320          lt_cv_prog_compiler__b=yes
12321        fi
12322      else
12323        lt_cv_prog_compiler__b=yes
12324      fi
12325    fi
12326    $RM -r conftest*
12327    LDFLAGS="$save_LDFLAGS"
12328
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12331 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12332
12333 if test x"$lt_cv_prog_compiler__b" = xyes; then
12334     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12335 else
12336     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12337 fi
12338
12339           ;;
12340         esac
12341       fi
12342       if test "$with_gnu_ld" = no; then
12343         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12344         hardcode_libdir_separator=:
12345
12346         case $host_cpu in
12347         hppa*64*|ia64*)
12348           hardcode_direct=no
12349           hardcode_shlibpath_var=no
12350           ;;
12351         *)
12352           hardcode_direct=yes
12353           hardcode_direct_absolute=yes
12354           export_dynamic_flag_spec='${wl}-E'
12355
12356           # hardcode_minus_L: Not really in the search PATH,
12357           # but as the default location of the library.
12358           hardcode_minus_L=yes
12359           ;;
12360         esac
12361       fi
12362       ;;
12363
12364     irix5* | irix6* | nonstopux*)
12365       if test "$GCC" = yes; then
12366         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'
12367         # Try to use the -exported_symbol ld option, if it does not
12368         # work, assume that -exports_file does not work either and
12369         # implicitly export all symbols.
12370         # This should be the same for all languages, so no per-tag cache variable.
12371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12372 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12373 if ${lt_cv_irix_exported_symbol+:} false; then :
12374   $as_echo_n "(cached) " >&6
12375 else
12376   save_LDFLAGS="$LDFLAGS"
12377            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12378            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h.  */
12380 int foo (void) { return 0; }
12381 _ACEOF
12382 if ac_fn_c_try_link "$LINENO"; then :
12383   lt_cv_irix_exported_symbol=yes
12384 else
12385   lt_cv_irix_exported_symbol=no
12386 fi
12387 rm -f core conftest.err conftest.$ac_objext \
12388     conftest$ac_exeext conftest.$ac_ext
12389            LDFLAGS="$save_LDFLAGS"
12390 fi
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12392 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12393         if test "$lt_cv_irix_exported_symbol" = yes; then
12394           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'
12395         fi
12396       else
12397         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'
12398         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'
12399       fi
12400       archive_cmds_need_lc='no'
12401       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12402       hardcode_libdir_separator=:
12403       inherit_rpath=yes
12404       link_all_deplibs=yes
12405       ;;
12406
12407     netbsd*)
12408       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12409         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12410       else
12411         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12412       fi
12413       hardcode_libdir_flag_spec='-R$libdir'
12414       hardcode_direct=yes
12415       hardcode_shlibpath_var=no
12416       ;;
12417
12418     newsos6)
12419       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12420       hardcode_direct=yes
12421       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12422       hardcode_libdir_separator=:
12423       hardcode_shlibpath_var=no
12424       ;;
12425
12426     *nto* | *qnx*)
12427       ;;
12428
12429     openbsd*)
12430       if test -f /usr/libexec/ld.so; then
12431         hardcode_direct=yes
12432         hardcode_shlibpath_var=no
12433         hardcode_direct_absolute=yes
12434         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12435           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12436           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12437           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12438           export_dynamic_flag_spec='${wl}-E'
12439         else
12440           case $host_os in
12441            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12442              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12443              hardcode_libdir_flag_spec='-R$libdir'
12444              ;;
12445            *)
12446              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12447              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12448              ;;
12449           esac
12450         fi
12451       else
12452         ld_shlibs=no
12453       fi
12454       ;;
12455
12456     os2*)
12457       hardcode_libdir_flag_spec='-L$libdir'
12458       hardcode_minus_L=yes
12459       allow_undefined_flag=unsupported
12460       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'
12461       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12462       ;;
12463
12464     osf3*)
12465       if test "$GCC" = yes; then
12466         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12467         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'
12468       else
12469         allow_undefined_flag=' -expect_unresolved \*'
12470         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'
12471       fi
12472       archive_cmds_need_lc='no'
12473       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12474       hardcode_libdir_separator=:
12475       ;;
12476
12477     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12478       if test "$GCC" = yes; then
12479         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12480         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'
12481         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12482       else
12483         allow_undefined_flag=' -expect_unresolved \*'
12484         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'
12485         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~
12486         $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'
12487
12488         # Both c and cxx compiler support -rpath directly
12489         hardcode_libdir_flag_spec='-rpath $libdir'
12490       fi
12491       archive_cmds_need_lc='no'
12492       hardcode_libdir_separator=:
12493       ;;
12494
12495     solaris*)
12496       no_undefined_flag=' -z defs'
12497       if test "$GCC" = yes; then
12498         wlarc='${wl}'
12499         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12500         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12501           $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'
12502       else
12503         case `$CC -V 2>&1` in
12504         *"Compilers 5.0"*)
12505           wlarc=''
12506           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12507           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12508           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12509           ;;
12510         *)
12511           wlarc='${wl}'
12512           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12513           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12514           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12515           ;;
12516         esac
12517       fi
12518       hardcode_libdir_flag_spec='-R$libdir'
12519       hardcode_shlibpath_var=no
12520       case $host_os in
12521       solaris2.[0-5] | solaris2.[0-5].*) ;;
12522       *)
12523         # The compiler driver will combine and reorder linker options,
12524         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12525         # but is careful enough not to reorder.
12526         # Supported since Solaris 2.6 (maybe 2.5.1?)
12527         if test "$GCC" = yes; then
12528           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12529         else
12530           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12531         fi
12532         ;;
12533       esac
12534       link_all_deplibs=yes
12535       ;;
12536
12537     sunos4*)
12538       if test "x$host_vendor" = xsequent; then
12539         # Use $CC to link under sequent, because it throws in some extra .o
12540         # files that make .init and .fini sections work.
12541         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12542       else
12543         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12544       fi
12545       hardcode_libdir_flag_spec='-L$libdir'
12546       hardcode_direct=yes
12547       hardcode_minus_L=yes
12548       hardcode_shlibpath_var=no
12549       ;;
12550
12551     sysv4)
12552       case $host_vendor in
12553         sni)
12554           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12555           hardcode_direct=yes # is this really true???
12556         ;;
12557         siemens)
12558           ## LD is ld it makes a PLAMLIB
12559           ## CC just makes a GrossModule.
12560           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12561           reload_cmds='$CC -r -o $output$reload_objs'
12562           hardcode_direct=no
12563         ;;
12564         motorola)
12565           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12566           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12567         ;;
12568       esac
12569       runpath_var='LD_RUN_PATH'
12570       hardcode_shlibpath_var=no
12571       ;;
12572
12573     sysv4.3*)
12574       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12575       hardcode_shlibpath_var=no
12576       export_dynamic_flag_spec='-Bexport'
12577       ;;
12578
12579     sysv4*MP*)
12580       if test -d /usr/nec; then
12581         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12582         hardcode_shlibpath_var=no
12583         runpath_var=LD_RUN_PATH
12584         hardcode_runpath_var=yes
12585         ld_shlibs=yes
12586       fi
12587       ;;
12588
12589     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12590       no_undefined_flag='${wl}-z,text'
12591       archive_cmds_need_lc=no
12592       hardcode_shlibpath_var=no
12593       runpath_var='LD_RUN_PATH'
12594
12595       if test "$GCC" = yes; then
12596         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598       else
12599         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12600         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601       fi
12602       ;;
12603
12604     sysv5* | sco3.2v5* | sco5v6*)
12605       # Note: We can NOT use -z defs as we might desire, because we do not
12606       # link with -lc, and that would cause any symbols used from libc to
12607       # always be unresolved, which means just about no library would
12608       # ever link correctly.  If we're not using GNU ld we use -z text
12609       # though, which does catch some bad symbols but isn't as heavy-handed
12610       # as -z defs.
12611       no_undefined_flag='${wl}-z,text'
12612       allow_undefined_flag='${wl}-z,nodefs'
12613       archive_cmds_need_lc=no
12614       hardcode_shlibpath_var=no
12615       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12616       hardcode_libdir_separator=':'
12617       link_all_deplibs=yes
12618       export_dynamic_flag_spec='${wl}-Bexport'
12619       runpath_var='LD_RUN_PATH'
12620
12621       if test "$GCC" = yes; then
12622         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624       else
12625         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12626         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12627       fi
12628       ;;
12629
12630     uts4*)
12631       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12632       hardcode_libdir_flag_spec='-L$libdir'
12633       hardcode_shlibpath_var=no
12634       ;;
12635
12636     *)
12637       ld_shlibs=no
12638       ;;
12639     esac
12640
12641     if test x$host_vendor = xsni; then
12642       case $host in
12643       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12644         export_dynamic_flag_spec='${wl}-Blargedynsym'
12645         ;;
12646       esac
12647     fi
12648   fi
12649
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12651 $as_echo "$ld_shlibs" >&6; }
12652 test "$ld_shlibs" = no && can_build_shared=no
12653
12654 with_gnu_ld=$with_gnu_ld
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670 #
12671 # Do we need to explicitly link libc?
12672 #
12673 case "x$archive_cmds_need_lc" in
12674 x|xyes)
12675   # Assume -lc should be added
12676   archive_cmds_need_lc=yes
12677
12678   if test "$enable_shared" = yes && test "$GCC" = yes; then
12679     case $archive_cmds in
12680     *'~'*)
12681       # FIXME: we may have to deal with multi-command sequences.
12682       ;;
12683     '$CC '*)
12684       # Test whether the compiler implicitly links with -lc since on some
12685       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12686       # to ld, don't add -lc before -lgcc.
12687       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12688 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12689 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   $RM conftest*
12693         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12694
12695         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12696   (eval $ac_compile) 2>&5
12697   ac_status=$?
12698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699   test $ac_status = 0; } 2>conftest.err; then
12700           soname=conftest
12701           lib=conftest
12702           libobjs=conftest.$ac_objext
12703           deplibs=
12704           wl=$lt_prog_compiler_wl
12705           pic_flag=$lt_prog_compiler_pic
12706           compiler_flags=-v
12707           linker_flags=-v
12708           verstring=
12709           output_objdir=.
12710           libname=conftest
12711           lt_save_allow_undefined_flag=$allow_undefined_flag
12712           allow_undefined_flag=
12713           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12714   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12715   ac_status=$?
12716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12717   test $ac_status = 0; }
12718           then
12719             lt_cv_archive_cmds_need_lc=no
12720           else
12721             lt_cv_archive_cmds_need_lc=yes
12722           fi
12723           allow_undefined_flag=$lt_save_allow_undefined_flag
12724         else
12725           cat conftest.err 1>&5
12726         fi
12727         $RM conftest*
12728
12729 fi
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12731 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12732       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12733       ;;
12734     esac
12735   fi
12736   ;;
12737 esac
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
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12891 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12892
12893 if test "$GCC" = yes; then
12894   case $host_os in
12895     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12896     *) lt_awk_arg="/^libraries:/" ;;
12897   esac
12898   case $host_os in
12899     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12900     *) lt_sed_strip_eq="s,=/,/,g" ;;
12901   esac
12902   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12903   case $lt_search_path_spec in
12904   *\;*)
12905     # if the path contains ";" then we assume it to be the separator
12906     # otherwise default to the standard path separator (i.e. ":") - it is
12907     # assumed that no part of a normal pathname contains ";" but that should
12908     # okay in the real world where ";" in dirpaths is itself problematic.
12909     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12910     ;;
12911   *)
12912     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12913     ;;
12914   esac
12915   # Ok, now we have the path, separated by spaces, we can step through it
12916   # and add multilib dir if necessary.
12917   lt_tmp_lt_search_path_spec=
12918   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12919   for lt_sys_path in $lt_search_path_spec; do
12920     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12921       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12922     else
12923       test -d "$lt_sys_path" && \
12924         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12925     fi
12926   done
12927   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12928 BEGIN {RS=" "; FS="/|\n";} {
12929   lt_foo="";
12930   lt_count=0;
12931   for (lt_i = NF; lt_i > 0; lt_i--) {
12932     if ($lt_i != "" && $lt_i != ".") {
12933       if ($lt_i == "..") {
12934         lt_count++;
12935       } else {
12936         if (lt_count == 0) {
12937           lt_foo="/" $lt_i lt_foo;
12938         } else {
12939           lt_count--;
12940         }
12941       }
12942     }
12943   }
12944   if (lt_foo != "") { lt_freq[lt_foo]++; }
12945   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12946 }'`
12947   # AWK program above erroneously prepends '/' to C:/dos/paths
12948   # for these hosts.
12949   case $host_os in
12950     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12951       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12952   esac
12953   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12954 else
12955   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12956 fi
12957 library_names_spec=
12958 libname_spec='lib$name'
12959 soname_spec=
12960 shrext_cmds=".so"
12961 postinstall_cmds=
12962 postuninstall_cmds=
12963 finish_cmds=
12964 finish_eval=
12965 shlibpath_var=
12966 shlibpath_overrides_runpath=unknown
12967 version_type=none
12968 dynamic_linker="$host_os ld.so"
12969 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12970 need_lib_prefix=unknown
12971 hardcode_into_libs=no
12972
12973 # when you set need_version to no, make sure it does not cause -set_version
12974 # flags to be left without arguments
12975 need_version=unknown
12976
12977 case $host_os in
12978 aix3*)
12979   version_type=linux # correct to gnu/linux during the next big refactor
12980   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12981   shlibpath_var=LIBPATH
12982
12983   # AIX 3 has no versioning support, so we append a major version to the name.
12984   soname_spec='${libname}${release}${shared_ext}$major'
12985   ;;
12986
12987 aix[4-9]*)
12988   version_type=linux # correct to gnu/linux during the next big refactor
12989   need_lib_prefix=no
12990   need_version=no
12991   hardcode_into_libs=yes
12992   if test "$host_cpu" = ia64; then
12993     # AIX 5 supports IA64
12994     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12995     shlibpath_var=LD_LIBRARY_PATH
12996   else
12997     # With GCC up to 2.95.x, collect2 would create an import file
12998     # for dependence libraries.  The import file would start with
12999     # the line `#! .'.  This would cause the generated library to
13000     # depend on `.', always an invalid library.  This was fixed in
13001     # development snapshots of GCC prior to 3.0.
13002     case $host_os in
13003       aix4 | aix4.[01] | aix4.[01].*)
13004       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13005            echo ' yes '
13006            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13007         :
13008       else
13009         can_build_shared=no
13010       fi
13011       ;;
13012     esac
13013     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13014     # soname into executable. Probably we can add versioning support to
13015     # collect2, so additional links can be useful in future.
13016     if test "$aix_use_runtimelinking" = yes; then
13017       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13018       # instead of lib<name>.a to let people know that these are not
13019       # typical AIX shared libraries.
13020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13021     else
13022       # We preserve .a as extension for shared libraries through AIX4.2
13023       # and later when we are not doing run time linking.
13024       library_names_spec='${libname}${release}.a $libname.a'
13025       soname_spec='${libname}${release}${shared_ext}$major'
13026     fi
13027     shlibpath_var=LIBPATH
13028   fi
13029   ;;
13030
13031 amigaos*)
13032   case $host_cpu in
13033   powerpc)
13034     # Since July 2007 AmigaOS4 officially supports .so libraries.
13035     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13036     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13037     ;;
13038   m68k)
13039     library_names_spec='$libname.ixlibrary $libname.a'
13040     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13041     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'
13042     ;;
13043   esac
13044   ;;
13045
13046 beos*)
13047   library_names_spec='${libname}${shared_ext}'
13048   dynamic_linker="$host_os ld.so"
13049   shlibpath_var=LIBRARY_PATH
13050   ;;
13051
13052 bsdi[45]*)
13053   version_type=linux # correct to gnu/linux during the next big refactor
13054   need_version=no
13055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056   soname_spec='${libname}${release}${shared_ext}$major'
13057   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13058   shlibpath_var=LD_LIBRARY_PATH
13059   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13060   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13061   # the default ld.so.conf also contains /usr/contrib/lib and
13062   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13063   # libtool to hard-code these into programs
13064   ;;
13065
13066 cygwin* | mingw* | pw32* | cegcc*)
13067   version_type=windows
13068   shrext_cmds=".dll"
13069   need_version=no
13070   need_lib_prefix=no
13071
13072   case $GCC,$cc_basename in
13073   yes,*)
13074     # gcc
13075     library_names_spec='$libname.dll.a'
13076     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13077     postinstall_cmds='base_file=`basename \${file}`~
13078       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13079       dldir=$destdir/`dirname \$dlpath`~
13080       test -d \$dldir || mkdir -p \$dldir~
13081       $install_prog $dir/$dlname \$dldir/$dlname~
13082       chmod a+x \$dldir/$dlname~
13083       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13084         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13085       fi'
13086     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13087       dlpath=$dir/\$dldll~
13088        $RM \$dlpath'
13089     shlibpath_overrides_runpath=yes
13090
13091     case $host_os in
13092     cygwin*)
13093       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13094       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13095
13096       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13097       ;;
13098     mingw* | cegcc*)
13099       # MinGW DLLs use traditional 'lib' prefix
13100       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13101       ;;
13102     pw32*)
13103       # pw32 DLLs use 'pw' prefix rather than 'lib'
13104       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13105       ;;
13106     esac
13107     dynamic_linker='Win32 ld.exe'
13108     ;;
13109
13110   *,cl*)
13111     # Native MSVC
13112     libname_spec='$name'
13113     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13114     library_names_spec='${libname}.dll.lib'
13115
13116     case $build_os in
13117     mingw*)
13118       sys_lib_search_path_spec=
13119       lt_save_ifs=$IFS
13120       IFS=';'
13121       for lt_path in $LIB
13122       do
13123         IFS=$lt_save_ifs
13124         # Let DOS variable expansion print the short 8.3 style file name.
13125         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13126         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13127       done
13128       IFS=$lt_save_ifs
13129       # Convert to MSYS style.
13130       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13131       ;;
13132     cygwin*)
13133       # Convert to unix form, then to dos form, then back to unix form
13134       # but this time dos style (no spaces!) so that the unix form looks
13135       # like /cygdrive/c/PROGRA~1:/cygdr...
13136       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13137       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13138       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13139       ;;
13140     *)
13141       sys_lib_search_path_spec="$LIB"
13142       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13143         # It is most probably a Windows format PATH.
13144         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13145       else
13146         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13147       fi
13148       # FIXME: find the short name or the path components, as spaces are
13149       # common. (e.g. "Program Files" -> "PROGRA~1")
13150       ;;
13151     esac
13152
13153     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13154     postinstall_cmds='base_file=`basename \${file}`~
13155       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13156       dldir=$destdir/`dirname \$dlpath`~
13157       test -d \$dldir || mkdir -p \$dldir~
13158       $install_prog $dir/$dlname \$dldir/$dlname'
13159     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13160       dlpath=$dir/\$dldll~
13161        $RM \$dlpath'
13162     shlibpath_overrides_runpath=yes
13163     dynamic_linker='Win32 link.exe'
13164     ;;
13165
13166   *)
13167     # Assume MSVC wrapper
13168     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13169     dynamic_linker='Win32 ld.exe'
13170     ;;
13171   esac
13172   # FIXME: first we should search . and the directory the executable is in
13173   shlibpath_var=PATH
13174   ;;
13175
13176 darwin* | rhapsody*)
13177   dynamic_linker="$host_os dyld"
13178   version_type=darwin
13179   need_lib_prefix=no
13180   need_version=no
13181   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13182   soname_spec='${libname}${release}${major}$shared_ext'
13183   shlibpath_overrides_runpath=yes
13184   shlibpath_var=DYLD_LIBRARY_PATH
13185   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13186
13187   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13188   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13189   ;;
13190
13191 dgux*)
13192   version_type=linux # correct to gnu/linux during the next big refactor
13193   need_lib_prefix=no
13194   need_version=no
13195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13196   soname_spec='${libname}${release}${shared_ext}$major'
13197   shlibpath_var=LD_LIBRARY_PATH
13198   ;;
13199
13200 freebsd* | dragonfly*)
13201   # DragonFly does not have aout.  When/if they implement a new
13202   # versioning mechanism, adjust this.
13203   if test -x /usr/bin/objformat; then
13204     objformat=`/usr/bin/objformat`
13205   else
13206     case $host_os in
13207     freebsd[23].*) objformat=aout ;;
13208     *) objformat=elf ;;
13209     esac
13210   fi
13211   version_type=freebsd-$objformat
13212   case $version_type in
13213     freebsd-elf*)
13214       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13215       need_version=no
13216       need_lib_prefix=no
13217       ;;
13218     freebsd-*)
13219       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13220       need_version=yes
13221       ;;
13222   esac
13223   shlibpath_var=LD_LIBRARY_PATH
13224   case $host_os in
13225   freebsd2.*)
13226     shlibpath_overrides_runpath=yes
13227     ;;
13228   freebsd3.[01]* | freebsdelf3.[01]*)
13229     shlibpath_overrides_runpath=yes
13230     hardcode_into_libs=yes
13231     ;;
13232   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13233   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13234     shlibpath_overrides_runpath=no
13235     hardcode_into_libs=yes
13236     ;;
13237   *) # from 4.6 on, and DragonFly
13238     shlibpath_overrides_runpath=yes
13239     hardcode_into_libs=yes
13240     ;;
13241   esac
13242   ;;
13243
13244 gnu*)
13245   version_type=linux # correct to gnu/linux during the next big refactor
13246   need_lib_prefix=no
13247   need_version=no
13248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13249   soname_spec='${libname}${release}${shared_ext}$major'
13250   shlibpath_var=LD_LIBRARY_PATH
13251   shlibpath_overrides_runpath=no
13252   hardcode_into_libs=yes
13253   ;;
13254
13255 haiku*)
13256   version_type=linux # correct to gnu/linux during the next big refactor
13257   need_lib_prefix=no
13258   need_version=no
13259   dynamic_linker="$host_os runtime_loader"
13260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13261   soname_spec='${libname}${release}${shared_ext}$major'
13262   shlibpath_var=LIBRARY_PATH
13263   shlibpath_overrides_runpath=yes
13264   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13265   hardcode_into_libs=yes
13266   ;;
13267
13268 hpux9* | hpux10* | hpux11*)
13269   # Give a soname corresponding to the major version so that dld.sl refuses to
13270   # link against other versions.
13271   version_type=sunos
13272   need_lib_prefix=no
13273   need_version=no
13274   case $host_cpu in
13275   ia64*)
13276     shrext_cmds='.so'
13277     hardcode_into_libs=yes
13278     dynamic_linker="$host_os dld.so"
13279     shlibpath_var=LD_LIBRARY_PATH
13280     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282     soname_spec='${libname}${release}${shared_ext}$major'
13283     if test "X$HPUX_IA64_MODE" = X32; then
13284       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13285     else
13286       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13287     fi
13288     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13289     ;;
13290   hppa*64*)
13291     shrext_cmds='.sl'
13292     hardcode_into_libs=yes
13293     dynamic_linker="$host_os dld.sl"
13294     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13295     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297     soname_spec='${libname}${release}${shared_ext}$major'
13298     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13299     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13300     ;;
13301   *)
13302     shrext_cmds='.sl'
13303     dynamic_linker="$host_os dld.sl"
13304     shlibpath_var=SHLIB_PATH
13305     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307     soname_spec='${libname}${release}${shared_ext}$major'
13308     ;;
13309   esac
13310   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13311   postinstall_cmds='chmod 555 $lib'
13312   # or fails outright, so override atomically:
13313   install_override_mode=555
13314   ;;
13315
13316 interix[3-9]*)
13317   version_type=linux # correct to gnu/linux during the next big refactor
13318   need_lib_prefix=no
13319   need_version=no
13320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13321   soname_spec='${libname}${release}${shared_ext}$major'
13322   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13323   shlibpath_var=LD_LIBRARY_PATH
13324   shlibpath_overrides_runpath=no
13325   hardcode_into_libs=yes
13326   ;;
13327
13328 irix5* | irix6* | nonstopux*)
13329   case $host_os in
13330     nonstopux*) version_type=nonstopux ;;
13331     *)
13332         if test "$lt_cv_prog_gnu_ld" = yes; then
13333                 version_type=linux # correct to gnu/linux during the next big refactor
13334         else
13335                 version_type=irix
13336         fi ;;
13337   esac
13338   need_lib_prefix=no
13339   need_version=no
13340   soname_spec='${libname}${release}${shared_ext}$major'
13341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13342   case $host_os in
13343   irix5* | nonstopux*)
13344     libsuff= shlibsuff=
13345     ;;
13346   *)
13347     case $LD in # libtool.m4 will add one of these switches to LD
13348     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13349       libsuff= shlibsuff= libmagic=32-bit;;
13350     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13351       libsuff=32 shlibsuff=N32 libmagic=N32;;
13352     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13353       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13354     *) libsuff= shlibsuff= libmagic=never-match;;
13355     esac
13356     ;;
13357   esac
13358   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13359   shlibpath_overrides_runpath=no
13360   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13361   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13362   hardcode_into_libs=yes
13363   ;;
13364
13365 # No shared lib support for Linux oldld, aout, or coff.
13366 linux*oldld* | linux*aout* | linux*coff*)
13367   dynamic_linker=no
13368   ;;
13369
13370 # This must be glibc/ELF.
13371 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13372   version_type=linux # correct to gnu/linux during the next big refactor
13373   need_lib_prefix=no
13374   need_version=no
13375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13376   soname_spec='${libname}${release}${shared_ext}$major'
13377   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13378   shlibpath_var=LD_LIBRARY_PATH
13379   shlibpath_overrides_runpath=no
13380
13381   # Some binutils ld are patched to set DT_RUNPATH
13382   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13383   $as_echo_n "(cached) " >&6
13384 else
13385   lt_cv_shlibpath_overrides_runpath=no
13386     save_LDFLAGS=$LDFLAGS
13387     save_libdir=$libdir
13388     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13389          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h.  */
13392
13393 int
13394 main ()
13395 {
13396
13397   ;
13398   return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_link "$LINENO"; then :
13402   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13403   lt_cv_shlibpath_overrides_runpath=yes
13404 fi
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext \
13407     conftest$ac_exeext conftest.$ac_ext
13408     LDFLAGS=$save_LDFLAGS
13409     libdir=$save_libdir
13410
13411 fi
13412
13413   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13414
13415   # This implies no fast_install, which is unacceptable.
13416   # Some rework will be needed to allow for fast_install
13417   # before this can be enabled.
13418   hardcode_into_libs=yes
13419
13420   # Append ld.so.conf contents to the search path
13421   if test -f /etc/ld.so.conf; then
13422     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' ' '`
13423     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13424   fi
13425
13426   # We used to test for /lib/ld.so.1 and disable shared libraries on
13427   # powerpc, because MkLinux only supported shared libraries with the
13428   # GNU dynamic linker.  Since this was broken with cross compilers,
13429   # most powerpc-linux boxes support dynamic linking these days and
13430   # people can always --disable-shared, the test was removed, and we
13431   # assume the GNU/Linux dynamic linker is in use.
13432   dynamic_linker='GNU/Linux ld.so'
13433   ;;
13434
13435 netbsd*)
13436   version_type=sunos
13437   need_lib_prefix=no
13438   need_version=no
13439   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13441     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13442     dynamic_linker='NetBSD (a.out) ld.so'
13443   else
13444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13445     soname_spec='${libname}${release}${shared_ext}$major'
13446     dynamic_linker='NetBSD ld.elf_so'
13447   fi
13448   shlibpath_var=LD_LIBRARY_PATH
13449   shlibpath_overrides_runpath=yes
13450   hardcode_into_libs=yes
13451   ;;
13452
13453 newsos6)
13454   version_type=linux # correct to gnu/linux during the next big refactor
13455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13456   shlibpath_var=LD_LIBRARY_PATH
13457   shlibpath_overrides_runpath=yes
13458   ;;
13459
13460 *nto* | *qnx*)
13461   version_type=qnx
13462   need_lib_prefix=no
13463   need_version=no
13464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465   soname_spec='${libname}${release}${shared_ext}$major'
13466   shlibpath_var=LD_LIBRARY_PATH
13467   shlibpath_overrides_runpath=no
13468   hardcode_into_libs=yes
13469   dynamic_linker='ldqnx.so'
13470   ;;
13471
13472 openbsd*)
13473   version_type=sunos
13474   sys_lib_dlsearch_path_spec="/usr/lib"
13475   need_lib_prefix=no
13476   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13477   case $host_os in
13478     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13479     *)                          need_version=no  ;;
13480   esac
13481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13483   shlibpath_var=LD_LIBRARY_PATH
13484   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13485     case $host_os in
13486       openbsd2.[89] | openbsd2.[89].*)
13487         shlibpath_overrides_runpath=no
13488         ;;
13489       *)
13490         shlibpath_overrides_runpath=yes
13491         ;;
13492       esac
13493   else
13494     shlibpath_overrides_runpath=yes
13495   fi
13496   ;;
13497
13498 os2*)
13499   libname_spec='$name'
13500   shrext_cmds=".dll"
13501   need_lib_prefix=no
13502   library_names_spec='$libname${shared_ext} $libname.a'
13503   dynamic_linker='OS/2 ld.exe'
13504   shlibpath_var=LIBPATH
13505   ;;
13506
13507 osf3* | osf4* | osf5*)
13508   version_type=osf
13509   need_lib_prefix=no
13510   need_version=no
13511   soname_spec='${libname}${release}${shared_ext}$major'
13512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513   shlibpath_var=LD_LIBRARY_PATH
13514   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13515   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13516   ;;
13517
13518 rdos*)
13519   dynamic_linker=no
13520   ;;
13521
13522 solaris*)
13523   version_type=linux # correct to gnu/linux during the next big refactor
13524   need_lib_prefix=no
13525   need_version=no
13526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527   soname_spec='${libname}${release}${shared_ext}$major'
13528   shlibpath_var=LD_LIBRARY_PATH
13529   shlibpath_overrides_runpath=yes
13530   hardcode_into_libs=yes
13531   # ldd complains unless libraries are executable
13532   postinstall_cmds='chmod +x $lib'
13533   ;;
13534
13535 sunos4*)
13536   version_type=sunos
13537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13538   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13539   shlibpath_var=LD_LIBRARY_PATH
13540   shlibpath_overrides_runpath=yes
13541   if test "$with_gnu_ld" = yes; then
13542     need_lib_prefix=no
13543   fi
13544   need_version=yes
13545   ;;
13546
13547 sysv4 | sysv4.3*)
13548   version_type=linux # correct to gnu/linux during the next big refactor
13549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550   soname_spec='${libname}${release}${shared_ext}$major'
13551   shlibpath_var=LD_LIBRARY_PATH
13552   case $host_vendor in
13553     sni)
13554       shlibpath_overrides_runpath=no
13555       need_lib_prefix=no
13556       runpath_var=LD_RUN_PATH
13557       ;;
13558     siemens)
13559       need_lib_prefix=no
13560       ;;
13561     motorola)
13562       need_lib_prefix=no
13563       need_version=no
13564       shlibpath_overrides_runpath=no
13565       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13566       ;;
13567   esac
13568   ;;
13569
13570 sysv4*MP*)
13571   if test -d /usr/nec ;then
13572     version_type=linux # correct to gnu/linux during the next big refactor
13573     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13574     soname_spec='$libname${shared_ext}.$major'
13575     shlibpath_var=LD_LIBRARY_PATH
13576   fi
13577   ;;
13578
13579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13580   version_type=freebsd-elf
13581   need_lib_prefix=no
13582   need_version=no
13583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13584   soname_spec='${libname}${release}${shared_ext}$major'
13585   shlibpath_var=LD_LIBRARY_PATH
13586   shlibpath_overrides_runpath=yes
13587   hardcode_into_libs=yes
13588   if test "$with_gnu_ld" = yes; then
13589     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13590   else
13591     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13592     case $host_os in
13593       sco3.2v5*)
13594         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13595         ;;
13596     esac
13597   fi
13598   sys_lib_dlsearch_path_spec='/usr/lib'
13599   ;;
13600
13601 tpf*)
13602   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13603   version_type=linux # correct to gnu/linux during the next big refactor
13604   need_lib_prefix=no
13605   need_version=no
13606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607   shlibpath_var=LD_LIBRARY_PATH
13608   shlibpath_overrides_runpath=no
13609   hardcode_into_libs=yes
13610   ;;
13611
13612 uts4*)
13613   version_type=linux # correct to gnu/linux during the next big refactor
13614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615   soname_spec='${libname}${release}${shared_ext}$major'
13616   shlibpath_var=LD_LIBRARY_PATH
13617   ;;
13618
13619 *)
13620   dynamic_linker=no
13621   ;;
13622 esac
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13624 $as_echo "$dynamic_linker" >&6; }
13625 test "$dynamic_linker" = no && can_build_shared=no
13626
13627 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13628 if test "$GCC" = yes; then
13629   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13630 fi
13631
13632 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13633   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13634 fi
13635 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13636   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13637 fi
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13731 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13732 hardcode_action=
13733 if test -n "$hardcode_libdir_flag_spec" ||
13734    test -n "$runpath_var" ||
13735    test "X$hardcode_automatic" = "Xyes" ; then
13736
13737   # We can hardcode non-existent directories.
13738   if test "$hardcode_direct" != no &&
13739      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13740      # have to relink, otherwise we might link with an installed library
13741      # when we should be linking with a yet-to-be-installed one
13742      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13743      test "$hardcode_minus_L" != no; then
13744     # Linking always hardcodes the temporary library directory.
13745     hardcode_action=relink
13746   else
13747     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13748     hardcode_action=immediate
13749   fi
13750 else
13751   # We cannot hardcode anything, or else we can only hardcode existing
13752   # directories.
13753   hardcode_action=unsupported
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13756 $as_echo "$hardcode_action" >&6; }
13757
13758 if test "$hardcode_action" = relink ||
13759    test "$inherit_rpath" = yes; then
13760   # Fast installation is not supported
13761   enable_fast_install=no
13762 elif test "$shlibpath_overrides_runpath" = yes ||
13763      test "$enable_shared" = no; then
13764   # Fast installation is not necessary
13765   enable_fast_install=needless
13766 fi
13767
13768
13769
13770
13771
13772
13773   if test "x$enable_dlopen" != xyes; then
13774   enable_dlopen=unknown
13775   enable_dlopen_self=unknown
13776   enable_dlopen_self_static=unknown
13777 else
13778   lt_cv_dlopen=no
13779   lt_cv_dlopen_libs=
13780
13781   case $host_os in
13782   beos*)
13783     lt_cv_dlopen="load_add_on"
13784     lt_cv_dlopen_libs=
13785     lt_cv_dlopen_self=yes
13786     ;;
13787
13788   mingw* | pw32* | cegcc*)
13789     lt_cv_dlopen="LoadLibrary"
13790     lt_cv_dlopen_libs=
13791     ;;
13792
13793   cygwin*)
13794     lt_cv_dlopen="dlopen"
13795     lt_cv_dlopen_libs=
13796     ;;
13797
13798   darwin*)
13799   # if libdl is installed we need to link against it
13800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13801 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13802 if ${ac_cv_lib_dl_dlopen+:} false; then :
13803   $as_echo_n "(cached) " >&6
13804 else
13805   ac_check_lib_save_LIBS=$LIBS
13806 LIBS="-ldl  $LIBS"
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h.  */
13809
13810 /* Override any GCC internal prototype to avoid an error.
13811    Use char because int might match the return type of a GCC
13812    builtin and then its argument prototype would still apply.  */
13813 #ifdef __cplusplus
13814 extern "C"
13815 #endif
13816 char dlopen ();
13817 int
13818 main ()
13819 {
13820 return dlopen ();
13821   ;
13822   return 0;
13823 }
13824 _ACEOF
13825 if ac_fn_c_try_link "$LINENO"; then :
13826   ac_cv_lib_dl_dlopen=yes
13827 else
13828   ac_cv_lib_dl_dlopen=no
13829 fi
13830 rm -f core conftest.err conftest.$ac_objext \
13831     conftest$ac_exeext conftest.$ac_ext
13832 LIBS=$ac_check_lib_save_LIBS
13833 fi
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13835 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13836 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13837   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13838 else
13839
13840     lt_cv_dlopen="dyld"
13841     lt_cv_dlopen_libs=
13842     lt_cv_dlopen_self=yes
13843
13844 fi
13845
13846     ;;
13847
13848   *)
13849     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13850 if test "x$ac_cv_func_shl_load" = xyes; then :
13851   lt_cv_dlopen="shl_load"
13852 else
13853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13854 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13855 if ${ac_cv_lib_dld_shl_load+:} false; then :
13856   $as_echo_n "(cached) " >&6
13857 else
13858   ac_check_lib_save_LIBS=$LIBS
13859 LIBS="-ldld  $LIBS"
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h.  */
13862
13863 /* Override any GCC internal prototype to avoid an error.
13864    Use char because int might match the return type of a GCC
13865    builtin and then its argument prototype would still apply.  */
13866 #ifdef __cplusplus
13867 extern "C"
13868 #endif
13869 char shl_load ();
13870 int
13871 main ()
13872 {
13873 return shl_load ();
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 if ac_fn_c_try_link "$LINENO"; then :
13879   ac_cv_lib_dld_shl_load=yes
13880 else
13881   ac_cv_lib_dld_shl_load=no
13882 fi
13883 rm -f core conftest.err conftest.$ac_objext \
13884     conftest$ac_exeext conftest.$ac_ext
13885 LIBS=$ac_check_lib_save_LIBS
13886 fi
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13888 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13889 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13890   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13891 else
13892   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13893 if test "x$ac_cv_func_dlopen" = xyes; then :
13894   lt_cv_dlopen="dlopen"
13895 else
13896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13898 if ${ac_cv_lib_dl_dlopen+:} false; then :
13899   $as_echo_n "(cached) " >&6
13900 else
13901   ac_check_lib_save_LIBS=$LIBS
13902 LIBS="-ldl  $LIBS"
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h.  */
13905
13906 /* Override any GCC internal prototype to avoid an error.
13907    Use char because int might match the return type of a GCC
13908    builtin and then its argument prototype would still apply.  */
13909 #ifdef __cplusplus
13910 extern "C"
13911 #endif
13912 char dlopen ();
13913 int
13914 main ()
13915 {
13916 return dlopen ();
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 if ac_fn_c_try_link "$LINENO"; then :
13922   ac_cv_lib_dl_dlopen=yes
13923 else
13924   ac_cv_lib_dl_dlopen=no
13925 fi
13926 rm -f core conftest.err conftest.$ac_objext \
13927     conftest$ac_exeext conftest.$ac_ext
13928 LIBS=$ac_check_lib_save_LIBS
13929 fi
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13932 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13933   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13934 else
13935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13936 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13937 if ${ac_cv_lib_svld_dlopen+:} false; then :
13938   $as_echo_n "(cached) " >&6
13939 else
13940   ac_check_lib_save_LIBS=$LIBS
13941 LIBS="-lsvld  $LIBS"
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h.  */
13944
13945 /* Override any GCC internal prototype to avoid an error.
13946    Use char because int might match the return type of a GCC
13947    builtin and then its argument prototype would still apply.  */
13948 #ifdef __cplusplus
13949 extern "C"
13950 #endif
13951 char dlopen ();
13952 int
13953 main ()
13954 {
13955 return dlopen ();
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 if ac_fn_c_try_link "$LINENO"; then :
13961   ac_cv_lib_svld_dlopen=yes
13962 else
13963   ac_cv_lib_svld_dlopen=no
13964 fi
13965 rm -f core conftest.err conftest.$ac_objext \
13966     conftest$ac_exeext conftest.$ac_ext
13967 LIBS=$ac_check_lib_save_LIBS
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13970 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13971 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13973 else
13974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13975 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13976 if ${ac_cv_lib_dld_dld_link+:} false; then :
13977   $as_echo_n "(cached) " >&6
13978 else
13979   ac_check_lib_save_LIBS=$LIBS
13980 LIBS="-ldld  $LIBS"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h.  */
13983
13984 /* Override any GCC internal prototype to avoid an error.
13985    Use char because int might match the return type of a GCC
13986    builtin and then its argument prototype would still apply.  */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 char dld_link ();
13991 int
13992 main ()
13993 {
13994 return dld_link ();
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000   ac_cv_lib_dld_dld_link=yes
14001 else
14002   ac_cv_lib_dld_dld_link=no
14003 fi
14004 rm -f core conftest.err conftest.$ac_objext \
14005     conftest$ac_exeext conftest.$ac_ext
14006 LIBS=$ac_check_lib_save_LIBS
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14009 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14010 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14011   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14012 fi
14013
14014
14015 fi
14016
14017
14018 fi
14019
14020
14021 fi
14022
14023
14024 fi
14025
14026
14027 fi
14028
14029     ;;
14030   esac
14031
14032   if test "x$lt_cv_dlopen" != xno; then
14033     enable_dlopen=yes
14034   else
14035     enable_dlopen=no
14036   fi
14037
14038   case $lt_cv_dlopen in
14039   dlopen)
14040     save_CPPFLAGS="$CPPFLAGS"
14041     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14042
14043     save_LDFLAGS="$LDFLAGS"
14044     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14045
14046     save_LIBS="$LIBS"
14047     LIBS="$lt_cv_dlopen_libs $LIBS"
14048
14049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14050 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14051 if ${lt_cv_dlopen_self+:} false; then :
14052   $as_echo_n "(cached) " >&6
14053 else
14054           if test "$cross_compiling" = yes; then :
14055   lt_cv_dlopen_self=cross
14056 else
14057   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14058   lt_status=$lt_dlunknown
14059   cat > conftest.$ac_ext <<_LT_EOF
14060 #line $LINENO "configure"
14061 #include "confdefs.h"
14062
14063 #if HAVE_DLFCN_H
14064 #include <dlfcn.h>
14065 #endif
14066
14067 #include <stdio.h>
14068
14069 #ifdef RTLD_GLOBAL
14070 #  define LT_DLGLOBAL           RTLD_GLOBAL
14071 #else
14072 #  ifdef DL_GLOBAL
14073 #    define LT_DLGLOBAL         DL_GLOBAL
14074 #  else
14075 #    define LT_DLGLOBAL         0
14076 #  endif
14077 #endif
14078
14079 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14080    find out it does not work in some platform. */
14081 #ifndef LT_DLLAZY_OR_NOW
14082 #  ifdef RTLD_LAZY
14083 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14084 #  else
14085 #    ifdef DL_LAZY
14086 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14087 #    else
14088 #      ifdef RTLD_NOW
14089 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14090 #      else
14091 #        ifdef DL_NOW
14092 #          define LT_DLLAZY_OR_NOW      DL_NOW
14093 #        else
14094 #          define LT_DLLAZY_OR_NOW      0
14095 #        endif
14096 #      endif
14097 #    endif
14098 #  endif
14099 #endif
14100
14101 /* When -fvisbility=hidden is used, assume the code has been annotated
14102    correspondingly for the symbols needed.  */
14103 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14104 int fnord () __attribute__((visibility("default")));
14105 #endif
14106
14107 int fnord () { return 42; }
14108 int main ()
14109 {
14110   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14111   int status = $lt_dlunknown;
14112
14113   if (self)
14114     {
14115       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14116       else
14117         {
14118           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14119           else puts (dlerror ());
14120         }
14121       /* dlclose (self); */
14122     }
14123   else
14124     puts (dlerror ());
14125
14126   return status;
14127 }
14128 _LT_EOF
14129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14130   (eval $ac_link) 2>&5
14131   ac_status=$?
14132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14133   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14134     (./conftest; exit; ) >&5 2>/dev/null
14135     lt_status=$?
14136     case x$lt_status in
14137       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14138       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14139       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14140     esac
14141   else :
14142     # compilation failed
14143     lt_cv_dlopen_self=no
14144   fi
14145 fi
14146 rm -fr conftest*
14147
14148
14149 fi
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14151 $as_echo "$lt_cv_dlopen_self" >&6; }
14152
14153     if test "x$lt_cv_dlopen_self" = xyes; then
14154       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14155       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14156 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14157 if ${lt_cv_dlopen_self_static+:} false; then :
14158   $as_echo_n "(cached) " >&6
14159 else
14160           if test "$cross_compiling" = yes; then :
14161   lt_cv_dlopen_self_static=cross
14162 else
14163   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14164   lt_status=$lt_dlunknown
14165   cat > conftest.$ac_ext <<_LT_EOF
14166 #line $LINENO "configure"
14167 #include "confdefs.h"
14168
14169 #if HAVE_DLFCN_H
14170 #include <dlfcn.h>
14171 #endif
14172
14173 #include <stdio.h>
14174
14175 #ifdef RTLD_GLOBAL
14176 #  define LT_DLGLOBAL           RTLD_GLOBAL
14177 #else
14178 #  ifdef DL_GLOBAL
14179 #    define LT_DLGLOBAL         DL_GLOBAL
14180 #  else
14181 #    define LT_DLGLOBAL         0
14182 #  endif
14183 #endif
14184
14185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14186    find out it does not work in some platform. */
14187 #ifndef LT_DLLAZY_OR_NOW
14188 #  ifdef RTLD_LAZY
14189 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14190 #  else
14191 #    ifdef DL_LAZY
14192 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14193 #    else
14194 #      ifdef RTLD_NOW
14195 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14196 #      else
14197 #        ifdef DL_NOW
14198 #          define LT_DLLAZY_OR_NOW      DL_NOW
14199 #        else
14200 #          define LT_DLLAZY_OR_NOW      0
14201 #        endif
14202 #      endif
14203 #    endif
14204 #  endif
14205 #endif
14206
14207 /* When -fvisbility=hidden is used, assume the code has been annotated
14208    correspondingly for the symbols needed.  */
14209 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14210 int fnord () __attribute__((visibility("default")));
14211 #endif
14212
14213 int fnord () { return 42; }
14214 int main ()
14215 {
14216   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14217   int status = $lt_dlunknown;
14218
14219   if (self)
14220     {
14221       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14222       else
14223         {
14224           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14225           else puts (dlerror ());
14226         }
14227       /* dlclose (self); */
14228     }
14229   else
14230     puts (dlerror ());
14231
14232   return status;
14233 }
14234 _LT_EOF
14235   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14236   (eval $ac_link) 2>&5
14237   ac_status=$?
14238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14240     (./conftest; exit; ) >&5 2>/dev/null
14241     lt_status=$?
14242     case x$lt_status in
14243       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14244       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14245       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14246     esac
14247   else :
14248     # compilation failed
14249     lt_cv_dlopen_self_static=no
14250   fi
14251 fi
14252 rm -fr conftest*
14253
14254
14255 fi
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14257 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14258     fi
14259
14260     CPPFLAGS="$save_CPPFLAGS"
14261     LDFLAGS="$save_LDFLAGS"
14262     LIBS="$save_LIBS"
14263     ;;
14264   esac
14265
14266   case $lt_cv_dlopen_self in
14267   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14268   *) enable_dlopen_self=unknown ;;
14269   esac
14270
14271   case $lt_cv_dlopen_self_static in
14272   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14273   *) enable_dlopen_self_static=unknown ;;
14274   esac
14275 fi
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293 striplib=
14294 old_striplib=
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14296 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14297 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14298   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14299   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14301 $as_echo "yes" >&6; }
14302 else
14303 # FIXME - insert some real tests, host_os isn't really good enough
14304   case $host_os in
14305   darwin*)
14306     if test -n "$STRIP" ; then
14307       striplib="$STRIP -x"
14308       old_striplib="$STRIP -S"
14309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310 $as_echo "yes" >&6; }
14311     else
14312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14314     fi
14315     ;;
14316   *)
14317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319     ;;
14320   esac
14321 fi
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334   # Report which library types will actually be built
14335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14336 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14338 $as_echo "$can_build_shared" >&6; }
14339
14340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14341 $as_echo_n "checking whether to build shared libraries... " >&6; }
14342   test "$can_build_shared" = "no" && enable_shared=no
14343
14344   # On AIX, shared libraries and static libraries use the same namespace, and
14345   # are all built from PIC.
14346   case $host_os in
14347   aix3*)
14348     test "$enable_shared" = yes && enable_static=no
14349     if test -n "$RANLIB"; then
14350       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14351       postinstall_cmds='$RANLIB $lib'
14352     fi
14353     ;;
14354
14355   aix[4-9]*)
14356     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14357       test "$enable_shared" = yes && enable_static=no
14358     fi
14359     ;;
14360   esac
14361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14362 $as_echo "$enable_shared" >&6; }
14363
14364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14365 $as_echo_n "checking whether to build static libraries... " >&6; }
14366   # Make sure either enable_shared or enable_static is yes.
14367   test "$enable_shared" = yes || enable_static=yes
14368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14369 $as_echo "$enable_static" >&6; }
14370
14371
14372
14373
14374 fi
14375 ac_ext=c
14376 ac_cpp='$CPP $CPPFLAGS'
14377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14380
14381 CC="$lt_save_CC"
14382
14383       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14384     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14385     (test "X$CXX" != "Xg++"))) ; then
14386   ac_ext=cpp
14387 ac_cpp='$CXXCPP $CPPFLAGS'
14388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14392 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14393 if test -z "$CXXCPP"; then
14394   if ${ac_cv_prog_CXXCPP+:} false; then :
14395   $as_echo_n "(cached) " >&6
14396 else
14397       # Double quotes because CXXCPP needs to be expanded
14398     for CXXCPP in "$CXX -E" "/lib/cpp"
14399     do
14400       ac_preproc_ok=false
14401 for ac_cxx_preproc_warn_flag in '' yes
14402 do
14403   # Use a header file that comes with gcc, so configuring glibc
14404   # with a fresh cross-compiler works.
14405   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14406   # <limits.h> exists even on freestanding compilers.
14407   # On the NeXT, cc -E runs the code through the compiler's parser,
14408   # not just through cpp. "Syntax error" is here to catch this case.
14409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h.  */
14411 #ifdef __STDC__
14412 # include <limits.h>
14413 #else
14414 # include <assert.h>
14415 #endif
14416                      Syntax error
14417 _ACEOF
14418 if ac_fn_cxx_try_cpp "$LINENO"; then :
14419
14420 else
14421   # Broken: fails on valid input.
14422 continue
14423 fi
14424 rm -f conftest.err conftest.i conftest.$ac_ext
14425
14426   # OK, works on sane cases.  Now check whether nonexistent headers
14427   # can be detected and how.
14428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h.  */
14430 #include <ac_nonexistent.h>
14431 _ACEOF
14432 if ac_fn_cxx_try_cpp "$LINENO"; then :
14433   # Broken: success on invalid input.
14434 continue
14435 else
14436   # Passes both tests.
14437 ac_preproc_ok=:
14438 break
14439 fi
14440 rm -f conftest.err conftest.i conftest.$ac_ext
14441
14442 done
14443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14444 rm -f conftest.i conftest.err conftest.$ac_ext
14445 if $ac_preproc_ok; then :
14446   break
14447 fi
14448
14449     done
14450     ac_cv_prog_CXXCPP=$CXXCPP
14451
14452 fi
14453   CXXCPP=$ac_cv_prog_CXXCPP
14454 else
14455   ac_cv_prog_CXXCPP=$CXXCPP
14456 fi
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14458 $as_echo "$CXXCPP" >&6; }
14459 ac_preproc_ok=false
14460 for ac_cxx_preproc_warn_flag in '' yes
14461 do
14462   # Use a header file that comes with gcc, so configuring glibc
14463   # with a fresh cross-compiler works.
14464   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14465   # <limits.h> exists even on freestanding compilers.
14466   # On the NeXT, cc -E runs the code through the compiler's parser,
14467   # not just through cpp. "Syntax error" is here to catch this case.
14468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h.  */
14470 #ifdef __STDC__
14471 # include <limits.h>
14472 #else
14473 # include <assert.h>
14474 #endif
14475                      Syntax error
14476 _ACEOF
14477 if ac_fn_cxx_try_cpp "$LINENO"; then :
14478
14479 else
14480   # Broken: fails on valid input.
14481 continue
14482 fi
14483 rm -f conftest.err conftest.i conftest.$ac_ext
14484
14485   # OK, works on sane cases.  Now check whether nonexistent headers
14486   # can be detected and how.
14487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h.  */
14489 #include <ac_nonexistent.h>
14490 _ACEOF
14491 if ac_fn_cxx_try_cpp "$LINENO"; then :
14492   # Broken: success on invalid input.
14493 continue
14494 else
14495   # Passes both tests.
14496 ac_preproc_ok=:
14497 break
14498 fi
14499 rm -f conftest.err conftest.i conftest.$ac_ext
14500
14501 done
14502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14503 rm -f conftest.i conftest.err conftest.$ac_ext
14504 if $ac_preproc_ok; then :
14505
14506 else
14507   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14509 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14510 See \`config.log' for more details" "$LINENO" 5; }
14511 fi
14512
14513 ac_ext=c
14514 ac_cpp='$CPP $CPPFLAGS'
14515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14518
14519 else
14520   _lt_caught_CXX_error=yes
14521 fi
14522
14523 ac_ext=cpp
14524 ac_cpp='$CXXCPP $CPPFLAGS'
14525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14528
14529 archive_cmds_need_lc_CXX=no
14530 allow_undefined_flag_CXX=
14531 always_export_symbols_CXX=no
14532 archive_expsym_cmds_CXX=
14533 compiler_needs_object_CXX=no
14534 export_dynamic_flag_spec_CXX=
14535 hardcode_direct_CXX=no
14536 hardcode_direct_absolute_CXX=no
14537 hardcode_libdir_flag_spec_CXX=
14538 hardcode_libdir_separator_CXX=
14539 hardcode_minus_L_CXX=no
14540 hardcode_shlibpath_var_CXX=unsupported
14541 hardcode_automatic_CXX=no
14542 inherit_rpath_CXX=no
14543 module_cmds_CXX=
14544 module_expsym_cmds_CXX=
14545 link_all_deplibs_CXX=unknown
14546 old_archive_cmds_CXX=$old_archive_cmds
14547 reload_flag_CXX=$reload_flag
14548 reload_cmds_CXX=$reload_cmds
14549 no_undefined_flag_CXX=
14550 whole_archive_flag_spec_CXX=
14551 enable_shared_with_static_runtimes_CXX=no
14552
14553 # Source file extension for C++ test sources.
14554 ac_ext=cpp
14555
14556 # Object file extension for compiled C++ test sources.
14557 objext=o
14558 objext_CXX=$objext
14559
14560 # No sense in running all these tests if we already determined that
14561 # the CXX compiler isn't working.  Some variables (like enable_shared)
14562 # are currently assumed to apply to all compilers on this platform,
14563 # and will be corrupted by setting them based on a non-working compiler.
14564 if test "$_lt_caught_CXX_error" != yes; then
14565   # Code to be used in simple compile tests
14566   lt_simple_compile_test_code="int some_variable = 0;"
14567
14568   # Code to be used in simple link tests
14569   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14570
14571   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14572
14573
14574
14575
14576
14577
14578 # If no C compiler was specified, use CC.
14579 LTCC=${LTCC-"$CC"}
14580
14581 # If no C compiler flags were specified, use CFLAGS.
14582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14583
14584 # Allow CC to be a program name with arguments.
14585 compiler=$CC
14586
14587
14588   # save warnings/boilerplate of simple test code
14589   ac_outfile=conftest.$ac_objext
14590 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14591 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14592 _lt_compiler_boilerplate=`cat conftest.err`
14593 $RM conftest*
14594
14595   ac_outfile=conftest.$ac_objext
14596 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14597 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14598 _lt_linker_boilerplate=`cat conftest.err`
14599 $RM -r conftest*
14600
14601
14602   # Allow CC to be a program name with arguments.
14603   lt_save_CC=$CC
14604   lt_save_CFLAGS=$CFLAGS
14605   lt_save_LD=$LD
14606   lt_save_GCC=$GCC
14607   GCC=$GXX
14608   lt_save_with_gnu_ld=$with_gnu_ld
14609   lt_save_path_LD=$lt_cv_path_LD
14610   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14611     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14612   else
14613     $as_unset lt_cv_prog_gnu_ld
14614   fi
14615   if test -n "${lt_cv_path_LDCXX+set}"; then
14616     lt_cv_path_LD=$lt_cv_path_LDCXX
14617   else
14618     $as_unset lt_cv_path_LD
14619   fi
14620   test -z "${LDCXX+set}" || LD=$LDCXX
14621   CC=${CXX-"c++"}
14622   CFLAGS=$CXXFLAGS
14623   compiler=$CC
14624   compiler_CXX=$CC
14625   for cc_temp in $compiler""; do
14626   case $cc_temp in
14627     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14628     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14629     \-*) ;;
14630     *) break;;
14631   esac
14632 done
14633 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14634
14635
14636   if test -n "$compiler"; then
14637     # We don't want -fno-exception when compiling C++ code, so set the
14638     # no_builtin_flag separately
14639     if test "$GXX" = yes; then
14640       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14641     else
14642       lt_prog_compiler_no_builtin_flag_CXX=
14643     fi
14644
14645     if test "$GXX" = yes; then
14646       # Set up default GNU C++ configuration
14647
14648
14649
14650 # Check whether --with-gnu-ld was given.
14651 if test "${with_gnu_ld+set}" = set; then :
14652   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14653 else
14654   with_gnu_ld=no
14655 fi
14656
14657 ac_prog=ld
14658 if test "$GCC" = yes; then
14659   # Check if gcc -print-prog-name=ld gives a path.
14660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14661 $as_echo_n "checking for ld used by $CC... " >&6; }
14662   case $host in
14663   *-*-mingw*)
14664     # gcc leaves a trailing carriage return which upsets mingw
14665     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14666   *)
14667     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14668   esac
14669   case $ac_prog in
14670     # Accept absolute paths.
14671     [\\/]* | ?:[\\/]*)
14672       re_direlt='/[^/][^/]*/\.\./'
14673       # Canonicalize the pathname of ld
14674       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14675       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14676         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14677       done
14678       test -z "$LD" && LD="$ac_prog"
14679       ;;
14680   "")
14681     # If it fails, then pretend we aren't using GCC.
14682     ac_prog=ld
14683     ;;
14684   *)
14685     # If it is relative, then search for the first ld in PATH.
14686     with_gnu_ld=unknown
14687     ;;
14688   esac
14689 elif test "$with_gnu_ld" = yes; then
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14691 $as_echo_n "checking for GNU ld... " >&6; }
14692 else
14693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14694 $as_echo_n "checking for non-GNU ld... " >&6; }
14695 fi
14696 if ${lt_cv_path_LD+:} false; then :
14697   $as_echo_n "(cached) " >&6
14698 else
14699   if test -z "$LD"; then
14700   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14701   for ac_dir in $PATH; do
14702     IFS="$lt_save_ifs"
14703     test -z "$ac_dir" && ac_dir=.
14704     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14705       lt_cv_path_LD="$ac_dir/$ac_prog"
14706       # Check to see if the program is GNU ld.  I'd rather use --version,
14707       # but apparently some variants of GNU ld only accept -v.
14708       # Break only if it was the GNU/non-GNU ld that we prefer.
14709       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14710       *GNU* | *'with BFD'*)
14711         test "$with_gnu_ld" != no && break
14712         ;;
14713       *)
14714         test "$with_gnu_ld" != yes && break
14715         ;;
14716       esac
14717     fi
14718   done
14719   IFS="$lt_save_ifs"
14720 else
14721   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14722 fi
14723 fi
14724
14725 LD="$lt_cv_path_LD"
14726 if test -n "$LD"; then
14727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14728 $as_echo "$LD" >&6; }
14729 else
14730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14732 fi
14733 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14736 if ${lt_cv_prog_gnu_ld+:} false; then :
14737   $as_echo_n "(cached) " >&6
14738 else
14739   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14740 case `$LD -v 2>&1 </dev/null` in
14741 *GNU* | *'with BFD'*)
14742   lt_cv_prog_gnu_ld=yes
14743   ;;
14744 *)
14745   lt_cv_prog_gnu_ld=no
14746   ;;
14747 esac
14748 fi
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14751 with_gnu_ld=$lt_cv_prog_gnu_ld
14752
14753
14754
14755
14756
14757
14758
14759       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14760       # archiving commands below assume that GNU ld is being used.
14761       if test "$with_gnu_ld" = yes; then
14762         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763         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'
14764
14765         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14766         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14767
14768         # If archive_cmds runs LD, not CC, wlarc should be empty
14769         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14770         #     investigate it a little bit more. (MM)
14771         wlarc='${wl}'
14772
14773         # ancient GNU ld didn't support --whole-archive et. al.
14774         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14775           $GREP 'no-whole-archive' > /dev/null; then
14776           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14777         else
14778           whole_archive_flag_spec_CXX=
14779         fi
14780       else
14781         with_gnu_ld=no
14782         wlarc=
14783
14784         # A generic and very simple default shared library creation
14785         # command for GNU C++ for the case where it uses the native
14786         # linker, instead of GNU ld.  If possible, this setting should
14787         # overridden to take advantage of the native linker features on
14788         # the platform it is being used on.
14789         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14790       fi
14791
14792       # Commands to make compiler produce verbose output that lists
14793       # what "hidden" libraries, object files and flags are used when
14794       # linking a shared library.
14795       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14796
14797     else
14798       GXX=no
14799       with_gnu_ld=no
14800       wlarc=
14801     fi
14802
14803     # PORTME: fill in a description of your system's C++ link characteristics
14804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14806     ld_shlibs_CXX=yes
14807     case $host_os in
14808       aix3*)
14809         # FIXME: insert proper C++ library support
14810         ld_shlibs_CXX=no
14811         ;;
14812       aix[4-9]*)
14813         if test "$host_cpu" = ia64; then
14814           # On IA64, the linker does run time linking by default, so we don't
14815           # have to do anything special.
14816           aix_use_runtimelinking=no
14817           exp_sym_flag='-Bexport'
14818           no_entry_flag=""
14819         else
14820           aix_use_runtimelinking=no
14821
14822           # Test if we are trying to use run time linking or normal
14823           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14824           # need to do runtime linking.
14825           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14826             for ld_flag in $LDFLAGS; do
14827               case $ld_flag in
14828               *-brtl*)
14829                 aix_use_runtimelinking=yes
14830                 break
14831                 ;;
14832               esac
14833             done
14834             ;;
14835           esac
14836
14837           exp_sym_flag='-bexport'
14838           no_entry_flag='-bnoentry'
14839         fi
14840
14841         # When large executables or shared objects are built, AIX ld can
14842         # have problems creating the table of contents.  If linking a library
14843         # or program results in "error TOC overflow" add -mminimal-toc to
14844         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14845         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14846
14847         archive_cmds_CXX=''
14848         hardcode_direct_CXX=yes
14849         hardcode_direct_absolute_CXX=yes
14850         hardcode_libdir_separator_CXX=':'
14851         link_all_deplibs_CXX=yes
14852         file_list_spec_CXX='${wl}-f,'
14853
14854         if test "$GXX" = yes; then
14855           case $host_os in aix4.[012]|aix4.[012].*)
14856           # We only want to do this on AIX 4.2 and lower, the check
14857           # below for broken collect2 doesn't work under 4.3+
14858           collect2name=`${CC} -print-prog-name=collect2`
14859           if test -f "$collect2name" &&
14860              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14861           then
14862             # We have reworked collect2
14863             :
14864           else
14865             # We have old collect2
14866             hardcode_direct_CXX=unsupported
14867             # It fails to find uninstalled libraries when the uninstalled
14868             # path is not listed in the libpath.  Setting hardcode_minus_L
14869             # to unsupported forces relinking
14870             hardcode_minus_L_CXX=yes
14871             hardcode_libdir_flag_spec_CXX='-L$libdir'
14872             hardcode_libdir_separator_CXX=
14873           fi
14874           esac
14875           shared_flag='-shared'
14876           if test "$aix_use_runtimelinking" = yes; then
14877             shared_flag="$shared_flag "'${wl}-G'
14878           fi
14879         else
14880           # not using gcc
14881           if test "$host_cpu" = ia64; then
14882           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14883           # chokes on -Wl,-G. The following line is correct:
14884           shared_flag='-G'
14885           else
14886             if test "$aix_use_runtimelinking" = yes; then
14887               shared_flag='${wl}-G'
14888             else
14889               shared_flag='${wl}-bM:SRE'
14890             fi
14891           fi
14892         fi
14893
14894         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14895         # It seems that -bexpall does not export symbols beginning with
14896         # underscore (_), so it is better to generate a list of symbols to
14897         # export.
14898         always_export_symbols_CXX=yes
14899         if test "$aix_use_runtimelinking" = yes; then
14900           # Warning - without using the other runtime loading flags (-brtl),
14901           # -berok will link without error, but may produce a broken library.
14902           allow_undefined_flag_CXX='-berok'
14903           # Determine the default libpath from the value encoded in an empty
14904           # executable.
14905           if test "${lt_cv_aix_libpath+set}" = set; then
14906   aix_libpath=$lt_cv_aix_libpath
14907 else
14908   if ${lt_cv_aix_libpath__CXX+:} false; then :
14909   $as_echo_n "(cached) " >&6
14910 else
14911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h.  */
14913
14914 int
14915 main ()
14916 {
14917
14918   ;
14919   return 0;
14920 }
14921 _ACEOF
14922 if ac_fn_cxx_try_link "$LINENO"; then :
14923
14924   lt_aix_libpath_sed='
14925       /Import File Strings/,/^$/ {
14926           /^0/ {
14927               s/^0  *\([^ ]*\) *$/\1/
14928               p
14929           }
14930       }'
14931   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14932   # Check for a 64-bit object if we didn't find anything.
14933   if test -z "$lt_cv_aix_libpath__CXX"; then
14934     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14935   fi
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext \
14938     conftest$ac_exeext conftest.$ac_ext
14939   if test -z "$lt_cv_aix_libpath__CXX"; then
14940     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14941   fi
14942
14943 fi
14944
14945   aix_libpath=$lt_cv_aix_libpath__CXX
14946 fi
14947
14948           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14949
14950           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"
14951         else
14952           if test "$host_cpu" = ia64; then
14953             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14954             allow_undefined_flag_CXX="-z nodefs"
14955             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"
14956           else
14957             # Determine the default libpath from the value encoded in an
14958             # empty executable.
14959             if test "${lt_cv_aix_libpath+set}" = set; then
14960   aix_libpath=$lt_cv_aix_libpath
14961 else
14962   if ${lt_cv_aix_libpath__CXX+:} false; then :
14963   $as_echo_n "(cached) " >&6
14964 else
14965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h.  */
14967
14968 int
14969 main ()
14970 {
14971
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 if ac_fn_cxx_try_link "$LINENO"; then :
14977
14978   lt_aix_libpath_sed='
14979       /Import File Strings/,/^$/ {
14980           /^0/ {
14981               s/^0  *\([^ ]*\) *$/\1/
14982               p
14983           }
14984       }'
14985   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14986   # Check for a 64-bit object if we didn't find anything.
14987   if test -z "$lt_cv_aix_libpath__CXX"; then
14988     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14989   fi
14990 fi
14991 rm -f core conftest.err conftest.$ac_objext \
14992     conftest$ac_exeext conftest.$ac_ext
14993   if test -z "$lt_cv_aix_libpath__CXX"; then
14994     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14995   fi
14996
14997 fi
14998
14999   aix_libpath=$lt_cv_aix_libpath__CXX
15000 fi
15001
15002             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15003             # Warning - without using the other run time loading flags,
15004             # -berok will link without error, but may produce a broken library.
15005             no_undefined_flag_CXX=' ${wl}-bernotok'
15006             allow_undefined_flag_CXX=' ${wl}-berok'
15007             if test "$with_gnu_ld" = yes; then
15008               # We only use this code for GNU lds that support --whole-archive.
15009               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15010             else
15011               # Exported symbols can be pulled into shared objects from archives
15012               whole_archive_flag_spec_CXX='$convenience'
15013             fi
15014             archive_cmds_need_lc_CXX=yes
15015             # This is similar to how AIX traditionally builds its shared
15016             # libraries.
15017             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'
15018           fi
15019         fi
15020         ;;
15021
15022       beos*)
15023         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15024           allow_undefined_flag_CXX=unsupported
15025           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15026           # support --undefined.  This deserves some investigation.  FIXME
15027           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15028         else
15029           ld_shlibs_CXX=no
15030         fi
15031         ;;
15032
15033       chorus*)
15034         case $cc_basename in
15035           *)
15036           # FIXME: insert proper C++ library support
15037           ld_shlibs_CXX=no
15038           ;;
15039         esac
15040         ;;
15041
15042       cygwin* | mingw* | pw32* | cegcc*)
15043         case $GXX,$cc_basename in
15044         ,cl* | no,cl*)
15045           # Native MSVC
15046           # hardcode_libdir_flag_spec is actually meaningless, as there is
15047           # no search path for DLLs.
15048           hardcode_libdir_flag_spec_CXX=' '
15049           allow_undefined_flag_CXX=unsupported
15050           always_export_symbols_CXX=yes
15051           file_list_spec_CXX='@'
15052           # Tell ltmain to make .lib files, not .a files.
15053           libext=lib
15054           # Tell ltmain to make .dll files, not .so files.
15055           shrext_cmds=".dll"
15056           # FIXME: Setting linknames here is a bad hack.
15057           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15058           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15059               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15060             else
15061               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15062             fi~
15063             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15064             linknames='
15065           # The linker will not automatically build a static lib if we build a DLL.
15066           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15067           enable_shared_with_static_runtimes_CXX=yes
15068           # Don't use ranlib
15069           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15070           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15071             lt_tool_outputfile="@TOOL_OUTPUT@"~
15072             case $lt_outputfile in
15073               *.exe|*.EXE) ;;
15074               *)
15075                 lt_outputfile="$lt_outputfile.exe"
15076                 lt_tool_outputfile="$lt_tool_outputfile.exe"
15077                 ;;
15078             esac~
15079             func_to_tool_file "$lt_outputfile"~
15080             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15081               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15082               $RM "$lt_outputfile.manifest";
15083             fi'
15084           ;;
15085         *)
15086           # g++
15087           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15088           # as there is no search path for DLLs.
15089           hardcode_libdir_flag_spec_CXX='-L$libdir'
15090           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15091           allow_undefined_flag_CXX=unsupported
15092           always_export_symbols_CXX=no
15093           enable_shared_with_static_runtimes_CXX=yes
15094
15095           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15096             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'
15097             # If the export-symbols file already is a .def file (1st line
15098             # is EXPORTS), use it as is; otherwise, prepend...
15099             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15100               cp $export_symbols $output_objdir/$soname.def;
15101             else
15102               echo EXPORTS > $output_objdir/$soname.def;
15103               cat $export_symbols >> $output_objdir/$soname.def;
15104             fi~
15105             $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'
15106           else
15107             ld_shlibs_CXX=no
15108           fi
15109           ;;
15110         esac
15111         ;;
15112       darwin* | rhapsody*)
15113
15114
15115   archive_cmds_need_lc_CXX=no
15116   hardcode_direct_CXX=no
15117   hardcode_automatic_CXX=yes
15118   hardcode_shlibpath_var_CXX=unsupported
15119   if test "$lt_cv_ld_force_load" = "yes"; then
15120     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\"`'
15121
15122   else
15123     whole_archive_flag_spec_CXX=''
15124   fi
15125   link_all_deplibs_CXX=yes
15126   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15127   case $cc_basename in
15128      ifort*) _lt_dar_can_shared=yes ;;
15129      *) _lt_dar_can_shared=$GCC ;;
15130   esac
15131   if test "$_lt_dar_can_shared" = "yes"; then
15132     output_verbose_link_cmd=func_echo_all
15133     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}"
15134     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15135     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}"
15136     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}"
15137        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15138       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}"
15139       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}"
15140     fi
15141
15142   else
15143   ld_shlibs_CXX=no
15144   fi
15145
15146         ;;
15147
15148       dgux*)
15149         case $cc_basename in
15150           ec++*)
15151             # FIXME: insert proper C++ library support
15152             ld_shlibs_CXX=no
15153             ;;
15154           ghcx*)
15155             # Green Hills C++ Compiler
15156             # FIXME: insert proper C++ library support
15157             ld_shlibs_CXX=no
15158             ;;
15159           *)
15160             # FIXME: insert proper C++ library support
15161             ld_shlibs_CXX=no
15162             ;;
15163         esac
15164         ;;
15165
15166       freebsd2.*)
15167         # C++ shared libraries reported to be fairly broken before
15168         # switch to ELF
15169         ld_shlibs_CXX=no
15170         ;;
15171
15172       freebsd-elf*)
15173         archive_cmds_need_lc_CXX=no
15174         ;;
15175
15176       freebsd* | dragonfly*)
15177         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15178         # conventions
15179         ld_shlibs_CXX=yes
15180         ;;
15181
15182       gnu*)
15183         ;;
15184
15185       haiku*)
15186         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187         link_all_deplibs_CXX=yes
15188         ;;
15189
15190       hpux9*)
15191         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15192         hardcode_libdir_separator_CXX=:
15193         export_dynamic_flag_spec_CXX='${wl}-E'
15194         hardcode_direct_CXX=yes
15195         hardcode_minus_L_CXX=yes # Not in the search PATH,
15196                                              # but as the default
15197                                              # location of the library.
15198
15199         case $cc_basename in
15200           CC*)
15201             # FIXME: insert proper C++ library support
15202             ld_shlibs_CXX=no
15203             ;;
15204           aCC*)
15205             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'
15206             # Commands to make compiler produce verbose output that lists
15207             # what "hidden" libraries, object files and flags are used when
15208             # linking a shared library.
15209             #
15210             # There doesn't appear to be a way to prevent this compiler from
15211             # explicitly linking system object files so we need to strip them
15212             # from the output so that they don't get included in the library
15213             # dependencies.
15214             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"'
15215             ;;
15216           *)
15217             if test "$GXX" = yes; then
15218               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'
15219             else
15220               # FIXME: insert proper C++ library support
15221               ld_shlibs_CXX=no
15222             fi
15223             ;;
15224         esac
15225         ;;
15226
15227       hpux10*|hpux11*)
15228         if test $with_gnu_ld = no; then
15229           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15230           hardcode_libdir_separator_CXX=:
15231
15232           case $host_cpu in
15233             hppa*64*|ia64*)
15234               ;;
15235             *)
15236               export_dynamic_flag_spec_CXX='${wl}-E'
15237               ;;
15238           esac
15239         fi
15240         case $host_cpu in
15241           hppa*64*|ia64*)
15242             hardcode_direct_CXX=no
15243             hardcode_shlibpath_var_CXX=no
15244             ;;
15245           *)
15246             hardcode_direct_CXX=yes
15247             hardcode_direct_absolute_CXX=yes
15248             hardcode_minus_L_CXX=yes # Not in the search PATH,
15249                                                  # but as the default
15250                                                  # location of the library.
15251             ;;
15252         esac
15253
15254         case $cc_basename in
15255           CC*)
15256             # FIXME: insert proper C++ library support
15257             ld_shlibs_CXX=no
15258             ;;
15259           aCC*)
15260             case $host_cpu in
15261               hppa*64*)
15262                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15263                 ;;
15264               ia64*)
15265                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15266                 ;;
15267               *)
15268                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15269                 ;;
15270             esac
15271             # Commands to make compiler produce verbose output that lists
15272             # what "hidden" libraries, object files and flags are used when
15273             # linking a shared library.
15274             #
15275             # There doesn't appear to be a way to prevent this compiler from
15276             # explicitly linking system object files so we need to strip them
15277             # from the output so that they don't get included in the library
15278             # dependencies.
15279             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"'
15280             ;;
15281           *)
15282             if test "$GXX" = yes; then
15283               if test $with_gnu_ld = no; then
15284                 case $host_cpu in
15285                   hppa*64*)
15286                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15287                     ;;
15288                   ia64*)
15289                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15290                     ;;
15291                   *)
15292                     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'
15293                     ;;
15294                 esac
15295               fi
15296             else
15297               # FIXME: insert proper C++ library support
15298               ld_shlibs_CXX=no
15299             fi
15300             ;;
15301         esac
15302         ;;
15303
15304       interix[3-9]*)
15305         hardcode_direct_CXX=no
15306         hardcode_shlibpath_var_CXX=no
15307         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15308         export_dynamic_flag_spec_CXX='${wl}-E'
15309         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15310         # Instead, shared libraries are loaded at an image base (0x10000000 by
15311         # default) and relocated if they conflict, which is a slow very memory
15312         # consuming and fragmenting process.  To avoid this, we pick a random,
15313         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15314         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15315         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'
15316         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'
15317         ;;
15318       irix5* | irix6*)
15319         case $cc_basename in
15320           CC*)
15321             # SGI C++
15322             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'
15323
15324             # Archives containing C++ object files must be created using
15325             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15326             # necessary to make sure instantiated templates are included
15327             # in the archive.
15328             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15329             ;;
15330           *)
15331             if test "$GXX" = yes; then
15332               if test "$with_gnu_ld" = no; then
15333                 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'
15334               else
15335                 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'
15336               fi
15337             fi
15338             link_all_deplibs_CXX=yes
15339             ;;
15340         esac
15341         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15342         hardcode_libdir_separator_CXX=:
15343         inherit_rpath_CXX=yes
15344         ;;
15345
15346       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15347         case $cc_basename in
15348           KCC*)
15349             # Kuck and Associates, Inc. (KAI) C++ Compiler
15350
15351             # KCC will only create a shared library if the output file
15352             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15353             # to its proper name (with version) after linking.
15354             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'
15355             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'
15356             # Commands to make compiler produce verbose output that lists
15357             # what "hidden" libraries, object files and flags are used when
15358             # linking a shared library.
15359             #
15360             # There doesn't appear to be a way to prevent this compiler from
15361             # explicitly linking system object files so we need to strip them
15362             # from the output so that they don't get included in the library
15363             # dependencies.
15364             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"'
15365
15366             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15367             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15368
15369             # Archives containing C++ object files must be created using
15370             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15371             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15372             ;;
15373           icpc* | ecpc* )
15374             # Intel C++
15375             with_gnu_ld=yes
15376             # version 8.0 and above of icpc choke on multiply defined symbols
15377             # if we add $predep_objects and $postdep_objects, however 7.1 and
15378             # earlier do not add the objects themselves.
15379             case `$CC -V 2>&1` in
15380               *"Version 7."*)
15381                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15382                 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'
15383                 ;;
15384               *)  # Version 8.0 or newer
15385                 tmp_idyn=
15386                 case $host_cpu in
15387                   ia64*) tmp_idyn=' -i_dynamic';;
15388                 esac
15389                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15390                 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'
15391                 ;;
15392             esac
15393             archive_cmds_need_lc_CXX=no
15394             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15395             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15396             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15397             ;;
15398           pgCC* | pgcpp*)
15399             # Portland Group C++ compiler
15400             case `$CC -V` in
15401             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15402               prelink_cmds_CXX='tpldir=Template.dir~
15403                 rm -rf $tpldir~
15404                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15405                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15406               old_archive_cmds_CXX='tpldir=Template.dir~
15407                 rm -rf $tpldir~
15408                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15409                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15410                 $RANLIB $oldlib'
15411               archive_cmds_CXX='tpldir=Template.dir~
15412                 rm -rf $tpldir~
15413                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15414                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15415               archive_expsym_cmds_CXX='tpldir=Template.dir~
15416                 rm -rf $tpldir~
15417                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15418                 $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'
15419               ;;
15420             *) # Version 6 and above use weak symbols
15421               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15422               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'
15423               ;;
15424             esac
15425
15426             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15427             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15428             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'
15429             ;;
15430           cxx*)
15431             # Compaq C++
15432             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15433             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'
15434
15435             runpath_var=LD_RUN_PATH
15436             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15437             hardcode_libdir_separator_CXX=:
15438
15439             # Commands to make compiler produce verbose output that lists
15440             # what "hidden" libraries, object files and flags are used when
15441             # linking a shared library.
15442             #
15443             # There doesn't appear to be a way to prevent this compiler from
15444             # explicitly linking system object files so we need to strip them
15445             # from the output so that they don't get included in the library
15446             # dependencies.
15447             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'
15448             ;;
15449           xl* | mpixl* | bgxl*)
15450             # IBM XL 8.0 on PPC, with GNU ld
15451             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15452             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15453             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15454             if test "x$supports_anon_versioning" = xyes; then
15455               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15456                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15457                 echo "local: *; };" >> $output_objdir/$libname.ver~
15458                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15459             fi
15460             ;;
15461           *)
15462             case `$CC -V 2>&1 | sed 5q` in
15463             *Sun\ C*)
15464               # Sun C++ 5.9
15465               no_undefined_flag_CXX=' -zdefs'
15466               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15467               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'
15468               hardcode_libdir_flag_spec_CXX='-R$libdir'
15469               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'
15470               compiler_needs_object_CXX=yes
15471
15472               # Not sure whether something based on
15473               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15474               # would be better.
15475               output_verbose_link_cmd='func_echo_all'
15476
15477               # Archives containing C++ object files must be created using
15478               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15479               # necessary to make sure instantiated templates are included
15480               # in the archive.
15481               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15482               ;;
15483             esac
15484             ;;
15485         esac
15486         ;;
15487
15488       lynxos*)
15489         # FIXME: insert proper C++ library support
15490         ld_shlibs_CXX=no
15491         ;;
15492
15493       m88k*)
15494         # FIXME: insert proper C++ library support
15495         ld_shlibs_CXX=no
15496         ;;
15497
15498       mvs*)
15499         case $cc_basename in
15500           cxx*)
15501             # FIXME: insert proper C++ library support
15502             ld_shlibs_CXX=no
15503             ;;
15504           *)
15505             # FIXME: insert proper C++ library support
15506             ld_shlibs_CXX=no
15507             ;;
15508         esac
15509         ;;
15510
15511       netbsd*)
15512         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15513           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15514           wlarc=
15515           hardcode_libdir_flag_spec_CXX='-R$libdir'
15516           hardcode_direct_CXX=yes
15517           hardcode_shlibpath_var_CXX=no
15518         fi
15519         # Workaround some broken pre-1.5 toolchains
15520         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15521         ;;
15522
15523       *nto* | *qnx*)
15524         ld_shlibs_CXX=yes
15525         ;;
15526
15527       openbsd2*)
15528         # C++ shared libraries are fairly broken
15529         ld_shlibs_CXX=no
15530         ;;
15531
15532       openbsd*)
15533         if test -f /usr/libexec/ld.so; then
15534           hardcode_direct_CXX=yes
15535           hardcode_shlibpath_var_CXX=no
15536           hardcode_direct_absolute_CXX=yes
15537           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15538           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15539           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15541             export_dynamic_flag_spec_CXX='${wl}-E'
15542             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15543           fi
15544           output_verbose_link_cmd=func_echo_all
15545         else
15546           ld_shlibs_CXX=no
15547         fi
15548         ;;
15549
15550       osf3* | osf4* | osf5*)
15551         case $cc_basename in
15552           KCC*)
15553             # Kuck and Associates, Inc. (KAI) C++ Compiler
15554
15555             # KCC will only create a shared library if the output file
15556             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15557             # to its proper name (with version) after linking.
15558             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'
15559
15560             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15561             hardcode_libdir_separator_CXX=:
15562
15563             # Archives containing C++ object files must be created using
15564             # the KAI C++ compiler.
15565             case $host in
15566               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15567               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15568             esac
15569             ;;
15570           RCC*)
15571             # Rational C++ 2.4.1
15572             # FIXME: insert proper C++ library support
15573             ld_shlibs_CXX=no
15574             ;;
15575           cxx*)
15576             case $host in
15577               osf3*)
15578                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15579                 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'
15580                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15581                 ;;
15582               *)
15583                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15584                 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'
15585                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15586                   echo "-hidden">> $lib.exp~
15587                   $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~
15588                   $RM $lib.exp'
15589                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15590                 ;;
15591             esac
15592
15593             hardcode_libdir_separator_CXX=:
15594
15595             # Commands to make compiler produce verbose output that lists
15596             # what "hidden" libraries, object files and flags are used when
15597             # linking a shared library.
15598             #
15599             # There doesn't appear to be a way to prevent this compiler from
15600             # explicitly linking system object files so we need to strip them
15601             # from the output so that they don't get included in the library
15602             # dependencies.
15603             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"'
15604             ;;
15605           *)
15606             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15607               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15608               case $host in
15609                 osf3*)
15610                   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'
15611                   ;;
15612                 *)
15613                   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'
15614                   ;;
15615               esac
15616
15617               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15618               hardcode_libdir_separator_CXX=:
15619
15620               # Commands to make compiler produce verbose output that lists
15621               # what "hidden" libraries, object files and flags are used when
15622               # linking a shared library.
15623               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15624
15625             else
15626               # FIXME: insert proper C++ library support
15627               ld_shlibs_CXX=no
15628             fi
15629             ;;
15630         esac
15631         ;;
15632
15633       psos*)
15634         # FIXME: insert proper C++ library support
15635         ld_shlibs_CXX=no
15636         ;;
15637
15638       sunos4*)
15639         case $cc_basename in
15640           CC*)
15641             # Sun C++ 4.x
15642             # FIXME: insert proper C++ library support
15643             ld_shlibs_CXX=no
15644             ;;
15645           lcc*)
15646             # Lucid
15647             # FIXME: insert proper C++ library support
15648             ld_shlibs_CXX=no
15649             ;;
15650           *)
15651             # FIXME: insert proper C++ library support
15652             ld_shlibs_CXX=no
15653             ;;
15654         esac
15655         ;;
15656
15657       solaris*)
15658         case $cc_basename in
15659           CC* | sunCC*)
15660             # Sun C++ 4.2, 5.x and Centerline C++
15661             archive_cmds_need_lc_CXX=yes
15662             no_undefined_flag_CXX=' -zdefs'
15663             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15664             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15665               $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'
15666
15667             hardcode_libdir_flag_spec_CXX='-R$libdir'
15668             hardcode_shlibpath_var_CXX=no
15669             case $host_os in
15670               solaris2.[0-5] | solaris2.[0-5].*) ;;
15671               *)
15672                 # The compiler driver will combine and reorder linker options,
15673                 # but understands `-z linker_flag'.
15674                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15675                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15676                 ;;
15677             esac
15678             link_all_deplibs_CXX=yes
15679
15680             output_verbose_link_cmd='func_echo_all'
15681
15682             # Archives containing C++ object files must be created using
15683             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15684             # necessary to make sure instantiated templates are included
15685             # in the archive.
15686             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15687             ;;
15688           gcx*)
15689             # Green Hills C++ Compiler
15690             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15691
15692             # The C++ compiler must be used to create the archive.
15693             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15694             ;;
15695           *)
15696             # GNU C++ compiler with Solaris linker
15697             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15698               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15699               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15700                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15701                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15702                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15703
15704                 # Commands to make compiler produce verbose output that lists
15705                 # what "hidden" libraries, object files and flags are used when
15706                 # linking a shared library.
15707                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15708               else
15709                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15710                 # platform.
15711                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15712                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15713                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15714
15715                 # Commands to make compiler produce verbose output that lists
15716                 # what "hidden" libraries, object files and flags are used when
15717                 # linking a shared library.
15718                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15719               fi
15720
15721               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15722               case $host_os in
15723                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15724                 *)
15725                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15726                   ;;
15727               esac
15728             fi
15729             ;;
15730         esac
15731         ;;
15732
15733     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15734       no_undefined_flag_CXX='${wl}-z,text'
15735       archive_cmds_need_lc_CXX=no
15736       hardcode_shlibpath_var_CXX=no
15737       runpath_var='LD_RUN_PATH'
15738
15739       case $cc_basename in
15740         CC*)
15741           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15742           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15743           ;;
15744         *)
15745           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15746           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747           ;;
15748       esac
15749       ;;
15750
15751       sysv5* | sco3.2v5* | sco5v6*)
15752         # Note: We can NOT use -z defs as we might desire, because we do not
15753         # link with -lc, and that would cause any symbols used from libc to
15754         # always be unresolved, which means just about no library would
15755         # ever link correctly.  If we're not using GNU ld we use -z text
15756         # though, which does catch some bad symbols but isn't as heavy-handed
15757         # as -z defs.
15758         no_undefined_flag_CXX='${wl}-z,text'
15759         allow_undefined_flag_CXX='${wl}-z,nodefs'
15760         archive_cmds_need_lc_CXX=no
15761         hardcode_shlibpath_var_CXX=no
15762         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15763         hardcode_libdir_separator_CXX=':'
15764         link_all_deplibs_CXX=yes
15765         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15766         runpath_var='LD_RUN_PATH'
15767
15768         case $cc_basename in
15769           CC*)
15770             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15771             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15772             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15773               '"$old_archive_cmds_CXX"
15774             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15775               '"$reload_cmds_CXX"
15776             ;;
15777           *)
15778             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15779             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15780             ;;
15781         esac
15782       ;;
15783
15784       tandem*)
15785         case $cc_basename in
15786           NCC*)
15787             # NonStop-UX NCC 3.20
15788             # FIXME: insert proper C++ library support
15789             ld_shlibs_CXX=no
15790             ;;
15791           *)
15792             # FIXME: insert proper C++ library support
15793             ld_shlibs_CXX=no
15794             ;;
15795         esac
15796         ;;
15797
15798       vxworks*)
15799         # FIXME: insert proper C++ library support
15800         ld_shlibs_CXX=no
15801         ;;
15802
15803       *)
15804         # FIXME: insert proper C++ library support
15805         ld_shlibs_CXX=no
15806         ;;
15807     esac
15808
15809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15810 $as_echo "$ld_shlibs_CXX" >&6; }
15811     test "$ld_shlibs_CXX" = no && can_build_shared=no
15812
15813     GCC_CXX="$GXX"
15814     LD_CXX="$LD"
15815
15816     ## CAVEAT EMPTOR:
15817     ## There is no encapsulation within the following macros, do not change
15818     ## the running order or otherwise move them around unless you know exactly
15819     ## what you are doing...
15820     # Dependencies to place before and after the object being linked:
15821 predep_objects_CXX=
15822 postdep_objects_CXX=
15823 predeps_CXX=
15824 postdeps_CXX=
15825 compiler_lib_search_path_CXX=
15826
15827 cat > conftest.$ac_ext <<_LT_EOF
15828 class Foo
15829 {
15830 public:
15831   Foo (void) { a = 0; }
15832 private:
15833   int a;
15834 };
15835 _LT_EOF
15836
15837
15838 _lt_libdeps_save_CFLAGS=$CFLAGS
15839 case "$CC $CFLAGS " in #(
15840 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15841 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15842 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15843 esac
15844
15845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15846   (eval $ac_compile) 2>&5
15847   ac_status=$?
15848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15849   test $ac_status = 0; }; then
15850   # Parse the compiler output and extract the necessary
15851   # objects, libraries and library flags.
15852
15853   # Sentinel used to keep track of whether or not we are before
15854   # the conftest object file.
15855   pre_test_object_deps_done=no
15856
15857   for p in `eval "$output_verbose_link_cmd"`; do
15858     case ${prev}${p} in
15859
15860     -L* | -R* | -l*)
15861        # Some compilers place space between "-{L,R}" and the path.
15862        # Remove the space.
15863        if test $p = "-L" ||
15864           test $p = "-R"; then
15865          prev=$p
15866          continue
15867        fi
15868
15869        # Expand the sysroot to ease extracting the directories later.
15870        if test -z "$prev"; then
15871          case $p in
15872          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15873          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15874          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15875          esac
15876        fi
15877        case $p in
15878        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15879        esac
15880        if test "$pre_test_object_deps_done" = no; then
15881          case ${prev} in
15882          -L | -R)
15883            # Internal compiler library paths should come after those
15884            # provided the user.  The postdeps already come after the
15885            # user supplied libs so there is no need to process them.
15886            if test -z "$compiler_lib_search_path_CXX"; then
15887              compiler_lib_search_path_CXX="${prev}${p}"
15888            else
15889              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15890            fi
15891            ;;
15892          # The "-l" case would never come before the object being
15893          # linked, so don't bother handling this case.
15894          esac
15895        else
15896          if test -z "$postdeps_CXX"; then
15897            postdeps_CXX="${prev}${p}"
15898          else
15899            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15900          fi
15901        fi
15902        prev=
15903        ;;
15904
15905     *.lto.$objext) ;; # Ignore GCC LTO objects
15906     *.$objext)
15907        # This assumes that the test object file only shows up
15908        # once in the compiler output.
15909        if test "$p" = "conftest.$objext"; then
15910          pre_test_object_deps_done=yes
15911          continue
15912        fi
15913
15914        if test "$pre_test_object_deps_done" = no; then
15915          if test -z "$predep_objects_CXX"; then
15916            predep_objects_CXX="$p"
15917          else
15918            predep_objects_CXX="$predep_objects_CXX $p"
15919          fi
15920        else
15921          if test -z "$postdep_objects_CXX"; then
15922            postdep_objects_CXX="$p"
15923          else
15924            postdep_objects_CXX="$postdep_objects_CXX $p"
15925          fi
15926        fi
15927        ;;
15928
15929     *) ;; # Ignore the rest.
15930
15931     esac
15932   done
15933
15934   # Clean up.
15935   rm -f a.out a.exe
15936 else
15937   echo "libtool.m4: error: problem compiling CXX test program"
15938 fi
15939
15940 $RM -f confest.$objext
15941 CFLAGS=$_lt_libdeps_save_CFLAGS
15942
15943 # PORTME: override above test on systems where it is broken
15944 case $host_os in
15945 interix[3-9]*)
15946   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15947   # hack all around it, let's just trust "g++" to DTRT.
15948   predep_objects_CXX=
15949   postdep_objects_CXX=
15950   postdeps_CXX=
15951   ;;
15952
15953 linux*)
15954   case `$CC -V 2>&1 | sed 5q` in
15955   *Sun\ C*)
15956     # Sun C++ 5.9
15957
15958     # The more standards-conforming stlport4 library is
15959     # incompatible with the Cstd library. Avoid specifying
15960     # it if it's in CXXFLAGS. Ignore libCrun as
15961     # -library=stlport4 depends on it.
15962     case " $CXX $CXXFLAGS " in
15963     *" -library=stlport4 "*)
15964       solaris_use_stlport4=yes
15965       ;;
15966     esac
15967
15968     if test "$solaris_use_stlport4" != yes; then
15969       postdeps_CXX='-library=Cstd -library=Crun'
15970     fi
15971     ;;
15972   esac
15973   ;;
15974
15975 solaris*)
15976   case $cc_basename in
15977   CC* | sunCC*)
15978     # The more standards-conforming stlport4 library is
15979     # incompatible with the Cstd library. Avoid specifying
15980     # it if it's in CXXFLAGS. Ignore libCrun as
15981     # -library=stlport4 depends on it.
15982     case " $CXX $CXXFLAGS " in
15983     *" -library=stlport4 "*)
15984       solaris_use_stlport4=yes
15985       ;;
15986     esac
15987
15988     # Adding this requires a known-good setup of shared libraries for
15989     # Sun compiler versions before 5.6, else PIC objects from an old
15990     # archive will be linked into the output, leading to subtle bugs.
15991     if test "$solaris_use_stlport4" != yes; then
15992       postdeps_CXX='-library=Cstd -library=Crun'
15993     fi
15994     ;;
15995   esac
15996   ;;
15997 esac
15998
15999
16000 case " $postdeps_CXX " in
16001 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16002 esac
16003  compiler_lib_search_dirs_CXX=
16004 if test -n "${compiler_lib_search_path_CXX}"; then
16005  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16006 fi
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038     lt_prog_compiler_wl_CXX=
16039 lt_prog_compiler_pic_CXX=
16040 lt_prog_compiler_static_CXX=
16041
16042
16043   # C++ specific cases for pic, static, wl, etc.
16044   if test "$GXX" = yes; then
16045     lt_prog_compiler_wl_CXX='-Wl,'
16046     lt_prog_compiler_static_CXX='-static'
16047
16048     case $host_os in
16049     aix*)
16050       # All AIX code is PIC.
16051       if test "$host_cpu" = ia64; then
16052         # AIX 5 now supports IA64 processor
16053         lt_prog_compiler_static_CXX='-Bstatic'
16054       fi
16055       ;;
16056
16057     amigaos*)
16058       case $host_cpu in
16059       powerpc)
16060             # see comment about AmigaOS4 .so support
16061             lt_prog_compiler_pic_CXX='-fPIC'
16062         ;;
16063       m68k)
16064             # FIXME: we need at least 68020 code to build shared libraries, but
16065             # adding the `-m68020' flag to GCC prevents building anything better,
16066             # like `-m68040'.
16067             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16068         ;;
16069       esac
16070       ;;
16071
16072     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16073       # PIC is the default for these OSes.
16074       ;;
16075     mingw* | cygwin* | os2* | pw32* | cegcc*)
16076       # This hack is so that the source file can tell whether it is being
16077       # built for inclusion in a dll (and should export symbols for example).
16078       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16079       # (--disable-auto-import) libraries
16080       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16081       ;;
16082     darwin* | rhapsody*)
16083       # PIC is the default on this platform
16084       # Common symbols not allowed in MH_DYLIB files
16085       lt_prog_compiler_pic_CXX='-fno-common'
16086       ;;
16087     *djgpp*)
16088       # DJGPP does not support shared libraries at all
16089       lt_prog_compiler_pic_CXX=
16090       ;;
16091     haiku*)
16092       # PIC is the default for Haiku.
16093       # The "-static" flag exists, but is broken.
16094       lt_prog_compiler_static_CXX=
16095       ;;
16096     interix[3-9]*)
16097       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16098       # Instead, we relocate shared libraries at runtime.
16099       ;;
16100     sysv4*MP*)
16101       if test -d /usr/nec; then
16102         lt_prog_compiler_pic_CXX=-Kconform_pic
16103       fi
16104       ;;
16105     hpux*)
16106       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16107       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16108       # sets the default TLS model and affects inlining.
16109       case $host_cpu in
16110       hppa*64*)
16111         ;;
16112       *)
16113         lt_prog_compiler_pic_CXX='-fPIC'
16114         ;;
16115       esac
16116       ;;
16117     *qnx* | *nto*)
16118       # QNX uses GNU C++, but need to define -shared option too, otherwise
16119       # it will coredump.
16120       lt_prog_compiler_pic_CXX='-fPIC -shared'
16121       ;;
16122     *)
16123       lt_prog_compiler_pic_CXX='-fPIC'
16124       ;;
16125     esac
16126   else
16127     case $host_os in
16128       aix[4-9]*)
16129         # All AIX code is PIC.
16130         if test "$host_cpu" = ia64; then
16131           # AIX 5 now supports IA64 processor
16132           lt_prog_compiler_static_CXX='-Bstatic'
16133         else
16134           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16135         fi
16136         ;;
16137       chorus*)
16138         case $cc_basename in
16139         cxch68*)
16140           # Green Hills C++ Compiler
16141           # _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"
16142           ;;
16143         esac
16144         ;;
16145       mingw* | cygwin* | os2* | pw32* | cegcc*)
16146         # This hack is so that the source file can tell whether it is being
16147         # built for inclusion in a dll (and should export symbols for example).
16148         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16149         ;;
16150       dgux*)
16151         case $cc_basename in
16152           ec++*)
16153             lt_prog_compiler_pic_CXX='-KPIC'
16154             ;;
16155           ghcx*)
16156             # Green Hills C++ Compiler
16157             lt_prog_compiler_pic_CXX='-pic'
16158             ;;
16159           *)
16160             ;;
16161         esac
16162         ;;
16163       freebsd* | dragonfly*)
16164         # FreeBSD uses GNU C++
16165         ;;
16166       hpux9* | hpux10* | hpux11*)
16167         case $cc_basename in
16168           CC*)
16169             lt_prog_compiler_wl_CXX='-Wl,'
16170             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16171             if test "$host_cpu" != ia64; then
16172               lt_prog_compiler_pic_CXX='+Z'
16173             fi
16174             ;;
16175           aCC*)
16176             lt_prog_compiler_wl_CXX='-Wl,'
16177             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16178             case $host_cpu in
16179             hppa*64*|ia64*)
16180               # +Z the default
16181               ;;
16182             *)
16183               lt_prog_compiler_pic_CXX='+Z'
16184               ;;
16185             esac
16186             ;;
16187           *)
16188             ;;
16189         esac
16190         ;;
16191       interix*)
16192         # This is c89, which is MS Visual C++ (no shared libs)
16193         # Anyone wants to do a port?
16194         ;;
16195       irix5* | irix6* | nonstopux*)
16196         case $cc_basename in
16197           CC*)
16198             lt_prog_compiler_wl_CXX='-Wl,'
16199             lt_prog_compiler_static_CXX='-non_shared'
16200             # CC pic flag -KPIC is the default.
16201             ;;
16202           *)
16203             ;;
16204         esac
16205         ;;
16206       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16207         case $cc_basename in
16208           KCC*)
16209             # KAI C++ Compiler
16210             lt_prog_compiler_wl_CXX='--backend -Wl,'
16211             lt_prog_compiler_pic_CXX='-fPIC'
16212             ;;
16213           ecpc* )
16214             # old Intel C++ for x86_64 which still supported -KPIC.
16215             lt_prog_compiler_wl_CXX='-Wl,'
16216             lt_prog_compiler_pic_CXX='-KPIC'
16217             lt_prog_compiler_static_CXX='-static'
16218             ;;
16219           icpc* )
16220             # Intel C++, used to be incompatible with GCC.
16221             # ICC 10 doesn't accept -KPIC any more.
16222             lt_prog_compiler_wl_CXX='-Wl,'
16223             lt_prog_compiler_pic_CXX='-fPIC'
16224             lt_prog_compiler_static_CXX='-static'
16225             ;;
16226           pgCC* | pgcpp*)
16227             # Portland Group C++ compiler
16228             lt_prog_compiler_wl_CXX='-Wl,'
16229             lt_prog_compiler_pic_CXX='-fpic'
16230             lt_prog_compiler_static_CXX='-Bstatic'
16231             ;;
16232           cxx*)
16233             # Compaq C++
16234             # Make sure the PIC flag is empty.  It appears that all Alpha
16235             # Linux and Compaq Tru64 Unix objects are PIC.
16236             lt_prog_compiler_pic_CXX=
16237             lt_prog_compiler_static_CXX='-non_shared'
16238             ;;
16239           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16240             # IBM XL 8.0, 9.0 on PPC and BlueGene
16241             lt_prog_compiler_wl_CXX='-Wl,'
16242             lt_prog_compiler_pic_CXX='-qpic'
16243             lt_prog_compiler_static_CXX='-qstaticlink'
16244             ;;
16245           *)
16246             case `$CC -V 2>&1 | sed 5q` in
16247             *Sun\ C*)
16248               # Sun C++ 5.9
16249               lt_prog_compiler_pic_CXX='-KPIC'
16250               lt_prog_compiler_static_CXX='-Bstatic'
16251               lt_prog_compiler_wl_CXX='-Qoption ld '
16252               ;;
16253             esac
16254             ;;
16255         esac
16256         ;;
16257       lynxos*)
16258         ;;
16259       m88k*)
16260         ;;
16261       mvs*)
16262         case $cc_basename in
16263           cxx*)
16264             lt_prog_compiler_pic_CXX='-W c,exportall'
16265             ;;
16266           *)
16267             ;;
16268         esac
16269         ;;
16270       netbsd*)
16271         ;;
16272       *qnx* | *nto*)
16273         # QNX uses GNU C++, but need to define -shared option too, otherwise
16274         # it will coredump.
16275         lt_prog_compiler_pic_CXX='-fPIC -shared'
16276         ;;
16277       osf3* | osf4* | osf5*)
16278         case $cc_basename in
16279           KCC*)
16280             lt_prog_compiler_wl_CXX='--backend -Wl,'
16281             ;;
16282           RCC*)
16283             # Rational C++ 2.4.1
16284             lt_prog_compiler_pic_CXX='-pic'
16285             ;;
16286           cxx*)
16287             # Digital/Compaq C++
16288             lt_prog_compiler_wl_CXX='-Wl,'
16289             # Make sure the PIC flag is empty.  It appears that all Alpha
16290             # Linux and Compaq Tru64 Unix objects are PIC.
16291             lt_prog_compiler_pic_CXX=
16292             lt_prog_compiler_static_CXX='-non_shared'
16293             ;;
16294           *)
16295             ;;
16296         esac
16297         ;;
16298       psos*)
16299         ;;
16300       solaris*)
16301         case $cc_basename in
16302           CC* | sunCC*)
16303             # Sun C++ 4.2, 5.x and Centerline C++
16304             lt_prog_compiler_pic_CXX='-KPIC'
16305             lt_prog_compiler_static_CXX='-Bstatic'
16306             lt_prog_compiler_wl_CXX='-Qoption ld '
16307             ;;
16308           gcx*)
16309             # Green Hills C++ Compiler
16310             lt_prog_compiler_pic_CXX='-PIC'
16311             ;;
16312           *)
16313             ;;
16314         esac
16315         ;;
16316       sunos4*)
16317         case $cc_basename in
16318           CC*)
16319             # Sun C++ 4.x
16320             lt_prog_compiler_pic_CXX='-pic'
16321             lt_prog_compiler_static_CXX='-Bstatic'
16322             ;;
16323           lcc*)
16324             # Lucid
16325             lt_prog_compiler_pic_CXX='-pic'
16326             ;;
16327           *)
16328             ;;
16329         esac
16330         ;;
16331       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16332         case $cc_basename in
16333           CC*)
16334             lt_prog_compiler_wl_CXX='-Wl,'
16335             lt_prog_compiler_pic_CXX='-KPIC'
16336             lt_prog_compiler_static_CXX='-Bstatic'
16337             ;;
16338         esac
16339         ;;
16340       tandem*)
16341         case $cc_basename in
16342           NCC*)
16343             # NonStop-UX NCC 3.20
16344             lt_prog_compiler_pic_CXX='-KPIC'
16345             ;;
16346           *)
16347             ;;
16348         esac
16349         ;;
16350       vxworks*)
16351         ;;
16352       *)
16353         lt_prog_compiler_can_build_shared_CXX=no
16354         ;;
16355     esac
16356   fi
16357
16358 case $host_os in
16359   # For platforms which do not support PIC, -DPIC is meaningless:
16360   *djgpp*)
16361     lt_prog_compiler_pic_CXX=
16362     ;;
16363   *)
16364     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16365     ;;
16366 esac
16367
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16369 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16370 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16371   $as_echo_n "(cached) " >&6
16372 else
16373   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16374 fi
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16376 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16377 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16378
16379 #
16380 # Check to make sure the PIC flag actually works.
16381 #
16382 if test -n "$lt_prog_compiler_pic_CXX"; then
16383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16384 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16385 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16386   $as_echo_n "(cached) " >&6
16387 else
16388   lt_cv_prog_compiler_pic_works_CXX=no
16389    ac_outfile=conftest.$ac_objext
16390    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16391    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16392    # Insert the option either (1) after the last *FLAGS variable, or
16393    # (2) before a word containing "conftest.", or (3) at the end.
16394    # Note that $ac_compile itself does not contain backslashes and begins
16395    # with a dollar sign (not a hyphen), so the echo should work correctly.
16396    # The option is referenced via a variable to avoid confusing sed.
16397    lt_compile=`echo "$ac_compile" | $SED \
16398    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16399    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16400    -e 's:$: $lt_compiler_flag:'`
16401    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16402    (eval "$lt_compile" 2>conftest.err)
16403    ac_status=$?
16404    cat conftest.err >&5
16405    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406    if (exit $ac_status) && test -s "$ac_outfile"; then
16407      # The compiler can only warn and ignore the option if not recognized
16408      # So say no if there are warnings other than the usual output.
16409      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16410      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16411      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16412        lt_cv_prog_compiler_pic_works_CXX=yes
16413      fi
16414    fi
16415    $RM conftest*
16416
16417 fi
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16419 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16420
16421 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16422     case $lt_prog_compiler_pic_CXX in
16423      "" | " "*) ;;
16424      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16425      esac
16426 else
16427     lt_prog_compiler_pic_CXX=
16428      lt_prog_compiler_can_build_shared_CXX=no
16429 fi
16430
16431 fi
16432
16433
16434
16435
16436
16437 #
16438 # Check to make sure the static flag actually works.
16439 #
16440 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16442 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16443 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16444   $as_echo_n "(cached) " >&6
16445 else
16446   lt_cv_prog_compiler_static_works_CXX=no
16447    save_LDFLAGS="$LDFLAGS"
16448    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16449    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16450    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16451      # The linker can only warn and ignore the option if not recognized
16452      # So say no if there are warnings
16453      if test -s conftest.err; then
16454        # Append any errors to the config.log.
16455        cat conftest.err 1>&5
16456        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16457        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16458        if diff conftest.exp conftest.er2 >/dev/null; then
16459          lt_cv_prog_compiler_static_works_CXX=yes
16460        fi
16461      else
16462        lt_cv_prog_compiler_static_works_CXX=yes
16463      fi
16464    fi
16465    $RM -r conftest*
16466    LDFLAGS="$save_LDFLAGS"
16467
16468 fi
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16470 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16471
16472 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16473     :
16474 else
16475     lt_prog_compiler_static_CXX=
16476 fi
16477
16478
16479
16480
16481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16482 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16483 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16484   $as_echo_n "(cached) " >&6
16485 else
16486   lt_cv_prog_compiler_c_o_CXX=no
16487    $RM -r conftest 2>/dev/null
16488    mkdir conftest
16489    cd conftest
16490    mkdir out
16491    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16492
16493    lt_compiler_flag="-o out/conftest2.$ac_objext"
16494    # Insert the option either (1) after the last *FLAGS variable, or
16495    # (2) before a word containing "conftest.", or (3) at the end.
16496    # Note that $ac_compile itself does not contain backslashes and begins
16497    # with a dollar sign (not a hyphen), so the echo should work correctly.
16498    lt_compile=`echo "$ac_compile" | $SED \
16499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16501    -e 's:$: $lt_compiler_flag:'`
16502    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16503    (eval "$lt_compile" 2>out/conftest.err)
16504    ac_status=$?
16505    cat out/conftest.err >&5
16506    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16508    then
16509      # The compiler can only warn and ignore the option if not recognized
16510      # So say no if there are warnings
16511      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16512      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16513      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16514        lt_cv_prog_compiler_c_o_CXX=yes
16515      fi
16516    fi
16517    chmod u+w . 2>&5
16518    $RM conftest*
16519    # SGI C++ compiler will create directory out/ii_files/ for
16520    # template instantiation
16521    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16522    $RM out/* && rmdir out
16523    cd ..
16524    $RM -r conftest
16525    $RM conftest*
16526
16527 fi
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16529 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16530
16531
16532
16533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16535 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16536   $as_echo_n "(cached) " >&6
16537 else
16538   lt_cv_prog_compiler_c_o_CXX=no
16539    $RM -r conftest 2>/dev/null
16540    mkdir conftest
16541    cd conftest
16542    mkdir out
16543    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16544
16545    lt_compiler_flag="-o out/conftest2.$ac_objext"
16546    # Insert the option either (1) after the last *FLAGS variable, or
16547    # (2) before a word containing "conftest.", or (3) at the end.
16548    # Note that $ac_compile itself does not contain backslashes and begins
16549    # with a dollar sign (not a hyphen), so the echo should work correctly.
16550    lt_compile=`echo "$ac_compile" | $SED \
16551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16553    -e 's:$: $lt_compiler_flag:'`
16554    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16555    (eval "$lt_compile" 2>out/conftest.err)
16556    ac_status=$?
16557    cat out/conftest.err >&5
16558    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16560    then
16561      # The compiler can only warn and ignore the option if not recognized
16562      # So say no if there are warnings
16563      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16564      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16565      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16566        lt_cv_prog_compiler_c_o_CXX=yes
16567      fi
16568    fi
16569    chmod u+w . 2>&5
16570    $RM conftest*
16571    # SGI C++ compiler will create directory out/ii_files/ for
16572    # template instantiation
16573    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16574    $RM out/* && rmdir out
16575    cd ..
16576    $RM -r conftest
16577    $RM conftest*
16578
16579 fi
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16581 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16582
16583
16584
16585
16586 hard_links="nottested"
16587 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16588   # do not overwrite the value of need_locks provided by the user
16589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16590 $as_echo_n "checking if we can lock with hard links... " >&6; }
16591   hard_links=yes
16592   $RM conftest*
16593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16594   touch conftest.a
16595   ln conftest.a conftest.b 2>&5 || hard_links=no
16596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16598 $as_echo "$hard_links" >&6; }
16599   if test "$hard_links" = no; then
16600     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16601 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16602     need_locks=warn
16603   fi
16604 else
16605   need_locks=no
16606 fi
16607
16608
16609
16610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16612
16613   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16614   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16615   case $host_os in
16616   aix[4-9]*)
16617     # If we're using GNU nm, then we don't want the "-C" option.
16618     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16619     # Also, AIX nm treats weak defined symbols like other global defined
16620     # symbols, whereas GNU nm marks them as "W".
16621     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16622       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'
16623     else
16624       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'
16625     fi
16626     ;;
16627   pw32*)
16628     export_symbols_cmds_CXX="$ltdll_cmds"
16629     ;;
16630   cygwin* | mingw* | cegcc*)
16631     case $cc_basename in
16632     cl*)
16633       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16634       ;;
16635     *)
16636       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'
16637       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16638       ;;
16639     esac
16640     ;;
16641   *)
16642     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16643     ;;
16644   esac
16645
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16647 $as_echo "$ld_shlibs_CXX" >&6; }
16648 test "$ld_shlibs_CXX" = no && can_build_shared=no
16649
16650 with_gnu_ld_CXX=$with_gnu_ld
16651
16652
16653
16654
16655
16656
16657 #
16658 # Do we need to explicitly link libc?
16659 #
16660 case "x$archive_cmds_need_lc_CXX" in
16661 x|xyes)
16662   # Assume -lc should be added
16663   archive_cmds_need_lc_CXX=yes
16664
16665   if test "$enable_shared" = yes && test "$GCC" = yes; then
16666     case $archive_cmds_CXX in
16667     *'~'*)
16668       # FIXME: we may have to deal with multi-command sequences.
16669       ;;
16670     '$CC '*)
16671       # Test whether the compiler implicitly links with -lc since on some
16672       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16673       # to ld, don't add -lc before -lgcc.
16674       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16675 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16676 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16677   $as_echo_n "(cached) " >&6
16678 else
16679   $RM conftest*
16680         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16681
16682         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16683   (eval $ac_compile) 2>&5
16684   ac_status=$?
16685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16686   test $ac_status = 0; } 2>conftest.err; then
16687           soname=conftest
16688           lib=conftest
16689           libobjs=conftest.$ac_objext
16690           deplibs=
16691           wl=$lt_prog_compiler_wl_CXX
16692           pic_flag=$lt_prog_compiler_pic_CXX
16693           compiler_flags=-v
16694           linker_flags=-v
16695           verstring=
16696           output_objdir=.
16697           libname=conftest
16698           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16699           allow_undefined_flag_CXX=
16700           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16701   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16702   ac_status=$?
16703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16704   test $ac_status = 0; }
16705           then
16706             lt_cv_archive_cmds_need_lc_CXX=no
16707           else
16708             lt_cv_archive_cmds_need_lc_CXX=yes
16709           fi
16710           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16711         else
16712           cat conftest.err 1>&5
16713         fi
16714         $RM conftest*
16715
16716 fi
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16718 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16719       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16720       ;;
16721     esac
16722   fi
16723   ;;
16724 esac
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16788 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16789
16790 library_names_spec=
16791 libname_spec='lib$name'
16792 soname_spec=
16793 shrext_cmds=".so"
16794 postinstall_cmds=
16795 postuninstall_cmds=
16796 finish_cmds=
16797 finish_eval=
16798 shlibpath_var=
16799 shlibpath_overrides_runpath=unknown
16800 version_type=none
16801 dynamic_linker="$host_os ld.so"
16802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16803 need_lib_prefix=unknown
16804 hardcode_into_libs=no
16805
16806 # when you set need_version to no, make sure it does not cause -set_version
16807 # flags to be left without arguments
16808 need_version=unknown
16809
16810 case $host_os in
16811 aix3*)
16812   version_type=linux # correct to gnu/linux during the next big refactor
16813   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16814   shlibpath_var=LIBPATH
16815
16816   # AIX 3 has no versioning support, so we append a major version to the name.
16817   soname_spec='${libname}${release}${shared_ext}$major'
16818   ;;
16819
16820 aix[4-9]*)
16821   version_type=linux # correct to gnu/linux during the next big refactor
16822   need_lib_prefix=no
16823   need_version=no
16824   hardcode_into_libs=yes
16825   if test "$host_cpu" = ia64; then
16826     # AIX 5 supports IA64
16827     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16828     shlibpath_var=LD_LIBRARY_PATH
16829   else
16830     # With GCC up to 2.95.x, collect2 would create an import file
16831     # for dependence libraries.  The import file would start with
16832     # the line `#! .'.  This would cause the generated library to
16833     # depend on `.', always an invalid library.  This was fixed in
16834     # development snapshots of GCC prior to 3.0.
16835     case $host_os in
16836       aix4 | aix4.[01] | aix4.[01].*)
16837       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16838            echo ' yes '
16839            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16840         :
16841       else
16842         can_build_shared=no
16843       fi
16844       ;;
16845     esac
16846     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16847     # soname into executable. Probably we can add versioning support to
16848     # collect2, so additional links can be useful in future.
16849     if test "$aix_use_runtimelinking" = yes; then
16850       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16851       # instead of lib<name>.a to let people know that these are not
16852       # typical AIX shared libraries.
16853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854     else
16855       # We preserve .a as extension for shared libraries through AIX4.2
16856       # and later when we are not doing run time linking.
16857       library_names_spec='${libname}${release}.a $libname.a'
16858       soname_spec='${libname}${release}${shared_ext}$major'
16859     fi
16860     shlibpath_var=LIBPATH
16861   fi
16862   ;;
16863
16864 amigaos*)
16865   case $host_cpu in
16866   powerpc)
16867     # Since July 2007 AmigaOS4 officially supports .so libraries.
16868     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870     ;;
16871   m68k)
16872     library_names_spec='$libname.ixlibrary $libname.a'
16873     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16874     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'
16875     ;;
16876   esac
16877   ;;
16878
16879 beos*)
16880   library_names_spec='${libname}${shared_ext}'
16881   dynamic_linker="$host_os ld.so"
16882   shlibpath_var=LIBRARY_PATH
16883   ;;
16884
16885 bsdi[45]*)
16886   version_type=linux # correct to gnu/linux during the next big refactor
16887   need_version=no
16888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16889   soname_spec='${libname}${release}${shared_ext}$major'
16890   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16891   shlibpath_var=LD_LIBRARY_PATH
16892   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16893   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16894   # the default ld.so.conf also contains /usr/contrib/lib and
16895   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16896   # libtool to hard-code these into programs
16897   ;;
16898
16899 cygwin* | mingw* | pw32* | cegcc*)
16900   version_type=windows
16901   shrext_cmds=".dll"
16902   need_version=no
16903   need_lib_prefix=no
16904
16905   case $GCC,$cc_basename in
16906   yes,*)
16907     # gcc
16908     library_names_spec='$libname.dll.a'
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       chmod a+x \$dldir/$dlname~
16916       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16917         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16918       fi'
16919     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16920       dlpath=$dir/\$dldll~
16921        $RM \$dlpath'
16922     shlibpath_overrides_runpath=yes
16923
16924     case $host_os in
16925     cygwin*)
16926       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16927       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16928
16929       ;;
16930     mingw* | cegcc*)
16931       # MinGW DLLs use traditional 'lib' prefix
16932       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16933       ;;
16934     pw32*)
16935       # pw32 DLLs use 'pw' prefix rather than 'lib'
16936       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16937       ;;
16938     esac
16939     dynamic_linker='Win32 ld.exe'
16940     ;;
16941
16942   *,cl*)
16943     # Native MSVC
16944     libname_spec='$name'
16945     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16946     library_names_spec='${libname}.dll.lib'
16947
16948     case $build_os in
16949     mingw*)
16950       sys_lib_search_path_spec=
16951       lt_save_ifs=$IFS
16952       IFS=';'
16953       for lt_path in $LIB
16954       do
16955         IFS=$lt_save_ifs
16956         # Let DOS variable expansion print the short 8.3 style file name.
16957         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16958         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16959       done
16960       IFS=$lt_save_ifs
16961       # Convert to MSYS style.
16962       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16963       ;;
16964     cygwin*)
16965       # Convert to unix form, then to dos form, then back to unix form
16966       # but this time dos style (no spaces!) so that the unix form looks
16967       # like /cygdrive/c/PROGRA~1:/cygdr...
16968       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16969       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16970       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16971       ;;
16972     *)
16973       sys_lib_search_path_spec="$LIB"
16974       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16975         # It is most probably a Windows format PATH.
16976         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16977       else
16978         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16979       fi
16980       # FIXME: find the short name or the path components, as spaces are
16981       # common. (e.g. "Program Files" -> "PROGRA~1")
16982       ;;
16983     esac
16984
16985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16986     postinstall_cmds='base_file=`basename \${file}`~
16987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16988       dldir=$destdir/`dirname \$dlpath`~
16989       test -d \$dldir || mkdir -p \$dldir~
16990       $install_prog $dir/$dlname \$dldir/$dlname'
16991     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16992       dlpath=$dir/\$dldll~
16993        $RM \$dlpath'
16994     shlibpath_overrides_runpath=yes
16995     dynamic_linker='Win32 link.exe'
16996     ;;
16997
16998   *)
16999     # Assume MSVC wrapper
17000     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17001     dynamic_linker='Win32 ld.exe'
17002     ;;
17003   esac
17004   # FIXME: first we should search . and the directory the executable is in
17005   shlibpath_var=PATH
17006   ;;
17007
17008 darwin* | rhapsody*)
17009   dynamic_linker="$host_os dyld"
17010   version_type=darwin
17011   need_lib_prefix=no
17012   need_version=no
17013   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17014   soname_spec='${libname}${release}${major}$shared_ext'
17015   shlibpath_overrides_runpath=yes
17016   shlibpath_var=DYLD_LIBRARY_PATH
17017   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17018
17019   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17020   ;;
17021
17022 dgux*)
17023   version_type=linux # correct to gnu/linux during the next big refactor
17024   need_lib_prefix=no
17025   need_version=no
17026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17027   soname_spec='${libname}${release}${shared_ext}$major'
17028   shlibpath_var=LD_LIBRARY_PATH
17029   ;;
17030
17031 freebsd* | dragonfly*)
17032   # DragonFly does not have aout.  When/if they implement a new
17033   # versioning mechanism, adjust this.
17034   if test -x /usr/bin/objformat; then
17035     objformat=`/usr/bin/objformat`
17036   else
17037     case $host_os in
17038     freebsd[23].*) objformat=aout ;;
17039     *) objformat=elf ;;
17040     esac
17041   fi
17042   version_type=freebsd-$objformat
17043   case $version_type in
17044     freebsd-elf*)
17045       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17046       need_version=no
17047       need_lib_prefix=no
17048       ;;
17049     freebsd-*)
17050       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17051       need_version=yes
17052       ;;
17053   esac
17054   shlibpath_var=LD_LIBRARY_PATH
17055   case $host_os in
17056   freebsd2.*)
17057     shlibpath_overrides_runpath=yes
17058     ;;
17059   freebsd3.[01]* | freebsdelf3.[01]*)
17060     shlibpath_overrides_runpath=yes
17061     hardcode_into_libs=yes
17062     ;;
17063   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17064   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17065     shlibpath_overrides_runpath=no
17066     hardcode_into_libs=yes
17067     ;;
17068   *) # from 4.6 on, and DragonFly
17069     shlibpath_overrides_runpath=yes
17070     hardcode_into_libs=yes
17071     ;;
17072   esac
17073   ;;
17074
17075 gnu*)
17076   version_type=linux # correct to gnu/linux during the next big refactor
17077   need_lib_prefix=no
17078   need_version=no
17079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17080   soname_spec='${libname}${release}${shared_ext}$major'
17081   shlibpath_var=LD_LIBRARY_PATH
17082   shlibpath_overrides_runpath=no
17083   hardcode_into_libs=yes
17084   ;;
17085
17086 haiku*)
17087   version_type=linux # correct to gnu/linux during the next big refactor
17088   need_lib_prefix=no
17089   need_version=no
17090   dynamic_linker="$host_os runtime_loader"
17091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17092   soname_spec='${libname}${release}${shared_ext}$major'
17093   shlibpath_var=LIBRARY_PATH
17094   shlibpath_overrides_runpath=yes
17095   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17096   hardcode_into_libs=yes
17097   ;;
17098
17099 hpux9* | hpux10* | hpux11*)
17100   # Give a soname corresponding to the major version so that dld.sl refuses to
17101   # link against other versions.
17102   version_type=sunos
17103   need_lib_prefix=no
17104   need_version=no
17105   case $host_cpu in
17106   ia64*)
17107     shrext_cmds='.so'
17108     hardcode_into_libs=yes
17109     dynamic_linker="$host_os dld.so"
17110     shlibpath_var=LD_LIBRARY_PATH
17111     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17113     soname_spec='${libname}${release}${shared_ext}$major'
17114     if test "X$HPUX_IA64_MODE" = X32; then
17115       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17116     else
17117       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17118     fi
17119     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17120     ;;
17121   hppa*64*)
17122     shrext_cmds='.sl'
17123     hardcode_into_libs=yes
17124     dynamic_linker="$host_os dld.sl"
17125     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128     soname_spec='${libname}${release}${shared_ext}$major'
17129     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17130     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17131     ;;
17132   *)
17133     shrext_cmds='.sl'
17134     dynamic_linker="$host_os dld.sl"
17135     shlibpath_var=SHLIB_PATH
17136     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138     soname_spec='${libname}${release}${shared_ext}$major'
17139     ;;
17140   esac
17141   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17142   postinstall_cmds='chmod 555 $lib'
17143   # or fails outright, so override atomically:
17144   install_override_mode=555
17145   ;;
17146
17147 interix[3-9]*)
17148   version_type=linux # correct to gnu/linux during the next big refactor
17149   need_lib_prefix=no
17150   need_version=no
17151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17152   soname_spec='${libname}${release}${shared_ext}$major'
17153   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17154   shlibpath_var=LD_LIBRARY_PATH
17155   shlibpath_overrides_runpath=no
17156   hardcode_into_libs=yes
17157   ;;
17158
17159 irix5* | irix6* | nonstopux*)
17160   case $host_os in
17161     nonstopux*) version_type=nonstopux ;;
17162     *)
17163         if test "$lt_cv_prog_gnu_ld" = yes; then
17164                 version_type=linux # correct to gnu/linux during the next big refactor
17165         else
17166                 version_type=irix
17167         fi ;;
17168   esac
17169   need_lib_prefix=no
17170   need_version=no
17171   soname_spec='${libname}${release}${shared_ext}$major'
17172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17173   case $host_os in
17174   irix5* | nonstopux*)
17175     libsuff= shlibsuff=
17176     ;;
17177   *)
17178     case $LD in # libtool.m4 will add one of these switches to LD
17179     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17180       libsuff= shlibsuff= libmagic=32-bit;;
17181     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17182       libsuff=32 shlibsuff=N32 libmagic=N32;;
17183     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17184       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17185     *) libsuff= shlibsuff= libmagic=never-match;;
17186     esac
17187     ;;
17188   esac
17189   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17190   shlibpath_overrides_runpath=no
17191   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17192   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17193   hardcode_into_libs=yes
17194   ;;
17195
17196 # No shared lib support for Linux oldld, aout, or coff.
17197 linux*oldld* | linux*aout* | linux*coff*)
17198   dynamic_linker=no
17199   ;;
17200
17201 # This must be glibc/ELF.
17202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17203   version_type=linux # correct to gnu/linux during the next big refactor
17204   need_lib_prefix=no
17205   need_version=no
17206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207   soname_spec='${libname}${release}${shared_ext}$major'
17208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17209   shlibpath_var=LD_LIBRARY_PATH
17210   shlibpath_overrides_runpath=no
17211
17212   # Some binutils ld are patched to set DT_RUNPATH
17213   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17214   $as_echo_n "(cached) " >&6
17215 else
17216   lt_cv_shlibpath_overrides_runpath=no
17217     save_LDFLAGS=$LDFLAGS
17218     save_libdir=$libdir
17219     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17220          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h.  */
17223
17224 int
17225 main ()
17226 {
17227
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 if ac_fn_cxx_try_link "$LINENO"; then :
17233   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17234   lt_cv_shlibpath_overrides_runpath=yes
17235 fi
17236 fi
17237 rm -f core conftest.err conftest.$ac_objext \
17238     conftest$ac_exeext conftest.$ac_ext
17239     LDFLAGS=$save_LDFLAGS
17240     libdir=$save_libdir
17241
17242 fi
17243
17244   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17245
17246   # This implies no fast_install, which is unacceptable.
17247   # Some rework will be needed to allow for fast_install
17248   # before this can be enabled.
17249   hardcode_into_libs=yes
17250
17251   # Append ld.so.conf contents to the search path
17252   if test -f /etc/ld.so.conf; then
17253     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' ' '`
17254     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17255   fi
17256
17257   # We used to test for /lib/ld.so.1 and disable shared libraries on
17258   # powerpc, because MkLinux only supported shared libraries with the
17259   # GNU dynamic linker.  Since this was broken with cross compilers,
17260   # most powerpc-linux boxes support dynamic linking these days and
17261   # people can always --disable-shared, the test was removed, and we
17262   # assume the GNU/Linux dynamic linker is in use.
17263   dynamic_linker='GNU/Linux ld.so'
17264   ;;
17265
17266 netbsd*)
17267   version_type=sunos
17268   need_lib_prefix=no
17269   need_version=no
17270   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17272     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17273     dynamic_linker='NetBSD (a.out) ld.so'
17274   else
17275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17276     soname_spec='${libname}${release}${shared_ext}$major'
17277     dynamic_linker='NetBSD ld.elf_so'
17278   fi
17279   shlibpath_var=LD_LIBRARY_PATH
17280   shlibpath_overrides_runpath=yes
17281   hardcode_into_libs=yes
17282   ;;
17283
17284 newsos6)
17285   version_type=linux # correct to gnu/linux during the next big refactor
17286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17287   shlibpath_var=LD_LIBRARY_PATH
17288   shlibpath_overrides_runpath=yes
17289   ;;
17290
17291 *nto* | *qnx*)
17292   version_type=qnx
17293   need_lib_prefix=no
17294   need_version=no
17295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296   soname_spec='${libname}${release}${shared_ext}$major'
17297   shlibpath_var=LD_LIBRARY_PATH
17298   shlibpath_overrides_runpath=no
17299   hardcode_into_libs=yes
17300   dynamic_linker='ldqnx.so'
17301   ;;
17302
17303 openbsd*)
17304   version_type=sunos
17305   sys_lib_dlsearch_path_spec="/usr/lib"
17306   need_lib_prefix=no
17307   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17308   case $host_os in
17309     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17310     *)                          need_version=no  ;;
17311   esac
17312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17314   shlibpath_var=LD_LIBRARY_PATH
17315   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17316     case $host_os in
17317       openbsd2.[89] | openbsd2.[89].*)
17318         shlibpath_overrides_runpath=no
17319         ;;
17320       *)
17321         shlibpath_overrides_runpath=yes
17322         ;;
17323       esac
17324   else
17325     shlibpath_overrides_runpath=yes
17326   fi
17327   ;;
17328
17329 os2*)
17330   libname_spec='$name'
17331   shrext_cmds=".dll"
17332   need_lib_prefix=no
17333   library_names_spec='$libname${shared_ext} $libname.a'
17334   dynamic_linker='OS/2 ld.exe'
17335   shlibpath_var=LIBPATH
17336   ;;
17337
17338 osf3* | osf4* | osf5*)
17339   version_type=osf
17340   need_lib_prefix=no
17341   need_version=no
17342   soname_spec='${libname}${release}${shared_ext}$major'
17343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344   shlibpath_var=LD_LIBRARY_PATH
17345   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17346   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17347   ;;
17348
17349 rdos*)
17350   dynamic_linker=no
17351   ;;
17352
17353 solaris*)
17354   version_type=linux # correct to gnu/linux during the next big refactor
17355   need_lib_prefix=no
17356   need_version=no
17357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358   soname_spec='${libname}${release}${shared_ext}$major'
17359   shlibpath_var=LD_LIBRARY_PATH
17360   shlibpath_overrides_runpath=yes
17361   hardcode_into_libs=yes
17362   # ldd complains unless libraries are executable
17363   postinstall_cmds='chmod +x $lib'
17364   ;;
17365
17366 sunos4*)
17367   version_type=sunos
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17369   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17370   shlibpath_var=LD_LIBRARY_PATH
17371   shlibpath_overrides_runpath=yes
17372   if test "$with_gnu_ld" = yes; then
17373     need_lib_prefix=no
17374   fi
17375   need_version=yes
17376   ;;
17377
17378 sysv4 | sysv4.3*)
17379   version_type=linux # correct to gnu/linux during the next big refactor
17380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381   soname_spec='${libname}${release}${shared_ext}$major'
17382   shlibpath_var=LD_LIBRARY_PATH
17383   case $host_vendor in
17384     sni)
17385       shlibpath_overrides_runpath=no
17386       need_lib_prefix=no
17387       runpath_var=LD_RUN_PATH
17388       ;;
17389     siemens)
17390       need_lib_prefix=no
17391       ;;
17392     motorola)
17393       need_lib_prefix=no
17394       need_version=no
17395       shlibpath_overrides_runpath=no
17396       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17397       ;;
17398   esac
17399   ;;
17400
17401 sysv4*MP*)
17402   if test -d /usr/nec ;then
17403     version_type=linux # correct to gnu/linux during the next big refactor
17404     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17405     soname_spec='$libname${shared_ext}.$major'
17406     shlibpath_var=LD_LIBRARY_PATH
17407   fi
17408   ;;
17409
17410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17411   version_type=freebsd-elf
17412   need_lib_prefix=no
17413   need_version=no
17414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17415   soname_spec='${libname}${release}${shared_ext}$major'
17416   shlibpath_var=LD_LIBRARY_PATH
17417   shlibpath_overrides_runpath=yes
17418   hardcode_into_libs=yes
17419   if test "$with_gnu_ld" = yes; then
17420     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17421   else
17422     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17423     case $host_os in
17424       sco3.2v5*)
17425         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17426         ;;
17427     esac
17428   fi
17429   sys_lib_dlsearch_path_spec='/usr/lib'
17430   ;;
17431
17432 tpf*)
17433   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17434   version_type=linux # correct to gnu/linux during the next big refactor
17435   need_lib_prefix=no
17436   need_version=no
17437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438   shlibpath_var=LD_LIBRARY_PATH
17439   shlibpath_overrides_runpath=no
17440   hardcode_into_libs=yes
17441   ;;
17442
17443 uts4*)
17444   version_type=linux # correct to gnu/linux during the next big refactor
17445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446   soname_spec='${libname}${release}${shared_ext}$major'
17447   shlibpath_var=LD_LIBRARY_PATH
17448   ;;
17449
17450 *)
17451   dynamic_linker=no
17452   ;;
17453 esac
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17455 $as_echo "$dynamic_linker" >&6; }
17456 test "$dynamic_linker" = no && can_build_shared=no
17457
17458 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17459 if test "$GCC" = yes; then
17460   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17461 fi
17462
17463 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17464   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17465 fi
17466 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17467   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17468 fi
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17508 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17509 hardcode_action_CXX=
17510 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17511    test -n "$runpath_var_CXX" ||
17512    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17513
17514   # We can hardcode non-existent directories.
17515   if test "$hardcode_direct_CXX" != no &&
17516      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17517      # have to relink, otherwise we might link with an installed library
17518      # when we should be linking with a yet-to-be-installed one
17519      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17520      test "$hardcode_minus_L_CXX" != no; then
17521     # Linking always hardcodes the temporary library directory.
17522     hardcode_action_CXX=relink
17523   else
17524     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17525     hardcode_action_CXX=immediate
17526   fi
17527 else
17528   # We cannot hardcode anything, or else we can only hardcode existing
17529   # directories.
17530   hardcode_action_CXX=unsupported
17531 fi
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17533 $as_echo "$hardcode_action_CXX" >&6; }
17534
17535 if test "$hardcode_action_CXX" = relink ||
17536    test "$inherit_rpath_CXX" = yes; then
17537   # Fast installation is not supported
17538   enable_fast_install=no
17539 elif test "$shlibpath_overrides_runpath" = yes ||
17540      test "$enable_shared" = no; then
17541   # Fast installation is not necessary
17542   enable_fast_install=needless
17543 fi
17544
17545
17546
17547
17548
17549
17550
17551   fi # test -n "$compiler"
17552
17553   CC=$lt_save_CC
17554   CFLAGS=$lt_save_CFLAGS
17555   LDCXX=$LD
17556   LD=$lt_save_LD
17557   GCC=$lt_save_GCC
17558   with_gnu_ld=$lt_save_with_gnu_ld
17559   lt_cv_path_LDCXX=$lt_cv_path_LD
17560   lt_cv_path_LD=$lt_save_path_LD
17561   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17562   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17563 fi # test "$_lt_caught_CXX_error" != yes
17564
17565 ac_ext=c
17566 ac_cpp='$CPP $CPPFLAGS'
17567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585         ac_config_commands="$ac_config_commands libtool"
17586
17587
17588
17589
17590 # Only expand once:
17591
17592
17593 # Check whether --enable-experimental-libtool was given.
17594 if test "${enable_experimental_libtool+set}" = set; then :
17595   enableval=$enable_experimental_libtool; experimental_libtool=$enableval
17596 else
17597   experimental_libtool=no
17598 fi
17599
17600
17601 if test "$experimental_libtool" = "yes"; then
17602   echo "using APR's libtool"
17603   sh_libtool="`$apr_config --apr-libtool`"
17604   LIBTOOL="$sh_libtool"
17605   SVN_LIBTOOL="$sh_libtool"
17606 else
17607   sh_libtool="$abs_builddir/libtool"
17608   SVN_LIBTOOL="\$(SHELL) $sh_libtool"
17609 fi
17610
17611
17612 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
17613 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
17614 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
17615
17616 svn_enable_static=yes
17617 svn_enable_shared=yes
17618
17619 # Check whether --enable-static was given.
17620 if test "${enable_static+set}" = set; then :
17621   enableval=$enable_static; svn_enable_static="$enableval"
17622 else
17623   svn_enable_static="yes"
17624 fi
17625
17626
17627 # Check whether --enable-shared was given.
17628 if test "${enable_shared+set}" = set; then :
17629   enableval=$enable_shared; svn_enable_shared="$enableval"
17630 else
17631   svn_enable_shared="yes"
17632 fi
17633
17634
17635 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
17636   { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
17637 $as_echo "$as_me: building both shared and static libraries" >&6;}
17638 elif test "$svn_enable_static" = "yes" ; then
17639   { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
17640 $as_echo "$as_me: building static libraries only" >&6;}
17641   LT_CFLAGS="-static $LT_CFLAGS"
17642   LT_LDFLAGS="-static $LT_LDFLAGS"
17643 elif test "$svn_enable_shared" = "yes" ; then
17644   { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
17645 $as_echo "$as_me: building shared libraries only" >&6;}
17646   if test "$lt_major_version" = "1" ; then
17647     LT_CFLAGS="-prefer-pic $LT_CFLAGS"
17648   elif test "$lt_major_version" = "2" ; then
17649     LT_CFLAGS="-shared $LT_CFLAGS"
17650   fi
17651   LT_LDFLAGS="-shared $LT_LDFLAGS"
17652 else
17653   as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
17654 fi
17655
17656 # Check whether --enable-all-static was given.
17657 if test "${enable_all_static+set}" = set; then :
17658   enableval=$enable_all_static;
17659     if test "$enableval" = "yes" ; then
17660       LT_LDFLAGS="-all-static $LT_LDFLAGS"
17661     elif test "$enableval" != "no" ; then
17662       as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
17663     fi
17664
17665 fi
17666
17667
17668
17669
17670
17671 # Check whether --enable-local-library-preloading was given.
17672 if test "${enable_local_library_preloading+set}" = set; then :
17673   enableval=$enable_local_library_preloading;
17674   if test "$enableval" != "no"; then
17675     if test "$svn_enable_shared" = "yes"; then
17676       TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
17677     else
17678       as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
17679     fi
17680   else
17681     TRANSFORM_LIBTOOL_SCRIPTS=""
17682   fi
17683
17684 else
17685
17686   TRANSFORM_LIBTOOL_SCRIPTS=""
17687
17688 fi
17689
17690
17691
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
17693 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
17694 case $host in
17695   *-*-cygwin*)
17696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17697 $as_echo "yes" >&6; }
17698     LT_NO_UNDEFINED="-no-undefined"
17699     ;;
17700   *)
17701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17702 $as_echo "no" >&6; }
17703     LT_NO_UNDEFINED=""
17704     ;;
17705 esac
17706
17707
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid circular linkage at all costs" >&5
17709 $as_echo_n "checking whether to avoid circular linkage at all costs... " >&6; }
17710 case $host in
17711   *-*-cygwin*)
17712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17713 $as_echo "yes" >&6; }
17714
17715 $as_echo "#define SVN_AVOID_CIRCULAR_LINKAGE_AT_ALL_COSTS_HACK 1" >>confdefs.h
17716
17717     ;;
17718   *)
17719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720 $as_echo "no" >&6; }
17721     ;;
17722 esac
17723
17724 trang=yes
17725
17726 # Check whether --with-trang was given.
17727 if test "${with_trang+set}" = set; then :
17728   withval=$with_trang;
17729     trang="$withval"
17730
17731 fi
17732
17733 if test "$trang" = "yes"; then
17734     # Extract the first word of "trang", so it can be a program name with args.
17735 set dummy trang; ac_word=$2
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17737 $as_echo_n "checking for $ac_word... " >&6; }
17738 if ${ac_cv_path_TRANG+:} false; then :
17739   $as_echo_n "(cached) " >&6
17740 else
17741   case $TRANG in
17742   [\\/]* | ?:[\\/]*)
17743   ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
17744   ;;
17745   *)
17746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17747 for as_dir in $PATH
17748 do
17749   IFS=$as_save_IFS
17750   test -z "$as_dir" && as_dir=.
17751     for ac_exec_ext in '' $ac_executable_extensions; do
17752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17753     ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
17754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17755     break 2
17756   fi
17757 done
17758   done
17759 IFS=$as_save_IFS
17760
17761   test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
17762   ;;
17763 esac
17764 fi
17765 TRANG=$ac_cv_path_TRANG
17766 if test -n "$TRANG"; then
17767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
17768 $as_echo "$TRANG" >&6; }
17769 else
17770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17771 $as_echo "no" >&6; }
17772 fi
17773
17774
17775 else
17776     TRANG="$trang"
17777
17778 fi
17779
17780 doxygen=yes
17781
17782 # Check whether --with-doxygen was given.
17783 if test "${with_doxygen+set}" = set; then :
17784   withval=$with_doxygen;
17785     doxygen="$withval"
17786
17787 fi
17788
17789 if test "$doxygen" = "yes"; then
17790     # Extract the first word of "doxygen", so it can be a program name with args.
17791 set dummy doxygen; ac_word=$2
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17793 $as_echo_n "checking for $ac_word... " >&6; }
17794 if ${ac_cv_path_DOXYGEN+:} false; then :
17795   $as_echo_n "(cached) " >&6
17796 else
17797   case $DOXYGEN in
17798   [\\/]* | ?:[\\/]*)
17799   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17800   ;;
17801   *)
17802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17803 for as_dir in $PATH
17804 do
17805   IFS=$as_save_IFS
17806   test -z "$as_dir" && as_dir=.
17807     for ac_exec_ext in '' $ac_executable_extensions; do
17808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17809     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17811     break 2
17812   fi
17813 done
17814   done
17815 IFS=$as_save_IFS
17816
17817   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
17818   ;;
17819 esac
17820 fi
17821 DOXYGEN=$ac_cv_path_DOXYGEN
17822 if test -n "$DOXYGEN"; then
17823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17824 $as_echo "$DOXYGEN" >&6; }
17825 else
17826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17827 $as_echo "no" >&6; }
17828 fi
17829
17830
17831 else
17832     DOXYGEN="$doxygen"
17833
17834 fi
17835
17836
17837
17838
17839
17840 # Check whether --with-expat was given.
17841 if test "${with_expat+set}" = set; then :
17842   withval=$with_expat; svn_lib_expat="$withval"
17843 else
17844   svn_lib_expat="::expat"
17845 fi
17846
17847
17848 # APR-util accepts "builtin" as an argument to this option so if the user
17849 # passed "builtin" pretend the user didn't specify the --with-expat option
17850 # at all. Expat will (hopefully) be found in apr-util.
17851 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
17852
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
17854 $as_echo_n "checking for Expat... " >&6; }
17855 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
17856   SVN_XML_INCLUDES=""
17857   for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
17858     SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
17859   done
17860   SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
17861   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
17862     LDFLAGS="$LDFLAGS -L$l"
17863   done
17864   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
17865     SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
17866   done
17867   SVN_XML_LIBS="${SVN_XML_LIBS## }"
17868   old_CPPFLAGS="$CPPFLAGS"
17869   old_LIBS="$LIBS"
17870   CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
17871   LIBS="$LIBS $SVN_XML_LIBS"
17872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h.  */
17874
17875 #include <expat.h>
17876 int main()
17877 {XML_ParserCreate(NULL);}
17878 _ACEOF
17879 if ac_fn_c_try_link "$LINENO"; then :
17880   svn_lib_expat="yes"
17881 else
17882   svn_lib_expat="no"
17883 fi
17884 rm -f core conftest.err conftest.$ac_objext \
17885     conftest$ac_exeext conftest.$ac_ext
17886   LIBS="$old_LIBS"
17887   if test "$svn_lib_expat" = "yes"; then
17888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17889 $as_echo "yes" >&6; }
17890   else
17891     SVN_XML_INCLUDES=""
17892     SVN_XML_LIBS=""
17893     CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
17894     if test "$enable_all_static" != "yes"; then
17895       SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
17896     fi
17897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h.  */
17899
17900 #include <expat.h>
17901 int main()
17902 {XML_ParserCreate(NULL);}
17903 _ACEOF
17904 if ac_fn_c_try_compile "$LINENO"; then :
17905   svn_lib_expat="yes"
17906 else
17907   svn_lib_expat="no"
17908 fi
17909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910     if test "$svn_lib_expat" = "yes"; then
17911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17912 $as_echo "yes" >&6; }
17913       { $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
17914 $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;}
17915     else
17916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17917 $as_echo "no" >&6; }
17918       as_fn_error $? "Expat not found" "$LINENO" 5
17919     fi
17920   fi
17921   CPPFLAGS="$old_CPPFLAGS"
17922 else
17923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17924 $as_echo "no" >&6; }
17925   if test "$svn_lib_expat" = "yes"; then
17926     as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
17927   elif test "$svn_lib_expat" = "no"; then
17928     as_fn_error $? "Expat is required" "$LINENO" 5
17929   else
17930     as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
17931   fi
17932 fi
17933
17934
17935
17936
17937 # Berkeley DB on SCO OpenServer needs -lsocket
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17939 $as_echo_n "checking for socket in -lsocket... " >&6; }
17940 if ${ac_cv_lib_socket_socket+:} false; then :
17941   $as_echo_n "(cached) " >&6
17942 else
17943   ac_check_lib_save_LIBS=$LIBS
17944 LIBS="-lsocket  $LIBS"
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946 /* end confdefs.h.  */
17947
17948 /* Override any GCC internal prototype to avoid an error.
17949    Use char because int might match the return type of a GCC
17950    builtin and then its argument prototype would still apply.  */
17951 #ifdef __cplusplus
17952 extern "C"
17953 #endif
17954 char socket ();
17955 int
17956 main ()
17957 {
17958 return socket ();
17959   ;
17960   return 0;
17961 }
17962 _ACEOF
17963 if ac_fn_c_try_link "$LINENO"; then :
17964   ac_cv_lib_socket_socket=yes
17965 else
17966   ac_cv_lib_socket_socket=no
17967 fi
17968 rm -f core conftest.err conftest.$ac_objext \
17969     conftest$ac_exeext conftest.$ac_ext
17970 LIBS=$ac_check_lib_save_LIBS
17971 fi
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17973 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17974 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17975   cat >>confdefs.h <<_ACEOF
17976 #define HAVE_LIBSOCKET 1
17977 _ACEOF
17978
17979   LIBS="-lsocket $LIBS"
17980
17981 fi
17982
17983
17984 # Build the BDB filesystem library only if we have an appropriate
17985 # version of Berkeley DB.
17986 case "$host" in
17987 powerpc-apple-darwin*)
17988     # Berkeley DB 4.0 does not work on OS X.
17989     SVN_FS_WANT_DB_MAJOR=4
17990     SVN_FS_WANT_DB_MINOR=1
17991     SVN_FS_WANT_DB_PATCH=25
17992     ;;
17993 *)
17994     SVN_FS_WANT_DB_MAJOR=4
17995     SVN_FS_WANT_DB_MINOR=0
17996     SVN_FS_WANT_DB_PATCH=14
17997     ;;
17998 esac
17999 db_alt_version="5.x"
18000 # Look for libdb4.so first:
18001
18002   db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
18003
18004
18005 # Check whether --with-berkeley-db was given.
18006 if test "${with_berkeley_db+set}" = set; then :
18007   withval=$with_berkeley_db;
18008     if test "$withval" = "no"; then
18009       bdb_status=skip
18010     elif test "$withval" = "yes"; then
18011       apu_db_version="`$apu_config --db-version`"
18012       if test $? -ne 0; then
18013         as_fn_error $? "Can't determine whether apr-util is linked against a
18014                       proper version of Berkeley DB." "$LINENO" 5
18015       fi
18016
18017       if test "$withval" = "yes"; then
18018         if test "$apu_db_version" -lt "4"; then
18019           as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
18020                         while version 4 or higher is required.  Reinstall
18021                         APR-UTIL with the appropriate options." "$LINENO" 5
18022         fi
18023
18024         bdb_status=required
18025
18026       elif test "$apu_found" != "reconfig"; then
18027         if test "$apu_db_version" -lt 4; then
18028           as_fn_error $? "APR-UTIL was installed independently, it won't be
18029                         possible to use the specified Berkeley DB: $withval" "$LINENO" 5
18030         fi
18031
18032         bdb_status=required
18033       fi
18034     else
18035       if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
18036         svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
18037         SVN_DB_INCLUDES=""
18038         for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
18039           SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
18040         done
18041         SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
18042         for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
18043           LDFLAGS="$LDFLAGS `
18044   input_flags="-L$l"
18045   output_flags=""
18046   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18047   for flag in $input_flags; do
18048     filter="no"
18049     for dir in $filtered_dirs; do
18050       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18051         filter="yes"
18052         break
18053       fi
18054     done
18055     if test "$filter" = "no"; then
18056       output_flags="$output_flags $flag"
18057     fi
18058   done
18059   if test -n "$output_flags"; then
18060     printf "%s" "${output_flags# }"
18061   fi
18062 `"
18063         done
18064         SVN_DB_LIBS=""
18065         for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18066           SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
18067         done
18068         SVN_DB_LIBS="${SVN_DB_LIBS## }"
18069
18070         bdb_status=required
18071       else
18072         as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
18073       fi
18074     fi
18075
18076 else
18077
18078     # No --with-berkeley-db option:
18079     #
18080     # Check if APR-UTIL is providing the correct Berkeley DB version
18081     # for us.
18082     #
18083     apu_db_version="`$apu_config --db-version`"
18084     if test $? -ne 0; then
18085       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
18086                    whether apr-util is linked against Berkeley DB
18087                    $db_version" >&5
18088 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
18089                    whether apr-util is linked against Berkeley DB
18090                    $db_version" >&2;}
18091       bdb_status=try-link
18092     elif test "$apu_db_version" -lt "4"; then
18093       bdb_status=skip
18094     else
18095       bdb_status=try-link
18096     fi
18097
18098 fi
18099
18100
18101   if test "$bdb_status" = "skip"; then
18102     svn_lib_berkeley_db=no
18103   else
18104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18105 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18106     # Check whether --enable-bdb6 was given.
18107 if test "${enable_bdb6+set}" = set; then :
18108   enableval=$enable_bdb6; enable_bdb6=$enableval
18109 else
18110   enable_bdb6=unspecified
18111 fi
18112
18113
18114
18115     svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18116     svn_lib_berkeley_db_try_save_libs="$LIBS"
18117
18118     svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18119     svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18120     svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18121     enable_bdb6=$enable_bdb6
18122
18123    if test -z "$SVN_DB_LIBS"; then
18124       # We pass --dbm-libs here since Debian has modified apu-config not
18125       # to return -ldb unless --dbm-libs is passed.  This may also produce
18126       # extra output beyond -ldb but since we're only filtering for -ldb
18127       # it won't matter to us.  However, --dbm-libs was added to apu-config
18128       # in 1.3.8 so it's possible the version we have doesn't support it
18129       # so fallback without it if we get an error.
18130       svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18131       if test $? -ne 0; then
18132         svn_db_libs_prefiltered="`$apu_config --libs`"
18133       fi
18134
18135       # Extract only the -ldb.* flag from the libs supplied by apu-config
18136       # Otherwise we get bit by the fact that expat might not be built yet
18137       # Or that it resides in a non-standard location which we would have
18138       # to compensate with using something like -R`$apu_config --prefix`/lib.
18139       #
18140       SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18141     fi
18142
18143     CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18144     LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18145
18146     if test -n "$svn_berkeley_db_header"; then
18147       SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18148       svn_db_header="#include <$svn_berkeley_db_header>"
18149     else
18150       SVN_DB_HEADER="#include <apu_want.h>"
18151       svn_db_header="#define APU_WANT_DB
18152 #include <apu_want.h>"
18153     fi
18154
18155
18156
18157     if test "$cross_compiling" = yes; then :
18158   svn_have_berkeley_db=yes
18159
18160 else
18161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h.  */
18163
18164 #include <string.h>
18165 #include <stdlib.h>
18166 $svn_db_header
18167
18168 int main ()
18169 {
18170   int major, minor, patch;
18171
18172   db_version (&major, &minor, &patch);
18173
18174   /* Sanity check: ensure that db.h constants actually match the db library */
18175   if (major != DB_VERSION_MAJOR
18176       || minor != DB_VERSION_MINOR
18177       || patch != DB_VERSION_PATCH)
18178     exit (1);
18179
18180   /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18181      and newer are under the AGPL, and we want use of AGPL dependencies to be
18182      opt-in. */
18183   if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18184     exit(2);
18185
18186   /* Run-time check:  ensure the library claims to be the correct version. */
18187
18188   if (major < $svn_check_berkeley_db_major)
18189     exit (1);
18190   if (major > $svn_check_berkeley_db_major)
18191     exit (0);
18192
18193   if (minor < $svn_check_berkeley_db_minor)
18194     exit (1);
18195   if (minor > $svn_check_berkeley_db_minor)
18196     exit (0);
18197
18198   if (patch >= $svn_check_berkeley_db_patch)
18199     exit (0);
18200   else
18201     exit (1);
18202 }
18203
18204 _ACEOF
18205 if ac_fn_c_try_run "$LINENO"; then :
18206   svn_have_berkeley_db=yes
18207 else
18208   rc=$?
18209        svn_have_berkeley_db=no
18210        if test $rc = 2; then
18211          svn_have_berkeley_db=no6
18212        fi
18213 fi
18214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18215   conftest.$ac_objext conftest.beam conftest.$ac_ext
18216 fi
18217
18218
18219   CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
18220   LIBS="$svn_lib_berkeley_db_try_save_libs"
18221
18222
18223     if test "$svn_have_berkeley_db" = "yes"; then
18224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18225 $as_echo "yes" >&6; }
18226       svn_lib_berkeley_db=yes
18227     else
18228       if test "$svn_have_berkeley_db" = "no6"; then
18229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
18230 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
18231         # A warning will be printed at the end of configure.ac.
18232       else
18233         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18234 $as_echo "no" >&6; }
18235       fi
18236       svn_lib_berkeley_db=no
18237       if test "$bdb_status" = "required"; then
18238         as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
18239       fi
18240     fi
18241   fi
18242
18243
18244
18245 cat >>confdefs.h <<_ACEOF
18246 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
18247 _ACEOF
18248
18249
18250 cat >>confdefs.h <<_ACEOF
18251 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
18252 _ACEOF
18253
18254
18255 cat >>confdefs.h <<_ACEOF
18256 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
18257 _ACEOF
18258
18259
18260
18261
18262
18263
18264
18265 # Check whether --with-sasl was given.
18266 if test "${with_sasl+set}" = set; then :
18267   withval=$with_sasl;
18268     with_sasl="$withval"
18269     required="yes"
18270
18271 else
18272
18273     with_sasl="yes"
18274     required="no"
18275
18276 fi
18277
18278
18279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
18280 $as_echo_n "checking whether to look for SASL... " >&6; }
18281
18282   if test "${with_sasl}" = "no"; then
18283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284 $as_echo "no" >&6; }
18285     svn_lib_sasl=no
18286   else
18287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18288 $as_echo "yes" >&6; }
18289     saved_LDFLAGS="$LDFLAGS"
18290     saved_CPPFLAGS="$CPPFLAGS"
18291
18292     if test "$with_sasl" = "yes"; then
18293       { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
18294 $as_echo "$as_me: Looking in default locations" >&6;}
18295       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18296 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18297   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18298 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18300 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18301 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18302   $as_echo_n "(cached) " >&6
18303 else
18304   ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lsasl2  $LIBS"
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h.  */
18308
18309 /* Override any GCC internal prototype to avoid an error.
18310    Use char because int might match the return type of a GCC
18311    builtin and then its argument prototype would still apply.  */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 char prop_get ();
18316 int
18317 main ()
18318 {
18319 return prop_get ();
18320   ;
18321   return 0;
18322 }
18323 _ACEOF
18324 if ac_fn_c_try_link "$LINENO"; then :
18325   ac_cv_lib_sasl2_prop_get=yes
18326 else
18327   ac_cv_lib_sasl2_prop_get=no
18328 fi
18329 rm -f core conftest.err conftest.$ac_objext \
18330     conftest$ac_exeext conftest.$ac_ext
18331 LIBS=$ac_check_lib_save_LIBS
18332 fi
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18334 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18335 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18336   svn_lib_sasl=yes
18337 else
18338   svn_lib_sasl=no
18339 fi
18340
18341 else
18342   svn_lib_sasl=no
18343 fi
18344
18345
18346 else
18347   svn_lib_sasl=no
18348 fi
18349
18350
18351       if test "$svn_lib_sasl" = "no"; then
18352         with_sasl="/usr/local"
18353       fi
18354     else
18355       svn_lib_sasl=no
18356     fi
18357
18358     if test "$svn_lib_sasl" = "no"; then
18359       SVN_SASL_INCLUDES="-I${with_sasl}/include"
18360       CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
18361       LDFLAGS="$LDFLAGS `
18362   input_flags="-L${with_sasl}/lib"
18363   output_flags=""
18364   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18365   for flag in $input_flags; do
18366     filter="no"
18367     for dir in $filtered_dirs; do
18368       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18369         filter="yes"
18370         break
18371       fi
18372     done
18373     if test "$filter" = "no"; then
18374       output_flags="$output_flags $flag"
18375     fi
18376   done
18377   if test -n "$output_flags"; then
18378     printf "%s" "${output_flags# }"
18379   fi
18380 `"
18381
18382       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18383 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18384   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18385 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18387 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18388 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18389   $as_echo_n "(cached) " >&6
18390 else
18391   ac_check_lib_save_LIBS=$LIBS
18392 LIBS="-lsasl2  $LIBS"
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h.  */
18395
18396 /* Override any GCC internal prototype to avoid an error.
18397    Use char because int might match the return type of a GCC
18398    builtin and then its argument prototype would still apply.  */
18399 #ifdef __cplusplus
18400 extern "C"
18401 #endif
18402 char prop_get ();
18403 int
18404 main ()
18405 {
18406 return prop_get ();
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 if ac_fn_c_try_link "$LINENO"; then :
18412   ac_cv_lib_sasl2_prop_get=yes
18413 else
18414   ac_cv_lib_sasl2_prop_get=no
18415 fi
18416 rm -f core conftest.err conftest.$ac_objext \
18417     conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18419 fi
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18421 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18422 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18423   svn_lib_sasl=yes
18424 else
18425   svn_lib_sasl=no
18426 fi
18427
18428 else
18429   svn_lib_sasl=no
18430 fi
18431
18432
18433 else
18434   svn_lib_sasl=no
18435 fi
18436
18437
18438     fi
18439
18440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
18441 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
18442     if test "$svn_lib_sasl" = "yes"; then
18443       SVN_SASL_LIBS="-lsasl2"
18444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18445 $as_echo "yes" >&6; }
18446     else
18447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448 $as_echo "no" >&6; }
18449
18450       if test "$required" = "yes"; then
18451                         as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
18452       fi
18453
18454       SVN_SASL_INCLUDES=""
18455       LDFLAGS="$saved_LDFLAGS"
18456     fi
18457
18458     CPPFLAGS="$saved_CPPFLAGS"
18459   fi
18460
18461
18462
18463
18464
18465 if test "$svn_lib_sasl" = "yes"; then
18466
18467 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
18468
18469 fi
18470
18471
18472
18473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
18474 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
18475   if test "$cross_compiling" = yes; then :
18476   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18478 as_fn_error $? "cannot run test program while cross compiling
18479 See \`config.log' for more details" "$LINENO" 5; }
18480 else
18481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h.  */
18483
18484     #include <mach-o/dyld.h>
18485     #include <mach-o/loader.h>
18486
18487 int
18488 main ()
18489 {
18490
18491     const struct mach_header *header = _dyld_get_image_header(0);
18492     const char *name = _dyld_get_image_name(0);
18493     if (name && header) return 0;
18494     return 1;
18495
18496   ;
18497   return 0;
18498 }
18499 _ACEOF
18500 if ac_fn_c_try_run "$LINENO"; then :
18501
18502
18503 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
18504
18505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18506 $as_echo "yes" >&6; }
18507
18508 else
18509
18510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511 $as_echo "no" >&6; }
18512
18513 fi
18514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18515   conftest.$ac_objext conftest.beam conftest.$ac_ext
18516 fi
18517
18518
18519
18520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
18521 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
18522
18523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524 /* end confdefs.h.  */
18525
18526     #include <AvailabilityMacros.h>
18527     #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18528      || !defined(MAC_OS_X_VERSION_10_0) \
18529      || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
18530     #error ProperyList API unavailable.
18531     #endif
18532
18533 int
18534 main ()
18535 {
18536
18537   ;
18538   return 0;
18539 }
18540 _ACEOF
18541 if ac_fn_c_try_compile "$LINENO"; then :
18542
18543
18544     LIBS="$LIBS -framework CoreFoundation"
18545
18546 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
18547
18548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18549 $as_echo "yes" >&6; }
18550
18551 else
18552
18553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18555
18556 fi
18557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558
18559
18560   # Check whether --enable-keychain was given.
18561 if test "${enable_keychain+set}" = set; then :
18562   enableval=$enable_keychain; enable_keychain=$enableval
18563 else
18564   enable_keychain=yes
18565 fi
18566
18567
18568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
18569 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
18570
18571   if test "$enable_keychain" = "yes"; then
18572     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573 /* end confdefs.h.  */
18574
18575       #include <AvailabilityMacros.h>
18576       #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18577        || !defined(MAC_OS_X_VERSION_10_2) \
18578        || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
18579       #error KeyChain API unavailable.
18580       #endif
18581
18582 int
18583 main ()
18584 {
18585
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 if ac_fn_c_try_compile "$LINENO"; then :
18591
18592             LIBS="$LIBS -framework Security"
18593       LIBS="$LIBS -framework CoreServices"
18594
18595 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
18596
18597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18598 $as_echo "yes" >&6; }
18599
18600 else
18601
18602       enable_keychain=no
18603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604 $as_echo "no" >&6; }
18605
18606 fi
18607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18608   fi
18609
18610
18611
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
18613 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
18614 old_CPPFLAGS="$CPPFLAGS"
18615 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h.  */
18618
18619 #include <apr.h>
18620 #if !APR_HAS_DSO
18621 #error
18622 #endif
18623 _ACEOF
18624 if ac_fn_c_try_cpp "$LINENO"; then :
18625   APR_HAS_DSO="yes"
18626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18627 $as_echo "yes" >&6; }
18628 else
18629   APR_HAS_DSO="no"
18630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632 fi
18633 rm -f conftest.err conftest.i conftest.$ac_ext
18634 CPPFLAGS="$old_CPPFLAGS"
18635
18636
18637
18638 if test -n "$PKG_CONFIG"; then
18639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
18640 $as_echo_n "checking for D-Bus .pc file... " >&6; }
18641   if $PKG_CONFIG --exists dbus-1; then
18642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18643 $as_echo "yes" >&6; }
18644     old_CPPFLAGS="$CPPFLAGS"
18645     old_LIBS="$LIBS"
18646     DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
18647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
18648 $as_echo_n "checking D-Bus version... " >&6; }
18649     DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
18650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
18651 $as_echo "$DBUS_VERSION" >&6; }
18652     # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
18653     if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
18654       DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
18655     fi
18656     DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
18657     CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
18658     LIBS="$LIBS $DBUS_LIBS"
18659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
18660 $as_echo_n "checking for D-Bus... " >&6; }
18661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662 /* end confdefs.h.  */
18663
18664 #include <dbus/dbus.h>
18665 int main()
18666 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
18667 _ACEOF
18668 if ac_fn_c_try_link "$LINENO"; then :
18669   HAVE_DBUS="yes"
18670 else
18671   HAVE_DBUS="no"
18672 fi
18673 rm -f core conftest.err conftest.$ac_objext \
18674     conftest$ac_exeext conftest.$ac_ext
18675     if test "$HAVE_DBUS" = "yes"; then
18676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18677 $as_echo "yes" >&6; }
18678     else
18679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18680 $as_echo "no" >&6; }
18681     fi
18682     CPPFLAGS="$old_CPPFLAGS"
18683     LIBS="$old_LIBS"
18684   else
18685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18686 $as_echo "no" >&6; }
18687   fi
18688 fi
18689
18690
18691
18692 # Check whether --with-gpg_agent was given.
18693 if test "${with_gpg_agent+set}" = set; then :
18694   withval=$with_gpg_agent;
18695 else
18696   with_gpg_agent=yes
18697 fi
18698
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
18700 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
18701 if test "$with_gpg_agent" = "yes"; then
18702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18703 $as_echo "yes" >&6; }
18704
18705 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
18706
18707 else
18708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18709 $as_echo "no" >&6; }
18710 fi
18711
18712
18713
18714
18715
18716 # Check whether --with-gnome_keyring was given.
18717 if test "${with_gnome_keyring+set}" = set; then :
18718   withval=$with_gnome_keyring; with_gnome_keyring="$withval"
18719 else
18720   with_gnome_keyring=auto
18721 fi
18722
18723
18724 found_gnome_keyring=no
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
18726 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
18727 if test "$with_gnome_keyring" != "no"; then
18728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729 $as_echo "yes" >&6; }
18730   if test "$svn_enable_shared" = "yes"; then
18731     if test "$APR_HAS_DSO" = "yes"; then
18732       if test -n "$PKG_CONFIG"; then
18733         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
18734 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
18735         if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
18736           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737 $as_echo "yes" >&6; }
18738           old_CPPFLAGS="$CPPFLAGS"
18739           SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
18740           CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
18741           ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
18742 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
18743   found_gnome_keyring=yes
18744 else
18745   found_gnome_keyring=no
18746 fi
18747
18748
18749           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
18750 $as_echo_n "checking for GNOME Keyring... " >&6; }
18751           if test "$found_gnome_keyring" = "yes"; then
18752             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753 $as_echo "yes" >&6; }
18754
18755 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
18756
18757             CPPFLAGS="$old_CPPFLAGS"
18758             SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
18759           else
18760             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761 $as_echo "no" >&6; }
18762             if test "$with_gnome_keyring" = "yes"; then
18763               as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
18764             fi
18765           fi
18766         else
18767           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18768 $as_echo "no" >&6; }
18769           if test "$with_gnome_keyring" = "yes"; then
18770             as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
18771           else
18772             with_gnome_keyring=no
18773           fi
18774         fi
18775       else
18776         if test "$with_gnome_keyring" = "yes"; then
18777           as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
18778         else
18779           with_gnome_keyring=no
18780         fi
18781       fi
18782     else
18783       if test "$with_gnome_keyring" = "yes"; then
18784         as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
18785       else
18786         with_gnome_keyring=no
18787       fi
18788     fi
18789   else
18790     if test "$with_gnome_keyring" = "yes"; then
18791       as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
18792     else
18793       with_gnome_keyring=no
18794     fi
18795   fi
18796 else
18797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18798 $as_echo "no" >&6; }
18799 fi
18800
18801
18802
18803
18804 # Check whether --enable-ev2-impl was given.
18805 if test "${enable_ev2_impl+set}" = set; then :
18806   enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
18807 else
18808   enable_ev2_impl=no
18809 fi
18810
18811 if test "$enable_ev2_impl" = "yes"; then
18812
18813 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
18814
18815 fi
18816
18817
18818
18819 # Check whether --enable-nls was given.
18820 if test "${enable_nls+set}" = set; then :
18821   enableval=$enable_nls; enable_nls=$enableval
18822 else
18823   enable_nls=yes
18824 fi
18825
18826
18827 USE_NLS="no"
18828 if test "$enable_nls" = "yes"; then
18829     # Extract the first word of "msgfmt", so it can be a program name with args.
18830 set dummy msgfmt; ac_word=$2
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18832 $as_echo_n "checking for $ac_word... " >&6; }
18833 if ${ac_cv_path_MSGFMT+:} false; then :
18834   $as_echo_n "(cached) " >&6
18835 else
18836   case $MSGFMT in
18837   [\\/]* | ?:[\\/]*)
18838   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18839   ;;
18840   *)
18841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842 for as_dir in $PATH
18843 do
18844   IFS=$as_save_IFS
18845   test -z "$as_dir" && as_dir=.
18846     for ac_exec_ext in '' $ac_executable_extensions; do
18847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18848     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18850     break 2
18851   fi
18852 done
18853   done
18854 IFS=$as_save_IFS
18855
18856   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
18857   ;;
18858 esac
18859 fi
18860 MSGFMT=$ac_cv_path_MSGFMT
18861 if test -n "$MSGFMT"; then
18862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18863 $as_echo "$MSGFMT" >&6; }
18864 else
18865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18866 $as_echo "no" >&6; }
18867 fi
18868
18869
18870   # Extract the first word of "msgmerge", so it can be a program name with args.
18871 set dummy msgmerge; ac_word=$2
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18873 $as_echo_n "checking for $ac_word... " >&6; }
18874 if ${ac_cv_path_MSGMERGE+:} false; then :
18875   $as_echo_n "(cached) " >&6
18876 else
18877   case $MSGMERGE in
18878   [\\/]* | ?:[\\/]*)
18879   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18880   ;;
18881   *)
18882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883 for as_dir in $PATH
18884 do
18885   IFS=$as_save_IFS
18886   test -z "$as_dir" && as_dir=.
18887     for ac_exec_ext in '' $ac_executable_extensions; do
18888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
18890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18891     break 2
18892   fi
18893 done
18894   done
18895 IFS=$as_save_IFS
18896
18897   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
18898   ;;
18899 esac
18900 fi
18901 MSGMERGE=$ac_cv_path_MSGMERGE
18902 if test -n "$MSGMERGE"; then
18903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18904 $as_echo "$MSGMERGE" >&6; }
18905 else
18906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18908 fi
18909
18910
18911   # Extract the first word of "xgettext", so it can be a program name with args.
18912 set dummy xgettext; ac_word=$2
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914 $as_echo_n "checking for $ac_word... " >&6; }
18915 if ${ac_cv_path_XGETTEXT+:} false; then :
18916   $as_echo_n "(cached) " >&6
18917 else
18918   case $XGETTEXT in
18919   [\\/]* | ?:[\\/]*)
18920   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18921   ;;
18922   *)
18923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924 for as_dir in $PATH
18925 do
18926   IFS=$as_save_IFS
18927   test -z "$as_dir" && as_dir=.
18928     for ac_exec_ext in '' $ac_executable_extensions; do
18929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18930     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18932     break 2
18933   fi
18934 done
18935   done
18936 IFS=$as_save_IFS
18937
18938   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
18939   ;;
18940 esac
18941 fi
18942 XGETTEXT=$ac_cv_path_XGETTEXT
18943 if test -n "$XGETTEXT"; then
18944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18945 $as_echo "$XGETTEXT" >&6; }
18946 else
18947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18948 $as_echo "no" >&6; }
18949 fi
18950
18951
18952   if test "$MSGFMT" != "none"; then
18953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
18954 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
18955 if ${ac_cv_search_bindtextdomain+:} false; then :
18956   $as_echo_n "(cached) " >&6
18957 else
18958   ac_func_search_save_LIBS=$LIBS
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h.  */
18961
18962 /* Override any GCC internal prototype to avoid an error.
18963    Use char because int might match the return type of a GCC
18964    builtin and then its argument prototype would still apply.  */
18965 #ifdef __cplusplus
18966 extern "C"
18967 #endif
18968 char bindtextdomain ();
18969 int
18970 main ()
18971 {
18972 return bindtextdomain ();
18973   ;
18974   return 0;
18975 }
18976 _ACEOF
18977 for ac_lib in '' intl; do
18978   if test -z "$ac_lib"; then
18979     ac_res="none required"
18980   else
18981     ac_res=-l$ac_lib
18982     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18983   fi
18984   if ac_fn_c_try_link "$LINENO"; then :
18985   ac_cv_search_bindtextdomain=$ac_res
18986 fi
18987 rm -f core conftest.err conftest.$ac_objext \
18988     conftest$ac_exeext
18989   if ${ac_cv_search_bindtextdomain+:} false; then :
18990   break
18991 fi
18992 done
18993 if ${ac_cv_search_bindtextdomain+:} false; then :
18994
18995 else
18996   ac_cv_search_bindtextdomain=no
18997 fi
18998 rm conftest.$ac_ext
18999 LIBS=$ac_func_search_save_LIBS
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19002 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19003 ac_res=$ac_cv_search_bindtextdomain
19004 if test "$ac_res" != no; then :
19005   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19006
19007 else
19008
19009                     enable_nls="no"
19010
19011 fi
19012
19013     if test "$enable_nls" = "no"; then
19014       # Destroy the cached result so we can test again
19015       unset ac_cv_search_bindtextdomain
19016       # On some systems, libintl needs libiconv to link properly,
19017       # so try again with -liconv.
19018       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19019 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19020 if ${ac_cv_search_bindtextdomain+:} false; then :
19021   $as_echo_n "(cached) " >&6
19022 else
19023   ac_func_search_save_LIBS=$LIBS
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h.  */
19026
19027 /* Override any GCC internal prototype to avoid an error.
19028    Use char because int might match the return type of a GCC
19029    builtin and then its argument prototype would still apply.  */
19030 #ifdef __cplusplus
19031 extern "C"
19032 #endif
19033 char bindtextdomain ();
19034 int
19035 main ()
19036 {
19037 return bindtextdomain ();
19038   ;
19039   return 0;
19040 }
19041 _ACEOF
19042 for ac_lib in '' intl; do
19043   if test -z "$ac_lib"; then
19044     ac_res="none required"
19045   else
19046     ac_res=-l$ac_lib
19047     LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
19048   fi
19049   if ac_fn_c_try_link "$LINENO"; then :
19050   ac_cv_search_bindtextdomain=$ac_res
19051 fi
19052 rm -f core conftest.err conftest.$ac_objext \
19053     conftest$ac_exeext
19054   if ${ac_cv_search_bindtextdomain+:} false; then :
19055   break
19056 fi
19057 done
19058 if ${ac_cv_search_bindtextdomain+:} false; then :
19059
19060 else
19061   ac_cv_search_bindtextdomain=no
19062 fi
19063 rm conftest.$ac_ext
19064 LIBS=$ac_func_search_save_LIBS
19065 fi
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19067 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19068 ac_res=$ac_cv_search_bindtextdomain
19069 if test "$ac_res" != no; then :
19070   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19071
19072                       enable_nls="yes"
19073                       # This is here so that -liconv ends up in LIBS
19074                       # if it worked with -liconv.
19075                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
19076 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
19077 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
19078   $as_echo_n "(cached) " >&6
19079 else
19080   ac_check_lib_save_LIBS=$LIBS
19081 LIBS="-liconv  $LIBS"
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h.  */
19084
19085 /* Override any GCC internal prototype to avoid an error.
19086    Use char because int might match the return type of a GCC
19087    builtin and then its argument prototype would still apply.  */
19088 #ifdef __cplusplus
19089 extern "C"
19090 #endif
19091 char libiconv_open ();
19092 int
19093 main ()
19094 {
19095 return libiconv_open ();
19096   ;
19097   return 0;
19098 }
19099 _ACEOF
19100 if ac_fn_c_try_link "$LINENO"; then :
19101   ac_cv_lib_iconv_libiconv_open=yes
19102 else
19103   ac_cv_lib_iconv_libiconv_open=no
19104 fi
19105 rm -f core conftest.err conftest.$ac_objext \
19106     conftest$ac_exeext conftest.$ac_ext
19107 LIBS=$ac_check_lib_save_LIBS
19108 fi
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19110 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19111 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19112   cat >>confdefs.h <<_ACEOF
19113 #define HAVE_LIBICONV 1
19114 _ACEOF
19115
19116   LIBS="-liconv $LIBS"
19117
19118 fi
19119
19120
19121 else
19122
19123                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
19124 $as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
19125                       enable_nls="no"
19126
19127 fi
19128
19129     fi
19130     if test "$enable_nls" = "yes"; then
19131
19132 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19133
19134       USE_NLS="yes"
19135     fi
19136   fi
19137 fi
19138
19139
19140
19141 GETTEXT_CODESET=\#
19142 NO_GETTEXT_CODESET=\#
19143 if test $USE_NLS = "yes"; then
19144    for ac_func in bind_textdomain_codeset
19145 do :
19146   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19147 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19148   cat >>confdefs.h <<_ACEOF
19149 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19150 _ACEOF
19151   GETTEXT_CODESET=""
19152 else
19153    NO_GETTEXT_CODESET=""
19154 fi
19155 done
19156
19157 fi
19158
19159
19160
19161 # Check if we are using GNU gettext.
19162 GNU_GETTEXT=no
19163 MSGFMTFLAGS=''
19164 if test $USE_NLS = "yes"; then
19165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
19166 $as_echo_n "checking if we are using GNU gettext... " >&6; }
19167    if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
19168       GNU_GETTEXT=yes
19169       MSGFMTFLAGS='-c'
19170    fi
19171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
19172 $as_echo "$GNU_GETTEXT" >&6; }
19173 fi
19174
19175
19176
19177 libmagic_found=no
19178
19179
19180 # Check whether --with-libmagic was given.
19181 if test "${with_libmagic+set}" = set; then :
19182   withval=$with_libmagic;
19183   if test "$withval" = "yes" ; then
19184     ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19185 if test "x$ac_cv_header_magic_h" = xyes; then :
19186
19187       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19188 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19189 if ${ac_cv_lib_magic_magic_open+:} false; then :
19190   $as_echo_n "(cached) " >&6
19191 else
19192   ac_check_lib_save_LIBS=$LIBS
19193 LIBS="-lmagic  $LIBS"
19194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19195 /* end confdefs.h.  */
19196
19197 /* Override any GCC internal prototype to avoid an error.
19198    Use char because int might match the return type of a GCC
19199    builtin and then its argument prototype would still apply.  */
19200 #ifdef __cplusplus
19201 extern "C"
19202 #endif
19203 char magic_open ();
19204 int
19205 main ()
19206 {
19207 return magic_open ();
19208   ;
19209   return 0;
19210 }
19211 _ACEOF
19212 if ac_fn_c_try_link "$LINENO"; then :
19213   ac_cv_lib_magic_magic_open=yes
19214 else
19215   ac_cv_lib_magic_magic_open=no
19216 fi
19217 rm -f core conftest.err conftest.$ac_objext \
19218     conftest$ac_exeext conftest.$ac_ext
19219 LIBS=$ac_check_lib_save_LIBS
19220 fi
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19222 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19223 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19224   libmagic_found="builtin"
19225 fi
19226
19227
19228 fi
19229
19230
19231     libmagic_prefix="the default locations"
19232   elif test "$withval" != "no"; then
19233     libmagic_prefix=$withval
19234     save_cppflags="$CPPFLAGS"
19235     CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
19236     for ac_header in magic.h
19237 do :
19238   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19239 if test "x$ac_cv_header_magic_h" = xyes; then :
19240   cat >>confdefs.h <<_ACEOF
19241 #define HAVE_MAGIC_H 1
19242 _ACEOF
19243
19244       save_ldflags="$LDFLAGS"
19245       LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS"
19246       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19247 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19248 if ${ac_cv_lib_magic_magic_open+:} false; then :
19249   $as_echo_n "(cached) " >&6
19250 else
19251   ac_check_lib_save_LIBS=$LIBS
19252 LIBS="-lmagic  $LIBS"
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h.  */
19255
19256 /* Override any GCC internal prototype to avoid an error.
19257    Use char because int might match the return type of a GCC
19258    builtin and then its argument prototype would still apply.  */
19259 #ifdef __cplusplus
19260 extern "C"
19261 #endif
19262 char magic_open ();
19263 int
19264 main ()
19265 {
19266 return magic_open ();
19267   ;
19268   return 0;
19269 }
19270 _ACEOF
19271 if ac_fn_c_try_link "$LINENO"; then :
19272   ac_cv_lib_magic_magic_open=yes
19273 else
19274   ac_cv_lib_magic_magic_open=no
19275 fi
19276 rm -f core conftest.err conftest.$ac_objext \
19277     conftest$ac_exeext conftest.$ac_ext
19278 LIBS=$ac_check_lib_save_LIBS
19279 fi
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19281 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19282 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19283   libmagic_found="yes"
19284 fi
19285
19286       LDFLAGS="$save_ldflags"
19287
19288 fi
19289
19290 done
19291
19292     CPPFLAGS="$save_cppflags"
19293   fi
19294   if test "$withval" != "no" && test "$libmagic_found" = "no"; then
19295     as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
19296   fi
19297
19298 else
19299
19300   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19301 if test "x$ac_cv_header_magic_h" = xyes; then :
19302
19303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19304 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19305 if ${ac_cv_lib_magic_magic_open+:} false; then :
19306   $as_echo_n "(cached) " >&6
19307 else
19308   ac_check_lib_save_LIBS=$LIBS
19309 LIBS="-lmagic  $LIBS"
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h.  */
19312
19313 /* Override any GCC internal prototype to avoid an error.
19314    Use char because int might match the return type of a GCC
19315    builtin and then its argument prototype would still apply.  */
19316 #ifdef __cplusplus
19317 extern "C"
19318 #endif
19319 char magic_open ();
19320 int
19321 main ()
19322 {
19323 return magic_open ();
19324   ;
19325   return 0;
19326 }
19327 _ACEOF
19328 if ac_fn_c_try_link "$LINENO"; then :
19329   ac_cv_lib_magic_magic_open=yes
19330 else
19331   ac_cv_lib_magic_magic_open=no
19332 fi
19333 rm -f core conftest.err conftest.$ac_objext \
19334     conftest$ac_exeext conftest.$ac_ext
19335 LIBS=$ac_check_lib_save_LIBS
19336 fi
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19338 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19339 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19340   libmagic_found="builtin"
19341 fi
19342
19343
19344 fi
19345
19346
19347
19348 fi
19349
19350
19351 if test "$libmagic_found" != "no"; then
19352
19353 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
19354
19355   SVN_MAGIC_LIBS="-lmagic"
19356 fi
19357
19358 if test "$libmagic_found" = "yes"; then
19359   SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
19360   LDFLAGS="$LDFLAGS `
19361   input_flags="-L$libmagic_prefix/lib"
19362   output_flags=""
19363   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19364   for flag in $input_flags; do
19365     filter="no"
19366     for dir in $filtered_dirs; do
19367       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19368         filter="yes"
19369         break
19370       fi
19371     done
19372     if test "$filter" = "no"; then
19373       output_flags="$output_flags $flag"
19374     fi
19375   done
19376   if test -n "$output_flags"; then
19377     printf "%s" "${output_flags# }"
19378   fi
19379 `"
19380 fi
19381
19382
19383
19384
19385
19386
19387 # Check whether --with-kwallet was given.
19388 if test "${with_kwallet+set}" = set; then :
19389   withval=$with_kwallet; svn_lib_kwallet="$withval"
19390 else
19391   svn_lib_kwallet=no
19392 fi
19393
19394
19395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
19396 $as_echo_n "checking whether to look for KWallet... " >&6; }
19397   if test "$svn_lib_kwallet" != "no"; then
19398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19399 $as_echo "yes" >&6; }
19400     if test "$svn_enable_shared" = "yes"; then
19401       if test "$APR_HAS_DSO" = "yes"; then
19402         if test -n "$PKG_CONFIG"; then
19403           if test "$HAVE_DBUS" = "yes"; then
19404             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
19405 $as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
19406             if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
19407               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19408 $as_echo "yes" >&6; }
19409               if test "$svn_lib_kwallet" != "yes"; then
19410                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
19411 $as_echo_n "checking for kde4-config... " >&6; }
19412                 KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
19413                 if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
19414                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19415 $as_echo "yes" >&6; }
19416                 else
19417                   KDE4_CONFIG=""
19418                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19419 $as_echo "no" >&6; }
19420                 fi
19421               else
19422                 # Extract the first word of "kde4-config", so it can be a program name with args.
19423 set dummy kde4-config; ac_word=$2
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19425 $as_echo_n "checking for $ac_word... " >&6; }
19426 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
19427   $as_echo_n "(cached) " >&6
19428 else
19429   case $KDE4_CONFIG in
19430   [\\/]* | ?:[\\/]*)
19431   ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
19432   ;;
19433   *)
19434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435 for as_dir in $PATH
19436 do
19437   IFS=$as_save_IFS
19438   test -z "$as_dir" && as_dir=.
19439     for ac_exec_ext in '' $ac_executable_extensions; do
19440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19441     ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19443     break 2
19444   fi
19445 done
19446   done
19447 IFS=$as_save_IFS
19448
19449   ;;
19450 esac
19451 fi
19452 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
19453 if test -n "$KDE4_CONFIG"; then
19454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
19455 $as_echo "$KDE4_CONFIG" >&6; }
19456 else
19457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458 $as_echo "no" >&6; }
19459 fi
19460
19461
19462               fi
19463               if test -n "$KDE4_CONFIG"; then
19464                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
19465 $as_echo_n "checking for KWallet... " >&6; }
19466                 old_CXXFLAGS="$CXXFLAGS"
19467                 old_LDFLAGS="$LDFLAGS"
19468                 old_LIBS="$LIBS"
19469                 for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
19470                   if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
19471                     CPPFLAGS="$CPPFLAGS $d"
19472                   fi
19473                 done
19474                 qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
19475                 kde_dir="`$KDE4_CONFIG --prefix`"
19476                 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
19477                 qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
19478                 SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
19479                 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
19480                 LIBS="$LIBS $SVN_KWALLET_LIBS"
19481                 qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
19482                 kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
19483                 LDFLAGS="$old_LDFLAGS `
19484   input_flags="$qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix"
19485   output_flags=""
19486   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19487   for flag in $input_flags; do
19488     filter="no"
19489     for dir in $filtered_dirs; do
19490       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19491         filter="yes"
19492         break
19493       fi
19494     done
19495     if test "$filter" = "no"; then
19496       output_flags="$output_flags $flag"
19497     fi
19498   done
19499   if test -n "$output_flags"; then
19500     printf "%s" "${output_flags# }"
19501   fi
19502 `"
19503                 ac_ext=cpp
19504 ac_cpp='$CXXCPP $CPPFLAGS'
19505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19508
19509                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19510 /* end confdefs.h.  */
19511
19512 #include <kwallet.h>
19513 int main()
19514 {KWallet::Wallet::walletList();}
19515 _ACEOF
19516 if ac_fn_cxx_try_link "$LINENO"; then :
19517   svn_lib_kwallet="yes"
19518 else
19519   svn_lib_kwallet="no"
19520 fi
19521 rm -f core conftest.err conftest.$ac_objext \
19522     conftest$ac_exeext conftest.$ac_ext
19523                 ac_ext=c
19524 ac_cpp='$CPP $CPPFLAGS'
19525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19528
19529                 if test "$svn_lib_kwallet" = "yes"; then
19530                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19531 $as_echo "yes" >&6; }
19532                   CXXFLAGS="$old_CXXFLAGS"
19533                   LIBS="$old_LIBS"
19534                 else
19535                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536 $as_echo "no" >&6; }
19537                   as_fn_error $? "cannot find KWallet" "$LINENO" 5
19538                 fi
19539               else
19540                 as_fn_error $? "cannot find kde4-config" "$LINENO" 5
19541               fi
19542             else
19543               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19544 $as_echo "no" >&6; }
19545               as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
19546             fi
19547           else
19548             as_fn_error $? "cannot find D-Bus" "$LINENO" 5
19549           fi
19550         else
19551           as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19552         fi
19553       else
19554         as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
19555       fi
19556     else
19557       as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
19558     fi
19559   else
19560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19561 $as_echo "no" >&6; }
19562   fi
19563
19564
19565
19566
19567 if test "$svn_lib_kwallet" = "yes"; then
19568
19569 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
19570
19571 fi
19572
19573 # Check whether --enable-plaintext-password-storage was given.
19574 if test "${enable_plaintext_password_storage+set}" = set; then :
19575   enableval=$enable_plaintext_password_storage;
19576    if test "$enableval" = "no"; then
19577       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
19578 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
19579
19580 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
19581
19582    fi
19583
19584 fi
19585
19586
19587
19588 INSTALL_STATIC_RULES="install-bin install-docs"
19589 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
19590 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
19591 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
19592
19593 if test "$svn_lib_berkeley_db" = "yes"; then
19594   BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
19595   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
19596   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
19597   BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
19598   BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
19599 fi
19600
19601 if test "$svn_lib_serf" = "yes"; then
19602   BUILD_RULES="$BUILD_RULES serf-lib"
19603   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
19604   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
19605 fi
19606
19607 if test "$svn_lib_kwallet" = "yes"; then
19608   BUILD_RULES="$BUILD_RULES kwallet-lib"
19609   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
19610   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
19611 fi
19612
19613 if test "$found_gnome_keyring" = "yes"; then
19614   BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
19615   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
19616   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
19617 fi
19618
19619 if test "$USE_NLS" = "yes"; then
19620   BUILD_RULES="$BUILD_RULES locale"
19621   INSTALL_RULES="$INSTALL_RULES install-locale"
19622 fi
19623
19624
19625
19626
19627
19628
19629
19630
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19632 $as_echo_n "checking for ANSI C header files... " >&6; }
19633 if ${ac_cv_header_stdc+:} false; then :
19634   $as_echo_n "(cached) " >&6
19635 else
19636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h.  */
19638 #include <stdlib.h>
19639 #include <stdarg.h>
19640 #include <string.h>
19641 #include <float.h>
19642
19643 int
19644 main ()
19645 {
19646
19647   ;
19648   return 0;
19649 }
19650 _ACEOF
19651 if ac_fn_c_try_compile "$LINENO"; then :
19652   ac_cv_header_stdc=yes
19653 else
19654   ac_cv_header_stdc=no
19655 fi
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657
19658 if test $ac_cv_header_stdc = yes; then
19659   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h.  */
19662 #include <string.h>
19663
19664 _ACEOF
19665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19666   $EGREP "memchr" >/dev/null 2>&1; then :
19667
19668 else
19669   ac_cv_header_stdc=no
19670 fi
19671 rm -f conftest*
19672
19673 fi
19674
19675 if test $ac_cv_header_stdc = yes; then
19676   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h.  */
19679 #include <stdlib.h>
19680
19681 _ACEOF
19682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19683   $EGREP "free" >/dev/null 2>&1; then :
19684
19685 else
19686   ac_cv_header_stdc=no
19687 fi
19688 rm -f conftest*
19689
19690 fi
19691
19692 if test $ac_cv_header_stdc = yes; then
19693   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19694   if test "$cross_compiling" = yes; then :
19695   :
19696 else
19697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698 /* end confdefs.h.  */
19699 #include <ctype.h>
19700 #include <stdlib.h>
19701 #if ((' ' & 0x0FF) == 0x020)
19702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19704 #else
19705 # define ISLOWER(c) \
19706                    (('a' <= (c) && (c) <= 'i') \
19707                      || ('j' <= (c) && (c) <= 'r') \
19708                      || ('s' <= (c) && (c) <= 'z'))
19709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19710 #endif
19711
19712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19713 int
19714 main ()
19715 {
19716   int i;
19717   for (i = 0; i < 256; i++)
19718     if (XOR (islower (i), ISLOWER (i))
19719         || toupper (i) != TOUPPER (i))
19720       return 2;
19721   return 0;
19722 }
19723 _ACEOF
19724 if ac_fn_c_try_run "$LINENO"; then :
19725
19726 else
19727   ac_cv_header_stdc=no
19728 fi
19729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19730   conftest.$ac_objext conftest.beam conftest.$ac_ext
19731 fi
19732
19733 fi
19734 fi
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19736 $as_echo "$ac_cv_header_stdc" >&6; }
19737 if test $ac_cv_header_stdc = yes; then
19738
19739 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19740
19741 fi
19742
19743
19744
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19746 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19747 if ${ac_cv_c_const+:} false; then :
19748   $as_echo_n "(cached) " >&6
19749 else
19750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h.  */
19752
19753 int
19754 main ()
19755 {
19756
19757 #ifndef __cplusplus
19758   /* Ultrix mips cc rejects this sort of thing.  */
19759   typedef int charset[2];
19760   const charset cs = { 0, 0 };
19761   /* SunOS 4.1.1 cc rejects this.  */
19762   char const *const *pcpcc;
19763   char **ppc;
19764   /* NEC SVR4.0.2 mips cc rejects this.  */
19765   struct point {int x, y;};
19766   static struct point const zero = {0,0};
19767   /* AIX XL C 1.02.0.0 rejects this.
19768      It does not let you subtract one const X* pointer from another in
19769      an arm of an if-expression whose if-part is not a constant
19770      expression */
19771   const char *g = "string";
19772   pcpcc = &g + (g ? g-g : 0);
19773   /* HPUX 7.0 cc rejects these. */
19774   ++pcpcc;
19775   ppc = (char**) pcpcc;
19776   pcpcc = (char const *const *) ppc;
19777   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19778     char tx;
19779     char *t = &tx;
19780     char const *s = 0 ? (char *) 0 : (char const *) 0;
19781
19782     *t++ = 0;
19783     if (s) return 0;
19784   }
19785   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19786     int x[] = {25, 17};
19787     const int *foo = &x[0];
19788     ++foo;
19789   }
19790   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19791     typedef const int *iptr;
19792     iptr p = 0;
19793     ++p;
19794   }
19795   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19796        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19797     struct s { int j; const int *ap[3]; } bx;
19798     struct s *b = &bx; b->j = 5;
19799   }
19800   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19801     const int foo = 10;
19802     if (!foo) return 0;
19803   }
19804   return !cs[0] && !zero.x;
19805 #endif
19806
19807   ;
19808   return 0;
19809 }
19810 _ACEOF
19811 if ac_fn_c_try_compile "$LINENO"; then :
19812   ac_cv_c_const=yes
19813 else
19814   ac_cv_c_const=no
19815 fi
19816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19817 fi
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19819 $as_echo "$ac_cv_c_const" >&6; }
19820 if test $ac_cv_c_const = no; then
19821
19822 $as_echo "#define const /**/" >>confdefs.h
19823
19824 fi
19825
19826
19827 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19828 if test "x$ac_cv_type_size_t" = xyes; then :
19829
19830 else
19831
19832 cat >>confdefs.h <<_ACEOF
19833 #define size_t unsigned int
19834 _ACEOF
19835
19836 fi
19837
19838
19839
19840
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19842 $as_echo_n "checking for working memcmp... " >&6; }
19843 if ${ac_cv_func_memcmp_working+:} false; then :
19844   $as_echo_n "(cached) " >&6
19845 else
19846   if test "$cross_compiling" = yes; then :
19847   ac_cv_func_memcmp_working=no
19848 else
19849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850 /* end confdefs.h.  */
19851 $ac_includes_default
19852 int
19853 main ()
19854 {
19855
19856   /* Some versions of memcmp are not 8-bit clean.  */
19857   char c0 = '\100', c1 = '\200', c2 = '\201';
19858   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19859     return 1;
19860
19861   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19862      or more and with at least one buffer not starting on a 4-byte boundary.
19863      William Lewis provided this test program.   */
19864   {
19865     char foo[21];
19866     char bar[21];
19867     int i;
19868     for (i = 0; i < 4; i++)
19869       {
19870         char *a = foo + i;
19871         char *b = bar + i;
19872         strcpy (a, "--------01111111");
19873         strcpy (b, "--------10000000");
19874         if (memcmp (a, b, 16) >= 0)
19875           return 1;
19876       }
19877     return 0;
19878   }
19879
19880   ;
19881   return 0;
19882 }
19883 _ACEOF
19884 if ac_fn_c_try_run "$LINENO"; then :
19885   ac_cv_func_memcmp_working=yes
19886 else
19887   ac_cv_func_memcmp_working=no
19888 fi
19889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19890   conftest.$ac_objext conftest.beam conftest.$ac_ext
19891 fi
19892
19893 fi
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19895 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19896 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19897   *" memcmp.$ac_objext "* ) ;;
19898   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19899  ;;
19900 esac
19901
19902
19903
19904 for ac_func in vprintf
19905 do :
19906   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19907 if test "x$ac_cv_func_vprintf" = xyes; then :
19908   cat >>confdefs.h <<_ACEOF
19909 #define HAVE_VPRINTF 1
19910 _ACEOF
19911
19912 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19913 if test "x$ac_cv_func__doprnt" = xyes; then :
19914
19915 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19916
19917 fi
19918
19919 fi
19920 done
19921
19922
19923
19924 for ac_func in symlink readlink
19925 do :
19926   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19927 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19928 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19929   cat >>confdefs.h <<_ACEOF
19930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19931 _ACEOF
19932
19933 fi
19934 done
19935
19936
19937 for ac_header in sys/utsname.h
19938 do :
19939   ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19940 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
19941   cat >>confdefs.h <<_ACEOF
19942 #define HAVE_SYS_UTSNAME_H 1
19943 _ACEOF
19944  for ac_func in uname
19945 do :
19946   ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
19947 if test "x$ac_cv_func_uname" = xyes; then :
19948   cat >>confdefs.h <<_ACEOF
19949 #define HAVE_UNAME 1
19950 _ACEOF
19951
19952 fi
19953 done
19954
19955 fi
19956
19957 done
19958
19959
19960 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19961 if test "x$ac_cv_header_termios_h" = xyes; then :
19962
19963   for ac_func in tcgetattr tcsetattr
19964 do :
19965   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19967 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19968   cat >>confdefs.h <<_ACEOF
19969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19970 _ACEOF
19971
19972
19973 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
19974
19975
19976 fi
19977 done
19978
19979
19980 fi
19981
19982
19983
19984
19985
19986 # Check whether --with-openssl was given.
19987 if test "${with_openssl+set}" = set; then :
19988   withval=$with_openssl;
19989 fi
19990
19991
19992 # Check whether --enable-debug was given.
19993 if test "${enable_debug+set}" = set; then :
19994   enableval=$enable_debug;
19995     if test "$enableval" = "yes" ; then
19996       enable_debugging="yes"
19997     else
19998       enable_debugging="no"
19999     fi
20000
20001 else
20002
20003     # Neither --enable-debug nor --disable-debug was passed.
20004     enable_debugging="maybe"
20005
20006 fi
20007
20008
20009 # Check whether --enable-optimize was given.
20010 if test "${enable_optimize+set}" = set; then :
20011   enableval=$enable_optimize;
20012     if test "$enableval" = "yes" ; then
20013       enable_optimization="yes"
20014     else
20015       enable_optimization="no"
20016     fi
20017
20018 else
20019
20020     # Neither --enable-optimize nor --disable-optimize was passed.
20021     enable_optimization="maybe"
20022
20023 fi
20024
20025
20026 # Check whether --enable-disallowing-of-undefined-references was given.
20027 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
20028   enableval=$enable_disallowing_of_undefined_references;
20029 fi
20030
20031 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
20032   enable_disallowing_of_undefined_references="no"
20033 fi
20034 if test "$enable_disallowing_of_undefined_references" != "no"; then
20035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
20036 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
20037   old_LDFLAGS="$LDFLAGS"
20038   LDFLAGS="$LDFLAGS -Wl,--no-undefined"
20039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h.  */
20041 int main(){;}
20042 _ACEOF
20043 if ac_fn_c_try_link "$LINENO"; then :
20044   svn_wl_no_undefined="yes"
20045 else
20046   svn_wl_no_undefined="no"
20047 fi
20048 rm -f core conftest.err conftest.$ac_objext \
20049     conftest$ac_exeext conftest.$ac_ext
20050   LDFLAGS="$old_LDFLAGS"
20051   if test "$svn_wl_no_undefined" = "yes"; then
20052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20053 $as_echo "yes" >&6; }
20054     for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
20055       eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
20056     done
20057   else
20058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20059 $as_echo "no" >&6; }
20060     if test "$enable_disallowing_of_undefined_references" = "yes"; then
20061       as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
20062     fi
20063   fi
20064 fi
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083 # Check whether --enable-maintainer-mode was given.
20084 if test "${enable_maintainer_mode+set}" = set; then :
20085   enableval=$enable_maintainer_mode;
20086     if test "$enableval" = "yes" ; then
20087       if test "$enable_debugging" = "no" ; then
20088         as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
20089       fi
20090       enable_debugging=yes
20091
20092                   if test "$GCC" = "yes"; then
20093         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
20094 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20095
20096
20097                 CFLAGS_KEEP="$CFLAGS"
20098         CFLAGS=""
20099
20100
20101   _svn_xxflags__save="$CFLAGS"
20102   ac_ext=c
20103 ac_cpp='$CPP $CPPFLAGS'
20104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20107
20108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20109 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20110   CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20111         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112 /* end confdefs.h.  */
20113 int main(void){return 0;}
20114 _ACEOF
20115 if ac_fn_c_try_link "$LINENO"; then :
20116
20117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20118 $as_echo "yes" >&6; }
20119
20120
20121 else
20122
20123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124 $as_echo "no" >&6; }
20125     CFLAGS="$_svn_xxflags__save"
20126
20127
20128 fi
20129 rm -f core conftest.err conftest.$ac_objext \
20130     conftest$ac_exeext conftest.$ac_ext
20131   ac_ext=c
20132 ac_cpp='$CPP $CPPFLAGS'
20133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20136
20137
20138
20139   _svn_xxflags__save="$CFLAGS"
20140   ac_ext=c
20141 ac_cpp='$CPP $CPPFLAGS'
20142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20145
20146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20147 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20148   CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20149         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150 /* end confdefs.h.  */
20151 int main(void){return 0;}
20152 _ACEOF
20153 if ac_fn_c_try_link "$LINENO"; then :
20154
20155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20156 $as_echo "yes" >&6; }
20157
20158
20159 else
20160
20161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20162 $as_echo "no" >&6; }
20163     CFLAGS="$_svn_xxflags__save"
20164
20165
20166 fi
20167 rm -f core conftest.err conftest.$ac_objext \
20168     conftest$ac_exeext conftest.$ac_ext
20169   ac_ext=c
20170 ac_cpp='$CPP $CPPFLAGS'
20171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20174
20175
20176
20177   _svn_xxflags__save="$CFLAGS"
20178   ac_ext=c
20179 ac_cpp='$CPP $CPPFLAGS'
20180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20183
20184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
20185 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
20186   CFLAGS="-Wextra-tokens $CFLAGS"
20187         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188 /* end confdefs.h.  */
20189 int main(void){return 0;}
20190 _ACEOF
20191 if ac_fn_c_try_link "$LINENO"; then :
20192
20193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194 $as_echo "yes" >&6; }
20195
20196
20197 else
20198
20199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20200 $as_echo "no" >&6; }
20201     CFLAGS="$_svn_xxflags__save"
20202
20203
20204 fi
20205 rm -f core conftest.err conftest.$ac_objext \
20206     conftest$ac_exeext conftest.$ac_ext
20207   ac_ext=c
20208 ac_cpp='$CPP $CPPFLAGS'
20209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20212
20213
20214
20215   _svn_xxflags__save="$CFLAGS"
20216   ac_ext=c
20217 ac_cpp='$CPP $CPPFLAGS'
20218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20221
20222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
20223 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
20224   CFLAGS="-Wnewline-eof $CFLAGS"
20225         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20226 /* end confdefs.h.  */
20227 int main(void){return 0;}
20228 _ACEOF
20229 if ac_fn_c_try_link "$LINENO"; then :
20230
20231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20232 $as_echo "yes" >&6; }
20233
20234
20235 else
20236
20237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238 $as_echo "no" >&6; }
20239     CFLAGS="$_svn_xxflags__save"
20240
20241
20242 fi
20243 rm -f core conftest.err conftest.$ac_objext \
20244     conftest$ac_exeext conftest.$ac_ext
20245   ac_ext=c
20246 ac_cpp='$CPP $CPPFLAGS'
20247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20250
20251
20252
20253   _svn_xxflags__save="$CFLAGS"
20254   ac_ext=c
20255 ac_cpp='$CPP $CPPFLAGS'
20256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20259
20260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
20261 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
20262   CFLAGS="-Wshorten-64-to-32 $CFLAGS"
20263         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h.  */
20265 int main(void){return 0;}
20266 _ACEOF
20267 if ac_fn_c_try_link "$LINENO"; then :
20268
20269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20270 $as_echo "yes" >&6; }
20271
20272
20273 else
20274
20275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20276 $as_echo "no" >&6; }
20277     CFLAGS="$_svn_xxflags__save"
20278
20279
20280 fi
20281 rm -f core conftest.err conftest.$ac_objext \
20282     conftest$ac_exeext conftest.$ac_ext
20283   ac_ext=c
20284 ac_cpp='$CPP $CPPFLAGS'
20285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288
20289
20290
20291   _svn_xxflags__save="$CFLAGS"
20292   ac_ext=c
20293 ac_cpp='$CPP $CPPFLAGS'
20294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20297
20298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
20299 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
20300   CFLAGS="-Wold-style-definition $CFLAGS"
20301         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h.  */
20303 int main(void){return 0;}
20304 _ACEOF
20305 if ac_fn_c_try_link "$LINENO"; then :
20306
20307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20308 $as_echo "yes" >&6; }
20309
20310
20311 else
20312
20313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20314 $as_echo "no" >&6; }
20315     CFLAGS="$_svn_xxflags__save"
20316
20317
20318 fi
20319 rm -f core conftest.err conftest.$ac_objext \
20320     conftest$ac_exeext conftest.$ac_ext
20321   ac_ext=c
20322 ac_cpp='$CPP $CPPFLAGS'
20323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20326
20327
20328
20329   _svn_xxflags__save="$CFLAGS"
20330   ac_ext=c
20331 ac_cpp='$CPP $CPPFLAGS'
20332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20335
20336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
20337 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
20338   CFLAGS="-Wno-system-headers $CFLAGS"
20339         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h.  */
20341 int main(void){return 0;}
20342 _ACEOF
20343 if ac_fn_c_try_link "$LINENO"; then :
20344
20345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20346 $as_echo "yes" >&6; }
20347
20348
20349 else
20350
20351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20352 $as_echo "no" >&6; }
20353     CFLAGS="$_svn_xxflags__save"
20354
20355
20356 fi
20357 rm -f core conftest.err conftest.$ac_objext \
20358     conftest$ac_exeext conftest.$ac_ext
20359   ac_ext=c
20360 ac_cpp='$CPP $CPPFLAGS'
20361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20364
20365
20366
20367   _svn_xxflags__save="$CFLAGS"
20368   ac_ext=c
20369 ac_cpp='$CPP $CPPFLAGS'
20370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20373
20374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
20375 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
20376   CFLAGS="-Wno-format-nonliteral $CFLAGS"
20377         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h.  */
20379 int main(void){return 0;}
20380 _ACEOF
20381 if ac_fn_c_try_link "$LINENO"; then :
20382
20383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20384 $as_echo "yes" >&6; }
20385
20386
20387 else
20388
20389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20390 $as_echo "no" >&6; }
20391     CFLAGS="$_svn_xxflags__save"
20392
20393
20394 fi
20395 rm -f core conftest.err conftest.$ac_objext \
20396     conftest$ac_exeext conftest.$ac_ext
20397   ac_ext=c
20398 ac_cpp='$CPP $CPPFLAGS'
20399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20402
20403
20404
20405         CMAINTAINERFLAGS="$CFLAGS $CMAINTAINERFLAGS"
20406         CFLAGS="$CFLAGS_KEEP"
20407
20408                 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"
20409       fi
20410       if test "$GXX" = "yes"; then
20411         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
20412 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
20413
20414                 CXXFLAGS_KEEP="$CXXFLAGS"
20415         CXXFLAGS=""
20416
20417
20418   _svn_xxflags__save="$CXXFLAGS"
20419   ac_ext=cpp
20420 ac_cpp='$CXXCPP $CPPFLAGS'
20421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20424
20425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
20426 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
20427   CXXFLAGS="-Wextra-tokens $CXXFLAGS"
20428         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20429 /* end confdefs.h.  */
20430 int main(){}
20431 _ACEOF
20432 if ac_fn_cxx_try_link "$LINENO"; then :
20433
20434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20435 $as_echo "yes" >&6; }
20436
20437
20438 else
20439
20440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441 $as_echo "no" >&6; }
20442     CXXFLAGS="$_svn_xxflags__save"
20443
20444
20445 fi
20446 rm -f core conftest.err conftest.$ac_objext \
20447     conftest$ac_exeext conftest.$ac_ext
20448   ac_ext=c
20449 ac_cpp='$CPP $CPPFLAGS'
20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454
20455
20456   _svn_xxflags__save="$CXXFLAGS"
20457   ac_ext=cpp
20458 ac_cpp='$CXXCPP $CPPFLAGS'
20459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20462
20463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
20464 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
20465   CXXFLAGS="-Wnewline-eof $CXXFLAGS"
20466         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h.  */
20468 int main(){}
20469 _ACEOF
20470 if ac_fn_cxx_try_link "$LINENO"; then :
20471
20472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20473 $as_echo "yes" >&6; }
20474
20475
20476 else
20477
20478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20479 $as_echo "no" >&6; }
20480     CXXFLAGS="$_svn_xxflags__save"
20481
20482
20483 fi
20484 rm -f core conftest.err conftest.$ac_objext \
20485     conftest$ac_exeext conftest.$ac_ext
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
20493
20494   _svn_xxflags__save="$CXXFLAGS"
20495   ac_ext=cpp
20496 ac_cpp='$CXXCPP $CPPFLAGS'
20497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20500
20501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
20502 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
20503   CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
20504         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h.  */
20506 int main(){}
20507 _ACEOF
20508 if ac_fn_cxx_try_link "$LINENO"; then :
20509
20510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20511 $as_echo "yes" >&6; }
20512
20513
20514 else
20515
20516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20517 $as_echo "no" >&6; }
20518     CXXFLAGS="$_svn_xxflags__save"
20519
20520
20521 fi
20522 rm -f core conftest.err conftest.$ac_objext \
20523     conftest$ac_exeext conftest.$ac_ext
20524   ac_ext=c
20525 ac_cpp='$CPP $CPPFLAGS'
20526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20529
20530
20531
20532   _svn_xxflags__save="$CXXFLAGS"
20533   ac_ext=cpp
20534 ac_cpp='$CXXCPP $CPPFLAGS'
20535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20538
20539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
20540 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
20541   CXXFLAGS="-Wno-system-headers $CXXFLAGS"
20542         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h.  */
20544 int main(){}
20545 _ACEOF
20546 if ac_fn_cxx_try_link "$LINENO"; then :
20547
20548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20549 $as_echo "yes" >&6; }
20550
20551
20552 else
20553
20554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20555 $as_echo "no" >&6; }
20556     CXXFLAGS="$_svn_xxflags__save"
20557
20558
20559 fi
20560 rm -f core conftest.err conftest.$ac_objext \
20561     conftest$ac_exeext conftest.$ac_ext
20562   ac_ext=c
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567
20568
20569
20570         CXXMAINTAINERFLAGS="$CXXFLAGS $CXXMAINTAINERFLAGS"
20571         CXXFLAGS="$CXXFLAGS_KEEP"
20572
20573                 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
20574       fi
20575     fi
20576
20577 fi
20578
20579
20580 if test "$enable_debugging" = "yes" ; then
20581       if test "$enable_optimization" != "yes"; then
20582     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
20583 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
20584     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20585     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20586   fi
20587     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20588     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
20589 $as_echo "$as_me: Enabling debugging for C" >&6;}
20590     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20591
20592   _svn_xxflags__save="$CFLAGS"
20593   ac_ext=c
20594 ac_cpp='$CPP $CPPFLAGS'
20595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20598
20599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
20600 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
20601   CFLAGS="-fno-inline $CFLAGS"
20602         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603 /* end confdefs.h.  */
20604 int main(void){return 0;}
20605 _ACEOF
20606 if ac_fn_c_try_link "$LINENO"; then :
20607
20608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20609 $as_echo "yes" >&6; }
20610
20611
20612 else
20613
20614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20615 $as_echo "no" >&6; }
20616     CFLAGS="$_svn_xxflags__save"
20617
20618
20619 fi
20620 rm -f core conftest.err conftest.$ac_objext \
20621     conftest$ac_exeext conftest.$ac_ext
20622   ac_ext=c
20623 ac_cpp='$CPP $CPPFLAGS'
20624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20627
20628
20629
20630   _svn_xxflags__save="$CFLAGS"
20631   ac_ext=c
20632 ac_cpp='$CPP $CPPFLAGS'
20633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20636
20637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
20638 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
20639   CFLAGS="-fno-omit-frame-pointer $CFLAGS"
20640         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h.  */
20642 int main(void){return 0;}
20643 _ACEOF
20644 if ac_fn_c_try_link "$LINENO"; then :
20645
20646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20647 $as_echo "yes" >&6; }
20648
20649
20650 else
20651
20652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 $as_echo "no" >&6; }
20654     CFLAGS="$_svn_xxflags__save"
20655
20656
20657 fi
20658 rm -f core conftest.err conftest.$ac_objext \
20659     conftest$ac_exeext conftest.$ac_ext
20660   ac_ext=c
20661 ac_cpp='$CPP $CPPFLAGS'
20662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
20666
20667
20668   _svn_xxflags__save="$CFLAGS"
20669   ac_ext=c
20670 ac_cpp='$CPP $CPPFLAGS'
20671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20674
20675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
20676 $as_echo_n "checking if $CC accepts -g3... " >&6; }
20677   CFLAGS="-g3 $CFLAGS"
20678         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h.  */
20680 int main(void){return 0;}
20681 _ACEOF
20682 if ac_fn_c_try_link "$LINENO"; then :
20683
20684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20685 $as_echo "yes" >&6; }
20686
20687
20688 else
20689
20690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20691 $as_echo "no" >&6; }
20692     CFLAGS="$_svn_xxflags__save"
20693
20694
20695   _svn_xxflags__save="$CFLAGS"
20696   ac_ext=c
20697 ac_cpp='$CPP $CPPFLAGS'
20698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
20703 $as_echo_n "checking if $CC accepts -g2... " >&6; }
20704   CFLAGS="-g2 $CFLAGS"
20705         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20706 /* end confdefs.h.  */
20707 int main(void){return 0;}
20708 _ACEOF
20709 if ac_fn_c_try_link "$LINENO"; then :
20710
20711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20712 $as_echo "yes" >&6; }
20713
20714
20715 else
20716
20717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20718 $as_echo "no" >&6; }
20719     CFLAGS="$_svn_xxflags__save"
20720
20721
20722   _svn_xxflags__save="$CFLAGS"
20723   ac_ext=c
20724 ac_cpp='$CPP $CPPFLAGS'
20725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20728
20729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
20730 $as_echo_n "checking if $CC accepts -g... " >&6; }
20731   CFLAGS="-g $CFLAGS"
20732         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733 /* end confdefs.h.  */
20734 int main(void){return 0;}
20735 _ACEOF
20736 if ac_fn_c_try_link "$LINENO"; then :
20737
20738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20739 $as_echo "yes" >&6; }
20740
20741
20742 else
20743
20744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20745 $as_echo "no" >&6; }
20746     CFLAGS="$_svn_xxflags__save"
20747
20748
20749 fi
20750 rm -f core conftest.err conftest.$ac_objext \
20751     conftest$ac_exeext conftest.$ac_ext
20752   ac_ext=c
20753 ac_cpp='$CPP $CPPFLAGS'
20754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20757
20758
20759
20760 fi
20761 rm -f core conftest.err conftest.$ac_objext \
20762     conftest$ac_exeext conftest.$ac_ext
20763   ac_ext=c
20764 ac_cpp='$CPP $CPPFLAGS'
20765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20768
20769
20770
20771 fi
20772 rm -f core conftest.err conftest.$ac_objext \
20773     conftest$ac_exeext conftest.$ac_ext
20774   ac_ext=c
20775 ac_cpp='$CPP $CPPFLAGS'
20776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20779
20780
20781   fi
20782   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20783     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
20784 $as_echo "$as_me: Enabling debugging for C++" >&6;}
20785     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20786
20787   _svn_xxflags__save="$CXXFLAGS"
20788   ac_ext=cpp
20789 ac_cpp='$CXXCPP $CPPFLAGS'
20790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793
20794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
20795 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
20796   CXXFLAGS="-fno-inline $CXXFLAGS"
20797         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h.  */
20799 int main(){}
20800 _ACEOF
20801 if ac_fn_cxx_try_link "$LINENO"; then :
20802
20803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20804 $as_echo "yes" >&6; }
20805
20806
20807 else
20808
20809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20810 $as_echo "no" >&6; }
20811     CXXFLAGS="$_svn_xxflags__save"
20812
20813
20814 fi
20815 rm -f core conftest.err conftest.$ac_objext \
20816     conftest$ac_exeext conftest.$ac_ext
20817   ac_ext=c
20818 ac_cpp='$CPP $CPPFLAGS'
20819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823
20824
20825   _svn_xxflags__save="$CXXFLAGS"
20826   ac_ext=cpp
20827 ac_cpp='$CXXCPP $CPPFLAGS'
20828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20831
20832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
20833 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
20834   CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
20835         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20836 /* end confdefs.h.  */
20837 int main(){}
20838 _ACEOF
20839 if ac_fn_cxx_try_link "$LINENO"; then :
20840
20841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20842 $as_echo "yes" >&6; }
20843
20844
20845 else
20846
20847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20848 $as_echo "no" >&6; }
20849     CXXFLAGS="$_svn_xxflags__save"
20850
20851
20852 fi
20853 rm -f core conftest.err conftest.$ac_objext \
20854     conftest$ac_exeext conftest.$ac_ext
20855   ac_ext=c
20856 ac_cpp='$CPP $CPPFLAGS'
20857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860
20861
20862
20863   _svn_xxflags__save="$CXXFLAGS"
20864   ac_ext=cpp
20865 ac_cpp='$CXXCPP $CPPFLAGS'
20866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20869
20870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
20871 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
20872   CXXFLAGS="-g3 $CXXFLAGS"
20873         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h.  */
20875 int main(){}
20876 _ACEOF
20877 if ac_fn_cxx_try_link "$LINENO"; then :
20878
20879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20880 $as_echo "yes" >&6; }
20881
20882
20883 else
20884
20885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20886 $as_echo "no" >&6; }
20887     CXXFLAGS="$_svn_xxflags__save"
20888
20889
20890   _svn_xxflags__save="$CXXFLAGS"
20891   ac_ext=cpp
20892 ac_cpp='$CXXCPP $CPPFLAGS'
20893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20896
20897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
20898 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
20899   CXXFLAGS="-g2 $CXXFLAGS"
20900         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h.  */
20902 int main(){}
20903 _ACEOF
20904 if ac_fn_cxx_try_link "$LINENO"; then :
20905
20906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20907 $as_echo "yes" >&6; }
20908
20909
20910 else
20911
20912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20913 $as_echo "no" >&6; }
20914     CXXFLAGS="$_svn_xxflags__save"
20915
20916
20917   _svn_xxflags__save="$CXXFLAGS"
20918   ac_ext=cpp
20919 ac_cpp='$CXXCPP $CPPFLAGS'
20920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20923
20924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
20925 $as_echo_n "checking if $CXX accepts -g... " >&6; }
20926   CXXFLAGS="-g $CXXFLAGS"
20927         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h.  */
20929 int main(){}
20930 _ACEOF
20931 if ac_fn_cxx_try_link "$LINENO"; then :
20932
20933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20934 $as_echo "yes" >&6; }
20935
20936
20937 else
20938
20939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20940 $as_echo "no" >&6; }
20941     CXXFLAGS="$_svn_xxflags__save"
20942
20943
20944 fi
20945 rm -f core conftest.err conftest.$ac_objext \
20946     conftest$ac_exeext conftest.$ac_ext
20947   ac_ext=cpp
20948 ac_cpp='$CXXCPP $CPPFLAGS'
20949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952
20953
20954
20955 fi
20956 rm -f core conftest.err conftest.$ac_objext \
20957     conftest$ac_exeext conftest.$ac_ext
20958   ac_ext=cpp
20959 ac_cpp='$CXXCPP $CPPFLAGS'
20960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20963
20964
20965
20966 fi
20967 rm -f core conftest.err conftest.$ac_objext \
20968     conftest$ac_exeext conftest.$ac_ext
20969   ac_ext=c
20970 ac_cpp='$CPP $CPPFLAGS'
20971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20974
20975
20976   fi
20977       CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
20978   CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
20979 elif test "$enable_debugging" = "no" ; then
20980   { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
20981 $as_echo "$as_me: Disabling debugging" >&6;}
20982   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20983   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20984     CFLAGS="$CFLAGS -DNDEBUG"
20985   CXXFLAGS="$CXXFLAGS -DNDEBUG"
20986 # elif test "$enable_debugging" = "maybe" ; then
20987 #   # do nothing
20988 fi
20989
20990 if test "$enable_optimization" = "yes"; then
20991     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
20992     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20993     if test "$enable_debugging" = "yes"; then
20994       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
20995 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
20996
20997   _svn_xxflags__save="$CFLAGS"
20998   ac_ext=c
20999 ac_cpp='$CPP $CPPFLAGS'
21000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21003
21004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21005 $as_echo_n "checking if $CC accepts -O1... " >&6; }
21006   CFLAGS="-O1 $CFLAGS"
21007         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h.  */
21009 int main(void){return 0;}
21010 _ACEOF
21011 if ac_fn_c_try_link "$LINENO"; then :
21012
21013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21014 $as_echo "yes" >&6; }
21015
21016
21017 else
21018
21019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21020 $as_echo "no" >&6; }
21021     CFLAGS="$_svn_xxflags__save"
21022
21023
21024   _svn_xxflags__save="$CFLAGS"
21025   ac_ext=c
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21032 $as_echo_n "checking if $CC accepts -O... " >&6; }
21033   CFLAGS="-O $CFLAGS"
21034         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h.  */
21036 int main(void){return 0;}
21037 _ACEOF
21038 if ac_fn_c_try_link "$LINENO"; then :
21039
21040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21041 $as_echo "yes" >&6; }
21042
21043
21044 else
21045
21046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21047 $as_echo "no" >&6; }
21048     CFLAGS="$_svn_xxflags__save"
21049
21050
21051 fi
21052 rm -f core conftest.err conftest.$ac_objext \
21053     conftest$ac_exeext conftest.$ac_ext
21054   ac_ext=c
21055 ac_cpp='$CPP $CPPFLAGS'
21056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21059
21060
21061
21062 fi
21063 rm -f core conftest.err conftest.$ac_objext \
21064     conftest$ac_exeext conftest.$ac_ext
21065   ac_ext=c
21066 ac_cpp='$CPP $CPPFLAGS'
21067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21070
21071
21072     else
21073       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
21074 $as_echo "$as_me: Enabling optimizations for C" >&6;}
21075
21076   _svn_xxflags__save="$CFLAGS"
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
21084 $as_echo_n "checking if $CC accepts -O3... " >&6; }
21085   CFLAGS="-O3 $CFLAGS"
21086         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087 /* end confdefs.h.  */
21088 int main(void){return 0;}
21089 _ACEOF
21090 if ac_fn_c_try_link "$LINENO"; then :
21091
21092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21093 $as_echo "yes" >&6; }
21094
21095
21096 else
21097
21098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21099 $as_echo "no" >&6; }
21100     CFLAGS="$_svn_xxflags__save"
21101
21102
21103   _svn_xxflags__save="$CFLAGS"
21104   ac_ext=c
21105 ac_cpp='$CPP $CPPFLAGS'
21106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21109
21110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
21111 $as_echo_n "checking if $CC accepts -O2... " >&6; }
21112   CFLAGS="-O2 $CFLAGS"
21113         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h.  */
21115 int main(void){return 0;}
21116 _ACEOF
21117 if ac_fn_c_try_link "$LINENO"; then :
21118
21119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21120 $as_echo "yes" >&6; }
21121
21122
21123 else
21124
21125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21126 $as_echo "no" >&6; }
21127     CFLAGS="$_svn_xxflags__save"
21128
21129
21130   _svn_xxflags__save="$CFLAGS"
21131   ac_ext=c
21132 ac_cpp='$CPP $CPPFLAGS'
21133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21138 $as_echo_n "checking if $CC accepts -O1... " >&6; }
21139   CFLAGS="-O1 $CFLAGS"
21140         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141 /* end confdefs.h.  */
21142 int main(void){return 0;}
21143 _ACEOF
21144 if ac_fn_c_try_link "$LINENO"; then :
21145
21146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21147 $as_echo "yes" >&6; }
21148
21149
21150 else
21151
21152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21153 $as_echo "no" >&6; }
21154     CFLAGS="$_svn_xxflags__save"
21155
21156
21157   _svn_xxflags__save="$CFLAGS"
21158   ac_ext=c
21159 ac_cpp='$CPP $CPPFLAGS'
21160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163
21164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21165 $as_echo_n "checking if $CC accepts -O... " >&6; }
21166   CFLAGS="-O $CFLAGS"
21167         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h.  */
21169 int main(void){return 0;}
21170 _ACEOF
21171 if ac_fn_c_try_link "$LINENO"; then :
21172
21173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21174 $as_echo "yes" >&6; }
21175
21176
21177 else
21178
21179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21180 $as_echo "no" >&6; }
21181     CFLAGS="$_svn_xxflags__save"
21182
21183
21184 fi
21185 rm -f core conftest.err conftest.$ac_objext \
21186     conftest$ac_exeext conftest.$ac_ext
21187   ac_ext=c
21188 ac_cpp='$CPP $CPPFLAGS'
21189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21192
21193
21194
21195 fi
21196 rm -f core conftest.err conftest.$ac_objext \
21197     conftest$ac_exeext conftest.$ac_ext
21198   ac_ext=c
21199 ac_cpp='$CPP $CPPFLAGS'
21200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21203
21204
21205
21206 fi
21207 rm -f core conftest.err conftest.$ac_objext \
21208     conftest$ac_exeext conftest.$ac_ext
21209   ac_ext=c
21210 ac_cpp='$CPP $CPPFLAGS'
21211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21214
21215
21216
21217 fi
21218 rm -f core conftest.err conftest.$ac_objext \
21219     conftest$ac_exeext conftest.$ac_ext
21220   ac_ext=c
21221 ac_cpp='$CPP $CPPFLAGS'
21222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21225
21226
21227
21228   _svn_xxflags__save="$CFLAGS"
21229   ac_ext=c
21230 ac_cpp='$CPP $CPPFLAGS'
21231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21234
21235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
21236 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
21237   CFLAGS="-Wno-clobbered $CFLAGS"
21238         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h.  */
21240 int main(void){return 0;}
21241 _ACEOF
21242 if ac_fn_c_try_link "$LINENO"; then :
21243
21244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21245 $as_echo "yes" >&6; }
21246
21247
21248 else
21249
21250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21251 $as_echo "no" >&6; }
21252     CFLAGS="$_svn_xxflags__save"
21253
21254
21255 fi
21256 rm -f core conftest.err conftest.$ac_objext \
21257     conftest$ac_exeext conftest.$ac_ext
21258   ac_ext=c
21259 ac_cpp='$CPP $CPPFLAGS'
21260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263
21264
21265
21266   _svn_xxflags__save="$CFLAGS"
21267   ac_ext=c
21268 ac_cpp='$CPP $CPPFLAGS'
21269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21272
21273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
21274 $as_echo_n "checking if $CC accepts -flto... " >&6; }
21275   CFLAGS="-flto $CFLAGS"
21276         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21277 /* end confdefs.h.  */
21278 int main(void){return 0;}
21279 _ACEOF
21280 if ac_fn_c_try_link "$LINENO"; then :
21281
21282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21283 $as_echo "yes" >&6; }
21284
21285
21286 else
21287
21288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21289 $as_echo "no" >&6; }
21290     CFLAGS="$_svn_xxflags__save"
21291
21292
21293 fi
21294 rm -f core conftest.err conftest.$ac_objext \
21295     conftest$ac_exeext conftest.$ac_ext
21296   ac_ext=c
21297 ac_cpp='$CPP $CPPFLAGS'
21298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21301
21302
21303     fi
21304   fi
21305   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21306     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21307     if test "$enable_debugging" = "yes"; then
21308       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
21309 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
21310
21311   _svn_xxflags__save="$CXXFLAGS"
21312   ac_ext=cpp
21313 ac_cpp='$CXXCPP $CPPFLAGS'
21314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21317
21318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21319 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21320   CXXFLAGS="-O1 $CXXFLAGS"
21321         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322 /* end confdefs.h.  */
21323 int main(){}
21324 _ACEOF
21325 if ac_fn_cxx_try_link "$LINENO"; then :
21326
21327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21328 $as_echo "yes" >&6; }
21329
21330
21331 else
21332
21333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21334 $as_echo "no" >&6; }
21335     CXXFLAGS="$_svn_xxflags__save"
21336
21337
21338   _svn_xxflags__save="$CXXFLAGS"
21339   ac_ext=cpp
21340 ac_cpp='$CXXCPP $CPPFLAGS'
21341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21344
21345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21346 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21347   CXXFLAGS="-O $CXXFLAGS"
21348         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21349 /* end confdefs.h.  */
21350 int main(){}
21351 _ACEOF
21352 if ac_fn_cxx_try_link "$LINENO"; then :
21353
21354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21355 $as_echo "yes" >&6; }
21356
21357
21358 else
21359
21360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21361 $as_echo "no" >&6; }
21362     CXXFLAGS="$_svn_xxflags__save"
21363
21364
21365 fi
21366 rm -f core conftest.err conftest.$ac_objext \
21367     conftest$ac_exeext conftest.$ac_ext
21368   ac_ext=cpp
21369 ac_cpp='$CXXCPP $CPPFLAGS'
21370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21373
21374
21375
21376 fi
21377 rm -f core conftest.err conftest.$ac_objext \
21378     conftest$ac_exeext conftest.$ac_ext
21379   ac_ext=c
21380 ac_cpp='$CPP $CPPFLAGS'
21381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21384
21385
21386     else
21387       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
21388 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
21389
21390   _svn_xxflags__save="$CXXFLAGS"
21391   ac_ext=cpp
21392 ac_cpp='$CXXCPP $CPPFLAGS'
21393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21396
21397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
21398 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
21399   CXXFLAGS="-O3 $CXXFLAGS"
21400         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h.  */
21402 int main(){}
21403 _ACEOF
21404 if ac_fn_cxx_try_link "$LINENO"; then :
21405
21406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21407 $as_echo "yes" >&6; }
21408
21409
21410 else
21411
21412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21413 $as_echo "no" >&6; }
21414     CXXFLAGS="$_svn_xxflags__save"
21415
21416
21417   _svn_xxflags__save="$CXXFLAGS"
21418   ac_ext=cpp
21419 ac_cpp='$CXXCPP $CPPFLAGS'
21420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21423
21424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
21425 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
21426   CXXFLAGS="-O2 $CXXFLAGS"
21427         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21428 /* end confdefs.h.  */
21429 int main(){}
21430 _ACEOF
21431 if ac_fn_cxx_try_link "$LINENO"; then :
21432
21433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21434 $as_echo "yes" >&6; }
21435
21436
21437 else
21438
21439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21440 $as_echo "no" >&6; }
21441     CXXFLAGS="$_svn_xxflags__save"
21442
21443
21444   _svn_xxflags__save="$CXXFLAGS"
21445   ac_ext=cpp
21446 ac_cpp='$CXXCPP $CPPFLAGS'
21447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21450
21451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21452 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21453   CXXFLAGS="-O1 $CXXFLAGS"
21454         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h.  */
21456 int main(){}
21457 _ACEOF
21458 if ac_fn_cxx_try_link "$LINENO"; then :
21459
21460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21461 $as_echo "yes" >&6; }
21462
21463
21464 else
21465
21466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467 $as_echo "no" >&6; }
21468     CXXFLAGS="$_svn_xxflags__save"
21469
21470
21471   _svn_xxflags__save="$CXXFLAGS"
21472   ac_ext=cpp
21473 ac_cpp='$CXXCPP $CPPFLAGS'
21474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21477
21478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21479 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21480   CXXFLAGS="-O $CXXFLAGS"
21481         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21482 /* end confdefs.h.  */
21483 int main(){}
21484 _ACEOF
21485 if ac_fn_cxx_try_link "$LINENO"; then :
21486
21487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21488 $as_echo "yes" >&6; }
21489
21490
21491 else
21492
21493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21494 $as_echo "no" >&6; }
21495     CXXFLAGS="$_svn_xxflags__save"
21496
21497
21498 fi
21499 rm -f core conftest.err conftest.$ac_objext \
21500     conftest$ac_exeext conftest.$ac_ext
21501   ac_ext=cpp
21502 ac_cpp='$CXXCPP $CPPFLAGS'
21503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21506
21507
21508
21509 fi
21510 rm -f core conftest.err conftest.$ac_objext \
21511     conftest$ac_exeext conftest.$ac_ext
21512   ac_ext=cpp
21513 ac_cpp='$CXXCPP $CPPFLAGS'
21514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21517
21518
21519
21520 fi
21521 rm -f core conftest.err conftest.$ac_objext \
21522     conftest$ac_exeext conftest.$ac_ext
21523   ac_ext=cpp
21524 ac_cpp='$CXXCPP $CPPFLAGS'
21525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21528
21529
21530
21531 fi
21532 rm -f core conftest.err conftest.$ac_objext \
21533     conftest$ac_exeext conftest.$ac_ext
21534   ac_ext=c
21535 ac_cpp='$CPP $CPPFLAGS'
21536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21539
21540
21541
21542   _svn_xxflags__save="$CXXFLAGS"
21543   ac_ext=cpp
21544 ac_cpp='$CXXCPP $CPPFLAGS'
21545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21548
21549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
21550 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
21551   CXXFLAGS="-Wno-clobbered $CXXFLAGS"
21552         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553 /* end confdefs.h.  */
21554 int main(){}
21555 _ACEOF
21556 if ac_fn_cxx_try_link "$LINENO"; then :
21557
21558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21559 $as_echo "yes" >&6; }
21560
21561
21562 else
21563
21564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21565 $as_echo "no" >&6; }
21566     CXXFLAGS="$_svn_xxflags__save"
21567
21568
21569 fi
21570 rm -f core conftest.err conftest.$ac_objext \
21571     conftest$ac_exeext conftest.$ac_ext
21572   ac_ext=c
21573 ac_cpp='$CPP $CPPFLAGS'
21574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21577
21578
21579
21580   _svn_xxflags__save="$CXXFLAGS"
21581   ac_ext=cpp
21582 ac_cpp='$CXXCPP $CPPFLAGS'
21583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21586
21587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
21588 $as_echo_n "checking if $CXX accepts -flto... " >&6; }
21589   CXXFLAGS="-flto $CXXFLAGS"
21590         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591 /* end confdefs.h.  */
21592 int main(){}
21593 _ACEOF
21594 if ac_fn_cxx_try_link "$LINENO"; then :
21595
21596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21597 $as_echo "yes" >&6; }
21598
21599
21600 else
21601
21602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21603 $as_echo "no" >&6; }
21604     CXXFLAGS="$_svn_xxflags__save"
21605
21606
21607 fi
21608 rm -f core conftest.err conftest.$ac_objext \
21609     conftest$ac_exeext conftest.$ac_ext
21610   ac_ext=c
21611 ac_cpp='$CPP $CPPFLAGS'
21612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21615
21616
21617     fi
21618   fi
21619 elif test "$enable_optimization" = "no"; then
21620     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
21621 $as_echo "$as_me: Disabling optimizations" >&6;}
21622   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21623   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21624 # elif test "$enable_optimization" = "maybe" ; then
21625 #   # do nothing
21626 fi
21627
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
21629 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
21630 { $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
21631 $as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
21632 { $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
21633 $as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
21635 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
21636 { $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
21637 $as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
21638 { $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
21639 $as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
21640
21641 # Check whether --enable-full-version-match was given.
21642 if test "${enable_full_version_match+set}" = set; then :
21643   enableval=$enable_full_version_match;
21644     if test "$enableval" = "no" ; then
21645       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
21646 $as_echo "$as_me: Disabling svn full version matching" >&6;}
21647
21648 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
21649
21650     fi
21651
21652 fi
21653
21654
21655
21656 # Check whether --with-editor was given.
21657 if test "${with_editor+set}" = set; then :
21658   withval=$with_editor;
21659
21660     if test "$withval" = "yes" ; then
21661       as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
21662     else
21663       SVN_CLIENT_EDITOR=$withval
21664
21665 cat >>confdefs.h <<_ACEOF
21666 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
21667 _ACEOF
21668
21669
21670     fi
21671
21672
21673 fi
21674
21675
21676
21677   zlib_found=no
21678
21679
21680 # Check whether --with-zlib was given.
21681 if test "${with_zlib+set}" = set; then :
21682   withval=$with_zlib;
21683     if test "$withval" = "yes" ; then
21684       ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21685 if test "x$ac_cv_header_zlib_h" = xyes; then :
21686
21687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21688 $as_echo_n "checking for inflate in -lz... " >&6; }
21689 if ${ac_cv_lib_z_inflate+:} false; then :
21690   $as_echo_n "(cached) " >&6
21691 else
21692   ac_check_lib_save_LIBS=$LIBS
21693 LIBS="-lz  $LIBS"
21694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695 /* end confdefs.h.  */
21696
21697 /* Override any GCC internal prototype to avoid an error.
21698    Use char because int might match the return type of a GCC
21699    builtin and then its argument prototype would still apply.  */
21700 #ifdef __cplusplus
21701 extern "C"
21702 #endif
21703 char inflate ();
21704 int
21705 main ()
21706 {
21707 return inflate ();
21708   ;
21709   return 0;
21710 }
21711 _ACEOF
21712 if ac_fn_c_try_link "$LINENO"; then :
21713   ac_cv_lib_z_inflate=yes
21714 else
21715   ac_cv_lib_z_inflate=no
21716 fi
21717 rm -f core conftest.err conftest.$ac_objext \
21718     conftest$ac_exeext conftest.$ac_ext
21719 LIBS=$ac_check_lib_save_LIBS
21720 fi
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21722 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21723 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21724   zlib_found="builtin"
21725 fi
21726
21727
21728 fi
21729
21730
21731     elif test "$withval" = "no" ; then
21732       as_fn_error $? "cannot compile without zlib." "$LINENO" 5
21733     else
21734       { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
21735 $as_echo "$as_me: zlib library configuration" >&6;}
21736       zlib_prefix=$withval
21737       save_cppflags="$CPPFLAGS"
21738       CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
21739       for ac_header in zlib.h
21740 do :
21741   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21742 if test "x$ac_cv_header_zlib_h" = xyes; then :
21743   cat >>confdefs.h <<_ACEOF
21744 #define HAVE_ZLIB_H 1
21745 _ACEOF
21746
21747         save_ldflags="$LDFLAGS"
21748         LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
21749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21750 $as_echo_n "checking for inflate in -lz... " >&6; }
21751 if ${ac_cv_lib_z_inflate+:} false; then :
21752   $as_echo_n "(cached) " >&6
21753 else
21754   ac_check_lib_save_LIBS=$LIBS
21755 LIBS="-lz  $LIBS"
21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h.  */
21758
21759 /* Override any GCC internal prototype to avoid an error.
21760    Use char because int might match the return type of a GCC
21761    builtin and then its argument prototype would still apply.  */
21762 #ifdef __cplusplus
21763 extern "C"
21764 #endif
21765 char inflate ();
21766 int
21767 main ()
21768 {
21769 return inflate ();
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 if ac_fn_c_try_link "$LINENO"; then :
21775   ac_cv_lib_z_inflate=yes
21776 else
21777   ac_cv_lib_z_inflate=no
21778 fi
21779 rm -f core conftest.err conftest.$ac_objext \
21780     conftest$ac_exeext conftest.$ac_ext
21781 LIBS=$ac_check_lib_save_LIBS
21782 fi
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21784 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21785 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21786   zlib_found="yes"
21787 fi
21788
21789         LDFLAGS="$save_ldflags"
21790
21791 fi
21792
21793 done
21794
21795       CPPFLAGS="$save_cppflags"
21796     fi
21797
21798 else
21799
21800     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21801 if test "x$ac_cv_header_zlib_h" = xyes; then :
21802
21803       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21804 $as_echo_n "checking for inflate in -lz... " >&6; }
21805 if ${ac_cv_lib_z_inflate+:} false; then :
21806   $as_echo_n "(cached) " >&6
21807 else
21808   ac_check_lib_save_LIBS=$LIBS
21809 LIBS="-lz  $LIBS"
21810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h.  */
21812
21813 /* Override any GCC internal prototype to avoid an error.
21814    Use char because int might match the return type of a GCC
21815    builtin and then its argument prototype would still apply.  */
21816 #ifdef __cplusplus
21817 extern "C"
21818 #endif
21819 char inflate ();
21820 int
21821 main ()
21822 {
21823 return inflate ();
21824   ;
21825   return 0;
21826 }
21827 _ACEOF
21828 if ac_fn_c_try_link "$LINENO"; then :
21829   ac_cv_lib_z_inflate=yes
21830 else
21831   ac_cv_lib_z_inflate=no
21832 fi
21833 rm -f core conftest.err conftest.$ac_objext \
21834     conftest$ac_exeext conftest.$ac_ext
21835 LIBS=$ac_check_lib_save_LIBS
21836 fi
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21838 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21839 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21840   zlib_found="builtin"
21841 fi
21842
21843
21844 fi
21845
21846
21847
21848 fi
21849
21850
21851   if test "$zlib_found" = "no"; then
21852     as_fn_error $? "subversion requires zlib" "$LINENO" 5
21853   fi
21854
21855   if test "$zlib_found" = "yes"; then
21856     SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
21857     LDFLAGS="$LDFLAGS `
21858   input_flags="-L$zlib_prefix/lib"
21859   output_flags=""
21860   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
21861   for flag in $input_flags; do
21862     filter="no"
21863     for dir in $filtered_dirs; do
21864       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
21865         filter="yes"
21866         break
21867       fi
21868     done
21869     if test "$filter" = "no"; then
21870       output_flags="$output_flags $flag"
21871     fi
21872   done
21873   if test -n "$output_flags"; then
21874     printf "%s" "${output_flags# }"
21875   fi
21876 `"
21877   fi
21878
21879   SVN_ZLIB_LIBS="-lz"
21880
21881
21882
21883
21884
21885 MOD_ACTIVATION=""
21886 # Check whether --enable-mod-activation was given.
21887 if test "${enable_mod_activation+set}" = set; then :
21888   enableval=$enable_mod_activation;
21889     if test "$enableval" = "yes" ; then
21890       MOD_ACTIVATION="-a"
21891       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
21892 $as_echo "$as_me: Enabling apache module activation" >&6;}
21893     else
21894       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
21895 $as_echo "$as_me: Disabling apache module activation" >&6;}
21896     fi
21897
21898 fi
21899
21900
21901
21902
21903
21904 # Check whether --enable-gcov was given.
21905 if test "${enable_gcov+set}" = set; then :
21906   enableval=$enable_gcov;
21907     if test "$enableval" = "yes" ; then
21908                   if test "$GCC" = "yes"; then
21909         if test "$svn_enable_shared" = "yes" ; then
21910           as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
21911                         recommend also using --enable-all-static)." "$LINENO" 5
21912         fi
21913         if test ! "$enable_all_static" = "yes" ; then
21914           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
21915 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
21916         fi
21917         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
21918 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
21919         CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
21920         CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
21921       else
21922         as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
21923       fi
21924     fi
21925
21926 fi
21927
21928
21929 # Check whether --enable-gprof was given.
21930 if test "${enable_gprof+set}" = set; then :
21931   enableval=$enable_gprof;
21932     if test "$enableval" = "yes" ; then
21933                   if test "$GCC" = "yes"; then
21934         if test "$svn_enable_shared" = "yes" ; then
21935           as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
21936                         recommend also using --enable-all-static)." "$LINENO" 5
21937         fi
21938         if test ! "$enable_all_static" = "yes" ; then
21939           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
21940 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
21941         fi
21942         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
21943 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
21944         CFLAGS="$CFLAGS -pg"
21945         CXXFLAGS="$CXXFLAGS -pg"
21946         LT_LDFLAGS="$LT_LDFLAGS -pg"
21947       else
21948         as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
21949       fi
21950     fi
21951
21952 fi
21953
21954
21955
21956 # Scripting and Bindings languages
21957
21958 # Python: Used for testsuite, and bindings
21959
21960
21961 PYTHON="`$abs_srcdir/build/find_python.sh`"
21962 if test -z "$PYTHON"; then
21963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.5 or later is required to run the testsuite" >&5
21964 $as_echo "$as_me: WARNING: Python 2.5 or later is required to run the testsuite" >&2;}
21965   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
21966 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
21967   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
21968 $as_echo "$as_me: WARNING: " >&2;}
21969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
21970 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
21971   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
21972 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
21973   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
21974 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
21975 fi
21976 for ac_prog in "$PYTHON"
21977 do
21978   # Extract the first word of "$ac_prog", so it can be a program name with args.
21979 set dummy $ac_prog; ac_word=$2
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21981 $as_echo_n "checking for $ac_word... " >&6; }
21982 if ${ac_cv_path_PYTHON+:} false; then :
21983   $as_echo_n "(cached) " >&6
21984 else
21985   case $PYTHON in
21986   [\\/]* | ?:[\\/]*)
21987   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21988   ;;
21989   *)
21990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21991 for as_dir in $PATH
21992 do
21993   IFS=$as_save_IFS
21994   test -z "$as_dir" && as_dir=.
21995     for ac_exec_ext in '' $ac_executable_extensions; do
21996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21997     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21999     break 2
22000   fi
22001 done
22002   done
22003 IFS=$as_save_IFS
22004
22005   ;;
22006 esac
22007 fi
22008 PYTHON=$ac_cv_path_PYTHON
22009 if test -n "$PYTHON"; then
22010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22011 $as_echo "$PYTHON" >&6; }
22012 else
22013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22015 fi
22016
22017
22018   test -n "$PYTHON" && break
22019 done
22020 test -n "$PYTHON" || PYTHON="none"
22021
22022
22023 # The minimum version for the JVM runtime for our Java bytecode.
22024 JAVA_OLDEST_WORKING_VER='1.5'
22025 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
22026
22027   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22028
22029 # Check whether --with-jdk was given.
22030 if test "${with_jdk+set}" = set; then :
22031   withval=$with_jdk;
22032     case "$withval" in
22033       "no")
22034         JDK_SUITABLE=no
22035       ;;
22036       "yes")
22037
22038   where=check
22039   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22040
22041   JDK=none
22042   JAVA_BIN=none
22043   JAVADOC=none
22044   JAVAC=none
22045   JAVAH=none
22046   JAR=none
22047   JNI_INCLUDES=none
22048
22049   JDK_SUITABLE=no
22050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22051 $as_echo_n "checking for JDK... " >&6; }
22052   if test $where = check; then
22053             if test -x "$JAVA_HOME/bin/java"; then
22054       JDK="$JAVA_HOME"
22055     elif test -x "/Library/Java/Home/bin/java"; then
22056       JDK="/Library/Java/Home"
22057     elif test -x "/usr/bin/java"; then
22058       JDK="/usr"
22059     elif test -x "/usr/local/bin/java"; then
22060       JDK="/usr/local"
22061     fi
22062   else
22063     JDK=$where
22064   fi
22065
22066           os_arch="`uname`"
22067   if test "$os_arch" = "Darwin"; then
22068     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22069
22070     if test "$OSX_VER" = "10.4"; then
22071             OSX_VER="10.4u"
22072     fi
22073
22074     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22075     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22076     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22077   fi
22078
22079   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22080      test -d "/Library/Java/Home"; then
22081     JDK="/Library/Java/Home"
22082   fi
22083
22084   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22085     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22086   else
22087     JRE_LIB_DIR="$JDK/jre/lib"
22088   fi
22089
22090   if test -f "$JDK/include/jni.h"; then
22091         JNI_INCLUDEDIR="$JDK/include"
22092     JDK_SUITABLE=yes
22093   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22094         JNI_INCLUDEDIR="$JDK/Headers"
22095     JDK_SUITABLE=yes
22096   elif test "$os_arch" = "Darwin" &&
22097        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22098         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22099     JDK_SUITABLE=yes
22100   elif test "$os_arch" = "Darwin" &&
22101        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22102         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22103     JDK_SUITABLE=yes
22104   else
22105     JDK_SUITABLE=no
22106   fi
22107   if test "$JDK_SUITABLE" = "yes"; then
22108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22109 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22110   else
22111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22112 $as_echo "no" >&6; }
22113     if test "$where" != "check"; then
22114       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22115 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22116       if test "$os_arch" = "Darwin"; then
22117         { $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
22118 $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;}
22119       fi
22120     fi
22121   fi
22122
22123   if test "$JDK_SUITABLE" = "yes"; then
22124     JAVA_BIN='$(JDK)/bin'
22125
22126     JAVA="$JAVA_BIN/java"
22127     JAVAC="$JAVA_BIN/javac"
22128     JAVAH="$JAVA_BIN/javah"
22129     JAVADOC="$JAVA_BIN/javadoc"
22130     JAR="$JAVA_BIN/jar"
22131
22132         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22133
22134 # Check whether --with-jikes was given.
22135 if test "${with_jikes+set}" = set; then :
22136   withval=$with_jikes;
22137         if test "$withval" != "no" && test "$withval" != "yes"; then
22138                     jikes_options="$withval $jikes_options"
22139         fi
22140         requested_jikes="$withval"  # will be 'yes' if path unspecified
22141
22142 fi
22143
22144     if test "$requested_jikes" != "no"; then
22145             for jikes in $jikes_options; do
22146         if test -z "$jikes_found" && test -x "$jikes"; then
22147           jikes_found="yes"
22148           JAVAC="$jikes"
22149           JAVA_CLASSPATH="$JRE_LIB_DIR"
22150           for jar in $JRE_LIB_DIR/*.jar; do
22151             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22152           done
22153         fi
22154       done
22155     fi
22156     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22157             if test -z "$jikes_found"; then
22158         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22159       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22160            test "$JAVAC" != "$requested_jikes"; then
22161         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22162 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22163       fi
22164     fi
22165
22166         # The release for "-source" could actually be greater than that
22167     # of "-target", if we want to cross-compile for lesser JVMs.
22168     if test -z "$JAVAC_FLAGS"; then
22169       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22170       if test "$enable_debugging" = "yes"; then
22171         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22172       fi
22173     fi
22174
22175     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22176     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22177     for dir in $list; do
22178       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22179     done
22180   fi
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191       ;;
22192       *)
22193
22194   where=$withval
22195   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22196
22197   JDK=none
22198   JAVA_BIN=none
22199   JAVADOC=none
22200   JAVAC=none
22201   JAVAH=none
22202   JAR=none
22203   JNI_INCLUDES=none
22204
22205   JDK_SUITABLE=no
22206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22207 $as_echo_n "checking for JDK... " >&6; }
22208   if test $where = check; then
22209             if test -x "$JAVA_HOME/bin/java"; then
22210       JDK="$JAVA_HOME"
22211     elif test -x "/Library/Java/Home/bin/java"; then
22212       JDK="/Library/Java/Home"
22213     elif test -x "/usr/bin/java"; then
22214       JDK="/usr"
22215     elif test -x "/usr/local/bin/java"; then
22216       JDK="/usr/local"
22217     fi
22218   else
22219     JDK=$where
22220   fi
22221
22222           os_arch="`uname`"
22223   if test "$os_arch" = "Darwin"; then
22224     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22225
22226     if test "$OSX_VER" = "10.4"; then
22227             OSX_VER="10.4u"
22228     fi
22229
22230     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22231     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22232     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22233   fi
22234
22235   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22236      test -d "/Library/Java/Home"; then
22237     JDK="/Library/Java/Home"
22238   fi
22239
22240   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22241     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22242   else
22243     JRE_LIB_DIR="$JDK/jre/lib"
22244   fi
22245
22246   if test -f "$JDK/include/jni.h"; then
22247         JNI_INCLUDEDIR="$JDK/include"
22248     JDK_SUITABLE=yes
22249   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22250         JNI_INCLUDEDIR="$JDK/Headers"
22251     JDK_SUITABLE=yes
22252   elif test "$os_arch" = "Darwin" &&
22253        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22254         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22255     JDK_SUITABLE=yes
22256   elif test "$os_arch" = "Darwin" &&
22257        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22258         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22259     JDK_SUITABLE=yes
22260   else
22261     JDK_SUITABLE=no
22262   fi
22263   if test "$JDK_SUITABLE" = "yes"; then
22264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22265 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22266   else
22267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268 $as_echo "no" >&6; }
22269     if test "$where" != "check"; then
22270       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22271 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22272       if test "$os_arch" = "Darwin"; then
22273         { $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
22274 $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;}
22275       fi
22276     fi
22277   fi
22278
22279   if test "$JDK_SUITABLE" = "yes"; then
22280     JAVA_BIN='$(JDK)/bin'
22281
22282     JAVA="$JAVA_BIN/java"
22283     JAVAC="$JAVA_BIN/javac"
22284     JAVAH="$JAVA_BIN/javah"
22285     JAVADOC="$JAVA_BIN/javadoc"
22286     JAR="$JAVA_BIN/jar"
22287
22288         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22289
22290 # Check whether --with-jikes was given.
22291 if test "${with_jikes+set}" = set; then :
22292   withval=$with_jikes;
22293         if test "$withval" != "no" && test "$withval" != "yes"; then
22294                     jikes_options="$withval $jikes_options"
22295         fi
22296         requested_jikes="$withval"  # will be 'yes' if path unspecified
22297
22298 fi
22299
22300     if test "$requested_jikes" != "no"; then
22301             for jikes in $jikes_options; do
22302         if test -z "$jikes_found" && test -x "$jikes"; then
22303           jikes_found="yes"
22304           JAVAC="$jikes"
22305           JAVA_CLASSPATH="$JRE_LIB_DIR"
22306           for jar in $JRE_LIB_DIR/*.jar; do
22307             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22308           done
22309         fi
22310       done
22311     fi
22312     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22313             if test -z "$jikes_found"; then
22314         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22315       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22316            test "$JAVAC" != "$requested_jikes"; then
22317         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22318 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22319       fi
22320     fi
22321
22322         # The release for "-source" could actually be greater than that
22323     # of "-target", if we want to cross-compile for lesser JVMs.
22324     if test -z "$JAVAC_FLAGS"; then
22325       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22326       if test "$enable_debugging" = "yes"; then
22327         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22328       fi
22329     fi
22330
22331     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22332     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22333     for dir in $list; do
22334       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22335     done
22336   fi
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347       ;;
22348     esac
22349
22350 else
22351
22352
22353   where=check
22354   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22355
22356   JDK=none
22357   JAVA_BIN=none
22358   JAVADOC=none
22359   JAVAC=none
22360   JAVAH=none
22361   JAR=none
22362   JNI_INCLUDES=none
22363
22364   JDK_SUITABLE=no
22365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22366 $as_echo_n "checking for JDK... " >&6; }
22367   if test $where = check; then
22368             if test -x "$JAVA_HOME/bin/java"; then
22369       JDK="$JAVA_HOME"
22370     elif test -x "/Library/Java/Home/bin/java"; then
22371       JDK="/Library/Java/Home"
22372     elif test -x "/usr/bin/java"; then
22373       JDK="/usr"
22374     elif test -x "/usr/local/bin/java"; then
22375       JDK="/usr/local"
22376     fi
22377   else
22378     JDK=$where
22379   fi
22380
22381           os_arch="`uname`"
22382   if test "$os_arch" = "Darwin"; then
22383     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22384
22385     if test "$OSX_VER" = "10.4"; then
22386             OSX_VER="10.4u"
22387     fi
22388
22389     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22390     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22391     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22392   fi
22393
22394   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22395      test -d "/Library/Java/Home"; then
22396     JDK="/Library/Java/Home"
22397   fi
22398
22399   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22400     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22401   else
22402     JRE_LIB_DIR="$JDK/jre/lib"
22403   fi
22404
22405   if test -f "$JDK/include/jni.h"; then
22406         JNI_INCLUDEDIR="$JDK/include"
22407     JDK_SUITABLE=yes
22408   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22409         JNI_INCLUDEDIR="$JDK/Headers"
22410     JDK_SUITABLE=yes
22411   elif test "$os_arch" = "Darwin" &&
22412        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22413         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22414     JDK_SUITABLE=yes
22415   elif test "$os_arch" = "Darwin" &&
22416        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22417         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22418     JDK_SUITABLE=yes
22419   else
22420     JDK_SUITABLE=no
22421   fi
22422   if test "$JDK_SUITABLE" = "yes"; then
22423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22424 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22425   else
22426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22427 $as_echo "no" >&6; }
22428     if test "$where" != "check"; then
22429       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22430 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22431       if test "$os_arch" = "Darwin"; then
22432         { $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
22433 $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;}
22434       fi
22435     fi
22436   fi
22437
22438   if test "$JDK_SUITABLE" = "yes"; then
22439     JAVA_BIN='$(JDK)/bin'
22440
22441     JAVA="$JAVA_BIN/java"
22442     JAVAC="$JAVA_BIN/javac"
22443     JAVAH="$JAVA_BIN/javah"
22444     JAVADOC="$JAVA_BIN/javadoc"
22445     JAR="$JAVA_BIN/jar"
22446
22447         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22448
22449 # Check whether --with-jikes was given.
22450 if test "${with_jikes+set}" = set; then :
22451   withval=$with_jikes;
22452         if test "$withval" != "no" && test "$withval" != "yes"; then
22453                     jikes_options="$withval $jikes_options"
22454         fi
22455         requested_jikes="$withval"  # will be 'yes' if path unspecified
22456
22457 fi
22458
22459     if test "$requested_jikes" != "no"; then
22460             for jikes in $jikes_options; do
22461         if test -z "$jikes_found" && test -x "$jikes"; then
22462           jikes_found="yes"
22463           JAVAC="$jikes"
22464           JAVA_CLASSPATH="$JRE_LIB_DIR"
22465           for jar in $JRE_LIB_DIR/*.jar; do
22466             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22467           done
22468         fi
22469       done
22470     fi
22471     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22472             if test -z "$jikes_found"; then
22473         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22474       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22475            test "$JAVAC" != "$requested_jikes"; then
22476         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22477 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22478       fi
22479     fi
22480
22481         # The release for "-source" could actually be greater than that
22482     # of "-target", if we want to cross-compile for lesser JVMs.
22483     if test -z "$JAVAC_FLAGS"; then
22484       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22485       if test "$enable_debugging" = "yes"; then
22486         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22487       fi
22488     fi
22489
22490     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22491     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22492     for dir in $list; do
22493       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22494     done
22495   fi
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507 fi
22508
22509
22510
22511 # Extract the first word of "perl", so it can be a program name with args.
22512 set dummy perl; ac_word=$2
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22514 $as_echo_n "checking for $ac_word... " >&6; }
22515 if ${ac_cv_path_PERL+:} false; then :
22516   $as_echo_n "(cached) " >&6
22517 else
22518   case $PERL in
22519   [\\/]* | ?:[\\/]*)
22520   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22521   ;;
22522   *)
22523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22524 for as_dir in $PATH
22525 do
22526   IFS=$as_save_IFS
22527   test -z "$as_dir" && as_dir=.
22528     for ac_exec_ext in '' $ac_executable_extensions; do
22529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22530     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22532     break 2
22533   fi
22534 done
22535   done
22536 IFS=$as_save_IFS
22537
22538   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
22539   ;;
22540 esac
22541 fi
22542 PERL=$ac_cv_path_PERL
22543 if test -n "$PERL"; then
22544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22545 $as_echo "$PERL" >&6; }
22546 else
22547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22548 $as_echo "no" >&6; }
22549 fi
22550
22551
22552
22553 if test -n "$RUBY"; then
22554   # Extract the first word of ""$RUBY"", so it can be a program name with args.
22555 set dummy "$RUBY"; ac_word=$2
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22557 $as_echo_n "checking for $ac_word... " >&6; }
22558 if ${ac_cv_path_RUBY+:} false; then :
22559   $as_echo_n "(cached) " >&6
22560 else
22561   case $RUBY in
22562   [\\/]* | ?:[\\/]*)
22563   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22564   ;;
22565   *)
22566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22567 for as_dir in $PATH
22568 do
22569   IFS=$as_save_IFS
22570   test -z "$as_dir" && as_dir=.
22571     for ac_exec_ext in '' $ac_executable_extensions; do
22572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22573     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22575     break 2
22576   fi
22577 done
22578   done
22579 IFS=$as_save_IFS
22580
22581   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
22582   ;;
22583 esac
22584 fi
22585 RUBY=$ac_cv_path_RUBY
22586 if test -n "$RUBY"; then
22587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22588 $as_echo "$RUBY" >&6; }
22589 else
22590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22591 $as_echo "no" >&6; }
22592 fi
22593
22594
22595 else
22596   for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193
22597 do
22598   # Extract the first word of "$ac_prog", so it can be a program name with args.
22599 set dummy $ac_prog; ac_word=$2
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22601 $as_echo_n "checking for $ac_word... " >&6; }
22602 if ${ac_cv_path_RUBY+:} false; then :
22603   $as_echo_n "(cached) " >&6
22604 else
22605   case $RUBY in
22606   [\\/]* | ?:[\\/]*)
22607   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22608   ;;
22609   *)
22610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22611 for as_dir in $PATH
22612 do
22613   IFS=$as_save_IFS
22614   test -z "$as_dir" && as_dir=.
22615     for ac_exec_ext in '' $ac_executable_extensions; do
22616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22617     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22619     break 2
22620   fi
22621 done
22622   done
22623 IFS=$as_save_IFS
22624
22625   ;;
22626 esac
22627 fi
22628 RUBY=$ac_cv_path_RUBY
22629 if test -n "$RUBY"; then
22630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22631 $as_echo "$RUBY" >&6; }
22632 else
22633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22634 $as_echo "no" >&6; }
22635 fi
22636
22637
22638   test -n "$RUBY" && break
22639 done
22640 test -n "$RUBY" || RUBY="none"
22641
22642 fi
22643 if test "$RUBY" != "none"; then
22644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
22645 $as_echo_n "checking rb_hash_foreach... " >&6; }
22646   if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
22647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22648 $as_echo "yes" >&6; }
22649     if test -n "$RDOC"; then
22650       # Extract the first word of ""$RDOC"", so it can be a program name with args.
22651 set dummy "$RDOC"; ac_word=$2
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22653 $as_echo_n "checking for $ac_word... " >&6; }
22654 if ${ac_cv_path_RDOC+:} false; then :
22655   $as_echo_n "(cached) " >&6
22656 else
22657   case $RDOC in
22658   [\\/]* | ?:[\\/]*)
22659   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22660   ;;
22661   *)
22662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22663 for as_dir in $PATH
22664 do
22665   IFS=$as_save_IFS
22666   test -z "$as_dir" && as_dir=.
22667     for ac_exec_ext in '' $ac_executable_extensions; do
22668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22669     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22671     break 2
22672   fi
22673 done
22674   done
22675 IFS=$as_save_IFS
22676
22677   test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
22678   ;;
22679 esac
22680 fi
22681 RDOC=$ac_cv_path_RDOC
22682 if test -n "$RDOC"; then
22683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22684 $as_echo "$RDOC" >&6; }
22685 else
22686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22687 $as_echo "no" >&6; }
22688 fi
22689
22690
22691     else
22692       for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193
22693 do
22694   # Extract the first word of "$ac_prog", so it can be a program name with args.
22695 set dummy $ac_prog; ac_word=$2
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22697 $as_echo_n "checking for $ac_word... " >&6; }
22698 if ${ac_cv_path_RDOC+:} false; then :
22699   $as_echo_n "(cached) " >&6
22700 else
22701   case $RDOC in
22702   [\\/]* | ?:[\\/]*)
22703   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22704   ;;
22705   *)
22706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707 for as_dir in $PATH
22708 do
22709   IFS=$as_save_IFS
22710   test -z "$as_dir" && as_dir=.
22711     for ac_exec_ext in '' $ac_executable_extensions; do
22712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22713     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22715     break 2
22716   fi
22717 done
22718   done
22719 IFS=$as_save_IFS
22720
22721   ;;
22722 esac
22723 fi
22724 RDOC=$ac_cv_path_RDOC
22725 if test -n "$RDOC"; then
22726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22727 $as_echo "$RDOC" >&6; }
22728 else
22729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22730 $as_echo "no" >&6; }
22731 fi
22732
22733
22734   test -n "$RDOC" && break
22735 done
22736 test -n "$RDOC" || RDOC="none"
22737
22738     fi
22739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
22740 $as_echo_n "checking for Ruby major version... " >&6; }
22741 if ${svn_cv_ruby_major+:} false; then :
22742   $as_echo_n "(cached) " >&6
22743 else
22744
22745     svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
22746
22747 fi
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
22749 $as_echo "$svn_cv_ruby_major" >&6; }
22750     RUBY_MAJOR="$svn_cv_ruby_major"
22751
22752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
22753 $as_echo_n "checking for Ruby minor version... " >&6; }
22754 if ${svn_cv_ruby_minor+:} false; then :
22755   $as_echo_n "(cached) " >&6
22756 else
22757
22758     svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
22759
22760 fi
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
22762 $as_echo "$svn_cv_ruby_minor" >&6; }
22763     RUBY_MINOR="$svn_cv_ruby_minor"
22764
22765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
22766 $as_echo_n "checking for Ruby teeny version... " >&6; }
22767 if ${svn_cv_ruby_teeny+:} false; then :
22768   $as_echo_n "(cached) " >&6
22769 else
22770
22771     svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
22772
22773 fi
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
22775 $as_echo "$svn_cv_ruby_teeny" >&6; }
22776     RUBY_TEENY="$svn_cv_ruby_teeny"
22777
22778
22779
22780
22781     if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
22782       # Disallow Ruby between 1.8.7 and 1.9.3
22783       RUBY="none"
22784       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
22785 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
22786       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
22787 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
22788     fi
22789   else
22790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791 $as_echo "no" >&6; }
22792     RUBY="none"
22793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
22794 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
22795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
22796 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
22797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
22798 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
22799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
22800 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
22801   fi
22802 fi
22803
22804
22805
22806 # Check whether --with-swig was given.
22807 if test "${with_swig+set}" = set; then :
22808   withval=$with_swig;
22809     case "$withval" in
22810       "no")
22811         SWIG_SUITABLE=no
22812
22813   where=no
22814
22815   if test $where = no; then
22816     SWIG=none
22817   elif test $where = check; then
22818     # Extract the first word of "swig", so it can be a program name with args.
22819 set dummy swig; ac_word=$2
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22821 $as_echo_n "checking for $ac_word... " >&6; }
22822 if ${ac_cv_path_SWIG+:} false; then :
22823   $as_echo_n "(cached) " >&6
22824 else
22825   case $SWIG in
22826   [\\/]* | ?:[\\/]*)
22827   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22828   ;;
22829   *)
22830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22831 for as_dir in $PATH
22832 do
22833   IFS=$as_save_IFS
22834   test -z "$as_dir" && as_dir=.
22835     for ac_exec_ext in '' $ac_executable_extensions; do
22836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22837     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22839     break 2
22840   fi
22841 done
22842   done
22843 IFS=$as_save_IFS
22844
22845   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
22846   ;;
22847 esac
22848 fi
22849 SWIG=$ac_cv_path_SWIG
22850 if test -n "$SWIG"; then
22851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22852 $as_echo "$SWIG" >&6; }
22853 else
22854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22855 $as_echo "no" >&6; }
22856 fi
22857
22858
22859   else
22860     if test -f "$where"; then
22861       SWIG="$where"
22862     else
22863       SWIG="$where/bin/swig"
22864     fi
22865     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
22866       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
22867     fi
22868   fi
22869
22870   if test "$SWIG" != "none"; then
22871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
22872 $as_echo_n "checking swig version... " >&6; }
22873     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
22874                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
22875     # We want the version as an integer so we can test against
22876     # which version we're using.  SWIG doesn't provide this
22877     # to us so we have to come up with it on our own.
22878     # The major is passed straight through,
22879     # the minor is zero padded to two places,
22880     # and the patch level is zero padded to three places.
22881     # e.g. 1.3.24 becomes 103024
22882     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
22883                   $SED -e 's/[^0-9\.].*$//' \
22884                       -e 's/\.\([0-9]\)$/.0\1/' \
22885                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
22886                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
22887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
22888 $as_echo "$SWIG_VERSION_RAW" >&6; }
22889     # If you change the required swig version number, don't forget to update:
22890     #   subversion/bindings/swig/INSTALL
22891     #   packages/rpm/redhat-8+/subversion.spec
22892     #   packages/rpm/redhat-7.x/subversion.spec
22893     #   packages/rpm/rhel-3/subversion.spec
22894     #   packages/rpm/rhel-4/subversion.spec
22895     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
22896       SWIG_SUITABLE=yes
22897     else
22898       SWIG_SUITABLE=no
22899       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
22900 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
22901       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
22902 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
22903     fi
22904   fi
22905
22906   SWIG_PY_COMPILE="none"
22907   SWIG_PY_LINK="none"
22908   if test "$PYTHON" != "none"; then
22909     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
22910 $as_echo "$as_me: Configuring python swig binding" >&6;}
22911
22912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
22913 $as_echo_n "checking for Python includes... " >&6; }
22914 if ${ac_cv_python_includes+:} false; then :
22915   $as_echo_n "(cached) " >&6
22916 else
22917
22918       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
22919
22920 fi
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
22922 $as_echo "$ac_cv_python_includes" >&6; }
22923     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
22924
22925     if test "$ac_cv_python_includes" = "none"; then
22926       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
22927 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
22928     fi
22929
22930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
22931 $as_echo_n "checking for compiling Python extensions... " >&6; }
22932 if ${ac_cv_python_compile+:} false; then :
22933   $as_echo_n "(cached) " >&6
22934 else
22935
22936       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
22937
22938 fi
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
22940 $as_echo "$ac_cv_python_compile" >&6; }
22941     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
22942
22943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
22944 $as_echo_n "checking for linking Python extensions... " >&6; }
22945 if ${ac_cv_python_link+:} false; then :
22946   $as_echo_n "(cached) " >&6
22947 else
22948
22949       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
22950
22951 fi
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
22953 $as_echo "$ac_cv_python_link" >&6; }
22954     SWIG_PY_LINK="$ac_cv_python_link"
22955
22956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
22957 $as_echo_n "checking for linking Python libraries... " >&6; }
22958 if ${ac_cv_python_libs+:} false; then :
22959   $as_echo_n "(cached) " >&6
22960 else
22961
22962       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
22963
22964 fi
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
22966 $as_echo "$ac_cv_python_libs" >&6; }
22967     SWIG_PY_LIBS="`
22968   input_flags="$ac_cv_python_libs"
22969   output_flags=""
22970   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22971   for flag in $input_flags; do
22972     filter="no"
22973     for dir in $filtered_dirs; do
22974       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22975         filter="yes"
22976         break
22977       fi
22978     done
22979     if test "$filter" = "no"; then
22980       output_flags="$output_flags $flag"
22981     fi
22982   done
22983   if test -n "$output_flags"; then
22984     printf "%s" "${output_flags# }"
22985   fi
22986 `"
22987
22988                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
22989     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
22990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
22991 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
22992 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
22993   $as_echo_n "(cached) " >&6
22994 else
22995
22996       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
22997         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998 /* end confdefs.h.  */
22999 #include <apr.h>
23000                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23001 _ACEOF
23002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23003   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23004   svn_cv_pycfmt_apr_int64_t="L"
23005 fi
23006 rm -f conftest*
23007
23008       fi
23009       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23010         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h.  */
23012 r
23013                      #include <apr.h>
23014                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23015 _ACEOF
23016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23017   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23018   svn_cv_pycfmt_apr_int64_t="l"
23019 fi
23020 rm -f conftest*
23021
23022       fi
23023       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23024         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23025 /* end confdefs.h.  */
23026 #include <apr.h>
23027                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23028 _ACEOF
23029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23030   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23031   svn_cv_pycfmt_apr_int64_t="i"
23032 fi
23033 rm -f conftest*
23034
23035       fi
23036
23037 fi
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23039 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23040     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23041     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23042       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23043     fi
23044
23045 cat >>confdefs.h <<_ACEOF
23046 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23047 _ACEOF
23048
23049   fi
23050
23051   if test "$PERL" != "none"; then
23052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23053 $as_echo_n "checking perl version... " >&6; }
23054             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23056 $as_echo "$PERL_VERSION" >&6; }
23057     if test "$PERL_VERSION" -ge "5008000"; then
23058       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23059     else
23060       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23061 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23062     fi
23063   fi
23064
23065   SWIG_RB_COMPILE="none"
23066   SWIG_RB_LINK="none"
23067   if test "$RUBY" != "none"; then
23068     rbconfig="$RUBY -rrbconfig -e "
23069
23070     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23071                     rubyhdrdir sitedir sitelibdir sitearchdir libdir
23072     do
23073       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23074       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23075     done
23076
23077     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23078 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23079
23080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23081 $as_echo_n "checking for Ruby include path... " >&6; }
23082 if ${svn_cv_ruby_includes+:} false; then :
23083   $as_echo_n "(cached) " >&6
23084 else
23085
23086     if test -d "$rbconfig_rubyhdrdir"; then
23087             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23088     else
23089             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23090     fi
23091
23092 fi
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23094 $as_echo "$svn_cv_ruby_includes" >&6; }
23095     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23096
23097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23098 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23099 if ${svn_cv_ruby_compile+:} false; then :
23100   $as_echo_n "(cached) " >&6
23101 else
23102
23103       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23104
23105 fi
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23107 $as_echo "$svn_cv_ruby_compile" >&6; }
23108     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23109
23110   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23111
23112
23113   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23114
23115
23116   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23117
23118         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23119
23120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23121 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23122 if ${svn_cv_ruby_link+:} false; then :
23123   $as_echo_n "(cached) " >&6
23124 else
23125
23126       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23127                            $rbconfig_LDSHARED`"
23128       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23129       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23130
23131 fi
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23133 $as_echo "$svn_cv_ruby_link" >&6; }
23134     SWIG_RB_LINK="$svn_cv_ruby_link"
23135
23136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23137 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23138 if ${ac_cv_ruby_libs+:} false; then :
23139   $as_echo_n "(cached) " >&6
23140 else
23141
23142       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23143
23144 fi
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23146 $as_echo "$ac_cv_ruby_libs" >&6; }
23147     SWIG_RB_LIBS="`
23148   input_flags="$ac_cv_ruby_libs"
23149   output_flags=""
23150   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23151   for flag in $input_flags; do
23152     filter="no"
23153     for dir in $filtered_dirs; do
23154       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23155         filter="yes"
23156         break
23157       fi
23158     done
23159     if test "$filter" = "no"; then
23160       output_flags="$output_flags $flag"
23161     fi
23162   done
23163   if test -n "$output_flags"; then
23164     printf "%s" "${output_flags# }"
23165   fi
23166 `"
23167
23168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23169 $as_echo_n "checking for rb_errinfo... " >&6; }
23170     old_CFLAGS="$CFLAGS"
23171     old_LIBS="$LIBS"
23172     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23173
23174   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23175
23176
23177   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23178
23179
23180   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23181
23182     LIBS="$SWIG_RB_LIBS"
23183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23184 /* end confdefs.h.  */
23185
23186 #include <ruby.h>
23187 int main()
23188 {rb_errinfo();}
23189 _ACEOF
23190 if ac_fn_c_try_link "$LINENO"; then :
23191   have_rb_errinfo="yes"
23192 else
23193   have_rb_errinfo="no"
23194 fi
23195 rm -f core conftest.err conftest.$ac_objext \
23196     conftest$ac_exeext conftest.$ac_ext
23197     if test "$have_rb_errinfo" = "yes"; then
23198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23199 $as_echo "yes" >&6; }
23200
23201 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23202
23203     else
23204       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23205 $as_echo "no" >&6; }
23206     fi
23207     CFLAGS="$old_CFLAGS"
23208     LIBS="$old_LIBS"
23209
23210     if ${svn_cv_ruby_sitedir+:} false; then :
23211   $as_echo_n "(cached) " >&6
23212 else
23213
23214       svn_cv_ruby_sitedir="$rbconfig_sitedir"
23215
23216 fi
23217
23218
23219 # Check whether --with-ruby-sitedir was given.
23220 if test "${with_ruby_sitedir+set}" = set; then :
23221   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23222 else
23223   svn_ruby_installdir="$svn_cv_ruby_sitedir"
23224 fi
23225
23226
23227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23228 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23229     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23230   $as_echo_n "(cached) " >&6
23231 else
23232
23233       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23234                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23235
23236 fi
23237
23238     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23240 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23241
23242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23243 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23244     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23245   $as_echo_n "(cached) " >&6
23246 else
23247
23248       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23249                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23250
23251 fi
23252
23253     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23255 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23256
23257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23258 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23259     if ${svn_cv_ruby_test_verbose+:} false; then :
23260   $as_echo_n "(cached) " >&6
23261 else
23262
23263       svn_cv_ruby_test_verbose="normal"
23264
23265 fi
23266
23267
23268 # Check whether --with-ruby-test-verbose was given.
23269 if test "${with_ruby_test_verbose+set}" = set; then :
23270   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23271 else
23272   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23273 fi
23274
23275       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23276       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23277 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23278   fi
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293       ;;
23294       "yes")
23295
23296   where=check
23297
23298   if test $where = no; then
23299     SWIG=none
23300   elif test $where = check; then
23301     # Extract the first word of "swig", so it can be a program name with args.
23302 set dummy swig; ac_word=$2
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23304 $as_echo_n "checking for $ac_word... " >&6; }
23305 if ${ac_cv_path_SWIG+:} false; then :
23306   $as_echo_n "(cached) " >&6
23307 else
23308   case $SWIG in
23309   [\\/]* | ?:[\\/]*)
23310   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23311   ;;
23312   *)
23313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23314 for as_dir in $PATH
23315 do
23316   IFS=$as_save_IFS
23317   test -z "$as_dir" && as_dir=.
23318     for ac_exec_ext in '' $ac_executable_extensions; do
23319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23320     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23322     break 2
23323   fi
23324 done
23325   done
23326 IFS=$as_save_IFS
23327
23328   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23329   ;;
23330 esac
23331 fi
23332 SWIG=$ac_cv_path_SWIG
23333 if test -n "$SWIG"; then
23334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23335 $as_echo "$SWIG" >&6; }
23336 else
23337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23338 $as_echo "no" >&6; }
23339 fi
23340
23341
23342   else
23343     if test -f "$where"; then
23344       SWIG="$where"
23345     else
23346       SWIG="$where/bin/swig"
23347     fi
23348     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23349       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23350     fi
23351   fi
23352
23353   if test "$SWIG" != "none"; then
23354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23355 $as_echo_n "checking swig version... " >&6; }
23356     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23357                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23358     # We want the version as an integer so we can test against
23359     # which version we're using.  SWIG doesn't provide this
23360     # to us so we have to come up with it on our own.
23361     # The major is passed straight through,
23362     # the minor is zero padded to two places,
23363     # and the patch level is zero padded to three places.
23364     # e.g. 1.3.24 becomes 103024
23365     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23366                   $SED -e 's/[^0-9\.].*$//' \
23367                       -e 's/\.\([0-9]\)$/.0\1/' \
23368                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23369                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23371 $as_echo "$SWIG_VERSION_RAW" >&6; }
23372     # If you change the required swig version number, don't forget to update:
23373     #   subversion/bindings/swig/INSTALL
23374     #   packages/rpm/redhat-8+/subversion.spec
23375     #   packages/rpm/redhat-7.x/subversion.spec
23376     #   packages/rpm/rhel-3/subversion.spec
23377     #   packages/rpm/rhel-4/subversion.spec
23378     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23379       SWIG_SUITABLE=yes
23380     else
23381       SWIG_SUITABLE=no
23382       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23383 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23384       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23385 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23386     fi
23387   fi
23388
23389   SWIG_PY_COMPILE="none"
23390   SWIG_PY_LINK="none"
23391   if test "$PYTHON" != "none"; then
23392     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23393 $as_echo "$as_me: Configuring python swig binding" >&6;}
23394
23395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23396 $as_echo_n "checking for Python includes... " >&6; }
23397 if ${ac_cv_python_includes+:} false; then :
23398   $as_echo_n "(cached) " >&6
23399 else
23400
23401       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23402
23403 fi
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23405 $as_echo "$ac_cv_python_includes" >&6; }
23406     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23407
23408     if test "$ac_cv_python_includes" = "none"; then
23409       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23410 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23411     fi
23412
23413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23414 $as_echo_n "checking for compiling Python extensions... " >&6; }
23415 if ${ac_cv_python_compile+:} false; then :
23416   $as_echo_n "(cached) " >&6
23417 else
23418
23419       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23420
23421 fi
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23423 $as_echo "$ac_cv_python_compile" >&6; }
23424     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23425
23426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23427 $as_echo_n "checking for linking Python extensions... " >&6; }
23428 if ${ac_cv_python_link+:} false; then :
23429   $as_echo_n "(cached) " >&6
23430 else
23431
23432       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23433
23434 fi
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23436 $as_echo "$ac_cv_python_link" >&6; }
23437     SWIG_PY_LINK="$ac_cv_python_link"
23438
23439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23440 $as_echo_n "checking for linking Python libraries... " >&6; }
23441 if ${ac_cv_python_libs+:} false; then :
23442   $as_echo_n "(cached) " >&6
23443 else
23444
23445       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23446
23447 fi
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23449 $as_echo "$ac_cv_python_libs" >&6; }
23450     SWIG_PY_LIBS="`
23451   input_flags="$ac_cv_python_libs"
23452   output_flags=""
23453   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23454   for flag in $input_flags; do
23455     filter="no"
23456     for dir in $filtered_dirs; do
23457       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23458         filter="yes"
23459         break
23460       fi
23461     done
23462     if test "$filter" = "no"; then
23463       output_flags="$output_flags $flag"
23464     fi
23465   done
23466   if test -n "$output_flags"; then
23467     printf "%s" "${output_flags# }"
23468   fi
23469 `"
23470
23471                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23472     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23474 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23475 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23476   $as_echo_n "(cached) " >&6
23477 else
23478
23479       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23480         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23481 /* end confdefs.h.  */
23482 #include <apr.h>
23483                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23484 _ACEOF
23485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23486   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23487   svn_cv_pycfmt_apr_int64_t="L"
23488 fi
23489 rm -f conftest*
23490
23491       fi
23492       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23493         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23494 /* end confdefs.h.  */
23495 r
23496                      #include <apr.h>
23497                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23498 _ACEOF
23499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23500   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23501   svn_cv_pycfmt_apr_int64_t="l"
23502 fi
23503 rm -f conftest*
23504
23505       fi
23506       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23507         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23508 /* end confdefs.h.  */
23509 #include <apr.h>
23510                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23511 _ACEOF
23512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23513   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23514   svn_cv_pycfmt_apr_int64_t="i"
23515 fi
23516 rm -f conftest*
23517
23518       fi
23519
23520 fi
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23522 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23523     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23524     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23525       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23526     fi
23527
23528 cat >>confdefs.h <<_ACEOF
23529 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23530 _ACEOF
23531
23532   fi
23533
23534   if test "$PERL" != "none"; then
23535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23536 $as_echo_n "checking perl version... " >&6; }
23537             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23539 $as_echo "$PERL_VERSION" >&6; }
23540     if test "$PERL_VERSION" -ge "5008000"; then
23541       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23542     else
23543       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23544 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23545     fi
23546   fi
23547
23548   SWIG_RB_COMPILE="none"
23549   SWIG_RB_LINK="none"
23550   if test "$RUBY" != "none"; then
23551     rbconfig="$RUBY -rrbconfig -e "
23552
23553     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23554                     rubyhdrdir sitedir sitelibdir sitearchdir libdir
23555     do
23556       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23557       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23558     done
23559
23560     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23561 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23562
23563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23564 $as_echo_n "checking for Ruby include path... " >&6; }
23565 if ${svn_cv_ruby_includes+:} false; then :
23566   $as_echo_n "(cached) " >&6
23567 else
23568
23569     if test -d "$rbconfig_rubyhdrdir"; then
23570             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23571     else
23572             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23573     fi
23574
23575 fi
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23577 $as_echo "$svn_cv_ruby_includes" >&6; }
23578     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23579
23580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23581 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23582 if ${svn_cv_ruby_compile+:} false; then :
23583   $as_echo_n "(cached) " >&6
23584 else
23585
23586       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23587
23588 fi
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23590 $as_echo "$svn_cv_ruby_compile" >&6; }
23591     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23592
23593   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23594
23595
23596   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23597
23598
23599   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23600
23601         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23602
23603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23604 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23605 if ${svn_cv_ruby_link+:} false; then :
23606   $as_echo_n "(cached) " >&6
23607 else
23608
23609       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23610                            $rbconfig_LDSHARED`"
23611       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23612       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23613
23614 fi
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23616 $as_echo "$svn_cv_ruby_link" >&6; }
23617     SWIG_RB_LINK="$svn_cv_ruby_link"
23618
23619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23620 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23621 if ${ac_cv_ruby_libs+:} false; then :
23622   $as_echo_n "(cached) " >&6
23623 else
23624
23625       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23626
23627 fi
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23629 $as_echo "$ac_cv_ruby_libs" >&6; }
23630     SWIG_RB_LIBS="`
23631   input_flags="$ac_cv_ruby_libs"
23632   output_flags=""
23633   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23634   for flag in $input_flags; do
23635     filter="no"
23636     for dir in $filtered_dirs; do
23637       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23638         filter="yes"
23639         break
23640       fi
23641     done
23642     if test "$filter" = "no"; then
23643       output_flags="$output_flags $flag"
23644     fi
23645   done
23646   if test -n "$output_flags"; then
23647     printf "%s" "${output_flags# }"
23648   fi
23649 `"
23650
23651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23652 $as_echo_n "checking for rb_errinfo... " >&6; }
23653     old_CFLAGS="$CFLAGS"
23654     old_LIBS="$LIBS"
23655     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23656
23657   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23658
23659
23660   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23661
23662
23663   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23664
23665     LIBS="$SWIG_RB_LIBS"
23666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23667 /* end confdefs.h.  */
23668
23669 #include <ruby.h>
23670 int main()
23671 {rb_errinfo();}
23672 _ACEOF
23673 if ac_fn_c_try_link "$LINENO"; then :
23674   have_rb_errinfo="yes"
23675 else
23676   have_rb_errinfo="no"
23677 fi
23678 rm -f core conftest.err conftest.$ac_objext \
23679     conftest$ac_exeext conftest.$ac_ext
23680     if test "$have_rb_errinfo" = "yes"; then
23681       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23682 $as_echo "yes" >&6; }
23683
23684 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23685
23686     else
23687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23688 $as_echo "no" >&6; }
23689     fi
23690     CFLAGS="$old_CFLAGS"
23691     LIBS="$old_LIBS"
23692
23693     if ${svn_cv_ruby_sitedir+:} false; then :
23694   $as_echo_n "(cached) " >&6
23695 else
23696
23697       svn_cv_ruby_sitedir="$rbconfig_sitedir"
23698
23699 fi
23700
23701
23702 # Check whether --with-ruby-sitedir was given.
23703 if test "${with_ruby_sitedir+set}" = set; then :
23704   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23705 else
23706   svn_ruby_installdir="$svn_cv_ruby_sitedir"
23707 fi
23708
23709
23710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23711 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23712     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23713   $as_echo_n "(cached) " >&6
23714 else
23715
23716       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23717                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23718
23719 fi
23720
23721     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23723 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23724
23725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23726 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23727     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23728   $as_echo_n "(cached) " >&6
23729 else
23730
23731       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23732                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23733
23734 fi
23735
23736     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23738 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23739
23740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23741 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23742     if ${svn_cv_ruby_test_verbose+:} false; then :
23743   $as_echo_n "(cached) " >&6
23744 else
23745
23746       svn_cv_ruby_test_verbose="normal"
23747
23748 fi
23749
23750
23751 # Check whether --with-ruby-test-verbose was given.
23752 if test "${with_ruby_test_verbose+set}" = set; then :
23753   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23754 else
23755   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23756 fi
23757
23758       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23759       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23760 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23761   fi
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776       ;;
23777       *)
23778
23779   where=$withval
23780
23781   if test $where = no; then
23782     SWIG=none
23783   elif test $where = check; then
23784     # Extract the first word of "swig", so it can be a program name with args.
23785 set dummy swig; ac_word=$2
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23787 $as_echo_n "checking for $ac_word... " >&6; }
23788 if ${ac_cv_path_SWIG+:} false; then :
23789   $as_echo_n "(cached) " >&6
23790 else
23791   case $SWIG in
23792   [\\/]* | ?:[\\/]*)
23793   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23794   ;;
23795   *)
23796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23797 for as_dir in $PATH
23798 do
23799   IFS=$as_save_IFS
23800   test -z "$as_dir" && as_dir=.
23801     for ac_exec_ext in '' $ac_executable_extensions; do
23802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23803     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23805     break 2
23806   fi
23807 done
23808   done
23809 IFS=$as_save_IFS
23810
23811   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23812   ;;
23813 esac
23814 fi
23815 SWIG=$ac_cv_path_SWIG
23816 if test -n "$SWIG"; then
23817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23818 $as_echo "$SWIG" >&6; }
23819 else
23820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23821 $as_echo "no" >&6; }
23822 fi
23823
23824
23825   else
23826     if test -f "$where"; then
23827       SWIG="$where"
23828     else
23829       SWIG="$where/bin/swig"
23830     fi
23831     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23832       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23833     fi
23834   fi
23835
23836   if test "$SWIG" != "none"; then
23837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23838 $as_echo_n "checking swig version... " >&6; }
23839     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23840                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23841     # We want the version as an integer so we can test against
23842     # which version we're using.  SWIG doesn't provide this
23843     # to us so we have to come up with it on our own.
23844     # The major is passed straight through,
23845     # the minor is zero padded to two places,
23846     # and the patch level is zero padded to three places.
23847     # e.g. 1.3.24 becomes 103024
23848     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23849                   $SED -e 's/[^0-9\.].*$//' \
23850                       -e 's/\.\([0-9]\)$/.0\1/' \
23851                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23852                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23854 $as_echo "$SWIG_VERSION_RAW" >&6; }
23855     # If you change the required swig version number, don't forget to update:
23856     #   subversion/bindings/swig/INSTALL
23857     #   packages/rpm/redhat-8+/subversion.spec
23858     #   packages/rpm/redhat-7.x/subversion.spec
23859     #   packages/rpm/rhel-3/subversion.spec
23860     #   packages/rpm/rhel-4/subversion.spec
23861     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23862       SWIG_SUITABLE=yes
23863     else
23864       SWIG_SUITABLE=no
23865       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23866 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23867       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23868 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23869     fi
23870   fi
23871
23872   SWIG_PY_COMPILE="none"
23873   SWIG_PY_LINK="none"
23874   if test "$PYTHON" != "none"; then
23875     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23876 $as_echo "$as_me: Configuring python swig binding" >&6;}
23877
23878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23879 $as_echo_n "checking for Python includes... " >&6; }
23880 if ${ac_cv_python_includes+:} false; then :
23881   $as_echo_n "(cached) " >&6
23882 else
23883
23884       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23885
23886 fi
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23888 $as_echo "$ac_cv_python_includes" >&6; }
23889     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23890
23891     if test "$ac_cv_python_includes" = "none"; then
23892       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23893 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23894     fi
23895
23896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23897 $as_echo_n "checking for compiling Python extensions... " >&6; }
23898 if ${ac_cv_python_compile+:} false; then :
23899   $as_echo_n "(cached) " >&6
23900 else
23901
23902       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23903
23904 fi
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23906 $as_echo "$ac_cv_python_compile" >&6; }
23907     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23908
23909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23910 $as_echo_n "checking for linking Python extensions... " >&6; }
23911 if ${ac_cv_python_link+:} false; then :
23912   $as_echo_n "(cached) " >&6
23913 else
23914
23915       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23916
23917 fi
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23919 $as_echo "$ac_cv_python_link" >&6; }
23920     SWIG_PY_LINK="$ac_cv_python_link"
23921
23922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23923 $as_echo_n "checking for linking Python libraries... " >&6; }
23924 if ${ac_cv_python_libs+:} false; then :
23925   $as_echo_n "(cached) " >&6
23926 else
23927
23928       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23929
23930 fi
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23932 $as_echo "$ac_cv_python_libs" >&6; }
23933     SWIG_PY_LIBS="`
23934   input_flags="$ac_cv_python_libs"
23935   output_flags=""
23936   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23937   for flag in $input_flags; do
23938     filter="no"
23939     for dir in $filtered_dirs; do
23940       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23941         filter="yes"
23942         break
23943       fi
23944     done
23945     if test "$filter" = "no"; then
23946       output_flags="$output_flags $flag"
23947     fi
23948   done
23949   if test -n "$output_flags"; then
23950     printf "%s" "${output_flags# }"
23951   fi
23952 `"
23953
23954                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23955     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23957 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23958 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23959   $as_echo_n "(cached) " >&6
23960 else
23961
23962       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23963         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23964 /* end confdefs.h.  */
23965 #include <apr.h>
23966                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23967 _ACEOF
23968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23969   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23970   svn_cv_pycfmt_apr_int64_t="L"
23971 fi
23972 rm -f conftest*
23973
23974       fi
23975       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23976         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h.  */
23978 r
23979                      #include <apr.h>
23980                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23981 _ACEOF
23982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23983   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23984   svn_cv_pycfmt_apr_int64_t="l"
23985 fi
23986 rm -f conftest*
23987
23988       fi
23989       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23990         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23991 /* end confdefs.h.  */
23992 #include <apr.h>
23993                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23994 _ACEOF
23995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23996   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23997   svn_cv_pycfmt_apr_int64_t="i"
23998 fi
23999 rm -f conftest*
24000
24001       fi
24002
24003 fi
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24005 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24006     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24007     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24008       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24009     fi
24010
24011 cat >>confdefs.h <<_ACEOF
24012 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24013 _ACEOF
24014
24015   fi
24016
24017   if test "$PERL" != "none"; then
24018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24019 $as_echo_n "checking perl version... " >&6; }
24020             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24022 $as_echo "$PERL_VERSION" >&6; }
24023     if test "$PERL_VERSION" -ge "5008000"; then
24024       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24025     else
24026       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24027 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24028     fi
24029   fi
24030
24031   SWIG_RB_COMPILE="none"
24032   SWIG_RB_LINK="none"
24033   if test "$RUBY" != "none"; then
24034     rbconfig="$RUBY -rrbconfig -e "
24035
24036     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24037                     rubyhdrdir sitedir sitelibdir sitearchdir libdir
24038     do
24039       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24040       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24041     done
24042
24043     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24044 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24045
24046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24047 $as_echo_n "checking for Ruby include path... " >&6; }
24048 if ${svn_cv_ruby_includes+:} false; then :
24049   $as_echo_n "(cached) " >&6
24050 else
24051
24052     if test -d "$rbconfig_rubyhdrdir"; then
24053             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24054     else
24055             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24056     fi
24057
24058 fi
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24060 $as_echo "$svn_cv_ruby_includes" >&6; }
24061     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24062
24063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24064 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24065 if ${svn_cv_ruby_compile+:} false; then :
24066   $as_echo_n "(cached) " >&6
24067 else
24068
24069       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24070
24071 fi
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24073 $as_echo "$svn_cv_ruby_compile" >&6; }
24074     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24075
24076   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24077
24078
24079   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24080
24081
24082   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24083
24084         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24085
24086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24087 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24088 if ${svn_cv_ruby_link+:} false; then :
24089   $as_echo_n "(cached) " >&6
24090 else
24091
24092       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24093                            $rbconfig_LDSHARED`"
24094       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24095       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24096
24097 fi
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24099 $as_echo "$svn_cv_ruby_link" >&6; }
24100     SWIG_RB_LINK="$svn_cv_ruby_link"
24101
24102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24103 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24104 if ${ac_cv_ruby_libs+:} false; then :
24105   $as_echo_n "(cached) " >&6
24106 else
24107
24108       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24109
24110 fi
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24112 $as_echo "$ac_cv_ruby_libs" >&6; }
24113     SWIG_RB_LIBS="`
24114   input_flags="$ac_cv_ruby_libs"
24115   output_flags=""
24116   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24117   for flag in $input_flags; do
24118     filter="no"
24119     for dir in $filtered_dirs; do
24120       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24121         filter="yes"
24122         break
24123       fi
24124     done
24125     if test "$filter" = "no"; then
24126       output_flags="$output_flags $flag"
24127     fi
24128   done
24129   if test -n "$output_flags"; then
24130     printf "%s" "${output_flags# }"
24131   fi
24132 `"
24133
24134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24135 $as_echo_n "checking for rb_errinfo... " >&6; }
24136     old_CFLAGS="$CFLAGS"
24137     old_LIBS="$LIBS"
24138     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24139
24140   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24141
24142
24143   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24144
24145
24146   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24147
24148     LIBS="$SWIG_RB_LIBS"
24149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24150 /* end confdefs.h.  */
24151
24152 #include <ruby.h>
24153 int main()
24154 {rb_errinfo();}
24155 _ACEOF
24156 if ac_fn_c_try_link "$LINENO"; then :
24157   have_rb_errinfo="yes"
24158 else
24159   have_rb_errinfo="no"
24160 fi
24161 rm -f core conftest.err conftest.$ac_objext \
24162     conftest$ac_exeext conftest.$ac_ext
24163     if test "$have_rb_errinfo" = "yes"; then
24164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24165 $as_echo "yes" >&6; }
24166
24167 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24168
24169     else
24170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24171 $as_echo "no" >&6; }
24172     fi
24173     CFLAGS="$old_CFLAGS"
24174     LIBS="$old_LIBS"
24175
24176     if ${svn_cv_ruby_sitedir+:} false; then :
24177   $as_echo_n "(cached) " >&6
24178 else
24179
24180       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24181
24182 fi
24183
24184
24185 # Check whether --with-ruby-sitedir was given.
24186 if test "${with_ruby_sitedir+set}" = set; then :
24187   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24188 else
24189   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24190 fi
24191
24192
24193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24194 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24195     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24196   $as_echo_n "(cached) " >&6
24197 else
24198
24199       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24200                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24201
24202 fi
24203
24204     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24206 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24207
24208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24209 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24210     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24211   $as_echo_n "(cached) " >&6
24212 else
24213
24214       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24215                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24216
24217 fi
24218
24219     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24221 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24222
24223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24224 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24225     if ${svn_cv_ruby_test_verbose+:} false; then :
24226   $as_echo_n "(cached) " >&6
24227 else
24228
24229       svn_cv_ruby_test_verbose="normal"
24230
24231 fi
24232
24233
24234 # Check whether --with-ruby-test-verbose was given.
24235 if test "${with_ruby_test_verbose+set}" = set; then :
24236   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24237 else
24238   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24239 fi
24240
24241       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24243 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24244   fi
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259       ;;
24260     esac
24261
24262 else
24263
24264
24265   where=check
24266
24267   if test $where = no; then
24268     SWIG=none
24269   elif test $where = check; then
24270     # Extract the first word of "swig", so it can be a program name with args.
24271 set dummy swig; ac_word=$2
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24273 $as_echo_n "checking for $ac_word... " >&6; }
24274 if ${ac_cv_path_SWIG+:} false; then :
24275   $as_echo_n "(cached) " >&6
24276 else
24277   case $SWIG in
24278   [\\/]* | ?:[\\/]*)
24279   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24280   ;;
24281   *)
24282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24283 for as_dir in $PATH
24284 do
24285   IFS=$as_save_IFS
24286   test -z "$as_dir" && as_dir=.
24287     for ac_exec_ext in '' $ac_executable_extensions; do
24288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24289     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24291     break 2
24292   fi
24293 done
24294   done
24295 IFS=$as_save_IFS
24296
24297   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24298   ;;
24299 esac
24300 fi
24301 SWIG=$ac_cv_path_SWIG
24302 if test -n "$SWIG"; then
24303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24304 $as_echo "$SWIG" >&6; }
24305 else
24306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24307 $as_echo "no" >&6; }
24308 fi
24309
24310
24311   else
24312     if test -f "$where"; then
24313       SWIG="$where"
24314     else
24315       SWIG="$where/bin/swig"
24316     fi
24317     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24318       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24319     fi
24320   fi
24321
24322   if test "$SWIG" != "none"; then
24323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24324 $as_echo_n "checking swig version... " >&6; }
24325     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24326                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24327     # We want the version as an integer so we can test against
24328     # which version we're using.  SWIG doesn't provide this
24329     # to us so we have to come up with it on our own.
24330     # The major is passed straight through,
24331     # the minor is zero padded to two places,
24332     # and the patch level is zero padded to three places.
24333     # e.g. 1.3.24 becomes 103024
24334     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24335                   $SED -e 's/[^0-9\.].*$//' \
24336                       -e 's/\.\([0-9]\)$/.0\1/' \
24337                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24338                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24340 $as_echo "$SWIG_VERSION_RAW" >&6; }
24341     # If you change the required swig version number, don't forget to update:
24342     #   subversion/bindings/swig/INSTALL
24343     #   packages/rpm/redhat-8+/subversion.spec
24344     #   packages/rpm/redhat-7.x/subversion.spec
24345     #   packages/rpm/rhel-3/subversion.spec
24346     #   packages/rpm/rhel-4/subversion.spec
24347     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24348       SWIG_SUITABLE=yes
24349     else
24350       SWIG_SUITABLE=no
24351       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24352 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24353       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
24354 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
24355     fi
24356   fi
24357
24358   SWIG_PY_COMPILE="none"
24359   SWIG_PY_LINK="none"
24360   if test "$PYTHON" != "none"; then
24361     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24362 $as_echo "$as_me: Configuring python swig binding" >&6;}
24363
24364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24365 $as_echo_n "checking for Python includes... " >&6; }
24366 if ${ac_cv_python_includes+:} false; then :
24367   $as_echo_n "(cached) " >&6
24368 else
24369
24370       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24371
24372 fi
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24374 $as_echo "$ac_cv_python_includes" >&6; }
24375     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24376
24377     if test "$ac_cv_python_includes" = "none"; then
24378       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24379 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24380     fi
24381
24382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24383 $as_echo_n "checking for compiling Python extensions... " >&6; }
24384 if ${ac_cv_python_compile+:} false; then :
24385   $as_echo_n "(cached) " >&6
24386 else
24387
24388       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24389
24390 fi
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24392 $as_echo "$ac_cv_python_compile" >&6; }
24393     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24394
24395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24396 $as_echo_n "checking for linking Python extensions... " >&6; }
24397 if ${ac_cv_python_link+:} false; then :
24398   $as_echo_n "(cached) " >&6
24399 else
24400
24401       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24402
24403 fi
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24405 $as_echo "$ac_cv_python_link" >&6; }
24406     SWIG_PY_LINK="$ac_cv_python_link"
24407
24408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24409 $as_echo_n "checking for linking Python libraries... " >&6; }
24410 if ${ac_cv_python_libs+:} false; then :
24411   $as_echo_n "(cached) " >&6
24412 else
24413
24414       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24415
24416 fi
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24418 $as_echo "$ac_cv_python_libs" >&6; }
24419     SWIG_PY_LIBS="`
24420   input_flags="$ac_cv_python_libs"
24421   output_flags=""
24422   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24423   for flag in $input_flags; do
24424     filter="no"
24425     for dir in $filtered_dirs; do
24426       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24427         filter="yes"
24428         break
24429       fi
24430     done
24431     if test "$filter" = "no"; then
24432       output_flags="$output_flags $flag"
24433     fi
24434   done
24435   if test -n "$output_flags"; then
24436     printf "%s" "${output_flags# }"
24437   fi
24438 `"
24439
24440                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24441     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24443 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24444 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24445   $as_echo_n "(cached) " >&6
24446 else
24447
24448       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24449         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24450 /* end confdefs.h.  */
24451 #include <apr.h>
24452                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24453 _ACEOF
24454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24455   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24456   svn_cv_pycfmt_apr_int64_t="L"
24457 fi
24458 rm -f conftest*
24459
24460       fi
24461       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24462         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24463 /* end confdefs.h.  */
24464 r
24465                      #include <apr.h>
24466                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24467 _ACEOF
24468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24469   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24470   svn_cv_pycfmt_apr_int64_t="l"
24471 fi
24472 rm -f conftest*
24473
24474       fi
24475       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24476         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24477 /* end confdefs.h.  */
24478 #include <apr.h>
24479                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24480 _ACEOF
24481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24482   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24483   svn_cv_pycfmt_apr_int64_t="i"
24484 fi
24485 rm -f conftest*
24486
24487       fi
24488
24489 fi
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24491 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24492     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24493     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24494       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24495     fi
24496
24497 cat >>confdefs.h <<_ACEOF
24498 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24499 _ACEOF
24500
24501   fi
24502
24503   if test "$PERL" != "none"; then
24504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24505 $as_echo_n "checking perl version... " >&6; }
24506             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24508 $as_echo "$PERL_VERSION" >&6; }
24509     if test "$PERL_VERSION" -ge "5008000"; then
24510       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24511     else
24512       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24513 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24514     fi
24515   fi
24516
24517   SWIG_RB_COMPILE="none"
24518   SWIG_RB_LINK="none"
24519   if test "$RUBY" != "none"; then
24520     rbconfig="$RUBY -rrbconfig -e "
24521
24522     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24523                     rubyhdrdir sitedir sitelibdir sitearchdir libdir
24524     do
24525       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24526       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24527     done
24528
24529     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24530 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24531
24532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24533 $as_echo_n "checking for Ruby include path... " >&6; }
24534 if ${svn_cv_ruby_includes+:} false; then :
24535   $as_echo_n "(cached) " >&6
24536 else
24537
24538     if test -d "$rbconfig_rubyhdrdir"; then
24539             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24540     else
24541             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24542     fi
24543
24544 fi
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24546 $as_echo "$svn_cv_ruby_includes" >&6; }
24547     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24548
24549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24550 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24551 if ${svn_cv_ruby_compile+:} false; then :
24552   $as_echo_n "(cached) " >&6
24553 else
24554
24555       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24556
24557 fi
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24559 $as_echo "$svn_cv_ruby_compile" >&6; }
24560     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24561
24562   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24563
24564
24565   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24566
24567
24568   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24569
24570         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24571
24572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24573 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24574 if ${svn_cv_ruby_link+:} false; then :
24575   $as_echo_n "(cached) " >&6
24576 else
24577
24578       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24579                            $rbconfig_LDSHARED`"
24580       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24581       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24582
24583 fi
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24585 $as_echo "$svn_cv_ruby_link" >&6; }
24586     SWIG_RB_LINK="$svn_cv_ruby_link"
24587
24588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24589 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24590 if ${ac_cv_ruby_libs+:} false; then :
24591   $as_echo_n "(cached) " >&6
24592 else
24593
24594       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24595
24596 fi
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24598 $as_echo "$ac_cv_ruby_libs" >&6; }
24599     SWIG_RB_LIBS="`
24600   input_flags="$ac_cv_ruby_libs"
24601   output_flags=""
24602   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24603   for flag in $input_flags; do
24604     filter="no"
24605     for dir in $filtered_dirs; do
24606       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24607         filter="yes"
24608         break
24609       fi
24610     done
24611     if test "$filter" = "no"; then
24612       output_flags="$output_flags $flag"
24613     fi
24614   done
24615   if test -n "$output_flags"; then
24616     printf "%s" "${output_flags# }"
24617   fi
24618 `"
24619
24620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24621 $as_echo_n "checking for rb_errinfo... " >&6; }
24622     old_CFLAGS="$CFLAGS"
24623     old_LIBS="$LIBS"
24624     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24625
24626   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24627
24628
24629   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24630
24631
24632   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24633
24634     LIBS="$SWIG_RB_LIBS"
24635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24636 /* end confdefs.h.  */
24637
24638 #include <ruby.h>
24639 int main()
24640 {rb_errinfo();}
24641 _ACEOF
24642 if ac_fn_c_try_link "$LINENO"; then :
24643   have_rb_errinfo="yes"
24644 else
24645   have_rb_errinfo="no"
24646 fi
24647 rm -f core conftest.err conftest.$ac_objext \
24648     conftest$ac_exeext conftest.$ac_ext
24649     if test "$have_rb_errinfo" = "yes"; then
24650       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24651 $as_echo "yes" >&6; }
24652
24653 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24654
24655     else
24656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24657 $as_echo "no" >&6; }
24658     fi
24659     CFLAGS="$old_CFLAGS"
24660     LIBS="$old_LIBS"
24661
24662     if ${svn_cv_ruby_sitedir+:} false; then :
24663   $as_echo_n "(cached) " >&6
24664 else
24665
24666       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24667
24668 fi
24669
24670
24671 # Check whether --with-ruby-sitedir was given.
24672 if test "${with_ruby_sitedir+set}" = set; then :
24673   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24674 else
24675   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24676 fi
24677
24678
24679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24680 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24681     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24682   $as_echo_n "(cached) " >&6
24683 else
24684
24685       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24686                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24687
24688 fi
24689
24690     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24692 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24693
24694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24695 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24696     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24697   $as_echo_n "(cached) " >&6
24698 else
24699
24700       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24701                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24702
24703 fi
24704
24705     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24707 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24708
24709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24710 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24711     if ${svn_cv_ruby_test_verbose+:} false; then :
24712   $as_echo_n "(cached) " >&6
24713 else
24714
24715       svn_cv_ruby_test_verbose="normal"
24716
24717 fi
24718
24719
24720 # Check whether --with-ruby-test-verbose was given.
24721 if test "${with_ruby_test_verbose+set}" = set; then :
24722   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24723 else
24724   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24725 fi
24726
24727       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24729 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24730   fi
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746 fi
24747
24748
24749
24750
24751
24752 # Check whether --with-ctypesgen was given.
24753 if test "${with_ctypesgen+set}" = set; then :
24754   withval=$with_ctypesgen;
24755     case "$withval" in
24756       "no")
24757
24758   where=no
24759
24760   CTYPESGEN=none
24761
24762   if test $where = check; then
24763     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24764 set dummy "ctypesgen.py"; ac_word=$2
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24766 $as_echo_n "checking for $ac_word... " >&6; }
24767 if ${ac_cv_path_CTYPESGEN+:} false; then :
24768   $as_echo_n "(cached) " >&6
24769 else
24770   case $CTYPESGEN in
24771   [\\/]* | ?:[\\/]*)
24772   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24773   ;;
24774   *)
24775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24776 for as_dir in $PATH
24777 do
24778   IFS=$as_save_IFS
24779   test -z "$as_dir" && as_dir=.
24780     for ac_exec_ext in '' $ac_executable_extensions; do
24781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24782     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24784     break 2
24785   fi
24786 done
24787   done
24788 IFS=$as_save_IFS
24789
24790   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24791   ;;
24792 esac
24793 fi
24794 CTYPESGEN=$ac_cv_path_CTYPESGEN
24795 if test -n "$CTYPESGEN"; then
24796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24797 $as_echo "$CTYPESGEN" >&6; }
24798 else
24799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24800 $as_echo "no" >&6; }
24801 fi
24802
24803
24804   elif test $where != no; then
24805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24806 $as_echo_n "checking for ctypesgen.py... " >&6; }
24807
24808     if test -f "$where"; then
24809       CTYPESGEN="$where"
24810     elif test -f "$where/bin/ctypesgen.py"; then
24811       CTYPESGEN="$where/bin/ctypesgen.py"
24812     else
24813       CTYPESGEN="$where/ctypesgen.py"
24814     fi
24815
24816     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24817       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24818                     $where/bin/ctypesgen.py" "$LINENO" 5
24819     else
24820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24821 $as_echo "$CTYPESGEN" >&6; }
24822     fi
24823   fi
24824
24825
24826
24827       ;;
24828       "yes")
24829
24830   where=check
24831
24832   CTYPESGEN=none
24833
24834   if test $where = check; then
24835     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24836 set dummy "ctypesgen.py"; ac_word=$2
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24838 $as_echo_n "checking for $ac_word... " >&6; }
24839 if ${ac_cv_path_CTYPESGEN+:} false; then :
24840   $as_echo_n "(cached) " >&6
24841 else
24842   case $CTYPESGEN in
24843   [\\/]* | ?:[\\/]*)
24844   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24845   ;;
24846   *)
24847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24848 for as_dir in $PATH
24849 do
24850   IFS=$as_save_IFS
24851   test -z "$as_dir" && as_dir=.
24852     for ac_exec_ext in '' $ac_executable_extensions; do
24853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24854     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24856     break 2
24857   fi
24858 done
24859   done
24860 IFS=$as_save_IFS
24861
24862   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24863   ;;
24864 esac
24865 fi
24866 CTYPESGEN=$ac_cv_path_CTYPESGEN
24867 if test -n "$CTYPESGEN"; then
24868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24869 $as_echo "$CTYPESGEN" >&6; }
24870 else
24871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 $as_echo "no" >&6; }
24873 fi
24874
24875
24876   elif test $where != no; then
24877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24878 $as_echo_n "checking for ctypesgen.py... " >&6; }
24879
24880     if test -f "$where"; then
24881       CTYPESGEN="$where"
24882     elif test -f "$where/bin/ctypesgen.py"; then
24883       CTYPESGEN="$where/bin/ctypesgen.py"
24884     else
24885       CTYPESGEN="$where/ctypesgen.py"
24886     fi
24887
24888     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24889       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24890                     $where/bin/ctypesgen.py" "$LINENO" 5
24891     else
24892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24893 $as_echo "$CTYPESGEN" >&6; }
24894     fi
24895   fi
24896
24897
24898
24899       ;;
24900       *)
24901
24902   where=$withval
24903
24904   CTYPESGEN=none
24905
24906   if test $where = check; then
24907     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24908 set dummy "ctypesgen.py"; ac_word=$2
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24910 $as_echo_n "checking for $ac_word... " >&6; }
24911 if ${ac_cv_path_CTYPESGEN+:} false; then :
24912   $as_echo_n "(cached) " >&6
24913 else
24914   case $CTYPESGEN in
24915   [\\/]* | ?:[\\/]*)
24916   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24917   ;;
24918   *)
24919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24920 for as_dir in $PATH
24921 do
24922   IFS=$as_save_IFS
24923   test -z "$as_dir" && as_dir=.
24924     for ac_exec_ext in '' $ac_executable_extensions; do
24925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24926     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24928     break 2
24929   fi
24930 done
24931   done
24932 IFS=$as_save_IFS
24933
24934   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24935   ;;
24936 esac
24937 fi
24938 CTYPESGEN=$ac_cv_path_CTYPESGEN
24939 if test -n "$CTYPESGEN"; then
24940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24941 $as_echo "$CTYPESGEN" >&6; }
24942 else
24943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24944 $as_echo "no" >&6; }
24945 fi
24946
24947
24948   elif test $where != no; then
24949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
24950 $as_echo_n "checking for ctypesgen.py... " >&6; }
24951
24952     if test -f "$where"; then
24953       CTYPESGEN="$where"
24954     elif test -f "$where/bin/ctypesgen.py"; then
24955       CTYPESGEN="$where/bin/ctypesgen.py"
24956     else
24957       CTYPESGEN="$where/ctypesgen.py"
24958     fi
24959
24960     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
24961       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
24962                     $where/bin/ctypesgen.py" "$LINENO" 5
24963     else
24964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
24965 $as_echo "$CTYPESGEN" >&6; }
24966     fi
24967   fi
24968
24969
24970
24971       ;;
24972     esac
24973
24974 else
24975
24976
24977   where=check
24978
24979   CTYPESGEN=none
24980
24981   if test $where = check; then
24982     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24983 set dummy "ctypesgen.py"; ac_word=$2
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24985 $as_echo_n "checking for $ac_word... " >&6; }
24986 if ${ac_cv_path_CTYPESGEN+:} false; then :
24987   $as_echo_n "(cached) " >&6
24988 else
24989   case $CTYPESGEN in
24990   [\\/]* | ?:[\\/]*)
24991   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24992   ;;
24993   *)
24994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24995 for as_dir in $PATH
24996 do
24997   IFS=$as_save_IFS
24998   test -z "$as_dir" && as_dir=.
24999     for ac_exec_ext in '' $ac_executable_extensions; do
25000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25001     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25003     break 2
25004   fi
25005 done
25006   done
25007 IFS=$as_save_IFS
25008
25009   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25010   ;;
25011 esac
25012 fi
25013 CTYPESGEN=$ac_cv_path_CTYPESGEN
25014 if test -n "$CTYPESGEN"; then
25015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25016 $as_echo "$CTYPESGEN" >&6; }
25017 else
25018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25019 $as_echo "no" >&6; }
25020 fi
25021
25022
25023   elif test $where != no; then
25024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25025 $as_echo_n "checking for ctypesgen.py... " >&6; }
25026
25027     if test -f "$where"; then
25028       CTYPESGEN="$where"
25029     elif test -f "$where/bin/ctypesgen.py"; then
25030       CTYPESGEN="$where/bin/ctypesgen.py"
25031     else
25032       CTYPESGEN="$where/ctypesgen.py"
25033     fi
25034
25035     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25036       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25037                     $where/bin/ctypesgen.py" "$LINENO" 5
25038     else
25039       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25040 $as_echo "$CTYPESGEN" >&6; }
25041     fi
25042   fi
25043
25044
25045
25046
25047 fi
25048
25049
25050
25051 # Check whether --enable-runtime-module-search was given.
25052 if test "${enable_runtime_module_search+set}" = set; then :
25053   enableval=$enable_runtime_module_search;
25054     if test "$enableval" = "yes"; then
25055       use_dso=yes
25056       if test "$svn_enable_shared" = "no"; then
25057         as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
25058       fi
25059
25060 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
25061
25062     fi
25063
25064 fi
25065
25066
25067 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
25068
25069 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
25070
25071   svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
25072   svn_ra_lib_install_deps="install-ramod-lib"
25073   svn_ra_lib_link="\$(RA_LOCAL_LINK)"
25074
25075
25076 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
25077
25078   svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
25079   svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
25080
25081   if test "$svn_lib_serf" = "yes"; then
25082
25083 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
25084
25085     svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
25086     svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
25087     svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
25088   fi
25089
25090   SVN_RA_LIB_DEPS=$svn_ra_lib_deps
25091   SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
25092   SVN_RA_LIB_LINK=$svn_ra_lib_link
25093
25094
25095 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
25096
25097   svn_fs_lib_deps="\$(FS_FS_DEPS)"
25098   svn_fs_lib_install_deps="install-fsmod-lib"
25099   svn_fs_lib_link="\$(FS_FS_LINK)"
25100
25101   if test "$svn_lib_berkeley_db" = "yes"; then
25102
25103 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
25104
25105     svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
25106     svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
25107     svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
25108   fi
25109
25110   SVN_FS_LIB_DEPS=$svn_fs_lib_deps
25111   SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
25112   SVN_FS_LIB_LINK=$svn_fs_lib_link
25113 fi
25114
25115
25116
25117
25118
25119
25120
25121
25122 # ==== JavaHL ================================================================
25123
25124 do_javahl_build=no
25125 # Check whether --enable-javahl was given.
25126 if test "${enable_javahl+set}" = set; then :
25127   enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
25128         do_javahl_build="yes"
25129     fi
25130
25131 fi
25132
25133
25134 JAVAHL_OBJDIR=""
25135 INSTALL_EXTRA_JAVAHL_LIB=""
25136 FIX_JAVAHL_LIB=""
25137 JAVAHL_TESTS_TARGET=""
25138 JAVAHL_COMPAT_TESTS_TARGET=""
25139 LT_CXX_LIBADD=""
25140 if test "$do_javahl_build" = "yes"; then
25141     if test "$JDK_SUITABLE" = "no"; then
25142     as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
25143                   Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
25144   fi
25145
25146     JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
25147
25148   os_arch=`uname`
25149   if test "$os_arch" = "Darwin"; then
25150         INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
25151     FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
25152   fi
25153   # This segment (and the rest of r10800) is very likely unnecessary
25154   # with libtool 1.5, which automatically adds libstdc++ as a
25155   # dependency to the C++ libraries it builds.  So at some future time
25156   # when autogen.sh requires libtool 1.5 or higher, we can get rid of
25157   # it.
25158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
25159 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
25160   if test "x$ac_compiler_gnu" = "xyes"; then
25161     LT_CXX_LIBADD="-lstdc++"
25162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
25163 $as_echo "$LT_CXX_LIBADD" >&6; }
25164   else
25165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
25166 $as_echo "none needed" >&6; }
25167   fi
25168 fi
25169
25170
25171
25172
25173
25174
25175 # Check whether --with-junit was given.
25176 if test "${with_junit+set}" = set; then :
25177   withval=$with_junit;
25178     if test "$withval" != "no"; then
25179       if test -n "$JAVA_CLASSPATH"; then
25180         JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
25181       else
25182         JAVA_CLASSPATH="$withval"
25183       fi
25184       JAVAHL_TESTS_TARGET="javahl-tests"
25185       JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
25186     fi
25187
25188 fi
25189
25190
25191
25192
25193
25194 # ==== Miscellaneous bits ====================================================
25195
25196 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
25197 ### I think we get this flag from APR, so the fix probably belongs there
25198 if test "$CC" = "clang"; then
25199
25200   CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25201
25202 fi
25203
25204 # Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well.
25205 SWIG_CPPFLAGS="$CPPFLAGS"
25206
25207   SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25208
25209
25210
25211
25212 cat >>confdefs.h <<_ACEOF
25213 #define SVN_PATH_LOCAL_SEPARATOR '/'
25214 _ACEOF
25215
25216
25217
25218 cat >>confdefs.h <<_ACEOF
25219 #define SVN_NULL_DEVICE_NAME "/dev/null"
25220 _ACEOF
25221
25222
25223 DEFAULT_FS_TYPE="fsfs"
25224
25225 cat >>confdefs.h <<_ACEOF
25226 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
25227 _ACEOF
25228
25229
25230 DEFAULT_HTTP_LIBRARY="serf"
25231
25232 cat >>confdefs.h <<_ACEOF
25233 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
25234 _ACEOF
25235
25236
25237 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
25238 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
25239 case "$host" in
25240   *bsdi*)
25241     # Check whether they've installed GNU make
25242     if ! make --version > /dev/null 2>&1; then
25243       # BSDi make
25244       INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
25245     fi
25246     ;;
25247 esac
25248
25249
25250 # ==== Detection complete - output and run config.status =====================
25251
25252 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
25253
25254 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
25255
25256 ac_config_files="$ac_config_files Makefile"
25257
25258
25259
25260   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
25261   ac_config_files="$ac_config_files tools/backup/hot-backup.py"
25262
25263
25264   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
25265   ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
25266
25267
25268   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
25269   ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
25270
25271 if test -e packages/solaris/pkginfo.in; then
25272
25273   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
25274   ac_config_files="$ac_config_files packages/solaris/pkginfo"
25275
25276 fi
25277
25278
25279 # Ensure that SWIG is checked after reconfiguration.
25280 rm -f .swig_checked
25281
25282
25283 cat >>confdefs.h <<_ACEOF
25284 #define SVN_BUILD_HOST "${host}"
25285 _ACEOF
25286
25287
25288
25289 cat >>confdefs.h <<_ACEOF
25290 #define SVN_BUILD_TARGET "${target}"
25291 _ACEOF
25292
25293
25294 cat >confcache <<\_ACEOF
25295 # This file is a shell script that caches the results of configure
25296 # tests run on this system so they can be shared between configure
25297 # scripts and configure runs, see configure's option --config-cache.
25298 # It is not useful on other systems.  If it contains results you don't
25299 # want to keep, you may remove or edit it.
25300 #
25301 # config.status only pays attention to the cache file if you give it
25302 # the --recheck option to rerun configure.
25303 #
25304 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25306 # following values.
25307
25308 _ACEOF
25309
25310 # The following way of writing the cache mishandles newlines in values,
25311 # but we know of no workaround that is simple, portable, and efficient.
25312 # So, we kill variables containing newlines.
25313 # Ultrix sh set writes to stderr and can't be redirected directly,
25314 # and sets the high bit in the cache file unless we assign to the vars.
25315 (
25316   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25317     eval ac_val=\$$ac_var
25318     case $ac_val in #(
25319     *${as_nl}*)
25320       case $ac_var in #(
25321       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25322 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25323       esac
25324       case $ac_var in #(
25325       _ | IFS | as_nl) ;; #(
25326       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25327       *) { eval $ac_var=; unset $ac_var;} ;;
25328       esac ;;
25329     esac
25330   done
25331
25332   (set) 2>&1 |
25333     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25334     *${as_nl}ac_space=\ *)
25335       # `set' does not quote correctly, so add quotes: double-quote
25336       # substitution turns \\\\ into \\, and sed turns \\ into \.
25337       sed -n \
25338         "s/'/'\\\\''/g;
25339           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25340       ;; #(
25341     *)
25342       # `set' quotes correctly as required by POSIX, so do not add quotes.
25343       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25344       ;;
25345     esac |
25346     sort
25347 ) |
25348   sed '
25349      /^ac_cv_env_/b end
25350      t clear
25351      :clear
25352      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25353      t end
25354      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25355      :end' >>confcache
25356 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25357   if test -w "$cache_file"; then
25358     if test "x$cache_file" != "x/dev/null"; then
25359       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25360 $as_echo "$as_me: updating cache $cache_file" >&6;}
25361       if test ! -f "$cache_file" || test -h "$cache_file"; then
25362         cat confcache >"$cache_file"
25363       else
25364         case $cache_file in #(
25365         */* | ?:*)
25366           mv -f confcache "$cache_file"$$ &&
25367           mv -f "$cache_file"$$ "$cache_file" ;; #(
25368         *)
25369           mv -f confcache "$cache_file" ;;
25370         esac
25371       fi
25372     fi
25373   else
25374     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25375 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25376   fi
25377 fi
25378 rm -f confcache
25379
25380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25381 # Let make expand exec_prefix.
25382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25383
25384 DEFS=-DHAVE_CONFIG_H
25385
25386 ac_libobjs=
25387 ac_ltlibobjs=
25388 U=
25389 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25390   # 1. Remove the extension, and $U if already installed.
25391   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25392   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25393   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25394   #    will be set to the directory where LIBOBJS objects are built.
25395   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25396   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25397 done
25398 LIBOBJS=$ac_libobjs
25399
25400 LTLIBOBJS=$ac_ltlibobjs
25401
25402
25403
25404 : "${CONFIG_STATUS=./config.status}"
25405 ac_write_fail=0
25406 ac_clean_files_save=$ac_clean_files
25407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25409 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25410 as_write_fail=0
25411 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25412 #! $SHELL
25413 # Generated by $as_me.
25414 # Run this file to recreate the current configuration.
25415 # Compiler output produced by configure, useful for debugging
25416 # configure, is in config.log if it exists.
25417
25418 debug=false
25419 ac_cs_recheck=false
25420 ac_cs_silent=false
25421
25422 SHELL=\${CONFIG_SHELL-$SHELL}
25423 export SHELL
25424 _ASEOF
25425 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25426 ## -------------------- ##
25427 ## M4sh Initialization. ##
25428 ## -------------------- ##
25429
25430 # Be more Bourne compatible
25431 DUALCASE=1; export DUALCASE # for MKS sh
25432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25433   emulate sh
25434   NULLCMD=:
25435   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25436   # is contrary to our usage.  Disable this feature.
25437   alias -g '${1+"$@"}'='"$@"'
25438   setopt NO_GLOB_SUBST
25439 else
25440   case `(set -o) 2>/dev/null` in #(
25441   *posix*) :
25442     set -o posix ;; #(
25443   *) :
25444      ;;
25445 esac
25446 fi
25447
25448
25449 as_nl='
25450 '
25451 export as_nl
25452 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25453 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25454 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25455 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25456 # Prefer a ksh shell builtin over an external printf program on Solaris,
25457 # but without wasting forks for bash or zsh.
25458 if test -z "$BASH_VERSION$ZSH_VERSION" \
25459     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25460   as_echo='print -r --'
25461   as_echo_n='print -rn --'
25462 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25463   as_echo='printf %s\n'
25464   as_echo_n='printf %s'
25465 else
25466   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25467     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25468     as_echo_n='/usr/ucb/echo -n'
25469   else
25470     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25471     as_echo_n_body='eval
25472       arg=$1;
25473       case $arg in #(
25474       *"$as_nl"*)
25475         expr "X$arg" : "X\\(.*\\)$as_nl";
25476         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25477       esac;
25478       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25479     '
25480     export as_echo_n_body
25481     as_echo_n='sh -c $as_echo_n_body as_echo'
25482   fi
25483   export as_echo_body
25484   as_echo='sh -c $as_echo_body as_echo'
25485 fi
25486
25487 # The user is always right.
25488 if test "${PATH_SEPARATOR+set}" != set; then
25489   PATH_SEPARATOR=:
25490   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25491     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25492       PATH_SEPARATOR=';'
25493   }
25494 fi
25495
25496
25497 # IFS
25498 # We need space, tab and new line, in precisely that order.  Quoting is
25499 # there to prevent editors from complaining about space-tab.
25500 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25501 # splitting by setting IFS to empty value.)
25502 IFS=" ""        $as_nl"
25503
25504 # Find who we are.  Look in the path if we contain no directory separator.
25505 as_myself=
25506 case $0 in #((
25507   *[\\/]* ) as_myself=$0 ;;
25508   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25509 for as_dir in $PATH
25510 do
25511   IFS=$as_save_IFS
25512   test -z "$as_dir" && as_dir=.
25513     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25514   done
25515 IFS=$as_save_IFS
25516
25517      ;;
25518 esac
25519 # We did not find ourselves, most probably we were run as `sh COMMAND'
25520 # in which case we are not to be found in the path.
25521 if test "x$as_myself" = x; then
25522   as_myself=$0
25523 fi
25524 if test ! -f "$as_myself"; then
25525   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25526   exit 1
25527 fi
25528
25529 # Unset variables that we do not need and which cause bugs (e.g. in
25530 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25531 # suppresses any "Segmentation fault" message there.  '((' could
25532 # trigger a bug in pdksh 5.2.14.
25533 for as_var in BASH_ENV ENV MAIL MAILPATH
25534 do eval test x\${$as_var+set} = xset \
25535   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25536 done
25537 PS1='$ '
25538 PS2='> '
25539 PS4='+ '
25540
25541 # NLS nuisances.
25542 LC_ALL=C
25543 export LC_ALL
25544 LANGUAGE=C
25545 export LANGUAGE
25546
25547 # CDPATH.
25548 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25549
25550
25551 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25552 # ----------------------------------------
25553 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25554 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25555 # script with STATUS, using 1 if that was 0.
25556 as_fn_error ()
25557 {
25558   as_status=$1; test $as_status -eq 0 && as_status=1
25559   if test "$4"; then
25560     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25561     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25562   fi
25563   $as_echo "$as_me: error: $2" >&2
25564   as_fn_exit $as_status
25565 } # as_fn_error
25566
25567
25568 # as_fn_set_status STATUS
25569 # -----------------------
25570 # Set $? to STATUS, without forking.
25571 as_fn_set_status ()
25572 {
25573   return $1
25574 } # as_fn_set_status
25575
25576 # as_fn_exit STATUS
25577 # -----------------
25578 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25579 as_fn_exit ()
25580 {
25581   set +e
25582   as_fn_set_status $1
25583   exit $1
25584 } # as_fn_exit
25585
25586 # as_fn_unset VAR
25587 # ---------------
25588 # Portably unset VAR.
25589 as_fn_unset ()
25590 {
25591   { eval $1=; unset $1;}
25592 }
25593 as_unset=as_fn_unset
25594 # as_fn_append VAR VALUE
25595 # ----------------------
25596 # Append the text in VALUE to the end of the definition contained in VAR. Take
25597 # advantage of any shell optimizations that allow amortized linear growth over
25598 # repeated appends, instead of the typical quadratic growth present in naive
25599 # implementations.
25600 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25601   eval 'as_fn_append ()
25602   {
25603     eval $1+=\$2
25604   }'
25605 else
25606   as_fn_append ()
25607   {
25608     eval $1=\$$1\$2
25609   }
25610 fi # as_fn_append
25611
25612 # as_fn_arith ARG...
25613 # ------------------
25614 # Perform arithmetic evaluation on the ARGs, and store the result in the
25615 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25616 # must be portable across $(()) and expr.
25617 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25618   eval 'as_fn_arith ()
25619   {
25620     as_val=$(( $* ))
25621   }'
25622 else
25623   as_fn_arith ()
25624   {
25625     as_val=`expr "$@" || test $? -eq 1`
25626   }
25627 fi # as_fn_arith
25628
25629
25630 if expr a : '\(a\)' >/dev/null 2>&1 &&
25631    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25632   as_expr=expr
25633 else
25634   as_expr=false
25635 fi
25636
25637 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25638   as_basename=basename
25639 else
25640   as_basename=false
25641 fi
25642
25643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25644   as_dirname=dirname
25645 else
25646   as_dirname=false
25647 fi
25648
25649 as_me=`$as_basename -- "$0" ||
25650 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25651          X"$0" : 'X\(//\)$' \| \
25652          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25653 $as_echo X/"$0" |
25654     sed '/^.*\/\([^/][^/]*\)\/*$/{
25655             s//\1/
25656             q
25657           }
25658           /^X\/\(\/\/\)$/{
25659             s//\1/
25660             q
25661           }
25662           /^X\/\(\/\).*/{
25663             s//\1/
25664             q
25665           }
25666           s/.*/./; q'`
25667
25668 # Avoid depending upon Character Ranges.
25669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25672 as_cr_digits='0123456789'
25673 as_cr_alnum=$as_cr_Letters$as_cr_digits
25674
25675 ECHO_C= ECHO_N= ECHO_T=
25676 case `echo -n x` in #(((((
25677 -n*)
25678   case `echo 'xy\c'` in
25679   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25680   xy)  ECHO_C='\c';;
25681   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25682        ECHO_T=' ';;
25683   esac;;
25684 *)
25685   ECHO_N='-n';;
25686 esac
25687
25688 rm -f conf$$ conf$$.exe conf$$.file
25689 if test -d conf$$.dir; then
25690   rm -f conf$$.dir/conf$$.file
25691 else
25692   rm -f conf$$.dir
25693   mkdir conf$$.dir 2>/dev/null
25694 fi
25695 if (echo >conf$$.file) 2>/dev/null; then
25696   if ln -s conf$$.file conf$$ 2>/dev/null; then
25697     as_ln_s='ln -s'
25698     # ... but there are two gotchas:
25699     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25700     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25701     # In both cases, we have to default to `cp -pR'.
25702     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25703       as_ln_s='cp -pR'
25704   elif ln conf$$.file conf$$ 2>/dev/null; then
25705     as_ln_s=ln
25706   else
25707     as_ln_s='cp -pR'
25708   fi
25709 else
25710   as_ln_s='cp -pR'
25711 fi
25712 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25713 rmdir conf$$.dir 2>/dev/null
25714
25715
25716 # as_fn_mkdir_p
25717 # -------------
25718 # Create "$as_dir" as a directory, including parents if necessary.
25719 as_fn_mkdir_p ()
25720 {
25721
25722   case $as_dir in #(
25723   -*) as_dir=./$as_dir;;
25724   esac
25725   test -d "$as_dir" || eval $as_mkdir_p || {
25726     as_dirs=
25727     while :; do
25728       case $as_dir in #(
25729       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25730       *) as_qdir=$as_dir;;
25731       esac
25732       as_dirs="'$as_qdir' $as_dirs"
25733       as_dir=`$as_dirname -- "$as_dir" ||
25734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25735          X"$as_dir" : 'X\(//\)[^/]' \| \
25736          X"$as_dir" : 'X\(//\)$' \| \
25737          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25738 $as_echo X"$as_dir" |
25739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25740             s//\1/
25741             q
25742           }
25743           /^X\(\/\/\)[^/].*/{
25744             s//\1/
25745             q
25746           }
25747           /^X\(\/\/\)$/{
25748             s//\1/
25749             q
25750           }
25751           /^X\(\/\).*/{
25752             s//\1/
25753             q
25754           }
25755           s/.*/./; q'`
25756       test -d "$as_dir" && break
25757     done
25758     test -z "$as_dirs" || eval "mkdir $as_dirs"
25759   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25760
25761
25762 } # as_fn_mkdir_p
25763 if mkdir -p . 2>/dev/null; then
25764   as_mkdir_p='mkdir -p "$as_dir"'
25765 else
25766   test -d ./-p && rmdir ./-p
25767   as_mkdir_p=false
25768 fi
25769
25770
25771 # as_fn_executable_p FILE
25772 # -----------------------
25773 # Test if FILE is an executable regular file.
25774 as_fn_executable_p ()
25775 {
25776   test -f "$1" && test -x "$1"
25777 } # as_fn_executable_p
25778 as_test_x='test -x'
25779 as_executable_p=as_fn_executable_p
25780
25781 # Sed expression to map a string onto a valid CPP name.
25782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25783
25784 # Sed expression to map a string onto a valid variable name.
25785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25786
25787
25788 exec 6>&1
25789 ## ----------------------------------- ##
25790 ## Main body of $CONFIG_STATUS script. ##
25791 ## ----------------------------------- ##
25792 _ASEOF
25793 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25794
25795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25796 # Save the log message, to keep $0 and so on meaningful, and to
25797 # report actual input values of CONFIG_FILES etc. instead of their
25798 # values after options handling.
25799 ac_log="
25800 This file was extended by subversion $as_me 1.8.10, which was
25801 generated by GNU Autoconf 2.69.  Invocation command line was
25802
25803   CONFIG_FILES    = $CONFIG_FILES
25804   CONFIG_HEADERS  = $CONFIG_HEADERS
25805   CONFIG_LINKS    = $CONFIG_LINKS
25806   CONFIG_COMMANDS = $CONFIG_COMMANDS
25807   $ $0 $@
25808
25809 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25810 "
25811
25812 _ACEOF
25813
25814 case $ac_config_files in *"
25815 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25816 esac
25817
25818 case $ac_config_headers in *"
25819 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25820 esac
25821
25822
25823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25824 # Files that config.status was made for.
25825 config_files="$ac_config_files"
25826 config_headers="$ac_config_headers"
25827 config_commands="$ac_config_commands"
25828
25829 _ACEOF
25830
25831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25832 ac_cs_usage="\
25833 \`$as_me' instantiates files and other configuration actions
25834 from templates according to the current configuration.  Unless the files
25835 and actions are specified as TAGs, all are instantiated by default.
25836
25837 Usage: $0 [OPTION]... [TAG]...
25838
25839   -h, --help       print this help, then exit
25840   -V, --version    print version number and configuration settings, then exit
25841       --config     print configuration, then exit
25842   -q, --quiet, --silent
25843                    do not print progress messages
25844   -d, --debug      don't remove temporary files
25845       --recheck    update $as_me by reconfiguring in the same conditions
25846       --file=FILE[:TEMPLATE]
25847                    instantiate the configuration file FILE
25848       --header=FILE[:TEMPLATE]
25849                    instantiate the configuration header FILE
25850
25851 Configuration files:
25852 $config_files
25853
25854 Configuration headers:
25855 $config_headers
25856
25857 Configuration commands:
25858 $config_commands
25859
25860 Report bugs to <http://subversion.apache.org/>."
25861
25862 _ACEOF
25863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25864 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25865 ac_cs_version="\\
25866 subversion config.status 1.8.10
25867 configured by $0, generated by GNU Autoconf 2.69,
25868   with options \\"\$ac_cs_config\\"
25869
25870 Copyright (C) 2012 Free Software Foundation, Inc.
25871 This config.status script is free software; the Free Software Foundation
25872 gives unlimited permission to copy, distribute and modify it."
25873
25874 ac_pwd='$ac_pwd'
25875 srcdir='$srcdir'
25876 INSTALL='$INSTALL'
25877 AWK='$AWK'
25878 test -n "\$AWK" || AWK=awk
25879 _ACEOF
25880
25881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25882 # The default lists apply if the user does not specify any file.
25883 ac_need_defaults=:
25884 while test $# != 0
25885 do
25886   case $1 in
25887   --*=?*)
25888     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25889     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25890     ac_shift=:
25891     ;;
25892   --*=)
25893     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25894     ac_optarg=
25895     ac_shift=:
25896     ;;
25897   *)
25898     ac_option=$1
25899     ac_optarg=$2
25900     ac_shift=shift
25901     ;;
25902   esac
25903
25904   case $ac_option in
25905   # Handling of the options.
25906   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25907     ac_cs_recheck=: ;;
25908   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25909     $as_echo "$ac_cs_version"; exit ;;
25910   --config | --confi | --conf | --con | --co | --c )
25911     $as_echo "$ac_cs_config"; exit ;;
25912   --debug | --debu | --deb | --de | --d | -d )
25913     debug=: ;;
25914   --file | --fil | --fi | --f )
25915     $ac_shift
25916     case $ac_optarg in
25917     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25918     '') as_fn_error $? "missing file argument" ;;
25919     esac
25920     as_fn_append CONFIG_FILES " '$ac_optarg'"
25921     ac_need_defaults=false;;
25922   --header | --heade | --head | --hea )
25923     $ac_shift
25924     case $ac_optarg in
25925     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25926     esac
25927     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25928     ac_need_defaults=false;;
25929   --he | --h)
25930     # Conflict between --help and --header
25931     as_fn_error $? "ambiguous option: \`$1'
25932 Try \`$0 --help' for more information.";;
25933   --help | --hel | -h )
25934     $as_echo "$ac_cs_usage"; exit ;;
25935   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25936   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25937     ac_cs_silent=: ;;
25938
25939   # This is an error.
25940   -*) as_fn_error $? "unrecognized option: \`$1'
25941 Try \`$0 --help' for more information." ;;
25942
25943   *) as_fn_append ac_config_targets " $1"
25944      ac_need_defaults=false ;;
25945
25946   esac
25947   shift
25948 done
25949
25950 ac_configure_extra_args=
25951
25952 if $ac_cs_silent; then
25953   exec 6>/dev/null
25954   ac_configure_extra_args="$ac_configure_extra_args --silent"
25955 fi
25956
25957 _ACEOF
25958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25959 if \$ac_cs_recheck; then
25960   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25961   shift
25962   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25963   CONFIG_SHELL='$SHELL'
25964   export CONFIG_SHELL
25965   exec "\$@"
25966 fi
25967
25968 _ACEOF
25969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25970 exec 5>>config.log
25971 {
25972   echo
25973   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25974 ## Running $as_me. ##
25975 _ASBOX
25976   $as_echo "$ac_log"
25977 } >&5
25978
25979 _ACEOF
25980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25981 #
25982 # INIT-COMMANDS
25983 #
25984
25985
25986 # The HP-UX ksh and POSIX shell print the target directory to stdout
25987 # if CDPATH is set.
25988 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25989
25990 sed_quote_subst='$sed_quote_subst'
25991 double_quote_subst='$double_quote_subst'
25992 delay_variable_subst='$delay_variable_subst'
25993 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25994 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25995 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25996 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25997 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25998 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25999 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26000 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26001 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26002 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26003 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26004 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26005 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26006 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26007 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26008 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26009 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26010 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26011 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26012 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26013 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26014 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26015 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26016 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26017 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26018 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26019 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26020 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26021 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26022 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26023 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26024 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26025 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26026 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26027 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26028 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26029 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26030 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26031 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26032 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26033 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26034 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26035 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26036 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26037 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26038 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26039 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26040 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26041 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26042 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26043 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26044 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26045 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26046 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26047 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26048 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26049 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"`'
26050 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26051 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26052 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26053 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26054 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26055 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26056 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26057 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26058 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26059 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26060 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26061 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26062 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26063 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26064 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26065 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26066 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26067 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26068 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26069 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26070 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26071 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26072 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26073 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26074 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26075 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26076 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26077 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26078 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26079 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26080 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26081 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26082 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26083 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26084 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26085 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26086 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26087 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26088 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26089 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26090 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26091 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26092 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26093 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26094 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26095 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26096 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26097 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26098 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26099 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26100 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26101 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26102 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26103 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26104 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26105 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26106 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26107 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26108 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26109 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26110 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26111 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26112 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26113 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26114 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26115 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26116 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26117 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26118 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26119 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26120 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26121 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26122 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26123 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26124 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26125 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26126 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26127 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26128 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26129 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26130 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26131 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26132 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26133 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26134 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26135 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26136 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26137 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26138 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26139 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26140 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26141 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26142 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26143 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26144 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26145 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26146 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26147 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26148 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26149 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26150 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26151 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26152 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26153 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26154 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26155 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26156 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26157 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26158 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26159 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26160 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26161 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26162 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26163 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26164 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26165 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26166 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26167 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26168 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26169 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26170 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26171 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26172 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26173 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26174 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26175 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26176 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26177
26178 LTCC='$LTCC'
26179 LTCFLAGS='$LTCFLAGS'
26180 compiler='$compiler_DEFAULT'
26181
26182 # A function that is used when there is no print builtin or printf.
26183 func_fallback_echo ()
26184 {
26185   eval 'cat <<_LTECHO_EOF
26186 \$1
26187 _LTECHO_EOF'
26188 }
26189
26190 # Quote evaled strings.
26191 for var in SHELL \
26192 ECHO \
26193 PATH_SEPARATOR \
26194 SED \
26195 GREP \
26196 EGREP \
26197 FGREP \
26198 LD \
26199 NM \
26200 LN_S \
26201 lt_SP2NL \
26202 lt_NL2SP \
26203 reload_flag \
26204 OBJDUMP \
26205 deplibs_check_method \
26206 file_magic_cmd \
26207 file_magic_glob \
26208 want_nocaseglob \
26209 DLLTOOL \
26210 sharedlib_from_linklib_cmd \
26211 AR \
26212 AR_FLAGS \
26213 archiver_list_spec \
26214 STRIP \
26215 RANLIB \
26216 CC \
26217 CFLAGS \
26218 compiler \
26219 lt_cv_sys_global_symbol_pipe \
26220 lt_cv_sys_global_symbol_to_cdecl \
26221 lt_cv_sys_global_symbol_to_c_name_address \
26222 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26223 nm_file_list_spec \
26224 lt_prog_compiler_no_builtin_flag \
26225 lt_prog_compiler_pic \
26226 lt_prog_compiler_wl \
26227 lt_prog_compiler_static \
26228 lt_cv_prog_compiler_c_o \
26229 need_locks \
26230 MANIFEST_TOOL \
26231 DSYMUTIL \
26232 NMEDIT \
26233 LIPO \
26234 OTOOL \
26235 OTOOL64 \
26236 shrext_cmds \
26237 export_dynamic_flag_spec \
26238 whole_archive_flag_spec \
26239 compiler_needs_object \
26240 with_gnu_ld \
26241 allow_undefined_flag \
26242 no_undefined_flag \
26243 hardcode_libdir_flag_spec \
26244 hardcode_libdir_separator \
26245 exclude_expsyms \
26246 include_expsyms \
26247 file_list_spec \
26248 variables_saved_for_relink \
26249 libname_spec \
26250 library_names_spec \
26251 soname_spec \
26252 install_override_mode \
26253 finish_eval \
26254 old_striplib \
26255 striplib \
26256 compiler_lib_search_dirs \
26257 predep_objects \
26258 postdep_objects \
26259 predeps \
26260 postdeps \
26261 compiler_lib_search_path \
26262 LD_CXX \
26263 reload_flag_CXX \
26264 compiler_CXX \
26265 lt_prog_compiler_no_builtin_flag_CXX \
26266 lt_prog_compiler_pic_CXX \
26267 lt_prog_compiler_wl_CXX \
26268 lt_prog_compiler_static_CXX \
26269 lt_cv_prog_compiler_c_o_CXX \
26270 export_dynamic_flag_spec_CXX \
26271 whole_archive_flag_spec_CXX \
26272 compiler_needs_object_CXX \
26273 with_gnu_ld_CXX \
26274 allow_undefined_flag_CXX \
26275 no_undefined_flag_CXX \
26276 hardcode_libdir_flag_spec_CXX \
26277 hardcode_libdir_separator_CXX \
26278 exclude_expsyms_CXX \
26279 include_expsyms_CXX \
26280 file_list_spec_CXX \
26281 compiler_lib_search_dirs_CXX \
26282 predep_objects_CXX \
26283 postdep_objects_CXX \
26284 predeps_CXX \
26285 postdeps_CXX \
26286 compiler_lib_search_path_CXX; do
26287     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26288     *[\\\\\\\`\\"\\\$]*)
26289       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26290       ;;
26291     *)
26292       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26293       ;;
26294     esac
26295 done
26296
26297 # Double-quote double-evaled strings.
26298 for var in reload_cmds \
26299 old_postinstall_cmds \
26300 old_postuninstall_cmds \
26301 old_archive_cmds \
26302 extract_expsyms_cmds \
26303 old_archive_from_new_cmds \
26304 old_archive_from_expsyms_cmds \
26305 archive_cmds \
26306 archive_expsym_cmds \
26307 module_cmds \
26308 module_expsym_cmds \
26309 export_symbols_cmds \
26310 prelink_cmds \
26311 postlink_cmds \
26312 postinstall_cmds \
26313 postuninstall_cmds \
26314 finish_cmds \
26315 sys_lib_search_path_spec \
26316 sys_lib_dlsearch_path_spec \
26317 reload_cmds_CXX \
26318 old_archive_cmds_CXX \
26319 old_archive_from_new_cmds_CXX \
26320 old_archive_from_expsyms_cmds_CXX \
26321 archive_cmds_CXX \
26322 archive_expsym_cmds_CXX \
26323 module_cmds_CXX \
26324 module_expsym_cmds_CXX \
26325 export_symbols_cmds_CXX \
26326 prelink_cmds_CXX \
26327 postlink_cmds_CXX; do
26328     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26329     *[\\\\\\\`\\"\\\$]*)
26330       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26331       ;;
26332     *)
26333       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26334       ;;
26335     esac
26336 done
26337
26338 ac_aux_dir='$ac_aux_dir'
26339 xsi_shell='$xsi_shell'
26340 lt_shell_append='$lt_shell_append'
26341
26342 # See if we are running on zsh, and set the options which allow our
26343 # commands through without removal of \ escapes INIT.
26344 if test -n "\${ZSH_VERSION+set}" ; then
26345    setopt NO_GLOB_SUBST
26346 fi
26347
26348
26349     PACKAGE='$PACKAGE'
26350     VERSION='$VERSION'
26351     TIMESTAMP='$TIMESTAMP'
26352     RM='$RM'
26353     ofile='$ofile'
26354
26355
26356
26357
26358
26359 SED="$SED"
26360                     SVN_DB_HEADER="$SVN_DB_HEADER"
26361
26362 _ACEOF
26363
26364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26365
26366 # Handling of arguments.
26367 for ac_config_target in $ac_config_targets
26368 do
26369   case $ac_config_target in
26370     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26371     "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
26372     "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
26373     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26374     "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
26375     "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
26376     "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
26377     "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
26378
26379   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26380   esac
26381 done
26382
26383
26384 # If the user did not use the arguments to specify the items to instantiate,
26385 # then the envvar interface is used.  Set only those that are not.
26386 # We use the long form for the default assignment because of an extremely
26387 # bizarre bug on SunOS 4.1.3.
26388 if $ac_need_defaults; then
26389   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26390   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26391   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26392 fi
26393
26394 # Have a temporary directory for convenience.  Make it in the build tree
26395 # simply because there is no reason against having it here, and in addition,
26396 # creating and moving files from /tmp can sometimes cause problems.
26397 # Hook for its removal unless debugging.
26398 # Note that there is a small window in which the directory will not be cleaned:
26399 # after its creation but before its name has been assigned to `$tmp'.
26400 $debug ||
26401 {
26402   tmp= ac_tmp=
26403   trap 'exit_status=$?
26404   : "${ac_tmp:=$tmp}"
26405   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26406 ' 0
26407   trap 'as_fn_exit 1' 1 2 13 15
26408 }
26409 # Create a (secure) tmp directory for tmp files.
26410
26411 {
26412   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26413   test -d "$tmp"
26414 }  ||
26415 {
26416   tmp=./conf$$-$RANDOM
26417   (umask 077 && mkdir "$tmp")
26418 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26419 ac_tmp=$tmp
26420
26421 # Set up the scripts for CONFIG_FILES section.
26422 # No need to generate them if there are no CONFIG_FILES.
26423 # This happens for instance with `./config.status config.h'.
26424 if test -n "$CONFIG_FILES"; then
26425
26426
26427 ac_cr=`echo X | tr X '\015'`
26428 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26429 # But we know of no other shell where ac_cr would be empty at this
26430 # point, so we can use a bashism as a fallback.
26431 if test "x$ac_cr" = x; then
26432   eval ac_cr=\$\'\\r\'
26433 fi
26434 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26436   ac_cs_awk_cr='\\r'
26437 else
26438   ac_cs_awk_cr=$ac_cr
26439 fi
26440
26441 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26442 _ACEOF
26443
26444
26445 {
26446   echo "cat >conf$$subs.awk <<_ACEOF" &&
26447   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26448   echo "_ACEOF"
26449 } >conf$$subs.sh ||
26450   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26451 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26452 ac_delim='%!_!# '
26453 for ac_last_try in false false false false false :; do
26454   . ./conf$$subs.sh ||
26455     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26456
26457   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26458   if test $ac_delim_n = $ac_delim_num; then
26459     break
26460   elif $ac_last_try; then
26461     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26462   else
26463     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26464   fi
26465 done
26466 rm -f conf$$subs.sh
26467
26468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26469 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26470 _ACEOF
26471 sed -n '
26472 h
26473 s/^/S["/; s/!.*/"]=/
26474 p
26475 g
26476 s/^[^!]*!//
26477 :repl
26478 t repl
26479 s/'"$ac_delim"'$//
26480 t delim
26481 :nl
26482 h
26483 s/\(.\{148\}\)..*/\1/
26484 t more1
26485 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26486 p
26487 n
26488 b repl
26489 :more1
26490 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26491 p
26492 g
26493 s/.\{148\}//
26494 t nl
26495 :delim
26496 h
26497 s/\(.\{148\}\)..*/\1/
26498 t more2
26499 s/["\\]/\\&/g; s/^/"/; s/$/"/
26500 p
26501 b
26502 :more2
26503 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26504 p
26505 g
26506 s/.\{148\}//
26507 t delim
26508 ' <conf$$subs.awk | sed '
26509 /^[^""]/{
26510   N
26511   s/\n//
26512 }
26513 ' >>$CONFIG_STATUS || ac_write_fail=1
26514 rm -f conf$$subs.awk
26515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26516 _ACAWK
26517 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26518   for (key in S) S_is_set[key] = 1
26519   FS = "\a"
26520
26521 }
26522 {
26523   line = $ 0
26524   nfields = split(line, field, "@")
26525   substed = 0
26526   len = length(field[1])
26527   for (i = 2; i < nfields; i++) {
26528     key = field[i]
26529     keylen = length(key)
26530     if (S_is_set[key]) {
26531       value = S[key]
26532       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26533       len += length(value) + length(field[++i])
26534       substed = 1
26535     } else
26536       len += 1 + keylen
26537   }
26538
26539   print line
26540 }
26541
26542 _ACAWK
26543 _ACEOF
26544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26545 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26546   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26547 else
26548   cat
26549 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26550   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26551 _ACEOF
26552
26553 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26554 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26555 # trailing colons and then remove the whole line if VPATH becomes empty
26556 # (actually we leave an empty line to preserve line numbers).
26557 if test "x$srcdir" = x.; then
26558   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26559 h
26560 s///
26561 s/^/:/
26562 s/[      ]*$/:/
26563 s/:\$(srcdir):/:/g
26564 s/:\${srcdir}:/:/g
26565 s/:@srcdir@:/:/g
26566 s/^:*//
26567 s/:*$//
26568 x
26569 s/\(=[   ]*\).*/\1/
26570 G
26571 s/\n//
26572 s/^[^=]*=[       ]*$//
26573 }'
26574 fi
26575
26576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26577 fi # test -n "$CONFIG_FILES"
26578
26579 # Set up the scripts for CONFIG_HEADERS section.
26580 # No need to generate them if there are no CONFIG_HEADERS.
26581 # This happens for instance with `./config.status Makefile'.
26582 if test -n "$CONFIG_HEADERS"; then
26583 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26584 BEGIN {
26585 _ACEOF
26586
26587 # Transform confdefs.h into an awk script `defines.awk', embedded as
26588 # here-document in config.status, that substitutes the proper values into
26589 # config.h.in to produce config.h.
26590
26591 # Create a delimiter string that does not exist in confdefs.h, to ease
26592 # handling of long lines.
26593 ac_delim='%!_!# '
26594 for ac_last_try in false false :; do
26595   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26596   if test -z "$ac_tt"; then
26597     break
26598   elif $ac_last_try; then
26599     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26600   else
26601     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26602   fi
26603 done
26604
26605 # For the awk script, D is an array of macro values keyed by name,
26606 # likewise P contains macro parameters if any.  Preserve backslash
26607 # newline sequences.
26608
26609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26610 sed -n '
26611 s/.\{148\}/&'"$ac_delim"'/g
26612 t rset
26613 :rset
26614 s/^[     ]*#[    ]*define[       ][      ]*/ /
26615 t def
26616 d
26617 :def
26618 s/\\$//
26619 t bsnl
26620 s/["\\]/\\&/g
26621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26622 D["\1"]=" \3"/p
26623 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26624 d
26625 :bsnl
26626 s/["\\]/\\&/g
26627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26628 D["\1"]=" \3\\\\\\n"\\/p
26629 t cont
26630 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26631 t cont
26632 d
26633 :cont
26634 n
26635 s/.\{148\}/&'"$ac_delim"'/g
26636 t clear
26637 :clear
26638 s/\\$//
26639 t bsnlc
26640 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26641 d
26642 :bsnlc
26643 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26644 b cont
26645 ' <confdefs.h | sed '
26646 s/'"$ac_delim"'/"\\\
26647 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26648
26649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650   for (key in D) D_is_set[key] = 1
26651   FS = "\a"
26652 }
26653 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26654   line = \$ 0
26655   split(line, arg, " ")
26656   if (arg[1] == "#") {
26657     defundef = arg[2]
26658     mac1 = arg[3]
26659   } else {
26660     defundef = substr(arg[1], 2)
26661     mac1 = arg[2]
26662   }
26663   split(mac1, mac2, "(") #)
26664   macro = mac2[1]
26665   prefix = substr(line, 1, index(line, defundef) - 1)
26666   if (D_is_set[macro]) {
26667     # Preserve the white space surrounding the "#".
26668     print prefix "define", macro P[macro] D[macro]
26669     next
26670   } else {
26671     # Replace #undef with comments.  This is necessary, for example,
26672     # in the case of _POSIX_SOURCE, which is predefined and required
26673     # on some systems where configure will not decide to define it.
26674     if (defundef == "undef") {
26675       print "/*", prefix defundef, macro, "*/"
26676       next
26677     }
26678   }
26679 }
26680 { print }
26681 _ACAWK
26682 _ACEOF
26683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26684   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26685 fi # test -n "$CONFIG_HEADERS"
26686
26687
26688 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26689 shift
26690 for ac_tag
26691 do
26692   case $ac_tag in
26693   :[FHLC]) ac_mode=$ac_tag; continue;;
26694   esac
26695   case $ac_mode$ac_tag in
26696   :[FHL]*:*);;
26697   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26698   :[FH]-) ac_tag=-:-;;
26699   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26700   esac
26701   ac_save_IFS=$IFS
26702   IFS=:
26703   set x $ac_tag
26704   IFS=$ac_save_IFS
26705   shift
26706   ac_file=$1
26707   shift
26708
26709   case $ac_mode in
26710   :L) ac_source=$1;;
26711   :[FH])
26712     ac_file_inputs=
26713     for ac_f
26714     do
26715       case $ac_f in
26716       -) ac_f="$ac_tmp/stdin";;
26717       *) # Look for the file first in the build tree, then in the source tree
26718          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26719          # because $ac_f cannot contain `:'.
26720          test -f "$ac_f" ||
26721            case $ac_f in
26722            [\\/$]*) false;;
26723            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26724            esac ||
26725            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26726       esac
26727       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26728       as_fn_append ac_file_inputs " '$ac_f'"
26729     done
26730
26731     # Let's still pretend it is `configure' which instantiates (i.e., don't
26732     # use $as_me), people would be surprised to read:
26733     #    /* config.h.  Generated by config.status.  */
26734     configure_input='Generated from '`
26735           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26736         `' by configure.'
26737     if test x"$ac_file" != x-; then
26738       configure_input="$ac_file.  $configure_input"
26739       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26740 $as_echo "$as_me: creating $ac_file" >&6;}
26741     fi
26742     # Neutralize special characters interpreted by sed in replacement strings.
26743     case $configure_input in #(
26744     *\&* | *\|* | *\\* )
26745        ac_sed_conf_input=`$as_echo "$configure_input" |
26746        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26747     *) ac_sed_conf_input=$configure_input;;
26748     esac
26749
26750     case $ac_tag in
26751     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26752       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26753     esac
26754     ;;
26755   esac
26756
26757   ac_dir=`$as_dirname -- "$ac_file" ||
26758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26759          X"$ac_file" : 'X\(//\)[^/]' \| \
26760          X"$ac_file" : 'X\(//\)$' \| \
26761          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26762 $as_echo X"$ac_file" |
26763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26764             s//\1/
26765             q
26766           }
26767           /^X\(\/\/\)[^/].*/{
26768             s//\1/
26769             q
26770           }
26771           /^X\(\/\/\)$/{
26772             s//\1/
26773             q
26774           }
26775           /^X\(\/\).*/{
26776             s//\1/
26777             q
26778           }
26779           s/.*/./; q'`
26780   as_dir="$ac_dir"; as_fn_mkdir_p
26781   ac_builddir=.
26782
26783 case "$ac_dir" in
26784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26785 *)
26786   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26787   # A ".." for each directory in $ac_dir_suffix.
26788   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26789   case $ac_top_builddir_sub in
26790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26792   esac ;;
26793 esac
26794 ac_abs_top_builddir=$ac_pwd
26795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26796 # for backward compatibility:
26797 ac_top_builddir=$ac_top_build_prefix
26798
26799 case $srcdir in
26800   .)  # We are building in place.
26801     ac_srcdir=.
26802     ac_top_srcdir=$ac_top_builddir_sub
26803     ac_abs_top_srcdir=$ac_pwd ;;
26804   [\\/]* | ?:[\\/]* )  # Absolute name.
26805     ac_srcdir=$srcdir$ac_dir_suffix;
26806     ac_top_srcdir=$srcdir
26807     ac_abs_top_srcdir=$srcdir ;;
26808   *) # Relative name.
26809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26810     ac_top_srcdir=$ac_top_build_prefix$srcdir
26811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26812 esac
26813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26814
26815
26816   case $ac_mode in
26817   :F)
26818   #
26819   # CONFIG_FILE
26820   #
26821
26822   case $INSTALL in
26823   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26824   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26825   esac
26826 _ACEOF
26827
26828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26829 # If the template does not know about datarootdir, expand it.
26830 # FIXME: This hack should be removed a few years after 2.60.
26831 ac_datarootdir_hack=; ac_datarootdir_seen=
26832 ac_sed_dataroot='
26833 /datarootdir/ {
26834   p
26835   q
26836 }
26837 /@datadir@/p
26838 /@docdir@/p
26839 /@infodir@/p
26840 /@localedir@/p
26841 /@mandir@/p'
26842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26843 *datarootdir*) ac_datarootdir_seen=yes;;
26844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26845   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26847 _ACEOF
26848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26849   ac_datarootdir_hack='
26850   s&@datadir@&$datadir&g
26851   s&@docdir@&$docdir&g
26852   s&@infodir@&$infodir&g
26853   s&@localedir@&$localedir&g
26854   s&@mandir@&$mandir&g
26855   s&\\\${datarootdir}&$datarootdir&g' ;;
26856 esac
26857 _ACEOF
26858
26859 # Neutralize VPATH when `$srcdir' = `.'.
26860 # Shell code in configure.ac might set extrasub.
26861 # FIXME: do we really want to maintain this feature?
26862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26863 ac_sed_extra="$ac_vpsub
26864 $extrasub
26865 _ACEOF
26866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26867 :t
26868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26869 s|@configure_input@|$ac_sed_conf_input|;t t
26870 s&@top_builddir@&$ac_top_builddir_sub&;t t
26871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26872 s&@srcdir@&$ac_srcdir&;t t
26873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26874 s&@top_srcdir@&$ac_top_srcdir&;t t
26875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26876 s&@builddir@&$ac_builddir&;t t
26877 s&@abs_builddir@&$ac_abs_builddir&;t t
26878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26879 s&@INSTALL@&$ac_INSTALL&;t t
26880 $ac_datarootdir_hack
26881 "
26882 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26883   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26884
26885 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26886   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26887   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26888       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26889   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26890 which seems to be undefined.  Please make sure it is defined" >&5
26891 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26892 which seems to be undefined.  Please make sure it is defined" >&2;}
26893
26894   rm -f "$ac_tmp/stdin"
26895   case $ac_file in
26896   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26897   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26898   esac \
26899   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26900  ;;
26901   :H)
26902   #
26903   # CONFIG_HEADER
26904   #
26905   if test x"$ac_file" != x-; then
26906     {
26907       $as_echo "/* $configure_input  */" \
26908       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26909     } >"$ac_tmp/config.h" \
26910       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26911     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26912       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26913 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26914     else
26915       rm -f "$ac_file"
26916       mv "$ac_tmp/config.h" "$ac_file" \
26917         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26918     fi
26919   else
26920     $as_echo "/* $configure_input  */" \
26921       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26922       || as_fn_error $? "could not create -" "$LINENO" 5
26923   fi
26924  ;;
26925
26926   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26927 $as_echo "$as_me: executing $ac_file commands" >&6;}
26928  ;;
26929   esac
26930
26931
26932   case $ac_file$ac_mode in
26933     "libtool":C)
26934
26935     # See if we are running on zsh, and set the options which allow our
26936     # commands through without removal of \ escapes.
26937     if test -n "${ZSH_VERSION+set}" ; then
26938       setopt NO_GLOB_SUBST
26939     fi
26940
26941     cfgfile="${ofile}T"
26942     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26943     $RM "$cfgfile"
26944
26945     cat <<_LT_EOF >> "$cfgfile"
26946 #! $SHELL
26947
26948 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26949 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26951 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26952 #
26953 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26954 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26955 #                 Foundation, Inc.
26956 #   Written by Gordon Matzigkeit, 1996
26957 #
26958 #   This file is part of GNU Libtool.
26959 #
26960 # GNU Libtool is free software; you can redistribute it and/or
26961 # modify it under the terms of the GNU General Public License as
26962 # published by the Free Software Foundation; either version 2 of
26963 # the License, or (at your option) any later version.
26964 #
26965 # As a special exception to the GNU General Public License,
26966 # if you distribute this file as part of a program or library that
26967 # is built using GNU Libtool, you may include this file under the
26968 # same distribution terms that you use for the rest of that program.
26969 #
26970 # GNU Libtool is distributed in the hope that it will be useful,
26971 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26972 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26973 # GNU General Public License for more details.
26974 #
26975 # You should have received a copy of the GNU General Public License
26976 # along with GNU Libtool; see the file COPYING.  If not, a copy
26977 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26978 # obtained by writing to the Free Software Foundation, Inc.,
26979 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26980
26981
26982 # The names of the tagged configurations supported by this script.
26983 available_tags="CXX "
26984
26985 # ### BEGIN LIBTOOL CONFIG
26986
26987 # Which release of libtool.m4 was used?
26988 macro_version=$macro_version
26989 macro_revision=$macro_revision
26990
26991 # Whether or not to build shared libraries.
26992 build_libtool_libs=$enable_shared
26993
26994 # Whether or not to build static libraries.
26995 build_old_libs=$enable_static
26996
26997 # What type of objects to build.
26998 pic_mode=$pic_mode
26999
27000 # Whether or not to optimize for fast installation.
27001 fast_install=$enable_fast_install
27002
27003 # Shell to use when invoking shell scripts.
27004 SHELL=$lt_SHELL
27005
27006 # An echo program that protects backslashes.
27007 ECHO=$lt_ECHO
27008
27009 # The PATH separator for the build system.
27010 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27011
27012 # The host system.
27013 host_alias=$host_alias
27014 host=$host
27015 host_os=$host_os
27016
27017 # The build system.
27018 build_alias=$build_alias
27019 build=$build
27020 build_os=$build_os
27021
27022 # A sed program that does not truncate output.
27023 SED=$lt_SED
27024
27025 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27026 Xsed="\$SED -e 1s/^X//"
27027
27028 # A grep program that handles long lines.
27029 GREP=$lt_GREP
27030
27031 # An ERE matcher.
27032 EGREP=$lt_EGREP
27033
27034 # A literal string matcher.
27035 FGREP=$lt_FGREP
27036
27037 # A BSD- or MS-compatible name lister.
27038 NM=$lt_NM
27039
27040 # Whether we need soft or hard links.
27041 LN_S=$lt_LN_S
27042
27043 # What is the maximum length of a command?
27044 max_cmd_len=$max_cmd_len
27045
27046 # Object file suffix (normally "o").
27047 objext=$ac_objext
27048
27049 # Executable file suffix (normally "").
27050 exeext=$exeext
27051
27052 # whether the shell understands "unset".
27053 lt_unset=$lt_unset
27054
27055 # turn spaces into newlines.
27056 SP2NL=$lt_lt_SP2NL
27057
27058 # turn newlines into spaces.
27059 NL2SP=$lt_lt_NL2SP
27060
27061 # convert \$build file names to \$host format.
27062 to_host_file_cmd=$lt_cv_to_host_file_cmd
27063
27064 # convert \$build files to toolchain format.
27065 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27066
27067 # An object symbol dumper.
27068 OBJDUMP=$lt_OBJDUMP
27069
27070 # Method to check whether dependent libraries are shared objects.
27071 deplibs_check_method=$lt_deplibs_check_method
27072
27073 # Command to use when deplibs_check_method = "file_magic".
27074 file_magic_cmd=$lt_file_magic_cmd
27075
27076 # How to find potential files when deplibs_check_method = "file_magic".
27077 file_magic_glob=$lt_file_magic_glob
27078
27079 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27080 want_nocaseglob=$lt_want_nocaseglob
27081
27082 # DLL creation program.
27083 DLLTOOL=$lt_DLLTOOL
27084
27085 # Command to associate shared and link libraries.
27086 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27087
27088 # The archiver.
27089 AR=$lt_AR
27090
27091 # Flags to create an archive.
27092 AR_FLAGS=$lt_AR_FLAGS
27093
27094 # How to feed a file listing to the archiver.
27095 archiver_list_spec=$lt_archiver_list_spec
27096
27097 # A symbol stripping program.
27098 STRIP=$lt_STRIP
27099
27100 # Commands used to install an old-style archive.
27101 RANLIB=$lt_RANLIB
27102 old_postinstall_cmds=$lt_old_postinstall_cmds
27103 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27104
27105 # Whether to use a lock for old archive extraction.
27106 lock_old_archive_extraction=$lock_old_archive_extraction
27107
27108 # A C compiler.
27109 LTCC=$lt_CC
27110
27111 # LTCC compiler flags.
27112 LTCFLAGS=$lt_CFLAGS
27113
27114 # Take the output of nm and produce a listing of raw symbols and C names.
27115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27116
27117 # Transform the output of nm in a proper C declaration.
27118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27119
27120 # Transform the output of nm in a C name address pair.
27121 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27122
27123 # Transform the output of nm in a C name address pair when lib prefix is needed.
27124 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27125
27126 # Specify filename containing input files for \$NM.
27127 nm_file_list_spec=$lt_nm_file_list_spec
27128
27129 # The root where to search for dependent libraries,and in which our libraries should be installed.
27130 lt_sysroot=$lt_sysroot
27131
27132 # The name of the directory that contains temporary libtool files.
27133 objdir=$objdir
27134
27135 # Used to examine libraries when file_magic_cmd begins with "file".
27136 MAGIC_CMD=$MAGIC_CMD
27137
27138 # Must we lock files when doing compilation?
27139 need_locks=$lt_need_locks
27140
27141 # Manifest tool.
27142 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27143
27144 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27145 DSYMUTIL=$lt_DSYMUTIL
27146
27147 # Tool to change global to local symbols on Mac OS X.
27148 NMEDIT=$lt_NMEDIT
27149
27150 # Tool to manipulate fat objects and archives on Mac OS X.
27151 LIPO=$lt_LIPO
27152
27153 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27154 OTOOL=$lt_OTOOL
27155
27156 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27157 OTOOL64=$lt_OTOOL64
27158
27159 # Old archive suffix (normally "a").
27160 libext=$libext
27161
27162 # Shared library suffix (normally ".so").
27163 shrext_cmds=$lt_shrext_cmds
27164
27165 # The commands to extract the exported symbol list from a shared archive.
27166 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27167
27168 # Variables whose values should be saved in libtool wrapper scripts and
27169 # restored at link time.
27170 variables_saved_for_relink=$lt_variables_saved_for_relink
27171
27172 # Do we need the "lib" prefix for modules?
27173 need_lib_prefix=$need_lib_prefix
27174
27175 # Do we need a version for libraries?
27176 need_version=$need_version
27177
27178 # Library versioning type.
27179 version_type=$version_type
27180
27181 # Shared library runtime path variable.
27182 runpath_var=$runpath_var
27183
27184 # Shared library path variable.
27185 shlibpath_var=$shlibpath_var
27186
27187 # Is shlibpath searched before the hard-coded library search path?
27188 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27189
27190 # Format of library name prefix.
27191 libname_spec=$lt_libname_spec
27192
27193 # List of archive names.  First name is the real one, the rest are links.
27194 # The last name is the one that the linker finds with -lNAME
27195 library_names_spec=$lt_library_names_spec
27196
27197 # The coded name of the library, if different from the real name.
27198 soname_spec=$lt_soname_spec
27199
27200 # Permission mode override for installation of shared libraries.
27201 install_override_mode=$lt_install_override_mode
27202
27203 # Command to use after installation of a shared archive.
27204 postinstall_cmds=$lt_postinstall_cmds
27205
27206 # Command to use after uninstallation of a shared archive.
27207 postuninstall_cmds=$lt_postuninstall_cmds
27208
27209 # Commands used to finish a libtool library installation in a directory.
27210 finish_cmds=$lt_finish_cmds
27211
27212 # As "finish_cmds", except a single script fragment to be evaled but
27213 # not shown.
27214 finish_eval=$lt_finish_eval
27215
27216 # Whether we should hardcode library paths into libraries.
27217 hardcode_into_libs=$hardcode_into_libs
27218
27219 # Compile-time system search path for libraries.
27220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27221
27222 # Run-time system search path for libraries.
27223 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27224
27225 # Whether dlopen is supported.
27226 dlopen_support=$enable_dlopen
27227
27228 # Whether dlopen of programs is supported.
27229 dlopen_self=$enable_dlopen_self
27230
27231 # Whether dlopen of statically linked programs is supported.
27232 dlopen_self_static=$enable_dlopen_self_static
27233
27234 # Commands to strip libraries.
27235 old_striplib=$lt_old_striplib
27236 striplib=$lt_striplib
27237
27238
27239 # The linker used to build libraries.
27240 LD=$lt_LD
27241
27242 # How to create reloadable object files.
27243 reload_flag=$lt_reload_flag
27244 reload_cmds=$lt_reload_cmds
27245
27246 # Commands used to build an old-style archive.
27247 old_archive_cmds=$lt_old_archive_cmds
27248
27249 # A language specific compiler.
27250 CC=$lt_compiler
27251
27252 # Is the compiler the GNU compiler?
27253 with_gcc=$GCC
27254
27255 # Compiler flag to turn off builtin functions.
27256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27257
27258 # Additional compiler flags for building library objects.
27259 pic_flag=$lt_lt_prog_compiler_pic
27260
27261 # How to pass a linker flag through the compiler.
27262 wl=$lt_lt_prog_compiler_wl
27263
27264 # Compiler flag to prevent dynamic linking.
27265 link_static_flag=$lt_lt_prog_compiler_static
27266
27267 # Does compiler simultaneously support -c and -o options?
27268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27269
27270 # Whether or not to add -lc for building shared libraries.
27271 build_libtool_need_lc=$archive_cmds_need_lc
27272
27273 # Whether or not to disallow shared libs when runtime libs are static.
27274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27275
27276 # Compiler flag to allow reflexive dlopens.
27277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27278
27279 # Compiler flag to generate shared objects directly from archives.
27280 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27281
27282 # Whether the compiler copes with passing no objects directly.
27283 compiler_needs_object=$lt_compiler_needs_object
27284
27285 # Create an old-style archive from a shared archive.
27286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27287
27288 # Create a temporary old-style archive to link instead of a shared archive.
27289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27290
27291 # Commands used to build a shared archive.
27292 archive_cmds=$lt_archive_cmds
27293 archive_expsym_cmds=$lt_archive_expsym_cmds
27294
27295 # Commands used to build a loadable module if different from building
27296 # a shared archive.
27297 module_cmds=$lt_module_cmds
27298 module_expsym_cmds=$lt_module_expsym_cmds
27299
27300 # Whether we are building with GNU ld or not.
27301 with_gnu_ld=$lt_with_gnu_ld
27302
27303 # Flag that allows shared libraries with undefined symbols to be built.
27304 allow_undefined_flag=$lt_allow_undefined_flag
27305
27306 # Flag that enforces no undefined symbols.
27307 no_undefined_flag=$lt_no_undefined_flag
27308
27309 # Flag to hardcode \$libdir into a binary during linking.
27310 # This must work even if \$libdir does not exist
27311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27312
27313 # Whether we need a single "-rpath" flag with a separated argument.
27314 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27315
27316 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27317 # DIR into the resulting binary.
27318 hardcode_direct=$hardcode_direct
27319
27320 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27321 # DIR into the resulting binary and the resulting library dependency is
27322 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27323 # library is relocated.
27324 hardcode_direct_absolute=$hardcode_direct_absolute
27325
27326 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27327 # into the resulting binary.
27328 hardcode_minus_L=$hardcode_minus_L
27329
27330 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27331 # into the resulting binary.
27332 hardcode_shlibpath_var=$hardcode_shlibpath_var
27333
27334 # Set to "yes" if building a shared library automatically hardcodes DIR
27335 # into the library and all subsequent libraries and executables linked
27336 # against it.
27337 hardcode_automatic=$hardcode_automatic
27338
27339 # Set to yes if linker adds runtime paths of dependent libraries
27340 # to runtime path list.
27341 inherit_rpath=$inherit_rpath
27342
27343 # Whether libtool must link a program against all its dependency libraries.
27344 link_all_deplibs=$link_all_deplibs
27345
27346 # Set to "yes" if exported symbols are required.
27347 always_export_symbols=$always_export_symbols
27348
27349 # The commands to list exported symbols.
27350 export_symbols_cmds=$lt_export_symbols_cmds
27351
27352 # Symbols that should not be listed in the preloaded symbols.
27353 exclude_expsyms=$lt_exclude_expsyms
27354
27355 # Symbols that must always be exported.
27356 include_expsyms=$lt_include_expsyms
27357
27358 # Commands necessary for linking programs (against libraries) with templates.
27359 prelink_cmds=$lt_prelink_cmds
27360
27361 # Commands necessary for finishing linking programs.
27362 postlink_cmds=$lt_postlink_cmds
27363
27364 # Specify filename containing input files.
27365 file_list_spec=$lt_file_list_spec
27366
27367 # How to hardcode a shared library path into an executable.
27368 hardcode_action=$hardcode_action
27369
27370 # The directories searched by this compiler when creating a shared library.
27371 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27372
27373 # Dependencies to place before and after the objects being linked to
27374 # create a shared library.
27375 predep_objects=$lt_predep_objects
27376 postdep_objects=$lt_postdep_objects
27377 predeps=$lt_predeps
27378 postdeps=$lt_postdeps
27379
27380 # The library search path used internally by the compiler when linking
27381 # a shared library.
27382 compiler_lib_search_path=$lt_compiler_lib_search_path
27383
27384 # ### END LIBTOOL CONFIG
27385
27386 _LT_EOF
27387
27388   case $host_os in
27389   aix3*)
27390     cat <<\_LT_EOF >> "$cfgfile"
27391 # AIX sometimes has problems with the GCC collect2 program.  For some
27392 # reason, if we set the COLLECT_NAMES environment variable, the problems
27393 # vanish in a puff of smoke.
27394 if test "X${COLLECT_NAMES+set}" != Xset; then
27395   COLLECT_NAMES=
27396   export COLLECT_NAMES
27397 fi
27398 _LT_EOF
27399     ;;
27400   esac
27401
27402
27403 ltmain="$ac_aux_dir/ltmain.sh"
27404
27405
27406   # We use sed instead of cat because bash on DJGPP gets confused if
27407   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27408   # text mode, it properly converts lines to CR/LF.  This bash problem
27409   # is reportedly fixed, but why not run on old versions too?
27410   sed '$q' "$ltmain" >> "$cfgfile" \
27411      || (rm -f "$cfgfile"; exit 1)
27412
27413   if test x"$xsi_shell" = xyes; then
27414   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27415 func_dirname ()\
27416 {\
27417 \    case ${1} in\
27418 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27419 \      *  ) func_dirname_result="${3}" ;;\
27420 \    esac\
27421 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27422   && mv -f "$cfgfile.tmp" "$cfgfile" \
27423     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27424 test 0 -eq $? || _lt_function_replace_fail=:
27425
27426
27427   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27428 func_basename ()\
27429 {\
27430 \    func_basename_result="${1##*/}"\
27431 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27432   && mv -f "$cfgfile.tmp" "$cfgfile" \
27433     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27434 test 0 -eq $? || _lt_function_replace_fail=:
27435
27436
27437   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27438 func_dirname_and_basename ()\
27439 {\
27440 \    case ${1} in\
27441 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27442 \      *  ) func_dirname_result="${3}" ;;\
27443 \    esac\
27444 \    func_basename_result="${1##*/}"\
27445 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27446   && mv -f "$cfgfile.tmp" "$cfgfile" \
27447     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27448 test 0 -eq $? || _lt_function_replace_fail=:
27449
27450
27451   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27452 func_stripname ()\
27453 {\
27454 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27455 \    # positional parameters, so assign one to ordinary parameter first.\
27456 \    func_stripname_result=${3}\
27457 \    func_stripname_result=${func_stripname_result#"${1}"}\
27458 \    func_stripname_result=${func_stripname_result%"${2}"}\
27459 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27460   && mv -f "$cfgfile.tmp" "$cfgfile" \
27461     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27462 test 0 -eq $? || _lt_function_replace_fail=:
27463
27464
27465   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27466 func_split_long_opt ()\
27467 {\
27468 \    func_split_long_opt_name=${1%%=*}\
27469 \    func_split_long_opt_arg=${1#*=}\
27470 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27471   && mv -f "$cfgfile.tmp" "$cfgfile" \
27472     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27473 test 0 -eq $? || _lt_function_replace_fail=:
27474
27475
27476   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27477 func_split_short_opt ()\
27478 {\
27479 \    func_split_short_opt_arg=${1#??}\
27480 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27481 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27482   && mv -f "$cfgfile.tmp" "$cfgfile" \
27483     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27484 test 0 -eq $? || _lt_function_replace_fail=:
27485
27486
27487   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27488 func_lo2o ()\
27489 {\
27490 \    case ${1} in\
27491 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27492 \      *)    func_lo2o_result=${1} ;;\
27493 \    esac\
27494 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27495   && mv -f "$cfgfile.tmp" "$cfgfile" \
27496     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27497 test 0 -eq $? || _lt_function_replace_fail=:
27498
27499
27500   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27501 func_xform ()\
27502 {\
27503     func_xform_result=${1%.*}.lo\
27504 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27505   && mv -f "$cfgfile.tmp" "$cfgfile" \
27506     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27507 test 0 -eq $? || _lt_function_replace_fail=:
27508
27509
27510   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27511 func_arith ()\
27512 {\
27513     func_arith_result=$(( $* ))\
27514 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27515   && mv -f "$cfgfile.tmp" "$cfgfile" \
27516     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27517 test 0 -eq $? || _lt_function_replace_fail=:
27518
27519
27520   sed -e '/^func_len ()$/,/^} # func_len /c\
27521 func_len ()\
27522 {\
27523     func_len_result=${#1}\
27524 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27525   && mv -f "$cfgfile.tmp" "$cfgfile" \
27526     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27527 test 0 -eq $? || _lt_function_replace_fail=:
27528
27529 fi
27530
27531 if test x"$lt_shell_append" = xyes; then
27532   sed -e '/^func_append ()$/,/^} # func_append /c\
27533 func_append ()\
27534 {\
27535     eval "${1}+=\\${2}"\
27536 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27537   && mv -f "$cfgfile.tmp" "$cfgfile" \
27538     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27539 test 0 -eq $? || _lt_function_replace_fail=:
27540
27541
27542   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27543 func_append_quoted ()\
27544 {\
27545 \    func_quote_for_eval "${2}"\
27546 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27547 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27548   && mv -f "$cfgfile.tmp" "$cfgfile" \
27549     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27550 test 0 -eq $? || _lt_function_replace_fail=:
27551
27552
27553   # Save a `func_append' function call where possible by direct use of '+='
27554   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27555     && mv -f "$cfgfile.tmp" "$cfgfile" \
27556       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27557   test 0 -eq $? || _lt_function_replace_fail=:
27558 else
27559   # Save a `func_append' function call even when '+=' is not available
27560   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27561     && mv -f "$cfgfile.tmp" "$cfgfile" \
27562       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27563   test 0 -eq $? || _lt_function_replace_fail=:
27564 fi
27565
27566 if test x"$_lt_function_replace_fail" = x":"; then
27567   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27568 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27569 fi
27570
27571
27572    mv -f "$cfgfile" "$ofile" ||
27573     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27574   chmod +x "$ofile"
27575
27576
27577     cat <<_LT_EOF >> "$ofile"
27578
27579 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27580
27581 # The linker used to build libraries.
27582 LD=$lt_LD_CXX
27583
27584 # How to create reloadable object files.
27585 reload_flag=$lt_reload_flag_CXX
27586 reload_cmds=$lt_reload_cmds_CXX
27587
27588 # Commands used to build an old-style archive.
27589 old_archive_cmds=$lt_old_archive_cmds_CXX
27590
27591 # A language specific compiler.
27592 CC=$lt_compiler_CXX
27593
27594 # Is the compiler the GNU compiler?
27595 with_gcc=$GCC_CXX
27596
27597 # Compiler flag to turn off builtin functions.
27598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27599
27600 # Additional compiler flags for building library objects.
27601 pic_flag=$lt_lt_prog_compiler_pic_CXX
27602
27603 # How to pass a linker flag through the compiler.
27604 wl=$lt_lt_prog_compiler_wl_CXX
27605
27606 # Compiler flag to prevent dynamic linking.
27607 link_static_flag=$lt_lt_prog_compiler_static_CXX
27608
27609 # Does compiler simultaneously support -c and -o options?
27610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27611
27612 # Whether or not to add -lc for building shared libraries.
27613 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27614
27615 # Whether or not to disallow shared libs when runtime libs are static.
27616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27617
27618 # Compiler flag to allow reflexive dlopens.
27619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27620
27621 # Compiler flag to generate shared objects directly from archives.
27622 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27623
27624 # Whether the compiler copes with passing no objects directly.
27625 compiler_needs_object=$lt_compiler_needs_object_CXX
27626
27627 # Create an old-style archive from a shared archive.
27628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27629
27630 # Create a temporary old-style archive to link instead of a shared archive.
27631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27632
27633 # Commands used to build a shared archive.
27634 archive_cmds=$lt_archive_cmds_CXX
27635 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27636
27637 # Commands used to build a loadable module if different from building
27638 # a shared archive.
27639 module_cmds=$lt_module_cmds_CXX
27640 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27641
27642 # Whether we are building with GNU ld or not.
27643 with_gnu_ld=$lt_with_gnu_ld_CXX
27644
27645 # Flag that allows shared libraries with undefined symbols to be built.
27646 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27647
27648 # Flag that enforces no undefined symbols.
27649 no_undefined_flag=$lt_no_undefined_flag_CXX
27650
27651 # Flag to hardcode \$libdir into a binary during linking.
27652 # This must work even if \$libdir does not exist
27653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27654
27655 # Whether we need a single "-rpath" flag with a separated argument.
27656 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27657
27658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27659 # DIR into the resulting binary.
27660 hardcode_direct=$hardcode_direct_CXX
27661
27662 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27663 # DIR into the resulting binary and the resulting library dependency is
27664 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27665 # library is relocated.
27666 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27667
27668 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27669 # into the resulting binary.
27670 hardcode_minus_L=$hardcode_minus_L_CXX
27671
27672 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27673 # into the resulting binary.
27674 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27675
27676 # Set to "yes" if building a shared library automatically hardcodes DIR
27677 # into the library and all subsequent libraries and executables linked
27678 # against it.
27679 hardcode_automatic=$hardcode_automatic_CXX
27680
27681 # Set to yes if linker adds runtime paths of dependent libraries
27682 # to runtime path list.
27683 inherit_rpath=$inherit_rpath_CXX
27684
27685 # Whether libtool must link a program against all its dependency libraries.
27686 link_all_deplibs=$link_all_deplibs_CXX
27687
27688 # Set to "yes" if exported symbols are required.
27689 always_export_symbols=$always_export_symbols_CXX
27690
27691 # The commands to list exported symbols.
27692 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27693
27694 # Symbols that should not be listed in the preloaded symbols.
27695 exclude_expsyms=$lt_exclude_expsyms_CXX
27696
27697 # Symbols that must always be exported.
27698 include_expsyms=$lt_include_expsyms_CXX
27699
27700 # Commands necessary for linking programs (against libraries) with templates.
27701 prelink_cmds=$lt_prelink_cmds_CXX
27702
27703 # Commands necessary for finishing linking programs.
27704 postlink_cmds=$lt_postlink_cmds_CXX
27705
27706 # Specify filename containing input files.
27707 file_list_spec=$lt_file_list_spec_CXX
27708
27709 # How to hardcode a shared library path into an executable.
27710 hardcode_action=$hardcode_action_CXX
27711
27712 # The directories searched by this compiler when creating a shared library.
27713 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27714
27715 # Dependencies to place before and after the objects being linked to
27716 # create a shared library.
27717 predep_objects=$lt_predep_objects_CXX
27718 postdep_objects=$lt_postdep_objects_CXX
27719 predeps=$lt_predeps_CXX
27720 postdeps=$lt_postdeps_CXX
27721
27722 # The library search path used internally by the compiler when linking
27723 # a shared library.
27724 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27725
27726 # ### END LIBTOOL TAG CONFIG: CXX
27727 _LT_EOF
27728
27729  ;;
27730     "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
27731                     $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
27732                     cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
27733                     rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
27734     "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
27735     "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
27736     "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
27737     "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
27738
27739   esac
27740 done # for ac_tag
27741
27742
27743 as_fn_exit 0
27744 _ACEOF
27745 ac_clean_files=$ac_clean_files_save
27746
27747 test $ac_write_fail = 0 ||
27748   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27749
27750
27751 # configure is writing to config.log, and then calls config.status.
27752 # config.status does its own redirection, appending to config.log.
27753 # Unfortunately, on DOS this fails, as config.log is still kept open
27754 # by configure, so config.status won't be able to write to it; its
27755 # output is simply discarded.  So we exec the FD to /dev/null,
27756 # effectively closing config.log, so it can be properly (re)opened and
27757 # appended to by config.status.  When coming back to configure, we
27758 # need to make the FD available again.
27759 if test "$no_create" != yes; then
27760   ac_cs_success=:
27761   ac_config_status_args=
27762   test "$silent" = yes &&
27763     ac_config_status_args="$ac_config_status_args --quiet"
27764   exec 5>/dev/null
27765   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27766   exec 5>>config.log
27767   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27768   # would make configure fail if this is the last instruction.
27769   $ac_cs_success || as_fn_exit 1
27770 fi
27771 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27772   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27773 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27774 fi
27775
27776
27777 # ==== Print final messages to user ==========================================
27778
27779
27780 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
27781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
27782
27783
27784 Berkeley DB 6 was found, but not used.  Please re-run configure (see
27785 ./config.nice) with the '--enable-bdb6' flag to use it,
27786 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27787 to silence this warning.
27788
27789 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27790 General Public License, version 3:
27791 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27792
27793 The AGPL-3.0 licence may impose special requirements for making available
27794 source code of server-side software.  The text of the licence is:
27795 https://www.gnu.org/licenses/agpl-3.0.html
27796 http://opensource.org/licenses/AGPL-3.0
27797
27798 The Berkeley DB backend to Subversion is deprecated; see
27799 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27800
27801 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27802 technical problems or bugs.
27803 " >&5
27804 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
27805
27806
27807 Berkeley DB 6 was found, but not used.  Please re-run configure (see
27808 ./config.nice) with the '--enable-bdb6' flag to use it,
27809 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27810 to silence this warning.
27811
27812 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27813 General Public License, version 3:
27814 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27815
27816 The AGPL-3.0 licence may impose special requirements for making available
27817 source code of server-side software.  The text of the licence is:
27818 https://www.gnu.org/licenses/agpl-3.0.html
27819 http://opensource.org/licenses/AGPL-3.0
27820
27821 The Berkeley DB backend to Subversion is deprecated; see
27822 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27823
27824 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27825 technical problems or bugs.
27826 " >&2;}
27827 fi