]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - contrib/subversion/configure
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
[FreeBSD/releng/10.3.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.14.
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.14'
594 PACKAGE_STRING='subversion 1.8.14'
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 HTTPD_VERSION
757 INSTALL_APACHE_MODS
758 APACHE_LIBEXECDIR
759 APACHE_INCLUDES
760 APACHE_LDFLAGS
761 APXS
762 SVN_APR_MEMCACHE_LIBS
763 SVN_APR_MEMCACHE_INCLUDES
764 SVN_SERF_LIBS
765 SVN_SERF_INCLUDES
766 PKG_CONFIG
767 SVN_LT_SOVERSION
768 SVN_APRUTIL_LIBS
769 SVN_APRUTIL_CONFIG
770 SVN_APRUTIL_INCLUDES
771 SVN_APR_SHLIB_PATH_VAR
772 SVN_APR_LIBS
773 SVN_APR_INCLUDES
774 SVN_APR_CONFIG
775 MKDIR
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 LN_S
780 EGREP
781 GREP
782 target_os
783 target_vendor
784 target_cpu
785 target
786 host_os
787 host_vendor
788 host_cpu
789 host
790 build_os
791 build_vendor
792 build_cpu
793 build
794 SED
795 CPP
796 CXXMAINTAINERFLAGS
797 CXXMODEFLAGS
798 ac_ct_CXX
799 CXXFLAGS
800 CXX
801 CMAINTAINERFLAGS
802 CMODEFLAGS
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
809 CC
810 SWIG_LDFLAGS
811 canonicalized_srcdir
812 abs_builddir
813 abs_srcdir
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files=''
853 ac_user_opts='
854 enable_option_checking
855 with_apr
856 with_apr_util
857 with_serf
858 with_apr_memcache
859 with_apxs
860 with_apache_libexecdir
861 enable_broken_httpd_auth
862 with_sqlite
863 enable_sqlite_compatibility_version
864 enable_shared
865 enable_static
866 with_pic
867 enable_fast_install
868 with_gnu_ld
869 with_sysroot
870 enable_libtool_lock
871 enable_experimental_libtool
872 enable_all_static
873 enable_local_library_preloading
874 with_trang
875 with_doxygen
876 with_expat
877 with_berkeley_db
878 enable_bdb6
879 with_sasl
880 enable_keychain
881 with_gpg_agent
882 with_gnome_keyring
883 enable_ev2_impl
884 enable_nls
885 with_libmagic
886 with_kwallet
887 enable_plaintext_password_storage
888 with_openssl
889 enable_debug
890 enable_optimize
891 enable_disallowing_of_undefined_references
892 enable_maintainer_mode
893 enable_full_version_match
894 with_editor
895 with_zlib
896 enable_mod_activation
897 enable_gcov
898 enable_gprof
899 with_jdk
900 with_jikes
901 with_swig
902 with_ruby_sitedir
903 with_ruby_test_verbose
904 with_ctypesgen
905 enable_runtime_module_search
906 enable_javahl
907 with_junit
908 '
909       ac_precious_vars='build_alias
910 host_alias
911 target_alias
912 CC
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
917 CXX
918 CXXFLAGS
919 CCC
920 CPP
921 CXXCPP'
922
923
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
945
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
971
972 ac_prev=
973 ac_dashdash=
974 for ac_option
975 do
976   # If the previous option needs an argument, assign it.
977   if test -n "$ac_prev"; then
978     eval $ac_prev=\$ac_option
979     ac_prev=
980     continue
981   fi
982
983   case $ac_option in
984   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985   *=)   ac_optarg= ;;
986   *)    ac_optarg=yes ;;
987   esac
988
989   # Accept the important Cygnus configure options, so we can diagnose typos.
990
991   case $ac_dashdash$ac_option in
992   --)
993     ac_dashdash=yes ;;
994
995   -bindir | --bindir | --bindi | --bind | --bin | --bi)
996     ac_prev=bindir ;;
997   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998     bindir=$ac_optarg ;;
999
1000   -build | --build | --buil | --bui | --bu)
1001     ac_prev=build_alias ;;
1002   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003     build_alias=$ac_optarg ;;
1004
1005   -cache-file | --cache-file | --cache-fil | --cache-fi \
1006   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007     ac_prev=cache_file ;;
1008   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010     cache_file=$ac_optarg ;;
1011
1012   --config-cache | -C)
1013     cache_file=config.cache ;;
1014
1015   -datadir | --datadir | --datadi | --datad)
1016     ac_prev=datadir ;;
1017   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018     datadir=$ac_optarg ;;
1019
1020   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021   | --dataroo | --dataro | --datar)
1022     ac_prev=datarootdir ;;
1023   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025     datarootdir=$ac_optarg ;;
1026
1027   -disable-* | --disable-*)
1028     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029     # Reject names that are not valid shell variable names.
1030     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031       as_fn_error $? "invalid feature name: $ac_useropt"
1032     ac_useropt_orig=$ac_useropt
1033     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034     case $ac_user_opts in
1035       *"
1036 "enable_$ac_useropt"
1037 "*) ;;
1038       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039          ac_unrecognized_sep=', ';;
1040     esac
1041     eval enable_$ac_useropt=no ;;
1042
1043   -docdir | --docdir | --docdi | --doc | --do)
1044     ac_prev=docdir ;;
1045   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046     docdir=$ac_optarg ;;
1047
1048   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049     ac_prev=dvidir ;;
1050   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051     dvidir=$ac_optarg ;;
1052
1053   -enable-* | --enable-*)
1054     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057       as_fn_error $? "invalid feature name: $ac_useropt"
1058     ac_useropt_orig=$ac_useropt
1059     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060     case $ac_user_opts in
1061       *"
1062 "enable_$ac_useropt"
1063 "*) ;;
1064       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065          ac_unrecognized_sep=', ';;
1066     esac
1067     eval enable_$ac_useropt=\$ac_optarg ;;
1068
1069   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071   | --exec | --exe | --ex)
1072     ac_prev=exec_prefix ;;
1073   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075   | --exec=* | --exe=* | --ex=*)
1076     exec_prefix=$ac_optarg ;;
1077
1078   -gas | --gas | --ga | --g)
1079     # Obsolete; use --with-gas.
1080     with_gas=yes ;;
1081
1082   -help | --help | --hel | --he | -h)
1083     ac_init_help=long ;;
1084   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085     ac_init_help=recursive ;;
1086   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087     ac_init_help=short ;;
1088
1089   -host | --host | --hos | --ho)
1090     ac_prev=host_alias ;;
1091   -host=* | --host=* | --hos=* | --ho=*)
1092     host_alias=$ac_optarg ;;
1093
1094   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095     ac_prev=htmldir ;;
1096   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097   | --ht=*)
1098     htmldir=$ac_optarg ;;
1099
1100   -includedir | --includedir | --includedi | --included | --include \
1101   | --includ | --inclu | --incl | --inc)
1102     ac_prev=includedir ;;
1103   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104   | --includ=* | --inclu=* | --incl=* | --inc=*)
1105     includedir=$ac_optarg ;;
1106
1107   -infodir | --infodir | --infodi | --infod | --info | --inf)
1108     ac_prev=infodir ;;
1109   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110     infodir=$ac_optarg ;;
1111
1112   -libdir | --libdir | --libdi | --libd)
1113     ac_prev=libdir ;;
1114   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115     libdir=$ac_optarg ;;
1116
1117   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118   | --libexe | --libex | --libe)
1119     ac_prev=libexecdir ;;
1120   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121   | --libexe=* | --libex=* | --libe=*)
1122     libexecdir=$ac_optarg ;;
1123
1124   -localedir | --localedir | --localedi | --localed | --locale)
1125     ac_prev=localedir ;;
1126   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127     localedir=$ac_optarg ;;
1128
1129   -localstatedir | --localstatedir | --localstatedi | --localstated \
1130   | --localstate | --localstat | --localsta | --localst | --locals)
1131     ac_prev=localstatedir ;;
1132   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134     localstatedir=$ac_optarg ;;
1135
1136   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137     ac_prev=mandir ;;
1138   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139     mandir=$ac_optarg ;;
1140
1141   -nfp | --nfp | --nf)
1142     # Obsolete; use --without-fp.
1143     with_fp=no ;;
1144
1145   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146   | --no-cr | --no-c | -n)
1147     no_create=yes ;;
1148
1149   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151     no_recursion=yes ;;
1152
1153   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155   | --oldin | --oldi | --old | --ol | --o)
1156     ac_prev=oldincludedir ;;
1157   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160     oldincludedir=$ac_optarg ;;
1161
1162   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163     ac_prev=prefix ;;
1164   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165     prefix=$ac_optarg ;;
1166
1167   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168   | --program-pre | --program-pr | --program-p)
1169     ac_prev=program_prefix ;;
1170   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172     program_prefix=$ac_optarg ;;
1173
1174   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175   | --program-suf | --program-su | --program-s)
1176     ac_prev=program_suffix ;;
1177   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179     program_suffix=$ac_optarg ;;
1180
1181   -program-transform-name | --program-transform-name \
1182   | --program-transform-nam | --program-transform-na \
1183   | --program-transform-n | --program-transform- \
1184   | --program-transform | --program-transfor \
1185   | --program-transfo | --program-transf \
1186   | --program-trans | --program-tran \
1187   | --progr-tra | --program-tr | --program-t)
1188     ac_prev=program_transform_name ;;
1189   -program-transform-name=* | --program-transform-name=* \
1190   | --program-transform-nam=* | --program-transform-na=* \
1191   | --program-transform-n=* | --program-transform-=* \
1192   | --program-transform=* | --program-transfor=* \
1193   | --program-transfo=* | --program-transf=* \
1194   | --program-trans=* | --program-tran=* \
1195   | --progr-tra=* | --program-tr=* | --program-t=*)
1196     program_transform_name=$ac_optarg ;;
1197
1198   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199     ac_prev=pdfdir ;;
1200   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201     pdfdir=$ac_optarg ;;
1202
1203   -psdir | --psdir | --psdi | --psd | --ps)
1204     ac_prev=psdir ;;
1205   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206     psdir=$ac_optarg ;;
1207
1208   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209   | -silent | --silent | --silen | --sile | --sil)
1210     silent=yes ;;
1211
1212   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213     ac_prev=sbindir ;;
1214   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215   | --sbi=* | --sb=*)
1216     sbindir=$ac_optarg ;;
1217
1218   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220   | --sharedst | --shareds | --shared | --share | --shar \
1221   | --sha | --sh)
1222     ac_prev=sharedstatedir ;;
1223   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226   | --sha=* | --sh=*)
1227     sharedstatedir=$ac_optarg ;;
1228
1229   -site | --site | --sit)
1230     ac_prev=site ;;
1231   -site=* | --site=* | --sit=*)
1232     site=$ac_optarg ;;
1233
1234   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235     ac_prev=srcdir ;;
1236   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237     srcdir=$ac_optarg ;;
1238
1239   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240   | --syscon | --sysco | --sysc | --sys | --sy)
1241     ac_prev=sysconfdir ;;
1242   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244     sysconfdir=$ac_optarg ;;
1245
1246   -target | --target | --targe | --targ | --tar | --ta | --t)
1247     ac_prev=target_alias ;;
1248   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249     target_alias=$ac_optarg ;;
1250
1251   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252     verbose=yes ;;
1253
1254   -version | --version | --versio | --versi | --vers | -V)
1255     ac_init_version=: ;;
1256
1257   -with-* | --with-*)
1258     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261       as_fn_error $? "invalid package name: $ac_useropt"
1262     ac_useropt_orig=$ac_useropt
1263     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264     case $ac_user_opts in
1265       *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269          ac_unrecognized_sep=', ';;
1270     esac
1271     eval with_$ac_useropt=\$ac_optarg ;;
1272
1273   -without-* | --without-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       as_fn_error $? "invalid package name: $ac_useropt"
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=no ;;
1288
1289   --x)
1290     # Obsolete; use --with-x.
1291     with_x=yes ;;
1292
1293   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294   | --x-incl | --x-inc | --x-in | --x-i)
1295     ac_prev=x_includes ;;
1296   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298     x_includes=$ac_optarg ;;
1299
1300   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302     ac_prev=x_libraries ;;
1303   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305     x_libraries=$ac_optarg ;;
1306
1307   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1309     ;;
1310
1311   *=*)
1312     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313     # Reject names that are not valid shell variable names.
1314     case $ac_envvar in #(
1315       '' | [0-9]* | *[!_$as_cr_alnum]* )
1316       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1317     esac
1318     eval $ac_envvar=\$ac_optarg
1319     export $ac_envvar ;;
1320
1321   *)
1322     # FIXME: should be removed in autoconf 3.0.
1323     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1327     ;;
1328
1329   esac
1330 done
1331
1332 if test -n "$ac_prev"; then
1333   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334   as_fn_error $? "missing argument to $ac_option"
1335 fi
1336
1337 if test -n "$ac_unrecognized_opts"; then
1338   case $enable_option_checking in
1339     no) ;;
1340     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342   esac
1343 fi
1344
1345 # Check all directory arguments for consistency.
1346 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347                 datadir sysconfdir sharedstatedir localstatedir includedir \
1348                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349                 libdir localedir mandir
1350 do
1351   eval ac_val=\$$ac_var
1352   # Remove trailing slashes.
1353   case $ac_val in
1354     */ )
1355       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356       eval $ac_var=\$ac_val;;
1357   esac
1358   # Be sure to have absolute directory names.
1359   case $ac_val in
1360     [\\/$]* | ?:[\\/]* )  continue;;
1361     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362   esac
1363   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364 done
1365
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1369 build=$build_alias
1370 host=$host_alias
1371 target=$target_alias
1372
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375   if test "x$build_alias" = x; then
1376     cross_compiling=maybe
1377   elif test "x$build_alias" != "x$host_alias"; then
1378     cross_compiling=yes
1379   fi
1380 fi
1381
1382 ac_tool_prefix=
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385 test "$silent" = yes && exec 6>/dev/null
1386
1387
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391   as_fn_error $? "working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393   as_fn_error $? "pwd does not report name of working directory"
1394
1395
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398   ac_srcdir_defaulted=yes
1399   # Try the directory containing this script, then the parent directory.
1400   ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402          X"$as_myself" : 'X\(//\)[^/]' \| \
1403          X"$as_myself" : 'X\(//\)$' \| \
1404          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\/\)[^/].*/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\/\)$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\).*/{
1419             s//\1/
1420             q
1421           }
1422           s/.*/./; q'`
1423   srcdir=$ac_confdir
1424   if test ! -r "$srcdir/$ac_unique_file"; then
1425     srcdir=..
1426   fi
1427 else
1428   ac_srcdir_defaulted=no
1429 fi
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1433 fi
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437         pwd)`
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440   srcdir=.
1441 fi
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1445 case $srcdir in
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 esac
1448 for ac_var in $ac_precious_vars; do
1449   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_env_${ac_var}_value=\$${ac_var}
1451   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 done
1454
1455 #
1456 # Report the --help message.
1457 #
1458 if test "$ac_init_help" = "long"; then
1459   # Omit some internal or obsolete options to make the list less imposing.
1460   # This message is too long to be a string in the A/UX 3.1 sh.
1461   cat <<_ACEOF
1462 \`configure' configures subversion 1.8.14 to adapt to many kinds of systems.
1463
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE.  See below for descriptions of some of the useful variables.
1468
1469 Defaults for the options are specified in brackets.
1470
1471 Configuration:
1472   -h, --help              display this help and exit
1473       --help=short        display options specific to this package
1474       --help=recursive    display the short help of all the included packages
1475   -V, --version           display version information and exit
1476   -q, --quiet, --silent   do not print \`checking ...' messages
1477       --cache-file=FILE   cache test results in FILE [disabled]
1478   -C, --config-cache      alias for \`--cache-file=config.cache'
1479   -n, --no-create         do not create output files
1480       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1481
1482 Installation directories:
1483   --prefix=PREFIX         install architecture-independent files in PREFIX
1484                           [$ac_default_prefix]
1485   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1486                           [PREFIX]
1487
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1492
1493 For better control, use the options below.
1494
1495 Fine tuning of the installation directories:
1496   --bindir=DIR            user executables [EPREFIX/bin]
1497   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1498   --libexecdir=DIR        program executables [EPREFIX/libexec]
1499   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1500   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1501   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1502   --libdir=DIR            object code libraries [EPREFIX/lib]
1503   --includedir=DIR        C header files [PREFIX/include]
1504   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1505   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1506   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1507   --infodir=DIR           info documentation [DATAROOTDIR/info]
1508   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1509   --mandir=DIR            man documentation [DATAROOTDIR/man]
1510   --docdir=DIR            documentation root [DATAROOTDIR/doc/subversion]
1511   --htmldir=DIR           html documentation [DOCDIR]
1512   --dvidir=DIR            dvi documentation [DOCDIR]
1513   --pdfdir=DIR            pdf documentation [DOCDIR]
1514   --psdir=DIR             ps documentation [DOCDIR]
1515 _ACEOF
1516
1517   cat <<\_ACEOF
1518
1519 System types:
1520   --build=BUILD     configure for building on BUILD [guessed]
1521   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522   --target=TARGET   configure for building compilers for TARGET [HOST]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527   case $ac_init_help in
1528      short | recursive ) echo "Configuration of subversion 1.8.14:";;
1529    esac
1530   cat <<\_ACEOF
1531
1532 Optional Features:
1533   --disable-option-checking  ignore unrecognized --enable/--with options
1534   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536   --enable-broken-httpd-auth
1537                           Allow building against httpd 2.4 with broken auth
1538   --enable-sqlite-compatibility-version=X.Y.Z
1539                           Allow binary to run against SQLite as old as ARG
1540   --enable-shared[=PKGS]  build shared libraries [default=yes]
1541   --enable-static[=PKGS]  build static libraries [default=yes]
1542   --enable-fast-install[=PKGS]
1543                           optimize for fast installation [default=yes]
1544   --disable-libtool-lock  avoid locking (might break parallel builds)
1545   --enable-experimental-libtool
1546                           Use APR's libtool
1547   --enable-static         Build static libraries
1548   --enable-shared         Build shared libraries
1549   --enable-all-static     Build completely static (standalone) binaries.
1550   --enable-local-library-preloading
1551                           Enable preloading of locally built libraries in
1552                           locally built executables. This may be necessary for
1553                           testing prior to installation on some platforms. It
1554                           does not work on some platforms (Darwin, OpenBSD,
1555                           ...).
1556   --enable-bdb6           Allow building against BDB 6+. See
1557                           --with-berkeley-db for specifying the location of
1558                           the Berkeley DB installation. Using BDB 6 will fail
1559                           if this option is not used.
1560   --disable-keychain      Disable use of Mac OS KeyChain for auth credentials
1561   --enable-ev2-impl       Use Ev2 implementations, where available
1562                           [EXPERIMENTAL]
1563   --disable-nls           Disable gettext functionality
1564   --disable-plaintext-password-storage
1565                           Disable on-disk caching of plaintext passwords and
1566                           passphrases. (Leaving this functionality enabled
1567                           will not force Subversion to store passwords in
1568                           plaintext, but does permit users to explicitly allow
1569                           that behavior via runtime configuration.)
1570   --enable-debug          Turn on debugging
1571   --enable-optimize       Turn on optimizations
1572   --enable-disallowing-of-undefined-references
1573                           Use -Wl,--no-undefined flag during linking of some
1574                           libraries to disallow undefined references
1575   --enable-maintainer-mode
1576                           Turn on debugging and very strict compile-time
1577                           warnings
1578   --disable-full-version-match
1579                           Disable the full version match rules when checking
1580                           Subversion library compatibility.
1581   --enable-mod-activation Enable mod_dav_svn in httpd.conf
1582   --enable-gcov           Turn on gcov coverage testing (GCC only).
1583   --enable-gprof          Produce gprof profiling data in 'gmon.out' (GCC
1584                           only).
1585   --enable-runtime-module-search
1586                           Turn on dynamic loading of RA/FS libraries including
1587                           third-party FS libraries
1588   --enable-javahl         Enable compilation of Java high-level bindings
1589                           (requires C++)
1590
1591 Optional Packages:
1592   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1593   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1594   --with-apr=PATH         prefix for installed APR, path to APR build tree,
1595                           or the full path to apr-config
1596   --with-apr-util=PATH    prefix for installed APU, path to APU build tree,
1597                           or the full path to apu-config
1598   --with-serf=PREFIX      Serf HTTP client library (enabled by default if
1599                           found)
1600   --with-apr_memcache=PREFIX
1601                           Standalone apr_memcache client library
1602   --with-apxs[=FILE]      Build shared Apache modules. FILE is the optional
1603                           pathname to the Apache apxs tool; defaults to
1604                           "apxs".
1605   --with-apache-libexecdir[=PATH]
1606                           Install Apache modules to Apache's configured
1607                           modules directory instead of LIBEXECDIR; if PATH is
1608                           given, install to PATH.
1609   --with-sqlite=PREFIX    Use installed SQLite library or amalgamation file.
1610   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1611                           both]
1612   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1613   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1614                           compiler's sysroot if not specified).
1615   --with-trang=PATH       Specify the command to run the trang schema
1616                           converter
1617   --with-doxygen=PATH     Specify the command to run doxygen
1618   --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS
1619                           Specify location of Expat
1620   --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS]
1621                           The Subversion Berkeley DB based filesystem library
1622                           requires Berkeley DB $db_version or $db_alt_version.
1623                           If you specify `--without-berkeley-db', that library
1624                           will not be built. If you omit the argument of this
1625                           option completely, the configure script will use
1626                           Berkeley DB used by APR-UTIL.
1627   --with-sasl=PATH        Compile with libsasl2 in PATH
1628   --without-gpg-agent     Disable support for GPG-Agent
1629   --with-gnome-keyring    Enable use of GNOME Keyring for auth credentials
1630                           (enabled by default if found)
1631   --with-libmagic=PREFIX  libmagic filetype detection library
1632   --with-kwallet[=PATH]   Enable use of KWallet (KDE 4) for auth credentials
1633   --with-openssl          This option does NOT affect the Subversion build
1634                           process in any way. It tells an integrated Serf HTTP
1635                           client library build process where to locate the
1636                           OpenSSL library when (and only when) building Serf
1637                           as an integrated part of the Subversion build
1638                           process. When linking to a previously installed
1639                           version of Serf instead, you do not need to use this
1640                           option.
1641   --with-editor=PATH      Specify a default editor for the subversion client.
1642   --with-zlib=PREFIX      zlib compression library
1643   --with-jdk=PATH         Try to use 'PATH/include' to find the JNI headers.
1644                           If PATH is not specified, look for a Java
1645                           Development Kit at JAVA_HOME.
1646   --with-jikes=PATH       Specify the path to a jikes binary to use it as your
1647                           Java compiler. The default is to look for jikes
1648                           (PATH optional). This behavior can be switched off
1649                           by supplying 'no'.
1650   --with-swig=PATH        Try to use 'PATH/bin/swig' to build the swig
1651                           bindings. If PATH is not specified, look for a
1652                           'swig' binary in your PATH.
1653   --with-ruby-sitedir=SITEDIR
1654                           install Ruby bindings in SITEDIR (default is same as
1655                           ruby's one)
1656   --with-ruby-test-verbose=LEVEL
1657                           how to use output level for Ruby bindings tests
1658                           (default is normal)
1659   --with-ctypesgen=PATH   Specify the path to ctypesgen. This can either be
1660                           the full path to a ctypesgen installation, the full
1661                           path to a ctypesgen source tree or the full path to
1662                           ctypesgen.py.
1663   --with-junit=PATH       Specify a path to the junit JAR file.
1664
1665 Some influential environment variables:
1666   CC          C compiler command
1667   CFLAGS      C compiler flags
1668   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1669               nonstandard directory <lib dir>
1670   LIBS        libraries to pass to the linker, e.g. -l<library>
1671   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1672               you have headers in a nonstandard directory <include dir>
1673   CXX         C++ compiler command
1674   CXXFLAGS    C++ compiler flags
1675   CPP         C preprocessor
1676   CXXCPP      C++ preprocessor
1677
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1680
1681 Report bugs to <http://subversion.apache.org/>.
1682 _ACEOF
1683 ac_status=$?
1684 fi
1685
1686 if test "$ac_init_help" = "recursive"; then
1687   # If there are subdirs, report their specific --help.
1688   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689     test -d "$ac_dir" ||
1690       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691       continue
1692     ac_builddir=.
1693
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 *)
1697   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698   # A ".." for each directory in $ac_dir_suffix.
1699   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700   case $ac_top_builddir_sub in
1701   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703   esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1709
1710 case $srcdir in
1711   .)  # We are building in place.
1712     ac_srcdir=.
1713     ac_top_srcdir=$ac_top_builddir_sub
1714     ac_abs_top_srcdir=$ac_pwd ;;
1715   [\\/]* | ?:[\\/]* )  # Absolute name.
1716     ac_srcdir=$srcdir$ac_dir_suffix;
1717     ac_top_srcdir=$srcdir
1718     ac_abs_top_srcdir=$srcdir ;;
1719   *) # Relative name.
1720     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721     ac_top_srcdir=$ac_top_build_prefix$srcdir
1722     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1725
1726     cd "$ac_dir" || { ac_status=$?; continue; }
1727     # Check for guested configure.
1728     if test -f "$ac_srcdir/configure.gnu"; then
1729       echo &&
1730       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731     elif test -f "$ac_srcdir/configure"; then
1732       echo &&
1733       $SHELL "$ac_srcdir/configure" --help=recursive
1734     else
1735       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736     fi || ac_status=$?
1737     cd "$ac_pwd" || { ac_status=$?; break; }
1738   done
1739 fi
1740
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1743   cat <<\_ACEOF
1744 subversion configure 1.8.14
1745 generated by GNU Autoconf 2.69
1746
1747 Copyright (C) 2012 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751   exit
1752 fi
1753
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1757
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   rm -f conftest.$ac_objext
1765   if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_compile") 2>conftest.err
1773   ac_status=$?
1774   if test -s conftest.err; then
1775     grep -v '^ *+' conftest.err >conftest.er1
1776     cat conftest.er1 >&5
1777     mv -f conftest.er1 conftest.err
1778   fi
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; } && {
1781          test -z "$ac_c_werror_flag" ||
1782          test ! -s conftest.err
1783        } && test -s conftest.$ac_objext; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789         ac_retval=1
1790 fi
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_compile
1795
1796 # ac_fn_c_try_link LINENO
1797 # -----------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_link ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   rm -f conftest.$ac_objext conftest$ac_exeext
1803   if { { ac_try="$ac_link"
1804 case "(($ac_try" in
1805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806   *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810   (eval "$ac_link") 2>conftest.err
1811   ac_status=$?
1812   if test -s conftest.err; then
1813     grep -v '^ *+' conftest.err >conftest.er1
1814     cat conftest.er1 >&5
1815     mv -f conftest.er1 conftest.err
1816   fi
1817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818   test $ac_status = 0; } && {
1819          test -z "$ac_c_werror_flag" ||
1820          test ! -s conftest.err
1821        } && test -s conftest$ac_exeext && {
1822          test "$cross_compiling" = yes ||
1823          test -x conftest$ac_exeext
1824        }; then :
1825   ac_retval=0
1826 else
1827   $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830         ac_retval=1
1831 fi
1832   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834   # interfere with the next link command; also delete a directory that is
1835   # left behind by Apple's compiler.  We do this before executing the actions.
1836   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838   as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_link
1841
1842 # ac_fn_cxx_try_compile LINENO
1843 # ----------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_cxx_try_compile ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   rm -f conftest.$ac_objext
1849   if { { ac_try="$ac_compile"
1850 case "(($ac_try" in
1851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852   *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856   (eval "$ac_compile") 2>conftest.err
1857   ac_status=$?
1858   if test -s conftest.err; then
1859     grep -v '^ *+' conftest.err >conftest.er1
1860     cat conftest.er1 >&5
1861     mv -f conftest.er1 conftest.err
1862   fi
1863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864   test $ac_status = 0; } && {
1865          test -z "$ac_cxx_werror_flag" ||
1866          test ! -s conftest.err
1867        } && test -s conftest.$ac_objext; then :
1868   ac_retval=0
1869 else
1870   $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873         ac_retval=1
1874 fi
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876   as_fn_set_status $ac_retval
1877
1878 } # ac_fn_cxx_try_compile
1879
1880 # ac_fn_cxx_try_link LINENO
1881 # -------------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_link ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   rm -f conftest.$ac_objext conftest$ac_exeext
1887   if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890   *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894   (eval "$ac_link") 2>conftest.err
1895   ac_status=$?
1896   if test -s conftest.err; then
1897     grep -v '^ *+' conftest.err >conftest.er1
1898     cat conftest.er1 >&5
1899     mv -f conftest.er1 conftest.err
1900   fi
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; } && {
1903          test -z "$ac_cxx_werror_flag" ||
1904          test ! -s conftest.err
1905        } && test -s conftest$ac_exeext && {
1906          test "$cross_compiling" = yes ||
1907          test -x conftest$ac_exeext
1908        }; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914         ac_retval=1
1915 fi
1916   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918   # interfere with the next link command; also delete a directory that is
1919   # left behind by Apple's compiler.  We do this before executing the actions.
1920   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922   as_fn_set_status $ac_retval
1923
1924 } # ac_fn_cxx_try_link
1925
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_cpp ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935   *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940   ac_status=$?
1941   if test -s conftest.err; then
1942     grep -v '^ *+' conftest.err >conftest.er1
1943     cat conftest.er1 >&5
1944     mv -f conftest.er1 conftest.err
1945   fi
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } > conftest.i && {
1948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949          test ! -s conftest.err
1950        }; then :
1951   ac_retval=0
1952 else
1953   $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956     ac_retval=1
1957 fi
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959   as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_cpp
1962
1963 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 # -------------------------------------------------------
1965 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 # the include files in INCLUDES and setting the cache variable VAR
1967 # accordingly.
1968 ac_fn_c_check_header_mongrel ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   if eval \${$3+:} false; then :
1972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975   $as_echo_n "(cached) " >&6
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 else
1981   # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990   ac_header_compiler=yes
1991 else
1992   ac_header_compiler=no
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1997
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_cpp "$LINENO"; then :
2006   ac_header_preproc=yes
2007 else
2008   ac_header_preproc=no
2009 fi
2010 rm -f conftest.err conftest.i conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2013
2014 # So?  What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2016   yes:no: )
2017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021     ;;
2022   no:yes:* )
2023     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ( $as_echo "## -------------------------------------------- ##
2034 ## Report this to http://subversion.apache.org/ ##
2035 ## -------------------------------------------- ##"
2036      ) | sed "s/^/$as_me: WARNING:     /" >&2
2037     ;;
2038 esac
2039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042   $as_echo_n "(cached) " >&6
2043 else
2044   eval "$3=\$ac_header_compiler"
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 fi
2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_header_mongrel
2053
2054 # ac_fn_c_try_run LINENO
2055 # ----------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057 # that executables *can* be run.
2058 ac_fn_c_try_run ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   if { { ac_try="$ac_link"
2062 case "(($ac_try" in
2063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064   *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068   (eval "$ac_link") 2>&5
2069   ac_status=$?
2070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2072   { { case "(($ac_try" in
2073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074   *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078   (eval "$ac_try") 2>&5
2079   ac_status=$?
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; }; }; then :
2082   ac_retval=0
2083 else
2084   $as_echo "$as_me: program exited with status $ac_status" >&5
2085        $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088        ac_retval=$ac_status
2089 fi
2090   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092   as_fn_set_status $ac_retval
2093
2094 } # ac_fn_c_try_run
2095
2096 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2097 # -------------------------------------------------------
2098 # Tests whether HEADER exists and can be compiled using the include files in
2099 # INCLUDES, setting the cache variable VAR accordingly.
2100 ac_fn_c_check_header_compile ()
2101 {
2102   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106   $as_echo_n "(cached) " >&6
2107 else
2108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114   eval "$3=yes"
2115 else
2116   eval "$3=no"
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 fi
2120 eval ac_res=\$$3
2121                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125 } # ac_fn_c_check_header_compile
2126
2127 # ac_fn_c_check_func LINENO FUNC VAR
2128 # ----------------------------------
2129 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2130 ac_fn_c_check_func ()
2131 {
2132   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136   $as_echo_n "(cached) " >&6
2137 else
2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2142 #define $2 innocuous_$2
2143
2144 /* System header to define __stub macros and hopefully few prototypes,
2145     which can conflict with char $2 (); below.
2146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2147     <limits.h> exists even on freestanding compilers.  */
2148
2149 #ifdef __STDC__
2150 # include <limits.h>
2151 #else
2152 # include <assert.h>
2153 #endif
2154
2155 #undef $2
2156
2157 /* Override any GCC internal prototype to avoid an error.
2158    Use char because int might match the return type of a GCC
2159    builtin and then its argument prototype would still apply.  */
2160 #ifdef __cplusplus
2161 extern "C"
2162 #endif
2163 char $2 ();
2164 /* The GNU C library defines this for functions which it implements
2165     to always fail with ENOSYS.  Some functions are actually named
2166     something starting with __ and the normal name is an alias.  */
2167 #if defined __stub_$2 || defined __stub___$2
2168 choke me
2169 #endif
2170
2171 int
2172 main ()
2173 {
2174 return $2 ();
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_link "$LINENO"; then :
2180   eval "$3=yes"
2181 else
2182   eval "$3=no"
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext \
2185     conftest$ac_exeext conftest.$ac_ext
2186 fi
2187 eval ac_res=\$$3
2188                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192 } # ac_fn_c_check_func
2193
2194 # ac_fn_cxx_try_cpp LINENO
2195 # ------------------------
2196 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_cxx_try_cpp ()
2198 {
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   if { { ac_try="$ac_cpp conftest.$ac_ext"
2201 case "(($ac_try" in
2202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203   *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2208   ac_status=$?
2209   if test -s conftest.err; then
2210     grep -v '^ *+' conftest.err >conftest.er1
2211     cat conftest.er1 >&5
2212     mv -f conftest.er1 conftest.err
2213   fi
2214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215   test $ac_status = 0; } > conftest.i && {
2216          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2217          test ! -s conftest.err
2218        }; then :
2219   ac_retval=0
2220 else
2221   $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224     ac_retval=1
2225 fi
2226   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227   as_fn_set_status $ac_retval
2228
2229 } # ac_fn_cxx_try_cpp
2230
2231 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2232 # -------------------------------------------
2233 # Tests whether TYPE exists after having included INCLUDES, setting cache
2234 # variable VAR accordingly.
2235 ac_fn_c_check_type ()
2236 {
2237   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if eval \${$3+:} false; then :
2241   $as_echo_n "(cached) " >&6
2242 else
2243   eval "$3=no"
2244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 if (sizeof ($2))
2251          return 0;
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 if (sizeof (($2)))
2264             return 0;
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270
2271 else
2272   eval "$3=yes"
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 fi
2278 eval ac_res=\$$3
2279                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2281   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282
2283 } # ac_fn_c_check_type
2284 cat >config.log <<_ACEOF
2285 This file contains any messages produced by compilers while
2286 running configure, to aid debugging if configure makes a mistake.
2287
2288 It was created by subversion $as_me 1.8.14, which was
2289 generated by GNU Autoconf 2.69.  Invocation command line was
2290
2291   $ $0 $@
2292
2293 _ACEOF
2294 exec 5>>config.log
2295 {
2296 cat <<_ASUNAME
2297 ## --------- ##
2298 ## Platform. ##
2299 ## --------- ##
2300
2301 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2302 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2303 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2304 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2305 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2306
2307 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2308 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2309
2310 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2311 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2312 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2313 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2314 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2315 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2316 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2317
2318 _ASUNAME
2319
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325     $as_echo "PATH: $as_dir"
2326   done
2327 IFS=$as_save_IFS
2328
2329 } >&5
2330
2331 cat >&5 <<_ACEOF
2332
2333
2334 ## ----------- ##
2335 ## Core tests. ##
2336 ## ----------- ##
2337
2338 _ACEOF
2339
2340
2341 # Keep a trace of the command line.
2342 # Strip out --no-create and --no-recursion so they do not pile up.
2343 # Strip out --silent because we don't want to record it for future runs.
2344 # Also quote any args containing shell meta-characters.
2345 # Make two passes to allow for proper duplicate-argument suppression.
2346 ac_configure_args=
2347 ac_configure_args0=
2348 ac_configure_args1=
2349 ac_must_keep_next=false
2350 for ac_pass in 1 2
2351 do
2352   for ac_arg
2353   do
2354     case $ac_arg in
2355     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2356     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2357     | -silent | --silent | --silen | --sile | --sil)
2358       continue ;;
2359     *\'*)
2360       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2361     esac
2362     case $ac_pass in
2363     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2364     2)
2365       as_fn_append ac_configure_args1 " '$ac_arg'"
2366       if test $ac_must_keep_next = true; then
2367         ac_must_keep_next=false # Got value, back to normal.
2368       else
2369         case $ac_arg in
2370           *=* | --config-cache | -C | -disable-* | --disable-* \
2371           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2372           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2373           | -with-* | --with-* | -without-* | --without-* | --x)
2374             case "$ac_configure_args0 " in
2375               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2376             esac
2377             ;;
2378           -* ) ac_must_keep_next=true ;;
2379         esac
2380       fi
2381       as_fn_append ac_configure_args " '$ac_arg'"
2382       ;;
2383     esac
2384   done
2385 done
2386 { ac_configure_args0=; unset ac_configure_args0;}
2387 { ac_configure_args1=; unset ac_configure_args1;}
2388
2389 # When interrupted or exit'd, cleanup temporary files, and complete
2390 # config.log.  We remove comments because anyway the quotes in there
2391 # would cause problems or look ugly.
2392 # WARNING: Use '\'' to represent an apostrophe within the trap.
2393 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2394 trap 'exit_status=$?
2395   # Save into config.log some information that might help in debugging.
2396   {
2397     echo
2398
2399     $as_echo "## ---------------- ##
2400 ## Cache variables. ##
2401 ## ---------------- ##"
2402     echo
2403     # The following way of writing the cache mishandles newlines in values,
2404 (
2405   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2406     eval ac_val=\$$ac_var
2407     case $ac_val in #(
2408     *${as_nl}*)
2409       case $ac_var in #(
2410       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2411 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2412       esac
2413       case $ac_var in #(
2414       _ | IFS | as_nl) ;; #(
2415       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2416       *) { eval $ac_var=; unset $ac_var;} ;;
2417       esac ;;
2418     esac
2419   done
2420   (set) 2>&1 |
2421     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2422     *${as_nl}ac_space=\ *)
2423       sed -n \
2424         "s/'\''/'\''\\\\'\'''\''/g;
2425           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2426       ;; #(
2427     *)
2428       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2429       ;;
2430     esac |
2431     sort
2432 )
2433     echo
2434
2435     $as_echo "## ----------------- ##
2436 ## Output variables. ##
2437 ## ----------------- ##"
2438     echo
2439     for ac_var in $ac_subst_vars
2440     do
2441       eval ac_val=\$$ac_var
2442       case $ac_val in
2443       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444       esac
2445       $as_echo "$ac_var='\''$ac_val'\''"
2446     done | sort
2447     echo
2448
2449     if test -n "$ac_subst_files"; then
2450       $as_echo "## ------------------- ##
2451 ## File substitutions. ##
2452 ## ------------------- ##"
2453       echo
2454       for ac_var in $ac_subst_files
2455       do
2456         eval ac_val=\$$ac_var
2457         case $ac_val in
2458         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459         esac
2460         $as_echo "$ac_var='\''$ac_val'\''"
2461       done | sort
2462       echo
2463     fi
2464
2465     if test -s confdefs.h; then
2466       $as_echo "## ----------- ##
2467 ## confdefs.h. ##
2468 ## ----------- ##"
2469       echo
2470       cat confdefs.h
2471       echo
2472     fi
2473     test "$ac_signal" != 0 &&
2474       $as_echo "$as_me: caught signal $ac_signal"
2475     $as_echo "$as_me: exit $exit_status"
2476   } >&5
2477   rm -f core *.core core.conftest.* &&
2478     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479     exit $exit_status
2480 ' 0
2481 for ac_signal in 1 2 13 15; do
2482   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483 done
2484 ac_signal=0
2485
2486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2487 rm -f -r conftest* confdefs.h
2488
2489 $as_echo "/* confdefs.h */" > confdefs.h
2490
2491 # Predefined preprocessor variables.
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_NAME "$PACKAGE_NAME"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_STRING "$PACKAGE_STRING"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_URL "$PACKAGE_URL"
2515 _ACEOF
2516
2517
2518 # Let the site file select an alternate cache file if it wants to.
2519 # Prefer an explicitly selected file to automatically selected ones.
2520 ac_site_file1=NONE
2521 ac_site_file2=NONE
2522 if test -n "$CONFIG_SITE"; then
2523   # We do not want a PATH search for config.site.
2524   case $CONFIG_SITE in #((
2525     -*)  ac_site_file1=./$CONFIG_SITE;;
2526     */*) ac_site_file1=$CONFIG_SITE;;
2527     *)   ac_site_file1=./$CONFIG_SITE;;
2528   esac
2529 elif test "x$prefix" != xNONE; then
2530   ac_site_file1=$prefix/share/config.site
2531   ac_site_file2=$prefix/etc/config.site
2532 else
2533   ac_site_file1=$ac_default_prefix/share/config.site
2534   ac_site_file2=$ac_default_prefix/etc/config.site
2535 fi
2536 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2537 do
2538   test "x$ac_site_file" = xNONE && continue
2539   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2540     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2541 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2542     sed 's/^/| /' "$ac_site_file" >&5
2543     . "$ac_site_file" \
2544       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2546 as_fn_error $? "failed to load site script $ac_site_file
2547 See \`config.log' for more details" "$LINENO" 5; }
2548   fi
2549 done
2550
2551 if test -r "$cache_file"; then
2552   # Some versions of bash will fail to source /dev/null (special files
2553   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2554   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2555     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2556 $as_echo "$as_me: loading cache $cache_file" >&6;}
2557     case $cache_file in
2558       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2559       *)                      . "./$cache_file";;
2560     esac
2561   fi
2562 else
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2564 $as_echo "$as_me: creating cache $cache_file" >&6;}
2565   >$cache_file
2566 fi
2567
2568 # Check that the precious variables saved in the cache have kept the same
2569 # value.
2570 ac_cache_corrupted=false
2571 for ac_var in $ac_precious_vars; do
2572   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2573   eval ac_new_set=\$ac_env_${ac_var}_set
2574   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2575   eval ac_new_val=\$ac_env_${ac_var}_value
2576   case $ac_old_set,$ac_new_set in
2577     set,)
2578       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2579 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2580       ac_cache_corrupted=: ;;
2581     ,set)
2582       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2583 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2584       ac_cache_corrupted=: ;;
2585     ,);;
2586     *)
2587       if test "x$ac_old_val" != "x$ac_new_val"; then
2588         # differences in whitespace do not lead to failure.
2589         ac_old_val_w=`echo x $ac_old_val`
2590         ac_new_val_w=`echo x $ac_new_val`
2591         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2592           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2593 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2594           ac_cache_corrupted=:
2595         else
2596           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2597 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2598           eval $ac_var=\$ac_old_val
2599         fi
2600         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2601 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2602         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2603 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2604       fi;;
2605   esac
2606   # Pass precious variables to config.status.
2607   if test "$ac_new_set" = set; then
2608     case $ac_new_val in
2609     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2610     *) ac_arg=$ac_var=$ac_new_val ;;
2611     esac
2612     case " $ac_configure_args " in
2613       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2614       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2615     esac
2616   fi
2617 done
2618 if $ac_cache_corrupted; then
2619   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2622 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2623   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2624 fi
2625 ## -------------------- ##
2626 ## Main body of script. ##
2627 ## -------------------- ##
2628
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634
2635
2636
2637
2638 ac_aux_dir=
2639 for ac_dir in build "$srcdir"/build; do
2640   if 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/install.sh"; then
2645     ac_aux_dir=$ac_dir
2646     ac_install_sh="$ac_aux_dir/install.sh -c"
2647     break
2648   elif test -f "$ac_dir/shtool"; then
2649     ac_aux_dir=$ac_dir
2650     ac_install_sh="$ac_aux_dir/shtool install -c"
2651     break
2652   fi
2653 done
2654 if test -z "$ac_aux_dir"; then
2655   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2656 fi
2657
2658 # These three variables are undocumented and unsupported,
2659 # and are intended to be withdrawn in a future Autoconf release.
2660 # They can cause serious problems if a builder's source tree is in a directory
2661 # whose full name contains unusual characters.
2662 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2663 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2664 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2665
2666
2667
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.8.14" >&5
2669 $as_echo "$as_me: Configuring Subversion 1.8.14" >&6;}
2670
2671 abs_srcdir="`cd $srcdir && pwd`"
2672
2673 abs_builddir="`pwd`"
2674
2675 if test "$abs_srcdir" = "$abs_builddir"; then
2676   canonicalized_srcdir=""
2677 else
2678   canonicalized_srcdir="$srcdir/"
2679 fi
2680
2681
2682 SWIG_LDFLAGS="$LDFLAGS"
2683
2684
2685 # Generate config.nice early (before the arguments are munged)
2686
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5
2688 $as_echo "$as_me: creating config.nice" >&6;}
2689   # This little dance satisfies Cygwin, which cannot overwrite in-use files.
2690   if test -f "config.nice"; then
2691     mv "config.nice" "config.nice.old"
2692   fi
2693
2694   cat >"config.nice" <<EOF
2695 #! /bin/sh
2696 #
2697 # Created by configure
2698
2699 '$0' $ac_configure_args "\$@"
2700 EOF
2701
2702   chmod +x "config.nice"
2703   rm -f "config.nice.old"
2704
2705
2706 # ==== Check for programs ====================================================
2707
2708 # Look for a C compiler (before anything can set CFLAGS)
2709 CMAINTAINERFLAGS="$CUSERFLAGS"
2710 CUSERFLAGS="$CFLAGS"
2711 ac_ext=c
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716 if test -n "$ac_tool_prefix"; then
2717   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_CC+:} false; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   if test -n "$CC"; then
2725   ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     for ac_exec_ext in '' $ac_executable_extensions; do
2733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754 fi
2755 if test -z "$ac_cv_prog_CC"; then
2756   ac_ct_CC=$CC
2757   # Extract the first word of "gcc", so it can be a program name with args.
2758 set dummy gcc; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   if test -n "$ac_ct_CC"; then
2765   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772     for ac_exec_ext in '' $ac_executable_extensions; do
2773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774     ac_cv_prog_ac_ct_CC="gcc"
2775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776     break 2
2777   fi
2778 done
2779   done
2780 IFS=$as_save_IFS
2781
2782 fi
2783 fi
2784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2787 $as_echo "$ac_ct_CC" >&6; }
2788 else
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793   if test "x$ac_ct_CC" = x; then
2794     CC=""
2795   else
2796     case $cross_compiling:$ac_tool_warned in
2797 yes:)
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800 ac_tool_warned=yes ;;
2801 esac
2802     CC=$ac_ct_CC
2803   fi
2804 else
2805   CC="$ac_cv_prog_CC"
2806 fi
2807
2808 if test -z "$CC"; then
2809           if test -n "$ac_tool_prefix"; then
2810     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}cc; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_CC+:} false; then :
2815   $as_echo_n "(cached) " >&6
2816 else
2817   if test -n "$CC"; then
2818   ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825     for ac_exec_ext in '' $ac_executable_extensions; do
2826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827     ac_cv_prog_CC="${ac_tool_prefix}cc"
2828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832   done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CC=$ac_cv_prog_CC
2838 if test -n "$CC"; then
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2840 $as_echo "$CC" >&6; }
2841 else
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846
2847   fi
2848 fi
2849 if test -z "$CC"; then
2850   # Extract the first word of "cc", so it can be a program name with args.
2851 set dummy cc; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_CC+:} false; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   if test -n "$CC"; then
2858   ac_cv_prog_CC="$CC" # Let the user override the test.
2859 else
2860   ac_prog_rejected=no
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864   IFS=$as_save_IFS
2865   test -z "$as_dir" && as_dir=.
2866     for ac_exec_ext in '' $ac_executable_extensions; do
2867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2869        ac_prog_rejected=yes
2870        continue
2871      fi
2872     ac_cv_prog_CC="cc"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 if test $ac_prog_rejected = yes; then
2881   # We found a bogon in the path, so make sure we never use it.
2882   set dummy $ac_cv_prog_CC
2883   shift
2884   if test $# != 0; then
2885     # We chose a different compiler from the bogus one.
2886     # However, it has the same basename, so the bogon will be chosen
2887     # first if we set CC to just the basename; use the full file name.
2888     shift
2889     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890   fi
2891 fi
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2898 else
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$CC"; then
2906   if test -n "$ac_tool_prefix"; then
2907   for ac_prog in cl.exe
2908   do
2909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_CC+:} false; then :
2914   $as_echo_n "(cached) " >&6
2915 else
2916   if test -n "$CC"; then
2917   ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924     for ac_exec_ext in '' $ac_executable_extensions; do
2925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931   done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946     test -n "$CC" && break
2947   done
2948 fi
2949 if test -z "$CC"; then
2950   ac_ct_CC=$CC
2951   for ac_prog in cl.exe
2952 do
2953   # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2958   $as_echo_n "(cached) " >&6
2959 else
2960   if test -n "$ac_ct_CC"; then
2961   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966   IFS=$as_save_IFS
2967   test -z "$as_dir" && as_dir=.
2968     for ac_exec_ext in '' $ac_executable_extensions; do
2969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970     ac_cv_prog_ac_ct_CC="$ac_prog"
2971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972     break 2
2973   fi
2974 done
2975   done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2983 $as_echo "$ac_ct_CC" >&6; }
2984 else
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990   test -n "$ac_ct_CC" && break
2991 done
2992
2993   if test "x$ac_ct_CC" = x; then
2994     CC=""
2995   else
2996     case $cross_compiling:$ac_tool_warned in
2997 yes:)
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3000 ac_tool_warned=yes ;;
3001 esac
3002     CC=$ac_ct_CC
3003   fi
3004 fi
3005
3006 fi
3007
3008
3009 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011 as_fn_error $? "no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details" "$LINENO" 5; }
3013
3014 # Provide some information about the compiler.
3015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3016 set X $ac_compile
3017 ac_compiler=$2
3018 for ac_option in --version -v -V -qversion; do
3019   { { ac_try="$ac_compiler $ac_option >&5"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3027   ac_status=$?
3028   if test -s conftest.err; then
3029     sed '10a\
3030 ... rest of stderr output deleted ...
3031          10q' conftest.err >conftest.er1
3032     cat conftest.er1 >&5
3033   fi
3034   rm -f conftest.er1 conftest.err
3035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036   test $ac_status = 0; }
3037 done
3038
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h.  */
3041
3042 int
3043 main ()
3044 {
3045
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
3050 ac_clean_files_save=$ac_clean_files
3051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3052 # Try to create an executable without -o first, disregard a.out.
3053 # It will help us diagnose broken compilers, and finding out an intuition
3054 # of exeext.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3056 $as_echo_n "checking whether the C compiler works... " >&6; }
3057 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058
3059 # The possible output files:
3060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3061
3062 ac_rmfiles=
3063 for ac_file in $ac_files
3064 do
3065   case $ac_file in
3066     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3068   esac
3069 done
3070 rm -f $ac_rmfiles
3071
3072 if { { ac_try="$ac_link_default"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079   (eval "$ac_link_default") 2>&5
3080   ac_status=$?
3081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082   test $ac_status = 0; }; then :
3083   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3085 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3086 # so that the user can short-circuit this test for compilers unknown to
3087 # Autoconf.
3088 for ac_file in $ac_files ''
3089 do
3090   test -f "$ac_file" || continue
3091   case $ac_file in
3092     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3093         ;;
3094     [ab].out )
3095         # We found the default executable, but exeext='' is most
3096         # certainly right.
3097         break;;
3098     *.* )
3099         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3100         then :; else
3101            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102         fi
3103         # We set ac_cv_exeext here because the later test for it is not
3104         # safe: cross compilers may not add the suffix if given an `-o'
3105         # argument, so we may need to know it at that point already.
3106         # Even if this section looks crufty: it has the advantage of
3107         # actually working.
3108         break;;
3109     * )
3110         break;;
3111   esac
3112 done
3113 test "$ac_cv_exeext" = no && ac_cv_exeext=
3114
3115 else
3116   ac_file=''
3117 fi
3118 if test -z "$ac_file"; then :
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error 77 "C compiler cannot create executables
3127 See \`config.log' for more details" "$LINENO" 5; }
3128 else
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130 $as_echo "yes" >&6; }
3131 fi
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3133 $as_echo_n "checking for C compiler default output file name... " >&6; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3135 $as_echo "$ac_file" >&6; }
3136 ac_exeext=$ac_cv_exeext
3137
3138 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3141 $as_echo_n "checking for suffix of executables... " >&6; }
3142 if { { ac_try="$ac_link"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149   (eval "$ac_link") 2>&5
3150   ac_status=$?
3151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152   test $ac_status = 0; }; then :
3153   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3154 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3155 # work properly (i.e., refer to `conftest.exe'), while it won't with
3156 # `rm'.
3157 for ac_file in conftest.exe conftest conftest.*; do
3158   test -f "$ac_file" || continue
3159   case $ac_file in
3160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3161     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3162           break;;
3163     * ) break;;
3164   esac
3165 done
3166 else
3167   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3170 See \`config.log' for more details" "$LINENO" 5; }
3171 fi
3172 rm -f conftest conftest$ac_cv_exeext
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3174 $as_echo "$ac_cv_exeext" >&6; }
3175
3176 rm -f conftest.$ac_ext
3177 EXEEXT=$ac_cv_exeext
3178 ac_exeext=$EXEEXT
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h.  */
3181 #include <stdio.h>
3182 int
3183 main ()
3184 {
3185 FILE *f = fopen ("conftest.out", "w");
3186  return ferror (f) || fclose (f) != 0;
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 ac_clean_files="$ac_clean_files conftest.out"
3193 # Check that the compiler produces executables we can run.  If not, either
3194 # the compiler is broken, or we cross compile.
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3196 $as_echo_n "checking whether we are cross compiling... " >&6; }
3197 if test "$cross_compiling" != yes; then
3198   { { ac_try="$ac_link"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204 $as_echo "$ac_try_echo"; } >&5
3205   (eval "$ac_link") 2>&5
3206   ac_status=$?
3207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208   test $ac_status = 0; }
3209   if { ac_try='./conftest$ac_cv_exeext'
3210   { { case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216   (eval "$ac_try") 2>&5
3217   ac_status=$?
3218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219   test $ac_status = 0; }; }; then
3220     cross_compiling=no
3221   else
3222     if test "$cross_compiling" = maybe; then
3223         cross_compiling=yes
3224     else
3225         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error $? "cannot run C compiled programs.
3228 If you meant to cross compile, use \`--host'.
3229 See \`config.log' for more details" "$LINENO" 5; }
3230     fi
3231   fi
3232 fi
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3234 $as_echo "$cross_compiling" >&6; }
3235
3236 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3237 ac_clean_files=$ac_clean_files_save
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3239 $as_echo_n "checking for suffix of object files... " >&6; }
3240 if ${ac_cv_objext+:} false; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h.  */
3245
3246 int
3247 main ()
3248 {
3249
3250   ;
3251   return 0;
3252 }
3253 _ACEOF
3254 rm -f conftest.o conftest.obj
3255 if { { ac_try="$ac_compile"
3256 case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262   (eval "$ac_compile") 2>&5
3263   ac_status=$?
3264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265   test $ac_status = 0; }; then :
3266   for ac_file in conftest.o conftest.obj conftest.*; do
3267   test -f "$ac_file" || continue;
3268   case $ac_file in
3269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3270     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3271        break;;
3272   esac
3273 done
3274 else
3275   $as_echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 as_fn_error $? "cannot compute suffix of object files: cannot compile
3281 See \`config.log' for more details" "$LINENO" 5; }
3282 fi
3283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3286 $as_echo "$ac_cv_objext" >&6; }
3287 OBJEXT=$ac_cv_objext
3288 ac_objext=$OBJEXT
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3290 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3291 if ${ac_cv_c_compiler_gnu+:} false; then :
3292   $as_echo_n "(cached) " >&6
3293 else
3294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h.  */
3296
3297 int
3298 main ()
3299 {
3300 #ifndef __GNUC__
3301        choke me
3302 #endif
3303
3304   ;
3305   return 0;
3306 }
3307 _ACEOF
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309   ac_compiler_gnu=yes
3310 else
3311   ac_compiler_gnu=no
3312 fi
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3315
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3318 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3319 if test $ac_compiler_gnu = yes; then
3320   GCC=yes
3321 else
3322   GCC=
3323 fi
3324 ac_test_CFLAGS=${CFLAGS+set}
3325 ac_save_CFLAGS=$CFLAGS
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3327 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3328 if ${ac_cv_prog_cc_g+:} false; then :
3329   $as_echo_n "(cached) " >&6
3330 else
3331   ac_save_c_werror_flag=$ac_c_werror_flag
3332    ac_c_werror_flag=yes
3333    ac_cv_prog_cc_g=no
3334    CFLAGS="-g"
3335    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h.  */
3337
3338 int
3339 main ()
3340 {
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347   ac_cv_prog_cc_g=yes
3348 else
3349   CFLAGS=""
3350       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h.  */
3352
3353 int
3354 main ()
3355 {
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362
3363 else
3364   ac_c_werror_flag=$ac_save_c_werror_flag
3365          CFLAGS="-g"
3366          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h.  */
3368
3369 int
3370 main ()
3371 {
3372
3373   ;
3374   return 0;
3375 }
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378   ac_cv_prog_cc_g=yes
3379 fi
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 fi
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 fi
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385    ac_c_werror_flag=$ac_save_c_werror_flag
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3388 $as_echo "$ac_cv_prog_cc_g" >&6; }
3389 if test "$ac_test_CFLAGS" = set; then
3390   CFLAGS=$ac_save_CFLAGS
3391 elif test $ac_cv_prog_cc_g = yes; then
3392   if test "$GCC" = yes; then
3393     CFLAGS="-g -O2"
3394   else
3395     CFLAGS="-g"
3396   fi
3397 else
3398   if test "$GCC" = yes; then
3399     CFLAGS="-O2"
3400   else
3401     CFLAGS=
3402   fi
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3405 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3406 if ${ac_cv_prog_cc_c89+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   ac_cv_prog_cc_c89=no
3410 ac_save_CC=$CC
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h.  */
3413 #include <stdarg.h>
3414 #include <stdio.h>
3415 struct stat;
3416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3417 struct buf { int x; };
3418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3419 static char *e (p, i)
3420      char **p;
3421      int i;
3422 {
3423   return p[i];
3424 }
3425 static char *f (char * (*g) (char **, int), char **p, ...)
3426 {
3427   char *s;
3428   va_list v;
3429   va_start (v,p);
3430   s = g (p, va_arg (v,int));
3431   va_end (v);
3432   return s;
3433 }
3434
3435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3436    function prototypes and stuff, but not '\xHH' hex character constants.
3437    These don't provoke an error unfortunately, instead are silently treated
3438    as 'x'.  The following induces an error, until -std is added to get
3439    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3440    array size at least.  It's necessary to write '\x00'==0 to get something
3441    that's true only with -std.  */
3442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3443
3444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3445    inside strings and character constants.  */
3446 #define FOO(x) 'x'
3447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3448
3449 int test (int i, double x);
3450 struct s1 {int (*f) (int a);};
3451 struct s2 {int (*f) (double a);};
3452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3453 int argc;
3454 char **argv;
3455 int
3456 main ()
3457 {
3458 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3464         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3465 do
3466   CC="$ac_save_CC $ac_arg"
3467   if ac_fn_c_try_compile "$LINENO"; then :
3468   ac_cv_prog_cc_c89=$ac_arg
3469 fi
3470 rm -f core conftest.err conftest.$ac_objext
3471   test "x$ac_cv_prog_cc_c89" != "xno" && break
3472 done
3473 rm -f conftest.$ac_ext
3474 CC=$ac_save_CC
3475
3476 fi
3477 # AC_CACHE_VAL
3478 case "x$ac_cv_prog_cc_c89" in
3479   x)
3480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3481 $as_echo "none needed" >&6; } ;;
3482   xno)
3483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3484 $as_echo "unsupported" >&6; } ;;
3485   *)
3486     CC="$CC $ac_cv_prog_cc_c89"
3487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3488 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3489 esac
3490 if test "x$ac_cv_prog_cc_c89" != xno; then :
3491
3492 fi
3493
3494 ac_ext=c
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499
3500
3501
3502   CFLAGS_KEEP="$CFLAGS"
3503   CFLAGS=""
3504
3505
3506   _svn_xxflags__save="$CFLAGS"
3507   ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512
3513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5
3514 $as_echo_n "checking if $CC accepts -std=c90... " >&6; }
3515   CFLAGS="-std=c90 $CFLAGS"
3516         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518 int main(void){return 0;}
3519 _ACEOF
3520 if ac_fn_c_try_link "$LINENO"; then :
3521
3522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3523 $as_echo "yes" >&6; }
3524
3525
3526 else
3527
3528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530     CFLAGS="$_svn_xxflags__save"
3531
3532
3533   _svn_xxflags__save="$CFLAGS"
3534   ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5
3541 $as_echo_n "checking if $CC accepts -std=c89... " >&6; }
3542   CFLAGS="-std=c89 $CFLAGS"
3543         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545 int main(void){return 0;}
3546 _ACEOF
3547 if ac_fn_c_try_link "$LINENO"; then :
3548
3549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3550 $as_echo "yes" >&6; }
3551
3552
3553 else
3554
3555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557     CFLAGS="$_svn_xxflags__save"
3558
3559
3560   _svn_xxflags__save="$CFLAGS"
3561   ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5
3568 $as_echo_n "checking if $CC accepts -ansi... " >&6; }
3569   CFLAGS="-ansi $CFLAGS"
3570         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572 int main(void){return 0;}
3573 _ACEOF
3574 if ac_fn_c_try_link "$LINENO"; then :
3575
3576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3577 $as_echo "yes" >&6; }
3578
3579
3580 else
3581
3582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584     CFLAGS="$_svn_xxflags__save"
3585
3586
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext \
3589     conftest$ac_exeext conftest.$ac_ext
3590   ac_ext=c
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595
3596
3597
3598
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext \
3601     conftest$ac_exeext conftest.$ac_ext
3602   ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607
3608
3609
3610
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext \
3613     conftest$ac_exeext conftest.$ac_ext
3614   ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620
3621
3622   CMODEFLAGS="$CFLAGS"
3623   CFLAGS="$CFLAGS_KEEP"
3624
3625
3626
3627
3628   _svn_xxflags__save="$CFLAGS"
3629   ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
3636 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
3637   CFLAGS="-Werror=unknown-warning-option $CFLAGS"
3638         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h.  */
3640 int main(void){return 0;}
3641 _ACEOF
3642 if ac_fn_c_try_link "$LINENO"; then :
3643
3644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3645 $as_echo "yes" >&6; }
3646
3647
3648 else
3649
3650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652     CFLAGS="$_svn_xxflags__save"
3653
3654
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext \
3657     conftest$ac_exeext conftest.$ac_ext
3658   ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663
3664
3665
3666
3667 # Look for a C++ compiler (before anything can set CXXFLAGS)
3668 CXXMAINTAINERFLAGS="$CXXUSERFLAGS"
3669 CXXUSERFLAGS="$CXXFLAGS"
3670 ac_ext=cpp
3671 ac_cpp='$CXXCPP $CPPFLAGS'
3672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3675 if test -z "$CXX"; then
3676   if test -n "$CCC"; then
3677     CXX=$CCC
3678   else
3679     if test -n "$ac_tool_prefix"; then
3680   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3681   do
3682     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_prog_CXX+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   if test -n "$CXX"; then
3690   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3691 else
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695   IFS=$as_save_IFS
3696   test -z "$as_dir" && as_dir=.
3697     for ac_exec_ext in '' $ac_executable_extensions; do
3698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701     break 2
3702   fi
3703 done
3704   done
3705 IFS=$as_save_IFS
3706
3707 fi
3708 fi
3709 CXX=$ac_cv_prog_CXX
3710 if test -n "$CXX"; then
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3712 $as_echo "$CXX" >&6; }
3713 else
3714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3716 fi
3717
3718
3719     test -n "$CXX" && break
3720   done
3721 fi
3722 if test -z "$CXX"; then
3723   ac_ct_CXX=$CXX
3724   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3725 do
3726   # Extract the first word of "$ac_prog", so it can be a program name with args.
3727 set dummy $ac_prog; ac_word=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3731   $as_echo_n "(cached) " >&6
3732 else
3733   if test -n "$ac_ct_CXX"; then
3734   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3738 do
3739   IFS=$as_save_IFS
3740   test -z "$as_dir" && as_dir=.
3741     for ac_exec_ext in '' $ac_executable_extensions; do
3742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3743     ac_cv_prog_ac_ct_CXX="$ac_prog"
3744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745     break 2
3746   fi
3747 done
3748   done
3749 IFS=$as_save_IFS
3750
3751 fi
3752 fi
3753 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3754 if test -n "$ac_ct_CXX"; then
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3756 $as_echo "$ac_ct_CXX" >&6; }
3757 else
3758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 $as_echo "no" >&6; }
3760 fi
3761
3762
3763   test -n "$ac_ct_CXX" && break
3764 done
3765
3766   if test "x$ac_ct_CXX" = x; then
3767     CXX="g++"
3768   else
3769     case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775     CXX=$ac_ct_CXX
3776   fi
3777 fi
3778
3779   fi
3780 fi
3781 # Provide some information about the compiler.
3782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3783 set X $ac_compile
3784 ac_compiler=$2
3785 for ac_option in --version -v -V -qversion; do
3786   { { ac_try="$ac_compiler $ac_option >&5"
3787 case "(($ac_try" in
3788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789   *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3794   ac_status=$?
3795   if test -s conftest.err; then
3796     sed '10a\
3797 ... rest of stderr output deleted ...
3798          10q' conftest.err >conftest.er1
3799     cat conftest.er1 >&5
3800   fi
3801   rm -f conftest.er1 conftest.err
3802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803   test $ac_status = 0; }
3804 done
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3807 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3808 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817 #ifndef __GNUC__
3818        choke me
3819 #endif
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_cxx_try_compile "$LINENO"; then :
3826   ac_compiler_gnu=yes
3827 else
3828   ac_compiler_gnu=no
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3832
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3835 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3837   GXX=yes
3838 else
3839   GXX=
3840 fi
3841 ac_test_CXXFLAGS=${CXXFLAGS+set}
3842 ac_save_CXXFLAGS=$CXXFLAGS
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3844 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3845 if ${ac_cv_prog_cxx_g+:} false; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3849    ac_cxx_werror_flag=yes
3850    ac_cv_prog_cxx_g=no
3851    CXXFLAGS="-g"
3852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_cxx_try_compile "$LINENO"; then :
3864   ac_cv_prog_cxx_g=yes
3865 else
3866   CXXFLAGS=""
3867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h.  */
3869
3870 int
3871 main ()
3872 {
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 if ac_fn_cxx_try_compile "$LINENO"; then :
3879
3880 else
3881   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3882          CXXFLAGS="-g"
3883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h.  */
3885
3886 int
3887 main ()
3888 {
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_cxx_try_compile "$LINENO"; then :
3895   ac_cv_prog_cxx_g=yes
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3905 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3906 if test "$ac_test_CXXFLAGS" = set; then
3907   CXXFLAGS=$ac_save_CXXFLAGS
3908 elif test $ac_cv_prog_cxx_g = yes; then
3909   if test "$GXX" = yes; then
3910     CXXFLAGS="-g -O2"
3911   else
3912     CXXFLAGS="-g"
3913   fi
3914 else
3915   if test "$GXX" = yes; then
3916     CXXFLAGS="-O2"
3917   else
3918     CXXFLAGS=
3919   fi
3920 fi
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927
3928
3929   CXXFLAGS_KEEP="$CXXFLAGS"
3930   CXXFLAGS=""
3931
3932
3933   _svn_xxflags__save="$CXXFLAGS"
3934   ac_ext=cpp
3935 ac_cpp='$CXXCPP $CPPFLAGS'
3936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3939
3940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5
3941 $as_echo_n "checking if $CXX accepts -std=c++98... " >&6; }
3942   CXXFLAGS="-std=c++98 $CXXFLAGS"
3943         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h.  */
3945 int main(){}
3946 _ACEOF
3947 if ac_fn_cxx_try_link "$LINENO"; then :
3948
3949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3951
3952
3953 else
3954
3955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3957     CXXFLAGS="$_svn_xxflags__save"
3958
3959
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext \
3962     conftest$ac_exeext conftest.$ac_ext
3963   ac_ext=c
3964 ac_cpp='$CPP $CPPFLAGS'
3965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968
3969
3970
3971   CXXMODEFLAGS="$CXXFLAGS"
3972   CXXFLAGS="$CXXFLAGS_KEEP"
3973
3974
3975
3976
3977   _svn_xxflags__save="$CXXFLAGS"
3978   ac_ext=cpp
3979 ac_cpp='$CXXCPP $CPPFLAGS'
3980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3983
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5
3985 $as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; }
3986   CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS"
3987         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989 int main(){}
3990 _ACEOF
3991 if ac_fn_cxx_try_link "$LINENO"; then :
3992
3993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994 $as_echo "yes" >&6; }
3995
3996
3997 else
3998
3999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001     CXXFLAGS="$_svn_xxflags__save"
4002
4003
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext \
4006     conftest$ac_exeext conftest.$ac_ext
4007   ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013
4014
4015
4016 # Look for a C pre-processor
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4024 # On Suns, sometimes $CPP names a directory.
4025 if test -n "$CPP" && test -d "$CPP"; then
4026   CPP=
4027 fi
4028 if test -z "$CPP"; then
4029   if ${ac_cv_prog_CPP+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032       # Double quotes because CPP needs to be expanded
4033     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4034     do
4035       ac_preproc_ok=false
4036 for ac_c_preproc_warn_flag in '' yes
4037 do
4038   # Use a header file that comes with gcc, so configuring glibc
4039   # with a fresh cross-compiler works.
4040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041   # <limits.h> exists even on freestanding compilers.
4042   # On the NeXT, cc -E runs the code through the compiler's parser,
4043   # not just through cpp. "Syntax error" is here to catch this case.
4044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046 #ifdef __STDC__
4047 # include <limits.h>
4048 #else
4049 # include <assert.h>
4050 #endif
4051                      Syntax error
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055 else
4056   # Broken: fails on valid input.
4057 continue
4058 fi
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061   # OK, works on sane cases.  Now check whether nonexistent headers
4062   # can be detected and how.
4063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h.  */
4065 #include <ac_nonexistent.h>
4066 _ACEOF
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4068   # Broken: success on invalid input.
4069 continue
4070 else
4071   # Passes both tests.
4072 ac_preproc_ok=:
4073 break
4074 fi
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077 done
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.i conftest.err conftest.$ac_ext
4080 if $ac_preproc_ok; then :
4081   break
4082 fi
4083
4084     done
4085     ac_cv_prog_CPP=$CPP
4086
4087 fi
4088   CPP=$ac_cv_prog_CPP
4089 else
4090   ac_cv_prog_CPP=$CPP
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4093 $as_echo "$CPP" >&6; }
4094 ac_preproc_ok=false
4095 for ac_c_preproc_warn_flag in '' yes
4096 do
4097   # Use a header file that comes with gcc, so configuring glibc
4098   # with a fresh cross-compiler works.
4099   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100   # <limits.h> exists even on freestanding compilers.
4101   # On the NeXT, cc -E runs the code through the compiler's parser,
4102   # not just through cpp. "Syntax error" is here to catch this case.
4103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105 #ifdef __STDC__
4106 # include <limits.h>
4107 #else
4108 # include <assert.h>
4109 #endif
4110                      Syntax error
4111 _ACEOF
4112 if ac_fn_c_try_cpp "$LINENO"; then :
4113
4114 else
4115   # Broken: fails on valid input.
4116 continue
4117 fi
4118 rm -f conftest.err conftest.i conftest.$ac_ext
4119
4120   # OK, works on sane cases.  Now check whether nonexistent headers
4121   # can be detected and how.
4122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h.  */
4124 #include <ac_nonexistent.h>
4125 _ACEOF
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4127   # Broken: success on invalid input.
4128 continue
4129 else
4130   # Passes both tests.
4131 ac_preproc_ok=:
4132 break
4133 fi
4134 rm -f conftest.err conftest.i conftest.$ac_ext
4135
4136 done
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.i conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then :
4140
4141 else
4142   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4144 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4145 See \`config.log' for more details" "$LINENO" 5; }
4146 fi
4147
4148 ac_ext=c
4149 ac_cpp='$CPP $CPPFLAGS'
4150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
4154
4155 # Look for a good sed
4156 # AC_PROG_SED was introduced in Autoconf 2.59b
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4158 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4159 if ${ac_cv_path_SED+:} false; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4163      for ac_i in 1 2 3 4 5 6 7; do
4164        ac_script="$ac_script$as_nl$ac_script"
4165      done
4166      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4167      { ac_script=; unset ac_script;}
4168      if test -z "$SED"; then
4169   ac_path_SED_found=false
4170   # Loop through the user's path and test for each of PROGNAME-LIST
4171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176     for ac_prog in sed gsed; do
4177     for ac_exec_ext in '' $ac_executable_extensions; do
4178       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4179       as_fn_executable_p "$ac_path_SED" || continue
4180 # Check for GNU ac_path_SED and select it if it is found.
4181   # Check for GNU $ac_path_SED
4182 case `"$ac_path_SED" --version 2>&1` in
4183 *GNU*)
4184   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4185 *)
4186   ac_count=0
4187   $as_echo_n 0123456789 >"conftest.in"
4188   while :
4189   do
4190     cat "conftest.in" "conftest.in" >"conftest.tmp"
4191     mv "conftest.tmp" "conftest.in"
4192     cp "conftest.in" "conftest.nl"
4193     $as_echo '' >> "conftest.nl"
4194     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4195     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4196     as_fn_arith $ac_count + 1 && ac_count=$as_val
4197     if test $ac_count -gt ${ac_path_SED_max-0}; then
4198       # Best one so far, save it but keep looking for a better one
4199       ac_cv_path_SED="$ac_path_SED"
4200       ac_path_SED_max=$ac_count
4201     fi
4202     # 10*(2^10) chars as input seems more than enough
4203     test $ac_count -gt 10 && break
4204   done
4205   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206 esac
4207
4208       $ac_path_SED_found && break 3
4209     done
4210   done
4211   done
4212 IFS=$as_save_IFS
4213   if test -z "$ac_cv_path_SED"; then
4214     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4215   fi
4216 else
4217   ac_cv_path_SED=$SED
4218 fi
4219
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4222 $as_echo "$ac_cv_path_SED" >&6; }
4223  SED="$ac_cv_path_SED"
4224   rm -f conftest.sed
4225
4226
4227 # Grab target_cpu, so we can use it in the Solaris pkginfo file
4228 # Make sure we can run config.sub.
4229 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4230   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4231
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4233 $as_echo_n "checking build system type... " >&6; }
4234 if ${ac_cv_build+:} false; then :
4235   $as_echo_n "(cached) " >&6
4236 else
4237   ac_build_alias=$build_alias
4238 test "x$ac_build_alias" = x &&
4239   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4240 test "x$ac_build_alias" = x &&
4241   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4242 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4243   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4244
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4247 $as_echo "$ac_cv_build" >&6; }
4248 case $ac_cv_build in
4249 *-*-*) ;;
4250 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4251 esac
4252 build=$ac_cv_build
4253 ac_save_IFS=$IFS; IFS='-'
4254 set x $ac_cv_build
4255 shift
4256 build_cpu=$1
4257 build_vendor=$2
4258 shift; shift
4259 # Remember, the first character of IFS is used to create $*,
4260 # except with old shells:
4261 build_os=$*
4262 IFS=$ac_save_IFS
4263 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4264
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4267 $as_echo_n "checking host system type... " >&6; }
4268 if ${ac_cv_host+:} false; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   if test "x$host_alias" = x; then
4272   ac_cv_host=$ac_cv_build
4273 else
4274   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4275     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4276 fi
4277
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4280 $as_echo "$ac_cv_host" >&6; }
4281 case $ac_cv_host in
4282 *-*-*) ;;
4283 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4284 esac
4285 host=$ac_cv_host
4286 ac_save_IFS=$IFS; IFS='-'
4287 set x $ac_cv_host
4288 shift
4289 host_cpu=$1
4290 host_vendor=$2
4291 shift; shift
4292 # Remember, the first character of IFS is used to create $*,
4293 # except with old shells:
4294 host_os=$*
4295 IFS=$ac_save_IFS
4296 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4297
4298
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4300 $as_echo_n "checking target system type... " >&6; }
4301 if ${ac_cv_target+:} false; then :
4302   $as_echo_n "(cached) " >&6
4303 else
4304   if test "x$target_alias" = x; then
4305   ac_cv_target=$ac_cv_host
4306 else
4307   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4308     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4309 fi
4310
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4313 $as_echo "$ac_cv_target" >&6; }
4314 case $ac_cv_target in
4315 *-*-*) ;;
4316 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4317 esac
4318 target=$ac_cv_target
4319 ac_save_IFS=$IFS; IFS='-'
4320 set x $ac_cv_target
4321 shift
4322 target_cpu=$1
4323 target_vendor=$2
4324 shift; shift
4325 # Remember, the first character of IFS is used to create $*,
4326 # except with old shells:
4327 target_os=$*
4328 IFS=$ac_save_IFS
4329 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4330
4331
4332 # The aliases save the names the user supplied, while $host etc.
4333 # will get canonicalized.
4334 test -n "$target_alias" &&
4335   test "$program_prefix$program_suffix$program_transform_name" = \
4336     NONENONEs,x,x, &&
4337   program_prefix=${target_alias}-
4338
4339 # Look for an extended grep
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4341 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4342 if ${ac_cv_path_GREP+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   if test -z "$GREP"; then
4346   ac_path_GREP_found=false
4347   # Loop through the user's path and test for each of PROGNAME-LIST
4348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350 do
4351   IFS=$as_save_IFS
4352   test -z "$as_dir" && as_dir=.
4353     for ac_prog in grep ggrep; do
4354     for ac_exec_ext in '' $ac_executable_extensions; do
4355       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4356       as_fn_executable_p "$ac_path_GREP" || continue
4357 # Check for GNU ac_path_GREP and select it if it is found.
4358   # Check for GNU $ac_path_GREP
4359 case `"$ac_path_GREP" --version 2>&1` in
4360 *GNU*)
4361   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4362 *)
4363   ac_count=0
4364   $as_echo_n 0123456789 >"conftest.in"
4365   while :
4366   do
4367     cat "conftest.in" "conftest.in" >"conftest.tmp"
4368     mv "conftest.tmp" "conftest.in"
4369     cp "conftest.in" "conftest.nl"
4370     $as_echo 'GREP' >> "conftest.nl"
4371     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373     as_fn_arith $ac_count + 1 && ac_count=$as_val
4374     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4375       # Best one so far, save it but keep looking for a better one
4376       ac_cv_path_GREP="$ac_path_GREP"
4377       ac_path_GREP_max=$ac_count
4378     fi
4379     # 10*(2^10) chars as input seems more than enough
4380     test $ac_count -gt 10 && break
4381   done
4382   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383 esac
4384
4385       $ac_path_GREP_found && break 3
4386     done
4387   done
4388   done
4389 IFS=$as_save_IFS
4390   if test -z "$ac_cv_path_GREP"; then
4391     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392   fi
4393 else
4394   ac_cv_path_GREP=$GREP
4395 fi
4396
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4399 $as_echo "$ac_cv_path_GREP" >&6; }
4400  GREP="$ac_cv_path_GREP"
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4404 $as_echo_n "checking for egrep... " >&6; }
4405 if ${ac_cv_path_EGREP+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4409    then ac_cv_path_EGREP="$GREP -E"
4410    else
4411      if test -z "$EGREP"; then
4412   ac_path_EGREP_found=false
4413   # Loop through the user's path and test for each of PROGNAME-LIST
4414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419     for ac_prog in egrep; do
4420     for ac_exec_ext in '' $ac_executable_extensions; do
4421       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4422       as_fn_executable_p "$ac_path_EGREP" || continue
4423 # Check for GNU ac_path_EGREP and select it if it is found.
4424   # Check for GNU $ac_path_EGREP
4425 case `"$ac_path_EGREP" --version 2>&1` in
4426 *GNU*)
4427   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4428 *)
4429   ac_count=0
4430   $as_echo_n 0123456789 >"conftest.in"
4431   while :
4432   do
4433     cat "conftest.in" "conftest.in" >"conftest.tmp"
4434     mv "conftest.tmp" "conftest.in"
4435     cp "conftest.in" "conftest.nl"
4436     $as_echo 'EGREP' >> "conftest.nl"
4437     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439     as_fn_arith $ac_count + 1 && ac_count=$as_val
4440     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4441       # Best one so far, save it but keep looking for a better one
4442       ac_cv_path_EGREP="$ac_path_EGREP"
4443       ac_path_EGREP_max=$ac_count
4444     fi
4445     # 10*(2^10) chars as input seems more than enough
4446     test $ac_count -gt 10 && break
4447   done
4448   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449 esac
4450
4451       $ac_path_EGREP_found && break 3
4452     done
4453   done
4454   done
4455 IFS=$as_save_IFS
4456   if test -z "$ac_cv_path_EGREP"; then
4457     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4458   fi
4459 else
4460   ac_cv_path_EGREP=$EGREP
4461 fi
4462
4463    fi
4464 fi
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4466 $as_echo "$ac_cv_path_EGREP" >&6; }
4467  EGREP="$ac_cv_path_EGREP"
4468
4469
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4472 $as_echo_n "checking whether ln -s works... " >&6; }
4473 LN_S=$as_ln_s
4474 if test "$LN_S" = "ln -s"; then
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4476 $as_echo "yes" >&6; }
4477 else
4478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4479 $as_echo "no, using $LN_S" >&6; }
4480 fi
4481
4482
4483 # Find a good install program.  We prefer a C program (faster),
4484 # so one script is as good as another.  But avoid the broken or
4485 # incompatible versions:
4486 # SysV /etc/install, /usr/sbin/install
4487 # SunOS /usr/etc/install
4488 # IRIX /sbin/install
4489 # AIX /bin/install
4490 # AmigaOS /C/install, which installs bootblocks on floppy discs
4491 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4492 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4493 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4494 # OS/2's system install, which has a completely different semantic
4495 # ./install, which can be erroneously created by make from ./install.sh.
4496 # Reject install programs that cannot install multiple files.
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4498 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4499 if test -z "$INSTALL"; then
4500 if ${ac_cv_path_install+:} false; then :
4501   $as_echo_n "(cached) " >&6
4502 else
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508     # Account for people who put trailing slashes in PATH elements.
4509 case $as_dir/ in #((
4510   ./ | .// | /[cC]/* | \
4511   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4512   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4513   /usr/ucb/* ) ;;
4514   *)
4515     # OSF1 and SCO ODT 3.0 have their own names for install.
4516     # Don't use installbsd from OSF since it installs stuff as root
4517     # by default.
4518     for ac_prog in ginstall scoinst install; do
4519       for ac_exec_ext in '' $ac_executable_extensions; do
4520         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4521           if test $ac_prog = install &&
4522             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4523             # AIX install.  It has an incompatible calling convention.
4524             :
4525           elif test $ac_prog = install &&
4526             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4527             # program-specific install script used by HP pwplus--don't use.
4528             :
4529           else
4530             rm -rf conftest.one conftest.two conftest.dir
4531             echo one > conftest.one
4532             echo two > conftest.two
4533             mkdir conftest.dir
4534             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4535               test -s conftest.one && test -s conftest.two &&
4536               test -s conftest.dir/conftest.one &&
4537               test -s conftest.dir/conftest.two
4538             then
4539               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4540               break 3
4541             fi
4542           fi
4543         fi
4544       done
4545     done
4546     ;;
4547 esac
4548
4549   done
4550 IFS=$as_save_IFS
4551
4552 rm -rf conftest.one conftest.two conftest.dir
4553
4554 fi
4555   if test "${ac_cv_path_install+set}" = set; then
4556     INSTALL=$ac_cv_path_install
4557   else
4558     # As a last resort, use the slow shell script.  Don't cache a
4559     # value for INSTALL within a source directory, because that will
4560     # break other packages using the cache if that directory is
4561     # removed, or if the value is a relative name.
4562     INSTALL=$ac_install_sh
4563   fi
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4566 $as_echo "$INSTALL" >&6; }
4567
4568 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4569 # It thinks the first close brace ends the variable substitution.
4570 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4571
4572 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4573
4574 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4575
4576 # If $INSTALL is relative path to our fallback install-sh, then convert
4577 # to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool
4578 # may try to use it from a changed working directory.
4579 if test "$INSTALL" = "build/install-sh -c"; then
4580   INSTALL="$abs_srcdir/$INSTALL"
4581 fi
4582
4583 if test -z "$MKDIR"; then
4584   MKDIR="$INSTALL -d"
4585 fi
4586
4587
4588 # ==== Libraries, for which we may have source to build ======================
4589
4590
4591 APR_VER_REGEXES="0\.9\.[7-9] 0\.9\.[12][0-9] 1\. 2\."
4592
4593
4594   APR_WANTED_REGEXES="$APR_VER_REGEXES"
4595
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5
4597 $as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;}
4598
4599
4600   apr_found="no"
4601
4602   if test "$ac_cv_emxos2" = "yes"; then
4603     # Scripts don't pass test -x on OS/2
4604     TEST_X="test -f"
4605   else
4606     TEST_X="test -x"
4607   fi
4608
4609   acceptable_majors="1 0"
4610
4611   apr_temp_acceptable_apr_config=""
4612   for apr_temp_major in $acceptable_majors
4613   do
4614     case $apr_temp_major in
4615       0)
4616       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4617       ;;
4618       *)
4619       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4620       ;;
4621     esac
4622   done
4623
4624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4625 $as_echo_n "checking for APR... " >&6; }
4626
4627 # Check whether --with-apr was given.
4628 if test "${with_apr+set}" = set; then :
4629   withval=$with_apr;
4630     if test "$withval" = "no" || test "$withval" = "yes"; then
4631       as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4632     fi
4633
4634     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4635     do
4636       for lookdir in "$withval/bin" "$withval"
4637       do
4638         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4639           apr_found="yes"
4640           apr_config="$lookdir/$apr_temp_apr_config_file"
4641           break 2
4642         fi
4643       done
4644     done
4645
4646     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4647       apr_found="yes"
4648       apr_config="$withval"
4649     fi
4650
4651             if test "$apr_found" != "yes"; then
4652       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
4653     fi
4654
4655 else
4656
4657         if test -d """"; then
4658       apr_temp_abs_srcdir="`cd "" && pwd`"
4659       apr_found="reconfig"
4660       apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`"
4661       case $apr_bundled_major in
4662         "")
4663           as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4664         ;;
4665         0)
4666           apr_temp_apr_config_file="apr-config"
4667         ;;
4668         *)
4669           apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4670         ;;
4671       esac
4672       if test -n """"; then
4673         apr_config="""/$apr_temp_apr_config_file"
4674       else
4675         apr_config="""/$apr_temp_apr_config_file"
4676       fi
4677     fi
4678     if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
4679       for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4680       do
4681         if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4682           apr_found="yes"
4683           apr_config="$apr_temp_apr_config_file"
4684           break
4685         else
4686                     for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4687             if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4688               apr_found="yes"
4689               apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4690               break 2
4691             fi
4692           done
4693         fi
4694       done
4695     fi
4696
4697 fi
4698
4699
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4701 $as_echo "$apr_found" >&6; }
4702
4703
4704   if test $apr_found = "no"; then
4705     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5
4706 $as_echo "$as_me: WARNING: APR not found" >&2;}
4707
4708   echo "The Apache Portable Runtime (APR) library cannot be found."
4709   echo "Please install APR on this system and configure Subversion"
4710   echo "with the appropriate --with-apr option."
4711   echo ""
4712   echo "You probably need to do something similar with the Apache"
4713   echo "Portable Runtime Utility (APRUTIL) library and then configure"
4714   echo "Subversion with both the --with-apr and --with-apr-util options."
4715   echo ""
4716   as_fn_error $? "no suitable APR found" "$LINENO" 5
4717
4718   fi
4719
4720   if test $apr_found = "reconfig"; then
4721     as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5
4722   fi
4723
4724
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5
4726 $as_echo_n "checking APR version... " >&6; }
4727   apr_version="`$apr_config --version`"
4728   if test $? -ne 0; then
4729     as_fn_error $? "apr-config --version failed" "$LINENO" 5
4730   fi
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5
4732 $as_echo "$apr_version" >&6; }
4733
4734   APR_WANTED_REGEX_MATCH=0
4735   for apr_wanted_regex in $APR_WANTED_REGEXES; do
4736     if test `expr $apr_version : $apr_wanted_regex` -ne 0; then
4737       APR_WANTED_REGEX_MATCH=1
4738       break
4739     fi
4740   done
4741
4742   if test $APR_WANTED_REGEX_MATCH -eq 0; then
4743     echo "wanted regexes are $APR_WANTED_REGEXES"
4744     as_fn_error $? "invalid apr version found" "$LINENO" 5
4745   fi
4746
4747
4748   CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`"
4749   if test $? -ne 0; then
4750     as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5
4751   fi
4752
4753   CFLAGS="$CFLAGS `$apr_config --cflags`"
4754   if test $? -ne 0; then
4755     as_fn_error $? "apr-config --cflags failed" "$LINENO" 5
4756   fi
4757
4758   apr_ldflags="`$apr_config --ldflags`"
4759   if test $? -ne 0; then
4760     as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5
4761   fi
4762   LDFLAGS="$LDFLAGS `
4763   input_flags="$apr_ldflags"
4764   output_flags=""
4765   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4766   for flag in $input_flags; do
4767     filter="no"
4768     for dir in $filtered_dirs; do
4769       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4770         filter="yes"
4771         break
4772       fi
4773     done
4774     if test "$filter" = "no"; then
4775       output_flags="$output_flags $flag"
4776     fi
4777   done
4778   if test -n "$output_flags"; then
4779     printf "%s" "${output_flags# }"
4780   fi
4781 `"
4782
4783   SVN_APR_INCLUDES="`$apr_config --includes`"
4784   if test $? -ne 0; then
4785     as_fn_error $? "apr-config --includes failed" "$LINENO" 5
4786   fi
4787
4788   if test "$enable_all_static" = "yes"; then
4789     SVN_APR_LIBS="`$apr_config --link-ld --libs`"
4790     if test $? -ne 0; then
4791       as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5
4792     fi
4793   else
4794     SVN_APR_LIBS="`$apr_config --link-ld`"
4795     if test $? -ne 0; then
4796       as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5
4797     fi
4798   fi
4799   SVN_APR_LIBS="`
4800   input_flags="$SVN_APR_LIBS"
4801   output_flags=""
4802   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
4803   for flag in $input_flags; do
4804     filter="no"
4805     for dir in $filtered_dirs; do
4806       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
4807         filter="yes"
4808         break
4809       fi
4810     done
4811     if test "$filter" = "no"; then
4812       output_flags="$output_flags $flag"
4813     fi
4814   done
4815   if test -n "$output_flags"; then
4816     printf "%s" "${output_flags# }"
4817   fi
4818 `"
4819
4820   SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
4821   if test $? -ne 0; then
4822     as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5
4823   fi
4824
4825   SVN_APR_CONFIG="$apr_config"
4826
4827
4828
4829
4830
4831
4832 if test `expr $apr_version : 2` -ne 0; then
4833       svn_lib_ver=2
4834     apu_config=$apr_config
4835
4836   SVN_APRUTIL_CONFIG="$apu_config"
4837
4838
4839 else
4840   svn_lib_ver=0
4841   APU_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\."
4842
4843   APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES"
4844
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5
4846 $as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;}
4847
4848
4849   apu_found="no"
4850
4851   if test "$ac_cv_emxos2" = "yes"; then
4852     # Scripts don't pass test -x on OS/2
4853     TEST_X="test -f"
4854   else
4855     TEST_X="test -x"
4856   fi
4857
4858   acceptable_majors="1 0"
4859
4860   apu_temp_acceptable_apu_config=""
4861   for apu_temp_major in $acceptable_majors
4862   do
4863     case $apu_temp_major in
4864       0)
4865       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4866       ;;
4867       *)
4868       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4869       ;;
4870     esac
4871   done
4872
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4874 $as_echo_n "checking for APR-util... " >&6; }
4875
4876 # Check whether --with-apr-util was given.
4877 if test "${with_apr_util+set}" = set; then :
4878   withval=$with_apr_util;
4879     if test "$withval" = "no" || test "$withval" = "yes"; then
4880       as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4881     fi
4882
4883     for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4884     do
4885       for lookdir in "$withval/bin" "$withval"
4886       do
4887         if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4888           apu_found="yes"
4889           apu_config="$lookdir/$apu_temp_apu_config_file"
4890           break 2
4891         fi
4892       done
4893     done
4894
4895     if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4896       apu_found="yes"
4897       apu_config="$withval"
4898     fi
4899
4900             if test "$apu_found" != "yes"; then
4901       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
4902     fi
4903
4904 else
4905
4906         if test -d """"; then
4907       apu_temp_abs_srcdir="`cd "" && pwd`"
4908       apu_found="reconfig"
4909       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`"
4910       case $apu_bundled_major in
4911         "")
4912           as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4913         ;;
4914         0)
4915           apu_temp_apu_config_file="apu-config"
4916         ;;
4917         *)
4918           apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4919         ;;
4920       esac
4921       if test -n """"; then
4922         apu_config="""/$apu_temp_apu_config_file"
4923       else
4924         apu_config="""/$apu_temp_apu_config_file"
4925       fi
4926     fi
4927     if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
4928       for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4929       do
4930         if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4931           apu_found="yes"
4932           apu_config="$apu_temp_apu_config_file"
4933           break
4934         else
4935                     for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
4936             if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4937               apu_found="yes"
4938               apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4939               break 2
4940             fi
4941           done
4942         fi
4943       done
4944     fi
4945
4946 fi
4947
4948
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4950 $as_echo "$apu_found" >&6; }
4951
4952
4953   if test $apu_found = "no"; then
4954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5
4955 $as_echo "$as_me: WARNING: APRUTIL not found" >&2;}
4956
4957   echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found."
4958   echo "Install APRUTIL on this system and configure Subversion with the"
4959   echo " appropriate --with-apr-util option."
4960   echo ""
4961   as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5
4962
4963   fi
4964
4965   if test $apu_found = "reconfig"; then
4966     as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5
4967   fi
4968
4969
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5
4971 $as_echo_n "checking APRUTIL version... " >&6; }
4972   apu_version="`$apu_config --version`"
4973   if test $? -ne 0; then
4974     # This is a hack as suggested by Ben Collins-Sussman.  It can be
4975     # removed after apache 2.0.44 has been released.  (The apu-config
4976     # shipped in 2.0.43 contains a correct version number, but
4977     # stupidly doesn't understand the --version switch.)
4978     apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'`
4979     #AC_MSG_ERROR([
4980     #    apu-config --version failed.
4981     #    Your apu-config doesn't support the --version switch, please upgrade
4982     #    to APR-UTIL more recent than 2002-Nov-05.])
4983   fi
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5
4985 $as_echo "$apu_version" >&6; }
4986
4987   APU_WANTED_REGEX_MATCH=0
4988   for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do
4989     if test `expr $apu_version : $apu_wanted_regex` -ne 0; then
4990       APU_WANTED_REGEX_MATCH=1
4991       break
4992     fi
4993   done
4994
4995   if test $APU_WANTED_REGEX_MATCH -eq 0; then
4996     echo "wanted regexes are $APRUTIL_WANTED_REGEXES"
4997     as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5
4998   fi
4999
5000
5001   apu_ldflags="`$apu_config --ldflags`"
5002   if test $? -ne 0; then
5003     as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5
5004   fi
5005   LDFLAGS="$LDFLAGS `
5006   input_flags="$apu_ldflags"
5007   output_flags=""
5008   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5009   for flag in $input_flags; do
5010     filter="no"
5011     for dir in $filtered_dirs; do
5012       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5013         filter="yes"
5014         break
5015       fi
5016     done
5017     if test "$filter" = "no"; then
5018       output_flags="$output_flags $flag"
5019     fi
5020   done
5021   if test -n "$output_flags"; then
5022     printf "%s" "${output_flags# }"
5023   fi
5024 `"
5025
5026   SVN_APRUTIL_INCLUDES="`$apu_config --includes`"
5027   if test $? -ne 0; then
5028     as_fn_error $? "apu-config --includes failed" "$LINENO" 5
5029   fi
5030
5031   if test "$enable_all_static" = "yes"; then
5032     SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`"
5033     if test $? -ne 0; then
5034       as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5
5035     fi
5036   else
5037     SVN_APRUTIL_LIBS="`$apu_config --link-ld`"
5038     if test $? -ne 0; then
5039       as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5
5040     fi
5041   fi
5042   SVN_APRUTIL_LIBS="`
5043   input_flags="$SVN_APRUTIL_LIBS"
5044   output_flags=""
5045   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5046   for flag in $input_flags; do
5047     filter="no"
5048     for dir in $filtered_dirs; do
5049       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5050         filter="yes"
5051         break
5052       fi
5053     done
5054     if test "$filter" = "no"; then
5055       output_flags="$output_flags $flag"
5056     fi
5057   done
5058   if test -n "$output_flags"; then
5059     printf "%s" "${output_flags# }"
5060   fi
5061 `"
5062
5063
5064   SVN_APRUTIL_CONFIG="$apu_config"
5065
5066
5067
5068     SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`"
5069   if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then
5070
5071 $as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h
5072
5073   fi
5074
5075 fi
5076 SVN_LT_SOVERSION="-version-info $svn_lib_ver"
5077
5078
5079 cat >>confdefs.h <<_ACEOF
5080 #define SVN_SOVERSION $svn_lib_ver
5081 _ACEOF
5082
5083
5084 # Extract the first word of "pkg-config", so it can be a program name with args.
5085 set dummy pkg-config; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   case $PKG_CONFIG in
5092   [\\/]* | ?:[\\/]*)
5093   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5094   ;;
5095   *)
5096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110
5111   ;;
5112 esac
5113 fi
5114 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5115 if test -n "$PKG_CONFIG"; then
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5117 $as_echo "$PKG_CONFIG" >&6; }
5118 else
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124
5125
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5127 $as_echo_n "checking for ANSI C header files... " >&6; }
5128 if ${ac_cv_header_stdc+:} false; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h.  */
5133 #include <stdlib.h>
5134 #include <stdarg.h>
5135 #include <string.h>
5136 #include <float.h>
5137
5138 int
5139 main ()
5140 {
5141
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 if ac_fn_c_try_compile "$LINENO"; then :
5147   ac_cv_header_stdc=yes
5148 else
5149   ac_cv_header_stdc=no
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152
5153 if test $ac_cv_header_stdc = yes; then
5154   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #include <string.h>
5158
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161   $EGREP "memchr" >/dev/null 2>&1; then :
5162
5163 else
5164   ac_cv_header_stdc=no
5165 fi
5166 rm -f conftest*
5167
5168 fi
5169
5170 if test $ac_cv_header_stdc = yes; then
5171   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h.  */
5174 #include <stdlib.h>
5175
5176 _ACEOF
5177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5178   $EGREP "free" >/dev/null 2>&1; then :
5179
5180 else
5181   ac_cv_header_stdc=no
5182 fi
5183 rm -f conftest*
5184
5185 fi
5186
5187 if test $ac_cv_header_stdc = yes; then
5188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5189   if test "$cross_compiling" = yes; then :
5190   :
5191 else
5192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h.  */
5194 #include <ctype.h>
5195 #include <stdlib.h>
5196 #if ((' ' & 0x0FF) == 0x020)
5197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5199 #else
5200 # define ISLOWER(c) \
5201                    (('a' <= (c) && (c) <= 'i') \
5202                      || ('j' <= (c) && (c) <= 'r') \
5203                      || ('s' <= (c) && (c) <= 'z'))
5204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5205 #endif
5206
5207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5208 int
5209 main ()
5210 {
5211   int i;
5212   for (i = 0; i < 256; i++)
5213     if (XOR (islower (i), ISLOWER (i))
5214         || toupper (i) != TOUPPER (i))
5215       return 2;
5216   return 0;
5217 }
5218 _ACEOF
5219 if ac_fn_c_try_run "$LINENO"; then :
5220
5221 else
5222   ac_cv_header_stdc=no
5223 fi
5224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5225   conftest.$ac_objext conftest.beam conftest.$ac_ext
5226 fi
5227
5228 fi
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5231 $as_echo "$ac_cv_header_stdc" >&6; }
5232 if test $ac_cv_header_stdc = yes; then
5233
5234 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5235
5236 fi
5237
5238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5239 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5240                   inttypes.h stdint.h unistd.h
5241 do :
5242   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5244 "
5245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5246   cat >>confdefs.h <<_ACEOF
5247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5248 _ACEOF
5249
5250 fi
5251
5252 done
5253
5254
5255
5256   serf_found=no
5257   serf_required=no
5258   serf_skip=no
5259
5260   serf_check_major="1"
5261   serf_check_minor="2"
5262   serf_check_patch="1"
5263   serf_check_version="1.2.1"
5264
5265
5266 # Check whether --with-serf was given.
5267 if test "${with_serf+set}" = set; then :
5268   withval=$with_serf;
5269     if test "$withval" = "yes" ; then
5270       serf_required=yes
5271     elif test "$withval" = "no" ; then
5272       serf_skip=yes
5273     else
5274
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5
5276 $as_echo "$as_me: serf library configuration via prefix" >&6;}
5277   serf_required=yes
5278   serf_prefix=$withval
5279   for serf_major in serf-2 serf-1; do
5280     if ! test -d $serf_prefix/include/$serf_major; then continue; fi
5281     save_cppflags="$CPPFLAGS"
5282     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major"
5283     for ac_header in serf.h
5284 do :
5285   ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default"
5286 if test "x$ac_cv_header_serf_h" = xyes; then :
5287   cat >>confdefs.h <<_ACEOF
5288 #define HAVE_SERF_H 1
5289 _ACEOF
5290
5291       save_ldflags="$LDFLAGS"
5292       LDFLAGS="$LDFLAGS `
5293   input_flags="-L$serf_prefix/lib"
5294   output_flags=""
5295   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5296   for flag in $input_flags; do
5297     filter="no"
5298     for dir in $filtered_dirs; do
5299       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5300         filter="yes"
5301         break
5302       fi
5303     done
5304     if test "$filter" = "no"; then
5305       output_flags="$output_flags $flag"
5306     fi
5307   done
5308   if test -n "$output_flags"; then
5309     printf "%s" "${output_flags# }"
5310   fi
5311 `"
5312       as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh`
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5
5314 $as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; }
5315 if eval \${$as_ac_Lib+:} false; then :
5316   $as_echo_n "(cached) " >&6
5317 else
5318   ac_check_lib_save_LIBS=$LIBS
5319 LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS"
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h.  */
5322
5323 /* Override any GCC internal prototype to avoid an error.
5324    Use char because int might match the return type of a GCC
5325    builtin and then its argument prototype would still apply.  */
5326 #ifdef __cplusplus
5327 extern "C"
5328 #endif
5329 char serf_context_create ();
5330 int
5331 main ()
5332 {
5333 return serf_context_create ();
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_link "$LINENO"; then :
5339   eval "$as_ac_Lib=yes"
5340 else
5341   eval "$as_ac_Lib=no"
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext \
5344     conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5346 fi
5347 eval ac_res=\$$as_ac_Lib
5348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5349 $as_echo "$ac_res" >&6; }
5350 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5351
5352         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h.  */
5354
5355 #include <stdlib.h>
5356 #include "serf.h"
5357
5358 int
5359 main ()
5360 {
5361
5362 #if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch)
5363 #error Serf version too old: need $serf_check_version
5364 #endif
5365
5366   ;
5367   return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371   serf_found=yes
5372 else
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5374 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5375       serf_found=no
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 fi
5379
5380     LDFLAGS="$save_ldflags"
5381 fi
5382
5383 done
5384
5385     CPPFLAGS="$save_cppflags"
5386     test $serf_found = yes && break
5387   done
5388
5389   if test $serf_found = "yes"; then
5390     SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major"
5391     if test -e "$serf_prefix/lib/lib$serf_major.la"; then
5392       SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la"
5393     else
5394       SVN_SERF_LIBS="-l$serf_major"
5395       LDFLAGS="$LDFLAGS `
5396   input_flags="-L$serf_prefix/lib"
5397   output_flags=""
5398   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
5399   for flag in $input_flags; do
5400     filter="no"
5401     for dir in $filtered_dirs; do
5402       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
5403         filter="yes"
5404         break
5405       fi
5406     done
5407     if test "$filter" = "no"; then
5408       output_flags="$output_flags $flag"
5409     fi
5410   done
5411   if test -n "$output_flags"; then
5412     printf "%s" "${output_flags# }"
5413   fi
5414 `"
5415     fi
5416   fi
5417
5418     fi
5419
5420 fi
5421
5422
5423   if test "$serf_skip" = "no" ; then
5424     if test "$serf_found" = "no" ; then
5425
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5
5427 $as_echo "$as_me: serf library configuration via pkg-config" >&6;}
5428   if test -n "$PKG_CONFIG"; then
5429     for serf_major in serf-2 serf-1; do
5430       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5
5431 $as_echo_n "checking for $serf_major library... " >&6; }
5432       if $PKG_CONFIG $serf_major --exists; then
5433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5435         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5
5436 $as_echo_n "checking serf library version... " >&6; }
5437         SERF_VERSION=`$PKG_CONFIG $serf_major --modversion`
5438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5
5439 $as_echo "$SERF_VERSION" >&6; }
5440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5
5441 $as_echo_n "checking serf version is suitable... " >&6; }
5442         if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then
5443           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5444 $as_echo "yes" >&6; }
5445           serf_found=yes
5446           SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'`
5447           SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs`
5448           break
5449         else
5450           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5
5453 $as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;}
5454         fi
5455       else
5456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458       fi
5459     done
5460   fi
5461
5462     fi
5463
5464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5
5465 $as_echo_n "checking was serf enabled... " >&6; }
5466     if test "$serf_found" = "yes"; then
5467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468 $as_echo "yes" >&6; }
5469     else
5470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5472
5473   echo ""
5474   echo "An appropriate version of serf could not be found, so libsvn_ra_serf"
5475   echo "will not be built.  If you want to build libsvn_ra_serf, please"
5476   echo "install serf $serf_check_version or newer."
5477   echo ""
5478
5479       if test "$serf_required" = "yes"; then
5480         as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5
5481       fi
5482     fi
5483   fi
5484
5485   svn_lib_serf=$serf_found
5486
5487
5488
5489
5490
5491 if test "$svn_lib_serf" = "yes"; then
5492
5493 $as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h
5494
5495 fi
5496
5497
5498   apr_memcache_found=no
5499
5500
5501 # Check whether --with-apr_memcache was given.
5502 if test "${with_apr_memcache+set}" = set; then :
5503   withval=$with_apr_memcache;
5504     if test "$withval" = "yes" ; then
5505       as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5
5506     else
5507       { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5
5508 $as_echo "$as_me: looking for separate apr_memcache package" >&6;}
5509       apr_memcache_prefix=$withval
5510       save_cppflags="$CPPFLAGS"
5511       CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0"
5512       ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5513 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5514
5515         save_ldflags="$LDFLAGS"
5516         LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib"
5517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5
5518 $as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; }
5519 if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   ac_check_lib_save_LIBS=$LIBS
5523 LIBS="-lapr_memcache  $LIBS"
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526
5527 /* Override any GCC internal prototype to avoid an error.
5528    Use char because int might match the return type of a GCC
5529    builtin and then its argument prototype would still apply.  */
5530 #ifdef __cplusplus
5531 extern "C"
5532 #endif
5533 char apr_memcache_create ();
5534 int
5535 main ()
5536 {
5537 return apr_memcache_create ();
5538   ;
5539   return 0;
5540 }
5541 _ACEOF
5542 if ac_fn_c_try_link "$LINENO"; then :
5543   ac_cv_lib_apr_memcache_apr_memcache_create=yes
5544 else
5545   ac_cv_lib_apr_memcache_apr_memcache_create=no
5546 fi
5547 rm -f core conftest.err conftest.$ac_objext \
5548     conftest$ac_exeext conftest.$ac_ext
5549 LIBS=$ac_check_lib_save_LIBS
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
5552 $as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; }
5553 if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then :
5554   apr_memcache_found="standalone"
5555 fi
5556
5557         LDFLAGS="$save_ldflags"
5558 fi
5559
5560
5561       CPPFLAGS="$save_cppflags"
5562     fi
5563
5564 else
5565
5566     { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5
5567 $as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;}
5568     save_cppflags="$CPPFLAGS"
5569     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES"
5570     ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default"
5571 if test "x$ac_cv_header_apr_memcache_h" = xyes; then :
5572
5573       save_ldflags="$LDFLAGS"
5574       LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS"
5575       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5
5576 $as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; }
5577 if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   ac_check_lib_save_LIBS=$LIBS
5581 LIBS="-laprutil-1  $LIBS"
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h.  */
5584
5585 /* Override any GCC internal prototype to avoid an error.
5586    Use char because int might match the return type of a GCC
5587    builtin and then its argument prototype would still apply.  */
5588 #ifdef __cplusplus
5589 extern "C"
5590 #endif
5591 char apr_memcache_create ();
5592 int
5593 main ()
5594 {
5595 return apr_memcache_create ();
5596   ;
5597   return 0;
5598 }
5599 _ACEOF
5600 if ac_fn_c_try_link "$LINENO"; then :
5601   ac_cv_lib_aprutil_1_apr_memcache_create=yes
5602 else
5603   ac_cv_lib_aprutil_1_apr_memcache_create=no
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext \
5606     conftest$ac_exeext conftest.$ac_ext
5607 LIBS=$ac_check_lib_save_LIBS
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5
5610 $as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; }
5611 if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then :
5612   apr_memcache_found="aprutil"
5613 fi
5614
5615       LDFLAGS="$save_ldflags"
5616 fi
5617
5618
5619     CPPFLAGS="$save_cppflags"
5620
5621 fi
5622
5623
5624
5625   if test $apr_memcache_found = "standalone"; then
5626     SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0"
5627     SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la"
5628     svn_lib_apr_memcache=yes
5629   elif test $apr_memcache_found = "aprutil"; then
5630     SVN_APR_MEMCACHE_INCLUDES=""
5631     SVN_APR_MEMCACHE_LIBS=""
5632     svn_lib_apr_memcache=yes
5633   elif test $apr_memcache_found = "reconfig"; then
5634     svn_lib_apr_memcache=yes
5635   else
5636     svn_lib_apr_memcache=no
5637   fi
5638
5639
5640
5641
5642
5643 if test "$svn_lib_apr_memcache" = "yes"; then
5644
5645 $as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h
5646
5647 fi
5648
5649
5650
5651
5652
5653 HTTPD_WANTED_MMN="20020903"
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
5656 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
5657
5658 # Check whether --with-apxs was given.
5659 if test "${with_apxs+set}" = set; then :
5660   withval=$with_apxs;
5661     if test "$withval" = "yes"; then
5662       APXS=apxs
5663     else
5664       APXS="$withval"
5665     fi
5666     APXS_EXPLICIT=1
5667
5668 fi
5669
5670
5671 if test -z "$APXS"; then
5672   for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
5673     if test -f "$i/apxs2"; then
5674       APXS="$i/apxs2"
5675       break
5676     fi
5677     if test -f "$i/apxs"; then
5678       APXS="$i/apxs"
5679       break
5680     fi
5681   done
5682 fi
5683
5684 if test -n "$APXS" && test "$APXS" != "no"; then
5685     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
5686     if test -r $APXS_INCLUDE/mod_dav.h; then
5687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5
5688 $as_echo "found at $APXS" >&6; }
5689
5690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5
5691 $as_echo_n "checking httpd version... " >&6; }
5692         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h.  */
5694
5695 #include "$APXS_INCLUDE/ap_mmn.h"
5696 #if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0)
5697 VERSION_OKAY
5698 #endif
5699 _ACEOF
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701   $EGREP "VERSION_OKAY" >/dev/null 2>&1; then :
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5
5703 $as_echo "recent enough" >&6; }
5704 else
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&5
5706 $as_echo "apache too old:  mmn must be at least $HTTPD_WANTED_MMN" >&6; }
5707          if test "$APXS_EXPLICIT" != ""; then
5708              as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5
5709          fi
5710          APXS=""
5711
5712 fi
5713 rm -f conftest*
5714
5715
5716     elif test "$APXS_EXPLICIT" != ""; then
5717         as_fn_error $? "no - APXS refers to an old version of Apache
5718                       Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5
5719     else
5720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5
5721 $as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; }
5722         APXS=""
5723     fi
5724 else
5725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729 if test -n "$APXS" && test "$APXS" != "no"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5
5731 $as_echo_n "checking whether Apache version is compatible with APR version... " >&6; }
5732   apr_major_version="${apr_version%%.*}"
5733   case "$apr_major_version" in
5734     0)
5735       apache_minor_version_wanted_regex="0"
5736       ;;
5737     1)
5738       apache_minor_version_wanted_regex="[1-5]"
5739       ;;
5740     2)
5741       apache_minor_version_wanted_regex="[3-5]"
5742       ;;
5743     *)
5744       as_fn_error $? "unknown APR version" "$LINENO" 5
5745       ;;
5746   esac
5747   old_CPPFLAGS="$CPPFLAGS"
5748   CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h.  */
5751
5752 #include "$APXS_INCLUDE/ap_release.h"
5753 apache_minor_version=AP_SERVER_MINORVERSION
5754 _ACEOF
5755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5756   $EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then :
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758 $as_echo "yes" >&6; }
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762                 as_fn_error $? "Apache version incompatible with APR version" "$LINENO" 5
5763 fi
5764 rm -f conftest*
5765
5766   CPPFLAGS="$old_CPPFLAGS"
5767 fi
5768
5769 # check for some busted versions of mod_dav
5770 # in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are
5771 # troublesome for Subversion:
5772 # PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
5773 # PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306
5774 # PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397
5775 if test -n "$APXS" && test "$APXS" != "no"; then
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5
5777 $as_echo_n "checking mod_dav version... " >&6; }
5778   old_CPPFLAGS="$CPPFLAGS"
5779   CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
5780   blacklisted_versions_regex="\"2\" \"\.\" (\"2\" \"\.\" \"25\"|\"4\" \"\.\" \"[56]\")"
5781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h.  */
5783
5784 #include "$APXS_INCLUDE/ap_release.h"
5785 apache_version=AP_SERVER_BASEREVISION
5786 _ACEOF
5787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5788   $EGREP "apache_version= *$blacklisted_versions_regex" >/dev/null 2>&1; then :
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5790 $as_echo "broken" >&6; }
5791                 as_fn_error $? "Apache httpd version includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5
5792 else
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5
5794 $as_echo "acceptable" >&6; }
5795 fi
5796 rm -f conftest*
5797
5798   CPPFLAGS="$old_CPPFLAGS"
5799 fi
5800
5801
5802 # Check whether --with-apache-libexecdir was given.
5803 if test "${with_apache_libexecdir+set}" = set; then :
5804   withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval"
5805 else
5806   APACHE_LIBEXECDIR='no'
5807 fi
5808
5809
5810 INSTALL_APACHE_MODS=false
5811 if test -n "$APXS" && test "$APXS" != "no"; then
5812     APXS_CC="`$APXS -q CC`"
5813     APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
5814
5815     if test "$APACHE_LIBEXECDIR" = 'no'; then
5816         APACHE_LIBEXECDIR="$libexecdir"
5817     elif test "$APACHE_LIBEXECDIR" = 'yes'; then
5818         APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
5819     fi
5820
5821     BUILD_APACHE_RULE=apache-mod
5822     INSTALL_APACHE_RULE=install-mods-shared
5823     INSTALL_APACHE_MODS=true
5824     HTTPD="`$APXS -q sbindir`/`$APXS -q PROGNAME`"
5825     if ! test -e $HTTPD ; then
5826       HTTPD="`$APXS -q bindir`/`$APXS -q PROGNAME`"
5827     fi
5828     HTTPD_VERSION="`$HTTPD -v | $SED -e 's@^.*/\([0-9.]*\)\(.*$\)@\1@ ; 1q'`"
5829     # Check whether --enable-broken-httpd-auth was given.
5830 if test "${enable_broken_httpd_auth+set}" = set; then :
5831   enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval
5832 else
5833   broken_httpd_auth=no
5834 fi
5835
5836     if test "$enable_broken_httpd_auth" = "yes"; then
5837       { $as_echo "$as_me:${as_lineno-$LINENO}: Building with broken httpd auth" >&5
5838 $as_echo "$as_me: Building with broken httpd auth" >&6;}
5839
5840 $as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h
5841
5842     fi
5843
5844     case $host in
5845       *-*-cygwin*)
5846         APACHE_LDFLAGS="-shrext .so"
5847         ;;
5848     esac
5849 elif test x"$APXS" != x"no"; then
5850     echo "=================================================================="
5851     echo "WARNING: skipping the build of mod_dav_svn"
5852     echo "         try using --with-apxs"
5853     echo "=================================================================="
5854 fi
5855
5856
5857
5858
5859
5860
5861
5862
5863 # there aren't any flags that interest us ...
5864 #if test -n "$APXS" && test "$APXS" != "no"; then
5865 #  CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`"
5866 #fi
5867
5868 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
5869   echo "=================================================================="
5870   echo "WARNING: You have chosen to compile Subversion with a different"
5871   echo "         compiler than the one used to compile Apache."
5872   echo ""
5873   echo "    Current compiler:      $CC"
5874   echo "   Apache's compiler:      $APXS_CC"
5875   echo ""
5876   echo "This could cause some problems."
5877   echo "=================================================================="
5878 fi
5879
5880
5881
5882 SQLITE_MINIMUM_VER="3.7.12"
5883 SQLITE_RECOMMENDED_VER="3.7.15.1"
5884 SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip"
5885
5886
5887   SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}"
5888   SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}"
5889   SQLITE_URL="${SQLITE_URL}"
5890   SQLITE_PKGNAME="sqlite3"
5891
5892
5893
5894   version_string="$SQLITE_MINIMUM_VER"
5895
5896   major=`expr $version_string : '\([0-9]*\)'`
5897   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
5898   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5899   if test -z "$micro"; then
5900     micro=0
5901   fi
5902   sqlite_min_ver_num=`expr $major \* 1000000 \
5903         \+ $minor \* 1000 \
5904         \+ $micro`
5905
5906
5907
5908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5
5909 $as_echo "$as_me: checking sqlite library" >&6;}
5910
5911
5912 # Check whether --with-sqlite was given.
5913 if test "${with_sqlite+set}" = set; then :
5914   withval=$with_sqlite;
5915     if test "$withval" = "yes" ; then
5916       as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5
5917     else
5918       sqlite_dir="$withval"
5919     fi
5920
5921     if test -d $sqlite_dir; then
5922
5923   if test -z "$sqlite_dir"; then
5924     sqlite_dir=""
5925     sqlite_include="sqlite3.h"
5926   else
5927     sqlite_dir="$sqlite_dir"
5928     sqlite_include="$sqlite_dir/include/sqlite3.h"
5929   fi
5930
5931   save_CPPFLAGS="$CPPFLAGS"
5932   save_LDFLAGS="$LDFLAGS"
5933
5934   if test ! -z "$sqlite_dir"; then
5935     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
5936     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
5937   fi
5938
5939   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5940 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5941
5942       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
5943 $as_echo_n "checking sqlite library version (via header)... " >&6; }
5944       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h.  */
5946
5947 #include "$sqlite_include"
5948 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
5949 SQLITE_VERSION_OKAY
5950 #endif
5951 _ACEOF
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
5955 $as_echo "okay" >&6; }
5956                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
5957 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
5958 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   ac_check_lib_save_LIBS=$LIBS
5962 LIBS="-lsqlite3  $LIBS"
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h.  */
5965
5966 /* Override any GCC internal prototype to avoid an error.
5967    Use char because int might match the return type of a GCC
5968    builtin and then its argument prototype would still apply.  */
5969 #ifdef __cplusplus
5970 extern "C"
5971 #endif
5972 char sqlite3_close ();
5973 int
5974 main ()
5975 {
5976 return sqlite3_close ();
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 if ac_fn_c_try_link "$LINENO"; then :
5982   ac_cv_lib_sqlite3_sqlite3_close=yes
5983 else
5984   ac_cv_lib_sqlite3_sqlite3_close=no
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext \
5987     conftest$ac_exeext conftest.$ac_ext
5988 LIBS=$ac_check_lib_save_LIBS
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
5991 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
5992 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
5993
5994                       svn_lib_sqlite="yes"
5995                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
5996                         SVN_SQLITE_LIBS="-lsqlite3"
5997                       else
5998                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
5999                         SVN_SQLITE_LIBS="`
6000   input_flags="-L$sqlite_dir/lib -lsqlite3"
6001   output_flags=""
6002   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
6003   for flag in $input_flags; do
6004     filter="no"
6005     for dir in $filtered_dirs; do
6006       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
6007         filter="yes"
6008         break
6009       fi
6010     done
6011     if test "$filter" = "no"; then
6012       output_flags="$output_flags $flag"
6013     fi
6014   done
6015   if test -n "$output_flags"; then
6016     printf "%s" "${output_flags# }"
6017   fi
6018 `"
6019                       fi
6020
6021 fi
6022
6023 else
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
6025 $as_echo "unsupported SQLite version" >&6; }
6026 fi
6027 rm -f conftest*
6028
6029
6030 fi
6031
6032
6033
6034   CPPFLAGS="$save_CPPFLAGS"
6035   LDFLAGS="$save_LDFLAGS"
6036
6037     else
6038
6039   sqlite_amalg="$sqlite_dir"
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6041 $as_echo_n "checking sqlite amalgamation... " >&6; }
6042   if test ! -e $sqlite_amalg; then
6043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045   else
6046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6047 $as_echo "yes" >&6; }
6048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6049 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h.  */
6052
6053 #include "$sqlite_amalg"
6054 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6055 SQLITE_VERSION_OKAY
6056 #endif
6057 _ACEOF
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6061 $as_echo "amalgamation found and is okay" >&6; }
6062
6063   case $host_os in
6064   beos* | mingw* | pw32* | cegcc* | cygwin*)
6065     svn_sqlite_dso_ldflags=
6066     ;;
6067
6068   darwin*)
6069   # if libdl is installed we need to link against it
6070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6072 if ${ac_cv_lib_dl_dlopen+:} false; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   ac_check_lib_save_LIBS=$LIBS
6076 LIBS="-ldl  $LIBS"
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h.  */
6079
6080 /* Override any GCC internal prototype to avoid an error.
6081    Use char because int might match the return type of a GCC
6082    builtin and then its argument prototype would still apply.  */
6083 #ifdef __cplusplus
6084 extern "C"
6085 #endif
6086 char dlopen ();
6087 int
6088 main ()
6089 {
6090 return dlopen ();
6091   ;
6092   return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_link "$LINENO"; then :
6096   ac_cv_lib_dl_dlopen=yes
6097 else
6098   ac_cv_lib_dl_dlopen=no
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext \
6101     conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6107   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6108 else
6109
6110     svn_sqlite_dso_ldflags=
6111
6112 fi
6113
6114     ;;
6115
6116   *)
6117     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6118 if test "x$ac_cv_func_shl_load" = xyes; then :
6119   svn_sqlite_dso_ldflags=
6120 else
6121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6122 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6123 if ${ac_cv_lib_dld_shl_load+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   ac_check_lib_save_LIBS=$LIBS
6127 LIBS="-ldld  $LIBS"
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h.  */
6130
6131 /* Override any GCC internal prototype to avoid an error.
6132    Use char because int might match the return type of a GCC
6133    builtin and then its argument prototype would still apply.  */
6134 #ifdef __cplusplus
6135 extern "C"
6136 #endif
6137 char shl_load ();
6138 int
6139 main ()
6140 {
6141 return shl_load ();
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 if ac_fn_c_try_link "$LINENO"; then :
6147   ac_cv_lib_dld_shl_load=yes
6148 else
6149   ac_cv_lib_dld_shl_load=no
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext \
6152     conftest$ac_exeext conftest.$ac_ext
6153 LIBS=$ac_check_lib_save_LIBS
6154 fi
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6156 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6157 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6158   svn_sqlite_dso_ldflags="-ldld"
6159 else
6160   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6161 if test "x$ac_cv_func_dlopen" = xyes; then :
6162   svn_sqlite_dso_ldflags=
6163 else
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6165 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6166 if ${ac_cv_lib_dl_dlopen+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   ac_check_lib_save_LIBS=$LIBS
6170 LIBS="-ldl  $LIBS"
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h.  */
6173
6174 /* Override any GCC internal prototype to avoid an error.
6175    Use char because int might match the return type of a GCC
6176    builtin and then its argument prototype would still apply.  */
6177 #ifdef __cplusplus
6178 extern "C"
6179 #endif
6180 char dlopen ();
6181 int
6182 main ()
6183 {
6184 return dlopen ();
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 if ac_fn_c_try_link "$LINENO"; then :
6190   ac_cv_lib_dl_dlopen=yes
6191 else
6192   ac_cv_lib_dl_dlopen=no
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext \
6195     conftest$ac_exeext conftest.$ac_ext
6196 LIBS=$ac_check_lib_save_LIBS
6197 fi
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6199 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6200 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6201   svn_sqlite_dso_ldflags="-ldl"
6202 else
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6204 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6205 if ${ac_cv_lib_svld_dlopen+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   ac_check_lib_save_LIBS=$LIBS
6209 LIBS="-lsvld  $LIBS"
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h.  */
6212
6213 /* Override any GCC internal prototype to avoid an error.
6214    Use char because int might match the return type of a GCC
6215    builtin and then its argument prototype would still apply.  */
6216 #ifdef __cplusplus
6217 extern "C"
6218 #endif
6219 char dlopen ();
6220 int
6221 main ()
6222 {
6223 return dlopen ();
6224   ;
6225   return 0;
6226 }
6227 _ACEOF
6228 if ac_fn_c_try_link "$LINENO"; then :
6229   ac_cv_lib_svld_dlopen=yes
6230 else
6231   ac_cv_lib_svld_dlopen=no
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext \
6234     conftest$ac_exeext conftest.$ac_ext
6235 LIBS=$ac_check_lib_save_LIBS
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6238 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6239 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6240   svn_sqlite_dso_ldflags="-lsvld"
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6243 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6244 if ${ac_cv_lib_dld_dld_link+:} false; then :
6245   $as_echo_n "(cached) " >&6
6246 else
6247   ac_check_lib_save_LIBS=$LIBS
6248 LIBS="-ldld  $LIBS"
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h.  */
6251
6252 /* Override any GCC internal prototype to avoid an error.
6253    Use char because int might match the return type of a GCC
6254    builtin and then its argument prototype would still apply.  */
6255 #ifdef __cplusplus
6256 extern "C"
6257 #endif
6258 char dld_link ();
6259 int
6260 main ()
6261 {
6262 return dld_link ();
6263   ;
6264   return 0;
6265 }
6266 _ACEOF
6267 if ac_fn_c_try_link "$LINENO"; then :
6268   ac_cv_lib_dld_dld_link=yes
6269 else
6270   ac_cv_lib_dld_dld_link=no
6271 fi
6272 rm -f core conftest.err conftest.$ac_objext \
6273     conftest$ac_exeext conftest.$ac_ext
6274 LIBS=$ac_check_lib_save_LIBS
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6277 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6278 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6279   svn_sqlite_dso_ldflags="-ldld"
6280 fi
6281
6282
6283 fi
6284
6285
6286 fi
6287
6288
6289 fi
6290
6291
6292 fi
6293
6294
6295 fi
6296
6297     ;;
6298   esac
6299
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6301 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6302   if test -n "$svn_sqlite_dso_ldflags"; then
6303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6304 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6305   else
6306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6307 $as_echo "none" >&6; }
6308   fi
6309
6310
6311 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6312
6313                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6314                   if test -n "$svn_sqlite_dso_ldflags"; then
6315                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6316                   else
6317                     SVN_SQLITE_LIBS="-lpthread"
6318                   fi
6319                   svn_lib_sqlite="yes"
6320 else
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6322 $as_echo "unsupported amalgamation SQLite version" >&6; }
6323 fi
6324 rm -f conftest*
6325
6326   fi
6327
6328     fi
6329
6330     if test -z "$svn_lib_sqlite"; then
6331       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5
6332 $as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;}
6333
6334   echo ""
6335   echo "An appropriate version of sqlite could not be found.  We recommmend"
6336   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
6337   echo "Please either install a newer sqlite on this system"
6338   echo ""
6339   echo "or"
6340   echo ""
6341   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
6342   echo "    ${SQLITE_URL}"
6343   echo "unpack the archive using unzip and rename the resulting"
6344   echo "directory to:"
6345   echo "$abs_srcdir/sqlite-amalgamation"
6346   if test x"$abs_srcdir" != x"$abs_builddir"; then
6347     echo "or to:"
6348     echo "$abs_builddir/sqlite-amalgamation"
6349   fi
6350   echo ""
6351   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
6352
6353     fi
6354
6355 else
6356
6357
6358   sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c"
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6360 $as_echo_n "checking sqlite amalgamation... " >&6; }
6361   if test ! -e $sqlite_amalg; then
6362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364   else
6365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6366 $as_echo "yes" >&6; }
6367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6368 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h.  */
6371
6372 #include "$sqlite_amalg"
6373 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6374 SQLITE_VERSION_OKAY
6375 #endif
6376 _ACEOF
6377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6380 $as_echo "amalgamation found and is okay" >&6; }
6381
6382   case $host_os in
6383   beos* | mingw* | pw32* | cegcc* | cygwin*)
6384     svn_sqlite_dso_ldflags=
6385     ;;
6386
6387   darwin*)
6388   # if libdl is installed we need to link against it
6389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6390 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6391 if ${ac_cv_lib_dl_dlopen+:} false; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   ac_check_lib_save_LIBS=$LIBS
6395 LIBS="-ldl  $LIBS"
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h.  */
6398
6399 /* Override any GCC internal prototype to avoid an error.
6400    Use char because int might match the return type of a GCC
6401    builtin and then its argument prototype would still apply.  */
6402 #ifdef __cplusplus
6403 extern "C"
6404 #endif
6405 char dlopen ();
6406 int
6407 main ()
6408 {
6409 return dlopen ();
6410   ;
6411   return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_link "$LINENO"; then :
6415   ac_cv_lib_dl_dlopen=yes
6416 else
6417   ac_cv_lib_dl_dlopen=no
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext \
6420     conftest$ac_exeext conftest.$ac_ext
6421 LIBS=$ac_check_lib_save_LIBS
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6424 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6425 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6426   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6427 else
6428
6429     svn_sqlite_dso_ldflags=
6430
6431 fi
6432
6433     ;;
6434
6435   *)
6436     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6437 if test "x$ac_cv_func_shl_load" = xyes; then :
6438   svn_sqlite_dso_ldflags=
6439 else
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6441 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6442 if ${ac_cv_lib_dld_shl_load+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   ac_check_lib_save_LIBS=$LIBS
6446 LIBS="-ldld  $LIBS"
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h.  */
6449
6450 /* Override any GCC internal prototype to avoid an error.
6451    Use char because int might match the return type of a GCC
6452    builtin and then its argument prototype would still apply.  */
6453 #ifdef __cplusplus
6454 extern "C"
6455 #endif
6456 char shl_load ();
6457 int
6458 main ()
6459 {
6460 return shl_load ();
6461   ;
6462   return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_link "$LINENO"; then :
6466   ac_cv_lib_dld_shl_load=yes
6467 else
6468   ac_cv_lib_dld_shl_load=no
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext \
6471     conftest$ac_exeext conftest.$ac_ext
6472 LIBS=$ac_check_lib_save_LIBS
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6475 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6476 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6477   svn_sqlite_dso_ldflags="-ldld"
6478 else
6479   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6480 if test "x$ac_cv_func_dlopen" = xyes; then :
6481   svn_sqlite_dso_ldflags=
6482 else
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6484 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6485 if ${ac_cv_lib_dl_dlopen+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   ac_check_lib_save_LIBS=$LIBS
6489 LIBS="-ldl  $LIBS"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h.  */
6492
6493 /* Override any GCC internal prototype to avoid an error.
6494    Use char because int might match the return type of a GCC
6495    builtin and then its argument prototype would still apply.  */
6496 #ifdef __cplusplus
6497 extern "C"
6498 #endif
6499 char dlopen ();
6500 int
6501 main ()
6502 {
6503 return dlopen ();
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_c_try_link "$LINENO"; then :
6509   ac_cv_lib_dl_dlopen=yes
6510 else
6511   ac_cv_lib_dl_dlopen=no
6512 fi
6513 rm -f core conftest.err conftest.$ac_objext \
6514     conftest$ac_exeext conftest.$ac_ext
6515 LIBS=$ac_check_lib_save_LIBS
6516 fi
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6518 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6519 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6520   svn_sqlite_dso_ldflags="-ldl"
6521 else
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6523 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6524 if ${ac_cv_lib_svld_dlopen+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   ac_check_lib_save_LIBS=$LIBS
6528 LIBS="-lsvld  $LIBS"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h.  */
6531
6532 /* Override any GCC internal prototype to avoid an error.
6533    Use char because int might match the return type of a GCC
6534    builtin and then its argument prototype would still apply.  */
6535 #ifdef __cplusplus
6536 extern "C"
6537 #endif
6538 char dlopen ();
6539 int
6540 main ()
6541 {
6542 return dlopen ();
6543   ;
6544   return 0;
6545 }
6546 _ACEOF
6547 if ac_fn_c_try_link "$LINENO"; then :
6548   ac_cv_lib_svld_dlopen=yes
6549 else
6550   ac_cv_lib_svld_dlopen=no
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext \
6553     conftest$ac_exeext conftest.$ac_ext
6554 LIBS=$ac_check_lib_save_LIBS
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6557 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6558 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6559   svn_sqlite_dso_ldflags="-lsvld"
6560 else
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6562 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6563 if ${ac_cv_lib_dld_dld_link+:} false; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566   ac_check_lib_save_LIBS=$LIBS
6567 LIBS="-ldld  $LIBS"
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h.  */
6570
6571 /* Override any GCC internal prototype to avoid an error.
6572    Use char because int might match the return type of a GCC
6573    builtin and then its argument prototype would still apply.  */
6574 #ifdef __cplusplus
6575 extern "C"
6576 #endif
6577 char dld_link ();
6578 int
6579 main ()
6580 {
6581 return dld_link ();
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 if ac_fn_c_try_link "$LINENO"; then :
6587   ac_cv_lib_dld_dld_link=yes
6588 else
6589   ac_cv_lib_dld_dld_link=no
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext \
6592     conftest$ac_exeext conftest.$ac_ext
6593 LIBS=$ac_check_lib_save_LIBS
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6596 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6597 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6598   svn_sqlite_dso_ldflags="-ldld"
6599 fi
6600
6601
6602 fi
6603
6604
6605 fi
6606
6607
6608 fi
6609
6610
6611 fi
6612
6613
6614 fi
6615
6616     ;;
6617   esac
6618
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6620 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6621   if test -n "$svn_sqlite_dso_ldflags"; then
6622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6623 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6624   else
6625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6626 $as_echo "none" >&6; }
6627   fi
6628
6629
6630 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6631
6632                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6633                   if test -n "$svn_sqlite_dso_ldflags"; then
6634                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6635                   else
6636                     SVN_SQLITE_LIBS="-lpthread"
6637                   fi
6638                   svn_lib_sqlite="yes"
6639 else
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6641 $as_echo "unsupported amalgamation SQLite version" >&6; }
6642 fi
6643 rm -f conftest*
6644
6645   fi
6646
6647
6648     if test -z "$svn_lib_sqlite"; then
6649
6650   sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c"
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5
6652 $as_echo_n "checking sqlite amalgamation... " >&6; }
6653   if test ! -e $sqlite_amalg; then
6654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656   else
6657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6658 $as_echo "yes" >&6; }
6659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5
6660 $as_echo_n "checking sqlite amalgamation file version... " >&6; }
6661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h.  */
6663
6664 #include "$sqlite_amalg"
6665 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6666 SQLITE_VERSION_OKAY
6667 #endif
6668 _ACEOF
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5
6672 $as_echo "amalgamation found and is okay" >&6; }
6673
6674   case $host_os in
6675   beos* | mingw* | pw32* | cegcc* | cygwin*)
6676     svn_sqlite_dso_ldflags=
6677     ;;
6678
6679   darwin*)
6680   # if libdl is installed we need to link against it
6681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6682 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6683 if ${ac_cv_lib_dl_dlopen+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   ac_check_lib_save_LIBS=$LIBS
6687 LIBS="-ldl  $LIBS"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h.  */
6690
6691 /* Override any GCC internal prototype to avoid an error.
6692    Use char because int might match the return type of a GCC
6693    builtin and then its argument prototype would still apply.  */
6694 #ifdef __cplusplus
6695 extern "C"
6696 #endif
6697 char dlopen ();
6698 int
6699 main ()
6700 {
6701 return dlopen ();
6702   ;
6703   return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_link "$LINENO"; then :
6707   ac_cv_lib_dl_dlopen=yes
6708 else
6709   ac_cv_lib_dl_dlopen=no
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext \
6712     conftest$ac_exeext conftest.$ac_ext
6713 LIBS=$ac_check_lib_save_LIBS
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6716 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6717 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6718   lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl"
6719 else
6720
6721     svn_sqlite_dso_ldflags=
6722
6723 fi
6724
6725     ;;
6726
6727   *)
6728     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6729 if test "x$ac_cv_func_shl_load" = xyes; then :
6730   svn_sqlite_dso_ldflags=
6731 else
6732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6733 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6734 if ${ac_cv_lib_dld_shl_load+:} false; then :
6735   $as_echo_n "(cached) " >&6
6736 else
6737   ac_check_lib_save_LIBS=$LIBS
6738 LIBS="-ldld  $LIBS"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h.  */
6741
6742 /* Override any GCC internal prototype to avoid an error.
6743    Use char because int might match the return type of a GCC
6744    builtin and then its argument prototype would still apply.  */
6745 #ifdef __cplusplus
6746 extern "C"
6747 #endif
6748 char shl_load ();
6749 int
6750 main ()
6751 {
6752 return shl_load ();
6753   ;
6754   return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_link "$LINENO"; then :
6758   ac_cv_lib_dld_shl_load=yes
6759 else
6760   ac_cv_lib_dld_shl_load=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext \
6763     conftest$ac_exeext conftest.$ac_ext
6764 LIBS=$ac_check_lib_save_LIBS
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6767 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6768 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6769   svn_sqlite_dso_ldflags="-ldld"
6770 else
6771   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6772 if test "x$ac_cv_func_dlopen" = xyes; then :
6773   svn_sqlite_dso_ldflags=
6774 else
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6777 if ${ac_cv_lib_dl_dlopen+:} false; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   ac_check_lib_save_LIBS=$LIBS
6781 LIBS="-ldl  $LIBS"
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h.  */
6784
6785 /* Override any GCC internal prototype to avoid an error.
6786    Use char because int might match the return type of a GCC
6787    builtin and then its argument prototype would still apply.  */
6788 #ifdef __cplusplus
6789 extern "C"
6790 #endif
6791 char dlopen ();
6792 int
6793 main ()
6794 {
6795 return dlopen ();
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_link "$LINENO"; then :
6801   ac_cv_lib_dl_dlopen=yes
6802 else
6803   ac_cv_lib_dl_dlopen=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext \
6806     conftest$ac_exeext conftest.$ac_ext
6807 LIBS=$ac_check_lib_save_LIBS
6808 fi
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6810 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6811 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6812   svn_sqlite_dso_ldflags="-ldl"
6813 else
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6815 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
6816 if ${ac_cv_lib_svld_dlopen+:} false; then :
6817   $as_echo_n "(cached) " >&6
6818 else
6819   ac_check_lib_save_LIBS=$LIBS
6820 LIBS="-lsvld  $LIBS"
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h.  */
6823
6824 /* Override any GCC internal prototype to avoid an error.
6825    Use char because int might match the return type of a GCC
6826    builtin and then its argument prototype would still apply.  */
6827 #ifdef __cplusplus
6828 extern "C"
6829 #endif
6830 char dlopen ();
6831 int
6832 main ()
6833 {
6834 return dlopen ();
6835   ;
6836   return 0;
6837 }
6838 _ACEOF
6839 if ac_fn_c_try_link "$LINENO"; then :
6840   ac_cv_lib_svld_dlopen=yes
6841 else
6842   ac_cv_lib_svld_dlopen=no
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext \
6845     conftest$ac_exeext conftest.$ac_ext
6846 LIBS=$ac_check_lib_save_LIBS
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6849 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6850 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6851   svn_sqlite_dso_ldflags="-lsvld"
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6854 $as_echo_n "checking for dld_link in -ldld... " >&6; }
6855 if ${ac_cv_lib_dld_dld_link+:} false; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   ac_check_lib_save_LIBS=$LIBS
6859 LIBS="-ldld  $LIBS"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h.  */
6862
6863 /* Override any GCC internal prototype to avoid an error.
6864    Use char because int might match the return type of a GCC
6865    builtin and then its argument prototype would still apply.  */
6866 #ifdef __cplusplus
6867 extern "C"
6868 #endif
6869 char dld_link ();
6870 int
6871 main ()
6872 {
6873 return dld_link ();
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_link "$LINENO"; then :
6879   ac_cv_lib_dld_dld_link=yes
6880 else
6881   ac_cv_lib_dld_dld_link=no
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext \
6884     conftest$ac_exeext conftest.$ac_ext
6885 LIBS=$ac_check_lib_save_LIBS
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6888 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6889 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6890   svn_sqlite_dso_ldflags="-ldld"
6891 fi
6892
6893
6894 fi
6895
6896
6897 fi
6898
6899
6900 fi
6901
6902
6903 fi
6904
6905
6906 fi
6907
6908     ;;
6909   esac
6910
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5
6912 $as_echo_n "checking additional libraries for sqlite... " >&6; }
6913   if test -n "$svn_sqlite_dso_ldflags"; then
6914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5
6915 $as_echo "${svn_sqlite_dso_ldflags}" >&6; }
6916   else
6917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6918 $as_echo "none" >&6; }
6919   fi
6920
6921
6922 $as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h
6923
6924                   SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`"
6925                   if test -n "$svn_sqlite_dso_ldflags"; then
6926                     SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread"
6927                   else
6928                     SVN_SQLITE_LIBS="-lpthread"
6929                   fi
6930                   svn_lib_sqlite="yes"
6931 else
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5
6933 $as_echo "unsupported amalgamation SQLite version" >&6; }
6934 fi
6935 rm -f conftest*
6936
6937   fi
6938
6939     fi
6940
6941     if test -z "$svn_lib_sqlite"; then
6942
6943   if test -z ""; then
6944     sqlite_dir=""
6945     sqlite_include="sqlite3.h"
6946   else
6947     sqlite_dir=""
6948     sqlite_include="/include/sqlite3.h"
6949   fi
6950
6951   save_CPPFLAGS="$CPPFLAGS"
6952   save_LDFLAGS="$LDFLAGS"
6953
6954   if test ! -z ""; then
6955     CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include"
6956     LDFLAGS="$LDFLAGS -L$sqlite_dir/lib"
6957   fi
6958
6959   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
6960 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
6961
6962       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5
6963 $as_echo_n "checking sqlite library version (via header)... " >&6; }
6964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h.  */
6966
6967 #include "$sqlite_include"
6968 #if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num
6969 SQLITE_VERSION_OKAY
6970 #endif
6971 _ACEOF
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973   $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then :
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6975 $as_echo "okay" >&6; }
6976                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
6977 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
6978 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981   ac_check_lib_save_LIBS=$LIBS
6982 LIBS="-lsqlite3  $LIBS"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h.  */
6985
6986 /* Override any GCC internal prototype to avoid an error.
6987    Use char because int might match the return type of a GCC
6988    builtin and then its argument prototype would still apply.  */
6989 #ifdef __cplusplus
6990 extern "C"
6991 #endif
6992 char sqlite3_close ();
6993 int
6994 main ()
6995 {
6996 return sqlite3_close ();
6997   ;
6998   return 0;
6999 }
7000 _ACEOF
7001 if ac_fn_c_try_link "$LINENO"; then :
7002   ac_cv_lib_sqlite3_sqlite3_close=yes
7003 else
7004   ac_cv_lib_sqlite3_sqlite3_close=no
7005 fi
7006 rm -f core conftest.err conftest.$ac_objext \
7007     conftest$ac_exeext conftest.$ac_ext
7008 LIBS=$ac_check_lib_save_LIBS
7009 fi
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
7011 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
7012 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
7013
7014                       svn_lib_sqlite="yes"
7015                       if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then
7016                         SVN_SQLITE_LIBS="-lsqlite3"
7017                       else
7018                         SVN_SQLITE_INCLUDES="-I$sqlite_dir/include"
7019                         SVN_SQLITE_LIBS="`
7020   input_flags="-L$sqlite_dir/lib -lsqlite3"
7021   output_flags=""
7022   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
7023   for flag in $input_flags; do
7024     filter="no"
7025     for dir in $filtered_dirs; do
7026       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
7027         filter="yes"
7028         break
7029       fi
7030     done
7031     if test "$filter" = "no"; then
7032       output_flags="$output_flags $flag"
7033     fi
7034   done
7035   if test -n "$output_flags"; then
7036     printf "%s" "${output_flags# }"
7037   fi
7038 `"
7039                       fi
7040
7041 fi
7042
7043 else
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5
7045 $as_echo "unsupported SQLite version" >&6; }
7046 fi
7047 rm -f conftest*
7048
7049
7050 fi
7051
7052
7053
7054   CPPFLAGS="$save_CPPFLAGS"
7055   LDFLAGS="$save_LDFLAGS"
7056
7057     fi
7058
7059     if test -z "$svn_lib_sqlite"; then
7060
7061     if test -n "$PKG_CONFIG"; then
7062       { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5
7063 $as_echo_n "checking sqlite library version (via pkg-config)... " >&6; }
7064       sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors`
7065
7066       if test -n "$sqlite_version"; then
7067
7068   version_string="$sqlite_version"
7069
7070   major=`expr $version_string : '\([0-9]*\)'`
7071   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7072   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7073   if test -z "$micro"; then
7074     micro=0
7075   fi
7076   sqlite_ver_num=`expr $major \* 1000000 \
7077         \+ $minor \* 1000 \
7078         \+ $micro`
7079
7080
7081         if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then
7082           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
7083 $as_echo "$sqlite_version" >&6; }
7084           svn_lib_sqlite="yes"
7085           SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`"
7086           SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`"
7087         else
7088           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5
7089 $as_echo "none or unsupported $sqlite_version" >&6; }
7090         fi
7091       fi
7092     fi
7093
7094     if test -z "$svn_lib_sqlite"; then
7095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097     fi
7098
7099     fi
7100
7101     if test -z "$svn_lib_sqlite"; then
7102
7103   echo ""
7104   echo "An appropriate version of sqlite could not be found.  We recommmend"
7105   echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}."
7106   echo "Please either install a newer sqlite on this system"
7107   echo ""
7108   echo "or"
7109   echo ""
7110   echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:"
7111   echo "    ${SQLITE_URL}"
7112   echo "unpack the archive using unzip and rename the resulting"
7113   echo "directory to:"
7114   echo "$abs_srcdir/sqlite-amalgamation"
7115   if test x"$abs_srcdir" != x"$abs_builddir"; then
7116     echo "or to:"
7117     echo "$abs_builddir/sqlite-amalgamation"
7118   fi
7119   echo ""
7120   as_fn_error $? "Subversion requires SQLite" "$LINENO" 5
7121
7122     fi
7123
7124 fi
7125
7126
7127
7128
7129
7130
7131 # Check whether --enable-sqlite-compatibility-version was given.
7132 if test "${enable_sqlite_compatibility_version+set}" = set; then :
7133   enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval
7134 else
7135   sqlite_compat_ver=no
7136 fi
7137
7138
7139 if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then
7140
7141   version_string="$sqlite_compat_ver"
7142
7143   major=`expr $version_string : '\([0-9]*\)'`
7144   minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'`
7145   micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7146   if test -z "$micro"; then
7147     micro=0
7148   fi
7149   sqlite_compat_ver_num=`expr $major \* 1000000 \
7150         \+ $minor \* 1000 \
7151         \+ $micro`
7152
7153   CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS"
7154   CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS"
7155 fi
7156
7157
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
7159 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
7160 if ${svn_cv_atomic_builtins+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   if test "$cross_compiling" = yes; then :
7164   svn_cv_atomic_builtins=no
7165 else
7166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h.  */
7168
7169   int main()
7170   {
7171       unsigned long long val = 1010, tmp, *mem = &val;
7172
7173       if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
7174           return 1;
7175
7176       tmp = val;
7177
7178       if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
7179           return 1;
7180
7181       if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
7182           return 1;
7183
7184       tmp = 3030;
7185
7186       if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
7187           return 1;
7188
7189       if (__sync_lock_test_and_set(&val, 4040) != 3030)
7190           return 1;
7191
7192       mem = &tmp;
7193
7194       if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
7195           return 1;
7196
7197       __sync_synchronize();
7198
7199       if (mem != &val)
7200           return 1;
7201
7202       return 0;
7203   }
7204 _ACEOF
7205 if ac_fn_c_try_run "$LINENO"; then :
7206   svn_cv_atomic_builtins=yes
7207 else
7208   svn_cv_atomic_builtins=no
7209 fi
7210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7211   conftest.$ac_objext conftest.beam conftest.$ac_ext
7212 fi
7213
7214 fi
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5
7216 $as_echo "$svn_cv_atomic_builtins" >&6; }
7217
7218
7219 if test "$svn_cv_atomic_builtins" = "yes"; then
7220
7221 $as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h
7222
7223 fi
7224
7225
7226 if test "${bindir}" = '${exec_prefix}/bin'; then
7227         if test "${exec_prefix}" = "NONE"; then
7228                 if test "${prefix}" = "NONE"; then
7229                         SVN_BINDIR="${ac_default_prefix}/bin"
7230                 else
7231                         SVN_BINDIR="${prefix}/bin"
7232                 fi
7233         else
7234                 SVN_BINDIR="${exec_prefix}/bin"
7235         fi
7236 else
7237         SVN_BINDIR="${bindir}"
7238 fi
7239
7240 SVN_BINDIR="`eval echo ${SVN_BINDIR}`"
7241
7242
7243
7244 cat >>confdefs.h <<_ACEOF
7245 #define SVN_BINDIR "${SVN_BINDIR}"
7246 _ACEOF
7247
7248
7249 localedir='${datadir}/locale'
7250
7251
7252 if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then
7253   exp_localedir='${ac_default_prefix}/share/locale'
7254 else
7255   exp_localedir=$localedir
7256 fi
7257
7258 svn_last=
7259 svn_cur=""${exp_localedir}""
7260 while test "x${svn_cur}" != "x${svn_last}";
7261 do
7262   svn_last="${svn_cur}"
7263   svn_cur=`eval "echo ${svn_cur}"`
7264 done
7265 svn_localedir="${svn_cur}"
7266
7267
7268 cat >>confdefs.h <<_ACEOF
7269 #define SVN_LOCALE_DIR "${svn_localedir}"
7270 _ACEOF
7271
7272
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5
7274 $as_echo "$as_me: configuring libtool now" >&6;}
7275 case `pwd` in
7276   *\ * | *\     *)
7277     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7278 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7279 esac
7280
7281
7282
7283 macro_version='2.4.2.458.26-92994'
7284 macro_revision='2.4.3'
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 ltmain=$ac_aux_dir/ltmain.sh
7299
7300 # Backslashify metacharacters that are still active within
7301 # double-quoted strings.
7302 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7303
7304 # Same as above, but do not quote variable references.
7305 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7306
7307 # Sed substitution to delay expansion of an escaped shell variable in a
7308 # double_quote_subst'ed string.
7309 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7310
7311 # Sed substitution to delay expansion of an escaped single quote.
7312 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7313
7314 # Sed substitution to avoid accidental globbing in evaled expressions
7315 no_glob_subst='s/\*/\\\*/g'
7316
7317 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7318 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7319 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7322 $as_echo_n "checking how to print strings... " >&6; }
7323 # Test print first, because it will be a builtin if present.
7324 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7325    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7326   ECHO='print -r --'
7327 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7328   ECHO='printf %s\n'
7329 else
7330   # Use this function as a fallback that always works.
7331   func_fallback_echo ()
7332   {
7333     eval 'cat <<_LTECHO_EOF
7334 $1
7335 _LTECHO_EOF'
7336   }
7337   ECHO='func_fallback_echo'
7338 fi
7339
7340 # func_echo_all arg...
7341 # Invoke $ECHO with all args, space-separated.
7342 func_echo_all ()
7343 {
7344     $ECHO ""
7345 }
7346
7347 case $ECHO in
7348   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7349 $as_echo "printf" >&6; } ;;
7350   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7351 $as_echo "print -r" >&6; } ;;
7352   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7353 $as_echo "cat" >&6; } ;;
7354 esac
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7370 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7371 if ${ac_cv_path_SED+:} false; then :
7372   $as_echo_n "(cached) " >&6
7373 else
7374             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7375      for ac_i in 1 2 3 4 5 6 7; do
7376        ac_script="$ac_script$as_nl$ac_script"
7377      done
7378      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7379      { ac_script=; unset ac_script;}
7380      if test -z "$SED"; then
7381   ac_path_SED_found=false
7382   # Loop through the user's path and test for each of PROGNAME-LIST
7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388     for ac_prog in sed gsed; do
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7391       as_fn_executable_p "$ac_path_SED" || continue
7392 # Check for GNU ac_path_SED and select it if it is found.
7393   # Check for GNU $ac_path_SED
7394 case `"$ac_path_SED" --version 2>&1` in
7395 *GNU*)
7396   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7397 *)
7398   ac_count=0
7399   $as_echo_n 0123456789 >"conftest.in"
7400   while :
7401   do
7402     cat "conftest.in" "conftest.in" >"conftest.tmp"
7403     mv "conftest.tmp" "conftest.in"
7404     cp "conftest.in" "conftest.nl"
7405     $as_echo '' >> "conftest.nl"
7406     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7407     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7408     as_fn_arith $ac_count + 1 && ac_count=$as_val
7409     if test $ac_count -gt ${ac_path_SED_max-0}; then
7410       # Best one so far, save it but keep looking for a better one
7411       ac_cv_path_SED="$ac_path_SED"
7412       ac_path_SED_max=$ac_count
7413     fi
7414     # 10*(2^10) chars as input seems more than enough
7415     test $ac_count -gt 10 && break
7416   done
7417   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7418 esac
7419
7420       $ac_path_SED_found && break 3
7421     done
7422   done
7423   done
7424 IFS=$as_save_IFS
7425   if test -z "$ac_cv_path_SED"; then
7426     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7427   fi
7428 else
7429   ac_cv_path_SED=$SED
7430 fi
7431
7432 fi
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7434 $as_echo "$ac_cv_path_SED" >&6; }
7435  SED="$ac_cv_path_SED"
7436   rm -f conftest.sed
7437
7438 test -z "$SED" && SED=sed
7439 Xsed="$SED -e 1s/^X//"
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7452 $as_echo_n "checking for fgrep... " >&6; }
7453 if ${ac_cv_path_FGREP+:} false; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7457    then ac_cv_path_FGREP="$GREP -F"
7458    else
7459      if test -z "$FGREP"; then
7460   ac_path_FGREP_found=false
7461   # Loop through the user's path and test for each of PROGNAME-LIST
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467     for ac_prog in fgrep; do
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7470       as_fn_executable_p "$ac_path_FGREP" || continue
7471 # Check for GNU ac_path_FGREP and select it if it is found.
7472   # Check for GNU $ac_path_FGREP
7473 case `"$ac_path_FGREP" --version 2>&1` in
7474 *GNU*)
7475   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7476 *)
7477   ac_count=0
7478   $as_echo_n 0123456789 >"conftest.in"
7479   while :
7480   do
7481     cat "conftest.in" "conftest.in" >"conftest.tmp"
7482     mv "conftest.tmp" "conftest.in"
7483     cp "conftest.in" "conftest.nl"
7484     $as_echo 'FGREP' >> "conftest.nl"
7485     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7486     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7487     as_fn_arith $ac_count + 1 && ac_count=$as_val
7488     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7489       # Best one so far, save it but keep looking for a better one
7490       ac_cv_path_FGREP="$ac_path_FGREP"
7491       ac_path_FGREP_max=$ac_count
7492     fi
7493     # 10*(2^10) chars as input seems more than enough
7494     test $ac_count -gt 10 && break
7495   done
7496   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7497 esac
7498
7499       $ac_path_FGREP_found && break 3
7500     done
7501   done
7502   done
7503 IFS=$as_save_IFS
7504   if test -z "$ac_cv_path_FGREP"; then
7505     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7506   fi
7507 else
7508   ac_cv_path_FGREP=$FGREP
7509 fi
7510
7511    fi
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7514 $as_echo "$ac_cv_path_FGREP" >&6; }
7515  FGREP="$ac_cv_path_FGREP"
7516
7517
7518 test -z "$GREP" && GREP=grep
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 # Check whether --with-gnu-ld was given.
7539 if test "${with_gnu_ld+set}" = set; then :
7540   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7541 else
7542   with_gnu_ld=no
7543 fi
7544
7545 ac_prog=ld
7546 if test yes = "$GCC"; then
7547   # Check if gcc -print-prog-name=ld gives a path.
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7549 $as_echo_n "checking for ld used by $CC... " >&6; }
7550   case $host in
7551   *-*-mingw*)
7552     # gcc leaves a trailing carriage return, which upsets mingw
7553     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7554   *)
7555     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7556   esac
7557   case $ac_prog in
7558     # Accept absolute paths.
7559     [\\/]* | ?:[\\/]*)
7560       re_direlt='/[^/][^/]*/\.\./'
7561       # Canonicalize the pathname of ld
7562       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7563       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7564         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7565       done
7566       test -z "$LD" && LD=$ac_prog
7567       ;;
7568   "")
7569     # If it fails, then pretend we aren't using GCC.
7570     ac_prog=ld
7571     ;;
7572   *)
7573     # If it is relative, then search for the first ld in PATH.
7574     with_gnu_ld=unknown
7575     ;;
7576   esac
7577 elif test yes = "$with_gnu_ld"; then
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7579 $as_echo_n "checking for GNU ld... " >&6; }
7580 else
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7582 $as_echo_n "checking for non-GNU ld... " >&6; }
7583 fi
7584 if ${lt_cv_path_LD+:} false; then :
7585   $as_echo_n "(cached) " >&6
7586 else
7587   if test -z "$LD"; then
7588   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7589   for ac_dir in $PATH; do
7590     IFS=$lt_save_ifs
7591     test -z "$ac_dir" && ac_dir=.
7592     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7593       lt_cv_path_LD=$ac_dir/$ac_prog
7594       # Check to see if the program is GNU ld.  I'd rather use --version,
7595       # but apparently some variants of GNU ld only accept -v.
7596       # Break only if it was the GNU/non-GNU ld that we prefer.
7597       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7598       *GNU* | *'with BFD'*)
7599         test no != "$with_gnu_ld" && break
7600         ;;
7601       *)
7602         test yes != "$with_gnu_ld" && break
7603         ;;
7604       esac
7605     fi
7606   done
7607   IFS=$lt_save_ifs
7608 else
7609   lt_cv_path_LD=$LD # Let the user override the test with a path.
7610 fi
7611 fi
7612
7613 LD=$lt_cv_path_LD
7614 if test -n "$LD"; then
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7616 $as_echo "$LD" >&6; }
7617 else
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7624 if ${lt_cv_prog_gnu_ld+:} false; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7628 case `$LD -v 2>&1 </dev/null` in
7629 *GNU* | *'with BFD'*)
7630   lt_cv_prog_gnu_ld=yes
7631   ;;
7632 *)
7633   lt_cv_prog_gnu_ld=no
7634   ;;
7635 esac
7636 fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7638 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7639 with_gnu_ld=$lt_cv_prog_gnu_ld
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7650 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7651 if ${lt_cv_path_NM+:} false; then :
7652   $as_echo_n "(cached) " >&6
7653 else
7654   if test -n "$NM"; then
7655   # Let the user override the test.
7656   lt_cv_path_NM=$NM
7657 else
7658   lt_nm_to_check=${ac_tool_prefix}nm
7659   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7660     lt_nm_to_check="$lt_nm_to_check nm"
7661   fi
7662   for lt_tmp_nm in $lt_nm_to_check; do
7663     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7664     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7665       IFS=$lt_save_ifs
7666       test -z "$ac_dir" && ac_dir=.
7667       tmp_nm=$ac_dir/$lt_tmp_nm
7668       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7669         # Check to see if the nm accepts a BSD-compat flag.
7670         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7671         #   nm: unknown option "B" ignored
7672         # Tru64's nm complains that /dev/null is an invalid object file
7673         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7674         case $build_os in
7675         mingw*) lt_bad_file=conftest.nm/nofile ;;
7676         *) lt_bad_file=/dev/null ;;
7677         esac
7678         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7679         *$lt_bad_file* | *'Invalid file or object type'*)
7680           lt_cv_path_NM="$tmp_nm -B"
7681           break 2
7682           ;;
7683         *)
7684           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7685           */dev/null*)
7686             lt_cv_path_NM="$tmp_nm -p"
7687             break 2
7688             ;;
7689           *)
7690             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7691             continue # so that we can try to find one that supports BSD flags
7692             ;;
7693           esac
7694           ;;
7695         esac
7696       fi
7697     done
7698     IFS=$lt_save_ifs
7699   done
7700   : ${lt_cv_path_NM=no}
7701 fi
7702 fi
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7704 $as_echo "$lt_cv_path_NM" >&6; }
7705 if test no != "$lt_cv_path_NM"; then
7706   NM=$lt_cv_path_NM
7707 else
7708   # Didn't find any BSD compatible name lister, look for dumpbin.
7709   if test -n "$DUMPBIN"; then :
7710     # Let the user override the test.
7711   else
7712     if test -n "$ac_tool_prefix"; then
7713   for ac_prog in dumpbin "link -dump"
7714   do
7715     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_DUMPBIN+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$DUMPBIN"; then
7723   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 DUMPBIN=$ac_cv_prog_DUMPBIN
7743 if test -n "$DUMPBIN"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7745 $as_echo "$DUMPBIN" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752     test -n "$DUMPBIN" && break
7753   done
7754 fi
7755 if test -z "$DUMPBIN"; then
7756   ac_ct_DUMPBIN=$DUMPBIN
7757   for ac_prog in dumpbin "link -dump"
7758 do
7759   # Extract the first word of "$ac_prog", so it can be a program name with args.
7760 set dummy $ac_prog; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7764   $as_echo_n "(cached) " >&6
7765 else
7766   if test -n "$ac_ct_DUMPBIN"; then
7767   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774     for ac_exec_ext in '' $ac_executable_extensions; do
7775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781   done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7787 if test -n "$ac_ct_DUMPBIN"; then
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7789 $as_echo "$ac_ct_DUMPBIN" >&6; }
7790 else
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795
7796   test -n "$ac_ct_DUMPBIN" && break
7797 done
7798
7799   if test "x$ac_ct_DUMPBIN" = x; then
7800     DUMPBIN=":"
7801   else
7802     case $cross_compiling:$ac_tool_warned in
7803 yes:)
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7806 ac_tool_warned=yes ;;
7807 esac
7808     DUMPBIN=$ac_ct_DUMPBIN
7809   fi
7810 fi
7811
7812     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7813     *COFF*)
7814       DUMPBIN="$DUMPBIN -symbols -headers"
7815       ;;
7816     *)
7817       DUMPBIN=:
7818       ;;
7819     esac
7820   fi
7821
7822   if test : != "$DUMPBIN"; then
7823     NM=$DUMPBIN
7824   fi
7825 fi
7826 test -z "$NM" && NM=nm
7827
7828
7829
7830
7831
7832
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7834 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7835 if ${lt_cv_nm_interface+:} false; then :
7836   $as_echo_n "(cached) " >&6
7837 else
7838   lt_cv_nm_interface="BSD nm"
7839   echo "int some_variable = 0;" > conftest.$ac_ext
7840   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7841   (eval "$ac_compile" 2>conftest.err)
7842   cat conftest.err >&5
7843   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7844   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7845   cat conftest.err >&5
7846   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7847   cat conftest.out >&5
7848   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7849     lt_cv_nm_interface="MS dumpbin"
7850   fi
7851   rm -f conftest*
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7854 $as_echo "$lt_cv_nm_interface" >&6; }
7855
7856 # find the maximum length of command line arguments
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7858 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7859 if ${lt_cv_sys_max_cmd_len+:} false; then :
7860   $as_echo_n "(cached) " >&6
7861 else
7862     i=0
7863   teststring=ABCD
7864
7865   case $build_os in
7866   msdosdjgpp*)
7867     # On DJGPP, this test can blow up pretty badly due to problems in libc
7868     # (any single argument exceeding 2000 bytes causes a buffer overrun
7869     # during glob expansion).  Even if it were fixed, the result of this
7870     # check would be larger than it should be.
7871     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7872     ;;
7873
7874   gnu*)
7875     # Under GNU Hurd, this test is not required because there is
7876     # no limit to the length of command line arguments.
7877     # Libtool will interpret -1 as no limit whatsoever
7878     lt_cv_sys_max_cmd_len=-1;
7879     ;;
7880
7881   cygwin* | mingw* | cegcc*)
7882     # On Win9x/ME, this test blows up -- it succeeds, but takes
7883     # about 5 minutes as the teststring grows exponentially.
7884     # Worse, since 9x/ME are not pre-emptively multitasking,
7885     # you end up with a "frozen" computer, even though with patience
7886     # the test eventually succeeds (with a max line length of 256k).
7887     # Instead, let's just punt: use the minimum linelength reported by
7888     # all of the supported platforms: 8192 (on NT/2K/XP).
7889     lt_cv_sys_max_cmd_len=8192;
7890     ;;
7891
7892   mint*)
7893     # On MiNT this can take a long time and run out of memory.
7894     lt_cv_sys_max_cmd_len=8192;
7895     ;;
7896
7897   amigaos*)
7898     # On AmigaOS with pdksh, this test takes hours, literally.
7899     # So we just punt and use a minimum line length of 8192.
7900     lt_cv_sys_max_cmd_len=8192;
7901     ;;
7902
7903   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7904     # This has been around since 386BSD, at least.  Likely further.
7905     if test -x /sbin/sysctl; then
7906       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7907     elif test -x /usr/sbin/sysctl; then
7908       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7909     else
7910       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7911     fi
7912     # And add a safety zone
7913     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7914     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7915     ;;
7916
7917   interix*)
7918     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7919     lt_cv_sys_max_cmd_len=196608
7920     ;;
7921
7922   os2*)
7923     # The test takes a long time on OS/2.
7924     lt_cv_sys_max_cmd_len=8192
7925     ;;
7926
7927   osf*)
7928     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7929     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7930     # nice to cause kernel panics so lets avoid the loop below.
7931     # First set a reasonable default.
7932     lt_cv_sys_max_cmd_len=16384
7933     #
7934     if test -x /sbin/sysconfig; then
7935       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7936         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7937       esac
7938     fi
7939     ;;
7940   sco3.2v5*)
7941     lt_cv_sys_max_cmd_len=102400
7942     ;;
7943   sysv5* | sco5v6* | sysv4.2uw2*)
7944     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7945     if test -n "$kargmax"; then
7946       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7947     else
7948       lt_cv_sys_max_cmd_len=32768
7949     fi
7950     ;;
7951   *)
7952     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7953     if test -n "$lt_cv_sys_max_cmd_len" && \
7954        test undefined != "$lt_cv_sys_max_cmd_len"; then
7955       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7956       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7957     else
7958       # Make teststring a little bigger before we do anything with it.
7959       # a 1K string should be a reasonable start.
7960       for i in 1 2 3 4 5 6 7 8; do
7961         teststring=$teststring$teststring
7962       done
7963       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7964       # If test is not a shell built-in, we'll probably end up computing a
7965       # maximum length that is only half of the actual maximum length, but
7966       # we can't tell.
7967       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7968                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7969               test 17 != "$i" # 1/2 MB should be enough
7970       do
7971         i=`expr $i + 1`
7972         teststring=$teststring$teststring
7973       done
7974       # Only check the string length outside the loop.
7975       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7976       teststring=
7977       # Add a significant safety factor because C++ compilers can tack on
7978       # massive amounts of additional arguments before passing them to the
7979       # linker.  It appears as though 1/2 is a usable value.
7980       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7981     fi
7982     ;;
7983   esac
7984
7985 fi
7986
7987 if test -n "$lt_cv_sys_max_cmd_len"; then
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7989 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7990 else
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7992 $as_echo "none" >&6; }
7993 fi
7994 max_cmd_len=$lt_cv_sys_max_cmd_len
7995
7996
7997
7998
7999
8000
8001 : ${CP="cp -f"}
8002 : ${MV="mv -f"}
8003 : ${RM="rm -f"}
8004
8005 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8006   lt_unset=unset
8007 else
8008   lt_unset=false
8009 fi
8010
8011
8012
8013
8014
8015 # test EBCDIC or ASCII
8016 case `echo X|tr X '\101'` in
8017  A) # ASCII based system
8018     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8019   lt_SP2NL='tr \040 \012'
8020   lt_NL2SP='tr \015\012 \040\040'
8021   ;;
8022  *) # EBCDIC based system
8023   lt_SP2NL='tr \100 \n'
8024   lt_NL2SP='tr \r\n \100\100'
8025   ;;
8026 esac
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8037 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8038 if ${lt_cv_to_host_file_cmd+:} false; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   case $host in
8042   *-*-mingw* )
8043     case $build in
8044       *-*-mingw* ) # actually msys
8045         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8046         ;;
8047       *-*-cygwin* )
8048         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8049         ;;
8050       * ) # otherwise, assume *nix
8051         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8052         ;;
8053     esac
8054     ;;
8055   *-*-cygwin* )
8056     case $build in
8057       *-*-mingw* ) # actually msys
8058         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8059         ;;
8060       *-*-cygwin* )
8061         lt_cv_to_host_file_cmd=func_convert_file_noop
8062         ;;
8063       * ) # otherwise, assume *nix
8064         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8065         ;;
8066     esac
8067     ;;
8068   * ) # unhandled hosts (and "normal" native builds)
8069     lt_cv_to_host_file_cmd=func_convert_file_noop
8070     ;;
8071 esac
8072
8073 fi
8074
8075 to_host_file_cmd=$lt_cv_to_host_file_cmd
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8077 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8078
8079
8080
8081
8082
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8084 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8085 if ${lt_cv_to_tool_file_cmd+:} false; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   #assume ordinary cross tools, or native build.
8089 lt_cv_to_tool_file_cmd=func_convert_file_noop
8090 case $host in
8091   *-*-mingw* )
8092     case $build in
8093       *-*-mingw* ) # actually msys
8094         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8095         ;;
8096     esac
8097     ;;
8098 esac
8099
8100 fi
8101
8102 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8104 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8105
8106
8107
8108
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8111 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8112 if ${lt_cv_ld_reload_flag+:} false; then :
8113   $as_echo_n "(cached) " >&6
8114 else
8115   lt_cv_ld_reload_flag='-r'
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8118 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8119 reload_flag=$lt_cv_ld_reload_flag
8120 case $reload_flag in
8121 "" | " "*) ;;
8122 *) reload_flag=" $reload_flag" ;;
8123 esac
8124 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8125 case $host_os in
8126   cygwin* | mingw* | pw32* | cegcc*)
8127     if test yes != "$GCC"; then
8128       reload_cmds=false
8129     fi
8130     ;;
8131   darwin*)
8132     if test yes = "$GCC"; then
8133       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8134     else
8135       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8136     fi
8137     ;;
8138 esac
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 if test -n "$ac_tool_prefix"; then
8149   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_OBJDUMP+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   if test -n "$OBJDUMP"; then
8157   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164     for ac_exec_ext in '' $ac_executable_extensions; do
8165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171   done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 OBJDUMP=$ac_cv_prog_OBJDUMP
8177 if test -n "$OBJDUMP"; then
8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8179 $as_echo "$OBJDUMP" >&6; }
8180 else
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185
8186 fi
8187 if test -z "$ac_cv_prog_OBJDUMP"; then
8188   ac_ct_OBJDUMP=$OBJDUMP
8189   # Extract the first word of "objdump", so it can be a program name with args.
8190 set dummy objdump; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8194   $as_echo_n "(cached) " >&6
8195 else
8196   if test -n "$ac_ct_OBJDUMP"; then
8197   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202   IFS=$as_save_IFS
8203   test -z "$as_dir" && as_dir=.
8204     for ac_exec_ext in '' $ac_executable_extensions; do
8205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208     break 2
8209   fi
8210 done
8211   done
8212 IFS=$as_save_IFS
8213
8214 fi
8215 fi
8216 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8217 if test -n "$ac_ct_OBJDUMP"; then
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8219 $as_echo "$ac_ct_OBJDUMP" >&6; }
8220 else
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224
8225   if test "x$ac_ct_OBJDUMP" = x; then
8226     OBJDUMP="false"
8227   else
8228     case $cross_compiling:$ac_tool_warned in
8229 yes:)
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8232 ac_tool_warned=yes ;;
8233 esac
8234     OBJDUMP=$ac_ct_OBJDUMP
8235   fi
8236 else
8237   OBJDUMP="$ac_cv_prog_OBJDUMP"
8238 fi
8239
8240 test -z "$OBJDUMP" && OBJDUMP=objdump
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8251 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8252 if ${lt_cv_deplibs_check_method+:} false; then :
8253   $as_echo_n "(cached) " >&6
8254 else
8255   lt_cv_file_magic_cmd='$MAGIC_CMD'
8256 lt_cv_file_magic_test_file=
8257 lt_cv_deplibs_check_method='unknown'
8258 # Need to set the preceding variable on all platforms that support
8259 # interlibrary dependencies.
8260 # 'none' -- dependencies not supported.
8261 # 'unknown' -- same as none, but documents that we really don't know.
8262 # 'pass_all' -- all dependencies passed with no checks.
8263 # 'test_compile' -- check by making test program.
8264 # 'file_magic [[regex]]' -- check by looking for files in library path
8265 # that responds to the $file_magic_cmd with a given extended regex.
8266 # If you have 'file' or equivalent on your system and you're not sure
8267 # whether 'pass_all' will *always* work, you probably want this one.
8268
8269 case $host_os in
8270 aix[4-9]*)
8271   lt_cv_deplibs_check_method=pass_all
8272   ;;
8273
8274 beos*)
8275   lt_cv_deplibs_check_method=pass_all
8276   ;;
8277
8278 bsdi[45]*)
8279   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8280   lt_cv_file_magic_cmd='/usr/bin/file -L'
8281   lt_cv_file_magic_test_file=/shlib/libc.so
8282   ;;
8283
8284 cygwin*)
8285   # func_win32_libid is a shell function defined in ltmain.sh
8286   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8287   lt_cv_file_magic_cmd='func_win32_libid'
8288   ;;
8289
8290 mingw* | pw32*)
8291   # Base MSYS/MinGW do not provide the 'file' command needed by
8292   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8293   # unless we find 'file', for example because we are cross-compiling.
8294   if ( file / ) >/dev/null 2>&1; then
8295     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8296     lt_cv_file_magic_cmd='func_win32_libid'
8297   else
8298     # Keep this pattern in sync with the one in func_win32_libid.
8299     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8300     lt_cv_file_magic_cmd='$OBJDUMP -f'
8301   fi
8302   ;;
8303
8304 cegcc*)
8305   # use the weaker test based on 'objdump'. See mingw*.
8306   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8307   lt_cv_file_magic_cmd='$OBJDUMP -f'
8308   ;;
8309
8310 darwin* | rhapsody*)
8311   lt_cv_deplibs_check_method=pass_all
8312   ;;
8313
8314 freebsd* | dragonfly*)
8315   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8316     case $host_cpu in
8317     i*86 )
8318       # Not sure whether the presence of OpenBSD here was a mistake.
8319       # Let's accept both of them until this is cleared up.
8320       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8321       lt_cv_file_magic_cmd=/usr/bin/file
8322       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8323       ;;
8324     esac
8325   else
8326     lt_cv_deplibs_check_method=pass_all
8327   fi
8328   ;;
8329
8330 haiku*)
8331   lt_cv_deplibs_check_method=pass_all
8332   ;;
8333
8334 hpux10.20* | hpux11*)
8335   lt_cv_file_magic_cmd=/usr/bin/file
8336   case $host_cpu in
8337   ia64*)
8338     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8339     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8340     ;;
8341   hppa*64*)
8342     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]'
8343     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8344     ;;
8345   *)
8346     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8347     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8348     ;;
8349   esac
8350   ;;
8351
8352 interix[3-9]*)
8353   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8354   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8355   ;;
8356
8357 irix5* | irix6* | nonstopux*)
8358   case $LD in
8359   *-32|*"-32 ") libmagic=32-bit;;
8360   *-n32|*"-n32 ") libmagic=N32;;
8361   *-64|*"-64 ") libmagic=64-bit;;
8362   *) libmagic=never-match;;
8363   esac
8364   lt_cv_deplibs_check_method=pass_all
8365   ;;
8366
8367 # This must be glibc/ELF.
8368 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8369   lt_cv_deplibs_check_method=pass_all
8370   ;;
8371
8372 netbsd*)
8373   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8375   else
8376     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8377   fi
8378   ;;
8379
8380 newos6*)
8381   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8382   lt_cv_file_magic_cmd=/usr/bin/file
8383   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8384   ;;
8385
8386 *nto* | *qnx*)
8387   lt_cv_deplibs_check_method=pass_all
8388   ;;
8389
8390 openbsd* | bitrig*)
8391   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8392     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8393   else
8394     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8395   fi
8396   ;;
8397
8398 osf3* | osf4* | osf5*)
8399   lt_cv_deplibs_check_method=pass_all
8400   ;;
8401
8402 rdos*)
8403   lt_cv_deplibs_check_method=pass_all
8404   ;;
8405
8406 solaris*)
8407   lt_cv_deplibs_check_method=pass_all
8408   ;;
8409
8410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8411   lt_cv_deplibs_check_method=pass_all
8412   ;;
8413
8414 sysv4 | sysv4.3*)
8415   case $host_vendor in
8416   motorola)
8417     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]'
8418     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8419     ;;
8420   ncr)
8421     lt_cv_deplibs_check_method=pass_all
8422     ;;
8423   sequent)
8424     lt_cv_file_magic_cmd='/bin/file'
8425     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8426     ;;
8427   sni)
8428     lt_cv_file_magic_cmd='/bin/file'
8429     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8430     lt_cv_file_magic_test_file=/lib/libc.so
8431     ;;
8432   siemens)
8433     lt_cv_deplibs_check_method=pass_all
8434     ;;
8435   pc)
8436     lt_cv_deplibs_check_method=pass_all
8437     ;;
8438   esac
8439   ;;
8440
8441 tpf*)
8442   lt_cv_deplibs_check_method=pass_all
8443   ;;
8444 esac
8445
8446 fi
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8448 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8449
8450 file_magic_glob=
8451 want_nocaseglob=no
8452 if test "$build" = "$host"; then
8453   case $host_os in
8454   mingw* | pw32*)
8455     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8456       want_nocaseglob=yes
8457     else
8458       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8459     fi
8460     ;;
8461   esac
8462 fi
8463
8464 file_magic_cmd=$lt_cv_file_magic_cmd
8465 deplibs_check_method=$lt_cv_deplibs_check_method
8466 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 if test -n "$ac_tool_prefix"; then
8490   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8491 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_DLLTOOL+:} false; then :
8495   $as_echo_n "(cached) " >&6
8496 else
8497   if test -n "$DLLTOOL"; then
8498   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503   IFS=$as_save_IFS
8504   test -z "$as_dir" && as_dir=.
8505     for ac_exec_ext in '' $ac_executable_extensions; do
8506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509     break 2
8510   fi
8511 done
8512   done
8513 IFS=$as_save_IFS
8514
8515 fi
8516 fi
8517 DLLTOOL=$ac_cv_prog_DLLTOOL
8518 if test -n "$DLLTOOL"; then
8519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8520 $as_echo "$DLLTOOL" >&6; }
8521 else
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8524 fi
8525
8526
8527 fi
8528 if test -z "$ac_cv_prog_DLLTOOL"; then
8529   ac_ct_DLLTOOL=$DLLTOOL
8530   # Extract the first word of "dlltool", so it can be a program name with args.
8531 set dummy dlltool; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8535   $as_echo_n "(cached) " >&6
8536 else
8537   if test -n "$ac_ct_DLLTOOL"; then
8538   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8542 do
8543   IFS=$as_save_IFS
8544   test -z "$as_dir" && as_dir=.
8545     for ac_exec_ext in '' $ac_executable_extensions; do
8546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549     break 2
8550   fi
8551 done
8552   done
8553 IFS=$as_save_IFS
8554
8555 fi
8556 fi
8557 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8558 if test -n "$ac_ct_DLLTOOL"; then
8559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8560 $as_echo "$ac_ct_DLLTOOL" >&6; }
8561 else
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8564 fi
8565
8566   if test "x$ac_ct_DLLTOOL" = x; then
8567     DLLTOOL="false"
8568   else
8569     case $cross_compiling:$ac_tool_warned in
8570 yes:)
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575     DLLTOOL=$ac_ct_DLLTOOL
8576   fi
8577 else
8578   DLLTOOL="$ac_cv_prog_DLLTOOL"
8579 fi
8580
8581 test -z "$DLLTOOL" && DLLTOOL=dlltool
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8593 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8594 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8595   $as_echo_n "(cached) " >&6
8596 else
8597   lt_cv_sharedlib_from_linklib_cmd='unknown'
8598
8599 case $host_os in
8600 cygwin* | mingw* | pw32* | cegcc*)
8601   # two different shell functions defined in ltmain.sh;
8602   # decide which one to use based on capabilities of $DLLTOOL
8603   case `$DLLTOOL --help 2>&1` in
8604   *--identify-strict*)
8605     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8606     ;;
8607   *)
8608     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8609     ;;
8610   esac
8611   ;;
8612 *)
8613   # fallback: assume linklib IS sharedlib
8614   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8615   ;;
8616 esac
8617
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8620 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8621 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8622 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8623
8624
8625
8626
8627
8628
8629
8630 if test -n "$ac_tool_prefix"; then
8631   for ac_prog in ar
8632   do
8633     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if ${ac_cv_prog_AR+:} false; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   if test -n "$AR"; then
8641   ac_cv_prog_AR="$AR" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646   IFS=$as_save_IFS
8647   test -z "$as_dir" && as_dir=.
8648     for ac_exec_ext in '' $ac_executable_extensions; do
8649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652     break 2
8653   fi
8654 done
8655   done
8656 IFS=$as_save_IFS
8657
8658 fi
8659 fi
8660 AR=$ac_cv_prog_AR
8661 if test -n "$AR"; then
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8663 $as_echo "$AR" >&6; }
8664 else
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669
8670     test -n "$AR" && break
8671   done
8672 fi
8673 if test -z "$AR"; then
8674   ac_ct_AR=$AR
8675   for ac_prog in ar
8676 do
8677   # Extract the first word of "$ac_prog", so it can be a program name with args.
8678 set dummy $ac_prog; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   if test -n "$ac_ct_AR"; then
8685   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690   IFS=$as_save_IFS
8691   test -z "$as_dir" && as_dir=.
8692     for ac_exec_ext in '' $ac_executable_extensions; do
8693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8694     ac_cv_prog_ac_ct_AR="$ac_prog"
8695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696     break 2
8697   fi
8698 done
8699   done
8700 IFS=$as_save_IFS
8701
8702 fi
8703 fi
8704 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8705 if test -n "$ac_ct_AR"; then
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8707 $as_echo "$ac_ct_AR" >&6; }
8708 else
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 fi
8712
8713
8714   test -n "$ac_ct_AR" && break
8715 done
8716
8717   if test "x$ac_ct_AR" = x; then
8718     AR="false"
8719   else
8720     case $cross_compiling:$ac_tool_warned in
8721 yes:)
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8724 ac_tool_warned=yes ;;
8725 esac
8726     AR=$ac_ct_AR
8727   fi
8728 fi
8729
8730 : ${AR=ar}
8731 : ${AR_FLAGS=cru}
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8744 $as_echo_n "checking for archiver @FILE support... " >&6; }
8745 if ${lt_cv_ar_at_file+:} false; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   lt_cv_ar_at_file=no
8749    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h.  */
8751
8752 int
8753 main ()
8754 {
8755
8756   ;
8757   return 0;
8758 }
8759 _ACEOF
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761   echo conftest.$ac_objext > conftest.lst
8762       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8763       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8764   (eval $lt_ar_try) 2>&5
8765   ac_status=$?
8766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8767   test $ac_status = 0; }
8768       if test 0 -eq "$ac_status"; then
8769         # Ensure the archiver fails upon bogus file names.
8770         rm -f conftest.$ac_objext libconftest.a
8771         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8772   (eval $lt_ar_try) 2>&5
8773   ac_status=$?
8774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8775   test $ac_status = 0; }
8776         if test 0 -ne "$ac_status"; then
8777           lt_cv_ar_at_file=@
8778         fi
8779       fi
8780       rm -f conftest.* libconftest.a
8781
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8787 $as_echo "$lt_cv_ar_at_file" >&6; }
8788
8789 if test no = "$lt_cv_ar_at_file"; then
8790   archiver_list_spec=
8791 else
8792   archiver_list_spec=$lt_cv_ar_at_file
8793 fi
8794
8795
8796
8797
8798
8799
8800
8801 if test -n "$ac_tool_prefix"; then
8802   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8803 set dummy ${ac_tool_prefix}strip; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_prog_STRIP+:} false; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   if test -n "$STRIP"; then
8810   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815   IFS=$as_save_IFS
8816   test -z "$as_dir" && as_dir=.
8817     for ac_exec_ext in '' $ac_executable_extensions; do
8818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821     break 2
8822   fi
8823 done
8824   done
8825 IFS=$as_save_IFS
8826
8827 fi
8828 fi
8829 STRIP=$ac_cv_prog_STRIP
8830 if test -n "$STRIP"; then
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8832 $as_echo "$STRIP" >&6; }
8833 else
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837
8838
8839 fi
8840 if test -z "$ac_cv_prog_STRIP"; then
8841   ac_ct_STRIP=$STRIP
8842   # Extract the first word of "strip", so it can be a program name with args.
8843 set dummy strip; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8847   $as_echo_n "(cached) " >&6
8848 else
8849   if test -n "$ac_ct_STRIP"; then
8850   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855   IFS=$as_save_IFS
8856   test -z "$as_dir" && as_dir=.
8857     for ac_exec_ext in '' $ac_executable_extensions; do
8858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859     ac_cv_prog_ac_ct_STRIP="strip"
8860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861     break 2
8862   fi
8863 done
8864   done
8865 IFS=$as_save_IFS
8866
8867 fi
8868 fi
8869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8870 if test -n "$ac_ct_STRIP"; then
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8872 $as_echo "$ac_ct_STRIP" >&6; }
8873 else
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8876 fi
8877
8878   if test "x$ac_ct_STRIP" = x; then
8879     STRIP=":"
8880   else
8881     case $cross_compiling:$ac_tool_warned in
8882 yes:)
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8885 ac_tool_warned=yes ;;
8886 esac
8887     STRIP=$ac_ct_STRIP
8888   fi
8889 else
8890   STRIP="$ac_cv_prog_STRIP"
8891 fi
8892
8893 test -z "$STRIP" && STRIP=:
8894
8895
8896
8897
8898
8899
8900 if test -n "$ac_tool_prefix"; then
8901   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if ${ac_cv_prog_RANLIB+:} false; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   if test -n "$RANLIB"; then
8909   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8910 else
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $PATH
8913 do
8914   IFS=$as_save_IFS
8915   test -z "$as_dir" && as_dir=.
8916     for ac_exec_ext in '' $ac_executable_extensions; do
8917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920     break 2
8921   fi
8922 done
8923   done
8924 IFS=$as_save_IFS
8925
8926 fi
8927 fi
8928 RANLIB=$ac_cv_prog_RANLIB
8929 if test -n "$RANLIB"; then
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8931 $as_echo "$RANLIB" >&6; }
8932 else
8933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8935 fi
8936
8937
8938 fi
8939 if test -z "$ac_cv_prog_RANLIB"; then
8940   ac_ct_RANLIB=$RANLIB
8941   # Extract the first word of "ranlib", so it can be a program name with args.
8942 set dummy ranlib; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8946   $as_echo_n "(cached) " >&6
8947 else
8948   if test -n "$ac_ct_RANLIB"; then
8949   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8950 else
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8953 do
8954   IFS=$as_save_IFS
8955   test -z "$as_dir" && as_dir=.
8956     for ac_exec_ext in '' $ac_executable_extensions; do
8957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958     ac_cv_prog_ac_ct_RANLIB="ranlib"
8959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960     break 2
8961   fi
8962 done
8963   done
8964 IFS=$as_save_IFS
8965
8966 fi
8967 fi
8968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8969 if test -n "$ac_ct_RANLIB"; then
8970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8971 $as_echo "$ac_ct_RANLIB" >&6; }
8972 else
8973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8975 fi
8976
8977   if test "x$ac_ct_RANLIB" = x; then
8978     RANLIB=":"
8979   else
8980     case $cross_compiling:$ac_tool_warned in
8981 yes:)
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8984 ac_tool_warned=yes ;;
8985 esac
8986     RANLIB=$ac_ct_RANLIB
8987   fi
8988 else
8989   RANLIB="$ac_cv_prog_RANLIB"
8990 fi
8991
8992 test -z "$RANLIB" && RANLIB=:
8993
8994
8995
8996
8997
8998
8999 # Determine commands to create old-style static archives.
9000 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9001 old_postinstall_cmds='chmod 644 $oldlib'
9002 old_postuninstall_cmds=
9003
9004 if test -n "$RANLIB"; then
9005   case $host_os in
9006   bitrig* | openbsd*)
9007     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9008     ;;
9009   *)
9010     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9011     ;;
9012   esac
9013   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9014 fi
9015
9016 case $host_os in
9017   darwin*)
9018     lock_old_archive_extraction=yes ;;
9019   *)
9020     lock_old_archive_extraction=no ;;
9021 esac
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043 for ac_prog in gawk mawk nawk awk
9044 do
9045   # Extract the first word of "$ac_prog", so it can be a program name with args.
9046 set dummy $ac_prog; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_prog_AWK+:} false; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   if test -n "$AWK"; then
9053   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9054 else
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9057 do
9058   IFS=$as_save_IFS
9059   test -z "$as_dir" && as_dir=.
9060     for ac_exec_ext in '' $ac_executable_extensions; do
9061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062     ac_cv_prog_AWK="$ac_prog"
9063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9064     break 2
9065   fi
9066 done
9067   done
9068 IFS=$as_save_IFS
9069
9070 fi
9071 fi
9072 AWK=$ac_cv_prog_AWK
9073 if test -n "$AWK"; then
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9075 $as_echo "$AWK" >&6; }
9076 else
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080
9081
9082   test -n "$AWK" && break
9083 done
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103 # If no C compiler was specified, use CC.
9104 LTCC=${LTCC-"$CC"}
9105
9106 # If no C compiler flags were specified, use CFLAGS.
9107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9108
9109 # Allow CC to be a program name with arguments.
9110 compiler=$CC
9111
9112
9113 # Check for command to grab the raw symbol name followed by C symbol from nm.
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9115 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9116 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9117   $as_echo_n "(cached) " >&6
9118 else
9119
9120 # These are sane defaults that work on at least a few old systems.
9121 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9122
9123 # Character class describing NM global symbol codes.
9124 symcode='[BCDEGRST]'
9125
9126 # Regexp to match symbols that can be accessed directly from C.
9127 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9128
9129 # Define system-specific variables.
9130 case $host_os in
9131 aix*)
9132   symcode='[BCDT]'
9133   ;;
9134 cygwin* | mingw* | pw32* | cegcc*)
9135   symcode='[ABCDGISTW]'
9136   ;;
9137 hpux*)
9138   if test ia64 = "$host_cpu"; then
9139     symcode='[ABCDEGRST]'
9140   fi
9141   ;;
9142 irix* | nonstopux*)
9143   symcode='[BCDEGRST]'
9144   ;;
9145 osf*)
9146   symcode='[BCDEGQRST]'
9147   ;;
9148 solaris*)
9149   symcode='[BDRT]'
9150   ;;
9151 sco3.2v5*)
9152   symcode='[DT]'
9153   ;;
9154 sysv4.2uw2*)
9155   symcode='[DT]'
9156   ;;
9157 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9158   symcode='[ABDT]'
9159   ;;
9160 sysv4)
9161   symcode='[DFNSTU]'
9162   ;;
9163 esac
9164
9165 # If we're using GNU nm, then use its standard symbol codes.
9166 case `$NM -V 2>&1` in
9167 *GNU* | *'with BFD'*)
9168   symcode='[ABCDGIRSTW]' ;;
9169 esac
9170
9171 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9172   # Gets list of data symbols to import.
9173   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9174   # Adjust the below global symbol transforms to fixup imported variables.
9175   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9176   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9177   lt_c_name_lib_hook="\
9178   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9179   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9180 else
9181   # Disable hooks by default.
9182   lt_cv_sys_global_symbol_to_import=
9183   lt_cdecl_hook=
9184   lt_c_name_hook=
9185   lt_c_name_lib_hook=
9186 fi
9187
9188 # Transform an extracted symbol line into a proper C declaration.
9189 # Some systems (esp. on ia64) link data and code symbols differently,
9190 # so use this general approach.
9191 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9192 $lt_cdecl_hook\
9193 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9194 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9195
9196 # Transform an extracted symbol line into symbol name and symbol address
9197 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9198 $lt_c_name_hook\
9199 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9200 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9201
9202 # Transform an extracted symbol line into symbol name with lib prefix and
9203 # symbol address.
9204 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9205 $lt_c_name_lib_hook\
9206 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9207 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9208 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9209
9210 # Handle CRLF in mingw tool chain
9211 opt_cr=
9212 case $build_os in
9213 mingw*)
9214   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9215   ;;
9216 esac
9217
9218 # Try without a prefix underscore, then with it.
9219 for ac_symprfx in "" "_"; do
9220
9221   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9222   symxfrm="\\1 $ac_symprfx\\2 \\2"
9223
9224   # Write the raw and C identifiers.
9225   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9226     # Fake it for dumpbin and say T for any non-static function,
9227     # D for any global variable and I for any imported variable.
9228     # Also find C++ and __fastcall symbols from MSVC++,
9229     # which start with @ or ?.
9230     lt_cv_sys_global_symbol_pipe="$AWK '"\
9231 "     {last_section=section; section=\$ 3};"\
9232 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9233 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9234 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9235 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9236 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9237 "     \$ 0!~/External *\|/{next};"\
9238 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9239 "     {if(hide[section]) next};"\
9240 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9241 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9242 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9243 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9244 "     ' prfx=^$ac_symprfx"
9245   else
9246     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9247   fi
9248   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9249
9250   # Check to see that the pipe works correctly.
9251   pipe_works=no
9252
9253   rm -f conftest*
9254   cat > conftest.$ac_ext <<_LT_EOF
9255 #ifdef __cplusplus
9256 extern "C" {
9257 #endif
9258 char nm_test_var;
9259 void nm_test_func(void);
9260 void nm_test_func(void){}
9261 #ifdef __cplusplus
9262 }
9263 #endif
9264 int main(){nm_test_var='a';nm_test_func();return(0);}
9265 _LT_EOF
9266
9267   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9268   (eval $ac_compile) 2>&5
9269   ac_status=$?
9270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9271   test $ac_status = 0; }; then
9272     # Now try to grab the symbols.
9273     nlist=conftest.nm
9274     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9275   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9276   ac_status=$?
9277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9278   test $ac_status = 0; } && test -s "$nlist"; then
9279       # Try sorting and uniquifying the output.
9280       if sort "$nlist" | uniq > "$nlist"T; then
9281         mv -f "$nlist"T "$nlist"
9282       else
9283         rm -f "$nlist"T
9284       fi
9285
9286       # Make sure that we snagged all the symbols we need.
9287       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9288         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9289           cat <<_LT_EOF > conftest.$ac_ext
9290 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9291 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9292 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9293    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9294 # define LT_DLSYM_CONST
9295 #elif defined __osf__
9296 /* This system does not cope well with relocations in const data.  */
9297 # define LT_DLSYM_CONST
9298 #else
9299 # define LT_DLSYM_CONST const
9300 #endif
9301
9302 #ifdef __cplusplus
9303 extern "C" {
9304 #endif
9305
9306 _LT_EOF
9307           # Now generate the symbol file.
9308           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9309
9310           cat <<_LT_EOF >> conftest.$ac_ext
9311
9312 /* The mapping between symbol names and symbols.  */
9313 LT_DLSYM_CONST struct {
9314   const char *name;
9315   void       *address;
9316 }
9317 lt__PROGRAM__LTX_preloaded_symbols[] =
9318 {
9319   { "@PROGRAM@", (void *) 0 },
9320 _LT_EOF
9321           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9322           cat <<\_LT_EOF >> conftest.$ac_ext
9323   {0, (void *) 0}
9324 };
9325
9326 /* This works around a problem in FreeBSD linker */
9327 #ifdef FREEBSD_WORKAROUND
9328 static const void *lt_preloaded_setup() {
9329   return lt__PROGRAM__LTX_preloaded_symbols;
9330 }
9331 #endif
9332
9333 #ifdef __cplusplus
9334 }
9335 #endif
9336 _LT_EOF
9337           # Now try linking the two files.
9338           mv conftest.$ac_objext conftstm.$ac_objext
9339           lt_globsym_save_LIBS=$LIBS
9340           lt_globsym_save_CFLAGS=$CFLAGS
9341           LIBS=conftstm.$ac_objext
9342           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9343           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9344   (eval $ac_link) 2>&5
9345   ac_status=$?
9346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9347   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9348             pipe_works=yes
9349           fi
9350           LIBS=$lt_globsym_save_LIBS
9351           CFLAGS=$lt_globsym_save_CFLAGS
9352         else
9353           echo "cannot find nm_test_func in $nlist" >&5
9354         fi
9355       else
9356         echo "cannot find nm_test_var in $nlist" >&5
9357       fi
9358     else
9359       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9360     fi
9361   else
9362     echo "$progname: failed program was:" >&5
9363     cat conftest.$ac_ext >&5
9364   fi
9365   rm -rf conftest* conftst*
9366
9367   # Do not use the global_symbol_pipe unless it works.
9368   if test yes = "$pipe_works"; then
9369     break
9370   else
9371     lt_cv_sys_global_symbol_pipe=
9372   fi
9373 done
9374
9375 fi
9376
9377 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9378   lt_cv_sys_global_symbol_to_cdecl=
9379 fi
9380 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9382 $as_echo "failed" >&6; }
9383 else
9384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9385 $as_echo "ok" >&6; }
9386 fi
9387
9388 # Response file support.
9389 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9390   nm_file_list_spec='@'
9391 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9392   nm_file_list_spec='@'
9393 fi
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9432 $as_echo_n "checking for sysroot... " >&6; }
9433
9434 # Check whether --with-sysroot was given.
9435 if test "${with_sysroot+set}" = set; then :
9436   withval=$with_sysroot;
9437 else
9438   with_sysroot=no
9439 fi
9440
9441
9442 lt_sysroot=
9443 case $with_sysroot in #(
9444  yes)
9445    if test yes = "$GCC"; then
9446      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9447    fi
9448    ;; #(
9449  /*)
9450    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9451    ;; #(
9452  no|'')
9453    ;; #(
9454  *)
9455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9456 $as_echo "$with_sysroot" >&6; }
9457    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9458    ;;
9459 esac
9460
9461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9462 $as_echo "${lt_sysroot:-no}" >&6; }
9463
9464
9465
9466
9467
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9469 $as_echo_n "checking for a working dd... " >&6; }
9470 if ${ac_cv_path_lt_DD+:} false; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473   printf 0123456789abcdef0123456789abcdef >conftest.i
9474 cat conftest.i conftest.i >conftest2.i
9475 : ${lt_DD:=$DD}
9476 if test -z "$lt_DD"; then
9477   ac_path_lt_DD_found=false
9478   # Loop through the user's path and test for each of PROGNAME-LIST
9479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in $PATH
9481 do
9482   IFS=$as_save_IFS
9483   test -z "$as_dir" && as_dir=.
9484     for ac_prog in dd; do
9485     for ac_exec_ext in '' $ac_executable_extensions; do
9486       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9487       as_fn_executable_p "$ac_path_lt_DD" || continue
9488 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9489   cmp -s conftest.i conftest.out \
9490   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9491 fi
9492       $ac_path_lt_DD_found && break 3
9493     done
9494   done
9495   done
9496 IFS=$as_save_IFS
9497   if test -z "$ac_cv_path_lt_DD"; then
9498     :
9499   fi
9500 else
9501   ac_cv_path_lt_DD=$lt_DD
9502 fi
9503
9504 rm -f conftest.i conftest2.i conftest.out
9505 fi
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9507 $as_echo "$ac_cv_path_lt_DD" >&6; }
9508
9509
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9511 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9512 if ${lt_cv_truncate_bin+:} false; then :
9513   $as_echo_n "(cached) " >&6
9514 else
9515   printf 0123456789abcdef0123456789abcdef >conftest.i
9516 cat conftest.i conftest.i >conftest2.i
9517 lt_cv_truncate_bin=
9518 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9519   cmp -s conftest.i conftest.out \
9520   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9521 fi
9522 rm -f conftest.i conftest2.i conftest.out
9523 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9524 fi
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9526 $as_echo "$lt_cv_truncate_bin" >&6; }
9527
9528
9529
9530
9531
9532
9533 # Check whether --enable-libtool-lock was given.
9534 if test "${enable_libtool_lock+set}" = set; then :
9535   enableval=$enable_libtool_lock;
9536 fi
9537
9538 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9539
9540 # Some flags need to be propagated to the compiler or linker for good
9541 # libtool support.
9542 case $host in
9543 ia64-*-hpux*)
9544   # Find out what ABI is being produced by ac_compile, and set mode
9545   # options accordingly.
9546   echo 'int i;' > conftest.$ac_ext
9547   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9548   (eval $ac_compile) 2>&5
9549   ac_status=$?
9550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9551   test $ac_status = 0; }; then
9552     case `/usr/bin/file conftest.$ac_objext` in
9553       *ELF-32*)
9554         HPUX_IA64_MODE=32
9555         ;;
9556       *ELF-64*)
9557         HPUX_IA64_MODE=64
9558         ;;
9559     esac
9560   fi
9561   rm -rf conftest*
9562   ;;
9563 *-*-irix6*)
9564   # Find out what ABI is being produced by ac_compile, and set linker
9565   # options accordingly.
9566   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9567   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9568   (eval $ac_compile) 2>&5
9569   ac_status=$?
9570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9571   test $ac_status = 0; }; then
9572     if test yes = "$lt_cv_prog_gnu_ld"; then
9573       case `/usr/bin/file conftest.$ac_objext` in
9574         *32-bit*)
9575           LD="${LD-ld} -melf32bsmip"
9576           ;;
9577         *N32*)
9578           LD="${LD-ld} -melf32bmipn32"
9579           ;;
9580         *64-bit*)
9581           LD="${LD-ld} -melf64bmip"
9582         ;;
9583       esac
9584     else
9585       case `/usr/bin/file conftest.$ac_objext` in
9586         *32-bit*)
9587           LD="${LD-ld} -32"
9588           ;;
9589         *N32*)
9590           LD="${LD-ld} -n32"
9591           ;;
9592         *64-bit*)
9593           LD="${LD-ld} -64"
9594           ;;
9595       esac
9596     fi
9597   fi
9598   rm -rf conftest*
9599   ;;
9600
9601 mips64*-*linux*)
9602   # Find out what ABI is being produced by ac_compile, and set linker
9603   # options accordingly.
9604   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9605   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606   (eval $ac_compile) 2>&5
9607   ac_status=$?
9608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609   test $ac_status = 0; }; then
9610     emul=elf
9611     case `/usr/bin/file conftest.$ac_objext` in
9612       *32-bit*)
9613         emul="${emul}32"
9614         ;;
9615       *64-bit*)
9616         emul="${emul}64"
9617         ;;
9618     esac
9619     case `/usr/bin/file conftest.$ac_objext` in
9620       *MSB*)
9621         emul="${emul}btsmip"
9622         ;;
9623       *LSB*)
9624         emul="${emul}ltsmip"
9625         ;;
9626     esac
9627     case `/usr/bin/file conftest.$ac_objext` in
9628       *N32*)
9629         emul="${emul}n32"
9630         ;;
9631     esac
9632     LD="${LD-ld} -m $emul"
9633   fi
9634   rm -rf conftest*
9635   ;;
9636
9637 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9638 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9639   # Find out what ABI is being produced by ac_compile, and set linker
9640   # options accordingly.  Note that the listed cases only cover the
9641   # situations where additional linker options are needed (such as when
9642   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9643   # vice versa); the common cases where no linker options are needed do
9644   # not appear in the list.
9645   echo 'int i;' > conftest.$ac_ext
9646   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9647   (eval $ac_compile) 2>&5
9648   ac_status=$?
9649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9650   test $ac_status = 0; }; then
9651     case `/usr/bin/file conftest.o` in
9652       *32-bit*)
9653         case $host in
9654           x86_64-*kfreebsd*-gnu)
9655             LD="${LD-ld} -m elf_i386_fbsd"
9656             ;;
9657           x86_64-*linux*)
9658             case `/usr/bin/file conftest.o` in
9659               *x86-64*)
9660                 LD="${LD-ld} -m elf32_x86_64"
9661                 ;;
9662               *)
9663                 LD="${LD-ld} -m elf_i386"
9664                 ;;
9665             esac
9666             ;;
9667           powerpc64le-*linux*)
9668             LD="${LD-ld} -m elf32lppclinux"
9669             ;;
9670           powerpc64-*linux*)
9671             LD="${LD-ld} -m elf32ppclinux"
9672             ;;
9673           s390x-*linux*)
9674             LD="${LD-ld} -m elf_s390"
9675             ;;
9676           sparc64-*linux*)
9677             LD="${LD-ld} -m elf32_sparc"
9678             ;;
9679         esac
9680         ;;
9681       *64-bit*)
9682         case $host in
9683           x86_64-*kfreebsd*-gnu)
9684             LD="${LD-ld} -m elf_x86_64_fbsd"
9685             ;;
9686           x86_64-*linux*)
9687             LD="${LD-ld} -m elf_x86_64"
9688             ;;
9689           powerpcle-*linux*)
9690             LD="${LD-ld} -m elf64lppc"
9691             ;;
9692           powerpc-*linux*)
9693             LD="${LD-ld} -m elf64ppc"
9694             ;;
9695           s390*-*linux*|s390*-*tpf*)
9696             LD="${LD-ld} -m elf64_s390"
9697             ;;
9698           sparc*-*linux*)
9699             LD="${LD-ld} -m elf64_sparc"
9700             ;;
9701         esac
9702         ;;
9703     esac
9704   fi
9705   rm -rf conftest*
9706   ;;
9707
9708 *-*-sco3.2v5*)
9709   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9710   SAVE_CFLAGS=$CFLAGS
9711   CFLAGS="$CFLAGS -belf"
9712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9713 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9714 if ${lt_cv_cc_needs_belf+:} false; then :
9715   $as_echo_n "(cached) " >&6
9716 else
9717   ac_ext=c
9718 ac_cpp='$CPP $CPPFLAGS'
9719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9722
9723      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h.  */
9725
9726 int
9727 main ()
9728 {
9729
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"; then :
9735   lt_cv_cc_needs_belf=yes
9736 else
9737   lt_cv_cc_needs_belf=no
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext \
9740     conftest$ac_exeext conftest.$ac_ext
9741      ac_ext=c
9742 ac_cpp='$CPP $CPPFLAGS'
9743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9746
9747 fi
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9749 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9750   if test yes != "$lt_cv_cc_needs_belf"; then
9751     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9752     CFLAGS=$SAVE_CFLAGS
9753   fi
9754   ;;
9755 *-*solaris*)
9756   # Find out what ABI is being produced by ac_compile, and set linker
9757   # options accordingly.
9758   echo 'int i;' > conftest.$ac_ext
9759   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9760   (eval $ac_compile) 2>&5
9761   ac_status=$?
9762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9763   test $ac_status = 0; }; then
9764     case `/usr/bin/file conftest.o` in
9765     *64-bit*)
9766       case $lt_cv_prog_gnu_ld in
9767       yes*)
9768         case $host in
9769         i?86-*-solaris*|x86_64-*-solaris*)
9770           LD="${LD-ld} -m elf_x86_64"
9771           ;;
9772         sparc*-*-solaris*)
9773           LD="${LD-ld} -m elf64_sparc"
9774           ;;
9775         esac
9776         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9777         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9778           LD=${LD-ld}_sol2
9779         fi
9780         ;;
9781       *)
9782         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9783           LD="${LD-ld} -64"
9784         fi
9785         ;;
9786       esac
9787       ;;
9788     esac
9789   fi
9790   rm -rf conftest*
9791   ;;
9792 esac
9793
9794 need_locks=$enable_libtool_lock
9795
9796 if test -n "$ac_tool_prefix"; then
9797   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9798 set dummy ${ac_tool_prefix}mt; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9802   $as_echo_n "(cached) " >&6
9803 else
9804   if test -n "$MANIFEST_TOOL"; then
9805   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9806 else
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9809 do
9810   IFS=$as_save_IFS
9811   test -z "$as_dir" && as_dir=.
9812     for ac_exec_ext in '' $ac_executable_extensions; do
9813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9814     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9816     break 2
9817   fi
9818 done
9819   done
9820 IFS=$as_save_IFS
9821
9822 fi
9823 fi
9824 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9825 if test -n "$MANIFEST_TOOL"; then
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9827 $as_echo "$MANIFEST_TOOL" >&6; }
9828 else
9829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 $as_echo "no" >&6; }
9831 fi
9832
9833
9834 fi
9835 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9836   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9837   # Extract the first word of "mt", so it can be a program name with args.
9838 set dummy mt; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9842   $as_echo_n "(cached) " >&6
9843 else
9844   if test -n "$ac_ct_MANIFEST_TOOL"; then
9845   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9846 else
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH
9849 do
9850   IFS=$as_save_IFS
9851   test -z "$as_dir" && as_dir=.
9852     for ac_exec_ext in '' $ac_executable_extensions; do
9853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856     break 2
9857   fi
9858 done
9859   done
9860 IFS=$as_save_IFS
9861
9862 fi
9863 fi
9864 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9865 if test -n "$ac_ct_MANIFEST_TOOL"; then
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9867 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9868 else
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872
9873   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9874     MANIFEST_TOOL=":"
9875   else
9876     case $cross_compiling:$ac_tool_warned in
9877 yes:)
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9880 ac_tool_warned=yes ;;
9881 esac
9882     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9883   fi
9884 else
9885   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9886 fi
9887
9888 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9890 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9891 if ${lt_cv_path_mainfest_tool+:} false; then :
9892   $as_echo_n "(cached) " >&6
9893 else
9894   lt_cv_path_mainfest_tool=no
9895   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9896   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9897   cat conftest.err >&5
9898   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9899     lt_cv_path_mainfest_tool=yes
9900   fi
9901   rm -f conftest*
9902 fi
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9904 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9905 if test yes != "$lt_cv_path_mainfest_tool"; then
9906   MANIFEST_TOOL=:
9907 fi
9908
9909
9910
9911
9912
9913
9914   case $host_os in
9915     rhapsody* | darwin*)
9916     if test -n "$ac_tool_prefix"; then
9917   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9918 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9922   $as_echo_n "(cached) " >&6
9923 else
9924   if test -n "$DSYMUTIL"; then
9925   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9926 else
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9929 do
9930   IFS=$as_save_IFS
9931   test -z "$as_dir" && as_dir=.
9932     for ac_exec_ext in '' $ac_executable_extensions; do
9933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9934     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936     break 2
9937   fi
9938 done
9939   done
9940 IFS=$as_save_IFS
9941
9942 fi
9943 fi
9944 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9945 if test -n "$DSYMUTIL"; then
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9947 $as_echo "$DSYMUTIL" >&6; }
9948 else
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9951 fi
9952
9953
9954 fi
9955 if test -z "$ac_cv_prog_DSYMUTIL"; then
9956   ac_ct_DSYMUTIL=$DSYMUTIL
9957   # Extract the first word of "dsymutil", so it can be a program name with args.
9958 set dummy dsymutil; ac_word=$2
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960 $as_echo_n "checking for $ac_word... " >&6; }
9961 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9962   $as_echo_n "(cached) " >&6
9963 else
9964   if test -n "$ac_ct_DSYMUTIL"; then
9965   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9966 else
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9969 do
9970   IFS=$as_save_IFS
9971   test -z "$as_dir" && as_dir=.
9972     for ac_exec_ext in '' $ac_executable_extensions; do
9973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976     break 2
9977   fi
9978 done
9979   done
9980 IFS=$as_save_IFS
9981
9982 fi
9983 fi
9984 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9985 if test -n "$ac_ct_DSYMUTIL"; then
9986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9987 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9988 else
9989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 $as_echo "no" >&6; }
9991 fi
9992
9993   if test "x$ac_ct_DSYMUTIL" = x; then
9994     DSYMUTIL=":"
9995   else
9996     case $cross_compiling:$ac_tool_warned in
9997 yes:)
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10000 ac_tool_warned=yes ;;
10001 esac
10002     DSYMUTIL=$ac_ct_DSYMUTIL
10003   fi
10004 else
10005   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10006 fi
10007
10008     if test -n "$ac_tool_prefix"; then
10009   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10010 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_prog_NMEDIT+:} false; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016   if test -n "$NMEDIT"; then
10017   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10018 else
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10021 do
10022   IFS=$as_save_IFS
10023   test -z "$as_dir" && as_dir=.
10024     for ac_exec_ext in '' $ac_executable_extensions; do
10025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10026     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028     break 2
10029   fi
10030 done
10031   done
10032 IFS=$as_save_IFS
10033
10034 fi
10035 fi
10036 NMEDIT=$ac_cv_prog_NMEDIT
10037 if test -n "$NMEDIT"; then
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10039 $as_echo "$NMEDIT" >&6; }
10040 else
10041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10043 fi
10044
10045
10046 fi
10047 if test -z "$ac_cv_prog_NMEDIT"; then
10048   ac_ct_NMEDIT=$NMEDIT
10049   # Extract the first word of "nmedit", so it can be a program name with args.
10050 set dummy nmedit; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10054   $as_echo_n "(cached) " >&6
10055 else
10056   if test -n "$ac_ct_NMEDIT"; then
10057   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10061 do
10062   IFS=$as_save_IFS
10063   test -z "$as_dir" && as_dir=.
10064     for ac_exec_ext in '' $ac_executable_extensions; do
10065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10066     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068     break 2
10069   fi
10070 done
10071   done
10072 IFS=$as_save_IFS
10073
10074 fi
10075 fi
10076 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10077 if test -n "$ac_ct_NMEDIT"; then
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10079 $as_echo "$ac_ct_NMEDIT" >&6; }
10080 else
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084
10085   if test "x$ac_ct_NMEDIT" = x; then
10086     NMEDIT=":"
10087   else
10088     case $cross_compiling:$ac_tool_warned in
10089 yes:)
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10092 ac_tool_warned=yes ;;
10093 esac
10094     NMEDIT=$ac_ct_NMEDIT
10095   fi
10096 else
10097   NMEDIT="$ac_cv_prog_NMEDIT"
10098 fi
10099
10100     if test -n "$ac_tool_prefix"; then
10101   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10102 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_prog_LIPO+:} false; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   if test -n "$LIPO"; then
10109   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10110 else
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10113 do
10114   IFS=$as_save_IFS
10115   test -z "$as_dir" && as_dir=.
10116     for ac_exec_ext in '' $ac_executable_extensions; do
10117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120     break 2
10121   fi
10122 done
10123   done
10124 IFS=$as_save_IFS
10125
10126 fi
10127 fi
10128 LIPO=$ac_cv_prog_LIPO
10129 if test -n "$LIPO"; then
10130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10131 $as_echo "$LIPO" >&6; }
10132 else
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10135 fi
10136
10137
10138 fi
10139 if test -z "$ac_cv_prog_LIPO"; then
10140   ac_ct_LIPO=$LIPO
10141   # Extract the first word of "lipo", so it can be a program name with args.
10142 set dummy lipo; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148   if test -n "$ac_ct_LIPO"; then
10149   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10150 else
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10153 do
10154   IFS=$as_save_IFS
10155   test -z "$as_dir" && as_dir=.
10156     for ac_exec_ext in '' $ac_executable_extensions; do
10157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158     ac_cv_prog_ac_ct_LIPO="lipo"
10159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160     break 2
10161   fi
10162 done
10163   done
10164 IFS=$as_save_IFS
10165
10166 fi
10167 fi
10168 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10169 if test -n "$ac_ct_LIPO"; then
10170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10171 $as_echo "$ac_ct_LIPO" >&6; }
10172 else
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10175 fi
10176
10177   if test "x$ac_ct_LIPO" = x; then
10178     LIPO=":"
10179   else
10180     case $cross_compiling:$ac_tool_warned in
10181 yes:)
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10184 ac_tool_warned=yes ;;
10185 esac
10186     LIPO=$ac_ct_LIPO
10187   fi
10188 else
10189   LIPO="$ac_cv_prog_LIPO"
10190 fi
10191
10192     if test -n "$ac_tool_prefix"; then
10193   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10194 set dummy ${ac_tool_prefix}otool; ac_word=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if ${ac_cv_prog_OTOOL+:} false; then :
10198   $as_echo_n "(cached) " >&6
10199 else
10200   if test -n "$OTOOL"; then
10201   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10202 else
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10205 do
10206   IFS=$as_save_IFS
10207   test -z "$as_dir" && as_dir=.
10208     for ac_exec_ext in '' $ac_executable_extensions; do
10209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212     break 2
10213   fi
10214 done
10215   done
10216 IFS=$as_save_IFS
10217
10218 fi
10219 fi
10220 OTOOL=$ac_cv_prog_OTOOL
10221 if test -n "$OTOOL"; then
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10223 $as_echo "$OTOOL" >&6; }
10224 else
10225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10227 fi
10228
10229
10230 fi
10231 if test -z "$ac_cv_prog_OTOOL"; then
10232   ac_ct_OTOOL=$OTOOL
10233   # Extract the first word of "otool", so it can be a program name with args.
10234 set dummy otool; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10238   $as_echo_n "(cached) " >&6
10239 else
10240   if test -n "$ac_ct_OTOOL"; then
10241   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10242 else
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10245 do
10246   IFS=$as_save_IFS
10247   test -z "$as_dir" && as_dir=.
10248     for ac_exec_ext in '' $ac_executable_extensions; do
10249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10250     ac_cv_prog_ac_ct_OTOOL="otool"
10251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252     break 2
10253   fi
10254 done
10255   done
10256 IFS=$as_save_IFS
10257
10258 fi
10259 fi
10260 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10261 if test -n "$ac_ct_OTOOL"; then
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10263 $as_echo "$ac_ct_OTOOL" >&6; }
10264 else
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10267 fi
10268
10269   if test "x$ac_ct_OTOOL" = x; then
10270     OTOOL=":"
10271   else
10272     case $cross_compiling:$ac_tool_warned in
10273 yes:)
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10276 ac_tool_warned=yes ;;
10277 esac
10278     OTOOL=$ac_ct_OTOOL
10279   fi
10280 else
10281   OTOOL="$ac_cv_prog_OTOOL"
10282 fi
10283
10284     if test -n "$ac_tool_prefix"; then
10285   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10286 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_OTOOL64+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$OTOOL64"; then
10293   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 OTOOL64=$ac_cv_prog_OTOOL64
10313 if test -n "$OTOOL64"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10315 $as_echo "$OTOOL64" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321
10322 fi
10323 if test -z "$ac_cv_prog_OTOOL64"; then
10324   ac_ct_OTOOL64=$OTOOL64
10325   # Extract the first word of "otool64", so it can be a program name with args.
10326 set dummy otool64; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10330   $as_echo_n "(cached) " >&6
10331 else
10332   if test -n "$ac_ct_OTOOL64"; then
10333   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338   IFS=$as_save_IFS
10339   test -z "$as_dir" && as_dir=.
10340     for ac_exec_ext in '' $ac_executable_extensions; do
10341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342     ac_cv_prog_ac_ct_OTOOL64="otool64"
10343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344     break 2
10345   fi
10346 done
10347   done
10348 IFS=$as_save_IFS
10349
10350 fi
10351 fi
10352 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10353 if test -n "$ac_ct_OTOOL64"; then
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10355 $as_echo "$ac_ct_OTOOL64" >&6; }
10356 else
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360
10361   if test "x$ac_ct_OTOOL64" = x; then
10362     OTOOL64=":"
10363   else
10364     case $cross_compiling:$ac_tool_warned in
10365 yes:)
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10368 ac_tool_warned=yes ;;
10369 esac
10370     OTOOL64=$ac_ct_OTOOL64
10371   fi
10372 else
10373   OTOOL64="$ac_cv_prog_OTOOL64"
10374 fi
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10403 $as_echo_n "checking for -single_module linker flag... " >&6; }
10404 if ${lt_cv_apple_cc_single_mod+:} false; then :
10405   $as_echo_n "(cached) " >&6
10406 else
10407   lt_cv_apple_cc_single_mod=no
10408       if test -z "$LT_MULTI_MODULE"; then
10409         # By default we will add the -single_module flag. You can override
10410         # by either setting the environment variable LT_MULTI_MODULE
10411         # non-empty at configure time, or by adding -multi_module to the
10412         # link flags.
10413         rm -rf libconftest.dylib*
10414         echo "int foo(void){return 1;}" > conftest.c
10415         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10416 -dynamiclib -Wl,-single_module conftest.c" >&5
10417         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10418           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10419         _lt_result=$?
10420         # If there is a non-empty error log, and "single_module"
10421         # appears in it, assume the flag caused a linker warning
10422         if test -s conftest.err && $GREP single_module conftest.err; then
10423           cat conftest.err >&5
10424         # Otherwise, if the output was created with a 0 exit code from
10425         # the compiler, it worked.
10426         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10427           lt_cv_apple_cc_single_mod=yes
10428         else
10429           cat conftest.err >&5
10430         fi
10431         rm -rf libconftest.dylib*
10432         rm -f conftest.*
10433       fi
10434 fi
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10436 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10437
10438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10439 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10440 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10441   $as_echo_n "(cached) " >&6
10442 else
10443   lt_cv_ld_exported_symbols_list=no
10444       save_LDFLAGS=$LDFLAGS
10445       echo "_main" > conftest.sym
10446       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h.  */
10449
10450 int
10451 main ()
10452 {
10453
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 if ac_fn_c_try_link "$LINENO"; then :
10459   lt_cv_ld_exported_symbols_list=yes
10460 else
10461   lt_cv_ld_exported_symbols_list=no
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext \
10464     conftest$ac_exeext conftest.$ac_ext
10465         LDFLAGS=$save_LDFLAGS
10466
10467 fi
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10469 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10470
10471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10472 $as_echo_n "checking for -force_load linker flag... " >&6; }
10473 if ${lt_cv_ld_force_load+:} false; then :
10474   $as_echo_n "(cached) " >&6
10475 else
10476   lt_cv_ld_force_load=no
10477       cat > conftest.c << _LT_EOF
10478 int forced_loaded() { return 2;}
10479 _LT_EOF
10480       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10481       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10482       echo "$AR cru libconftest.a conftest.o" >&5
10483       $AR cru libconftest.a conftest.o 2>&5
10484       echo "$RANLIB libconftest.a" >&5
10485       $RANLIB libconftest.a 2>&5
10486       cat > conftest.c << _LT_EOF
10487 int main() { return 0;}
10488 _LT_EOF
10489       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10490       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10491       _lt_result=$?
10492       if test -s conftest.err && $GREP force_load conftest.err; then
10493         cat conftest.err >&5
10494       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10495         lt_cv_ld_force_load=yes
10496       else
10497         cat conftest.err >&5
10498       fi
10499         rm -f conftest.err libconftest.a conftest conftest.c
10500         rm -rf conftest.dSYM
10501
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10504 $as_echo "$lt_cv_ld_force_load" >&6; }
10505     case $host_os in
10506     rhapsody* | darwin1.[012])
10507       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10508     darwin1.*)
10509       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10510     darwin*) # darwin 5.x on
10511       # if running on 10.5 or later, the deployment target defaults
10512       # to the OS version, if on x86, and 10.4, the deployment
10513       # target defaults to 10.4. Don't you love it?
10514       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10515         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10516           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10517         10.[012][,.]*)
10518           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10519         10.*)
10520           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10521       esac
10522     ;;
10523   esac
10524     if test yes = "$lt_cv_apple_cc_single_mod"; then
10525       _lt_dar_single_mod='$single_module'
10526     fi
10527     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10528       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10529     else
10530       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10531     fi
10532     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10533       _lt_dsymutil='~$DSYMUTIL $lib || :'
10534     else
10535       _lt_dsymutil=
10536     fi
10537     ;;
10538   esac
10539
10540 for ac_header in dlfcn.h
10541 do :
10542   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10543 "
10544 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10545   cat >>confdefs.h <<_ACEOF
10546 #define HAVE_DLFCN_H 1
10547 _ACEOF
10548
10549 fi
10550
10551 done
10552
10553
10554
10555 func_stripname_cnf ()
10556 {
10557   case $2 in
10558   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10559   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10560   esac
10561 } # func_stripname_cnf
10562
10563
10564
10565
10566
10567 # Set options
10568
10569
10570
10571         enable_dlopen=no
10572
10573
10574   enable_win32_dll=no
10575
10576
10577             # Check whether --enable-shared was given.
10578 if test "${enable_shared+set}" = set; then :
10579   enableval=$enable_shared; p=${PACKAGE-default}
10580     case $enableval in
10581     yes) enable_shared=yes ;;
10582     no) enable_shared=no ;;
10583     *)
10584       enable_shared=no
10585       # Look at the argument we got.  We use all the common list separators.
10586       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10587       for pkg in $enableval; do
10588         IFS=$lt_save_ifs
10589         if test "X$pkg" = "X$p"; then
10590           enable_shared=yes
10591         fi
10592       done
10593       IFS=$lt_save_ifs
10594       ;;
10595     esac
10596 else
10597   enable_shared=yes
10598 fi
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608   # Check whether --enable-static was given.
10609 if test "${enable_static+set}" = set; then :
10610   enableval=$enable_static; p=${PACKAGE-default}
10611     case $enableval in
10612     yes) enable_static=yes ;;
10613     no) enable_static=no ;;
10614     *)
10615      enable_static=no
10616       # Look at the argument we got.  We use all the common list separators.
10617       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10618       for pkg in $enableval; do
10619         IFS=$lt_save_ifs
10620         if test "X$pkg" = "X$p"; then
10621           enable_static=yes
10622         fi
10623       done
10624       IFS=$lt_save_ifs
10625       ;;
10626     esac
10627 else
10628   enable_static=yes
10629 fi
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640 # Check whether --with-pic was given.
10641 if test "${with_pic+set}" = set; then :
10642   withval=$with_pic; lt_p=${PACKAGE-default}
10643     case $withval in
10644     yes|no) pic_mode=$withval ;;
10645     *)
10646       pic_mode=default
10647       # Look at the argument we got.  We use all the common list separators.
10648       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10649       for lt_pkg in $withval; do
10650         IFS=$lt_save_ifs
10651         if test "X$lt_pkg" = "X$lt_p"; then
10652           pic_mode=yes
10653         fi
10654       done
10655       IFS=$lt_save_ifs
10656       ;;
10657     esac
10658 else
10659   pic_mode=default
10660 fi
10661
10662
10663
10664
10665
10666
10667
10668
10669   # Check whether --enable-fast-install was given.
10670 if test "${enable_fast_install+set}" = set; then :
10671   enableval=$enable_fast_install; p=${PACKAGE-default}
10672     case $enableval in
10673     yes) enable_fast_install=yes ;;
10674     no) enable_fast_install=no ;;
10675     *)
10676       enable_fast_install=no
10677       # Look at the argument we got.  We use all the common list separators.
10678       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10679       for pkg in $enableval; do
10680         IFS=$lt_save_ifs
10681         if test "X$pkg" = "X$p"; then
10682           enable_fast_install=yes
10683         fi
10684       done
10685       IFS=$lt_save_ifs
10686       ;;
10687     esac
10688 else
10689   enable_fast_install=yes
10690 fi
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702 # This can be used to rebuild libtool when needed
10703 LIBTOOL_DEPS=$ltmain
10704
10705 # Always use our own libtool.
10706 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737 test -z "$LN_S" && LN_S="ln -s"
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752 if test -n "${ZSH_VERSION+set}"; then
10753    setopt NO_GLOB_SUBST
10754 fi
10755
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10757 $as_echo_n "checking for objdir... " >&6; }
10758 if ${lt_cv_objdir+:} false; then :
10759   $as_echo_n "(cached) " >&6
10760 else
10761   rm -f .libs 2>/dev/null
10762 mkdir .libs 2>/dev/null
10763 if test -d .libs; then
10764   lt_cv_objdir=.libs
10765 else
10766   # MS-DOS does not allow filenames that begin with a dot.
10767   lt_cv_objdir=_libs
10768 fi
10769 rmdir .libs 2>/dev/null
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10772 $as_echo "$lt_cv_objdir" >&6; }
10773 objdir=$lt_cv_objdir
10774
10775
10776
10777
10778
10779 cat >>confdefs.h <<_ACEOF
10780 #define LT_OBJDIR "$lt_cv_objdir/"
10781 _ACEOF
10782
10783
10784
10785
10786 case $host_os in
10787 aix3*)
10788   # AIX sometimes has problems with the GCC collect2 program.  For some
10789   # reason, if we set the COLLECT_NAMES environment variable, the problems
10790   # vanish in a puff of smoke.
10791   if test set != "${COLLECT_NAMES+set}"; then
10792     COLLECT_NAMES=
10793     export COLLECT_NAMES
10794   fi
10795   ;;
10796 esac
10797
10798 # Global variables:
10799 ofile=libtool
10800 can_build_shared=yes
10801
10802 # All known linkers require a '.a' archive for static linking (except MSVC,
10803 # which needs '.lib').
10804 libext=a
10805
10806 with_gnu_ld=$lt_cv_prog_gnu_ld
10807
10808 old_CC=$CC
10809 old_CFLAGS=$CFLAGS
10810
10811 # Set sane defaults for various variables
10812 test -z "$CC" && CC=cc
10813 test -z "$LTCC" && LTCC=$CC
10814 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10815 test -z "$LD" && LD=ld
10816 test -z "$ac_objext" && ac_objext=o
10817
10818 for cc_temp in $compiler""; do
10819   case $cc_temp in
10820     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10821     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10822     \-*) ;;
10823     *) break;;
10824   esac
10825 done
10826 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10827
10828
10829 # Only perform the check for file, if the check method requires it
10830 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10831 case $deplibs_check_method in
10832 file_magic*)
10833   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10835 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10836 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10837   $as_echo_n "(cached) " >&6
10838 else
10839   case $MAGIC_CMD in
10840 [\\/*] |  ?:[\\/]*)
10841   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10842   ;;
10843 *)
10844   lt_save_MAGIC_CMD=$MAGIC_CMD
10845   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10846   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10847   for ac_dir in $ac_dummy; do
10848     IFS=$lt_save_ifs
10849     test -z "$ac_dir" && ac_dir=.
10850     if test -f "$ac_dir/${ac_tool_prefix}file"; then
10851       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10852       if test -n "$file_magic_test_file"; then
10853         case $deplibs_check_method in
10854         "file_magic "*)
10855           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10856           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10857           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10858             $EGREP "$file_magic_regex" > /dev/null; then
10859             :
10860           else
10861             cat <<_LT_EOF 1>&2
10862
10863 *** Warning: the command libtool uses to detect shared libraries,
10864 *** $file_magic_cmd, produces output that libtool cannot recognize.
10865 *** The result is that libtool may fail to recognize shared libraries
10866 *** as such.  This will affect the creation of libtool libraries that
10867 *** depend on shared libraries, but programs linked with such libtool
10868 *** libraries will work regardless of this problem.  Nevertheless, you
10869 *** may want to report the problem to your system manager and/or to
10870 *** bug-libtool@gnu.org
10871
10872 _LT_EOF
10873           fi ;;
10874         esac
10875       fi
10876       break
10877     fi
10878   done
10879   IFS=$lt_save_ifs
10880   MAGIC_CMD=$lt_save_MAGIC_CMD
10881   ;;
10882 esac
10883 fi
10884
10885 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10886 if test -n "$MAGIC_CMD"; then
10887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10888 $as_echo "$MAGIC_CMD" >&6; }
10889 else
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 fi
10893
10894
10895
10896
10897
10898 if test -z "$lt_cv_path_MAGIC_CMD"; then
10899   if test -n "$ac_tool_prefix"; then
10900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10901 $as_echo_n "checking for file... " >&6; }
10902 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10903   $as_echo_n "(cached) " >&6
10904 else
10905   case $MAGIC_CMD in
10906 [\\/*] |  ?:[\\/]*)
10907   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10908   ;;
10909 *)
10910   lt_save_MAGIC_CMD=$MAGIC_CMD
10911   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10912   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10913   for ac_dir in $ac_dummy; do
10914     IFS=$lt_save_ifs
10915     test -z "$ac_dir" && ac_dir=.
10916     if test -f "$ac_dir/file"; then
10917       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10918       if test -n "$file_magic_test_file"; then
10919         case $deplibs_check_method in
10920         "file_magic "*)
10921           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10922           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10923           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10924             $EGREP "$file_magic_regex" > /dev/null; then
10925             :
10926           else
10927             cat <<_LT_EOF 1>&2
10928
10929 *** Warning: the command libtool uses to detect shared libraries,
10930 *** $file_magic_cmd, produces output that libtool cannot recognize.
10931 *** The result is that libtool may fail to recognize shared libraries
10932 *** as such.  This will affect the creation of libtool libraries that
10933 *** depend on shared libraries, but programs linked with such libtool
10934 *** libraries will work regardless of this problem.  Nevertheless, you
10935 *** may want to report the problem to your system manager and/or to
10936 *** bug-libtool@gnu.org
10937
10938 _LT_EOF
10939           fi ;;
10940         esac
10941       fi
10942       break
10943     fi
10944   done
10945   IFS=$lt_save_ifs
10946   MAGIC_CMD=$lt_save_MAGIC_CMD
10947   ;;
10948 esac
10949 fi
10950
10951 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10952 if test -n "$MAGIC_CMD"; then
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10954 $as_echo "$MAGIC_CMD" >&6; }
10955 else
10956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 $as_echo "no" >&6; }
10958 fi
10959
10960
10961   else
10962     MAGIC_CMD=:
10963   fi
10964 fi
10965
10966   fi
10967   ;;
10968 esac
10969
10970 # Use C for the default configuration in the libtool script
10971
10972 lt_save_CC=$CC
10973 ac_ext=c
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10978
10979
10980 # Source file extension for C test sources.
10981 ac_ext=c
10982
10983 # Object file extension for compiled C test sources.
10984 objext=o
10985 objext=$objext
10986
10987 # Code to be used in simple compile tests
10988 lt_simple_compile_test_code="int some_variable = 0;"
10989
10990 # Code to be used in simple link tests
10991 lt_simple_link_test_code='int main(){return(0);}'
10992
10993
10994
10995
10996
10997
10998
10999 # If no C compiler was specified, use CC.
11000 LTCC=${LTCC-"$CC"}
11001
11002 # If no C compiler flags were specified, use CFLAGS.
11003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11004
11005 # Allow CC to be a program name with arguments.
11006 compiler=$CC
11007
11008 # Save the default compiler, since it gets overwritten when the other
11009 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11010 compiler_DEFAULT=$CC
11011
11012 # save warnings/boilerplate of simple test code
11013 ac_outfile=conftest.$ac_objext
11014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11016 _lt_compiler_boilerplate=`cat conftest.err`
11017 $RM conftest*
11018
11019 ac_outfile=conftest.$ac_objext
11020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11022 _lt_linker_boilerplate=`cat conftest.err`
11023 $RM -r conftest*
11024
11025
11026 ## CAVEAT EMPTOR:
11027 ## There is no encapsulation within the following macros, do not change
11028 ## the running order or otherwise move them around unless you know exactly
11029 ## what you are doing...
11030 if test -n "$compiler"; then
11031
11032 lt_prog_compiler_no_builtin_flag=
11033
11034 if test yes = "$GCC"; then
11035   case $cc_basename in
11036   nvcc*)
11037     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11038   *)
11039     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11040   esac
11041
11042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11043 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11044 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11045   $as_echo_n "(cached) " >&6
11046 else
11047   lt_cv_prog_compiler_rtti_exceptions=no
11048    ac_outfile=conftest.$ac_objext
11049    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11050    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11051    # Insert the option either (1) after the last *FLAGS variable, or
11052    # (2) before a word containing "conftest.", or (3) at the end.
11053    # Note that $ac_compile itself does not contain backslashes and begins
11054    # with a dollar sign (not a hyphen), so the echo should work correctly.
11055    # The option is referenced via a variable to avoid confusing sed.
11056    lt_compile=`echo "$ac_compile" | $SED \
11057    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11058    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11059    -e 's:$: $lt_compiler_flag:'`
11060    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11061    (eval "$lt_compile" 2>conftest.err)
11062    ac_status=$?
11063    cat conftest.err >&5
11064    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065    if (exit $ac_status) && test -s "$ac_outfile"; then
11066      # The compiler can only warn and ignore the option if not recognized
11067      # So say no if there are warnings other than the usual output.
11068      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11069      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11070      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11071        lt_cv_prog_compiler_rtti_exceptions=yes
11072      fi
11073    fi
11074    $RM conftest*
11075
11076 fi
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11078 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11079
11080 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11081     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11082 else
11083     :
11084 fi
11085
11086 fi
11087
11088
11089
11090
11091
11092
11093   lt_prog_compiler_wl=
11094 lt_prog_compiler_pic=
11095 lt_prog_compiler_static=
11096
11097
11098   if test yes = "$GCC"; then
11099     lt_prog_compiler_wl='-Wl,'
11100     lt_prog_compiler_static='-static'
11101
11102     case $host_os in
11103       aix*)
11104       # All AIX code is PIC.
11105       if test ia64 = "$host_cpu"; then
11106         # AIX 5 now supports IA64 processor
11107         lt_prog_compiler_static='-Bstatic'
11108       fi
11109       lt_prog_compiler_pic='-fPIC'
11110       ;;
11111
11112     amigaos*)
11113       case $host_cpu in
11114       powerpc)
11115             # see comment about AmigaOS4 .so support
11116             lt_prog_compiler_pic='-fPIC'
11117         ;;
11118       m68k)
11119             # FIXME: we need at least 68020 code to build shared libraries, but
11120             # adding the '-m68020' flag to GCC prevents building anything better,
11121             # like '-m68040'.
11122             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11123         ;;
11124       esac
11125       ;;
11126
11127     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11128       # PIC is the default for these OSes.
11129       ;;
11130
11131     mingw* | cygwin* | pw32* | os2* | cegcc*)
11132       # This hack is so that the source file can tell whether it is being
11133       # built for inclusion in a dll (and should export symbols for example).
11134       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11135       # (--disable-auto-import) libraries
11136       lt_prog_compiler_pic='-DDLL_EXPORT'
11137       ;;
11138
11139     darwin* | rhapsody*)
11140       # PIC is the default on this platform
11141       # Common symbols not allowed in MH_DYLIB files
11142       lt_prog_compiler_pic='-fno-common'
11143       ;;
11144
11145     haiku*)
11146       # PIC is the default for Haiku.
11147       # The "-static" flag exists, but is broken.
11148       lt_prog_compiler_static=
11149       ;;
11150
11151     hpux*)
11152       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11153       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11154       # sets the default TLS model and affects inlining.
11155       case $host_cpu in
11156       hppa*64*)
11157         # +Z the default
11158         ;;
11159       *)
11160         lt_prog_compiler_pic='-fPIC'
11161         ;;
11162       esac
11163       ;;
11164
11165     interix[3-9]*)
11166       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11167       # Instead, we relocate shared libraries at runtime.
11168       ;;
11169
11170     msdosdjgpp*)
11171       # Just because we use GCC doesn't mean we suddenly get shared libraries
11172       # on systems that don't support them.
11173       lt_prog_compiler_can_build_shared=no
11174       enable_shared=no
11175       ;;
11176
11177     *nto* | *qnx*)
11178       # QNX uses GNU C++, but need to define -shared option too, otherwise
11179       # it will coredump.
11180       lt_prog_compiler_pic='-fPIC -shared'
11181       ;;
11182
11183     sysv4*MP*)
11184       if test -d /usr/nec; then
11185         lt_prog_compiler_pic=-Kconform_pic
11186       fi
11187       ;;
11188
11189     *)
11190       lt_prog_compiler_pic='-fPIC'
11191       ;;
11192     esac
11193
11194     case $cc_basename in
11195     nvcc*) # Cuda Compiler Driver 2.2
11196       lt_prog_compiler_wl='-Xlinker '
11197       if test -n "$lt_prog_compiler_pic"; then
11198         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11199       fi
11200       ;;
11201     esac
11202   else
11203     # PORTME Check for flag to pass linker flags through the system compiler.
11204     case $host_os in
11205     aix*)
11206       lt_prog_compiler_wl='-Wl,'
11207       if test ia64 = "$host_cpu"; then
11208         # AIX 5 now supports IA64 processor
11209         lt_prog_compiler_static='-Bstatic'
11210       else
11211         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11212       fi
11213       ;;
11214
11215     darwin* | rhapsody*)
11216       # PIC is the default on this platform
11217       # Common symbols not allowed in MH_DYLIB files
11218       lt_prog_compiler_pic='-fno-common'
11219       case $cc_basename in
11220       nagfor*)
11221         # NAG Fortran compiler
11222         lt_prog_compiler_wl='-Wl,-Wl,,'
11223         lt_prog_compiler_pic='-PIC'
11224         lt_prog_compiler_static='-Bstatic'
11225         ;;
11226       esac
11227       ;;
11228
11229     mingw* | cygwin* | pw32* | os2* | cegcc*)
11230       # This hack is so that the source file can tell whether it is being
11231       # built for inclusion in a dll (and should export symbols for example).
11232       lt_prog_compiler_pic='-DDLL_EXPORT'
11233       ;;
11234
11235     hpux9* | hpux10* | hpux11*)
11236       lt_prog_compiler_wl='-Wl,'
11237       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11238       # not for PA HP-UX.
11239       case $host_cpu in
11240       hppa*64*|ia64*)
11241         # +Z the default
11242         ;;
11243       *)
11244         lt_prog_compiler_pic='+Z'
11245         ;;
11246       esac
11247       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11248       lt_prog_compiler_static='$wl-a ${wl}archive'
11249       ;;
11250
11251     irix5* | irix6* | nonstopux*)
11252       lt_prog_compiler_wl='-Wl,'
11253       # PIC (with -KPIC) is the default.
11254       lt_prog_compiler_static='-non_shared'
11255       ;;
11256
11257     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11258       case $cc_basename in
11259       # old Intel for x86_64, which still supported -KPIC.
11260       ecc*)
11261         lt_prog_compiler_wl='-Wl,'
11262         lt_prog_compiler_pic='-KPIC'
11263         lt_prog_compiler_static='-static'
11264         ;;
11265       # icc used to be incompatible with GCC.
11266       # ICC 10 doesn't accept -KPIC any more.
11267       icc* | ifort*)
11268         lt_prog_compiler_wl='-Wl,'
11269         lt_prog_compiler_pic='-fPIC'
11270         lt_prog_compiler_static='-static'
11271         ;;
11272       # Lahey Fortran 8.1.
11273       lf95*)
11274         lt_prog_compiler_wl='-Wl,'
11275         lt_prog_compiler_pic='--shared'
11276         lt_prog_compiler_static='--static'
11277         ;;
11278       nagfor*)
11279         # NAG Fortran compiler
11280         lt_prog_compiler_wl='-Wl,-Wl,,'
11281         lt_prog_compiler_pic='-PIC'
11282         lt_prog_compiler_static='-Bstatic'
11283         ;;
11284       tcc*)
11285         # Fabrice Bellard et al's Tiny C Compiler
11286         lt_prog_compiler_wl='-Wl,'
11287         lt_prog_compiler_pic='-fPIC'
11288         lt_prog_compiler_static='-static'
11289         ;;
11290       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11291         # Portland Group compilers (*not* the Pentium gcc compiler,
11292         # which looks to be a dead project)
11293         lt_prog_compiler_wl='-Wl,'
11294         lt_prog_compiler_pic='-fpic'
11295         lt_prog_compiler_static='-Bstatic'
11296         ;;
11297       ccc*)
11298         lt_prog_compiler_wl='-Wl,'
11299         # All Alpha code is PIC.
11300         lt_prog_compiler_static='-non_shared'
11301         ;;
11302       xl* | bgxl* | bgf* | mpixl*)
11303         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11304         lt_prog_compiler_wl='-Wl,'
11305         lt_prog_compiler_pic='-qpic'
11306         lt_prog_compiler_static='-qstaticlink'
11307         ;;
11308       *)
11309         case `$CC -V 2>&1 | sed 5q` in
11310         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11311           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11312           lt_prog_compiler_pic='-KPIC'
11313           lt_prog_compiler_static='-Bstatic'
11314           lt_prog_compiler_wl=''
11315           ;;
11316         *Sun\ F* | *Sun*Fortran*)
11317           lt_prog_compiler_pic='-KPIC'
11318           lt_prog_compiler_static='-Bstatic'
11319           lt_prog_compiler_wl='-Qoption ld '
11320           ;;
11321         *Sun\ C*)
11322           # Sun C 5.9
11323           lt_prog_compiler_pic='-KPIC'
11324           lt_prog_compiler_static='-Bstatic'
11325           lt_prog_compiler_wl='-Wl,'
11326           ;;
11327         *Intel*\ [CF]*Compiler*)
11328           lt_prog_compiler_wl='-Wl,'
11329           lt_prog_compiler_pic='-fPIC'
11330           lt_prog_compiler_static='-static'
11331           ;;
11332         *Portland\ Group*)
11333           lt_prog_compiler_wl='-Wl,'
11334           lt_prog_compiler_pic='-fpic'
11335           lt_prog_compiler_static='-Bstatic'
11336           ;;
11337         esac
11338         ;;
11339       esac
11340       ;;
11341
11342     newsos6)
11343       lt_prog_compiler_pic='-KPIC'
11344       lt_prog_compiler_static='-Bstatic'
11345       ;;
11346
11347     *nto* | *qnx*)
11348       # QNX uses GNU C++, but need to define -shared option too, otherwise
11349       # it will coredump.
11350       lt_prog_compiler_pic='-fPIC -shared'
11351       ;;
11352
11353     osf3* | osf4* | osf5*)
11354       lt_prog_compiler_wl='-Wl,'
11355       # All OSF/1 code is PIC.
11356       lt_prog_compiler_static='-non_shared'
11357       ;;
11358
11359     rdos*)
11360       lt_prog_compiler_static='-non_shared'
11361       ;;
11362
11363     solaris*)
11364       lt_prog_compiler_pic='-KPIC'
11365       lt_prog_compiler_static='-Bstatic'
11366       case $cc_basename in
11367       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11368         lt_prog_compiler_wl='-Qoption ld ';;
11369       *)
11370         lt_prog_compiler_wl='-Wl,';;
11371       esac
11372       ;;
11373
11374     sunos4*)
11375       lt_prog_compiler_wl='-Qoption ld '
11376       lt_prog_compiler_pic='-PIC'
11377       lt_prog_compiler_static='-Bstatic'
11378       ;;
11379
11380     sysv4 | sysv4.2uw2* | sysv4.3*)
11381       lt_prog_compiler_wl='-Wl,'
11382       lt_prog_compiler_pic='-KPIC'
11383       lt_prog_compiler_static='-Bstatic'
11384       ;;
11385
11386     sysv4*MP*)
11387       if test -d /usr/nec; then
11388         lt_prog_compiler_pic='-Kconform_pic'
11389         lt_prog_compiler_static='-Bstatic'
11390       fi
11391       ;;
11392
11393     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11394       lt_prog_compiler_wl='-Wl,'
11395       lt_prog_compiler_pic='-KPIC'
11396       lt_prog_compiler_static='-Bstatic'
11397       ;;
11398
11399     unicos*)
11400       lt_prog_compiler_wl='-Wl,'
11401       lt_prog_compiler_can_build_shared=no
11402       ;;
11403
11404     uts4*)
11405       lt_prog_compiler_pic='-pic'
11406       lt_prog_compiler_static='-Bstatic'
11407       ;;
11408
11409     *)
11410       lt_prog_compiler_can_build_shared=no
11411       ;;
11412     esac
11413   fi
11414
11415 case $host_os in
11416   # For platforms that do not support PIC, -DPIC is meaningless:
11417   *djgpp*)
11418     lt_prog_compiler_pic=
11419     ;;
11420   *)
11421     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11422     ;;
11423 esac
11424
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11426 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11427 if ${lt_cv_prog_compiler_pic+:} false; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11433 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11434 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11435
11436 #
11437 # Check to make sure the PIC flag actually works.
11438 #
11439 if test -n "$lt_prog_compiler_pic"; then
11440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11441 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11442 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11443   $as_echo_n "(cached) " >&6
11444 else
11445   lt_cv_prog_compiler_pic_works=no
11446    ac_outfile=conftest.$ac_objext
11447    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11448    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11449    # Insert the option either (1) after the last *FLAGS variable, or
11450    # (2) before a word containing "conftest.", or (3) at the end.
11451    # Note that $ac_compile itself does not contain backslashes and begins
11452    # with a dollar sign (not a hyphen), so the echo should work correctly.
11453    # The option is referenced via a variable to avoid confusing sed.
11454    lt_compile=`echo "$ac_compile" | $SED \
11455    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11456    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11457    -e 's:$: $lt_compiler_flag:'`
11458    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11459    (eval "$lt_compile" 2>conftest.err)
11460    ac_status=$?
11461    cat conftest.err >&5
11462    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463    if (exit $ac_status) && test -s "$ac_outfile"; then
11464      # The compiler can only warn and ignore the option if not recognized
11465      # So say no if there are warnings other than the usual output.
11466      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11467      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11468      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11469        lt_cv_prog_compiler_pic_works=yes
11470      fi
11471    fi
11472    $RM conftest*
11473
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11476 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11477
11478 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11479     case $lt_prog_compiler_pic in
11480      "" | " "*) ;;
11481      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11482      esac
11483 else
11484     lt_prog_compiler_pic=
11485      lt_prog_compiler_can_build_shared=no
11486 fi
11487
11488 fi
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500 #
11501 # Check to make sure the static flag actually works.
11502 #
11503 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11505 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11506 if ${lt_cv_prog_compiler_static_works+:} false; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509   lt_cv_prog_compiler_static_works=no
11510    save_LDFLAGS=$LDFLAGS
11511    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11512    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11513    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11514      # The linker can only warn and ignore the option if not recognized
11515      # So say no if there are warnings
11516      if test -s conftest.err; then
11517        # Append any errors to the config.log.
11518        cat conftest.err 1>&5
11519        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11520        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11521        if diff conftest.exp conftest.er2 >/dev/null; then
11522          lt_cv_prog_compiler_static_works=yes
11523        fi
11524      else
11525        lt_cv_prog_compiler_static_works=yes
11526      fi
11527    fi
11528    $RM -r conftest*
11529    LDFLAGS=$save_LDFLAGS
11530
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11533 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11534
11535 if test yes = "$lt_cv_prog_compiler_static_works"; then
11536     :
11537 else
11538     lt_prog_compiler_static=
11539 fi
11540
11541
11542
11543
11544
11545
11546
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11548 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11549 if ${lt_cv_prog_compiler_c_o+:} false; then :
11550   $as_echo_n "(cached) " >&6
11551 else
11552   lt_cv_prog_compiler_c_o=no
11553    $RM -r conftest 2>/dev/null
11554    mkdir conftest
11555    cd conftest
11556    mkdir out
11557    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11558
11559    lt_compiler_flag="-o out/conftest2.$ac_objext"
11560    # Insert the option either (1) after the last *FLAGS variable, or
11561    # (2) before a word containing "conftest.", or (3) at the end.
11562    # Note that $ac_compile itself does not contain backslashes and begins
11563    # with a dollar sign (not a hyphen), so the echo should work correctly.
11564    lt_compile=`echo "$ac_compile" | $SED \
11565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11567    -e 's:$: $lt_compiler_flag:'`
11568    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11569    (eval "$lt_compile" 2>out/conftest.err)
11570    ac_status=$?
11571    cat out/conftest.err >&5
11572    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11574    then
11575      # The compiler can only warn and ignore the option if not recognized
11576      # So say no if there are warnings
11577      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11578      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11579      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11580        lt_cv_prog_compiler_c_o=yes
11581      fi
11582    fi
11583    chmod u+w . 2>&5
11584    $RM conftest*
11585    # SGI C++ compiler will create directory out/ii_files/ for
11586    # template instantiation
11587    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11588    $RM out/* && rmdir out
11589    cd ..
11590    $RM -r conftest
11591    $RM conftest*
11592
11593 fi
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11595 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11596
11597
11598
11599
11600
11601
11602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11603 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11604 if ${lt_cv_prog_compiler_c_o+:} false; then :
11605   $as_echo_n "(cached) " >&6
11606 else
11607   lt_cv_prog_compiler_c_o=no
11608    $RM -r conftest 2>/dev/null
11609    mkdir conftest
11610    cd conftest
11611    mkdir out
11612    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11613
11614    lt_compiler_flag="-o out/conftest2.$ac_objext"
11615    # Insert the option either (1) after the last *FLAGS variable, or
11616    # (2) before a word containing "conftest.", or (3) at the end.
11617    # Note that $ac_compile itself does not contain backslashes and begins
11618    # with a dollar sign (not a hyphen), so the echo should work correctly.
11619    lt_compile=`echo "$ac_compile" | $SED \
11620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11622    -e 's:$: $lt_compiler_flag:'`
11623    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11624    (eval "$lt_compile" 2>out/conftest.err)
11625    ac_status=$?
11626    cat out/conftest.err >&5
11627    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11629    then
11630      # The compiler can only warn and ignore the option if not recognized
11631      # So say no if there are warnings
11632      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11633      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11634      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11635        lt_cv_prog_compiler_c_o=yes
11636      fi
11637    fi
11638    chmod u+w . 2>&5
11639    $RM conftest*
11640    # SGI C++ compiler will create directory out/ii_files/ for
11641    # template instantiation
11642    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11643    $RM out/* && rmdir out
11644    cd ..
11645    $RM -r conftest
11646    $RM conftest*
11647
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11650 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11651
11652
11653
11654
11655 hard_links=nottested
11656 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11657   # do not overwrite the value of need_locks provided by the user
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11659 $as_echo_n "checking if we can lock with hard links... " >&6; }
11660   hard_links=yes
11661   $RM conftest*
11662   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11663   touch conftest.a
11664   ln conftest.a conftest.b 2>&5 || hard_links=no
11665   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11667 $as_echo "$hard_links" >&6; }
11668   if test no = "$hard_links"; then
11669     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11670 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11671     need_locks=warn
11672   fi
11673 else
11674   need_locks=no
11675 fi
11676
11677
11678
11679
11680
11681
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11683 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11684
11685   runpath_var=
11686   allow_undefined_flag=
11687   always_export_symbols=no
11688   archive_cmds=
11689   archive_expsym_cmds=
11690   compiler_needs_object=no
11691   enable_shared_with_static_runtimes=no
11692   export_dynamic_flag_spec=
11693   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11694   hardcode_automatic=no
11695   hardcode_direct=no
11696   hardcode_direct_absolute=no
11697   hardcode_libdir_flag_spec=
11698   hardcode_libdir_separator=
11699   hardcode_minus_L=no
11700   hardcode_shlibpath_var=unsupported
11701   inherit_rpath=no
11702   link_all_deplibs=unknown
11703   module_cmds=
11704   module_expsym_cmds=
11705   old_archive_from_new_cmds=
11706   old_archive_from_expsyms_cmds=
11707   thread_safe_flag_spec=
11708   whole_archive_flag_spec=
11709   # include_expsyms should be a list of space-separated symbols to be *always*
11710   # included in the symbol list
11711   include_expsyms=
11712   # exclude_expsyms can be an extended regexp of symbols to exclude
11713   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11714   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11715   # as well as any symbol that contains 'd'.
11716   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11717   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11718   # platforms (ab)use it in PIC code, but their linkers get confused if
11719   # the symbol is explicitly referenced.  Since portable code cannot
11720   # rely on this symbol name, it's probably fine to never include it in
11721   # preloaded symbol tables.
11722   # Exclude shared library initialization/finalization symbols.
11723   extract_expsyms_cmds=
11724
11725   case $host_os in
11726   cygwin* | mingw* | pw32* | cegcc*)
11727     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11728     # When not using gcc, we currently assume that we are using
11729     # Microsoft Visual C++.
11730     if test yes != "$GCC"; then
11731       with_gnu_ld=no
11732     fi
11733     ;;
11734   interix*)
11735     # we just hope/assume this is gcc and not c89 (= MSVC++)
11736     with_gnu_ld=yes
11737     ;;
11738   openbsd* | bitrig*)
11739     with_gnu_ld=no
11740     ;;
11741   esac
11742
11743   ld_shlibs=yes
11744
11745   # On some targets, GNU ld is compatible enough with the native linker
11746   # that we're better off using the native interface for both.
11747   lt_use_gnu_ld_interface=no
11748   if test yes = "$with_gnu_ld"; then
11749     case $host_os in
11750       aix*)
11751         # The AIX port of GNU ld has always aspired to compatibility
11752         # with the native linker.  However, as the warning in the GNU ld
11753         # block says, versions before 2.19.5* couldn't really create working
11754         # shared libraries, regardless of the interface used.
11755         case `$LD -v 2>&1` in
11756           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11757           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11758           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11759           *)
11760             lt_use_gnu_ld_interface=yes
11761             ;;
11762         esac
11763         ;;
11764       *)
11765         lt_use_gnu_ld_interface=yes
11766         ;;
11767     esac
11768   fi
11769
11770   if test yes = "$lt_use_gnu_ld_interface"; then
11771     # If archive_cmds runs LD, not CC, wlarc should be empty
11772     wlarc='$wl'
11773
11774     # Set some defaults for GNU ld with shared library support. These
11775     # are reset later if shared libraries are not supported. Putting them
11776     # here allows them to be overridden if necessary.
11777     runpath_var=LD_RUN_PATH
11778     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11779     export_dynamic_flag_spec='$wl--export-dynamic'
11780     # ancient GNU ld didn't support --whole-archive et. al.
11781     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11782       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11783     else
11784       whole_archive_flag_spec=
11785     fi
11786     supports_anon_versioning=no
11787     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11788       *GNU\ gold*) supports_anon_versioning=yes ;;
11789       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11790       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11791       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11792       *\ 2.11.*) ;; # other 2.11 versions
11793       *) supports_anon_versioning=yes ;;
11794     esac
11795
11796     # See if GNU ld supports shared libraries.
11797     case $host_os in
11798     aix[3-9]*)
11799       # On AIX/PPC, the GNU linker is very broken
11800       if test ia64 != "$host_cpu"; then
11801         ld_shlibs=no
11802         cat <<_LT_EOF 1>&2
11803
11804 *** Warning: the GNU linker, at least up to release 2.19, is reported
11805 *** to be unable to reliably create shared libraries on AIX.
11806 *** Therefore, libtool is disabling shared libraries support.  If you
11807 *** really care for shared libraries, you may want to install binutils
11808 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11809 *** You will then need to restart the configuration process.
11810
11811 _LT_EOF
11812       fi
11813       ;;
11814
11815     amigaos*)
11816       case $host_cpu in
11817       powerpc)
11818             # see comment about AmigaOS4 .so support
11819             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11820             archive_expsym_cmds=''
11821         ;;
11822       m68k)
11823             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)'
11824             hardcode_libdir_flag_spec='-L$libdir'
11825             hardcode_minus_L=yes
11826         ;;
11827       esac
11828       ;;
11829
11830     beos*)
11831       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11832         allow_undefined_flag=unsupported
11833         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11834         # support --undefined.  This deserves some investigation.  FIXME
11835         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11836       else
11837         ld_shlibs=no
11838       fi
11839       ;;
11840
11841     cygwin* | mingw* | pw32* | cegcc*)
11842       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11843       # as there is no search path for DLLs.
11844       hardcode_libdir_flag_spec='-L$libdir'
11845       export_dynamic_flag_spec='$wl--export-all-symbols'
11846       allow_undefined_flag=unsupported
11847       always_export_symbols=no
11848       enable_shared_with_static_runtimes=yes
11849       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'
11850       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11851
11852       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11853         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11854         # If the export-symbols file already is a .def file, use it as
11855         # is; otherwise, prepend EXPORTS...
11856         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11857           cp $export_symbols $output_objdir/$soname.def;
11858         else
11859           echo EXPORTS > $output_objdir/$soname.def;
11860           cat $export_symbols >> $output_objdir/$soname.def;
11861         fi~
11862         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11863       else
11864         ld_shlibs=no
11865       fi
11866       ;;
11867
11868     haiku*)
11869       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11870       link_all_deplibs=yes
11871       ;;
11872
11873     interix[3-9]*)
11874       hardcode_direct=no
11875       hardcode_shlibpath_var=no
11876       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11877       export_dynamic_flag_spec='$wl-E'
11878       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11879       # Instead, shared libraries are loaded at an image base (0x10000000 by
11880       # default) and relocated if they conflict, which is a slow very memory
11881       # consuming and fragmenting process.  To avoid this, we pick a random,
11882       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11883       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11884       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11885       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'
11886       ;;
11887
11888     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11889       tmp_diet=no
11890       if test linux-dietlibc = "$host_os"; then
11891         case $cc_basename in
11892           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11893         esac
11894       fi
11895       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11896          && test no = "$tmp_diet"
11897       then
11898         tmp_addflag=' $pic_flag'
11899         tmp_sharedflag='-shared'
11900         case $cc_basename,$host_cpu in
11901         pgcc*)                          # Portland Group C compiler
11902           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'
11903           tmp_addflag=' $pic_flag'
11904           ;;
11905         pgf77* | pgf90* | pgf95* | pgfortran*)
11906                                         # Portland Group f77 and f90 compilers
11907           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'
11908           tmp_addflag=' $pic_flag -Mnomain' ;;
11909         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11910           tmp_addflag=' -i_dynamic' ;;
11911         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11912           tmp_addflag=' -i_dynamic -nofor_main' ;;
11913         ifc* | ifort*)                  # Intel Fortran compiler
11914           tmp_addflag=' -nofor_main' ;;
11915         lf95*)                          # Lahey Fortran 8.1
11916           whole_archive_flag_spec=
11917           tmp_sharedflag='--shared' ;;
11918         nagfor*)                        # NAGFOR 5.3
11919           tmp_sharedflag='-Wl,-shared' ;;
11920         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11921           tmp_sharedflag='-qmkshrobj'
11922           tmp_addflag= ;;
11923         nvcc*)  # Cuda Compiler Driver 2.2
11924           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'
11925           compiler_needs_object=yes
11926           ;;
11927         esac
11928         case `$CC -V 2>&1 | sed 5q` in
11929         *Sun\ C*)                       # Sun C 5.9
11930           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'
11931           compiler_needs_object=yes
11932           tmp_sharedflag='-G' ;;
11933         *Sun\ F*)                       # Sun Fortran 8.3
11934           tmp_sharedflag='-G' ;;
11935         esac
11936         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11937
11938         if test yes = "$supports_anon_versioning"; then
11939           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11940             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11941             echo "local: *; };" >> $output_objdir/$libname.ver~
11942             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11943         fi
11944
11945         case $cc_basename in
11946         xlf* | bgf* | bgxlf* | mpixlf*)
11947           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11948           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11949           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11950           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11951           if test yes = "$supports_anon_versioning"; then
11952             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11953               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11954               echo "local: *; };" >> $output_objdir/$libname.ver~
11955               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11956           fi
11957           ;;
11958         esac
11959       else
11960         ld_shlibs=no
11961       fi
11962       ;;
11963
11964     netbsd*)
11965       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11966         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11967         wlarc=
11968       else
11969         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11970         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11971       fi
11972       ;;
11973
11974     solaris*)
11975       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11976         ld_shlibs=no
11977         cat <<_LT_EOF 1>&2
11978
11979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11980 *** create shared libraries on Solaris systems.  Therefore, libtool
11981 *** is disabling shared libraries support.  We urge you to upgrade GNU
11982 *** binutils to release 2.9.1 or newer.  Another option is to modify
11983 *** your PATH or compiler configuration so that the native linker is
11984 *** used, and then restart.
11985
11986 _LT_EOF
11987       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11988         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11989         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11990       else
11991         ld_shlibs=no
11992       fi
11993       ;;
11994
11995     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11996       case `$LD -v 2>&1` in
11997         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11998         ld_shlibs=no
11999         cat <<_LT_EOF 1>&2
12000
12001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12002 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12003 *** is disabling shared libraries support.  We urge you to upgrade GNU
12004 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12005 *** your PATH or compiler configuration so that the native linker is
12006 *** used, and then restart.
12007
12008 _LT_EOF
12009         ;;
12010         *)
12011           # For security reasons, it is highly recommended that you always
12012           # use absolute paths for naming shared libraries, and exclude the
12013           # DT_RUNPATH tag from executables and libraries.  But doing so
12014           # requires that you compile everything twice, which is a pain.
12015           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12016             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12017             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12018             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12019           else
12020             ld_shlibs=no
12021           fi
12022         ;;
12023       esac
12024       ;;
12025
12026     sunos4*)
12027       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12028       wlarc=
12029       hardcode_direct=yes
12030       hardcode_shlibpath_var=no
12031       ;;
12032
12033     *)
12034       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12035         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12036         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12037       else
12038         ld_shlibs=no
12039       fi
12040       ;;
12041     esac
12042
12043     if test no = "$ld_shlibs"; then
12044       runpath_var=
12045       hardcode_libdir_flag_spec=
12046       export_dynamic_flag_spec=
12047       whole_archive_flag_spec=
12048     fi
12049   else
12050     # PORTME fill in a description of your system's linker (not GNU ld)
12051     case $host_os in
12052     aix3*)
12053       allow_undefined_flag=unsupported
12054       always_export_symbols=yes
12055       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'
12056       # Note: this linker hardcodes the directories in LIBPATH if there
12057       # are no directories specified by -L.
12058       hardcode_minus_L=yes
12059       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12060         # Neither direct hardcoding nor static linking is supported with a
12061         # broken collect2.
12062         hardcode_direct=unsupported
12063       fi
12064       ;;
12065
12066     aix[4-9]*)
12067       if test ia64 = "$host_cpu"; then
12068         # On IA64, the linker does run time linking by default, so we don't
12069         # have to do anything special.
12070         aix_use_runtimelinking=no
12071         exp_sym_flag='-Bexport'
12072         no_entry_flag=
12073       else
12074         # If we're using GNU nm, then we don't want the "-C" option.
12075         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12076         # Also, AIX nm treats weak defined symbols like other global
12077         # defined symbols, whereas GNU nm marks them as "W".
12078         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12079           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'
12080         else
12081           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'
12082         fi
12083         aix_use_runtimelinking=no
12084
12085         # Test if we are trying to use run time linking or normal
12086         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12087         # need to do runtime linking.
12088         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12089           for ld_flag in $LDFLAGS; do
12090           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12091             aix_use_runtimelinking=yes
12092             break
12093           fi
12094           done
12095           ;;
12096         esac
12097
12098         exp_sym_flag='-bexport'
12099         no_entry_flag='-bnoentry'
12100       fi
12101
12102       # When large executables or shared objects are built, AIX ld can
12103       # have problems creating the table of contents.  If linking a library
12104       # or program results in "error TOC overflow" add -mminimal-toc to
12105       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12106       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12107
12108       archive_cmds=''
12109       hardcode_direct=yes
12110       hardcode_direct_absolute=yes
12111       hardcode_libdir_separator=':'
12112       link_all_deplibs=yes
12113       file_list_spec='$wl-f,'
12114
12115       if test yes = "$GCC"; then
12116         case $host_os in aix4.[012]|aix4.[012].*)
12117         # We only want to do this on AIX 4.2 and lower, the check
12118         # below for broken collect2 doesn't work under 4.3+
12119           collect2name=`$CC -print-prog-name=collect2`
12120           if test -f "$collect2name" &&
12121            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12122           then
12123           # We have reworked collect2
12124           :
12125           else
12126           # We have old collect2
12127           hardcode_direct=unsupported
12128           # It fails to find uninstalled libraries when the uninstalled
12129           # path is not listed in the libpath.  Setting hardcode_minus_L
12130           # to unsupported forces relinking
12131           hardcode_minus_L=yes
12132           hardcode_libdir_flag_spec='-L$libdir'
12133           hardcode_libdir_separator=
12134           fi
12135           ;;
12136         esac
12137         shared_flag='-shared'
12138         if test yes = "$aix_use_runtimelinking"; then
12139           shared_flag="$shared_flag "'$wl-G'
12140         fi
12141       else
12142         # not using gcc
12143         if test ia64 = "$host_cpu"; then
12144         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12145         # chokes on -Wl,-G. The following line is correct:
12146           shared_flag='-G'
12147         else
12148           if test yes = "$aix_use_runtimelinking"; then
12149             shared_flag='$wl-G'
12150           else
12151             shared_flag='$wl-bM:SRE'
12152           fi
12153         fi
12154       fi
12155
12156       export_dynamic_flag_spec='$wl-bexpall'
12157       # It seems that -bexpall does not export symbols beginning with
12158       # underscore (_), so it is better to generate a list of symbols to export.
12159       always_export_symbols=yes
12160       if test yes = "$aix_use_runtimelinking"; then
12161         # Warning - without using the other runtime loading flags (-brtl),
12162         # -berok will link without error, but may produce a broken library.
12163         allow_undefined_flag='-berok'
12164         # Determine the default libpath from the value encoded in an
12165         # empty executable.
12166         if test set = "${lt_cv_aix_libpath+set}"; then
12167   aix_libpath=$lt_cv_aix_libpath
12168 else
12169   if ${lt_cv_aix_libpath_+:} false; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h.  */
12174
12175 int
12176 main ()
12177 {
12178
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184
12185   lt_aix_libpath_sed='
12186       /Import File Strings/,/^$/ {
12187           /^0/ {
12188               s/^0  *\([^ ]*\) *$/\1/
12189               p
12190           }
12191       }'
12192   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12193   # Check for a 64-bit object if we didn't find anything.
12194   if test -z "$lt_cv_aix_libpath_"; then
12195     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12196   fi
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext \
12199     conftest$ac_exeext conftest.$ac_ext
12200   if test -z "$lt_cv_aix_libpath_"; then
12201     lt_cv_aix_libpath_=/usr/lib:/lib
12202   fi
12203
12204 fi
12205
12206   aix_libpath=$lt_cv_aix_libpath_
12207 fi
12208
12209         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12210         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12211       else
12212         if test ia64 = "$host_cpu"; then
12213           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12214           allow_undefined_flag="-z nodefs"
12215           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"
12216         else
12217          # Determine the default libpath from the value encoded in an
12218          # empty executable.
12219          if test set = "${lt_cv_aix_libpath+set}"; then
12220   aix_libpath=$lt_cv_aix_libpath
12221 else
12222   if ${lt_cv_aix_libpath_+:} false; then :
12223   $as_echo_n "(cached) " >&6
12224 else
12225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h.  */
12227
12228 int
12229 main ()
12230 {
12231
12232   ;
12233   return 0;
12234 }
12235 _ACEOF
12236 if ac_fn_c_try_link "$LINENO"; then :
12237
12238   lt_aix_libpath_sed='
12239       /Import File Strings/,/^$/ {
12240           /^0/ {
12241               s/^0  *\([^ ]*\) *$/\1/
12242               p
12243           }
12244       }'
12245   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12246   # Check for a 64-bit object if we didn't find anything.
12247   if test -z "$lt_cv_aix_libpath_"; then
12248     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12249   fi
12250 fi
12251 rm -f core conftest.err conftest.$ac_objext \
12252     conftest$ac_exeext conftest.$ac_ext
12253   if test -z "$lt_cv_aix_libpath_"; then
12254     lt_cv_aix_libpath_=/usr/lib:/lib
12255   fi
12256
12257 fi
12258
12259   aix_libpath=$lt_cv_aix_libpath_
12260 fi
12261
12262          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12263           # Warning - without using the other run time loading flags,
12264           # -berok will link without error, but may produce a broken library.
12265           no_undefined_flag=' $wl-bernotok'
12266           allow_undefined_flag=' $wl-berok'
12267           if test yes = "$with_gnu_ld"; then
12268             # We only use this code for GNU lds that support --whole-archive.
12269             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12270           else
12271             # Exported symbols can be pulled into shared objects from archives
12272             whole_archive_flag_spec='$convenience'
12273           fi
12274           archive_cmds_need_lc=yes
12275           # This is similar to how AIX traditionally builds its shared libraries.
12276           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'
12277         fi
12278       fi
12279       ;;
12280
12281     amigaos*)
12282       case $host_cpu in
12283       powerpc)
12284             # see comment about AmigaOS4 .so support
12285             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12286             archive_expsym_cmds=''
12287         ;;
12288       m68k)
12289             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)'
12290             hardcode_libdir_flag_spec='-L$libdir'
12291             hardcode_minus_L=yes
12292         ;;
12293       esac
12294       ;;
12295
12296     bsdi[45]*)
12297       export_dynamic_flag_spec=-rdynamic
12298       ;;
12299
12300     cygwin* | mingw* | pw32* | cegcc*)
12301       # When not using gcc, we currently assume that we are using
12302       # Microsoft Visual C++.
12303       # hardcode_libdir_flag_spec is actually meaningless, as there is
12304       # no search path for DLLs.
12305       case $cc_basename in
12306       cl*)
12307         # Native MSVC
12308         hardcode_libdir_flag_spec=' '
12309         allow_undefined_flag=unsupported
12310         always_export_symbols=yes
12311         file_list_spec='@'
12312         # Tell ltmain to make .lib files, not .a files.
12313         libext=lib
12314         # Tell ltmain to make .dll files, not .so files.
12315         shrext_cmds=.dll
12316         # FIXME: Setting linknames here is a bad hack.
12317         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12318         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12319             cp "$export_symbols" "$output_objdir/$soname.def";
12320             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12321           else
12322             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12323           fi~
12324           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12325           linknames='
12326         # The linker will not automatically build a static lib if we build a DLL.
12327         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12328         enable_shared_with_static_runtimes=yes
12329         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12330         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12331         # Don't use ranlib
12332         old_postinstall_cmds='chmod 644 $oldlib'
12333         postlink_cmds='lt_outputfile="@OUTPUT@"~
12334           lt_tool_outputfile="@TOOL_OUTPUT@"~
12335           case $lt_outputfile in
12336             *.exe|*.EXE) ;;
12337             *)
12338               lt_outputfile=$lt_outputfile.exe
12339               lt_tool_outputfile=$lt_tool_outputfile.exe
12340               ;;
12341           esac~
12342           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12343             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12344             $RM "$lt_outputfile.manifest";
12345           fi'
12346         ;;
12347       *)
12348         # Assume MSVC wrapper
12349         hardcode_libdir_flag_spec=' '
12350         allow_undefined_flag=unsupported
12351         # Tell ltmain to make .lib files, not .a files.
12352         libext=lib
12353         # Tell ltmain to make .dll files, not .so files.
12354         shrext_cmds=.dll
12355         # FIXME: Setting linknames here is a bad hack.
12356         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12357         # The linker will automatically build a .lib file if we build a DLL.
12358         old_archive_from_new_cmds='true'
12359         # FIXME: Should let the user specify the lib program.
12360         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12361         enable_shared_with_static_runtimes=yes
12362         ;;
12363       esac
12364       ;;
12365
12366     darwin* | rhapsody*)
12367
12368
12369   archive_cmds_need_lc=no
12370   hardcode_direct=no
12371   hardcode_automatic=yes
12372   hardcode_shlibpath_var=unsupported
12373   if test yes = "$lt_cv_ld_force_load"; then
12374     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\"`'
12375
12376   else
12377     whole_archive_flag_spec=''
12378   fi
12379   link_all_deplibs=yes
12380   allow_undefined_flag=$_lt_dar_allow_undefined
12381   case $cc_basename in
12382      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12383      *) _lt_dar_can_shared=$GCC ;;
12384   esac
12385   if test yes = "$_lt_dar_can_shared"; then
12386     output_verbose_link_cmd=func_echo_all
12387     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12388     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12389     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"
12390     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"
12391
12392   else
12393   ld_shlibs=no
12394   fi
12395
12396       ;;
12397
12398     dgux*)
12399       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12400       hardcode_libdir_flag_spec='-L$libdir'
12401       hardcode_shlibpath_var=no
12402       ;;
12403
12404     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12405     # support.  Future versions do this automatically, but an explicit c++rt0.o
12406     # does not break anything, and helps significantly (at the cost of a little
12407     # extra space).
12408     freebsd2.2*)
12409       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12410       hardcode_libdir_flag_spec='-R$libdir'
12411       hardcode_direct=yes
12412       hardcode_shlibpath_var=no
12413       ;;
12414
12415     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12416     freebsd2.*)
12417       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12418       hardcode_direct=yes
12419       hardcode_minus_L=yes
12420       hardcode_shlibpath_var=no
12421       ;;
12422
12423     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12424     freebsd* | dragonfly*)
12425       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12426       hardcode_libdir_flag_spec='-R$libdir'
12427       hardcode_direct=yes
12428       hardcode_shlibpath_var=no
12429       ;;
12430
12431     hpux9*)
12432       if test yes = "$GCC"; then
12433         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12434       else
12435         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12436       fi
12437       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12438       hardcode_libdir_separator=:
12439       hardcode_direct=yes
12440
12441       # hardcode_minus_L: Not really in the search PATH,
12442       # but as the default location of the library.
12443       hardcode_minus_L=yes
12444       export_dynamic_flag_spec='$wl-E'
12445       ;;
12446
12447     hpux10*)
12448       if test yes,no = "$GCC,$with_gnu_ld"; then
12449         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12450       else
12451         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12452       fi
12453       if test no = "$with_gnu_ld"; then
12454         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12455         hardcode_libdir_separator=:
12456         hardcode_direct=yes
12457         hardcode_direct_absolute=yes
12458         export_dynamic_flag_spec='$wl-E'
12459         # hardcode_minus_L: Not really in the search PATH,
12460         # but as the default location of the library.
12461         hardcode_minus_L=yes
12462       fi
12463       ;;
12464
12465     hpux11*)
12466       if test yes,no = "$GCC,$with_gnu_ld"; then
12467         case $host_cpu in
12468         hppa*64*)
12469           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12470           ;;
12471         ia64*)
12472           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12473           ;;
12474         *)
12475           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12476           ;;
12477         esac
12478       else
12479         case $host_cpu in
12480         hppa*64*)
12481           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12482           ;;
12483         ia64*)
12484           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12485           ;;
12486         *)
12487
12488           # Older versions of the 11.00 compiler do not understand -b yet
12489           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12490           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12491 $as_echo_n "checking if $CC understands -b... " >&6; }
12492 if ${lt_cv_prog_compiler__b+:} false; then :
12493   $as_echo_n "(cached) " >&6
12494 else
12495   lt_cv_prog_compiler__b=no
12496    save_LDFLAGS=$LDFLAGS
12497    LDFLAGS="$LDFLAGS -b"
12498    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12499    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12500      # The linker can only warn and ignore the option if not recognized
12501      # So say no if there are warnings
12502      if test -s conftest.err; then
12503        # Append any errors to the config.log.
12504        cat conftest.err 1>&5
12505        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12506        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12507        if diff conftest.exp conftest.er2 >/dev/null; then
12508          lt_cv_prog_compiler__b=yes
12509        fi
12510      else
12511        lt_cv_prog_compiler__b=yes
12512      fi
12513    fi
12514    $RM -r conftest*
12515    LDFLAGS=$save_LDFLAGS
12516
12517 fi
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12519 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12520
12521 if test yes = "$lt_cv_prog_compiler__b"; then
12522     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12523 else
12524     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12525 fi
12526
12527           ;;
12528         esac
12529       fi
12530       if test no = "$with_gnu_ld"; then
12531         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12532         hardcode_libdir_separator=:
12533
12534         case $host_cpu in
12535         hppa*64*|ia64*)
12536           hardcode_direct=no
12537           hardcode_shlibpath_var=no
12538           ;;
12539         *)
12540           hardcode_direct=yes
12541           hardcode_direct_absolute=yes
12542           export_dynamic_flag_spec='$wl-E'
12543
12544           # hardcode_minus_L: Not really in the search PATH,
12545           # but as the default location of the library.
12546           hardcode_minus_L=yes
12547           ;;
12548         esac
12549       fi
12550       ;;
12551
12552     irix5* | irix6* | nonstopux*)
12553       if test yes = "$GCC"; then
12554         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'
12555         # Try to use the -exported_symbol ld option, if it does not
12556         # work, assume that -exports_file does not work either and
12557         # implicitly export all symbols.
12558         # This should be the same for all languages, so no per-tag cache variable.
12559         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12560 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12561 if ${lt_cv_irix_exported_symbol+:} false; then :
12562   $as_echo_n "(cached) " >&6
12563 else
12564   save_LDFLAGS=$LDFLAGS
12565            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12566            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h.  */
12568 int foo (void) { return 0; }
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"; then :
12571   lt_cv_irix_exported_symbol=yes
12572 else
12573   lt_cv_irix_exported_symbol=no
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext \
12576     conftest$ac_exeext conftest.$ac_ext
12577            LDFLAGS=$save_LDFLAGS
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12580 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12581         if test yes = "$lt_cv_irix_exported_symbol"; then
12582           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'
12583         fi
12584       else
12585         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'
12586         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'
12587       fi
12588       archive_cmds_need_lc='no'
12589       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12590       hardcode_libdir_separator=:
12591       inherit_rpath=yes
12592       link_all_deplibs=yes
12593       ;;
12594
12595     netbsd*)
12596       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12597         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12598       else
12599         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12600       fi
12601       hardcode_libdir_flag_spec='-R$libdir'
12602       hardcode_direct=yes
12603       hardcode_shlibpath_var=no
12604       ;;
12605
12606     newsos6)
12607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12608       hardcode_direct=yes
12609       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12610       hardcode_libdir_separator=:
12611       hardcode_shlibpath_var=no
12612       ;;
12613
12614     *nto* | *qnx*)
12615       ;;
12616
12617     openbsd* | bitrig*)
12618       if test -f /usr/libexec/ld.so; then
12619         hardcode_direct=yes
12620         hardcode_shlibpath_var=no
12621         hardcode_direct_absolute=yes
12622         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12623           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12624           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12625           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12626           export_dynamic_flag_spec='$wl-E'
12627         else
12628           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12629           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12630         fi
12631       else
12632         ld_shlibs=no
12633       fi
12634       ;;
12635
12636     os2*)
12637       hardcode_libdir_flag_spec='-L$libdir'
12638       hardcode_minus_L=yes
12639       allow_undefined_flag=unsupported
12640       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'
12641       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12642       ;;
12643
12644     osf3*)
12645       if test yes = "$GCC"; then
12646         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12647         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'
12648       else
12649         allow_undefined_flag=' -expect_unresolved \*'
12650         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'
12651       fi
12652       archive_cmds_need_lc='no'
12653       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12654       hardcode_libdir_separator=:
12655       ;;
12656
12657     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12658       if test yes = "$GCC"; then
12659         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12660         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'
12661         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12662       else
12663         allow_undefined_flag=' -expect_unresolved \*'
12664         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'
12665         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~
12666           $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'
12667
12668         # Both c and cxx compiler support -rpath directly
12669         hardcode_libdir_flag_spec='-rpath $libdir'
12670       fi
12671       archive_cmds_need_lc='no'
12672       hardcode_libdir_separator=:
12673       ;;
12674
12675     solaris*)
12676       no_undefined_flag=' -z defs'
12677       if test yes = "$GCC"; then
12678         wlarc='$wl'
12679         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12680         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12681           $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'
12682       else
12683         case `$CC -V 2>&1` in
12684         *"Compilers 5.0"*)
12685           wlarc=''
12686           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12687           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12688             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12689           ;;
12690         *)
12691           wlarc='$wl'
12692           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12693           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12694             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12695           ;;
12696         esac
12697       fi
12698       hardcode_libdir_flag_spec='-R$libdir'
12699       hardcode_shlibpath_var=no
12700       case $host_os in
12701       solaris2.[0-5] | solaris2.[0-5].*) ;;
12702       *)
12703         # The compiler driver will combine and reorder linker options,
12704         # but understands '-z linker_flag'.  GCC discards it without '$wl',
12705         # but is careful enough not to reorder.
12706         # Supported since Solaris 2.6 (maybe 2.5.1?)
12707         if test yes = "$GCC"; then
12708           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12709         else
12710           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12711         fi
12712         ;;
12713       esac
12714       link_all_deplibs=yes
12715       ;;
12716
12717     sunos4*)
12718       if test sequent = "$host_vendor"; then
12719         # Use $CC to link under sequent, because it throws in some extra .o
12720         # files that make .init and .fini sections work.
12721         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12722       else
12723         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12724       fi
12725       hardcode_libdir_flag_spec='-L$libdir'
12726       hardcode_direct=yes
12727       hardcode_minus_L=yes
12728       hardcode_shlibpath_var=no
12729       ;;
12730
12731     sysv4)
12732       case $host_vendor in
12733         sni)
12734           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12735           hardcode_direct=yes # is this really true???
12736         ;;
12737         siemens)
12738           ## LD is ld it makes a PLAMLIB
12739           ## CC just makes a GrossModule.
12740           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12741           reload_cmds='$CC -r -o $output$reload_objs'
12742           hardcode_direct=no
12743         ;;
12744         motorola)
12745           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12746           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12747         ;;
12748       esac
12749       runpath_var='LD_RUN_PATH'
12750       hardcode_shlibpath_var=no
12751       ;;
12752
12753     sysv4.3*)
12754       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12755       hardcode_shlibpath_var=no
12756       export_dynamic_flag_spec='-Bexport'
12757       ;;
12758
12759     sysv4*MP*)
12760       if test -d /usr/nec; then
12761         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12762         hardcode_shlibpath_var=no
12763         runpath_var=LD_RUN_PATH
12764         hardcode_runpath_var=yes
12765         ld_shlibs=yes
12766       fi
12767       ;;
12768
12769     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12770       no_undefined_flag='$wl-z,text'
12771       archive_cmds_need_lc=no
12772       hardcode_shlibpath_var=no
12773       runpath_var='LD_RUN_PATH'
12774
12775       if test yes = "$GCC"; then
12776         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12777         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12778       else
12779         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12780         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12781       fi
12782       ;;
12783
12784     sysv5* | sco3.2v5* | sco5v6*)
12785       # Note: We CANNOT use -z defs as we might desire, because we do not
12786       # link with -lc, and that would cause any symbols used from libc to
12787       # always be unresolved, which means just about no library would
12788       # ever link correctly.  If we're not using GNU ld we use -z text
12789       # though, which does catch some bad symbols but isn't as heavy-handed
12790       # as -z defs.
12791       no_undefined_flag='$wl-z,text'
12792       allow_undefined_flag='$wl-z,nodefs'
12793       archive_cmds_need_lc=no
12794       hardcode_shlibpath_var=no
12795       hardcode_libdir_flag_spec='$wl-R,$libdir'
12796       hardcode_libdir_separator=':'
12797       link_all_deplibs=yes
12798       export_dynamic_flag_spec='$wl-Bexport'
12799       runpath_var='LD_RUN_PATH'
12800
12801       if test yes = "$GCC"; then
12802         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12803         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12804       else
12805         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12806         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12807       fi
12808       ;;
12809
12810     uts4*)
12811       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12812       hardcode_libdir_flag_spec='-L$libdir'
12813       hardcode_shlibpath_var=no
12814       ;;
12815
12816     *)
12817       ld_shlibs=no
12818       ;;
12819     esac
12820
12821     if test sni = "$host_vendor"; then
12822       case $host in
12823       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12824         export_dynamic_flag_spec='$wl-Blargedynsym'
12825         ;;
12826       esac
12827     fi
12828   fi
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12831 $as_echo "$ld_shlibs" >&6; }
12832 test no = "$ld_shlibs" && can_build_shared=no
12833
12834 with_gnu_ld=$with_gnu_ld
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850 #
12851 # Do we need to explicitly link libc?
12852 #
12853 case "x$archive_cmds_need_lc" in
12854 x|xyes)
12855   # Assume -lc should be added
12856   archive_cmds_need_lc=yes
12857
12858   if test yes,yes = "$GCC,$enable_shared"; then
12859     case $archive_cmds in
12860     *'~'*)
12861       # FIXME: we may have to deal with multi-command sequences.
12862       ;;
12863     '$CC '*)
12864       # Test whether the compiler implicitly links with -lc since on some
12865       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12866       # to ld, don't add -lc before -lgcc.
12867       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12869 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12870   $as_echo_n "(cached) " >&6
12871 else
12872   $RM conftest*
12873         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12874
12875         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12876   (eval $ac_compile) 2>&5
12877   ac_status=$?
12878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12879   test $ac_status = 0; } 2>conftest.err; then
12880           soname=conftest
12881           lib=conftest
12882           libobjs=conftest.$ac_objext
12883           deplibs=
12884           wl=$lt_prog_compiler_wl
12885           pic_flag=$lt_prog_compiler_pic
12886           compiler_flags=-v
12887           linker_flags=-v
12888           verstring=
12889           output_objdir=.
12890           libname=conftest
12891           lt_save_allow_undefined_flag=$allow_undefined_flag
12892           allow_undefined_flag=
12893           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12894   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12895   ac_status=$?
12896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12897   test $ac_status = 0; }
12898           then
12899             lt_cv_archive_cmds_need_lc=no
12900           else
12901             lt_cv_archive_cmds_need_lc=yes
12902           fi
12903           allow_undefined_flag=$lt_save_allow_undefined_flag
12904         else
12905           cat conftest.err 1>&5
12906         fi
12907         $RM conftest*
12908
12909 fi
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12911 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12912       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12913       ;;
12914     esac
12915   fi
12916   ;;
12917 esac
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13071 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13072
13073 if test yes = "$GCC"; then
13074   case $host_os in
13075     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13076     *) lt_awk_arg='/^libraries:/' ;;
13077   esac
13078   case $host_os in
13079     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13080     *) lt_sed_strip_eq='s|=/|/|g' ;;
13081   esac
13082   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13083   case $lt_search_path_spec in
13084   *\;*)
13085     # if the path contains ";" then we assume it to be the separator
13086     # otherwise default to the standard path separator (i.e. ":") - it is
13087     # assumed that no part of a normal pathname contains ";" but that should
13088     # okay in the real world where ";" in dirpaths is itself problematic.
13089     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13090     ;;
13091   *)
13092     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13093     ;;
13094   esac
13095   # Ok, now we have the path, separated by spaces, we can step through it
13096   # and add multilib dir if necessary...
13097   lt_tmp_lt_search_path_spec=
13098   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13099   # ...but if some path component already ends with the multilib dir we assume
13100   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13101   case "$lt_multi_os_dir; $lt_search_path_spec " in
13102   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13103     lt_multi_os_dir=
13104     ;;
13105   esac
13106   for lt_sys_path in $lt_search_path_spec; do
13107     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13108       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13109     elif test -n "$lt_multi_os_dir"; then
13110       test -d "$lt_sys_path" && \
13111         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13112     fi
13113   done
13114   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13115 BEGIN {RS = " "; FS = "/|\n";} {
13116   lt_foo = "";
13117   lt_count = 0;
13118   for (lt_i = NF; lt_i > 0; lt_i--) {
13119     if ($lt_i != "" && $lt_i != ".") {
13120       if ($lt_i == "..") {
13121         lt_count++;
13122       } else {
13123         if (lt_count == 0) {
13124           lt_foo = "/" $lt_i lt_foo;
13125         } else {
13126           lt_count--;
13127         }
13128       }
13129     }
13130   }
13131   if (lt_foo != "") { lt_freq[lt_foo]++; }
13132   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13133 }'`
13134   # AWK program above erroneously prepends '/' to C:/dos/paths
13135   # for these hosts.
13136   case $host_os in
13137     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13138       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13139   esac
13140   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13141 else
13142   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13143 fi
13144 library_names_spec=
13145 libname_spec='lib$name'
13146 soname_spec=
13147 shrext_cmds=.so
13148 postinstall_cmds=
13149 postuninstall_cmds=
13150 finish_cmds=
13151 finish_eval=
13152 shlibpath_var=
13153 shlibpath_overrides_runpath=unknown
13154 version_type=none
13155 dynamic_linker="$host_os ld.so"
13156 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13157 need_lib_prefix=unknown
13158 hardcode_into_libs=no
13159
13160 # when you set need_version to no, make sure it does not cause -set_version
13161 # flags to be left without arguments
13162 need_version=unknown
13163
13164 case $host_os in
13165 aix3*)
13166   version_type=linux # correct to gnu/linux during the next big refactor
13167   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13168   shlibpath_var=LIBPATH
13169
13170   # AIX 3 has no versioning support, so we append a major version to the name.
13171   soname_spec='$libname$release$shared_ext$major'
13172   ;;
13173
13174 aix[4-9]*)
13175   version_type=linux # correct to gnu/linux during the next big refactor
13176   need_lib_prefix=no
13177   need_version=no
13178   hardcode_into_libs=yes
13179   if test ia64 = "$host_cpu"; then
13180     # AIX 5 supports IA64
13181     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13182     shlibpath_var=LD_LIBRARY_PATH
13183   else
13184     # With GCC up to 2.95.x, collect2 would create an import file
13185     # for dependence libraries.  The import file would start with
13186     # the line '#! .'.  This would cause the generated library to
13187     # depend on '.', always an invalid library.  This was fixed in
13188     # development snapshots of GCC prior to 3.0.
13189     case $host_os in
13190       aix4 | aix4.[01] | aix4.[01].*)
13191       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13192            echo ' yes '
13193            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13194         :
13195       else
13196         can_build_shared=no
13197       fi
13198       ;;
13199     esac
13200     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13201     # soname into executable. Probably we can add versioning support to
13202     # collect2, so additional links can be useful in future.
13203     if test yes = "$aix_use_runtimelinking"; then
13204       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13205       # instead of lib<name>.a to let people know that these are not
13206       # typical AIX shared libraries.
13207       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13208     else
13209       # We preserve .a as extension for shared libraries through AIX4.2
13210       # and later when we are not doing run time linking.
13211       library_names_spec='$libname$release.a $libname.a'
13212       soname_spec='$libname$release$shared_ext$major'
13213     fi
13214     shlibpath_var=LIBPATH
13215   fi
13216   ;;
13217
13218 amigaos*)
13219   case $host_cpu in
13220   powerpc)
13221     # Since July 2007 AmigaOS4 officially supports .so libraries.
13222     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13223     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13224     ;;
13225   m68k)
13226     library_names_spec='$libname.ixlibrary $libname.a'
13227     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13228     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13229     ;;
13230   esac
13231   ;;
13232
13233 beos*)
13234   library_names_spec='$libname$shared_ext'
13235   dynamic_linker="$host_os ld.so"
13236   shlibpath_var=LIBRARY_PATH
13237   ;;
13238
13239 bsdi[45]*)
13240   version_type=linux # correct to gnu/linux during the next big refactor
13241   need_version=no
13242   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13243   soname_spec='$libname$release$shared_ext$major'
13244   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13245   shlibpath_var=LD_LIBRARY_PATH
13246   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13247   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13248   # the default ld.so.conf also contains /usr/contrib/lib and
13249   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13250   # libtool to hard-code these into programs
13251   ;;
13252
13253 cygwin* | mingw* | pw32* | cegcc*)
13254   version_type=windows
13255   shrext_cmds=.dll
13256   need_version=no
13257   need_lib_prefix=no
13258
13259   case $GCC,$cc_basename in
13260   yes,*)
13261     # gcc
13262     library_names_spec='$libname.dll.a'
13263     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13264     postinstall_cmds='base_file=`basename \$file`~
13265       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13266       dldir=$destdir/`dirname \$dlpath`~
13267       test -d \$dldir || mkdir -p \$dldir~
13268       $install_prog $dir/$dlname \$dldir/$dlname~
13269       chmod a+x \$dldir/$dlname~
13270       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13271         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13272       fi'
13273     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13274       dlpath=$dir/\$dldll~
13275        $RM \$dlpath'
13276     shlibpath_overrides_runpath=yes
13277
13278     case $host_os in
13279     cygwin*)
13280       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13281       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13282
13283       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13284       ;;
13285     mingw* | cegcc*)
13286       # MinGW DLLs use traditional 'lib' prefix
13287       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13288       ;;
13289     pw32*)
13290       # pw32 DLLs use 'pw' prefix rather than 'lib'
13291       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13292       ;;
13293     esac
13294     dynamic_linker='Win32 ld.exe'
13295     ;;
13296
13297   *,cl*)
13298     # Native MSVC
13299     libname_spec='$name'
13300     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13301     library_names_spec='$libname.dll.lib'
13302
13303     case $build_os in
13304     mingw*)
13305       sys_lib_search_path_spec=
13306       lt_save_ifs=$IFS
13307       IFS=';'
13308       for lt_path in $LIB
13309       do
13310         IFS=$lt_save_ifs
13311         # Let DOS variable expansion print the short 8.3 style file name.
13312         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13313         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13314       done
13315       IFS=$lt_save_ifs
13316       # Convert to MSYS style.
13317       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13318       ;;
13319     cygwin*)
13320       # Convert to unix form, then to dos form, then back to unix form
13321       # but this time dos style (no spaces!) so that the unix form looks
13322       # like /cygdrive/c/PROGRA~1:/cygdr...
13323       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13324       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13325       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13326       ;;
13327     *)
13328       sys_lib_search_path_spec=$LIB
13329       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13330         # It is most probably a Windows format PATH.
13331         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13332       else
13333         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13334       fi
13335       # FIXME: find the short name or the path components, as spaces are
13336       # common. (e.g. "Program Files" -> "PROGRA~1")
13337       ;;
13338     esac
13339
13340     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13341     postinstall_cmds='base_file=`basename \$file`~
13342       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13343       dldir=$destdir/`dirname \$dlpath`~
13344       test -d \$dldir || mkdir -p \$dldir~
13345       $install_prog $dir/$dlname \$dldir/$dlname'
13346     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13347       dlpath=$dir/\$dldll~
13348        $RM \$dlpath'
13349     shlibpath_overrides_runpath=yes
13350     dynamic_linker='Win32 link.exe'
13351     ;;
13352
13353   *)
13354     # Assume MSVC wrapper
13355     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13356     dynamic_linker='Win32 ld.exe'
13357     ;;
13358   esac
13359   # FIXME: first we should search . and the directory the executable is in
13360   shlibpath_var=PATH
13361   ;;
13362
13363 darwin* | rhapsody*)
13364   dynamic_linker="$host_os dyld"
13365   version_type=darwin
13366   need_lib_prefix=no
13367   need_version=no
13368   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13369   soname_spec='$libname$release$major$shared_ext'
13370   shlibpath_overrides_runpath=yes
13371   shlibpath_var=DYLD_LIBRARY_PATH
13372   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13373
13374   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13375   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13376   ;;
13377
13378 dgux*)
13379   version_type=linux # correct to gnu/linux during the next big refactor
13380   need_lib_prefix=no
13381   need_version=no
13382   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13383   soname_spec='$libname$release$shared_ext$major'
13384   shlibpath_var=LD_LIBRARY_PATH
13385   ;;
13386
13387 freebsd* | dragonfly*)
13388   # DragonFly does not have aout.  When/if they implement a new
13389   # versioning mechanism, adjust this.
13390   if test -x /usr/bin/objformat; then
13391     objformat=`/usr/bin/objformat`
13392   else
13393     case $host_os in
13394     freebsd[23].*) objformat=aout ;;
13395     *) objformat=elf ;;
13396     esac
13397   fi
13398   version_type=freebsd-$objformat
13399   case $version_type in
13400     freebsd-elf*)
13401       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13402       need_version=no
13403       need_lib_prefix=no
13404       ;;
13405     freebsd-*)
13406       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13407       need_version=yes
13408       ;;
13409   esac
13410   shlibpath_var=LD_LIBRARY_PATH
13411   case $host_os in
13412   freebsd2.*)
13413     shlibpath_overrides_runpath=yes
13414     ;;
13415   freebsd3.[01]* | freebsdelf3.[01]*)
13416     shlibpath_overrides_runpath=yes
13417     hardcode_into_libs=yes
13418     ;;
13419   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13420   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13421     shlibpath_overrides_runpath=no
13422     hardcode_into_libs=yes
13423     ;;
13424   *) # from 4.6 on, and DragonFly
13425     shlibpath_overrides_runpath=yes
13426     hardcode_into_libs=yes
13427     ;;
13428   esac
13429   ;;
13430
13431 haiku*)
13432   version_type=linux # correct to gnu/linux during the next big refactor
13433   need_lib_prefix=no
13434   need_version=no
13435   dynamic_linker="$host_os runtime_loader"
13436   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13437   soname_spec='$libname$release$shared_ext$major'
13438   shlibpath_var=LIBRARY_PATH
13439   shlibpath_overrides_runpath=no
13440   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13441   hardcode_into_libs=yes
13442   ;;
13443
13444 hpux9* | hpux10* | hpux11*)
13445   # Give a soname corresponding to the major version so that dld.sl refuses to
13446   # link against other versions.
13447   version_type=sunos
13448   need_lib_prefix=no
13449   need_version=no
13450   case $host_cpu in
13451   ia64*)
13452     shrext_cmds='.so'
13453     hardcode_into_libs=yes
13454     dynamic_linker="$host_os dld.so"
13455     shlibpath_var=LD_LIBRARY_PATH
13456     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13458     soname_spec='$libname$release$shared_ext$major'
13459     if test 32 = "$HPUX_IA64_MODE"; then
13460       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461     else
13462       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463     fi
13464     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13465     ;;
13466   hppa*64*)
13467     shrext_cmds='.sl'
13468     hardcode_into_libs=yes
13469     dynamic_linker="$host_os dld.sl"
13470     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13473     soname_spec='$libname$release$shared_ext$major'
13474     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476     ;;
13477   *)
13478     shrext_cmds='.sl'
13479     dynamic_linker="$host_os dld.sl"
13480     shlibpath_var=SHLIB_PATH
13481     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13483     soname_spec='$libname$release$shared_ext$major'
13484     ;;
13485   esac
13486   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13487   postinstall_cmds='chmod 555 $lib'
13488   # or fails outright, so override atomically:
13489   install_override_mode=555
13490   ;;
13491
13492 interix[3-9]*)
13493   version_type=linux # correct to gnu/linux during the next big refactor
13494   need_lib_prefix=no
13495   need_version=no
13496   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13497   soname_spec='$libname$release$shared_ext$major'
13498   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13499   shlibpath_var=LD_LIBRARY_PATH
13500   shlibpath_overrides_runpath=no
13501   hardcode_into_libs=yes
13502   ;;
13503
13504 irix5* | irix6* | nonstopux*)
13505   case $host_os in
13506     nonstopux*) version_type=nonstopux ;;
13507     *)
13508         if test yes = "$lt_cv_prog_gnu_ld"; then
13509                 version_type=linux # correct to gnu/linux during the next big refactor
13510         else
13511                 version_type=irix
13512         fi ;;
13513   esac
13514   need_lib_prefix=no
13515   need_version=no
13516   soname_spec='$libname$release$shared_ext$major'
13517   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13518   case $host_os in
13519   irix5* | nonstopux*)
13520     libsuff= shlibsuff=
13521     ;;
13522   *)
13523     case $LD in # libtool.m4 will add one of these switches to LD
13524     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13525       libsuff= shlibsuff= libmagic=32-bit;;
13526     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13527       libsuff=32 shlibsuff=N32 libmagic=N32;;
13528     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13529       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13530     *) libsuff= shlibsuff= libmagic=never-match;;
13531     esac
13532     ;;
13533   esac
13534   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13535   shlibpath_overrides_runpath=no
13536   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13537   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13538   hardcode_into_libs=yes
13539   ;;
13540
13541 # No shared lib support for Linux oldld, aout, or coff.
13542 linux*oldld* | linux*aout* | linux*coff*)
13543   dynamic_linker=no
13544   ;;
13545
13546 linux*android*)
13547   version_type=none # Android doesn't support versioned libraries.
13548   need_lib_prefix=no
13549   need_version=no
13550   library_names_spec='$libname$release$shared_ext'
13551   soname_spec='$libname$release$shared_ext'
13552   finish_cmds=
13553   shlibpath_var=LD_LIBRARY_PATH
13554   shlibpath_overrides_runpath=yes
13555
13556   # This implies no fast_install, which is unacceptable.
13557   # Some rework will be needed to allow for fast_install
13558   # before this can be enabled.
13559   hardcode_into_libs=yes
13560
13561   dynamic_linker='Android linker'
13562   # Don't embed -rpath directories since the linker doesn't support them.
13563   hardcode_libdir_flag_spec='-L$libdir'
13564   ;;
13565
13566 # This must be glibc/ELF.
13567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13568   version_type=linux # correct to gnu/linux during the next big refactor
13569   need_lib_prefix=no
13570   need_version=no
13571   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13572   soname_spec='$libname$release$shared_ext$major'
13573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13574   shlibpath_var=LD_LIBRARY_PATH
13575   shlibpath_overrides_runpath=no
13576
13577   # Some binutils ld are patched to set DT_RUNPATH
13578   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13579   $as_echo_n "(cached) " >&6
13580 else
13581   lt_cv_shlibpath_overrides_runpath=no
13582     save_LDFLAGS=$LDFLAGS
13583     save_libdir=$libdir
13584     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13585          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13586     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h.  */
13588
13589 int
13590 main ()
13591 {
13592
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 if ac_fn_c_try_link "$LINENO"; then :
13598   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13599   lt_cv_shlibpath_overrides_runpath=yes
13600 fi
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext \
13603     conftest$ac_exeext conftest.$ac_ext
13604     LDFLAGS=$save_LDFLAGS
13605     libdir=$save_libdir
13606
13607 fi
13608
13609   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13610
13611   # This implies no fast_install, which is unacceptable.
13612   # Some rework will be needed to allow for fast_install
13613   # before this can be enabled.
13614   hardcode_into_libs=yes
13615
13616   # Append ld.so.conf contents to the search path
13617   if test -f /etc/ld.so.conf; then
13618     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' ' '`
13619     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13620   fi
13621
13622   # We used to test for /lib/ld.so.1 and disable shared libraries on
13623   # powerpc, because MkLinux only supported shared libraries with the
13624   # GNU dynamic linker.  Since this was broken with cross compilers,
13625   # most powerpc-linux boxes support dynamic linking these days and
13626   # people can always --disable-shared, the test was removed, and we
13627   # assume the GNU/Linux dynamic linker is in use.
13628   dynamic_linker='GNU/Linux ld.so'
13629   ;;
13630
13631 netbsd*)
13632   version_type=sunos
13633   need_lib_prefix=no
13634   need_version=no
13635   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13636     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13637     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13638     dynamic_linker='NetBSD (a.out) ld.so'
13639   else
13640     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13641     soname_spec='$libname$release$shared_ext$major'
13642     dynamic_linker='NetBSD ld.elf_so'
13643   fi
13644   shlibpath_var=LD_LIBRARY_PATH
13645   shlibpath_overrides_runpath=yes
13646   hardcode_into_libs=yes
13647   ;;
13648
13649 newsos6)
13650   version_type=linux # correct to gnu/linux during the next big refactor
13651   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13652   shlibpath_var=LD_LIBRARY_PATH
13653   shlibpath_overrides_runpath=yes
13654   ;;
13655
13656 *nto* | *qnx*)
13657   version_type=qnx
13658   need_lib_prefix=no
13659   need_version=no
13660   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13661   soname_spec='$libname$release$shared_ext$major'
13662   shlibpath_var=LD_LIBRARY_PATH
13663   shlibpath_overrides_runpath=no
13664   hardcode_into_libs=yes
13665   dynamic_linker='ldqnx.so'
13666   ;;
13667
13668 openbsd* | bitrig*)
13669   version_type=sunos
13670   sys_lib_dlsearch_path_spec=/usr/lib
13671   need_lib_prefix=no
13672   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13673     need_version=no
13674   else
13675     need_version=yes
13676   fi
13677   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13678   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13679   shlibpath_var=LD_LIBRARY_PATH
13680   shlibpath_overrides_runpath=yes
13681   ;;
13682
13683 os2*)
13684   libname_spec='$name'
13685   shrext_cmds=.dll
13686   need_lib_prefix=no
13687   library_names_spec='$libname$shared_ext $libname.a'
13688   dynamic_linker='OS/2 ld.exe'
13689   shlibpath_var=LIBPATH
13690   ;;
13691
13692 osf3* | osf4* | osf5*)
13693   version_type=osf
13694   need_lib_prefix=no
13695   need_version=no
13696   soname_spec='$libname$release$shared_ext$major'
13697   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13698   shlibpath_var=LD_LIBRARY_PATH
13699   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13700   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13701   ;;
13702
13703 rdos*)
13704   dynamic_linker=no
13705   ;;
13706
13707 solaris*)
13708   version_type=linux # correct to gnu/linux during the next big refactor
13709   need_lib_prefix=no
13710   need_version=no
13711   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13712   soname_spec='$libname$release$shared_ext$major'
13713   shlibpath_var=LD_LIBRARY_PATH
13714   shlibpath_overrides_runpath=yes
13715   hardcode_into_libs=yes
13716   # ldd complains unless libraries are executable
13717   postinstall_cmds='chmod +x $lib'
13718   ;;
13719
13720 sunos4*)
13721   version_type=sunos
13722   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13723   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13724   shlibpath_var=LD_LIBRARY_PATH
13725   shlibpath_overrides_runpath=yes
13726   if test yes = "$with_gnu_ld"; then
13727     need_lib_prefix=no
13728   fi
13729   need_version=yes
13730   ;;
13731
13732 sysv4 | sysv4.3*)
13733   version_type=linux # correct to gnu/linux during the next big refactor
13734   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13735   soname_spec='$libname$release$shared_ext$major'
13736   shlibpath_var=LD_LIBRARY_PATH
13737   case $host_vendor in
13738     sni)
13739       shlibpath_overrides_runpath=no
13740       need_lib_prefix=no
13741       runpath_var=LD_RUN_PATH
13742       ;;
13743     siemens)
13744       need_lib_prefix=no
13745       ;;
13746     motorola)
13747       need_lib_prefix=no
13748       need_version=no
13749       shlibpath_overrides_runpath=no
13750       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13751       ;;
13752   esac
13753   ;;
13754
13755 sysv4*MP*)
13756   if test -d /usr/nec; then
13757     version_type=linux # correct to gnu/linux during the next big refactor
13758     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13759     soname_spec='$libname$shared_ext.$major'
13760     shlibpath_var=LD_LIBRARY_PATH
13761   fi
13762   ;;
13763
13764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13765   version_type=freebsd-elf
13766   need_lib_prefix=no
13767   need_version=no
13768   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13769   soname_spec='$libname$release$shared_ext$major'
13770   shlibpath_var=LD_LIBRARY_PATH
13771   shlibpath_overrides_runpath=yes
13772   hardcode_into_libs=yes
13773   if test yes = "$with_gnu_ld"; then
13774     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13775   else
13776     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13777     case $host_os in
13778       sco3.2v5*)
13779         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13780         ;;
13781     esac
13782   fi
13783   sys_lib_dlsearch_path_spec='/usr/lib'
13784   ;;
13785
13786 tpf*)
13787   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13788   version_type=linux # correct to gnu/linux during the next big refactor
13789   need_lib_prefix=no
13790   need_version=no
13791   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13792   shlibpath_var=LD_LIBRARY_PATH
13793   shlibpath_overrides_runpath=no
13794   hardcode_into_libs=yes
13795   ;;
13796
13797 uts4*)
13798   version_type=linux # correct to gnu/linux during the next big refactor
13799   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13800   soname_spec='$libname$release$shared_ext$major'
13801   shlibpath_var=LD_LIBRARY_PATH
13802   ;;
13803
13804 *)
13805   dynamic_linker=no
13806   ;;
13807 esac
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13809 $as_echo "$dynamic_linker" >&6; }
13810 test no = "$dynamic_linker" && can_build_shared=no
13811
13812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13813 if test yes = "$GCC"; then
13814   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13815 fi
13816
13817 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13818   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13819 fi
13820 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13821   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13822 fi
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13916 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13917 hardcode_action=
13918 if test -n "$hardcode_libdir_flag_spec" ||
13919    test -n "$runpath_var" ||
13920    test yes = "$hardcode_automatic"; then
13921
13922   # We can hardcode non-existent directories.
13923   if test no != "$hardcode_direct" &&
13924      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13925      # have to relink, otherwise we might link with an installed library
13926      # when we should be linking with a yet-to-be-installed one
13927      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13928      test no != "$hardcode_minus_L"; then
13929     # Linking always hardcodes the temporary library directory.
13930     hardcode_action=relink
13931   else
13932     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13933     hardcode_action=immediate
13934   fi
13935 else
13936   # We cannot hardcode anything, or else we can only hardcode existing
13937   # directories.
13938   hardcode_action=unsupported
13939 fi
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13941 $as_echo "$hardcode_action" >&6; }
13942
13943 if test relink = "$hardcode_action" ||
13944    test yes = "$inherit_rpath"; then
13945   # Fast installation is not supported
13946   enable_fast_install=no
13947 elif test yes = "$shlibpath_overrides_runpath" ||
13948      test no = "$enable_shared"; then
13949   # Fast installation is not necessary
13950   enable_fast_install=needless
13951 fi
13952
13953
13954
13955
13956
13957
13958   if test yes != "$enable_dlopen"; then
13959   enable_dlopen=unknown
13960   enable_dlopen_self=unknown
13961   enable_dlopen_self_static=unknown
13962 else
13963   lt_cv_dlopen=no
13964   lt_cv_dlopen_libs=
13965
13966   case $host_os in
13967   beos*)
13968     lt_cv_dlopen=load_add_on
13969     lt_cv_dlopen_libs=
13970     lt_cv_dlopen_self=yes
13971     ;;
13972
13973   mingw* | pw32* | cegcc*)
13974     lt_cv_dlopen=LoadLibrary
13975     lt_cv_dlopen_libs=
13976     ;;
13977
13978   cygwin*)
13979     lt_cv_dlopen=dlopen
13980     lt_cv_dlopen_libs=
13981     ;;
13982
13983   darwin*)
13984     # if libdl is installed we need to link against it
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13987 if ${ac_cv_lib_dl_dlopen+:} false; then :
13988   $as_echo_n "(cached) " >&6
13989 else
13990   ac_check_lib_save_LIBS=$LIBS
13991 LIBS="-ldl  $LIBS"
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h.  */
13994
13995 /* Override any GCC internal prototype to avoid an error.
13996    Use char because int might match the return type of a GCC
13997    builtin and then its argument prototype would still apply.  */
13998 #ifdef __cplusplus
13999 extern "C"
14000 #endif
14001 char dlopen ();
14002 int
14003 main ()
14004 {
14005 return dlopen ();
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 if ac_fn_c_try_link "$LINENO"; then :
14011   ac_cv_lib_dl_dlopen=yes
14012 else
14013   ac_cv_lib_dl_dlopen=no
14014 fi
14015 rm -f core conftest.err conftest.$ac_objext \
14016     conftest$ac_exeext conftest.$ac_ext
14017 LIBS=$ac_check_lib_save_LIBS
14018 fi
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14020 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14021 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14022   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14023 else
14024
14025     lt_cv_dlopen=dyld
14026     lt_cv_dlopen_libs=
14027     lt_cv_dlopen_self=yes
14028
14029 fi
14030
14031     ;;
14032
14033   tpf*)
14034     # Don't try to run any link tests for TPF.  We know it's impossible
14035     # because TPF is a cross-compiler, and we know how we open DSOs.
14036     lt_cv_dlopen=dlopen
14037     lt_cv_dlopen_libs=
14038     lt_cv_dlopen_self=no
14039     ;;
14040
14041   *)
14042     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14043 if test "x$ac_cv_func_shl_load" = xyes; then :
14044   lt_cv_dlopen=shl_load
14045 else
14046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14047 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14048 if ${ac_cv_lib_dld_shl_load+:} false; then :
14049   $as_echo_n "(cached) " >&6
14050 else
14051   ac_check_lib_save_LIBS=$LIBS
14052 LIBS="-ldld  $LIBS"
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h.  */
14055
14056 /* Override any GCC internal prototype to avoid an error.
14057    Use char because int might match the return type of a GCC
14058    builtin and then its argument prototype would still apply.  */
14059 #ifdef __cplusplus
14060 extern "C"
14061 #endif
14062 char shl_load ();
14063 int
14064 main ()
14065 {
14066 return shl_load ();
14067   ;
14068   return 0;
14069 }
14070 _ACEOF
14071 if ac_fn_c_try_link "$LINENO"; then :
14072   ac_cv_lib_dld_shl_load=yes
14073 else
14074   ac_cv_lib_dld_shl_load=no
14075 fi
14076 rm -f core conftest.err conftest.$ac_objext \
14077     conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14081 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14082 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14083   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14084 else
14085   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14086 if test "x$ac_cv_func_dlopen" = xyes; then :
14087   lt_cv_dlopen=dlopen
14088 else
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14090 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14091 if ${ac_cv_lib_dl_dlopen+:} false; then :
14092   $as_echo_n "(cached) " >&6
14093 else
14094   ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-ldl  $LIBS"
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h.  */
14098
14099 /* Override any GCC internal prototype to avoid an error.
14100    Use char because int might match the return type of a GCC
14101    builtin and then its argument prototype would still apply.  */
14102 #ifdef __cplusplus
14103 extern "C"
14104 #endif
14105 char dlopen ();
14106 int
14107 main ()
14108 {
14109 return dlopen ();
14110   ;
14111   return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"; then :
14115   ac_cv_lib_dl_dlopen=yes
14116 else
14117   ac_cv_lib_dl_dlopen=no
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext \
14120     conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14124 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14125 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14126   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14127 else
14128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14129 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14130 if ${ac_cv_lib_svld_dlopen+:} false; then :
14131   $as_echo_n "(cached) " >&6
14132 else
14133   ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-lsvld  $LIBS"
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h.  */
14137
14138 /* Override any GCC internal prototype to avoid an error.
14139    Use char because int might match the return type of a GCC
14140    builtin and then its argument prototype would still apply.  */
14141 #ifdef __cplusplus
14142 extern "C"
14143 #endif
14144 char dlopen ();
14145 int
14146 main ()
14147 {
14148 return dlopen ();
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_link "$LINENO"; then :
14154   ac_cv_lib_svld_dlopen=yes
14155 else
14156   ac_cv_lib_svld_dlopen=no
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext \
14159     conftest$ac_exeext conftest.$ac_ext
14160 LIBS=$ac_check_lib_save_LIBS
14161 fi
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14163 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14164 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14165   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14166 else
14167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14168 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14169 if ${ac_cv_lib_dld_dld_link+:} false; then :
14170   $as_echo_n "(cached) " >&6
14171 else
14172   ac_check_lib_save_LIBS=$LIBS
14173 LIBS="-ldld  $LIBS"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h.  */
14176
14177 /* Override any GCC internal prototype to avoid an error.
14178    Use char because int might match the return type of a GCC
14179    builtin and then its argument prototype would still apply.  */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char dld_link ();
14184 int
14185 main ()
14186 {
14187 return dld_link ();
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193   ac_cv_lib_dld_dld_link=yes
14194 else
14195   ac_cv_lib_dld_dld_link=no
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext \
14198     conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14202 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14203 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14204   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14205 fi
14206
14207
14208 fi
14209
14210
14211 fi
14212
14213
14214 fi
14215
14216
14217 fi
14218
14219
14220 fi
14221
14222     ;;
14223   esac
14224
14225   if test no = "$lt_cv_dlopen"; then
14226     enable_dlopen=no
14227   else
14228     enable_dlopen=yes
14229   fi
14230
14231   case $lt_cv_dlopen in
14232   dlopen)
14233     save_CPPFLAGS=$CPPFLAGS
14234     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14235
14236     save_LDFLAGS=$LDFLAGS
14237     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14238
14239     save_LIBS=$LIBS
14240     LIBS="$lt_cv_dlopen_libs $LIBS"
14241
14242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14243 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14244 if ${lt_cv_dlopen_self+:} false; then :
14245   $as_echo_n "(cached) " >&6
14246 else
14247           if test yes = "$cross_compiling"; then :
14248   lt_cv_dlopen_self=cross
14249 else
14250   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14251   lt_status=$lt_dlunknown
14252   cat > conftest.$ac_ext <<_LT_EOF
14253 #line $LINENO "configure"
14254 #include "confdefs.h"
14255
14256 #if HAVE_DLFCN_H
14257 #include <dlfcn.h>
14258 #endif
14259
14260 #include <stdio.h>
14261
14262 #ifdef RTLD_GLOBAL
14263 #  define LT_DLGLOBAL           RTLD_GLOBAL
14264 #else
14265 #  ifdef DL_GLOBAL
14266 #    define LT_DLGLOBAL         DL_GLOBAL
14267 #  else
14268 #    define LT_DLGLOBAL         0
14269 #  endif
14270 #endif
14271
14272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14273    find out it does not work in some platform. */
14274 #ifndef LT_DLLAZY_OR_NOW
14275 #  ifdef RTLD_LAZY
14276 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14277 #  else
14278 #    ifdef DL_LAZY
14279 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14280 #    else
14281 #      ifdef RTLD_NOW
14282 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14283 #      else
14284 #        ifdef DL_NOW
14285 #          define LT_DLLAZY_OR_NOW      DL_NOW
14286 #        else
14287 #          define LT_DLLAZY_OR_NOW      0
14288 #        endif
14289 #      endif
14290 #    endif
14291 #  endif
14292 #endif
14293
14294 /* When -fvisbility=hidden is used, assume the code has been annotated
14295    correspondingly for the symbols needed.  */
14296 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14297 int fnord () __attribute__((visibility("default")));
14298 #endif
14299
14300 int fnord () { return 42; }
14301 int main ()
14302 {
14303   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14304   int status = $lt_dlunknown;
14305
14306   if (self)
14307     {
14308       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14309       else
14310         {
14311           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14312           else puts (dlerror ());
14313         }
14314       /* dlclose (self); */
14315     }
14316   else
14317     puts (dlerror ());
14318
14319   return status;
14320 }
14321 _LT_EOF
14322   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14323   (eval $ac_link) 2>&5
14324   ac_status=$?
14325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14326   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14327     (./conftest; exit; ) >&5 2>/dev/null
14328     lt_status=$?
14329     case x$lt_status in
14330       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14331       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14332       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14333     esac
14334   else :
14335     # compilation failed
14336     lt_cv_dlopen_self=no
14337   fi
14338 fi
14339 rm -fr conftest*
14340
14341
14342 fi
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14344 $as_echo "$lt_cv_dlopen_self" >&6; }
14345
14346     if test yes = "$lt_cv_dlopen_self"; then
14347       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14348       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14349 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14350 if ${lt_cv_dlopen_self_static+:} false; then :
14351   $as_echo_n "(cached) " >&6
14352 else
14353           if test yes = "$cross_compiling"; then :
14354   lt_cv_dlopen_self_static=cross
14355 else
14356   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14357   lt_status=$lt_dlunknown
14358   cat > conftest.$ac_ext <<_LT_EOF
14359 #line $LINENO "configure"
14360 #include "confdefs.h"
14361
14362 #if HAVE_DLFCN_H
14363 #include <dlfcn.h>
14364 #endif
14365
14366 #include <stdio.h>
14367
14368 #ifdef RTLD_GLOBAL
14369 #  define LT_DLGLOBAL           RTLD_GLOBAL
14370 #else
14371 #  ifdef DL_GLOBAL
14372 #    define LT_DLGLOBAL         DL_GLOBAL
14373 #  else
14374 #    define LT_DLGLOBAL         0
14375 #  endif
14376 #endif
14377
14378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14379    find out it does not work in some platform. */
14380 #ifndef LT_DLLAZY_OR_NOW
14381 #  ifdef RTLD_LAZY
14382 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14383 #  else
14384 #    ifdef DL_LAZY
14385 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14386 #    else
14387 #      ifdef RTLD_NOW
14388 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14389 #      else
14390 #        ifdef DL_NOW
14391 #          define LT_DLLAZY_OR_NOW      DL_NOW
14392 #        else
14393 #          define LT_DLLAZY_OR_NOW      0
14394 #        endif
14395 #      endif
14396 #    endif
14397 #  endif
14398 #endif
14399
14400 /* When -fvisbility=hidden is used, assume the code has been annotated
14401    correspondingly for the symbols needed.  */
14402 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14403 int fnord () __attribute__((visibility("default")));
14404 #endif
14405
14406 int fnord () { return 42; }
14407 int main ()
14408 {
14409   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14410   int status = $lt_dlunknown;
14411
14412   if (self)
14413     {
14414       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14415       else
14416         {
14417           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14418           else puts (dlerror ());
14419         }
14420       /* dlclose (self); */
14421     }
14422   else
14423     puts (dlerror ());
14424
14425   return status;
14426 }
14427 _LT_EOF
14428   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14429   (eval $ac_link) 2>&5
14430   ac_status=$?
14431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14432   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14433     (./conftest; exit; ) >&5 2>/dev/null
14434     lt_status=$?
14435     case x$lt_status in
14436       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14437       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14438       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14439     esac
14440   else :
14441     # compilation failed
14442     lt_cv_dlopen_self_static=no
14443   fi
14444 fi
14445 rm -fr conftest*
14446
14447
14448 fi
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14450 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14451     fi
14452
14453     CPPFLAGS=$save_CPPFLAGS
14454     LDFLAGS=$save_LDFLAGS
14455     LIBS=$save_LIBS
14456     ;;
14457   esac
14458
14459   case $lt_cv_dlopen_self in
14460   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14461   *) enable_dlopen_self=unknown ;;
14462   esac
14463
14464   case $lt_cv_dlopen_self_static in
14465   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14466   *) enable_dlopen_self_static=unknown ;;
14467   esac
14468 fi
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486 striplib=
14487 old_striplib=
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14489 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14490 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14491   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14492   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 $as_echo "yes" >&6; }
14495 else
14496 # FIXME - insert some real tests, host_os isn't really good enough
14497   case $host_os in
14498   darwin*)
14499     if test -n "$STRIP"; then
14500       striplib="$STRIP -x"
14501       old_striplib="$STRIP -S"
14502       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14503 $as_echo "yes" >&6; }
14504     else
14505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14507     fi
14508     ;;
14509   *)
14510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511 $as_echo "no" >&6; }
14512     ;;
14513   esac
14514 fi
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527   # Report what library types will actually be built
14528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14529 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14531 $as_echo "$can_build_shared" >&6; }
14532
14533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14534 $as_echo_n "checking whether to build shared libraries... " >&6; }
14535   test no = "$can_build_shared" && enable_shared=no
14536
14537   # On AIX, shared libraries and static libraries use the same namespace, and
14538   # are all built from PIC.
14539   case $host_os in
14540   aix3*)
14541     test yes = "$enable_shared" && enable_static=no
14542     if test -n "$RANLIB"; then
14543       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14544       postinstall_cmds='$RANLIB $lib'
14545     fi
14546     ;;
14547
14548   aix[4-9]*)
14549     if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
14550       test yes = "$enable_shared" && enable_static=no
14551     fi
14552     ;;
14553   esac
14554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14555 $as_echo "$enable_shared" >&6; }
14556
14557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14558 $as_echo_n "checking whether to build static libraries... " >&6; }
14559   # Make sure either enable_shared or enable_static is yes.
14560   test yes = "$enable_shared" || enable_static=yes
14561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14562 $as_echo "$enable_static" >&6; }
14563
14564
14565
14566
14567 fi
14568 ac_ext=c
14569 ac_cpp='$CPP $CPPFLAGS'
14570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14573
14574 CC=$lt_save_CC
14575
14576       if test -n "$CXX" && ( test no != "$CXX" &&
14577     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14578     (test g++ != "$CXX"))); then
14579   ac_ext=cpp
14580 ac_cpp='$CXXCPP $CPPFLAGS'
14581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14585 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14586 if test -z "$CXXCPP"; then
14587   if ${ac_cv_prog_CXXCPP+:} false; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590       # Double quotes because CXXCPP needs to be expanded
14591     for CXXCPP in "$CXX -E" "/lib/cpp"
14592     do
14593       ac_preproc_ok=false
14594 for ac_cxx_preproc_warn_flag in '' yes
14595 do
14596   # Use a header file that comes with gcc, so configuring glibc
14597   # with a fresh cross-compiler works.
14598   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14599   # <limits.h> exists even on freestanding compilers.
14600   # On the NeXT, cc -E runs the code through the compiler's parser,
14601   # not just through cpp. "Syntax error" is here to catch this case.
14602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h.  */
14604 #ifdef __STDC__
14605 # include <limits.h>
14606 #else
14607 # include <assert.h>
14608 #endif
14609                      Syntax error
14610 _ACEOF
14611 if ac_fn_cxx_try_cpp "$LINENO"; then :
14612
14613 else
14614   # Broken: fails on valid input.
14615 continue
14616 fi
14617 rm -f conftest.err conftest.i conftest.$ac_ext
14618
14619   # OK, works on sane cases.  Now check whether nonexistent headers
14620   # can be detected and how.
14621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h.  */
14623 #include <ac_nonexistent.h>
14624 _ACEOF
14625 if ac_fn_cxx_try_cpp "$LINENO"; then :
14626   # Broken: success on invalid input.
14627 continue
14628 else
14629   # Passes both tests.
14630 ac_preproc_ok=:
14631 break
14632 fi
14633 rm -f conftest.err conftest.i conftest.$ac_ext
14634
14635 done
14636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14637 rm -f conftest.i conftest.err conftest.$ac_ext
14638 if $ac_preproc_ok; then :
14639   break
14640 fi
14641
14642     done
14643     ac_cv_prog_CXXCPP=$CXXCPP
14644
14645 fi
14646   CXXCPP=$ac_cv_prog_CXXCPP
14647 else
14648   ac_cv_prog_CXXCPP=$CXXCPP
14649 fi
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14651 $as_echo "$CXXCPP" >&6; }
14652 ac_preproc_ok=false
14653 for ac_cxx_preproc_warn_flag in '' yes
14654 do
14655   # Use a header file that comes with gcc, so configuring glibc
14656   # with a fresh cross-compiler works.
14657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658   # <limits.h> exists even on freestanding compilers.
14659   # On the NeXT, cc -E runs the code through the compiler's parser,
14660   # not just through cpp. "Syntax error" is here to catch this case.
14661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h.  */
14663 #ifdef __STDC__
14664 # include <limits.h>
14665 #else
14666 # include <assert.h>
14667 #endif
14668                      Syntax error
14669 _ACEOF
14670 if ac_fn_cxx_try_cpp "$LINENO"; then :
14671
14672 else
14673   # Broken: fails on valid input.
14674 continue
14675 fi
14676 rm -f conftest.err conftest.i conftest.$ac_ext
14677
14678   # OK, works on sane cases.  Now check whether nonexistent headers
14679   # can be detected and how.
14680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h.  */
14682 #include <ac_nonexistent.h>
14683 _ACEOF
14684 if ac_fn_cxx_try_cpp "$LINENO"; then :
14685   # Broken: success on invalid input.
14686 continue
14687 else
14688   # Passes both tests.
14689 ac_preproc_ok=:
14690 break
14691 fi
14692 rm -f conftest.err conftest.i conftest.$ac_ext
14693
14694 done
14695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14696 rm -f conftest.i conftest.err conftest.$ac_ext
14697 if $ac_preproc_ok; then :
14698
14699 else
14700   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14702 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14703 See \`config.log' for more details" "$LINENO" 5; }
14704 fi
14705
14706 ac_ext=c
14707 ac_cpp='$CPP $CPPFLAGS'
14708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14711
14712 else
14713   _lt_caught_CXX_error=yes
14714 fi
14715
14716 ac_ext=cpp
14717 ac_cpp='$CXXCPP $CPPFLAGS'
14718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14721
14722 archive_cmds_need_lc_CXX=no
14723 allow_undefined_flag_CXX=
14724 always_export_symbols_CXX=no
14725 archive_expsym_cmds_CXX=
14726 compiler_needs_object_CXX=no
14727 export_dynamic_flag_spec_CXX=
14728 hardcode_direct_CXX=no
14729 hardcode_direct_absolute_CXX=no
14730 hardcode_libdir_flag_spec_CXX=
14731 hardcode_libdir_separator_CXX=
14732 hardcode_minus_L_CXX=no
14733 hardcode_shlibpath_var_CXX=unsupported
14734 hardcode_automatic_CXX=no
14735 inherit_rpath_CXX=no
14736 module_cmds_CXX=
14737 module_expsym_cmds_CXX=
14738 link_all_deplibs_CXX=unknown
14739 old_archive_cmds_CXX=$old_archive_cmds
14740 reload_flag_CXX=$reload_flag
14741 reload_cmds_CXX=$reload_cmds
14742 no_undefined_flag_CXX=
14743 whole_archive_flag_spec_CXX=
14744 enable_shared_with_static_runtimes_CXX=no
14745
14746 # Source file extension for C++ test sources.
14747 ac_ext=cpp
14748
14749 # Object file extension for compiled C++ test sources.
14750 objext=o
14751 objext_CXX=$objext
14752
14753 # No sense in running all these tests if we already determined that
14754 # the CXX compiler isn't working.  Some variables (like enable_shared)
14755 # are currently assumed to apply to all compilers on this platform,
14756 # and will be corrupted by setting them based on a non-working compiler.
14757 if test yes != "$_lt_caught_CXX_error"; then
14758   # Code to be used in simple compile tests
14759   lt_simple_compile_test_code="int some_variable = 0;"
14760
14761   # Code to be used in simple link tests
14762   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14763
14764   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14765
14766
14767
14768
14769
14770
14771 # If no C compiler was specified, use CC.
14772 LTCC=${LTCC-"$CC"}
14773
14774 # If no C compiler flags were specified, use CFLAGS.
14775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14776
14777 # Allow CC to be a program name with arguments.
14778 compiler=$CC
14779
14780
14781   # save warnings/boilerplate of simple test code
14782   ac_outfile=conftest.$ac_objext
14783 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14784 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14785 _lt_compiler_boilerplate=`cat conftest.err`
14786 $RM conftest*
14787
14788   ac_outfile=conftest.$ac_objext
14789 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14790 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14791 _lt_linker_boilerplate=`cat conftest.err`
14792 $RM -r conftest*
14793
14794
14795   # Allow CC to be a program name with arguments.
14796   lt_save_CC=$CC
14797   lt_save_CFLAGS=$CFLAGS
14798   lt_save_LD=$LD
14799   lt_save_GCC=$GCC
14800   GCC=$GXX
14801   lt_save_with_gnu_ld=$with_gnu_ld
14802   lt_save_path_LD=$lt_cv_path_LD
14803   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14804     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14805   else
14806     $as_unset lt_cv_prog_gnu_ld
14807   fi
14808   if test -n "${lt_cv_path_LDCXX+set}"; then
14809     lt_cv_path_LD=$lt_cv_path_LDCXX
14810   else
14811     $as_unset lt_cv_path_LD
14812   fi
14813   test -z "${LDCXX+set}" || LD=$LDCXX
14814   CC=${CXX-"c++"}
14815   CFLAGS=$CXXFLAGS
14816   compiler=$CC
14817   compiler_CXX=$CC
14818   for cc_temp in $compiler""; do
14819   case $cc_temp in
14820     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14821     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14822     \-*) ;;
14823     *) break;;
14824   esac
14825 done
14826 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14827
14828
14829   if test -n "$compiler"; then
14830     # We don't want -fno-exception when compiling C++ code, so set the
14831     # no_builtin_flag separately
14832     if test yes = "$GXX"; then
14833       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14834     else
14835       lt_prog_compiler_no_builtin_flag_CXX=
14836     fi
14837
14838     if test yes = "$GXX"; then
14839       # Set up default GNU C++ configuration
14840
14841
14842
14843 # Check whether --with-gnu-ld was given.
14844 if test "${with_gnu_ld+set}" = set; then :
14845   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14846 else
14847   with_gnu_ld=no
14848 fi
14849
14850 ac_prog=ld
14851 if test yes = "$GCC"; then
14852   # Check if gcc -print-prog-name=ld gives a path.
14853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14854 $as_echo_n "checking for ld used by $CC... " >&6; }
14855   case $host in
14856   *-*-mingw*)
14857     # gcc leaves a trailing carriage return, which upsets mingw
14858     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14859   *)
14860     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14861   esac
14862   case $ac_prog in
14863     # Accept absolute paths.
14864     [\\/]* | ?:[\\/]*)
14865       re_direlt='/[^/][^/]*/\.\./'
14866       # Canonicalize the pathname of ld
14867       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14868       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14869         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14870       done
14871       test -z "$LD" && LD=$ac_prog
14872       ;;
14873   "")
14874     # If it fails, then pretend we aren't using GCC.
14875     ac_prog=ld
14876     ;;
14877   *)
14878     # If it is relative, then search for the first ld in PATH.
14879     with_gnu_ld=unknown
14880     ;;
14881   esac
14882 elif test yes = "$with_gnu_ld"; then
14883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14884 $as_echo_n "checking for GNU ld... " >&6; }
14885 else
14886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14887 $as_echo_n "checking for non-GNU ld... " >&6; }
14888 fi
14889 if ${lt_cv_path_LD+:} false; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892   if test -z "$LD"; then
14893   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14894   for ac_dir in $PATH; do
14895     IFS=$lt_save_ifs
14896     test -z "$ac_dir" && ac_dir=.
14897     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14898       lt_cv_path_LD=$ac_dir/$ac_prog
14899       # Check to see if the program is GNU ld.  I'd rather use --version,
14900       # but apparently some variants of GNU ld only accept -v.
14901       # Break only if it was the GNU/non-GNU ld that we prefer.
14902       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14903       *GNU* | *'with BFD'*)
14904         test no != "$with_gnu_ld" && break
14905         ;;
14906       *)
14907         test yes != "$with_gnu_ld" && break
14908         ;;
14909       esac
14910     fi
14911   done
14912   IFS=$lt_save_ifs
14913 else
14914   lt_cv_path_LD=$LD # Let the user override the test with a path.
14915 fi
14916 fi
14917
14918 LD=$lt_cv_path_LD
14919 if test -n "$LD"; then
14920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14921 $as_echo "$LD" >&6; }
14922 else
14923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14925 fi
14926 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14928 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14929 if ${lt_cv_prog_gnu_ld+:} false; then :
14930   $as_echo_n "(cached) " >&6
14931 else
14932   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14933 case `$LD -v 2>&1 </dev/null` in
14934 *GNU* | *'with BFD'*)
14935   lt_cv_prog_gnu_ld=yes
14936   ;;
14937 *)
14938   lt_cv_prog_gnu_ld=no
14939   ;;
14940 esac
14941 fi
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14943 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14944 with_gnu_ld=$lt_cv_prog_gnu_ld
14945
14946
14947
14948
14949
14950
14951
14952       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14953       # archiving commands below assume that GNU ld is being used.
14954       if test yes = "$with_gnu_ld"; then
14955         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14956         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'
14957
14958         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14959         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14960
14961         # If archive_cmds runs LD, not CC, wlarc should be empty
14962         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14963         #     investigate it a little bit more. (MM)
14964         wlarc='$wl'
14965
14966         # ancient GNU ld didn't support --whole-archive et. al.
14967         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14968           $GREP 'no-whole-archive' > /dev/null; then
14969           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14970         else
14971           whole_archive_flag_spec_CXX=
14972         fi
14973       else
14974         with_gnu_ld=no
14975         wlarc=
14976
14977         # A generic and very simple default shared library creation
14978         # command for GNU C++ for the case where it uses the native
14979         # linker, instead of GNU ld.  If possible, this setting should
14980         # overridden to take advantage of the native linker features on
14981         # the platform it is being used on.
14982         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14983       fi
14984
14985       # Commands to make compiler produce verbose output that lists
14986       # what "hidden" libraries, object files and flags are used when
14987       # linking a shared library.
14988       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14989
14990     else
14991       GXX=no
14992       with_gnu_ld=no
14993       wlarc=
14994     fi
14995
14996     # PORTME: fill in a description of your system's C++ link characteristics
14997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14998 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14999     ld_shlibs_CXX=yes
15000     case $host_os in
15001       aix3*)
15002         # FIXME: insert proper C++ library support
15003         ld_shlibs_CXX=no
15004         ;;
15005       aix[4-9]*)
15006         if test ia64 = "$host_cpu"; then
15007           # On IA64, the linker does run time linking by default, so we don't
15008           # have to do anything special.
15009           aix_use_runtimelinking=no
15010           exp_sym_flag='-Bexport'
15011           no_entry_flag=
15012         else
15013           aix_use_runtimelinking=no
15014
15015           # Test if we are trying to use run time linking or normal
15016           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15017           # need to do runtime linking.
15018           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15019             for ld_flag in $LDFLAGS; do
15020               case $ld_flag in
15021               *-brtl*)
15022                 aix_use_runtimelinking=yes
15023                 break
15024                 ;;
15025               esac
15026             done
15027             ;;
15028           esac
15029
15030           exp_sym_flag='-bexport'
15031           no_entry_flag='-bnoentry'
15032         fi
15033
15034         # When large executables or shared objects are built, AIX ld can
15035         # have problems creating the table of contents.  If linking a library
15036         # or program results in "error TOC overflow" add -mminimal-toc to
15037         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15038         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15039
15040         archive_cmds_CXX=''
15041         hardcode_direct_CXX=yes
15042         hardcode_direct_absolute_CXX=yes
15043         hardcode_libdir_separator_CXX=':'
15044         link_all_deplibs_CXX=yes
15045         file_list_spec_CXX='$wl-f,'
15046
15047         if test yes = "$GXX"; then
15048           case $host_os in aix4.[012]|aix4.[012].*)
15049           # We only want to do this on AIX 4.2 and lower, the check
15050           # below for broken collect2 doesn't work under 4.3+
15051           collect2name=`$CC -print-prog-name=collect2`
15052           if test -f "$collect2name" &&
15053              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15054           then
15055             # We have reworked collect2
15056             :
15057           else
15058             # We have old collect2
15059             hardcode_direct_CXX=unsupported
15060             # It fails to find uninstalled libraries when the uninstalled
15061             # path is not listed in the libpath.  Setting hardcode_minus_L
15062             # to unsupported forces relinking
15063             hardcode_minus_L_CXX=yes
15064             hardcode_libdir_flag_spec_CXX='-L$libdir'
15065             hardcode_libdir_separator_CXX=
15066           fi
15067           esac
15068           shared_flag='-shared'
15069           if test yes = "$aix_use_runtimelinking"; then
15070             shared_flag=$shared_flag' $wl-G'
15071           fi
15072         else
15073           # not using gcc
15074           if test ia64 = "$host_cpu"; then
15075           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15076           # chokes on -Wl,-G. The following line is correct:
15077           shared_flag='-G'
15078           else
15079             if test yes = "$aix_use_runtimelinking"; then
15080               shared_flag='$wl-G'
15081             else
15082               shared_flag='$wl-bM:SRE'
15083             fi
15084           fi
15085         fi
15086
15087         export_dynamic_flag_spec_CXX='$wl-bexpall'
15088         # It seems that -bexpall does not export symbols beginning with
15089         # underscore (_), so it is better to generate a list of symbols to
15090         # export.
15091         always_export_symbols_CXX=yes
15092         if test yes = "$aix_use_runtimelinking"; then
15093           # Warning - without using the other runtime loading flags (-brtl),
15094           # -berok will link without error, but may produce a broken library.
15095           allow_undefined_flag_CXX='-berok'
15096           # Determine the default libpath from the value encoded in an empty
15097           # executable.
15098           if test set = "${lt_cv_aix_libpath+set}"; then
15099   aix_libpath=$lt_cv_aix_libpath
15100 else
15101   if ${lt_cv_aix_libpath__CXX+:} false; then :
15102   $as_echo_n "(cached) " >&6
15103 else
15104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h.  */
15106
15107 int
15108 main ()
15109 {
15110
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 if ac_fn_cxx_try_link "$LINENO"; then :
15116
15117   lt_aix_libpath_sed='
15118       /Import File Strings/,/^$/ {
15119           /^0/ {
15120               s/^0  *\([^ ]*\) *$/\1/
15121               p
15122           }
15123       }'
15124   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15125   # Check for a 64-bit object if we didn't find anything.
15126   if test -z "$lt_cv_aix_libpath__CXX"; then
15127     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15128   fi
15129 fi
15130 rm -f core conftest.err conftest.$ac_objext \
15131     conftest$ac_exeext conftest.$ac_ext
15132   if test -z "$lt_cv_aix_libpath__CXX"; then
15133     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15134   fi
15135
15136 fi
15137
15138   aix_libpath=$lt_cv_aix_libpath__CXX
15139 fi
15140
15141           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15142
15143           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15144         else
15145           if test ia64 = "$host_cpu"; then
15146             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15147             allow_undefined_flag_CXX="-z nodefs"
15148             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"
15149           else
15150             # Determine the default libpath from the value encoded in an
15151             # empty executable.
15152             if test set = "${lt_cv_aix_libpath+set}"; then
15153   aix_libpath=$lt_cv_aix_libpath
15154 else
15155   if ${lt_cv_aix_libpath__CXX+:} false; then :
15156   $as_echo_n "(cached) " >&6
15157 else
15158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h.  */
15160
15161 int
15162 main ()
15163 {
15164
15165   ;
15166   return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_cxx_try_link "$LINENO"; then :
15170
15171   lt_aix_libpath_sed='
15172       /Import File Strings/,/^$/ {
15173           /^0/ {
15174               s/^0  *\([^ ]*\) *$/\1/
15175               p
15176           }
15177       }'
15178   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15179   # Check for a 64-bit object if we didn't find anything.
15180   if test -z "$lt_cv_aix_libpath__CXX"; then
15181     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182   fi
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext \
15185     conftest$ac_exeext conftest.$ac_ext
15186   if test -z "$lt_cv_aix_libpath__CXX"; then
15187     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15188   fi
15189
15190 fi
15191
15192   aix_libpath=$lt_cv_aix_libpath__CXX
15193 fi
15194
15195             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15196             # Warning - without using the other run time loading flags,
15197             # -berok will link without error, but may produce a broken library.
15198             no_undefined_flag_CXX=' $wl-bernotok'
15199             allow_undefined_flag_CXX=' $wl-berok'
15200             if test yes = "$with_gnu_ld"; then
15201               # We only use this code for GNU lds that support --whole-archive.
15202               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15203             else
15204               # Exported symbols can be pulled into shared objects from archives
15205               whole_archive_flag_spec_CXX='$convenience'
15206             fi
15207             archive_cmds_need_lc_CXX=yes
15208             # This is similar to how AIX traditionally builds its shared
15209             # libraries.
15210             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'
15211           fi
15212         fi
15213         ;;
15214
15215       beos*)
15216         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15217           allow_undefined_flag_CXX=unsupported
15218           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15219           # support --undefined.  This deserves some investigation.  FIXME
15220           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15221         else
15222           ld_shlibs_CXX=no
15223         fi
15224         ;;
15225
15226       chorus*)
15227         case $cc_basename in
15228           *)
15229           # FIXME: insert proper C++ library support
15230           ld_shlibs_CXX=no
15231           ;;
15232         esac
15233         ;;
15234
15235       cygwin* | mingw* | pw32* | cegcc*)
15236         case $GXX,$cc_basename in
15237         ,cl* | no,cl*)
15238           # Native MSVC
15239           # hardcode_libdir_flag_spec is actually meaningless, as there is
15240           # no search path for DLLs.
15241           hardcode_libdir_flag_spec_CXX=' '
15242           allow_undefined_flag_CXX=unsupported
15243           always_export_symbols_CXX=yes
15244           file_list_spec_CXX='@'
15245           # Tell ltmain to make .lib files, not .a files.
15246           libext=lib
15247           # Tell ltmain to make .dll files, not .so files.
15248           shrext_cmds=.dll
15249           # FIXME: Setting linknames here is a bad hack.
15250           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15251           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15252               cp "$export_symbols" "$output_objdir/$soname.def";
15253               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15254             else
15255               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15256             fi~
15257             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15258             linknames='
15259           # The linker will not automatically build a static lib if we build a DLL.
15260           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15261           enable_shared_with_static_runtimes_CXX=yes
15262           # Don't use ranlib
15263           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15264           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15265             lt_tool_outputfile="@TOOL_OUTPUT@"~
15266             case $lt_outputfile in
15267               *.exe|*.EXE) ;;
15268               *)
15269                 lt_outputfile=$lt_outputfile.exe
15270                 lt_tool_outputfile=$lt_tool_outputfile.exe
15271                 ;;
15272             esac~
15273             func_to_tool_file "$lt_outputfile"~
15274             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15275               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15276               $RM "$lt_outputfile.manifest";
15277             fi'
15278           ;;
15279         *)
15280           # g++
15281           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15282           # as there is no search path for DLLs.
15283           hardcode_libdir_flag_spec_CXX='-L$libdir'
15284           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15285           allow_undefined_flag_CXX=unsupported
15286           always_export_symbols_CXX=no
15287           enable_shared_with_static_runtimes_CXX=yes
15288
15289           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15290             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'
15291             # If the export-symbols file already is a .def file, use it as
15292             # is; otherwise, prepend EXPORTS...
15293             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15294               cp $export_symbols $output_objdir/$soname.def;
15295             else
15296               echo EXPORTS > $output_objdir/$soname.def;
15297               cat $export_symbols >> $output_objdir/$soname.def;
15298             fi~
15299             $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'
15300           else
15301             ld_shlibs_CXX=no
15302           fi
15303           ;;
15304         esac
15305         ;;
15306       darwin* | rhapsody*)
15307
15308
15309   archive_cmds_need_lc_CXX=no
15310   hardcode_direct_CXX=no
15311   hardcode_automatic_CXX=yes
15312   hardcode_shlibpath_var_CXX=unsupported
15313   if test yes = "$lt_cv_ld_force_load"; then
15314     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\"`'
15315
15316   else
15317     whole_archive_flag_spec_CXX=''
15318   fi
15319   link_all_deplibs_CXX=yes
15320   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15321   case $cc_basename in
15322      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15323      *) _lt_dar_can_shared=$GCC ;;
15324   esac
15325   if test yes = "$_lt_dar_can_shared"; then
15326     output_verbose_link_cmd=func_echo_all
15327     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"
15328     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15329     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"
15330     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"
15331        if test yes != "$lt_cv_apple_cc_single_mod"; then
15332       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"
15333       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"
15334     fi
15335
15336   else
15337   ld_shlibs_CXX=no
15338   fi
15339
15340         ;;
15341
15342       dgux*)
15343         case $cc_basename in
15344           ec++*)
15345             # FIXME: insert proper C++ library support
15346             ld_shlibs_CXX=no
15347             ;;
15348           ghcx*)
15349             # Green Hills C++ Compiler
15350             # FIXME: insert proper C++ library support
15351             ld_shlibs_CXX=no
15352             ;;
15353           *)
15354             # FIXME: insert proper C++ library support
15355             ld_shlibs_CXX=no
15356             ;;
15357         esac
15358         ;;
15359
15360       freebsd2.*)
15361         # C++ shared libraries reported to be fairly broken before
15362         # switch to ELF
15363         ld_shlibs_CXX=no
15364         ;;
15365
15366       freebsd-elf*)
15367         archive_cmds_need_lc_CXX=no
15368         ;;
15369
15370       freebsd* | dragonfly*)
15371         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15372         # conventions
15373         ld_shlibs_CXX=yes
15374         ;;
15375
15376       haiku*)
15377         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15378         link_all_deplibs_CXX=yes
15379         ;;
15380
15381       hpux9*)
15382         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15383         hardcode_libdir_separator_CXX=:
15384         export_dynamic_flag_spec_CXX='$wl-E'
15385         hardcode_direct_CXX=yes
15386         hardcode_minus_L_CXX=yes # Not in the search PATH,
15387                                              # but as the default
15388                                              # location of the library.
15389
15390         case $cc_basename in
15391           CC*)
15392             # FIXME: insert proper C++ library support
15393             ld_shlibs_CXX=no
15394             ;;
15395           aCC*)
15396             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15397             # Commands to make compiler produce verbose output that lists
15398             # what "hidden" libraries, object files and flags are used when
15399             # linking a shared library.
15400             #
15401             # There doesn't appear to be a way to prevent this compiler from
15402             # explicitly linking system object files so we need to strip them
15403             # from the output so that they don't get included in the library
15404             # dependencies.
15405             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"'
15406             ;;
15407           *)
15408             if test yes = "$GXX"; then
15409               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15410             else
15411               # FIXME: insert proper C++ library support
15412               ld_shlibs_CXX=no
15413             fi
15414             ;;
15415         esac
15416         ;;
15417
15418       hpux10*|hpux11*)
15419         if test no = "$with_gnu_ld"; then
15420           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15421           hardcode_libdir_separator_CXX=:
15422
15423           case $host_cpu in
15424             hppa*64*|ia64*)
15425               ;;
15426             *)
15427               export_dynamic_flag_spec_CXX='$wl-E'
15428               ;;
15429           esac
15430         fi
15431         case $host_cpu in
15432           hppa*64*|ia64*)
15433             hardcode_direct_CXX=no
15434             hardcode_shlibpath_var_CXX=no
15435             ;;
15436           *)
15437             hardcode_direct_CXX=yes
15438             hardcode_direct_absolute_CXX=yes
15439             hardcode_minus_L_CXX=yes # Not in the search PATH,
15440                                                  # but as the default
15441                                                  # location of the library.
15442             ;;
15443         esac
15444
15445         case $cc_basename in
15446           CC*)
15447             # FIXME: insert proper C++ library support
15448             ld_shlibs_CXX=no
15449             ;;
15450           aCC*)
15451             case $host_cpu in
15452               hppa*64*)
15453                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15454                 ;;
15455               ia64*)
15456                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15457                 ;;
15458               *)
15459                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15460                 ;;
15461             esac
15462             # Commands to make compiler produce verbose output that lists
15463             # what "hidden" libraries, object files and flags are used when
15464             # linking a shared library.
15465             #
15466             # There doesn't appear to be a way to prevent this compiler from
15467             # explicitly linking system object files so we need to strip them
15468             # from the output so that they don't get included in the library
15469             # dependencies.
15470             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"'
15471             ;;
15472           *)
15473             if test yes = "$GXX"; then
15474               if test no = "$with_gnu_ld"; then
15475                 case $host_cpu in
15476                   hppa*64*)
15477                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15478                     ;;
15479                   ia64*)
15480                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15481                     ;;
15482                   *)
15483                     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'
15484                     ;;
15485                 esac
15486               fi
15487             else
15488               # FIXME: insert proper C++ library support
15489               ld_shlibs_CXX=no
15490             fi
15491             ;;
15492         esac
15493         ;;
15494
15495       interix[3-9]*)
15496         hardcode_direct_CXX=no
15497         hardcode_shlibpath_var_CXX=no
15498         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15499         export_dynamic_flag_spec_CXX='$wl-E'
15500         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15501         # Instead, shared libraries are loaded at an image base (0x10000000 by
15502         # default) and relocated if they conflict, which is a slow very memory
15503         # consuming and fragmenting process.  To avoid this, we pick a random,
15504         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15505         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15506         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'
15507         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'
15508         ;;
15509       irix5* | irix6*)
15510         case $cc_basename in
15511           CC*)
15512             # SGI C++
15513             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'
15514
15515             # Archives containing C++ object files must be created using
15516             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15517             # necessary to make sure instantiated templates are included
15518             # in the archive.
15519             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15520             ;;
15521           *)
15522             if test yes = "$GXX"; then
15523               if test no = "$with_gnu_ld"; then
15524                 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'
15525               else
15526                 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'
15527               fi
15528             fi
15529             link_all_deplibs_CXX=yes
15530             ;;
15531         esac
15532         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15533         hardcode_libdir_separator_CXX=:
15534         inherit_rpath_CXX=yes
15535         ;;
15536
15537       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15538         case $cc_basename in
15539           KCC*)
15540             # Kuck and Associates, Inc. (KAI) C++ Compiler
15541
15542             # KCC will only create a shared library if the output file
15543             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15544             # to its proper name (with version) after linking.
15545             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'
15546             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'
15547             # Commands to make compiler produce verbose output that lists
15548             # what "hidden" libraries, object files and flags are used when
15549             # linking a shared library.
15550             #
15551             # There doesn't appear to be a way to prevent this compiler from
15552             # explicitly linking system object files so we need to strip them
15553             # from the output so that they don't get included in the library
15554             # dependencies.
15555             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"'
15556
15557             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15558             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15559
15560             # Archives containing C++ object files must be created using
15561             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15562             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15563             ;;
15564           icpc* | ecpc* )
15565             # Intel C++
15566             with_gnu_ld=yes
15567             # version 8.0 and above of icpc choke on multiply defined symbols
15568             # if we add $predep_objects and $postdep_objects, however 7.1 and
15569             # earlier do not add the objects themselves.
15570             case `$CC -V 2>&1` in
15571               *"Version 7."*)
15572                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15573                 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'
15574                 ;;
15575               *)  # Version 8.0 or newer
15576                 tmp_idyn=
15577                 case $host_cpu in
15578                   ia64*) tmp_idyn=' -i_dynamic';;
15579                 esac
15580                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15581                 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'
15582                 ;;
15583             esac
15584             archive_cmds_need_lc_CXX=no
15585             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15586             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15587             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15588             ;;
15589           pgCC* | pgcpp*)
15590             # Portland Group C++ compiler
15591             case `$CC -V` in
15592             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15593               prelink_cmds_CXX='tpldir=Template.dir~
15594                rm -rf $tpldir~
15595                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15596                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15597               old_archive_cmds_CXX='tpldir=Template.dir~
15598                 rm -rf $tpldir~
15599                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15600                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15601                 $RANLIB $oldlib'
15602               archive_cmds_CXX='tpldir=Template.dir~
15603                 rm -rf $tpldir~
15604                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15605                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15606               archive_expsym_cmds_CXX='tpldir=Template.dir~
15607                 rm -rf $tpldir~
15608                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15609                 $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'
15610               ;;
15611             *) # Version 6 and above use weak symbols
15612               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15613               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'
15614               ;;
15615             esac
15616
15617             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15618             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15619             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'
15620             ;;
15621           cxx*)
15622             # Compaq C++
15623             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15624             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'
15625
15626             runpath_var=LD_RUN_PATH
15627             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15628             hardcode_libdir_separator_CXX=:
15629
15630             # Commands to make compiler produce verbose output that lists
15631             # what "hidden" libraries, object files and flags are used when
15632             # linking a shared library.
15633             #
15634             # There doesn't appear to be a way to prevent this compiler from
15635             # explicitly linking system object files so we need to strip them
15636             # from the output so that they don't get included in the library
15637             # dependencies.
15638             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'
15639             ;;
15640           xl* | mpixl* | bgxl*)
15641             # IBM XL 8.0 on PPC, with GNU ld
15642             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15643             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15644             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15645             if test yes = "$supports_anon_versioning"; then
15646               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15647                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15648                 echo "local: *; };" >> $output_objdir/$libname.ver~
15649                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15650             fi
15651             ;;
15652           *)
15653             case `$CC -V 2>&1 | sed 5q` in
15654             *Sun\ C*)
15655               # Sun C++ 5.9
15656               no_undefined_flag_CXX=' -zdefs'
15657               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15658               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'
15659               hardcode_libdir_flag_spec_CXX='-R$libdir'
15660               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'
15661               compiler_needs_object_CXX=yes
15662
15663               # Not sure whether something based on
15664               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15665               # would be better.
15666               output_verbose_link_cmd='func_echo_all'
15667
15668               # Archives containing C++ object files must be created using
15669               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15670               # necessary to make sure instantiated templates are included
15671               # in the archive.
15672               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15673               ;;
15674             esac
15675             ;;
15676         esac
15677         ;;
15678
15679       lynxos*)
15680         # FIXME: insert proper C++ library support
15681         ld_shlibs_CXX=no
15682         ;;
15683
15684       m88k*)
15685         # FIXME: insert proper C++ library support
15686         ld_shlibs_CXX=no
15687         ;;
15688
15689       mvs*)
15690         case $cc_basename in
15691           cxx*)
15692             # FIXME: insert proper C++ library support
15693             ld_shlibs_CXX=no
15694             ;;
15695           *)
15696             # FIXME: insert proper C++ library support
15697             ld_shlibs_CXX=no
15698             ;;
15699         esac
15700         ;;
15701
15702       netbsd*)
15703         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15704           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15705           wlarc=
15706           hardcode_libdir_flag_spec_CXX='-R$libdir'
15707           hardcode_direct_CXX=yes
15708           hardcode_shlibpath_var_CXX=no
15709         fi
15710         # Workaround some broken pre-1.5 toolchains
15711         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15712         ;;
15713
15714       *nto* | *qnx*)
15715         ld_shlibs_CXX=yes
15716         ;;
15717
15718       openbsd* | bitrig*)
15719         if test -f /usr/libexec/ld.so; then
15720           hardcode_direct_CXX=yes
15721           hardcode_shlibpath_var_CXX=no
15722           hardcode_direct_absolute_CXX=yes
15723           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15724           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15725           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15726             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15727             export_dynamic_flag_spec_CXX='$wl-E'
15728             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15729           fi
15730           output_verbose_link_cmd=func_echo_all
15731         else
15732           ld_shlibs_CXX=no
15733         fi
15734         ;;
15735
15736       osf3* | osf4* | osf5*)
15737         case $cc_basename in
15738           KCC*)
15739             # Kuck and Associates, Inc. (KAI) C++ Compiler
15740
15741             # KCC will only create a shared library if the output file
15742             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15743             # to its proper name (with version) after linking.
15744             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'
15745
15746             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15747             hardcode_libdir_separator_CXX=:
15748
15749             # Archives containing C++ object files must be created using
15750             # the KAI C++ compiler.
15751             case $host in
15752               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15753               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15754             esac
15755             ;;
15756           RCC*)
15757             # Rational C++ 2.4.1
15758             # FIXME: insert proper C++ library support
15759             ld_shlibs_CXX=no
15760             ;;
15761           cxx*)
15762             case $host in
15763               osf3*)
15764                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15765                 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'
15766                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15767                 ;;
15768               *)
15769                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15770                 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'
15771                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15772                   echo "-hidden">> $lib.exp~
15773                   $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~
15774                   $RM $lib.exp'
15775                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15776                 ;;
15777             esac
15778
15779             hardcode_libdir_separator_CXX=:
15780
15781             # Commands to make compiler produce verbose output that lists
15782             # what "hidden" libraries, object files and flags are used when
15783             # linking a shared library.
15784             #
15785             # There doesn't appear to be a way to prevent this compiler from
15786             # explicitly linking system object files so we need to strip them
15787             # from the output so that they don't get included in the library
15788             # dependencies.
15789             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"'
15790             ;;
15791           *)
15792             if test yes,no = "$GXX,$with_gnu_ld"; then
15793               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15794               case $host in
15795                 osf3*)
15796                   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'
15797                   ;;
15798                 *)
15799                   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'
15800                   ;;
15801               esac
15802
15803               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15804               hardcode_libdir_separator_CXX=:
15805
15806               # Commands to make compiler produce verbose output that lists
15807               # what "hidden" libraries, object files and flags are used when
15808               # linking a shared library.
15809               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15810
15811             else
15812               # FIXME: insert proper C++ library support
15813               ld_shlibs_CXX=no
15814             fi
15815             ;;
15816         esac
15817         ;;
15818
15819       psos*)
15820         # FIXME: insert proper C++ library support
15821         ld_shlibs_CXX=no
15822         ;;
15823
15824       sunos4*)
15825         case $cc_basename in
15826           CC*)
15827             # Sun C++ 4.x
15828             # FIXME: insert proper C++ library support
15829             ld_shlibs_CXX=no
15830             ;;
15831           lcc*)
15832             # Lucid
15833             # FIXME: insert proper C++ library support
15834             ld_shlibs_CXX=no
15835             ;;
15836           *)
15837             # FIXME: insert proper C++ library support
15838             ld_shlibs_CXX=no
15839             ;;
15840         esac
15841         ;;
15842
15843       solaris*)
15844         case $cc_basename in
15845           CC* | sunCC*)
15846             # Sun C++ 4.2, 5.x and Centerline C++
15847             archive_cmds_need_lc_CXX=yes
15848             no_undefined_flag_CXX=' -zdefs'
15849             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15850             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15851               $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'
15852
15853             hardcode_libdir_flag_spec_CXX='-R$libdir'
15854             hardcode_shlibpath_var_CXX=no
15855             case $host_os in
15856               solaris2.[0-5] | solaris2.[0-5].*) ;;
15857               *)
15858                 # The compiler driver will combine and reorder linker options,
15859                 # but understands '-z linker_flag'.
15860                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15861                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15862                 ;;
15863             esac
15864             link_all_deplibs_CXX=yes
15865
15866             output_verbose_link_cmd='func_echo_all'
15867
15868             # Archives containing C++ object files must be created using
15869             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15870             # necessary to make sure instantiated templates are included
15871             # in the archive.
15872             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15873             ;;
15874           gcx*)
15875             # Green Hills C++ Compiler
15876             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15877
15878             # The C++ compiler must be used to create the archive.
15879             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15880             ;;
15881           *)
15882             # GNU C++ compiler with Solaris linker
15883             if test yes,no = "$GXX,$with_gnu_ld"; then
15884               no_undefined_flag_CXX=' $wl-z ${wl}defs'
15885               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15886                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15887                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15888                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15889
15890                 # Commands to make compiler produce verbose output that lists
15891                 # what "hidden" libraries, object files and flags are used when
15892                 # linking a shared library.
15893                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15894               else
15895                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15896                 # platform.
15897                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15898                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15899                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15900
15901                 # Commands to make compiler produce verbose output that lists
15902                 # what "hidden" libraries, object files and flags are used when
15903                 # linking a shared library.
15904                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15905               fi
15906
15907               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15908               case $host_os in
15909                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15910                 *)
15911                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15912                   ;;
15913               esac
15914             fi
15915             ;;
15916         esac
15917         ;;
15918
15919     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15920       no_undefined_flag_CXX='$wl-z,text'
15921       archive_cmds_need_lc_CXX=no
15922       hardcode_shlibpath_var_CXX=no
15923       runpath_var='LD_RUN_PATH'
15924
15925       case $cc_basename in
15926         CC*)
15927           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15928           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15929           ;;
15930         *)
15931           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15932           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933           ;;
15934       esac
15935       ;;
15936
15937       sysv5* | sco3.2v5* | sco5v6*)
15938         # Note: We CANNOT use -z defs as we might desire, because we do not
15939         # link with -lc, and that would cause any symbols used from libc to
15940         # always be unresolved, which means just about no library would
15941         # ever link correctly.  If we're not using GNU ld we use -z text
15942         # though, which does catch some bad symbols but isn't as heavy-handed
15943         # as -z defs.
15944         no_undefined_flag_CXX='$wl-z,text'
15945         allow_undefined_flag_CXX='$wl-z,nodefs'
15946         archive_cmds_need_lc_CXX=no
15947         hardcode_shlibpath_var_CXX=no
15948         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15949         hardcode_libdir_separator_CXX=':'
15950         link_all_deplibs_CXX=yes
15951         export_dynamic_flag_spec_CXX='$wl-Bexport'
15952         runpath_var='LD_RUN_PATH'
15953
15954         case $cc_basename in
15955           CC*)
15956             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15958             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15959               '"$old_archive_cmds_CXX"
15960             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15961               '"$reload_cmds_CXX"
15962             ;;
15963           *)
15964             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15965             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966             ;;
15967         esac
15968       ;;
15969
15970       tandem*)
15971         case $cc_basename in
15972           NCC*)
15973             # NonStop-UX NCC 3.20
15974             # FIXME: insert proper C++ library support
15975             ld_shlibs_CXX=no
15976             ;;
15977           *)
15978             # FIXME: insert proper C++ library support
15979             ld_shlibs_CXX=no
15980             ;;
15981         esac
15982         ;;
15983
15984       vxworks*)
15985         # FIXME: insert proper C++ library support
15986         ld_shlibs_CXX=no
15987         ;;
15988
15989       *)
15990         # FIXME: insert proper C++ library support
15991         ld_shlibs_CXX=no
15992         ;;
15993     esac
15994
15995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15996 $as_echo "$ld_shlibs_CXX" >&6; }
15997     test no = "$ld_shlibs_CXX" && can_build_shared=no
15998
15999     GCC_CXX=$GXX
16000     LD_CXX=$LD
16001
16002     ## CAVEAT EMPTOR:
16003     ## There is no encapsulation within the following macros, do not change
16004     ## the running order or otherwise move them around unless you know exactly
16005     ## what you are doing...
16006     # Dependencies to place before and after the object being linked:
16007 predep_objects_CXX=
16008 postdep_objects_CXX=
16009 predeps_CXX=
16010 postdeps_CXX=
16011 compiler_lib_search_path_CXX=
16012
16013 cat > conftest.$ac_ext <<_LT_EOF
16014 class Foo
16015 {
16016 public:
16017   Foo (void) { a = 0; }
16018 private:
16019   int a;
16020 };
16021 _LT_EOF
16022
16023
16024 _lt_libdeps_save_CFLAGS=$CFLAGS
16025 case "$CC $CFLAGS " in #(
16026 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16027 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16028 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16029 esac
16030
16031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16032   (eval $ac_compile) 2>&5
16033   ac_status=$?
16034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035   test $ac_status = 0; }; then
16036   # Parse the compiler output and extract the necessary
16037   # objects, libraries and library flags.
16038
16039   # Sentinel used to keep track of whether or not we are before
16040   # the conftest object file.
16041   pre_test_object_deps_done=no
16042
16043   for p in `eval "$output_verbose_link_cmd"`; do
16044     case $prev$p in
16045
16046     -L* | -R* | -l*)
16047        # Some compilers place space between "-{L,R}" and the path.
16048        # Remove the space.
16049        if test x-L = "$p" ||
16050           test x-R = "$p"; then
16051          prev=$p
16052          continue
16053        fi
16054
16055        # Expand the sysroot to ease extracting the directories later.
16056        if test -z "$prev"; then
16057          case $p in
16058          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16059          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16060          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16061          esac
16062        fi
16063        case $p in
16064        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16065        esac
16066        if test no = "$pre_test_object_deps_done"; then
16067          case $prev in
16068          -L | -R)
16069            # Internal compiler library paths should come after those
16070            # provided the user.  The postdeps already come after the
16071            # user supplied libs so there is no need to process them.
16072            if test -z "$compiler_lib_search_path_CXX"; then
16073              compiler_lib_search_path_CXX=$prev$p
16074            else
16075              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16076            fi
16077            ;;
16078          # The "-l" case would never come before the object being
16079          # linked, so don't bother handling this case.
16080          esac
16081        else
16082          if test -z "$postdeps_CXX"; then
16083            postdeps_CXX=$prev$p
16084          else
16085            postdeps_CXX="${postdeps_CXX} $prev$p"
16086          fi
16087        fi
16088        prev=
16089        ;;
16090
16091     *.lto.$objext) ;; # Ignore GCC LTO objects
16092     *.$objext)
16093        # This assumes that the test object file only shows up
16094        # once in the compiler output.
16095        if test "$p" = "conftest.$objext"; then
16096          pre_test_object_deps_done=yes
16097          continue
16098        fi
16099
16100        if test no = "$pre_test_object_deps_done"; then
16101          if test -z "$predep_objects_CXX"; then
16102            predep_objects_CXX=$p
16103          else
16104            predep_objects_CXX="$predep_objects_CXX $p"
16105          fi
16106        else
16107          if test -z "$postdep_objects_CXX"; then
16108            postdep_objects_CXX=$p
16109          else
16110            postdep_objects_CXX="$postdep_objects_CXX $p"
16111          fi
16112        fi
16113        ;;
16114
16115     *) ;; # Ignore the rest.
16116
16117     esac
16118   done
16119
16120   # Clean up.
16121   rm -f a.out a.exe
16122 else
16123   echo "libtool.m4: error: problem compiling CXX test program"
16124 fi
16125
16126 $RM -f confest.$objext
16127 CFLAGS=$_lt_libdeps_save_CFLAGS
16128
16129 # PORTME: override above test on systems where it is broken
16130 case $host_os in
16131 interix[3-9]*)
16132   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16133   # hack all around it, let's just trust "g++" to DTRT.
16134   predep_objects_CXX=
16135   postdep_objects_CXX=
16136   postdeps_CXX=
16137   ;;
16138
16139 linux*)
16140   case `$CC -V 2>&1 | sed 5q` in
16141   *Sun\ C*)
16142     # Sun C++ 5.9
16143
16144     # The more standards-conforming stlport4 library is
16145     # incompatible with the Cstd library. Avoid specifying
16146     # it if it's in CXXFLAGS. Ignore libCrun as
16147     # -library=stlport4 depends on it.
16148     case " $CXX $CXXFLAGS " in
16149     *" -library=stlport4 "*)
16150       solaris_use_stlport4=yes
16151       ;;
16152     esac
16153
16154     if test yes != "$solaris_use_stlport4"; then
16155       postdeps_CXX='-library=Cstd -library=Crun'
16156     fi
16157     ;;
16158   esac
16159   ;;
16160
16161 solaris*)
16162   case $cc_basename in
16163   CC* | sunCC*)
16164     # The more standards-conforming stlport4 library is
16165     # incompatible with the Cstd library. Avoid specifying
16166     # it if it's in CXXFLAGS. Ignore libCrun as
16167     # -library=stlport4 depends on it.
16168     case " $CXX $CXXFLAGS " in
16169     *" -library=stlport4 "*)
16170       solaris_use_stlport4=yes
16171       ;;
16172     esac
16173
16174     # Adding this requires a known-good setup of shared libraries for
16175     # Sun compiler versions before 5.6, else PIC objects from an old
16176     # archive will be linked into the output, leading to subtle bugs.
16177     if test yes != "$solaris_use_stlport4"; then
16178       postdeps_CXX='-library=Cstd -library=Crun'
16179     fi
16180     ;;
16181   esac
16182   ;;
16183 esac
16184
16185
16186 case " $postdeps_CXX " in
16187 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16188 esac
16189  compiler_lib_search_dirs_CXX=
16190 if test -n "${compiler_lib_search_path_CXX}"; then
16191  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16192 fi
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224     lt_prog_compiler_wl_CXX=
16225 lt_prog_compiler_pic_CXX=
16226 lt_prog_compiler_static_CXX=
16227
16228
16229   # C++ specific cases for pic, static, wl, etc.
16230   if test yes = "$GXX"; then
16231     lt_prog_compiler_wl_CXX='-Wl,'
16232     lt_prog_compiler_static_CXX='-static'
16233
16234     case $host_os in
16235     aix*)
16236       # All AIX code is PIC.
16237       if test ia64 = "$host_cpu"; then
16238         # AIX 5 now supports IA64 processor
16239         lt_prog_compiler_static_CXX='-Bstatic'
16240       fi
16241       lt_prog_compiler_pic_CXX='-fPIC'
16242       ;;
16243
16244     amigaos*)
16245       case $host_cpu in
16246       powerpc)
16247             # see comment about AmigaOS4 .so support
16248             lt_prog_compiler_pic_CXX='-fPIC'
16249         ;;
16250       m68k)
16251             # FIXME: we need at least 68020 code to build shared libraries, but
16252             # adding the '-m68020' flag to GCC prevents building anything better,
16253             # like '-m68040'.
16254             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16255         ;;
16256       esac
16257       ;;
16258
16259     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16260       # PIC is the default for these OSes.
16261       ;;
16262     mingw* | cygwin* | os2* | pw32* | cegcc*)
16263       # This hack is so that the source file can tell whether it is being
16264       # built for inclusion in a dll (and should export symbols for example).
16265       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16266       # (--disable-auto-import) libraries
16267       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16268       ;;
16269     darwin* | rhapsody*)
16270       # PIC is the default on this platform
16271       # Common symbols not allowed in MH_DYLIB files
16272       lt_prog_compiler_pic_CXX='-fno-common'
16273       ;;
16274     *djgpp*)
16275       # DJGPP does not support shared libraries at all
16276       lt_prog_compiler_pic_CXX=
16277       ;;
16278     haiku*)
16279       # PIC is the default for Haiku.
16280       # The "-static" flag exists, but is broken.
16281       lt_prog_compiler_static_CXX=
16282       ;;
16283     interix[3-9]*)
16284       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16285       # Instead, we relocate shared libraries at runtime.
16286       ;;
16287     sysv4*MP*)
16288       if test -d /usr/nec; then
16289         lt_prog_compiler_pic_CXX=-Kconform_pic
16290       fi
16291       ;;
16292     hpux*)
16293       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16294       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16295       # sets the default TLS model and affects inlining.
16296       case $host_cpu in
16297       hppa*64*)
16298         ;;
16299       *)
16300         lt_prog_compiler_pic_CXX='-fPIC'
16301         ;;
16302       esac
16303       ;;
16304     *qnx* | *nto*)
16305       # QNX uses GNU C++, but need to define -shared option too, otherwise
16306       # it will coredump.
16307       lt_prog_compiler_pic_CXX='-fPIC -shared'
16308       ;;
16309     *)
16310       lt_prog_compiler_pic_CXX='-fPIC'
16311       ;;
16312     esac
16313   else
16314     case $host_os in
16315       aix[4-9]*)
16316         # All AIX code is PIC.
16317         if test ia64 = "$host_cpu"; then
16318           # AIX 5 now supports IA64 processor
16319           lt_prog_compiler_static_CXX='-Bstatic'
16320         else
16321           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16322         fi
16323         ;;
16324       chorus*)
16325         case $cc_basename in
16326         cxch68*)
16327           # Green Hills C++ Compiler
16328           # _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"
16329           ;;
16330         esac
16331         ;;
16332       mingw* | cygwin* | os2* | pw32* | cegcc*)
16333         # This hack is so that the source file can tell whether it is being
16334         # built for inclusion in a dll (and should export symbols for example).
16335         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16336         ;;
16337       dgux*)
16338         case $cc_basename in
16339           ec++*)
16340             lt_prog_compiler_pic_CXX='-KPIC'
16341             ;;
16342           ghcx*)
16343             # Green Hills C++ Compiler
16344             lt_prog_compiler_pic_CXX='-pic'
16345             ;;
16346           *)
16347             ;;
16348         esac
16349         ;;
16350       freebsd* | dragonfly*)
16351         # FreeBSD uses GNU C++
16352         ;;
16353       hpux9* | hpux10* | hpux11*)
16354         case $cc_basename in
16355           CC*)
16356             lt_prog_compiler_wl_CXX='-Wl,'
16357             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16358             if test ia64 != "$host_cpu"; then
16359               lt_prog_compiler_pic_CXX='+Z'
16360             fi
16361             ;;
16362           aCC*)
16363             lt_prog_compiler_wl_CXX='-Wl,'
16364             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16365             case $host_cpu in
16366             hppa*64*|ia64*)
16367               # +Z the default
16368               ;;
16369             *)
16370               lt_prog_compiler_pic_CXX='+Z'
16371               ;;
16372             esac
16373             ;;
16374           *)
16375             ;;
16376         esac
16377         ;;
16378       interix*)
16379         # This is c89, which is MS Visual C++ (no shared libs)
16380         # Anyone wants to do a port?
16381         ;;
16382       irix5* | irix6* | nonstopux*)
16383         case $cc_basename in
16384           CC*)
16385             lt_prog_compiler_wl_CXX='-Wl,'
16386             lt_prog_compiler_static_CXX='-non_shared'
16387             # CC pic flag -KPIC is the default.
16388             ;;
16389           *)
16390             ;;
16391         esac
16392         ;;
16393       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16394         case $cc_basename in
16395           KCC*)
16396             # KAI C++ Compiler
16397             lt_prog_compiler_wl_CXX='--backend -Wl,'
16398             lt_prog_compiler_pic_CXX='-fPIC'
16399             ;;
16400           ecpc* )
16401             # old Intel C++ for x86_64, which still supported -KPIC.
16402             lt_prog_compiler_wl_CXX='-Wl,'
16403             lt_prog_compiler_pic_CXX='-KPIC'
16404             lt_prog_compiler_static_CXX='-static'
16405             ;;
16406           icpc* )
16407             # Intel C++, used to be incompatible with GCC.
16408             # ICC 10 doesn't accept -KPIC any more.
16409             lt_prog_compiler_wl_CXX='-Wl,'
16410             lt_prog_compiler_pic_CXX='-fPIC'
16411             lt_prog_compiler_static_CXX='-static'
16412             ;;
16413           pgCC* | pgcpp*)
16414             # Portland Group C++ compiler
16415             lt_prog_compiler_wl_CXX='-Wl,'
16416             lt_prog_compiler_pic_CXX='-fpic'
16417             lt_prog_compiler_static_CXX='-Bstatic'
16418             ;;
16419           cxx*)
16420             # Compaq C++
16421             # Make sure the PIC flag is empty.  It appears that all Alpha
16422             # Linux and Compaq Tru64 Unix objects are PIC.
16423             lt_prog_compiler_pic_CXX=
16424             lt_prog_compiler_static_CXX='-non_shared'
16425             ;;
16426           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16427             # IBM XL 8.0, 9.0 on PPC and BlueGene
16428             lt_prog_compiler_wl_CXX='-Wl,'
16429             lt_prog_compiler_pic_CXX='-qpic'
16430             lt_prog_compiler_static_CXX='-qstaticlink'
16431             ;;
16432           *)
16433             case `$CC -V 2>&1 | sed 5q` in
16434             *Sun\ C*)
16435               # Sun C++ 5.9
16436               lt_prog_compiler_pic_CXX='-KPIC'
16437               lt_prog_compiler_static_CXX='-Bstatic'
16438               lt_prog_compiler_wl_CXX='-Qoption ld '
16439               ;;
16440             esac
16441             ;;
16442         esac
16443         ;;
16444       lynxos*)
16445         ;;
16446       m88k*)
16447         ;;
16448       mvs*)
16449         case $cc_basename in
16450           cxx*)
16451             lt_prog_compiler_pic_CXX='-W c,exportall'
16452             ;;
16453           *)
16454             ;;
16455         esac
16456         ;;
16457       netbsd*)
16458         ;;
16459       *qnx* | *nto*)
16460         # QNX uses GNU C++, but need to define -shared option too, otherwise
16461         # it will coredump.
16462         lt_prog_compiler_pic_CXX='-fPIC -shared'
16463         ;;
16464       osf3* | osf4* | osf5*)
16465         case $cc_basename in
16466           KCC*)
16467             lt_prog_compiler_wl_CXX='--backend -Wl,'
16468             ;;
16469           RCC*)
16470             # Rational C++ 2.4.1
16471             lt_prog_compiler_pic_CXX='-pic'
16472             ;;
16473           cxx*)
16474             # Digital/Compaq C++
16475             lt_prog_compiler_wl_CXX='-Wl,'
16476             # Make sure the PIC flag is empty.  It appears that all Alpha
16477             # Linux and Compaq Tru64 Unix objects are PIC.
16478             lt_prog_compiler_pic_CXX=
16479             lt_prog_compiler_static_CXX='-non_shared'
16480             ;;
16481           *)
16482             ;;
16483         esac
16484         ;;
16485       psos*)
16486         ;;
16487       solaris*)
16488         case $cc_basename in
16489           CC* | sunCC*)
16490             # Sun C++ 4.2, 5.x and Centerline C++
16491             lt_prog_compiler_pic_CXX='-KPIC'
16492             lt_prog_compiler_static_CXX='-Bstatic'
16493             lt_prog_compiler_wl_CXX='-Qoption ld '
16494             ;;
16495           gcx*)
16496             # Green Hills C++ Compiler
16497             lt_prog_compiler_pic_CXX='-PIC'
16498             ;;
16499           *)
16500             ;;
16501         esac
16502         ;;
16503       sunos4*)
16504         case $cc_basename in
16505           CC*)
16506             # Sun C++ 4.x
16507             lt_prog_compiler_pic_CXX='-pic'
16508             lt_prog_compiler_static_CXX='-Bstatic'
16509             ;;
16510           lcc*)
16511             # Lucid
16512             lt_prog_compiler_pic_CXX='-pic'
16513             ;;
16514           *)
16515             ;;
16516         esac
16517         ;;
16518       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16519         case $cc_basename in
16520           CC*)
16521             lt_prog_compiler_wl_CXX='-Wl,'
16522             lt_prog_compiler_pic_CXX='-KPIC'
16523             lt_prog_compiler_static_CXX='-Bstatic'
16524             ;;
16525         esac
16526         ;;
16527       tandem*)
16528         case $cc_basename in
16529           NCC*)
16530             # NonStop-UX NCC 3.20
16531             lt_prog_compiler_pic_CXX='-KPIC'
16532             ;;
16533           *)
16534             ;;
16535         esac
16536         ;;
16537       vxworks*)
16538         ;;
16539       *)
16540         lt_prog_compiler_can_build_shared_CXX=no
16541         ;;
16542     esac
16543   fi
16544
16545 case $host_os in
16546   # For platforms that do not support PIC, -DPIC is meaningless:
16547   *djgpp*)
16548     lt_prog_compiler_pic_CXX=
16549     ;;
16550   *)
16551     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16552     ;;
16553 esac
16554
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16556 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16557 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16558   $as_echo_n "(cached) " >&6
16559 else
16560   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16561 fi
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16563 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16564 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16565
16566 #
16567 # Check to make sure the PIC flag actually works.
16568 #
16569 if test -n "$lt_prog_compiler_pic_CXX"; then
16570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16571 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16572 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16573   $as_echo_n "(cached) " >&6
16574 else
16575   lt_cv_prog_compiler_pic_works_CXX=no
16576    ac_outfile=conftest.$ac_objext
16577    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16578    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16579    # Insert the option either (1) after the last *FLAGS variable, or
16580    # (2) before a word containing "conftest.", or (3) at the end.
16581    # Note that $ac_compile itself does not contain backslashes and begins
16582    # with a dollar sign (not a hyphen), so the echo should work correctly.
16583    # The option is referenced via a variable to avoid confusing sed.
16584    lt_compile=`echo "$ac_compile" | $SED \
16585    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16586    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16587    -e 's:$: $lt_compiler_flag:'`
16588    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16589    (eval "$lt_compile" 2>conftest.err)
16590    ac_status=$?
16591    cat conftest.err >&5
16592    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593    if (exit $ac_status) && test -s "$ac_outfile"; then
16594      # The compiler can only warn and ignore the option if not recognized
16595      # So say no if there are warnings other than the usual output.
16596      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16597      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16598      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16599        lt_cv_prog_compiler_pic_works_CXX=yes
16600      fi
16601    fi
16602    $RM conftest*
16603
16604 fi
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16606 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16607
16608 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16609     case $lt_prog_compiler_pic_CXX in
16610      "" | " "*) ;;
16611      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16612      esac
16613 else
16614     lt_prog_compiler_pic_CXX=
16615      lt_prog_compiler_can_build_shared_CXX=no
16616 fi
16617
16618 fi
16619
16620
16621
16622
16623
16624 #
16625 # Check to make sure the static flag actually works.
16626 #
16627 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16629 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16630 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16631   $as_echo_n "(cached) " >&6
16632 else
16633   lt_cv_prog_compiler_static_works_CXX=no
16634    save_LDFLAGS=$LDFLAGS
16635    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16636    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16637    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16638      # The linker can only warn and ignore the option if not recognized
16639      # So say no if there are warnings
16640      if test -s conftest.err; then
16641        # Append any errors to the config.log.
16642        cat conftest.err 1>&5
16643        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16644        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16645        if diff conftest.exp conftest.er2 >/dev/null; then
16646          lt_cv_prog_compiler_static_works_CXX=yes
16647        fi
16648      else
16649        lt_cv_prog_compiler_static_works_CXX=yes
16650      fi
16651    fi
16652    $RM -r conftest*
16653    LDFLAGS=$save_LDFLAGS
16654
16655 fi
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16657 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16658
16659 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16660     :
16661 else
16662     lt_prog_compiler_static_CXX=
16663 fi
16664
16665
16666
16667
16668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16669 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16670 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16671   $as_echo_n "(cached) " >&6
16672 else
16673   lt_cv_prog_compiler_c_o_CXX=no
16674    $RM -r conftest 2>/dev/null
16675    mkdir conftest
16676    cd conftest
16677    mkdir out
16678    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16679
16680    lt_compiler_flag="-o out/conftest2.$ac_objext"
16681    # Insert the option either (1) after the last *FLAGS variable, or
16682    # (2) before a word containing "conftest.", or (3) at the end.
16683    # Note that $ac_compile itself does not contain backslashes and begins
16684    # with a dollar sign (not a hyphen), so the echo should work correctly.
16685    lt_compile=`echo "$ac_compile" | $SED \
16686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16688    -e 's:$: $lt_compiler_flag:'`
16689    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16690    (eval "$lt_compile" 2>out/conftest.err)
16691    ac_status=$?
16692    cat out/conftest.err >&5
16693    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16695    then
16696      # The compiler can only warn and ignore the option if not recognized
16697      # So say no if there are warnings
16698      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16699      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16700      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16701        lt_cv_prog_compiler_c_o_CXX=yes
16702      fi
16703    fi
16704    chmod u+w . 2>&5
16705    $RM conftest*
16706    # SGI C++ compiler will create directory out/ii_files/ for
16707    # template instantiation
16708    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16709    $RM out/* && rmdir out
16710    cd ..
16711    $RM -r conftest
16712    $RM conftest*
16713
16714 fi
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16716 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16717
16718
16719
16720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16722 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16723   $as_echo_n "(cached) " >&6
16724 else
16725   lt_cv_prog_compiler_c_o_CXX=no
16726    $RM -r conftest 2>/dev/null
16727    mkdir conftest
16728    cd conftest
16729    mkdir out
16730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16731
16732    lt_compiler_flag="-o out/conftest2.$ac_objext"
16733    # Insert the option either (1) after the last *FLAGS variable, or
16734    # (2) before a word containing "conftest.", or (3) at the end.
16735    # Note that $ac_compile itself does not contain backslashes and begins
16736    # with a dollar sign (not a hyphen), so the echo should work correctly.
16737    lt_compile=`echo "$ac_compile" | $SED \
16738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16740    -e 's:$: $lt_compiler_flag:'`
16741    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16742    (eval "$lt_compile" 2>out/conftest.err)
16743    ac_status=$?
16744    cat out/conftest.err >&5
16745    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16747    then
16748      # The compiler can only warn and ignore the option if not recognized
16749      # So say no if there are warnings
16750      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16751      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16752      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16753        lt_cv_prog_compiler_c_o_CXX=yes
16754      fi
16755    fi
16756    chmod u+w . 2>&5
16757    $RM conftest*
16758    # SGI C++ compiler will create directory out/ii_files/ for
16759    # template instantiation
16760    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16761    $RM out/* && rmdir out
16762    cd ..
16763    $RM -r conftest
16764    $RM conftest*
16765
16766 fi
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16768 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16769
16770
16771
16772
16773 hard_links=nottested
16774 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16775   # do not overwrite the value of need_locks provided by the user
16776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16777 $as_echo_n "checking if we can lock with hard links... " >&6; }
16778   hard_links=yes
16779   $RM conftest*
16780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16781   touch conftest.a
16782   ln conftest.a conftest.b 2>&5 || hard_links=no
16783   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16785 $as_echo "$hard_links" >&6; }
16786   if test no = "$hard_links"; then
16787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16788 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16789     need_locks=warn
16790   fi
16791 else
16792   need_locks=no
16793 fi
16794
16795
16796
16797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16798 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16799
16800   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16801   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16802   case $host_os in
16803   aix[4-9]*)
16804     # If we're using GNU nm, then we don't want the "-C" option.
16805     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16806     # Also, AIX nm treats weak defined symbols like other global defined
16807     # symbols, whereas GNU nm marks them as "W".
16808     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16809       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'
16810     else
16811       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'
16812     fi
16813     ;;
16814   pw32*)
16815     export_symbols_cmds_CXX=$ltdll_cmds
16816     ;;
16817   cygwin* | mingw* | cegcc*)
16818     case $cc_basename in
16819     cl*)
16820       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16821       ;;
16822     *)
16823       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'
16824       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16825       ;;
16826     esac
16827     ;;
16828   *)
16829     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16830     ;;
16831   esac
16832
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16834 $as_echo "$ld_shlibs_CXX" >&6; }
16835 test no = "$ld_shlibs_CXX" && can_build_shared=no
16836
16837 with_gnu_ld_CXX=$with_gnu_ld
16838
16839
16840
16841
16842
16843
16844 #
16845 # Do we need to explicitly link libc?
16846 #
16847 case "x$archive_cmds_need_lc_CXX" in
16848 x|xyes)
16849   # Assume -lc should be added
16850   archive_cmds_need_lc_CXX=yes
16851
16852   if test yes,yes = "$GCC,$enable_shared"; then
16853     case $archive_cmds_CXX in
16854     *'~'*)
16855       # FIXME: we may have to deal with multi-command sequences.
16856       ;;
16857     '$CC '*)
16858       # Test whether the compiler implicitly links with -lc since on some
16859       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16860       # to ld, don't add -lc before -lgcc.
16861       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16862 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16863 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16864   $as_echo_n "(cached) " >&6
16865 else
16866   $RM conftest*
16867         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16868
16869         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16870   (eval $ac_compile) 2>&5
16871   ac_status=$?
16872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16873   test $ac_status = 0; } 2>conftest.err; then
16874           soname=conftest
16875           lib=conftest
16876           libobjs=conftest.$ac_objext
16877           deplibs=
16878           wl=$lt_prog_compiler_wl_CXX
16879           pic_flag=$lt_prog_compiler_pic_CXX
16880           compiler_flags=-v
16881           linker_flags=-v
16882           verstring=
16883           output_objdir=.
16884           libname=conftest
16885           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16886           allow_undefined_flag_CXX=
16887           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16888   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16889   ac_status=$?
16890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16891   test $ac_status = 0; }
16892           then
16893             lt_cv_archive_cmds_need_lc_CXX=no
16894           else
16895             lt_cv_archive_cmds_need_lc_CXX=yes
16896           fi
16897           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16898         else
16899           cat conftest.err 1>&5
16900         fi
16901         $RM conftest*
16902
16903 fi
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16905 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16906       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16907       ;;
16908     esac
16909   fi
16910   ;;
16911 esac
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16975 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16976
16977 library_names_spec=
16978 libname_spec='lib$name'
16979 soname_spec=
16980 shrext_cmds=.so
16981 postinstall_cmds=
16982 postuninstall_cmds=
16983 finish_cmds=
16984 finish_eval=
16985 shlibpath_var=
16986 shlibpath_overrides_runpath=unknown
16987 version_type=none
16988 dynamic_linker="$host_os ld.so"
16989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16990 need_lib_prefix=unknown
16991 hardcode_into_libs=no
16992
16993 # when you set need_version to no, make sure it does not cause -set_version
16994 # flags to be left without arguments
16995 need_version=unknown
16996
16997 case $host_os in
16998 aix3*)
16999   version_type=linux # correct to gnu/linux during the next big refactor
17000   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17001   shlibpath_var=LIBPATH
17002
17003   # AIX 3 has no versioning support, so we append a major version to the name.
17004   soname_spec='$libname$release$shared_ext$major'
17005   ;;
17006
17007 aix[4-9]*)
17008   version_type=linux # correct to gnu/linux during the next big refactor
17009   need_lib_prefix=no
17010   need_version=no
17011   hardcode_into_libs=yes
17012   if test ia64 = "$host_cpu"; then
17013     # AIX 5 supports IA64
17014     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17015     shlibpath_var=LD_LIBRARY_PATH
17016   else
17017     # With GCC up to 2.95.x, collect2 would create an import file
17018     # for dependence libraries.  The import file would start with
17019     # the line '#! .'.  This would cause the generated library to
17020     # depend on '.', always an invalid library.  This was fixed in
17021     # development snapshots of GCC prior to 3.0.
17022     case $host_os in
17023       aix4 | aix4.[01] | aix4.[01].*)
17024       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17025            echo ' yes '
17026            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17027         :
17028       else
17029         can_build_shared=no
17030       fi
17031       ;;
17032     esac
17033     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17034     # soname into executable. Probably we can add versioning support to
17035     # collect2, so additional links can be useful in future.
17036     if test yes = "$aix_use_runtimelinking"; then
17037       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17038       # instead of lib<name>.a to let people know that these are not
17039       # typical AIX shared libraries.
17040       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17041     else
17042       # We preserve .a as extension for shared libraries through AIX4.2
17043       # and later when we are not doing run time linking.
17044       library_names_spec='$libname$release.a $libname.a'
17045       soname_spec='$libname$release$shared_ext$major'
17046     fi
17047     shlibpath_var=LIBPATH
17048   fi
17049   ;;
17050
17051 amigaos*)
17052   case $host_cpu in
17053   powerpc)
17054     # Since July 2007 AmigaOS4 officially supports .so libraries.
17055     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17056     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17057     ;;
17058   m68k)
17059     library_names_spec='$libname.ixlibrary $libname.a'
17060     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17061     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17062     ;;
17063   esac
17064   ;;
17065
17066 beos*)
17067   library_names_spec='$libname$shared_ext'
17068   dynamic_linker="$host_os ld.so"
17069   shlibpath_var=LIBRARY_PATH
17070   ;;
17071
17072 bsdi[45]*)
17073   version_type=linux # correct to gnu/linux during the next big refactor
17074   need_version=no
17075   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17076   soname_spec='$libname$release$shared_ext$major'
17077   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17078   shlibpath_var=LD_LIBRARY_PATH
17079   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17080   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17081   # the default ld.so.conf also contains /usr/contrib/lib and
17082   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17083   # libtool to hard-code these into programs
17084   ;;
17085
17086 cygwin* | mingw* | pw32* | cegcc*)
17087   version_type=windows
17088   shrext_cmds=.dll
17089   need_version=no
17090   need_lib_prefix=no
17091
17092   case $GCC,$cc_basename in
17093   yes,*)
17094     # gcc
17095     library_names_spec='$libname.dll.a'
17096     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17097     postinstall_cmds='base_file=`basename \$file`~
17098       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17099       dldir=$destdir/`dirname \$dlpath`~
17100       test -d \$dldir || mkdir -p \$dldir~
17101       $install_prog $dir/$dlname \$dldir/$dlname~
17102       chmod a+x \$dldir/$dlname~
17103       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17104         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17105       fi'
17106     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17107       dlpath=$dir/\$dldll~
17108        $RM \$dlpath'
17109     shlibpath_overrides_runpath=yes
17110
17111     case $host_os in
17112     cygwin*)
17113       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17114       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17115
17116       ;;
17117     mingw* | cegcc*)
17118       # MinGW DLLs use traditional 'lib' prefix
17119       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17120       ;;
17121     pw32*)
17122       # pw32 DLLs use 'pw' prefix rather than 'lib'
17123       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17124       ;;
17125     esac
17126     dynamic_linker='Win32 ld.exe'
17127     ;;
17128
17129   *,cl*)
17130     # Native MSVC
17131     libname_spec='$name'
17132     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17133     library_names_spec='$libname.dll.lib'
17134
17135     case $build_os in
17136     mingw*)
17137       sys_lib_search_path_spec=
17138       lt_save_ifs=$IFS
17139       IFS=';'
17140       for lt_path in $LIB
17141       do
17142         IFS=$lt_save_ifs
17143         # Let DOS variable expansion print the short 8.3 style file name.
17144         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17145         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17146       done
17147       IFS=$lt_save_ifs
17148       # Convert to MSYS style.
17149       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17150       ;;
17151     cygwin*)
17152       # Convert to unix form, then to dos form, then back to unix form
17153       # but this time dos style (no spaces!) so that the unix form looks
17154       # like /cygdrive/c/PROGRA~1:/cygdr...
17155       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17156       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17157       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17158       ;;
17159     *)
17160       sys_lib_search_path_spec=$LIB
17161       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17162         # It is most probably a Windows format PATH.
17163         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17164       else
17165         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17166       fi
17167       # FIXME: find the short name or the path components, as spaces are
17168       # common. (e.g. "Program Files" -> "PROGRA~1")
17169       ;;
17170     esac
17171
17172     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17173     postinstall_cmds='base_file=`basename \$file`~
17174       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17175       dldir=$destdir/`dirname \$dlpath`~
17176       test -d \$dldir || mkdir -p \$dldir~
17177       $install_prog $dir/$dlname \$dldir/$dlname'
17178     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17179       dlpath=$dir/\$dldll~
17180        $RM \$dlpath'
17181     shlibpath_overrides_runpath=yes
17182     dynamic_linker='Win32 link.exe'
17183     ;;
17184
17185   *)
17186     # Assume MSVC wrapper
17187     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17188     dynamic_linker='Win32 ld.exe'
17189     ;;
17190   esac
17191   # FIXME: first we should search . and the directory the executable is in
17192   shlibpath_var=PATH
17193   ;;
17194
17195 darwin* | rhapsody*)
17196   dynamic_linker="$host_os dyld"
17197   version_type=darwin
17198   need_lib_prefix=no
17199   need_version=no
17200   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17201   soname_spec='$libname$release$major$shared_ext'
17202   shlibpath_overrides_runpath=yes
17203   shlibpath_var=DYLD_LIBRARY_PATH
17204   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17205
17206   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17207   ;;
17208
17209 dgux*)
17210   version_type=linux # correct to gnu/linux during the next big refactor
17211   need_lib_prefix=no
17212   need_version=no
17213   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17214   soname_spec='$libname$release$shared_ext$major'
17215   shlibpath_var=LD_LIBRARY_PATH
17216   ;;
17217
17218 freebsd* | dragonfly*)
17219   # DragonFly does not have aout.  When/if they implement a new
17220   # versioning mechanism, adjust this.
17221   if test -x /usr/bin/objformat; then
17222     objformat=`/usr/bin/objformat`
17223   else
17224     case $host_os in
17225     freebsd[23].*) objformat=aout ;;
17226     *) objformat=elf ;;
17227     esac
17228   fi
17229   version_type=freebsd-$objformat
17230   case $version_type in
17231     freebsd-elf*)
17232       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17233       need_version=no
17234       need_lib_prefix=no
17235       ;;
17236     freebsd-*)
17237       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17238       need_version=yes
17239       ;;
17240   esac
17241   shlibpath_var=LD_LIBRARY_PATH
17242   case $host_os in
17243   freebsd2.*)
17244     shlibpath_overrides_runpath=yes
17245     ;;
17246   freebsd3.[01]* | freebsdelf3.[01]*)
17247     shlibpath_overrides_runpath=yes
17248     hardcode_into_libs=yes
17249     ;;
17250   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17251   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17252     shlibpath_overrides_runpath=no
17253     hardcode_into_libs=yes
17254     ;;
17255   *) # from 4.6 on, and DragonFly
17256     shlibpath_overrides_runpath=yes
17257     hardcode_into_libs=yes
17258     ;;
17259   esac
17260   ;;
17261
17262 haiku*)
17263   version_type=linux # correct to gnu/linux during the next big refactor
17264   need_lib_prefix=no
17265   need_version=no
17266   dynamic_linker="$host_os runtime_loader"
17267   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17268   soname_spec='$libname$release$shared_ext$major'
17269   shlibpath_var=LIBRARY_PATH
17270   shlibpath_overrides_runpath=no
17271   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17272   hardcode_into_libs=yes
17273   ;;
17274
17275 hpux9* | hpux10* | hpux11*)
17276   # Give a soname corresponding to the major version so that dld.sl refuses to
17277   # link against other versions.
17278   version_type=sunos
17279   need_lib_prefix=no
17280   need_version=no
17281   case $host_cpu in
17282   ia64*)
17283     shrext_cmds='.so'
17284     hardcode_into_libs=yes
17285     dynamic_linker="$host_os dld.so"
17286     shlibpath_var=LD_LIBRARY_PATH
17287     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17288     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17289     soname_spec='$libname$release$shared_ext$major'
17290     if test 32 = "$HPUX_IA64_MODE"; then
17291       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17292     else
17293       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17294     fi
17295     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17296     ;;
17297   hppa*64*)
17298     shrext_cmds='.sl'
17299     hardcode_into_libs=yes
17300     dynamic_linker="$host_os dld.sl"
17301     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17302     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17303     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17304     soname_spec='$libname$release$shared_ext$major'
17305     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17306     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17307     ;;
17308   *)
17309     shrext_cmds='.sl'
17310     dynamic_linker="$host_os dld.sl"
17311     shlibpath_var=SHLIB_PATH
17312     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17313     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17314     soname_spec='$libname$release$shared_ext$major'
17315     ;;
17316   esac
17317   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17318   postinstall_cmds='chmod 555 $lib'
17319   # or fails outright, so override atomically:
17320   install_override_mode=555
17321   ;;
17322
17323 interix[3-9]*)
17324   version_type=linux # correct to gnu/linux during the next big refactor
17325   need_lib_prefix=no
17326   need_version=no
17327   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17328   soname_spec='$libname$release$shared_ext$major'
17329   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17330   shlibpath_var=LD_LIBRARY_PATH
17331   shlibpath_overrides_runpath=no
17332   hardcode_into_libs=yes
17333   ;;
17334
17335 irix5* | irix6* | nonstopux*)
17336   case $host_os in
17337     nonstopux*) version_type=nonstopux ;;
17338     *)
17339         if test yes = "$lt_cv_prog_gnu_ld"; then
17340                 version_type=linux # correct to gnu/linux during the next big refactor
17341         else
17342                 version_type=irix
17343         fi ;;
17344   esac
17345   need_lib_prefix=no
17346   need_version=no
17347   soname_spec='$libname$release$shared_ext$major'
17348   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17349   case $host_os in
17350   irix5* | nonstopux*)
17351     libsuff= shlibsuff=
17352     ;;
17353   *)
17354     case $LD in # libtool.m4 will add one of these switches to LD
17355     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17356       libsuff= shlibsuff= libmagic=32-bit;;
17357     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17358       libsuff=32 shlibsuff=N32 libmagic=N32;;
17359     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17360       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17361     *) libsuff= shlibsuff= libmagic=never-match;;
17362     esac
17363     ;;
17364   esac
17365   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17366   shlibpath_overrides_runpath=no
17367   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17368   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17369   hardcode_into_libs=yes
17370   ;;
17371
17372 # No shared lib support for Linux oldld, aout, or coff.
17373 linux*oldld* | linux*aout* | linux*coff*)
17374   dynamic_linker=no
17375   ;;
17376
17377 linux*android*)
17378   version_type=none # Android doesn't support versioned libraries.
17379   need_lib_prefix=no
17380   need_version=no
17381   library_names_spec='$libname$release$shared_ext'
17382   soname_spec='$libname$release$shared_ext'
17383   finish_cmds=
17384   shlibpath_var=LD_LIBRARY_PATH
17385   shlibpath_overrides_runpath=yes
17386
17387   # This implies no fast_install, which is unacceptable.
17388   # Some rework will be needed to allow for fast_install
17389   # before this can be enabled.
17390   hardcode_into_libs=yes
17391
17392   dynamic_linker='Android linker'
17393   # Don't embed -rpath directories since the linker doesn't support them.
17394   hardcode_libdir_flag_spec_CXX='-L$libdir'
17395   ;;
17396
17397 # This must be glibc/ELF.
17398 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17399   version_type=linux # correct to gnu/linux during the next big refactor
17400   need_lib_prefix=no
17401   need_version=no
17402   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17403   soname_spec='$libname$release$shared_ext$major'
17404   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17405   shlibpath_var=LD_LIBRARY_PATH
17406   shlibpath_overrides_runpath=no
17407
17408   # Some binutils ld are patched to set DT_RUNPATH
17409   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17410   $as_echo_n "(cached) " >&6
17411 else
17412   lt_cv_shlibpath_overrides_runpath=no
17413     save_LDFLAGS=$LDFLAGS
17414     save_libdir=$libdir
17415     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17416          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h.  */
17419
17420 int
17421 main ()
17422 {
17423
17424   ;
17425   return 0;
17426 }
17427 _ACEOF
17428 if ac_fn_cxx_try_link "$LINENO"; then :
17429   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17430   lt_cv_shlibpath_overrides_runpath=yes
17431 fi
17432 fi
17433 rm -f core conftest.err conftest.$ac_objext \
17434     conftest$ac_exeext conftest.$ac_ext
17435     LDFLAGS=$save_LDFLAGS
17436     libdir=$save_libdir
17437
17438 fi
17439
17440   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17441
17442   # This implies no fast_install, which is unacceptable.
17443   # Some rework will be needed to allow for fast_install
17444   # before this can be enabled.
17445   hardcode_into_libs=yes
17446
17447   # Append ld.so.conf contents to the search path
17448   if test -f /etc/ld.so.conf; then
17449     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' ' '`
17450     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17451   fi
17452
17453   # We used to test for /lib/ld.so.1 and disable shared libraries on
17454   # powerpc, because MkLinux only supported shared libraries with the
17455   # GNU dynamic linker.  Since this was broken with cross compilers,
17456   # most powerpc-linux boxes support dynamic linking these days and
17457   # people can always --disable-shared, the test was removed, and we
17458   # assume the GNU/Linux dynamic linker is in use.
17459   dynamic_linker='GNU/Linux ld.so'
17460   ;;
17461
17462 netbsd*)
17463   version_type=sunos
17464   need_lib_prefix=no
17465   need_version=no
17466   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17467     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17468     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17469     dynamic_linker='NetBSD (a.out) ld.so'
17470   else
17471     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17472     soname_spec='$libname$release$shared_ext$major'
17473     dynamic_linker='NetBSD ld.elf_so'
17474   fi
17475   shlibpath_var=LD_LIBRARY_PATH
17476   shlibpath_overrides_runpath=yes
17477   hardcode_into_libs=yes
17478   ;;
17479
17480 newsos6)
17481   version_type=linux # correct to gnu/linux during the next big refactor
17482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17483   shlibpath_var=LD_LIBRARY_PATH
17484   shlibpath_overrides_runpath=yes
17485   ;;
17486
17487 *nto* | *qnx*)
17488   version_type=qnx
17489   need_lib_prefix=no
17490   need_version=no
17491   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17492   soname_spec='$libname$release$shared_ext$major'
17493   shlibpath_var=LD_LIBRARY_PATH
17494   shlibpath_overrides_runpath=no
17495   hardcode_into_libs=yes
17496   dynamic_linker='ldqnx.so'
17497   ;;
17498
17499 openbsd* | bitrig*)
17500   version_type=sunos
17501   sys_lib_dlsearch_path_spec=/usr/lib
17502   need_lib_prefix=no
17503   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17504     need_version=no
17505   else
17506     need_version=yes
17507   fi
17508   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17510   shlibpath_var=LD_LIBRARY_PATH
17511   shlibpath_overrides_runpath=yes
17512   ;;
17513
17514 os2*)
17515   libname_spec='$name'
17516   shrext_cmds=.dll
17517   need_lib_prefix=no
17518   library_names_spec='$libname$shared_ext $libname.a'
17519   dynamic_linker='OS/2 ld.exe'
17520   shlibpath_var=LIBPATH
17521   ;;
17522
17523 osf3* | osf4* | osf5*)
17524   version_type=osf
17525   need_lib_prefix=no
17526   need_version=no
17527   soname_spec='$libname$release$shared_ext$major'
17528   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17529   shlibpath_var=LD_LIBRARY_PATH
17530   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17531   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17532   ;;
17533
17534 rdos*)
17535   dynamic_linker=no
17536   ;;
17537
17538 solaris*)
17539   version_type=linux # correct to gnu/linux during the next big refactor
17540   need_lib_prefix=no
17541   need_version=no
17542   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17543   soname_spec='$libname$release$shared_ext$major'
17544   shlibpath_var=LD_LIBRARY_PATH
17545   shlibpath_overrides_runpath=yes
17546   hardcode_into_libs=yes
17547   # ldd complains unless libraries are executable
17548   postinstall_cmds='chmod +x $lib'
17549   ;;
17550
17551 sunos4*)
17552   version_type=sunos
17553   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17554   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17555   shlibpath_var=LD_LIBRARY_PATH
17556   shlibpath_overrides_runpath=yes
17557   if test yes = "$with_gnu_ld"; then
17558     need_lib_prefix=no
17559   fi
17560   need_version=yes
17561   ;;
17562
17563 sysv4 | sysv4.3*)
17564   version_type=linux # correct to gnu/linux during the next big refactor
17565   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17566   soname_spec='$libname$release$shared_ext$major'
17567   shlibpath_var=LD_LIBRARY_PATH
17568   case $host_vendor in
17569     sni)
17570       shlibpath_overrides_runpath=no
17571       need_lib_prefix=no
17572       runpath_var=LD_RUN_PATH
17573       ;;
17574     siemens)
17575       need_lib_prefix=no
17576       ;;
17577     motorola)
17578       need_lib_prefix=no
17579       need_version=no
17580       shlibpath_overrides_runpath=no
17581       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17582       ;;
17583   esac
17584   ;;
17585
17586 sysv4*MP*)
17587   if test -d /usr/nec; then
17588     version_type=linux # correct to gnu/linux during the next big refactor
17589     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17590     soname_spec='$libname$shared_ext.$major'
17591     shlibpath_var=LD_LIBRARY_PATH
17592   fi
17593   ;;
17594
17595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17596   version_type=freebsd-elf
17597   need_lib_prefix=no
17598   need_version=no
17599   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17600   soname_spec='$libname$release$shared_ext$major'
17601   shlibpath_var=LD_LIBRARY_PATH
17602   shlibpath_overrides_runpath=yes
17603   hardcode_into_libs=yes
17604   if test yes = "$with_gnu_ld"; then
17605     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17606   else
17607     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17608     case $host_os in
17609       sco3.2v5*)
17610         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17611         ;;
17612     esac
17613   fi
17614   sys_lib_dlsearch_path_spec='/usr/lib'
17615   ;;
17616
17617 tpf*)
17618   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17619   version_type=linux # correct to gnu/linux during the next big refactor
17620   need_lib_prefix=no
17621   need_version=no
17622   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17623   shlibpath_var=LD_LIBRARY_PATH
17624   shlibpath_overrides_runpath=no
17625   hardcode_into_libs=yes
17626   ;;
17627
17628 uts4*)
17629   version_type=linux # correct to gnu/linux during the next big refactor
17630   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17631   soname_spec='$libname$release$shared_ext$major'
17632   shlibpath_var=LD_LIBRARY_PATH
17633   ;;
17634
17635 *)
17636   dynamic_linker=no
17637   ;;
17638 esac
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17640 $as_echo "$dynamic_linker" >&6; }
17641 test no = "$dynamic_linker" && can_build_shared=no
17642
17643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17644 if test yes = "$GCC"; then
17645   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17646 fi
17647
17648 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17649   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17650 fi
17651 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17652   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17653 fi
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17693 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17694 hardcode_action_CXX=
17695 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17696    test -n "$runpath_var_CXX" ||
17697    test yes = "$hardcode_automatic_CXX"; then
17698
17699   # We can hardcode non-existent directories.
17700   if test no != "$hardcode_direct_CXX" &&
17701      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17702      # have to relink, otherwise we might link with an installed library
17703      # when we should be linking with a yet-to-be-installed one
17704      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17705      test no != "$hardcode_minus_L_CXX"; then
17706     # Linking always hardcodes the temporary library directory.
17707     hardcode_action_CXX=relink
17708   else
17709     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17710     hardcode_action_CXX=immediate
17711   fi
17712 else
17713   # We cannot hardcode anything, or else we can only hardcode existing
17714   # directories.
17715   hardcode_action_CXX=unsupported
17716 fi
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17718 $as_echo "$hardcode_action_CXX" >&6; }
17719
17720 if test relink = "$hardcode_action_CXX" ||
17721    test yes = "$inherit_rpath_CXX"; then
17722   # Fast installation is not supported
17723   enable_fast_install=no
17724 elif test yes = "$shlibpath_overrides_runpath" ||
17725      test no = "$enable_shared"; then
17726   # Fast installation is not necessary
17727   enable_fast_install=needless
17728 fi
17729
17730
17731
17732
17733
17734
17735
17736   fi # test -n "$compiler"
17737
17738   CC=$lt_save_CC
17739   CFLAGS=$lt_save_CFLAGS
17740   LDCXX=$LD
17741   LD=$lt_save_LD
17742   GCC=$lt_save_GCC
17743   with_gnu_ld=$lt_save_with_gnu_ld
17744   lt_cv_path_LDCXX=$lt_cv_path_LD
17745   lt_cv_path_LD=$lt_save_path_LD
17746   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17747   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17748 fi # test yes != "$_lt_caught_CXX_error"
17749
17750 ac_ext=c
17751 ac_cpp='$CPP $CPPFLAGS'
17752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770         ac_config_commands="$ac_config_commands libtool"
17771
17772
17773
17774
17775 # Only expand once:
17776
17777
17778 # Check whether --enable-experimental-libtool was given.
17779 if test "${enable_experimental_libtool+set}" = set; then :
17780   enableval=$enable_experimental_libtool; experimental_libtool=$enableval
17781 else
17782   experimental_libtool=no
17783 fi
17784
17785
17786 if test "$experimental_libtool" = "yes"; then
17787   echo "using APR's libtool"
17788   sh_libtool="`$apr_config --apr-libtool`"
17789   LIBTOOL="$sh_libtool"
17790   SVN_LIBTOOL="$sh_libtool"
17791 else
17792   sh_libtool="$abs_builddir/libtool"
17793   SVN_LIBTOOL="\$(SHELL) $sh_libtool"
17794 fi
17795
17796
17797 lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
17798 lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'`
17799 lt_major_version=`echo $lt_version | cut -d'.' -f 1`
17800
17801 svn_enable_static=yes
17802 svn_enable_shared=yes
17803
17804 # Check whether --enable-static was given.
17805 if test "${enable_static+set}" = set; then :
17806   enableval=$enable_static; svn_enable_static="$enableval"
17807 else
17808   svn_enable_static="yes"
17809 fi
17810
17811
17812 # Check whether --enable-shared was given.
17813 if test "${enable_shared+set}" = set; then :
17814   enableval=$enable_shared; svn_enable_shared="$enableval"
17815 else
17816   svn_enable_shared="yes"
17817 fi
17818
17819
17820 if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then
17821   { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5
17822 $as_echo "$as_me: building both shared and static libraries" >&6;}
17823 elif test "$svn_enable_static" = "yes" ; then
17824   { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5
17825 $as_echo "$as_me: building static libraries only" >&6;}
17826   LT_CFLAGS="-static $LT_CFLAGS"
17827   LT_LDFLAGS="-static $LT_LDFLAGS"
17828 elif test "$svn_enable_shared" = "yes" ; then
17829   { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5
17830 $as_echo "$as_me: building shared libraries only" >&6;}
17831   if test "$lt_major_version" = "1" ; then
17832     LT_CFLAGS="-prefer-pic $LT_CFLAGS"
17833   elif test "$lt_major_version" = "2" ; then
17834     LT_CFLAGS="-shared $LT_CFLAGS"
17835   fi
17836   LT_LDFLAGS="-shared $LT_LDFLAGS"
17837 else
17838   as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5
17839 fi
17840
17841 # Check whether --enable-all-static was given.
17842 if test "${enable_all_static+set}" = set; then :
17843   enableval=$enable_all_static;
17844     if test "$enableval" = "yes" ; then
17845       LT_LDFLAGS="-all-static $LT_LDFLAGS"
17846     elif test "$enableval" != "no" ; then
17847       as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5
17848     fi
17849
17850 fi
17851
17852
17853
17854
17855
17856 # Check whether --enable-local-library-preloading was given.
17857 if test "${enable_local_library_preloading+set}" = set; then :
17858   enableval=$enable_local_library_preloading;
17859   if test "$enableval" != "no"; then
17860     if test "$svn_enable_shared" = "yes"; then
17861       TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
17862     else
17863       as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5
17864     fi
17865   else
17866     TRANSFORM_LIBTOOL_SCRIPTS=""
17867   fi
17868
17869 else
17870
17871   TRANSFORM_LIBTOOL_SCRIPTS=""
17872
17873 fi
17874
17875
17876
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5
17878 $as_echo_n "checking whether libtool needs -no-undefined... " >&6; }
17879 case $host in
17880   *-*-cygwin*)
17881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17882 $as_echo "yes" >&6; }
17883     LT_NO_UNDEFINED="-no-undefined"
17884     ;;
17885   *)
17886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17887 $as_echo "no" >&6; }
17888     LT_NO_UNDEFINED=""
17889     ;;
17890 esac
17891
17892
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid circular linkage at all costs" >&5
17894 $as_echo_n "checking whether to avoid circular linkage at all costs... " >&6; }
17895 case $host in
17896   *-*-cygwin*)
17897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17898 $as_echo "yes" >&6; }
17899
17900 $as_echo "#define SVN_AVOID_CIRCULAR_LINKAGE_AT_ALL_COSTS_HACK 1" >>confdefs.h
17901
17902     ;;
17903   *)
17904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17905 $as_echo "no" >&6; }
17906     ;;
17907 esac
17908
17909 trang=yes
17910
17911 # Check whether --with-trang was given.
17912 if test "${with_trang+set}" = set; then :
17913   withval=$with_trang;
17914     trang="$withval"
17915
17916 fi
17917
17918 if test "$trang" = "yes"; then
17919     # Extract the first word of "trang", so it can be a program name with args.
17920 set dummy trang; ac_word=$2
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17922 $as_echo_n "checking for $ac_word... " >&6; }
17923 if ${ac_cv_path_TRANG+:} false; then :
17924   $as_echo_n "(cached) " >&6
17925 else
17926   case $TRANG in
17927   [\\/]* | ?:[\\/]*)
17928   ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
17929   ;;
17930   *)
17931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17932 for as_dir in $PATH
17933 do
17934   IFS=$as_save_IFS
17935   test -z "$as_dir" && as_dir=.
17936     for ac_exec_ext in '' $ac_executable_extensions; do
17937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17938     ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
17939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17940     break 2
17941   fi
17942 done
17943   done
17944 IFS=$as_save_IFS
17945
17946   test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none"
17947   ;;
17948 esac
17949 fi
17950 TRANG=$ac_cv_path_TRANG
17951 if test -n "$TRANG"; then
17952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
17953 $as_echo "$TRANG" >&6; }
17954 else
17955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17956 $as_echo "no" >&6; }
17957 fi
17958
17959
17960 else
17961     TRANG="$trang"
17962
17963 fi
17964
17965 doxygen=yes
17966
17967 # Check whether --with-doxygen was given.
17968 if test "${with_doxygen+set}" = set; then :
17969   withval=$with_doxygen;
17970     doxygen="$withval"
17971
17972 fi
17973
17974 if test "$doxygen" = "yes"; then
17975     # Extract the first word of "doxygen", so it can be a program name with args.
17976 set dummy doxygen; ac_word=$2
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17978 $as_echo_n "checking for $ac_word... " >&6; }
17979 if ${ac_cv_path_DOXYGEN+:} false; then :
17980   $as_echo_n "(cached) " >&6
17981 else
17982   case $DOXYGEN in
17983   [\\/]* | ?:[\\/]*)
17984   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17985   ;;
17986   *)
17987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17988 for as_dir in $PATH
17989 do
17990   IFS=$as_save_IFS
17991   test -z "$as_dir" && as_dir=.
17992     for ac_exec_ext in '' $ac_executable_extensions; do
17993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17994     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17996     break 2
17997   fi
17998 done
17999   done
18000 IFS=$as_save_IFS
18001
18002   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none"
18003   ;;
18004 esac
18005 fi
18006 DOXYGEN=$ac_cv_path_DOXYGEN
18007 if test -n "$DOXYGEN"; then
18008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18009 $as_echo "$DOXYGEN" >&6; }
18010 else
18011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18012 $as_echo "no" >&6; }
18013 fi
18014
18015
18016 else
18017     DOXYGEN="$doxygen"
18018
18019 fi
18020
18021
18022
18023
18024
18025 # Check whether --with-expat was given.
18026 if test "${with_expat+set}" = set; then :
18027   withval=$with_expat; svn_lib_expat="$withval"
18028 else
18029   svn_lib_expat="::expat"
18030 fi
18031
18032
18033 # APR-util accepts "builtin" as an argument to this option so if the user
18034 # passed "builtin" pretend the user didn't specify the --with-expat option
18035 # at all. Expat will (hopefully) be found in apr-util.
18036 test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat"
18037
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5
18039 $as_echo_n "checking for Expat... " >&6; }
18040 if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then
18041   SVN_XML_INCLUDES=""
18042   for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do
18043     SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i"
18044   done
18045   SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }"
18046   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do
18047     LDFLAGS="$LDFLAGS -L$l"
18048   done
18049   for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18050     SVN_XML_LIBS="$SVN_XML_LIBS -l$l"
18051   done
18052   SVN_XML_LIBS="${SVN_XML_LIBS## }"
18053   old_CPPFLAGS="$CPPFLAGS"
18054   old_LIBS="$LIBS"
18055   CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES"
18056   LIBS="$LIBS $SVN_XML_LIBS"
18057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h.  */
18059
18060 #include <expat.h>
18061 int main()
18062 {XML_ParserCreate(NULL);}
18063 _ACEOF
18064 if ac_fn_c_try_link "$LINENO"; then :
18065   svn_lib_expat="yes"
18066 else
18067   svn_lib_expat="no"
18068 fi
18069 rm -f core conftest.err conftest.$ac_objext \
18070     conftest$ac_exeext conftest.$ac_ext
18071   LIBS="$old_LIBS"
18072   if test "$svn_lib_expat" = "yes"; then
18073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18074 $as_echo "yes" >&6; }
18075   else
18076     SVN_XML_INCLUDES=""
18077     SVN_XML_LIBS=""
18078     CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES"
18079     if test "$enable_all_static" != "yes"; then
18080       SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`"
18081     fi
18082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h.  */
18084
18085 #include <expat.h>
18086 int main()
18087 {XML_ParserCreate(NULL);}
18088 _ACEOF
18089 if ac_fn_c_try_compile "$LINENO"; then :
18090   svn_lib_expat="yes"
18091 else
18092   svn_lib_expat="no"
18093 fi
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095     if test "$svn_lib_expat" = "yes"; then
18096       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18097 $as_echo "yes" >&6; }
18098       { $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
18099 $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;}
18100     else
18101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18102 $as_echo "no" >&6; }
18103       as_fn_error $? "Expat not found" "$LINENO" 5
18104     fi
18105   fi
18106   CPPFLAGS="$old_CPPFLAGS"
18107 else
18108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18109 $as_echo "no" >&6; }
18110   if test "$svn_lib_expat" = "yes"; then
18111     as_fn_error $? "--with-expat option requires argument" "$LINENO" 5
18112   elif test "$svn_lib_expat" = "no"; then
18113     as_fn_error $? "Expat is required" "$LINENO" 5
18114   else
18115     as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5
18116   fi
18117 fi
18118
18119
18120
18121
18122 # Berkeley DB on SCO OpenServer needs -lsocket
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18124 $as_echo_n "checking for socket in -lsocket... " >&6; }
18125 if ${ac_cv_lib_socket_socket+:} false; then :
18126   $as_echo_n "(cached) " >&6
18127 else
18128   ac_check_lib_save_LIBS=$LIBS
18129 LIBS="-lsocket  $LIBS"
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h.  */
18132
18133 /* Override any GCC internal prototype to avoid an error.
18134    Use char because int might match the return type of a GCC
18135    builtin and then its argument prototype would still apply.  */
18136 #ifdef __cplusplus
18137 extern "C"
18138 #endif
18139 char socket ();
18140 int
18141 main ()
18142 {
18143 return socket ();
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 if ac_fn_c_try_link "$LINENO"; then :
18149   ac_cv_lib_socket_socket=yes
18150 else
18151   ac_cv_lib_socket_socket=no
18152 fi
18153 rm -f core conftest.err conftest.$ac_objext \
18154     conftest$ac_exeext conftest.$ac_ext
18155 LIBS=$ac_check_lib_save_LIBS
18156 fi
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18158 $as_echo "$ac_cv_lib_socket_socket" >&6; }
18159 if test "x$ac_cv_lib_socket_socket" = xyes; then :
18160   cat >>confdefs.h <<_ACEOF
18161 #define HAVE_LIBSOCKET 1
18162 _ACEOF
18163
18164   LIBS="-lsocket $LIBS"
18165
18166 fi
18167
18168
18169 # Build the BDB filesystem library only if we have an appropriate
18170 # version of Berkeley DB.
18171 case "$host" in
18172 powerpc-apple-darwin*)
18173     # Berkeley DB 4.0 does not work on OS X.
18174     SVN_FS_WANT_DB_MAJOR=4
18175     SVN_FS_WANT_DB_MINOR=1
18176     SVN_FS_WANT_DB_PATCH=25
18177     ;;
18178 *)
18179     SVN_FS_WANT_DB_MAJOR=4
18180     SVN_FS_WANT_DB_MINOR=0
18181     SVN_FS_WANT_DB_PATCH=14
18182     ;;
18183 esac
18184 db_alt_version="5.x"
18185 # Look for libdb4.so first:
18186
18187   db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH
18188
18189
18190 # Check whether --with-berkeley-db was given.
18191 if test "${with_berkeley_db+set}" = set; then :
18192   withval=$with_berkeley_db;
18193     if test "$withval" = "no"; then
18194       bdb_status=skip
18195     elif test "$withval" = "yes"; then
18196       apu_db_version="`$apu_config --db-version`"
18197       if test $? -ne 0; then
18198         as_fn_error $? "Can't determine whether apr-util is linked against a
18199                       proper version of Berkeley DB." "$LINENO" 5
18200       fi
18201
18202       if test "$withval" = "yes"; then
18203         if test "$apu_db_version" -lt "4"; then
18204           as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version,
18205                         while version 4 or higher is required.  Reinstall
18206                         APR-UTIL with the appropriate options." "$LINENO" 5
18207         fi
18208
18209         bdb_status=required
18210
18211       elif test "$apu_found" != "reconfig"; then
18212         if test "$apu_db_version" -lt 4; then
18213           as_fn_error $? "APR-UTIL was installed independently, it won't be
18214                         possible to use the specified Berkeley DB: $withval" "$LINENO" 5
18215         fi
18216
18217         bdb_status=required
18218       fi
18219     else
18220       if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then
18221         svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`"
18222         SVN_DB_INCLUDES=""
18223         for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do
18224           SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i"
18225         done
18226         SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }"
18227         for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do
18228           LDFLAGS="$LDFLAGS `
18229   input_flags="-L$l"
18230   output_flags=""
18231   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18232   for flag in $input_flags; do
18233     filter="no"
18234     for dir in $filtered_dirs; do
18235       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18236         filter="yes"
18237         break
18238       fi
18239     done
18240     if test "$filter" = "no"; then
18241       output_flags="$output_flags $flag"
18242     fi
18243   done
18244   if test -n "$output_flags"; then
18245     printf "%s" "${output_flags# }"
18246   fi
18247 `"
18248         done
18249         SVN_DB_LIBS=""
18250         for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do
18251           SVN_DB_LIBS="$SVN_DB_LIBS -l$l"
18252         done
18253         SVN_DB_LIBS="${SVN_DB_LIBS## }"
18254
18255         bdb_status=required
18256       else
18257         as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5
18258       fi
18259     fi
18260
18261 else
18262
18263     # No --with-berkeley-db option:
18264     #
18265     # Check if APR-UTIL is providing the correct Berkeley DB version
18266     # for us.
18267     #
18268     apu_db_version="`$apu_config --db-version`"
18269     if test $? -ne 0; then
18270       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine
18271                    whether apr-util is linked against Berkeley DB
18272                    $db_version" >&5
18273 $as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine
18274                    whether apr-util is linked against Berkeley DB
18275                    $db_version" >&2;}
18276       bdb_status=try-link
18277     elif test "$apu_db_version" -lt "4"; then
18278       bdb_status=skip
18279     else
18280       bdb_status=try-link
18281     fi
18282
18283 fi
18284
18285
18286   if test "$bdb_status" = "skip"; then
18287     svn_lib_berkeley_db=no
18288   else
18289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5
18290 $as_echo_n "checking for availability of Berkeley DB... " >&6; }
18291     # Check whether --enable-bdb6 was given.
18292 if test "${enable_bdb6+set}" = set; then :
18293   enableval=$enable_bdb6; enable_bdb6=$enableval
18294 else
18295   enable_bdb6=unspecified
18296 fi
18297
18298
18299
18300     svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS"
18301     svn_lib_berkeley_db_try_save_libs="$LIBS"
18302
18303     svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR
18304     svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR
18305     svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH
18306     enable_bdb6=$enable_bdb6
18307
18308    if test -z "$SVN_DB_LIBS"; then
18309       # We pass --dbm-libs here since Debian has modified apu-config not
18310       # to return -ldb unless --dbm-libs is passed.  This may also produce
18311       # extra output beyond -ldb but since we're only filtering for -ldb
18312       # it won't matter to us.  However, --dbm-libs was added to apu-config
18313       # in 1.3.8 so it's possible the version we have doesn't support it
18314       # so fallback without it if we get an error.
18315       svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`"
18316       if test $? -ne 0; then
18317         svn_db_libs_prefiltered="`$apu_config --libs`"
18318       fi
18319
18320       # Extract only the -ldb.* flag from the libs supplied by apu-config
18321       # Otherwise we get bit by the fact that expat might not be built yet
18322       # Or that it resides in a non-standard location which we would have
18323       # to compensate with using something like -R`$apu_config --prefix`/lib.
18324       #
18325       SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`"
18326     fi
18327
18328     CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS"
18329     LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS"
18330
18331     if test -n "$svn_berkeley_db_header"; then
18332       SVN_DB_HEADER="#include <$svn_berkeley_db_header>"
18333       svn_db_header="#include <$svn_berkeley_db_header>"
18334     else
18335       SVN_DB_HEADER="#include <apu_want.h>"
18336       svn_db_header="#define APU_WANT_DB
18337 #include <apu_want.h>"
18338     fi
18339
18340
18341
18342     if test "$cross_compiling" = yes; then :
18343   svn_have_berkeley_db=yes
18344
18345 else
18346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h.  */
18348
18349 #include <string.h>
18350 #include <stdlib.h>
18351 $svn_db_header
18352
18353 int main ()
18354 {
18355   int major, minor, patch;
18356
18357   db_version (&major, &minor, &patch);
18358
18359   /* Sanity check: ensure that db.h constants actually match the db library */
18360   if (major != DB_VERSION_MAJOR
18361       || minor != DB_VERSION_MINOR
18362       || patch != DB_VERSION_PATCH)
18363     exit (1);
18364
18365   /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20
18366      and newer are under the AGPL, and we want use of AGPL dependencies to be
18367      opt-in. */
18368   if (major >= 6 && strcmp("$enable_bdb6", "yes"))
18369     exit(2);
18370
18371   /* Run-time check:  ensure the library claims to be the correct version. */
18372
18373   if (major < $svn_check_berkeley_db_major)
18374     exit (1);
18375   if (major > $svn_check_berkeley_db_major)
18376     exit (0);
18377
18378   if (minor < $svn_check_berkeley_db_minor)
18379     exit (1);
18380   if (minor > $svn_check_berkeley_db_minor)
18381     exit (0);
18382
18383   if (patch >= $svn_check_berkeley_db_patch)
18384     exit (0);
18385   else
18386     exit (1);
18387 }
18388
18389 _ACEOF
18390 if ac_fn_c_try_run "$LINENO"; then :
18391   svn_have_berkeley_db=yes
18392 else
18393   rc=$?
18394        svn_have_berkeley_db=no
18395        if test $rc = 2; then
18396          svn_have_berkeley_db=no6
18397        fi
18398 fi
18399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18400   conftest.$ac_objext conftest.beam conftest.$ac_ext
18401 fi
18402
18403
18404   CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
18405   LIBS="$svn_lib_berkeley_db_try_save_libs"
18406
18407
18408     if test "$svn_have_berkeley_db" = "yes"; then
18409       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18410 $as_echo "yes" >&6; }
18411       svn_lib_berkeley_db=yes
18412     else
18413       if test "$svn_have_berkeley_db" = "no6"; then
18414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5
18415 $as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; }
18416         # A warning will be printed at the end of configure.ac.
18417       else
18418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419 $as_echo "no" >&6; }
18420       fi
18421       svn_lib_berkeley_db=no
18422       if test "$bdb_status" = "required"; then
18423         as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5
18424       fi
18425     fi
18426   fi
18427
18428
18429
18430 cat >>confdefs.h <<_ACEOF
18431 #define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR
18432 _ACEOF
18433
18434
18435 cat >>confdefs.h <<_ACEOF
18436 #define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR
18437 _ACEOF
18438
18439
18440 cat >>confdefs.h <<_ACEOF
18441 #define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH
18442 _ACEOF
18443
18444
18445
18446
18447
18448
18449
18450 # Check whether --with-sasl was given.
18451 if test "${with_sasl+set}" = set; then :
18452   withval=$with_sasl;
18453     with_sasl="$withval"
18454     required="yes"
18455
18456 else
18457
18458     with_sasl="yes"
18459     required="no"
18460
18461 fi
18462
18463
18464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5
18465 $as_echo_n "checking whether to look for SASL... " >&6; }
18466
18467   if test "${with_sasl}" = "no"; then
18468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18469 $as_echo "no" >&6; }
18470     svn_lib_sasl=no
18471   else
18472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18473 $as_echo "yes" >&6; }
18474     saved_LDFLAGS="$LDFLAGS"
18475     saved_CPPFLAGS="$CPPFLAGS"
18476
18477     if test "$with_sasl" = "yes"; then
18478       { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5
18479 $as_echo "$as_me: Looking in default locations" >&6;}
18480       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18481 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18482   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18483 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18485 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18486 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18487   $as_echo_n "(cached) " >&6
18488 else
18489   ac_check_lib_save_LIBS=$LIBS
18490 LIBS="-lsasl2  $LIBS"
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h.  */
18493
18494 /* Override any GCC internal prototype to avoid an error.
18495    Use char because int might match the return type of a GCC
18496    builtin and then its argument prototype would still apply.  */
18497 #ifdef __cplusplus
18498 extern "C"
18499 #endif
18500 char prop_get ();
18501 int
18502 main ()
18503 {
18504 return prop_get ();
18505   ;
18506   return 0;
18507 }
18508 _ACEOF
18509 if ac_fn_c_try_link "$LINENO"; then :
18510   ac_cv_lib_sasl2_prop_get=yes
18511 else
18512   ac_cv_lib_sasl2_prop_get=no
18513 fi
18514 rm -f core conftest.err conftest.$ac_objext \
18515     conftest$ac_exeext conftest.$ac_ext
18516 LIBS=$ac_check_lib_save_LIBS
18517 fi
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18519 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18520 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18521   svn_lib_sasl=yes
18522 else
18523   svn_lib_sasl=no
18524 fi
18525
18526 else
18527   svn_lib_sasl=no
18528 fi
18529
18530
18531 else
18532   svn_lib_sasl=no
18533 fi
18534
18535
18536       if test "$svn_lib_sasl" = "no"; then
18537         with_sasl="/usr/local"
18538       fi
18539     else
18540       svn_lib_sasl=no
18541     fi
18542
18543     if test "$svn_lib_sasl" = "no"; then
18544       SVN_SASL_INCLUDES="-I${with_sasl}/include"
18545       CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES"
18546       LDFLAGS="$LDFLAGS `
18547   input_flags="-L${with_sasl}/lib"
18548   output_flags=""
18549   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
18550   for flag in $input_flags; do
18551     filter="no"
18552     for dir in $filtered_dirs; do
18553       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
18554         filter="yes"
18555         break
18556       fi
18557     done
18558     if test "$filter" = "no"; then
18559       output_flags="$output_flags $flag"
18560     fi
18561   done
18562   if test -n "$output_flags"; then
18563     printf "%s" "${output_flags# }"
18564   fi
18565 `"
18566
18567       ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
18568 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
18569   ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
18570 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
18571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
18572 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
18573 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
18574   $as_echo_n "(cached) " >&6
18575 else
18576   ac_check_lib_save_LIBS=$LIBS
18577 LIBS="-lsasl2  $LIBS"
18578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h.  */
18580
18581 /* Override any GCC internal prototype to avoid an error.
18582    Use char because int might match the return type of a GCC
18583    builtin and then its argument prototype would still apply.  */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 char prop_get ();
18588 int
18589 main ()
18590 {
18591 return prop_get ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 if ac_fn_c_try_link "$LINENO"; then :
18597   ac_cv_lib_sasl2_prop_get=yes
18598 else
18599   ac_cv_lib_sasl2_prop_get=no
18600 fi
18601 rm -f core conftest.err conftest.$ac_objext \
18602     conftest$ac_exeext conftest.$ac_ext
18603 LIBS=$ac_check_lib_save_LIBS
18604 fi
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
18606 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
18607 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
18608   svn_lib_sasl=yes
18609 else
18610   svn_lib_sasl=no
18611 fi
18612
18613 else
18614   svn_lib_sasl=no
18615 fi
18616
18617
18618 else
18619   svn_lib_sasl=no
18620 fi
18621
18622
18623     fi
18624
18625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5
18626 $as_echo_n "checking for availability of Cyrus SASL v2... " >&6; }
18627     if test "$svn_lib_sasl" = "yes"; then
18628       SVN_SASL_LIBS="-lsasl2"
18629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18630 $as_echo "yes" >&6; }
18631     else
18632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18633 $as_echo "no" >&6; }
18634
18635       if test "$required" = "yes"; then
18636                         as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5
18637       fi
18638
18639       SVN_SASL_INCLUDES=""
18640       LDFLAGS="$saved_LDFLAGS"
18641     fi
18642
18643     CPPFLAGS="$saved_CPPFLAGS"
18644   fi
18645
18646
18647
18648
18649
18650 if test "$svn_lib_sasl" = "yes"; then
18651
18652 $as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h
18653
18654 fi
18655
18656
18657
18658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5
18659 $as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; }
18660   if test "$cross_compiling" = yes; then :
18661   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18663 as_fn_error $? "cannot run test program while cross compiling
18664 See \`config.log' for more details" "$LINENO" 5; }
18665 else
18666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h.  */
18668
18669     #include <mach-o/dyld.h>
18670     #include <mach-o/loader.h>
18671
18672 int
18673 main ()
18674 {
18675
18676     const struct mach_header *header = _dyld_get_image_header(0);
18677     const char *name = _dyld_get_image_name(0);
18678     if (name && header) return 0;
18679     return 1;
18680
18681   ;
18682   return 0;
18683 }
18684 _ACEOF
18685 if ac_fn_c_try_run "$LINENO"; then :
18686
18687
18688 $as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h
18689
18690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18691 $as_echo "yes" >&6; }
18692
18693 else
18694
18695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18697
18698 fi
18699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18700   conftest.$ac_objext conftest.beam conftest.$ac_ext
18701 fi
18702
18703
18704
18705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5
18706 $as_echo_n "checking for Mac OS property list utilities... " >&6; }
18707
18708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18709 /* end confdefs.h.  */
18710
18711     #include <AvailabilityMacros.h>
18712     #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18713      || !defined(MAC_OS_X_VERSION_10_0) \
18714      || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0)
18715     #error ProperyList API unavailable.
18716     #endif
18717
18718 int
18719 main ()
18720 {
18721
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 if ac_fn_c_try_compile "$LINENO"; then :
18727
18728
18729     LIBS="$LIBS -framework CoreFoundation"
18730
18731 $as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h
18732
18733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18734 $as_echo "yes" >&6; }
18735
18736 else
18737
18738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18739 $as_echo "no" >&6; }
18740
18741 fi
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743
18744
18745   # Check whether --enable-keychain was given.
18746 if test "${enable_keychain+set}" = set; then :
18747   enableval=$enable_keychain; enable_keychain=$enableval
18748 else
18749   enable_keychain=yes
18750 fi
18751
18752
18753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5
18754 $as_echo_n "checking for Mac OS KeyChain Services... " >&6; }
18755
18756   if test "$enable_keychain" = "yes"; then
18757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h.  */
18759
18760       #include <AvailabilityMacros.h>
18761       #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \
18762        || !defined(MAC_OS_X_VERSION_10_2) \
18763        || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2)
18764       #error KeyChain API unavailable.
18765       #endif
18766
18767 int
18768 main ()
18769 {
18770
18771   ;
18772   return 0;
18773 }
18774 _ACEOF
18775 if ac_fn_c_try_compile "$LINENO"; then :
18776
18777             LIBS="$LIBS -framework Security"
18778       LIBS="$LIBS -framework CoreServices"
18779
18780 $as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h
18781
18782       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18783 $as_echo "yes" >&6; }
18784
18785 else
18786
18787       enable_keychain=no
18788       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18789 $as_echo "no" >&6; }
18790
18791 fi
18792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18793   fi
18794
18795
18796
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5
18798 $as_echo_n "checking whether APR has support for DSOs... " >&6; }
18799 old_CPPFLAGS="$CPPFLAGS"
18800 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
18801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h.  */
18803
18804 #include <apr.h>
18805 #if !APR_HAS_DSO
18806 #error
18807 #endif
18808 _ACEOF
18809 if ac_fn_c_try_cpp "$LINENO"; then :
18810   APR_HAS_DSO="yes"
18811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18812 $as_echo "yes" >&6; }
18813 else
18814   APR_HAS_DSO="no"
18815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 $as_echo "no" >&6; }
18817 fi
18818 rm -f conftest.err conftest.i conftest.$ac_ext
18819 CPPFLAGS="$old_CPPFLAGS"
18820
18821
18822
18823 if test -n "$PKG_CONFIG"; then
18824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5
18825 $as_echo_n "checking for D-Bus .pc file... " >&6; }
18826   if $PKG_CONFIG --exists dbus-1; then
18827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18828 $as_echo "yes" >&6; }
18829     old_CPPFLAGS="$CPPFLAGS"
18830     old_LIBS="$LIBS"
18831     DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`"
18832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5
18833 $as_echo_n "checking D-Bus version... " >&6; }
18834     DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`"
18835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5
18836 $as_echo "$DBUS_VERSION" >&6; }
18837     # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE
18838     if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then
18839       DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
18840     fi
18841     DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`"
18842     CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS"
18843     LIBS="$LIBS $DBUS_LIBS"
18844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
18845 $as_echo_n "checking for D-Bus... " >&6; }
18846     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h.  */
18848
18849 #include <dbus/dbus.h>
18850 int main()
18851 {dbus_bus_get(DBUS_BUS_SESSION, NULL);}
18852 _ACEOF
18853 if ac_fn_c_try_link "$LINENO"; then :
18854   HAVE_DBUS="yes"
18855 else
18856   HAVE_DBUS="no"
18857 fi
18858 rm -f core conftest.err conftest.$ac_objext \
18859     conftest$ac_exeext conftest.$ac_ext
18860     if test "$HAVE_DBUS" = "yes"; then
18861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18862 $as_echo "yes" >&6; }
18863     else
18864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18865 $as_echo "no" >&6; }
18866     fi
18867     CPPFLAGS="$old_CPPFLAGS"
18868     LIBS="$old_LIBS"
18869   else
18870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18871 $as_echo "no" >&6; }
18872   fi
18873 fi
18874
18875
18876
18877 # Check whether --with-gpg_agent was given.
18878 if test "${with_gpg_agent+set}" = set; then :
18879   withval=$with_gpg_agent;
18880 else
18881   with_gpg_agent=yes
18882 fi
18883
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5
18885 $as_echo_n "checking whether to support GPG-Agent... " >&6; }
18886 if test "$with_gpg_agent" = "yes"; then
18887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18888 $as_echo "yes" >&6; }
18889
18890 $as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h
18891
18892 else
18893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18894 $as_echo "no" >&6; }
18895 fi
18896
18897
18898
18899
18900
18901 # Check whether --with-gnome_keyring was given.
18902 if test "${with_gnome_keyring+set}" = set; then :
18903   withval=$with_gnome_keyring; with_gnome_keyring="$withval"
18904 else
18905   with_gnome_keyring=auto
18906 fi
18907
18908
18909 found_gnome_keyring=no
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5
18911 $as_echo_n "checking whether to look for GNOME Keyring... " >&6; }
18912 if test "$with_gnome_keyring" != "no"; then
18913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18914 $as_echo "yes" >&6; }
18915   if test "$svn_enable_shared" = "yes"; then
18916     if test "$APR_HAS_DSO" = "yes"; then
18917       if test -n "$PKG_CONFIG"; then
18918         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5
18919 $as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; }
18920         if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
18921           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18922 $as_echo "yes" >&6; }
18923           old_CPPFLAGS="$CPPFLAGS"
18924           SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
18925           CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
18926           ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default"
18927 if test "x$ac_cv_header_gnome_keyring_h" = xyes; then :
18928   found_gnome_keyring=yes
18929 else
18930   found_gnome_keyring=no
18931 fi
18932
18933
18934           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5
18935 $as_echo_n "checking for GNOME Keyring... " >&6; }
18936           if test "$found_gnome_keyring" = "yes"; then
18937             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18938 $as_echo "yes" >&6; }
18939
18940 $as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h
18941
18942             CPPFLAGS="$old_CPPFLAGS"
18943             SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
18944           else
18945             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18946 $as_echo "no" >&6; }
18947             if test "$with_gnome_keyring" = "yes"; then
18948               as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5
18949             fi
18950           fi
18951         else
18952           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18954           if test "$with_gnome_keyring" = "yes"; then
18955             as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5
18956           else
18957             with_gnome_keyring=no
18958           fi
18959         fi
18960       else
18961         if test "$with_gnome_keyring" = "yes"; then
18962           as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5
18963         else
18964           with_gnome_keyring=no
18965         fi
18966       fi
18967     else
18968       if test "$with_gnome_keyring" = "yes"; then
18969         as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5
18970       else
18971         with_gnome_keyring=no
18972       fi
18973     fi
18974   else
18975     if test "$with_gnome_keyring" = "yes"; then
18976       as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5
18977     else
18978       with_gnome_keyring=no
18979     fi
18980   fi
18981 else
18982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18984 fi
18985
18986
18987
18988
18989 # Check whether --enable-ev2-impl was given.
18990 if test "${enable_ev2_impl+set}" = set; then :
18991   enableval=$enable_ev2_impl; enable_ev2_impl=$enableval
18992 else
18993   enable_ev2_impl=no
18994 fi
18995
18996 if test "$enable_ev2_impl" = "yes"; then
18997
18998 $as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h
18999
19000 fi
19001
19002
19003
19004 # Check whether --enable-nls was given.
19005 if test "${enable_nls+set}" = set; then :
19006   enableval=$enable_nls; enable_nls=$enableval
19007 else
19008   enable_nls=yes
19009 fi
19010
19011
19012 USE_NLS="no"
19013 if test "$enable_nls" = "yes"; then
19014     # Extract the first word of "msgfmt", so it can be a program name with args.
19015 set dummy msgfmt; ac_word=$2
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19017 $as_echo_n "checking for $ac_word... " >&6; }
19018 if ${ac_cv_path_MSGFMT+:} false; then :
19019   $as_echo_n "(cached) " >&6
19020 else
19021   case $MSGFMT in
19022   [\\/]* | ?:[\\/]*)
19023   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19024   ;;
19025   *)
19026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027 for as_dir in $PATH
19028 do
19029   IFS=$as_save_IFS
19030   test -z "$as_dir" && as_dir=.
19031     for ac_exec_ext in '' $ac_executable_extensions; do
19032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19033     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035     break 2
19036   fi
19037 done
19038   done
19039 IFS=$as_save_IFS
19040
19041   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none"
19042   ;;
19043 esac
19044 fi
19045 MSGFMT=$ac_cv_path_MSGFMT
19046 if test -n "$MSGFMT"; then
19047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19048 $as_echo "$MSGFMT" >&6; }
19049 else
19050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19051 $as_echo "no" >&6; }
19052 fi
19053
19054
19055   # Extract the first word of "msgmerge", so it can be a program name with args.
19056 set dummy msgmerge; ac_word=$2
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19058 $as_echo_n "checking for $ac_word... " >&6; }
19059 if ${ac_cv_path_MSGMERGE+:} false; then :
19060   $as_echo_n "(cached) " >&6
19061 else
19062   case $MSGMERGE in
19063   [\\/]* | ?:[\\/]*)
19064   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19065   ;;
19066   *)
19067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19068 for as_dir in $PATH
19069 do
19070   IFS=$as_save_IFS
19071   test -z "$as_dir" && as_dir=.
19072     for ac_exec_ext in '' $ac_executable_extensions; do
19073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19074     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19076     break 2
19077   fi
19078 done
19079   done
19080 IFS=$as_save_IFS
19081
19082   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none"
19083   ;;
19084 esac
19085 fi
19086 MSGMERGE=$ac_cv_path_MSGMERGE
19087 if test -n "$MSGMERGE"; then
19088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19089 $as_echo "$MSGMERGE" >&6; }
19090 else
19091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19092 $as_echo "no" >&6; }
19093 fi
19094
19095
19096   # Extract the first word of "xgettext", so it can be a program name with args.
19097 set dummy xgettext; ac_word=$2
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19099 $as_echo_n "checking for $ac_word... " >&6; }
19100 if ${ac_cv_path_XGETTEXT+:} false; then :
19101   $as_echo_n "(cached) " >&6
19102 else
19103   case $XGETTEXT in
19104   [\\/]* | ?:[\\/]*)
19105   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19106   ;;
19107   *)
19108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19109 for as_dir in $PATH
19110 do
19111   IFS=$as_save_IFS
19112   test -z "$as_dir" && as_dir=.
19113     for ac_exec_ext in '' $ac_executable_extensions; do
19114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19115     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19117     break 2
19118   fi
19119 done
19120   done
19121 IFS=$as_save_IFS
19122
19123   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none"
19124   ;;
19125 esac
19126 fi
19127 XGETTEXT=$ac_cv_path_XGETTEXT
19128 if test -n "$XGETTEXT"; then
19129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19130 $as_echo "$XGETTEXT" >&6; }
19131 else
19132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133 $as_echo "no" >&6; }
19134 fi
19135
19136
19137   if test "$MSGFMT" != "none"; then
19138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19139 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19140 if ${ac_cv_search_bindtextdomain+:} false; then :
19141   $as_echo_n "(cached) " >&6
19142 else
19143   ac_func_search_save_LIBS=$LIBS
19144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145 /* end confdefs.h.  */
19146
19147 /* Override any GCC internal prototype to avoid an error.
19148    Use char because int might match the return type of a GCC
19149    builtin and then its argument prototype would still apply.  */
19150 #ifdef __cplusplus
19151 extern "C"
19152 #endif
19153 char bindtextdomain ();
19154 int
19155 main ()
19156 {
19157 return bindtextdomain ();
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 for ac_lib in '' intl; do
19163   if test -z "$ac_lib"; then
19164     ac_res="none required"
19165   else
19166     ac_res=-l$ac_lib
19167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19168   fi
19169   if ac_fn_c_try_link "$LINENO"; then :
19170   ac_cv_search_bindtextdomain=$ac_res
19171 fi
19172 rm -f core conftest.err conftest.$ac_objext \
19173     conftest$ac_exeext
19174   if ${ac_cv_search_bindtextdomain+:} false; then :
19175   break
19176 fi
19177 done
19178 if ${ac_cv_search_bindtextdomain+:} false; then :
19179
19180 else
19181   ac_cv_search_bindtextdomain=no
19182 fi
19183 rm conftest.$ac_ext
19184 LIBS=$ac_func_search_save_LIBS
19185 fi
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19187 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19188 ac_res=$ac_cv_search_bindtextdomain
19189 if test "$ac_res" != no; then :
19190   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19191
19192 else
19193
19194                     enable_nls="no"
19195
19196 fi
19197
19198     if test "$enable_nls" = "no"; then
19199       # Destroy the cached result so we can test again
19200       unset ac_cv_search_bindtextdomain
19201       # On some systems, libintl needs libiconv to link properly,
19202       # so try again with -liconv.
19203       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
19204 $as_echo_n "checking for library containing bindtextdomain... " >&6; }
19205 if ${ac_cv_search_bindtextdomain+:} false; then :
19206   $as_echo_n "(cached) " >&6
19207 else
19208   ac_func_search_save_LIBS=$LIBS
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h.  */
19211
19212 /* Override any GCC internal prototype to avoid an error.
19213    Use char because int might match the return type of a GCC
19214    builtin and then its argument prototype would still apply.  */
19215 #ifdef __cplusplus
19216 extern "C"
19217 #endif
19218 char bindtextdomain ();
19219 int
19220 main ()
19221 {
19222 return bindtextdomain ();
19223   ;
19224   return 0;
19225 }
19226 _ACEOF
19227 for ac_lib in '' intl; do
19228   if test -z "$ac_lib"; then
19229     ac_res="none required"
19230   else
19231     ac_res=-l$ac_lib
19232     LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS"
19233   fi
19234   if ac_fn_c_try_link "$LINENO"; then :
19235   ac_cv_search_bindtextdomain=$ac_res
19236 fi
19237 rm -f core conftest.err conftest.$ac_objext \
19238     conftest$ac_exeext
19239   if ${ac_cv_search_bindtextdomain+:} false; then :
19240   break
19241 fi
19242 done
19243 if ${ac_cv_search_bindtextdomain+:} false; then :
19244
19245 else
19246   ac_cv_search_bindtextdomain=no
19247 fi
19248 rm conftest.$ac_ext
19249 LIBS=$ac_func_search_save_LIBS
19250 fi
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5
19252 $as_echo "$ac_cv_search_bindtextdomain" >&6; }
19253 ac_res=$ac_cv_search_bindtextdomain
19254 if test "$ac_res" != no; then :
19255   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19256
19257                       enable_nls="yes"
19258                       # This is here so that -liconv ends up in LIBS
19259                       # if it worked with -liconv.
19260                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
19261 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
19262 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
19263   $as_echo_n "(cached) " >&6
19264 else
19265   ac_check_lib_save_LIBS=$LIBS
19266 LIBS="-liconv  $LIBS"
19267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h.  */
19269
19270 /* Override any GCC internal prototype to avoid an error.
19271    Use char because int might match the return type of a GCC
19272    builtin and then its argument prototype would still apply.  */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 char libiconv_open ();
19277 int
19278 main ()
19279 {
19280 return libiconv_open ();
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 if ac_fn_c_try_link "$LINENO"; then :
19286   ac_cv_lib_iconv_libiconv_open=yes
19287 else
19288   ac_cv_lib_iconv_libiconv_open=no
19289 fi
19290 rm -f core conftest.err conftest.$ac_objext \
19291     conftest$ac_exeext conftest.$ac_ext
19292 LIBS=$ac_check_lib_save_LIBS
19293 fi
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
19295 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
19296 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
19297   cat >>confdefs.h <<_ACEOF
19298 #define HAVE_LIBICONV 1
19299 _ACEOF
19300
19301   LIBS="-liconv $LIBS"
19302
19303 fi
19304
19305
19306 else
19307
19308                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found.  Disabling NLS." >&5
19309 $as_echo "$as_me: WARNING: bindtextdomain() not found.  Disabling NLS." >&2;}
19310                       enable_nls="no"
19311
19312 fi
19313
19314     fi
19315     if test "$enable_nls" = "yes"; then
19316
19317 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19318
19319       USE_NLS="yes"
19320     fi
19321   fi
19322 fi
19323
19324
19325
19326 GETTEXT_CODESET=\#
19327 NO_GETTEXT_CODESET=\#
19328 if test $USE_NLS = "yes"; then
19329    for ac_func in bind_textdomain_codeset
19330 do :
19331   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19332 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19333   cat >>confdefs.h <<_ACEOF
19334 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19335 _ACEOF
19336   GETTEXT_CODESET=""
19337 else
19338    NO_GETTEXT_CODESET=""
19339 fi
19340 done
19341
19342 fi
19343
19344
19345
19346 # Check if we are using GNU gettext.
19347 GNU_GETTEXT=no
19348 MSGFMTFLAGS=''
19349 if test $USE_NLS = "yes"; then
19350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5
19351 $as_echo_n "checking if we are using GNU gettext... " >&6; }
19352    if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then
19353       GNU_GETTEXT=yes
19354       MSGFMTFLAGS='-c'
19355    fi
19356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5
19357 $as_echo "$GNU_GETTEXT" >&6; }
19358 fi
19359
19360
19361
19362 libmagic_found=no
19363
19364
19365 # Check whether --with-libmagic was given.
19366 if test "${with_libmagic+set}" = set; then :
19367   withval=$with_libmagic;
19368   if test "$withval" = "yes" ; then
19369     ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19370 if test "x$ac_cv_header_magic_h" = xyes; then :
19371
19372       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19373 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19374 if ${ac_cv_lib_magic_magic_open+:} false; then :
19375   $as_echo_n "(cached) " >&6
19376 else
19377   ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-lmagic  $LIBS"
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h.  */
19381
19382 /* Override any GCC internal prototype to avoid an error.
19383    Use char because int might match the return type of a GCC
19384    builtin and then its argument prototype would still apply.  */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 char magic_open ();
19389 int
19390 main ()
19391 {
19392 return magic_open ();
19393   ;
19394   return 0;
19395 }
19396 _ACEOF
19397 if ac_fn_c_try_link "$LINENO"; then :
19398   ac_cv_lib_magic_magic_open=yes
19399 else
19400   ac_cv_lib_magic_magic_open=no
19401 fi
19402 rm -f core conftest.err conftest.$ac_objext \
19403     conftest$ac_exeext conftest.$ac_ext
19404 LIBS=$ac_check_lib_save_LIBS
19405 fi
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19407 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19408 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19409   libmagic_found="builtin"
19410 fi
19411
19412
19413 fi
19414
19415
19416     libmagic_prefix="the default locations"
19417   elif test "$withval" != "no"; then
19418     libmagic_prefix=$withval
19419     save_cppflags="$CPPFLAGS"
19420     CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include"
19421     for ac_header in magic.h
19422 do :
19423   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19424 if test "x$ac_cv_header_magic_h" = xyes; then :
19425   cat >>confdefs.h <<_ACEOF
19426 #define HAVE_MAGIC_H 1
19427 _ACEOF
19428
19429       save_ldflags="$LDFLAGS"
19430       LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS"
19431       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19432 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19433 if ${ac_cv_lib_magic_magic_open+:} false; then :
19434   $as_echo_n "(cached) " >&6
19435 else
19436   ac_check_lib_save_LIBS=$LIBS
19437 LIBS="-lmagic  $LIBS"
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h.  */
19440
19441 /* Override any GCC internal prototype to avoid an error.
19442    Use char because int might match the return type of a GCC
19443    builtin and then its argument prototype would still apply.  */
19444 #ifdef __cplusplus
19445 extern "C"
19446 #endif
19447 char magic_open ();
19448 int
19449 main ()
19450 {
19451 return magic_open ();
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_link "$LINENO"; then :
19457   ac_cv_lib_magic_magic_open=yes
19458 else
19459   ac_cv_lib_magic_magic_open=no
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext \
19462     conftest$ac_exeext conftest.$ac_ext
19463 LIBS=$ac_check_lib_save_LIBS
19464 fi
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19466 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19467 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19468   libmagic_found="yes"
19469 fi
19470
19471       LDFLAGS="$save_ldflags"
19472
19473 fi
19474
19475 done
19476
19477     CPPFLAGS="$save_cppflags"
19478   fi
19479   if test "$withval" != "no" && test "$libmagic_found" = "no"; then
19480     as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5
19481   fi
19482
19483 else
19484
19485   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
19486 if test "x$ac_cv_header_magic_h" = xyes; then :
19487
19488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
19489 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
19490 if ${ac_cv_lib_magic_magic_open+:} false; then :
19491   $as_echo_n "(cached) " >&6
19492 else
19493   ac_check_lib_save_LIBS=$LIBS
19494 LIBS="-lmagic  $LIBS"
19495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19496 /* end confdefs.h.  */
19497
19498 /* Override any GCC internal prototype to avoid an error.
19499    Use char because int might match the return type of a GCC
19500    builtin and then its argument prototype would still apply.  */
19501 #ifdef __cplusplus
19502 extern "C"
19503 #endif
19504 char magic_open ();
19505 int
19506 main ()
19507 {
19508 return magic_open ();
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_c_try_link "$LINENO"; then :
19514   ac_cv_lib_magic_magic_open=yes
19515 else
19516   ac_cv_lib_magic_magic_open=no
19517 fi
19518 rm -f core conftest.err conftest.$ac_objext \
19519     conftest$ac_exeext conftest.$ac_ext
19520 LIBS=$ac_check_lib_save_LIBS
19521 fi
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
19523 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
19524 if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
19525   libmagic_found="builtin"
19526 fi
19527
19528
19529 fi
19530
19531
19532
19533 fi
19534
19535
19536 if test "$libmagic_found" != "no"; then
19537
19538 $as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h
19539
19540   SVN_MAGIC_LIBS="-lmagic"
19541 fi
19542
19543 if test "$libmagic_found" = "yes"; then
19544   SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include"
19545   LDFLAGS="$LDFLAGS `
19546   input_flags="-L$libmagic_prefix/lib"
19547   output_flags=""
19548   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19549   for flag in $input_flags; do
19550     filter="no"
19551     for dir in $filtered_dirs; do
19552       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19553         filter="yes"
19554         break
19555       fi
19556     done
19557     if test "$filter" = "no"; then
19558       output_flags="$output_flags $flag"
19559     fi
19560   done
19561   if test -n "$output_flags"; then
19562     printf "%s" "${output_flags# }"
19563   fi
19564 `"
19565 fi
19566
19567
19568
19569
19570
19571
19572 # Check whether --with-kwallet was given.
19573 if test "${with_kwallet+set}" = set; then :
19574   withval=$with_kwallet; svn_lib_kwallet="$withval"
19575 else
19576   svn_lib_kwallet=no
19577 fi
19578
19579
19580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5
19581 $as_echo_n "checking whether to look for KWallet... " >&6; }
19582   if test "$svn_lib_kwallet" != "no"; then
19583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19584 $as_echo "yes" >&6; }
19585     if test "$svn_enable_shared" = "yes"; then
19586       if test "$APR_HAS_DSO" = "yes"; then
19587         if test -n "$PKG_CONFIG"; then
19588           if test "$HAVE_DBUS" = "yes"; then
19589             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5
19590 $as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; }
19591             if $PKG_CONFIG --exists QtCore QtDBus QtGui; then
19592               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19593 $as_echo "yes" >&6; }
19594               if test "$svn_lib_kwallet" != "yes"; then
19595                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
19596 $as_echo_n "checking for kde4-config... " >&6; }
19597                 KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config"
19598                 if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then
19599                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19600 $as_echo "yes" >&6; }
19601                 else
19602                   KDE4_CONFIG=""
19603                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19604 $as_echo "no" >&6; }
19605                 fi
19606               else
19607                 # Extract the first word of "kde4-config", so it can be a program name with args.
19608 set dummy kde4-config; ac_word=$2
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19610 $as_echo_n "checking for $ac_word... " >&6; }
19611 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
19612   $as_echo_n "(cached) " >&6
19613 else
19614   case $KDE4_CONFIG in
19615   [\\/]* | ?:[\\/]*)
19616   ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
19617   ;;
19618   *)
19619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19620 for as_dir in $PATH
19621 do
19622   IFS=$as_save_IFS
19623   test -z "$as_dir" && as_dir=.
19624     for ac_exec_ext in '' $ac_executable_extensions; do
19625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19626     ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19628     break 2
19629   fi
19630 done
19631   done
19632 IFS=$as_save_IFS
19633
19634   ;;
19635 esac
19636 fi
19637 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
19638 if test -n "$KDE4_CONFIG"; then
19639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
19640 $as_echo "$KDE4_CONFIG" >&6; }
19641 else
19642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19643 $as_echo "no" >&6; }
19644 fi
19645
19646
19647               fi
19648               if test -n "$KDE4_CONFIG"; then
19649                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5
19650 $as_echo_n "checking for KWallet... " >&6; }
19651                 old_CXXFLAGS="$CXXFLAGS"
19652                 old_LDFLAGS="$LDFLAGS"
19653                 old_LIBS="$LIBS"
19654                 for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do
19655                   if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then
19656                     CPPFLAGS="$CPPFLAGS $d"
19657                   fi
19658                 done
19659                 qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
19660                 kde_dir="`$KDE4_CONFIG --prefix`"
19661                 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
19662                 qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
19663                 SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
19664                 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
19665                 LIBS="$LIBS $SVN_KWALLET_LIBS"
19666                 qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
19667                 kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
19668                 LDFLAGS="$old_LDFLAGS `
19669   input_flags="$qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix"
19670   output_flags=""
19671   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
19672   for flag in $input_flags; do
19673     filter="no"
19674     for dir in $filtered_dirs; do
19675       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
19676         filter="yes"
19677         break
19678       fi
19679     done
19680     if test "$filter" = "no"; then
19681       output_flags="$output_flags $flag"
19682     fi
19683   done
19684   if test -n "$output_flags"; then
19685     printf "%s" "${output_flags# }"
19686   fi
19687 `"
19688                 ac_ext=cpp
19689 ac_cpp='$CXXCPP $CPPFLAGS'
19690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19693
19694                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h.  */
19696
19697 #include <kwallet.h>
19698 int main()
19699 {KWallet::Wallet::walletList();}
19700 _ACEOF
19701 if ac_fn_cxx_try_link "$LINENO"; then :
19702   svn_lib_kwallet="yes"
19703 else
19704   svn_lib_kwallet="no"
19705 fi
19706 rm -f core conftest.err conftest.$ac_objext \
19707     conftest$ac_exeext conftest.$ac_ext
19708                 ac_ext=c
19709 ac_cpp='$CPP $CPPFLAGS'
19710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19713
19714                 if test "$svn_lib_kwallet" = "yes"; then
19715                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19716 $as_echo "yes" >&6; }
19717                   CXXFLAGS="$old_CXXFLAGS"
19718                   LIBS="$old_LIBS"
19719                 else
19720                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19721 $as_echo "no" >&6; }
19722                   as_fn_error $? "cannot find KWallet" "$LINENO" 5
19723                 fi
19724               else
19725                 as_fn_error $? "cannot find kde4-config" "$LINENO" 5
19726               fi
19727             else
19728               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19729 $as_echo "no" >&6; }
19730               as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5
19731             fi
19732           else
19733             as_fn_error $? "cannot find D-Bus" "$LINENO" 5
19734           fi
19735         else
19736           as_fn_error $? "cannot find pkg-config" "$LINENO" 5
19737         fi
19738       else
19739         as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5
19740       fi
19741     else
19742       as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5
19743     fi
19744   else
19745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19746 $as_echo "no" >&6; }
19747   fi
19748
19749
19750
19751
19752 if test "$svn_lib_kwallet" = "yes"; then
19753
19754 $as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h
19755
19756 fi
19757
19758 # Check whether --enable-plaintext-password-storage was given.
19759 if test "${enable_plaintext_password_storage+set}" = set; then :
19760   enableval=$enable_plaintext_password_storage;
19761    if test "$enableval" = "no"; then
19762       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5
19763 $as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;}
19764
19765 $as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h
19766
19767    fi
19768
19769 fi
19770
19771
19772
19773 INSTALL_STATIC_RULES="install-bin install-docs"
19774 INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static"
19775 INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE"
19776 BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools"
19777
19778 if test "$svn_lib_berkeley_db" = "yes"; then
19779   BUILD_RULES="$BUILD_RULES bdb-lib bdb-test"
19780   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`"
19781   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib"
19782   BDB_TEST_DEPS="\$(BDB_TEST_DEPS)"
19783   BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)"
19784 fi
19785
19786 if test "$svn_lib_serf" = "yes"; then
19787   BUILD_RULES="$BUILD_RULES serf-lib"
19788   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`"
19789   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib"
19790 fi
19791
19792 if test "$svn_lib_kwallet" = "yes"; then
19793   BUILD_RULES="$BUILD_RULES kwallet-lib"
19794   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`"
19795   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib"
19796 fi
19797
19798 if test "$found_gnome_keyring" = "yes"; then
19799   BUILD_RULES="$BUILD_RULES gnome-keyring-lib"
19800   INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`"
19801   INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib"
19802 fi
19803
19804 if test "$USE_NLS" = "yes"; then
19805   BUILD_RULES="$BUILD_RULES locale"
19806   INSTALL_RULES="$INSTALL_RULES install-locale"
19807 fi
19808
19809
19810
19811
19812
19813
19814
19815
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19817 $as_echo_n "checking for ANSI C header files... " >&6; }
19818 if ${ac_cv_header_stdc+:} false; then :
19819   $as_echo_n "(cached) " >&6
19820 else
19821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19822 /* end confdefs.h.  */
19823 #include <stdlib.h>
19824 #include <stdarg.h>
19825 #include <string.h>
19826 #include <float.h>
19827
19828 int
19829 main ()
19830 {
19831
19832   ;
19833   return 0;
19834 }
19835 _ACEOF
19836 if ac_fn_c_try_compile "$LINENO"; then :
19837   ac_cv_header_stdc=yes
19838 else
19839   ac_cv_header_stdc=no
19840 fi
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842
19843 if test $ac_cv_header_stdc = yes; then
19844   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h.  */
19847 #include <string.h>
19848
19849 _ACEOF
19850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19851   $EGREP "memchr" >/dev/null 2>&1; then :
19852
19853 else
19854   ac_cv_header_stdc=no
19855 fi
19856 rm -f conftest*
19857
19858 fi
19859
19860 if test $ac_cv_header_stdc = yes; then
19861   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h.  */
19864 #include <stdlib.h>
19865
19866 _ACEOF
19867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19868   $EGREP "free" >/dev/null 2>&1; then :
19869
19870 else
19871   ac_cv_header_stdc=no
19872 fi
19873 rm -f conftest*
19874
19875 fi
19876
19877 if test $ac_cv_header_stdc = yes; then
19878   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19879   if test "$cross_compiling" = yes; then :
19880   :
19881 else
19882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19883 /* end confdefs.h.  */
19884 #include <ctype.h>
19885 #include <stdlib.h>
19886 #if ((' ' & 0x0FF) == 0x020)
19887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19889 #else
19890 # define ISLOWER(c) \
19891                    (('a' <= (c) && (c) <= 'i') \
19892                      || ('j' <= (c) && (c) <= 'r') \
19893                      || ('s' <= (c) && (c) <= 'z'))
19894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19895 #endif
19896
19897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19898 int
19899 main ()
19900 {
19901   int i;
19902   for (i = 0; i < 256; i++)
19903     if (XOR (islower (i), ISLOWER (i))
19904         || toupper (i) != TOUPPER (i))
19905       return 2;
19906   return 0;
19907 }
19908 _ACEOF
19909 if ac_fn_c_try_run "$LINENO"; then :
19910
19911 else
19912   ac_cv_header_stdc=no
19913 fi
19914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19915   conftest.$ac_objext conftest.beam conftest.$ac_ext
19916 fi
19917
19918 fi
19919 fi
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19921 $as_echo "$ac_cv_header_stdc" >&6; }
19922 if test $ac_cv_header_stdc = yes; then
19923
19924 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19925
19926 fi
19927
19928
19929
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19931 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19932 if ${ac_cv_c_const+:} false; then :
19933   $as_echo_n "(cached) " >&6
19934 else
19935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h.  */
19937
19938 int
19939 main ()
19940 {
19941
19942 #ifndef __cplusplus
19943   /* Ultrix mips cc rejects this sort of thing.  */
19944   typedef int charset[2];
19945   const charset cs = { 0, 0 };
19946   /* SunOS 4.1.1 cc rejects this.  */
19947   char const *const *pcpcc;
19948   char **ppc;
19949   /* NEC SVR4.0.2 mips cc rejects this.  */
19950   struct point {int x, y;};
19951   static struct point const zero = {0,0};
19952   /* AIX XL C 1.02.0.0 rejects this.
19953      It does not let you subtract one const X* pointer from another in
19954      an arm of an if-expression whose if-part is not a constant
19955      expression */
19956   const char *g = "string";
19957   pcpcc = &g + (g ? g-g : 0);
19958   /* HPUX 7.0 cc rejects these. */
19959   ++pcpcc;
19960   ppc = (char**) pcpcc;
19961   pcpcc = (char const *const *) ppc;
19962   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19963     char tx;
19964     char *t = &tx;
19965     char const *s = 0 ? (char *) 0 : (char const *) 0;
19966
19967     *t++ = 0;
19968     if (s) return 0;
19969   }
19970   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19971     int x[] = {25, 17};
19972     const int *foo = &x[0];
19973     ++foo;
19974   }
19975   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19976     typedef const int *iptr;
19977     iptr p = 0;
19978     ++p;
19979   }
19980   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19981        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19982     struct s { int j; const int *ap[3]; } bx;
19983     struct s *b = &bx; b->j = 5;
19984   }
19985   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19986     const int foo = 10;
19987     if (!foo) return 0;
19988   }
19989   return !cs[0] && !zero.x;
19990 #endif
19991
19992   ;
19993   return 0;
19994 }
19995 _ACEOF
19996 if ac_fn_c_try_compile "$LINENO"; then :
19997   ac_cv_c_const=yes
19998 else
19999   ac_cv_c_const=no
20000 fi
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002 fi
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20004 $as_echo "$ac_cv_c_const" >&6; }
20005 if test $ac_cv_c_const = no; then
20006
20007 $as_echo "#define const /**/" >>confdefs.h
20008
20009 fi
20010
20011
20012 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20013 if test "x$ac_cv_type_size_t" = xyes; then :
20014
20015 else
20016
20017 cat >>confdefs.h <<_ACEOF
20018 #define size_t unsigned int
20019 _ACEOF
20020
20021 fi
20022
20023
20024
20025
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20027 $as_echo_n "checking for working memcmp... " >&6; }
20028 if ${ac_cv_func_memcmp_working+:} false; then :
20029   $as_echo_n "(cached) " >&6
20030 else
20031   if test "$cross_compiling" = yes; then :
20032   ac_cv_func_memcmp_working=no
20033 else
20034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h.  */
20036 $ac_includes_default
20037 int
20038 main ()
20039 {
20040
20041   /* Some versions of memcmp are not 8-bit clean.  */
20042   char c0 = '\100', c1 = '\200', c2 = '\201';
20043   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20044     return 1;
20045
20046   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20047      or more and with at least one buffer not starting on a 4-byte boundary.
20048      William Lewis provided this test program.   */
20049   {
20050     char foo[21];
20051     char bar[21];
20052     int i;
20053     for (i = 0; i < 4; i++)
20054       {
20055         char *a = foo + i;
20056         char *b = bar + i;
20057         strcpy (a, "--------01111111");
20058         strcpy (b, "--------10000000");
20059         if (memcmp (a, b, 16) >= 0)
20060           return 1;
20061       }
20062     return 0;
20063   }
20064
20065   ;
20066   return 0;
20067 }
20068 _ACEOF
20069 if ac_fn_c_try_run "$LINENO"; then :
20070   ac_cv_func_memcmp_working=yes
20071 else
20072   ac_cv_func_memcmp_working=no
20073 fi
20074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20075   conftest.$ac_objext conftest.beam conftest.$ac_ext
20076 fi
20077
20078 fi
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20080 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20081 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20082   *" memcmp.$ac_objext "* ) ;;
20083   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20084  ;;
20085 esac
20086
20087
20088
20089 for ac_func in vprintf
20090 do :
20091   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20092 if test "x$ac_cv_func_vprintf" = xyes; then :
20093   cat >>confdefs.h <<_ACEOF
20094 #define HAVE_VPRINTF 1
20095 _ACEOF
20096
20097 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20098 if test "x$ac_cv_func__doprnt" = xyes; then :
20099
20100 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20101
20102 fi
20103
20104 fi
20105 done
20106
20107
20108
20109 for ac_func in symlink readlink
20110 do :
20111   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20114   cat >>confdefs.h <<_ACEOF
20115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20116 _ACEOF
20117
20118 fi
20119 done
20120
20121
20122 for ac_header in sys/utsname.h
20123 do :
20124   ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
20125 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
20126   cat >>confdefs.h <<_ACEOF
20127 #define HAVE_SYS_UTSNAME_H 1
20128 _ACEOF
20129  for ac_func in uname
20130 do :
20131   ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20132 if test "x$ac_cv_func_uname" = xyes; then :
20133   cat >>confdefs.h <<_ACEOF
20134 #define HAVE_UNAME 1
20135 _ACEOF
20136
20137 fi
20138 done
20139
20140 fi
20141
20142 done
20143
20144
20145 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20146 if test "x$ac_cv_header_termios_h" = xyes; then :
20147
20148   for ac_func in tcgetattr tcsetattr
20149 do :
20150   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20151 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20152 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20153   cat >>confdefs.h <<_ACEOF
20154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20155 _ACEOF
20156
20157
20158 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
20159
20160
20161 fi
20162 done
20163
20164
20165 fi
20166
20167
20168
20169
20170
20171 # Check whether --with-openssl was given.
20172 if test "${with_openssl+set}" = set; then :
20173   withval=$with_openssl;
20174 fi
20175
20176
20177 # Check whether --enable-debug was given.
20178 if test "${enable_debug+set}" = set; then :
20179   enableval=$enable_debug;
20180     if test "$enableval" = "yes" ; then
20181       enable_debugging="yes"
20182     else
20183       enable_debugging="no"
20184     fi
20185
20186 else
20187
20188     # Neither --enable-debug nor --disable-debug was passed.
20189     enable_debugging="maybe"
20190
20191 fi
20192
20193
20194 # Check whether --enable-optimize was given.
20195 if test "${enable_optimize+set}" = set; then :
20196   enableval=$enable_optimize;
20197     if test "$enableval" = "yes" ; then
20198       enable_optimization="yes"
20199     else
20200       enable_optimization="no"
20201     fi
20202
20203 else
20204
20205     # Neither --enable-optimize nor --disable-optimize was passed.
20206     enable_optimization="maybe"
20207
20208 fi
20209
20210
20211 # Check whether --enable-disallowing-of-undefined-references was given.
20212 if test "${enable_disallowing_of_undefined_references+set}" = set; then :
20213   enableval=$enable_disallowing_of_undefined_references;
20214 fi
20215
20216 if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then
20217   enable_disallowing_of_undefined_references="no"
20218 fi
20219 if test "$enable_disallowing_of_undefined_references" != "no"; then
20220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5
20221 $as_echo_n "checking for -Wl,--no-undefined... " >&6; }
20222   old_LDFLAGS="$LDFLAGS"
20223   LDFLAGS="$LDFLAGS -Wl,--no-undefined"
20224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225 /* end confdefs.h.  */
20226 int main(){;}
20227 _ACEOF
20228 if ac_fn_c_try_link "$LINENO"; then :
20229   svn_wl_no_undefined="yes"
20230 else
20231   svn_wl_no_undefined="no"
20232 fi
20233 rm -f core conftest.err conftest.$ac_objext \
20234     conftest$ac_exeext conftest.$ac_ext
20235   LDFLAGS="$old_LDFLAGS"
20236   if test "$svn_wl_no_undefined" = "yes"; then
20237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20238 $as_echo "yes" >&6; }
20239     for library_dir in "$abs_srcdir/subversion/libsvn_"*; do
20240       eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined"
20241     done
20242   else
20243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244 $as_echo "no" >&6; }
20245     if test "$enable_disallowing_of_undefined_references" = "yes"; then
20246       as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5
20247     fi
20248   fi
20249 fi
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268 # Check whether --enable-maintainer-mode was given.
20269 if test "${enable_maintainer_mode+set}" = set; then :
20270   enableval=$enable_maintainer_mode;
20271     if test "$enableval" = "yes" ; then
20272       if test "$enable_debugging" = "no" ; then
20273         as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5
20274       fi
20275       enable_debugging=yes
20276
20277                   if test "$GCC" = "yes"; then
20278         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5
20279 $as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;}
20280
20281
20282                 CFLAGS_KEEP="$CFLAGS"
20283         CFLAGS=""
20284
20285
20286   _svn_xxflags__save="$CFLAGS"
20287   ac_ext=c
20288 ac_cpp='$CPP $CPPFLAGS'
20289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20292
20293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5
20294 $as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; }
20295   CFLAGS="-Werror=implicit-function-declaration $CFLAGS"
20296         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20297 /* end confdefs.h.  */
20298 int main(void){return 0;}
20299 _ACEOF
20300 if ac_fn_c_try_link "$LINENO"; then :
20301
20302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20303 $as_echo "yes" >&6; }
20304
20305
20306 else
20307
20308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20309 $as_echo "no" >&6; }
20310     CFLAGS="$_svn_xxflags__save"
20311
20312
20313 fi
20314 rm -f core conftest.err conftest.$ac_objext \
20315     conftest$ac_exeext conftest.$ac_ext
20316   ac_ext=c
20317 ac_cpp='$CPP $CPPFLAGS'
20318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20321
20322
20323
20324   _svn_xxflags__save="$CFLAGS"
20325   ac_ext=c
20326 ac_cpp='$CPP $CPPFLAGS'
20327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20330
20331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5
20332 $as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; }
20333   CFLAGS="-Werror=declaration-after-statement $CFLAGS"
20334         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335 /* end confdefs.h.  */
20336 int main(void){return 0;}
20337 _ACEOF
20338 if ac_fn_c_try_link "$LINENO"; then :
20339
20340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20341 $as_echo "yes" >&6; }
20342
20343
20344 else
20345
20346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20347 $as_echo "no" >&6; }
20348     CFLAGS="$_svn_xxflags__save"
20349
20350
20351 fi
20352 rm -f core conftest.err conftest.$ac_objext \
20353     conftest$ac_exeext conftest.$ac_ext
20354   ac_ext=c
20355 ac_cpp='$CPP $CPPFLAGS'
20356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20359
20360
20361
20362   _svn_xxflags__save="$CFLAGS"
20363   ac_ext=c
20364 ac_cpp='$CPP $CPPFLAGS'
20365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20368
20369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5
20370 $as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; }
20371   CFLAGS="-Wextra-tokens $CFLAGS"
20372         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373 /* end confdefs.h.  */
20374 int main(void){return 0;}
20375 _ACEOF
20376 if ac_fn_c_try_link "$LINENO"; then :
20377
20378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20379 $as_echo "yes" >&6; }
20380
20381
20382 else
20383
20384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385 $as_echo "no" >&6; }
20386     CFLAGS="$_svn_xxflags__save"
20387
20388
20389 fi
20390 rm -f core conftest.err conftest.$ac_objext \
20391     conftest$ac_exeext conftest.$ac_ext
20392   ac_ext=c
20393 ac_cpp='$CPP $CPPFLAGS'
20394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20397
20398
20399
20400   _svn_xxflags__save="$CFLAGS"
20401   ac_ext=c
20402 ac_cpp='$CPP $CPPFLAGS'
20403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20406
20407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5
20408 $as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; }
20409   CFLAGS="-Wnewline-eof $CFLAGS"
20410         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20411 /* end confdefs.h.  */
20412 int main(void){return 0;}
20413 _ACEOF
20414 if ac_fn_c_try_link "$LINENO"; then :
20415
20416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20417 $as_echo "yes" >&6; }
20418
20419
20420 else
20421
20422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20423 $as_echo "no" >&6; }
20424     CFLAGS="$_svn_xxflags__save"
20425
20426
20427 fi
20428 rm -f core conftest.err conftest.$ac_objext \
20429     conftest$ac_exeext conftest.$ac_ext
20430   ac_ext=c
20431 ac_cpp='$CPP $CPPFLAGS'
20432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20435
20436
20437
20438   _svn_xxflags__save="$CFLAGS"
20439   ac_ext=c
20440 ac_cpp='$CPP $CPPFLAGS'
20441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20444
20445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5
20446 $as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; }
20447   CFLAGS="-Wshorten-64-to-32 $CFLAGS"
20448         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20449 /* end confdefs.h.  */
20450 int main(void){return 0;}
20451 _ACEOF
20452 if ac_fn_c_try_link "$LINENO"; then :
20453
20454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20455 $as_echo "yes" >&6; }
20456
20457
20458 else
20459
20460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20461 $as_echo "no" >&6; }
20462     CFLAGS="$_svn_xxflags__save"
20463
20464
20465 fi
20466 rm -f core conftest.err conftest.$ac_objext \
20467     conftest$ac_exeext conftest.$ac_ext
20468   ac_ext=c
20469 ac_cpp='$CPP $CPPFLAGS'
20470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20473
20474
20475
20476   _svn_xxflags__save="$CFLAGS"
20477   ac_ext=c
20478 ac_cpp='$CPP $CPPFLAGS'
20479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20482
20483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5
20484 $as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; }
20485   CFLAGS="-Wold-style-definition $CFLAGS"
20486         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h.  */
20488 int main(void){return 0;}
20489 _ACEOF
20490 if ac_fn_c_try_link "$LINENO"; then :
20491
20492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20493 $as_echo "yes" >&6; }
20494
20495
20496 else
20497
20498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20499 $as_echo "no" >&6; }
20500     CFLAGS="$_svn_xxflags__save"
20501
20502
20503 fi
20504 rm -f core conftest.err conftest.$ac_objext \
20505     conftest$ac_exeext conftest.$ac_ext
20506   ac_ext=c
20507 ac_cpp='$CPP $CPPFLAGS'
20508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20511
20512
20513
20514   _svn_xxflags__save="$CFLAGS"
20515   ac_ext=c
20516 ac_cpp='$CPP $CPPFLAGS'
20517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20520
20521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5
20522 $as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; }
20523   CFLAGS="-Wno-system-headers $CFLAGS"
20524         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20525 /* end confdefs.h.  */
20526 int main(void){return 0;}
20527 _ACEOF
20528 if ac_fn_c_try_link "$LINENO"; then :
20529
20530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20531 $as_echo "yes" >&6; }
20532
20533
20534 else
20535
20536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20537 $as_echo "no" >&6; }
20538     CFLAGS="$_svn_xxflags__save"
20539
20540
20541 fi
20542 rm -f core conftest.err conftest.$ac_objext \
20543     conftest$ac_exeext conftest.$ac_ext
20544   ac_ext=c
20545 ac_cpp='$CPP $CPPFLAGS'
20546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20549
20550
20551
20552   _svn_xxflags__save="$CFLAGS"
20553   ac_ext=c
20554 ac_cpp='$CPP $CPPFLAGS'
20555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558
20559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5
20560 $as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; }
20561   CFLAGS="-Wno-format-nonliteral $CFLAGS"
20562         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20563 /* end confdefs.h.  */
20564 int main(void){return 0;}
20565 _ACEOF
20566 if ac_fn_c_try_link "$LINENO"; then :
20567
20568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20569 $as_echo "yes" >&6; }
20570
20571
20572 else
20573
20574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20575 $as_echo "no" >&6; }
20576     CFLAGS="$_svn_xxflags__save"
20577
20578
20579 fi
20580 rm -f core conftest.err conftest.$ac_objext \
20581     conftest$ac_exeext conftest.$ac_ext
20582   ac_ext=c
20583 ac_cpp='$CPP $CPPFLAGS'
20584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20587
20588
20589
20590         CMAINTAINERFLAGS="$CFLAGS $CMAINTAINERFLAGS"
20591         CFLAGS="$CFLAGS_KEEP"
20592
20593                 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"
20594       fi
20595       if test "$GXX" = "yes"; then
20596         { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5
20597 $as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;}
20598
20599                 CXXFLAGS_KEEP="$CXXFLAGS"
20600         CXXFLAGS=""
20601
20602
20603   _svn_xxflags__save="$CXXFLAGS"
20604   ac_ext=cpp
20605 ac_cpp='$CXXCPP $CPPFLAGS'
20606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20609
20610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5
20611 $as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; }
20612   CXXFLAGS="-Wextra-tokens $CXXFLAGS"
20613         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614 /* end confdefs.h.  */
20615 int main(){}
20616 _ACEOF
20617 if ac_fn_cxx_try_link "$LINENO"; then :
20618
20619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20620 $as_echo "yes" >&6; }
20621
20622
20623 else
20624
20625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20626 $as_echo "no" >&6; }
20627     CXXFLAGS="$_svn_xxflags__save"
20628
20629
20630 fi
20631 rm -f core conftest.err conftest.$ac_objext \
20632     conftest$ac_exeext conftest.$ac_ext
20633   ac_ext=c
20634 ac_cpp='$CPP $CPPFLAGS'
20635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20638
20639
20640
20641   _svn_xxflags__save="$CXXFLAGS"
20642   ac_ext=cpp
20643 ac_cpp='$CXXCPP $CPPFLAGS'
20644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20647
20648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5
20649 $as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; }
20650   CXXFLAGS="-Wnewline-eof $CXXFLAGS"
20651         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652 /* end confdefs.h.  */
20653 int main(){}
20654 _ACEOF
20655 if ac_fn_cxx_try_link "$LINENO"; then :
20656
20657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20658 $as_echo "yes" >&6; }
20659
20660
20661 else
20662
20663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20664 $as_echo "no" >&6; }
20665     CXXFLAGS="$_svn_xxflags__save"
20666
20667
20668 fi
20669 rm -f core conftest.err conftest.$ac_objext \
20670     conftest$ac_exeext conftest.$ac_ext
20671   ac_ext=c
20672 ac_cpp='$CPP $CPPFLAGS'
20673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20676
20677
20678
20679   _svn_xxflags__save="$CXXFLAGS"
20680   ac_ext=cpp
20681 ac_cpp='$CXXCPP $CPPFLAGS'
20682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20685
20686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5
20687 $as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; }
20688   CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS"
20689         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690 /* end confdefs.h.  */
20691 int main(){}
20692 _ACEOF
20693 if ac_fn_cxx_try_link "$LINENO"; then :
20694
20695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20696 $as_echo "yes" >&6; }
20697
20698
20699 else
20700
20701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20702 $as_echo "no" >&6; }
20703     CXXFLAGS="$_svn_xxflags__save"
20704
20705
20706 fi
20707 rm -f core conftest.err conftest.$ac_objext \
20708     conftest$ac_exeext conftest.$ac_ext
20709   ac_ext=c
20710 ac_cpp='$CPP $CPPFLAGS'
20711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20714
20715
20716
20717   _svn_xxflags__save="$CXXFLAGS"
20718   ac_ext=cpp
20719 ac_cpp='$CXXCPP $CPPFLAGS'
20720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20723
20724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5
20725 $as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; }
20726   CXXFLAGS="-Wno-system-headers $CXXFLAGS"
20727         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728 /* end confdefs.h.  */
20729 int main(){}
20730 _ACEOF
20731 if ac_fn_cxx_try_link "$LINENO"; then :
20732
20733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20734 $as_echo "yes" >&6; }
20735
20736
20737 else
20738
20739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20741     CXXFLAGS="$_svn_xxflags__save"
20742
20743
20744 fi
20745 rm -f core conftest.err conftest.$ac_objext \
20746     conftest$ac_exeext conftest.$ac_ext
20747   ac_ext=c
20748 ac_cpp='$CPP $CPPFLAGS'
20749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20752
20753
20754
20755         CXXMAINTAINERFLAGS="$CXXFLAGS $CXXMAINTAINERFLAGS"
20756         CXXFLAGS="$CXXFLAGS_KEEP"
20757
20758                 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS"
20759       fi
20760     fi
20761
20762 fi
20763
20764
20765 if test "$enable_debugging" = "yes" ; then
20766       if test "$enable_optimization" != "yes"; then
20767     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5
20768 $as_echo "$as_me: Disabling optimizations for debugging" >&6;}
20769     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20770     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
20771   fi
20772     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20773     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5
20774 $as_echo "$as_me: Enabling debugging for C" >&6;}
20775     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20776
20777   _svn_xxflags__save="$CFLAGS"
20778   ac_ext=c
20779 ac_cpp='$CPP $CPPFLAGS'
20780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20783
20784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5
20785 $as_echo_n "checking if $CC accepts -fno-inline... " >&6; }
20786   CFLAGS="-fno-inline $CFLAGS"
20787         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20788 /* end confdefs.h.  */
20789 int main(void){return 0;}
20790 _ACEOF
20791 if ac_fn_c_try_link "$LINENO"; then :
20792
20793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20794 $as_echo "yes" >&6; }
20795
20796
20797 else
20798
20799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20800 $as_echo "no" >&6; }
20801     CFLAGS="$_svn_xxflags__save"
20802
20803
20804 fi
20805 rm -f core conftest.err conftest.$ac_objext \
20806     conftest$ac_exeext conftest.$ac_ext
20807   ac_ext=c
20808 ac_cpp='$CPP $CPPFLAGS'
20809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20812
20813
20814
20815   _svn_xxflags__save="$CFLAGS"
20816   ac_ext=c
20817 ac_cpp='$CPP $CPPFLAGS'
20818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20821
20822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
20823 $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
20824   CFLAGS="-fno-omit-frame-pointer $CFLAGS"
20825         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h.  */
20827 int main(void){return 0;}
20828 _ACEOF
20829 if ac_fn_c_try_link "$LINENO"; then :
20830
20831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20832 $as_echo "yes" >&6; }
20833
20834
20835 else
20836
20837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20838 $as_echo "no" >&6; }
20839     CFLAGS="$_svn_xxflags__save"
20840
20841
20842 fi
20843 rm -f core conftest.err conftest.$ac_objext \
20844     conftest$ac_exeext conftest.$ac_ext
20845   ac_ext=c
20846 ac_cpp='$CPP $CPPFLAGS'
20847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20850
20851
20852
20853   _svn_xxflags__save="$CFLAGS"
20854   ac_ext=c
20855 ac_cpp='$CPP $CPPFLAGS'
20856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20859
20860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5
20861 $as_echo_n "checking if $CC accepts -g3... " >&6; }
20862   CFLAGS="-g3 $CFLAGS"
20863         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20864 /* end confdefs.h.  */
20865 int main(void){return 0;}
20866 _ACEOF
20867 if ac_fn_c_try_link "$LINENO"; then :
20868
20869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20870 $as_echo "yes" >&6; }
20871
20872
20873 else
20874
20875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20876 $as_echo "no" >&6; }
20877     CFLAGS="$_svn_xxflags__save"
20878
20879
20880   _svn_xxflags__save="$CFLAGS"
20881   ac_ext=c
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
20887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5
20888 $as_echo_n "checking if $CC accepts -g2... " >&6; }
20889   CFLAGS="-g2 $CFLAGS"
20890         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h.  */
20892 int main(void){return 0;}
20893 _ACEOF
20894 if ac_fn_c_try_link "$LINENO"; then :
20895
20896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20897 $as_echo "yes" >&6; }
20898
20899
20900 else
20901
20902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20903 $as_echo "no" >&6; }
20904     CFLAGS="$_svn_xxflags__save"
20905
20906
20907   _svn_xxflags__save="$CFLAGS"
20908   ac_ext=c
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913
20914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5
20915 $as_echo_n "checking if $CC accepts -g... " >&6; }
20916   CFLAGS="-g $CFLAGS"
20917         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20918 /* end confdefs.h.  */
20919 int main(void){return 0;}
20920 _ACEOF
20921 if ac_fn_c_try_link "$LINENO"; then :
20922
20923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20924 $as_echo "yes" >&6; }
20925
20926
20927 else
20928
20929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20930 $as_echo "no" >&6; }
20931     CFLAGS="$_svn_xxflags__save"
20932
20933
20934 fi
20935 rm -f core conftest.err conftest.$ac_objext \
20936     conftest$ac_exeext conftest.$ac_ext
20937   ac_ext=c
20938 ac_cpp='$CPP $CPPFLAGS'
20939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20942
20943
20944
20945 fi
20946 rm -f core conftest.err conftest.$ac_objext \
20947     conftest$ac_exeext conftest.$ac_ext
20948   ac_ext=c
20949 ac_cpp='$CPP $CPPFLAGS'
20950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953
20954
20955
20956 fi
20957 rm -f core conftest.err conftest.$ac_objext \
20958     conftest$ac_exeext conftest.$ac_ext
20959   ac_ext=c
20960 ac_cpp='$CPP $CPPFLAGS'
20961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20964
20965
20966   fi
20967   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then
20968     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5
20969 $as_echo "$as_me: Enabling debugging for C++" >&6;}
20970     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
20971
20972   _svn_xxflags__save="$CXXFLAGS"
20973   ac_ext=cpp
20974 ac_cpp='$CXXCPP $CPPFLAGS'
20975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20978
20979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5
20980 $as_echo_n "checking if $CXX accepts -fno-inline... " >&6; }
20981   CXXFLAGS="-fno-inline $CXXFLAGS"
20982         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983 /* end confdefs.h.  */
20984 int main(){}
20985 _ACEOF
20986 if ac_fn_cxx_try_link "$LINENO"; then :
20987
20988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20989 $as_echo "yes" >&6; }
20990
20991
20992 else
20993
20994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995 $as_echo "no" >&6; }
20996     CXXFLAGS="$_svn_xxflags__save"
20997
20998
20999 fi
21000 rm -f core conftest.err conftest.$ac_objext \
21001     conftest$ac_exeext conftest.$ac_ext
21002   ac_ext=c
21003 ac_cpp='$CPP $CPPFLAGS'
21004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21007
21008
21009
21010   _svn_xxflags__save="$CXXFLAGS"
21011   ac_ext=cpp
21012 ac_cpp='$CXXCPP $CPPFLAGS'
21013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21016
21017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5
21018 $as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; }
21019   CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS"
21020         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h.  */
21022 int main(){}
21023 _ACEOF
21024 if ac_fn_cxx_try_link "$LINENO"; then :
21025
21026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21027 $as_echo "yes" >&6; }
21028
21029
21030 else
21031
21032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21033 $as_echo "no" >&6; }
21034     CXXFLAGS="$_svn_xxflags__save"
21035
21036
21037 fi
21038 rm -f core conftest.err conftest.$ac_objext \
21039     conftest$ac_exeext conftest.$ac_ext
21040   ac_ext=c
21041 ac_cpp='$CPP $CPPFLAGS'
21042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21045
21046
21047
21048   _svn_xxflags__save="$CXXFLAGS"
21049   ac_ext=cpp
21050 ac_cpp='$CXXCPP $CPPFLAGS'
21051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21054
21055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5
21056 $as_echo_n "checking if $CXX accepts -g3... " >&6; }
21057   CXXFLAGS="-g3 $CXXFLAGS"
21058         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h.  */
21060 int main(){}
21061 _ACEOF
21062 if ac_fn_cxx_try_link "$LINENO"; then :
21063
21064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21065 $as_echo "yes" >&6; }
21066
21067
21068 else
21069
21070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071 $as_echo "no" >&6; }
21072     CXXFLAGS="$_svn_xxflags__save"
21073
21074
21075   _svn_xxflags__save="$CXXFLAGS"
21076   ac_ext=cpp
21077 ac_cpp='$CXXCPP $CPPFLAGS'
21078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21081
21082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5
21083 $as_echo_n "checking if $CXX accepts -g2... " >&6; }
21084   CXXFLAGS="-g2 $CXXFLAGS"
21085         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21086 /* end confdefs.h.  */
21087 int main(){}
21088 _ACEOF
21089 if ac_fn_cxx_try_link "$LINENO"; then :
21090
21091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21092 $as_echo "yes" >&6; }
21093
21094
21095 else
21096
21097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21098 $as_echo "no" >&6; }
21099     CXXFLAGS="$_svn_xxflags__save"
21100
21101
21102   _svn_xxflags__save="$CXXFLAGS"
21103   ac_ext=cpp
21104 ac_cpp='$CXXCPP $CPPFLAGS'
21105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21108
21109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5
21110 $as_echo_n "checking if $CXX accepts -g... " >&6; }
21111   CXXFLAGS="-g $CXXFLAGS"
21112         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21113 /* end confdefs.h.  */
21114 int main(){}
21115 _ACEOF
21116 if ac_fn_cxx_try_link "$LINENO"; then :
21117
21118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21119 $as_echo "yes" >&6; }
21120
21121
21122 else
21123
21124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21125 $as_echo "no" >&6; }
21126     CXXFLAGS="$_svn_xxflags__save"
21127
21128
21129 fi
21130 rm -f core conftest.err conftest.$ac_objext \
21131     conftest$ac_exeext conftest.$ac_ext
21132   ac_ext=cpp
21133 ac_cpp='$CXXCPP $CPPFLAGS'
21134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21137
21138
21139
21140 fi
21141 rm -f core conftest.err conftest.$ac_objext \
21142     conftest$ac_exeext conftest.$ac_ext
21143   ac_ext=cpp
21144 ac_cpp='$CXXCPP $CPPFLAGS'
21145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21148
21149
21150
21151 fi
21152 rm -f core conftest.err conftest.$ac_objext \
21153     conftest$ac_exeext conftest.$ac_ext
21154   ac_ext=c
21155 ac_cpp='$CPP $CPPFLAGS'
21156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21159
21160
21161   fi
21162       CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
21163   CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
21164 elif test "$enable_debugging" = "no" ; then
21165   { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5
21166 $as_echo "$as_me: Disabling debugging" >&6;}
21167   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21168   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"
21169     CFLAGS="$CFLAGS -DNDEBUG"
21170   CXXFLAGS="$CXXFLAGS -DNDEBUG"
21171 # elif test "$enable_debugging" = "maybe" ; then
21172 #   # do nothing
21173 fi
21174
21175 if test "$enable_optimization" = "yes"; then
21176     if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21177     CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21178     if test "$enable_debugging" = "yes"; then
21179       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5
21180 $as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;}
21181
21182   _svn_xxflags__save="$CFLAGS"
21183   ac_ext=c
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21188
21189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21190 $as_echo_n "checking if $CC accepts -O1... " >&6; }
21191   CFLAGS="-O1 $CFLAGS"
21192         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21193 /* end confdefs.h.  */
21194 int main(void){return 0;}
21195 _ACEOF
21196 if ac_fn_c_try_link "$LINENO"; then :
21197
21198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21199 $as_echo "yes" >&6; }
21200
21201
21202 else
21203
21204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21205 $as_echo "no" >&6; }
21206     CFLAGS="$_svn_xxflags__save"
21207
21208
21209   _svn_xxflags__save="$CFLAGS"
21210   ac_ext=c
21211 ac_cpp='$CPP $CPPFLAGS'
21212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21215
21216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21217 $as_echo_n "checking if $CC accepts -O... " >&6; }
21218   CFLAGS="-O $CFLAGS"
21219         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21220 /* end confdefs.h.  */
21221 int main(void){return 0;}
21222 _ACEOF
21223 if ac_fn_c_try_link "$LINENO"; then :
21224
21225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21226 $as_echo "yes" >&6; }
21227
21228
21229 else
21230
21231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21232 $as_echo "no" >&6; }
21233     CFLAGS="$_svn_xxflags__save"
21234
21235
21236 fi
21237 rm -f core conftest.err conftest.$ac_objext \
21238     conftest$ac_exeext conftest.$ac_ext
21239   ac_ext=c
21240 ac_cpp='$CPP $CPPFLAGS'
21241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21244
21245
21246
21247 fi
21248 rm -f core conftest.err conftest.$ac_objext \
21249     conftest$ac_exeext conftest.$ac_ext
21250   ac_ext=c
21251 ac_cpp='$CPP $CPPFLAGS'
21252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21255
21256
21257     else
21258       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5
21259 $as_echo "$as_me: Enabling optimizations for C" >&6;}
21260
21261   _svn_xxflags__save="$CFLAGS"
21262   ac_ext=c
21263 ac_cpp='$CPP $CPPFLAGS'
21264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21267
21268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5
21269 $as_echo_n "checking if $CC accepts -O3... " >&6; }
21270   CFLAGS="-O3 $CFLAGS"
21271         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21272 /* end confdefs.h.  */
21273 int main(void){return 0;}
21274 _ACEOF
21275 if ac_fn_c_try_link "$LINENO"; then :
21276
21277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21278 $as_echo "yes" >&6; }
21279
21280
21281 else
21282
21283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21284 $as_echo "no" >&6; }
21285     CFLAGS="$_svn_xxflags__save"
21286
21287
21288   _svn_xxflags__save="$CFLAGS"
21289   ac_ext=c
21290 ac_cpp='$CPP $CPPFLAGS'
21291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21294
21295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5
21296 $as_echo_n "checking if $CC accepts -O2... " >&6; }
21297   CFLAGS="-O2 $CFLAGS"
21298         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h.  */
21300 int main(void){return 0;}
21301 _ACEOF
21302 if ac_fn_c_try_link "$LINENO"; then :
21303
21304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21305 $as_echo "yes" >&6; }
21306
21307
21308 else
21309
21310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21311 $as_echo "no" >&6; }
21312     CFLAGS="$_svn_xxflags__save"
21313
21314
21315   _svn_xxflags__save="$CFLAGS"
21316   ac_ext=c
21317 ac_cpp='$CPP $CPPFLAGS'
21318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21321
21322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5
21323 $as_echo_n "checking if $CC accepts -O1... " >&6; }
21324   CFLAGS="-O1 $CFLAGS"
21325         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326 /* end confdefs.h.  */
21327 int main(void){return 0;}
21328 _ACEOF
21329 if ac_fn_c_try_link "$LINENO"; then :
21330
21331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21332 $as_echo "yes" >&6; }
21333
21334
21335 else
21336
21337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21338 $as_echo "no" >&6; }
21339     CFLAGS="$_svn_xxflags__save"
21340
21341
21342   _svn_xxflags__save="$CFLAGS"
21343   ac_ext=c
21344 ac_cpp='$CPP $CPPFLAGS'
21345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21348
21349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5
21350 $as_echo_n "checking if $CC accepts -O... " >&6; }
21351   CFLAGS="-O $CFLAGS"
21352         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h.  */
21354 int main(void){return 0;}
21355 _ACEOF
21356 if ac_fn_c_try_link "$LINENO"; then :
21357
21358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21359 $as_echo "yes" >&6; }
21360
21361
21362 else
21363
21364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21365 $as_echo "no" >&6; }
21366     CFLAGS="$_svn_xxflags__save"
21367
21368
21369 fi
21370 rm -f core conftest.err conftest.$ac_objext \
21371     conftest$ac_exeext conftest.$ac_ext
21372   ac_ext=c
21373 ac_cpp='$CPP $CPPFLAGS'
21374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21377
21378
21379
21380 fi
21381 rm -f core conftest.err conftest.$ac_objext \
21382     conftest$ac_exeext conftest.$ac_ext
21383   ac_ext=c
21384 ac_cpp='$CPP $CPPFLAGS'
21385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21388
21389
21390
21391 fi
21392 rm -f core conftest.err conftest.$ac_objext \
21393     conftest$ac_exeext conftest.$ac_ext
21394   ac_ext=c
21395 ac_cpp='$CPP $CPPFLAGS'
21396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21399
21400
21401
21402 fi
21403 rm -f core conftest.err conftest.$ac_objext \
21404     conftest$ac_exeext conftest.$ac_ext
21405   ac_ext=c
21406 ac_cpp='$CPP $CPPFLAGS'
21407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21410
21411
21412
21413   _svn_xxflags__save="$CFLAGS"
21414   ac_ext=c
21415 ac_cpp='$CPP $CPPFLAGS'
21416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21419
21420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5
21421 $as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; }
21422   CFLAGS="-Wno-clobbered $CFLAGS"
21423         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h.  */
21425 int main(void){return 0;}
21426 _ACEOF
21427 if ac_fn_c_try_link "$LINENO"; then :
21428
21429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21430 $as_echo "yes" >&6; }
21431
21432
21433 else
21434
21435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21436 $as_echo "no" >&6; }
21437     CFLAGS="$_svn_xxflags__save"
21438
21439
21440 fi
21441 rm -f core conftest.err conftest.$ac_objext \
21442     conftest$ac_exeext conftest.$ac_ext
21443   ac_ext=c
21444 ac_cpp='$CPP $CPPFLAGS'
21445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21448
21449
21450
21451   _svn_xxflags__save="$CFLAGS"
21452   ac_ext=c
21453 ac_cpp='$CPP $CPPFLAGS'
21454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21457
21458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
21459 $as_echo_n "checking if $CC accepts -flto... " >&6; }
21460   CFLAGS="-flto $CFLAGS"
21461         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462 /* end confdefs.h.  */
21463 int main(void){return 0;}
21464 _ACEOF
21465 if ac_fn_c_try_link "$LINENO"; then :
21466
21467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21468 $as_echo "yes" >&6; }
21469
21470
21471 else
21472
21473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21474 $as_echo "no" >&6; }
21475     CFLAGS="$_svn_xxflags__save"
21476
21477
21478 fi
21479 rm -f core conftest.err conftest.$ac_objext \
21480     conftest$ac_exeext conftest.$ac_ext
21481   ac_ext=c
21482 ac_cpp='$CPP $CPPFLAGS'
21483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21486
21487
21488     fi
21489   fi
21490   if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then
21491     CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21492     if test "$enable_debugging" = "yes"; then
21493       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5
21494 $as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;}
21495
21496   _svn_xxflags__save="$CXXFLAGS"
21497   ac_ext=cpp
21498 ac_cpp='$CXXCPP $CPPFLAGS'
21499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21502
21503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21504 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21505   CXXFLAGS="-O1 $CXXFLAGS"
21506         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21507 /* end confdefs.h.  */
21508 int main(){}
21509 _ACEOF
21510 if ac_fn_cxx_try_link "$LINENO"; then :
21511
21512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21513 $as_echo "yes" >&6; }
21514
21515
21516 else
21517
21518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21519 $as_echo "no" >&6; }
21520     CXXFLAGS="$_svn_xxflags__save"
21521
21522
21523   _svn_xxflags__save="$CXXFLAGS"
21524   ac_ext=cpp
21525 ac_cpp='$CXXCPP $CPPFLAGS'
21526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21529
21530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21531 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21532   CXXFLAGS="-O $CXXFLAGS"
21533         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21534 /* end confdefs.h.  */
21535 int main(){}
21536 _ACEOF
21537 if ac_fn_cxx_try_link "$LINENO"; then :
21538
21539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21540 $as_echo "yes" >&6; }
21541
21542
21543 else
21544
21545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546 $as_echo "no" >&6; }
21547     CXXFLAGS="$_svn_xxflags__save"
21548
21549
21550 fi
21551 rm -f core conftest.err conftest.$ac_objext \
21552     conftest$ac_exeext conftest.$ac_ext
21553   ac_ext=cpp
21554 ac_cpp='$CXXCPP $CPPFLAGS'
21555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21558
21559
21560
21561 fi
21562 rm -f core conftest.err conftest.$ac_objext \
21563     conftest$ac_exeext conftest.$ac_ext
21564   ac_ext=c
21565 ac_cpp='$CPP $CPPFLAGS'
21566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21569
21570
21571     else
21572       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5
21573 $as_echo "$as_me: Enabling optimizations for C++" >&6;}
21574
21575   _svn_xxflags__save="$CXXFLAGS"
21576   ac_ext=cpp
21577 ac_cpp='$CXXCPP $CPPFLAGS'
21578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21581
21582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5
21583 $as_echo_n "checking if $CXX accepts -O3... " >&6; }
21584   CXXFLAGS="-O3 $CXXFLAGS"
21585         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h.  */
21587 int main(){}
21588 _ACEOF
21589 if ac_fn_cxx_try_link "$LINENO"; then :
21590
21591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21592 $as_echo "yes" >&6; }
21593
21594
21595 else
21596
21597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21598 $as_echo "no" >&6; }
21599     CXXFLAGS="$_svn_xxflags__save"
21600
21601
21602   _svn_xxflags__save="$CXXFLAGS"
21603   ac_ext=cpp
21604 ac_cpp='$CXXCPP $CPPFLAGS'
21605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21608
21609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5
21610 $as_echo_n "checking if $CXX accepts -O2... " >&6; }
21611   CXXFLAGS="-O2 $CXXFLAGS"
21612         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21613 /* end confdefs.h.  */
21614 int main(){}
21615 _ACEOF
21616 if ac_fn_cxx_try_link "$LINENO"; then :
21617
21618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21619 $as_echo "yes" >&6; }
21620
21621
21622 else
21623
21624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21625 $as_echo "no" >&6; }
21626     CXXFLAGS="$_svn_xxflags__save"
21627
21628
21629   _svn_xxflags__save="$CXXFLAGS"
21630   ac_ext=cpp
21631 ac_cpp='$CXXCPP $CPPFLAGS'
21632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21635
21636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5
21637 $as_echo_n "checking if $CXX accepts -O1... " >&6; }
21638   CXXFLAGS="-O1 $CXXFLAGS"
21639         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h.  */
21641 int main(){}
21642 _ACEOF
21643 if ac_fn_cxx_try_link "$LINENO"; then :
21644
21645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21646 $as_echo "yes" >&6; }
21647
21648
21649 else
21650
21651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21652 $as_echo "no" >&6; }
21653     CXXFLAGS="$_svn_xxflags__save"
21654
21655
21656   _svn_xxflags__save="$CXXFLAGS"
21657   ac_ext=cpp
21658 ac_cpp='$CXXCPP $CPPFLAGS'
21659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21662
21663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5
21664 $as_echo_n "checking if $CXX accepts -O... " >&6; }
21665   CXXFLAGS="-O $CXXFLAGS"
21666         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21667 /* end confdefs.h.  */
21668 int main(){}
21669 _ACEOF
21670 if ac_fn_cxx_try_link "$LINENO"; then :
21671
21672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21673 $as_echo "yes" >&6; }
21674
21675
21676 else
21677
21678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679 $as_echo "no" >&6; }
21680     CXXFLAGS="$_svn_xxflags__save"
21681
21682
21683 fi
21684 rm -f core conftest.err conftest.$ac_objext \
21685     conftest$ac_exeext conftest.$ac_ext
21686   ac_ext=cpp
21687 ac_cpp='$CXXCPP $CPPFLAGS'
21688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21691
21692
21693
21694 fi
21695 rm -f core conftest.err conftest.$ac_objext \
21696     conftest$ac_exeext conftest.$ac_ext
21697   ac_ext=cpp
21698 ac_cpp='$CXXCPP $CPPFLAGS'
21699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21702
21703
21704
21705 fi
21706 rm -f core conftest.err conftest.$ac_objext \
21707     conftest$ac_exeext conftest.$ac_ext
21708   ac_ext=cpp
21709 ac_cpp='$CXXCPP $CPPFLAGS'
21710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21713
21714
21715
21716 fi
21717 rm -f core conftest.err conftest.$ac_objext \
21718     conftest$ac_exeext conftest.$ac_ext
21719   ac_ext=c
21720 ac_cpp='$CPP $CPPFLAGS'
21721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21724
21725
21726
21727   _svn_xxflags__save="$CXXFLAGS"
21728   ac_ext=cpp
21729 ac_cpp='$CXXCPP $CPPFLAGS'
21730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21733
21734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5
21735 $as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; }
21736   CXXFLAGS="-Wno-clobbered $CXXFLAGS"
21737         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21738 /* end confdefs.h.  */
21739 int main(){}
21740 _ACEOF
21741 if ac_fn_cxx_try_link "$LINENO"; then :
21742
21743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21744 $as_echo "yes" >&6; }
21745
21746
21747 else
21748
21749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21750 $as_echo "no" >&6; }
21751     CXXFLAGS="$_svn_xxflags__save"
21752
21753
21754 fi
21755 rm -f core conftest.err conftest.$ac_objext \
21756     conftest$ac_exeext conftest.$ac_ext
21757   ac_ext=c
21758 ac_cpp='$CPP $CPPFLAGS'
21759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21762
21763
21764
21765   _svn_xxflags__save="$CXXFLAGS"
21766   ac_ext=cpp
21767 ac_cpp='$CXXCPP $CPPFLAGS'
21768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21771
21772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5
21773 $as_echo_n "checking if $CXX accepts -flto... " >&6; }
21774   CXXFLAGS="-flto $CXXFLAGS"
21775         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21776 /* end confdefs.h.  */
21777 int main(){}
21778 _ACEOF
21779 if ac_fn_cxx_try_link "$LINENO"; then :
21780
21781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21782 $as_echo "yes" >&6; }
21783
21784
21785 else
21786
21787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21788 $as_echo "no" >&6; }
21789     CXXFLAGS="$_svn_xxflags__save"
21790
21791
21792 fi
21793 rm -f core conftest.err conftest.$ac_objext \
21794     conftest$ac_exeext conftest.$ac_ext
21795   ac_ext=c
21796 ac_cpp='$CPP $CPPFLAGS'
21797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21800
21801
21802     fi
21803   fi
21804 elif test "$enable_optimization" = "no"; then
21805     { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5
21806 $as_echo "$as_me: Disabling optimizations" >&6;}
21807   CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21808   CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`"
21809 # elif test "$enable_optimization" = "maybe" ; then
21810 #   # do nothing
21811 fi
21812
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5
21814 $as_echo "$as_me: C compiler flags: $CFLAGS" >&6;}
21815 { $as_echo "$as_me:${as_lineno-$LINENO}:     user-defined: $CUSERFLAGS" >&5
21816 $as_echo "$as_me:     user-defined: $CUSERFLAGS" >&6;}
21817 { $as_echo "$as_me:${as_lineno-$LINENO}:  maintainer-mode: $CMAINTAINERFLAGS" >&5
21818 $as_echo "$as_me:  maintainer-mode: $CMAINTAINERFLAGS" >&6;}
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5
21820 $as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;}
21821 { $as_echo "$as_me:${as_lineno-$LINENO}:       user-defined: $CXXUSERFLAGS" >&5
21822 $as_echo "$as_me:       user-defined: $CXXUSERFLAGS" >&6;}
21823 { $as_echo "$as_me:${as_lineno-$LINENO}:    maintainer-mode: $CXXMAINTAINERFLAGS" >&5
21824 $as_echo "$as_me:    maintainer-mode: $CXXMAINTAINERFLAGS" >&6;}
21825
21826 # Check whether --enable-full-version-match was given.
21827 if test "${enable_full_version_match+set}" = set; then :
21828   enableval=$enable_full_version_match;
21829     if test "$enableval" = "no" ; then
21830       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5
21831 $as_echo "$as_me: Disabling svn full version matching" >&6;}
21832
21833 $as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h
21834
21835     fi
21836
21837 fi
21838
21839
21840
21841 # Check whether --with-editor was given.
21842 if test "${with_editor+set}" = set; then :
21843   withval=$with_editor;
21844
21845     if test "$withval" = "yes" ; then
21846       as_fn_error $? "--with-editor requires an argument." "$LINENO" 5
21847     else
21848       SVN_CLIENT_EDITOR=$withval
21849
21850 cat >>confdefs.h <<_ACEOF
21851 #define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR"
21852 _ACEOF
21853
21854
21855     fi
21856
21857
21858 fi
21859
21860
21861
21862   zlib_found=no
21863
21864
21865 # Check whether --with-zlib was given.
21866 if test "${with_zlib+set}" = set; then :
21867   withval=$with_zlib;
21868     if test "$withval" = "yes" ; then
21869       ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21870 if test "x$ac_cv_header_zlib_h" = xyes; then :
21871
21872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21873 $as_echo_n "checking for inflate in -lz... " >&6; }
21874 if ${ac_cv_lib_z_inflate+:} false; then :
21875   $as_echo_n "(cached) " >&6
21876 else
21877   ac_check_lib_save_LIBS=$LIBS
21878 LIBS="-lz  $LIBS"
21879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21880 /* end confdefs.h.  */
21881
21882 /* Override any GCC internal prototype to avoid an error.
21883    Use char because int might match the return type of a GCC
21884    builtin and then its argument prototype would still apply.  */
21885 #ifdef __cplusplus
21886 extern "C"
21887 #endif
21888 char inflate ();
21889 int
21890 main ()
21891 {
21892 return inflate ();
21893   ;
21894   return 0;
21895 }
21896 _ACEOF
21897 if ac_fn_c_try_link "$LINENO"; then :
21898   ac_cv_lib_z_inflate=yes
21899 else
21900   ac_cv_lib_z_inflate=no
21901 fi
21902 rm -f core conftest.err conftest.$ac_objext \
21903     conftest$ac_exeext conftest.$ac_ext
21904 LIBS=$ac_check_lib_save_LIBS
21905 fi
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21907 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21908 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21909   zlib_found="builtin"
21910 fi
21911
21912
21913 fi
21914
21915
21916     elif test "$withval" = "no" ; then
21917       as_fn_error $? "cannot compile without zlib." "$LINENO" 5
21918     else
21919       { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5
21920 $as_echo "$as_me: zlib library configuration" >&6;}
21921       zlib_prefix=$withval
21922       save_cppflags="$CPPFLAGS"
21923       CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include"
21924       for ac_header in zlib.h
21925 do :
21926   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21927 if test "x$ac_cv_header_zlib_h" = xyes; then :
21928   cat >>confdefs.h <<_ACEOF
21929 #define HAVE_ZLIB_H 1
21930 _ACEOF
21931
21932         save_ldflags="$LDFLAGS"
21933         LDFLAGS="$LDFLAGS -L$zlib_prefix/lib"
21934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21935 $as_echo_n "checking for inflate in -lz... " >&6; }
21936 if ${ac_cv_lib_z_inflate+:} false; then :
21937   $as_echo_n "(cached) " >&6
21938 else
21939   ac_check_lib_save_LIBS=$LIBS
21940 LIBS="-lz  $LIBS"
21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h.  */
21943
21944 /* Override any GCC internal prototype to avoid an error.
21945    Use char because int might match the return type of a GCC
21946    builtin and then its argument prototype would still apply.  */
21947 #ifdef __cplusplus
21948 extern "C"
21949 #endif
21950 char inflate ();
21951 int
21952 main ()
21953 {
21954 return inflate ();
21955   ;
21956   return 0;
21957 }
21958 _ACEOF
21959 if ac_fn_c_try_link "$LINENO"; then :
21960   ac_cv_lib_z_inflate=yes
21961 else
21962   ac_cv_lib_z_inflate=no
21963 fi
21964 rm -f core conftest.err conftest.$ac_objext \
21965     conftest$ac_exeext conftest.$ac_ext
21966 LIBS=$ac_check_lib_save_LIBS
21967 fi
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
21969 $as_echo "$ac_cv_lib_z_inflate" >&6; }
21970 if test "x$ac_cv_lib_z_inflate" = xyes; then :
21971   zlib_found="yes"
21972 fi
21973
21974         LDFLAGS="$save_ldflags"
21975
21976 fi
21977
21978 done
21979
21980       CPPFLAGS="$save_cppflags"
21981     fi
21982
21983 else
21984
21985     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21986 if test "x$ac_cv_header_zlib_h" = xyes; then :
21987
21988       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
21989 $as_echo_n "checking for inflate in -lz... " >&6; }
21990 if ${ac_cv_lib_z_inflate+:} false; then :
21991   $as_echo_n "(cached) " >&6
21992 else
21993   ac_check_lib_save_LIBS=$LIBS
21994 LIBS="-lz  $LIBS"
21995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21996 /* end confdefs.h.  */
21997
21998 /* Override any GCC internal prototype to avoid an error.
21999    Use char because int might match the return type of a GCC
22000    builtin and then its argument prototype would still apply.  */
22001 #ifdef __cplusplus
22002 extern "C"
22003 #endif
22004 char inflate ();
22005 int
22006 main ()
22007 {
22008 return inflate ();
22009   ;
22010   return 0;
22011 }
22012 _ACEOF
22013 if ac_fn_c_try_link "$LINENO"; then :
22014   ac_cv_lib_z_inflate=yes
22015 else
22016   ac_cv_lib_z_inflate=no
22017 fi
22018 rm -f core conftest.err conftest.$ac_objext \
22019     conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22021 fi
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
22023 $as_echo "$ac_cv_lib_z_inflate" >&6; }
22024 if test "x$ac_cv_lib_z_inflate" = xyes; then :
22025   zlib_found="builtin"
22026 fi
22027
22028
22029 fi
22030
22031
22032
22033 fi
22034
22035
22036   if test "$zlib_found" = "no"; then
22037     as_fn_error $? "subversion requires zlib" "$LINENO" 5
22038   fi
22039
22040   if test "$zlib_found" = "yes"; then
22041     SVN_ZLIB_INCLUDES="-I$zlib_prefix/include"
22042     LDFLAGS="$LDFLAGS `
22043   input_flags="-L$zlib_prefix/lib"
22044   output_flags=""
22045   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
22046   for flag in $input_flags; do
22047     filter="no"
22048     for dir in $filtered_dirs; do
22049       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
22050         filter="yes"
22051         break
22052       fi
22053     done
22054     if test "$filter" = "no"; then
22055       output_flags="$output_flags $flag"
22056     fi
22057   done
22058   if test -n "$output_flags"; then
22059     printf "%s" "${output_flags# }"
22060   fi
22061 `"
22062   fi
22063
22064   SVN_ZLIB_LIBS="-lz"
22065
22066
22067
22068
22069
22070 MOD_ACTIVATION=""
22071 # Check whether --enable-mod-activation was given.
22072 if test "${enable_mod_activation+set}" = set; then :
22073   enableval=$enable_mod_activation;
22074     if test "$enableval" = "yes" ; then
22075       MOD_ACTIVATION="-a"
22076       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5
22077 $as_echo "$as_me: Enabling apache module activation" >&6;}
22078     else
22079       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5
22080 $as_echo "$as_me: Disabling apache module activation" >&6;}
22081     fi
22082
22083 fi
22084
22085
22086
22087
22088
22089 # Check whether --enable-gcov was given.
22090 if test "${enable_gcov+set}" = set; then :
22091   enableval=$enable_gcov;
22092     if test "$enableval" = "yes" ; then
22093                   if test "$GCC" = "yes"; then
22094         if test "$svn_enable_shared" = "yes" ; then
22095           as_fn_error $? "Can't have --enable-gcov without --disable-shared (we
22096                         recommend also using --enable-all-static)." "$LINENO" 5
22097         fi
22098         if test ! "$enable_all_static" = "yes" ; then
22099           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5
22100 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;}
22101         fi
22102         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5
22103 $as_echo "$as_me: Enabling gcov coverage testing." >&6;}
22104         CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
22105         CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
22106       else
22107         as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5
22108       fi
22109     fi
22110
22111 fi
22112
22113
22114 # Check whether --enable-gprof was given.
22115 if test "${enable_gprof+set}" = set; then :
22116   enableval=$enable_gprof;
22117     if test "$enableval" = "yes" ; then
22118                   if test "$GCC" = "yes"; then
22119         if test "$svn_enable_shared" = "yes" ; then
22120           as_fn_error $? "Can't have --enable-gprof without --disable-shared (we
22121                         recommend also using --enable-all-static)." "$LINENO" 5
22122         fi
22123         if test ! "$enable_all_static" = "yes" ; then
22124           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5
22125 $as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;}
22126         fi
22127         { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5
22128 $as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;}
22129         CFLAGS="$CFLAGS -pg"
22130         CXXFLAGS="$CXXFLAGS -pg"
22131         LT_LDFLAGS="$LT_LDFLAGS -pg"
22132       else
22133         as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5
22134       fi
22135     fi
22136
22137 fi
22138
22139
22140
22141 # Scripting and Bindings languages
22142
22143 # Python: Used for testsuite, and bindings
22144
22145
22146 PYTHON="`$abs_srcdir/build/find_python.sh`"
22147 if test -z "$PYTHON"; then
22148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.5 or later is required to run the testsuite" >&5
22149 $as_echo "$as_me: WARNING: Python 2.5 or later is required to run the testsuite" >&2;}
22150   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5
22151 $as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;}
22152   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
22153 $as_echo "$as_me: WARNING: " >&2;}
22154   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5
22155 $as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;}
22156   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5
22157 $as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;}
22158   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5
22159 $as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;}
22160 fi
22161 for ac_prog in "$PYTHON"
22162 do
22163   # Extract the first word of "$ac_prog", so it can be a program name with args.
22164 set dummy $ac_prog; ac_word=$2
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22166 $as_echo_n "checking for $ac_word... " >&6; }
22167 if ${ac_cv_path_PYTHON+:} false; then :
22168   $as_echo_n "(cached) " >&6
22169 else
22170   case $PYTHON in
22171   [\\/]* | ?:[\\/]*)
22172   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22173   ;;
22174   *)
22175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22176 for as_dir in $PATH
22177 do
22178   IFS=$as_save_IFS
22179   test -z "$as_dir" && as_dir=.
22180     for ac_exec_ext in '' $ac_executable_extensions; do
22181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22182     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22184     break 2
22185   fi
22186 done
22187   done
22188 IFS=$as_save_IFS
22189
22190   ;;
22191 esac
22192 fi
22193 PYTHON=$ac_cv_path_PYTHON
22194 if test -n "$PYTHON"; then
22195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22196 $as_echo "$PYTHON" >&6; }
22197 else
22198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22199 $as_echo "no" >&6; }
22200 fi
22201
22202
22203   test -n "$PYTHON" && break
22204 done
22205 test -n "$PYTHON" || PYTHON="none"
22206
22207
22208 # The minimum version for the JVM runtime for our Java bytecode.
22209 JAVA_OLDEST_WORKING_VER='1.5'
22210 # SVN_CHECK_JDK sets $JAVA_CLASSPATH
22211
22212   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22213
22214 # Check whether --with-jdk was given.
22215 if test "${with_jdk+set}" = set; then :
22216   withval=$with_jdk;
22217     case "$withval" in
22218       "no")
22219         JDK_SUITABLE=no
22220       ;;
22221       "yes")
22222
22223   where=check
22224   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22225
22226   JDK=none
22227   JAVA_BIN=none
22228   JAVADOC=none
22229   JAVAC=none
22230   JAVAH=none
22231   JAR=none
22232   JNI_INCLUDES=none
22233
22234   JDK_SUITABLE=no
22235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22236 $as_echo_n "checking for JDK... " >&6; }
22237   if test $where = check; then
22238             if test -x "$JAVA_HOME/bin/java"; then
22239       JDK="$JAVA_HOME"
22240     elif test -x "/Library/Java/Home/bin/java"; then
22241       JDK="/Library/Java/Home"
22242     elif test -x "/usr/bin/java"; then
22243       JDK="/usr"
22244     elif test -x "/usr/local/bin/java"; then
22245       JDK="/usr/local"
22246     fi
22247   else
22248     JDK=$where
22249   fi
22250
22251           os_arch="`uname`"
22252   if test "$os_arch" = "Darwin"; then
22253     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22254
22255     if test "$OSX_VER" = "10.4"; then
22256             OSX_VER="10.4u"
22257     fi
22258
22259     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22260     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22261     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22262   fi
22263
22264   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22265      test -d "/Library/Java/Home"; then
22266     JDK="/Library/Java/Home"
22267   fi
22268
22269   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22270     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22271   else
22272     JRE_LIB_DIR="$JDK/jre/lib"
22273   fi
22274
22275   if test -f "$JDK/include/jni.h"; then
22276         JNI_INCLUDEDIR="$JDK/include"
22277     JDK_SUITABLE=yes
22278   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22279         JNI_INCLUDEDIR="$JDK/Headers"
22280     JDK_SUITABLE=yes
22281   elif test "$os_arch" = "Darwin" &&
22282        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22283         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22284     JDK_SUITABLE=yes
22285   elif test "$os_arch" = "Darwin" &&
22286        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22287         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22288     JDK_SUITABLE=yes
22289   else
22290     JDK_SUITABLE=no
22291   fi
22292   if test "$JDK_SUITABLE" = "yes"; then
22293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22294 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22295   else
22296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22297 $as_echo "no" >&6; }
22298     if test "$where" != "check"; then
22299       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22300 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22301       if test "$os_arch" = "Darwin"; then
22302         { $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
22303 $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;}
22304       fi
22305     fi
22306   fi
22307
22308   if test "$JDK_SUITABLE" = "yes"; then
22309     JAVA_BIN='$(JDK)/bin'
22310
22311     JAVA="$JAVA_BIN/java"
22312     JAVAC="$JAVA_BIN/javac"
22313     JAVAH="$JAVA_BIN/javah"
22314     JAVADOC="$JAVA_BIN/javadoc"
22315     JAR="$JAVA_BIN/jar"
22316
22317         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22318
22319 # Check whether --with-jikes was given.
22320 if test "${with_jikes+set}" = set; then :
22321   withval=$with_jikes;
22322         if test "$withval" != "no" && test "$withval" != "yes"; then
22323                     jikes_options="$withval $jikes_options"
22324         fi
22325         requested_jikes="$withval"  # will be 'yes' if path unspecified
22326
22327 fi
22328
22329     if test "$requested_jikes" != "no"; then
22330             for jikes in $jikes_options; do
22331         if test -z "$jikes_found" && test -x "$jikes"; then
22332           jikes_found="yes"
22333           JAVAC="$jikes"
22334           JAVA_CLASSPATH="$JRE_LIB_DIR"
22335           for jar in $JRE_LIB_DIR/*.jar; do
22336             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22337           done
22338         fi
22339       done
22340     fi
22341     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22342             if test -z "$jikes_found"; then
22343         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22344       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22345            test "$JAVAC" != "$requested_jikes"; then
22346         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22347 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22348       fi
22349     fi
22350
22351         # The release for "-source" could actually be greater than that
22352     # of "-target", if we want to cross-compile for lesser JVMs.
22353     if test -z "$JAVAC_FLAGS"; then
22354       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22355       if test "$enable_debugging" = "yes"; then
22356         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22357       fi
22358     fi
22359
22360     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22361     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22362     for dir in $list; do
22363       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22364     done
22365   fi
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376       ;;
22377       *)
22378
22379   where=$withval
22380   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22381
22382   JDK=none
22383   JAVA_BIN=none
22384   JAVADOC=none
22385   JAVAC=none
22386   JAVAH=none
22387   JAR=none
22388   JNI_INCLUDES=none
22389
22390   JDK_SUITABLE=no
22391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22392 $as_echo_n "checking for JDK... " >&6; }
22393   if test $where = check; then
22394             if test -x "$JAVA_HOME/bin/java"; then
22395       JDK="$JAVA_HOME"
22396     elif test -x "/Library/Java/Home/bin/java"; then
22397       JDK="/Library/Java/Home"
22398     elif test -x "/usr/bin/java"; then
22399       JDK="/usr"
22400     elif test -x "/usr/local/bin/java"; then
22401       JDK="/usr/local"
22402     fi
22403   else
22404     JDK=$where
22405   fi
22406
22407           os_arch="`uname`"
22408   if test "$os_arch" = "Darwin"; then
22409     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22410
22411     if test "$OSX_VER" = "10.4"; then
22412             OSX_VER="10.4u"
22413     fi
22414
22415     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22416     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22417     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22418   fi
22419
22420   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22421      test -d "/Library/Java/Home"; then
22422     JDK="/Library/Java/Home"
22423   fi
22424
22425   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22426     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22427   else
22428     JRE_LIB_DIR="$JDK/jre/lib"
22429   fi
22430
22431   if test -f "$JDK/include/jni.h"; then
22432         JNI_INCLUDEDIR="$JDK/include"
22433     JDK_SUITABLE=yes
22434   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22435         JNI_INCLUDEDIR="$JDK/Headers"
22436     JDK_SUITABLE=yes
22437   elif test "$os_arch" = "Darwin" &&
22438        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22439         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22440     JDK_SUITABLE=yes
22441   elif test "$os_arch" = "Darwin" &&
22442        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22443         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22444     JDK_SUITABLE=yes
22445   else
22446     JDK_SUITABLE=no
22447   fi
22448   if test "$JDK_SUITABLE" = "yes"; then
22449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22450 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22451   else
22452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22453 $as_echo "no" >&6; }
22454     if test "$where" != "check"; then
22455       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22456 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22457       if test "$os_arch" = "Darwin"; then
22458         { $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
22459 $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;}
22460       fi
22461     fi
22462   fi
22463
22464   if test "$JDK_SUITABLE" = "yes"; then
22465     JAVA_BIN='$(JDK)/bin'
22466
22467     JAVA="$JAVA_BIN/java"
22468     JAVAC="$JAVA_BIN/javac"
22469     JAVAH="$JAVA_BIN/javah"
22470     JAVADOC="$JAVA_BIN/javadoc"
22471     JAR="$JAVA_BIN/jar"
22472
22473         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22474
22475 # Check whether --with-jikes was given.
22476 if test "${with_jikes+set}" = set; then :
22477   withval=$with_jikes;
22478         if test "$withval" != "no" && test "$withval" != "yes"; then
22479                     jikes_options="$withval $jikes_options"
22480         fi
22481         requested_jikes="$withval"  # will be 'yes' if path unspecified
22482
22483 fi
22484
22485     if test "$requested_jikes" != "no"; then
22486             for jikes in $jikes_options; do
22487         if test -z "$jikes_found" && test -x "$jikes"; then
22488           jikes_found="yes"
22489           JAVAC="$jikes"
22490           JAVA_CLASSPATH="$JRE_LIB_DIR"
22491           for jar in $JRE_LIB_DIR/*.jar; do
22492             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22493           done
22494         fi
22495       done
22496     fi
22497     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22498             if test -z "$jikes_found"; then
22499         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22500       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22501            test "$JAVAC" != "$requested_jikes"; then
22502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22503 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22504       fi
22505     fi
22506
22507         # The release for "-source" could actually be greater than that
22508     # of "-target", if we want to cross-compile for lesser JVMs.
22509     if test -z "$JAVAC_FLAGS"; then
22510       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22511       if test "$enable_debugging" = "yes"; then
22512         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22513       fi
22514     fi
22515
22516     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22517     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22518     for dir in $list; do
22519       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22520     done
22521   fi
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532       ;;
22533     esac
22534
22535 else
22536
22537
22538   where=check
22539   JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER"
22540
22541   JDK=none
22542   JAVA_BIN=none
22543   JAVADOC=none
22544   JAVAC=none
22545   JAVAH=none
22546   JAR=none
22547   JNI_INCLUDES=none
22548
22549   JDK_SUITABLE=no
22550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5
22551 $as_echo_n "checking for JDK... " >&6; }
22552   if test $where = check; then
22553             if test -x "$JAVA_HOME/bin/java"; then
22554       JDK="$JAVA_HOME"
22555     elif test -x "/Library/Java/Home/bin/java"; then
22556       JDK="/Library/Java/Home"
22557     elif test -x "/usr/bin/java"; then
22558       JDK="/usr"
22559     elif test -x "/usr/local/bin/java"; then
22560       JDK="/usr/local"
22561     fi
22562   else
22563     JDK=$where
22564   fi
22565
22566           os_arch="`uname`"
22567   if test "$os_arch" = "Darwin"; then
22568     OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
22569
22570     if test "$OSX_VER" = "10.4"; then
22571             OSX_VER="10.4u"
22572     fi
22573
22574     OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework"
22575     OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library"
22576     OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework"
22577   fi
22578
22579   if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" &&
22580      test -d "/Library/Java/Home"; then
22581     JDK="/Library/Java/Home"
22582   fi
22583
22584   if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then
22585     JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes"
22586   else
22587     JRE_LIB_DIR="$JDK/jre/lib"
22588   fi
22589
22590   if test -f "$JDK/include/jni.h"; then
22591         JNI_INCLUDEDIR="$JDK/include"
22592     JDK_SUITABLE=yes
22593   elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then
22594         JNI_INCLUDEDIR="$JDK/Headers"
22595     JDK_SUITABLE=yes
22596   elif test "$os_arch" = "Darwin" &&
22597        test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then
22598         JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers"
22599     JDK_SUITABLE=yes
22600   elif test "$os_arch" = "Darwin" &&
22601        test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then
22602         JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers"
22603     JDK_SUITABLE=yes
22604   else
22605     JDK_SUITABLE=no
22606   fi
22607   if test "$JDK_SUITABLE" = "yes"; then
22608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5
22609 $as_echo "$JNI_INCLUDEDIR/jni.h" >&6; }
22610   else
22611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22612 $as_echo "no" >&6; }
22613     if test "$where" != "check"; then
22614       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5
22615 $as_echo "$as_me: WARNING: no JNI header files found." >&2;}
22616       if test "$os_arch" = "Darwin"; then
22617         { $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
22618 $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;}
22619       fi
22620     fi
22621   fi
22622
22623   if test "$JDK_SUITABLE" = "yes"; then
22624     JAVA_BIN='$(JDK)/bin'
22625
22626     JAVA="$JAVA_BIN/java"
22627     JAVAC="$JAVA_BIN/javac"
22628     JAVAH="$JAVA_BIN/javah"
22629     JAVADOC="$JAVA_BIN/javadoc"
22630     JAR="$JAVA_BIN/jar"
22631
22632         jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
22633
22634 # Check whether --with-jikes was given.
22635 if test "${with_jikes+set}" = set; then :
22636   withval=$with_jikes;
22637         if test "$withval" != "no" && test "$withval" != "yes"; then
22638                     jikes_options="$withval $jikes_options"
22639         fi
22640         requested_jikes="$withval"  # will be 'yes' if path unspecified
22641
22642 fi
22643
22644     if test "$requested_jikes" != "no"; then
22645             for jikes in $jikes_options; do
22646         if test -z "$jikes_found" && test -x "$jikes"; then
22647           jikes_found="yes"
22648           JAVAC="$jikes"
22649           JAVA_CLASSPATH="$JRE_LIB_DIR"
22650           for jar in $JRE_LIB_DIR/*.jar; do
22651             JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
22652           done
22653         fi
22654       done
22655     fi
22656     if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
22657             if test -z "$jikes_found"; then
22658         as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5
22659       elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
22660            test "$JAVAC" != "$requested_jikes"; then
22661         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5
22662 $as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;}
22663       fi
22664     fi
22665
22666         # The release for "-source" could actually be greater than that
22667     # of "-target", if we want to cross-compile for lesser JVMs.
22668     if test -z "$JAVAC_FLAGS"; then
22669       JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
22670       if test "$enable_debugging" = "yes"; then
22671         JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
22672       fi
22673     fi
22674
22675     JNI_INCLUDES="-I$JNI_INCLUDEDIR"
22676     list="`find "$JNI_INCLUDEDIR" -type d -print`"
22677     for dir in $list; do
22678       JNI_INCLUDES="$JNI_INCLUDES -I$dir"
22679     done
22680   fi
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692 fi
22693
22694
22695
22696 # Extract the first word of "perl", so it can be a program name with args.
22697 set dummy perl; ac_word=$2
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22699 $as_echo_n "checking for $ac_word... " >&6; }
22700 if ${ac_cv_path_PERL+:} false; then :
22701   $as_echo_n "(cached) " >&6
22702 else
22703   case $PERL in
22704   [\\/]* | ?:[\\/]*)
22705   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22706   ;;
22707   *)
22708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22709 for as_dir in $PATH
22710 do
22711   IFS=$as_save_IFS
22712   test -z "$as_dir" && as_dir=.
22713     for ac_exec_ext in '' $ac_executable_extensions; do
22714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22715     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22717     break 2
22718   fi
22719 done
22720   done
22721 IFS=$as_save_IFS
22722
22723   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
22724   ;;
22725 esac
22726 fi
22727 PERL=$ac_cv_path_PERL
22728 if test -n "$PERL"; then
22729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22730 $as_echo "$PERL" >&6; }
22731 else
22732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22733 $as_echo "no" >&6; }
22734 fi
22735
22736
22737
22738 if test -n "$RUBY"; then
22739   # Extract the first word of ""$RUBY"", so it can be a program name with args.
22740 set dummy "$RUBY"; ac_word=$2
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22742 $as_echo_n "checking for $ac_word... " >&6; }
22743 if ${ac_cv_path_RUBY+:} false; then :
22744   $as_echo_n "(cached) " >&6
22745 else
22746   case $RUBY in
22747   [\\/]* | ?:[\\/]*)
22748   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22749   ;;
22750   *)
22751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22752 for as_dir in $PATH
22753 do
22754   IFS=$as_save_IFS
22755   test -z "$as_dir" && as_dir=.
22756     for ac_exec_ext in '' $ac_executable_extensions; do
22757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22758     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22760     break 2
22761   fi
22762 done
22763   done
22764 IFS=$as_save_IFS
22765
22766   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none"
22767   ;;
22768 esac
22769 fi
22770 RUBY=$ac_cv_path_RUBY
22771 if test -n "$RUBY"; then
22772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22773 $as_echo "$RUBY" >&6; }
22774 else
22775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22776 $as_echo "no" >&6; }
22777 fi
22778
22779
22780 else
22781   for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193 ruby2.0 ruby2.1
22782 do
22783   # Extract the first word of "$ac_prog", so it can be a program name with args.
22784 set dummy $ac_prog; ac_word=$2
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22786 $as_echo_n "checking for $ac_word... " >&6; }
22787 if ${ac_cv_path_RUBY+:} false; then :
22788   $as_echo_n "(cached) " >&6
22789 else
22790   case $RUBY in
22791   [\\/]* | ?:[\\/]*)
22792   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22793   ;;
22794   *)
22795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22796 for as_dir in $PATH
22797 do
22798   IFS=$as_save_IFS
22799   test -z "$as_dir" && as_dir=.
22800     for ac_exec_ext in '' $ac_executable_extensions; do
22801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22802     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22804     break 2
22805   fi
22806 done
22807   done
22808 IFS=$as_save_IFS
22809
22810   ;;
22811 esac
22812 fi
22813 RUBY=$ac_cv_path_RUBY
22814 if test -n "$RUBY"; then
22815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22816 $as_echo "$RUBY" >&6; }
22817 else
22818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22819 $as_echo "no" >&6; }
22820 fi
22821
22822
22823   test -n "$RUBY" && break
22824 done
22825 test -n "$RUBY" || RUBY="none"
22826
22827 fi
22828 if test "$RUBY" != "none"; then
22829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5
22830 $as_echo_n "checking rb_hash_foreach... " >&6; }
22831   if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then
22832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22833 $as_echo "yes" >&6; }
22834     if test -n "$RDOC"; then
22835       # Extract the first word of ""$RDOC"", so it can be a program name with args.
22836 set dummy "$RDOC"; ac_word=$2
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22838 $as_echo_n "checking for $ac_word... " >&6; }
22839 if ${ac_cv_path_RDOC+:} false; then :
22840   $as_echo_n "(cached) " >&6
22841 else
22842   case $RDOC in
22843   [\\/]* | ?:[\\/]*)
22844   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22845   ;;
22846   *)
22847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22848 for as_dir in $PATH
22849 do
22850   IFS=$as_save_IFS
22851   test -z "$as_dir" && as_dir=.
22852     for ac_exec_ext in '' $ac_executable_extensions; do
22853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22854     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22856     break 2
22857   fi
22858 done
22859   done
22860 IFS=$as_save_IFS
22861
22862   test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none"
22863   ;;
22864 esac
22865 fi
22866 RDOC=$ac_cv_path_RDOC
22867 if test -n "$RDOC"; then
22868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22869 $as_echo "$RDOC" >&6; }
22870 else
22871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22872 $as_echo "no" >&6; }
22873 fi
22874
22875
22876     else
22877       for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 rdoc2.0 rdoc2.1
22878 do
22879   # Extract the first word of "$ac_prog", so it can be a program name with args.
22880 set dummy $ac_prog; ac_word=$2
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22882 $as_echo_n "checking for $ac_word... " >&6; }
22883 if ${ac_cv_path_RDOC+:} false; then :
22884   $as_echo_n "(cached) " >&6
22885 else
22886   case $RDOC in
22887   [\\/]* | ?:[\\/]*)
22888   ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path.
22889   ;;
22890   *)
22891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22892 for as_dir in $PATH
22893 do
22894   IFS=$as_save_IFS
22895   test -z "$as_dir" && as_dir=.
22896     for ac_exec_ext in '' $ac_executable_extensions; do
22897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22898     ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext"
22899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22900     break 2
22901   fi
22902 done
22903   done
22904 IFS=$as_save_IFS
22905
22906   ;;
22907 esac
22908 fi
22909 RDOC=$ac_cv_path_RDOC
22910 if test -n "$RDOC"; then
22911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5
22912 $as_echo "$RDOC" >&6; }
22913 else
22914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22915 $as_echo "no" >&6; }
22916 fi
22917
22918
22919   test -n "$RDOC" && break
22920 done
22921 test -n "$RDOC" || RDOC="none"
22922
22923     fi
22924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5
22925 $as_echo_n "checking for Ruby major version... " >&6; }
22926 if ${svn_cv_ruby_major+:} false; then :
22927   $as_echo_n "(cached) " >&6
22928 else
22929
22930     svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
22931
22932 fi
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5
22934 $as_echo "$svn_cv_ruby_major" >&6; }
22935     RUBY_MAJOR="$svn_cv_ruby_major"
22936
22937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5
22938 $as_echo_n "checking for Ruby minor version... " >&6; }
22939 if ${svn_cv_ruby_minor+:} false; then :
22940   $as_echo_n "(cached) " >&6
22941 else
22942
22943     svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`"
22944
22945 fi
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5
22947 $as_echo "$svn_cv_ruby_minor" >&6; }
22948     RUBY_MINOR="$svn_cv_ruby_minor"
22949
22950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5
22951 $as_echo_n "checking for Ruby teeny version... " >&6; }
22952 if ${svn_cv_ruby_teeny+:} false; then :
22953   $as_echo_n "(cached) " >&6
22954 else
22955
22956     svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`"
22957
22958 fi
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5
22960 $as_echo "$svn_cv_ruby_teeny" >&6; }
22961     RUBY_TEENY="$svn_cv_ruby_teeny"
22962
22963
22964
22965
22966     if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then
22967       # Disallow Ruby between 1.8.7 and 1.9.3
22968       RUBY="none"
22969       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5
22970 $as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;}
22971       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5
22972 $as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;}
22973     fi
22974   else
22975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22976 $as_echo "no" >&6; }
22977     RUBY="none"
22978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5
22979 $as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;}
22980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5
22981 $as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;}
22982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5
22983 $as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;}
22984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5
22985 $as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;}
22986   fi
22987 fi
22988
22989
22990
22991 # Check whether --with-swig was given.
22992 if test "${with_swig+set}" = set; then :
22993   withval=$with_swig;
22994     case "$withval" in
22995       "no")
22996         SWIG_SUITABLE=no
22997
22998   where=no
22999
23000   if test $where = no; then
23001     SWIG=none
23002   elif test $where = check; then
23003     # Extract the first word of "swig", so it can be a program name with args.
23004 set dummy swig; ac_word=$2
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23006 $as_echo_n "checking for $ac_word... " >&6; }
23007 if ${ac_cv_path_SWIG+:} false; then :
23008   $as_echo_n "(cached) " >&6
23009 else
23010   case $SWIG in
23011   [\\/]* | ?:[\\/]*)
23012   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23013   ;;
23014   *)
23015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23016 for as_dir in $PATH
23017 do
23018   IFS=$as_save_IFS
23019   test -z "$as_dir" && as_dir=.
23020     for ac_exec_ext in '' $ac_executable_extensions; do
23021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23022     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23024     break 2
23025   fi
23026 done
23027   done
23028 IFS=$as_save_IFS
23029
23030   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23031   ;;
23032 esac
23033 fi
23034 SWIG=$ac_cv_path_SWIG
23035 if test -n "$SWIG"; then
23036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23037 $as_echo "$SWIG" >&6; }
23038 else
23039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23040 $as_echo "no" >&6; }
23041 fi
23042
23043
23044   else
23045     if test -f "$where"; then
23046       SWIG="$where"
23047     else
23048       SWIG="$where/bin/swig"
23049     fi
23050     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23051       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23052     fi
23053   fi
23054
23055   if test "$SWIG" != "none"; then
23056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23057 $as_echo_n "checking swig version... " >&6; }
23058     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23059                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23060     # We want the version as an integer so we can test against
23061     # which version we're using.  SWIG doesn't provide this
23062     # to us so we have to come up with it on our own.
23063     # The major is passed straight through,
23064     # the minor is zero padded to two places,
23065     # and the patch level is zero padded to three places.
23066     # e.g. 1.3.24 becomes 103024
23067     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23068                   $SED -e 's/[^0-9\.].*$//' \
23069                       -e 's/\.\([0-9]\)$/.0\1/' \
23070                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23071                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23073 $as_echo "$SWIG_VERSION_RAW" >&6; }
23074     # If you change the required swig version number, don't forget to update:
23075     #   subversion/bindings/swig/INSTALL
23076     #   packages/rpm/redhat-8+/subversion.spec
23077     #   packages/rpm/redhat-7.x/subversion.spec
23078     #   packages/rpm/rhel-3/subversion.spec
23079     #   packages/rpm/rhel-4/subversion.spec
23080     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23081       SWIG_SUITABLE=yes
23082     else
23083       SWIG_SUITABLE=no
23084       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23085 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23086       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23087 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23088     fi
23089   fi
23090
23091   SWIG_PY_COMPILE="none"
23092   SWIG_PY_LINK="none"
23093   if test "$PYTHON" != "none"; then
23094     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23095 $as_echo "$as_me: Configuring python swig binding" >&6;}
23096
23097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23098 $as_echo_n "checking for Python includes... " >&6; }
23099 if ${ac_cv_python_includes+:} false; then :
23100   $as_echo_n "(cached) " >&6
23101 else
23102
23103       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23104
23105 fi
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23107 $as_echo "$ac_cv_python_includes" >&6; }
23108     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23109
23110     if test "$ac_cv_python_includes" = "none"; then
23111       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23112 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23113     fi
23114
23115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23116 $as_echo_n "checking for compiling Python extensions... " >&6; }
23117 if ${ac_cv_python_compile+:} false; then :
23118   $as_echo_n "(cached) " >&6
23119 else
23120
23121       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23122
23123 fi
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23125 $as_echo "$ac_cv_python_compile" >&6; }
23126     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23127
23128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23129 $as_echo_n "checking for linking Python extensions... " >&6; }
23130 if ${ac_cv_python_link+:} false; then :
23131   $as_echo_n "(cached) " >&6
23132 else
23133
23134       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23135
23136 fi
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23138 $as_echo "$ac_cv_python_link" >&6; }
23139     SWIG_PY_LINK="$ac_cv_python_link"
23140
23141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23142 $as_echo_n "checking for linking Python libraries... " >&6; }
23143 if ${ac_cv_python_libs+:} false; then :
23144   $as_echo_n "(cached) " >&6
23145 else
23146
23147       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23148
23149 fi
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23151 $as_echo "$ac_cv_python_libs" >&6; }
23152     SWIG_PY_LIBS="`
23153   input_flags="$ac_cv_python_libs"
23154   output_flags=""
23155   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23156   for flag in $input_flags; do
23157     filter="no"
23158     for dir in $filtered_dirs; do
23159       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23160         filter="yes"
23161         break
23162       fi
23163     done
23164     if test "$filter" = "no"; then
23165       output_flags="$output_flags $flag"
23166     fi
23167   done
23168   if test -n "$output_flags"; then
23169     printf "%s" "${output_flags# }"
23170   fi
23171 `"
23172
23173                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23174     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23176 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23177 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23178   $as_echo_n "(cached) " >&6
23179 else
23180
23181       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23182         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183 /* end confdefs.h.  */
23184 #include <apr.h>
23185                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23186 _ACEOF
23187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23188   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23189   svn_cv_pycfmt_apr_int64_t="L"
23190 fi
23191 rm -f conftest*
23192
23193       fi
23194       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23195         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196 /* end confdefs.h.  */
23197 r
23198                      #include <apr.h>
23199                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23200 _ACEOF
23201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23202   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23203   svn_cv_pycfmt_apr_int64_t="l"
23204 fi
23205 rm -f conftest*
23206
23207       fi
23208       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23209         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210 /* end confdefs.h.  */
23211 #include <apr.h>
23212                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23213 _ACEOF
23214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23215   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23216   svn_cv_pycfmt_apr_int64_t="i"
23217 fi
23218 rm -f conftest*
23219
23220       fi
23221
23222 fi
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23224 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23225     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23226     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23227       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23228     fi
23229
23230 cat >>confdefs.h <<_ACEOF
23231 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23232 _ACEOF
23233
23234   fi
23235
23236   if test "$PERL" != "none"; then
23237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23238 $as_echo_n "checking perl version... " >&6; }
23239             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23241 $as_echo "$PERL_VERSION" >&6; }
23242     if test "$PERL_VERSION" -ge "5008000"; then
23243       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23244     else
23245       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23246 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23247     fi
23248   fi
23249
23250   SWIG_RB_COMPILE="none"
23251   SWIG_RB_LINK="none"
23252   if test "$RUBY" != "none"; then
23253     rbconfig="$RUBY -rrbconfig -e "
23254
23255     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23256                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
23257     do
23258       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23259       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23260     done
23261
23262     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23263 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23264
23265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23266 $as_echo_n "checking for Ruby include path... " >&6; }
23267 if ${svn_cv_ruby_includes+:} false; then :
23268   $as_echo_n "(cached) " >&6
23269 else
23270
23271     if test -d "$rbconfig_rubyhdrdir"; then
23272             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
23273       if test -d "$rbconfig_rubyarchhdrdir"; then
23274                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
23275       else
23276         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23277       fi
23278     else
23279             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23280     fi
23281
23282 fi
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23284 $as_echo "$svn_cv_ruby_includes" >&6; }
23285     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23286
23287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23288 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23289 if ${svn_cv_ruby_compile+:} false; then :
23290   $as_echo_n "(cached) " >&6
23291 else
23292
23293       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23294
23295 fi
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23297 $as_echo "$svn_cv_ruby_compile" >&6; }
23298     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23299
23300   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23301
23302
23303   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23304
23305
23306   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23307
23308         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23309
23310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23311 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23312 if ${svn_cv_ruby_link+:} false; then :
23313   $as_echo_n "(cached) " >&6
23314 else
23315
23316       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23317                            $rbconfig_LDSHARED`"
23318       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23319       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23320
23321 fi
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23323 $as_echo "$svn_cv_ruby_link" >&6; }
23324     SWIG_RB_LINK="$svn_cv_ruby_link"
23325
23326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23327 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23328 if ${ac_cv_ruby_libs+:} false; then :
23329   $as_echo_n "(cached) " >&6
23330 else
23331
23332       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23333
23334 fi
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23336 $as_echo "$ac_cv_ruby_libs" >&6; }
23337     SWIG_RB_LIBS="`
23338   input_flags="$ac_cv_ruby_libs"
23339   output_flags=""
23340   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23341   for flag in $input_flags; do
23342     filter="no"
23343     for dir in $filtered_dirs; do
23344       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23345         filter="yes"
23346         break
23347       fi
23348     done
23349     if test "$filter" = "no"; then
23350       output_flags="$output_flags $flag"
23351     fi
23352   done
23353   if test -n "$output_flags"; then
23354     printf "%s" "${output_flags# }"
23355   fi
23356 `"
23357
23358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23359 $as_echo_n "checking for rb_errinfo... " >&6; }
23360     old_CFLAGS="$CFLAGS"
23361     old_LIBS="$LIBS"
23362     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23363
23364   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23365
23366
23367   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23368
23369
23370   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23371
23372     LIBS="$SWIG_RB_LIBS"
23373     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23374 /* end confdefs.h.  */
23375
23376 #include <ruby.h>
23377 int main()
23378 {rb_errinfo();}
23379 _ACEOF
23380 if ac_fn_c_try_link "$LINENO"; then :
23381   have_rb_errinfo="yes"
23382 else
23383   have_rb_errinfo="no"
23384 fi
23385 rm -f core conftest.err conftest.$ac_objext \
23386     conftest$ac_exeext conftest.$ac_ext
23387     if test "$have_rb_errinfo" = "yes"; then
23388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23389 $as_echo "yes" >&6; }
23390
23391 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23392
23393     else
23394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23395 $as_echo "no" >&6; }
23396     fi
23397     CFLAGS="$old_CFLAGS"
23398     LIBS="$old_LIBS"
23399
23400     if ${svn_cv_ruby_sitedir+:} false; then :
23401   $as_echo_n "(cached) " >&6
23402 else
23403
23404       svn_cv_ruby_sitedir="$rbconfig_sitedir"
23405
23406 fi
23407
23408
23409 # Check whether --with-ruby-sitedir was given.
23410 if test "${with_ruby_sitedir+set}" = set; then :
23411   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23412 else
23413   svn_ruby_installdir="$svn_cv_ruby_sitedir"
23414 fi
23415
23416
23417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23418 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23419     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23420   $as_echo_n "(cached) " >&6
23421 else
23422
23423       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23424                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23425
23426 fi
23427
23428     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23430 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23431
23432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23433 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23434     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23435   $as_echo_n "(cached) " >&6
23436 else
23437
23438       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23439                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23440
23441 fi
23442
23443     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23445 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23446
23447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23448 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23449     if ${svn_cv_ruby_test_verbose+:} false; then :
23450   $as_echo_n "(cached) " >&6
23451 else
23452
23453       svn_cv_ruby_test_verbose="normal"
23454
23455 fi
23456
23457
23458 # Check whether --with-ruby-test-verbose was given.
23459 if test "${with_ruby_test_verbose+set}" = set; then :
23460   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23461 else
23462   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23463 fi
23464
23465       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23467 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23468   fi
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483       ;;
23484       "yes")
23485
23486   where=check
23487
23488   if test $where = no; then
23489     SWIG=none
23490   elif test $where = check; then
23491     # Extract the first word of "swig", so it can be a program name with args.
23492 set dummy swig; ac_word=$2
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23494 $as_echo_n "checking for $ac_word... " >&6; }
23495 if ${ac_cv_path_SWIG+:} false; then :
23496   $as_echo_n "(cached) " >&6
23497 else
23498   case $SWIG in
23499   [\\/]* | ?:[\\/]*)
23500   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23501   ;;
23502   *)
23503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23504 for as_dir in $PATH
23505 do
23506   IFS=$as_save_IFS
23507   test -z "$as_dir" && as_dir=.
23508     for ac_exec_ext in '' $ac_executable_extensions; do
23509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23510     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23512     break 2
23513   fi
23514 done
23515   done
23516 IFS=$as_save_IFS
23517
23518   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
23519   ;;
23520 esac
23521 fi
23522 SWIG=$ac_cv_path_SWIG
23523 if test -n "$SWIG"; then
23524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
23525 $as_echo "$SWIG" >&6; }
23526 else
23527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23528 $as_echo "no" >&6; }
23529 fi
23530
23531
23532   else
23533     if test -f "$where"; then
23534       SWIG="$where"
23535     else
23536       SWIG="$where/bin/swig"
23537     fi
23538     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
23539       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
23540     fi
23541   fi
23542
23543   if test "$SWIG" != "none"; then
23544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
23545 $as_echo_n "checking swig version... " >&6; }
23546     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
23547                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
23548     # We want the version as an integer so we can test against
23549     # which version we're using.  SWIG doesn't provide this
23550     # to us so we have to come up with it on our own.
23551     # The major is passed straight through,
23552     # the minor is zero padded to two places,
23553     # and the patch level is zero padded to three places.
23554     # e.g. 1.3.24 becomes 103024
23555     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
23556                   $SED -e 's/[^0-9\.].*$//' \
23557                       -e 's/\.\([0-9]\)$/.0\1/' \
23558                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
23559                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
23560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
23561 $as_echo "$SWIG_VERSION_RAW" >&6; }
23562     # If you change the required swig version number, don't forget to update:
23563     #   subversion/bindings/swig/INSTALL
23564     #   packages/rpm/redhat-8+/subversion.spec
23565     #   packages/rpm/redhat-7.x/subversion.spec
23566     #   packages/rpm/rhel-3/subversion.spec
23567     #   packages/rpm/rhel-4/subversion.spec
23568     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
23569       SWIG_SUITABLE=yes
23570     else
23571       SWIG_SUITABLE=no
23572       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
23573 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
23574       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
23575 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
23576     fi
23577   fi
23578
23579   SWIG_PY_COMPILE="none"
23580   SWIG_PY_LINK="none"
23581   if test "$PYTHON" != "none"; then
23582     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
23583 $as_echo "$as_me: Configuring python swig binding" >&6;}
23584
23585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
23586 $as_echo_n "checking for Python includes... " >&6; }
23587 if ${ac_cv_python_includes+:} false; then :
23588   $as_echo_n "(cached) " >&6
23589 else
23590
23591       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
23592
23593 fi
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
23595 $as_echo "$ac_cv_python_includes" >&6; }
23596     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
23597
23598     if test "$ac_cv_python_includes" = "none"; then
23599       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
23600 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
23601     fi
23602
23603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
23604 $as_echo_n "checking for compiling Python extensions... " >&6; }
23605 if ${ac_cv_python_compile+:} false; then :
23606   $as_echo_n "(cached) " >&6
23607 else
23608
23609       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
23610
23611 fi
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
23613 $as_echo "$ac_cv_python_compile" >&6; }
23614     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
23615
23616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
23617 $as_echo_n "checking for linking Python extensions... " >&6; }
23618 if ${ac_cv_python_link+:} false; then :
23619   $as_echo_n "(cached) " >&6
23620 else
23621
23622       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
23623
23624 fi
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
23626 $as_echo "$ac_cv_python_link" >&6; }
23627     SWIG_PY_LINK="$ac_cv_python_link"
23628
23629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
23630 $as_echo_n "checking for linking Python libraries... " >&6; }
23631 if ${ac_cv_python_libs+:} false; then :
23632   $as_echo_n "(cached) " >&6
23633 else
23634
23635       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
23636
23637 fi
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
23639 $as_echo "$ac_cv_python_libs" >&6; }
23640     SWIG_PY_LIBS="`
23641   input_flags="$ac_cv_python_libs"
23642   output_flags=""
23643   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23644   for flag in $input_flags; do
23645     filter="no"
23646     for dir in $filtered_dirs; do
23647       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23648         filter="yes"
23649         break
23650       fi
23651     done
23652     if test "$filter" = "no"; then
23653       output_flags="$output_flags $flag"
23654     fi
23655   done
23656   if test -n "$output_flags"; then
23657     printf "%s" "${output_flags# }"
23658   fi
23659 `"
23660
23661                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
23662     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
23663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
23664 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
23665 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
23666   $as_echo_n "(cached) " >&6
23667 else
23668
23669       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23670         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h.  */
23672 #include <apr.h>
23673                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23674 _ACEOF
23675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23676   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
23677   svn_cv_pycfmt_apr_int64_t="L"
23678 fi
23679 rm -f conftest*
23680
23681       fi
23682       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23683         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23684 /* end confdefs.h.  */
23685 r
23686                      #include <apr.h>
23687                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23688 _ACEOF
23689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23690   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
23691   svn_cv_pycfmt_apr_int64_t="l"
23692 fi
23693 rm -f conftest*
23694
23695       fi
23696       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23697         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h.  */
23699 #include <apr.h>
23700                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
23701 _ACEOF
23702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23703   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
23704   svn_cv_pycfmt_apr_int64_t="i"
23705 fi
23706 rm -f conftest*
23707
23708       fi
23709
23710 fi
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
23712 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
23713     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
23714     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
23715       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
23716     fi
23717
23718 cat >>confdefs.h <<_ACEOF
23719 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
23720 _ACEOF
23721
23722   fi
23723
23724   if test "$PERL" != "none"; then
23725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
23726 $as_echo_n "checking perl version... " >&6; }
23727             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
23728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
23729 $as_echo "$PERL_VERSION" >&6; }
23730     if test "$PERL_VERSION" -ge "5008000"; then
23731       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
23732     else
23733       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
23734 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
23735     fi
23736   fi
23737
23738   SWIG_RB_COMPILE="none"
23739   SWIG_RB_LINK="none"
23740   if test "$RUBY" != "none"; then
23741     rbconfig="$RUBY -rrbconfig -e "
23742
23743     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
23744                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
23745     do
23746       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
23747       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
23748     done
23749
23750     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
23751 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
23752
23753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
23754 $as_echo_n "checking for Ruby include path... " >&6; }
23755 if ${svn_cv_ruby_includes+:} false; then :
23756   $as_echo_n "(cached) " >&6
23757 else
23758
23759     if test -d "$rbconfig_rubyhdrdir"; then
23760             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
23761       if test -d "$rbconfig_rubyarchhdrdir"; then
23762                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
23763       else
23764         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
23765       fi
23766     else
23767             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
23768     fi
23769
23770 fi
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
23772 $as_echo "$svn_cv_ruby_includes" >&6; }
23773     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
23774
23775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
23776 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
23777 if ${svn_cv_ruby_compile+:} false; then :
23778   $as_echo_n "(cached) " >&6
23779 else
23780
23781       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
23782
23783 fi
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
23785 $as_echo "$svn_cv_ruby_compile" >&6; }
23786     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
23787
23788   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
23789
23790
23791   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
23792
23793
23794   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
23795
23796         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
23797
23798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
23799 $as_echo_n "checking how to link Ruby extensions... " >&6; }
23800 if ${svn_cv_ruby_link+:} false; then :
23801   $as_echo_n "(cached) " >&6
23802 else
23803
23804       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
23805                            $rbconfig_LDSHARED`"
23806       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
23807       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
23808
23809 fi
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
23811 $as_echo "$svn_cv_ruby_link" >&6; }
23812     SWIG_RB_LINK="$svn_cv_ruby_link"
23813
23814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
23815 $as_echo_n "checking how to link Ruby libraries... " >&6; }
23816 if ${ac_cv_ruby_libs+:} false; then :
23817   $as_echo_n "(cached) " >&6
23818 else
23819
23820       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
23821
23822 fi
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
23824 $as_echo "$ac_cv_ruby_libs" >&6; }
23825     SWIG_RB_LIBS="`
23826   input_flags="$ac_cv_ruby_libs"
23827   output_flags=""
23828   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
23829   for flag in $input_flags; do
23830     filter="no"
23831     for dir in $filtered_dirs; do
23832       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
23833         filter="yes"
23834         break
23835       fi
23836     done
23837     if test "$filter" = "no"; then
23838       output_flags="$output_flags $flag"
23839     fi
23840   done
23841   if test -n "$output_flags"; then
23842     printf "%s" "${output_flags# }"
23843   fi
23844 `"
23845
23846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
23847 $as_echo_n "checking for rb_errinfo... " >&6; }
23848     old_CFLAGS="$CFLAGS"
23849     old_LIBS="$LIBS"
23850     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
23851
23852   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
23853
23854
23855   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
23856
23857
23858   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
23859
23860     LIBS="$SWIG_RB_LIBS"
23861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23862 /* end confdefs.h.  */
23863
23864 #include <ruby.h>
23865 int main()
23866 {rb_errinfo();}
23867 _ACEOF
23868 if ac_fn_c_try_link "$LINENO"; then :
23869   have_rb_errinfo="yes"
23870 else
23871   have_rb_errinfo="no"
23872 fi
23873 rm -f core conftest.err conftest.$ac_objext \
23874     conftest$ac_exeext conftest.$ac_ext
23875     if test "$have_rb_errinfo" = "yes"; then
23876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23877 $as_echo "yes" >&6; }
23878
23879 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
23880
23881     else
23882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23883 $as_echo "no" >&6; }
23884     fi
23885     CFLAGS="$old_CFLAGS"
23886     LIBS="$old_LIBS"
23887
23888     if ${svn_cv_ruby_sitedir+:} false; then :
23889   $as_echo_n "(cached) " >&6
23890 else
23891
23892       svn_cv_ruby_sitedir="$rbconfig_sitedir"
23893
23894 fi
23895
23896
23897 # Check whether --with-ruby-sitedir was given.
23898 if test "${with_ruby_sitedir+set}" = set; then :
23899   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
23900 else
23901   svn_ruby_installdir="$svn_cv_ruby_sitedir"
23902 fi
23903
23904
23905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
23906 $as_echo_n "checking where to install Ruby scripts... " >&6; }
23907     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
23908   $as_echo_n "(cached) " >&6
23909 else
23910
23911       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
23912                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23913
23914 fi
23915
23916     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
23917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
23918 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
23919
23920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
23921 $as_echo_n "checking where to install Ruby extensions... " >&6; }
23922     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
23923   $as_echo_n "(cached) " >&6
23924 else
23925
23926       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
23927                                         $SED -e "s,^$rbconfig_sitedir,,"`"
23928
23929 fi
23930
23931     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
23932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
23933 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
23934
23935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
23936 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
23937     if ${svn_cv_ruby_test_verbose+:} false; then :
23938   $as_echo_n "(cached) " >&6
23939 else
23940
23941       svn_cv_ruby_test_verbose="normal"
23942
23943 fi
23944
23945
23946 # Check whether --with-ruby-test-verbose was given.
23947 if test "${with_ruby_test_verbose+set}" = set; then :
23948   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
23949 else
23950   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
23951 fi
23952
23953       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
23954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
23955 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
23956   fi
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971       ;;
23972       *)
23973
23974   where=$withval
23975
23976   if test $where = no; then
23977     SWIG=none
23978   elif test $where = check; then
23979     # Extract the first word of "swig", so it can be a program name with args.
23980 set dummy swig; ac_word=$2
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23982 $as_echo_n "checking for $ac_word... " >&6; }
23983 if ${ac_cv_path_SWIG+:} false; then :
23984   $as_echo_n "(cached) " >&6
23985 else
23986   case $SWIG in
23987   [\\/]* | ?:[\\/]*)
23988   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23989   ;;
23990   *)
23991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23992 for as_dir in $PATH
23993 do
23994   IFS=$as_save_IFS
23995   test -z "$as_dir" && as_dir=.
23996     for ac_exec_ext in '' $ac_executable_extensions; do
23997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23998     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24000     break 2
24001   fi
24002 done
24003   done
24004 IFS=$as_save_IFS
24005
24006   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24007   ;;
24008 esac
24009 fi
24010 SWIG=$ac_cv_path_SWIG
24011 if test -n "$SWIG"; then
24012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24013 $as_echo "$SWIG" >&6; }
24014 else
24015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24016 $as_echo "no" >&6; }
24017 fi
24018
24019
24020   else
24021     if test -f "$where"; then
24022       SWIG="$where"
24023     else
24024       SWIG="$where/bin/swig"
24025     fi
24026     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24027       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24028     fi
24029   fi
24030
24031   if test "$SWIG" != "none"; then
24032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24033 $as_echo_n "checking swig version... " >&6; }
24034     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24035                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24036     # We want the version as an integer so we can test against
24037     # which version we're using.  SWIG doesn't provide this
24038     # to us so we have to come up with it on our own.
24039     # The major is passed straight through,
24040     # the minor is zero padded to two places,
24041     # and the patch level is zero padded to three places.
24042     # e.g. 1.3.24 becomes 103024
24043     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24044                   $SED -e 's/[^0-9\.].*$//' \
24045                       -e 's/\.\([0-9]\)$/.0\1/' \
24046                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24047                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24049 $as_echo "$SWIG_VERSION_RAW" >&6; }
24050     # If you change the required swig version number, don't forget to update:
24051     #   subversion/bindings/swig/INSTALL
24052     #   packages/rpm/redhat-8+/subversion.spec
24053     #   packages/rpm/redhat-7.x/subversion.spec
24054     #   packages/rpm/rhel-3/subversion.spec
24055     #   packages/rpm/rhel-4/subversion.spec
24056     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24057       SWIG_SUITABLE=yes
24058     else
24059       SWIG_SUITABLE=no
24060       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24061 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24062       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
24063 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
24064     fi
24065   fi
24066
24067   SWIG_PY_COMPILE="none"
24068   SWIG_PY_LINK="none"
24069   if test "$PYTHON" != "none"; then
24070     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24071 $as_echo "$as_me: Configuring python swig binding" >&6;}
24072
24073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24074 $as_echo_n "checking for Python includes... " >&6; }
24075 if ${ac_cv_python_includes+:} false; then :
24076   $as_echo_n "(cached) " >&6
24077 else
24078
24079       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24080
24081 fi
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24083 $as_echo "$ac_cv_python_includes" >&6; }
24084     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24085
24086     if test "$ac_cv_python_includes" = "none"; then
24087       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24088 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24089     fi
24090
24091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24092 $as_echo_n "checking for compiling Python extensions... " >&6; }
24093 if ${ac_cv_python_compile+:} false; then :
24094   $as_echo_n "(cached) " >&6
24095 else
24096
24097       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24098
24099 fi
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24101 $as_echo "$ac_cv_python_compile" >&6; }
24102     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24103
24104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24105 $as_echo_n "checking for linking Python extensions... " >&6; }
24106 if ${ac_cv_python_link+:} false; then :
24107   $as_echo_n "(cached) " >&6
24108 else
24109
24110       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24111
24112 fi
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24114 $as_echo "$ac_cv_python_link" >&6; }
24115     SWIG_PY_LINK="$ac_cv_python_link"
24116
24117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24118 $as_echo_n "checking for linking Python libraries... " >&6; }
24119 if ${ac_cv_python_libs+:} false; then :
24120   $as_echo_n "(cached) " >&6
24121 else
24122
24123       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24124
24125 fi
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24127 $as_echo "$ac_cv_python_libs" >&6; }
24128     SWIG_PY_LIBS="`
24129   input_flags="$ac_cv_python_libs"
24130   output_flags=""
24131   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24132   for flag in $input_flags; do
24133     filter="no"
24134     for dir in $filtered_dirs; do
24135       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24136         filter="yes"
24137         break
24138       fi
24139     done
24140     if test "$filter" = "no"; then
24141       output_flags="$output_flags $flag"
24142     fi
24143   done
24144   if test -n "$output_flags"; then
24145     printf "%s" "${output_flags# }"
24146   fi
24147 `"
24148
24149                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24150     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24152 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24153 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24154   $as_echo_n "(cached) " >&6
24155 else
24156
24157       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24158         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24159 /* end confdefs.h.  */
24160 #include <apr.h>
24161                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24162 _ACEOF
24163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24164   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24165   svn_cv_pycfmt_apr_int64_t="L"
24166 fi
24167 rm -f conftest*
24168
24169       fi
24170       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24171         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h.  */
24173 r
24174                      #include <apr.h>
24175                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24176 _ACEOF
24177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24178   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24179   svn_cv_pycfmt_apr_int64_t="l"
24180 fi
24181 rm -f conftest*
24182
24183       fi
24184       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24185         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24186 /* end confdefs.h.  */
24187 #include <apr.h>
24188                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24189 _ACEOF
24190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24191   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24192   svn_cv_pycfmt_apr_int64_t="i"
24193 fi
24194 rm -f conftest*
24195
24196       fi
24197
24198 fi
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24200 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24201     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24202     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24203       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24204     fi
24205
24206 cat >>confdefs.h <<_ACEOF
24207 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24208 _ACEOF
24209
24210   fi
24211
24212   if test "$PERL" != "none"; then
24213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24214 $as_echo_n "checking perl version... " >&6; }
24215             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24217 $as_echo "$PERL_VERSION" >&6; }
24218     if test "$PERL_VERSION" -ge "5008000"; then
24219       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24220     else
24221       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24222 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24223     fi
24224   fi
24225
24226   SWIG_RB_COMPILE="none"
24227   SWIG_RB_LINK="none"
24228   if test "$RUBY" != "none"; then
24229     rbconfig="$RUBY -rrbconfig -e "
24230
24231     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24232                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24233     do
24234       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24235       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24236     done
24237
24238     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24239 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24240
24241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24242 $as_echo_n "checking for Ruby include path... " >&6; }
24243 if ${svn_cv_ruby_includes+:} false; then :
24244   $as_echo_n "(cached) " >&6
24245 else
24246
24247     if test -d "$rbconfig_rubyhdrdir"; then
24248             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
24249       if test -d "$rbconfig_rubyarchhdrdir"; then
24250                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24251       else
24252         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24253       fi
24254     else
24255             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24256     fi
24257
24258 fi
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24260 $as_echo "$svn_cv_ruby_includes" >&6; }
24261     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24262
24263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24264 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24265 if ${svn_cv_ruby_compile+:} false; then :
24266   $as_echo_n "(cached) " >&6
24267 else
24268
24269       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24270
24271 fi
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24273 $as_echo "$svn_cv_ruby_compile" >&6; }
24274     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24275
24276   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24277
24278
24279   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24280
24281
24282   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24283
24284         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24285
24286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24287 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24288 if ${svn_cv_ruby_link+:} false; then :
24289   $as_echo_n "(cached) " >&6
24290 else
24291
24292       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24293                            $rbconfig_LDSHARED`"
24294       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24295       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24296
24297 fi
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24299 $as_echo "$svn_cv_ruby_link" >&6; }
24300     SWIG_RB_LINK="$svn_cv_ruby_link"
24301
24302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24303 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24304 if ${ac_cv_ruby_libs+:} false; then :
24305   $as_echo_n "(cached) " >&6
24306 else
24307
24308       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24309
24310 fi
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24312 $as_echo "$ac_cv_ruby_libs" >&6; }
24313     SWIG_RB_LIBS="`
24314   input_flags="$ac_cv_ruby_libs"
24315   output_flags=""
24316   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24317   for flag in $input_flags; do
24318     filter="no"
24319     for dir in $filtered_dirs; do
24320       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24321         filter="yes"
24322         break
24323       fi
24324     done
24325     if test "$filter" = "no"; then
24326       output_flags="$output_flags $flag"
24327     fi
24328   done
24329   if test -n "$output_flags"; then
24330     printf "%s" "${output_flags# }"
24331   fi
24332 `"
24333
24334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24335 $as_echo_n "checking for rb_errinfo... " >&6; }
24336     old_CFLAGS="$CFLAGS"
24337     old_LIBS="$LIBS"
24338     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24339
24340   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24341
24342
24343   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24344
24345
24346   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24347
24348     LIBS="$SWIG_RB_LIBS"
24349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h.  */
24351
24352 #include <ruby.h>
24353 int main()
24354 {rb_errinfo();}
24355 _ACEOF
24356 if ac_fn_c_try_link "$LINENO"; then :
24357   have_rb_errinfo="yes"
24358 else
24359   have_rb_errinfo="no"
24360 fi
24361 rm -f core conftest.err conftest.$ac_objext \
24362     conftest$ac_exeext conftest.$ac_ext
24363     if test "$have_rb_errinfo" = "yes"; then
24364       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24365 $as_echo "yes" >&6; }
24366
24367 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24368
24369     else
24370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24371 $as_echo "no" >&6; }
24372     fi
24373     CFLAGS="$old_CFLAGS"
24374     LIBS="$old_LIBS"
24375
24376     if ${svn_cv_ruby_sitedir+:} false; then :
24377   $as_echo_n "(cached) " >&6
24378 else
24379
24380       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24381
24382 fi
24383
24384
24385 # Check whether --with-ruby-sitedir was given.
24386 if test "${with_ruby_sitedir+set}" = set; then :
24387   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24388 else
24389   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24390 fi
24391
24392
24393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24394 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24395     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24396   $as_echo_n "(cached) " >&6
24397 else
24398
24399       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24400                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24401
24402 fi
24403
24404     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24406 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24407
24408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24409 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24410     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24411   $as_echo_n "(cached) " >&6
24412 else
24413
24414       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24415                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24416
24417 fi
24418
24419     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24421 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24422
24423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24424 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24425     if ${svn_cv_ruby_test_verbose+:} false; then :
24426   $as_echo_n "(cached) " >&6
24427 else
24428
24429       svn_cv_ruby_test_verbose="normal"
24430
24431 fi
24432
24433
24434 # Check whether --with-ruby-test-verbose was given.
24435 if test "${with_ruby_test_verbose+set}" = set; then :
24436   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24437 else
24438   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24439 fi
24440
24441       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24442       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24443 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24444   fi
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459       ;;
24460     esac
24461
24462 else
24463
24464
24465   where=check
24466
24467   if test $where = no; then
24468     SWIG=none
24469   elif test $where = check; then
24470     # Extract the first word of "swig", so it can be a program name with args.
24471 set dummy swig; ac_word=$2
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24473 $as_echo_n "checking for $ac_word... " >&6; }
24474 if ${ac_cv_path_SWIG+:} false; then :
24475   $as_echo_n "(cached) " >&6
24476 else
24477   case $SWIG in
24478   [\\/]* | ?:[\\/]*)
24479   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
24480   ;;
24481   *)
24482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24483 for as_dir in $PATH
24484 do
24485   IFS=$as_save_IFS
24486   test -z "$as_dir" && as_dir=.
24487     for ac_exec_ext in '' $ac_executable_extensions; do
24488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24489     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
24490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24491     break 2
24492   fi
24493 done
24494   done
24495 IFS=$as_save_IFS
24496
24497   test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none"
24498   ;;
24499 esac
24500 fi
24501 SWIG=$ac_cv_path_SWIG
24502 if test -n "$SWIG"; then
24503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
24504 $as_echo "$SWIG" >&6; }
24505 else
24506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24507 $as_echo "no" >&6; }
24508 fi
24509
24510
24511   else
24512     if test -f "$where"; then
24513       SWIG="$where"
24514     else
24515       SWIG="$where/bin/swig"
24516     fi
24517     if test ! -f "$SWIG" || test ! -x "$SWIG"; then
24518       as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5
24519     fi
24520   fi
24521
24522   if test "$SWIG" != "none"; then
24523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5
24524 $as_echo_n "checking swig version... " >&6; }
24525     SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \
24526                        $SED -ne 's/^.*Version \(.*\)$/\1/p'`"
24527     # We want the version as an integer so we can test against
24528     # which version we're using.  SWIG doesn't provide this
24529     # to us so we have to come up with it on our own.
24530     # The major is passed straight through,
24531     # the minor is zero padded to two places,
24532     # and the patch level is zero padded to three places.
24533     # e.g. 1.3.24 becomes 103024
24534     SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \
24535                   $SED -e 's/[^0-9\.].*$//' \
24536                       -e 's/\.\([0-9]\)$/.0\1/' \
24537                       -e 's/\.\([0-9][0-9]\)$/.0\1/' \
24538                       -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`"
24539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5
24540 $as_echo "$SWIG_VERSION_RAW" >&6; }
24541     # If you change the required swig version number, don't forget to update:
24542     #   subversion/bindings/swig/INSTALL
24543     #   packages/rpm/redhat-8+/subversion.spec
24544     #   packages/rpm/redhat-7.x/subversion.spec
24545     #   packages/rpm/rhel-3/subversion.spec
24546     #   packages/rpm/rhel-4/subversion.spec
24547     if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then
24548       SWIG_SUITABLE=yes
24549     else
24550       SWIG_SUITABLE=no
24551       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5
24552 $as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;}
24553       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5
24554 $as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;}
24555     fi
24556   fi
24557
24558   SWIG_PY_COMPILE="none"
24559   SWIG_PY_LINK="none"
24560   if test "$PYTHON" != "none"; then
24561     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5
24562 $as_echo "$as_me: Configuring python swig binding" >&6;}
24563
24564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
24565 $as_echo_n "checking for Python includes... " >&6; }
24566 if ${ac_cv_python_includes+:} false; then :
24567   $as_echo_n "(cached) " >&6
24568 else
24569
24570       ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`"
24571
24572 fi
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5
24574 $as_echo "$ac_cv_python_includes" >&6; }
24575     SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes"
24576
24577     if test "$ac_cv_python_includes" = "none"; then
24578       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5
24579 $as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;}
24580     fi
24581
24582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5
24583 $as_echo_n "checking for compiling Python extensions... " >&6; }
24584 if ${ac_cv_python_compile+:} false; then :
24585   $as_echo_n "(cached) " >&6
24586 else
24587
24588       ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`"
24589
24590 fi
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5
24592 $as_echo "$ac_cv_python_compile" >&6; }
24593     SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS"
24594
24595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5
24596 $as_echo_n "checking for linking Python extensions... " >&6; }
24597 if ${ac_cv_python_link+:} false; then :
24598   $as_echo_n "(cached) " >&6
24599 else
24600
24601       ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`"
24602
24603 fi
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5
24605 $as_echo "$ac_cv_python_link" >&6; }
24606     SWIG_PY_LINK="$ac_cv_python_link"
24607
24608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5
24609 $as_echo_n "checking for linking Python libraries... " >&6; }
24610 if ${ac_cv_python_libs+:} false; then :
24611   $as_echo_n "(cached) " >&6
24612 else
24613
24614       ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`"
24615
24616 fi
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5
24618 $as_echo "$ac_cv_python_libs" >&6; }
24619     SWIG_PY_LIBS="`
24620   input_flags="$ac_cv_python_libs"
24621   output_flags=""
24622   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24623   for flag in $input_flags; do
24624     filter="no"
24625     for dir in $filtered_dirs; do
24626       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24627         filter="yes"
24628         break
24629       fi
24630     done
24631     if test "$filter" = "no"; then
24632       output_flags="$output_flags $flag"
24633     fi
24634   done
24635   if test -n "$output_flags"; then
24636     printf "%s" "${output_flags# }"
24637   fi
24638 `"
24639
24640                 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS"
24641     CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES"
24642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5
24643 $as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; }
24644 if ${svn_cv_pycfmt_apr_int64_t+:} false; then :
24645   $as_echo_n "(cached) " >&6
24646 else
24647
24648       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24649         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24650 /* end confdefs.h.  */
24651 #include <apr.h>
24652                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24653 _ACEOF
24654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24655   $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then :
24656   svn_cv_pycfmt_apr_int64_t="L"
24657 fi
24658 rm -f conftest*
24659
24660       fi
24661       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24662         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24663 /* end confdefs.h.  */
24664 r
24665                      #include <apr.h>
24666                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24667 _ACEOF
24668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24669   $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then :
24670   svn_cv_pycfmt_apr_int64_t="l"
24671 fi
24672 rm -f conftest*
24673
24674       fi
24675       if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24676         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24677 /* end confdefs.h.  */
24678 #include <apr.h>
24679                       MaTcHtHiS APR_INT64_T_FMT EnDeNd
24680 _ACEOF
24681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24682   $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then :
24683   svn_cv_pycfmt_apr_int64_t="i"
24684 fi
24685 rm -f conftest*
24686
24687       fi
24688
24689 fi
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5
24691 $as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; }
24692     CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS"
24693     if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then
24694       as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5
24695     fi
24696
24697 cat >>confdefs.h <<_ACEOF
24698 #define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t"
24699 _ACEOF
24700
24701   fi
24702
24703   if test "$PERL" != "none"; then
24704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
24705 $as_echo_n "checking perl version... " >&6; }
24706             PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`"
24707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
24708 $as_echo "$PERL_VERSION" >&6; }
24709     if test "$PERL_VERSION" -ge "5008000"; then
24710       SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`"
24711     else
24712       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5
24713 $as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;}
24714     fi
24715   fi
24716
24717   SWIG_RB_COMPILE="none"
24718   SWIG_RB_LINK="none"
24719   if test "$RUBY" != "none"; then
24720     rbconfig="$RUBY -rrbconfig -e "
24721
24722     for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \
24723                     rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir
24724     do
24725       rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
24726       eval "rbconfig_$var_name=\"$rbconfig_tmp\""
24727     done
24728
24729     { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5
24730 $as_echo "$as_me: Configuring Ruby SWIG binding" >&6;}
24731
24732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
24733 $as_echo_n "checking for Ruby include path... " >&6; }
24734 if ${svn_cv_ruby_includes+:} false; then :
24735   $as_echo_n "(cached) " >&6
24736 else
24737
24738     if test -d "$rbconfig_rubyhdrdir"; then
24739             svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward"
24740       if test -d "$rbconfig_rubyarchhdrdir"; then
24741                 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir"
24742       else
24743         svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch"
24744       fi
24745     else
24746             svn_cv_ruby_includes="-I. -I$rbconfig_archdir"
24747     fi
24748
24749 fi
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5
24751 $as_echo "$svn_cv_ruby_includes" >&6; }
24752     SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes"
24753
24754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5
24755 $as_echo_n "checking how to compile Ruby extensions... " >&6; }
24756 if ${svn_cv_ruby_compile+:} false; then :
24757   $as_echo_n "(cached) " >&6
24758 else
24759
24760       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
24761
24762 fi
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5
24764 $as_echo "$svn_cv_ruby_compile" >&6; }
24765     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
24766
24767   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'`
24768
24769
24770   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'`
24771
24772
24773   SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'`
24774
24775         SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
24776
24777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5
24778 $as_echo_n "checking how to link Ruby extensions... " >&6; }
24779 if ${svn_cv_ruby_link+:} false; then :
24780   $as_echo_n "(cached) " >&6
24781 else
24782
24783       svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
24784                            $rbconfig_LDSHARED`"
24785       svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link"
24786       svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT"
24787
24788 fi
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5
24790 $as_echo "$svn_cv_ruby_link" >&6; }
24791     SWIG_RB_LINK="$svn_cv_ruby_link"
24792
24793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5
24794 $as_echo_n "checking how to link Ruby libraries... " >&6; }
24795 if ${ac_cv_ruby_libs+:} false; then :
24796   $as_echo_n "(cached) " >&6
24797 else
24798
24799       ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS"
24800
24801 fi
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5
24803 $as_echo "$ac_cv_ruby_libs" >&6; }
24804     SWIG_RB_LIBS="`
24805   input_flags="$ac_cv_ruby_libs"
24806   output_flags=""
24807   filtered_dirs="/lib /lib64 /usr/lib /usr/lib64"
24808   for flag in $input_flags; do
24809     filter="no"
24810     for dir in $filtered_dirs; do
24811       if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then
24812         filter="yes"
24813         break
24814       fi
24815     done
24816     if test "$filter" = "no"; then
24817       output_flags="$output_flags $flag"
24818     fi
24819   done
24820   if test -n "$output_flags"; then
24821     printf "%s" "${output_flags# }"
24822   fi
24823 `"
24824
24825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5
24826 $as_echo_n "checking for rb_errinfo... " >&6; }
24827     old_CFLAGS="$CFLAGS"
24828     old_LIBS="$LIBS"
24829     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
24830
24831   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'`
24832
24833
24834   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'`
24835
24836
24837   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'`
24838
24839     LIBS="$SWIG_RB_LIBS"
24840     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24841 /* end confdefs.h.  */
24842
24843 #include <ruby.h>
24844 int main()
24845 {rb_errinfo();}
24846 _ACEOF
24847 if ac_fn_c_try_link "$LINENO"; then :
24848   have_rb_errinfo="yes"
24849 else
24850   have_rb_errinfo="no"
24851 fi
24852 rm -f core conftest.err conftest.$ac_objext \
24853     conftest$ac_exeext conftest.$ac_ext
24854     if test "$have_rb_errinfo" = "yes"; then
24855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24856 $as_echo "yes" >&6; }
24857
24858 $as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h
24859
24860     else
24861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24862 $as_echo "no" >&6; }
24863     fi
24864     CFLAGS="$old_CFLAGS"
24865     LIBS="$old_LIBS"
24866
24867     if ${svn_cv_ruby_sitedir+:} false; then :
24868   $as_echo_n "(cached) " >&6
24869 else
24870
24871       svn_cv_ruby_sitedir="$rbconfig_sitedir"
24872
24873 fi
24874
24875
24876 # Check whether --with-ruby-sitedir was given.
24877 if test "${with_ruby_sitedir+set}" = set; then :
24878   withval=$with_ruby_sitedir; svn_ruby_installdir="$withval"
24879 else
24880   svn_ruby_installdir="$svn_cv_ruby_sitedir"
24881 fi
24882
24883
24884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5
24885 $as_echo_n "checking where to install Ruby scripts... " >&6; }
24886     if ${svn_cv_ruby_sitedir_libsuffix+:} false; then :
24887   $as_echo_n "(cached) " >&6
24888 else
24889
24890       svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \
24891                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24892
24893 fi
24894
24895     SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}"
24896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5
24897 $as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; }
24898
24899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5
24900 $as_echo_n "checking where to install Ruby extensions... " >&6; }
24901     if ${svn_cv_ruby_sitedir_archsuffix+:} false; then :
24902   $as_echo_n "(cached) " >&6
24903 else
24904
24905       svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \
24906                                         $SED -e "s,^$rbconfig_sitedir,,"`"
24907
24908 fi
24909
24910     SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}"
24911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5
24912 $as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; }
24913
24914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5
24915 $as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; }
24916     if ${svn_cv_ruby_test_verbose+:} false; then :
24917   $as_echo_n "(cached) " >&6
24918 else
24919
24920       svn_cv_ruby_test_verbose="normal"
24921
24922 fi
24923
24924
24925 # Check whether --with-ruby-test-verbose was given.
24926 if test "${with_ruby_test_verbose+set}" = set; then :
24927   withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval"
24928 else
24929   svn_ruby_test_verbose="$svn_cv_ruby_test_verbose"
24930 fi
24931
24932       SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose"
24933       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5
24934 $as_echo "$SWIG_RB_TEST_VERBOSE" >&6; }
24935   fi
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951 fi
24952
24953
24954
24955
24956
24957 # Check whether --with-ctypesgen was given.
24958 if test "${with_ctypesgen+set}" = set; then :
24959   withval=$with_ctypesgen;
24960     case "$withval" in
24961       "no")
24962
24963   where=no
24964
24965   CTYPESGEN=none
24966
24967   if test $where = check; then
24968     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
24969 set dummy "ctypesgen.py"; ac_word=$2
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24971 $as_echo_n "checking for $ac_word... " >&6; }
24972 if ${ac_cv_path_CTYPESGEN+:} false; then :
24973   $as_echo_n "(cached) " >&6
24974 else
24975   case $CTYPESGEN in
24976   [\\/]* | ?:[\\/]*)
24977   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
24978   ;;
24979   *)
24980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24981 for as_dir in $PATH
24982 do
24983   IFS=$as_save_IFS
24984   test -z "$as_dir" && as_dir=.
24985     for ac_exec_ext in '' $ac_executable_extensions; do
24986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24987     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
24988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24989     break 2
24990   fi
24991 done
24992   done
24993 IFS=$as_save_IFS
24994
24995   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
24996   ;;
24997 esac
24998 fi
24999 CTYPESGEN=$ac_cv_path_CTYPESGEN
25000 if test -n "$CTYPESGEN"; then
25001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25002 $as_echo "$CTYPESGEN" >&6; }
25003 else
25004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25005 $as_echo "no" >&6; }
25006 fi
25007
25008
25009   elif test $where != no; then
25010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25011 $as_echo_n "checking for ctypesgen.py... " >&6; }
25012
25013     if test -f "$where"; then
25014       CTYPESGEN="$where"
25015     elif test -f "$where/bin/ctypesgen.py"; then
25016       CTYPESGEN="$where/bin/ctypesgen.py"
25017     else
25018       CTYPESGEN="$where/ctypesgen.py"
25019     fi
25020
25021     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25022       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25023                     $where/bin/ctypesgen.py" "$LINENO" 5
25024     else
25025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25026 $as_echo "$CTYPESGEN" >&6; }
25027     fi
25028   fi
25029
25030
25031
25032       ;;
25033       "yes")
25034
25035   where=check
25036
25037   CTYPESGEN=none
25038
25039   if test $where = check; then
25040     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25041 set dummy "ctypesgen.py"; ac_word=$2
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25043 $as_echo_n "checking for $ac_word... " >&6; }
25044 if ${ac_cv_path_CTYPESGEN+:} false; then :
25045   $as_echo_n "(cached) " >&6
25046 else
25047   case $CTYPESGEN in
25048   [\\/]* | ?:[\\/]*)
25049   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25050   ;;
25051   *)
25052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25053 for as_dir in $PATH
25054 do
25055   IFS=$as_save_IFS
25056   test -z "$as_dir" && as_dir=.
25057     for ac_exec_ext in '' $ac_executable_extensions; do
25058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25059     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25061     break 2
25062   fi
25063 done
25064   done
25065 IFS=$as_save_IFS
25066
25067   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25068   ;;
25069 esac
25070 fi
25071 CTYPESGEN=$ac_cv_path_CTYPESGEN
25072 if test -n "$CTYPESGEN"; then
25073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25074 $as_echo "$CTYPESGEN" >&6; }
25075 else
25076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25077 $as_echo "no" >&6; }
25078 fi
25079
25080
25081   elif test $where != no; then
25082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25083 $as_echo_n "checking for ctypesgen.py... " >&6; }
25084
25085     if test -f "$where"; then
25086       CTYPESGEN="$where"
25087     elif test -f "$where/bin/ctypesgen.py"; then
25088       CTYPESGEN="$where/bin/ctypesgen.py"
25089     else
25090       CTYPESGEN="$where/ctypesgen.py"
25091     fi
25092
25093     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25094       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25095                     $where/bin/ctypesgen.py" "$LINENO" 5
25096     else
25097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25098 $as_echo "$CTYPESGEN" >&6; }
25099     fi
25100   fi
25101
25102
25103
25104       ;;
25105       *)
25106
25107   where=$withval
25108
25109   CTYPESGEN=none
25110
25111   if test $where = check; then
25112     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25113 set dummy "ctypesgen.py"; ac_word=$2
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25115 $as_echo_n "checking for $ac_word... " >&6; }
25116 if ${ac_cv_path_CTYPESGEN+:} false; then :
25117   $as_echo_n "(cached) " >&6
25118 else
25119   case $CTYPESGEN in
25120   [\\/]* | ?:[\\/]*)
25121   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25122   ;;
25123   *)
25124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25125 for as_dir in $PATH
25126 do
25127   IFS=$as_save_IFS
25128   test -z "$as_dir" && as_dir=.
25129     for ac_exec_ext in '' $ac_executable_extensions; do
25130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25131     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25133     break 2
25134   fi
25135 done
25136   done
25137 IFS=$as_save_IFS
25138
25139   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25140   ;;
25141 esac
25142 fi
25143 CTYPESGEN=$ac_cv_path_CTYPESGEN
25144 if test -n "$CTYPESGEN"; then
25145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25146 $as_echo "$CTYPESGEN" >&6; }
25147 else
25148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25149 $as_echo "no" >&6; }
25150 fi
25151
25152
25153   elif test $where != no; then
25154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25155 $as_echo_n "checking for ctypesgen.py... " >&6; }
25156
25157     if test -f "$where"; then
25158       CTYPESGEN="$where"
25159     elif test -f "$where/bin/ctypesgen.py"; then
25160       CTYPESGEN="$where/bin/ctypesgen.py"
25161     else
25162       CTYPESGEN="$where/ctypesgen.py"
25163     fi
25164
25165     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25166       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25167                     $where/bin/ctypesgen.py" "$LINENO" 5
25168     else
25169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25170 $as_echo "$CTYPESGEN" >&6; }
25171     fi
25172   fi
25173
25174
25175
25176       ;;
25177     esac
25178
25179 else
25180
25181
25182   where=check
25183
25184   CTYPESGEN=none
25185
25186   if test $where = check; then
25187     # Extract the first word of ""ctypesgen.py"", so it can be a program name with args.
25188 set dummy "ctypesgen.py"; ac_word=$2
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25190 $as_echo_n "checking for $ac_word... " >&6; }
25191 if ${ac_cv_path_CTYPESGEN+:} false; then :
25192   $as_echo_n "(cached) " >&6
25193 else
25194   case $CTYPESGEN in
25195   [\\/]* | ?:[\\/]*)
25196   ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path.
25197   ;;
25198   *)
25199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25200 for as_dir in $PATH
25201 do
25202   IFS=$as_save_IFS
25203   test -z "$as_dir" && as_dir=.
25204     for ac_exec_ext in '' $ac_executable_extensions; do
25205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25206     ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext"
25207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25208     break 2
25209   fi
25210 done
25211   done
25212 IFS=$as_save_IFS
25213
25214   test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none"
25215   ;;
25216 esac
25217 fi
25218 CTYPESGEN=$ac_cv_path_CTYPESGEN
25219 if test -n "$CTYPESGEN"; then
25220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25221 $as_echo "$CTYPESGEN" >&6; }
25222 else
25223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25224 $as_echo "no" >&6; }
25225 fi
25226
25227
25228   elif test $where != no; then
25229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5
25230 $as_echo_n "checking for ctypesgen.py... " >&6; }
25231
25232     if test -f "$where"; then
25233       CTYPESGEN="$where"
25234     elif test -f "$where/bin/ctypesgen.py"; then
25235       CTYPESGEN="$where/bin/ctypesgen.py"
25236     else
25237       CTYPESGEN="$where/ctypesgen.py"
25238     fi
25239
25240     if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then
25241       as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at
25242                     $where/bin/ctypesgen.py" "$LINENO" 5
25243     else
25244       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5
25245 $as_echo "$CTYPESGEN" >&6; }
25246     fi
25247   fi
25248
25249
25250
25251
25252 fi
25253
25254
25255
25256 # Check whether --enable-runtime-module-search was given.
25257 if test "${enable_runtime_module_search+set}" = set; then :
25258   enableval=$enable_runtime_module_search;
25259     if test "$enableval" = "yes"; then
25260       use_dso=yes
25261       if test "$svn_enable_shared" = "no"; then
25262         as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5
25263       fi
25264
25265 $as_echo "#define SVN_USE_DSO 1" >>confdefs.h
25266
25267     fi
25268
25269 fi
25270
25271
25272 if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then
25273
25274 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h
25275
25276   svn_ra_lib_deps="\$(RA_LOCAL_DEPS)"
25277   svn_ra_lib_install_deps="install-ramod-lib"
25278   svn_ra_lib_link="\$(RA_LOCAL_LINK)"
25279
25280
25281 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h
25282
25283   svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)"
25284   svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)"
25285
25286   if test "$svn_lib_serf" = "yes"; then
25287
25288 $as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h
25289
25290     svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)"
25291     svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib"
25292     svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)"
25293   fi
25294
25295   SVN_RA_LIB_DEPS=$svn_ra_lib_deps
25296   SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps
25297   SVN_RA_LIB_LINK=$svn_ra_lib_link
25298
25299
25300 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h
25301
25302   svn_fs_lib_deps="\$(FS_FS_DEPS)"
25303   svn_fs_lib_install_deps="install-fsmod-lib"
25304   svn_fs_lib_link="\$(FS_FS_LINK)"
25305
25306   if test "$svn_lib_berkeley_db" = "yes"; then
25307
25308 $as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h
25309
25310     svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)"
25311     svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib"
25312     svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)"
25313   fi
25314
25315   SVN_FS_LIB_DEPS=$svn_fs_lib_deps
25316   SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps
25317   SVN_FS_LIB_LINK=$svn_fs_lib_link
25318 fi
25319
25320
25321
25322
25323
25324
25325
25326
25327 # ==== JavaHL ================================================================
25328
25329 do_javahl_build=no
25330 # Check whether --enable-javahl was given.
25331 if test "${enable_javahl+set}" = set; then :
25332   enableval=$enable_javahl;  if test "$enableval" = "yes" ; then
25333         do_javahl_build="yes"
25334     fi
25335
25336 fi
25337
25338
25339 JAVAHL_OBJDIR=""
25340 INSTALL_EXTRA_JAVAHL_LIB=""
25341 FIX_JAVAHL_LIB=""
25342 JAVAHL_TESTS_TARGET=""
25343 JAVAHL_COMPAT_TESTS_TARGET=""
25344 LT_CXX_LIBADD=""
25345 if test "$do_javahl_build" = "yes"; then
25346     if test "$JDK_SUITABLE" = "no"; then
25347     as_fn_error $? "Cannot compile JavaHL without a suitable JDK.
25348                   Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5
25349   fi
25350
25351     JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs'
25352
25353   os_arch=`uname`
25354   if test "$os_arch" = "Darwin"; then
25355         INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib'
25356     FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib"
25357   fi
25358   # This segment (and the rest of r10800) is very likely unnecessary
25359   # with libtool 1.5, which automatically adds libstdc++ as a
25360   # dependency to the C++ libraries it builds.  So at some future time
25361   # when autogen.sh requires libtool 1.5 or higher, we can get rid of
25362   # it.
25363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5
25364 $as_echo_n "checking for additional flags to link C++ libraries... " >&6; }
25365   if test "x$ac_compiler_gnu" = "xyes"; then
25366     LT_CXX_LIBADD="-lstdc++"
25367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5
25368 $as_echo "$LT_CXX_LIBADD" >&6; }
25369   else
25370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
25371 $as_echo "none needed" >&6; }
25372   fi
25373 fi
25374
25375
25376
25377
25378
25379
25380 # Check whether --with-junit was given.
25381 if test "${with_junit+set}" = set; then :
25382   withval=$with_junit;
25383     if test "$withval" != "no"; then
25384       if test -n "$JAVA_CLASSPATH"; then
25385         JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH"
25386       else
25387         JAVA_CLASSPATH="$withval"
25388       fi
25389       JAVAHL_TESTS_TARGET="javahl-tests"
25390       JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests"
25391     fi
25392
25393 fi
25394
25395
25396
25397
25398
25399 # ==== Miscellaneous bits ====================================================
25400
25401 # Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler
25402 ### I think we get this flag from APR, so the fix probably belongs there
25403 if test "$CC" = "clang"; then
25404
25405   CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25406
25407 fi
25408
25409 # Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well.
25410 SWIG_CPPFLAGS="$CPPFLAGS"
25411
25412   SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'`
25413
25414
25415
25416
25417 cat >>confdefs.h <<_ACEOF
25418 #define SVN_PATH_LOCAL_SEPARATOR '/'
25419 _ACEOF
25420
25421
25422
25423 cat >>confdefs.h <<_ACEOF
25424 #define SVN_NULL_DEVICE_NAME "/dev/null"
25425 _ACEOF
25426
25427
25428 DEFAULT_FS_TYPE="fsfs"
25429
25430 cat >>confdefs.h <<_ACEOF
25431 #define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE"
25432 _ACEOF
25433
25434
25435 DEFAULT_HTTP_LIBRARY="serf"
25436
25437 cat >>confdefs.h <<_ACEOF
25438 #define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY"
25439 _ACEOF
25440
25441
25442 # BSD/OS (BSDi) needs to use a different include syntax in Makefile
25443 INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk"
25444 case "$host" in
25445   *bsdi*)
25446     # Check whether they've installed GNU make
25447     if ! make --version > /dev/null 2>&1; then
25448       # BSDi make
25449       INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\""
25450     fi
25451     ;;
25452 esac
25453
25454
25455 # ==== Detection complete - output and run config.status =====================
25456
25457 ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in"
25458
25459 ac_config_commands="$ac_config_commands svn_private_config.h.tmp"
25460
25461 ac_config_files="$ac_config_files Makefile"
25462
25463
25464
25465   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py"
25466   ac_config_files="$ac_config_files tools/backup/hot-backup.py"
25467
25468
25469   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl"
25470   ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl"
25471
25472
25473   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL"
25474   ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL"
25475
25476 if test -e packages/solaris/pkginfo.in; then
25477
25478   SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo"
25479   ac_config_files="$ac_config_files packages/solaris/pkginfo"
25480
25481 fi
25482
25483
25484 # Ensure that SWIG is checked after reconfiguration.
25485 rm -f .swig_checked
25486
25487
25488 cat >>confdefs.h <<_ACEOF
25489 #define SVN_BUILD_HOST "${host}"
25490 _ACEOF
25491
25492
25493
25494 cat >>confdefs.h <<_ACEOF
25495 #define SVN_BUILD_TARGET "${target}"
25496 _ACEOF
25497
25498
25499 cat >confcache <<\_ACEOF
25500 # This file is a shell script that caches the results of configure
25501 # tests run on this system so they can be shared between configure
25502 # scripts and configure runs, see configure's option --config-cache.
25503 # It is not useful on other systems.  If it contains results you don't
25504 # want to keep, you may remove or edit it.
25505 #
25506 # config.status only pays attention to the cache file if you give it
25507 # the --recheck option to rerun configure.
25508 #
25509 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25510 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25511 # following values.
25512
25513 _ACEOF
25514
25515 # The following way of writing the cache mishandles newlines in values,
25516 # but we know of no workaround that is simple, portable, and efficient.
25517 # So, we kill variables containing newlines.
25518 # Ultrix sh set writes to stderr and can't be redirected directly,
25519 # and sets the high bit in the cache file unless we assign to the vars.
25520 (
25521   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25522     eval ac_val=\$$ac_var
25523     case $ac_val in #(
25524     *${as_nl}*)
25525       case $ac_var in #(
25526       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25527 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25528       esac
25529       case $ac_var in #(
25530       _ | IFS | as_nl) ;; #(
25531       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25532       *) { eval $ac_var=; unset $ac_var;} ;;
25533       esac ;;
25534     esac
25535   done
25536
25537   (set) 2>&1 |
25538     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25539     *${as_nl}ac_space=\ *)
25540       # `set' does not quote correctly, so add quotes: double-quote
25541       # substitution turns \\\\ into \\, and sed turns \\ into \.
25542       sed -n \
25543         "s/'/'\\\\''/g;
25544           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25545       ;; #(
25546     *)
25547       # `set' quotes correctly as required by POSIX, so do not add quotes.
25548       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25549       ;;
25550     esac |
25551     sort
25552 ) |
25553   sed '
25554      /^ac_cv_env_/b end
25555      t clear
25556      :clear
25557      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25558      t end
25559      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25560      :end' >>confcache
25561 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25562   if test -w "$cache_file"; then
25563     if test "x$cache_file" != "x/dev/null"; then
25564       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25565 $as_echo "$as_me: updating cache $cache_file" >&6;}
25566       if test ! -f "$cache_file" || test -h "$cache_file"; then
25567         cat confcache >"$cache_file"
25568       else
25569         case $cache_file in #(
25570         */* | ?:*)
25571           mv -f confcache "$cache_file"$$ &&
25572           mv -f "$cache_file"$$ "$cache_file" ;; #(
25573         *)
25574           mv -f confcache "$cache_file" ;;
25575         esac
25576       fi
25577     fi
25578   else
25579     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25580 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25581   fi
25582 fi
25583 rm -f confcache
25584
25585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25586 # Let make expand exec_prefix.
25587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25588
25589 DEFS=-DHAVE_CONFIG_H
25590
25591 ac_libobjs=
25592 ac_ltlibobjs=
25593 U=
25594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25595   # 1. Remove the extension, and $U if already installed.
25596   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25597   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25598   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25599   #    will be set to the directory where LIBOBJS objects are built.
25600   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25601   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25602 done
25603 LIBOBJS=$ac_libobjs
25604
25605 LTLIBOBJS=$ac_ltlibobjs
25606
25607
25608
25609 : "${CONFIG_STATUS=./config.status}"
25610 ac_write_fail=0
25611 ac_clean_files_save=$ac_clean_files
25612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25614 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25615 as_write_fail=0
25616 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25617 #! $SHELL
25618 # Generated by $as_me.
25619 # Run this file to recreate the current configuration.
25620 # Compiler output produced by configure, useful for debugging
25621 # configure, is in config.log if it exists.
25622
25623 debug=false
25624 ac_cs_recheck=false
25625 ac_cs_silent=false
25626
25627 SHELL=\${CONFIG_SHELL-$SHELL}
25628 export SHELL
25629 _ASEOF
25630 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25631 ## -------------------- ##
25632 ## M4sh Initialization. ##
25633 ## -------------------- ##
25634
25635 # Be more Bourne compatible
25636 DUALCASE=1; export DUALCASE # for MKS sh
25637 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25638   emulate sh
25639   NULLCMD=:
25640   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25641   # is contrary to our usage.  Disable this feature.
25642   alias -g '${1+"$@"}'='"$@"'
25643   setopt NO_GLOB_SUBST
25644 else
25645   case `(set -o) 2>/dev/null` in #(
25646   *posix*) :
25647     set -o posix ;; #(
25648   *) :
25649      ;;
25650 esac
25651 fi
25652
25653
25654 as_nl='
25655 '
25656 export as_nl
25657 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25658 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25659 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25661 # Prefer a ksh shell builtin over an external printf program on Solaris,
25662 # but without wasting forks for bash or zsh.
25663 if test -z "$BASH_VERSION$ZSH_VERSION" \
25664     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25665   as_echo='print -r --'
25666   as_echo_n='print -rn --'
25667 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25668   as_echo='printf %s\n'
25669   as_echo_n='printf %s'
25670 else
25671   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25672     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25673     as_echo_n='/usr/ucb/echo -n'
25674   else
25675     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25676     as_echo_n_body='eval
25677       arg=$1;
25678       case $arg in #(
25679       *"$as_nl"*)
25680         expr "X$arg" : "X\\(.*\\)$as_nl";
25681         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25682       esac;
25683       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25684     '
25685     export as_echo_n_body
25686     as_echo_n='sh -c $as_echo_n_body as_echo'
25687   fi
25688   export as_echo_body
25689   as_echo='sh -c $as_echo_body as_echo'
25690 fi
25691
25692 # The user is always right.
25693 if test "${PATH_SEPARATOR+set}" != set; then
25694   PATH_SEPARATOR=:
25695   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25696     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25697       PATH_SEPARATOR=';'
25698   }
25699 fi
25700
25701
25702 # IFS
25703 # We need space, tab and new line, in precisely that order.  Quoting is
25704 # there to prevent editors from complaining about space-tab.
25705 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25706 # splitting by setting IFS to empty value.)
25707 IFS=" ""        $as_nl"
25708
25709 # Find who we are.  Look in the path if we contain no directory separator.
25710 as_myself=
25711 case $0 in #((
25712   *[\\/]* ) as_myself=$0 ;;
25713   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25714 for as_dir in $PATH
25715 do
25716   IFS=$as_save_IFS
25717   test -z "$as_dir" && as_dir=.
25718     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25719   done
25720 IFS=$as_save_IFS
25721
25722      ;;
25723 esac
25724 # We did not find ourselves, most probably we were run as `sh COMMAND'
25725 # in which case we are not to be found in the path.
25726 if test "x$as_myself" = x; then
25727   as_myself=$0
25728 fi
25729 if test ! -f "$as_myself"; then
25730   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25731   exit 1
25732 fi
25733
25734 # Unset variables that we do not need and which cause bugs (e.g. in
25735 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25736 # suppresses any "Segmentation fault" message there.  '((' could
25737 # trigger a bug in pdksh 5.2.14.
25738 for as_var in BASH_ENV ENV MAIL MAILPATH
25739 do eval test x\${$as_var+set} = xset \
25740   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25741 done
25742 PS1='$ '
25743 PS2='> '
25744 PS4='+ '
25745
25746 # NLS nuisances.
25747 LC_ALL=C
25748 export LC_ALL
25749 LANGUAGE=C
25750 export LANGUAGE
25751
25752 # CDPATH.
25753 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25754
25755
25756 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25757 # ----------------------------------------
25758 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25759 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25760 # script with STATUS, using 1 if that was 0.
25761 as_fn_error ()
25762 {
25763   as_status=$1; test $as_status -eq 0 && as_status=1
25764   if test "$4"; then
25765     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25766     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25767   fi
25768   $as_echo "$as_me: error: $2" >&2
25769   as_fn_exit $as_status
25770 } # as_fn_error
25771
25772
25773 # as_fn_set_status STATUS
25774 # -----------------------
25775 # Set $? to STATUS, without forking.
25776 as_fn_set_status ()
25777 {
25778   return $1
25779 } # as_fn_set_status
25780
25781 # as_fn_exit STATUS
25782 # -----------------
25783 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25784 as_fn_exit ()
25785 {
25786   set +e
25787   as_fn_set_status $1
25788   exit $1
25789 } # as_fn_exit
25790
25791 # as_fn_unset VAR
25792 # ---------------
25793 # Portably unset VAR.
25794 as_fn_unset ()
25795 {
25796   { eval $1=; unset $1;}
25797 }
25798 as_unset=as_fn_unset
25799 # as_fn_append VAR VALUE
25800 # ----------------------
25801 # Append the text in VALUE to the end of the definition contained in VAR. Take
25802 # advantage of any shell optimizations that allow amortized linear growth over
25803 # repeated appends, instead of the typical quadratic growth present in naive
25804 # implementations.
25805 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25806   eval 'as_fn_append ()
25807   {
25808     eval $1+=\$2
25809   }'
25810 else
25811   as_fn_append ()
25812   {
25813     eval $1=\$$1\$2
25814   }
25815 fi # as_fn_append
25816
25817 # as_fn_arith ARG...
25818 # ------------------
25819 # Perform arithmetic evaluation on the ARGs, and store the result in the
25820 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25821 # must be portable across $(()) and expr.
25822 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25823   eval 'as_fn_arith ()
25824   {
25825     as_val=$(( $* ))
25826   }'
25827 else
25828   as_fn_arith ()
25829   {
25830     as_val=`expr "$@" || test $? -eq 1`
25831   }
25832 fi # as_fn_arith
25833
25834
25835 if expr a : '\(a\)' >/dev/null 2>&1 &&
25836    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25837   as_expr=expr
25838 else
25839   as_expr=false
25840 fi
25841
25842 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25843   as_basename=basename
25844 else
25845   as_basename=false
25846 fi
25847
25848 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25849   as_dirname=dirname
25850 else
25851   as_dirname=false
25852 fi
25853
25854 as_me=`$as_basename -- "$0" ||
25855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25856          X"$0" : 'X\(//\)$' \| \
25857          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25858 $as_echo X/"$0" |
25859     sed '/^.*\/\([^/][^/]*\)\/*$/{
25860             s//\1/
25861             q
25862           }
25863           /^X\/\(\/\/\)$/{
25864             s//\1/
25865             q
25866           }
25867           /^X\/\(\/\).*/{
25868             s//\1/
25869             q
25870           }
25871           s/.*/./; q'`
25872
25873 # Avoid depending upon Character Ranges.
25874 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25875 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25876 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25877 as_cr_digits='0123456789'
25878 as_cr_alnum=$as_cr_Letters$as_cr_digits
25879
25880 ECHO_C= ECHO_N= ECHO_T=
25881 case `echo -n x` in #(((((
25882 -n*)
25883   case `echo 'xy\c'` in
25884   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25885   xy)  ECHO_C='\c';;
25886   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25887        ECHO_T=' ';;
25888   esac;;
25889 *)
25890   ECHO_N='-n';;
25891 esac
25892
25893 rm -f conf$$ conf$$.exe conf$$.file
25894 if test -d conf$$.dir; then
25895   rm -f conf$$.dir/conf$$.file
25896 else
25897   rm -f conf$$.dir
25898   mkdir conf$$.dir 2>/dev/null
25899 fi
25900 if (echo >conf$$.file) 2>/dev/null; then
25901   if ln -s conf$$.file conf$$ 2>/dev/null; then
25902     as_ln_s='ln -s'
25903     # ... but there are two gotchas:
25904     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25905     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25906     # In both cases, we have to default to `cp -pR'.
25907     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25908       as_ln_s='cp -pR'
25909   elif ln conf$$.file conf$$ 2>/dev/null; then
25910     as_ln_s=ln
25911   else
25912     as_ln_s='cp -pR'
25913   fi
25914 else
25915   as_ln_s='cp -pR'
25916 fi
25917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25918 rmdir conf$$.dir 2>/dev/null
25919
25920
25921 # as_fn_mkdir_p
25922 # -------------
25923 # Create "$as_dir" as a directory, including parents if necessary.
25924 as_fn_mkdir_p ()
25925 {
25926
25927   case $as_dir in #(
25928   -*) as_dir=./$as_dir;;
25929   esac
25930   test -d "$as_dir" || eval $as_mkdir_p || {
25931     as_dirs=
25932     while :; do
25933       case $as_dir in #(
25934       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25935       *) as_qdir=$as_dir;;
25936       esac
25937       as_dirs="'$as_qdir' $as_dirs"
25938       as_dir=`$as_dirname -- "$as_dir" ||
25939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25940          X"$as_dir" : 'X\(//\)[^/]' \| \
25941          X"$as_dir" : 'X\(//\)$' \| \
25942          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25943 $as_echo X"$as_dir" |
25944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25945             s//\1/
25946             q
25947           }
25948           /^X\(\/\/\)[^/].*/{
25949             s//\1/
25950             q
25951           }
25952           /^X\(\/\/\)$/{
25953             s//\1/
25954             q
25955           }
25956           /^X\(\/\).*/{
25957             s//\1/
25958             q
25959           }
25960           s/.*/./; q'`
25961       test -d "$as_dir" && break
25962     done
25963     test -z "$as_dirs" || eval "mkdir $as_dirs"
25964   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25965
25966
25967 } # as_fn_mkdir_p
25968 if mkdir -p . 2>/dev/null; then
25969   as_mkdir_p='mkdir -p "$as_dir"'
25970 else
25971   test -d ./-p && rmdir ./-p
25972   as_mkdir_p=false
25973 fi
25974
25975
25976 # as_fn_executable_p FILE
25977 # -----------------------
25978 # Test if FILE is an executable regular file.
25979 as_fn_executable_p ()
25980 {
25981   test -f "$1" && test -x "$1"
25982 } # as_fn_executable_p
25983 as_test_x='test -x'
25984 as_executable_p=as_fn_executable_p
25985
25986 # Sed expression to map a string onto a valid CPP name.
25987 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25988
25989 # Sed expression to map a string onto a valid variable name.
25990 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25991
25992
25993 exec 6>&1
25994 ## ----------------------------------- ##
25995 ## Main body of $CONFIG_STATUS script. ##
25996 ## ----------------------------------- ##
25997 _ASEOF
25998 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25999
26000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26001 # Save the log message, to keep $0 and so on meaningful, and to
26002 # report actual input values of CONFIG_FILES etc. instead of their
26003 # values after options handling.
26004 ac_log="
26005 This file was extended by subversion $as_me 1.8.14, which was
26006 generated by GNU Autoconf 2.69.  Invocation command line was
26007
26008   CONFIG_FILES    = $CONFIG_FILES
26009   CONFIG_HEADERS  = $CONFIG_HEADERS
26010   CONFIG_LINKS    = $CONFIG_LINKS
26011   CONFIG_COMMANDS = $CONFIG_COMMANDS
26012   $ $0 $@
26013
26014 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26015 "
26016
26017 _ACEOF
26018
26019 case $ac_config_files in *"
26020 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26021 esac
26022
26023 case $ac_config_headers in *"
26024 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26025 esac
26026
26027
26028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26029 # Files that config.status was made for.
26030 config_files="$ac_config_files"
26031 config_headers="$ac_config_headers"
26032 config_commands="$ac_config_commands"
26033
26034 _ACEOF
26035
26036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26037 ac_cs_usage="\
26038 \`$as_me' instantiates files and other configuration actions
26039 from templates according to the current configuration.  Unless the files
26040 and actions are specified as TAGs, all are instantiated by default.
26041
26042 Usage: $0 [OPTION]... [TAG]...
26043
26044   -h, --help       print this help, then exit
26045   -V, --version    print version number and configuration settings, then exit
26046       --config     print configuration, then exit
26047   -q, --quiet, --silent
26048                    do not print progress messages
26049   -d, --debug      don't remove temporary files
26050       --recheck    update $as_me by reconfiguring in the same conditions
26051       --file=FILE[:TEMPLATE]
26052                    instantiate the configuration file FILE
26053       --header=FILE[:TEMPLATE]
26054                    instantiate the configuration header FILE
26055
26056 Configuration files:
26057 $config_files
26058
26059 Configuration headers:
26060 $config_headers
26061
26062 Configuration commands:
26063 $config_commands
26064
26065 Report bugs to <http://subversion.apache.org/>."
26066
26067 _ACEOF
26068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26069 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26070 ac_cs_version="\\
26071 subversion config.status 1.8.14
26072 configured by $0, generated by GNU Autoconf 2.69,
26073   with options \\"\$ac_cs_config\\"
26074
26075 Copyright (C) 2012 Free Software Foundation, Inc.
26076 This config.status script is free software; the Free Software Foundation
26077 gives unlimited permission to copy, distribute and modify it."
26078
26079 ac_pwd='$ac_pwd'
26080 srcdir='$srcdir'
26081 INSTALL='$INSTALL'
26082 AWK='$AWK'
26083 test -n "\$AWK" || AWK=awk
26084 _ACEOF
26085
26086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26087 # The default lists apply if the user does not specify any file.
26088 ac_need_defaults=:
26089 while test $# != 0
26090 do
26091   case $1 in
26092   --*=?*)
26093     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26094     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26095     ac_shift=:
26096     ;;
26097   --*=)
26098     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26099     ac_optarg=
26100     ac_shift=:
26101     ;;
26102   *)
26103     ac_option=$1
26104     ac_optarg=$2
26105     ac_shift=shift
26106     ;;
26107   esac
26108
26109   case $ac_option in
26110   # Handling of the options.
26111   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26112     ac_cs_recheck=: ;;
26113   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26114     $as_echo "$ac_cs_version"; exit ;;
26115   --config | --confi | --conf | --con | --co | --c )
26116     $as_echo "$ac_cs_config"; exit ;;
26117   --debug | --debu | --deb | --de | --d | -d )
26118     debug=: ;;
26119   --file | --fil | --fi | --f )
26120     $ac_shift
26121     case $ac_optarg in
26122     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26123     '') as_fn_error $? "missing file argument" ;;
26124     esac
26125     as_fn_append CONFIG_FILES " '$ac_optarg'"
26126     ac_need_defaults=false;;
26127   --header | --heade | --head | --hea )
26128     $ac_shift
26129     case $ac_optarg in
26130     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26131     esac
26132     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26133     ac_need_defaults=false;;
26134   --he | --h)
26135     # Conflict between --help and --header
26136     as_fn_error $? "ambiguous option: \`$1'
26137 Try \`$0 --help' for more information.";;
26138   --help | --hel | -h )
26139     $as_echo "$ac_cs_usage"; exit ;;
26140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26141   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26142     ac_cs_silent=: ;;
26143
26144   # This is an error.
26145   -*) as_fn_error $? "unrecognized option: \`$1'
26146 Try \`$0 --help' for more information." ;;
26147
26148   *) as_fn_append ac_config_targets " $1"
26149      ac_need_defaults=false ;;
26150
26151   esac
26152   shift
26153 done
26154
26155 ac_configure_extra_args=
26156
26157 if $ac_cs_silent; then
26158   exec 6>/dev/null
26159   ac_configure_extra_args="$ac_configure_extra_args --silent"
26160 fi
26161
26162 _ACEOF
26163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26164 if \$ac_cs_recheck; then
26165   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26166   shift
26167   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26168   CONFIG_SHELL='$SHELL'
26169   export CONFIG_SHELL
26170   exec "\$@"
26171 fi
26172
26173 _ACEOF
26174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26175 exec 5>>config.log
26176 {
26177   echo
26178   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26179 ## Running $as_me. ##
26180 _ASBOX
26181   $as_echo "$ac_log"
26182 } >&5
26183
26184 _ACEOF
26185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26186 #
26187 # INIT-COMMANDS
26188 #
26189
26190
26191 # The HP-UX ksh and POSIX shell print the target directory to stdout
26192 # if CDPATH is set.
26193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26194
26195 sed_quote_subst='$sed_quote_subst'
26196 double_quote_subst='$double_quote_subst'
26197 delay_variable_subst='$delay_variable_subst'
26198 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26199 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26200 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26201 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26202 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26203 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26204 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26205 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26206 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26207 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26208 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26209 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26210 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26211 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26212 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26213 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26214 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26215 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26216 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26217 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26218 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26219 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26220 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26221 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26222 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26223 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26224 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26225 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26226 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26227 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26228 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26229 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26230 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26231 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26232 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26233 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26234 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26235 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26236 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26237 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26238 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26239 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26240 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26241 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26242 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26243 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26244 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26245 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26246 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26247 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26248 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26249 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26250 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26251 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26252 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26253 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26254 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26255 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"`'
26256 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26257 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26258 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26259 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26260 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26261 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26262 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26263 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26264 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26265 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26266 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26267 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26268 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26269 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26270 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26271 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26272 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26273 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26274 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26275 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26276 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26277 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26278 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26279 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26280 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26281 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26282 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26283 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26284 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26285 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26286 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26287 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26288 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26289 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26290 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26291 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26292 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26293 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26294 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26295 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26296 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26297 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26298 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26299 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26300 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26301 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26302 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26303 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26304 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26305 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26306 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26307 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26308 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26309 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26310 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26311 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26312 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26313 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26314 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26315 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26316 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26317 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26318 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26319 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26320 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26321 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26322 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26323 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26324 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26325 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26326 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26327 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26328 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26329 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26330 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26331 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26332 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26333 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26334 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26335 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26336 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26337 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26338 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26339 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26340 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26341 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26342 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26343 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26344 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26345 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26346 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26347 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26348 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26349 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26350 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26351 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26352 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26353 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26354 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26355 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26356 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26357 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26358 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26359 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26360 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26361 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26362 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26363 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26364 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26365 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26366 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26367 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26368 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26369 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26370 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26371 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26372 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26373 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26374 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26375 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26376 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26377 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26378 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26379 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26380 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26381 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26382 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26383 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26384 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26385
26386 LTCC='$LTCC'
26387 LTCFLAGS='$LTCFLAGS'
26388 compiler='$compiler_DEFAULT'
26389
26390 # A function that is used when there is no print builtin or printf.
26391 func_fallback_echo ()
26392 {
26393   eval 'cat <<_LTECHO_EOF
26394 \$1
26395 _LTECHO_EOF'
26396 }
26397
26398 # Quote evaled strings.
26399 for var in SHELL \
26400 ECHO \
26401 PATH_SEPARATOR \
26402 SED \
26403 GREP \
26404 EGREP \
26405 FGREP \
26406 LD \
26407 NM \
26408 LN_S \
26409 lt_SP2NL \
26410 lt_NL2SP \
26411 reload_flag \
26412 OBJDUMP \
26413 deplibs_check_method \
26414 file_magic_cmd \
26415 file_magic_glob \
26416 want_nocaseglob \
26417 DLLTOOL \
26418 sharedlib_from_linklib_cmd \
26419 AR \
26420 AR_FLAGS \
26421 archiver_list_spec \
26422 STRIP \
26423 RANLIB \
26424 CC \
26425 CFLAGS \
26426 compiler \
26427 lt_cv_sys_global_symbol_pipe \
26428 lt_cv_sys_global_symbol_to_cdecl \
26429 lt_cv_sys_global_symbol_to_import \
26430 lt_cv_sys_global_symbol_to_c_name_address \
26431 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26432 lt_cv_nm_interface \
26433 nm_file_list_spec \
26434 lt_cv_truncate_bin \
26435 lt_prog_compiler_no_builtin_flag \
26436 lt_prog_compiler_pic \
26437 lt_prog_compiler_wl \
26438 lt_prog_compiler_static \
26439 lt_cv_prog_compiler_c_o \
26440 need_locks \
26441 MANIFEST_TOOL \
26442 DSYMUTIL \
26443 NMEDIT \
26444 LIPO \
26445 OTOOL \
26446 OTOOL64 \
26447 shrext_cmds \
26448 export_dynamic_flag_spec \
26449 whole_archive_flag_spec \
26450 compiler_needs_object \
26451 with_gnu_ld \
26452 allow_undefined_flag \
26453 no_undefined_flag \
26454 hardcode_libdir_flag_spec \
26455 hardcode_libdir_separator \
26456 exclude_expsyms \
26457 include_expsyms \
26458 file_list_spec \
26459 variables_saved_for_relink \
26460 libname_spec \
26461 library_names_spec \
26462 soname_spec \
26463 install_override_mode \
26464 finish_eval \
26465 old_striplib \
26466 striplib \
26467 compiler_lib_search_dirs \
26468 predep_objects \
26469 postdep_objects \
26470 predeps \
26471 postdeps \
26472 compiler_lib_search_path \
26473 LD_CXX \
26474 reload_flag_CXX \
26475 compiler_CXX \
26476 lt_prog_compiler_no_builtin_flag_CXX \
26477 lt_prog_compiler_pic_CXX \
26478 lt_prog_compiler_wl_CXX \
26479 lt_prog_compiler_static_CXX \
26480 lt_cv_prog_compiler_c_o_CXX \
26481 export_dynamic_flag_spec_CXX \
26482 whole_archive_flag_spec_CXX \
26483 compiler_needs_object_CXX \
26484 with_gnu_ld_CXX \
26485 allow_undefined_flag_CXX \
26486 no_undefined_flag_CXX \
26487 hardcode_libdir_flag_spec_CXX \
26488 hardcode_libdir_separator_CXX \
26489 exclude_expsyms_CXX \
26490 include_expsyms_CXX \
26491 file_list_spec_CXX \
26492 compiler_lib_search_dirs_CXX \
26493 predep_objects_CXX \
26494 postdep_objects_CXX \
26495 predeps_CXX \
26496 postdeps_CXX \
26497 compiler_lib_search_path_CXX; do
26498     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26499     *[\\\\\\\`\\"\\\$]*)
26500       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26501       ;;
26502     *)
26503       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26504       ;;
26505     esac
26506 done
26507
26508 # Double-quote double-evaled strings.
26509 for var in reload_cmds \
26510 old_postinstall_cmds \
26511 old_postuninstall_cmds \
26512 old_archive_cmds \
26513 extract_expsyms_cmds \
26514 old_archive_from_new_cmds \
26515 old_archive_from_expsyms_cmds \
26516 archive_cmds \
26517 archive_expsym_cmds \
26518 module_cmds \
26519 module_expsym_cmds \
26520 export_symbols_cmds \
26521 prelink_cmds \
26522 postlink_cmds \
26523 postinstall_cmds \
26524 postuninstall_cmds \
26525 finish_cmds \
26526 sys_lib_search_path_spec \
26527 sys_lib_dlsearch_path_spec \
26528 reload_cmds_CXX \
26529 old_archive_cmds_CXX \
26530 old_archive_from_new_cmds_CXX \
26531 old_archive_from_expsyms_cmds_CXX \
26532 archive_cmds_CXX \
26533 archive_expsym_cmds_CXX \
26534 module_cmds_CXX \
26535 module_expsym_cmds_CXX \
26536 export_symbols_cmds_CXX \
26537 prelink_cmds_CXX \
26538 postlink_cmds_CXX; do
26539     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26540     *[\\\\\\\`\\"\\\$]*)
26541       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26542       ;;
26543     *)
26544       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26545       ;;
26546     esac
26547 done
26548
26549 ac_aux_dir='$ac_aux_dir'
26550
26551 # See if we are running on zsh, and set the options that allow our
26552 # commands through without removal of \ escapes INIT.
26553 if test -n "\${ZSH_VERSION+set}"; then
26554    setopt NO_GLOB_SUBST
26555 fi
26556
26557
26558     PACKAGE='$PACKAGE'
26559     VERSION='$VERSION'
26560     RM='$RM'
26561     ofile='$ofile'
26562
26563
26564
26565
26566
26567 SED="$SED"
26568                     SVN_DB_HEADER="$SVN_DB_HEADER"
26569
26570 _ACEOF
26571
26572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26573
26574 # Handling of arguments.
26575 for ac_config_target in $ac_config_targets
26576 do
26577   case $ac_config_target in
26578     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26579     "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;;
26580     "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;;
26581     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26582     "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;;
26583     "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;;
26584     "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;;
26585     "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;;
26586
26587   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26588   esac
26589 done
26590
26591
26592 # If the user did not use the arguments to specify the items to instantiate,
26593 # then the envvar interface is used.  Set only those that are not.
26594 # We use the long form for the default assignment because of an extremely
26595 # bizarre bug on SunOS 4.1.3.
26596 if $ac_need_defaults; then
26597   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26598   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26599   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26600 fi
26601
26602 # Have a temporary directory for convenience.  Make it in the build tree
26603 # simply because there is no reason against having it here, and in addition,
26604 # creating and moving files from /tmp can sometimes cause problems.
26605 # Hook for its removal unless debugging.
26606 # Note that there is a small window in which the directory will not be cleaned:
26607 # after its creation but before its name has been assigned to `$tmp'.
26608 $debug ||
26609 {
26610   tmp= ac_tmp=
26611   trap 'exit_status=$?
26612   : "${ac_tmp:=$tmp}"
26613   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26614 ' 0
26615   trap 'as_fn_exit 1' 1 2 13 15
26616 }
26617 # Create a (secure) tmp directory for tmp files.
26618
26619 {
26620   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26621   test -d "$tmp"
26622 }  ||
26623 {
26624   tmp=./conf$$-$RANDOM
26625   (umask 077 && mkdir "$tmp")
26626 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26627 ac_tmp=$tmp
26628
26629 # Set up the scripts for CONFIG_FILES section.
26630 # No need to generate them if there are no CONFIG_FILES.
26631 # This happens for instance with `./config.status config.h'.
26632 if test -n "$CONFIG_FILES"; then
26633
26634
26635 ac_cr=`echo X | tr X '\015'`
26636 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26637 # But we know of no other shell where ac_cr would be empty at this
26638 # point, so we can use a bashism as a fallback.
26639 if test "x$ac_cr" = x; then
26640   eval ac_cr=\$\'\\r\'
26641 fi
26642 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26643 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26644   ac_cs_awk_cr='\\r'
26645 else
26646   ac_cs_awk_cr=$ac_cr
26647 fi
26648
26649 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26650 _ACEOF
26651
26652
26653 {
26654   echo "cat >conf$$subs.awk <<_ACEOF" &&
26655   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26656   echo "_ACEOF"
26657 } >conf$$subs.sh ||
26658   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26659 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26660 ac_delim='%!_!# '
26661 for ac_last_try in false false false false false :; do
26662   . ./conf$$subs.sh ||
26663     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26664
26665   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26666   if test $ac_delim_n = $ac_delim_num; then
26667     break
26668   elif $ac_last_try; then
26669     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26670   else
26671     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26672   fi
26673 done
26674 rm -f conf$$subs.sh
26675
26676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26677 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26678 _ACEOF
26679 sed -n '
26680 h
26681 s/^/S["/; s/!.*/"]=/
26682 p
26683 g
26684 s/^[^!]*!//
26685 :repl
26686 t repl
26687 s/'"$ac_delim"'$//
26688 t delim
26689 :nl
26690 h
26691 s/\(.\{148\}\)..*/\1/
26692 t more1
26693 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26694 p
26695 n
26696 b repl
26697 :more1
26698 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26699 p
26700 g
26701 s/.\{148\}//
26702 t nl
26703 :delim
26704 h
26705 s/\(.\{148\}\)..*/\1/
26706 t more2
26707 s/["\\]/\\&/g; s/^/"/; s/$/"/
26708 p
26709 b
26710 :more2
26711 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26712 p
26713 g
26714 s/.\{148\}//
26715 t delim
26716 ' <conf$$subs.awk | sed '
26717 /^[^""]/{
26718   N
26719   s/\n//
26720 }
26721 ' >>$CONFIG_STATUS || ac_write_fail=1
26722 rm -f conf$$subs.awk
26723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26724 _ACAWK
26725 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26726   for (key in S) S_is_set[key] = 1
26727   FS = "\a"
26728
26729 }
26730 {
26731   line = $ 0
26732   nfields = split(line, field, "@")
26733   substed = 0
26734   len = length(field[1])
26735   for (i = 2; i < nfields; i++) {
26736     key = field[i]
26737     keylen = length(key)
26738     if (S_is_set[key]) {
26739       value = S[key]
26740       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26741       len += length(value) + length(field[++i])
26742       substed = 1
26743     } else
26744       len += 1 + keylen
26745   }
26746
26747   print line
26748 }
26749
26750 _ACAWK
26751 _ACEOF
26752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26753 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26754   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26755 else
26756   cat
26757 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26758   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26759 _ACEOF
26760
26761 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26762 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26763 # trailing colons and then remove the whole line if VPATH becomes empty
26764 # (actually we leave an empty line to preserve line numbers).
26765 if test "x$srcdir" = x.; then
26766   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26767 h
26768 s///
26769 s/^/:/
26770 s/[      ]*$/:/
26771 s/:\$(srcdir):/:/g
26772 s/:\${srcdir}:/:/g
26773 s/:@srcdir@:/:/g
26774 s/^:*//
26775 s/:*$//
26776 x
26777 s/\(=[   ]*\).*/\1/
26778 G
26779 s/\n//
26780 s/^[^=]*=[       ]*$//
26781 }'
26782 fi
26783
26784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26785 fi # test -n "$CONFIG_FILES"
26786
26787 # Set up the scripts for CONFIG_HEADERS section.
26788 # No need to generate them if there are no CONFIG_HEADERS.
26789 # This happens for instance with `./config.status Makefile'.
26790 if test -n "$CONFIG_HEADERS"; then
26791 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26792 BEGIN {
26793 _ACEOF
26794
26795 # Transform confdefs.h into an awk script `defines.awk', embedded as
26796 # here-document in config.status, that substitutes the proper values into
26797 # config.h.in to produce config.h.
26798
26799 # Create a delimiter string that does not exist in confdefs.h, to ease
26800 # handling of long lines.
26801 ac_delim='%!_!# '
26802 for ac_last_try in false false :; do
26803   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26804   if test -z "$ac_tt"; then
26805     break
26806   elif $ac_last_try; then
26807     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26808   else
26809     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26810   fi
26811 done
26812
26813 # For the awk script, D is an array of macro values keyed by name,
26814 # likewise P contains macro parameters if any.  Preserve backslash
26815 # newline sequences.
26816
26817 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26818 sed -n '
26819 s/.\{148\}/&'"$ac_delim"'/g
26820 t rset
26821 :rset
26822 s/^[     ]*#[    ]*define[       ][      ]*/ /
26823 t def
26824 d
26825 :def
26826 s/\\$//
26827 t bsnl
26828 s/["\\]/\\&/g
26829 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26830 D["\1"]=" \3"/p
26831 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26832 d
26833 :bsnl
26834 s/["\\]/\\&/g
26835 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26836 D["\1"]=" \3\\\\\\n"\\/p
26837 t cont
26838 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26839 t cont
26840 d
26841 :cont
26842 n
26843 s/.\{148\}/&'"$ac_delim"'/g
26844 t clear
26845 :clear
26846 s/\\$//
26847 t bsnlc
26848 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26849 d
26850 :bsnlc
26851 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26852 b cont
26853 ' <confdefs.h | sed '
26854 s/'"$ac_delim"'/"\\\
26855 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26856
26857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26858   for (key in D) D_is_set[key] = 1
26859   FS = "\a"
26860 }
26861 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26862   line = \$ 0
26863   split(line, arg, " ")
26864   if (arg[1] == "#") {
26865     defundef = arg[2]
26866     mac1 = arg[3]
26867   } else {
26868     defundef = substr(arg[1], 2)
26869     mac1 = arg[2]
26870   }
26871   split(mac1, mac2, "(") #)
26872   macro = mac2[1]
26873   prefix = substr(line, 1, index(line, defundef) - 1)
26874   if (D_is_set[macro]) {
26875     # Preserve the white space surrounding the "#".
26876     print prefix "define", macro P[macro] D[macro]
26877     next
26878   } else {
26879     # Replace #undef with comments.  This is necessary, for example,
26880     # in the case of _POSIX_SOURCE, which is predefined and required
26881     # on some systems where configure will not decide to define it.
26882     if (defundef == "undef") {
26883       print "/*", prefix defundef, macro, "*/"
26884       next
26885     }
26886   }
26887 }
26888 { print }
26889 _ACAWK
26890 _ACEOF
26891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26892   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26893 fi # test -n "$CONFIG_HEADERS"
26894
26895
26896 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26897 shift
26898 for ac_tag
26899 do
26900   case $ac_tag in
26901   :[FHLC]) ac_mode=$ac_tag; continue;;
26902   esac
26903   case $ac_mode$ac_tag in
26904   :[FHL]*:*);;
26905   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26906   :[FH]-) ac_tag=-:-;;
26907   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26908   esac
26909   ac_save_IFS=$IFS
26910   IFS=:
26911   set x $ac_tag
26912   IFS=$ac_save_IFS
26913   shift
26914   ac_file=$1
26915   shift
26916
26917   case $ac_mode in
26918   :L) ac_source=$1;;
26919   :[FH])
26920     ac_file_inputs=
26921     for ac_f
26922     do
26923       case $ac_f in
26924       -) ac_f="$ac_tmp/stdin";;
26925       *) # Look for the file first in the build tree, then in the source tree
26926          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26927          # because $ac_f cannot contain `:'.
26928          test -f "$ac_f" ||
26929            case $ac_f in
26930            [\\/$]*) false;;
26931            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26932            esac ||
26933            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26934       esac
26935       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26936       as_fn_append ac_file_inputs " '$ac_f'"
26937     done
26938
26939     # Let's still pretend it is `configure' which instantiates (i.e., don't
26940     # use $as_me), people would be surprised to read:
26941     #    /* config.h.  Generated by config.status.  */
26942     configure_input='Generated from '`
26943           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26944         `' by configure.'
26945     if test x"$ac_file" != x-; then
26946       configure_input="$ac_file.  $configure_input"
26947       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26948 $as_echo "$as_me: creating $ac_file" >&6;}
26949     fi
26950     # Neutralize special characters interpreted by sed in replacement strings.
26951     case $configure_input in #(
26952     *\&* | *\|* | *\\* )
26953        ac_sed_conf_input=`$as_echo "$configure_input" |
26954        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26955     *) ac_sed_conf_input=$configure_input;;
26956     esac
26957
26958     case $ac_tag in
26959     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26960       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26961     esac
26962     ;;
26963   esac
26964
26965   ac_dir=`$as_dirname -- "$ac_file" ||
26966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26967          X"$ac_file" : 'X\(//\)[^/]' \| \
26968          X"$ac_file" : 'X\(//\)$' \| \
26969          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26970 $as_echo X"$ac_file" |
26971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26972             s//\1/
26973             q
26974           }
26975           /^X\(\/\/\)[^/].*/{
26976             s//\1/
26977             q
26978           }
26979           /^X\(\/\/\)$/{
26980             s//\1/
26981             q
26982           }
26983           /^X\(\/\).*/{
26984             s//\1/
26985             q
26986           }
26987           s/.*/./; q'`
26988   as_dir="$ac_dir"; as_fn_mkdir_p
26989   ac_builddir=.
26990
26991 case "$ac_dir" in
26992 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26993 *)
26994   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26995   # A ".." for each directory in $ac_dir_suffix.
26996   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26997   case $ac_top_builddir_sub in
26998   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26999   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27000   esac ;;
27001 esac
27002 ac_abs_top_builddir=$ac_pwd
27003 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27004 # for backward compatibility:
27005 ac_top_builddir=$ac_top_build_prefix
27006
27007 case $srcdir in
27008   .)  # We are building in place.
27009     ac_srcdir=.
27010     ac_top_srcdir=$ac_top_builddir_sub
27011     ac_abs_top_srcdir=$ac_pwd ;;
27012   [\\/]* | ?:[\\/]* )  # Absolute name.
27013     ac_srcdir=$srcdir$ac_dir_suffix;
27014     ac_top_srcdir=$srcdir
27015     ac_abs_top_srcdir=$srcdir ;;
27016   *) # Relative name.
27017     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27018     ac_top_srcdir=$ac_top_build_prefix$srcdir
27019     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27020 esac
27021 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27022
27023
27024   case $ac_mode in
27025   :F)
27026   #
27027   # CONFIG_FILE
27028   #
27029
27030   case $INSTALL in
27031   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27032   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27033   esac
27034 _ACEOF
27035
27036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27037 # If the template does not know about datarootdir, expand it.
27038 # FIXME: This hack should be removed a few years after 2.60.
27039 ac_datarootdir_hack=; ac_datarootdir_seen=
27040 ac_sed_dataroot='
27041 /datarootdir/ {
27042   p
27043   q
27044 }
27045 /@datadir@/p
27046 /@docdir@/p
27047 /@infodir@/p
27048 /@localedir@/p
27049 /@mandir@/p'
27050 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27051 *datarootdir*) ac_datarootdir_seen=yes;;
27052 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27053   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27054 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27055 _ACEOF
27056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27057   ac_datarootdir_hack='
27058   s&@datadir@&$datadir&g
27059   s&@docdir@&$docdir&g
27060   s&@infodir@&$infodir&g
27061   s&@localedir@&$localedir&g
27062   s&@mandir@&$mandir&g
27063   s&\\\${datarootdir}&$datarootdir&g' ;;
27064 esac
27065 _ACEOF
27066
27067 # Neutralize VPATH when `$srcdir' = `.'.
27068 # Shell code in configure.ac might set extrasub.
27069 # FIXME: do we really want to maintain this feature?
27070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27071 ac_sed_extra="$ac_vpsub
27072 $extrasub
27073 _ACEOF
27074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27075 :t
27076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27077 s|@configure_input@|$ac_sed_conf_input|;t t
27078 s&@top_builddir@&$ac_top_builddir_sub&;t t
27079 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27080 s&@srcdir@&$ac_srcdir&;t t
27081 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27082 s&@top_srcdir@&$ac_top_srcdir&;t t
27083 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27084 s&@builddir@&$ac_builddir&;t t
27085 s&@abs_builddir@&$ac_abs_builddir&;t t
27086 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27087 s&@INSTALL@&$ac_INSTALL&;t t
27088 $ac_datarootdir_hack
27089 "
27090 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27091   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27092
27093 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27094   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27095   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27096       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27097   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27098 which seems to be undefined.  Please make sure it is defined" >&5
27099 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27100 which seems to be undefined.  Please make sure it is defined" >&2;}
27101
27102   rm -f "$ac_tmp/stdin"
27103   case $ac_file in
27104   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27105   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27106   esac \
27107   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27108  ;;
27109   :H)
27110   #
27111   # CONFIG_HEADER
27112   #
27113   if test x"$ac_file" != x-; then
27114     {
27115       $as_echo "/* $configure_input  */" \
27116       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27117     } >"$ac_tmp/config.h" \
27118       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27119     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27120       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27121 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27122     else
27123       rm -f "$ac_file"
27124       mv "$ac_tmp/config.h" "$ac_file" \
27125         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27126     fi
27127   else
27128     $as_echo "/* $configure_input  */" \
27129       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27130       || as_fn_error $? "could not create -" "$LINENO" 5
27131   fi
27132  ;;
27133
27134   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27135 $as_echo "$as_me: executing $ac_file commands" >&6;}
27136  ;;
27137   esac
27138
27139
27140   case $ac_file$ac_mode in
27141     "libtool":C)
27142
27143     # See if we are running on zsh, and set the options that allow our
27144     # commands through without removal of \ escapes.
27145     if test -n "${ZSH_VERSION+set}"; then
27146       setopt NO_GLOB_SUBST
27147     fi
27148
27149     cfgfile=${ofile}T
27150     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27151     $RM "$cfgfile"
27152
27153     cat <<_LT_EOF >> "$cfgfile"
27154 #! $SHELL
27155 # Generated automatically by $as_me ($PACKAGE) $VERSION
27156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27157 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27158
27159 # Provide generalized library-building support services.
27160 # Written by Gordon Matzigkeit, 1996
27161
27162 # Copyright (C) 2014 Free Software Foundation, Inc.
27163 # This is free software; see the source for copying conditions.  There is NO
27164 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27165
27166 # GNU Libtool is free software; you can redistribute it and/or modify
27167 # it under the terms of the GNU General Public License as published by
27168 # the Free Software Foundation; either version 2 of of the License, or
27169 # (at your option) any later version.
27170 #
27171 # As a special exception to the GNU General Public License, if you
27172 # distribute this file as part of a program or library that is built
27173 # using GNU Libtool, you may include this file under the  same
27174 # distribution terms that you use for the rest of that program.
27175 #
27176 # GNU Libtool is distributed in the hope that it will be useful, but
27177 # WITHOUT ANY WARRANTY; without even the implied warranty of
27178 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27179 # GNU General Public License for more details.
27180 #
27181 # You should have received a copy of the GNU General Public License
27182 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
27183
27184
27185 # The names of the tagged configurations supported by this script.
27186 available_tags='CXX '
27187
27188 # ### BEGIN LIBTOOL CONFIG
27189
27190 # Which release of libtool.m4 was used?
27191 macro_version=$macro_version
27192 macro_revision=$macro_revision
27193
27194 # Whether or not to build shared libraries.
27195 build_libtool_libs=$enable_shared
27196
27197 # Whether or not to build static libraries.
27198 build_old_libs=$enable_static
27199
27200 # What type of objects to build.
27201 pic_mode=$pic_mode
27202
27203 # Whether or not to optimize for fast installation.
27204 fast_install=$enable_fast_install
27205
27206 # Shell to use when invoking shell scripts.
27207 SHELL=$lt_SHELL
27208
27209 # An echo program that protects backslashes.
27210 ECHO=$lt_ECHO
27211
27212 # The PATH separator for the build system.
27213 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27214
27215 # The host system.
27216 host_alias=$host_alias
27217 host=$host
27218 host_os=$host_os
27219
27220 # The build system.
27221 build_alias=$build_alias
27222 build=$build
27223 build_os=$build_os
27224
27225 # A sed program that does not truncate output.
27226 SED=$lt_SED
27227
27228 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27229 Xsed="\$SED -e 1s/^X//"
27230
27231 # A grep program that handles long lines.
27232 GREP=$lt_GREP
27233
27234 # An ERE matcher.
27235 EGREP=$lt_EGREP
27236
27237 # A literal string matcher.
27238 FGREP=$lt_FGREP
27239
27240 # A BSD- or MS-compatible name lister.
27241 NM=$lt_NM
27242
27243 # Whether we need soft or hard links.
27244 LN_S=$lt_LN_S
27245
27246 # What is the maximum length of a command?
27247 max_cmd_len=$max_cmd_len
27248
27249 # Object file suffix (normally "o").
27250 objext=$ac_objext
27251
27252 # Executable file suffix (normally "").
27253 exeext=$exeext
27254
27255 # whether the shell understands "unset".
27256 lt_unset=$lt_unset
27257
27258 # turn spaces into newlines.
27259 SP2NL=$lt_lt_SP2NL
27260
27261 # turn newlines into spaces.
27262 NL2SP=$lt_lt_NL2SP
27263
27264 # convert \$build file names to \$host format.
27265 to_host_file_cmd=$lt_cv_to_host_file_cmd
27266
27267 # convert \$build files to toolchain format.
27268 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27269
27270 # An object symbol dumper.
27271 OBJDUMP=$lt_OBJDUMP
27272
27273 # Method to check whether dependent libraries are shared objects.
27274 deplibs_check_method=$lt_deplibs_check_method
27275
27276 # Command to use when deplibs_check_method = "file_magic".
27277 file_magic_cmd=$lt_file_magic_cmd
27278
27279 # How to find potential files when deplibs_check_method = "file_magic".
27280 file_magic_glob=$lt_file_magic_glob
27281
27282 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27283 want_nocaseglob=$lt_want_nocaseglob
27284
27285 # DLL creation program.
27286 DLLTOOL=$lt_DLLTOOL
27287
27288 # Command to associate shared and link libraries.
27289 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27290
27291 # The archiver.
27292 AR=$lt_AR
27293
27294 # Flags to create an archive.
27295 AR_FLAGS=$lt_AR_FLAGS
27296
27297 # How to feed a file listing to the archiver.
27298 archiver_list_spec=$lt_archiver_list_spec
27299
27300 # A symbol stripping program.
27301 STRIP=$lt_STRIP
27302
27303 # Commands used to install an old-style archive.
27304 RANLIB=$lt_RANLIB
27305 old_postinstall_cmds=$lt_old_postinstall_cmds
27306 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27307
27308 # Whether to use a lock for old archive extraction.
27309 lock_old_archive_extraction=$lock_old_archive_extraction
27310
27311 # A C compiler.
27312 LTCC=$lt_CC
27313
27314 # LTCC compiler flags.
27315 LTCFLAGS=$lt_CFLAGS
27316
27317 # Take the output of nm and produce a listing of raw symbols and C names.
27318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27319
27320 # Transform the output of nm in a proper C declaration.
27321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27322
27323 # Transform the output of nm into a list of symbols to manually relocate.
27324 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27325
27326 # Transform the output of nm in a C name address pair.
27327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27328
27329 # Transform the output of nm in a C name address pair when lib prefix is needed.
27330 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27331
27332 # The name lister interface.
27333 nm_interface=$lt_lt_cv_nm_interface
27334
27335 # Specify filename containing input files for \$NM.
27336 nm_file_list_spec=$lt_nm_file_list_spec
27337
27338 # The root where to search for dependent libraries,and where our libraries should be installed.
27339 lt_sysroot=$lt_sysroot
27340
27341 # Command to truncate a binary pipe.
27342 lt_truncate_bin=$lt_lt_cv_truncate_bin
27343
27344 # The name of the directory that contains temporary libtool files.
27345 objdir=$objdir
27346
27347 # Used to examine libraries when file_magic_cmd begins with "file".
27348 MAGIC_CMD=$MAGIC_CMD
27349
27350 # Must we lock files when doing compilation?
27351 need_locks=$lt_need_locks
27352
27353 # Manifest tool.
27354 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27355
27356 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27357 DSYMUTIL=$lt_DSYMUTIL
27358
27359 # Tool to change global to local symbols on Mac OS X.
27360 NMEDIT=$lt_NMEDIT
27361
27362 # Tool to manipulate fat objects and archives on Mac OS X.
27363 LIPO=$lt_LIPO
27364
27365 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27366 OTOOL=$lt_OTOOL
27367
27368 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27369 OTOOL64=$lt_OTOOL64
27370
27371 # Old archive suffix (normally "a").
27372 libext=$libext
27373
27374 # Shared library suffix (normally ".so").
27375 shrext_cmds=$lt_shrext_cmds
27376
27377 # The commands to extract the exported symbol list from a shared archive.
27378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27379
27380 # Variables whose values should be saved in libtool wrapper scripts and
27381 # restored at link time.
27382 variables_saved_for_relink=$lt_variables_saved_for_relink
27383
27384 # Do we need the "lib" prefix for modules?
27385 need_lib_prefix=$need_lib_prefix
27386
27387 # Do we need a version for libraries?
27388 need_version=$need_version
27389
27390 # Library versioning type.
27391 version_type=$version_type
27392
27393 # Shared library runtime path variable.
27394 runpath_var=$runpath_var
27395
27396 # Shared library path variable.
27397 shlibpath_var=$shlibpath_var
27398
27399 # Is shlibpath searched before the hard-coded library search path?
27400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27401
27402 # Format of library name prefix.
27403 libname_spec=$lt_libname_spec
27404
27405 # List of archive names.  First name is the real one, the rest are links.
27406 # The last name is the one that the linker finds with -lNAME
27407 library_names_spec=$lt_library_names_spec
27408
27409 # The coded name of the library, if different from the real name.
27410 soname_spec=$lt_soname_spec
27411
27412 # Permission mode override for installation of shared libraries.
27413 install_override_mode=$lt_install_override_mode
27414
27415 # Command to use after installation of a shared archive.
27416 postinstall_cmds=$lt_postinstall_cmds
27417
27418 # Command to use after uninstallation of a shared archive.
27419 postuninstall_cmds=$lt_postuninstall_cmds
27420
27421 # Commands used to finish a libtool library installation in a directory.
27422 finish_cmds=$lt_finish_cmds
27423
27424 # As "finish_cmds", except a single script fragment to be evaled but
27425 # not shown.
27426 finish_eval=$lt_finish_eval
27427
27428 # Whether we should hardcode library paths into libraries.
27429 hardcode_into_libs=$hardcode_into_libs
27430
27431 # Compile-time system search path for libraries.
27432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27433
27434 # Run-time system search path for libraries.
27435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27436
27437 # Whether dlopen is supported.
27438 dlopen_support=$enable_dlopen
27439
27440 # Whether dlopen of programs is supported.
27441 dlopen_self=$enable_dlopen_self
27442
27443 # Whether dlopen of statically linked programs is supported.
27444 dlopen_self_static=$enable_dlopen_self_static
27445
27446 # Commands to strip libraries.
27447 old_striplib=$lt_old_striplib
27448 striplib=$lt_striplib
27449
27450
27451 # The linker used to build libraries.
27452 LD=$lt_LD
27453
27454 # How to create reloadable object files.
27455 reload_flag=$lt_reload_flag
27456 reload_cmds=$lt_reload_cmds
27457
27458 # Commands used to build an old-style archive.
27459 old_archive_cmds=$lt_old_archive_cmds
27460
27461 # A language specific compiler.
27462 CC=$lt_compiler
27463
27464 # Is the compiler the GNU compiler?
27465 with_gcc=$GCC
27466
27467 # Compiler flag to turn off builtin functions.
27468 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27469
27470 # Additional compiler flags for building library objects.
27471 pic_flag=$lt_lt_prog_compiler_pic
27472
27473 # How to pass a linker flag through the compiler.
27474 wl=$lt_lt_prog_compiler_wl
27475
27476 # Compiler flag to prevent dynamic linking.
27477 link_static_flag=$lt_lt_prog_compiler_static
27478
27479 # Does compiler simultaneously support -c and -o options?
27480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27481
27482 # Whether or not to add -lc for building shared libraries.
27483 build_libtool_need_lc=$archive_cmds_need_lc
27484
27485 # Whether or not to disallow shared libs when runtime libs are static.
27486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27487
27488 # Compiler flag to allow reflexive dlopens.
27489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27490
27491 # Compiler flag to generate shared objects directly from archives.
27492 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27493
27494 # Whether the compiler copes with passing no objects directly.
27495 compiler_needs_object=$lt_compiler_needs_object
27496
27497 # Create an old-style archive from a shared archive.
27498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27499
27500 # Create a temporary old-style archive to link instead of a shared archive.
27501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27502
27503 # Commands used to build a shared archive.
27504 archive_cmds=$lt_archive_cmds
27505 archive_expsym_cmds=$lt_archive_expsym_cmds
27506
27507 # Commands used to build a loadable module if different from building
27508 # a shared archive.
27509 module_cmds=$lt_module_cmds
27510 module_expsym_cmds=$lt_module_expsym_cmds
27511
27512 # Whether we are building with GNU ld or not.
27513 with_gnu_ld=$lt_with_gnu_ld
27514
27515 # Flag that allows shared libraries with undefined symbols to be built.
27516 allow_undefined_flag=$lt_allow_undefined_flag
27517
27518 # Flag that enforces no undefined symbols.
27519 no_undefined_flag=$lt_no_undefined_flag
27520
27521 # Flag to hardcode \$libdir into a binary during linking.
27522 # This must work even if \$libdir does not exist
27523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27524
27525 # Whether we need a single "-rpath" flag with a separated argument.
27526 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27527
27528 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27529 # DIR into the resulting binary.
27530 hardcode_direct=$hardcode_direct
27531
27532 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27533 # DIR into the resulting binary and the resulting library dependency is
27534 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
27535 # library is relocated.
27536 hardcode_direct_absolute=$hardcode_direct_absolute
27537
27538 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27539 # into the resulting binary.
27540 hardcode_minus_L=$hardcode_minus_L
27541
27542 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27543 # into the resulting binary.
27544 hardcode_shlibpath_var=$hardcode_shlibpath_var
27545
27546 # Set to "yes" if building a shared library automatically hardcodes DIR
27547 # into the library and all subsequent libraries and executables linked
27548 # against it.
27549 hardcode_automatic=$hardcode_automatic
27550
27551 # Set to yes if linker adds runtime paths of dependent libraries
27552 # to runtime path list.
27553 inherit_rpath=$inherit_rpath
27554
27555 # Whether libtool must link a program against all its dependency libraries.
27556 link_all_deplibs=$link_all_deplibs
27557
27558 # Set to "yes" if exported symbols are required.
27559 always_export_symbols=$always_export_symbols
27560
27561 # The commands to list exported symbols.
27562 export_symbols_cmds=$lt_export_symbols_cmds
27563
27564 # Symbols that should not be listed in the preloaded symbols.
27565 exclude_expsyms=$lt_exclude_expsyms
27566
27567 # Symbols that must always be exported.
27568 include_expsyms=$lt_include_expsyms
27569
27570 # Commands necessary for linking programs (against libraries) with templates.
27571 prelink_cmds=$lt_prelink_cmds
27572
27573 # Commands necessary for finishing linking programs.
27574 postlink_cmds=$lt_postlink_cmds
27575
27576 # Specify filename containing input files.
27577 file_list_spec=$lt_file_list_spec
27578
27579 # How to hardcode a shared library path into an executable.
27580 hardcode_action=$hardcode_action
27581
27582 # The directories searched by this compiler when creating a shared library.
27583 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27584
27585 # Dependencies to place before and after the objects being linked to
27586 # create a shared library.
27587 predep_objects=$lt_predep_objects
27588 postdep_objects=$lt_postdep_objects
27589 predeps=$lt_predeps
27590 postdeps=$lt_postdeps
27591
27592 # The library search path used internally by the compiler when linking
27593 # a shared library.
27594 compiler_lib_search_path=$lt_compiler_lib_search_path
27595
27596 # ### END LIBTOOL CONFIG
27597
27598 _LT_EOF
27599
27600   case $host_os in
27601   aix3*)
27602     cat <<\_LT_EOF >> "$cfgfile"
27603 # AIX sometimes has problems with the GCC collect2 program.  For some
27604 # reason, if we set the COLLECT_NAMES environment variable, the problems
27605 # vanish in a puff of smoke.
27606 if test set != "${COLLECT_NAMES+set}"; then
27607   COLLECT_NAMES=
27608   export COLLECT_NAMES
27609 fi
27610 _LT_EOF
27611     ;;
27612   esac
27613
27614
27615 ltmain=$ac_aux_dir/ltmain.sh
27616
27617
27618   # We use sed instead of cat because bash on DJGPP gets confused if
27619   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27620   # text mode, it properly converts lines to CR/LF.  This bash problem
27621   # is reportedly fixed, but why not run on old versions too?
27622   sed '$q' "$ltmain" >> "$cfgfile" \
27623      || (rm -f "$cfgfile"; exit 1)
27624
27625    mv -f "$cfgfile" "$ofile" ||
27626     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27627   chmod +x "$ofile"
27628
27629
27630     cat <<_LT_EOF >> "$ofile"
27631
27632 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27633
27634 # The linker used to build libraries.
27635 LD=$lt_LD_CXX
27636
27637 # How to create reloadable object files.
27638 reload_flag=$lt_reload_flag_CXX
27639 reload_cmds=$lt_reload_cmds_CXX
27640
27641 # Commands used to build an old-style archive.
27642 old_archive_cmds=$lt_old_archive_cmds_CXX
27643
27644 # A language specific compiler.
27645 CC=$lt_compiler_CXX
27646
27647 # Is the compiler the GNU compiler?
27648 with_gcc=$GCC_CXX
27649
27650 # Compiler flag to turn off builtin functions.
27651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27652
27653 # Additional compiler flags for building library objects.
27654 pic_flag=$lt_lt_prog_compiler_pic_CXX
27655
27656 # How to pass a linker flag through the compiler.
27657 wl=$lt_lt_prog_compiler_wl_CXX
27658
27659 # Compiler flag to prevent dynamic linking.
27660 link_static_flag=$lt_lt_prog_compiler_static_CXX
27661
27662 # Does compiler simultaneously support -c and -o options?
27663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27664
27665 # Whether or not to add -lc for building shared libraries.
27666 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27667
27668 # Whether or not to disallow shared libs when runtime libs are static.
27669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27670
27671 # Compiler flag to allow reflexive dlopens.
27672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27673
27674 # Compiler flag to generate shared objects directly from archives.
27675 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27676
27677 # Whether the compiler copes with passing no objects directly.
27678 compiler_needs_object=$lt_compiler_needs_object_CXX
27679
27680 # Create an old-style archive from a shared archive.
27681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27682
27683 # Create a temporary old-style archive to link instead of a shared archive.
27684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27685
27686 # Commands used to build a shared archive.
27687 archive_cmds=$lt_archive_cmds_CXX
27688 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27689
27690 # Commands used to build a loadable module if different from building
27691 # a shared archive.
27692 module_cmds=$lt_module_cmds_CXX
27693 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27694
27695 # Whether we are building with GNU ld or not.
27696 with_gnu_ld=$lt_with_gnu_ld_CXX
27697
27698 # Flag that allows shared libraries with undefined symbols to be built.
27699 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27700
27701 # Flag that enforces no undefined symbols.
27702 no_undefined_flag=$lt_no_undefined_flag_CXX
27703
27704 # Flag to hardcode \$libdir into a binary during linking.
27705 # This must work even if \$libdir does not exist
27706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27707
27708 # Whether we need a single "-rpath" flag with a separated argument.
27709 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27710
27711 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27712 # DIR into the resulting binary.
27713 hardcode_direct=$hardcode_direct_CXX
27714
27715 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27716 # DIR into the resulting binary and the resulting library dependency is
27717 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
27718 # library is relocated.
27719 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27720
27721 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27722 # into the resulting binary.
27723 hardcode_minus_L=$hardcode_minus_L_CXX
27724
27725 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27726 # into the resulting binary.
27727 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27728
27729 # Set to "yes" if building a shared library automatically hardcodes DIR
27730 # into the library and all subsequent libraries and executables linked
27731 # against it.
27732 hardcode_automatic=$hardcode_automatic_CXX
27733
27734 # Set to yes if linker adds runtime paths of dependent libraries
27735 # to runtime path list.
27736 inherit_rpath=$inherit_rpath_CXX
27737
27738 # Whether libtool must link a program against all its dependency libraries.
27739 link_all_deplibs=$link_all_deplibs_CXX
27740
27741 # Set to "yes" if exported symbols are required.
27742 always_export_symbols=$always_export_symbols_CXX
27743
27744 # The commands to list exported symbols.
27745 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27746
27747 # Symbols that should not be listed in the preloaded symbols.
27748 exclude_expsyms=$lt_exclude_expsyms_CXX
27749
27750 # Symbols that must always be exported.
27751 include_expsyms=$lt_include_expsyms_CXX
27752
27753 # Commands necessary for linking programs (against libraries) with templates.
27754 prelink_cmds=$lt_prelink_cmds_CXX
27755
27756 # Commands necessary for finishing linking programs.
27757 postlink_cmds=$lt_postlink_cmds_CXX
27758
27759 # Specify filename containing input files.
27760 file_list_spec=$lt_file_list_spec_CXX
27761
27762 # How to hardcode a shared library path into an executable.
27763 hardcode_action=$hardcode_action_CXX
27764
27765 # The directories searched by this compiler when creating a shared library.
27766 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27767
27768 # Dependencies to place before and after the objects being linked to
27769 # create a shared library.
27770 predep_objects=$lt_predep_objects_CXX
27771 postdep_objects=$lt_postdep_objects_CXX
27772 predeps=$lt_predeps_CXX
27773 postdeps=$lt_postdeps_CXX
27774
27775 # The library search path used internally by the compiler when linking
27776 # a shared library.
27777 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27778
27779 # ### END LIBTOOL TAG CONFIG: CXX
27780 _LT_EOF
27781
27782  ;;
27783     "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h;
27784                     $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new
27785                     cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf
27786                     rm -f $svn_cf.tmp.new $svn_cf.tmp ;;
27787     "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;;
27788     "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;;
27789     "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;;
27790     "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;;
27791
27792   esac
27793 done # for ac_tag
27794
27795
27796 as_fn_exit 0
27797 _ACEOF
27798 ac_clean_files=$ac_clean_files_save
27799
27800 test $ac_write_fail = 0 ||
27801   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27802
27803
27804 # configure is writing to config.log, and then calls config.status.
27805 # config.status does its own redirection, appending to config.log.
27806 # Unfortunately, on DOS this fails, as config.log is still kept open
27807 # by configure, so config.status won't be able to write to it; its
27808 # output is simply discarded.  So we exec the FD to /dev/null,
27809 # effectively closing config.log, so it can be properly (re)opened and
27810 # appended to by config.status.  When coming back to configure, we
27811 # need to make the FD available again.
27812 if test "$no_create" != yes; then
27813   ac_cs_success=:
27814   ac_config_status_args=
27815   test "$silent" = yes &&
27816     ac_config_status_args="$ac_config_status_args --quiet"
27817   exec 5>/dev/null
27818   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27819   exec 5>>config.log
27820   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27821   # would make configure fail if this is the last instruction.
27822   $ac_cs_success || as_fn_exit 1
27823 fi
27824 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27825   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27826 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27827 fi
27828
27829
27830 # ==== Print final messages to user ==========================================
27831
27832
27833 if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then
27834   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support
27835
27836
27837 Berkeley DB 6 was found, but not used.  Please re-run configure (see
27838 ./config.nice) with the '--enable-bdb6' flag to use it,
27839 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27840 to silence this warning.
27841
27842 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27843 General Public License, version 3:
27844 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27845
27846 The AGPL-3.0 licence may impose special requirements for making available
27847 source code of server-side software.  The text of the licence is:
27848 https://www.gnu.org/licenses/agpl-3.0.html
27849 http://opensource.org/licenses/AGPL-3.0
27850
27851 The Berkeley DB backend to Subversion is deprecated; see
27852 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27853
27854 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27855 technical problems or bugs.
27856 " >&5
27857 $as_echo "$as_me: WARNING: We have configured without BDB filesystem support
27858
27859
27860 Berkeley DB 6 was found, but not used.  Please re-run configure (see
27861 ./config.nice) with the '--enable-bdb6' flag to use it,
27862 or explicitly specify '--disable-bdb6' or '--without-berkeley-db'
27863 to silence this warning.
27864
27865 Please note that some versions of Berkeley DB 6+ are under the GNU Affero
27866 General Public License, version 3:
27867 https://oss.oracle.com/pipermail/bdb/2013-June/000056.html
27868
27869 The AGPL-3.0 licence may impose special requirements for making available
27870 source code of server-side software.  The text of the licence is:
27871 https://www.gnu.org/licenses/agpl-3.0.html
27872 http://opensource.org/licenses/AGPL-3.0
27873
27874 The Berkeley DB backend to Subversion is deprecated; see
27875 http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated
27876
27877 The Subversion developers have not tested Subversion with Berkeley DB 6 for
27878 technical problems or bugs.
27879 " >&2;}
27880 fi