Revert "Add no hash api"
[external/xmlsec1.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for xmlsec1 1.2.14.
4 #
5 # Report bugs to <http://www.aleksey.com/xmlsec>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
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 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: http://www.aleksey.com/xmlsec about your system,
233 $0: including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
236   fi
237   exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283   case $as_dir in #(
284   -*) as_dir=./$as_dir;;
285   esac
286   test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289       case $as_dir in #(
290       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291       *) as_qdir=$as_dir;;
292       esac
293       as_dirs="'$as_qdir' $as_dirs"
294       as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296          X"$as_dir" : 'X\(//\)[^/]' \| \
297          X"$as_dir" : 'X\(//\)$' \| \
298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
316           s/.*/./; q'`
317       test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331   eval 'as_fn_append ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348   eval 'as_fn_arith ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367   as_status=$?; test $as_status -eq 0 && as_status=1
368   if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
378   as_expr=expr
379 else
380   as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390   as_dirname=dirname
391 else
392   as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397          X"$0" : 'X\(//\)$' \| \
398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422   as_lineno_1=$LINENO as_lineno_1a=$LINENO
423   as_lineno_2=$LINENO as_lineno_2a=$LINENO
424   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427   sed -n '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
437       :loop
438       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439       t loop
440       s/-\n.*//
441     ' >$as_me.lineno &&
442   chmod +x "$as_me.lineno" ||
443     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445   # Don't try to exec as it changes $[0], causing all sort of problems
446   # (the dirname of $[0] is not the place where we might find the
447   # original and so on.  Autoconf is especially sensitive to this).
448   . "./$as_me.lineno"
449   # Exit status is that of the last command.
450   exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456   case `echo 'xy\c'` in
457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458   xy)  ECHO_C='\c';;
459   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460        ECHO_T=' ';;
461   esac;;
462 *)
463   ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468   rm -f conf$$.dir/conf$$.file
469 else
470   rm -f conf$$.dir
471   mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474   if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481       as_ln_s='cp -p'
482   elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484   else
485     as_ln_s='cp -p'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494   as_mkdir_p='mkdir -p "$as_dir"'
495 else
496   test -d ./-p && rmdir ./-p
497   as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501   as_test_x='test -x'
502 else
503   if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505   else
506     as_ls_L_option=
507   fi
508   as_test_x='
509     eval sh -c '\''
510       if test -d "$1"; then
511         test -d "$1/.";
512       else
513         case $1 in #(
514         -*)set "./$1";;
515         esac;
516         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517         ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519   '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 case X$lt_ECHO in
535 X*--fallback-echo)
536   # Remove one level of quotation (which was required for Make).
537   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538   ;;
539 esac
540
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543   # Discard the --no-reexec flag, and continue.
544   shift
545 elif test "X$1" = X--fallback-echo; then
546   # Avoid inline document here, it may be left over
547   :
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549   # Yippee, $ECHO works!
550   :
551 else
552   # Restart under the correct shell.
553   exec $SHELL "$0" --no-reexec ${1+"$@"}
554 fi
555
556 if test "X$1" = X--fallback-echo; then
557   # used as fallback echo
558   shift
559   cat <<_LT_EOF
560 $*
561 _LT_EOF
562   exit 0
563 fi
564
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569 if test -z "$lt_ECHO"; then
570   if test "X${echo_test_string+set}" != Xset; then
571     # find a string as large as possible, as long as the shell can cope with it
572     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576       then
577         break
578       fi
579     done
580   fi
581
582   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584      test "X$echo_testing_string" = "X$echo_test_string"; then
585     :
586   else
587     # The Solaris, AIX, and Digital Unix default echo programs unquote
588     # backslashes.  This makes it impossible to quote backslashes using
589     #   echo "$something" | sed 's/\\/\\\\/g'
590     #
591     # So, first we look for a working echo in the user's PATH.
592
593     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594     for dir in $PATH /usr/ucb; do
595       IFS="$lt_save_ifs"
596       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599          test "X$echo_testing_string" = "X$echo_test_string"; then
600         ECHO="$dir/echo"
601         break
602       fi
603     done
604     IFS="$lt_save_ifs"
605
606     if test "X$ECHO" = Xecho; then
607       # We didn't find a better echo, so look for alternatives.
608       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610          test "X$echo_testing_string" = "X$echo_test_string"; then
611         # This shell has a builtin print -r that does the trick.
612         ECHO='print -r'
613       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614            test "X$CONFIG_SHELL" != X/bin/ksh; then
615         # If we have ksh, try running configure again with it.
616         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617         export ORIGINAL_CONFIG_SHELL
618         CONFIG_SHELL=/bin/ksh
619         export CONFIG_SHELL
620         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621       else
622         # Try using printf.
623         ECHO='printf %s\n'
624         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626            test "X$echo_testing_string" = "X$echo_test_string"; then
627           # Cool, printf works
628           :
629         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630              test "X$echo_testing_string" = 'X\t' &&
631              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632              test "X$echo_testing_string" = "X$echo_test_string"; then
633           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634           export CONFIG_SHELL
635           SHELL="$CONFIG_SHELL"
636           export SHELL
637           ECHO="$CONFIG_SHELL $0 --fallback-echo"
638         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639              test "X$echo_testing_string" = 'X\t' &&
640              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641              test "X$echo_testing_string" = "X$echo_test_string"; then
642           ECHO="$CONFIG_SHELL $0 --fallback-echo"
643         else
644           # maybe with a smaller string...
645           prev=:
646
647           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649             then
650               break
651             fi
652             prev="$cmd"
653           done
654
655           if test "$prev" != 'sed 50q "$0"'; then
656             echo_test_string=`eval $prev`
657             export echo_test_string
658             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659           else
660             # Oops.  We lost completely, so just stick with echo.
661             ECHO=echo
662           fi
663         fi
664       fi
665     fi
666   fi
667 fi
668
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
678
679 exec 7<&0 </dev/null 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='xmlsec1'
700 PACKAGE_TARNAME='xmlsec1'
701 PACKAGE_VERSION='1.2.14'
702 PACKAGE_STRING='xmlsec1 1.2.14'
703 PACKAGE_BUGREPORT='http://www.aleksey.com/xmlsec'
704 PACKAGE_URL=''
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 #  include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 #  include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 XMLSEC_CRYPTO_PC_FILES_LIST
747 XMLSEC_CRYPTO_LIBS
748 XMLSEC_CRYPTO_CFLAGS
749 XMLSEC_CRYPTO_LIB
750 XMLSEC_CRYPTO_DISABLED_LIST
751 XMLSEC_CRYPTO_LIST
752 XMLSEC_CRYPTO
753 XMLSEC_CRYPTO_EXTRA_LDFLAGS
754 XMLSEC_EXTRA_LDFLAGS
755 XMLSEC_APP_DEFINES
756 XMLSEC_DEFINES
757 XMLSEC_LIBS
758 XMLSEC_CFLAGS
759 XMLSEC_NSS_LIBS
760 XMLSEC_NSS_CFLAGS
761 XMLSEC_GNUTLS_LIBS
762 XMLSEC_GNUTLS_CFLAGS
763 XMLSEC_OPENSSL_LIBS
764 XMLSEC_OPENSSL_CFLAGS
765 XMLSEC_LIBDIR
766 XMLSEC_CORE_LIBS
767 XMLSEC_CORE_CFLAGS
768 XMLSEC_STATIC_BINARIES
769 XMLSEC_DOCDIR
770 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING
771 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE
772 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE
773 XMLSEC_DL_LIBS
774 XMLSEC_DL_INCLUDES
775 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING
776 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE
777 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE
778 XMLSEC_NO_XKMS
779 XMLSEC_NO_XKMS_FALSE
780 XMLSEC_NO_XKMS_TRUE
781 XMLSEC_NO_XMLENC
782 XMLSEC_NO_XMLENC_FALSE
783 XMLSEC_NO_XMLENC_TRUE
784 XMLSEC_NO_XMLDSIG
785 XMLSEC_NO_XMLDSIG_FALSE
786 XMLSEC_NO_XMLDSIG_TRUE
787 XMLSEC_NO_GOST
788 XMLSEC_NO_GOST_FALSE
789 XMLSEC_NO_GOST_TRUE
790 XMLSEC_NO_AES
791 XMLSEC_NO_AES_FALSE
792 XMLSEC_NO_AES_TRUE
793 XMLSEC_NO_DES
794 XMLSEC_NO_DES_FALSE
795 XMLSEC_NO_DES_TRUE
796 XMLSEC_NO_X509
797 XMLSEC_NO_X509_FALSE
798 XMLSEC_NO_X509_TRUE
799 XMLSEC_NO_RSA
800 XMLSEC_NO_RSA_FALSE
801 XMLSEC_NO_RSA_TRUE
802 XMLSEC_NO_DSA
803 XMLSEC_NO_DSA_FALSE
804 XMLSEC_NO_DSA_TRUE
805 XMLSEC_NO_HMAC
806 XMLSEC_NO_HMAC_FALSE
807 XMLSEC_NO_HMAC_TRUE
808 XMLSEC_NO_SHA512
809 XMLSEC_NO_SHA512_FALSE
810 XMLSEC_NO_SHA512_TRUE
811 XMLSEC_NO_SHA384
812 XMLSEC_NO_SHA384_FALSE
813 XMLSEC_NO_SHA384_TRUE
814 XMLSEC_NO_SHA256
815 XMLSEC_NO_SHA256_FALSE
816 XMLSEC_NO_SHA256_TRUE
817 XMLSEC_NO_SHA224
818 XMLSEC_NO_SHA224_FALSE
819 XMLSEC_NO_SHA224_TRUE
820 XMLSEC_NO_SHA1
821 XMLSEC_NO_SHA1_FALSE
822 XMLSEC_NO_SHA1_TRUE
823 XMLSEC_NO_RIPEMD160
824 XMLSEC_NO_RIPEMD160_FALSE
825 XMLSEC_NO_RIPEMD160_TRUE
826 XMLSEC_NO_MD5
827 XMLSEC_NO_MD5_FALSE
828 XMLSEC_NO_MD5_TRUE
829 MSCRYPTO_CRYPTO_LIB
830 MSCRYPTO_LIBS
831 MSCRYPTO_CFLAGS
832 XMLSEC_NO_MSCRYPTO
833 XMLSEC_NO_MSCRYPTO_FALSE
834 XMLSEC_NO_MSCRYPTO_TRUE
835 GNUTLS_MIN_VERSION
836 GNUTLS_CRYPTO_LIB
837 XMLSEC_NO_GNUTLS
838 XMLSEC_NO_GNUTLS_FALSE
839 XMLSEC_NO_GNUTLS_TRUE
840 GNUTLS_LIBS
841 GNUTLS_CFLAGS
842 MOZILLA_MIN_VERSION
843 NSPR_MIN_VERSION
844 NSS_MIN_VERSION
845 NSS_CRYPTO_LIB
846 NSS_PACKAGE
847 NSPR_PACKAGE
848 XMLSEC_NO_NSS
849 XMLSEC_NO_NSS_FALSE
850 XMLSEC_NO_NSS_TRUE
851 NSS_LIBS
852 NSS_CFLAGS
853 OPENSSL_MIN_VERSION
854 OPENSSL_CRYPTO_LIB
855 XMLSEC_NO_OPENSSL
856 XMLSEC_NO_OPENSSL_FALSE
857 XMLSEC_NO_OPENSSL_TRUE
858 OPENSSL_LIBS
859 OPENSSL_CFLAGS
860 LIBXSLT_MIN_VERSION
861 XMLSEC_NO_LIBXSLT
862 LIBXSLT_CONFIG
863 LIBXSLT_LIBS
864 LIBXSLT_CFLAGS
865 LIBXML_MIN_VERSION
866 LIBXML_CONFIG
867 LIBXML_LIBS
868 LIBXML_CFLAGS
869 PKG_CONFIG
870 PKG_CONFIG_ENABLED
871 SHAREDLIB_HACK_FALSE
872 SHAREDLIB_HACK_TRUE
873 ANSI2KNR
874 U
875 MAN2HTML
876 HELP2MAN
877 TAR
878 MV
879 CP
880 RM
881 OTOOL64
882 OTOOL
883 LIPO
884 NMEDIT
885 DSYMUTIL
886 lt_ECHO
887 RANLIB
888 AR
889 OBJDUMP
890 LN_S
891 NM
892 ac_ct_DUMPBIN
893 DUMPBIN
894 LD
895 FGREP
896 SED
897 LIBTOOL
898 EGREP
899 GREP
900 CPP
901 am__fastdepCC_FALSE
902 am__fastdepCC_TRUE
903 CCDEPMODE
904 AMDEPBACKSLASH
905 AMDEP_FALSE
906 AMDEP_TRUE
907 am__quote
908 am__include
909 DEPDIR
910 OBJEXT
911 EXEEXT
912 ac_ct_CC
913 CPPFLAGS
914 LDFLAGS
915 CFLAGS
916 CC
917 MAINT
918 MAINTAINER_MODE_FALSE
919 MAINTAINER_MODE_TRUE
920 am__untar
921 am__tar
922 AMTAR
923 am__leading_dot
924 SET_MAKE
925 AWK
926 mkdir_p
927 MKDIR_P
928 INSTALL_STRIP_PROGRAM
929 STRIP
930 install_sh
931 MAKEINFO
932 AUTOHEADER
933 AUTOMAKE
934 AUTOCONF
935 ACLOCAL
936 VERSION
937 PACKAGE
938 CYGPATH_W
939 am__isrc
940 INSTALL_DATA
941 INSTALL_SCRIPT
942 INSTALL_PROGRAM
943 XMLSEC_VERSION_INFO
944 XMLSEC_VERSION_SUBMINOR
945 XMLSEC_VERSION_MINOR
946 XMLSEC_VERSION_MAJOR
947 XMLSEC_VERSION_SAFE
948 XMLSEC_PACKAGE
949 XMLSEC_VERSION
950 host_os
951 host_vendor
952 host_cpu
953 host
954 build_os
955 build_vendor
956 build_cpu
957 build
958 target_alias
959 host_alias
960 build_alias
961 LIBS
962 ECHO_T
963 ECHO_N
964 ECHO_C
965 DEFS
966 mandir
967 localedir
968 libdir
969 psdir
970 pdfdir
971 dvidir
972 htmldir
973 infodir
974 docdir
975 oldincludedir
976 includedir
977 localstatedir
978 sharedstatedir
979 sysconfdir
980 datadir
981 datarootdir
982 libexecdir
983 sbindir
984 bindir
985 program_transform_name
986 prefix
987 exec_prefix
988 PACKAGE_URL
989 PACKAGE_BUGREPORT
990 PACKAGE_STRING
991 PACKAGE_VERSION
992 PACKAGE_TARNAME
993 PACKAGE_NAME
994 PATH_SEPARATOR
995 SHELL'
996 ac_subst_files=''
997 ac_user_opts='
998 enable_option_checking
999 enable_maintainer_mode
1000 enable_dependency_tracking
1001 enable_shared
1002 enable_static
1003 with_pic
1004 enable_fast_install
1005 with_gnu_ld
1006 enable_libtool_lock
1007 enable_development
1008 enable_pkgconfig
1009 with_libxml
1010 with_libxml_src
1011 with_libxslt
1012 with_libxslt_src
1013 with_openssl
1014 with_nss
1015 with_nspr
1016 with_seamonkey_ver
1017 with_mozilla_ver
1018 with_gnutls
1019 enable_mscrypto
1020 enable_md5
1021 enable_ripemd160
1022 enable_sha1
1023 enable_sha224
1024 enable_sha256
1025 enable_sha384
1026 enable_sha512
1027 enable_hmac
1028 enable_dsa
1029 enable_rsa
1030 enable_x509
1031 enable_des
1032 enable_aes
1033 enable_gost
1034 enable_xmldsig
1035 enable_xmlenc
1036 enable_xkms
1037 enable_crypto_dl
1038 enable_apps_crypto_dl
1039 with_html_dir
1040 enable_skm
1041 enable_tmpl_tests
1042 enable_debuging
1043 enable_profiling
1044 enable_pedantic
1045 enable_static_linking
1046 '
1047       ac_precious_vars='build_alias
1048 host_alias
1049 target_alias
1050 CC
1051 CFLAGS
1052 LDFLAGS
1053 LIBS
1054 CPPFLAGS
1055 CPP
1056 PKG_CONFIG
1057 LIBXML_CFLAGS
1058 LIBXML_LIBS
1059 LIBXSLT_CFLAGS
1060 LIBXSLT_LIBS
1061 OPENSSL_CFLAGS
1062 OPENSSL_LIBS
1063 NSS_CFLAGS
1064 NSS_LIBS
1065 GNUTLS_CFLAGS
1066 GNUTLS_LIBS'
1067
1068
1069 # Initialize some variables set by options.
1070 ac_init_help=
1071 ac_init_version=false
1072 ac_unrecognized_opts=
1073 ac_unrecognized_sep=
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1077 exec_prefix=NONE
1078 no_create=
1079 no_recursion=
1080 prefix=NONE
1081 program_prefix=NONE
1082 program_suffix=NONE
1083 program_transform_name=s,x,x,
1084 silent=
1085 site=
1086 srcdir=
1087 verbose=
1088 x_includes=NONE
1089 x_libraries=NONE
1090
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1108 infodir='${datarootdir}/info'
1109 htmldir='${docdir}'
1110 dvidir='${docdir}'
1111 pdfdir='${docdir}'
1112 psdir='${docdir}'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1116
1117 ac_prev=
1118 ac_dashdash=
1119 for ac_option
1120 do
1121   # If the previous option needs an argument, assign it.
1122   if test -n "$ac_prev"; then
1123     eval $ac_prev=\$ac_option
1124     ac_prev=
1125     continue
1126   fi
1127
1128   case $ac_option in
1129   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1130   *)    ac_optarg=yes ;;
1131   esac
1132
1133   # Accept the important Cygnus configure options, so we can diagnose typos.
1134
1135   case $ac_dashdash$ac_option in
1136   --)
1137     ac_dashdash=yes ;;
1138
1139   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1140     ac_prev=bindir ;;
1141   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142     bindir=$ac_optarg ;;
1143
1144   -build | --build | --buil | --bui | --bu)
1145     ac_prev=build_alias ;;
1146   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147     build_alias=$ac_optarg ;;
1148
1149   -cache-file | --cache-file | --cache-fil | --cache-fi \
1150   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151     ac_prev=cache_file ;;
1152   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154     cache_file=$ac_optarg ;;
1155
1156   --config-cache | -C)
1157     cache_file=config.cache ;;
1158
1159   -datadir | --datadir | --datadi | --datad)
1160     ac_prev=datadir ;;
1161   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162     datadir=$ac_optarg ;;
1163
1164   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165   | --dataroo | --dataro | --datar)
1166     ac_prev=datarootdir ;;
1167   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169     datarootdir=$ac_optarg ;;
1170
1171   -disable-* | --disable-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error "invalid feature name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "enable_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval enable_$ac_useropt=no ;;
1186
1187   -docdir | --docdir | --docdi | --doc | --do)
1188     ac_prev=docdir ;;
1189   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1190     docdir=$ac_optarg ;;
1191
1192   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1193     ac_prev=dvidir ;;
1194   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1195     dvidir=$ac_optarg ;;
1196
1197   -enable-* | --enable-*)
1198     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201       as_fn_error "invalid feature name: $ac_useropt"
1202     ac_useropt_orig=$ac_useropt
1203     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204     case $ac_user_opts in
1205       *"
1206 "enable_$ac_useropt"
1207 "*) ;;
1208       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1209          ac_unrecognized_sep=', ';;
1210     esac
1211     eval enable_$ac_useropt=\$ac_optarg ;;
1212
1213   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1214   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1215   | --exec | --exe | --ex)
1216     ac_prev=exec_prefix ;;
1217   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1218   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1219   | --exec=* | --exe=* | --ex=*)
1220     exec_prefix=$ac_optarg ;;
1221
1222   -gas | --gas | --ga | --g)
1223     # Obsolete; use --with-gas.
1224     with_gas=yes ;;
1225
1226   -help | --help | --hel | --he | -h)
1227     ac_init_help=long ;;
1228   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1229     ac_init_help=recursive ;;
1230   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1231     ac_init_help=short ;;
1232
1233   -host | --host | --hos | --ho)
1234     ac_prev=host_alias ;;
1235   -host=* | --host=* | --hos=* | --ho=*)
1236     host_alias=$ac_optarg ;;
1237
1238   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1239     ac_prev=htmldir ;;
1240   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1241   | --ht=*)
1242     htmldir=$ac_optarg ;;
1243
1244   -includedir | --includedir | --includedi | --included | --include \
1245   | --includ | --inclu | --incl | --inc)
1246     ac_prev=includedir ;;
1247   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1248   | --includ=* | --inclu=* | --incl=* | --inc=*)
1249     includedir=$ac_optarg ;;
1250
1251   -infodir | --infodir | --infodi | --infod | --info | --inf)
1252     ac_prev=infodir ;;
1253   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1254     infodir=$ac_optarg ;;
1255
1256   -libdir | --libdir | --libdi | --libd)
1257     ac_prev=libdir ;;
1258   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1259     libdir=$ac_optarg ;;
1260
1261   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1262   | --libexe | --libex | --libe)
1263     ac_prev=libexecdir ;;
1264   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1265   | --libexe=* | --libex=* | --libe=*)
1266     libexecdir=$ac_optarg ;;
1267
1268   -localedir | --localedir | --localedi | --localed | --locale)
1269     ac_prev=localedir ;;
1270   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1271     localedir=$ac_optarg ;;
1272
1273   -localstatedir | --localstatedir | --localstatedi | --localstated \
1274   | --localstate | --localstat | --localsta | --localst | --locals)
1275     ac_prev=localstatedir ;;
1276   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1277   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1278     localstatedir=$ac_optarg ;;
1279
1280   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1281     ac_prev=mandir ;;
1282   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1283     mandir=$ac_optarg ;;
1284
1285   -nfp | --nfp | --nf)
1286     # Obsolete; use --without-fp.
1287     with_fp=no ;;
1288
1289   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1290   | --no-cr | --no-c | -n)
1291     no_create=yes ;;
1292
1293   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1294   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1295     no_recursion=yes ;;
1296
1297   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1298   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1299   | --oldin | --oldi | --old | --ol | --o)
1300     ac_prev=oldincludedir ;;
1301   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1302   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1303   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1304     oldincludedir=$ac_optarg ;;
1305
1306   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1307     ac_prev=prefix ;;
1308   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1309     prefix=$ac_optarg ;;
1310
1311   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1312   | --program-pre | --program-pr | --program-p)
1313     ac_prev=program_prefix ;;
1314   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1315   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1316     program_prefix=$ac_optarg ;;
1317
1318   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1319   | --program-suf | --program-su | --program-s)
1320     ac_prev=program_suffix ;;
1321   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1322   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1323     program_suffix=$ac_optarg ;;
1324
1325   -program-transform-name | --program-transform-name \
1326   | --program-transform-nam | --program-transform-na \
1327   | --program-transform-n | --program-transform- \
1328   | --program-transform | --program-transfor \
1329   | --program-transfo | --program-transf \
1330   | --program-trans | --program-tran \
1331   | --progr-tra | --program-tr | --program-t)
1332     ac_prev=program_transform_name ;;
1333   -program-transform-name=* | --program-transform-name=* \
1334   | --program-transform-nam=* | --program-transform-na=* \
1335   | --program-transform-n=* | --program-transform-=* \
1336   | --program-transform=* | --program-transfor=* \
1337   | --program-transfo=* | --program-transf=* \
1338   | --program-trans=* | --program-tran=* \
1339   | --progr-tra=* | --program-tr=* | --program-t=*)
1340     program_transform_name=$ac_optarg ;;
1341
1342   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1343     ac_prev=pdfdir ;;
1344   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1345     pdfdir=$ac_optarg ;;
1346
1347   -psdir | --psdir | --psdi | --psd | --ps)
1348     ac_prev=psdir ;;
1349   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1350     psdir=$ac_optarg ;;
1351
1352   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1353   | -silent | --silent | --silen | --sile | --sil)
1354     silent=yes ;;
1355
1356   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1357     ac_prev=sbindir ;;
1358   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1359   | --sbi=* | --sb=*)
1360     sbindir=$ac_optarg ;;
1361
1362   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1363   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1364   | --sharedst | --shareds | --shared | --share | --shar \
1365   | --sha | --sh)
1366     ac_prev=sharedstatedir ;;
1367   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1368   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1369   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1370   | --sha=* | --sh=*)
1371     sharedstatedir=$ac_optarg ;;
1372
1373   -site | --site | --sit)
1374     ac_prev=site ;;
1375   -site=* | --site=* | --sit=*)
1376     site=$ac_optarg ;;
1377
1378   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1379     ac_prev=srcdir ;;
1380   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1381     srcdir=$ac_optarg ;;
1382
1383   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1384   | --syscon | --sysco | --sysc | --sys | --sy)
1385     ac_prev=sysconfdir ;;
1386   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1387   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1388     sysconfdir=$ac_optarg ;;
1389
1390   -target | --target | --targe | --targ | --tar | --ta | --t)
1391     ac_prev=target_alias ;;
1392   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1393     target_alias=$ac_optarg ;;
1394
1395   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1396     verbose=yes ;;
1397
1398   -version | --version | --versio | --versi | --vers | -V)
1399     ac_init_version=: ;;
1400
1401   -with-* | --with-*)
1402     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1403     # Reject names that are not valid shell variable names.
1404     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1405       as_fn_error "invalid package name: $ac_useropt"
1406     ac_useropt_orig=$ac_useropt
1407     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1408     case $ac_user_opts in
1409       *"
1410 "with_$ac_useropt"
1411 "*) ;;
1412       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1413          ac_unrecognized_sep=', ';;
1414     esac
1415     eval with_$ac_useropt=\$ac_optarg ;;
1416
1417   -without-* | --without-*)
1418     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1419     # Reject names that are not valid shell variable names.
1420     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1421       as_fn_error "invalid package name: $ac_useropt"
1422     ac_useropt_orig=$ac_useropt
1423     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424     case $ac_user_opts in
1425       *"
1426 "with_$ac_useropt"
1427 "*) ;;
1428       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1429          ac_unrecognized_sep=', ';;
1430     esac
1431     eval with_$ac_useropt=no ;;
1432
1433   --x)
1434     # Obsolete; use --with-x.
1435     with_x=yes ;;
1436
1437   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1438   | --x-incl | --x-inc | --x-in | --x-i)
1439     ac_prev=x_includes ;;
1440   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1441   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1442     x_includes=$ac_optarg ;;
1443
1444   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1445   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1446     ac_prev=x_libraries ;;
1447   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1448   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1449     x_libraries=$ac_optarg ;;
1450
1451   -*) as_fn_error "unrecognized option: \`$ac_option'
1452 Try \`$0 --help' for more information."
1453     ;;
1454
1455   *=*)
1456     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1457     # Reject names that are not valid shell variable names.
1458     case $ac_envvar in #(
1459       '' | [0-9]* | *[!_$as_cr_alnum]* )
1460       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1461     esac
1462     eval $ac_envvar=\$ac_optarg
1463     export $ac_envvar ;;
1464
1465   *)
1466     # FIXME: should be removed in autoconf 3.0.
1467     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1468     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1469       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1470     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1471     ;;
1472
1473   esac
1474 done
1475
1476 if test -n "$ac_prev"; then
1477   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1478   as_fn_error "missing argument to $ac_option"
1479 fi
1480
1481 if test -n "$ac_unrecognized_opts"; then
1482   case $enable_option_checking in
1483     no) ;;
1484     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1485     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1486   esac
1487 fi
1488
1489 # Check all directory arguments for consistency.
1490 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1491                 datadir sysconfdir sharedstatedir localstatedir includedir \
1492                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1493                 libdir localedir mandir
1494 do
1495   eval ac_val=\$$ac_var
1496   # Remove trailing slashes.
1497   case $ac_val in
1498     */ )
1499       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1500       eval $ac_var=\$ac_val;;
1501   esac
1502   # Be sure to have absolute directory names.
1503   case $ac_val in
1504     [\\/$]* | ?:[\\/]* )  continue;;
1505     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1506   esac
1507   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1508 done
1509
1510 # There might be people who depend on the old broken behavior: `$host'
1511 # used to hold the argument of --host etc.
1512 # FIXME: To remove some day.
1513 build=$build_alias
1514 host=$host_alias
1515 target=$target_alias
1516
1517 # FIXME: To remove some day.
1518 if test "x$host_alias" != x; then
1519   if test "x$build_alias" = x; then
1520     cross_compiling=maybe
1521     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1522     If a cross compiler is detected then cross compile mode will be used." >&2
1523   elif test "x$build_alias" != "x$host_alias"; then
1524     cross_compiling=yes
1525   fi
1526 fi
1527
1528 ac_tool_prefix=
1529 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1530
1531 test "$silent" = yes && exec 6>/dev/null
1532
1533
1534 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1535 ac_ls_di=`ls -di .` &&
1536 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1537   as_fn_error "working directory cannot be determined"
1538 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1539   as_fn_error "pwd does not report name of working directory"
1540
1541
1542 # Find the source files, if location was not specified.
1543 if test -z "$srcdir"; then
1544   ac_srcdir_defaulted=yes
1545   # Try the directory containing this script, then the parent directory.
1546   ac_confdir=`$as_dirname -- "$as_myself" ||
1547 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1548          X"$as_myself" : 'X\(//\)[^/]' \| \
1549          X"$as_myself" : 'X\(//\)$' \| \
1550          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1551 $as_echo X"$as_myself" |
1552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1553             s//\1/
1554             q
1555           }
1556           /^X\(\/\/\)[^/].*/{
1557             s//\1/
1558             q
1559           }
1560           /^X\(\/\/\)$/{
1561             s//\1/
1562             q
1563           }
1564           /^X\(\/\).*/{
1565             s//\1/
1566             q
1567           }
1568           s/.*/./; q'`
1569   srcdir=$ac_confdir
1570   if test ! -r "$srcdir/$ac_unique_file"; then
1571     srcdir=..
1572   fi
1573 else
1574   ac_srcdir_defaulted=no
1575 fi
1576 if test ! -r "$srcdir/$ac_unique_file"; then
1577   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1578   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1579 fi
1580 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1581 ac_abs_confdir=`(
1582         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1583         pwd)`
1584 # When building in place, set srcdir=.
1585 if test "$ac_abs_confdir" = "$ac_pwd"; then
1586   srcdir=.
1587 fi
1588 # Remove unnecessary trailing slashes from srcdir.
1589 # Double slashes in file names in object file debugging info
1590 # mess up M-x gdb in Emacs.
1591 case $srcdir in
1592 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1593 esac
1594 for ac_var in $ac_precious_vars; do
1595   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1596   eval ac_env_${ac_var}_value=\$${ac_var}
1597   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1598   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1599 done
1600
1601 #
1602 # Report the --help message.
1603 #
1604 if test "$ac_init_help" = "long"; then
1605   # Omit some internal or obsolete options to make the list less imposing.
1606   # This message is too long to be a string in the A/UX 3.1 sh.
1607   cat <<_ACEOF
1608 \`configure' configures xmlsec1 1.2.14 to adapt to many kinds of systems.
1609
1610 Usage: $0 [OPTION]... [VAR=VALUE]...
1611
1612 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1613 VAR=VALUE.  See below for descriptions of some of the useful variables.
1614
1615 Defaults for the options are specified in brackets.
1616
1617 Configuration:
1618   -h, --help              display this help and exit
1619       --help=short        display options specific to this package
1620       --help=recursive    display the short help of all the included packages
1621   -V, --version           display version information and exit
1622   -q, --quiet, --silent   do not print \`checking...' messages
1623       --cache-file=FILE   cache test results in FILE [disabled]
1624   -C, --config-cache      alias for \`--cache-file=config.cache'
1625   -n, --no-create         do not create output files
1626       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1627
1628 Installation directories:
1629   --prefix=PREFIX         install architecture-independent files in PREFIX
1630                           [$ac_default_prefix]
1631   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1632                           [PREFIX]
1633
1634 By default, \`make install' will install all the files in
1635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1637 for instance \`--prefix=\$HOME'.
1638
1639 For better control, use the options below.
1640
1641 Fine tuning of the installation directories:
1642   --bindir=DIR            user executables [EPREFIX/bin]
1643   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1644   --libexecdir=DIR        program executables [EPREFIX/libexec]
1645   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1646   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1647   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1648   --libdir=DIR            object code libraries [EPREFIX/lib]
1649   --includedir=DIR        C header files [PREFIX/include]
1650   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1651   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1652   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1653   --infodir=DIR           info documentation [DATAROOTDIR/info]
1654   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1655   --mandir=DIR            man documentation [DATAROOTDIR/man]
1656   --docdir=DIR            documentation root [DATAROOTDIR/doc/xmlsec1]
1657   --htmldir=DIR           html documentation [DOCDIR]
1658   --dvidir=DIR            dvi documentation [DOCDIR]
1659   --pdfdir=DIR            pdf documentation [DOCDIR]
1660   --psdir=DIR             ps documentation [DOCDIR]
1661 _ACEOF
1662
1663   cat <<\_ACEOF
1664
1665 Program names:
1666   --program-prefix=PREFIX            prepend PREFIX to installed program names
1667   --program-suffix=SUFFIX            append SUFFIX to installed program names
1668   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1669
1670 System types:
1671   --build=BUILD     configure for building on BUILD [guessed]
1672   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1673 _ACEOF
1674 fi
1675
1676 if test -n "$ac_init_help"; then
1677   case $ac_init_help in
1678      short | recursive ) echo "Configuration of xmlsec1 1.2.14:";;
1679    esac
1680   cat <<\_ACEOF
1681
1682 Optional Features:
1683   --disable-option-checking  ignore unrecognized --enable/--with options
1684   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1685   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1686   --enable-maintainer-mode  enable make rules and dependencies not useful
1687                           (and sometimes confusing) to the casual installer
1688   --disable-dependency-tracking  speeds up one-time build
1689   --enable-dependency-tracking   do not reject slow dependency extractors
1690   --enable-shared[=PKGS]  build shared libraries [default=yes]
1691   --enable-static[=PKGS]  build static libraries [default=yes]
1692   --enable-fast-install[=PKGS]
1693                           optimize for fast installation [default=yes]
1694   --disable-libtool-lock  avoid locking (might break parallel builds)
1695   --enable-development    enable development environment (no)
1696   --enable-pkgconfig      enable pkgconfig for configuration (yes)
1697   --enable-mscrypto       enable mscrypto (no)
1698   --enable-md5            enable MD5 support (yes)
1699   --enable-ripemd160      enable RIPEMD-160 support (yes)
1700   --enable-sha1           enable SHA1 support (yes)
1701   --enable-sha224         enable SHA224 support (yes)
1702   --enable-sha256         enable SHA256 support (yes)
1703   --enable-sha384         enable SHA384 support (yes)
1704   --enable-sha512         enable SHA512 support (yes)
1705   --enable-hmac           enable HMAC support (yes)
1706   --enable-dsa            enable DSA support (yes)
1707   --enable-rsa            enable RSA support (yes)
1708   --enable-x509           enable x509 support (yes)
1709   --enable-des            enable DES support (yes)
1710   --enable-aes            enable AES support (OpenSSL >= 0.9.7 is required)
1711   --enable-gost           enable GOST support (no)
1712   --enable-xmldsig        enable XMLDSig support (yes)
1713   --enable-xmlenc         enable XMLEnc support (yes)
1714   --enable-xkms           enable XKMS support - under development (no)
1715   --enable-crypto-dl      enable dynamic loading support for xmlsec-crypto libraries (yes)
1716   --enable-apps-crypto-dl  enable dynamic loading support for xmlsec-crypto libraries in xmlsec command line tool (yes)
1717   --enable-skm            enable Simple Keys Manager testing (yes)
1718   --enable-tmpl-tests     enable templates testing in xmlsec utility (yes)
1719   --enable-debuging       enable debuging compilation flags (no)
1720   --enable-profiling      enable profiling compilation flags (no)
1721   --enable-pedantic       enable pedantic compilation flags (no)
1722   --enable-static-linking enable static linking (no)
1723
1724 Optional Packages:
1725   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1726   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1727   --with-pic              try to use only PIC/non-PIC objects [default=use
1728                           both]
1729   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1730   --with-libxml=PFX       libxml2 location
1731
1732   --with-libxml-src=PFX   not installed yet libxml2 location
1733
1734   --with-libxslt=PFX      libxslt location
1735
1736   --with-libxslt-src=PFX  not installed yet libxslt location
1737
1738   --with-openssl=PFX      openssl location
1739   --with-nss=PFX          nss location
1740   --with-nspr=PFX         nspr location (needed for NSS)
1741   --with-seamonkey-ver=VER  mozilla version (alt to --with-nss, --with-nspr)
1742   --with-mozilla-ver=VER  mozilla version (alt to --with-nss, --with-nspr)
1743   --with-gnutls=PFX       gnutls location
1744   --with-html-dir=PATH    path to installed docs
1745
1746 Some influential environment variables:
1747   CC          C compiler command
1748   CFLAGS      C compiler flags
1749   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1750               nonstandard directory <lib dir>
1751   LIBS        libraries to pass to the linker, e.g. -l<library>
1752   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753               you have headers in a nonstandard directory <include dir>
1754   CPP         C preprocessor
1755   PKG_CONFIG  path to pkg-config utility
1756   LIBXML_CFLAGS
1757               C compiler flags for LIBXML, overriding pkg-config
1758   LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1759   LIBXSLT_CFLAGS
1760               C compiler flags for LIBXSLT, overriding pkg-config
1761   LIBXSLT_LIBS
1762               linker flags for LIBXSLT, overriding pkg-config
1763   OPENSSL_CFLAGS
1764               C compiler flags for OPENSSL, overriding pkg-config
1765   OPENSSL_LIBS
1766               linker flags for OPENSSL, overriding pkg-config
1767   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1768   NSS_LIBS    linker flags for NSS, overriding pkg-config
1769   GNUTLS_CFLAGS
1770               C compiler flags for GNUTLS, overriding pkg-config
1771   GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1772
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1775
1776 Report bugs to <http://www.aleksey.com/xmlsec>.
1777 _ACEOF
1778 ac_status=$?
1779 fi
1780
1781 if test "$ac_init_help" = "recursive"; then
1782   # If there are subdirs, report their specific --help.
1783   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1784     test -d "$ac_dir" ||
1785       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1786       continue
1787     ac_builddir=.
1788
1789 case "$ac_dir" in
1790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *)
1792   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1793   # A ".." for each directory in $ac_dir_suffix.
1794   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1795   case $ac_top_builddir_sub in
1796   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1798   esac ;;
1799 esac
1800 ac_abs_top_builddir=$ac_pwd
1801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1802 # for backward compatibility:
1803 ac_top_builddir=$ac_top_build_prefix
1804
1805 case $srcdir in
1806   .)  # We are building in place.
1807     ac_srcdir=.
1808     ac_top_srcdir=$ac_top_builddir_sub
1809     ac_abs_top_srcdir=$ac_pwd ;;
1810   [\\/]* | ?:[\\/]* )  # Absolute name.
1811     ac_srcdir=$srcdir$ac_dir_suffix;
1812     ac_top_srcdir=$srcdir
1813     ac_abs_top_srcdir=$srcdir ;;
1814   *) # Relative name.
1815     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1816     ac_top_srcdir=$ac_top_build_prefix$srcdir
1817     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1818 esac
1819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1820
1821     cd "$ac_dir" || { ac_status=$?; continue; }
1822     # Check for guested configure.
1823     if test -f "$ac_srcdir/configure.gnu"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826     elif test -f "$ac_srcdir/configure"; then
1827       echo &&
1828       $SHELL "$ac_srcdir/configure" --help=recursive
1829     else
1830       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1831     fi || ac_status=$?
1832     cd "$ac_pwd" || { ac_status=$?; break; }
1833   done
1834 fi
1835
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1838   cat <<\_ACEOF
1839 xmlsec1 configure 1.2.14
1840 generated by GNU Autoconf 2.64
1841
1842 Copyright (C) 2009 Free Software Foundation, Inc.
1843 This configure script is free software; the Free Software Foundation
1844 gives unlimited permission to copy, distribute and modify it.
1845 _ACEOF
1846   exit
1847 fi
1848
1849 ## ------------------------ ##
1850 ## Autoconf initialization. ##
1851 ## ------------------------ ##
1852
1853 # ac_fn_c_try_compile LINENO
1854 # --------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_compile ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   rm -f conftest.$ac_objext
1860   if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_compile") 2>conftest.err
1868   ac_status=$?
1869   if test -s conftest.err; then
1870     grep -v '^ *+' conftest.err >conftest.er1
1871     cat conftest.er1 >&5
1872     mv -f conftest.er1 conftest.err
1873   fi
1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875   test $ac_status = 0; } && {
1876          test -z "$ac_c_werror_flag" ||
1877          test ! -s conftest.err
1878        } && test -s conftest.$ac_objext; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884         ac_retval=1
1885 fi
1886   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887   return $ac_retval
1888
1889 } # ac_fn_c_try_compile
1890
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_cpp ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900   *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905   ac_status=$?
1906   if test -s conftest.err; then
1907     grep -v '^ *+' conftest.err >conftest.er1
1908     cat conftest.er1 >&5
1909     mv -f conftest.er1 conftest.err
1910   fi
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } >/dev/null && {
1913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914          test ! -s conftest.err
1915        }; then :
1916   ac_retval=0
1917 else
1918   $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921     ac_retval=1
1922 fi
1923   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924   return $ac_retval
1925
1926 } # ac_fn_c_try_cpp
1927
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1931 # that executables *can* be run.
1932 ac_fn_c_try_run ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_link") 2>&5
1943   ac_status=$?
1944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1946   { { case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_try") 2>&5
1953   ac_status=$?
1954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955   test $ac_status = 0; }; }; then :
1956   ac_retval=0
1957 else
1958   $as_echo "$as_me: program exited with status $ac_status" >&5
1959        $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962        ac_retval=$ac_status
1963 fi
1964   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966   return $ac_retval
1967
1968 } # ac_fn_c_try_run
1969
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_c_try_link ()
1974 {
1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976   rm -f conftest.$ac_objext conftest$ac_exeext
1977   if { { ac_try="$ac_link"
1978 case "(($ac_try" in
1979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980   *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984   (eval "$ac_link") 2>conftest.err
1985   ac_status=$?
1986   if test -s conftest.err; then
1987     grep -v '^ *+' conftest.err >conftest.er1
1988     cat conftest.er1 >&5
1989     mv -f conftest.er1 conftest.err
1990   fi
1991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992   test $ac_status = 0; } && {
1993          test -z "$ac_c_werror_flag" ||
1994          test ! -s conftest.err
1995        } && test -s conftest$ac_exeext && {
1996          test "$cross_compiling" = yes ||
1997          $as_test_x conftest$ac_exeext
1998        }; then :
1999   ac_retval=0
2000 else
2001   $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004         ac_retval=1
2005 fi
2006   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008   # interfere with the next link command; also delete a directory that is
2009   # left behind by Apple's compiler.  We do this before executing the actions.
2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012   return $ac_retval
2013
2014 } # ac_fn_c_try_link
2015
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026   $as_echo_n "(cached) " >&6
2027 else
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $4
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034   eval "$3=yes"
2035 else
2036   eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_header_compile
2046
2047 # ac_fn_c_check_func LINENO FUNC VAR
2048 # ----------------------------------
2049 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2050 ac_fn_c_check_func ()
2051 {
2052   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056   $as_echo_n "(cached) " >&6
2057 else
2058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h.  */
2060 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2062 #define $2 innocuous_$2
2063
2064 /* System header to define __stub macros and hopefully few prototypes,
2065     which can conflict with char $2 (); below.
2066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2067     <limits.h> exists even on freestanding compilers.  */
2068
2069 #ifdef __STDC__
2070 # include <limits.h>
2071 #else
2072 # include <assert.h>
2073 #endif
2074
2075 #undef $2
2076
2077 /* Override any GCC internal prototype to avoid an error.
2078    Use char because int might match the return type of a GCC
2079    builtin and then its argument prototype would still apply.  */
2080 #ifdef __cplusplus
2081 extern "C"
2082 #endif
2083 char $2 ();
2084 /* The GNU C library defines this for functions which it implements
2085     to always fail with ENOSYS.  Some functions are actually named
2086     something starting with __ and the normal name is an alias.  */
2087 #if defined __stub_$2 || defined __stub___$2
2088 choke me
2089 #endif
2090
2091 int
2092 main ()
2093 {
2094 return $2 ();
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_link "$LINENO"; then :
2100   eval "$3=yes"
2101 else
2102   eval "$3=no"
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext \
2105     conftest$ac_exeext conftest.$ac_ext
2106 fi
2107 eval ac_res=\$$3
2108                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111
2112 } # ac_fn_c_check_func
2113
2114 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2115 # -------------------------------------------------------
2116 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117 # the include files in INCLUDES and setting the cache variable VAR
2118 # accordingly.
2119 ac_fn_c_check_header_mongrel ()
2120 {
2121   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126   $as_echo_n "(cached) " >&6
2127 fi
2128 eval ac_res=\$$3
2129                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 else
2132   # Is the header compilable?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134 $as_echo_n "checking $2 usability... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 $4
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141   ac_header_compiler=yes
2142 else
2143   ac_header_compiler=no
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147 $as_echo "$ac_header_compiler" >&6; }
2148
2149 # Is the header present?
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151 $as_echo_n "checking $2 presence... " >&6; }
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h.  */
2154 #include <$2>
2155 _ACEOF
2156 if ac_fn_c_try_cpp "$LINENO"; then :
2157   ac_header_preproc=yes
2158 else
2159   ac_header_preproc=no
2160 fi
2161 rm -f conftest.err conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163 $as_echo "$ac_header_preproc" >&6; }
2164
2165 # So?  What about this header?
2166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2167   yes:no: )
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2172     ;;
2173   no:yes:* )
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2177 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2178     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2181 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184 ( cat <<\_ASBOX
2185 ## -------------------------------------------- ##
2186 ## Report this to http://www.aleksey.com/xmlsec ##
2187 ## -------------------------------------------- ##
2188 _ASBOX
2189      ) | sed "s/^/$as_me: WARNING:     /" >&2
2190     ;;
2191 esac
2192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2195   $as_echo_n "(cached) " >&6
2196 else
2197   eval "$3=\$ac_header_compiler"
2198 fi
2199 eval ac_res=\$$3
2200                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 fi
2203   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204
2205 } # ac_fn_c_check_header_mongrel
2206
2207 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2208 # --------------------------------------------
2209 # Tries to find the compile-time value of EXPR in a program that includes
2210 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2211 # computed
2212 ac_fn_c_compute_int ()
2213 {
2214   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215   if test "$cross_compiling" = yes; then
2216     # Depending upon the size, compute the lo and hi bounds.
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int
2221 main ()
2222 {
2223 static int test_array [1 - 2 * !(($2) >= 0)];
2224 test_array [0] = 0
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231   ac_lo=0 ac_mid=0
2232   while :; do
2233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 $4
2236 int
2237 main ()
2238 {
2239 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2240 test_array [0] = 0
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247   ac_hi=$ac_mid; break
2248 else
2249   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2250                         if test $ac_lo -le $ac_mid; then
2251                           ac_lo= ac_hi=
2252                           break
2253                         fi
2254                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257   done
2258 else
2259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h.  */
2261 $4
2262 int
2263 main ()
2264 {
2265 static int test_array [1 - 2 * !(($2) < 0)];
2266 test_array [0] = 0
2267
2268   ;
2269   return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273   ac_hi=-1 ac_mid=-1
2274   while :; do
2275     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 $4
2278 int
2279 main ()
2280 {
2281 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2282 test_array [0] = 0
2283
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289   ac_lo=$ac_mid; break
2290 else
2291   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2292                         if test $ac_mid -le $ac_hi; then
2293                           ac_lo= ac_hi=
2294                           break
2295                         fi
2296                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299   done
2300 else
2301   ac_lo= ac_hi=
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 # Binary search between lo and hi bounds.
2307 while test "x$ac_lo" != "x$ac_hi"; do
2308   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h.  */
2311 $4
2312 int
2313 main ()
2314 {
2315 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2316 test_array [0] = 0
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323   ac_hi=$ac_mid
2324 else
2325   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 done
2329 case $ac_lo in #((
2330 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2331 '') ac_retval=1 ;;
2332 esac
2333   else
2334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h.  */
2336 $4
2337 static long int longval () { return $2; }
2338 static unsigned long int ulongval () { return $2; }
2339 #include <stdio.h>
2340 #include <stdlib.h>
2341 int
2342 main ()
2343 {
2344
2345   FILE *f = fopen ("conftest.val", "w");
2346   if (! f)
2347     return 1;
2348   if (($2) < 0)
2349     {
2350       long int i = longval ();
2351       if (i != ($2))
2352         return 1;
2353       fprintf (f, "%ld", i);
2354     }
2355   else
2356     {
2357       unsigned long int i = ulongval ();
2358       if (i != ($2))
2359         return 1;
2360       fprintf (f, "%lu", i);
2361     }
2362   /* Do not output a trailing newline, as this causes \r\n confusion
2363      on some platforms.  */
2364   return ferror (f) || fclose (f) != 0;
2365
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 if ac_fn_c_try_run "$LINENO"; then :
2371   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2372 else
2373   ac_retval=1
2374 fi
2375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2376   conftest.$ac_objext conftest.beam conftest.$ac_ext
2377 rm -f conftest.val
2378
2379   fi
2380   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2381   return $ac_retval
2382
2383 } # ac_fn_c_compute_int
2384 cat >config.log <<_ACEOF
2385 This file contains any messages produced by compilers while
2386 running configure, to aid debugging if configure makes a mistake.
2387
2388 It was created by xmlsec1 $as_me 1.2.14, which was
2389 generated by GNU Autoconf 2.64.  Invocation command line was
2390
2391   $ $0 $@
2392
2393 _ACEOF
2394 exec 5>>config.log
2395 {
2396 cat <<_ASUNAME
2397 ## --------- ##
2398 ## Platform. ##
2399 ## --------- ##
2400
2401 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2402 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2403 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2404 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2405 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2406
2407 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2408 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2409
2410 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2411 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2412 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2413 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2414 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2415 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2416 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2417
2418 _ASUNAME
2419
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423   IFS=$as_save_IFS
2424   test -z "$as_dir" && as_dir=.
2425     $as_echo "PATH: $as_dir"
2426   done
2427 IFS=$as_save_IFS
2428
2429 } >&5
2430
2431 cat >&5 <<_ACEOF
2432
2433
2434 ## ----------- ##
2435 ## Core tests. ##
2436 ## ----------- ##
2437
2438 _ACEOF
2439
2440
2441 # Keep a trace of the command line.
2442 # Strip out --no-create and --no-recursion so they do not pile up.
2443 # Strip out --silent because we don't want to record it for future runs.
2444 # Also quote any args containing shell meta-characters.
2445 # Make two passes to allow for proper duplicate-argument suppression.
2446 ac_configure_args=
2447 ac_configure_args0=
2448 ac_configure_args1=
2449 ac_must_keep_next=false
2450 for ac_pass in 1 2
2451 do
2452   for ac_arg
2453   do
2454     case $ac_arg in
2455     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2456     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2457     | -silent | --silent | --silen | --sile | --sil)
2458       continue ;;
2459     *\'*)
2460       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2461     esac
2462     case $ac_pass in
2463     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2464     2)
2465       as_fn_append ac_configure_args1 " '$ac_arg'"
2466       if test $ac_must_keep_next = true; then
2467         ac_must_keep_next=false # Got value, back to normal.
2468       else
2469         case $ac_arg in
2470           *=* | --config-cache | -C | -disable-* | --disable-* \
2471           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2472           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2473           | -with-* | --with-* | -without-* | --without-* | --x)
2474             case "$ac_configure_args0 " in
2475               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2476             esac
2477             ;;
2478           -* ) ac_must_keep_next=true ;;
2479         esac
2480       fi
2481       as_fn_append ac_configure_args " '$ac_arg'"
2482       ;;
2483     esac
2484   done
2485 done
2486 { ac_configure_args0=; unset ac_configure_args0;}
2487 { ac_configure_args1=; unset ac_configure_args1;}
2488
2489 # When interrupted or exit'd, cleanup temporary files, and complete
2490 # config.log.  We remove comments because anyway the quotes in there
2491 # would cause problems or look ugly.
2492 # WARNING: Use '\'' to represent an apostrophe within the trap.
2493 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2494 trap 'exit_status=$?
2495   # Save into config.log some information that might help in debugging.
2496   {
2497     echo
2498
2499     cat <<\_ASBOX
2500 ## ---------------- ##
2501 ## Cache variables. ##
2502 ## ---------------- ##
2503 _ASBOX
2504     echo
2505     # The following way of writing the cache mishandles newlines in values,
2506 (
2507   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508     eval ac_val=\$$ac_var
2509     case $ac_val in #(
2510     *${as_nl}*)
2511       case $ac_var in #(
2512       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2514       esac
2515       case $ac_var in #(
2516       _ | IFS | as_nl) ;; #(
2517       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518       *) { eval $ac_var=; unset $ac_var;} ;;
2519       esac ;;
2520     esac
2521   done
2522   (set) 2>&1 |
2523     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524     *${as_nl}ac_space=\ *)
2525       sed -n \
2526         "s/'\''/'\''\\\\'\'''\''/g;
2527           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2528       ;; #(
2529     *)
2530       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531       ;;
2532     esac |
2533     sort
2534 )
2535     echo
2536
2537     cat <<\_ASBOX
2538 ## ----------------- ##
2539 ## Output variables. ##
2540 ## ----------------- ##
2541 _ASBOX
2542     echo
2543     for ac_var in $ac_subst_vars
2544     do
2545       eval ac_val=\$$ac_var
2546       case $ac_val in
2547       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548       esac
2549       $as_echo "$ac_var='\''$ac_val'\''"
2550     done | sort
2551     echo
2552
2553     if test -n "$ac_subst_files"; then
2554       cat <<\_ASBOX
2555 ## ------------------- ##
2556 ## File substitutions. ##
2557 ## ------------------- ##
2558 _ASBOX
2559       echo
2560       for ac_var in $ac_subst_files
2561       do
2562         eval ac_val=\$$ac_var
2563         case $ac_val in
2564         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2565         esac
2566         $as_echo "$ac_var='\''$ac_val'\''"
2567       done | sort
2568       echo
2569     fi
2570
2571     if test -s confdefs.h; then
2572       cat <<\_ASBOX
2573 ## ----------- ##
2574 ## confdefs.h. ##
2575 ## ----------- ##
2576 _ASBOX
2577       echo
2578       cat confdefs.h
2579       echo
2580     fi
2581     test "$ac_signal" != 0 &&
2582       $as_echo "$as_me: caught signal $ac_signal"
2583     $as_echo "$as_me: exit $exit_status"
2584   } >&5
2585   rm -f core *.core core.conftest.* &&
2586     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2587     exit $exit_status
2588 ' 0
2589 for ac_signal in 1 2 13 15; do
2590   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2591 done
2592 ac_signal=0
2593
2594 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2595 rm -f -r conftest* confdefs.h
2596
2597 $as_echo "/* confdefs.h */" > confdefs.h
2598
2599 # Predefined preprocessor variables.
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_NAME "$PACKAGE_NAME"
2603 _ACEOF
2604
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2607 _ACEOF
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2611 _ACEOF
2612
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_STRING "$PACKAGE_STRING"
2615 _ACEOF
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2619 _ACEOF
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_URL "$PACKAGE_URL"
2623 _ACEOF
2624
2625
2626 # Let the site file select an alternate cache file if it wants to.
2627 # Prefer an explicitly selected file to automatically selected ones.
2628 ac_site_file1=NONE
2629 ac_site_file2=NONE
2630 if test -n "$CONFIG_SITE"; then
2631   ac_site_file1=$CONFIG_SITE
2632 elif test "x$prefix" != xNONE; then
2633   ac_site_file1=$prefix/share/config.site
2634   ac_site_file2=$prefix/etc/config.site
2635 else
2636   ac_site_file1=$ac_default_prefix/share/config.site
2637   ac_site_file2=$ac_default_prefix/etc/config.site
2638 fi
2639 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2640 do
2641   test "x$ac_site_file" = xNONE && continue
2642   if test -r "$ac_site_file"; then
2643     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2644 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2645     sed 's/^/| /' "$ac_site_file" >&5
2646     . "$ac_site_file"
2647   fi
2648 done
2649
2650 if test -r "$cache_file"; then
2651   # Some versions of bash will fail to source /dev/null (special
2652   # files actually), so we avoid doing that.
2653   if test -f "$cache_file"; then
2654     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2655 $as_echo "$as_me: loading cache $cache_file" >&6;}
2656     case $cache_file in
2657       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2658       *)                      . "./$cache_file";;
2659     esac
2660   fi
2661 else
2662   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2663 $as_echo "$as_me: creating cache $cache_file" >&6;}
2664   >$cache_file
2665 fi
2666
2667 # Check that the precious variables saved in the cache have kept the same
2668 # value.
2669 ac_cache_corrupted=false
2670 for ac_var in $ac_precious_vars; do
2671   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2672   eval ac_new_set=\$ac_env_${ac_var}_set
2673   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2674   eval ac_new_val=\$ac_env_${ac_var}_value
2675   case $ac_old_set,$ac_new_set in
2676     set,)
2677       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2678 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2679       ac_cache_corrupted=: ;;
2680     ,set)
2681       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2683       ac_cache_corrupted=: ;;
2684     ,);;
2685     *)
2686       if test "x$ac_old_val" != "x$ac_new_val"; then
2687         # differences in whitespace do not lead to failure.
2688         ac_old_val_w=`echo x $ac_old_val`
2689         ac_new_val_w=`echo x $ac_new_val`
2690         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2691           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2692 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2693           ac_cache_corrupted=:
2694         else
2695           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2696 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2697           eval $ac_var=\$ac_old_val
2698         fi
2699         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2700 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2701         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2702 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2703       fi;;
2704   esac
2705   # Pass precious variables to config.status.
2706   if test "$ac_new_set" = set; then
2707     case $ac_new_val in
2708     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2709     *) ac_arg=$ac_var=$ac_new_val ;;
2710     esac
2711     case " $ac_configure_args " in
2712       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2713       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2714     esac
2715   fi
2716 done
2717 if $ac_cache_corrupted; then
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2721 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2722   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2723 fi
2724 ## -------------------- ##
2725 ## Main body of script. ##
2726 ## -------------------- ##
2727
2728 ac_ext=c
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734
2735
2736 XMLSEC_PACKAGE=xmlsec1
2737 XMLSEC_VERSION_MAJOR=1
2738 XMLSEC_VERSION_MINOR=2
2739 XMLSEC_VERSION_SUBMINOR=14
2740 XMLSEC_VERSION="$XMLSEC_VERSION_MAJOR.$XMLSEC_VERSION_MINOR.$XMLSEC_VERSION_SUBMINOR"
2741 XMLSEC_VERSION_INFO=`echo $XMLSEC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
2742 XMLSEC_VERSION_SAFE=`echo $XMLSEC_VERSION | sed 's/\./_/g'`
2743
2744
2745 ac_aux_dir=
2746 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2747   for ac_t in install-sh install.sh shtool; do
2748     if test -f "$ac_dir/$ac_t"; then
2749       ac_aux_dir=$ac_dir
2750       ac_install_sh="$ac_aux_dir/$ac_t -c"
2751       break 2
2752     fi
2753   done
2754 done
2755 if test -z "$ac_aux_dir"; then
2756   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2757 fi
2758
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2764 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2765 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2766
2767
2768 # Make sure we can run config.sub.
2769 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2773 $as_echo_n "checking build system type... " >&6; }
2774 if test "${ac_cv_build+set}" = set; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   ac_build_alias=$build_alias
2778 test "x$ac_build_alias" = x &&
2779   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2780 test "x$ac_build_alias" = x &&
2781   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2782 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2783   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2784
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2787 $as_echo "$ac_cv_build" >&6; }
2788 case $ac_cv_build in
2789 *-*-*) ;;
2790 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2791 esac
2792 build=$ac_cv_build
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_build
2795 shift
2796 build_cpu=$1
2797 build_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 build_os=$*
2802 IFS=$ac_save_IFS
2803 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2804
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2807 $as_echo_n "checking host system type... " >&6; }
2808 if test "${ac_cv_host+set}" = set; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   if test "x$host_alias" = x; then
2812   ac_cv_host=$ac_cv_build
2813 else
2814   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2815     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2816 fi
2817
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2820 $as_echo "$ac_cv_host" >&6; }
2821 case $ac_cv_host in
2822 *-*-*) ;;
2823 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2824 esac
2825 host=$ac_cv_host
2826 ac_save_IFS=$IFS; IFS='-'
2827 set x $ac_cv_host
2828 shift
2829 host_cpu=$1
2830 host_vendor=$2
2831 shift; shift
2832 # Remember, the first character of IFS is used to create $*,
2833 # except with old shells:
2834 host_os=$*
2835 IFS=$ac_save_IFS
2836 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849 am__api_version='1.11'
2850
2851 # Find a good install program.  We prefer a C program (faster),
2852 # so one script is as good as another.  But avoid the broken or
2853 # incompatible versions:
2854 # SysV /etc/install, /usr/sbin/install
2855 # SunOS /usr/etc/install
2856 # IRIX /sbin/install
2857 # AIX /bin/install
2858 # AmigaOS /C/install, which installs bootblocks on floppy discs
2859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2862 # OS/2's system install, which has a completely different semantic
2863 # ./install, which can be erroneously created by make from ./install.sh.
2864 # Reject install programs that cannot install multiple files.
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2866 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2867 if test -z "$INSTALL"; then
2868 if test "${ac_cv_path_install+set}" = set; then :
2869   $as_echo_n "(cached) " >&6
2870 else
2871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874   IFS=$as_save_IFS
2875   test -z "$as_dir" && as_dir=.
2876     # Account for people who put trailing slashes in PATH elements.
2877 case $as_dir/ in #((
2878   ./ | .// | /[cC]/* | \
2879   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2880   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2881   /usr/ucb/* ) ;;
2882   *)
2883     # OSF1 and SCO ODT 3.0 have their own names for install.
2884     # Don't use installbsd from OSF since it installs stuff as root
2885     # by default.
2886     for ac_prog in ginstall scoinst install; do
2887       for ac_exec_ext in '' $ac_executable_extensions; do
2888         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2889           if test $ac_prog = install &&
2890             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2891             # AIX install.  It has an incompatible calling convention.
2892             :
2893           elif test $ac_prog = install &&
2894             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895             # program-specific install script used by HP pwplus--don't use.
2896             :
2897           else
2898             rm -rf conftest.one conftest.two conftest.dir
2899             echo one > conftest.one
2900             echo two > conftest.two
2901             mkdir conftest.dir
2902             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2903               test -s conftest.one && test -s conftest.two &&
2904               test -s conftest.dir/conftest.one &&
2905               test -s conftest.dir/conftest.two
2906             then
2907               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2908               break 3
2909             fi
2910           fi
2911         fi
2912       done
2913     done
2914     ;;
2915 esac
2916
2917   done
2918 IFS=$as_save_IFS
2919
2920 rm -rf conftest.one conftest.two conftest.dir
2921
2922 fi
2923   if test "${ac_cv_path_install+set}" = set; then
2924     INSTALL=$ac_cv_path_install
2925   else
2926     # As a last resort, use the slow shell script.  Don't cache a
2927     # value for INSTALL within a source directory, because that will
2928     # break other packages using the cache if that directory is
2929     # removed, or if the value is a relative name.
2930     INSTALL=$ac_install_sh
2931   fi
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2934 $as_echo "$INSTALL" >&6; }
2935
2936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2937 # It thinks the first close brace ends the variable substitution.
2938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2939
2940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2941
2942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2943
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2945 $as_echo_n "checking whether build environment is sane... " >&6; }
2946 # Just in case
2947 sleep 1
2948 echo timestamp > conftest.file
2949 # Reject unsafe characters in $srcdir or the absolute working directory
2950 # name.  Accept space and tab only in the latter.
2951 am_lf='
2952 '
2953 case `pwd` in
2954   *[\\\"\#\$\&\'\`$am_lf]*)
2955     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2956 esac
2957 case $srcdir in
2958   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2959     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2960 esac
2961
2962 # Do `set' in a subshell so we don't clobber the current shell's
2963 # arguments.  Must try -L first in case configure is actually a
2964 # symlink; some systems play weird games with the mod time of symlinks
2965 # (eg FreeBSD returns the mod time of the symlink's containing
2966 # directory).
2967 if (
2968    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2969    if test "$*" = "X"; then
2970       # -L didn't work.
2971       set X `ls -t "$srcdir/configure" conftest.file`
2972    fi
2973    rm -f conftest.file
2974    if test "$*" != "X $srcdir/configure conftest.file" \
2975       && test "$*" != "X conftest.file $srcdir/configure"; then
2976
2977       # If neither matched, then we have a broken ls.  This can happen
2978       # if, for instance, CONFIG_SHELL is bash and it inherits a
2979       # broken ls alias from the environment.  This has actually
2980       # happened.  Such a system could not be considered "sane".
2981       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2982 alias in your environment" "$LINENO" 5
2983    fi
2984
2985    test "$2" = conftest.file
2986    )
2987 then
2988    # Ok.
2989    :
2990 else
2991    as_fn_error "newly created file is older than distributed files!
2992 Check your system clock" "$LINENO" 5
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995 $as_echo "yes" >&6; }
2996 test "$program_prefix" != NONE &&
2997   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2998 # Use a double $ so make ignores it.
2999 test "$program_suffix" != NONE &&
3000   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3001 # Double any \ or $.
3002 # By default was `s,x,x', remove it if useless.
3003 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3004 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3005
3006 # expand $ac_aux_dir to an absolute path
3007 am_aux_dir=`cd $ac_aux_dir && pwd`
3008
3009 if test x"${MISSING+set}" != xset; then
3010   case $am_aux_dir in
3011   *\ * | *\     *)
3012     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3013   *)
3014     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3015   esac
3016 fi
3017 # Use eval to expand $SHELL
3018 if eval "$MISSING --run true"; then
3019   am_missing_run="$MISSING --run "
3020 else
3021   am_missing_run=
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3023 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3024 fi
3025
3026 if test x"${install_sh}" != xset; then
3027   case $am_aux_dir in
3028   *\ * | *\     *)
3029     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3030   *)
3031     install_sh="\${SHELL} $am_aux_dir/install-sh"
3032   esac
3033 fi
3034
3035 # Installed binaries are usually stripped using `strip' when the user
3036 # run `make install-strip'.  However `strip' might not be the right
3037 # tool to use in cross-compilation environments, therefore Automake
3038 # will honor the `STRIP' environment variable to overrule this program.
3039 if test "$cross_compiling" != no; then
3040   if test -n "$ac_tool_prefix"; then
3041   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}strip; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_STRIP+set}" = set; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if test -n "$STRIP"; then
3049   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054   IFS=$as_save_IFS
3055   test -z "$as_dir" && as_dir=.
3056     for ac_exec_ext in '' $ac_executable_extensions; do
3057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 STRIP=$ac_cv_prog_STRIP
3069 if test -n "$STRIP"; then
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3071 $as_echo "$STRIP" >&6; }
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$ac_cv_prog_STRIP"; then
3080   ac_ct_STRIP=$STRIP
3081   # Extract the first word of "strip", so it can be a program name with args.
3082 set dummy strip; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   if test -n "$ac_ct_STRIP"; then
3089   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094   IFS=$as_save_IFS
3095   test -z "$as_dir" && as_dir=.
3096     for ac_exec_ext in '' $ac_executable_extensions; do
3097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098     ac_cv_prog_ac_ct_STRIP="strip"
3099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100     break 2
3101   fi
3102 done
3103   done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3109 if test -n "$ac_ct_STRIP"; then
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3111 $as_echo "$ac_ct_STRIP" >&6; }
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117   if test "x$ac_ct_STRIP" = x; then
3118     STRIP=":"
3119   else
3120     case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126     STRIP=$ac_ct_STRIP
3127   fi
3128 else
3129   STRIP="$ac_cv_prog_STRIP"
3130 fi
3131
3132 fi
3133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3134
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3136 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3137 if test -z "$MKDIR_P"; then
3138   if test "${ac_cv_path_mkdir+set}" = set; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146     for ac_prog in mkdir gmkdir; do
3147          for ac_exec_ext in '' $ac_executable_extensions; do
3148            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3149            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3150              'mkdir (GNU coreutils) '* | \
3151              'mkdir (coreutils) '* | \
3152              'mkdir (fileutils) '4.1*)
3153                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3154                break 3;;
3155            esac
3156          done
3157        done
3158   done
3159 IFS=$as_save_IFS
3160
3161 fi
3162
3163   if test "${ac_cv_path_mkdir+set}" = set; then
3164     MKDIR_P="$ac_cv_path_mkdir -p"
3165   else
3166     # As a last resort, use the slow shell script.  Don't cache a
3167     # value for MKDIR_P within a source directory, because that will
3168     # break other packages using the cache if that directory is
3169     # removed, or if the value is a relative name.
3170     test -d ./--version && rmdir ./--version
3171     MKDIR_P="$ac_install_sh -d"
3172   fi
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3175 $as_echo "$MKDIR_P" >&6; }
3176
3177 mkdir_p="$MKDIR_P"
3178 case $mkdir_p in
3179   [\\/$]* | ?:[\\/]*) ;;
3180   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3181 esac
3182
3183 for ac_prog in gawk mawk nawk awk
3184 do
3185   # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy $ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_AWK+set}" = set; then :
3190   $as_echo_n "(cached) " >&6
3191 else
3192   if test -n "$AWK"; then
3193   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198   IFS=$as_save_IFS
3199   test -z "$as_dir" && as_dir=.
3200     for ac_exec_ext in '' $ac_executable_extensions; do
3201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202     ac_cv_prog_AWK="$ac_prog"
3203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204     break 2
3205   fi
3206 done
3207   done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 AWK=$ac_cv_prog_AWK
3213 if test -n "$AWK"; then
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3215 $as_echo "$AWK" >&6; }
3216 else
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222   test -n "$AWK" && break
3223 done
3224
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3226 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3227 set x ${MAKE-make}
3228 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3229 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3230   $as_echo_n "(cached) " >&6
3231 else
3232   cat >conftest.make <<\_ACEOF
3233 SHELL = /bin/sh
3234 all:
3235         @echo '@@@%%%=$(MAKE)=@@@%%%'
3236 _ACEOF
3237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3238 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3239   *@@@%%%=?*=@@@%%%*)
3240     eval ac_cv_prog_make_${ac_make}_set=yes;;
3241   *)
3242     eval ac_cv_prog_make_${ac_make}_set=no;;
3243 esac
3244 rm -f conftest.make
3245 fi
3246 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3249   SET_MAKE=
3250 else
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253   SET_MAKE="MAKE=${MAKE-make}"
3254 fi
3255
3256 rm -rf .tst 2>/dev/null
3257 mkdir .tst 2>/dev/null
3258 if test -d .tst; then
3259   am__leading_dot=.
3260 else
3261   am__leading_dot=_
3262 fi
3263 rmdir .tst 2>/dev/null
3264
3265 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3266   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3267   # is not polluted with repeated "-I."
3268   am__isrc=' -I$(srcdir)'
3269   # test to see if srcdir already configured
3270   if test -f $srcdir/config.status; then
3271     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3272   fi
3273 fi
3274
3275 # test whether we have cygpath
3276 if test -z "$CYGPATH_W"; then
3277   if (cygpath --version) >/dev/null 2>/dev/null; then
3278     CYGPATH_W='cygpath -w'
3279   else
3280     CYGPATH_W=echo
3281   fi
3282 fi
3283
3284
3285 # Define the identity of the package.
3286  PACKAGE='xmlsec1'
3287  VERSION='1.2.14'
3288
3289
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE "$PACKAGE"
3292 _ACEOF
3293
3294
3295 cat >>confdefs.h <<_ACEOF
3296 #define VERSION "$VERSION"
3297 _ACEOF
3298
3299 # Some tools Automake needs.
3300
3301 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3302
3303
3304 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3305
3306
3307 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3308
3309
3310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3311
3312
3313 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3314
3315 # We need awk for the "check" target.  The system "awk" is bad on
3316 # some platforms.
3317 # Always define AMTAR for backward compatibility.
3318
3319 AMTAR=${AMTAR-"${am_missing_run}tar"}
3320
3321
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3323 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3324 # Loop over all known methods to create a tar archive until one works.
3325 _am_tools='gnutar plaintar pax cpio none'
3326 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3327 # Do not fold the above two line into one, because Tru64 sh and
3328 # Solaris sh will not grok spaces in the rhs of `-'.
3329 for _am_tool in $_am_tools
3330 do
3331   case $_am_tool in
3332   gnutar)
3333     for _am_tar in tar gnutar gtar;
3334     do
3335       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3336    ($_am_tar --version) >&5 2>&5
3337    ac_status=$?
3338    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339    (exit $ac_status); } && break
3340     done
3341     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3342     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3343     am__untar="$_am_tar -xf -"
3344     ;;
3345   plaintar)
3346     # Must skip GNU tar: if it does not support --format= it doesn't create
3347     # ustar tarball either.
3348     (tar --version) >/dev/null 2>&1 && continue
3349     am__tar='tar chf - "$$tardir"'
3350     am__tar_='tar chf - "$tardir"'
3351     am__untar='tar xf -'
3352     ;;
3353   pax)
3354     am__tar='pax -L -x ustar -w "$$tardir"'
3355     am__tar_='pax -L -x ustar -w "$tardir"'
3356     am__untar='pax -r'
3357     ;;
3358   cpio)
3359     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3360     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3361     am__untar='cpio -i -H ustar -d'
3362     ;;
3363   none)
3364     am__tar=false
3365     am__tar_=false
3366     am__untar=false
3367     ;;
3368   esac
3369
3370   # If the value was cached, stop now.  We just wanted to have am__tar
3371   # and am__untar set.
3372   test -n "${am_cv_prog_tar_ustar}" && break
3373
3374   # tar/untar a dummy directory, and stop if the command works
3375   rm -rf conftest.dir
3376   mkdir conftest.dir
3377   echo GrepMe > conftest.dir/file
3378   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3379    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3380    ac_status=$?
3381    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382    (exit $ac_status); }
3383   rm -rf conftest.dir
3384   if test -s conftest.tar; then
3385     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3386    ($am__untar <conftest.tar) >&5 2>&5
3387    ac_status=$?
3388    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389    (exit $ac_status); }
3390     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3391   fi
3392 done
3393 rm -rf conftest.dir
3394
3395 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   am_cv_prog_tar_ustar=$_am_tool
3399 fi
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3402 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3403
3404
3405
3406
3407
3408 ac_config_headers="$ac_config_headers config.h"
3409
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413     # Check whether --enable-maintainer-mode was given.
3414 if test "${enable_maintainer_mode+set}" = set; then :
3415   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3416 else
3417   USE_MAINTAINER_MODE=no
3418 fi
3419
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3421 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3422    if test $USE_MAINTAINER_MODE = yes; then
3423   MAINTAINER_MODE_TRUE=
3424   MAINTAINER_MODE_FALSE='#'
3425 else
3426   MAINTAINER_MODE_TRUE='#'
3427   MAINTAINER_MODE_FALSE=
3428 fi
3429
3430   MAINT=$MAINTAINER_MODE_TRUE
3431
3432
3433
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   if test -n "$CC"; then
3448   ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453   IFS=$as_save_IFS
3454   test -z "$as_dir" && as_dir=.
3455     for ac_exec_ext in '' $ac_executable_extensions; do
3456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459     break 2
3460   fi
3461 done
3462   done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3471 else
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 fi
3475
3476
3477 fi
3478 if test -z "$ac_cv_prog_CC"; then
3479   ac_ct_CC=$CC
3480   # Extract the first word of "gcc", so it can be a program name with args.
3481 set dummy gcc; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3485   $as_echo_n "(cached) " >&6
3486 else
3487   if test -n "$ac_ct_CC"; then
3488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493   IFS=$as_save_IFS
3494   test -z "$as_dir" && as_dir=.
3495     for ac_exec_ext in '' $ac_executable_extensions; do
3496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497     ac_cv_prog_ac_ct_CC="gcc"
3498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499     break 2
3500   fi
3501 done
3502   done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3508 if test -n "$ac_ct_CC"; then
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510 $as_echo "$ac_ct_CC" >&6; }
3511 else
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 fi
3515
3516   if test "x$ac_ct_CC" = x; then
3517     CC=""
3518   else
3519     case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3524 esac
3525     CC=$ac_ct_CC
3526   fi
3527 else
3528   CC="$ac_cv_prog_CC"
3529 fi
3530
3531 if test -z "$CC"; then
3532           if test -n "$ac_tool_prefix"; then
3533     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}cc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   if test -n "$CC"; then
3541   ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546   IFS=$as_save_IFS
3547   test -z "$as_dir" && as_dir=.
3548     for ac_exec_ext in '' $ac_executable_extensions; do
3549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550     ac_cv_prog_CC="${ac_tool_prefix}cc"
3551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552     break 2
3553   fi
3554 done
3555   done
3556 IFS=$as_save_IFS
3557
3558 fi
3559 fi
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 fi
3568
3569
3570   fi
3571 fi
3572 if test -z "$CC"; then
3573   # Extract the first word of "cc", so it can be a program name with args.
3574 set dummy cc; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_CC+set}" = set; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   if test -n "$CC"; then
3581   ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583   ac_prog_rejected=no
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587   IFS=$as_save_IFS
3588   test -z "$as_dir" && as_dir=.
3589     for ac_exec_ext in '' $ac_executable_extensions; do
3590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3592        ac_prog_rejected=yes
3593        continue
3594      fi
3595     ac_cv_prog_CC="cc"
3596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597     break 2
3598   fi
3599 done
3600   done
3601 IFS=$as_save_IFS
3602
3603 if test $ac_prog_rejected = yes; then
3604   # We found a bogon in the path, so make sure we never use it.
3605   set dummy $ac_cv_prog_CC
3606   shift
3607   if test $# != 0; then
3608     # We chose a different compiler from the bogus one.
3609     # However, it has the same basename, so the bogon will be chosen
3610     # first if we set CC to just the basename; use the full file name.
3611     shift
3612     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3613   fi
3614 fi
3615 fi
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3621 else
3622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626
3627 fi
3628 if test -z "$CC"; then
3629   if test -n "$ac_tool_prefix"; then
3630   for ac_prog in cl.exe
3631   do
3632     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then :
3637   $as_echo_n "(cached) " >&6
3638 else
3639   if test -n "$CC"; then
3640   ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645   IFS=$as_save_IFS
3646   test -z "$as_dir" && as_dir=.
3647     for ac_exec_ext in '' $ac_executable_extensions; do
3648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654   done
3655 IFS=$as_save_IFS
3656
3657 fi
3658 fi
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3663 else
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 fi
3667
3668
3669     test -n "$CC" && break
3670   done
3671 fi
3672 if test -z "$CC"; then
3673   ac_ct_CC=$CC
3674   for ac_prog in cl.exe
3675 do
3676   # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy $ac_prog; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   if test -n "$ac_ct_CC"; then
3684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691     for ac_exec_ext in '' $ac_executable_extensions; do
3692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693     ac_cv_prog_ac_ct_CC="$ac_prog"
3694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695     break 2
3696   fi
3697 done
3698   done
3699 IFS=$as_save_IFS
3700
3701 fi
3702 fi
3703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3704 if test -n "$ac_ct_CC"; then
3705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3706 $as_echo "$ac_ct_CC" >&6; }
3707 else
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 fi
3711
3712
3713   test -n "$ac_ct_CC" && break
3714 done
3715
3716   if test "x$ac_ct_CC" = x; then
3717     CC=""
3718   else
3719     case $cross_compiling:$ac_tool_warned in
3720 yes:)
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3723 ac_tool_warned=yes ;;
3724 esac
3725     CC=$ac_ct_CC
3726   fi
3727 fi
3728
3729 fi
3730
3731
3732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error "no acceptable C compiler found in \$PATH
3735 See \`config.log' for more details." "$LINENO" 5; }
3736
3737 # Provide some information about the compiler.
3738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3739 set X $ac_compile
3740 ac_compiler=$2
3741 for ac_option in --version -v -V -qversion; do
3742   { { ac_try="$ac_compiler $ac_option >&5"
3743 case "(($ac_try" in
3744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745   *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3750   ac_status=$?
3751   if test -s conftest.err; then
3752     sed '10a\
3753 ... rest of stderr output deleted ...
3754          10q' conftest.err >conftest.er1
3755     cat conftest.er1 >&5
3756     rm -f conftest.er1 conftest.err
3757   fi
3758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759   test $ac_status = 0; }
3760 done
3761
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h.  */
3764 #include <stdio.h>
3765 int
3766 main ()
3767 {
3768 FILE *f = fopen ("conftest.out", "w");
3769  return ferror (f) || fclose (f) != 0;
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 ac_clean_files_save=$ac_clean_files
3776 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3777 # Try to create an executable without -o first, disregard a.out.
3778 # It will help us diagnose broken compilers, and finding out an intuition
3779 # of exeext.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3781 $as_echo_n "checking for C compiler default output file name... " >&6; }
3782 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3783
3784 # The possible output files:
3785 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3786
3787 ac_rmfiles=
3788 for ac_file in $ac_files
3789 do
3790   case $ac_file in
3791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3793   esac
3794 done
3795 rm -f $ac_rmfiles
3796
3797 if { { ac_try="$ac_link_default"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_link_default") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; then :
3808   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3809 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3810 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3811 # so that the user can short-circuit this test for compilers unknown to
3812 # Autoconf.
3813 for ac_file in $ac_files ''
3814 do
3815   test -f "$ac_file" || continue
3816   case $ac_file in
3817     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3818         ;;
3819     [ab].out )
3820         # We found the default executable, but exeext='' is most
3821         # certainly right.
3822         break;;
3823     *.* )
3824         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3825         then :; else
3826            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3827         fi
3828         # We set ac_cv_exeext here because the later test for it is not
3829         # safe: cross compilers may not add the suffix if given an `-o'
3830         # argument, so we may need to know it at that point already.
3831         # Even if this section looks crufty: it has the advantage of
3832         # actually working.
3833         break;;
3834     * )
3835         break;;
3836   esac
3837 done
3838 test "$ac_cv_exeext" = no && ac_cv_exeext=
3839
3840 else
3841   ac_file=''
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3844 $as_echo "$ac_file" >&6; }
3845 if test -z "$ac_file"; then :
3846   $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 { as_fn_set_status 77
3852 as_fn_error "C compiler cannot create executables
3853 See \`config.log' for more details." "$LINENO" 5; }; }
3854 fi
3855 ac_exeext=$ac_cv_exeext
3856
3857 # Check that the compiler produces executables we can run.  If not, either
3858 # the compiler is broken, or we cross compile.
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3860 $as_echo_n "checking whether the C compiler works... " >&6; }
3861 # If not cross compiling, check that we can run a simple program.
3862 if test "$cross_compiling" != yes; then
3863   if { ac_try='./$ac_file'
3864   { { case "(($ac_try" in
3865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866   *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870   (eval "$ac_try") 2>&5
3871   ac_status=$?
3872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873   test $ac_status = 0; }; }; then
3874     cross_compiling=no
3875   else
3876     if test "$cross_compiling" = maybe; then
3877         cross_compiling=yes
3878     else
3879         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error "cannot run C compiled programs.
3882 If you meant to cross compile, use \`--host'.
3883 See \`config.log' for more details." "$LINENO" 5; }
3884     fi
3885   fi
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3889
3890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3891 ac_clean_files=$ac_clean_files_save
3892 # Check that the compiler produces executables we can run.  If not, either
3893 # the compiler is broken, or we cross compile.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3895 $as_echo_n "checking whether we are cross compiling... " >&6; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3898
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3900 $as_echo_n "checking for suffix of executables... " >&6; }
3901 if { { ac_try="$ac_link"
3902 case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908   (eval "$ac_link") 2>&5
3909   ac_status=$?
3910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911   test $ac_status = 0; }; then :
3912   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3913 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3914 # work properly (i.e., refer to `conftest.exe'), while it won't with
3915 # `rm'.
3916 for ac_file in conftest.exe conftest conftest.*; do
3917   test -f "$ac_file" || continue
3918   case $ac_file in
3919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921           break;;
3922     * ) break;;
3923   esac
3924 done
3925 else
3926   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error "cannot compute suffix of executables: cannot compile and link
3929 See \`config.log' for more details." "$LINENO" 5; }
3930 fi
3931 rm -f conftest$ac_cv_exeext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3933 $as_echo "$ac_cv_exeext" >&6; }
3934
3935 rm -f conftest.$ac_ext
3936 EXEEXT=$ac_cv_exeext
3937 ac_exeext=$EXEEXT
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3939 $as_echo_n "checking for suffix of object files... " >&6; }
3940 if test "${ac_cv_objext+set}" = set; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h.  */
3945
3946 int
3947 main ()
3948 {
3949
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest.o conftest.obj
3955 if { { ac_try="$ac_compile"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962   (eval "$ac_compile") 2>&5
3963   ac_status=$?
3964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965   test $ac_status = 0; }; then :
3966   for ac_file in conftest.o conftest.obj conftest.*; do
3967   test -f "$ac_file" || continue;
3968   case $ac_file in
3969     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3970     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3971        break;;
3972   esac
3973 done
3974 else
3975   $as_echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of object files: cannot compile
3981 See \`config.log' for more details." "$LINENO" 5; }
3982 fi
3983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3986 $as_echo "$ac_cv_objext" >&6; }
3987 OBJEXT=$ac_cv_objext
3988 ac_objext=$OBJEXT
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3990 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3991 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h.  */
3996
3997 int
3998 main ()
3999 {
4000 #ifndef __GNUC__
4001        choke me
4002 #endif
4003
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009   ac_compiler_gnu=yes
4010 else
4011   ac_compiler_gnu=no
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4015
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4018 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4019 if test $ac_compiler_gnu = yes; then
4020   GCC=yes
4021 else
4022   GCC=
4023 fi
4024 ac_test_CFLAGS=${CFLAGS+set}
4025 ac_save_CFLAGS=$CFLAGS
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4027 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4028 if test "${ac_cv_prog_cc_g+set}" = set; then :
4029   $as_echo_n "(cached) " >&6
4030 else
4031   ac_save_c_werror_flag=$ac_c_werror_flag
4032    ac_c_werror_flag=yes
4033    ac_cv_prog_cc_g=no
4034    CFLAGS="-g"
4035    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h.  */
4037
4038 int
4039 main ()
4040 {
4041
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047   ac_cv_prog_cc_g=yes
4048 else
4049   CFLAGS=""
4050       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h.  */
4052
4053 int
4054 main ()
4055 {
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062
4063 else
4064   ac_c_werror_flag=$ac_save_c_werror_flag
4065          CFLAGS="-g"
4066          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068
4069 int
4070 main ()
4071 {
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078   ac_cv_prog_cc_g=yes
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 fi
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085    ac_c_werror_flag=$ac_save_c_werror_flag
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4088 $as_echo "$ac_cv_prog_cc_g" >&6; }
4089 if test "$ac_test_CFLAGS" = set; then
4090   CFLAGS=$ac_save_CFLAGS
4091 elif test $ac_cv_prog_cc_g = yes; then
4092   if test "$GCC" = yes; then
4093     CFLAGS="-g -O2"
4094   else
4095     CFLAGS="-g"
4096   fi
4097 else
4098   if test "$GCC" = yes; then
4099     CFLAGS="-O2"
4100   else
4101     CFLAGS=
4102   fi
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4105 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4106 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4107   $as_echo_n "(cached) " >&6
4108 else
4109   ac_cv_prog_cc_c89=no
4110 ac_save_CC=$CC
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113 #include <stdarg.h>
4114 #include <stdio.h>
4115 #include <sys/types.h>
4116 #include <sys/stat.h>
4117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4118 struct buf { int x; };
4119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4120 static char *e (p, i)
4121      char **p;
4122      int i;
4123 {
4124   return p[i];
4125 }
4126 static char *f (char * (*g) (char **, int), char **p, ...)
4127 {
4128   char *s;
4129   va_list v;
4130   va_start (v,p);
4131   s = g (p, va_arg (v,int));
4132   va_end (v);
4133   return s;
4134 }
4135
4136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4137    function prototypes and stuff, but not '\xHH' hex character constants.
4138    These don't provoke an error unfortunately, instead are silently treated
4139    as 'x'.  The following induces an error, until -std is added to get
4140    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4141    array size at least.  It's necessary to write '\x00'==0 to get something
4142    that's true only with -std.  */
4143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4144
4145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4146    inside strings and character constants.  */
4147 #define FOO(x) 'x'
4148 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4149
4150 int test (int i, double x);
4151 struct s1 {int (*f) (int a);};
4152 struct s2 {int (*f) (double a);};
4153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4154 int argc;
4155 char **argv;
4156 int
4157 main ()
4158 {
4159 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4165         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4166 do
4167   CC="$ac_save_CC $ac_arg"
4168   if ac_fn_c_try_compile "$LINENO"; then :
4169   ac_cv_prog_cc_c89=$ac_arg
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext
4172   test "x$ac_cv_prog_cc_c89" != "xno" && break
4173 done
4174 rm -f conftest.$ac_ext
4175 CC=$ac_save_CC
4176
4177 fi
4178 # AC_CACHE_VAL
4179 case "x$ac_cv_prog_cc_c89" in
4180   x)
4181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182 $as_echo "none needed" >&6; } ;;
4183   xno)
4184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185 $as_echo "unsupported" >&6; } ;;
4186   *)
4187     CC="$CC $ac_cv_prog_cc_c89"
4188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4190 esac
4191 if test "x$ac_cv_prog_cc_c89" != xno; then :
4192
4193 fi
4194
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 DEPDIR="${am__leading_dot}deps"
4201
4202 ac_config_commands="$ac_config_commands depfiles"
4203
4204
4205 am_make=${MAKE-make}
4206 cat > confinc << 'END'
4207 am__doit:
4208         @echo this is the am__doit target
4209 .PHONY: am__doit
4210 END
4211 # If we don't find an include directive, just comment out the code.
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4214 am__include="#"
4215 am__quote=
4216 _am_result=none
4217 # First try GNU make style include.
4218 echo "include confinc" > confmf
4219 # Ignore all kinds of additional output from `make'.
4220 case `$am_make -s -f confmf 2> /dev/null` in #(
4221 *the\ am__doit\ target*)
4222   am__include=include
4223   am__quote=
4224   _am_result=GNU
4225   ;;
4226 esac
4227 # Now try BSD make style include.
4228 if test "$am__include" = "#"; then
4229    echo '.include "confinc"' > confmf
4230    case `$am_make -s -f confmf 2> /dev/null` in #(
4231    *the\ am__doit\ target*)
4232      am__include=.include
4233      am__quote="\""
4234      _am_result=BSD
4235      ;;
4236    esac
4237 fi
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4241 $as_echo "$_am_result" >&6; }
4242 rm -f confinc confmf
4243
4244 # Check whether --enable-dependency-tracking was given.
4245 if test "${enable_dependency_tracking+set}" = set; then :
4246   enableval=$enable_dependency_tracking;
4247 fi
4248
4249 if test "x$enable_dependency_tracking" != xno; then
4250   am_depcomp="$ac_aux_dir/depcomp"
4251   AMDEPBACKSLASH='\'
4252 fi
4253  if test "x$enable_dependency_tracking" != xno; then
4254   AMDEP_TRUE=
4255   AMDEP_FALSE='#'
4256 else
4257   AMDEP_TRUE='#'
4258   AMDEP_FALSE=
4259 fi
4260
4261
4262
4263 depcc="$CC"   am_compiler_list=
4264
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4266 $as_echo_n "checking dependency style of $depcc... " >&6; }
4267 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4271   # We make a subdir and do the tests there.  Otherwise we can end up
4272   # making bogus files that we don't know about and never remove.  For
4273   # instance it was reported that on HP-UX the gcc test will end up
4274   # making a dummy file named `D' -- because `-MD' means `put the output
4275   # in D'.
4276   mkdir conftest.dir
4277   # Copy depcomp to subdir because otherwise we won't find it if we're
4278   # using a relative directory.
4279   cp "$am_depcomp" conftest.dir
4280   cd conftest.dir
4281   # We will build objects and dependencies in a subdirectory because
4282   # it helps to detect inapplicable dependency modes.  For instance
4283   # both Tru64's cc and ICC support -MD to output dependencies as a
4284   # side effect of compilation, but ICC will put the dependencies in
4285   # the current directory while Tru64 will put them in the object
4286   # directory.
4287   mkdir sub
4288
4289   am_cv_CC_dependencies_compiler_type=none
4290   if test "$am_compiler_list" = ""; then
4291      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4292   fi
4293   am__universal=false
4294   case " $depcc " in #(
4295      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4296      esac
4297
4298   for depmode in $am_compiler_list; do
4299     # Setup a source with many dependencies, because some compilers
4300     # like to wrap large dependency lists on column 80 (with \), and
4301     # we should not choose a depcomp mode which is confused by this.
4302     #
4303     # We need to recreate these files for each test, as the compiler may
4304     # overwrite some of them when testing with obscure command lines.
4305     # This happens at least with the AIX C compiler.
4306     : > sub/conftest.c
4307     for i in 1 2 3 4 5 6; do
4308       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4309       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4310       # Solaris 8's {/usr,}/bin/sh.
4311       touch sub/conftst$i.h
4312     done
4313     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4314
4315     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4316     # mode.  It turns out that the SunPro C++ compiler does not properly
4317     # handle `-M -o', and we need to detect this.  Also, some Intel
4318     # versions had trouble with output in subdirs
4319     am__obj=sub/conftest.${OBJEXT-o}
4320     am__minus_obj="-o $am__obj"
4321     case $depmode in
4322     gcc)
4323       # This depmode causes a compiler race in universal mode.
4324       test "$am__universal" = false || continue
4325       ;;
4326     nosideeffect)
4327       # after this tag, mechanisms are not by side-effect, so they'll
4328       # only be used when explicitly requested
4329       if test "x$enable_dependency_tracking" = xyes; then
4330         continue
4331       else
4332         break
4333       fi
4334       ;;
4335     msvisualcpp | msvcmsys)
4336       # This compiler won't grok `-c -o', but also, the minuso test has
4337       # not run yet.  These depmodes are late enough in the game, and
4338       # so weak that their functioning should not be impacted.
4339       am__obj=conftest.${OBJEXT-o}
4340       am__minus_obj=
4341       ;;
4342     none) break ;;
4343     esac
4344     if depmode=$depmode \
4345        source=sub/conftest.c object=$am__obj \
4346        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4347        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4348          >/dev/null 2>conftest.err &&
4349        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4350        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4351        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4352        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4353       # icc doesn't choke on unknown options, it will just issue warnings
4354       # or remarks (even with -Werror).  So we grep stderr for any message
4355       # that says an option was ignored or not supported.
4356       # When given -MP, icc 7.0 and 7.1 complain thusly:
4357       #   icc: Command line warning: ignoring option '-M'; no argument required
4358       # The diagnosis changed in icc 8.0:
4359       #   icc: Command line remark: option '-MP' not supported
4360       if (grep 'ignoring option' conftest.err ||
4361           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4362         am_cv_CC_dependencies_compiler_type=$depmode
4363         break
4364       fi
4365     fi
4366   done
4367
4368   cd ..
4369   rm -rf conftest.dir
4370 else
4371   am_cv_CC_dependencies_compiler_type=none
4372 fi
4373
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4376 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4377 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4378
4379  if
4380   test "x$enable_dependency_tracking" != xno \
4381   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4382   am__fastdepCC_TRUE=
4383   am__fastdepCC_FALSE='#'
4384 else
4385   am__fastdepCC_TRUE='#'
4386   am__fastdepCC_FALSE=
4387 fi
4388
4389
4390
4391
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4398 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4399 # On Suns, sometimes $CPP names a directory.
4400 if test -n "$CPP" && test -d "$CPP"; then
4401   CPP=
4402 fi
4403 if test -z "$CPP"; then
4404   if test "${ac_cv_prog_CPP+set}" = set; then :
4405   $as_echo_n "(cached) " >&6
4406 else
4407       # Double quotes because CPP needs to be expanded
4408     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4409     do
4410       ac_preproc_ok=false
4411 for ac_c_preproc_warn_flag in '' yes
4412 do
4413   # Use a header file that comes with gcc, so configuring glibc
4414   # with a fresh cross-compiler works.
4415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416   # <limits.h> exists even on freestanding compilers.
4417   # On the NeXT, cc -E runs the code through the compiler's parser,
4418   # not just through cpp. "Syntax error" is here to catch this case.
4419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h.  */
4421 #ifdef __STDC__
4422 # include <limits.h>
4423 #else
4424 # include <assert.h>
4425 #endif
4426                      Syntax error
4427 _ACEOF
4428 if ac_fn_c_try_cpp "$LINENO"; then :
4429
4430 else
4431   # Broken: fails on valid input.
4432 continue
4433 fi
4434 rm -f conftest.err conftest.$ac_ext
4435
4436   # OK, works on sane cases.  Now check whether nonexistent headers
4437   # can be detected and how.
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440 #include <ac_nonexistent.h>
4441 _ACEOF
4442 if ac_fn_c_try_cpp "$LINENO"; then :
4443   # Broken: success on invalid input.
4444 continue
4445 else
4446   # Passes both tests.
4447 ac_preproc_ok=:
4448 break
4449 fi
4450 rm -f conftest.err conftest.$ac_ext
4451
4452 done
4453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4454 rm -f conftest.err conftest.$ac_ext
4455 if $ac_preproc_ok; then :
4456   break
4457 fi
4458
4459     done
4460     ac_cv_prog_CPP=$CPP
4461
4462 fi
4463   CPP=$ac_cv_prog_CPP
4464 else
4465   ac_cv_prog_CPP=$CPP
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4468 $as_echo "$CPP" >&6; }
4469 ac_preproc_ok=false
4470 for ac_c_preproc_warn_flag in '' yes
4471 do
4472   # Use a header file that comes with gcc, so configuring glibc
4473   # with a fresh cross-compiler works.
4474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475   # <limits.h> exists even on freestanding compilers.
4476   # On the NeXT, cc -E runs the code through the compiler's parser,
4477   # not just through cpp. "Syntax error" is here to catch this case.
4478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h.  */
4480 #ifdef __STDC__
4481 # include <limits.h>
4482 #else
4483 # include <assert.h>
4484 #endif
4485                      Syntax error
4486 _ACEOF
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4488
4489 else
4490   # Broken: fails on valid input.
4491 continue
4492 fi
4493 rm -f conftest.err conftest.$ac_ext
4494
4495   # OK, works on sane cases.  Now check whether nonexistent headers
4496   # can be detected and how.
4497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h.  */
4499 #include <ac_nonexistent.h>
4500 _ACEOF
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502   # Broken: success on invalid input.
4503 continue
4504 else
4505   # Passes both tests.
4506 ac_preproc_ok=:
4507 break
4508 fi
4509 rm -f conftest.err conftest.$ac_ext
4510
4511 done
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4515
4516 else
4517   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." "$LINENO" 5; }
4521 fi
4522
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4531 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4532 if test "${ac_cv_path_GREP+set}" = set; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535   if test -z "$GREP"; then
4536   ac_path_GREP_found=false
4537   # Loop through the user's path and test for each of PROGNAME-LIST
4538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543     for ac_prog in grep ggrep; do
4544     for ac_exec_ext in '' $ac_executable_extensions; do
4545       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4546       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4547 # Check for GNU ac_path_GREP and select it if it is found.
4548   # Check for GNU $ac_path_GREP
4549 case `"$ac_path_GREP" --version 2>&1` in
4550 *GNU*)
4551   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4552 *)
4553   ac_count=0
4554   $as_echo_n 0123456789 >"conftest.in"
4555   while :
4556   do
4557     cat "conftest.in" "conftest.in" >"conftest.tmp"
4558     mv "conftest.tmp" "conftest.in"
4559     cp "conftest.in" "conftest.nl"
4560     $as_echo 'GREP' >> "conftest.nl"
4561     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4562     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4563     as_fn_arith $ac_count + 1 && ac_count=$as_val
4564     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4565       # Best one so far, save it but keep looking for a better one
4566       ac_cv_path_GREP="$ac_path_GREP"
4567       ac_path_GREP_max=$ac_count
4568     fi
4569     # 10*(2^10) chars as input seems more than enough
4570     test $ac_count -gt 10 && break
4571   done
4572   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4573 esac
4574
4575       $ac_path_GREP_found && break 3
4576     done
4577   done
4578   done
4579 IFS=$as_save_IFS
4580   if test -z "$ac_cv_path_GREP"; then
4581     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4582   fi
4583 else
4584   ac_cv_path_GREP=$GREP
4585 fi
4586
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4589 $as_echo "$ac_cv_path_GREP" >&6; }
4590  GREP="$ac_cv_path_GREP"
4591
4592
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4594 $as_echo_n "checking for egrep... " >&6; }
4595 if test "${ac_cv_path_EGREP+set}" = set; then :
4596   $as_echo_n "(cached) " >&6
4597 else
4598   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4599    then ac_cv_path_EGREP="$GREP -E"
4600    else
4601      if test -z "$EGREP"; then
4602   ac_path_EGREP_found=false
4603   # Loop through the user's path and test for each of PROGNAME-LIST
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609     for ac_prog in egrep; do
4610     for ac_exec_ext in '' $ac_executable_extensions; do
4611       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4612       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4613 # Check for GNU ac_path_EGREP and select it if it is found.
4614   # Check for GNU $ac_path_EGREP
4615 case `"$ac_path_EGREP" --version 2>&1` in
4616 *GNU*)
4617   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4618 *)
4619   ac_count=0
4620   $as_echo_n 0123456789 >"conftest.in"
4621   while :
4622   do
4623     cat "conftest.in" "conftest.in" >"conftest.tmp"
4624     mv "conftest.tmp" "conftest.in"
4625     cp "conftest.in" "conftest.nl"
4626     $as_echo 'EGREP' >> "conftest.nl"
4627     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629     as_fn_arith $ac_count + 1 && ac_count=$as_val
4630     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4631       # Best one so far, save it but keep looking for a better one
4632       ac_cv_path_EGREP="$ac_path_EGREP"
4633       ac_path_EGREP_max=$ac_count
4634     fi
4635     # 10*(2^10) chars as input seems more than enough
4636     test $ac_count -gt 10 && break
4637   done
4638   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4640
4641       $ac_path_EGREP_found && break 3
4642     done
4643   done
4644   done
4645 IFS=$as_save_IFS
4646   if test -z "$ac_cv_path_EGREP"; then
4647     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4648   fi
4649 else
4650   ac_cv_path_EGREP=$EGREP
4651 fi
4652
4653    fi
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4656 $as_echo "$ac_cv_path_EGREP" >&6; }
4657  EGREP="$ac_cv_path_EGREP"
4658
4659
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4661 $as_echo_n "checking for ANSI C header files... " >&6; }
4662 if test "${ac_cv_header_stdc+set}" = set; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h.  */
4667 #include <stdlib.h>
4668 #include <stdarg.h>
4669 #include <string.h>
4670 #include <float.h>
4671
4672 int
4673 main ()
4674 {
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681   ac_cv_header_stdc=yes
4682 else
4683   ac_cv_header_stdc=no
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686
4687 if test $ac_cv_header_stdc = yes; then
4688   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h.  */
4691 #include <string.h>
4692
4693 _ACEOF
4694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4695   $EGREP "memchr" >/dev/null 2>&1; then :
4696
4697 else
4698   ac_cv_header_stdc=no
4699 fi
4700 rm -f conftest*
4701
4702 fi
4703
4704 if test $ac_cv_header_stdc = yes; then
4705   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h.  */
4708 #include <stdlib.h>
4709
4710 _ACEOF
4711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4712   $EGREP "free" >/dev/null 2>&1; then :
4713
4714 else
4715   ac_cv_header_stdc=no
4716 fi
4717 rm -f conftest*
4718
4719 fi
4720
4721 if test $ac_cv_header_stdc = yes; then
4722   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4723   if test "$cross_compiling" = yes; then :
4724   :
4725 else
4726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h.  */
4728 #include <ctype.h>
4729 #include <stdlib.h>
4730 #if ((' ' & 0x0FF) == 0x020)
4731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4733 #else
4734 # define ISLOWER(c) \
4735                    (('a' <= (c) && (c) <= 'i') \
4736                      || ('j' <= (c) && (c) <= 'r') \
4737                      || ('s' <= (c) && (c) <= 'z'))
4738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4739 #endif
4740
4741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4742 int
4743 main ()
4744 {
4745   int i;
4746   for (i = 0; i < 256; i++)
4747     if (XOR (islower (i), ISLOWER (i))
4748         || toupper (i) != TOUPPER (i))
4749       return 2;
4750   return 0;
4751 }
4752 _ACEOF
4753 if ac_fn_c_try_run "$LINENO"; then :
4754
4755 else
4756   ac_cv_header_stdc=no
4757 fi
4758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4759   conftest.$ac_objext conftest.beam conftest.$ac_ext
4760 fi
4761
4762 fi
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4765 $as_echo "$ac_cv_header_stdc" >&6; }
4766 if test $ac_cv_header_stdc = yes; then
4767
4768 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4769
4770 fi
4771
4772
4773 case `pwd` in
4774   *\ * | *\     *)
4775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4776 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4777 esac
4778
4779
4780
4781 macro_version='2.2.6'
4782 macro_revision='1.3012'
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 ltmain="$ac_aux_dir/ltmain.sh"
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4799 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4800 if test "${ac_cv_path_SED+set}" = set; then :
4801   $as_echo_n "(cached) " >&6
4802 else
4803             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4804      for ac_i in 1 2 3 4 5 6 7; do
4805        ac_script="$ac_script$as_nl$ac_script"
4806      done
4807      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4808      { ac_script=; unset ac_script;}
4809      if test -z "$SED"; then
4810   ac_path_SED_found=false
4811   # Loop through the user's path and test for each of PROGNAME-LIST
4812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815   IFS=$as_save_IFS
4816   test -z "$as_dir" && as_dir=.
4817     for ac_prog in sed gsed; do
4818     for ac_exec_ext in '' $ac_executable_extensions; do
4819       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4820       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4821 # Check for GNU ac_path_SED and select it if it is found.
4822   # Check for GNU $ac_path_SED
4823 case `"$ac_path_SED" --version 2>&1` in
4824 *GNU*)
4825   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4826 *)
4827   ac_count=0
4828   $as_echo_n 0123456789 >"conftest.in"
4829   while :
4830   do
4831     cat "conftest.in" "conftest.in" >"conftest.tmp"
4832     mv "conftest.tmp" "conftest.in"
4833     cp "conftest.in" "conftest.nl"
4834     $as_echo '' >> "conftest.nl"
4835     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4836     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4837     as_fn_arith $ac_count + 1 && ac_count=$as_val
4838     if test $ac_count -gt ${ac_path_SED_max-0}; then
4839       # Best one so far, save it but keep looking for a better one
4840       ac_cv_path_SED="$ac_path_SED"
4841       ac_path_SED_max=$ac_count
4842     fi
4843     # 10*(2^10) chars as input seems more than enough
4844     test $ac_count -gt 10 && break
4845   done
4846   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4847 esac
4848
4849       $ac_path_SED_found && break 3
4850     done
4851   done
4852   done
4853 IFS=$as_save_IFS
4854   if test -z "$ac_cv_path_SED"; then
4855     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4856   fi
4857 else
4858   ac_cv_path_SED=$SED
4859 fi
4860
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4863 $as_echo "$ac_cv_path_SED" >&6; }
4864  SED="$ac_cv_path_SED"
4865   rm -f conftest.sed
4866
4867 test -z "$SED" && SED=sed
4868 Xsed="$SED -e 1s/^X//"
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4881 $as_echo_n "checking for fgrep... " >&6; }
4882 if test "${ac_cv_path_FGREP+set}" = set; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4886    then ac_cv_path_FGREP="$GREP -F"
4887    else
4888      if test -z "$FGREP"; then
4889   ac_path_FGREP_found=false
4890   # Loop through the user's path and test for each of PROGNAME-LIST
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896     for ac_prog in fgrep; do
4897     for ac_exec_ext in '' $ac_executable_extensions; do
4898       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4899       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4900 # Check for GNU ac_path_FGREP and select it if it is found.
4901   # Check for GNU $ac_path_FGREP
4902 case `"$ac_path_FGREP" --version 2>&1` in
4903 *GNU*)
4904   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4905 *)
4906   ac_count=0
4907   $as_echo_n 0123456789 >"conftest.in"
4908   while :
4909   do
4910     cat "conftest.in" "conftest.in" >"conftest.tmp"
4911     mv "conftest.tmp" "conftest.in"
4912     cp "conftest.in" "conftest.nl"
4913     $as_echo 'FGREP' >> "conftest.nl"
4914     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916     as_fn_arith $ac_count + 1 && ac_count=$as_val
4917     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4918       # Best one so far, save it but keep looking for a better one
4919       ac_cv_path_FGREP="$ac_path_FGREP"
4920       ac_path_FGREP_max=$ac_count
4921     fi
4922     # 10*(2^10) chars as input seems more than enough
4923     test $ac_count -gt 10 && break
4924   done
4925   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926 esac
4927
4928       $ac_path_FGREP_found && break 3
4929     done
4930   done
4931   done
4932 IFS=$as_save_IFS
4933   if test -z "$ac_cv_path_FGREP"; then
4934     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4935   fi
4936 else
4937   ac_cv_path_FGREP=$FGREP
4938 fi
4939
4940    fi
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4943 $as_echo "$ac_cv_path_FGREP" >&6; }
4944  FGREP="$ac_cv_path_FGREP"
4945
4946
4947 test -z "$GREP" && GREP=grep
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967 # Check whether --with-gnu-ld was given.
4968 if test "${with_gnu_ld+set}" = set; then :
4969   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4970 else
4971   with_gnu_ld=no
4972 fi
4973
4974 ac_prog=ld
4975 if test "$GCC" = yes; then
4976   # Check if gcc -print-prog-name=ld gives a path.
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4978 $as_echo_n "checking for ld used by $CC... " >&6; }
4979   case $host in
4980   *-*-mingw*)
4981     # gcc leaves a trailing carriage return which upsets mingw
4982     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4983   *)
4984     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4985   esac
4986   case $ac_prog in
4987     # Accept absolute paths.
4988     [\\/]* | ?:[\\/]*)
4989       re_direlt='/[^/][^/]*/\.\./'
4990       # Canonicalize the pathname of ld
4991       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4992       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4993         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4994       done
4995       test -z "$LD" && LD="$ac_prog"
4996       ;;
4997   "")
4998     # If it fails, then pretend we aren't using GCC.
4999     ac_prog=ld
5000     ;;
5001   *)
5002     # If it is relative, then search for the first ld in PATH.
5003     with_gnu_ld=unknown
5004     ;;
5005   esac
5006 elif test "$with_gnu_ld" = yes; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5008 $as_echo_n "checking for GNU ld... " >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5011 $as_echo_n "checking for non-GNU ld... " >&6; }
5012 fi
5013 if test "${lt_cv_path_LD+set}" = set; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   if test -z "$LD"; then
5017   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5018   for ac_dir in $PATH; do
5019     IFS="$lt_save_ifs"
5020     test -z "$ac_dir" && ac_dir=.
5021     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5022       lt_cv_path_LD="$ac_dir/$ac_prog"
5023       # Check to see if the program is GNU ld.  I'd rather use --version,
5024       # but apparently some variants of GNU ld only accept -v.
5025       # Break only if it was the GNU/non-GNU ld that we prefer.
5026       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5027       *GNU* | *'with BFD'*)
5028         test "$with_gnu_ld" != no && break
5029         ;;
5030       *)
5031         test "$with_gnu_ld" != yes && break
5032         ;;
5033       esac
5034     fi
5035   done
5036   IFS="$lt_save_ifs"
5037 else
5038   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5039 fi
5040 fi
5041
5042 LD="$lt_cv_path_LD"
5043 if test -n "$LD"; then
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5045 $as_echo "$LD" >&6; }
5046 else
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5052 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5053 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5057 case `$LD -v 2>&1 </dev/null` in
5058 *GNU* | *'with BFD'*)
5059   lt_cv_prog_gnu_ld=yes
5060   ;;
5061 *)
5062   lt_cv_prog_gnu_ld=no
5063   ;;
5064 esac
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5067 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5068 with_gnu_ld=$lt_cv_prog_gnu_ld
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5079 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5080 if test "${lt_cv_path_NM+set}" = set; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   if test -n "$NM"; then
5084   # Let the user override the test.
5085   lt_cv_path_NM="$NM"
5086 else
5087   lt_nm_to_check="${ac_tool_prefix}nm"
5088   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5089     lt_nm_to_check="$lt_nm_to_check nm"
5090   fi
5091   for lt_tmp_nm in $lt_nm_to_check; do
5092     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5093     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5094       IFS="$lt_save_ifs"
5095       test -z "$ac_dir" && ac_dir=.
5096       tmp_nm="$ac_dir/$lt_tmp_nm"
5097       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5098         # Check to see if the nm accepts a BSD-compat flag.
5099         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5100         #   nm: unknown option "B" ignored
5101         # Tru64's nm complains that /dev/null is an invalid object file
5102         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5103         */dev/null* | *'Invalid file or object type'*)
5104           lt_cv_path_NM="$tmp_nm -B"
5105           break
5106           ;;
5107         *)
5108           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5109           */dev/null*)
5110             lt_cv_path_NM="$tmp_nm -p"
5111             break
5112             ;;
5113           *)
5114             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5115             continue # so that we can try to find one that supports BSD flags
5116             ;;
5117           esac
5118           ;;
5119         esac
5120       fi
5121     done
5122     IFS="$lt_save_ifs"
5123   done
5124   : ${lt_cv_path_NM=no}
5125 fi
5126 fi
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5128 $as_echo "$lt_cv_path_NM" >&6; }
5129 if test "$lt_cv_path_NM" != "no"; then
5130   NM="$lt_cv_path_NM"
5131 else
5132   # Didn't find any BSD compatible name lister, look for dumpbin.
5133   if test -n "$ac_tool_prefix"; then
5134   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5135   do
5136     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   if test -n "$DUMPBIN"; then
5144   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151     for ac_exec_ext in '' $ac_executable_extensions; do
5152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158   done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 DUMPBIN=$ac_cv_prog_DUMPBIN
5164 if test -n "$DUMPBIN"; then
5165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5166 $as_echo "$DUMPBIN" >&6; }
5167 else
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172
5173     test -n "$DUMPBIN" && break
5174   done
5175 fi
5176 if test -z "$DUMPBIN"; then
5177   ac_ct_DUMPBIN=$DUMPBIN
5178   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5179 do
5180   # Extract the first word of "$ac_prog", so it can be a program name with args.
5181 set dummy $ac_prog; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   if test -n "$ac_ct_DUMPBIN"; then
5188   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195     for ac_exec_ext in '' $ac_executable_extensions; do
5196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202   done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5208 if test -n "$ac_ct_DUMPBIN"; then
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5210 $as_echo "$ac_ct_DUMPBIN" >&6; }
5211 else
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 fi
5215
5216
5217   test -n "$ac_ct_DUMPBIN" && break
5218 done
5219
5220   if test "x$ac_ct_DUMPBIN" = x; then
5221     DUMPBIN=":"
5222   else
5223     case $cross_compiling:$ac_tool_warned in
5224 yes:)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229     DUMPBIN=$ac_ct_DUMPBIN
5230   fi
5231 fi
5232
5233
5234   if test "$DUMPBIN" != ":"; then
5235     NM="$DUMPBIN"
5236   fi
5237 fi
5238 test -z "$NM" && NM=nm
5239
5240
5241
5242
5243
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5246 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5247 if test "${lt_cv_nm_interface+set}" = set; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   lt_cv_nm_interface="BSD nm"
5251   echo "int some_variable = 0;" > conftest.$ac_ext
5252   (eval echo "\"\$as_me:5252: $ac_compile\"" >&5)
5253   (eval "$ac_compile" 2>conftest.err)
5254   cat conftest.err >&5
5255   (eval echo "\"\$as_me:5255: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5256   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5257   cat conftest.err >&5
5258   (eval echo "\"\$as_me:5258: output\"" >&5)
5259   cat conftest.out >&5
5260   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5261     lt_cv_nm_interface="MS dumpbin"
5262   fi
5263   rm -f conftest*
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5266 $as_echo "$lt_cv_nm_interface" >&6; }
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5269 $as_echo_n "checking whether ln -s works... " >&6; }
5270 LN_S=$as_ln_s
5271 if test "$LN_S" = "ln -s"; then
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273 $as_echo "yes" >&6; }
5274 else
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5276 $as_echo "no, using $LN_S" >&6; }
5277 fi
5278
5279 # find the maximum length of command line arguments
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5281 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5282 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285     i=0
5286   teststring="ABCD"
5287
5288   case $build_os in
5289   msdosdjgpp*)
5290     # On DJGPP, this test can blow up pretty badly due to problems in libc
5291     # (any single argument exceeding 2000 bytes causes a buffer overrun
5292     # during glob expansion).  Even if it were fixed, the result of this
5293     # check would be larger than it should be.
5294     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5295     ;;
5296
5297   gnu*)
5298     # Under GNU Hurd, this test is not required because there is
5299     # no limit to the length of command line arguments.
5300     # Libtool will interpret -1 as no limit whatsoever
5301     lt_cv_sys_max_cmd_len=-1;
5302     ;;
5303
5304   cygwin* | mingw* | cegcc*)
5305     # On Win9x/ME, this test blows up -- it succeeds, but takes
5306     # about 5 minutes as the teststring grows exponentially.
5307     # Worse, since 9x/ME are not pre-emptively multitasking,
5308     # you end up with a "frozen" computer, even though with patience
5309     # the test eventually succeeds (with a max line length of 256k).
5310     # Instead, let's just punt: use the minimum linelength reported by
5311     # all of the supported platforms: 8192 (on NT/2K/XP).
5312     lt_cv_sys_max_cmd_len=8192;
5313     ;;
5314
5315   amigaos*)
5316     # On AmigaOS with pdksh, this test takes hours, literally.
5317     # So we just punt and use a minimum line length of 8192.
5318     lt_cv_sys_max_cmd_len=8192;
5319     ;;
5320
5321   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5322     # This has been around since 386BSD, at least.  Likely further.
5323     if test -x /sbin/sysctl; then
5324       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5325     elif test -x /usr/sbin/sysctl; then
5326       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5327     else
5328       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5329     fi
5330     # And add a safety zone
5331     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5332     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5333     ;;
5334
5335   interix*)
5336     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5337     lt_cv_sys_max_cmd_len=196608
5338     ;;
5339
5340   osf*)
5341     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5342     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5343     # nice to cause kernel panics so lets avoid the loop below.
5344     # First set a reasonable default.
5345     lt_cv_sys_max_cmd_len=16384
5346     #
5347     if test -x /sbin/sysconfig; then
5348       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5349         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5350       esac
5351     fi
5352     ;;
5353   sco3.2v5*)
5354     lt_cv_sys_max_cmd_len=102400
5355     ;;
5356   sysv5* | sco5v6* | sysv4.2uw2*)
5357     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5358     if test -n "$kargmax"; then
5359       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5360     else
5361       lt_cv_sys_max_cmd_len=32768
5362     fi
5363     ;;
5364   *)
5365     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5366     if test -n "$lt_cv_sys_max_cmd_len"; then
5367       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5368       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5369     else
5370       # Make teststring a little bigger before we do anything with it.
5371       # a 1K string should be a reasonable start.
5372       for i in 1 2 3 4 5 6 7 8 ; do
5373         teststring=$teststring$teststring
5374       done
5375       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5376       # If test is not a shell built-in, we'll probably end up computing a
5377       # maximum length that is only half of the actual maximum length, but
5378       # we can't tell.
5379       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5380                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5381               test $i != 17 # 1/2 MB should be enough
5382       do
5383         i=`expr $i + 1`
5384         teststring=$teststring$teststring
5385       done
5386       # Only check the string length outside the loop.
5387       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5388       teststring=
5389       # Add a significant safety factor because C++ compilers can tack on
5390       # massive amounts of additional arguments before passing them to the
5391       # linker.  It appears as though 1/2 is a usable value.
5392       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5393     fi
5394     ;;
5395   esac
5396
5397 fi
5398
5399 if test -n $lt_cv_sys_max_cmd_len ; then
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5401 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5402 else
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5404 $as_echo "none" >&6; }
5405 fi
5406 max_cmd_len=$lt_cv_sys_max_cmd_len
5407
5408
5409
5410
5411
5412
5413 : ${CP="cp -f"}
5414 : ${MV="mv -f"}
5415 : ${RM="rm -f"}
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5418 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5419 # Try some XSI features
5420 xsi_shell=no
5421 ( _lt_dummy="a/b/c"
5422   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5423       = c,a/b,, \
5424     && eval 'test $(( 1 + 1 )) -eq 2 \
5425     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5426   && xsi_shell=yes
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5428 $as_echo "$xsi_shell" >&6; }
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5432 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5433 lt_shell_append=no
5434 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5435     >/dev/null 2>&1 \
5436   && lt_shell_append=yes
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5438 $as_echo "$lt_shell_append" >&6; }
5439
5440
5441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5442   lt_unset=unset
5443 else
5444   lt_unset=false
5445 fi
5446
5447
5448
5449
5450
5451 # test EBCDIC or ASCII
5452 case `echo X|tr X '\101'` in
5453  A) # ASCII based system
5454     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5455   lt_SP2NL='tr \040 \012'
5456   lt_NL2SP='tr \015\012 \040\040'
5457   ;;
5458  *) # EBCDIC based system
5459   lt_SP2NL='tr \100 \n'
5460   lt_NL2SP='tr \r\n \100\100'
5461   ;;
5462 esac
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5473 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5474 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   lt_cv_ld_reload_flag='-r'
5478 fi
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5480 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5481 reload_flag=$lt_cv_ld_reload_flag
5482 case $reload_flag in
5483 "" | " "*) ;;
5484 *) reload_flag=" $reload_flag" ;;
5485 esac
5486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5487 case $host_os in
5488   darwin*)
5489     if test "$GCC" = yes; then
5490       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5491     else
5492       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5493     fi
5494     ;;
5495 esac
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 if test -n "$ac_tool_prefix"; then
5506   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -n "$OBJDUMP"; then
5514   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521     for ac_exec_ext in '' $ac_executable_extensions; do
5522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528   done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 OBJDUMP=$ac_cv_prog_OBJDUMP
5534 if test -n "$OBJDUMP"; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5536 $as_echo "$OBJDUMP" >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543 fi
5544 if test -z "$ac_cv_prog_OBJDUMP"; then
5545   ac_ct_OBJDUMP=$OBJDUMP
5546   # Extract the first word of "objdump", so it can be a program name with args.
5547 set dummy objdump; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5551   $as_echo_n "(cached) " >&6
5552 else
5553   if test -n "$ac_ct_OBJDUMP"; then
5554   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561     for ac_exec_ext in '' $ac_executable_extensions; do
5562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568   done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5574 if test -n "$ac_ct_OBJDUMP"; then
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5576 $as_echo "$ac_ct_OBJDUMP" >&6; }
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582   if test "x$ac_ct_OBJDUMP" = x; then
5583     OBJDUMP="false"
5584   else
5585     case $cross_compiling:$ac_tool_warned in
5586 yes:)
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589 ac_tool_warned=yes ;;
5590 esac
5591     OBJDUMP=$ac_ct_OBJDUMP
5592   fi
5593 else
5594   OBJDUMP="$ac_cv_prog_OBJDUMP"
5595 fi
5596
5597 test -z "$OBJDUMP" && OBJDUMP=objdump
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5608 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5609 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   lt_cv_file_magic_cmd='$MAGIC_CMD'
5613 lt_cv_file_magic_test_file=
5614 lt_cv_deplibs_check_method='unknown'
5615 # Need to set the preceding variable on all platforms that support
5616 # interlibrary dependencies.
5617 # 'none' -- dependencies not supported.
5618 # `unknown' -- same as none, but documents that we really don't know.
5619 # 'pass_all' -- all dependencies passed with no checks.
5620 # 'test_compile' -- check by making test program.
5621 # 'file_magic [[regex]]' -- check by looking for files in library path
5622 # which responds to the $file_magic_cmd with a given extended regex.
5623 # If you have `file' or equivalent on your system and you're not sure
5624 # whether `pass_all' will *always* work, you probably want this one.
5625
5626 case $host_os in
5627 aix[4-9]*)
5628   lt_cv_deplibs_check_method=pass_all
5629   ;;
5630
5631 beos*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 bsdi[45]*)
5636   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5637   lt_cv_file_magic_cmd='/usr/bin/file -L'
5638   lt_cv_file_magic_test_file=/shlib/libc.so
5639   ;;
5640
5641 cygwin*)
5642   # func_win32_libid is a shell function defined in ltmain.sh
5643   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5644   lt_cv_file_magic_cmd='func_win32_libid'
5645   ;;
5646
5647 mingw* | pw32*)
5648   # Base MSYS/MinGW do not provide the 'file' command needed by
5649   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5650   # unless we find 'file', for example because we are cross-compiling.
5651   if ( file / ) >/dev/null 2>&1; then
5652     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5653     lt_cv_file_magic_cmd='func_win32_libid'
5654   else
5655     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5656     lt_cv_file_magic_cmd='$OBJDUMP -f'
5657   fi
5658   ;;
5659
5660 cegcc)
5661   # use the weaker test based on 'objdump'. See mingw*.
5662   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5663   lt_cv_file_magic_cmd='$OBJDUMP -f'
5664   ;;
5665
5666 darwin* | rhapsody*)
5667   lt_cv_deplibs_check_method=pass_all
5668   ;;
5669
5670 freebsd* | dragonfly*)
5671   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5672     case $host_cpu in
5673     i*86 )
5674       # Not sure whether the presence of OpenBSD here was a mistake.
5675       # Let's accept both of them until this is cleared up.
5676       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5677       lt_cv_file_magic_cmd=/usr/bin/file
5678       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5679       ;;
5680     esac
5681   else
5682     lt_cv_deplibs_check_method=pass_all
5683   fi
5684   ;;
5685
5686 gnu*)
5687   lt_cv_deplibs_check_method=pass_all
5688   ;;
5689
5690 hpux10.20* | hpux11*)
5691   lt_cv_file_magic_cmd=/usr/bin/file
5692   case $host_cpu in
5693   ia64*)
5694     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5695     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5696     ;;
5697   hppa*64*)
5698     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5699     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5700     ;;
5701   *)
5702     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5703     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5704     ;;
5705   esac
5706   ;;
5707
5708 interix[3-9]*)
5709   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5710   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5711   ;;
5712
5713 irix5* | irix6* | nonstopux*)
5714   case $LD in
5715   *-32|*"-32 ") libmagic=32-bit;;
5716   *-n32|*"-n32 ") libmagic=N32;;
5717   *-64|*"-64 ") libmagic=64-bit;;
5718   *) libmagic=never-match;;
5719   esac
5720   lt_cv_deplibs_check_method=pass_all
5721   ;;
5722
5723 # This must be Linux ELF.
5724 linux* | k*bsd*-gnu)
5725   lt_cv_deplibs_check_method=pass_all
5726   ;;
5727
5728 netbsd* | netbsdelf*-gnu)
5729   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5730     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5731   else
5732     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5733   fi
5734   ;;
5735
5736 newos6*)
5737   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5738   lt_cv_file_magic_cmd=/usr/bin/file
5739   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5740   ;;
5741
5742 *nto* | *qnx*)
5743   lt_cv_deplibs_check_method=pass_all
5744   ;;
5745
5746 openbsd*)
5747   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5748     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5749   else
5750     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5751   fi
5752   ;;
5753
5754 osf3* | osf4* | osf5*)
5755   lt_cv_deplibs_check_method=pass_all
5756   ;;
5757
5758 rdos*)
5759   lt_cv_deplibs_check_method=pass_all
5760   ;;
5761
5762 solaris*)
5763   lt_cv_deplibs_check_method=pass_all
5764   ;;
5765
5766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5767   lt_cv_deplibs_check_method=pass_all
5768   ;;
5769
5770 sysv4 | sysv4.3*)
5771   case $host_vendor in
5772   motorola)
5773     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]'
5774     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5775     ;;
5776   ncr)
5777     lt_cv_deplibs_check_method=pass_all
5778     ;;
5779   sequent)
5780     lt_cv_file_magic_cmd='/bin/file'
5781     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5782     ;;
5783   sni)
5784     lt_cv_file_magic_cmd='/bin/file'
5785     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5786     lt_cv_file_magic_test_file=/lib/libc.so
5787     ;;
5788   siemens)
5789     lt_cv_deplibs_check_method=pass_all
5790     ;;
5791   pc)
5792     lt_cv_deplibs_check_method=pass_all
5793     ;;
5794   esac
5795   ;;
5796
5797 tpf*)
5798   lt_cv_deplibs_check_method=pass_all
5799   ;;
5800 esac
5801
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5804 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5805 file_magic_cmd=$lt_cv_file_magic_cmd
5806 deplibs_check_method=$lt_cv_deplibs_check_method
5807 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 if test -n "$ac_tool_prefix"; then
5821   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5822 set dummy ${ac_tool_prefix}ar; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if test "${ac_cv_prog_AR+set}" = set; then :
5826   $as_echo_n "(cached) " >&6
5827 else
5828   if test -n "$AR"; then
5829   ac_cv_prog_AR="$AR" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836     for ac_exec_ext in '' $ac_executable_extensions; do
5837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838     ac_cv_prog_AR="${ac_tool_prefix}ar"
5839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843   done
5844 IFS=$as_save_IFS
5845
5846 fi
5847 fi
5848 AR=$ac_cv_prog_AR
5849 if test -n "$AR"; then
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5851 $as_echo "$AR" >&6; }
5852 else
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5855 fi
5856
5857
5858 fi
5859 if test -z "$ac_cv_prog_AR"; then
5860   ac_ct_AR=$AR
5861   # Extract the first word of "ar", so it can be a program name with args.
5862 set dummy ar; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5866   $as_echo_n "(cached) " >&6
5867 else
5868   if test -n "$ac_ct_AR"; then
5869   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876     for ac_exec_ext in '' $ac_executable_extensions; do
5877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878     ac_cv_prog_ac_ct_AR="ar"
5879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883   done
5884 IFS=$as_save_IFS
5885
5886 fi
5887 fi
5888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5889 if test -n "$ac_ct_AR"; then
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5891 $as_echo "$ac_ct_AR" >&6; }
5892 else
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896
5897   if test "x$ac_ct_AR" = x; then
5898     AR="false"
5899   else
5900     case $cross_compiling:$ac_tool_warned in
5901 yes:)
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904 ac_tool_warned=yes ;;
5905 esac
5906     AR=$ac_ct_AR
5907   fi
5908 else
5909   AR="$ac_cv_prog_AR"
5910 fi
5911
5912 test -z "$AR" && AR=ar
5913 test -z "$AR_FLAGS" && AR_FLAGS=cru
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 if test -n "$ac_tool_prefix"; then
5926   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}strip; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if test "${ac_cv_prog_STRIP+set}" = set; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   if test -n "$STRIP"; then
5934   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941     for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948   done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 STRIP=$ac_cv_prog_STRIP
5954 if test -n "$STRIP"; then
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5956 $as_echo "$STRIP" >&6; }
5957 else
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961
5962
5963 fi
5964 if test -z "$ac_cv_prog_STRIP"; then
5965   ac_ct_STRIP=$STRIP
5966   # Extract the first word of "strip", so it can be a program name with args.
5967 set dummy strip; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5971   $as_echo_n "(cached) " >&6
5972 else
5973   if test -n "$ac_ct_STRIP"; then
5974   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981     for ac_exec_ext in '' $ac_executable_extensions; do
5982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983     ac_cv_prog_ac_ct_STRIP="strip"
5984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988   done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5994 if test -n "$ac_ct_STRIP"; then
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5996 $as_echo "$ac_ct_STRIP" >&6; }
5997 else
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001
6002   if test "x$ac_ct_STRIP" = x; then
6003     STRIP=":"
6004   else
6005     case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6010 esac
6011     STRIP=$ac_ct_STRIP
6012   fi
6013 else
6014   STRIP="$ac_cv_prog_STRIP"
6015 fi
6016
6017 test -z "$STRIP" && STRIP=:
6018
6019
6020
6021
6022
6023
6024 if test -n "$ac_tool_prefix"; then
6025   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   if test -n "$RANLIB"; then
6033   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040     for ac_exec_ext in '' $ac_executable_extensions; do
6041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047   done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6056 else
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064   ac_ct_RANLIB=$RANLIB
6065   # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   if test -n "$ac_ct_RANLIB"; then
6073   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080     for ac_exec_ext in '' $ac_executable_extensions; do
6081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082     ac_cv_prog_ac_ct_RANLIB="ranlib"
6083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087   done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101   if test "x$ac_ct_RANLIB" = x; then
6102     RANLIB=":"
6103   else
6104     case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110     RANLIB=$ac_ct_RANLIB
6111   fi
6112 else
6113   RANLIB="$ac_cv_prog_RANLIB"
6114 fi
6115
6116 test -z "$RANLIB" && RANLIB=:
6117
6118
6119
6120
6121
6122
6123 # Determine commands to create old-style static archives.
6124 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6125 old_postinstall_cmds='chmod 644 $oldlib'
6126 old_postuninstall_cmds=
6127
6128 if test -n "$RANLIB"; then
6129   case $host_os in
6130   openbsd*)
6131     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6132     ;;
6133   *)
6134     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6135     ;;
6136   esac
6137   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6138 fi
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173 # If no C compiler was specified, use CC.
6174 LTCC=${LTCC-"$CC"}
6175
6176 # If no C compiler flags were specified, use CFLAGS.
6177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6178
6179 # Allow CC to be a program name with arguments.
6180 compiler=$CC
6181
6182
6183 # Check for command to grab the raw symbol name followed by C symbol from nm.
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6185 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6186 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6187   $as_echo_n "(cached) " >&6
6188 else
6189
6190 # These are sane defaults that work on at least a few old systems.
6191 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6192
6193 # Character class describing NM global symbol codes.
6194 symcode='[BCDEGRST]'
6195
6196 # Regexp to match symbols that can be accessed directly from C.
6197 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6198
6199 # Define system-specific variables.
6200 case $host_os in
6201 aix*)
6202   symcode='[BCDT]'
6203   ;;
6204 cygwin* | mingw* | pw32* | cegcc*)
6205   symcode='[ABCDGISTW]'
6206   ;;
6207 hpux*)
6208   if test "$host_cpu" = ia64; then
6209     symcode='[ABCDEGRST]'
6210   fi
6211   ;;
6212 irix* | nonstopux*)
6213   symcode='[BCDEGRST]'
6214   ;;
6215 osf*)
6216   symcode='[BCDEGQRST]'
6217   ;;
6218 solaris*)
6219   symcode='[BDRT]'
6220   ;;
6221 sco3.2v5*)
6222   symcode='[DT]'
6223   ;;
6224 sysv4.2uw2*)
6225   symcode='[DT]'
6226   ;;
6227 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6228   symcode='[ABDT]'
6229   ;;
6230 sysv4)
6231   symcode='[DFNSTU]'
6232   ;;
6233 esac
6234
6235 # If we're using GNU nm, then use its standard symbol codes.
6236 case `$NM -V 2>&1` in
6237 *GNU* | *'with BFD'*)
6238   symcode='[ABCDGIRSTW]' ;;
6239 esac
6240
6241 # Transform an extracted symbol line into a proper C declaration.
6242 # Some systems (esp. on ia64) link data and code symbols differently,
6243 # so use this general approach.
6244 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6245
6246 # Transform an extracted symbol line into symbol name and symbol address
6247 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6248 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6249
6250 # Handle CRLF in mingw tool chain
6251 opt_cr=
6252 case $build_os in
6253 mingw*)
6254   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6255   ;;
6256 esac
6257
6258 # Try without a prefix underscore, then with it.
6259 for ac_symprfx in "" "_"; do
6260
6261   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6262   symxfrm="\\1 $ac_symprfx\\2 \\2"
6263
6264   # Write the raw and C identifiers.
6265   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6266     # Fake it for dumpbin and say T for any non-static function
6267     # and D for any global variable.
6268     # Also find C++ and __fastcall symbols from MSVC++,
6269     # which start with @ or ?.
6270     lt_cv_sys_global_symbol_pipe="$AWK '"\
6271 "     {last_section=section; section=\$ 3};"\
6272 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6273 "     \$ 0!~/External *\|/{next};"\
6274 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6275 "     {if(hide[section]) next};"\
6276 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6277 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6278 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6279 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6280 "     ' prfx=^$ac_symprfx"
6281   else
6282     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6283   fi
6284
6285   # Check to see that the pipe works correctly.
6286   pipe_works=no
6287
6288   rm -f conftest*
6289   cat > conftest.$ac_ext <<_LT_EOF
6290 #ifdef __cplusplus
6291 extern "C" {
6292 #endif
6293 char nm_test_var;
6294 void nm_test_func(void);
6295 void nm_test_func(void){}
6296 #ifdef __cplusplus
6297 }
6298 #endif
6299 int main(){nm_test_var='a';nm_test_func();return(0);}
6300 _LT_EOF
6301
6302   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303   (eval $ac_compile) 2>&5
6304   ac_status=$?
6305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306   test $ac_status = 0; }; then
6307     # Now try to grab the symbols.
6308     nlist=conftest.nm
6309     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6310   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6311   ac_status=$?
6312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313   test $ac_status = 0; } && test -s "$nlist"; then
6314       # Try sorting and uniquifying the output.
6315       if sort "$nlist" | uniq > "$nlist"T; then
6316         mv -f "$nlist"T "$nlist"
6317       else
6318         rm -f "$nlist"T
6319       fi
6320
6321       # Make sure that we snagged all the symbols we need.
6322       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6323         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6324           cat <<_LT_EOF > conftest.$ac_ext
6325 #ifdef __cplusplus
6326 extern "C" {
6327 #endif
6328
6329 _LT_EOF
6330           # Now generate the symbol file.
6331           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6332
6333           cat <<_LT_EOF >> conftest.$ac_ext
6334
6335 /* The mapping between symbol names and symbols.  */
6336 const struct {
6337   const char *name;
6338   void       *address;
6339 }
6340 lt__PROGRAM__LTX_preloaded_symbols[] =
6341 {
6342   { "@PROGRAM@", (void *) 0 },
6343 _LT_EOF
6344           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6345           cat <<\_LT_EOF >> conftest.$ac_ext
6346   {0, (void *) 0}
6347 };
6348
6349 /* This works around a problem in FreeBSD linker */
6350 #ifdef FREEBSD_WORKAROUND
6351 static const void *lt_preloaded_setup() {
6352   return lt__PROGRAM__LTX_preloaded_symbols;
6353 }
6354 #endif
6355
6356 #ifdef __cplusplus
6357 }
6358 #endif
6359 _LT_EOF
6360           # Now try linking the two files.
6361           mv conftest.$ac_objext conftstm.$ac_objext
6362           lt_save_LIBS="$LIBS"
6363           lt_save_CFLAGS="$CFLAGS"
6364           LIBS="conftstm.$ac_objext"
6365           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6366           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6367   (eval $ac_link) 2>&5
6368   ac_status=$?
6369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6371             pipe_works=yes
6372           fi
6373           LIBS="$lt_save_LIBS"
6374           CFLAGS="$lt_save_CFLAGS"
6375         else
6376           echo "cannot find nm_test_func in $nlist" >&5
6377         fi
6378       else
6379         echo "cannot find nm_test_var in $nlist" >&5
6380       fi
6381     else
6382       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6383     fi
6384   else
6385     echo "$progname: failed program was:" >&5
6386     cat conftest.$ac_ext >&5
6387   fi
6388   rm -rf conftest* conftst*
6389
6390   # Do not use the global_symbol_pipe unless it works.
6391   if test "$pipe_works" = yes; then
6392     break
6393   else
6394     lt_cv_sys_global_symbol_pipe=
6395   fi
6396 done
6397
6398 fi
6399
6400 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6401   lt_cv_sys_global_symbol_to_cdecl=
6402 fi
6403 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6405 $as_echo "failed" >&6; }
6406 else
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6408 $as_echo "ok" >&6; }
6409 fi
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432 # Check whether --enable-libtool-lock was given.
6433 if test "${enable_libtool_lock+set}" = set; then :
6434   enableval=$enable_libtool_lock;
6435 fi
6436
6437 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6438
6439 # Some flags need to be propagated to the compiler or linker for good
6440 # libtool support.
6441 case $host in
6442 ia64-*-hpux*)
6443   # Find out which ABI we are using.
6444   echo 'int i;' > conftest.$ac_ext
6445   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446   (eval $ac_compile) 2>&5
6447   ac_status=$?
6448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449   test $ac_status = 0; }; then
6450     case `/usr/bin/file conftest.$ac_objext` in
6451       *ELF-32*)
6452         HPUX_IA64_MODE="32"
6453         ;;
6454       *ELF-64*)
6455         HPUX_IA64_MODE="64"
6456         ;;
6457     esac
6458   fi
6459   rm -rf conftest*
6460   ;;
6461 *-*-irix6*)
6462   # Find out which ABI we are using.
6463   echo '#line 6463 "configure"' > conftest.$ac_ext
6464   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465   (eval $ac_compile) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; }; then
6469     if test "$lt_cv_prog_gnu_ld" = yes; then
6470       case `/usr/bin/file conftest.$ac_objext` in
6471         *32-bit*)
6472           LD="${LD-ld} -melf32bsmip"
6473           ;;
6474         *N32*)
6475           LD="${LD-ld} -melf32bmipn32"
6476           ;;
6477         *64-bit*)
6478           LD="${LD-ld} -melf64bmip"
6479         ;;
6480       esac
6481     else
6482       case `/usr/bin/file conftest.$ac_objext` in
6483         *32-bit*)
6484           LD="${LD-ld} -32"
6485           ;;
6486         *N32*)
6487           LD="${LD-ld} -n32"
6488           ;;
6489         *64-bit*)
6490           LD="${LD-ld} -64"
6491           ;;
6492       esac
6493     fi
6494   fi
6495   rm -rf conftest*
6496   ;;
6497
6498 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6499 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6500   # Find out which ABI we are using.
6501   echo 'int i;' > conftest.$ac_ext
6502   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503   (eval $ac_compile) 2>&5
6504   ac_status=$?
6505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506   test $ac_status = 0; }; then
6507     case `/usr/bin/file conftest.o` in
6508       *32-bit*)
6509         case $host in
6510           x86_64-*kfreebsd*-gnu)
6511             LD="${LD-ld} -m elf_i386_fbsd"
6512             ;;
6513           x86_64-*linux*)
6514             LD="${LD-ld} -m elf_i386"
6515             ;;
6516           ppc64-*linux*|powerpc64-*linux*)
6517             LD="${LD-ld} -m elf32ppclinux"
6518             ;;
6519           s390x-*linux*)
6520             LD="${LD-ld} -m elf_s390"
6521             ;;
6522           sparc64-*linux*)
6523             LD="${LD-ld} -m elf32_sparc"
6524             ;;
6525         esac
6526         ;;
6527       *64-bit*)
6528         case $host in
6529           x86_64-*kfreebsd*-gnu)
6530             LD="${LD-ld} -m elf_x86_64_fbsd"
6531             ;;
6532           x86_64-*linux*)
6533             LD="${LD-ld} -m elf_x86_64"
6534             ;;
6535           ppc*-*linux*|powerpc*-*linux*)
6536             LD="${LD-ld} -m elf64ppc"
6537             ;;
6538           s390*-*linux*|s390*-*tpf*)
6539             LD="${LD-ld} -m elf64_s390"
6540             ;;
6541           sparc*-*linux*)
6542             LD="${LD-ld} -m elf64_sparc"
6543             ;;
6544         esac
6545         ;;
6546     esac
6547   fi
6548   rm -rf conftest*
6549   ;;
6550
6551 *-*-sco3.2v5*)
6552   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6553   SAVE_CFLAGS="$CFLAGS"
6554   CFLAGS="$CFLAGS -belf"
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6556 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6557 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   ac_ext=c
6561 ac_cpp='$CPP $CPPFLAGS'
6562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565
6566      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h.  */
6568
6569 int
6570 main ()
6571 {
6572
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 if ac_fn_c_try_link "$LINENO"; then :
6578   lt_cv_cc_needs_belf=yes
6579 else
6580   lt_cv_cc_needs_belf=no
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext \
6583     conftest$ac_exeext conftest.$ac_ext
6584      ac_ext=c
6585 ac_cpp='$CPP $CPPFLAGS'
6586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589
6590 fi
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6592 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6593   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6594     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6595     CFLAGS="$SAVE_CFLAGS"
6596   fi
6597   ;;
6598 sparc*-*solaris*)
6599   # Find out which ABI we are using.
6600   echo 'int i;' > conftest.$ac_ext
6601   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6602   (eval $ac_compile) 2>&5
6603   ac_status=$?
6604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605   test $ac_status = 0; }; then
6606     case `/usr/bin/file conftest.o` in
6607     *64-bit*)
6608       case $lt_cv_prog_gnu_ld in
6609       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6610       *)
6611         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6612           LD="${LD-ld} -64"
6613         fi
6614         ;;
6615       esac
6616       ;;
6617     esac
6618   fi
6619   rm -rf conftest*
6620   ;;
6621 esac
6622
6623 need_locks="$enable_libtool_lock"
6624
6625
6626   case $host_os in
6627     rhapsody* | darwin*)
6628     if test -n "$ac_tool_prefix"; then
6629   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6634   $as_echo_n "(cached) " >&6
6635 else
6636   if test -n "$DSYMUTIL"; then
6637   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644     for ac_exec_ext in '' $ac_executable_extensions; do
6645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651   done
6652 IFS=$as_save_IFS
6653
6654 fi
6655 fi
6656 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6657 if test -n "$DSYMUTIL"; then
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6659 $as_echo "$DSYMUTIL" >&6; }
6660 else
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665
6666 fi
6667 if test -z "$ac_cv_prog_DSYMUTIL"; then
6668   ac_ct_DSYMUTIL=$DSYMUTIL
6669   # Extract the first word of "dsymutil", so it can be a program name with args.
6670 set dummy dsymutil; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   if test -n "$ac_ct_DSYMUTIL"; then
6677   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6697 if test -n "$ac_ct_DSYMUTIL"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6699 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705   if test "x$ac_ct_DSYMUTIL" = x; then
6706     DSYMUTIL=":"
6707   else
6708     case $cross_compiling:$ac_tool_warned in
6709 yes:)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714     DSYMUTIL=$ac_ct_DSYMUTIL
6715   fi
6716 else
6717   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6718 fi
6719
6720     if test -n "$ac_tool_prefix"; then
6721   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6726   $as_echo_n "(cached) " >&6
6727 else
6728   if test -n "$NMEDIT"; then
6729   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736     for ac_exec_ext in '' $ac_executable_extensions; do
6737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743   done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 NMEDIT=$ac_cv_prog_NMEDIT
6749 if test -n "$NMEDIT"; then
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6751 $as_echo "$NMEDIT" >&6; }
6752 else
6753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757
6758 fi
6759 if test -z "$ac_cv_prog_NMEDIT"; then
6760   ac_ct_NMEDIT=$NMEDIT
6761   # Extract the first word of "nmedit", so it can be a program name with args.
6762 set dummy nmedit; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6766   $as_echo_n "(cached) " >&6
6767 else
6768   if test -n "$ac_ct_NMEDIT"; then
6769   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776     for ac_exec_ext in '' $ac_executable_extensions; do
6777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783   done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6789 if test -n "$ac_ct_NMEDIT"; then
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6791 $as_echo "$ac_ct_NMEDIT" >&6; }
6792 else
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797   if test "x$ac_ct_NMEDIT" = x; then
6798     NMEDIT=":"
6799   else
6800     case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806     NMEDIT=$ac_ct_NMEDIT
6807   fi
6808 else
6809   NMEDIT="$ac_cv_prog_NMEDIT"
6810 fi
6811
6812     if test -n "$ac_tool_prefix"; then
6813   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if test "${ac_cv_prog_LIPO+set}" = set; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   if test -n "$LIPO"; then
6821   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828     for ac_exec_ext in '' $ac_executable_extensions; do
6829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835   done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 LIPO=$ac_cv_prog_LIPO
6841 if test -n "$LIPO"; then
6842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6843 $as_echo "$LIPO" >&6; }
6844 else
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849
6850 fi
6851 if test -z "$ac_cv_prog_LIPO"; then
6852   ac_ct_LIPO=$LIPO
6853   # Extract the first word of "lipo", so it can be a program name with args.
6854 set dummy lipo; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   if test -n "$ac_ct_LIPO"; then
6861   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868     for ac_exec_ext in '' $ac_executable_extensions; do
6869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870     ac_cv_prog_ac_ct_LIPO="lipo"
6871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872     break 2
6873   fi
6874 done
6875   done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6881 if test -n "$ac_ct_LIPO"; then
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6883 $as_echo "$ac_ct_LIPO" >&6; }
6884 else
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 fi
6888
6889   if test "x$ac_ct_LIPO" = x; then
6890     LIPO=":"
6891   else
6892     case $cross_compiling:$ac_tool_warned in
6893 yes:)
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898     LIPO=$ac_ct_LIPO
6899   fi
6900 else
6901   LIPO="$ac_cv_prog_LIPO"
6902 fi
6903
6904     if test -n "$ac_tool_prefix"; then
6905   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}otool; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   if test -n "$OTOOL"; then
6913   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920     for ac_exec_ext in '' $ac_executable_extensions; do
6921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927   done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 OTOOL=$ac_cv_prog_OTOOL
6933 if test -n "$OTOOL"; then
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6935 $as_echo "$OTOOL" >&6; }
6936 else
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941
6942 fi
6943 if test -z "$ac_cv_prog_OTOOL"; then
6944   ac_ct_OTOOL=$OTOOL
6945   # Extract the first word of "otool", so it can be a program name with args.
6946 set dummy otool; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   if test -n "$ac_ct_OTOOL"; then
6953   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960     for ac_exec_ext in '' $ac_executable_extensions; do
6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962     ac_cv_prog_ac_ct_OTOOL="otool"
6963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967   done
6968 IFS=$as_save_IFS
6969
6970 fi
6971 fi
6972 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6973 if test -n "$ac_ct_OTOOL"; then
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6975 $as_echo "$ac_ct_OTOOL" >&6; }
6976 else
6977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6979 fi
6980
6981   if test "x$ac_ct_OTOOL" = x; then
6982     OTOOL=":"
6983   else
6984     case $cross_compiling:$ac_tool_warned in
6985 yes:)
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6988 ac_tool_warned=yes ;;
6989 esac
6990     OTOOL=$ac_ct_OTOOL
6991   fi
6992 else
6993   OTOOL="$ac_cv_prog_OTOOL"
6994 fi
6995
6996     if test -n "$ac_tool_prefix"; then
6997   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6998 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   if test -n "$OTOOL64"; then
7005   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012     for ac_exec_ext in '' $ac_executable_extensions; do
7013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019   done
7020 IFS=$as_save_IFS
7021
7022 fi
7023 fi
7024 OTOOL64=$ac_cv_prog_OTOOL64
7025 if test -n "$OTOOL64"; then
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7027 $as_echo "$OTOOL64" >&6; }
7028 else
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032
7033
7034 fi
7035 if test -z "$ac_cv_prog_OTOOL64"; then
7036   ac_ct_OTOOL64=$OTOOL64
7037   # Extract the first word of "otool64", so it can be a program name with args.
7038 set dummy otool64; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   if test -n "$ac_ct_OTOOL64"; then
7045   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050   IFS=$as_save_IFS
7051   test -z "$as_dir" && as_dir=.
7052     for ac_exec_ext in '' $ac_executable_extensions; do
7053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054     ac_cv_prog_ac_ct_OTOOL64="otool64"
7055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056     break 2
7057   fi
7058 done
7059   done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7065 if test -n "$ac_ct_OTOOL64"; then
7066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7067 $as_echo "$ac_ct_OTOOL64" >&6; }
7068 else
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072
7073   if test "x$ac_ct_OTOOL64" = x; then
7074     OTOOL64=":"
7075   else
7076     case $cross_compiling:$ac_tool_warned in
7077 yes:)
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080 ac_tool_warned=yes ;;
7081 esac
7082     OTOOL64=$ac_ct_OTOOL64
7083   fi
7084 else
7085   OTOOL64="$ac_cv_prog_OTOOL64"
7086 fi
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7115 $as_echo_n "checking for -single_module linker flag... " >&6; }
7116 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   lt_cv_apple_cc_single_mod=no
7120       if test -z "${LT_MULTI_MODULE}"; then
7121         # By default we will add the -single_module flag. You can override
7122         # by either setting the environment variable LT_MULTI_MODULE
7123         # non-empty at configure time, or by adding -multi_module to the
7124         # link flags.
7125         rm -rf libconftest.dylib*
7126         echo "int foo(void){return 1;}" > conftest.c
7127         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7128 -dynamiclib -Wl,-single_module conftest.c" >&5
7129         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7130           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7131         _lt_result=$?
7132         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7133           lt_cv_apple_cc_single_mod=yes
7134         else
7135           cat conftest.err >&5
7136         fi
7137         rm -rf libconftest.dylib*
7138         rm -f conftest.*
7139       fi
7140 fi
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7142 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7144 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7145 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   lt_cv_ld_exported_symbols_list=no
7149       save_LDFLAGS=$LDFLAGS
7150       echo "_main" > conftest.sym
7151       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7152       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h.  */
7154
7155 int
7156 main ()
7157 {
7158
7159   ;
7160   return 0;
7161 }
7162 _ACEOF
7163 if ac_fn_c_try_link "$LINENO"; then :
7164   lt_cv_ld_exported_symbols_list=yes
7165 else
7166   lt_cv_ld_exported_symbols_list=no
7167 fi
7168 rm -f core conftest.err conftest.$ac_objext \
7169     conftest$ac_exeext conftest.$ac_ext
7170         LDFLAGS="$save_LDFLAGS"
7171
7172 fi
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7174 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7175     case $host_os in
7176     rhapsody* | darwin1.[012])
7177       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7178     darwin1.*)
7179       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7180     darwin*) # darwin 5.x on
7181       # if running on 10.5 or later, the deployment target defaults
7182       # to the OS version, if on x86, and 10.4, the deployment
7183       # target defaults to 10.4. Don't you love it?
7184       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7185         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7186           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7187         10.[012]*)
7188           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7189         10.*)
7190           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7191       esac
7192     ;;
7193   esac
7194     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7195       _lt_dar_single_mod='$single_module'
7196     fi
7197     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7198       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7199     else
7200       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7201     fi
7202     if test "$DSYMUTIL" != ":"; then
7203       _lt_dsymutil='~$DSYMUTIL $lib || :'
7204     else
7205       _lt_dsymutil=
7206     fi
7207     ;;
7208   esac
7209
7210 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7212                   inttypes.h stdint.h unistd.h
7213 do :
7214   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7215 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7216 "
7217 eval as_val=\$$as_ac_Header
7218    if test "x$as_val" = x""yes; then :
7219   cat >>confdefs.h <<_ACEOF
7220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7221 _ACEOF
7222
7223 fi
7224
7225 done
7226
7227
7228 for ac_header in dlfcn.h
7229 do :
7230   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7231 "
7232 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7233   cat >>confdefs.h <<_ACEOF
7234 #define HAVE_DLFCN_H 1
7235 _ACEOF
7236
7237 fi
7238
7239 done
7240
7241
7242
7243 # Set options
7244
7245
7246
7247         enable_dlopen=no
7248
7249
7250   enable_win32_dll=no
7251
7252
7253             # Check whether --enable-shared was given.
7254 if test "${enable_shared+set}" = set; then :
7255   enableval=$enable_shared; p=${PACKAGE-default}
7256     case $enableval in
7257     yes) enable_shared=yes ;;
7258     no) enable_shared=no ;;
7259     *)
7260       enable_shared=no
7261       # Look at the argument we got.  We use all the common list separators.
7262       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7263       for pkg in $enableval; do
7264         IFS="$lt_save_ifs"
7265         if test "X$pkg" = "X$p"; then
7266           enable_shared=yes
7267         fi
7268       done
7269       IFS="$lt_save_ifs"
7270       ;;
7271     esac
7272 else
7273   enable_shared=yes
7274 fi
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284   # Check whether --enable-static was given.
7285 if test "${enable_static+set}" = set; then :
7286   enableval=$enable_static; p=${PACKAGE-default}
7287     case $enableval in
7288     yes) enable_static=yes ;;
7289     no) enable_static=no ;;
7290     *)
7291      enable_static=no
7292       # Look at the argument we got.  We use all the common list separators.
7293       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7294       for pkg in $enableval; do
7295         IFS="$lt_save_ifs"
7296         if test "X$pkg" = "X$p"; then
7297           enable_static=yes
7298         fi
7299       done
7300       IFS="$lt_save_ifs"
7301       ;;
7302     esac
7303 else
7304   enable_static=yes
7305 fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316 # Check whether --with-pic was given.
7317 if test "${with_pic+set}" = set; then :
7318   withval=$with_pic; pic_mode="$withval"
7319 else
7320   pic_mode=default
7321 fi
7322
7323
7324 test -z "$pic_mode" && pic_mode=default
7325
7326
7327
7328
7329
7330
7331
7332   # Check whether --enable-fast-install was given.
7333 if test "${enable_fast_install+set}" = set; then :
7334   enableval=$enable_fast_install; p=${PACKAGE-default}
7335     case $enableval in
7336     yes) enable_fast_install=yes ;;
7337     no) enable_fast_install=no ;;
7338     *)
7339       enable_fast_install=no
7340       # Look at the argument we got.  We use all the common list separators.
7341       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7342       for pkg in $enableval; do
7343         IFS="$lt_save_ifs"
7344         if test "X$pkg" = "X$p"; then
7345           enable_fast_install=yes
7346         fi
7347       done
7348       IFS="$lt_save_ifs"
7349       ;;
7350     esac
7351 else
7352   enable_fast_install=yes
7353 fi
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 # This can be used to rebuild libtool when needed
7366 LIBTOOL_DEPS="$ltmain"
7367
7368 # Always use our own libtool.
7369 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 test -z "$LN_S" && LN_S="ln -s"
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410 if test -n "${ZSH_VERSION+set}" ; then
7411    setopt NO_GLOB_SUBST
7412 fi
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7415 $as_echo_n "checking for objdir... " >&6; }
7416 if test "${lt_cv_objdir+set}" = set; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   rm -f .libs 2>/dev/null
7420 mkdir .libs 2>/dev/null
7421 if test -d .libs; then
7422   lt_cv_objdir=.libs
7423 else
7424   # MS-DOS does not allow filenames that begin with a dot.
7425   lt_cv_objdir=_libs
7426 fi
7427 rmdir .libs 2>/dev/null
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7430 $as_echo "$lt_cv_objdir" >&6; }
7431 objdir=$lt_cv_objdir
7432
7433
7434
7435
7436
7437 cat >>confdefs.h <<_ACEOF
7438 #define LT_OBJDIR "$lt_cv_objdir/"
7439 _ACEOF
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457 case $host_os in
7458 aix3*)
7459   # AIX sometimes has problems with the GCC collect2 program.  For some
7460   # reason, if we set the COLLECT_NAMES environment variable, the problems
7461   # vanish in a puff of smoke.
7462   if test "X${COLLECT_NAMES+set}" != Xset; then
7463     COLLECT_NAMES=
7464     export COLLECT_NAMES
7465   fi
7466   ;;
7467 esac
7468
7469 # Sed substitution that helps us do robust quoting.  It backslashifies
7470 # metacharacters that are still active within double-quoted strings.
7471 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7472
7473 # Same as above, but do not quote variable references.
7474 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7475
7476 # Sed substitution to delay expansion of an escaped shell variable in a
7477 # double_quote_subst'ed string.
7478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7479
7480 # Sed substitution to delay expansion of an escaped single quote.
7481 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7482
7483 # Sed substitution to avoid accidental globbing in evaled expressions
7484 no_glob_subst='s/\*/\\\*/g'
7485
7486 # Global variables:
7487 ofile=libtool
7488 can_build_shared=yes
7489
7490 # All known linkers require a `.a' archive for static linking (except MSVC,
7491 # which needs '.lib').
7492 libext=a
7493
7494 with_gnu_ld="$lt_cv_prog_gnu_ld"
7495
7496 old_CC="$CC"
7497 old_CFLAGS="$CFLAGS"
7498
7499 # Set sane defaults for various variables
7500 test -z "$CC" && CC=cc
7501 test -z "$LTCC" && LTCC=$CC
7502 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7503 test -z "$LD" && LD=ld
7504 test -z "$ac_objext" && ac_objext=o
7505
7506 for cc_temp in $compiler""; do
7507   case $cc_temp in
7508     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7509     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7510     \-*) ;;
7511     *) break;;
7512   esac
7513 done
7514 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7515
7516
7517 # Only perform the check for file, if the check method requires it
7518 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7519 case $deplibs_check_method in
7520 file_magic*)
7521   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7523 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7524 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   case $MAGIC_CMD in
7528 [\\/*] |  ?:[\\/]*)
7529   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7530   ;;
7531 *)
7532   lt_save_MAGIC_CMD="$MAGIC_CMD"
7533   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7534   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7535   for ac_dir in $ac_dummy; do
7536     IFS="$lt_save_ifs"
7537     test -z "$ac_dir" && ac_dir=.
7538     if test -f $ac_dir/${ac_tool_prefix}file; then
7539       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7540       if test -n "$file_magic_test_file"; then
7541         case $deplibs_check_method in
7542         "file_magic "*)
7543           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7544           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7545           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7546             $EGREP "$file_magic_regex" > /dev/null; then
7547             :
7548           else
7549             cat <<_LT_EOF 1>&2
7550
7551 *** Warning: the command libtool uses to detect shared libraries,
7552 *** $file_magic_cmd, produces output that libtool cannot recognize.
7553 *** The result is that libtool may fail to recognize shared libraries
7554 *** as such.  This will affect the creation of libtool libraries that
7555 *** depend on shared libraries, but programs linked with such libtool
7556 *** libraries will work regardless of this problem.  Nevertheless, you
7557 *** may want to report the problem to your system manager and/or to
7558 *** bug-libtool@gnu.org
7559
7560 _LT_EOF
7561           fi ;;
7562         esac
7563       fi
7564       break
7565     fi
7566   done
7567   IFS="$lt_save_ifs"
7568   MAGIC_CMD="$lt_save_MAGIC_CMD"
7569   ;;
7570 esac
7571 fi
7572
7573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7574 if test -n "$MAGIC_CMD"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7576 $as_echo "$MAGIC_CMD" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583
7584
7585
7586 if test -z "$lt_cv_path_MAGIC_CMD"; then
7587   if test -n "$ac_tool_prefix"; then
7588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7589 $as_echo_n "checking for file... " >&6; }
7590 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   case $MAGIC_CMD in
7594 [\\/*] |  ?:[\\/]*)
7595   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7596   ;;
7597 *)
7598   lt_save_MAGIC_CMD="$MAGIC_CMD"
7599   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7600   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7601   for ac_dir in $ac_dummy; do
7602     IFS="$lt_save_ifs"
7603     test -z "$ac_dir" && ac_dir=.
7604     if test -f $ac_dir/file; then
7605       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7606       if test -n "$file_magic_test_file"; then
7607         case $deplibs_check_method in
7608         "file_magic "*)
7609           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7610           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7612             $EGREP "$file_magic_regex" > /dev/null; then
7613             :
7614           else
7615             cat <<_LT_EOF 1>&2
7616
7617 *** Warning: the command libtool uses to detect shared libraries,
7618 *** $file_magic_cmd, produces output that libtool cannot recognize.
7619 *** The result is that libtool may fail to recognize shared libraries
7620 *** as such.  This will affect the creation of libtool libraries that
7621 *** depend on shared libraries, but programs linked with such libtool
7622 *** libraries will work regardless of this problem.  Nevertheless, you
7623 *** may want to report the problem to your system manager and/or to
7624 *** bug-libtool@gnu.org
7625
7626 _LT_EOF
7627           fi ;;
7628         esac
7629       fi
7630       break
7631     fi
7632   done
7633   IFS="$lt_save_ifs"
7634   MAGIC_CMD="$lt_save_MAGIC_CMD"
7635   ;;
7636 esac
7637 fi
7638
7639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640 if test -n "$MAGIC_CMD"; then
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7642 $as_echo "$MAGIC_CMD" >&6; }
7643 else
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648
7649   else
7650     MAGIC_CMD=:
7651   fi
7652 fi
7653
7654   fi
7655   ;;
7656 esac
7657
7658 # Use C for the default configuration in the libtool script
7659
7660 lt_save_CC="$CC"
7661 ac_ext=c
7662 ac_cpp='$CPP $CPPFLAGS'
7663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666
7667
7668 # Source file extension for C test sources.
7669 ac_ext=c
7670
7671 # Object file extension for compiled C test sources.
7672 objext=o
7673 objext=$objext
7674
7675 # Code to be used in simple compile tests
7676 lt_simple_compile_test_code="int some_variable = 0;"
7677
7678 # Code to be used in simple link tests
7679 lt_simple_link_test_code='int main(){return(0);}'
7680
7681
7682
7683
7684
7685
7686
7687 # If no C compiler was specified, use CC.
7688 LTCC=${LTCC-"$CC"}
7689
7690 # If no C compiler flags were specified, use CFLAGS.
7691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7692
7693 # Allow CC to be a program name with arguments.
7694 compiler=$CC
7695
7696 # Save the default compiler, since it gets overwritten when the other
7697 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7698 compiler_DEFAULT=$CC
7699
7700 # save warnings/boilerplate of simple test code
7701 ac_outfile=conftest.$ac_objext
7702 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7703 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7704 _lt_compiler_boilerplate=`cat conftest.err`
7705 $RM conftest*
7706
7707 ac_outfile=conftest.$ac_objext
7708 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7709 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7710 _lt_linker_boilerplate=`cat conftest.err`
7711 $RM -r conftest*
7712
7713
7714 if test -n "$compiler"; then
7715
7716 lt_prog_compiler_no_builtin_flag=
7717
7718 if test "$GCC" = yes; then
7719   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7720
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7722 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7723 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   lt_cv_prog_compiler_rtti_exceptions=no
7727    ac_outfile=conftest.$ac_objext
7728    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7729    lt_compiler_flag="-fno-rtti -fno-exceptions"
7730    # Insert the option either (1) after the last *FLAGS variable, or
7731    # (2) before a word containing "conftest.", or (3) at the end.
7732    # Note that $ac_compile itself does not contain backslashes and begins
7733    # with a dollar sign (not a hyphen), so the echo should work correctly.
7734    # The option is referenced via a variable to avoid confusing sed.
7735    lt_compile=`echo "$ac_compile" | $SED \
7736    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7738    -e 's:$: $lt_compiler_flag:'`
7739    (eval echo "\"\$as_me:7739: $lt_compile\"" >&5)
7740    (eval "$lt_compile" 2>conftest.err)
7741    ac_status=$?
7742    cat conftest.err >&5
7743    echo "$as_me:7743: \$? = $ac_status" >&5
7744    if (exit $ac_status) && test -s "$ac_outfile"; then
7745      # The compiler can only warn and ignore the option if not recognized
7746      # So say no if there are warnings other than the usual output.
7747      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7748      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7749      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7750        lt_cv_prog_compiler_rtti_exceptions=yes
7751      fi
7752    fi
7753    $RM conftest*
7754
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7757 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7758
7759 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7760     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7761 else
7762     :
7763 fi
7764
7765 fi
7766
7767
7768
7769
7770
7771
7772   lt_prog_compiler_wl=
7773 lt_prog_compiler_pic=
7774 lt_prog_compiler_static=
7775
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7777 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7778
7779   if test "$GCC" = yes; then
7780     lt_prog_compiler_wl='-Wl,'
7781     lt_prog_compiler_static='-static'
7782
7783     case $host_os in
7784       aix*)
7785       # All AIX code is PIC.
7786       if test "$host_cpu" = ia64; then
7787         # AIX 5 now supports IA64 processor
7788         lt_prog_compiler_static='-Bstatic'
7789       fi
7790       ;;
7791
7792     amigaos*)
7793       case $host_cpu in
7794       powerpc)
7795             # see comment about AmigaOS4 .so support
7796             lt_prog_compiler_pic='-fPIC'
7797         ;;
7798       m68k)
7799             # FIXME: we need at least 68020 code to build shared libraries, but
7800             # adding the `-m68020' flag to GCC prevents building anything better,
7801             # like `-m68040'.
7802             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7803         ;;
7804       esac
7805       ;;
7806
7807     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7808       # PIC is the default for these OSes.
7809       ;;
7810
7811     mingw* | cygwin* | pw32* | os2* | cegcc*)
7812       # This hack is so that the source file can tell whether it is being
7813       # built for inclusion in a dll (and should export symbols for example).
7814       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7815       # (--disable-auto-import) libraries
7816       lt_prog_compiler_pic='-DDLL_EXPORT'
7817       ;;
7818
7819     darwin* | rhapsody*)
7820       # PIC is the default on this platform
7821       # Common symbols not allowed in MH_DYLIB files
7822       lt_prog_compiler_pic='-fno-common'
7823       ;;
7824
7825     hpux*)
7826       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7827       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7828       # sets the default TLS model and affects inlining.
7829       case $host_cpu in
7830       hppa*64*)
7831         # +Z the default
7832         ;;
7833       *)
7834         lt_prog_compiler_pic='-fPIC'
7835         ;;
7836       esac
7837       ;;
7838
7839     interix[3-9]*)
7840       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7841       # Instead, we relocate shared libraries at runtime.
7842       ;;
7843
7844     msdosdjgpp*)
7845       # Just because we use GCC doesn't mean we suddenly get shared libraries
7846       # on systems that don't support them.
7847       lt_prog_compiler_can_build_shared=no
7848       enable_shared=no
7849       ;;
7850
7851     *nto* | *qnx*)
7852       # QNX uses GNU C++, but need to define -shared option too, otherwise
7853       # it will coredump.
7854       lt_prog_compiler_pic='-fPIC -shared'
7855       ;;
7856
7857     sysv4*MP*)
7858       if test -d /usr/nec; then
7859         lt_prog_compiler_pic=-Kconform_pic
7860       fi
7861       ;;
7862
7863     *)
7864       lt_prog_compiler_pic='-fPIC'
7865       ;;
7866     esac
7867   else
7868     # PORTME Check for flag to pass linker flags through the system compiler.
7869     case $host_os in
7870     aix*)
7871       lt_prog_compiler_wl='-Wl,'
7872       if test "$host_cpu" = ia64; then
7873         # AIX 5 now supports IA64 processor
7874         lt_prog_compiler_static='-Bstatic'
7875       else
7876         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7877       fi
7878       ;;
7879
7880     mingw* | cygwin* | pw32* | os2* | cegcc*)
7881       # This hack is so that the source file can tell whether it is being
7882       # built for inclusion in a dll (and should export symbols for example).
7883       lt_prog_compiler_pic='-DDLL_EXPORT'
7884       ;;
7885
7886     hpux9* | hpux10* | hpux11*)
7887       lt_prog_compiler_wl='-Wl,'
7888       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7889       # not for PA HP-UX.
7890       case $host_cpu in
7891       hppa*64*|ia64*)
7892         # +Z the default
7893         ;;
7894       *)
7895         lt_prog_compiler_pic='+Z'
7896         ;;
7897       esac
7898       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7899       lt_prog_compiler_static='${wl}-a ${wl}archive'
7900       ;;
7901
7902     irix5* | irix6* | nonstopux*)
7903       lt_prog_compiler_wl='-Wl,'
7904       # PIC (with -KPIC) is the default.
7905       lt_prog_compiler_static='-non_shared'
7906       ;;
7907
7908     linux* | k*bsd*-gnu)
7909       case $cc_basename in
7910       # old Intel for x86_64 which still supported -KPIC.
7911       ecc*)
7912         lt_prog_compiler_wl='-Wl,'
7913         lt_prog_compiler_pic='-KPIC'
7914         lt_prog_compiler_static='-static'
7915         ;;
7916       # icc used to be incompatible with GCC.
7917       # ICC 10 doesn't accept -KPIC any more.
7918       icc* | ifort*)
7919         lt_prog_compiler_wl='-Wl,'
7920         lt_prog_compiler_pic='-fPIC'
7921         lt_prog_compiler_static='-static'
7922         ;;
7923       # Lahey Fortran 8.1.
7924       lf95*)
7925         lt_prog_compiler_wl='-Wl,'
7926         lt_prog_compiler_pic='--shared'
7927         lt_prog_compiler_static='--static'
7928         ;;
7929       pgcc* | pgf77* | pgf90* | pgf95*)
7930         # Portland Group compilers (*not* the Pentium gcc compiler,
7931         # which looks to be a dead project)
7932         lt_prog_compiler_wl='-Wl,'
7933         lt_prog_compiler_pic='-fpic'
7934         lt_prog_compiler_static='-Bstatic'
7935         ;;
7936       ccc*)
7937         lt_prog_compiler_wl='-Wl,'
7938         # All Alpha code is PIC.
7939         lt_prog_compiler_static='-non_shared'
7940         ;;
7941       xl*)
7942         # IBM XL C 8.0/Fortran 10.1 on PPC
7943         lt_prog_compiler_wl='-Wl,'
7944         lt_prog_compiler_pic='-qpic'
7945         lt_prog_compiler_static='-qstaticlink'
7946         ;;
7947       *)
7948         case `$CC -V 2>&1 | sed 5q` in
7949         *Sun\ C*)
7950           # Sun C 5.9
7951           lt_prog_compiler_pic='-KPIC'
7952           lt_prog_compiler_static='-Bstatic'
7953           lt_prog_compiler_wl='-Wl,'
7954           ;;
7955         *Sun\ F*)
7956           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7957           lt_prog_compiler_pic='-KPIC'
7958           lt_prog_compiler_static='-Bstatic'
7959           lt_prog_compiler_wl=''
7960           ;;
7961         esac
7962         ;;
7963       esac
7964       ;;
7965
7966     newsos6)
7967       lt_prog_compiler_pic='-KPIC'
7968       lt_prog_compiler_static='-Bstatic'
7969       ;;
7970
7971     *nto* | *qnx*)
7972       # QNX uses GNU C++, but need to define -shared option too, otherwise
7973       # it will coredump.
7974       lt_prog_compiler_pic='-fPIC -shared'
7975       ;;
7976
7977     osf3* | osf4* | osf5*)
7978       lt_prog_compiler_wl='-Wl,'
7979       # All OSF/1 code is PIC.
7980       lt_prog_compiler_static='-non_shared'
7981       ;;
7982
7983     rdos*)
7984       lt_prog_compiler_static='-non_shared'
7985       ;;
7986
7987     solaris*)
7988       lt_prog_compiler_pic='-KPIC'
7989       lt_prog_compiler_static='-Bstatic'
7990       case $cc_basename in
7991       f77* | f90* | f95*)
7992         lt_prog_compiler_wl='-Qoption ld ';;
7993       *)
7994         lt_prog_compiler_wl='-Wl,';;
7995       esac
7996       ;;
7997
7998     sunos4*)
7999       lt_prog_compiler_wl='-Qoption ld '
8000       lt_prog_compiler_pic='-PIC'
8001       lt_prog_compiler_static='-Bstatic'
8002       ;;
8003
8004     sysv4 | sysv4.2uw2* | sysv4.3*)
8005       lt_prog_compiler_wl='-Wl,'
8006       lt_prog_compiler_pic='-KPIC'
8007       lt_prog_compiler_static='-Bstatic'
8008       ;;
8009
8010     sysv4*MP*)
8011       if test -d /usr/nec ;then
8012         lt_prog_compiler_pic='-Kconform_pic'
8013         lt_prog_compiler_static='-Bstatic'
8014       fi
8015       ;;
8016
8017     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8018       lt_prog_compiler_wl='-Wl,'
8019       lt_prog_compiler_pic='-KPIC'
8020       lt_prog_compiler_static='-Bstatic'
8021       ;;
8022
8023     unicos*)
8024       lt_prog_compiler_wl='-Wl,'
8025       lt_prog_compiler_can_build_shared=no
8026       ;;
8027
8028     uts4*)
8029       lt_prog_compiler_pic='-pic'
8030       lt_prog_compiler_static='-Bstatic'
8031       ;;
8032
8033     *)
8034       lt_prog_compiler_can_build_shared=no
8035       ;;
8036     esac
8037   fi
8038
8039 case $host_os in
8040   # For platforms which do not support PIC, -DPIC is meaningless:
8041   *djgpp*)
8042     lt_prog_compiler_pic=
8043     ;;
8044   *)
8045     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8046     ;;
8047 esac
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8049 $as_echo "$lt_prog_compiler_pic" >&6; }
8050
8051
8052
8053
8054
8055
8056 #
8057 # Check to make sure the PIC flag actually works.
8058 #
8059 if test -n "$lt_prog_compiler_pic"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8061 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8062 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   lt_cv_prog_compiler_pic_works=no
8066    ac_outfile=conftest.$ac_objext
8067    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8068    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8069    # Insert the option either (1) after the last *FLAGS variable, or
8070    # (2) before a word containing "conftest.", or (3) at the end.
8071    # Note that $ac_compile itself does not contain backslashes and begins
8072    # with a dollar sign (not a hyphen), so the echo should work correctly.
8073    # The option is referenced via a variable to avoid confusing sed.
8074    lt_compile=`echo "$ac_compile" | $SED \
8075    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8076    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8077    -e 's:$: $lt_compiler_flag:'`
8078    (eval echo "\"\$as_me:8078: $lt_compile\"" >&5)
8079    (eval "$lt_compile" 2>conftest.err)
8080    ac_status=$?
8081    cat conftest.err >&5
8082    echo "$as_me:8082: \$? = $ac_status" >&5
8083    if (exit $ac_status) && test -s "$ac_outfile"; then
8084      # The compiler can only warn and ignore the option if not recognized
8085      # So say no if there are warnings other than the usual output.
8086      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8087      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8088      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8089        lt_cv_prog_compiler_pic_works=yes
8090      fi
8091    fi
8092    $RM conftest*
8093
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8096 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8097
8098 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8099     case $lt_prog_compiler_pic in
8100      "" | " "*) ;;
8101      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8102      esac
8103 else
8104     lt_prog_compiler_pic=
8105      lt_prog_compiler_can_build_shared=no
8106 fi
8107
8108 fi
8109
8110
8111
8112
8113
8114
8115 #
8116 # Check to make sure the static flag actually works.
8117 #
8118 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8120 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8121 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8122   $as_echo_n "(cached) " >&6
8123 else
8124   lt_cv_prog_compiler_static_works=no
8125    save_LDFLAGS="$LDFLAGS"
8126    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8127    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8128    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8129      # The linker can only warn and ignore the option if not recognized
8130      # So say no if there are warnings
8131      if test -s conftest.err; then
8132        # Append any errors to the config.log.
8133        cat conftest.err 1>&5
8134        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8135        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8136        if diff conftest.exp conftest.er2 >/dev/null; then
8137          lt_cv_prog_compiler_static_works=yes
8138        fi
8139      else
8140        lt_cv_prog_compiler_static_works=yes
8141      fi
8142    fi
8143    $RM -r conftest*
8144    LDFLAGS="$save_LDFLAGS"
8145
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8148 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8149
8150 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8151     :
8152 else
8153     lt_prog_compiler_static=
8154 fi
8155
8156
8157
8158
8159
8160
8161
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   lt_cv_prog_compiler_c_o=no
8168    $RM -r conftest 2>/dev/null
8169    mkdir conftest
8170    cd conftest
8171    mkdir out
8172    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8173
8174    lt_compiler_flag="-o out/conftest2.$ac_objext"
8175    # Insert the option either (1) after the last *FLAGS variable, or
8176    # (2) before a word containing "conftest.", or (3) at the end.
8177    # Note that $ac_compile itself does not contain backslashes and begins
8178    # with a dollar sign (not a hyphen), so the echo should work correctly.
8179    lt_compile=`echo "$ac_compile" | $SED \
8180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8182    -e 's:$: $lt_compiler_flag:'`
8183    (eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
8184    (eval "$lt_compile" 2>out/conftest.err)
8185    ac_status=$?
8186    cat out/conftest.err >&5
8187    echo "$as_me:8187: \$? = $ac_status" >&5
8188    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8189    then
8190      # The compiler can only warn and ignore the option if not recognized
8191      # So say no if there are warnings
8192      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8193      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8194      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8195        lt_cv_prog_compiler_c_o=yes
8196      fi
8197    fi
8198    chmod u+w . 2>&5
8199    $RM conftest*
8200    # SGI C++ compiler will create directory out/ii_files/ for
8201    # template instantiation
8202    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8203    $RM out/* && rmdir out
8204    cd ..
8205    $RM -r conftest
8206    $RM conftest*
8207
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8210 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8211
8212
8213
8214
8215
8216
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8218 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8219 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   lt_cv_prog_compiler_c_o=no
8223    $RM -r conftest 2>/dev/null
8224    mkdir conftest
8225    cd conftest
8226    mkdir out
8227    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8228
8229    lt_compiler_flag="-o out/conftest2.$ac_objext"
8230    # Insert the option either (1) after the last *FLAGS variable, or
8231    # (2) before a word containing "conftest.", or (3) at the end.
8232    # Note that $ac_compile itself does not contain backslashes and begins
8233    # with a dollar sign (not a hyphen), so the echo should work correctly.
8234    lt_compile=`echo "$ac_compile" | $SED \
8235    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8236    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8237    -e 's:$: $lt_compiler_flag:'`
8238    (eval echo "\"\$as_me:8238: $lt_compile\"" >&5)
8239    (eval "$lt_compile" 2>out/conftest.err)
8240    ac_status=$?
8241    cat out/conftest.err >&5
8242    echo "$as_me:8242: \$? = $ac_status" >&5
8243    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8244    then
8245      # The compiler can only warn and ignore the option if not recognized
8246      # So say no if there are warnings
8247      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8248      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8249      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8250        lt_cv_prog_compiler_c_o=yes
8251      fi
8252    fi
8253    chmod u+w . 2>&5
8254    $RM conftest*
8255    # SGI C++ compiler will create directory out/ii_files/ for
8256    # template instantiation
8257    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8258    $RM out/* && rmdir out
8259    cd ..
8260    $RM -r conftest
8261    $RM conftest*
8262
8263 fi
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8265 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8266
8267
8268
8269
8270 hard_links="nottested"
8271 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8272   # do not overwrite the value of need_locks provided by the user
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8274 $as_echo_n "checking if we can lock with hard links... " >&6; }
8275   hard_links=yes
8276   $RM conftest*
8277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8278   touch conftest.a
8279   ln conftest.a conftest.b 2>&5 || hard_links=no
8280   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8282 $as_echo "$hard_links" >&6; }
8283   if test "$hard_links" = no; then
8284     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8285 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8286     need_locks=warn
8287   fi
8288 else
8289   need_locks=no
8290 fi
8291
8292
8293
8294
8295
8296
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8298 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8299
8300   runpath_var=
8301   allow_undefined_flag=
8302   always_export_symbols=no
8303   archive_cmds=
8304   archive_expsym_cmds=
8305   compiler_needs_object=no
8306   enable_shared_with_static_runtimes=no
8307   export_dynamic_flag_spec=
8308   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8309   hardcode_automatic=no
8310   hardcode_direct=no
8311   hardcode_direct_absolute=no
8312   hardcode_libdir_flag_spec=
8313   hardcode_libdir_flag_spec_ld=
8314   hardcode_libdir_separator=
8315   hardcode_minus_L=no
8316   hardcode_shlibpath_var=unsupported
8317   inherit_rpath=no
8318   link_all_deplibs=unknown
8319   module_cmds=
8320   module_expsym_cmds=
8321   old_archive_from_new_cmds=
8322   old_archive_from_expsyms_cmds=
8323   thread_safe_flag_spec=
8324   whole_archive_flag_spec=
8325   # include_expsyms should be a list of space-separated symbols to be *always*
8326   # included in the symbol list
8327   include_expsyms=
8328   # exclude_expsyms can be an extended regexp of symbols to exclude
8329   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8330   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8331   # as well as any symbol that contains `d'.
8332   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8333   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8334   # platforms (ab)use it in PIC code, but their linkers get confused if
8335   # the symbol is explicitly referenced.  Since portable code cannot
8336   # rely on this symbol name, it's probably fine to never include it in
8337   # preloaded symbol tables.
8338   # Exclude shared library initialization/finalization symbols.
8339   extract_expsyms_cmds=
8340
8341   case $host_os in
8342   cygwin* | mingw* | pw32* | cegcc*)
8343     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8344     # When not using gcc, we currently assume that we are using
8345     # Microsoft Visual C++.
8346     if test "$GCC" != yes; then
8347       with_gnu_ld=no
8348     fi
8349     ;;
8350   interix*)
8351     # we just hope/assume this is gcc and not c89 (= MSVC++)
8352     with_gnu_ld=yes
8353     ;;
8354   openbsd*)
8355     with_gnu_ld=no
8356     ;;
8357   linux* | k*bsd*-gnu)
8358     link_all_deplibs=no
8359     ;;
8360   esac
8361
8362   ld_shlibs=yes
8363   if test "$with_gnu_ld" = yes; then
8364     # If archive_cmds runs LD, not CC, wlarc should be empty
8365     wlarc='${wl}'
8366
8367     # Set some defaults for GNU ld with shared library support. These
8368     # are reset later if shared libraries are not supported. Putting them
8369     # here allows them to be overridden if necessary.
8370     runpath_var=LD_RUN_PATH
8371     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8372     export_dynamic_flag_spec='${wl}--export-dynamic'
8373     # ancient GNU ld didn't support --whole-archive et. al.
8374     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8375       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8376     else
8377       whole_archive_flag_spec=
8378     fi
8379     supports_anon_versioning=no
8380     case `$LD -v 2>&1` in
8381       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8382       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8383       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8384       *\ 2.11.*) ;; # other 2.11 versions
8385       *) supports_anon_versioning=yes ;;
8386     esac
8387
8388     # See if GNU ld supports shared libraries.
8389     case $host_os in
8390     aix[3-9]*)
8391       # On AIX/PPC, the GNU linker is very broken
8392       if test "$host_cpu" != ia64; then
8393         ld_shlibs=no
8394         cat <<_LT_EOF 1>&2
8395
8396 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8397 *** to be unable to reliably create shared libraries on AIX.
8398 *** Therefore, libtool is disabling shared libraries support.  If you
8399 *** really care for shared libraries, you may want to modify your PATH
8400 *** so that a non-GNU linker is found, and then restart.
8401
8402 _LT_EOF
8403       fi
8404       ;;
8405
8406     amigaos*)
8407       case $host_cpu in
8408       powerpc)
8409             # see comment about AmigaOS4 .so support
8410             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411             archive_expsym_cmds=''
8412         ;;
8413       m68k)
8414             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)'
8415             hardcode_libdir_flag_spec='-L$libdir'
8416             hardcode_minus_L=yes
8417         ;;
8418       esac
8419       ;;
8420
8421     beos*)
8422       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423         allow_undefined_flag=unsupported
8424         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8425         # support --undefined.  This deserves some investigation.  FIXME
8426         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427       else
8428         ld_shlibs=no
8429       fi
8430       ;;
8431
8432     cygwin* | mingw* | pw32* | cegcc*)
8433       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8434       # as there is no search path for DLLs.
8435       hardcode_libdir_flag_spec='-L$libdir'
8436       allow_undefined_flag=unsupported
8437       always_export_symbols=no
8438       enable_shared_with_static_runtimes=yes
8439       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8440
8441       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8442         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8443         # If the export-symbols file already is a .def file (1st line
8444         # is EXPORTS), use it as is; otherwise, prepend...
8445         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8446           cp $export_symbols $output_objdir/$soname.def;
8447         else
8448           echo EXPORTS > $output_objdir/$soname.def;
8449           cat $export_symbols >> $output_objdir/$soname.def;
8450         fi~
8451         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8452       else
8453         ld_shlibs=no
8454       fi
8455       ;;
8456
8457     interix[3-9]*)
8458       hardcode_direct=no
8459       hardcode_shlibpath_var=no
8460       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8461       export_dynamic_flag_spec='${wl}-E'
8462       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8463       # Instead, shared libraries are loaded at an image base (0x10000000 by
8464       # default) and relocated if they conflict, which is a slow very memory
8465       # consuming and fragmenting process.  To avoid this, we pick a random,
8466       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8467       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8468       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8469       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'
8470       ;;
8471
8472     gnu* | linux* | tpf* | k*bsd*-gnu)
8473       tmp_diet=no
8474       if test "$host_os" = linux-dietlibc; then
8475         case $cc_basename in
8476           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8477         esac
8478       fi
8479       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8480          && test "$tmp_diet" = no
8481       then
8482         tmp_addflag=
8483         tmp_sharedflag='-shared'
8484         case $cc_basename,$host_cpu in
8485         pgcc*)                          # Portland Group C compiler
8486           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8487           tmp_addflag=' $pic_flag'
8488           ;;
8489         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8490           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8491           tmp_addflag=' $pic_flag -Mnomain' ;;
8492         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8493           tmp_addflag=' -i_dynamic' ;;
8494         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8495           tmp_addflag=' -i_dynamic -nofor_main' ;;
8496         ifc* | ifort*)                  # Intel Fortran compiler
8497           tmp_addflag=' -nofor_main' ;;
8498         lf95*)                          # Lahey Fortran 8.1
8499           whole_archive_flag_spec=
8500           tmp_sharedflag='--shared' ;;
8501         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8502           tmp_sharedflag='-qmkshrobj'
8503           tmp_addflag= ;;
8504         esac
8505         case `$CC -V 2>&1 | sed 5q` in
8506         *Sun\ C*)                       # Sun C 5.9
8507           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8508           compiler_needs_object=yes
8509           tmp_sharedflag='-G' ;;
8510         *Sun\ F*)                       # Sun Fortran 8.3
8511           tmp_sharedflag='-G' ;;
8512         esac
8513         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514
8515         if test "x$supports_anon_versioning" = xyes; then
8516           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8517             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8518             echo "local: *; };" >> $output_objdir/$libname.ver~
8519             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8520         fi
8521
8522         case $cc_basename in
8523         xlf*)
8524           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8525           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8526           hardcode_libdir_flag_spec=
8527           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8528           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8529           if test "x$supports_anon_versioning" = xyes; then
8530             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8531               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8532               echo "local: *; };" >> $output_objdir/$libname.ver~
8533               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8534           fi
8535           ;;
8536         esac
8537       else
8538         ld_shlibs=no
8539       fi
8540       ;;
8541
8542     netbsd* | netbsdelf*-gnu)
8543       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8544         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8545         wlarc=
8546       else
8547         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8549       fi
8550       ;;
8551
8552     solaris*)
8553       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8554         ld_shlibs=no
8555         cat <<_LT_EOF 1>&2
8556
8557 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8558 *** create shared libraries on Solaris systems.  Therefore, libtool
8559 *** is disabling shared libraries support.  We urge you to upgrade GNU
8560 *** binutils to release 2.9.1 or newer.  Another option is to modify
8561 *** your PATH or compiler configuration so that the native linker is
8562 *** used, and then restart.
8563
8564 _LT_EOF
8565       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8566         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8568       else
8569         ld_shlibs=no
8570       fi
8571       ;;
8572
8573     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8574       case `$LD -v 2>&1` in
8575         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8576         ld_shlibs=no
8577         cat <<_LT_EOF 1>&2
8578
8579 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8580 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8581 *** is disabling shared libraries support.  We urge you to upgrade GNU
8582 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8583 *** your PATH or compiler configuration so that the native linker is
8584 *** used, and then restart.
8585
8586 _LT_EOF
8587         ;;
8588         *)
8589           # For security reasons, it is highly recommended that you always
8590           # use absolute paths for naming shared libraries, and exclude the
8591           # DT_RUNPATH tag from executables and libraries.  But doing so
8592           # requires that you compile everything twice, which is a pain.
8593           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8597           else
8598             ld_shlibs=no
8599           fi
8600         ;;
8601       esac
8602       ;;
8603
8604     sunos4*)
8605       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8606       wlarc=
8607       hardcode_direct=yes
8608       hardcode_shlibpath_var=no
8609       ;;
8610
8611     *)
8612       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8615       else
8616         ld_shlibs=no
8617       fi
8618       ;;
8619     esac
8620
8621     if test "$ld_shlibs" = no; then
8622       runpath_var=
8623       hardcode_libdir_flag_spec=
8624       export_dynamic_flag_spec=
8625       whole_archive_flag_spec=
8626     fi
8627   else
8628     # PORTME fill in a description of your system's linker (not GNU ld)
8629     case $host_os in
8630     aix3*)
8631       allow_undefined_flag=unsupported
8632       always_export_symbols=yes
8633       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'
8634       # Note: this linker hardcodes the directories in LIBPATH if there
8635       # are no directories specified by -L.
8636       hardcode_minus_L=yes
8637       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8638         # Neither direct hardcoding nor static linking is supported with a
8639         # broken collect2.
8640         hardcode_direct=unsupported
8641       fi
8642       ;;
8643
8644     aix[4-9]*)
8645       if test "$host_cpu" = ia64; then
8646         # On IA64, the linker does run time linking by default, so we don't
8647         # have to do anything special.
8648         aix_use_runtimelinking=no
8649         exp_sym_flag='-Bexport'
8650         no_entry_flag=""
8651       else
8652         # If we're using GNU nm, then we don't want the "-C" option.
8653         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8654         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8655           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8656         else
8657           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'
8658         fi
8659         aix_use_runtimelinking=no
8660
8661         # Test if we are trying to use run time linking or normal
8662         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8663         # need to do runtime linking.
8664         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8665           for ld_flag in $LDFLAGS; do
8666           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8667             aix_use_runtimelinking=yes
8668             break
8669           fi
8670           done
8671           ;;
8672         esac
8673
8674         exp_sym_flag='-bexport'
8675         no_entry_flag='-bnoentry'
8676       fi
8677
8678       # When large executables or shared objects are built, AIX ld can
8679       # have problems creating the table of contents.  If linking a library
8680       # or program results in "error TOC overflow" add -mminimal-toc to
8681       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8682       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8683
8684       archive_cmds=''
8685       hardcode_direct=yes
8686       hardcode_direct_absolute=yes
8687       hardcode_libdir_separator=':'
8688       link_all_deplibs=yes
8689       file_list_spec='${wl}-f,'
8690
8691       if test "$GCC" = yes; then
8692         case $host_os in aix4.[012]|aix4.[012].*)
8693         # We only want to do this on AIX 4.2 and lower, the check
8694         # below for broken collect2 doesn't work under 4.3+
8695           collect2name=`${CC} -print-prog-name=collect2`
8696           if test -f "$collect2name" &&
8697            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8698           then
8699           # We have reworked collect2
8700           :
8701           else
8702           # We have old collect2
8703           hardcode_direct=unsupported
8704           # It fails to find uninstalled libraries when the uninstalled
8705           # path is not listed in the libpath.  Setting hardcode_minus_L
8706           # to unsupported forces relinking
8707           hardcode_minus_L=yes
8708           hardcode_libdir_flag_spec='-L$libdir'
8709           hardcode_libdir_separator=
8710           fi
8711           ;;
8712         esac
8713         shared_flag='-shared'
8714         if test "$aix_use_runtimelinking" = yes; then
8715           shared_flag="$shared_flag "'${wl}-G'
8716         fi
8717         link_all_deplibs=no
8718       else
8719         # not using gcc
8720         if test "$host_cpu" = ia64; then
8721         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8722         # chokes on -Wl,-G. The following line is correct:
8723           shared_flag='-G'
8724         else
8725           if test "$aix_use_runtimelinking" = yes; then
8726             shared_flag='${wl}-G'
8727           else
8728             shared_flag='${wl}-bM:SRE'
8729           fi
8730         fi
8731       fi
8732
8733       export_dynamic_flag_spec='${wl}-bexpall'
8734       # It seems that -bexpall does not export symbols beginning with
8735       # underscore (_), so it is better to generate a list of symbols to export.
8736       always_export_symbols=yes
8737       if test "$aix_use_runtimelinking" = yes; then
8738         # Warning - without using the other runtime loading flags (-brtl),
8739         # -berok will link without error, but may produce a broken library.
8740         allow_undefined_flag='-berok'
8741         # Determine the default libpath from the value encoded in an
8742         # empty executable.
8743         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h.  */
8745
8746 int
8747 main ()
8748 {
8749
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"; then :
8755
8756 lt_aix_libpath_sed='
8757     /Import File Strings/,/^$/ {
8758         /^0/ {
8759             s/^0  *\(.*\)$/\1/
8760             p
8761         }
8762     }'
8763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8764 # Check for a 64-bit object if we didn't find anything.
8765 if test -z "$aix_libpath"; then
8766   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8767 fi
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext \
8770     conftest$ac_exeext conftest.$ac_ext
8771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8772
8773         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8774         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8775       else
8776         if test "$host_cpu" = ia64; then
8777           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8778           allow_undefined_flag="-z nodefs"
8779           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"
8780         else
8781          # Determine the default libpath from the value encoded in an
8782          # empty executable.
8783          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h.  */
8785
8786 int
8787 main ()
8788 {
8789
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_link "$LINENO"; then :
8795
8796 lt_aix_libpath_sed='
8797     /Import File Strings/,/^$/ {
8798         /^0/ {
8799             s/^0  *\(.*\)$/\1/
8800             p
8801         }
8802     }'
8803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8804 # Check for a 64-bit object if we didn't find anything.
8805 if test -z "$aix_libpath"; then
8806   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8807 fi
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext \
8810     conftest$ac_exeext conftest.$ac_ext
8811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8812
8813          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8814           # Warning - without using the other run time loading flags,
8815           # -berok will link without error, but may produce a broken library.
8816           no_undefined_flag=' ${wl}-bernotok'
8817           allow_undefined_flag=' ${wl}-berok'
8818           # Exported symbols can be pulled into shared objects from archives
8819           whole_archive_flag_spec='$convenience'
8820           archive_cmds_need_lc=yes
8821           # This is similar to how AIX traditionally builds its shared libraries.
8822           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'
8823         fi
8824       fi
8825       ;;
8826
8827     amigaos*)
8828       case $host_cpu in
8829       powerpc)
8830             # see comment about AmigaOS4 .so support
8831             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832             archive_expsym_cmds=''
8833         ;;
8834       m68k)
8835             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)'
8836             hardcode_libdir_flag_spec='-L$libdir'
8837             hardcode_minus_L=yes
8838         ;;
8839       esac
8840       ;;
8841
8842     bsdi[45]*)
8843       export_dynamic_flag_spec=-rdynamic
8844       ;;
8845
8846     cygwin* | mingw* | pw32* | cegcc*)
8847       # When not using gcc, we currently assume that we are using
8848       # Microsoft Visual C++.
8849       # hardcode_libdir_flag_spec is actually meaningless, as there is
8850       # no search path for DLLs.
8851       hardcode_libdir_flag_spec=' '
8852       allow_undefined_flag=unsupported
8853       # Tell ltmain to make .lib files, not .a files.
8854       libext=lib
8855       # Tell ltmain to make .dll files, not .so files.
8856       shrext_cmds=".dll"
8857       # FIXME: Setting linknames here is a bad hack.
8858       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8859       # The linker will automatically build a .lib file if we build a DLL.
8860       old_archive_from_new_cmds='true'
8861       # FIXME: Should let the user specify the lib program.
8862       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8863       fix_srcfile_path='`cygpath -w "$srcfile"`'
8864       enable_shared_with_static_runtimes=yes
8865       ;;
8866
8867     darwin* | rhapsody*)
8868
8869
8870   archive_cmds_need_lc=no
8871   hardcode_direct=no
8872   hardcode_automatic=yes
8873   hardcode_shlibpath_var=unsupported
8874   whole_archive_flag_spec=''
8875   link_all_deplibs=yes
8876   allow_undefined_flag="$_lt_dar_allow_undefined"
8877   case $cc_basename in
8878      ifort*) _lt_dar_can_shared=yes ;;
8879      *) _lt_dar_can_shared=$GCC ;;
8880   esac
8881   if test "$_lt_dar_can_shared" = "yes"; then
8882     output_verbose_link_cmd=echo
8883     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8884     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8885     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}"
8886     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}"
8887
8888   else
8889   ld_shlibs=no
8890   fi
8891
8892       ;;
8893
8894     dgux*)
8895       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896       hardcode_libdir_flag_spec='-L$libdir'
8897       hardcode_shlibpath_var=no
8898       ;;
8899
8900     freebsd1*)
8901       ld_shlibs=no
8902       ;;
8903
8904     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8905     # support.  Future versions do this automatically, but an explicit c++rt0.o
8906     # does not break anything, and helps significantly (at the cost of a little
8907     # extra space).
8908     freebsd2.2*)
8909       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8910       hardcode_libdir_flag_spec='-R$libdir'
8911       hardcode_direct=yes
8912       hardcode_shlibpath_var=no
8913       ;;
8914
8915     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8916     freebsd2*)
8917       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8918       hardcode_direct=yes
8919       hardcode_minus_L=yes
8920       hardcode_shlibpath_var=no
8921       ;;
8922
8923     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8924     freebsd* | dragonfly*)
8925       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8926       hardcode_libdir_flag_spec='-R$libdir'
8927       hardcode_direct=yes
8928       hardcode_shlibpath_var=no
8929       ;;
8930
8931     hpux9*)
8932       if test "$GCC" = yes; then
8933         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8934       else
8935         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8936       fi
8937       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8938       hardcode_libdir_separator=:
8939       hardcode_direct=yes
8940
8941       # hardcode_minus_L: Not really in the search PATH,
8942       # but as the default location of the library.
8943       hardcode_minus_L=yes
8944       export_dynamic_flag_spec='${wl}-E'
8945       ;;
8946
8947     hpux10*)
8948       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8949         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8950       else
8951         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8952       fi
8953       if test "$with_gnu_ld" = no; then
8954         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8955         hardcode_libdir_flag_spec_ld='+b $libdir'
8956         hardcode_libdir_separator=:
8957         hardcode_direct=yes
8958         hardcode_direct_absolute=yes
8959         export_dynamic_flag_spec='${wl}-E'
8960         # hardcode_minus_L: Not really in the search PATH,
8961         # but as the default location of the library.
8962         hardcode_minus_L=yes
8963       fi
8964       ;;
8965
8966     hpux11*)
8967       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8968         case $host_cpu in
8969         hppa*64*)
8970           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971           ;;
8972         ia64*)
8973           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8974           ;;
8975         *)
8976           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8977           ;;
8978         esac
8979       else
8980         case $host_cpu in
8981         hppa*64*)
8982           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8983           ;;
8984         ia64*)
8985           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8986           ;;
8987         *)
8988           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8989           ;;
8990         esac
8991       fi
8992       if test "$with_gnu_ld" = no; then
8993         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8994         hardcode_libdir_separator=:
8995
8996         case $host_cpu in
8997         hppa*64*|ia64*)
8998           hardcode_direct=no
8999           hardcode_shlibpath_var=no
9000           ;;
9001         *)
9002           hardcode_direct=yes
9003           hardcode_direct_absolute=yes
9004           export_dynamic_flag_spec='${wl}-E'
9005
9006           # hardcode_minus_L: Not really in the search PATH,
9007           # but as the default location of the library.
9008           hardcode_minus_L=yes
9009           ;;
9010         esac
9011       fi
9012       ;;
9013
9014     irix5* | irix6* | nonstopux*)
9015       if test "$GCC" = yes; then
9016         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9017         # Try to use the -exported_symbol ld option, if it does not
9018         # work, assume that -exports_file does not work either and
9019         # implicitly export all symbols.
9020         save_LDFLAGS="$LDFLAGS"
9021         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9022         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h.  */
9024 int foo(void) {}
9025 _ACEOF
9026 if ac_fn_c_try_link "$LINENO"; then :
9027   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9028
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext \
9031     conftest$ac_exeext conftest.$ac_ext
9032         LDFLAGS="$save_LDFLAGS"
9033       else
9034         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9035         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9036       fi
9037       archive_cmds_need_lc='no'
9038       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039       hardcode_libdir_separator=:
9040       inherit_rpath=yes
9041       link_all_deplibs=yes
9042       ;;
9043
9044     netbsd* | netbsdelf*-gnu)
9045       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9046         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9047       else
9048         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9049       fi
9050       hardcode_libdir_flag_spec='-R$libdir'
9051       hardcode_direct=yes
9052       hardcode_shlibpath_var=no
9053       ;;
9054
9055     newsos6)
9056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057       hardcode_direct=yes
9058       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059       hardcode_libdir_separator=:
9060       hardcode_shlibpath_var=no
9061       ;;
9062
9063     *nto* | *qnx*)
9064       ;;
9065
9066     openbsd*)
9067       if test -f /usr/libexec/ld.so; then
9068         hardcode_direct=yes
9069         hardcode_shlibpath_var=no
9070         hardcode_direct_absolute=yes
9071         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9072           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9073           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9074           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9075           export_dynamic_flag_spec='${wl}-E'
9076         else
9077           case $host_os in
9078            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9079              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9080              hardcode_libdir_flag_spec='-R$libdir'
9081              ;;
9082            *)
9083              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9084              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9085              ;;
9086           esac
9087         fi
9088       else
9089         ld_shlibs=no
9090       fi
9091       ;;
9092
9093     os2*)
9094       hardcode_libdir_flag_spec='-L$libdir'
9095       hardcode_minus_L=yes
9096       allow_undefined_flag=unsupported
9097       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'
9098       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9099       ;;
9100
9101     osf3*)
9102       if test "$GCC" = yes; then
9103         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9104         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9105       else
9106         allow_undefined_flag=' -expect_unresolved \*'
9107         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9108       fi
9109       archive_cmds_need_lc='no'
9110       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111       hardcode_libdir_separator=:
9112       ;;
9113
9114     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9115       if test "$GCC" = yes; then
9116         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9117         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9118         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9119       else
9120         allow_undefined_flag=' -expect_unresolved \*'
9121         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9122         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~
9123         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9124
9125         # Both c and cxx compiler support -rpath directly
9126         hardcode_libdir_flag_spec='-rpath $libdir'
9127       fi
9128       archive_cmds_need_lc='no'
9129       hardcode_libdir_separator=:
9130       ;;
9131
9132     solaris*)
9133       no_undefined_flag=' -z defs'
9134       if test "$GCC" = yes; then
9135         wlarc='${wl}'
9136         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9138           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9139       else
9140         case `$CC -V 2>&1` in
9141         *"Compilers 5.0"*)
9142           wlarc=''
9143           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9145           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9146           ;;
9147         *)
9148           wlarc='${wl}'
9149           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9150           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9151           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9152           ;;
9153         esac
9154       fi
9155       hardcode_libdir_flag_spec='-R$libdir'
9156       hardcode_shlibpath_var=no
9157       case $host_os in
9158       solaris2.[0-5] | solaris2.[0-5].*) ;;
9159       *)
9160         # The compiler driver will combine and reorder linker options,
9161         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9162         # but is careful enough not to reorder.
9163         # Supported since Solaris 2.6 (maybe 2.5.1?)
9164         if test "$GCC" = yes; then
9165           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9166         else
9167           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9168         fi
9169         ;;
9170       esac
9171       link_all_deplibs=yes
9172       ;;
9173
9174     sunos4*)
9175       if test "x$host_vendor" = xsequent; then
9176         # Use $CC to link under sequent, because it throws in some extra .o
9177         # files that make .init and .fini sections work.
9178         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9179       else
9180         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9181       fi
9182       hardcode_libdir_flag_spec='-L$libdir'
9183       hardcode_direct=yes
9184       hardcode_minus_L=yes
9185       hardcode_shlibpath_var=no
9186       ;;
9187
9188     sysv4)
9189       case $host_vendor in
9190         sni)
9191           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192           hardcode_direct=yes # is this really true???
9193         ;;
9194         siemens)
9195           ## LD is ld it makes a PLAMLIB
9196           ## CC just makes a GrossModule.
9197           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9198           reload_cmds='$CC -r -o $output$reload_objs'
9199           hardcode_direct=no
9200         ;;
9201         motorola)
9202           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9203           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9204         ;;
9205       esac
9206       runpath_var='LD_RUN_PATH'
9207       hardcode_shlibpath_var=no
9208       ;;
9209
9210     sysv4.3*)
9211       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212       hardcode_shlibpath_var=no
9213       export_dynamic_flag_spec='-Bexport'
9214       ;;
9215
9216     sysv4*MP*)
9217       if test -d /usr/nec; then
9218         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219         hardcode_shlibpath_var=no
9220         runpath_var=LD_RUN_PATH
9221         hardcode_runpath_var=yes
9222         ld_shlibs=yes
9223       fi
9224       ;;
9225
9226     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9227       no_undefined_flag='${wl}-z,text'
9228       archive_cmds_need_lc=no
9229       hardcode_shlibpath_var=no
9230       runpath_var='LD_RUN_PATH'
9231
9232       if test "$GCC" = yes; then
9233         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9234         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9235       else
9236         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9237         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238       fi
9239       ;;
9240
9241     sysv5* | sco3.2v5* | sco5v6*)
9242       # Note: We can NOT use -z defs as we might desire, because we do not
9243       # link with -lc, and that would cause any symbols used from libc to
9244       # always be unresolved, which means just about no library would
9245       # ever link correctly.  If we're not using GNU ld we use -z text
9246       # though, which does catch some bad symbols but isn't as heavy-handed
9247       # as -z defs.
9248       no_undefined_flag='${wl}-z,text'
9249       allow_undefined_flag='${wl}-z,nodefs'
9250       archive_cmds_need_lc=no
9251       hardcode_shlibpath_var=no
9252       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9253       hardcode_libdir_separator=':'
9254       link_all_deplibs=yes
9255       export_dynamic_flag_spec='${wl}-Bexport'
9256       runpath_var='LD_RUN_PATH'
9257
9258       if test "$GCC" = yes; then
9259         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9261       else
9262         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9264       fi
9265       ;;
9266
9267     uts4*)
9268       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9269       hardcode_libdir_flag_spec='-L$libdir'
9270       hardcode_shlibpath_var=no
9271       ;;
9272
9273     *)
9274       ld_shlibs=no
9275       ;;
9276     esac
9277
9278     if test x$host_vendor = xsni; then
9279       case $host in
9280       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9281         export_dynamic_flag_spec='${wl}-Blargedynsym'
9282         ;;
9283       esac
9284     fi
9285   fi
9286
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9288 $as_echo "$ld_shlibs" >&6; }
9289 test "$ld_shlibs" = no && can_build_shared=no
9290
9291 with_gnu_ld=$with_gnu_ld
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 #
9308 # Do we need to explicitly link libc?
9309 #
9310 case "x$archive_cmds_need_lc" in
9311 x|xyes)
9312   # Assume -lc should be added
9313   archive_cmds_need_lc=yes
9314
9315   if test "$enable_shared" = yes && test "$GCC" = yes; then
9316     case $archive_cmds in
9317     *'~'*)
9318       # FIXME: we may have to deal with multi-command sequences.
9319       ;;
9320     '$CC '*)
9321       # Test whether the compiler implicitly links with -lc since on some
9322       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9323       # to ld, don't add -lc before -lgcc.
9324       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9325 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9326       $RM conftest*
9327       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9328
9329       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9330   (eval $ac_compile) 2>&5
9331   ac_status=$?
9332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333   test $ac_status = 0; } 2>conftest.err; then
9334         soname=conftest
9335         lib=conftest
9336         libobjs=conftest.$ac_objext
9337         deplibs=
9338         wl=$lt_prog_compiler_wl
9339         pic_flag=$lt_prog_compiler_pic
9340         compiler_flags=-v
9341         linker_flags=-v
9342         verstring=
9343         output_objdir=.
9344         libname=conftest
9345         lt_save_allow_undefined_flag=$allow_undefined_flag
9346         allow_undefined_flag=
9347         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9348   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9349   ac_status=$?
9350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9351   test $ac_status = 0; }
9352         then
9353           archive_cmds_need_lc=no
9354         else
9355           archive_cmds_need_lc=yes
9356         fi
9357         allow_undefined_flag=$lt_save_allow_undefined_flag
9358       else
9359         cat conftest.err 1>&5
9360       fi
9361       $RM conftest*
9362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9363 $as_echo "$archive_cmds_need_lc" >&6; }
9364       ;;
9365     esac
9366   fi
9367   ;;
9368 esac
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
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
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9527 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9528
9529 if test "$GCC" = yes; then
9530   case $host_os in
9531     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9532     *) lt_awk_arg="/^libraries:/" ;;
9533   esac
9534   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9535   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9536     # if the path contains ";" then we assume it to be the separator
9537     # otherwise default to the standard path separator (i.e. ":") - it is
9538     # assumed that no part of a normal pathname contains ";" but that should
9539     # okay in the real world where ";" in dirpaths is itself problematic.
9540     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9541   else
9542     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9543   fi
9544   # Ok, now we have the path, separated by spaces, we can step through it
9545   # and add multilib dir if necessary.
9546   lt_tmp_lt_search_path_spec=
9547   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9548   for lt_sys_path in $lt_search_path_spec; do
9549     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9550       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9551     else
9552       test -d "$lt_sys_path" && \
9553         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9554     fi
9555   done
9556   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9557 BEGIN {RS=" "; FS="/|\n";} {
9558   lt_foo="";
9559   lt_count=0;
9560   for (lt_i = NF; lt_i > 0; lt_i--) {
9561     if ($lt_i != "" && $lt_i != ".") {
9562       if ($lt_i == "..") {
9563         lt_count++;
9564       } else {
9565         if (lt_count == 0) {
9566           lt_foo="/" $lt_i lt_foo;
9567         } else {
9568           lt_count--;
9569         }
9570       }
9571     }
9572   }
9573   if (lt_foo != "") { lt_freq[lt_foo]++; }
9574   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9575 }'`
9576   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9577 else
9578   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9579 fi
9580 library_names_spec=
9581 libname_spec='lib$name'
9582 soname_spec=
9583 shrext_cmds=".so"
9584 postinstall_cmds=
9585 postuninstall_cmds=
9586 finish_cmds=
9587 finish_eval=
9588 shlibpath_var=
9589 shlibpath_overrides_runpath=unknown
9590 version_type=none
9591 dynamic_linker="$host_os ld.so"
9592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9593 need_lib_prefix=unknown
9594 hardcode_into_libs=no
9595
9596 # when you set need_version to no, make sure it does not cause -set_version
9597 # flags to be left without arguments
9598 need_version=unknown
9599
9600 case $host_os in
9601 aix3*)
9602   version_type=linux
9603   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9604   shlibpath_var=LIBPATH
9605
9606   # AIX 3 has no versioning support, so we append a major version to the name.
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   ;;
9609
9610 aix[4-9]*)
9611   version_type=linux
9612   need_lib_prefix=no
9613   need_version=no
9614   hardcode_into_libs=yes
9615   if test "$host_cpu" = ia64; then
9616     # AIX 5 supports IA64
9617     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9618     shlibpath_var=LD_LIBRARY_PATH
9619   else
9620     # With GCC up to 2.95.x, collect2 would create an import file
9621     # for dependence libraries.  The import file would start with
9622     # the line `#! .'.  This would cause the generated library to
9623     # depend on `.', always an invalid library.  This was fixed in
9624     # development snapshots of GCC prior to 3.0.
9625     case $host_os in
9626       aix4 | aix4.[01] | aix4.[01].*)
9627       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9628            echo ' yes '
9629            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9630         :
9631       else
9632         can_build_shared=no
9633       fi
9634       ;;
9635     esac
9636     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9637     # soname into executable. Probably we can add versioning support to
9638     # collect2, so additional links can be useful in future.
9639     if test "$aix_use_runtimelinking" = yes; then
9640       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9641       # instead of lib<name>.a to let people know that these are not
9642       # typical AIX shared libraries.
9643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644     else
9645       # We preserve .a as extension for shared libraries through AIX4.2
9646       # and later when we are not doing run time linking.
9647       library_names_spec='${libname}${release}.a $libname.a'
9648       soname_spec='${libname}${release}${shared_ext}$major'
9649     fi
9650     shlibpath_var=LIBPATH
9651   fi
9652   ;;
9653
9654 amigaos*)
9655   case $host_cpu in
9656   powerpc)
9657     # Since July 2007 AmigaOS4 officially supports .so libraries.
9658     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660     ;;
9661   m68k)
9662     library_names_spec='$libname.ixlibrary $libname.a'
9663     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9664     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9665     ;;
9666   esac
9667   ;;
9668
9669 beos*)
9670   library_names_spec='${libname}${shared_ext}'
9671   dynamic_linker="$host_os ld.so"
9672   shlibpath_var=LIBRARY_PATH
9673   ;;
9674
9675 bsdi[45]*)
9676   version_type=linux
9677   need_version=no
9678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679   soname_spec='${libname}${release}${shared_ext}$major'
9680   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9681   shlibpath_var=LD_LIBRARY_PATH
9682   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9683   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9684   # the default ld.so.conf also contains /usr/contrib/lib and
9685   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9686   # libtool to hard-code these into programs
9687   ;;
9688
9689 cygwin* | mingw* | pw32* | cegcc*)
9690   version_type=windows
9691   shrext_cmds=".dll"
9692   need_version=no
9693   need_lib_prefix=no
9694
9695   case $GCC,$host_os in
9696   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9697     library_names_spec='$libname.dll.a'
9698     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9699     postinstall_cmds='base_file=`basename \${file}`~
9700       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9701       dldir=$destdir/`dirname \$dlpath`~
9702       test -d \$dldir || mkdir -p \$dldir~
9703       $install_prog $dir/$dlname \$dldir/$dlname~
9704       chmod a+x \$dldir/$dlname~
9705       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9706         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9707       fi'
9708     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9709       dlpath=$dir/\$dldll~
9710        $RM \$dlpath'
9711     shlibpath_overrides_runpath=yes
9712
9713     case $host_os in
9714     cygwin*)
9715       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9716       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9717       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9718       ;;
9719     mingw* | cegcc*)
9720       # MinGW DLLs use traditional 'lib' prefix
9721       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9722       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9723       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9724         # It is most probably a Windows format PATH printed by
9725         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9726         # path with ; separators, and with drive letters. We can handle the
9727         # drive letters (cygwin fileutils understands them), so leave them,
9728         # especially as we might pass files found there to a mingw objdump,
9729         # which wouldn't understand a cygwinified path. Ahh.
9730         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9731       else
9732         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9733       fi
9734       ;;
9735     pw32*)
9736       # pw32 DLLs use 'pw' prefix rather than 'lib'
9737       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9738       ;;
9739     esac
9740     ;;
9741
9742   *)
9743     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9744     ;;
9745   esac
9746   dynamic_linker='Win32 ld.exe'
9747   # FIXME: first we should search . and the directory the executable is in
9748   shlibpath_var=PATH
9749   ;;
9750
9751 darwin* | rhapsody*)
9752   dynamic_linker="$host_os dyld"
9753   version_type=darwin
9754   need_lib_prefix=no
9755   need_version=no
9756   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9757   soname_spec='${libname}${release}${major}$shared_ext'
9758   shlibpath_overrides_runpath=yes
9759   shlibpath_var=DYLD_LIBRARY_PATH
9760   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9761
9762   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9763   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9764   ;;
9765
9766 dgux*)
9767   version_type=linux
9768   need_lib_prefix=no
9769   need_version=no
9770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9771   soname_spec='${libname}${release}${shared_ext}$major'
9772   shlibpath_var=LD_LIBRARY_PATH
9773   ;;
9774
9775 freebsd1*)
9776   dynamic_linker=no
9777   ;;
9778
9779 freebsd* | dragonfly*)
9780   # DragonFly does not have aout.  When/if they implement a new
9781   # versioning mechanism, adjust this.
9782   if test -x /usr/bin/objformat; then
9783     objformat=`/usr/bin/objformat`
9784   else
9785     case $host_os in
9786     freebsd[123]*) objformat=aout ;;
9787     *) objformat=elf ;;
9788     esac
9789   fi
9790   version_type=freebsd-$objformat
9791   case $version_type in
9792     freebsd-elf*)
9793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9794       need_version=no
9795       need_lib_prefix=no
9796       ;;
9797     freebsd-*)
9798       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9799       need_version=yes
9800       ;;
9801   esac
9802   shlibpath_var=LD_LIBRARY_PATH
9803   case $host_os in
9804   freebsd2*)
9805     shlibpath_overrides_runpath=yes
9806     ;;
9807   freebsd3.[01]* | freebsdelf3.[01]*)
9808     shlibpath_overrides_runpath=yes
9809     hardcode_into_libs=yes
9810     ;;
9811   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9812   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9813     shlibpath_overrides_runpath=no
9814     hardcode_into_libs=yes
9815     ;;
9816   *) # from 4.6 on, and DragonFly
9817     shlibpath_overrides_runpath=yes
9818     hardcode_into_libs=yes
9819     ;;
9820   esac
9821   ;;
9822
9823 gnu*)
9824   version_type=linux
9825   need_lib_prefix=no
9826   need_version=no
9827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9828   soname_spec='${libname}${release}${shared_ext}$major'
9829   shlibpath_var=LD_LIBRARY_PATH
9830   hardcode_into_libs=yes
9831   ;;
9832
9833 hpux9* | hpux10* | hpux11*)
9834   # Give a soname corresponding to the major version so that dld.sl refuses to
9835   # link against other versions.
9836   version_type=sunos
9837   need_lib_prefix=no
9838   need_version=no
9839   case $host_cpu in
9840   ia64*)
9841     shrext_cmds='.so'
9842     hardcode_into_libs=yes
9843     dynamic_linker="$host_os dld.so"
9844     shlibpath_var=LD_LIBRARY_PATH
9845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847     soname_spec='${libname}${release}${shared_ext}$major'
9848     if test "X$HPUX_IA64_MODE" = X32; then
9849       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9850     else
9851       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9852     fi
9853     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9854     ;;
9855   hppa*64*)
9856     shrext_cmds='.sl'
9857     hardcode_into_libs=yes
9858     dynamic_linker="$host_os dld.sl"
9859     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9862     soname_spec='${libname}${release}${shared_ext}$major'
9863     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9864     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9865     ;;
9866   *)
9867     shrext_cmds='.sl'
9868     dynamic_linker="$host_os dld.sl"
9869     shlibpath_var=SHLIB_PATH
9870     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872     soname_spec='${libname}${release}${shared_ext}$major'
9873     ;;
9874   esac
9875   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9876   postinstall_cmds='chmod 555 $lib'
9877   ;;
9878
9879 interix[3-9]*)
9880   version_type=linux
9881   need_lib_prefix=no
9882   need_version=no
9883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884   soname_spec='${libname}${release}${shared_ext}$major'
9885   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9886   shlibpath_var=LD_LIBRARY_PATH
9887   shlibpath_overrides_runpath=no
9888   hardcode_into_libs=yes
9889   ;;
9890
9891 irix5* | irix6* | nonstopux*)
9892   case $host_os in
9893     nonstopux*) version_type=nonstopux ;;
9894     *)
9895         if test "$lt_cv_prog_gnu_ld" = yes; then
9896                 version_type=linux
9897         else
9898                 version_type=irix
9899         fi ;;
9900   esac
9901   need_lib_prefix=no
9902   need_version=no
9903   soname_spec='${libname}${release}${shared_ext}$major'
9904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9905   case $host_os in
9906   irix5* | nonstopux*)
9907     libsuff= shlibsuff=
9908     ;;
9909   *)
9910     case $LD in # libtool.m4 will add one of these switches to LD
9911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9912       libsuff= shlibsuff= libmagic=32-bit;;
9913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9914       libsuff=32 shlibsuff=N32 libmagic=N32;;
9915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9917     *) libsuff= shlibsuff= libmagic=never-match;;
9918     esac
9919     ;;
9920   esac
9921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9922   shlibpath_overrides_runpath=no
9923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9925   hardcode_into_libs=yes
9926   ;;
9927
9928 # No shared lib support for Linux oldld, aout, or coff.
9929 linux*oldld* | linux*aout* | linux*coff*)
9930   dynamic_linker=no
9931   ;;
9932
9933 # This must be Linux ELF.
9934 linux* | k*bsd*-gnu)
9935   version_type=linux
9936   need_lib_prefix=no
9937   need_version=no
9938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939   soname_spec='${libname}${release}${shared_ext}$major'
9940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9941   shlibpath_var=LD_LIBRARY_PATH
9942   shlibpath_overrides_runpath=no
9943   # Some binutils ld are patched to set DT_RUNPATH
9944   save_LDFLAGS=$LDFLAGS
9945   save_libdir=$libdir
9946   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9947        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h.  */
9950
9951 int
9952 main ()
9953 {
9954
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"; then :
9960   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9961   shlibpath_overrides_runpath=yes
9962 fi
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965     conftest$ac_exeext conftest.$ac_ext
9966   LDFLAGS=$save_LDFLAGS
9967   libdir=$save_libdir
9968
9969   # This implies no fast_install, which is unacceptable.
9970   # Some rework will be needed to allow for fast_install
9971   # before this can be enabled.
9972   hardcode_into_libs=yes
9973
9974   # Append ld.so.conf contents to the search path
9975   if test -f /etc/ld.so.conf; then
9976     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;/^$/d' | tr '\n' ' '`
9977     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9978   fi
9979
9980   # We used to test for /lib/ld.so.1 and disable shared libraries on
9981   # powerpc, because MkLinux only supported shared libraries with the
9982   # GNU dynamic linker.  Since this was broken with cross compilers,
9983   # most powerpc-linux boxes support dynamic linking these days and
9984   # people can always --disable-shared, the test was removed, and we
9985   # assume the GNU/Linux dynamic linker is in use.
9986   dynamic_linker='GNU/Linux ld.so'
9987   ;;
9988
9989 netbsdelf*-gnu)
9990   version_type=linux
9991   need_lib_prefix=no
9992   need_version=no
9993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9994   soname_spec='${libname}${release}${shared_ext}$major'
9995   shlibpath_var=LD_LIBRARY_PATH
9996   shlibpath_overrides_runpath=no
9997   hardcode_into_libs=yes
9998   dynamic_linker='NetBSD ld.elf_so'
9999   ;;
10000
10001 netbsd*)
10002   version_type=sunos
10003   need_lib_prefix=no
10004   need_version=no
10005   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10007     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10008     dynamic_linker='NetBSD (a.out) ld.so'
10009   else
10010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10011     soname_spec='${libname}${release}${shared_ext}$major'
10012     dynamic_linker='NetBSD ld.elf_so'
10013   fi
10014   shlibpath_var=LD_LIBRARY_PATH
10015   shlibpath_overrides_runpath=yes
10016   hardcode_into_libs=yes
10017   ;;
10018
10019 newsos6)
10020   version_type=linux
10021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022   shlibpath_var=LD_LIBRARY_PATH
10023   shlibpath_overrides_runpath=yes
10024   ;;
10025
10026 *nto* | *qnx*)
10027   version_type=qnx
10028   need_lib_prefix=no
10029   need_version=no
10030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031   soname_spec='${libname}${release}${shared_ext}$major'
10032   shlibpath_var=LD_LIBRARY_PATH
10033   shlibpath_overrides_runpath=no
10034   hardcode_into_libs=yes
10035   dynamic_linker='ldqnx.so'
10036   ;;
10037
10038 openbsd*)
10039   version_type=sunos
10040   sys_lib_dlsearch_path_spec="/usr/lib"
10041   need_lib_prefix=no
10042   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10043   case $host_os in
10044     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10045     *)                          need_version=no  ;;
10046   esac
10047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10049   shlibpath_var=LD_LIBRARY_PATH
10050   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10051     case $host_os in
10052       openbsd2.[89] | openbsd2.[89].*)
10053         shlibpath_overrides_runpath=no
10054         ;;
10055       *)
10056         shlibpath_overrides_runpath=yes
10057         ;;
10058       esac
10059   else
10060     shlibpath_overrides_runpath=yes
10061   fi
10062   ;;
10063
10064 os2*)
10065   libname_spec='$name'
10066   shrext_cmds=".dll"
10067   need_lib_prefix=no
10068   library_names_spec='$libname${shared_ext} $libname.a'
10069   dynamic_linker='OS/2 ld.exe'
10070   shlibpath_var=LIBPATH
10071   ;;
10072
10073 osf3* | osf4* | osf5*)
10074   version_type=osf
10075   need_lib_prefix=no
10076   need_version=no
10077   soname_spec='${libname}${release}${shared_ext}$major'
10078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079   shlibpath_var=LD_LIBRARY_PATH
10080   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10081   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10082   ;;
10083
10084 rdos*)
10085   dynamic_linker=no
10086   ;;
10087
10088 solaris*)
10089   version_type=linux
10090   need_lib_prefix=no
10091   need_version=no
10092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093   soname_spec='${libname}${release}${shared_ext}$major'
10094   shlibpath_var=LD_LIBRARY_PATH
10095   shlibpath_overrides_runpath=yes
10096   hardcode_into_libs=yes
10097   # ldd complains unless libraries are executable
10098   postinstall_cmds='chmod +x $lib'
10099   ;;
10100
10101 sunos4*)
10102   version_type=sunos
10103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10104   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10105   shlibpath_var=LD_LIBRARY_PATH
10106   shlibpath_overrides_runpath=yes
10107   if test "$with_gnu_ld" = yes; then
10108     need_lib_prefix=no
10109   fi
10110   need_version=yes
10111   ;;
10112
10113 sysv4 | sysv4.3*)
10114   version_type=linux
10115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116   soname_spec='${libname}${release}${shared_ext}$major'
10117   shlibpath_var=LD_LIBRARY_PATH
10118   case $host_vendor in
10119     sni)
10120       shlibpath_overrides_runpath=no
10121       need_lib_prefix=no
10122       runpath_var=LD_RUN_PATH
10123       ;;
10124     siemens)
10125       need_lib_prefix=no
10126       ;;
10127     motorola)
10128       need_lib_prefix=no
10129       need_version=no
10130       shlibpath_overrides_runpath=no
10131       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10132       ;;
10133   esac
10134   ;;
10135
10136 sysv4*MP*)
10137   if test -d /usr/nec ;then
10138     version_type=linux
10139     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10140     soname_spec='$libname${shared_ext}.$major'
10141     shlibpath_var=LD_LIBRARY_PATH
10142   fi
10143   ;;
10144
10145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10146   version_type=freebsd-elf
10147   need_lib_prefix=no
10148   need_version=no
10149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10150   soname_spec='${libname}${release}${shared_ext}$major'
10151   shlibpath_var=LD_LIBRARY_PATH
10152   shlibpath_overrides_runpath=yes
10153   hardcode_into_libs=yes
10154   if test "$with_gnu_ld" = yes; then
10155     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10156   else
10157     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10158     case $host_os in
10159       sco3.2v5*)
10160         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10161         ;;
10162     esac
10163   fi
10164   sys_lib_dlsearch_path_spec='/usr/lib'
10165   ;;
10166
10167 tpf*)
10168   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10169   version_type=linux
10170   need_lib_prefix=no
10171   need_version=no
10172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173   shlibpath_var=LD_LIBRARY_PATH
10174   shlibpath_overrides_runpath=no
10175   hardcode_into_libs=yes
10176   ;;
10177
10178 uts4*)
10179   version_type=linux
10180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181   soname_spec='${libname}${release}${shared_ext}$major'
10182   shlibpath_var=LD_LIBRARY_PATH
10183   ;;
10184
10185 *)
10186   dynamic_linker=no
10187   ;;
10188 esac
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10190 $as_echo "$dynamic_linker" >&6; }
10191 test "$dynamic_linker" = no && can_build_shared=no
10192
10193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10194 if test "$GCC" = yes; then
10195   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10196 fi
10197
10198 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10199   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10200 fi
10201 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10202   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10203 fi
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10292 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10293 hardcode_action=
10294 if test -n "$hardcode_libdir_flag_spec" ||
10295    test -n "$runpath_var" ||
10296    test "X$hardcode_automatic" = "Xyes" ; then
10297
10298   # We can hardcode non-existent directories.
10299   if test "$hardcode_direct" != no &&
10300      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10301      # have to relink, otherwise we might link with an installed library
10302      # when we should be linking with a yet-to-be-installed one
10303      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10304      test "$hardcode_minus_L" != no; then
10305     # Linking always hardcodes the temporary library directory.
10306     hardcode_action=relink
10307   else
10308     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10309     hardcode_action=immediate
10310   fi
10311 else
10312   # We cannot hardcode anything, or else we can only hardcode existing
10313   # directories.
10314   hardcode_action=unsupported
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10317 $as_echo "$hardcode_action" >&6; }
10318
10319 if test "$hardcode_action" = relink ||
10320    test "$inherit_rpath" = yes; then
10321   # Fast installation is not supported
10322   enable_fast_install=no
10323 elif test "$shlibpath_overrides_runpath" = yes ||
10324      test "$enable_shared" = no; then
10325   # Fast installation is not necessary
10326   enable_fast_install=needless
10327 fi
10328
10329
10330
10331
10332
10333
10334   if test "x$enable_dlopen" != xyes; then
10335   enable_dlopen=unknown
10336   enable_dlopen_self=unknown
10337   enable_dlopen_self_static=unknown
10338 else
10339   lt_cv_dlopen=no
10340   lt_cv_dlopen_libs=
10341
10342   case $host_os in
10343   beos*)
10344     lt_cv_dlopen="load_add_on"
10345     lt_cv_dlopen_libs=
10346     lt_cv_dlopen_self=yes
10347     ;;
10348
10349   mingw* | pw32* | cegcc*)
10350     lt_cv_dlopen="LoadLibrary"
10351     lt_cv_dlopen_libs=
10352     ;;
10353
10354   cygwin*)
10355     lt_cv_dlopen="dlopen"
10356     lt_cv_dlopen_libs=
10357     ;;
10358
10359   darwin*)
10360   # if libdl is installed we need to link against it
10361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10362 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10363 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366   ac_check_lib_save_LIBS=$LIBS
10367 LIBS="-ldl  $LIBS"
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h.  */
10370
10371 /* Override any GCC internal prototype to avoid an error.
10372    Use char because int might match the return type of a GCC
10373    builtin and then its argument prototype would still apply.  */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 char dlopen ();
10378 int
10379 main ()
10380 {
10381 return dlopen ();
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 if ac_fn_c_try_link "$LINENO"; then :
10387   ac_cv_lib_dl_dlopen=yes
10388 else
10389   ac_cv_lib_dl_dlopen=no
10390 fi
10391 rm -f core conftest.err conftest.$ac_objext \
10392     conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10394 fi
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10396 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10397 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10398   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10399 else
10400
10401     lt_cv_dlopen="dyld"
10402     lt_cv_dlopen_libs=
10403     lt_cv_dlopen_self=yes
10404
10405 fi
10406
10407     ;;
10408
10409   *)
10410     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10411 if test "x$ac_cv_func_shl_load" = x""yes; then :
10412   lt_cv_dlopen="shl_load"
10413 else
10414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10415 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10416 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10417   $as_echo_n "(cached) " >&6
10418 else
10419   ac_check_lib_save_LIBS=$LIBS
10420 LIBS="-ldld  $LIBS"
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h.  */
10423
10424 /* Override any GCC internal prototype to avoid an error.
10425    Use char because int might match the return type of a GCC
10426    builtin and then its argument prototype would still apply.  */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char shl_load ();
10431 int
10432 main ()
10433 {
10434 return shl_load ();
10435   ;
10436   return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440   ac_cv_lib_dld_shl_load=yes
10441 else
10442   ac_cv_lib_dld_shl_load=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext \
10445     conftest$ac_exeext conftest.$ac_ext
10446 LIBS=$ac_check_lib_save_LIBS
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10449 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10450 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10451   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10452 else
10453   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10454 if test "x$ac_cv_func_dlopen" = x""yes; then :
10455   lt_cv_dlopen="dlopen"
10456 else
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10460   $as_echo_n "(cached) " >&6
10461 else
10462   ac_check_lib_save_LIBS=$LIBS
10463 LIBS="-ldl  $LIBS"
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h.  */
10466
10467 /* Override any GCC internal prototype to avoid an error.
10468    Use char because int might match the return type of a GCC
10469    builtin and then its argument prototype would still apply.  */
10470 #ifdef __cplusplus
10471 extern "C"
10472 #endif
10473 char dlopen ();
10474 int
10475 main ()
10476 {
10477 return dlopen ();
10478   ;
10479   return 0;
10480 }
10481 _ACEOF
10482 if ac_fn_c_try_link "$LINENO"; then :
10483   ac_cv_lib_dl_dlopen=yes
10484 else
10485   ac_cv_lib_dl_dlopen=no
10486 fi
10487 rm -f core conftest.err conftest.$ac_objext \
10488     conftest$ac_exeext conftest.$ac_ext
10489 LIBS=$ac_check_lib_save_LIBS
10490 fi
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10492 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10493 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10494   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10495 else
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10497 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10498 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10499   $as_echo_n "(cached) " >&6
10500 else
10501   ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-lsvld  $LIBS"
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h.  */
10505
10506 /* Override any GCC internal prototype to avoid an error.
10507    Use char because int might match the return type of a GCC
10508    builtin and then its argument prototype would still apply.  */
10509 #ifdef __cplusplus
10510 extern "C"
10511 #endif
10512 char dlopen ();
10513 int
10514 main ()
10515 {
10516 return dlopen ();
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_link "$LINENO"; then :
10522   ac_cv_lib_svld_dlopen=yes
10523 else
10524   ac_cv_lib_svld_dlopen=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext \
10527     conftest$ac_exeext conftest.$ac_ext
10528 LIBS=$ac_check_lib_save_LIBS
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10531 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10532 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10534 else
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10536 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10537 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10538   $as_echo_n "(cached) " >&6
10539 else
10540   ac_check_lib_save_LIBS=$LIBS
10541 LIBS="-ldld  $LIBS"
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h.  */
10544
10545 /* Override any GCC internal prototype to avoid an error.
10546    Use char because int might match the return type of a GCC
10547    builtin and then its argument prototype would still apply.  */
10548 #ifdef __cplusplus
10549 extern "C"
10550 #endif
10551 char dld_link ();
10552 int
10553 main ()
10554 {
10555 return dld_link ();
10556   ;
10557   return 0;
10558 }
10559 _ACEOF
10560 if ac_fn_c_try_link "$LINENO"; then :
10561   ac_cv_lib_dld_dld_link=yes
10562 else
10563   ac_cv_lib_dld_dld_link=no
10564 fi
10565 rm -f core conftest.err conftest.$ac_objext \
10566     conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10568 fi
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10570 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10571 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10572   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10573 fi
10574
10575
10576 fi
10577
10578
10579 fi
10580
10581
10582 fi
10583
10584
10585 fi
10586
10587
10588 fi
10589
10590     ;;
10591   esac
10592
10593   if test "x$lt_cv_dlopen" != xno; then
10594     enable_dlopen=yes
10595   else
10596     enable_dlopen=no
10597   fi
10598
10599   case $lt_cv_dlopen in
10600   dlopen)
10601     save_CPPFLAGS="$CPPFLAGS"
10602     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10603
10604     save_LDFLAGS="$LDFLAGS"
10605     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10606
10607     save_LIBS="$LIBS"
10608     LIBS="$lt_cv_dlopen_libs $LIBS"
10609
10610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10611 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10612 if test "${lt_cv_dlopen_self+set}" = set; then :
10613   $as_echo_n "(cached) " >&6
10614 else
10615           if test "$cross_compiling" = yes; then :
10616   lt_cv_dlopen_self=cross
10617 else
10618   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10619   lt_status=$lt_dlunknown
10620   cat > conftest.$ac_ext <<_LT_EOF
10621 #line 10621 "configure"
10622 #include "confdefs.h"
10623
10624 #if HAVE_DLFCN_H
10625 #include <dlfcn.h>
10626 #endif
10627
10628 #include <stdio.h>
10629
10630 #ifdef RTLD_GLOBAL
10631 #  define LT_DLGLOBAL           RTLD_GLOBAL
10632 #else
10633 #  ifdef DL_GLOBAL
10634 #    define LT_DLGLOBAL         DL_GLOBAL
10635 #  else
10636 #    define LT_DLGLOBAL         0
10637 #  endif
10638 #endif
10639
10640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10641    find out it does not work in some platform. */
10642 #ifndef LT_DLLAZY_OR_NOW
10643 #  ifdef RTLD_LAZY
10644 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10645 #  else
10646 #    ifdef DL_LAZY
10647 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10648 #    else
10649 #      ifdef RTLD_NOW
10650 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10651 #      else
10652 #        ifdef DL_NOW
10653 #          define LT_DLLAZY_OR_NOW      DL_NOW
10654 #        else
10655 #          define LT_DLLAZY_OR_NOW      0
10656 #        endif
10657 #      endif
10658 #    endif
10659 #  endif
10660 #endif
10661
10662 void fnord() { int i=42;}
10663 int main ()
10664 {
10665   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10666   int status = $lt_dlunknown;
10667
10668   if (self)
10669     {
10670       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10671       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10672       /* dlclose (self); */
10673     }
10674   else
10675     puts (dlerror ());
10676
10677   return status;
10678 }
10679 _LT_EOF
10680   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10681   (eval $ac_link) 2>&5
10682   ac_status=$?
10683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10685     (./conftest; exit; ) >&5 2>/dev/null
10686     lt_status=$?
10687     case x$lt_status in
10688       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10689       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10690       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10691     esac
10692   else :
10693     # compilation failed
10694     lt_cv_dlopen_self=no
10695   fi
10696 fi
10697 rm -fr conftest*
10698
10699
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10702 $as_echo "$lt_cv_dlopen_self" >&6; }
10703
10704     if test "x$lt_cv_dlopen_self" = xyes; then
10705       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10706       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10707 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10708 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10709   $as_echo_n "(cached) " >&6
10710 else
10711           if test "$cross_compiling" = yes; then :
10712   lt_cv_dlopen_self_static=cross
10713 else
10714   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10715   lt_status=$lt_dlunknown
10716   cat > conftest.$ac_ext <<_LT_EOF
10717 #line 10717 "configure"
10718 #include "confdefs.h"
10719
10720 #if HAVE_DLFCN_H
10721 #include <dlfcn.h>
10722 #endif
10723
10724 #include <stdio.h>
10725
10726 #ifdef RTLD_GLOBAL
10727 #  define LT_DLGLOBAL           RTLD_GLOBAL
10728 #else
10729 #  ifdef DL_GLOBAL
10730 #    define LT_DLGLOBAL         DL_GLOBAL
10731 #  else
10732 #    define LT_DLGLOBAL         0
10733 #  endif
10734 #endif
10735
10736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10737    find out it does not work in some platform. */
10738 #ifndef LT_DLLAZY_OR_NOW
10739 #  ifdef RTLD_LAZY
10740 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10741 #  else
10742 #    ifdef DL_LAZY
10743 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10744 #    else
10745 #      ifdef RTLD_NOW
10746 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10747 #      else
10748 #        ifdef DL_NOW
10749 #          define LT_DLLAZY_OR_NOW      DL_NOW
10750 #        else
10751 #          define LT_DLLAZY_OR_NOW      0
10752 #        endif
10753 #      endif
10754 #    endif
10755 #  endif
10756 #endif
10757
10758 void fnord() { int i=42;}
10759 int main ()
10760 {
10761   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10762   int status = $lt_dlunknown;
10763
10764   if (self)
10765     {
10766       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10767       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10768       /* dlclose (self); */
10769     }
10770   else
10771     puts (dlerror ());
10772
10773   return status;
10774 }
10775 _LT_EOF
10776   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10777   (eval $ac_link) 2>&5
10778   ac_status=$?
10779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10780   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10781     (./conftest; exit; ) >&5 2>/dev/null
10782     lt_status=$?
10783     case x$lt_status in
10784       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10785       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10786       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10787     esac
10788   else :
10789     # compilation failed
10790     lt_cv_dlopen_self_static=no
10791   fi
10792 fi
10793 rm -fr conftest*
10794
10795
10796 fi
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10798 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10799     fi
10800
10801     CPPFLAGS="$save_CPPFLAGS"
10802     LDFLAGS="$save_LDFLAGS"
10803     LIBS="$save_LIBS"
10804     ;;
10805   esac
10806
10807   case $lt_cv_dlopen_self in
10808   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10809   *) enable_dlopen_self=unknown ;;
10810   esac
10811
10812   case $lt_cv_dlopen_self_static in
10813   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10814   *) enable_dlopen_self_static=unknown ;;
10815   esac
10816 fi
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834 striplib=
10835 old_striplib=
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10837 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10838 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10839   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10840   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842 $as_echo "yes" >&6; }
10843 else
10844 # FIXME - insert some real tests, host_os isn't really good enough
10845   case $host_os in
10846   darwin*)
10847     if test -n "$STRIP" ; then
10848       striplib="$STRIP -x"
10849       old_striplib="$STRIP -S"
10850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851 $as_echo "yes" >&6; }
10852     else
10853       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10855     fi
10856     ;;
10857   *)
10858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10860     ;;
10861   esac
10862 fi
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875   # Report which library types will actually be built
10876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10877 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10879 $as_echo "$can_build_shared" >&6; }
10880
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10882 $as_echo_n "checking whether to build shared libraries... " >&6; }
10883   test "$can_build_shared" = "no" && enable_shared=no
10884
10885   # On AIX, shared libraries and static libraries use the same namespace, and
10886   # are all built from PIC.
10887   case $host_os in
10888   aix3*)
10889     test "$enable_shared" = yes && enable_static=no
10890     if test -n "$RANLIB"; then
10891       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10892       postinstall_cmds='$RANLIB $lib'
10893     fi
10894     ;;
10895
10896   aix[4-9]*)
10897     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10898       test "$enable_shared" = yes && enable_static=no
10899     fi
10900     ;;
10901   esac
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10903 $as_echo "$enable_shared" >&6; }
10904
10905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10906 $as_echo_n "checking whether to build static libraries... " >&6; }
10907   # Make sure either enable_shared or enable_static is yes.
10908   test "$enable_shared" = yes || enable_static=yes
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10910 $as_echo "$enable_static" >&6; }
10911
10912
10913
10914
10915 fi
10916 ac_ext=c
10917 ac_cpp='$CPP $CPPFLAGS'
10918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10921
10922 CC="$lt_save_CC"
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936         ac_config_commands="$ac_config_commands libtool"
10937
10938
10939
10940
10941 # Only expand once:
10942
10943
10944
10945 if test "z$RM" == "z" ; then
10946     # Extract the first word of "rm", so it can be a program name with args.
10947 set dummy rm; ac_word=$2
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10949 $as_echo_n "checking for $ac_word... " >&6; }
10950 if test "${ac_cv_path_RM+set}" = set; then :
10951   $as_echo_n "(cached) " >&6
10952 else
10953   case $RM in
10954   [\\/]* | ?:[\\/]*)
10955   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10956   ;;
10957   *)
10958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $PATH
10960 do
10961   IFS=$as_save_IFS
10962   test -z "$as_dir" && as_dir=.
10963     for ac_exec_ext in '' $ac_executable_extensions; do
10964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10965     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10967     break 2
10968   fi
10969 done
10970   done
10971 IFS=$as_save_IFS
10972
10973   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
10974   ;;
10975 esac
10976 fi
10977 RM=$ac_cv_path_RM
10978 if test -n "$RM"; then
10979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10980 $as_echo "$RM" >&6; }
10981 else
10982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10984 fi
10985
10986
10987 fi
10988 # Extract the first word of "cp", so it can be a program name with args.
10989 set dummy cp; ac_word=$2
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991 $as_echo_n "checking for $ac_word... " >&6; }
10992 if test "${ac_cv_path_CP+set}" = set; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995   case $CP in
10996   [\\/]* | ?:[\\/]*)
10997   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10998   ;;
10999   *)
11000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11002 do
11003   IFS=$as_save_IFS
11004   test -z "$as_dir" && as_dir=.
11005     for ac_exec_ext in '' $ac_executable_extensions; do
11006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009     break 2
11010   fi
11011 done
11012   done
11013 IFS=$as_save_IFS
11014
11015   test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
11016   ;;
11017 esac
11018 fi
11019 CP=$ac_cv_path_CP
11020 if test -n "$CP"; then
11021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11022 $as_echo "$CP" >&6; }
11023 else
11024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026 fi
11027
11028
11029 # Extract the first word of "mv", so it can be a program name with args.
11030 set dummy mv; ac_word=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_path_MV+set}" = set; then :
11034   $as_echo_n "(cached) " >&6
11035 else
11036   case $MV in
11037   [\\/]* | ?:[\\/]*)
11038   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11039   ;;
11040   *)
11041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044   IFS=$as_save_IFS
11045   test -z "$as_dir" && as_dir=.
11046     for ac_exec_ext in '' $ac_executable_extensions; do
11047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050     break 2
11051   fi
11052 done
11053   done
11054 IFS=$as_save_IFS
11055
11056   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
11057   ;;
11058 esac
11059 fi
11060 MV=$ac_cv_path_MV
11061 if test -n "$MV"; then
11062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11063 $as_echo "$MV" >&6; }
11064 else
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 fi
11068
11069
11070 # Extract the first word of "tar", so it can be a program name with args.
11071 set dummy tar; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 $as_echo_n "checking for $ac_word... " >&6; }
11074 if test "${ac_cv_path_TAR+set}" = set; then :
11075   $as_echo_n "(cached) " >&6
11076 else
11077   case $TAR in
11078   [\\/]* | ?:[\\/]*)
11079   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11080   ;;
11081   *)
11082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11084 do
11085   IFS=$as_save_IFS
11086   test -z "$as_dir" && as_dir=.
11087     for ac_exec_ext in '' $ac_executable_extensions; do
11088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091     break 2
11092   fi
11093 done
11094   done
11095 IFS=$as_save_IFS
11096
11097   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
11098   ;;
11099 esac
11100 fi
11101 TAR=$ac_cv_path_TAR
11102 if test -n "$TAR"; then
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11104 $as_echo "$TAR" >&6; }
11105 else
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 fi
11109
11110
11111 # Extract the first word of "help2man", so it can be a program name with args.
11112 set dummy help2man; ac_word=$2
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 $as_echo_n "checking for $ac_word... " >&6; }
11115 if test "${ac_cv_path_HELP2MAN+set}" = set; then :
11116   $as_echo_n "(cached) " >&6
11117 else
11118   case $HELP2MAN in
11119   [\\/]* | ?:[\\/]*)
11120   ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
11121   ;;
11122   *)
11123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126   IFS=$as_save_IFS
11127   test -z "$as_dir" && as_dir=.
11128     for ac_exec_ext in '' $ac_executable_extensions; do
11129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130     ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
11131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132     break 2
11133   fi
11134 done
11135   done
11136 IFS=$as_save_IFS
11137
11138   ;;
11139 esac
11140 fi
11141 HELP2MAN=$ac_cv_path_HELP2MAN
11142 if test -n "$HELP2MAN"; then
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
11144 $as_echo "$HELP2MAN" >&6; }
11145 else
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11148 fi
11149
11150
11151 # Extract the first word of "man2html", so it can be a program name with args.
11152 set dummy man2html; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if test "${ac_cv_path_MAN2HTML+set}" = set; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   case $MAN2HTML in
11159   [\\/]* | ?:[\\/]*)
11160   ac_cv_path_MAN2HTML="$MAN2HTML" # Let the user override the test with a path.
11161   ;;
11162   *)
11163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166   IFS=$as_save_IFS
11167   test -z "$as_dir" && as_dir=.
11168     for ac_exec_ext in '' $ac_executable_extensions; do
11169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170     ac_cv_path_MAN2HTML="$as_dir/$ac_word$ac_exec_ext"
11171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172     break 2
11173   fi
11174 done
11175   done
11176 IFS=$as_save_IFS
11177
11178   ;;
11179 esac
11180 fi
11181 MAN2HTML=$ac_cv_path_MAN2HTML
11182 if test -n "$MAN2HTML"; then
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
11184 $as_echo "$MAN2HTML" >&6; }
11185 else
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11188 fi
11189
11190
11191
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
11193 $as_echo_n "checking for function prototypes... " >&6; }
11194 if test "$ac_cv_prog_cc_c89" != no; then
11195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11196 $as_echo "yes" >&6; }
11197
11198 $as_echo "#define PROTOTYPES 1" >>confdefs.h
11199
11200
11201 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
11202
11203 else
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11206 fi
11207
11208
11209 if test "$ac_cv_prog_cc_stdc" != no; then
11210   U= ANSI2KNR=
11211 else
11212   U=_ ANSI2KNR=./ansi2knr
11213 fi
11214 # Ensure some checks needed by ansi2knr itself.
11215
11216 for ac_header in string.h
11217 do :
11218   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
11219 if test "x$ac_cv_header_string_h" = x""yes; then :
11220   cat >>confdefs.h <<_ACEOF
11221 #define HAVE_STRING_H 1
11222 _ACEOF
11223
11224 fi
11225
11226 done
11227
11228
11229 test "z$U" != "z" && as_fn_error "Compiler not ANSI compliant" "$LINENO" 5
11230
11231 ac_header_dirent=no
11232 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11233   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11235 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11237   $as_echo_n "(cached) " >&6
11238 else
11239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h.  */
11241 #include <sys/types.h>
11242 #include <$ac_hdr>
11243
11244 int
11245 main ()
11246 {
11247 if ((DIR *) 0)
11248 return 0;
11249   ;
11250   return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_compile "$LINENO"; then :
11254   eval "$as_ac_Header=yes"
11255 else
11256   eval "$as_ac_Header=no"
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259 fi
11260 eval ac_res=\$$as_ac_Header
11261                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11262 $as_echo "$ac_res" >&6; }
11263 eval as_val=\$$as_ac_Header
11264    if test "x$as_val" = x""yes; then :
11265   cat >>confdefs.h <<_ACEOF
11266 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11267 _ACEOF
11268
11269 ac_header_dirent=$ac_hdr; break
11270 fi
11271
11272 done
11273 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11274 if test $ac_header_dirent = dirent.h; then
11275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11276 $as_echo_n "checking for library containing opendir... " >&6; }
11277 if test "${ac_cv_search_opendir+set}" = set; then :
11278   $as_echo_n "(cached) " >&6
11279 else
11280   ac_func_search_save_LIBS=$LIBS
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h.  */
11283
11284 /* Override any GCC internal prototype to avoid an error.
11285    Use char because int might match the return type of a GCC
11286    builtin and then its argument prototype would still apply.  */
11287 #ifdef __cplusplus
11288 extern "C"
11289 #endif
11290 char opendir ();
11291 int
11292 main ()
11293 {
11294 return opendir ();
11295   ;
11296   return 0;
11297 }
11298 _ACEOF
11299 for ac_lib in '' dir; do
11300   if test -z "$ac_lib"; then
11301     ac_res="none required"
11302   else
11303     ac_res=-l$ac_lib
11304     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11305   fi
11306   if ac_fn_c_try_link "$LINENO"; then :
11307   ac_cv_search_opendir=$ac_res
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310     conftest$ac_exeext
11311   if test "${ac_cv_search_opendir+set}" = set; then :
11312   break
11313 fi
11314 done
11315 if test "${ac_cv_search_opendir+set}" = set; then :
11316
11317 else
11318   ac_cv_search_opendir=no
11319 fi
11320 rm conftest.$ac_ext
11321 LIBS=$ac_func_search_save_LIBS
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11324 $as_echo "$ac_cv_search_opendir" >&6; }
11325 ac_res=$ac_cv_search_opendir
11326 if test "$ac_res" != no; then :
11327   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11328
11329 fi
11330
11331 else
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11333 $as_echo_n "checking for library containing opendir... " >&6; }
11334 if test "${ac_cv_search_opendir+set}" = set; then :
11335   $as_echo_n "(cached) " >&6
11336 else
11337   ac_func_search_save_LIBS=$LIBS
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h.  */
11340
11341 /* Override any GCC internal prototype to avoid an error.
11342    Use char because int might match the return type of a GCC
11343    builtin and then its argument prototype would still apply.  */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 char opendir ();
11348 int
11349 main ()
11350 {
11351 return opendir ();
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 for ac_lib in '' x; do
11357   if test -z "$ac_lib"; then
11358     ac_res="none required"
11359   else
11360     ac_res=-l$ac_lib
11361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11362   fi
11363   if ac_fn_c_try_link "$LINENO"; then :
11364   ac_cv_search_opendir=$ac_res
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext \
11367     conftest$ac_exeext
11368   if test "${ac_cv_search_opendir+set}" = set; then :
11369   break
11370 fi
11371 done
11372 if test "${ac_cv_search_opendir+set}" = set; then :
11373
11374 else
11375   ac_cv_search_opendir=no
11376 fi
11377 rm conftest.$ac_ext
11378 LIBS=$ac_func_search_save_LIBS
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11381 $as_echo "$ac_cv_search_opendir" >&6; }
11382 ac_res=$ac_cv_search_opendir
11383 if test "$ac_res" != no; then :
11384   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11385
11386 fi
11387
11388 fi
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11391 $as_echo_n "checking for ANSI C header files... " >&6; }
11392 if test "${ac_cv_header_stdc+set}" = set; then :
11393   $as_echo_n "(cached) " >&6
11394 else
11395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h.  */
11397 #include <stdlib.h>
11398 #include <stdarg.h>
11399 #include <string.h>
11400 #include <float.h>
11401
11402 int
11403 main ()
11404 {
11405
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_compile "$LINENO"; then :
11411   ac_cv_header_stdc=yes
11412 else
11413   ac_cv_header_stdc=no
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416
11417 if test $ac_cv_header_stdc = yes; then
11418   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h.  */
11421 #include <string.h>
11422
11423 _ACEOF
11424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11425   $EGREP "memchr" >/dev/null 2>&1; then :
11426
11427 else
11428   ac_cv_header_stdc=no
11429 fi
11430 rm -f conftest*
11431
11432 fi
11433
11434 if test $ac_cv_header_stdc = yes; then
11435   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h.  */
11438 #include <stdlib.h>
11439
11440 _ACEOF
11441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442   $EGREP "free" >/dev/null 2>&1; then :
11443
11444 else
11445   ac_cv_header_stdc=no
11446 fi
11447 rm -f conftest*
11448
11449 fi
11450
11451 if test $ac_cv_header_stdc = yes; then
11452   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11453   if test "$cross_compiling" = yes; then :
11454   :
11455 else
11456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h.  */
11458 #include <ctype.h>
11459 #include <stdlib.h>
11460 #if ((' ' & 0x0FF) == 0x020)
11461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11463 #else
11464 # define ISLOWER(c) \
11465                    (('a' <= (c) && (c) <= 'i') \
11466                      || ('j' <= (c) && (c) <= 'r') \
11467                      || ('s' <= (c) && (c) <= 'z'))
11468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11469 #endif
11470
11471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11472 int
11473 main ()
11474 {
11475   int i;
11476   for (i = 0; i < 256; i++)
11477     if (XOR (islower (i), ISLOWER (i))
11478         || toupper (i) != TOUPPER (i))
11479       return 2;
11480   return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_run "$LINENO"; then :
11484
11485 else
11486   ac_cv_header_stdc=no
11487 fi
11488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11489   conftest.$ac_objext conftest.beam conftest.$ac_ext
11490 fi
11491
11492 fi
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11495 $as_echo "$ac_cv_header_stdc" >&6; }
11496 if test $ac_cv_header_stdc = yes; then
11497
11498 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11499
11500 fi
11501
11502 for ac_header in stdio.h
11503 do :
11504   ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11505 if test "x$ac_cv_header_stdio_h" = x""yes; then :
11506   cat >>confdefs.h <<_ACEOF
11507 #define HAVE_STDIO_H 1
11508 _ACEOF
11509
11510 fi
11511
11512 done
11513
11514 for ac_header in stdlib.h
11515 do :
11516   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11517 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11518   cat >>confdefs.h <<_ACEOF
11519 #define HAVE_STDLIB_H 1
11520 _ACEOF
11521
11522 fi
11523
11524 done
11525
11526 for ac_header in string.h
11527 do :
11528   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
11529 if test "x$ac_cv_header_string_h" = x""yes; then :
11530   cat >>confdefs.h <<_ACEOF
11531 #define HAVE_STRING_H 1
11532 _ACEOF
11533
11534 fi
11535
11536 done
11537
11538 for ac_header in ctype.h
11539 do :
11540   ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
11541 if test "x$ac_cv_header_ctype_h" = x""yes; then :
11542   cat >>confdefs.h <<_ACEOF
11543 #define HAVE_CTYPE_H 1
11544 _ACEOF
11545
11546 fi
11547
11548 done
11549
11550 for ac_header in errno.h
11551 do :
11552   ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11553 if test "x$ac_cv_header_errno_h" = x""yes; then :
11554   cat >>confdefs.h <<_ACEOF
11555 #define HAVE_ERRNO_H 1
11556 _ACEOF
11557
11558 fi
11559
11560 done
11561
11562 for ac_header in ansidecl.h
11563 do :
11564   ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
11565 if test "x$ac_cv_header_ansidecl_h" = x""yes; then :
11566   cat >>confdefs.h <<_ACEOF
11567 #define HAVE_ANSIDECL_H 1
11568 _ACEOF
11569
11570 fi
11571
11572 done
11573
11574 for ac_header in time.h
11575 do :
11576   ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
11577 if test "x$ac_cv_header_time_h" = x""yes; then :
11578   cat >>confdefs.h <<_ACEOF
11579 #define HAVE_TIME_H 1
11580 _ACEOF
11581
11582 fi
11583
11584 done
11585
11586 for ac_func in strchr strrchr printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf timegm
11587 do :
11588   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11590 eval as_val=\$$as_ac_var
11591    if test "x$as_val" = x""yes; then :
11592   cat >>confdefs.h <<_ACEOF
11593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11594 _ACEOF
11595
11596 fi
11597 done
11598
11599
11600 XMLSEC_DEFINES=""
11601
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for development environment" >&5
11603 $as_echo_n "checking for development environment... " >&6; }
11604 # Check whether --enable-development was given.
11605 if test "${enable_development+set}" = set; then :
11606   enableval=$enable_development;
11607 fi
11608
11609 if test "z$enable_development" = "zyes" ; then
11610     enable_debuging="yes"
11611     enable_pedantic="yes"
11612     enable_static_linking="yes"
11613     enable_crypto_dl="no"
11614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11615 $as_echo "yes" >&6; }
11616 else
11617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620
11621
11622 XMLSEC_EXTRA_LDFLAGS=
11623 XMLSEC_CRYPTO_EXTRA_LDFLAGS=
11624
11625 xmlsec_sharedlib_hack="no"
11626 if test -n "$shrext"; then
11627   XMLSEC_SHLIBSFX="$shrext"
11628 else
11629     XMLSEC_SHLIBSFX="$shrext_cmds"
11630 fi
11631 case "${host}" in
11632     *aix* )
11633         CFLAGS="${CFLAGS} -D_ALL_SOURCE"
11634         ;;
11635  *-*-mingw*)
11636                                 XMLSEC_EXTRA_LDFLAGS="-no-undefined -avoid-version"
11637         XMLSEC_CRYPTO_EXTRA_LDFLAGS="-no-undefined -avoid-version"
11638         XMLSEC_SHLIBSFX=".dll.a"
11639         xmlsec_sharedlib_hack="yes"
11640         ;;
11641  *-*-cygwin*)
11642         XMLSEC_EXTRA_LDFLAGS="-no-undefined"
11643         XMLSEC_CRYPTO_EXTRA_LDFLAGS="-no-undefined"
11644         ;;
11645 esac
11646
11647 # To avoid problem with loading of a shared library (dlopen or equivalent)
11648 # at run time on some platforms we need to link crypto modules with extra
11649 # source. It's work without hack on 9x and under emulation.
11650 # On nt 5.x (w2k,xp) the error is 998("Invalid access to memory location").
11651  if test "z$xmlsec_sharedlib_hack" = "zyes"; then
11652   SHAREDLIB_HACK_TRUE=
11653   SHAREDLIB_HACK_FALSE='#'
11654 else
11655   SHAREDLIB_HACK_TRUE='#'
11656   SHAREDLIB_HACK_FALSE=
11657 fi
11658
11659
11660 if test "z$shrext" == "z" ; then
11661     shrext=$shrext_cmds
11662 fi
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__ or __func__" >&5
11665 $as_echo_n "checking for __FUNCTION__ or __func__... " >&6; }
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h.  */
11668
11669 int
11670 main ()
11671 {
11672 char *foo = __FUNCTION__;
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_compile "$LINENO"; then :
11678   ac_function_exists=yes
11679 else
11680   ac_function_exists=no
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h.  */
11685
11686 int
11687 main ()
11688 {
11689 char *foo = __func__;
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_c_try_compile "$LINENO"; then :
11695   ac_func_exists=yes
11696 else
11697   ac_func_exists=no
11698 fi
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700 if test "z$ac_function_exists" = "zyes" ; then
11701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: __FUNCTION__" >&5
11702 $as_echo "__FUNCTION__" >&6; }
11703         XMLSEC_DEFINES="$XMLSEC_DEFINES -D__XMLSEC_FUNCTION__=__FUNCTION__"
11704 elif test "z$ac_func_exists" = "zyes" ; then
11705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: __func__" >&5
11706 $as_echo "__func__" >&6; }
11707         XMLSEC_DEFINES="$XMLSEC_DEFINES -D__XMLSEC_FUNCTION__=__func__"
11708 else
11709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
11710 $as_echo "\"no\"" >&6; }
11711 fi
11712
11713 # The cast to long int works around a bug in the HP C Compiler
11714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11716 # This bug is HP SR number 8606223364.
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
11718 $as_echo_n "checking size of size_t... " >&6; }
11719 if test "${ac_cv_sizeof_size_t+set}" = set; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
11723
11724 else
11725   if test "$ac_cv_type_size_t" = yes; then
11726      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11728 { as_fn_set_status 77
11729 as_fn_error "cannot compute sizeof (size_t)
11730 See \`config.log' for more details." "$LINENO" 5; }; }
11731    else
11732      ac_cv_sizeof_size_t=0
11733    fi
11734 fi
11735
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
11738 $as_echo "$ac_cv_sizeof_size_t" >&6; }
11739
11740
11741
11742 cat >>confdefs.h <<_ACEOF
11743 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
11744 _ACEOF
11745
11746
11747 if test "$ac_cv_sizeof_size_t" -ne "4" ; then
11748     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SIZE_T"
11749 fi
11750
11751
11752
11753
11754 # Check whether --enable-pkgconfig was given.
11755 if test "${enable_pkgconfig+set}" = set; then :
11756   enableval=$enable_pkgconfig;
11757 fi
11758
11759 if test "z$enable_pkgconfig" = "zno" ; then
11760     PKG_CONFIG_ENABLED=no
11761 else
11762     # Extract the first word of "pkg-config", so it can be a program name with args.
11763 set dummy pkg-config; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if test "${ac_cv_prog_PKG_CONFIG_ENABLED+set}" = set; then :
11767   $as_echo_n "(cached) " >&6
11768 else
11769   if test -n "$PKG_CONFIG_ENABLED"; then
11770   ac_cv_prog_PKG_CONFIG_ENABLED="$PKG_CONFIG_ENABLED" # Let the user override the test.
11771 else
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11774 do
11775   IFS=$as_save_IFS
11776   test -z "$as_dir" && as_dir=.
11777     for ac_exec_ext in '' $ac_executable_extensions; do
11778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11779     ac_cv_prog_PKG_CONFIG_ENABLED="yes"
11780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781     break 2
11782   fi
11783 done
11784   done
11785 IFS=$as_save_IFS
11786
11787   test -z "$ac_cv_prog_PKG_CONFIG_ENABLED" && ac_cv_prog_PKG_CONFIG_ENABLED="no"
11788 fi
11789 fi
11790 PKG_CONFIG_ENABLED=$ac_cv_prog_PKG_CONFIG_ENABLED
11791 if test -n "$PKG_CONFIG_ENABLED"; then
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG_ENABLED" >&5
11793 $as_echo "$PKG_CONFIG_ENABLED" >&6; }
11794 else
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 fi
11798
11799
11800     if test "z$PKG_CONFIG_ENABLED" = "zyes" ; then
11801         if ! pkg-config --atleast-pkgconfig-version 0.9 ; then
11802             PKG_CONFIG_ENABLED=no
11803         fi
11804     fi
11805 fi
11806
11807 LIBXML_MIN_VERSION="2.7.4"
11808 LIBXML_CONFIG="xml2-config"
11809 LIBXML_CFLAGS=""
11810 LIBXML_LIBS=""
11811 LIBXML_FOUND="no"
11812
11813 # Check whether --with-libxml was given.
11814 if test "${with_libxml+set}" = set; then :
11815   withval=$with_libxml;
11816 fi
11817
11818
11819 # Check whether --with-libxml-src was given.
11820 if test "${with_libxml_src+set}" = set; then :
11821   withval=$with_libxml_src;
11822 fi
11823
11824
11825 if test "z$with_libxml" = "zno" -o "z$with_libxml_src" = "zno"; then
11826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 libraries >= $LIBXML_MIN_VERSION" >&5
11827 $as_echo_n "checking for libxml2 libraries >= $LIBXML_MIN_VERSION... " >&6; }
11828     as_fn_error "libxml2 >= $LIBXML_MIN_VERSION is required for $XMLSEC_PACKAGE" "$LINENO" 5
11829 elif test "z$with_libxml_src" != "z" ; then
11830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 libraries >= $LIBXML_MIN_VERSION" >&5
11831 $as_echo_n "checking for libxml2 libraries >= $LIBXML_MIN_VERSION... " >&6; }
11832     CWD=`pwd`
11833     if cd "$with_libxml_src" ; then
11834         SRC_DIR=`pwd`
11835         LIBXML_CONFIG=${SRC_DIR}/xml2-config
11836         LIBXML_LIBS="-L${SRC_DIR}/.libs -lxml2"
11837         LIBXML_CFLAGS="-I${SRC_DIR}/include"
11838         LIBXML_FOUND="yes"
11839         cd $CWD
11840         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (source)" >&5
11841 $as_echo "yes (source)" >&6; }
11842     else
11843         as_fn_error "libxml source dir not found (${with_libxml_src}), typo?" "$LINENO" 5
11844     fi
11845 elif test "z$with_libxml" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
11846
11847
11848 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11849         if test -n "$ac_tool_prefix"; then
11850   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11851 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853 $as_echo_n "checking for $ac_word... " >&6; }
11854 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11855   $as_echo_n "(cached) " >&6
11856 else
11857   case $PKG_CONFIG in
11858   [\\/]* | ?:[\\/]*)
11859   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11860   ;;
11861   *)
11862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11864 do
11865   IFS=$as_save_IFS
11866   test -z "$as_dir" && as_dir=.
11867     for ac_exec_ext in '' $ac_executable_extensions; do
11868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871     break 2
11872   fi
11873 done
11874   done
11875 IFS=$as_save_IFS
11876
11877   ;;
11878 esac
11879 fi
11880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11881 if test -n "$PKG_CONFIG"; then
11882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11883 $as_echo "$PKG_CONFIG" >&6; }
11884 else
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11887 fi
11888
11889
11890 fi
11891 if test -z "$ac_cv_path_PKG_CONFIG"; then
11892   ac_pt_PKG_CONFIG=$PKG_CONFIG
11893   # Extract the first word of "pkg-config", so it can be a program name with args.
11894 set dummy pkg-config; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11898   $as_echo_n "(cached) " >&6
11899 else
11900   case $ac_pt_PKG_CONFIG in
11901   [\\/]* | ?:[\\/]*)
11902   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11903   ;;
11904   *)
11905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910     for ac_exec_ext in '' $ac_executable_extensions; do
11911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914     break 2
11915   fi
11916 done
11917   done
11918 IFS=$as_save_IFS
11919
11920   ;;
11921 esac
11922 fi
11923 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11924 if test -n "$ac_pt_PKG_CONFIG"; then
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11926 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11927 else
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11930 fi
11931
11932   if test "x$ac_pt_PKG_CONFIG" = x; then
11933     PKG_CONFIG=""
11934   else
11935     case $cross_compiling:$ac_tool_warned in
11936 yes:)
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11939 ac_tool_warned=yes ;;
11940 esac
11941     PKG_CONFIG=$ac_pt_PKG_CONFIG
11942   fi
11943 else
11944   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11945 fi
11946
11947 fi
11948 if test -n "$PKG_CONFIG"; then
11949         _pkg_min_version=0.9.0
11950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11951 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11952         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11953                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954 $as_echo "yes" >&6; }
11955         else
11956                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11958                 PKG_CONFIG=""
11959         fi
11960
11961 fi
11962
11963 pkg_failed=no
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
11965 $as_echo_n "checking for LIBXML... " >&6; }
11966
11967 if test -n "$PKG_CONFIG"; then
11968     if test -n "$LIBXML_CFLAGS"; then
11969         pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
11970     else
11971         if test -n "$PKG_CONFIG" && \
11972     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_MIN_VERSION\""; } >&5
11973   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION") 2>&5
11974   ac_status=$?
11975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11976   test $ac_status = 0; }; then
11977   pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>/dev/null`
11978 else
11979   pkg_failed=yes
11980 fi
11981     fi
11982 else
11983         pkg_failed=untried
11984 fi
11985 if test -n "$PKG_CONFIG"; then
11986     if test -n "$LIBXML_LIBS"; then
11987         pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
11988     else
11989         if test -n "$PKG_CONFIG" && \
11990     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_MIN_VERSION\""; } >&5
11991   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION") 2>&5
11992   ac_status=$?
11993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11994   test $ac_status = 0; }; then
11995   pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>/dev/null`
11996 else
11997   pkg_failed=yes
11998 fi
11999     fi
12000 else
12001         pkg_failed=untried
12002 fi
12003
12004
12005
12006 if test $pkg_failed = yes; then
12007
12008 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12009         _pkg_short_errors_supported=yes
12010 else
12011         _pkg_short_errors_supported=no
12012 fi
12013         if test $_pkg_short_errors_supported = yes; then
12014                 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION"`
12015         else
12016                 LIBXML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION"`
12017         fi
12018         # Put the nasty error message in config.log where it belongs
12019         echo "$LIBXML_PKG_ERRORS" >&5
12020
12021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023                 LIBXML_FOUND=no
12024 elif test $pkg_failed = untried; then
12025         LIBXML_FOUND=no
12026 else
12027         LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
12028         LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
12029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12030 $as_echo "yes" >&6; }
12031         LIBXML_FOUND=yes
12032 fi
12033 fi
12034 if test "z$LIBXML_FOUND" = "zno" ; then
12035     if test "z$with_libxml" != "zyes" ; then
12036         # Extract the first word of "$LIBXML_CONFIG", so it can be a program name with args.
12037 set dummy $LIBXML_CONFIG; ac_word=$2
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039 $as_echo_n "checking for $ac_word... " >&6; }
12040 if test "${ac_cv_path_LIBXML_CONFIG+set}" = set; then :
12041   $as_echo_n "(cached) " >&6
12042 else
12043   case $LIBXML_CONFIG in
12044   [\\/]* | ?:[\\/]*)
12045   ac_cv_path_LIBXML_CONFIG="$LIBXML_CONFIG" # Let the user override the test with a path.
12046   ;;
12047   *)
12048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 as_dummy="$with_libxml/bin:$PATH"
12050 for as_dir in $as_dummy
12051 do
12052   IFS=$as_save_IFS
12053   test -z "$as_dir" && as_dir=.
12054     for ac_exec_ext in '' $ac_executable_extensions; do
12055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12056     ac_cv_path_LIBXML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058     break 2
12059   fi
12060 done
12061   done
12062 IFS=$as_save_IFS
12063
12064   ;;
12065 esac
12066 fi
12067 LIBXML_CONFIG=$ac_cv_path_LIBXML_CONFIG
12068 if test -n "$LIBXML_CONFIG"; then
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CONFIG" >&5
12070 $as_echo "$LIBXML_CONFIG" >&6; }
12071 else
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 fi
12075
12076
12077     fi
12078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 $LIBXML_CONFIG " >&5
12079 $as_echo_n "checking libxml2 $LIBXML_CONFIG ... " >&6; }
12080     if ! LIBXML_VERSION=`$LIBXML_CONFIG --version 2>/dev/null`; then
12081         as_fn_error "Could not find libxml2 anywhere." "$LINENO" 5
12082     fi
12083     vers=`echo $LIBXML_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
12084     minvers=`echo $LIBXML_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
12085     if test "$vers" -ge "$minvers" ; then
12086         LIBXML_LIBS="`$LIBXML_CONFIG --libs`"
12087         LIBXML_CFLAGS="`$LIBXML_CONFIG --cflags`"
12088         LIBXML_FOUND="yes"
12089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$LIBXML_VERSION')" >&5
12090 $as_echo "yes ('$LIBXML_VERSION')" >&6; }
12091     else
12092         as_fn_error "You need at least libxml2 $LIBXML_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
12093     fi
12094 fi
12095
12096
12097
12098
12099
12100
12101 XMLSEC_NO_LIBXSLT="1"
12102 LIBXSLT_MIN_VERSION=1.0.20
12103 LIBXSLT_CONFIG="xslt-config"
12104 LIBXSLT_CFLAGS=""
12105 LIBXSLT_LIBS=""
12106 LIBXSLT_FOUND="no"
12107
12108 # Check whether --with-libxslt was given.
12109 if test "${with_libxslt+set}" = set; then :
12110   withval=$with_libxslt;
12111 fi
12112
12113
12114 # Check whether --with-libxslt-src was given.
12115 if test "${with_libxslt_src+set}" = set; then :
12116   withval=$with_libxslt_src;
12117 fi
12118
12119 if test "z$with_libxslt" = "zno" -o "z$with_libxslt_src" = "zno" ; then
12120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
12121 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
12122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124     LIBXSLT_FOUND="without"
12125 elif test "z$with_libxslt_src" != "z" ; then
12126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
12127 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
12128     CWD=`pwd`
12129     if cd "$with_libxslt_src" ; then
12130         SRC_DIR=`pwd`
12131         LIBXSLT_CONFIG=${SRC_DIR}/xslt-config
12132         LIBXSLT_LIBS="-L${SRC_DIR}/libxslt/.libs -lxslt"
12133         LIBXSLT_CFLAGS="-I${SRC_DIR}"
12134         LIBXSLT_FOUND="yes"
12135         cd $CWD
12136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (source)" >&5
12137 $as_echo "yes (source)" >&6; }
12138     else
12139         as_fn_error "libxslt source dir not found (${with_libxslt_src}), typo?" "$LINENO" 5
12140     fi
12141 elif test "z$with_libxslt" = "z" -a  "z$PKG_CONFIG_ENABLED" = "zyes" ; then
12142
12143 pkg_failed=no
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXSLT" >&5
12145 $as_echo_n "checking for LIBXSLT... " >&6; }
12146
12147 if test -n "$PKG_CONFIG"; then
12148     if test -n "$LIBXSLT_CFLAGS"; then
12149         pkg_cv_LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS"
12150     else
12151         if test -n "$PKG_CONFIG" && \
12152     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= \$LIBXSLT_MIN_VERSION\""; } >&5
12153   ($PKG_CONFIG --exists --print-errors "libxslt >= $LIBXSLT_MIN_VERSION") 2>&5
12154   ac_status=$?
12155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156   test $ac_status = 0; }; then
12157   pkg_cv_LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= $LIBXSLT_MIN_VERSION" 2>/dev/null`
12158 else
12159   pkg_failed=yes
12160 fi
12161     fi
12162 else
12163         pkg_failed=untried
12164 fi
12165 if test -n "$PKG_CONFIG"; then
12166     if test -n "$LIBXSLT_LIBS"; then
12167         pkg_cv_LIBXSLT_LIBS="$LIBXSLT_LIBS"
12168     else
12169         if test -n "$PKG_CONFIG" && \
12170     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= \$LIBXSLT_MIN_VERSION\""; } >&5
12171   ($PKG_CONFIG --exists --print-errors "libxslt >= $LIBXSLT_MIN_VERSION") 2>&5
12172   ac_status=$?
12173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12174   test $ac_status = 0; }; then
12175   pkg_cv_LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= $LIBXSLT_MIN_VERSION" 2>/dev/null`
12176 else
12177   pkg_failed=yes
12178 fi
12179     fi
12180 else
12181         pkg_failed=untried
12182 fi
12183
12184
12185
12186 if test $pkg_failed = yes; then
12187
12188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12189         _pkg_short_errors_supported=yes
12190 else
12191         _pkg_short_errors_supported=no
12192 fi
12193         if test $_pkg_short_errors_supported = yes; then
12194                 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxslt >= $LIBXSLT_MIN_VERSION"`
12195         else
12196                 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= $LIBXSLT_MIN_VERSION"`
12197         fi
12198         # Put the nasty error message in config.log where it belongs
12199         echo "$LIBXSLT_PKG_ERRORS" >&5
12200
12201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203                 LIBXSLT_FOUND=no
12204 elif test $pkg_failed = untried; then
12205         LIBXSLT_FOUND=no
12206 else
12207         LIBXSLT_CFLAGS=$pkg_cv_LIBXSLT_CFLAGS
12208         LIBXSLT_LIBS=$pkg_cv_LIBXSLT_LIBS
12209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12210 $as_echo "yes" >&6; }
12211         LIBXSLT_FOUND=yes
12212 fi
12213 fi
12214
12215 if test "z$LIBXSLT_FOUND" = "zno" ; then
12216     if test "z$with_libxslt" != "zyes" ; then
12217         # Extract the first word of "$LIBXSLT_CONFIG", so it can be a program name with args.
12218 set dummy $LIBXSLT_CONFIG; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220 $as_echo_n "checking for $ac_word... " >&6; }
12221 if test "${ac_cv_path_LIBXSLT_CONFIG+set}" = set; then :
12222   $as_echo_n "(cached) " >&6
12223 else
12224   case $LIBXSLT_CONFIG in
12225   [\\/]* | ?:[\\/]*)
12226   ac_cv_path_LIBXSLT_CONFIG="$LIBXSLT_CONFIG" # Let the user override the test with a path.
12227   ;;
12228   *)
12229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 as_dummy="$with_libxslt/bin:$PATH"
12231 for as_dir in $as_dummy
12232 do
12233   IFS=$as_save_IFS
12234   test -z "$as_dir" && as_dir=.
12235     for ac_exec_ext in '' $ac_executable_extensions; do
12236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237     ac_cv_path_LIBXSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239     break 2
12240   fi
12241 done
12242   done
12243 IFS=$as_save_IFS
12244
12245   ;;
12246 esac
12247 fi
12248 LIBXSLT_CONFIG=$ac_cv_path_LIBXSLT_CONFIG
12249 if test -n "$LIBXSLT_CONFIG"; then
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CONFIG" >&5
12251 $as_echo "$LIBXSLT_CONFIG" >&6; }
12252 else
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 fi
12256
12257
12258     fi
12259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
12260 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
12261     if ! LIBXSLT_VERSION=`$LIBXSLT_CONFIG --version 2>/dev/null`; then
12262         if test "z$with_libxslt" != "zyes" ; then
12263             as_fn_error "Unable to find libxslt at '$with_libxslt'" "$LINENO" 5
12264         else
12265             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267         fi
12268     else
12269         vers=`echo $LIBXSLT_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
12270         minvers=`echo $LIBXSLT_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
12271         if test "$vers" -ge "$minvers" ; then
12272             LIBXSLT_LIBS="`$LIBXSLT_CONFIG --libs`"
12273             LIBXSLT_CFLAGS="`$LIBXSLT_CONFIG --cflags`"
12274             LIBXSLT_FOUND="yes"
12275             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$LIBXSLT_VERSION')" >&5
12276 $as_echo "yes ('$LIBXSLT_VERSION')" >&6; }
12277         else
12278             as_fn_error "You need at least libxslt $LIBXSLT_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
12279         fi
12280     fi
12281 fi
12282
12283 if test "z$LIBXSLT_FOUND" = "zyes" ; then
12284     XMLSEC_NO_LIBXSLT="0"
12285 else
12286     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XSLT=1"
12287 fi
12288
12289
12290
12291
12292
12293
12294
12295 XMLSEC_CRYPTO=""
12296 XMLSEC_CRYPTO_LIST=""
12297 XMLSEC_CRYPTO_DISABLED_LIST=""
12298 XMLSEC_CRYPTO_LIB=""
12299 XMLSEC_CRYPTO_CFLAGS=""
12300 XMLSEC_CRYPTO_CFLAGS_APP=""
12301 XMLSEC_CRYPTO_LIBS=""
12302
12303 ac_openssl_lib_dir="/usr/local/lib /usr/lib /usr/lib64 /usr/local /usr/local/ssl /usr/local/ssl/lib /usr/pkg"
12304 ac_openssl_inc_dir="/usr/local/include /usr/include /usr/local /usr/local/ssl /usr/pkg /usr/local/ssl/include"
12305
12306 XMLSEC_NO_OPENSSL="1"
12307 OPENSSL_MIN_VERSION="0.9.6"
12308 OPENSSL_VERSION=""
12309 OPENSSL_CFLAGS=""
12310 OPENSSL_LIBS=""
12311 OPENSSL_CRYPTO_LIB="$XMLSEC_PACKAGE-openssl"
12312 OPENSSL_FOUND=no
12313
12314 # Check whether --with-openssl was given.
12315 if test "${with_openssl+set}" = set; then :
12316   withval=$with_openssl;
12317 fi
12318
12319 if test "z$with_openssl" = "zno" ; then
12320     OPENSSL_FOUND=without
12321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl libraries >= $OPENSSL_MIN_VERSION" >&5
12322 $as_echo_n "checking for openssl libraries >= $OPENSSL_MIN_VERSION... " >&6; }
12323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 elif test "z$with_openssl" != "z" ; then
12326     case $host in
12327         *-*-mingw*) openssl_exlibs=;;
12328         *-*-osf5*) openssl_exlibs=;;
12329         *-*-openbsd*) openssl_exlibs=;;
12330         *-*-netbsd*) openssl_exlibs=;;
12331         #FIXME: check if lib "dl" is required
12332         *)          openssl_exlibs=-ldl;;
12333     esac
12334     OPENSSL_CFLAGS="$OPENSSL_CFLAGS -I$with_openssl/include"
12335     if test -f "$with_openssl/lib/libcrypto${XMLSEC_SHLIBSFX}" ; then
12336         OPENSSL_LIBS="-L$with_openssl/lib -lcrypto $openssl_exlibs"
12337     else
12338         OPENSSL_LIBS="$with_openssl/lib/libcrypto.a $openssl_exlibs"
12339     fi
12340     OPENSSL_FOUND="yes"
12341 elif test "z$PKG_CONFIG_ENABLED" = "zyes" ; then
12342     if test "z$OPENSSL_VERSION" = "z" ; then
12343
12344 pkg_failed=no
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
12346 $as_echo_n "checking for OPENSSL... " >&6; }
12347
12348 if test -n "$PKG_CONFIG"; then
12349     if test -n "$OPENSSL_CFLAGS"; then
12350         pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
12351     else
12352         if test -n "$PKG_CONFIG" && \
12353     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
12354   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
12355   ac_status=$?
12356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357   test $ac_status = 0; }; then
12358   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
12359 else
12360   pkg_failed=yes
12361 fi
12362     fi
12363 else
12364         pkg_failed=untried
12365 fi
12366 if test -n "$PKG_CONFIG"; then
12367     if test -n "$OPENSSL_LIBS"; then
12368         pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
12369     else
12370         if test -n "$PKG_CONFIG" && \
12371     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
12372   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
12373   ac_status=$?
12374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12375   test $ac_status = 0; }; then
12376   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
12377 else
12378   pkg_failed=yes
12379 fi
12380     fi
12381 else
12382         pkg_failed=untried
12383 fi
12384
12385
12386
12387 if test $pkg_failed = yes; then
12388
12389 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12390         _pkg_short_errors_supported=yes
12391 else
12392         _pkg_short_errors_supported=no
12393 fi
12394         if test $_pkg_short_errors_supported = yes; then
12395                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= 0.9.8"`
12396         else
12397                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= 0.9.8"`
12398         fi
12399         # Put the nasty error message in config.log where it belongs
12400         echo "$OPENSSL_PKG_ERRORS" >&5
12401
12402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12404                 OPENSSL_VERSION=""
12405 elif test $pkg_failed = untried; then
12406         OPENSSL_VERSION=""
12407 else
12408         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
12409         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
12410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12411 $as_echo "yes" >&6; }
12412         OPENSSL_VERSION="0.9.8"
12413 fi
12414     fi
12415
12416     if test "z$OPENSSL_VERSION" = "z" ; then
12417
12418 pkg_failed=no
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
12420 $as_echo_n "checking for OPENSSL... " >&6; }
12421
12422 if test -n "$PKG_CONFIG"; then
12423     if test -n "$OPENSSL_CFLAGS"; then
12424         pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
12425     else
12426         if test -n "$PKG_CONFIG" && \
12427     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
12428   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
12429   ac_status=$?
12430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12431   test $ac_status = 0; }; then
12432   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
12433 else
12434   pkg_failed=yes
12435 fi
12436     fi
12437 else
12438         pkg_failed=untried
12439 fi
12440 if test -n "$PKG_CONFIG"; then
12441     if test -n "$OPENSSL_LIBS"; then
12442         pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
12443     else
12444         if test -n "$PKG_CONFIG" && \
12445     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
12446   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
12447   ac_status=$?
12448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12449   test $ac_status = 0; }; then
12450   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
12451 else
12452   pkg_failed=yes
12453 fi
12454     fi
12455 else
12456         pkg_failed=untried
12457 fi
12458
12459
12460
12461 if test $pkg_failed = yes; then
12462
12463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12464         _pkg_short_errors_supported=yes
12465 else
12466         _pkg_short_errors_supported=no
12467 fi
12468         if test $_pkg_short_errors_supported = yes; then
12469                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= 0.9.7"`
12470         else
12471                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= 0.9.7"`
12472         fi
12473         # Put the nasty error message in config.log where it belongs
12474         echo "$OPENSSL_PKG_ERRORS" >&5
12475
12476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478                 OPENSSL_VERSION=""
12479 elif test $pkg_failed = untried; then
12480         OPENSSL_VERSION=""
12481 else
12482         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
12483         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
12484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12485 $as_echo "yes" >&6; }
12486         OPENSSL_VERSION="0.9.7"
12487 fi
12488     fi
12489
12490     if test "z$OPENSSL_VERSION" = "z" ; then
12491
12492 pkg_failed=no
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
12494 $as_echo_n "checking for OPENSSL... " >&6; }
12495
12496 if test -n "$PKG_CONFIG"; then
12497     if test -n "$OPENSSL_CFLAGS"; then
12498         pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
12499     else
12500         if test -n "$PKG_CONFIG" && \
12501     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5
12502   ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5
12503   ac_status=$?
12504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12505   test $ac_status = 0; }; then
12506   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null`
12507 else
12508   pkg_failed=yes
12509 fi
12510     fi
12511 else
12512         pkg_failed=untried
12513 fi
12514 if test -n "$PKG_CONFIG"; then
12515     if test -n "$OPENSSL_LIBS"; then
12516         pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
12517     else
12518         if test -n "$PKG_CONFIG" && \
12519     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5
12520   ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5
12521   ac_status=$?
12522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523   test $ac_status = 0; }; then
12524   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null`
12525 else
12526   pkg_failed=yes
12527 fi
12528     fi
12529 else
12530         pkg_failed=untried
12531 fi
12532
12533
12534
12535 if test $pkg_failed = yes; then
12536
12537 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12538         _pkg_short_errors_supported=yes
12539 else
12540         _pkg_short_errors_supported=no
12541 fi
12542         if test $_pkg_short_errors_supported = yes; then
12543                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= $OPENSSL_MIN_VERSION"`
12544         else
12545                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= $OPENSSL_MIN_VERSION"`
12546         fi
12547         # Put the nasty error message in config.log where it belongs
12548         echo "$OPENSSL_PKG_ERRORS" >&5
12549
12550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12552                 OPENSSL_VERSION=""
12553 elif test $pkg_failed = untried; then
12554         OPENSSL_VERSION=""
12555 else
12556         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
12557         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
12558         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12559 $as_echo "yes" >&6; }
12560         OPENSSL_VERSION="$OPENSSL_MIN_VERSION"
12561 fi
12562     fi
12563
12564     if test "z$OPENSSL_VERSION" != "z" ; then
12565         OPENSSL_FOUND="yes"
12566     fi
12567 fi
12568
12569 if test "z$OPENSSL_FOUND" = "zno" ; then
12570     OPENSSL_INCLUDES_FOUND="no"
12571     OPENSSL_LIBS_FOUND="no"
12572
12573     for dir in $ac_openssl_inc_dir ; do
12574         if test -f $dir/openssl/ssl.h ; then
12575                     if test "z$dir" = "z/usr/include" ; then
12576                 OPENSSL_CFLAGS="$OPENSSL_CFLAGS "
12577             else
12578                 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -I$dir"
12579             fi
12580             OPENSSL_INCLUDES_FOUND="yes"
12581             break
12582         fi
12583     done
12584
12585     for dir in $ac_openssl_lib_dir ; do
12586         if test -f $dir/libcrypto.a ; then
12587                     if test "z$dir" = "z/usr/lib" ; then
12588                 OPENSSL_LIBS="-lcrypto -ldl"
12589             else
12590                 OPENSSL_LIBS="-L$dir -lcrypto -ldl"
12591             fi
12592             OPENSSL_LIBS_FOUND="yes"
12593             ac_found_openssl_lib_dir=$dir
12594             break;
12595         fi
12596     done
12597
12598     if test "z$OPENSSL_INCLUDES_FOUND" = "zyes" -a "z$OPENSSL_LIBS_FOUND" = "zyes" ; then
12599         OPENSSL_FOUND="yes"
12600     fi
12601 fi
12602
12603 if test "z$OPENSSL_FOUND" = "zyes" -a "z$OPENSSL_VERSION" = "z" ; then
12604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl libraries >= $OPENSSL_MIN_VERSION" >&5
12605 $as_echo_n "checking for openssl libraries >= $OPENSSL_MIN_VERSION... " >&6; }
12606
12607         OLD_CPPFLAGS=$CPPFLAGS
12608     CPPFLAGS="$OPENSSL_CFLAGS"
12609
12610     if test "z$OPENSSL_VERSION" = "z" ; then
12611         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h.  */
12613
12614             #include <openssl/opensslv.h>
12615             #if OPENSSL_VERSION_NUMBER >= 0x10000000L
12616                 yes
12617             #endif
12618
12619 _ACEOF
12620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12621   $EGREP "yes" >/dev/null 2>&1; then :
12622
12623             OPENSSL_VERSION="1.0.0"
12624
12625 else
12626
12627             OPENSSL_VERSION=""
12628
12629 fi
12630 rm -f conftest*
12631
12632     fi
12633
12634     if test "z$OPENSSL_VERSION" = "z" ; then
12635         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h.  */
12637
12638             #include <openssl/opensslv.h>
12639             #if OPENSSL_VERSION_NUMBER >= 0x00908000L
12640                 yes
12641             #endif
12642
12643 _ACEOF
12644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12645   $EGREP "yes" >/dev/null 2>&1; then :
12646
12647             OPENSSL_VERSION="0.9.8"
12648
12649 else
12650
12651             OPENSSL_VERSION=""
12652
12653 fi
12654 rm -f conftest*
12655
12656     fi
12657
12658     if test "z$OPENSSL_VERSION" = "z" ; then
12659         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h.  */
12661
12662             #include <openssl/opensslv.h>
12663             #if OPENSSL_VERSION_NUMBER >= 0x00907000L
12664                 yes
12665             #endif
12666
12667 _ACEOF
12668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12669   $EGREP "yes" >/dev/null 2>&1; then :
12670
12671             OPENSSL_VERSION="0.9.7"
12672
12673 else
12674
12675             OPENSSL_VERSION=""
12676
12677 fi
12678 rm -f conftest*
12679
12680     fi
12681
12682     if test "z$OPENSSL_VERSION" = "z" ; then
12683         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h.  */
12685
12686             #include <openssl/opensslv.h>
12687             #if OPENSSL_VERSION_NUMBER >= 0x00906000L
12688                 yes
12689             #endif
12690
12691 _ACEOF
12692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12693   $EGREP "yes" >/dev/null 2>&1; then :
12694
12695             OPENSSL_VERSION="0.9.6"
12696
12697 else
12698
12699             OPENSSL_VERSION=""
12700
12701 fi
12702 rm -f conftest*
12703
12704     fi
12705     if test "z$OPENSSL_VERSION" = "z" ; then
12706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708     else
12709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$OPENSSL_VERSION')" >&5
12710 $as_echo "yes ('$OPENSSL_VERSION')" >&6; }
12711     fi
12712
12713     CPPFLAGS=$OLD_CPPFLAGS
12714 fi
12715
12716 if test "z$OPENSSL_FOUND" = "zyes" ; then
12717     XMLSEC_NO_OPENSSL="0"
12718     if test "z$OPENSSL_VERSION" = "z0.9.6" ; then
12719         OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_096=1"
12720     fi
12721     if test "z$OPENSSL_VERSION" = "z0.9.7" ; then
12722         OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_097=1"
12723     fi
12724     if test "z$OPENSSL_VERSION" = "z0.9.8" ; then
12725         OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_098=1"
12726     fi
12727     if test "z$OPENSSL_VERSION" = "z1.0.0" ; then
12728         OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_100=1"
12729     fi
12730     OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_CRYPTO_OPENSSL=1"
12731
12732         if test "z$XMLSEC_CRYPTO" = "z" ; then
12733         XMLSEC_CRYPTO="openssl"
12734         XMLSEC_CRYPTO_LIB="$OPENSSL_CRYPTO_LIB"
12735         XMLSEC_CRYPTO_CFLAGS="$OPENSSL_CFLAGS"
12736         XMLSEC_CRYPTO_LIBS="$OPENSSL_LIBS"
12737     fi
12738     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST openssl"
12739 else
12740     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST openssl"
12741 fi
12742
12743  if test "z$XMLSEC_NO_OPENSSL" == "z1"; then
12744   XMLSEC_NO_OPENSSL_TRUE=
12745   XMLSEC_NO_OPENSSL_FALSE='#'
12746 else
12747   XMLSEC_NO_OPENSSL_TRUE='#'
12748   XMLSEC_NO_OPENSSL_FALSE=
12749 fi
12750
12751
12752
12753
12754
12755
12756
12757
12758 XMLSEC_NO_NSS="1"
12759 MOZILLA_MIN_VERSION="1.4"
12760 NSS_MIN_VERSION="3.2"
12761 NSPR_MIN_VERSION="4.0"
12762 NSS_CFLAGS=""
12763 NSS_LIBS=""
12764 NSS_LIBS_LIST="-lnss3 -lsmime3"
12765 NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4"
12766 NSS_CRYPTO_LIB="$XMLSEC_PACKAGE-nss"
12767 NSS_FOUND="no"
12768 NSPR_PACKAGE=mozilla-nspr
12769 NSS_PACKAGE=mozilla-nss
12770
12771
12772
12773 # Check whether --with-nss was given.
12774 if test "${with_nss+set}" = set; then :
12775   withval=$with_nss;
12776 fi
12777
12778
12779 # Check whether --with-nspr was given.
12780 if test "${with_nspr+set}" = set; then :
12781   withval=$with_nspr;
12782 fi
12783
12784
12785 # Check whether --with-seamonkey_ver was given.
12786 if test "${with_seamonkey_ver+set}" = set; then :
12787   withval=$with_seamonkey_ver;
12788 fi
12789
12790
12791 # Check whether --with-mozilla_ver was given.
12792 if test "${with_mozilla_ver+set}" = set; then :
12793   withval=$with_mozilla_ver;
12794 fi
12795
12796 if test "z$with_nss" = "zno" -o "z$with_nspr" = "zno" ; then
12797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS libraries" >&5
12798 $as_echo_n "checking for NSS libraries... " >&6; }
12799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12801     NSS_FOUND="without"
12802 elif test "z$with_nss" = "z" -a "z$with_nspr" = "z" -a "z$with_mozilla_ver" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
12803                                     if test "z$NSS_FOUND" = "zno" ; then
12804
12805 pkg_failed=no
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
12807 $as_echo_n "checking for NSS... " >&6; }
12808
12809 if test -n "$PKG_CONFIG"; then
12810     if test -n "$NSS_CFLAGS"; then
12811         pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
12812     else
12813         if test -n "$PKG_CONFIG" && \
12814     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nspr >= \$MOZILLA_MIN_VERSION mozilla-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12815   ($PKG_CONFIG --exists --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION") 2>&5
12816   ac_status=$?
12817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818   test $ac_status = 0; }; then
12819   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12820 else
12821   pkg_failed=yes
12822 fi
12823     fi
12824 else
12825         pkg_failed=untried
12826 fi
12827 if test -n "$PKG_CONFIG"; then
12828     if test -n "$NSS_LIBS"; then
12829         pkg_cv_NSS_LIBS="$NSS_LIBS"
12830     else
12831         if test -n "$PKG_CONFIG" && \
12832     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nspr >= \$MOZILLA_MIN_VERSION mozilla-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12833   ($PKG_CONFIG --exists --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION") 2>&5
12834   ac_status=$?
12835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12836   test $ac_status = 0; }; then
12837   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12838 else
12839   pkg_failed=yes
12840 fi
12841     fi
12842 else
12843         pkg_failed=untried
12844 fi
12845
12846
12847
12848 if test $pkg_failed = yes; then
12849
12850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12851         _pkg_short_errors_supported=yes
12852 else
12853         _pkg_short_errors_supported=no
12854 fi
12855         if test $_pkg_short_errors_supported = yes; then
12856                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION"`
12857         else
12858                 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION"`
12859         fi
12860         # Put the nasty error message in config.log where it belongs
12861         echo "$NSS_PKG_ERRORS" >&5
12862
12863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12865                 NSS_FOUND=no
12866 elif test $pkg_failed = untried; then
12867         NSS_FOUND=no
12868 else
12869         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
12870         NSS_LIBS=$pkg_cv_NSS_LIBS
12871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873         NSS_FOUND=yes NSPR_PACKAGE=mozilla-nspr NSS_PACKAGE=mozilla-nss
12874 fi
12875     fi
12876     if test "z$NSS_FOUND" = "zno" ; then
12877
12878 pkg_failed=no
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
12880 $as_echo_n "checking for NSS... " >&6; }
12881
12882 if test -n "$PKG_CONFIG"; then
12883     if test -n "$NSS_CFLAGS"; then
12884         pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
12885     else
12886         if test -n "$PKG_CONFIG" && \
12887     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-nspr >= \$MOZILLA_MIN_VERSION xulrunner-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12888   ($PKG_CONFIG --exists --print-errors "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION") 2>&5
12889   ac_status=$?
12890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12891   test $ac_status = 0; }; then
12892   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12893 else
12894   pkg_failed=yes
12895 fi
12896     fi
12897 else
12898         pkg_failed=untried
12899 fi
12900 if test -n "$PKG_CONFIG"; then
12901     if test -n "$NSS_LIBS"; then
12902         pkg_cv_NSS_LIBS="$NSS_LIBS"
12903     else
12904         if test -n "$PKG_CONFIG" && \
12905     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-nspr >= \$MOZILLA_MIN_VERSION xulrunner-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12906   ($PKG_CONFIG --exists --print-errors "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION") 2>&5
12907   ac_status=$?
12908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12909   test $ac_status = 0; }; then
12910   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12911 else
12912   pkg_failed=yes
12913 fi
12914     fi
12915 else
12916         pkg_failed=untried
12917 fi
12918
12919
12920
12921 if test $pkg_failed = yes; then
12922
12923 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12924         _pkg_short_errors_supported=yes
12925 else
12926         _pkg_short_errors_supported=no
12927 fi
12928         if test $_pkg_short_errors_supported = yes; then
12929                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION"`
12930         else
12931                 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION"`
12932         fi
12933         # Put the nasty error message in config.log where it belongs
12934         echo "$NSS_PKG_ERRORS" >&5
12935
12936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938                 NSS_FOUND=no
12939 elif test $pkg_failed = untried; then
12940         NSS_FOUND=no
12941 else
12942         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
12943         NSS_LIBS=$pkg_cv_NSS_LIBS
12944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12945 $as_echo "yes" >&6; }
12946         NSS_FOUND=yes NSPR_PACKAGE=xulrunner-nspr NSS_PACKAGE=xulrunner-nss
12947 fi
12948     fi
12949     if test "z$NSS_FOUND" = "zno" ; then
12950
12951 pkg_failed=no
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
12953 $as_echo_n "checking for NSS... " >&6; }
12954
12955 if test -n "$PKG_CONFIG"; then
12956     if test -n "$NSS_CFLAGS"; then
12957         pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
12958     else
12959         if test -n "$PKG_CONFIG" && \
12960     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$MOZILLA_MIN_VERSION nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12961   ($PKG_CONFIG --exists --print-errors "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION") 2>&5
12962   ac_status=$?
12963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12964   test $ac_status = 0; }; then
12965   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12966 else
12967   pkg_failed=yes
12968 fi
12969     fi
12970 else
12971         pkg_failed=untried
12972 fi
12973 if test -n "$PKG_CONFIG"; then
12974     if test -n "$NSS_LIBS"; then
12975         pkg_cv_NSS_LIBS="$NSS_LIBS"
12976     else
12977         if test -n "$PKG_CONFIG" && \
12978     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$MOZILLA_MIN_VERSION nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12979   ($PKG_CONFIG --exists --print-errors "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION") 2>&5
12980   ac_status=$?
12981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12982   test $ac_status = 0; }; then
12983   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12984 else
12985   pkg_failed=yes
12986 fi
12987     fi
12988 else
12989         pkg_failed=untried
12990 fi
12991
12992
12993
12994 if test $pkg_failed = yes; then
12995
12996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12997         _pkg_short_errors_supported=yes
12998 else
12999         _pkg_short_errors_supported=no
13000 fi
13001         if test $_pkg_short_errors_supported = yes; then
13002                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION"`
13003         else
13004                 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION"`
13005         fi
13006         # Put the nasty error message in config.log where it belongs
13007         echo "$NSS_PKG_ERRORS" >&5
13008
13009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010 $as_echo "no" >&6; }
13011                 NSS_FOUND=no
13012 elif test $pkg_failed = untried; then
13013         NSS_FOUND=no
13014 else
13015         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
13016         NSS_LIBS=$pkg_cv_NSS_LIBS
13017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018 $as_echo "yes" >&6; }
13019         NSS_FOUND=yes NSPR_PACKAGE=nspr NSS_PACKAGE=nss
13020 fi
13021     fi
13022 fi
13023
13024 if test "z$NSS_FOUND" = "zno" ; then
13025         if test "z$with_seamonkey_ver" != "z" ; then
13026         ac_mozilla_name=seamonkey-$with_seamonkey_ver
13027     elif test "z$with_mozilla_ver" != "z" ; then
13028         ac_mozilla_name=mozilla-$with_mozilla_ver
13029     else
13030         ac_mozilla_name=mozilla-$MOZILLA_MIN_VERSION
13031     fi
13032
13033     ac_nss_lib_dir="/usr/lib /usr/lib64 /usr/local/lib /usr/lib/$ac_mozilla_name /usr/local/lib/$ac_mozilla_name"
13034     ac_nss_inc_dir="/usr/include /usr/include/mozilla /usr/local/include /usr/local/include/mozilla /usr/include/$ac_mozilla_name /usr/local/include/$ac_mozilla_name"
13035
13036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr libraries >= $NSPR_MIN_VERSION" >&5
13037 $as_echo_n "checking for nspr libraries >= $NSPR_MIN_VERSION... " >&6; }
13038     NSPR_INCLUDES_FOUND="no"
13039     NSPR_LIBS_FOUND="no"
13040     NSPR_FOUND="no"
13041     NSPR_PRINIT_H=""
13042
13043     if test "z$with_nspr" != "z" ; then
13044         NSPR_PREFIX="$with_nspr"
13045         NSPR_CFLAGS="-I$with_nspr/include -I$with_nspr/include/nspr"
13046         if test "z$with_gnu_ld" = "zyes" ; then
13047             NSPR_LIBS="-Wl,-rpath-link -Wl,$with_nspr/lib -L$with_nspr/lib $NSPR_LIBS_LIST"
13048         else
13049             NSPR_LIBS="-L$with_nspr/lib $NSPR_LIBS_LIST"
13050         fi
13051         NSPR_INCLUDES_FOUND="yes"
13052         NSPR_LIBS_FOUND="yes"
13053         NSPR_PRINIT_H="$with_nspr/include/prinit.h"
13054     else
13055         for dir in $ac_nss_inc_dir ; do
13056             if test -f $dir/nspr/prinit.h ; then
13057                                 if test "z$dir" = "z/usr/include" ; then
13058                     NSPR_CFLAGS=""
13059                 else
13060                     NSPR_CFLAGS="-I$dir/nspr"
13061                 fi
13062                 NSPR_INCLUDES_FOUND="yes"
13063                 NSPR_PRINIT_H="$dir/nspr/prinit.h"
13064                 break
13065             fi
13066         done
13067
13068         for dir in $ac_nss_lib_dir ; do
13069             if test -f $dir/libnspr4$shrext ; then
13070                                 if test "z$dir" = "z/usr/lib" ; then
13071                     NSPR_LIBS="$NSPR_LIBS_LIST"
13072                 else
13073                     if test "z$with_gnu_ld" = "zyes" ; then
13074                         NSPR_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSPR_LIBS_LIST"
13075                     else
13076                         NSPR_LIBS="-L$dir $NSPR_LIBS_LIST"
13077                     fi
13078                 fi
13079                 NSPR_LIBS_FOUND="yes"
13080                 break
13081             fi
13082         done
13083     fi
13084
13085     if test "z$NSPR_INCLUDES_FOUND" = "zyes" -a "z$NSPR_LIBS_FOUND" = "zyes" ; then
13086         OLD_CPPFLAGS=$CPPFLAGS
13087         CPPFLAGS="$NSPR_CFLAGS"
13088         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h.  */
13090
13091             #include <prinit.h>
13092             #if PR_VMAJOR >= 4
13093                yes
13094             #endif
13095
13096 _ACEOF
13097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098   $EGREP "yes" >/dev/null 2>&1; then :
13099
13100             NSPR_FOUND=yes
13101
13102 else
13103
13104             NSPR_FOUND=no
13105
13106 fi
13107 rm -f conftest*
13108
13109         CPPFLAGS="$OLD_CPPFLAGS"
13110     fi
13111
13112     if test "z$NSPR_FOUND" = "zyes" ; then
13113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13114 $as_echo "yes" >&6; }
13115     else
13116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13118     fi
13119
13120         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss libraries >= $NSS_MIN_VERSION" >&5
13121 $as_echo_n "checking for nss libraries >= $NSS_MIN_VERSION... " >&6; }
13122     NSS_INCLUDES_FOUND="no"
13123     NSS_LIBS_FOUND="no"
13124     NSS_NSS_H=""
13125
13126     if test "z$with_nss" != "z" ; then
13127         NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include -I$with_nss/include/nss"
13128         if test "z$with_gnu_ld" = "zyes" ; then
13129             NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib -L$with_nss/lib $NSS_LIBS_LIST"
13130         else
13131             NSS_LIBS="$NSS_LIBS -L$with_nss/lib $NSS_LIBS_LIST"
13132         fi
13133         NSS_INCLUDES_FOUND="yes"
13134         NSS_LIBS_FOUND="yes"
13135         NSS_NSS_H="$with_nss/include/nss.h"
13136     else
13137         for dir in $ac_nss_inc_dir ; do
13138             if test -f $dir/nss/nss.h ; then
13139                                 if test "z$dir" = "z/usr/include" ; then
13140                     NSS_CFLAGS="$NSS_CFLAGS"
13141                 else
13142                     NSS_CFLAGS="$NSS_CFLAGS -I$dir/nss"
13143                 fi
13144                 NSS_INCLUDES_FOUND="yes"
13145                 NSS_NSS_H="$dir/nss/nss.h"
13146                 break
13147             fi
13148         done
13149
13150         for dir in $ac_nss_lib_dir ; do
13151             if test -f $dir/libnss3$shrext ; then
13152                                 if test "z$dir" = "z/usr/lib" ; then
13153                     NSS_LIBS="$NSS_LIBS_LIST"
13154                 else
13155                     if test "z$with_gnu_ld" = "zyes" ; then
13156                         NSS_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSS_LIBS_LIST"
13157                     else
13158                         NSS_LIBS="-L$dir $NSS_LIBS_LIST"
13159                     fi
13160                 fi
13161                 NSS_LIBS_FOUND="yes"
13162                 break
13163             fi
13164         done
13165     fi
13166
13167     if test "z$NSS_INCLUDES_FOUND" = "zyes" -a "z$NSS_LIBS_FOUND" = "zyes" ; then
13168        OLD_CPPFLAGS=$CPPFLAGS
13169        CPPFLAGS="$NSS_CFLAGS"
13170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h.  */
13172
13173           #include <nss.h>
13174           #if NSS_VMAJOR >= 3 && NSS_VMINOR >= 2
13175              yes
13176           #endif
13177
13178 _ACEOF
13179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13180   $EGREP "yes" >/dev/null 2>&1; then :
13181
13182             NSS_FOUND=yes
13183
13184 else
13185
13186             NSS_FOUND=no
13187
13188 fi
13189 rm -f conftest*
13190
13191         CPPFLAGS="$OLD_CPPFLAGS"
13192     fi
13193
13194     if test "z$NSS_FOUND" = "zyes" ; then
13195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13196 $as_echo "yes" >&6; }
13197     else
13198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200     fi
13201
13202         if test "z$NSPR_FOUND" = "zyes" -a "z$NSS_FOUND" = "zyes" ; then
13203         NSS_CFLAGS="$NSS_CFLAGS $NSPR_CFLAGS"
13204         NSS_LIBS="$NSS_LIBS $NSPR_LIBS"
13205     elif test "z$NSPR_FOUND" != "zyes" -a "z$NSS_FOUND" = "zyes" ; then
13206         NSS_FOUND="no"
13207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: NSPR library is required for NSS" >&5
13208 $as_echo "NSPR library is required for NSS" >&6; }
13209     fi
13210 fi
13211
13212 if test "z$NSS_FOUND" = "zyes" ; then
13213     XMLSEC_NO_NSS="0"
13214     NSS_CFLAGS="$NSS_CFLAGS -DXMLSEC_CRYPTO_NSS=1"
13215
13216         if test "z$XMLSEC_CRYPTO" = "z" ;  then
13217         XMLSEC_CRYPTO="nss"
13218         XMLSEC_CRYPTO_LIB="$NSS_CRYPTO_LIB"
13219         XMLSEC_CRYPTO_CFLAGS="$NSS_CFLAGS"
13220         XMLSEC_CRYPTO_LIBS="$NSS_LIBS"
13221     fi
13222     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST nss"
13223 else
13224     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST nss"
13225 fi
13226
13227  if test "z$XMLSEC_NO_NSS" = "z1"; then
13228   XMLSEC_NO_NSS_TRUE=
13229   XMLSEC_NO_NSS_FALSE='#'
13230 else
13231   XMLSEC_NO_NSS_TRUE='#'
13232   XMLSEC_NO_NSS_FALSE=
13233 fi
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245 GNUTLS_CONFIG="libgnutls-config"
13246 XMLSEC_NO_GNUTLS="1"
13247 GNUTLS_MIN_VERSION="0.8.1"
13248 GNUTLS_NEW_MIN_VERSION="1.0.0"
13249 GNUTLS_VERSION=""
13250 GNUTLS_CFLAGS=""
13251 GNUTLS_LIBS=""
13252 GNUTLS_CRYPTO_LIB="$XMLSEC_PACKAGE-gnutls"
13253 GNUTLS_FOUND="no"
13254
13255 # Check whether --with-gnutls was given.
13256 if test "${with_gnutls+set}" = set; then :
13257   withval=$with_gnutls;
13258 fi
13259
13260 if test "z$with_gnutls" = "zno" ; then
13261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls libraries >= $GNUTLS_MIN_VERSION" >&5
13262 $as_echo_n "checking for gnutls libraries >= $GNUTLS_MIN_VERSION... " >&6; }
13263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265     GNUTLS_FOUND="without"
13266 elif test "z$with_gnutls" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
13267
13268 pkg_failed=no
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13270 $as_echo_n "checking for GNUTLS... " >&6; }
13271
13272 if test -n "$PKG_CONFIG"; then
13273     if test -n "$GNUTLS_CFLAGS"; then
13274         pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13275     else
13276         if test -n "$PKG_CONFIG" && \
13277     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_NEW_MIN_VERSION\""; } >&5
13278   ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_NEW_MIN_VERSION") 2>&5
13279   ac_status=$?
13280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13281   test $ac_status = 0; }; then
13282   pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $GNUTLS_NEW_MIN_VERSION" 2>/dev/null`
13283 else
13284   pkg_failed=yes
13285 fi
13286     fi
13287 else
13288         pkg_failed=untried
13289 fi
13290 if test -n "$PKG_CONFIG"; then
13291     if test -n "$GNUTLS_LIBS"; then
13292         pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13293     else
13294         if test -n "$PKG_CONFIG" && \
13295     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_NEW_MIN_VERSION\""; } >&5
13296   ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_NEW_MIN_VERSION") 2>&5
13297   ac_status=$?
13298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13299   test $ac_status = 0; }; then
13300   pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $GNUTLS_NEW_MIN_VERSION" 2>/dev/null`
13301 else
13302   pkg_failed=yes
13303 fi
13304     fi
13305 else
13306         pkg_failed=untried
13307 fi
13308
13309
13310
13311 if test $pkg_failed = yes; then
13312
13313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13314         _pkg_short_errors_supported=yes
13315 else
13316         _pkg_short_errors_supported=no
13317 fi
13318         if test $_pkg_short_errors_supported = yes; then
13319                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= $GNUTLS_NEW_MIN_VERSION"`
13320         else
13321                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= $GNUTLS_NEW_MIN_VERSION"`
13322         fi
13323         # Put the nasty error message in config.log where it belongs
13324         echo "$GNUTLS_PKG_ERRORS" >&5
13325
13326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328                 GNUTLS_FOUND=no
13329 elif test $pkg_failed = untried; then
13330         GNUTLS_FOUND=no
13331 else
13332         GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13333         GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335 $as_echo "yes" >&6; }
13336         GNUTLS_FOUND=yes
13337 fi
13338     if test "z$GNUTLS_FOUND" = "zno" ; then
13339
13340 pkg_failed=no
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13342 $as_echo_n "checking for GNUTLS... " >&6; }
13343
13344 if test -n "$PKG_CONFIG"; then
13345     if test -n "$GNUTLS_CFLAGS"; then
13346         pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13347     else
13348         if test -n "$PKG_CONFIG" && \
13349     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_NEW_MIN_VERSION\""; } >&5
13350   ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_NEW_MIN_VERSION") 2>&5
13351   ac_status=$?
13352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13353   test $ac_status = 0; }; then
13354   pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "libgnutls >= $GNUTLS_NEW_MIN_VERSION" 2>/dev/null`
13355 else
13356   pkg_failed=yes
13357 fi
13358     fi
13359 else
13360         pkg_failed=untried
13361 fi
13362 if test -n "$PKG_CONFIG"; then
13363     if test -n "$GNUTLS_LIBS"; then
13364         pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13365     else
13366         if test -n "$PKG_CONFIG" && \
13367     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_NEW_MIN_VERSION\""; } >&5
13368   ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_NEW_MIN_VERSION") 2>&5
13369   ac_status=$?
13370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371   test $ac_status = 0; }; then
13372   pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "libgnutls >= $GNUTLS_NEW_MIN_VERSION" 2>/dev/null`
13373 else
13374   pkg_failed=yes
13375 fi
13376     fi
13377 else
13378         pkg_failed=untried
13379 fi
13380
13381
13382
13383 if test $pkg_failed = yes; then
13384
13385 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13386         _pkg_short_errors_supported=yes
13387 else
13388         _pkg_short_errors_supported=no
13389 fi
13390         if test $_pkg_short_errors_supported = yes; then
13391                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnutls >= $GNUTLS_NEW_MIN_VERSION"`
13392         else
13393                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnutls >= $GNUTLS_NEW_MIN_VERSION"`
13394         fi
13395         # Put the nasty error message in config.log where it belongs
13396         echo "$GNUTLS_PKG_ERRORS" >&5
13397
13398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13400                 GNUTLS_FOUND=no
13401 elif test $pkg_failed = untried; then
13402         GNUTLS_FOUND=no
13403 else
13404         GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13405         GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13408         GNUTLS_FOUND=yes
13409 fi
13410     fi
13411
13412     if test "z$GNUTLS_FOUND" = "zno" ; then
13413
13414 pkg_failed=no
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13416 $as_echo_n "checking for GNUTLS... " >&6; }
13417
13418 if test -n "$PKG_CONFIG"; then
13419     if test -n "$GNUTLS_CFLAGS"; then
13420         pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13421     else
13422         if test -n "$PKG_CONFIG" && \
13423     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
13424   ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_MIN_VERSION") 2>&5
13425   ac_status=$?
13426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427   test $ac_status = 0; }; then
13428   pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "libgnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
13429 else
13430   pkg_failed=yes
13431 fi
13432     fi
13433 else
13434         pkg_failed=untried
13435 fi
13436 if test -n "$PKG_CONFIG"; then
13437     if test -n "$GNUTLS_LIBS"; then
13438         pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13439     else
13440         if test -n "$PKG_CONFIG" && \
13441     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
13442   ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_MIN_VERSION") 2>&5
13443   ac_status=$?
13444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13445   test $ac_status = 0; }; then
13446   pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "libgnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
13447 else
13448   pkg_failed=yes
13449 fi
13450     fi
13451 else
13452         pkg_failed=untried
13453 fi
13454
13455
13456
13457 if test $pkg_failed = yes; then
13458
13459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13460         _pkg_short_errors_supported=yes
13461 else
13462         _pkg_short_errors_supported=no
13463 fi
13464         if test $_pkg_short_errors_supported = yes; then
13465                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnutls >= $GNUTLS_MIN_VERSION"`
13466         else
13467                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnutls >= $GNUTLS_MIN_VERSION"`
13468         fi
13469         # Put the nasty error message in config.log where it belongs
13470         echo "$GNUTLS_PKG_ERRORS" >&5
13471
13472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13474                 GNUTLS_FOUND=no
13475 elif test $pkg_failed = untried; then
13476         GNUTLS_FOUND=no
13477 else
13478         GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13479         GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481 $as_echo "yes" >&6; }
13482         GNUTLS_FOUND=yes
13483 fi
13484         if test "z$GNUTLS_FOUND" = "zyes" ; then
13485             GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DXMLSEC_GNUTLS_OLD=1"
13486         fi
13487     fi
13488 fi
13489
13490 if test "z$GNUTLS_FOUND" = "zno" ; then
13491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls libraries >= $GNUTLS_MIN_VERSION" >&5
13492 $as_echo_n "checking for gnutls libraries >= $GNUTLS_MIN_VERSION... " >&6; }
13493     if test "z$with_gnutls" != "z" ; then
13494         GNUTLS_CONFIG=$with_gnutls/bin/$GNUTLS_CONFIG
13495     fi
13496     if ! $GNUTLS_CONFIG --version > /dev/null 2>&1 ; then
13497         if test "z$with_gnutls" != "z" ; then
13498             as_fn_error "Unable to find gnutls at '$with_gnutls'" "$LINENO" 5
13499         else
13500             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13502         fi
13503     else
13504         vers=`$GNUTLS_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13505         minvers=`echo $GNUTLS_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13506         if test "$vers" -ge "$minvers" ; then
13507             GNUTLS_CFLAGS="$GNUTLS_CFLAGS `$GNUTLS_CONFIG --cflags`"
13508             GNUTLS_LIBS="$GNUTLS_LIBS `$GNUTLS_CONFIG --libs`"
13509             GNUTLS_FOUND=yes
13510
13511             new_minvers=`echo $GNUTLS_NEW_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13512             if test "$vers" -lt "$new_minvers" ; then
13513                 GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DXMLSEC_GNUTLS_OLD=1"
13514             fi
13515             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13516 $as_echo "yes" >&6; }
13517         else
13518             as_fn_error "You need at least gnutls $GNUTLS_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
13519         fi
13520     fi
13521 fi
13522
13523 if test "z$GNUTLS_FOUND" = "zyes" ; then
13524     XMLSEC_NO_GNUTLS="0"
13525     GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DXMLSEC_CRYPTO_GNUTLS=1"
13526
13527         if test "z$XMLSEC_CRYPTO" = "z" ; then
13528         XMLSEC_CRYPTO="gnutls"
13529         XMLSEC_CRYPTO_LIB="$GNUTLS_CRYPTO_LIB"
13530         XMLSEC_CRYPTO_CFLAGS="$GNUTLS_CFLAGS"
13531         XMLSEC_CRYPTO_LIBS="$GNUTLS_LIBS"
13532     fi
13533     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST gnutls"
13534 else
13535     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST gnutls"
13536 fi
13537
13538  if test "z$XMLSEC_NO_GNUTLS" = "z1"; then
13539   XMLSEC_NO_GNUTLS_TRUE=
13540   XMLSEC_NO_GNUTLS_FALSE='#'
13541 else
13542   XMLSEC_NO_GNUTLS_TRUE='#'
13543   XMLSEC_NO_GNUTLS_FALSE=
13544 fi
13545
13546
13547
13548
13549
13550
13551
13552 XMLSEC_NO_MSCRYPTO="1"
13553 MSCRYPTO_CFLAGS=""
13554 MSCRYPTO_LIBS=""
13555 MSCRYPTO_CRYPTO_LIB="$XMLSEC_PACKAGE-mscrypto"
13556 MSCRYPTO_ENABLE='none'
13557 # Check whether --enable-mscrypto was given.
13558 if test "${enable_mscrypto+set}" = set; then :
13559   enableval=$enable_mscrypto; MSCRYPTO_ENABLE=$enableval
13560 fi
13561
13562 if test "z$MSCRYPTO_ENABLE" != "zyes" ; then
13563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5
13564 $as_echo_n "checking for mscrypto libraries... " >&6; }
13565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCRYPTO_ENABLE" >&5
13566 $as_echo "$MSCRYPTO_ENABLE" >&6; }
13567 else
13568     LIBS_SAVE="$LIBS"
13569     LIBS="$LIBS -lcrypt32"
13570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5
13571 $as_echo_n "checking for mscrypto libraries... " >&6; }
13572     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h.  */
13574
13575         #include <windows.h>
13576         #include <wincrypt.h>
13577         int main () { CertOpenStore(0,0,0,0,0);; return(0); }
13578
13579 _ACEOF
13580 if ac_fn_c_try_link "$LINENO"; then :
13581
13582 else
13583   MSCRYPTO_ENABLE="no"
13584 fi
13585 rm -f core conftest.err conftest.$ac_objext \
13586     conftest$ac_exeext conftest.$ac_ext
13587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCRYPTO_ENABLE" >&5
13588 $as_echo "$MSCRYPTO_ENABLE" >&6; }
13589     LIBS="$LIBS_SAVE"
13590 fi
13591
13592 if test "z$MSCRYPTO_ENABLE" = "zyes" ; then
13593     XMLSEC_NO_MSCRYPTO="0"
13594
13595     MSCRYPTO_CFLAGS="$MSCRYPTO_CFLAGS -DXMLSEC_CRYPTO_MSCRYPTO=1"
13596     case $host in
13597         *-*-mingw*)
13598                                                 MSCRYPTO_LIBS='-Wl,$(srcdir)/mingw-crypt32.def';;
13599         *)
13600                 MSCRYPTO_LIBS="-lcrypt32";;
13601     esac
13602
13603         if test "z$XMLSEC_CRYPTO" = "z" ; then
13604         XMLSEC_CRYPTO="mscrypto"
13605         XMLSEC_CRYPTO_LIB="$MSCRYPTO_CRYPTO_LIB"
13606         XMLSEC_CRYPTO_CFLAGS="$MSCRYPTO_CFLAGS"
13607         XMLSEC_CRYPTO_LIBS="$MSCRYPTO_LIBS"
13608     fi
13609     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST mscrypto"
13610 else
13611     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST mscrypto"
13612 fi
13613
13614  if test "z$XMLSEC_NO_MSCRYPTO" = "z1"; then
13615   XMLSEC_NO_MSCRYPTO_TRUE=
13616   XMLSEC_NO_MSCRYPTO_FALSE='#'
13617 else
13618   XMLSEC_NO_MSCRYPTO_TRUE='#'
13619   XMLSEC_NO_MSCRYPTO_FALSE=
13620 fi
13621
13622
13623
13624
13625
13626
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5
13628 $as_echo_n "checking for crypto library... " >&6; }
13629 if test "z$XMLSEC_CRYPTO" = "z" ;  then
13630     as_fn_error "At least one crypto library should exist for $XMLSEC_PACKAGE" "$LINENO" 5
13631 else
13632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$XMLSEC_CRYPTO')" >&5
13633 $as_echo "yes ('$XMLSEC_CRYPTO')" >&6; }
13634 fi
13635
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 support" >&5
13637 $as_echo_n "checking for MD5 support... " >&6; }
13638 # Check whether --enable-md5 was given.
13639 if test "${enable_md5+set}" = set; then :
13640   enableval=$enable_md5;
13641 fi
13642
13643 if test "z$enable_md5" = "zno" ; then
13644     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_MD5=1"
13645     XMLSEC_NO_MD5="1"
13646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13648 else
13649     XMLSEC_NO_MD5="0"
13650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13651 $as_echo "yes" >&6; }
13652 fi
13653  if test "z$XMLSEC_NO_MD5" = "z1"; then
13654   XMLSEC_NO_MD5_TRUE=
13655   XMLSEC_NO_MD5_FALSE='#'
13656 else
13657   XMLSEC_NO_MD5_TRUE='#'
13658   XMLSEC_NO_MD5_FALSE=
13659 fi
13660
13661
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RIPEMD-160 support" >&5
13664 $as_echo_n "checking for RIPEMD-160 support... " >&6; }
13665 # Check whether --enable-ripemd160 was given.
13666 if test "${enable_ripemd160+set}" = set; then :
13667   enableval=$enable_ripemd160;
13668 fi
13669
13670 if test "z$enable_ripemd160" = "zno" ; then
13671     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RIPEMD160=1"
13672     XMLSEC_NO_RIPEMD160="1"
13673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675 else
13676     XMLSEC_NO_RIPEMD160="0"
13677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13678 $as_echo "yes" >&6; }
13679 fi
13680  if test "z$XMLSEC_NO_RIPEMD160" = "z1"; then
13681   XMLSEC_NO_RIPEMD160_TRUE=
13682   XMLSEC_NO_RIPEMD160_FALSE='#'
13683 else
13684   XMLSEC_NO_RIPEMD160_TRUE='#'
13685   XMLSEC_NO_RIPEMD160_FALSE=
13686 fi
13687
13688
13689
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 support" >&5
13691 $as_echo_n "checking for SHA1 support... " >&6; }
13692 # Check whether --enable-sha1 was given.
13693 if test "${enable_sha1+set}" = set; then :
13694   enableval=$enable_sha1;
13695 fi
13696
13697 if test "z$enable_sha1" = "zno" ; then
13698     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA1=1"
13699     XMLSEC_NO_SHA1="1"
13700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13702 else
13703     XMLSEC_NO_SHA1="0"
13704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705 $as_echo "yes" >&6; }
13706 fi
13707  if test "z$XMLSEC_NO_SHA1" = "z1"; then
13708   XMLSEC_NO_SHA1_TRUE=
13709   XMLSEC_NO_SHA1_FALSE='#'
13710 else
13711   XMLSEC_NO_SHA1_TRUE='#'
13712   XMLSEC_NO_SHA1_FALSE=
13713 fi
13714
13715
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA224 support" >&5
13718 $as_echo_n "checking for SHA224 support... " >&6; }
13719 # Check whether --enable-sha224 was given.
13720 if test "${enable_sha224+set}" = set; then :
13721   enableval=$enable_sha224;
13722 fi
13723
13724 if test "z$enable_sha224" = "zno" ; then
13725     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA224=1"
13726     XMLSEC_NO_SHA224="1"
13727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 else
13730     XMLSEC_NO_SHA224="0"
13731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13732 $as_echo "yes" >&6; }
13733 fi
13734  if test "z$XMLSEC_NO_SHA224" = "z1"; then
13735   XMLSEC_NO_SHA224_TRUE=
13736   XMLSEC_NO_SHA224_FALSE='#'
13737 else
13738   XMLSEC_NO_SHA224_TRUE='#'
13739   XMLSEC_NO_SHA224_FALSE=
13740 fi
13741
13742
13743
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 support" >&5
13745 $as_echo_n "checking for SHA256 support... " >&6; }
13746 # Check whether --enable-sha256 was given.
13747 if test "${enable_sha256+set}" = set; then :
13748   enableval=$enable_sha256;
13749 fi
13750
13751 if test "z$enable_sha256" = "zno" ; then
13752     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA256=1"
13753     XMLSEC_NO_SHA256="1"
13754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756 else
13757     XMLSEC_NO_SHA256="0"
13758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13759 $as_echo "yes" >&6; }
13760 fi
13761  if test "z$XMLSEC_NO_SHA256" = "z1"; then
13762   XMLSEC_NO_SHA256_TRUE=
13763   XMLSEC_NO_SHA256_FALSE='#'
13764 else
13765   XMLSEC_NO_SHA256_TRUE='#'
13766   XMLSEC_NO_SHA256_FALSE=
13767 fi
13768
13769
13770
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA384 support" >&5
13772 $as_echo_n "checking for SHA384 support... " >&6; }
13773 # Check whether --enable-sha384 was given.
13774 if test "${enable_sha384+set}" = set; then :
13775   enableval=$enable_sha384;
13776 fi
13777
13778 if test "z$enable_sha384" = "zno" ; then
13779     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA384=1"
13780     XMLSEC_NO_SHA384="1"
13781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13783 else
13784     XMLSEC_NO_SHA384="0"
13785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13786 $as_echo "yes" >&6; }
13787 fi
13788  if test "z$XMLSEC_NO_SHA384" = "z1"; then
13789   XMLSEC_NO_SHA384_TRUE=
13790   XMLSEC_NO_SHA384_FALSE='#'
13791 else
13792   XMLSEC_NO_SHA384_TRUE='#'
13793   XMLSEC_NO_SHA384_FALSE=
13794 fi
13795
13796
13797
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 support" >&5
13799 $as_echo_n "checking for SHA512 support... " >&6; }
13800 # Check whether --enable-sha512 was given.
13801 if test "${enable_sha512+set}" = set; then :
13802   enableval=$enable_sha512;
13803 fi
13804
13805 if test "z$enable_sha512" = "zno" ; then
13806     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA512=1"
13807     XMLSEC_NO_SHA512="1"
13808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 $as_echo "no" >&6; }
13810 else
13811     XMLSEC_NO_SHA512="0"
13812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13813 $as_echo "yes" >&6; }
13814 fi
13815  if test "z$XMLSEC_NO_SHA512" = "z1"; then
13816   XMLSEC_NO_SHA512_TRUE=
13817   XMLSEC_NO_SHA512_FALSE='#'
13818 else
13819   XMLSEC_NO_SHA512_TRUE='#'
13820   XMLSEC_NO_SHA512_FALSE=
13821 fi
13822
13823
13824
13825
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC support" >&5
13827 $as_echo_n "checking for HMAC support... " >&6; }
13828 # Check whether --enable-hmac was given.
13829 if test "${enable_hmac+set}" = set; then :
13830   enableval=$enable_hmac;
13831 fi
13832
13833 if test "z$enable_hmac" = "zno" ; then
13834     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_HMAC=1"
13835     XMLSEC_NO_HMAC="1"
13836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13838 else
13839     XMLSEC_NO_HMAC="0"
13840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13841 $as_echo "yes" >&6; }
13842 fi
13843  if test "z$XMLSEC_NO_HMAC" = "z1"; then
13844   XMLSEC_NO_HMAC_TRUE=
13845   XMLSEC_NO_HMAC_FALSE='#'
13846 else
13847   XMLSEC_NO_HMAC_TRUE='#'
13848   XMLSEC_NO_HMAC_FALSE=
13849 fi
13850
13851
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA support" >&5
13854 $as_echo_n "checking for DSA support... " >&6; }
13855 # Check whether --enable-dsa was given.
13856 if test "${enable_dsa+set}" = set; then :
13857   enableval=$enable_dsa;
13858 fi
13859
13860 if test "z$enable_dsa" = "zno" ; then
13861     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DSA=1"
13862     XMLSEC_NO_DSA="1"
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13865 else
13866     XMLSEC_NO_DSA="0"
13867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13868 $as_echo "yes" >&6; }
13869 fi
13870  if test "z$XMLSEC_NO_DSA" = "z1"; then
13871   XMLSEC_NO_DSA_TRUE=
13872   XMLSEC_NO_DSA_FALSE='#'
13873 else
13874   XMLSEC_NO_DSA_TRUE='#'
13875   XMLSEC_NO_DSA_FALSE=
13876 fi
13877
13878
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA support" >&5
13881 $as_echo_n "checking for RSA support... " >&6; }
13882 # Check whether --enable-rsa was given.
13883 if test "${enable_rsa+set}" = set; then :
13884   enableval=$enable_rsa;
13885 fi
13886
13887 if test "z$enable_rsa" = "zno" ; then
13888     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RSA=1"
13889     XMLSEC_NO_RSA="1"
13890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13892 else
13893     XMLSEC_NO_RSA="0"
13894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13895 $as_echo "yes" >&6; }
13896 fi
13897  if test "z$XMLSEC_NO_RSA" = "z1"; then
13898   XMLSEC_NO_RSA_TRUE=
13899   XMLSEC_NO_RSA_FALSE='#'
13900 else
13901   XMLSEC_NO_RSA_TRUE='#'
13902   XMLSEC_NO_RSA_FALSE=
13903 fi
13904
13905
13906
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x509 support" >&5
13908 $as_echo_n "checking for x509 support... " >&6; }
13909 # Check whether --enable-x509 was given.
13910 if test "${enable_x509+set}" = set; then :
13911   enableval=$enable_x509;
13912 fi
13913
13914 if test "z$enable_x509" = "zno" ; then
13915     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_X509=1"
13916     XMLSEC_NO_X509="1"
13917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13919 else
13920     XMLSEC_NO_X509="0"
13921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13922 $as_echo "yes" >&6; }
13923 fi
13924  if test "z$XMLSEC_NO_X509" = "z1"; then
13925   XMLSEC_NO_X509_TRUE=
13926   XMLSEC_NO_X509_FALSE='#'
13927 else
13928   XMLSEC_NO_X509_TRUE='#'
13929   XMLSEC_NO_X509_FALSE=
13930 fi
13931
13932
13933
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES support" >&5
13935 $as_echo_n "checking for DES support... " >&6; }
13936 # Check whether --enable-des was given.
13937 if test "${enable_des+set}" = set; then :
13938   enableval=$enable_des;
13939 fi
13940
13941 if test "z$enable_des" = "zno" ; then
13942     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DES=1"
13943     XMLSEC_NO_DES="1"
13944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946 else
13947     XMLSEC_NO_DES="0"
13948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13949 $as_echo "yes" >&6; }
13950 fi
13951  if test "z$XMLSEC_NO_DES" = "z1"; then
13952   XMLSEC_NO_DES_TRUE=
13953   XMLSEC_NO_DES_FALSE='#'
13954 else
13955   XMLSEC_NO_DES_TRUE='#'
13956   XMLSEC_NO_DES_FALSE=
13957 fi
13958
13959
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES support" >&5
13962 $as_echo_n "checking for AES support... " >&6; }
13963 # Check whether --enable-aes was given.
13964 if test "${enable_aes+set}" = set; then :
13965   enableval=$enable_aes;
13966 fi
13967
13968 if test "z$enable_aes" = "zno" ; then
13969     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_AES=1"
13970     XMLSEC_NO_AES="1"
13971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13973 else
13974     XMLSEC_NO_AES="0"
13975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13976 $as_echo "yes" >&6; }
13977 fi
13978  if test "z$XMLSEC_NO_AES" = "z1"; then
13979   XMLSEC_NO_AES_TRUE=
13980   XMLSEC_NO_AES_FALSE='#'
13981 else
13982   XMLSEC_NO_AES_TRUE='#'
13983   XMLSEC_NO_AES_FALSE=
13984 fi
13985
13986
13987
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST support" >&5
13989 $as_echo_n "checking for GOST support... " >&6; }
13990 # Check whether --enable-gost was given.
13991 if test "${enable_gost+set}" = set; then :
13992   enableval=$enable_gost;
13993 fi
13994
13995 if test "z$enable_gost" != "zyes" ; then
13996     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_GOST=1"
13997     XMLSEC_NO_GOST="1"
13998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14000 else
14001     XMLSEC_NO_GOST="0"
14002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14003 $as_echo "yes" >&6; }
14004 fi
14005  if test "z$XMLSEC_NO_GOST" = "z1"; then
14006   XMLSEC_NO_GOST_TRUE=
14007   XMLSEC_NO_GOST_FALSE='#'
14008 else
14009   XMLSEC_NO_GOST_TRUE='#'
14010   XMLSEC_NO_GOST_FALSE=
14011 fi
14012
14013
14014
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLDSig support" >&5
14016 $as_echo_n "checking for XMLDSig support... " >&6; }
14017 # Check whether --enable-xmldsig was given.
14018 if test "${enable_xmldsig+set}" = set; then :
14019   enableval=$enable_xmldsig;
14020 fi
14021
14022 if test "z$enable_xmldsig" = "zno" ; then
14023     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLDSIG=1"
14024     XMLSEC_NO_XMLDSIG="1"
14025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14027 else
14028     XMLSEC_NO_XMLDSIG="0"
14029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14030 $as_echo "yes" >&6; }
14031 fi
14032  if test "z$XMLSEC_NO_XMLDSIG" = "z1"; then
14033   XMLSEC_NO_XMLDSIG_TRUE=
14034   XMLSEC_NO_XMLDSIG_FALSE='#'
14035 else
14036   XMLSEC_NO_XMLDSIG_TRUE='#'
14037   XMLSEC_NO_XMLDSIG_FALSE=
14038 fi
14039
14040
14041
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLEnc support" >&5
14043 $as_echo_n "checking for XMLEnc support... " >&6; }
14044 # Check whether --enable-xmlenc was given.
14045 if test "${enable_xmlenc+set}" = set; then :
14046   enableval=$enable_xmlenc;
14047 fi
14048
14049 if test "z$enable_xmlenc" = "zno" ; then
14050     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLENC=1"
14051     XMLSEC_NO_XMLENC="1"
14052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054 else
14055     XMLSEC_NO_XMLENC="0"
14056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14057 $as_echo "yes" >&6; }
14058 fi
14059  if test "z$XMLSEC_NO_XMLENC" = "z1"; then
14060   XMLSEC_NO_XMLENC_TRUE=
14061   XMLSEC_NO_XMLENC_FALSE='#'
14062 else
14063   XMLSEC_NO_XMLENC_TRUE='#'
14064   XMLSEC_NO_XMLENC_FALSE=
14065 fi
14066
14067
14068
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMKMS support - under development" >&5
14070 $as_echo_n "checking for XMKMS support - under development... " >&6; }
14071 # Check whether --enable-xkms was given.
14072 if test "${enable_xkms+set}" = set; then :
14073   enableval=$enable_xkms;
14074 fi
14075
14076 if test "z$enable_xkms" = "zyes" ; then
14077     XMLSEC_NO_XKMS="0"
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14079 $as_echo "yes" >&6; }
14080 else
14081     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XKMS=1"
14082     XMLSEC_NO_XKMS="1"
14083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14085 fi
14086  if test "z$XMLSEC_NO_XKMS" = "z1"; then
14087   XMLSEC_NO_XKMS_TRUE=
14088   XMLSEC_NO_XKMS_FALSE='#'
14089 else
14090   XMLSEC_NO_XKMS_TRUE='#'
14091   XMLSEC_NO_XKMS_FALSE=
14092 fi
14093
14094
14095
14096 XMLSEC_DL_INCLUDES=""
14097 XMLSEC_DL_LIBS=""
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlsec-crypto dynamic loading support" >&5
14099 $as_echo_n "checking for xmlsec-crypto dynamic loading support... " >&6; }
14100 # Check whether --enable-crypto_dl was given.
14101 if test "${enable_crypto_dl+set}" = set; then :
14102   enableval=$enable_crypto_dl;
14103 fi
14104
14105 if test "z$enable_crypto_dl" = "zno" ; then
14106     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1"
14107     XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="1"
14108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14110 else
14111     ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
14112 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
14113
14114         XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_DL_LIBLTDL=1",
14115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5
14116 $as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; }
14117 if test "${ac_cv_lib_ltdl_lt_dlopenext+set}" = set; then :
14118   $as_echo_n "(cached) " >&6
14119 else
14120   ac_check_lib_save_LIBS=$LIBS
14121 LIBS="-lltdl  $LIBS"
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h.  */
14124
14125 /* Override any GCC internal prototype to avoid an error.
14126    Use char because int might match the return type of a GCC
14127    builtin and then its argument prototype would still apply.  */
14128 #ifdef __cplusplus
14129 extern "C"
14130 #endif
14131 char lt_dlopenext ();
14132 int
14133 main ()
14134 {
14135 return lt_dlopenext ();
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 if ac_fn_c_try_link "$LINENO"; then :
14141   ac_cv_lib_ltdl_lt_dlopenext=yes
14142 else
14143   ac_cv_lib_ltdl_lt_dlopenext=no
14144 fi
14145 rm -f core conftest.err conftest.$ac_objext \
14146     conftest$ac_exeext conftest.$ac_ext
14147 LIBS=$ac_check_lib_save_LIBS
14148 fi
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5
14150 $as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; }
14151 if test "x$ac_cv_lib_ltdl_lt_dlopenext" = x""yes; then :
14152   LIBLTDL=-lltdl
14153 else
14154   LIBLTDL=
14155
14156 fi
14157
14158 else
14159   LIBLTDL=
14160
14161 fi
14162
14163
14164
14165     if test "z$LIBLTDL" != "z" ; then
14166         XMLSEC_DL_INCLUDES="$INCLTDL"
14167         XMLSEC_DL_LIBS="$LIBLTDL"
14168         XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="0"
14169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14170 $as_echo "yes" >&6; }
14171     else
14172         as_fn_error "libltdl is required for xmlsec-crypto dynamic loading" "$LINENO" 5
14173     fi
14174 fi
14175  if test "z$XMLSEC_NO_CRYPTO_DYNAMIC_LOADING" = "z1"; then
14176   XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE=
14177   XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE='#'
14178 else
14179   XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE='#'
14180   XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE=
14181 fi
14182
14183
14184
14185
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlsec-crypto dynamic loading support in command line tool" >&5
14188 $as_echo_n "checking for xmlsec-crypto dynamic loading support in command line tool... " >&6; }
14189 # Check whether --enable-apps_crypto_dl was given.
14190 if test "${enable_apps_crypto_dl+set}" = set; then :
14191   enableval=$enable_apps_crypto_dl;
14192 fi
14193
14194 if test "z$enable_apps_crypto_dl" = "z" ; then
14195     enable_apps_crypto_dl="$enable_crypto_dl"
14196 fi
14197 if test "z$enable_apps_crypto_dl" = "zno" ; then
14198     XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING="1"
14199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14201 elif test "z$enable_crypto_dl" = "zno" ; then
14202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14204     as_fn_error "xmlsec-crypto libraries dynamic loading support in xmlsec command line tool is requested but no dynamic loading in xmlsec itself is disabled" "$LINENO" 5
14205 else
14206     XMLSEC_APP_DEFINES="$XMLSEC_APP_DEFINES -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1"
14207     XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING="0"
14208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14209 $as_echo "yes" >&6; }
14210 fi
14211  if test "z$XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING" = "z1"; then
14212   XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE=
14213   XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE='#'
14214 else
14215   XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE='#'
14216   XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE=
14217 fi
14218
14219
14220
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docs folder" >&5
14222 $as_echo_n "checking for docs folder... " >&6; }
14223
14224 # Check whether --with-html-dir was given.
14225 if test "${with_html_dir+set}" = set; then :
14226   withval=$with_html_dir;
14227 fi
14228
14229 if test "z$with_html_dir" != "z" ; then
14230     XMLSEC_DOCDIR=$with_html_dir
14231 else
14232     XMLSEC_DOCDIR='$(datadir)/doc/xmlsec1'
14233 fi
14234
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSEC_DOCDIR" >&5
14236 $as_echo "$XMLSEC_DOCDIR" >&6; }
14237
14238
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Simple Keys Manager testing" >&5
14240 $as_echo_n "checking for Simple Keys Manager testing... " >&6; }
14241 # Check whether --enable-skm was given.
14242 if test "${enable_skm+set}" = set; then :
14243   enableval=$enable_skm;
14244 fi
14245
14246 if test "z$enable_skm" = "zno" ; then
14247     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SKM_TEST=1"
14248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 $as_echo "no" >&6; }
14250 else
14251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14252 $as_echo "yes" >&6; }
14253 fi
14254
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for templates testing" >&5
14256 $as_echo_n "checking for templates testing... " >&6; }
14257 # Check whether --enable-tmpl_tests was given.
14258 if test "${enable_tmpl_tests+set}" = set; then :
14259   enableval=$enable_tmpl_tests;
14260 fi
14261
14262 if test "z$enable_tmpl_tests" = "zyes" ; then
14263     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_TMPL_TEST=1"
14264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14266 else
14267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14268 $as_echo "yes" >&6; }
14269 fi
14270
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuging" >&5
14272 $as_echo_n "checking for debuging... " >&6; }
14273 # Check whether --enable-debuging was given.
14274 if test "${enable_debuging+set}" = set; then :
14275   enableval=$enable_debuging;
14276 fi
14277
14278 if test "z$enable_debuging" = "zyes" ; then
14279     CFLAGS="$CFLAGS -g"
14280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14281 $as_echo "yes" >&6; }
14282 else
14283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14284 $as_echo "no" >&6; }
14285 fi
14286
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5
14288 $as_echo_n "checking for profiling... " >&6; }
14289 # Check whether --enable-profiling was given.
14290 if test "${enable_profiling+set}" = set; then :
14291   enableval=$enable_profiling;
14292 fi
14293
14294 if test "z$enable_profiling" = "zyes" ; then
14295     CFLAGS="$CFLAGS -pg"
14296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14297 $as_echo "yes" >&6; }
14298 else
14299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14301 fi
14302
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pedantic" >&5
14304 $as_echo_n "checking for pedantic... " >&6; }
14305 # Check whether --enable-pedantic was given.
14306 if test "${enable_pedantic+set}" = set; then :
14307   enableval=$enable_pedantic;
14308 fi
14309
14310 if test "z$enable_pedantic" = "zyes" ; then
14311         CFLAGS="$CFLAGS -O -pedantic -Wall -ansi -fno-inline -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
14312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14313 $as_echo "yes" >&6; }
14314 else
14315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14317 fi
14318
14319 XMLSEC_STATIC_BINARIES=""
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static linking" >&5
14321 $as_echo_n "checking for static linking... " >&6; }
14322 # Check whether --enable-static_linking was given.
14323 if test "${enable_static_linking+set}" = set; then :
14324   enableval=$enable_static_linking;
14325 fi
14326
14327 if test "z$enable_static_linking" = "zyes" ; then
14328     XMLSEC_STATIC_BINARIES="-static"
14329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14330 $as_echo "yes" >&6; }
14331 else
14332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 $as_echo "no" >&6; }
14334 fi
14335
14336
14337 XMLSEC_CORE_CFLAGS="$XMLSEC_DEFINES -I${includedir}/xmlsec1  $XMLSEC_DL_INCLUDES"
14338 XMLSEC_CORE_LIBS="-lxmlsec1 $XMLSEC_DL_LIBS "
14339
14340
14341
14342 XMLSEC_LIBDIR="${libdir}"
14343
14344
14345 XMLSEC_OPENSSL_CFLAGS="$XMLSEC_CORE_CFLAGS $OPENSSL_CFLAGS"
14346 XMLSEC_OPENSSL_LIBS="-L${libdir} -l$OPENSSL_CRYPTO_LIB $XMLSEC_CORE_LIBS $OPENSSL_LIBS"
14347
14348
14349
14350 XMLSEC_GNUTLS_CFLAGS="$XMLSEC_CORE_CFLAGS $GNUTLS_CFLAGS"
14351 XMLSEC_GNUTLS_LIBS="-L${libdir} -l$GNUTLS_CRYPTO_LIB $XMLSEC_CORE_LIBS $GNUTLS_LIBS"
14352
14353
14354
14355 XMLSEC_NSS_CFLAGS="$XMLSEC_CORE_CFLAGS $NSS_CFLAGS"
14356 XMLSEC_NSS_LIBS="-L${libdir} -l$NSS_CRYPTO_LIB $XMLSEC_CORE_LIBS $NSS_LIBS"
14357
14358
14359
14360
14361 XMLSEC_CFLAGS="$XMLSEC_CORE_CFLAGS $LIBXML_CFLAGS $LIBXSLT_CFLAGS $XMLSEC_CRYPTO_CFLAGS"
14362 XMLSEC_LIBS="-L${libdir} -l$XMLSEC_CRYPTO_LIB $XMLSEC_CORE_LIBS $LIBXML_LIBS $LIBXSLT_LIBS $XMLSEC_CRYPTO_LIBS"
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381 XMLSEC_CRYPTO_PC_FILES_LIST=""
14382 for i in $XMLSEC_CRYPTO_LIST ; do
14383         test x$i = xmscrypto && continue
14384     XMLSEC_CRYPTO_PC_FILES_LIST="$XMLSEC_CRYPTO_PC_FILES_LIST $XMLSEC_PACKAGE-$i.pc"
14385 done
14386
14387
14388 if test "z$XMLSEC_NO_OPENSSL" != "z1" ; then
14389 ac_config_files="$ac_config_files include/xmlsec/openssl/Makefile src/openssl/Makefile"
14390
14391 fi
14392
14393 if test "z$XMLSEC_NO_GNUTLS" != "z1" ; then
14394 ac_config_files="$ac_config_files include/xmlsec/gnutls/Makefile src/gnutls/Makefile"
14395
14396 fi
14397
14398 if test "z$XMLSEC_NO_NSS" != "z1" ; then
14399 ac_config_files="$ac_config_files include/xmlsec/nss/Makefile src/nss/Makefile"
14400
14401 fi
14402
14403 if test "z$XMLSEC_NO_MSCRYPTO" != "z1" ; then
14404 ac_config_files="$ac_config_files include/xmlsec/mscrypto/Makefile src/mscrypto/Makefile"
14405
14406 fi
14407
14408 if test "z$XMLSEC_NO_CRYPTO_DYNAMIC_LOADING" = "z1" ; then
14409 (rm -f xmlsec1.pc && $LN_S xmlsec1-$XMLSEC_CRYPTO.pc xmlsec1.pc)
14410 else
14411 ac_config_files="$ac_config_files xmlsec1.pc:xmlsec.pc.in"
14412
14413 fi
14414
14415 ac_config_files="$ac_config_files include/xmlsec/version.h Makefile include/Makefile include/xmlsec/Makefile include/xmlsec/private/Makefile src/Makefile apps/Makefile docs/Makefile docs/api/Makefile man/Makefile xmlsec1Conf.sh:xmlsecConf.sh.in xmlsec1-config:xmlsec-config.in xmlsec1-openssl.pc:xmlsec-openssl.pc.in xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in xmlsec1-nss.pc:xmlsec-nss.pc.in xmlsec1.spec:xmlsec.spec.in"
14416
14417 cat >confcache <<\_ACEOF
14418 # This file is a shell script that caches the results of configure
14419 # tests run on this system so they can be shared between configure
14420 # scripts and configure runs, see configure's option --config-cache.
14421 # It is not useful on other systems.  If it contains results you don't
14422 # want to keep, you may remove or edit it.
14423 #
14424 # config.status only pays attention to the cache file if you give it
14425 # the --recheck option to rerun configure.
14426 #
14427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14429 # following values.
14430
14431 _ACEOF
14432
14433 # The following way of writing the cache mishandles newlines in values,
14434 # but we know of no workaround that is simple, portable, and efficient.
14435 # So, we kill variables containing newlines.
14436 # Ultrix sh set writes to stderr and can't be redirected directly,
14437 # and sets the high bit in the cache file unless we assign to the vars.
14438 (
14439   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14440     eval ac_val=\$$ac_var
14441     case $ac_val in #(
14442     *${as_nl}*)
14443       case $ac_var in #(
14444       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14446       esac
14447       case $ac_var in #(
14448       _ | IFS | as_nl) ;; #(
14449       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14450       *) { eval $ac_var=; unset $ac_var;} ;;
14451       esac ;;
14452     esac
14453   done
14454
14455   (set) 2>&1 |
14456     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14457     *${as_nl}ac_space=\ *)
14458       # `set' does not quote correctly, so add quotes: double-quote
14459       # substitution turns \\\\ into \\, and sed turns \\ into \.
14460       sed -n \
14461         "s/'/'\\\\''/g;
14462           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14463       ;; #(
14464     *)
14465       # `set' quotes correctly as required by POSIX, so do not add quotes.
14466       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14467       ;;
14468     esac |
14469     sort
14470 ) |
14471   sed '
14472      /^ac_cv_env_/b end
14473      t clear
14474      :clear
14475      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14476      t end
14477      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14478      :end' >>confcache
14479 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14480   if test -w "$cache_file"; then
14481     test "x$cache_file" != "x/dev/null" &&
14482       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14483 $as_echo "$as_me: updating cache $cache_file" >&6;}
14484     cat confcache >$cache_file
14485   else
14486     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14487 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14488   fi
14489 fi
14490 rm -f confcache
14491
14492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14493 # Let make expand exec_prefix.
14494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14495
14496 DEFS=-DHAVE_CONFIG_H
14497
14498 ac_libobjs=
14499 ac_ltlibobjs=
14500 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14501   # 1. Remove the extension, and $U if already installed.
14502   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14503   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14504   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14505   #    will be set to the directory where LIBOBJS objects are built.
14506   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14507   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14508 done
14509 LIBOBJS=$ac_libobjs
14510
14511 LTLIBOBJS=$ac_ltlibobjs
14512
14513
14514  if test -n "$EXEEXT"; then
14515   am__EXEEXT_TRUE=
14516   am__EXEEXT_FALSE='#'
14517 else
14518   am__EXEEXT_TRUE='#'
14519   am__EXEEXT_FALSE=
14520 fi
14521
14522 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14523   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14525 fi
14526 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14527   as_fn_error "conditional \"AMDEP\" was never defined.
14528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14529 fi
14530 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14531   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14533 fi
14534 if test -z "${SHAREDLIB_HACK_TRUE}" && test -z "${SHAREDLIB_HACK_FALSE}"; then
14535   as_fn_error "conditional \"SHAREDLIB_HACK\" was never defined.
14536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14537 fi
14538 if test -z "${XMLSEC_NO_OPENSSL_TRUE}" && test -z "${XMLSEC_NO_OPENSSL_FALSE}"; then
14539   as_fn_error "conditional \"XMLSEC_NO_OPENSSL\" was never defined.
14540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14541 fi
14542 if test -z "${XMLSEC_NO_NSS_TRUE}" && test -z "${XMLSEC_NO_NSS_FALSE}"; then
14543   as_fn_error "conditional \"XMLSEC_NO_NSS\" was never defined.
14544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14545 fi
14546 if test -z "${XMLSEC_NO_GNUTLS_TRUE}" && test -z "${XMLSEC_NO_GNUTLS_FALSE}"; then
14547   as_fn_error "conditional \"XMLSEC_NO_GNUTLS\" was never defined.
14548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14549 fi
14550 if test -z "${XMLSEC_NO_MSCRYPTO_TRUE}" && test -z "${XMLSEC_NO_MSCRYPTO_FALSE}"; then
14551   as_fn_error "conditional \"XMLSEC_NO_MSCRYPTO\" was never defined.
14552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14553 fi
14554 if test -z "${XMLSEC_NO_MD5_TRUE}" && test -z "${XMLSEC_NO_MD5_FALSE}"; then
14555   as_fn_error "conditional \"XMLSEC_NO_MD5\" was never defined.
14556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14557 fi
14558 if test -z "${XMLSEC_NO_RIPEMD160_TRUE}" && test -z "${XMLSEC_NO_RIPEMD160_FALSE}"; then
14559   as_fn_error "conditional \"XMLSEC_NO_RIPEMD160\" was never defined.
14560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14561 fi
14562 if test -z "${XMLSEC_NO_SHA1_TRUE}" && test -z "${XMLSEC_NO_SHA1_FALSE}"; then
14563   as_fn_error "conditional \"XMLSEC_NO_SHA1\" was never defined.
14564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14565 fi
14566 if test -z "${XMLSEC_NO_SHA224_TRUE}" && test -z "${XMLSEC_NO_SHA224_FALSE}"; then
14567   as_fn_error "conditional \"XMLSEC_NO_SHA224\" was never defined.
14568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14569 fi
14570 if test -z "${XMLSEC_NO_SHA256_TRUE}" && test -z "${XMLSEC_NO_SHA256_FALSE}"; then
14571   as_fn_error "conditional \"XMLSEC_NO_SHA256\" was never defined.
14572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14573 fi
14574 if test -z "${XMLSEC_NO_SHA384_TRUE}" && test -z "${XMLSEC_NO_SHA384_FALSE}"; then
14575   as_fn_error "conditional \"XMLSEC_NO_SHA384\" was never defined.
14576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14577 fi
14578 if test -z "${XMLSEC_NO_SHA512_TRUE}" && test -z "${XMLSEC_NO_SHA512_FALSE}"; then
14579   as_fn_error "conditional \"XMLSEC_NO_SHA512\" was never defined.
14580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14581 fi
14582 if test -z "${XMLSEC_NO_HMAC_TRUE}" && test -z "${XMLSEC_NO_HMAC_FALSE}"; then
14583   as_fn_error "conditional \"XMLSEC_NO_HMAC\" was never defined.
14584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14585 fi
14586 if test -z "${XMLSEC_NO_DSA_TRUE}" && test -z "${XMLSEC_NO_DSA_FALSE}"; then
14587   as_fn_error "conditional \"XMLSEC_NO_DSA\" was never defined.
14588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14589 fi
14590 if test -z "${XMLSEC_NO_RSA_TRUE}" && test -z "${XMLSEC_NO_RSA_FALSE}"; then
14591   as_fn_error "conditional \"XMLSEC_NO_RSA\" was never defined.
14592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14593 fi
14594 if test -z "${XMLSEC_NO_X509_TRUE}" && test -z "${XMLSEC_NO_X509_FALSE}"; then
14595   as_fn_error "conditional \"XMLSEC_NO_X509\" was never defined.
14596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14597 fi
14598 if test -z "${XMLSEC_NO_DES_TRUE}" && test -z "${XMLSEC_NO_DES_FALSE}"; then
14599   as_fn_error "conditional \"XMLSEC_NO_DES\" was never defined.
14600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14601 fi
14602 if test -z "${XMLSEC_NO_AES_TRUE}" && test -z "${XMLSEC_NO_AES_FALSE}"; then
14603   as_fn_error "conditional \"XMLSEC_NO_AES\" was never defined.
14604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14605 fi
14606 if test -z "${XMLSEC_NO_GOST_TRUE}" && test -z "${XMLSEC_NO_GOST_FALSE}"; then
14607   as_fn_error "conditional \"XMLSEC_NO_GOST\" was never defined.
14608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14609 fi
14610 if test -z "${XMLSEC_NO_XMLDSIG_TRUE}" && test -z "${XMLSEC_NO_XMLDSIG_FALSE}"; then
14611   as_fn_error "conditional \"XMLSEC_NO_XMLDSIG\" was never defined.
14612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14613 fi
14614 if test -z "${XMLSEC_NO_XMLENC_TRUE}" && test -z "${XMLSEC_NO_XMLENC_FALSE}"; then
14615   as_fn_error "conditional \"XMLSEC_NO_XMLENC\" was never defined.
14616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14617 fi
14618 if test -z "${XMLSEC_NO_XKMS_TRUE}" && test -z "${XMLSEC_NO_XKMS_FALSE}"; then
14619   as_fn_error "conditional \"XMLSEC_NO_XKMS\" was never defined.
14620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14621 fi
14622 if test -z "${XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE}" && test -z "${XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE}"; then
14623   as_fn_error "conditional \"XMLSEC_NO_CRYPTO_DYNAMIC_LOADING\" was never defined.
14624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14625 fi
14626 if test -z "${XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE}" && test -z "${XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE}"; then
14627   as_fn_error "conditional \"XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING\" was never defined.
14628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14629 fi
14630
14631 : ${CONFIG_STATUS=./config.status}
14632 ac_write_fail=0
14633 ac_clean_files_save=$ac_clean_files
14634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14637 as_write_fail=0
14638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14639 #! $SHELL
14640 # Generated by $as_me.
14641 # Run this file to recreate the current configuration.
14642 # Compiler output produced by configure, useful for debugging
14643 # configure, is in config.log if it exists.
14644
14645 debug=false
14646 ac_cs_recheck=false
14647 ac_cs_silent=false
14648
14649 SHELL=\${CONFIG_SHELL-$SHELL}
14650 export SHELL
14651 _ASEOF
14652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14653 ## -------------------- ##
14654 ## M4sh Initialization. ##
14655 ## -------------------- ##
14656
14657 # Be more Bourne compatible
14658 DUALCASE=1; export DUALCASE # for MKS sh
14659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14660   emulate sh
14661   NULLCMD=:
14662   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14663   # is contrary to our usage.  Disable this feature.
14664   alias -g '${1+"$@"}'='"$@"'
14665   setopt NO_GLOB_SUBST
14666 else
14667   case `(set -o) 2>/dev/null` in #(
14668   *posix*) :
14669     set -o posix ;; #(
14670   *) :
14671      ;;
14672 esac
14673 fi
14674
14675
14676 as_nl='
14677 '
14678 export as_nl
14679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14683 # Prefer a ksh shell builtin over an external printf program on Solaris,
14684 # but without wasting forks for bash or zsh.
14685 if test -z "$BASH_VERSION$ZSH_VERSION" \
14686     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14687   as_echo='print -r --'
14688   as_echo_n='print -rn --'
14689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14690   as_echo='printf %s\n'
14691   as_echo_n='printf %s'
14692 else
14693   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14694     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14695     as_echo_n='/usr/ucb/echo -n'
14696   else
14697     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14698     as_echo_n_body='eval
14699       arg=$1;
14700       case $arg in #(
14701       *"$as_nl"*)
14702         expr "X$arg" : "X\\(.*\\)$as_nl";
14703         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14704       esac;
14705       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14706     '
14707     export as_echo_n_body
14708     as_echo_n='sh -c $as_echo_n_body as_echo'
14709   fi
14710   export as_echo_body
14711   as_echo='sh -c $as_echo_body as_echo'
14712 fi
14713
14714 # The user is always right.
14715 if test "${PATH_SEPARATOR+set}" != set; then
14716   PATH_SEPARATOR=:
14717   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14718     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14719       PATH_SEPARATOR=';'
14720   }
14721 fi
14722
14723
14724 # IFS
14725 # We need space, tab and new line, in precisely that order.  Quoting is
14726 # there to prevent editors from complaining about space-tab.
14727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14728 # splitting by setting IFS to empty value.)
14729 IFS=" ""        $as_nl"
14730
14731 # Find who we are.  Look in the path if we contain no directory separator.
14732 case $0 in #((
14733   *[\\/]* ) as_myself=$0 ;;
14734   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14736 do
14737   IFS=$as_save_IFS
14738   test -z "$as_dir" && as_dir=.
14739     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14740   done
14741 IFS=$as_save_IFS
14742
14743      ;;
14744 esac
14745 # We did not find ourselves, most probably we were run as `sh COMMAND'
14746 # in which case we are not to be found in the path.
14747 if test "x$as_myself" = x; then
14748   as_myself=$0
14749 fi
14750 if test ! -f "$as_myself"; then
14751   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14752   exit 1
14753 fi
14754
14755 # Unset variables that we do not need and which cause bugs (e.g. in
14756 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14757 # suppresses any "Segmentation fault" message there.  '((' could
14758 # trigger a bug in pdksh 5.2.14.
14759 for as_var in BASH_ENV ENV MAIL MAILPATH
14760 do eval test x\${$as_var+set} = xset \
14761   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14762 done
14763 PS1='$ '
14764 PS2='> '
14765 PS4='+ '
14766
14767 # NLS nuisances.
14768 LC_ALL=C
14769 export LC_ALL
14770 LANGUAGE=C
14771 export LANGUAGE
14772
14773 # CDPATH.
14774 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14775
14776
14777 # as_fn_error ERROR [LINENO LOG_FD]
14778 # ---------------------------------
14779 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14780 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14781 # script with status $?, using 1 if that was 0.
14782 as_fn_error ()
14783 {
14784   as_status=$?; test $as_status -eq 0 && as_status=1
14785   if test "$3"; then
14786     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14787     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14788   fi
14789   $as_echo "$as_me: error: $1" >&2
14790   as_fn_exit $as_status
14791 } # as_fn_error
14792
14793
14794 # as_fn_set_status STATUS
14795 # -----------------------
14796 # Set $? to STATUS, without forking.
14797 as_fn_set_status ()
14798 {
14799   return $1
14800 } # as_fn_set_status
14801
14802 # as_fn_exit STATUS
14803 # -----------------
14804 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14805 as_fn_exit ()
14806 {
14807   set +e
14808   as_fn_set_status $1
14809   exit $1
14810 } # as_fn_exit
14811
14812 # as_fn_unset VAR
14813 # ---------------
14814 # Portably unset VAR.
14815 as_fn_unset ()
14816 {
14817   { eval $1=; unset $1;}
14818 }
14819 as_unset=as_fn_unset
14820 # as_fn_append VAR VALUE
14821 # ----------------------
14822 # Append the text in VALUE to the end of the definition contained in VAR. Take
14823 # advantage of any shell optimizations that allow amortized linear growth over
14824 # repeated appends, instead of the typical quadratic growth present in naive
14825 # implementations.
14826 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14827   eval 'as_fn_append ()
14828   {
14829     eval $1+=\$2
14830   }'
14831 else
14832   as_fn_append ()
14833   {
14834     eval $1=\$$1\$2
14835   }
14836 fi # as_fn_append
14837
14838 # as_fn_arith ARG...
14839 # ------------------
14840 # Perform arithmetic evaluation on the ARGs, and store the result in the
14841 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14842 # must be portable across $(()) and expr.
14843 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14844   eval 'as_fn_arith ()
14845   {
14846     as_val=$(( $* ))
14847   }'
14848 else
14849   as_fn_arith ()
14850   {
14851     as_val=`expr "$@" || test $? -eq 1`
14852   }
14853 fi # as_fn_arith
14854
14855
14856 if expr a : '\(a\)' >/dev/null 2>&1 &&
14857    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14858   as_expr=expr
14859 else
14860   as_expr=false
14861 fi
14862
14863 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14864   as_basename=basename
14865 else
14866   as_basename=false
14867 fi
14868
14869 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14870   as_dirname=dirname
14871 else
14872   as_dirname=false
14873 fi
14874
14875 as_me=`$as_basename -- "$0" ||
14876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14877          X"$0" : 'X\(//\)$' \| \
14878          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14879 $as_echo X/"$0" |
14880     sed '/^.*\/\([^/][^/]*\)\/*$/{
14881             s//\1/
14882             q
14883           }
14884           /^X\/\(\/\/\)$/{
14885             s//\1/
14886             q
14887           }
14888           /^X\/\(\/\).*/{
14889             s//\1/
14890             q
14891           }
14892           s/.*/./; q'`
14893
14894 # Avoid depending upon Character Ranges.
14895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14898 as_cr_digits='0123456789'
14899 as_cr_alnum=$as_cr_Letters$as_cr_digits
14900
14901 ECHO_C= ECHO_N= ECHO_T=
14902 case `echo -n x` in #(((((
14903 -n*)
14904   case `echo 'xy\c'` in
14905   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14906   xy)  ECHO_C='\c';;
14907   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14908        ECHO_T=' ';;
14909   esac;;
14910 *)
14911   ECHO_N='-n';;
14912 esac
14913
14914 rm -f conf$$ conf$$.exe conf$$.file
14915 if test -d conf$$.dir; then
14916   rm -f conf$$.dir/conf$$.file
14917 else
14918   rm -f conf$$.dir
14919   mkdir conf$$.dir 2>/dev/null
14920 fi
14921 if (echo >conf$$.file) 2>/dev/null; then
14922   if ln -s conf$$.file conf$$ 2>/dev/null; then
14923     as_ln_s='ln -s'
14924     # ... but there are two gotchas:
14925     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14926     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14927     # In both cases, we have to default to `cp -p'.
14928     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14929       as_ln_s='cp -p'
14930   elif ln conf$$.file conf$$ 2>/dev/null; then
14931     as_ln_s=ln
14932   else
14933     as_ln_s='cp -p'
14934   fi
14935 else
14936   as_ln_s='cp -p'
14937 fi
14938 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14939 rmdir conf$$.dir 2>/dev/null
14940
14941
14942 # as_fn_mkdir_p
14943 # -------------
14944 # Create "$as_dir" as a directory, including parents if necessary.
14945 as_fn_mkdir_p ()
14946 {
14947
14948   case $as_dir in #(
14949   -*) as_dir=./$as_dir;;
14950   esac
14951   test -d "$as_dir" || eval $as_mkdir_p || {
14952     as_dirs=
14953     while :; do
14954       case $as_dir in #(
14955       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14956       *) as_qdir=$as_dir;;
14957       esac
14958       as_dirs="'$as_qdir' $as_dirs"
14959       as_dir=`$as_dirname -- "$as_dir" ||
14960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14961          X"$as_dir" : 'X\(//\)[^/]' \| \
14962          X"$as_dir" : 'X\(//\)$' \| \
14963          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14964 $as_echo X"$as_dir" |
14965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14966             s//\1/
14967             q
14968           }
14969           /^X\(\/\/\)[^/].*/{
14970             s//\1/
14971             q
14972           }
14973           /^X\(\/\/\)$/{
14974             s//\1/
14975             q
14976           }
14977           /^X\(\/\).*/{
14978             s//\1/
14979             q
14980           }
14981           s/.*/./; q'`
14982       test -d "$as_dir" && break
14983     done
14984     test -z "$as_dirs" || eval "mkdir $as_dirs"
14985   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14986
14987
14988 } # as_fn_mkdir_p
14989 if mkdir -p . 2>/dev/null; then
14990   as_mkdir_p='mkdir -p "$as_dir"'
14991 else
14992   test -d ./-p && rmdir ./-p
14993   as_mkdir_p=false
14994 fi
14995
14996 if test -x / >/dev/null 2>&1; then
14997   as_test_x='test -x'
14998 else
14999   if ls -dL / >/dev/null 2>&1; then
15000     as_ls_L_option=L
15001   else
15002     as_ls_L_option=
15003   fi
15004   as_test_x='
15005     eval sh -c '\''
15006       if test -d "$1"; then
15007         test -d "$1/.";
15008       else
15009         case $1 in #(
15010         -*)set "./$1";;
15011         esac;
15012         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15013         ???[sx]*):;;*)false;;esac;fi
15014     '\'' sh
15015   '
15016 fi
15017 as_executable_p=$as_test_x
15018
15019 # Sed expression to map a string onto a valid CPP name.
15020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15021
15022 # Sed expression to map a string onto a valid variable name.
15023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15024
15025
15026 exec 6>&1
15027 ## ----------------------------------- ##
15028 ## Main body of $CONFIG_STATUS script. ##
15029 ## ----------------------------------- ##
15030 _ASEOF
15031 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15032
15033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15034 # Save the log message, to keep $0 and so on meaningful, and to
15035 # report actual input values of CONFIG_FILES etc. instead of their
15036 # values after options handling.
15037 ac_log="
15038 This file was extended by xmlsec1 $as_me 1.2.14, which was
15039 generated by GNU Autoconf 2.64.  Invocation command line was
15040
15041   CONFIG_FILES    = $CONFIG_FILES
15042   CONFIG_HEADERS  = $CONFIG_HEADERS
15043   CONFIG_LINKS    = $CONFIG_LINKS
15044   CONFIG_COMMANDS = $CONFIG_COMMANDS
15045   $ $0 $@
15046
15047 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15048 "
15049
15050 _ACEOF
15051
15052 case $ac_config_files in *"
15053 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15054 esac
15055
15056 case $ac_config_headers in *"
15057 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15058 esac
15059
15060
15061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15062 # Files that config.status was made for.
15063 config_files="$ac_config_files"
15064 config_headers="$ac_config_headers"
15065 config_commands="$ac_config_commands"
15066
15067 _ACEOF
15068
15069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15070 ac_cs_usage="\
15071 \`$as_me' instantiates files and other configuration actions
15072 from templates according to the current configuration.  Unless the files
15073 and actions are specified as TAGs, all are instantiated by default.
15074
15075 Usage: $0 [OPTION]... [TAG]...
15076
15077   -h, --help       print this help, then exit
15078   -V, --version    print version number and configuration settings, then exit
15079   -q, --quiet, --silent
15080                    do not print progress messages
15081   -d, --debug      don't remove temporary files
15082       --recheck    update $as_me by reconfiguring in the same conditions
15083       --file=FILE[:TEMPLATE]
15084                    instantiate the configuration file FILE
15085       --header=FILE[:TEMPLATE]
15086                    instantiate the configuration header FILE
15087
15088 Configuration files:
15089 $config_files
15090
15091 Configuration headers:
15092 $config_headers
15093
15094 Configuration commands:
15095 $config_commands
15096
15097 Report bugs to <http://www.aleksey.com/xmlsec>."
15098
15099 _ACEOF
15100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15101 ac_cs_version="\\
15102 xmlsec1 config.status 1.2.14
15103 configured by $0, generated by GNU Autoconf 2.64,
15104   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15105
15106 Copyright (C) 2009 Free Software Foundation, Inc.
15107 This config.status script is free software; the Free Software Foundation
15108 gives unlimited permission to copy, distribute and modify it."
15109
15110 ac_pwd='$ac_pwd'
15111 srcdir='$srcdir'
15112 INSTALL='$INSTALL'
15113 MKDIR_P='$MKDIR_P'
15114 AWK='$AWK'
15115 test -n "\$AWK" || AWK=awk
15116 _ACEOF
15117
15118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15119 # The default lists apply if the user does not specify any file.
15120 ac_need_defaults=:
15121 while test $# != 0
15122 do
15123   case $1 in
15124   --*=*)
15125     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15126     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15127     ac_shift=:
15128     ;;
15129   *)
15130     ac_option=$1
15131     ac_optarg=$2
15132     ac_shift=shift
15133     ;;
15134   esac
15135
15136   case $ac_option in
15137   # Handling of the options.
15138   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15139     ac_cs_recheck=: ;;
15140   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15141     $as_echo "$ac_cs_version"; exit ;;
15142   --debug | --debu | --deb | --de | --d | -d )
15143     debug=: ;;
15144   --file | --fil | --fi | --f )
15145     $ac_shift
15146     case $ac_optarg in
15147     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15148     esac
15149     as_fn_append CONFIG_FILES " '$ac_optarg'"
15150     ac_need_defaults=false;;
15151   --header | --heade | --head | --hea )
15152     $ac_shift
15153     case $ac_optarg in
15154     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15155     esac
15156     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15157     ac_need_defaults=false;;
15158   --he | --h)
15159     # Conflict between --help and --header
15160     as_fn_error "ambiguous option: \`$1'
15161 Try \`$0 --help' for more information.";;
15162   --help | --hel | -h )
15163     $as_echo "$ac_cs_usage"; exit ;;
15164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15165   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15166     ac_cs_silent=: ;;
15167
15168   # This is an error.
15169   -*) as_fn_error "unrecognized option: \`$1'
15170 Try \`$0 --help' for more information." ;;
15171
15172   *) as_fn_append ac_config_targets " $1"
15173      ac_need_defaults=false ;;
15174
15175   esac
15176   shift
15177 done
15178
15179 ac_configure_extra_args=
15180
15181 if $ac_cs_silent; then
15182   exec 6>/dev/null
15183   ac_configure_extra_args="$ac_configure_extra_args --silent"
15184 fi
15185
15186 _ACEOF
15187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15188 if \$ac_cs_recheck; then
15189   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15190   shift
15191   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15192   CONFIG_SHELL='$SHELL'
15193   export CONFIG_SHELL
15194   exec "\$@"
15195 fi
15196
15197 _ACEOF
15198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15199 exec 5>>config.log
15200 {
15201   echo
15202   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15203 ## Running $as_me. ##
15204 _ASBOX
15205   $as_echo "$ac_log"
15206 } >&5
15207
15208 _ACEOF
15209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15210 #
15211 # INIT-COMMANDS
15212 #
15213 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15214
15215
15216 # The HP-UX ksh and POSIX shell print the target directory to stdout
15217 # if CDPATH is set.
15218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15219
15220 sed_quote_subst='$sed_quote_subst'
15221 double_quote_subst='$double_quote_subst'
15222 delay_variable_subst='$delay_variable_subst'
15223 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15224 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15225 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15226 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15227 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15228 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15229 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15230 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15231 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15232 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15233 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15234 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15235 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15236 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15237 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15238 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15239 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15240 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15241 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15242 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15243 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15244 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15245 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15246 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15247 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15248 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15249 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15250 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15251 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15252 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15253 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15254 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15255 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15256 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15257 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15258 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15259 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15260 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15261 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15262 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15263 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15264 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15265 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15266 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15267 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15268 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15269 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15270 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15271 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15272 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15273 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15274 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15275 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15276 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15277 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15278 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15279 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15280 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15281 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15282 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15283 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15284 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15285 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15286 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15287 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15288 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15289 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15290 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15291 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15292 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15293 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15294 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15295 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15296 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15297 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15298 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15299 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15300 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15301 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15302 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15303 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15304 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15305 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15306 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15307 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15308 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15309 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15310 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15311 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15312 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15313 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15314 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15315 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15316 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15317 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15318 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15319 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15320 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15321 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15322 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15323 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15324 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15325 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15326 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15327 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15328 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15329 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15330 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15331 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15332 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15333 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15334 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15335 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15336 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15337 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15338 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15339 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15340 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15341
15342 LTCC='$LTCC'
15343 LTCFLAGS='$LTCFLAGS'
15344 compiler='$compiler_DEFAULT'
15345
15346 # Quote evaled strings.
15347 for var in SED \
15348 GREP \
15349 EGREP \
15350 FGREP \
15351 LD \
15352 NM \
15353 LN_S \
15354 lt_SP2NL \
15355 lt_NL2SP \
15356 reload_flag \
15357 OBJDUMP \
15358 deplibs_check_method \
15359 file_magic_cmd \
15360 AR \
15361 AR_FLAGS \
15362 STRIP \
15363 RANLIB \
15364 CC \
15365 CFLAGS \
15366 compiler \
15367 lt_cv_sys_global_symbol_pipe \
15368 lt_cv_sys_global_symbol_to_cdecl \
15369 lt_cv_sys_global_symbol_to_c_name_address \
15370 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15371 SHELL \
15372 ECHO \
15373 lt_prog_compiler_no_builtin_flag \
15374 lt_prog_compiler_wl \
15375 lt_prog_compiler_pic \
15376 lt_prog_compiler_static \
15377 lt_cv_prog_compiler_c_o \
15378 need_locks \
15379 DSYMUTIL \
15380 NMEDIT \
15381 LIPO \
15382 OTOOL \
15383 OTOOL64 \
15384 shrext_cmds \
15385 export_dynamic_flag_spec \
15386 whole_archive_flag_spec \
15387 compiler_needs_object \
15388 with_gnu_ld \
15389 allow_undefined_flag \
15390 no_undefined_flag \
15391 hardcode_libdir_flag_spec \
15392 hardcode_libdir_flag_spec_ld \
15393 hardcode_libdir_separator \
15394 fix_srcfile_path \
15395 exclude_expsyms \
15396 include_expsyms \
15397 file_list_spec \
15398 variables_saved_for_relink \
15399 libname_spec \
15400 library_names_spec \
15401 soname_spec \
15402 finish_eval \
15403 old_striplib \
15404 striplib; do
15405     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15406     *[\\\\\\\`\\"\\\$]*)
15407       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15408       ;;
15409     *)
15410       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15411       ;;
15412     esac
15413 done
15414
15415 # Double-quote double-evaled strings.
15416 for var in reload_cmds \
15417 old_postinstall_cmds \
15418 old_postuninstall_cmds \
15419 old_archive_cmds \
15420 extract_expsyms_cmds \
15421 old_archive_from_new_cmds \
15422 old_archive_from_expsyms_cmds \
15423 archive_cmds \
15424 archive_expsym_cmds \
15425 module_cmds \
15426 module_expsym_cmds \
15427 export_symbols_cmds \
15428 prelink_cmds \
15429 postinstall_cmds \
15430 postuninstall_cmds \
15431 finish_cmds \
15432 sys_lib_search_path_spec \
15433 sys_lib_dlsearch_path_spec; do
15434     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15435     *[\\\\\\\`\\"\\\$]*)
15436       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15437       ;;
15438     *)
15439       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15440       ;;
15441     esac
15442 done
15443
15444 # Fix-up fallback echo if it was mangled by the above quoting rules.
15445 case \$lt_ECHO in
15446 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15447   ;;
15448 esac
15449
15450 ac_aux_dir='$ac_aux_dir'
15451 xsi_shell='$xsi_shell'
15452 lt_shell_append='$lt_shell_append'
15453
15454 # See if we are running on zsh, and set the options which allow our
15455 # commands through without removal of \ escapes INIT.
15456 if test -n "\${ZSH_VERSION+set}" ; then
15457    setopt NO_GLOB_SUBST
15458 fi
15459
15460
15461     PACKAGE='$PACKAGE'
15462     VERSION='$VERSION'
15463     TIMESTAMP='$TIMESTAMP'
15464     RM='$RM'
15465     ofile='$ofile'
15466
15467
15468
15469
15470 _ACEOF
15471
15472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15473
15474 # Handling of arguments.
15475 for ac_config_target in $ac_config_targets
15476 do
15477   case $ac_config_target in
15478     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15479     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15480     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15481     "include/xmlsec/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/openssl/Makefile" ;;
15482     "src/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES src/openssl/Makefile" ;;
15483     "include/xmlsec/gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/gnutls/Makefile" ;;
15484     "src/gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnutls/Makefile" ;;
15485     "include/xmlsec/nss/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/nss/Makefile" ;;
15486     "src/nss/Makefile") CONFIG_FILES="$CONFIG_FILES src/nss/Makefile" ;;
15487     "include/xmlsec/mscrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/mscrypto/Makefile" ;;
15488     "src/mscrypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/mscrypto/Makefile" ;;
15489     "xmlsec1.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1.pc:xmlsec.pc.in" ;;
15490     "include/xmlsec/version.h") CONFIG_FILES="$CONFIG_FILES include/xmlsec/version.h" ;;
15491     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15492     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15493     "include/xmlsec/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/Makefile" ;;
15494     "include/xmlsec/private/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/private/Makefile" ;;
15495     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15496     "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
15497     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15498     "docs/api/Makefile") CONFIG_FILES="$CONFIG_FILES docs/api/Makefile" ;;
15499     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15500     "xmlsec1Conf.sh") CONFIG_FILES="$CONFIG_FILES xmlsec1Conf.sh:xmlsecConf.sh.in" ;;
15501     "xmlsec1-config") CONFIG_FILES="$CONFIG_FILES xmlsec1-config:xmlsec-config.in" ;;
15502     "xmlsec1-openssl.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-openssl.pc:xmlsec-openssl.pc.in" ;;
15503     "xmlsec1-gnutls.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in" ;;
15504     "xmlsec1-nss.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-nss.pc:xmlsec-nss.pc.in" ;;
15505     "xmlsec1.spec") CONFIG_FILES="$CONFIG_FILES xmlsec1.spec:xmlsec.spec.in" ;;
15506
15507   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15508   esac
15509 done
15510
15511
15512 # If the user did not use the arguments to specify the items to instantiate,
15513 # then the envvar interface is used.  Set only those that are not.
15514 # We use the long form for the default assignment because of an extremely
15515 # bizarre bug on SunOS 4.1.3.
15516 if $ac_need_defaults; then
15517   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15518   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15519   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15520 fi
15521
15522 # Have a temporary directory for convenience.  Make it in the build tree
15523 # simply because there is no reason against having it here, and in addition,
15524 # creating and moving files from /tmp can sometimes cause problems.
15525 # Hook for its removal unless debugging.
15526 # Note that there is a small window in which the directory will not be cleaned:
15527 # after its creation but before its name has been assigned to `$tmp'.
15528 $debug ||
15529 {
15530   tmp=
15531   trap 'exit_status=$?
15532   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15533 ' 0
15534   trap 'as_fn_exit 1' 1 2 13 15
15535 }
15536 # Create a (secure) tmp directory for tmp files.
15537
15538 {
15539   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15540   test -n "$tmp" && test -d "$tmp"
15541 }  ||
15542 {
15543   tmp=./conf$$-$RANDOM
15544   (umask 077 && mkdir "$tmp")
15545 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15546
15547 # Set up the scripts for CONFIG_FILES section.
15548 # No need to generate them if there are no CONFIG_FILES.
15549 # This happens for instance with `./config.status config.h'.
15550 if test -n "$CONFIG_FILES"; then
15551
15552
15553 ac_cr=`echo X | tr X '\015'`
15554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15555 # But we know of no other shell where ac_cr would be empty at this
15556 # point, so we can use a bashism as a fallback.
15557 if test "x$ac_cr" = x; then
15558   eval ac_cr=\$\'\\r\'
15559 fi
15560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15562   ac_cs_awk_cr='\r'
15563 else
15564   ac_cs_awk_cr=$ac_cr
15565 fi
15566
15567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15568 _ACEOF
15569
15570
15571 {
15572   echo "cat >conf$$subs.awk <<_ACEOF" &&
15573   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15574   echo "_ACEOF"
15575 } >conf$$subs.sh ||
15576   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15578 ac_delim='%!_!# '
15579 for ac_last_try in false false false false false :; do
15580   . ./conf$$subs.sh ||
15581     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15582
15583   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15584   if test $ac_delim_n = $ac_delim_num; then
15585     break
15586   elif $ac_last_try; then
15587     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15588   else
15589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15590   fi
15591 done
15592 rm -f conf$$subs.sh
15593
15594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15595 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15596 _ACEOF
15597 sed -n '
15598 h
15599 s/^/S["/; s/!.*/"]=/
15600 p
15601 g
15602 s/^[^!]*!//
15603 :repl
15604 t repl
15605 s/'"$ac_delim"'$//
15606 t delim
15607 :nl
15608 h
15609 s/\(.\{148\}\).*/\1/
15610 t more1
15611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15612 p
15613 n
15614 b repl
15615 :more1
15616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15617 p
15618 g
15619 s/.\{148\}//
15620 t nl
15621 :delim
15622 h
15623 s/\(.\{148\}\).*/\1/
15624 t more2
15625 s/["\\]/\\&/g; s/^/"/; s/$/"/
15626 p
15627 b
15628 :more2
15629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15630 p
15631 g
15632 s/.\{148\}//
15633 t delim
15634 ' <conf$$subs.awk | sed '
15635 /^[^""]/{
15636   N
15637   s/\n//
15638 }
15639 ' >>$CONFIG_STATUS || ac_write_fail=1
15640 rm -f conf$$subs.awk
15641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15642 _ACAWK
15643 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15644   for (key in S) S_is_set[key] = 1
15645   FS = "\a"
15646
15647 }
15648 {
15649   line = $ 0
15650   nfields = split(line, field, "@")
15651   substed = 0
15652   len = length(field[1])
15653   for (i = 2; i < nfields; i++) {
15654     key = field[i]
15655     keylen = length(key)
15656     if (S_is_set[key]) {
15657       value = S[key]
15658       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15659       len += length(value) + length(field[++i])
15660       substed = 1
15661     } else
15662       len += 1 + keylen
15663   }
15664
15665   print line
15666 }
15667
15668 _ACAWK
15669 _ACEOF
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15672   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15673 else
15674   cat
15675 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15676   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15677 _ACEOF
15678
15679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15680 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15681 # trailing colons and then remove the whole line if VPATH becomes empty
15682 # (actually we leave an empty line to preserve line numbers).
15683 if test "x$srcdir" = x.; then
15684   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15685 s/:*\$(srcdir):*/:/
15686 s/:*\${srcdir}:*/:/
15687 s/:*@srcdir@:*/:/
15688 s/^\([^=]*=[     ]*\):*/\1/
15689 s/:*$//
15690 s/^[^=]*=[       ]*$//
15691 }'
15692 fi
15693
15694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15695 fi # test -n "$CONFIG_FILES"
15696
15697 # Set up the scripts for CONFIG_HEADERS section.
15698 # No need to generate them if there are no CONFIG_HEADERS.
15699 # This happens for instance with `./config.status Makefile'.
15700 if test -n "$CONFIG_HEADERS"; then
15701 cat >"$tmp/defines.awk" <<\_ACAWK ||
15702 BEGIN {
15703 _ACEOF
15704
15705 # Transform confdefs.h into an awk script `defines.awk', embedded as
15706 # here-document in config.status, that substitutes the proper values into
15707 # config.h.in to produce config.h.
15708
15709 # Create a delimiter string that does not exist in confdefs.h, to ease
15710 # handling of long lines.
15711 ac_delim='%!_!# '
15712 for ac_last_try in false false :; do
15713   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15714   if test -z "$ac_t"; then
15715     break
15716   elif $ac_last_try; then
15717     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15718   else
15719     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15720   fi
15721 done
15722
15723 # For the awk script, D is an array of macro values keyed by name,
15724 # likewise P contains macro parameters if any.  Preserve backslash
15725 # newline sequences.
15726
15727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15728 sed -n '
15729 s/.\{148\}/&'"$ac_delim"'/g
15730 t rset
15731 :rset
15732 s/^[     ]*#[    ]*define[       ][      ]*/ /
15733 t def
15734 d
15735 :def
15736 s/\\$//
15737 t bsnl
15738 s/["\\]/\\&/g
15739 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15740 D["\1"]=" \3"/p
15741 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15742 d
15743 :bsnl
15744 s/["\\]/\\&/g
15745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15746 D["\1"]=" \3\\\\\\n"\\/p
15747 t cont
15748 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15749 t cont
15750 d
15751 :cont
15752 n
15753 s/.\{148\}/&'"$ac_delim"'/g
15754 t clear
15755 :clear
15756 s/\\$//
15757 t bsnlc
15758 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15759 d
15760 :bsnlc
15761 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15762 b cont
15763 ' <confdefs.h | sed '
15764 s/'"$ac_delim"'/"\\\
15765 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15766
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768   for (key in D) D_is_set[key] = 1
15769   FS = "\a"
15770 }
15771 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15772   line = \$ 0
15773   split(line, arg, " ")
15774   if (arg[1] == "#") {
15775     defundef = arg[2]
15776     mac1 = arg[3]
15777   } else {
15778     defundef = substr(arg[1], 2)
15779     mac1 = arg[2]
15780   }
15781   split(mac1, mac2, "(") #)
15782   macro = mac2[1]
15783   prefix = substr(line, 1, index(line, defundef) - 1)
15784   if (D_is_set[macro]) {
15785     # Preserve the white space surrounding the "#".
15786     print prefix "define", macro P[macro] D[macro]
15787     next
15788   } else {
15789     # Replace #undef with comments.  This is necessary, for example,
15790     # in the case of _POSIX_SOURCE, which is predefined and required
15791     # on some systems where configure will not decide to define it.
15792     if (defundef == "undef") {
15793       print "/*", prefix defundef, macro, "*/"
15794       next
15795     }
15796   }
15797 }
15798 { print }
15799 _ACAWK
15800 _ACEOF
15801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15802   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15803 fi # test -n "$CONFIG_HEADERS"
15804
15805
15806 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15807 shift
15808 for ac_tag
15809 do
15810   case $ac_tag in
15811   :[FHLC]) ac_mode=$ac_tag; continue;;
15812   esac
15813   case $ac_mode$ac_tag in
15814   :[FHL]*:*);;
15815   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15816   :[FH]-) ac_tag=-:-;;
15817   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15818   esac
15819   ac_save_IFS=$IFS
15820   IFS=:
15821   set x $ac_tag
15822   IFS=$ac_save_IFS
15823   shift
15824   ac_file=$1
15825   shift
15826
15827   case $ac_mode in
15828   :L) ac_source=$1;;
15829   :[FH])
15830     ac_file_inputs=
15831     for ac_f
15832     do
15833       case $ac_f in
15834       -) ac_f="$tmp/stdin";;
15835       *) # Look for the file first in the build tree, then in the source tree
15836          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15837          # because $ac_f cannot contain `:'.
15838          test -f "$ac_f" ||
15839            case $ac_f in
15840            [\\/$]*) false;;
15841            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15842            esac ||
15843            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15844       esac
15845       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15846       as_fn_append ac_file_inputs " '$ac_f'"
15847     done
15848
15849     # Let's still pretend it is `configure' which instantiates (i.e., don't
15850     # use $as_me), people would be surprised to read:
15851     #    /* config.h.  Generated by config.status.  */
15852     configure_input='Generated from '`
15853           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15854         `' by configure.'
15855     if test x"$ac_file" != x-; then
15856       configure_input="$ac_file.  $configure_input"
15857       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15858 $as_echo "$as_me: creating $ac_file" >&6;}
15859     fi
15860     # Neutralize special characters interpreted by sed in replacement strings.
15861     case $configure_input in #(
15862     *\&* | *\|* | *\\* )
15863        ac_sed_conf_input=`$as_echo "$configure_input" |
15864        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15865     *) ac_sed_conf_input=$configure_input;;
15866     esac
15867
15868     case $ac_tag in
15869     *:-:* | *:-) cat >"$tmp/stdin" \
15870       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15871     esac
15872     ;;
15873   esac
15874
15875   ac_dir=`$as_dirname -- "$ac_file" ||
15876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15877          X"$ac_file" : 'X\(//\)[^/]' \| \
15878          X"$ac_file" : 'X\(//\)$' \| \
15879          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15880 $as_echo X"$ac_file" |
15881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15882             s//\1/
15883             q
15884           }
15885           /^X\(\/\/\)[^/].*/{
15886             s//\1/
15887             q
15888           }
15889           /^X\(\/\/\)$/{
15890             s//\1/
15891             q
15892           }
15893           /^X\(\/\).*/{
15894             s//\1/
15895             q
15896           }
15897           s/.*/./; q'`
15898   as_dir="$ac_dir"; as_fn_mkdir_p
15899   ac_builddir=.
15900
15901 case "$ac_dir" in
15902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15903 *)
15904   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15905   # A ".." for each directory in $ac_dir_suffix.
15906   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15907   case $ac_top_builddir_sub in
15908   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15909   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15910   esac ;;
15911 esac
15912 ac_abs_top_builddir=$ac_pwd
15913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15914 # for backward compatibility:
15915 ac_top_builddir=$ac_top_build_prefix
15916
15917 case $srcdir in
15918   .)  # We are building in place.
15919     ac_srcdir=.
15920     ac_top_srcdir=$ac_top_builddir_sub
15921     ac_abs_top_srcdir=$ac_pwd ;;
15922   [\\/]* | ?:[\\/]* )  # Absolute name.
15923     ac_srcdir=$srcdir$ac_dir_suffix;
15924     ac_top_srcdir=$srcdir
15925     ac_abs_top_srcdir=$srcdir ;;
15926   *) # Relative name.
15927     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15928     ac_top_srcdir=$ac_top_build_prefix$srcdir
15929     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15930 esac
15931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15932
15933
15934   case $ac_mode in
15935   :F)
15936   #
15937   # CONFIG_FILE
15938   #
15939
15940   case $INSTALL in
15941   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15942   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15943   esac
15944   ac_MKDIR_P=$MKDIR_P
15945   case $MKDIR_P in
15946   [\\/$]* | ?:[\\/]* ) ;;
15947   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15948   esac
15949 _ACEOF
15950
15951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15952 # If the template does not know about datarootdir, expand it.
15953 # FIXME: This hack should be removed a few years after 2.60.
15954 ac_datarootdir_hack=; ac_datarootdir_seen=
15955 ac_sed_dataroot='
15956 /datarootdir/ {
15957   p
15958   q
15959 }
15960 /@datadir@/p
15961 /@docdir@/p
15962 /@infodir@/p
15963 /@localedir@/p
15964 /@mandir@/p'
15965 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15966 *datarootdir*) ac_datarootdir_seen=yes;;
15967 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15968   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15969 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15970 _ACEOF
15971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972   ac_datarootdir_hack='
15973   s&@datadir@&$datadir&g
15974   s&@docdir@&$docdir&g
15975   s&@infodir@&$infodir&g
15976   s&@localedir@&$localedir&g
15977   s&@mandir@&$mandir&g
15978   s&\\\${datarootdir}&$datarootdir&g' ;;
15979 esac
15980 _ACEOF
15981
15982 # Neutralize VPATH when `$srcdir' = `.'.
15983 # Shell code in configure.ac might set extrasub.
15984 # FIXME: do we really want to maintain this feature?
15985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15986 ac_sed_extra="$ac_vpsub
15987 $extrasub
15988 _ACEOF
15989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15990 :t
15991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15992 s|@configure_input@|$ac_sed_conf_input|;t t
15993 s&@top_builddir@&$ac_top_builddir_sub&;t t
15994 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15995 s&@srcdir@&$ac_srcdir&;t t
15996 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15997 s&@top_srcdir@&$ac_top_srcdir&;t t
15998 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15999 s&@builddir@&$ac_builddir&;t t
16000 s&@abs_builddir@&$ac_abs_builddir&;t t
16001 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16002 s&@INSTALL@&$ac_INSTALL&;t t
16003 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16004 $ac_datarootdir_hack
16005 "
16006 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16007   || as_fn_error "could not create $ac_file" "$LINENO" 5
16008
16009 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16010   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16011   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16012   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16013 which seems to be undefined.  Please make sure it is defined." >&5
16014 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16015 which seems to be undefined.  Please make sure it is defined." >&2;}
16016
16017   rm -f "$tmp/stdin"
16018   case $ac_file in
16019   -) cat "$tmp/out" && rm -f "$tmp/out";;
16020   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16021   esac \
16022   || as_fn_error "could not create $ac_file" "$LINENO" 5
16023  ;;
16024   :H)
16025   #
16026   # CONFIG_HEADER
16027   #
16028   if test x"$ac_file" != x-; then
16029     {
16030       $as_echo "/* $configure_input  */" \
16031       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16032     } >"$tmp/config.h" \
16033       || as_fn_error "could not create $ac_file" "$LINENO" 5
16034     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16035       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16036 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16037     else
16038       rm -f "$ac_file"
16039       mv "$tmp/config.h" "$ac_file" \
16040         || as_fn_error "could not create $ac_file" "$LINENO" 5
16041     fi
16042   else
16043     $as_echo "/* $configure_input  */" \
16044       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16045       || as_fn_error "could not create -" "$LINENO" 5
16046   fi
16047 # Compute "$ac_file"'s index in $config_headers.
16048 _am_arg="$ac_file"
16049 _am_stamp_count=1
16050 for _am_header in $config_headers :; do
16051   case $_am_header in
16052     $_am_arg | $_am_arg:* )
16053       break ;;
16054     * )
16055       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16056   esac
16057 done
16058 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16059 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16060          X"$_am_arg" : 'X\(//\)[^/]' \| \
16061          X"$_am_arg" : 'X\(//\)$' \| \
16062          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16063 $as_echo X"$_am_arg" |
16064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16065             s//\1/
16066             q
16067           }
16068           /^X\(\/\/\)[^/].*/{
16069             s//\1/
16070             q
16071           }
16072           /^X\(\/\/\)$/{
16073             s//\1/
16074             q
16075           }
16076           /^X\(\/\).*/{
16077             s//\1/
16078             q
16079           }
16080           s/.*/./; q'`/stamp-h$_am_stamp_count
16081  ;;
16082
16083   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16084 $as_echo "$as_me: executing $ac_file commands" >&6;}
16085  ;;
16086   esac
16087
16088
16089   case $ac_file$ac_mode in
16090     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16091   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16092   # are listed without --file.  Let's play safe and only enable the eval
16093   # if we detect the quoting.
16094   case $CONFIG_FILES in
16095   *\'*) eval set x "$CONFIG_FILES" ;;
16096   *)   set x $CONFIG_FILES ;;
16097   esac
16098   shift
16099   for mf
16100   do
16101     # Strip MF so we end up with the name of the file.
16102     mf=`echo "$mf" | sed -e 's/:.*$//'`
16103     # Check whether this is an Automake generated Makefile or not.
16104     # We used to match only the files named `Makefile.in', but
16105     # some people rename them; so instead we look at the file content.
16106     # Grep'ing the first line is not enough: some people post-process
16107     # each Makefile.in and add a new line on top of each file to say so.
16108     # Grep'ing the whole file is not good either: AIX grep has a line
16109     # limit of 2048, but all sed's we know have understand at least 4000.
16110     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16111       dirpart=`$as_dirname -- "$mf" ||
16112 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16113          X"$mf" : 'X\(//\)[^/]' \| \
16114          X"$mf" : 'X\(//\)$' \| \
16115          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16116 $as_echo X"$mf" |
16117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16118             s//\1/
16119             q
16120           }
16121           /^X\(\/\/\)[^/].*/{
16122             s//\1/
16123             q
16124           }
16125           /^X\(\/\/\)$/{
16126             s//\1/
16127             q
16128           }
16129           /^X\(\/\).*/{
16130             s//\1/
16131             q
16132           }
16133           s/.*/./; q'`
16134     else
16135       continue
16136     fi
16137     # Extract the definition of DEPDIR, am__include, and am__quote
16138     # from the Makefile without running `make'.
16139     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16140     test -z "$DEPDIR" && continue
16141     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16142     test -z "am__include" && continue
16143     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16144     # When using ansi2knr, U may be empty or an underscore; expand it
16145     U=`sed -n 's/^U = //p' < "$mf"`
16146     # Find all dependency output files, they are included files with
16147     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16148     # simplest approach to changing $(DEPDIR) to its actual value in the
16149     # expansion.
16150     for file in `sed -n "
16151       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16152          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16153       # Make sure the directory exists.
16154       test -f "$dirpart/$file" && continue
16155       fdir=`$as_dirname -- "$file" ||
16156 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16157          X"$file" : 'X\(//\)[^/]' \| \
16158          X"$file" : 'X\(//\)$' \| \
16159          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16160 $as_echo X"$file" |
16161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16162             s//\1/
16163             q
16164           }
16165           /^X\(\/\/\)[^/].*/{
16166             s//\1/
16167             q
16168           }
16169           /^X\(\/\/\)$/{
16170             s//\1/
16171             q
16172           }
16173           /^X\(\/\).*/{
16174             s//\1/
16175             q
16176           }
16177           s/.*/./; q'`
16178       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16179       # echo "creating $dirpart/$file"
16180       echo '# dummy' > "$dirpart/$file"
16181     done
16182   done
16183 }
16184  ;;
16185     "libtool":C)
16186
16187     # See if we are running on zsh, and set the options which allow our
16188     # commands through without removal of \ escapes.
16189     if test -n "${ZSH_VERSION+set}" ; then
16190       setopt NO_GLOB_SUBST
16191     fi
16192
16193     cfgfile="${ofile}T"
16194     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16195     $RM "$cfgfile"
16196
16197     cat <<_LT_EOF >> "$cfgfile"
16198 #! $SHELL
16199
16200 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16201 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16203 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16204 #
16205 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16206 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16207 #   Written by Gordon Matzigkeit, 1996
16208 #
16209 #   This file is part of GNU Libtool.
16210 #
16211 # GNU Libtool is free software; you can redistribute it and/or
16212 # modify it under the terms of the GNU General Public License as
16213 # published by the Free Software Foundation; either version 2 of
16214 # the License, or (at your option) any later version.
16215 #
16216 # As a special exception to the GNU General Public License,
16217 # if you distribute this file as part of a program or library that
16218 # is built using GNU Libtool, you may include this file under the
16219 # same distribution terms that you use for the rest of that program.
16220 #
16221 # GNU Libtool is distributed in the hope that it will be useful,
16222 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16223 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16224 # GNU General Public License for more details.
16225 #
16226 # You should have received a copy of the GNU General Public License
16227 # along with GNU Libtool; see the file COPYING.  If not, a copy
16228 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16229 # obtained by writing to the Free Software Foundation, Inc.,
16230 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16231
16232
16233 # The names of the tagged configurations supported by this script.
16234 available_tags=""
16235
16236 # ### BEGIN LIBTOOL CONFIG
16237
16238 # Which release of libtool.m4 was used?
16239 macro_version=$macro_version
16240 macro_revision=$macro_revision
16241
16242 # Whether or not to build shared libraries.
16243 build_libtool_libs=$enable_shared
16244
16245 # Whether or not to build static libraries.
16246 build_old_libs=$enable_static
16247
16248 # What type of objects to build.
16249 pic_mode=$pic_mode
16250
16251 # Whether or not to optimize for fast installation.
16252 fast_install=$enable_fast_install
16253
16254 # The host system.
16255 host_alias=$host_alias
16256 host=$host
16257 host_os=$host_os
16258
16259 # The build system.
16260 build_alias=$build_alias
16261 build=$build
16262 build_os=$build_os
16263
16264 # A sed program that does not truncate output.
16265 SED=$lt_SED
16266
16267 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16268 Xsed="\$SED -e 1s/^X//"
16269
16270 # A grep program that handles long lines.
16271 GREP=$lt_GREP
16272
16273 # An ERE matcher.
16274 EGREP=$lt_EGREP
16275
16276 # A literal string matcher.
16277 FGREP=$lt_FGREP
16278
16279 # A BSD- or MS-compatible name lister.
16280 NM=$lt_NM
16281
16282 # Whether we need soft or hard links.
16283 LN_S=$lt_LN_S
16284
16285 # What is the maximum length of a command?
16286 max_cmd_len=$max_cmd_len
16287
16288 # Object file suffix (normally "o").
16289 objext=$ac_objext
16290
16291 # Executable file suffix (normally "").
16292 exeext=$exeext
16293
16294 # whether the shell understands "unset".
16295 lt_unset=$lt_unset
16296
16297 # turn spaces into newlines.
16298 SP2NL=$lt_lt_SP2NL
16299
16300 # turn newlines into spaces.
16301 NL2SP=$lt_lt_NL2SP
16302
16303 # How to create reloadable object files.
16304 reload_flag=$lt_reload_flag
16305 reload_cmds=$lt_reload_cmds
16306
16307 # An object symbol dumper.
16308 OBJDUMP=$lt_OBJDUMP
16309
16310 # Method to check whether dependent libraries are shared objects.
16311 deplibs_check_method=$lt_deplibs_check_method
16312
16313 # Command to use when deplibs_check_method == "file_magic".
16314 file_magic_cmd=$lt_file_magic_cmd
16315
16316 # The archiver.
16317 AR=$lt_AR
16318 AR_FLAGS=$lt_AR_FLAGS
16319
16320 # A symbol stripping program.
16321 STRIP=$lt_STRIP
16322
16323 # Commands used to install an old-style archive.
16324 RANLIB=$lt_RANLIB
16325 old_postinstall_cmds=$lt_old_postinstall_cmds
16326 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16327
16328 # A C compiler.
16329 LTCC=$lt_CC
16330
16331 # LTCC compiler flags.
16332 LTCFLAGS=$lt_CFLAGS
16333
16334 # Take the output of nm and produce a listing of raw symbols and C names.
16335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16336
16337 # Transform the output of nm in a proper C declaration.
16338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16339
16340 # Transform the output of nm in a C name address pair.
16341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16342
16343 # Transform the output of nm in a C name address pair when lib prefix is needed.
16344 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16345
16346 # The name of the directory that contains temporary libtool files.
16347 objdir=$objdir
16348
16349 # Shell to use when invoking shell scripts.
16350 SHELL=$lt_SHELL
16351
16352 # An echo program that does not interpret backslashes.
16353 ECHO=$lt_ECHO
16354
16355 # Used to examine libraries when file_magic_cmd begins with "file".
16356 MAGIC_CMD=$MAGIC_CMD
16357
16358 # Must we lock files when doing compilation?
16359 need_locks=$lt_need_locks
16360
16361 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16362 DSYMUTIL=$lt_DSYMUTIL
16363
16364 # Tool to change global to local symbols on Mac OS X.
16365 NMEDIT=$lt_NMEDIT
16366
16367 # Tool to manipulate fat objects and archives on Mac OS X.
16368 LIPO=$lt_LIPO
16369
16370 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16371 OTOOL=$lt_OTOOL
16372
16373 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16374 OTOOL64=$lt_OTOOL64
16375
16376 # Old archive suffix (normally "a").
16377 libext=$libext
16378
16379 # Shared library suffix (normally ".so").
16380 shrext_cmds=$lt_shrext_cmds
16381
16382 # The commands to extract the exported symbol list from a shared archive.
16383 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16384
16385 # Variables whose values should be saved in libtool wrapper scripts and
16386 # restored at link time.
16387 variables_saved_for_relink=$lt_variables_saved_for_relink
16388
16389 # Do we need the "lib" prefix for modules?
16390 need_lib_prefix=$need_lib_prefix
16391
16392 # Do we need a version for libraries?
16393 need_version=$need_version
16394
16395 # Library versioning type.
16396 version_type=$version_type
16397
16398 # Shared library runtime path variable.
16399 runpath_var=$runpath_var
16400
16401 # Shared library path variable.
16402 shlibpath_var=$shlibpath_var
16403
16404 # Is shlibpath searched before the hard-coded library search path?
16405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16406
16407 # Format of library name prefix.
16408 libname_spec=$lt_libname_spec
16409
16410 # List of archive names.  First name is the real one, the rest are links.
16411 # The last name is the one that the linker finds with -lNAME
16412 library_names_spec=$lt_library_names_spec
16413
16414 # The coded name of the library, if different from the real name.
16415 soname_spec=$lt_soname_spec
16416
16417 # Command to use after installation of a shared archive.
16418 postinstall_cmds=$lt_postinstall_cmds
16419
16420 # Command to use after uninstallation of a shared archive.
16421 postuninstall_cmds=$lt_postuninstall_cmds
16422
16423 # Commands used to finish a libtool library installation in a directory.
16424 finish_cmds=$lt_finish_cmds
16425
16426 # As "finish_cmds", except a single script fragment to be evaled but
16427 # not shown.
16428 finish_eval=$lt_finish_eval
16429
16430 # Whether we should hardcode library paths into libraries.
16431 hardcode_into_libs=$hardcode_into_libs
16432
16433 # Compile-time system search path for libraries.
16434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16435
16436 # Run-time system search path for libraries.
16437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16438
16439 # Whether dlopen is supported.
16440 dlopen_support=$enable_dlopen
16441
16442 # Whether dlopen of programs is supported.
16443 dlopen_self=$enable_dlopen_self
16444
16445 # Whether dlopen of statically linked programs is supported.
16446 dlopen_self_static=$enable_dlopen_self_static
16447
16448 # Commands to strip libraries.
16449 old_striplib=$lt_old_striplib
16450 striplib=$lt_striplib
16451
16452
16453 # The linker used to build libraries.
16454 LD=$lt_LD
16455
16456 # Commands used to build an old-style archive.
16457 old_archive_cmds=$lt_old_archive_cmds
16458
16459 # A language specific compiler.
16460 CC=$lt_compiler
16461
16462 # Is the compiler the GNU compiler?
16463 with_gcc=$GCC
16464
16465 # Compiler flag to turn off builtin functions.
16466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16467
16468 # How to pass a linker flag through the compiler.
16469 wl=$lt_lt_prog_compiler_wl
16470
16471 # Additional compiler flags for building library objects.
16472 pic_flag=$lt_lt_prog_compiler_pic
16473
16474 # Compiler flag to prevent dynamic linking.
16475 link_static_flag=$lt_lt_prog_compiler_static
16476
16477 # Does compiler simultaneously support -c and -o options?
16478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16479
16480 # Whether or not to add -lc for building shared libraries.
16481 build_libtool_need_lc=$archive_cmds_need_lc
16482
16483 # Whether or not to disallow shared libs when runtime libs are static.
16484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16485
16486 # Compiler flag to allow reflexive dlopens.
16487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16488
16489 # Compiler flag to generate shared objects directly from archives.
16490 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16491
16492 # Whether the compiler copes with passing no objects directly.
16493 compiler_needs_object=$lt_compiler_needs_object
16494
16495 # Create an old-style archive from a shared archive.
16496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16497
16498 # Create a temporary old-style archive to link instead of a shared archive.
16499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16500
16501 # Commands used to build a shared archive.
16502 archive_cmds=$lt_archive_cmds
16503 archive_expsym_cmds=$lt_archive_expsym_cmds
16504
16505 # Commands used to build a loadable module if different from building
16506 # a shared archive.
16507 module_cmds=$lt_module_cmds
16508 module_expsym_cmds=$lt_module_expsym_cmds
16509
16510 # Whether we are building with GNU ld or not.
16511 with_gnu_ld=$lt_with_gnu_ld
16512
16513 # Flag that allows shared libraries with undefined symbols to be built.
16514 allow_undefined_flag=$lt_allow_undefined_flag
16515
16516 # Flag that enforces no undefined symbols.
16517 no_undefined_flag=$lt_no_undefined_flag
16518
16519 # Flag to hardcode \$libdir into a binary during linking.
16520 # This must work even if \$libdir does not exist
16521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16522
16523 # If ld is used when linking, flag to hardcode \$libdir into a binary
16524 # during linking.  This must work even if \$libdir does not exist.
16525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16526
16527 # Whether we need a single "-rpath" flag with a separated argument.
16528 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16529
16530 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16531 # DIR into the resulting binary.
16532 hardcode_direct=$hardcode_direct
16533
16534 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16535 # DIR into the resulting binary and the resulting library dependency is
16536 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16537 # library is relocated.
16538 hardcode_direct_absolute=$hardcode_direct_absolute
16539
16540 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16541 # into the resulting binary.
16542 hardcode_minus_L=$hardcode_minus_L
16543
16544 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16545 # into the resulting binary.
16546 hardcode_shlibpath_var=$hardcode_shlibpath_var
16547
16548 # Set to "yes" if building a shared library automatically hardcodes DIR
16549 # into the library and all subsequent libraries and executables linked
16550 # against it.
16551 hardcode_automatic=$hardcode_automatic
16552
16553 # Set to yes if linker adds runtime paths of dependent libraries
16554 # to runtime path list.
16555 inherit_rpath=$inherit_rpath
16556
16557 # Whether libtool must link a program against all its dependency libraries.
16558 link_all_deplibs=$link_all_deplibs
16559
16560 # Fix the shell variable \$srcfile for the compiler.
16561 fix_srcfile_path=$lt_fix_srcfile_path
16562
16563 # Set to "yes" if exported symbols are required.
16564 always_export_symbols=$always_export_symbols
16565
16566 # The commands to list exported symbols.
16567 export_symbols_cmds=$lt_export_symbols_cmds
16568
16569 # Symbols that should not be listed in the preloaded symbols.
16570 exclude_expsyms=$lt_exclude_expsyms
16571
16572 # Symbols that must always be exported.
16573 include_expsyms=$lt_include_expsyms
16574
16575 # Commands necessary for linking programs (against libraries) with templates.
16576 prelink_cmds=$lt_prelink_cmds
16577
16578 # Specify filename containing input files.
16579 file_list_spec=$lt_file_list_spec
16580
16581 # How to hardcode a shared library path into an executable.
16582 hardcode_action=$hardcode_action
16583
16584 # ### END LIBTOOL CONFIG
16585
16586 _LT_EOF
16587
16588   case $host_os in
16589   aix3*)
16590     cat <<\_LT_EOF >> "$cfgfile"
16591 # AIX sometimes has problems with the GCC collect2 program.  For some
16592 # reason, if we set the COLLECT_NAMES environment variable, the problems
16593 # vanish in a puff of smoke.
16594 if test "X${COLLECT_NAMES+set}" != Xset; then
16595   COLLECT_NAMES=
16596   export COLLECT_NAMES
16597 fi
16598 _LT_EOF
16599     ;;
16600   esac
16601
16602
16603 ltmain="$ac_aux_dir/ltmain.sh"
16604
16605
16606   # We use sed instead of cat because bash on DJGPP gets confused if
16607   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16608   # text mode, it properly converts lines to CR/LF.  This bash problem
16609   # is reportedly fixed, but why not run on old versions too?
16610   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16611     || (rm -f "$cfgfile"; exit 1)
16612
16613   case $xsi_shell in
16614   yes)
16615     cat << \_LT_EOF >> "$cfgfile"
16616
16617 # func_dirname file append nondir_replacement
16618 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16619 # otherwise set result to NONDIR_REPLACEMENT.
16620 func_dirname ()
16621 {
16622   case ${1} in
16623     */*) func_dirname_result="${1%/*}${2}" ;;
16624     *  ) func_dirname_result="${3}" ;;
16625   esac
16626 }
16627
16628 # func_basename file
16629 func_basename ()
16630 {
16631   func_basename_result="${1##*/}"
16632 }
16633
16634 # func_dirname_and_basename file append nondir_replacement
16635 # perform func_basename and func_dirname in a single function
16636 # call:
16637 #   dirname:  Compute the dirname of FILE.  If nonempty,
16638 #             add APPEND to the result, otherwise set result
16639 #             to NONDIR_REPLACEMENT.
16640 #             value returned in "$func_dirname_result"
16641 #   basename: Compute filename of FILE.
16642 #             value retuned in "$func_basename_result"
16643 # Implementation must be kept synchronized with func_dirname
16644 # and func_basename. For efficiency, we do not delegate to
16645 # those functions but instead duplicate the functionality here.
16646 func_dirname_and_basename ()
16647 {
16648   case ${1} in
16649     */*) func_dirname_result="${1%/*}${2}" ;;
16650     *  ) func_dirname_result="${3}" ;;
16651   esac
16652   func_basename_result="${1##*/}"
16653 }
16654
16655 # func_stripname prefix suffix name
16656 # strip PREFIX and SUFFIX off of NAME.
16657 # PREFIX and SUFFIX must not contain globbing or regex special
16658 # characters, hashes, percent signs, but SUFFIX may contain a leading
16659 # dot (in which case that matches only a dot).
16660 func_stripname ()
16661 {
16662   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16663   # positional parameters, so assign one to ordinary parameter first.
16664   func_stripname_result=${3}
16665   func_stripname_result=${func_stripname_result#"${1}"}
16666   func_stripname_result=${func_stripname_result%"${2}"}
16667 }
16668
16669 # func_opt_split
16670 func_opt_split ()
16671 {
16672   func_opt_split_opt=${1%%=*}
16673   func_opt_split_arg=${1#*=}
16674 }
16675
16676 # func_lo2o object
16677 func_lo2o ()
16678 {
16679   case ${1} in
16680     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16681     *)    func_lo2o_result=${1} ;;
16682   esac
16683 }
16684
16685 # func_xform libobj-or-source
16686 func_xform ()
16687 {
16688   func_xform_result=${1%.*}.lo
16689 }
16690
16691 # func_arith arithmetic-term...
16692 func_arith ()
16693 {
16694   func_arith_result=$(( $* ))
16695 }
16696
16697 # func_len string
16698 # STRING may not start with a hyphen.
16699 func_len ()
16700 {
16701   func_len_result=${#1}
16702 }
16703
16704 _LT_EOF
16705     ;;
16706   *) # Bourne compatible functions.
16707     cat << \_LT_EOF >> "$cfgfile"
16708
16709 # func_dirname file append nondir_replacement
16710 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16711 # otherwise set result to NONDIR_REPLACEMENT.
16712 func_dirname ()
16713 {
16714   # Extract subdirectory from the argument.
16715   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16716   if test "X$func_dirname_result" = "X${1}"; then
16717     func_dirname_result="${3}"
16718   else
16719     func_dirname_result="$func_dirname_result${2}"
16720   fi
16721 }
16722
16723 # func_basename file
16724 func_basename ()
16725 {
16726   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16727 }
16728
16729
16730 # func_stripname prefix suffix name
16731 # strip PREFIX and SUFFIX off of NAME.
16732 # PREFIX and SUFFIX must not contain globbing or regex special
16733 # characters, hashes, percent signs, but SUFFIX may contain a leading
16734 # dot (in which case that matches only a dot).
16735 # func_strip_suffix prefix name
16736 func_stripname ()
16737 {
16738   case ${2} in
16739     .*) func_stripname_result=`$ECHO "X${3}" \
16740            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16741     *)  func_stripname_result=`$ECHO "X${3}" \
16742            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16743   esac
16744 }
16745
16746 # sed scripts:
16747 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16748 my_sed_long_arg='1s/^-[^=]*=//'
16749
16750 # func_opt_split
16751 func_opt_split ()
16752 {
16753   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16754   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16755 }
16756
16757 # func_lo2o object
16758 func_lo2o ()
16759 {
16760   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16761 }
16762
16763 # func_xform libobj-or-source
16764 func_xform ()
16765 {
16766   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16767 }
16768
16769 # func_arith arithmetic-term...
16770 func_arith ()
16771 {
16772   func_arith_result=`expr "$@"`
16773 }
16774
16775 # func_len string
16776 # STRING may not start with a hyphen.
16777 func_len ()
16778 {
16779   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16780 }
16781
16782 _LT_EOF
16783 esac
16784
16785 case $lt_shell_append in
16786   yes)
16787     cat << \_LT_EOF >> "$cfgfile"
16788
16789 # func_append var value
16790 # Append VALUE to the end of shell variable VAR.
16791 func_append ()
16792 {
16793   eval "$1+=\$2"
16794 }
16795 _LT_EOF
16796     ;;
16797   *)
16798     cat << \_LT_EOF >> "$cfgfile"
16799
16800 # func_append var value
16801 # Append VALUE to the end of shell variable VAR.
16802 func_append ()
16803 {
16804   eval "$1=\$$1\$2"
16805 }
16806
16807 _LT_EOF
16808     ;;
16809   esac
16810
16811
16812   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16813     || (rm -f "$cfgfile"; exit 1)
16814
16815   mv -f "$cfgfile" "$ofile" ||
16816     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16817   chmod +x "$ofile"
16818
16819  ;;
16820
16821   esac
16822 done # for ac_tag
16823
16824
16825 as_fn_exit 0
16826 _ACEOF
16827 ac_clean_files=$ac_clean_files_save
16828
16829 test $ac_write_fail = 0 ||
16830   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16831
16832
16833 # configure is writing to config.log, and then calls config.status.
16834 # config.status does its own redirection, appending to config.log.
16835 # Unfortunately, on DOS this fails, as config.log is still kept open
16836 # by configure, so config.status won't be able to write to it; its
16837 # output is simply discarded.  So we exec the FD to /dev/null,
16838 # effectively closing config.log, so it can be properly (re)opened and
16839 # appended to by config.status.  When coming back to configure, we
16840 # need to make the FD available again.
16841 if test "$no_create" != yes; then
16842   ac_cs_success=:
16843   ac_config_status_args=
16844   test "$silent" = yes &&
16845     ac_config_status_args="$ac_config_status_args --quiet"
16846   exec 5>/dev/null
16847   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16848   exec 5>>config.log
16849   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16850   # would make configure fail if this is the last instruction.
16851   $ac_cs_success || as_fn_exit $?
16852 fi
16853 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16854   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16855 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16856 fi
16857
16858
16859
16860 (cd $srcdir && rm -f COPYING.LIB COPYING && $LN_S Copyright COPYING)