Imported Upstream version 1.0.8+1.0.9pre1
[nfs-utils.git] / autom4te.cache / traces.0
1 m4trace:/usr/share/aclocal/libtool.m4:55: -1- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
2 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
3 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
4   AC_PROVIDE_IFELSE([AC_PROG_CXX],
5     [AC_LIBTOOL_CXX],
6     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
7   ])])
8 dnl And a similar setup for Fortran 77 support
9   AC_PROVIDE_IFELSE([AC_PROG_F77],
10     [AC_LIBTOOL_F77],
11     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
12 ])])
13
14 dnl Quote AM_PROG_GCJ so that aclocal doesn't bring it in needlessly.
15 dnl If either AC_PROG_GCJ or AM_PROG_GCJ have already been expanded, run
16 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
17   AC_PROVIDE_IFELSE([AC_PROG_GCJ],
18     [AC_LIBTOOL_GCJ],
19     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
20       [AC_LIBTOOL_GCJ],
21       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
22         [AC_LIBTOOL_GCJ],
23       [ifdef([AC_PROG_GCJ],
24              [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
25        ifdef([A][M_PROG_GCJ],
26              [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
27        ifdef([LT_AC_PROG_GCJ],
28              [define([LT_AC_PROG_GCJ],
29                 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
30 ])])
31 m4trace:/usr/share/aclocal/libtool.m4:75: -1- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
32 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
33 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
34 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
35
36 # This can be used to rebuild libtool when needed
37 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
38
39 # Always use our own libtool.
40 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
41 AC_SUBST(LIBTOOL)dnl
42
43 # Prevent multiple expansion
44 define([AC_PROG_LIBTOOL], [])
45 ])
46 m4trace:/usr/share/aclocal/libtool.m4:220: -1- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl
47 AC_REQUIRE([AC_ENABLE_SHARED])dnl
48 AC_REQUIRE([AC_ENABLE_STATIC])dnl
49 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
50 AC_REQUIRE([AC_CANONICAL_HOST])dnl
51 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
52 AC_REQUIRE([AC_PROG_CC])dnl
53 AC_REQUIRE([AC_PROG_LD])dnl
54 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
55 AC_REQUIRE([AC_PROG_NM])dnl
56
57 AC_REQUIRE([AC_PROG_LN_S])dnl
58 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
59 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
60 AC_REQUIRE([AC_OBJEXT])dnl
61 AC_REQUIRE([AC_EXEEXT])dnl
62 dnl
63
64 AC_LIBTOOL_SYS_MAX_CMD_LEN
65 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
66 AC_LIBTOOL_OBJDIR
67
68 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
69 _LT_AC_PROG_ECHO_BACKSLASH
70
71 case $host_os in
72 aix3*)
73   # AIX sometimes has problems with the GCC collect2 program.  For some
74   # reason, if we set the COLLECT_NAMES environment variable, the problems
75   # vanish in a puff of smoke.
76   if test "X${COLLECT_NAMES+set}" != Xset; then
77     COLLECT_NAMES=
78     export COLLECT_NAMES
79   fi
80   ;;
81 esac
82
83 # Sed substitution that helps us do robust quoting.  It backslashifies
84 # metacharacters that are still active within double-quoted strings.
85 Xsed='sed -e 1s/^X//'
86 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
87
88 # Same as above, but do not quote variable references.
89 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
90
91 # Sed substitution to delay expansion of an escaped shell variable in a
92 # double_quote_subst'ed string.
93 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
94
95 # Sed substitution to avoid accidental globbing in evaled expressions
96 no_glob_subst='s/\*/\\\*/g'
97
98 # Constants:
99 rm="rm -f"
100
101 # Global variables:
102 default_ofile=libtool
103 can_build_shared=yes
104
105 # All known linkers require a `.a' archive for static linking (except MSVC,
106 # which needs '.lib').
107 libext=a
108 ltmain="$ac_aux_dir/ltmain.sh"
109 ofile="$default_ofile"
110 with_gnu_ld="$lt_cv_prog_gnu_ld"
111
112 AC_CHECK_TOOL(AR, ar, false)
113 AC_CHECK_TOOL(RANLIB, ranlib, :)
114 AC_CHECK_TOOL(STRIP, strip, :)
115
116 old_CC="$CC"
117 old_CFLAGS="$CFLAGS"
118
119 # Set sane defaults for various variables
120 test -z "$AR" && AR=ar
121 test -z "$AR_FLAGS" && AR_FLAGS=cru
122 test -z "$AS" && AS=as
123 test -z "$CC" && CC=cc
124 test -z "$LTCC" && LTCC=$CC
125 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
126 test -z "$DLLTOOL" && DLLTOOL=dlltool
127 test -z "$LD" && LD=ld
128 test -z "$LN_S" && LN_S="ln -s"
129 test -z "$MAGIC_CMD" && MAGIC_CMD=file
130 test -z "$NM" && NM=nm
131 test -z "$SED" && SED=sed
132 test -z "$OBJDUMP" && OBJDUMP=objdump
133 test -z "$RANLIB" && RANLIB=:
134 test -z "$STRIP" && STRIP=:
135 test -z "$ac_objext" && ac_objext=o
136
137 # Determine commands to create old-style static archives.
138 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
139 old_postinstall_cmds='chmod 644 $oldlib'
140 old_postuninstall_cmds=
141
142 if test -n "$RANLIB"; then
143   case $host_os in
144   openbsd*)
145     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
146     ;;
147   *)
148     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
149     ;;
150   esac
151   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
152 fi
153
154 _LT_CC_BASENAME([$compiler])
155
156 # Only perform the check for file, if the check method requires it
157 case $deplibs_check_method in
158 file_magic*)
159   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
160     AC_PATH_MAGIC
161   fi
162   ;;
163 esac
164
165 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
166 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
167 enable_win32_dll=yes, enable_win32_dll=no)
168
169 AC_ARG_ENABLE([libtool-lock],
170     [AC_HELP_STRING([--disable-libtool-lock],
171         [avoid locking (might break parallel builds)])])
172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
173
174 AC_ARG_WITH([pic],
175     [AC_HELP_STRING([--with-pic],
176         [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
177     [pic_mode="$withval"],
178     [pic_mode=default])
179 test -z "$pic_mode" && pic_mode=default
180
181 # Use C for the default configuration in the libtool script
182 tagname=
183 AC_LIBTOOL_LANG_C_CONFIG
184 _LT_AC_TAGCONFIG
185 ])
186 m4trace:/usr/share/aclocal/libtool.m4:236: -1- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl
187
188 # If no C compiler was specified, use CC.
189 LTCC=${LTCC-"$CC"}
190
191 # If no C compiler flags were specified, use CFLAGS.
192 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
193
194 # Allow CC to be a program name with arguments.
195 compiler=$CC
196 ])
197 m4trace:/usr/share/aclocal/libtool.m4:252: -1- AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do
198   case $cc_temp in
199     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
200     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
201     \-*) ;;
202     *) break;;
203   esac
204 done
205 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
206 ])
207 m4trace:/usr/share/aclocal/libtool.m4:265: -1- AC_DEFUN([_LT_COMPILER_BOILERPLATE], [ac_outfile=conftest.$ac_objext
208 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
210 _lt_compiler_boilerplate=`cat conftest.err`
211 $rm conftest*
212 ])
213 m4trace:/usr/share/aclocal/libtool.m4:278: -1- AC_DEFUN([_LT_LINKER_BOILERPLATE], [ac_outfile=conftest.$ac_objext
214 printf "$lt_simple_link_test_code" >conftest.$ac_ext
215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
216 _lt_linker_boilerplate=`cat conftest.err`
217 $rm conftest*
218 ])
219 m4trace:/usr/share/aclocal/libtool.m4:297: -1- AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
221 }'`
222 # Check for a 64-bit object if we didn't find anything.
223 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
224 }'`; fi],[])
225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
226 ])
227 m4trace:/usr/share/aclocal/libtool.m4:308: -1- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE],
228              [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
229          [AC_DIVERT_PUSH(NOTICE)])
230 $1
231 AC_DIVERT_POP
232 ])
233 m4trace:/usr/share/aclocal/libtool.m4:464: -1- AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([
234 # Check that we are running under the correct shell.
235 SHELL=${CONFIG_SHELL-/bin/sh}
236
237 case X$ECHO in
238 X*--fallback-echo)
239   # Remove one level of quotation (which was required for Make).
240   ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
241   ;;
242 esac
243
244 echo=${ECHO-echo}
245 if test "X[$]1" = X--no-reexec; then
246   # Discard the --no-reexec flag, and continue.
247   shift
248 elif test "X[$]1" = X--fallback-echo; then
249   # Avoid inline document here, it may be left over
250   :
251 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
252   # Yippee, $echo works!
253   :
254 else
255   # Restart under the correct shell.
256   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
257 fi
258
259 if test "X[$]1" = X--fallback-echo; then
260   # used as fallback echo
261   shift
262   cat <<EOF
263 [$]*
264 EOF
265   exit 0
266 fi
267
268 # The HP-UX ksh and POSIX shell print the target directory to stdout
269 # if CDPATH is set.
270 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
271
272 if test -z "$ECHO"; then
273 if test "X${echo_test_string+set}" != Xset; then
274 # find a string as large as possible, as long as the shell can cope with it
275   for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
276     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
277     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
278        echo_test_string=`eval $cmd` &&
279        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
280     then
281       break
282     fi
283   done
284 fi
285
286 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
287    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
288    test "X$echo_testing_string" = "X$echo_test_string"; then
289   :
290 else
291   # The Solaris, AIX, and Digital Unix default echo programs unquote
292   # backslashes.  This makes it impossible to quote backslashes using
293   #   echo "$something" | sed 's/\\/\\\\/g'
294   #
295   # So, first we look for a working echo in the user's PATH.
296
297   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
298   for dir in $PATH /usr/ucb; do
299     IFS="$lt_save_ifs"
300     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
301        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
302        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
303        test "X$echo_testing_string" = "X$echo_test_string"; then
304       echo="$dir/echo"
305       break
306     fi
307   done
308   IFS="$lt_save_ifs"
309
310   if test "X$echo" = Xecho; then
311     # We didn't find a better echo, so look for alternatives.
312     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       # This shell has a builtin print -r that does the trick.
316       echo='print -r'
317     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
318          test "X$CONFIG_SHELL" != X/bin/ksh; then
319       # If we have ksh, try running configure again with it.
320       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
321       export ORIGINAL_CONFIG_SHELL
322       CONFIG_SHELL=/bin/ksh
323       export CONFIG_SHELL
324       exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
325     else
326       # Try using printf.
327       echo='printf %s\n'
328       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
329          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
330          test "X$echo_testing_string" = "X$echo_test_string"; then
331         # Cool, printf works
332         :
333       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
334            test "X$echo_testing_string" = 'X\t' &&
335            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
336            test "X$echo_testing_string" = "X$echo_test_string"; then
337         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
338         export CONFIG_SHELL
339         SHELL="$CONFIG_SHELL"
340         export SHELL
341         echo="$CONFIG_SHELL [$]0 --fallback-echo"
342       elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
343            test "X$echo_testing_string" = 'X\t' &&
344            echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
345            test "X$echo_testing_string" = "X$echo_test_string"; then
346         echo="$CONFIG_SHELL [$]0 --fallback-echo"
347       else
348         # maybe with a smaller string...
349         prev=:
350
351         for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
352           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
353           then
354             break
355           fi
356           prev="$cmd"
357         done
358
359         if test "$prev" != 'sed 50q "[$]0"'; then
360           echo_test_string=`eval $prev`
361           export echo_test_string
362           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
363         else
364           # Oops.  We lost completely, so just stick with echo.
365           echo=echo
366         fi
367       fi
368     fi
369   fi
370 fi
371 fi
372
373 # Copy echo and quote the copy suitably for passing to libtool from
374 # the Makefile, instead of quoting the original, which is used later.
375 ECHO=$echo
376 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
377    ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
378 fi
379
380 AC_SUBST(ECHO)
381 ])])
382 m4trace:/usr/share/aclocal/libtool.m4:608: -1- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock],
383     [AC_HELP_STRING([--disable-libtool-lock],
384         [avoid locking (might break parallel builds)])])
385 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
386
387 # Some flags need to be propagated to the compiler or linker for good
388 # libtool support.
389 case $host in
390 ia64-*-hpux*)
391   # Find out which ABI we are using.
392   echo 'int i;' > conftest.$ac_ext
393   if AC_TRY_EVAL(ac_compile); then
394     case `/usr/bin/file conftest.$ac_objext` in
395     *ELF-32*)
396       HPUX_IA64_MODE="32"
397       ;;
398     *ELF-64*)
399       HPUX_IA64_MODE="64"
400       ;;
401     esac
402   fi
403   rm -rf conftest*
404   ;;
405 *-*-irix6*)
406   # Find out which ABI we are using.
407   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
408   if AC_TRY_EVAL(ac_compile); then
409    if test "$lt_cv_prog_gnu_ld" = yes; then
410     case `/usr/bin/file conftest.$ac_objext` in
411     *32-bit*)
412       LD="${LD-ld} -melf32bsmip"
413       ;;
414     *N32*)
415       LD="${LD-ld} -melf32bmipn32"
416       ;;
417     *64-bit*)
418       LD="${LD-ld} -melf64bmip"
419       ;;
420     esac
421    else
422     case `/usr/bin/file conftest.$ac_objext` in
423     *32-bit*)
424       LD="${LD-ld} -32"
425       ;;
426     *N32*)
427       LD="${LD-ld} -n32"
428       ;;
429     *64-bit*)
430       LD="${LD-ld} -64"
431       ;;
432     esac
433    fi
434   fi
435   rm -rf conftest*
436   ;;
437
438 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
439   # Find out which ABI we are using.
440   echo 'int i;' > conftest.$ac_ext
441   if AC_TRY_EVAL(ac_compile); then
442     case `/usr/bin/file conftest.o` in
443     *32-bit*)
444       case $host in
445         x86_64-*linux*)
446           LD="${LD-ld} -m elf_i386"
447           ;;
448         ppc64-*linux*|powerpc64-*linux*)
449           LD="${LD-ld} -m elf32ppclinux"
450           ;;
451         s390x-*linux*)
452           LD="${LD-ld} -m elf_s390"
453           ;;
454         sparc64-*linux*)
455           LD="${LD-ld} -m elf32_sparc"
456           ;;
457       esac
458       ;;
459     *64-bit*)
460       case $host in
461         x86_64-*linux*)
462           LD="${LD-ld} -m elf_x86_64"
463           ;;
464         ppc*-*linux*|powerpc*-*linux*)
465           LD="${LD-ld} -m elf64ppc"
466           ;;
467         s390*-*linux*)
468           LD="${LD-ld} -m elf64_s390"
469           ;;
470         sparc*-*linux*)
471           LD="${LD-ld} -m elf64_sparc"
472           ;;
473       esac
474       ;;
475     esac
476   fi
477   rm -rf conftest*
478   ;;
479
480 *-*-sco3.2v5*)
481   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
482   SAVE_CFLAGS="$CFLAGS"
483   CFLAGS="$CFLAGS -belf"
484   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
485     [AC_LANG_PUSH(C)
486      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
487      AC_LANG_POP])
488   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
489     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
490     CFLAGS="$SAVE_CFLAGS"
491   fi
492   ;;
493 sparc*-*solaris*)
494   # Find out which ABI we are using.
495   echo 'int i;' > conftest.$ac_ext
496   if AC_TRY_EVAL(ac_compile); then
497     case `/usr/bin/file conftest.o` in
498     *64-bit*)
499       case $lt_cv_prog_gnu_ld in
500       yes*) LD="${LD-ld} -m elf64_sparc" ;;
501       *)    LD="${LD-ld} -64" ;;
502       esac
503       ;;
504     esac
505   fi
506   rm -rf conftest*
507   ;;
508
509 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
510 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
511   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
512   AC_CHECK_TOOL(AS, as, false)
513   AC_CHECK_TOOL(OBJDUMP, objdump, false)
514   ;;
515   ])
516 esac
517
518 need_locks="$enable_libtool_lock"
519
520 ])
521 m4trace:/usr/share/aclocal/libtool.m4:653: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED])
522 AC_CACHE_CHECK([$1], [$2],
523   [$2=no
524   ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
526    lt_compiler_flag="$3"
527    # Insert the option either (1) after the last *FLAGS variable, or
528    # (2) before a word containing "conftest.", or (3) at the end.
529    # Note that $ac_compile itself does not contain backslashes and begins
530    # with a dollar sign (not a hyphen), so the echo should work correctly.
531    # The option is referenced via a variable to avoid confusing sed.
532    lt_compile=`echo "$ac_compile" | $SED \
533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
534    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
535    -e 's:$: $lt_compiler_flag:'`
536    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
537    (eval "$lt_compile" 2>conftest.err)
538    ac_status=$?
539    cat conftest.err >&AS_MESSAGE_LOG_FD
540    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
541    if (exit $ac_status) && test -s "$ac_outfile"; then
542      # The compiler can only warn and ignore the option if not recognized
543      # So say no if there are warnings other than the usual output.
544      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
545      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
546      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
547        $2=yes
548      fi
549    fi
550    $rm conftest*
551 ])
552
553 if test x"[$]$2" = xyes; then
554     ifelse([$5], , :, [$5])
555 else
556     ifelse([$6], , :, [$6])
557 fi
558 ])
559 m4trace:/usr/share/aclocal/libtool.m4:690: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_CACHE_CHECK([$1], [$2],
560   [$2=no
561    save_LDFLAGS="$LDFLAGS"
562    LDFLAGS="$LDFLAGS $3"
563    printf "$lt_simple_link_test_code" > conftest.$ac_ext
564    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
565      # The linker can only warn and ignore the option if not recognized
566      # So say no if there are warnings
567      if test -s conftest.err; then
568        # Append any errors to the config.log.
569        cat conftest.err 1>&AS_MESSAGE_LOG_FD
570        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
571        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
572        if diff conftest.exp conftest.er2 >/dev/null; then
573          $2=yes
574        fi
575      else
576        $2=yes
577      fi
578    fi
579    $rm conftest*
580    LDFLAGS="$save_LDFLAGS"
581 ])
582
583 if test x"[$]$2" = xyes; then
584     ifelse([$4], , :, [$4])
585 else
586     ifelse([$5], , :, [$5])
587 fi
588 ])
589 m4trace:/usr/share/aclocal/libtool.m4:805: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments
590 AC_MSG_CHECKING([the maximum length of command line arguments])
591 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
592   i=0
593   teststring="ABCD"
594
595   case $build_os in
596   msdosdjgpp*)
597     # On DJGPP, this test can blow up pretty badly due to problems in libc
598     # (any single argument exceeding 2000 bytes causes a buffer overrun
599     # during glob expansion).  Even if it were fixed, the result of this
600     # check would be larger than it should be.
601     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
602     ;;
603
604   gnu*)
605     # Under GNU Hurd, this test is not required because there is
606     # no limit to the length of command line arguments.
607     # Libtool will interpret -1 as no limit whatsoever
608     lt_cv_sys_max_cmd_len=-1;
609     ;;
610
611   cygwin* | mingw*)
612     # On Win9x/ME, this test blows up -- it succeeds, but takes
613     # about 5 minutes as the teststring grows exponentially.
614     # Worse, since 9x/ME are not pre-emptively multitasking,
615     # you end up with a "frozen" computer, even though with patience
616     # the test eventually succeeds (with a max line length of 256k).
617     # Instead, let's just punt: use the minimum linelength reported by
618     # all of the supported platforms: 8192 (on NT/2K/XP).
619     lt_cv_sys_max_cmd_len=8192;
620     ;;
621
622   amigaos*)
623     # On AmigaOS with pdksh, this test takes hours, literally.
624     # So we just punt and use a minimum line length of 8192.
625     lt_cv_sys_max_cmd_len=8192;
626     ;;
627
628   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
629     # This has been around since 386BSD, at least.  Likely further.
630     if test -x /sbin/sysctl; then
631       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
632     elif test -x /usr/sbin/sysctl; then
633       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
634     else
635       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
636     fi
637     # And add a safety zone
638     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
639     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
640     ;;
641
642   interix*)
643     # We know the value 262144 and hardcode it with a safety zone (like BSD)
644     lt_cv_sys_max_cmd_len=196608
645     ;;
646
647   osf*)
648     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
649     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
650     # nice to cause kernel panics so lets avoid the loop below.
651     # First set a reasonable default.
652     lt_cv_sys_max_cmd_len=16384
653     #
654     if test -x /sbin/sysconfig; then
655       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
656         *1*) lt_cv_sys_max_cmd_len=-1 ;;
657       esac
658     fi
659     ;;
660   sco3.2v5*)
661     lt_cv_sys_max_cmd_len=102400
662     ;;
663   sysv5* | sco5v6* | sysv4.2uw2*)
664     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
665     if test -n "$kargmax"; then
666       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
667     else
668       lt_cv_sys_max_cmd_len=32768
669     fi
670     ;;
671   *)
672     # If test is not a shell built-in, we'll probably end up computing a
673     # maximum length that is only half of the actual maximum length, but
674     # we can't tell.
675     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
676     while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
677                = "XX$teststring") >/dev/null 2>&1 &&
678             new_result=`expr "X$teststring" : ".*" 2>&1` &&
679             lt_cv_sys_max_cmd_len=$new_result &&
680             test $i != 17 # 1/2 MB should be enough
681     do
682       i=`expr $i + 1`
683       teststring=$teststring$teststring
684     done
685     teststring=
686     # Add a significant safety factor because C++ compilers can tack on massive
687     # amounts of additional arguments before passing them to the linker.
688     # It appears as though 1/2 is a usable value.
689     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
690     ;;
691   esac
692 ])
693 if test -n $lt_cv_sys_max_cmd_len ; then
694   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
695 else
696   AC_MSG_RESULT(none)
697 fi
698 ])
699 m4trace:/usr/share/aclocal/libtool.m4:812: -1- AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl
700 ])
701 m4trace:/usr/share/aclocal/libtool.m4:903: -1- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
702 if test "$cross_compiling" = yes; then :
703   [$4]
704 else
705   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
706   lt_status=$lt_dlunknown
707   cat > conftest.$ac_ext <<EOF
708 [#line __oline__ "configure"
709 #include "confdefs.h"
710
711 #if HAVE_DLFCN_H
712 #include <dlfcn.h>
713 #endif
714
715 #include <stdio.h>
716
717 #ifdef RTLD_GLOBAL
718 #  define LT_DLGLOBAL           RTLD_GLOBAL
719 #else
720 #  ifdef DL_GLOBAL
721 #    define LT_DLGLOBAL         DL_GLOBAL
722 #  else
723 #    define LT_DLGLOBAL         0
724 #  endif
725 #endif
726
727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
728    find out it does not work in some platform. */
729 #ifndef LT_DLLAZY_OR_NOW
730 #  ifdef RTLD_LAZY
731 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
732 #  else
733 #    ifdef DL_LAZY
734 #      define LT_DLLAZY_OR_NOW          DL_LAZY
735 #    else
736 #      ifdef RTLD_NOW
737 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
738 #      else
739 #        ifdef DL_NOW
740 #          define LT_DLLAZY_OR_NOW      DL_NOW
741 #        else
742 #          define LT_DLLAZY_OR_NOW      0
743 #        endif
744 #      endif
745 #    endif
746 #  endif
747 #endif
748
749 #ifdef __cplusplus
750 extern "C" void exit (int);
751 #endif
752
753 void fnord() { int i=42;}
754 int main ()
755 {
756   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
757   int status = $lt_dlunknown;
758
759   if (self)
760     {
761       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
762       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
763       /* dlclose (self); */
764     }
765   else
766     puts (dlerror ());
767
768     exit (status);
769 }]
770 EOF
771   if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
772     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
773     lt_status=$?
774     case x$lt_status in
775       x$lt_dlno_uscore) $1 ;;
776       x$lt_dlneed_uscore) $2 ;;
777       x$lt_dlunknown|x*) $3 ;;
778     esac
779   else :
780     # compilation failed
781     $3
782   fi
783 fi
784 rm -fr conftest*
785 ])
786 m4trace:/usr/share/aclocal/libtool.m4:1016: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
787 if test "x$enable_dlopen" != xyes; then
788   enable_dlopen=unknown
789   enable_dlopen_self=unknown
790   enable_dlopen_self_static=unknown
791 else
792   lt_cv_dlopen=no
793   lt_cv_dlopen_libs=
794
795   case $host_os in
796   beos*)
797     lt_cv_dlopen="load_add_on"
798     lt_cv_dlopen_libs=
799     lt_cv_dlopen_self=yes
800     ;;
801
802   mingw* | pw32*)
803     lt_cv_dlopen="LoadLibrary"
804     lt_cv_dlopen_libs=
805    ;;
806
807   cygwin*)
808     lt_cv_dlopen="dlopen"
809     lt_cv_dlopen_libs=
810    ;;
811
812   darwin*)
813   # if libdl is installed we need to link against it
814     AC_CHECK_LIB([dl], [dlopen],
815                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
816     lt_cv_dlopen="dyld"
817     lt_cv_dlopen_libs=
818     lt_cv_dlopen_self=yes
819     ])
820    ;;
821
822   *)
823     AC_CHECK_FUNC([shl_load],
824           [lt_cv_dlopen="shl_load"],
825       [AC_CHECK_LIB([dld], [shl_load],
826             [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
827         [AC_CHECK_FUNC([dlopen],
828               [lt_cv_dlopen="dlopen"],
829           [AC_CHECK_LIB([dl], [dlopen],
830                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
831             [AC_CHECK_LIB([svld], [dlopen],
832                   [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
833               [AC_CHECK_LIB([dld], [dld_link],
834                     [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
835               ])
836             ])
837           ])
838         ])
839       ])
840     ;;
841   esac
842
843   if test "x$lt_cv_dlopen" != xno; then
844     enable_dlopen=yes
845   else
846     enable_dlopen=no
847   fi
848
849   case $lt_cv_dlopen in
850   dlopen)
851     save_CPPFLAGS="$CPPFLAGS"
852     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
853
854     save_LDFLAGS="$LDFLAGS"
855     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
856
857     save_LIBS="$LIBS"
858     LIBS="$lt_cv_dlopen_libs $LIBS"
859
860     AC_CACHE_CHECK([whether a program can dlopen itself],
861           lt_cv_dlopen_self, [dnl
862           _LT_AC_TRY_DLOPEN_SELF(
863             lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
864             lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
865     ])
866
867     if test "x$lt_cv_dlopen_self" = xyes; then
868       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
869       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
870           lt_cv_dlopen_self_static, [dnl
871           _LT_AC_TRY_DLOPEN_SELF(
872             lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
873             lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
874       ])
875     fi
876
877     CPPFLAGS="$save_CPPFLAGS"
878     LDFLAGS="$save_LDFLAGS"
879     LIBS="$save_LIBS"
880     ;;
881   esac
882
883   case $lt_cv_dlopen_self in
884   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
885   *) enable_dlopen_self=unknown ;;
886   esac
887
888   case $lt_cv_dlopen_self_static in
889   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
890   *) enable_dlopen_self_static=unknown ;;
891   esac
892 fi
893 ])
894 m4trace:/usr/share/aclocal/libtool.m4:1067: -1- AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
895 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
896   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
897   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
898    $rm -r conftest 2>/dev/null
899    mkdir conftest
900    cd conftest
901    mkdir out
902    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
903
904    lt_compiler_flag="-o out/conftest2.$ac_objext"
905    # Insert the option either (1) after the last *FLAGS variable, or
906    # (2) before a word containing "conftest.", or (3) at the end.
907    # Note that $ac_compile itself does not contain backslashes and begins
908    # with a dollar sign (not a hyphen), so the echo should work correctly.
909    lt_compile=`echo "$ac_compile" | $SED \
910    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
911    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
912    -e 's:$: $lt_compiler_flag:'`
913    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
914    (eval "$lt_compile" 2>out/conftest.err)
915    ac_status=$?
916    cat out/conftest.err >&AS_MESSAGE_LOG_FD
917    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
918    if (exit $ac_status) && test -s out/conftest2.$ac_objext
919    then
920      # The compiler can only warn and ignore the option if not recognized
921      # So say no if there are warnings
922      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
923      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
924      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
925        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
926      fi
927    fi
928    chmod u+w . 2>&AS_MESSAGE_LOG_FD
929    $rm conftest*
930    # SGI C++ compiler will create directory out/ii_files/ for
931    # template instantiation
932    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
933    $rm out/* && rmdir out
934    cd ..
935    rmdir conftest
936    $rm conftest*
937 ])
938 ])
939 m4trace:/usr/share/aclocal/libtool.m4:1094: -1- AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl
940
941 hard_links="nottested"
942 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
943   # do not overwrite the value of need_locks provided by the user
944   AC_MSG_CHECKING([if we can lock with hard links])
945   hard_links=yes
946   $rm conftest*
947   ln conftest.a conftest.b 2>/dev/null && hard_links=no
948   touch conftest.a
949   ln conftest.a conftest.b 2>&5 || hard_links=no
950   ln conftest.a conftest.b 2>/dev/null && hard_links=no
951   AC_MSG_RESULT([$hard_links])
952   if test "$hard_links" = no; then
953     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
954     need_locks=warn
955   fi
956 else
957   need_locks=no
958 fi
959 ])
960 m4trace:/usr/share/aclocal/libtool.m4:1111: -1- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
961 [rm -f .libs 2>/dev/null
962 mkdir .libs 2>/dev/null
963 if test -d .libs; then
964   lt_cv_objdir=.libs
965 else
966   # MS-DOS does not allow filenames that begin with a dot.
967   lt_cv_objdir=_libs
968 fi
969 rmdir .libs 2>/dev/null])
970 objdir=$lt_cv_objdir
971 ])
972 m4trace:/usr/share/aclocal/libtool.m4:1152: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs])
973 _LT_AC_TAGVAR(hardcode_action, $1)=
974 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
975    test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
976    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
977
978   # We can hardcode non-existant directories.
979   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
980      # If the only mechanism to avoid hardcoding is shlibpath_var, we
981      # have to relink, otherwise we might link with an installed library
982      # when we should be linking with a yet-to-be-installed one
983      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
984      test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
985     # Linking always hardcodes the temporary library directory.
986     _LT_AC_TAGVAR(hardcode_action, $1)=relink
987   else
988     # We can link without hardcoding, and we can hardcode nonexisting dirs.
989     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
990   fi
991 else
992   # We cannot hardcode anything, or else we can only hardcode existing
993   # directories.
994   _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
995 fi
996 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
997
998 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
999   # Fast installation is not supported
1000   enable_fast_install=no
1001 elif test "$shlibpath_overrides_runpath" = yes ||
1002      test "$enable_shared" = no; then
1003   # Fast installation is not necessary
1004   enable_fast_install=needless
1005 fi
1006 ])
1007 m4trace:/usr/share/aclocal/libtool.m4:1181: -1- AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib=
1008 old_striplib=
1009 AC_MSG_CHECKING([whether stripping libraries is possible])
1010 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1011   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1012   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1013   AC_MSG_RESULT([yes])
1014 else
1015 # FIXME - insert some real tests, host_os isn't really good enough
1016   case $host_os in
1017    darwin*)
1018        if test -n "$STRIP" ; then
1019          striplib="$STRIP -x"
1020          AC_MSG_RESULT([yes])
1021        else
1022   AC_MSG_RESULT([no])
1023 fi
1024        ;;
1025    *)
1026   AC_MSG_RESULT([no])
1027     ;;
1028   esac
1029 fi
1030 ])
1031 m4trace:/usr/share/aclocal/libtool.m4:1770: -1- AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_MSG_CHECKING([dynamic linker characteristics])
1032 library_names_spec=
1033 libname_spec='lib$name'
1034 soname_spec=
1035 shrext_cmds=".so"
1036 postinstall_cmds=
1037 postuninstall_cmds=
1038 finish_cmds=
1039 finish_eval=
1040 shlibpath_var=
1041 shlibpath_overrides_runpath=unknown
1042 version_type=none
1043 dynamic_linker="$host_os ld.so"
1044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1045 if test "$GCC" = yes; then
1046   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1047   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1048     # if the path contains ";" then we assume it to be the separator
1049     # otherwise default to the standard path separator (i.e. ":") - it is
1050     # assumed that no part of a normal pathname contains ";" but that should
1051     # okay in the real world where ";" in dirpaths is itself problematic.
1052     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1053   else
1054     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1055   fi
1056 else
1057   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1058 fi
1059 need_lib_prefix=unknown
1060 hardcode_into_libs=no
1061
1062 # when you set need_version to no, make sure it does not cause -set_version
1063 # flags to be left without arguments
1064 need_version=unknown
1065
1066 case $host_os in
1067 aix3*)
1068   version_type=linux
1069   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1070   shlibpath_var=LIBPATH
1071
1072   # AIX 3 has no versioning support, so we append a major version to the name.
1073   soname_spec='${libname}${release}${shared_ext}$major'
1074   ;;
1075
1076 aix4* | aix5*)
1077   version_type=linux
1078   need_lib_prefix=no
1079   need_version=no
1080   hardcode_into_libs=yes
1081   if test "$host_cpu" = ia64; then
1082     # AIX 5 supports IA64
1083     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1084     shlibpath_var=LD_LIBRARY_PATH
1085   else
1086     # With GCC up to 2.95.x, collect2 would create an import file
1087     # for dependence libraries.  The import file would start with
1088     # the line `#! .'.  This would cause the generated library to
1089     # depend on `.', always an invalid library.  This was fixed in
1090     # development snapshots of GCC prior to 3.0.
1091     case $host_os in
1092       aix4 | aix4.[[01]] | aix4.[[01]].*)
1093       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1094            echo ' yes '
1095            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1096         :
1097       else
1098         can_build_shared=no
1099       fi
1100       ;;
1101     esac
1102     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1103     # soname into executable. Probably we can add versioning support to
1104     # collect2, so additional links can be useful in future.
1105     if test "$aix_use_runtimelinking" = yes; then
1106       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1107       # instead of lib<name>.a to let people know that these are not
1108       # typical AIX shared libraries.
1109       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1110     else
1111       # We preserve .a as extension for shared libraries through AIX4.2
1112       # and later when we are not doing run time linking.
1113       library_names_spec='${libname}${release}.a $libname.a'
1114       soname_spec='${libname}${release}${shared_ext}$major'
1115     fi
1116     shlibpath_var=LIBPATH
1117   fi
1118   ;;
1119
1120 amigaos*)
1121   library_names_spec='$libname.ixlibrary $libname.a'
1122   # Create ${libname}_ixlibrary.a entries in /sys/libs.
1123   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'
1124   ;;
1125
1126 beos*)
1127   library_names_spec='${libname}${shared_ext}'
1128   dynamic_linker="$host_os ld.so"
1129   shlibpath_var=LIBRARY_PATH
1130   ;;
1131
1132 bsdi[[45]]*)
1133   version_type=linux
1134   need_version=no
1135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1136   soname_spec='${libname}${release}${shared_ext}$major'
1137   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1138   shlibpath_var=LD_LIBRARY_PATH
1139   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1140   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1141   # the default ld.so.conf also contains /usr/contrib/lib and
1142   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1143   # libtool to hard-code these into programs
1144   ;;
1145
1146 cygwin* | mingw* | pw32*)
1147   version_type=windows
1148   shrext_cmds=".dll"
1149   need_version=no
1150   need_lib_prefix=no
1151
1152   case $GCC,$host_os in
1153   yes,cygwin* | yes,mingw* | yes,pw32*)
1154     library_names_spec='$libname.dll.a'
1155     # DLL is installed to $(libdir)/../bin by postinstall_cmds
1156     postinstall_cmds='base_file=`basename \${file}`~
1157       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1158       dldir=$destdir/`dirname \$dlpath`~
1159       test -d \$dldir || mkdir -p \$dldir~
1160       $install_prog $dir/$dlname \$dldir/$dlname~
1161       chmod a+x \$dldir/$dlname'
1162     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1163       dlpath=$dir/\$dldll~
1164        $rm \$dlpath'
1165     shlibpath_overrides_runpath=yes
1166
1167     case $host_os in
1168     cygwin*)
1169       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1170       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1171       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1172       ;;
1173     mingw*)
1174       # MinGW DLLs use traditional 'lib' prefix
1175       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1176       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1177       if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1178         # It is most probably a Windows format PATH printed by
1179         # mingw gcc, but we are running on Cygwin. Gcc prints its search
1180         # path with ; separators, and with drive letters. We can handle the
1181         # drive letters (cygwin fileutils understands them), so leave them,
1182         # especially as we might pass files found there to a mingw objdump,
1183         # which wouldn't understand a cygwinified path. Ahh.
1184         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1185       else
1186         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1187       fi
1188       ;;
1189     pw32*)
1190       # pw32 DLLs use 'pw' prefix rather than 'lib'
1191       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1192       ;;
1193     esac
1194     ;;
1195
1196   *)
1197     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1198     ;;
1199   esac
1200   dynamic_linker='Win32 ld.exe'
1201   # FIXME: first we should search . and the directory the executable is in
1202   shlibpath_var=PATH
1203   ;;
1204
1205 darwin* | rhapsody*)
1206   dynamic_linker="$host_os dyld"
1207   version_type=darwin
1208   need_lib_prefix=no
1209   need_version=no
1210   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1211   soname_spec='${libname}${release}${major}$shared_ext'
1212   shlibpath_overrides_runpath=yes
1213   shlibpath_var=DYLD_LIBRARY_PATH
1214   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1215   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1216   if test "$GCC" = yes; then
1217     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1218   else
1219     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1220   fi
1221   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1222   ;;
1223
1224 dgux*)
1225   version_type=linux
1226   need_lib_prefix=no
1227   need_version=no
1228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1229   soname_spec='${libname}${release}${shared_ext}$major'
1230   shlibpath_var=LD_LIBRARY_PATH
1231   ;;
1232
1233 freebsd1*)
1234   dynamic_linker=no
1235   ;;
1236
1237 freebsd* | dragonfly*)
1238   # DragonFly does not have aout.  When/if they implement a new
1239   # versioning mechanism, adjust this.
1240   if test -x /usr/bin/objformat; then
1241     objformat=`/usr/bin/objformat`
1242   else
1243     case $host_os in
1244     freebsd[[123]]*) objformat=aout ;;
1245     *) objformat=elf ;;
1246     esac
1247   fi
1248   version_type=freebsd-$objformat
1249   case $version_type in
1250     freebsd-elf*)
1251       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1252       need_version=no
1253       need_lib_prefix=no
1254       ;;
1255     freebsd-*)
1256       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1257       need_version=yes
1258       ;;
1259   esac
1260   shlibpath_var=LD_LIBRARY_PATH
1261   case $host_os in
1262   freebsd2*)
1263     shlibpath_overrides_runpath=yes
1264     ;;
1265   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1266     shlibpath_overrides_runpath=yes
1267     hardcode_into_libs=yes
1268     ;;
1269   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1270   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1271     shlibpath_overrides_runpath=no
1272     hardcode_into_libs=yes
1273     ;;
1274   freebsd*) # from 4.6 on
1275     shlibpath_overrides_runpath=yes
1276     hardcode_into_libs=yes
1277     ;;
1278   esac
1279   ;;
1280
1281 gnu*)
1282   version_type=linux
1283   need_lib_prefix=no
1284   need_version=no
1285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1286   soname_spec='${libname}${release}${shared_ext}$major'
1287   shlibpath_var=LD_LIBRARY_PATH
1288   hardcode_into_libs=yes
1289   ;;
1290
1291 hpux9* | hpux10* | hpux11*)
1292   # Give a soname corresponding to the major version so that dld.sl refuses to
1293   # link against other versions.
1294   version_type=sunos
1295   need_lib_prefix=no
1296   need_version=no
1297   case $host_cpu in
1298   ia64*)
1299     shrext_cmds='.so'
1300     hardcode_into_libs=yes
1301     dynamic_linker="$host_os dld.so"
1302     shlibpath_var=LD_LIBRARY_PATH
1303     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1305     soname_spec='${libname}${release}${shared_ext}$major'
1306     if test "X$HPUX_IA64_MODE" = X32; then
1307       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1308     else
1309       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1310     fi
1311     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1312     ;;
1313    hppa*64*)
1314      shrext_cmds='.sl'
1315      hardcode_into_libs=yes
1316      dynamic_linker="$host_os dld.sl"
1317      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1318      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1319      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1320      soname_spec='${libname}${release}${shared_ext}$major'
1321      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1322      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1323      ;;
1324    *)
1325     shrext_cmds='.sl'
1326     dynamic_linker="$host_os dld.sl"
1327     shlibpath_var=SHLIB_PATH
1328     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1330     soname_spec='${libname}${release}${shared_ext}$major'
1331     ;;
1332   esac
1333   # HP-UX runs *really* slowly unless shared libraries are mode 555.
1334   postinstall_cmds='chmod 555 $lib'
1335   ;;
1336
1337 interix3*)
1338   version_type=linux
1339   need_lib_prefix=no
1340   need_version=no
1341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1342   soname_spec='${libname}${release}${shared_ext}$major'
1343   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1344   shlibpath_var=LD_LIBRARY_PATH
1345   shlibpath_overrides_runpath=no
1346   hardcode_into_libs=yes
1347   ;;
1348
1349 irix5* | irix6* | nonstopux*)
1350   case $host_os in
1351     nonstopux*) version_type=nonstopux ;;
1352     *)
1353         if test "$lt_cv_prog_gnu_ld" = yes; then
1354                 version_type=linux
1355         else
1356                 version_type=irix
1357         fi ;;
1358   esac
1359   need_lib_prefix=no
1360   need_version=no
1361   soname_spec='${libname}${release}${shared_ext}$major'
1362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1363   case $host_os in
1364   irix5* | nonstopux*)
1365     libsuff= shlibsuff=
1366     ;;
1367   *)
1368     case $LD in # libtool.m4 will add one of these switches to LD
1369     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1370       libsuff= shlibsuff= libmagic=32-bit;;
1371     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1372       libsuff=32 shlibsuff=N32 libmagic=N32;;
1373     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1374       libsuff=64 shlibsuff=64 libmagic=64-bit;;
1375     *) libsuff= shlibsuff= libmagic=never-match;;
1376     esac
1377     ;;
1378   esac
1379   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1380   shlibpath_overrides_runpath=no
1381   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1382   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1383   hardcode_into_libs=yes
1384   ;;
1385
1386 # No shared lib support for Linux oldld, aout, or coff.
1387 linux*oldld* | linux*aout* | linux*coff*)
1388   dynamic_linker=no
1389   ;;
1390
1391 # This must be Linux ELF.
1392 linux* | k*bsd*-gnu)
1393   version_type=linux
1394   need_lib_prefix=no
1395   need_version=no
1396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1397   soname_spec='${libname}${release}${shared_ext}$major'
1398   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1399   shlibpath_var=LD_LIBRARY_PATH
1400   shlibpath_overrides_runpath=no
1401   # This implies no fast_install, which is unacceptable.
1402   # Some rework will be needed to allow for fast_install
1403   # before this can be enabled.
1404   hardcode_into_libs=yes
1405
1406   # Append ld.so.conf contents to the search path
1407   if test -f /etc/ld.so.conf; then
1408     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1409     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1410   fi
1411
1412   # We used to test for /lib/ld.so.1 and disable shared libraries on
1413   # powerpc, because MkLinux only supported shared libraries with the
1414   # GNU dynamic linker.  Since this was broken with cross compilers,
1415   # most powerpc-linux boxes support dynamic linking these days and
1416   # people can always --disable-shared, the test was removed, and we
1417   # assume the GNU/Linux dynamic linker is in use.
1418   dynamic_linker='GNU/Linux ld.so'
1419   ;;
1420
1421 netbsdelf*-gnu)
1422   version_type=linux
1423   need_lib_prefix=no
1424   need_version=no
1425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1426   soname_spec='${libname}${release}${shared_ext}$major'
1427   shlibpath_var=LD_LIBRARY_PATH
1428   shlibpath_overrides_runpath=no
1429   hardcode_into_libs=yes
1430   dynamic_linker='NetBSD ld.elf_so'
1431   ;;
1432
1433 netbsd*)
1434   version_type=sunos
1435   need_lib_prefix=no
1436   need_version=no
1437   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1439     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1440     dynamic_linker='NetBSD (a.out) ld.so'
1441   else
1442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1443     soname_spec='${libname}${release}${shared_ext}$major'
1444     dynamic_linker='NetBSD ld.elf_so'
1445   fi
1446   shlibpath_var=LD_LIBRARY_PATH
1447   shlibpath_overrides_runpath=yes
1448   hardcode_into_libs=yes
1449   ;;
1450
1451 newsos6)
1452   version_type=linux
1453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1454   shlibpath_var=LD_LIBRARY_PATH
1455   shlibpath_overrides_runpath=yes
1456   ;;
1457
1458 nto-qnx*)
1459   version_type=linux
1460   need_lib_prefix=no
1461   need_version=no
1462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1463   soname_spec='${libname}${release}${shared_ext}$major'
1464   shlibpath_var=LD_LIBRARY_PATH
1465   shlibpath_overrides_runpath=yes
1466   ;;
1467
1468 openbsd*)
1469   version_type=sunos
1470   sys_lib_dlsearch_path_spec="/usr/lib"
1471   need_lib_prefix=no
1472   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1473   case $host_os in
1474     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1475     *)                         need_version=no  ;;
1476   esac
1477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1478   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1479   shlibpath_var=LD_LIBRARY_PATH
1480   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1481     case $host_os in
1482       openbsd2.[[89]] | openbsd2.[[89]].*)
1483         shlibpath_overrides_runpath=no
1484         ;;
1485       *)
1486         shlibpath_overrides_runpath=yes
1487         ;;
1488       esac
1489   else
1490     shlibpath_overrides_runpath=yes
1491   fi
1492   ;;
1493
1494 os2*)
1495   libname_spec='$name'
1496   shrext_cmds=".dll"
1497   need_lib_prefix=no
1498   library_names_spec='$libname${shared_ext} $libname.a'
1499   dynamic_linker='OS/2 ld.exe'
1500   shlibpath_var=LIBPATH
1501   ;;
1502
1503 osf3* | osf4* | osf5*)
1504   version_type=osf
1505   need_lib_prefix=no
1506   need_version=no
1507   soname_spec='${libname}${release}${shared_ext}$major'
1508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1509   shlibpath_var=LD_LIBRARY_PATH
1510   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1511   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1512   ;;
1513
1514 solaris*)
1515   version_type=linux
1516   need_lib_prefix=no
1517   need_version=no
1518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1519   soname_spec='${libname}${release}${shared_ext}$major'
1520   shlibpath_var=LD_LIBRARY_PATH
1521   shlibpath_overrides_runpath=yes
1522   hardcode_into_libs=yes
1523   # ldd complains unless libraries are executable
1524   postinstall_cmds='chmod +x $lib'
1525   ;;
1526
1527 sunos4*)
1528   version_type=sunos
1529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1530   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1531   shlibpath_var=LD_LIBRARY_PATH
1532   shlibpath_overrides_runpath=yes
1533   if test "$with_gnu_ld" = yes; then
1534     need_lib_prefix=no
1535   fi
1536   need_version=yes
1537   ;;
1538
1539 sysv4 | sysv4.3*)
1540   version_type=linux
1541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1542   soname_spec='${libname}${release}${shared_ext}$major'
1543   shlibpath_var=LD_LIBRARY_PATH
1544   case $host_vendor in
1545     sni)
1546       shlibpath_overrides_runpath=no
1547       need_lib_prefix=no
1548       export_dynamic_flag_spec='${wl}-Blargedynsym'
1549       runpath_var=LD_RUN_PATH
1550       ;;
1551     siemens)
1552       need_lib_prefix=no
1553       ;;
1554     motorola)
1555       need_lib_prefix=no
1556       need_version=no
1557       shlibpath_overrides_runpath=no
1558       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1559       ;;
1560   esac
1561   ;;
1562
1563 sysv4*MP*)
1564   if test -d /usr/nec ;then
1565     version_type=linux
1566     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1567     soname_spec='$libname${shared_ext}.$major'
1568     shlibpath_var=LD_LIBRARY_PATH
1569   fi
1570   ;;
1571
1572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1573   version_type=freebsd-elf
1574   need_lib_prefix=no
1575   need_version=no
1576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1577   soname_spec='${libname}${release}${shared_ext}$major'
1578   shlibpath_var=LD_LIBRARY_PATH
1579   hardcode_into_libs=yes
1580   if test "$with_gnu_ld" = yes; then
1581     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1582     shlibpath_overrides_runpath=no
1583   else
1584     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1585     shlibpath_overrides_runpath=yes
1586     case $host_os in
1587       sco3.2v5*)
1588         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1589         ;;
1590     esac
1591   fi
1592   sys_lib_dlsearch_path_spec='/usr/lib'
1593   ;;
1594
1595 uts4*)
1596   version_type=linux
1597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1598   soname_spec='${libname}${release}${shared_ext}$major'
1599   shlibpath_var=LD_LIBRARY_PATH
1600   ;;
1601
1602 *)
1603   dynamic_linker=no
1604   ;;
1605 esac
1606 AC_MSG_RESULT([$dynamic_linker])
1607 test "$dynamic_linker" = no && can_build_shared=no
1608
1609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1610 if test "$GCC" = yes; then
1611   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1612 fi
1613 ])
1614 m4trace:/usr/share/aclocal/libtool.m4:1874: -1- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_ARG_WITH([tags],
1615     [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1616         [include additional configurations @<:@automatic@:>@])],
1617     [tagnames="$withval"])
1618
1619 if test -f "$ltmain" && test -n "$tagnames"; then
1620   if test ! -f "${ofile}"; then
1621     AC_MSG_WARN([output file `$ofile' does not exist])
1622   fi
1623
1624   if test -z "$LTCC"; then
1625     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1626     if test -z "$LTCC"; then
1627       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1628     else
1629       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1630     fi
1631   fi
1632   if test -z "$LTCFLAGS"; then
1633     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1634   fi
1635
1636   # Extract list of available tagged configurations in $ofile.
1637   # Note that this assumes the entire list is on one line.
1638   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1639
1640   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1641   for tagname in $tagnames; do
1642     IFS="$lt_save_ifs"
1643     # Check whether tagname contains only valid characters
1644     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1645     "") ;;
1646     *)  AC_MSG_ERROR([invalid tag name: $tagname])
1647         ;;
1648     esac
1649
1650     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1651     then
1652       AC_MSG_ERROR([tag name \"$tagname\" already exists])
1653     fi
1654
1655     # Update the list of available tags.
1656     if test -n "$tagname"; then
1657       echo appending configuration tag \"$tagname\" to $ofile
1658
1659       case $tagname in
1660       CXX)
1661         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1662             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1663             (test "X$CXX" != "Xg++"))) ; then
1664           AC_LIBTOOL_LANG_CXX_CONFIG
1665         else
1666           tagname=""
1667         fi
1668         ;;
1669
1670       F77)
1671         if test -n "$F77" && test "X$F77" != "Xno"; then
1672           AC_LIBTOOL_LANG_F77_CONFIG
1673         else
1674           tagname=""
1675         fi
1676         ;;
1677
1678       GCJ)
1679         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1680           AC_LIBTOOL_LANG_GCJ_CONFIG
1681         else
1682           tagname=""
1683         fi
1684         ;;
1685
1686       RC)
1687         AC_LIBTOOL_LANG_RC_CONFIG
1688         ;;
1689
1690       *)
1691         AC_MSG_ERROR([Unsupported tag name: $tagname])
1692         ;;
1693       esac
1694
1695       # Append the new tag name to the list of available tags.
1696       if test -n "$tagname" ; then
1697       available_tags="$available_tags $tagname"
1698     fi
1699     fi
1700   done
1701   IFS="$lt_save_ifs"
1702
1703   # Now substitute the updated list of available tags.
1704   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1705     mv "${ofile}T" "$ofile"
1706     chmod +x "$ofile"
1707   else
1708     rm -f "${ofile}T"
1709     AC_MSG_ERROR([unable to update list of available tagged configurations.])
1710   fi
1711 fi
1712 ])
1713 m4trace:/usr/share/aclocal/libtool.m4:1882: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1714 ])
1715 m4trace:/usr/share/aclocal/libtool.m4:1890: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1716 ])
1717 m4trace:/usr/share/aclocal/libtool.m4:1920: -1- AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1718 AC_ARG_ENABLE([shared],
1719     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1720         [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1721     [p=${PACKAGE-default}
1722     case $enableval in
1723     yes) enable_shared=yes ;;
1724     no) enable_shared=no ;;
1725     *)
1726       enable_shared=no
1727       # Look at the argument we got.  We use all the common list separators.
1728       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1729       for pkg in $enableval; do
1730         IFS="$lt_save_ifs"
1731         if test "X$pkg" = "X$p"; then
1732           enable_shared=yes
1733         fi
1734       done
1735       IFS="$lt_save_ifs"
1736       ;;
1737     esac],
1738     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1739 ])
1740 m4trace:/usr/share/aclocal/libtool.m4:1929: -1- AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1741 AC_ENABLE_SHARED(no)
1742 ])
1743 m4trace:/usr/share/aclocal/libtool.m4:1959: -1- AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1744 AC_ARG_ENABLE([static],
1745     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1746         [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1747     [p=${PACKAGE-default}
1748     case $enableval in
1749     yes) enable_static=yes ;;
1750     no) enable_static=no ;;
1751     *)
1752      enable_static=no
1753       # Look at the argument we got.  We use all the common list separators.
1754       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1755       for pkg in $enableval; do
1756         IFS="$lt_save_ifs"
1757         if test "X$pkg" = "X$p"; then
1758           enable_static=yes
1759         fi
1760       done
1761       IFS="$lt_save_ifs"
1762       ;;
1763     esac],
1764     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1765 ])
1766 m4trace:/usr/share/aclocal/libtool.m4:1968: -1- AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1767 AC_ENABLE_STATIC(no)
1768 ])
1769 m4trace:/usr/share/aclocal/libtool.m4:1998: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1770 AC_ARG_ENABLE([fast-install],
1771     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1772     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1773     [p=${PACKAGE-default}
1774     case $enableval in
1775     yes) enable_fast_install=yes ;;
1776     no) enable_fast_install=no ;;
1777     *)
1778       enable_fast_install=no
1779       # Look at the argument we got.  We use all the common list separators.
1780       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1781       for pkg in $enableval; do
1782         IFS="$lt_save_ifs"
1783         if test "X$pkg" = "X$p"; then
1784           enable_fast_install=yes
1785         fi
1786       done
1787       IFS="$lt_save_ifs"
1788       ;;
1789     esac],
1790     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
1791 ])
1792 m4trace:/usr/share/aclocal/libtool.m4:2007: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1793 AC_ENABLE_FAST_INSTALL(no)
1794 ])
1795 m4trace:/usr/share/aclocal/libtool.m4:2017: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1796 pic_mode=ifelse($#,1,$1,default)
1797 ])
1798 m4trace:/usr/share/aclocal/libtool.m4:2095: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl
1799 AC_MSG_CHECKING([for $1])
1800 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1801 [case $MAGIC_CMD in
1802 [[\\/*] |  ?:[\\/]*])
1803   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1804   ;;
1805 *)
1806   lt_save_MAGIC_CMD="$MAGIC_CMD"
1807   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1808 dnl $ac_dummy forces splitting on constant user-supplied paths.
1809 dnl POSIX.2 word splitting is done only on the output of word expansions,
1810 dnl not every word.  This closes a longstanding sh security hole.
1811   ac_dummy="ifelse([$2], , $PATH, [$2])"
1812   for ac_dir in $ac_dummy; do
1813     IFS="$lt_save_ifs"
1814     test -z "$ac_dir" && ac_dir=.
1815     if test -f $ac_dir/$1; then
1816       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
1817       if test -n "$file_magic_test_file"; then
1818         case $deplibs_check_method in
1819         "file_magic "*)
1820           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1821           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1822           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1823             $EGREP "$file_magic_regex" > /dev/null; then
1824             :
1825           else
1826             cat <<EOF 1>&2
1827
1828 *** Warning: the command libtool uses to detect shared libraries,
1829 *** $file_magic_cmd, produces output that libtool cannot recognize.
1830 *** The result is that libtool may fail to recognize shared libraries
1831 *** as such.  This will affect the creation of libtool libraries that
1832 *** depend on shared libraries, but programs linked with such libtool
1833 *** libraries will work regardless of this problem.  Nevertheless, you
1834 *** may want to report the problem to your system manager and/or to
1835 *** bug-libtool@gnu.org
1836
1837 EOF
1838           fi ;;
1839         esac
1840       fi
1841       break
1842     fi
1843   done
1844   IFS="$lt_save_ifs"
1845   MAGIC_CMD="$lt_save_MAGIC_CMD"
1846   ;;
1847 esac])
1848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1849 if test -n "$MAGIC_CMD"; then
1850   AC_MSG_RESULT($MAGIC_CMD)
1851 else
1852   AC_MSG_RESULT(no)
1853 fi
1854 ])
1855 m4trace:/usr/share/aclocal/libtool.m4:2110: -1- AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1856 if test -z "$lt_cv_path_MAGIC_CMD"; then
1857   if test -n "$ac_tool_prefix"; then
1858     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
1859   else
1860     MAGIC_CMD=:
1861   fi
1862 fi
1863 ])
1864 m4trace:/usr/share/aclocal/libtool.m4:2195: -1- AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld],
1865     [AC_HELP_STRING([--with-gnu-ld],
1866         [assume the C compiler uses GNU ld @<:@default=no@:>@])],
1867     [test "$withval" = no || with_gnu_ld=yes],
1868     [with_gnu_ld=no])
1869 AC_REQUIRE([LT_AC_PROG_SED])dnl
1870 AC_REQUIRE([AC_PROG_CC])dnl
1871 AC_REQUIRE([AC_CANONICAL_HOST])dnl
1872 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1873 ac_prog=ld
1874 if test "$GCC" = yes; then
1875   # Check if gcc -print-prog-name=ld gives a path.
1876   AC_MSG_CHECKING([for ld used by $CC])
1877   case $host in
1878   *-*-mingw*)
1879     # gcc leaves a trailing carriage return which upsets mingw
1880     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1881   *)
1882     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1883   esac
1884   case $ac_prog in
1885     # Accept absolute paths.
1886     [[\\/]]* | ?:[[\\/]]*)
1887       re_direlt='/[[^/]][[^/]]*/\.\./'
1888       # Canonicalize the pathname of ld
1889       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1890       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1891         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1892       done
1893       test -z "$LD" && LD="$ac_prog"
1894       ;;
1895   "")
1896     # If it fails, then pretend we aren't using GCC.
1897     ac_prog=ld
1898     ;;
1899   *)
1900     # If it is relative, then search for the first ld in PATH.
1901     with_gnu_ld=unknown
1902     ;;
1903   esac
1904 elif test "$with_gnu_ld" = yes; then
1905   AC_MSG_CHECKING([for GNU ld])
1906 else
1907   AC_MSG_CHECKING([for non-GNU ld])
1908 fi
1909 AC_CACHE_VAL(lt_cv_path_LD,
1910 [if test -z "$LD"; then
1911   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1912   for ac_dir in $PATH; do
1913     IFS="$lt_save_ifs"
1914     test -z "$ac_dir" && ac_dir=.
1915     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1916       lt_cv_path_LD="$ac_dir/$ac_prog"
1917       # Check to see if the program is GNU ld.  I'd rather use --version,
1918       # but apparently some variants of GNU ld only accept -v.
1919       # Break only if it was the GNU/non-GNU ld that we prefer.
1920       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1921       *GNU* | *'with BFD'*)
1922         test "$with_gnu_ld" != no && break
1923         ;;
1924       *)
1925         test "$with_gnu_ld" != yes && break
1926         ;;
1927       esac
1928     fi
1929   done
1930   IFS="$lt_save_ifs"
1931 else
1932   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1933 fi])
1934 LD="$lt_cv_path_LD"
1935 if test -n "$LD"; then
1936   AC_MSG_RESULT($LD)
1937 else
1938   AC_MSG_RESULT(no)
1939 fi
1940 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1941 AC_PROG_LD_GNU
1942 ])
1943 m4trace:/usr/share/aclocal/libtool.m4:2213: -1- AC_DEFUN([AC_PROG_LD_GNU], [AC_REQUIRE([AC_PROG_EGREP])dnl
1944 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1945 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
1946 case `$LD -v 2>&1 </dev/null` in
1947 *GNU* | *'with BFD'*)
1948   lt_cv_prog_gnu_ld=yes
1949   ;;
1950 *)
1951   lt_cv_prog_gnu_ld=no
1952   ;;
1953 esac])
1954 with_gnu_ld=$lt_cv_prog_gnu_ld
1955 ])
1956 m4trace:/usr/share/aclocal/libtool.m4:2239: -1- AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], [AC_CACHE_CHECK([for $LD option to reload object files],
1957   lt_cv_ld_reload_flag,
1958   [lt_cv_ld_reload_flag='-r'])
1959 reload_flag=$lt_cv_ld_reload_flag
1960 case $reload_flag in
1961 "" | " "*) ;;
1962 *) reload_flag=" $reload_flag" ;;
1963 esac
1964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
1965 case $host_os in
1966   darwin*)
1967     if test "$GCC" = yes; then
1968       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1969     else
1970       reload_cmds='$LD$reload_flag -o $output$reload_objs'
1971     fi
1972     ;;
1973 esac
1974 ])
1975 m4trace:/usr/share/aclocal/libtool.m4:2422: -1- AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], [AC_CACHE_CHECK([how to recognise dependent libraries],
1976 lt_cv_deplibs_check_method,
1977 [lt_cv_file_magic_cmd='$MAGIC_CMD'
1978 lt_cv_file_magic_test_file=
1979 lt_cv_deplibs_check_method='unknown'
1980 # Need to set the preceding variable on all platforms that support
1981 # interlibrary dependencies.
1982 # 'none' -- dependencies not supported.
1983 # `unknown' -- same as none, but documents that we really don't know.
1984 # 'pass_all' -- all dependencies passed with no checks.
1985 # 'test_compile' -- check by making test program.
1986 # 'file_magic [[regex]]' -- check by looking for files in library path
1987 # which responds to the $file_magic_cmd with a given extended regex.
1988 # If you have `file' or equivalent on your system and you're not sure
1989 # whether `pass_all' will *always* work, you probably want this one.
1990
1991 case $host_os in
1992 aix4* | aix5*)
1993   lt_cv_deplibs_check_method=pass_all
1994   ;;
1995
1996 beos*)
1997   lt_cv_deplibs_check_method=pass_all
1998   ;;
1999
2000 bsdi[[45]]*)
2001   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2002   lt_cv_file_magic_cmd='/usr/bin/file -L'
2003   lt_cv_file_magic_test_file=/shlib/libc.so
2004   ;;
2005
2006 cygwin*)
2007   # func_win32_libid is a shell function defined in ltmain.sh
2008   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2009   lt_cv_file_magic_cmd='func_win32_libid'
2010   ;;
2011
2012 mingw* | pw32*)
2013   # Base MSYS/MinGW do not provide the 'file' command needed by
2014   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2015   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2016   lt_cv_file_magic_cmd='$OBJDUMP -f'
2017   ;;
2018
2019 darwin* | rhapsody*)
2020   lt_cv_deplibs_check_method=pass_all
2021   ;;
2022
2023 freebsd* | dragonfly*)
2024   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2025     case $host_cpu in
2026     i*86 )
2027       # Not sure whether the presence of OpenBSD here was a mistake.
2028       # Let's accept both of them until this is cleared up.
2029       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2030       lt_cv_file_magic_cmd=/usr/bin/file
2031       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2032       ;;
2033     esac
2034   else
2035     lt_cv_deplibs_check_method=pass_all
2036   fi
2037   ;;
2038
2039 gnu*)
2040   lt_cv_deplibs_check_method=pass_all
2041   ;;
2042
2043 hpux10.20* | hpux11*)
2044   lt_cv_file_magic_cmd=/usr/bin/file
2045   case $host_cpu in
2046   ia64*)
2047     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2048     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2049     ;;
2050   hppa*64*)
2051     [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]']
2052     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2053     ;;
2054   *)
2055     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2056     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2057     ;;
2058   esac
2059   ;;
2060
2061 interix3*)
2062   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2063   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2064   ;;
2065
2066 irix5* | irix6* | nonstopux*)
2067   case $LD in
2068   *-32|*"-32 ") libmagic=32-bit;;
2069   *-n32|*"-n32 ") libmagic=N32;;
2070   *-64|*"-64 ") libmagic=64-bit;;
2071   *) libmagic=never-match;;
2072   esac
2073   lt_cv_deplibs_check_method=pass_all
2074   ;;
2075
2076 # This must be Linux ELF.
2077 linux* | k*bsd*-gnu)
2078   lt_cv_deplibs_check_method=pass_all
2079   ;;
2080
2081 netbsd* | netbsdelf*-gnu)
2082   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2083     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2084   else
2085     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2086   fi
2087   ;;
2088
2089 newos6*)
2090   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2091   lt_cv_file_magic_cmd=/usr/bin/file
2092   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2093   ;;
2094
2095 nto-qnx*)
2096   lt_cv_deplibs_check_method=unknown
2097   ;;
2098
2099 openbsd*)
2100   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2101     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2102   else
2103     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2104   fi
2105   ;;
2106
2107 osf3* | osf4* | osf5*)
2108   lt_cv_deplibs_check_method=pass_all
2109   ;;
2110
2111 solaris*)
2112   lt_cv_deplibs_check_method=pass_all
2113   ;;
2114
2115 sysv4 | sysv4.3*)
2116   case $host_vendor in
2117   motorola)
2118     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]]'
2119     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2120     ;;
2121   ncr)
2122     lt_cv_deplibs_check_method=pass_all
2123     ;;
2124   sequent)
2125     lt_cv_file_magic_cmd='/bin/file'
2126     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2127     ;;
2128   sni)
2129     lt_cv_file_magic_cmd='/bin/file'
2130     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2131     lt_cv_file_magic_test_file=/lib/libc.so
2132     ;;
2133   siemens)
2134     lt_cv_deplibs_check_method=pass_all
2135     ;;
2136   pc)
2137     lt_cv_deplibs_check_method=pass_all
2138     ;;
2139   esac
2140   ;;
2141
2142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2143   lt_cv_deplibs_check_method=pass_all
2144   ;;
2145 esac
2146 ])
2147 file_magic_cmd=$lt_cv_file_magic_cmd
2148 deplibs_check_method=$lt_cv_deplibs_check_method
2149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2150 ])
2151 m4trace:/usr/share/aclocal/libtool.m4:2474: -1- AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2152 [if test -n "$NM"; then
2153   # Let the user override the test.
2154   lt_cv_path_NM="$NM"
2155 else
2156   lt_nm_to_check="${ac_tool_prefix}nm"
2157   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
2158     lt_nm_to_check="$lt_nm_to_check nm"
2159   fi
2160   for lt_tmp_nm in $lt_nm_to_check; do
2161     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2162     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2163       IFS="$lt_save_ifs"
2164       test -z "$ac_dir" && ac_dir=.
2165       tmp_nm="$ac_dir/$lt_tmp_nm"
2166       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2167         # Check to see if the nm accepts a BSD-compat flag.
2168         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2169         #   nm: unknown option "B" ignored
2170         # Tru64's nm complains that /dev/null is an invalid object file
2171         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2172         */dev/null* | *'Invalid file or object type'*)
2173           lt_cv_path_NM="$tmp_nm -B"
2174           break
2175           ;;
2176         *)
2177           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2178           */dev/null*)
2179             lt_cv_path_NM="$tmp_nm -p"
2180             break
2181             ;;
2182           *)
2183             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2184             continue # so that we can try to find one that supports BSD flags
2185             ;;
2186           esac
2187           ;;
2188         esac
2189       fi
2190     done
2191     IFS="$lt_save_ifs"
2192   done
2193   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2194 fi])
2195 NM="$lt_cv_path_NM"
2196 ])
2197 m4trace:/usr/share/aclocal/libtool.m4:2495: -1- AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2198 LIBM=
2199 case $host in
2200 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2201   # These system don't have libm, or don't need it
2202   ;;
2203 *-ncr-sysv4.3*)
2204   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2205   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2206   ;;
2207 *)
2208   AC_CHECK_LIB(m, cos, LIBM="-lm")
2209   ;;
2210 esac
2211 ])
2212 m4trace:/usr/share/aclocal/libtool.m4:2520: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2213   case $enable_ltdl_convenience in
2214   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2215   "") enable_ltdl_convenience=yes
2216       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2217   esac
2218   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2219   LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2220   # For backwards non-gettext consistent compatibility...
2221   INCLTDL="$LTDLINCL"
2222 ])
2223 m4trace:/usr/share/aclocal/libtool.m4:2556: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2224   AC_CHECK_LIB(ltdl, lt_dlinit,
2225   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2226   [if test x"$enable_ltdl_install" = xno; then
2227      AC_MSG_WARN([libltdl not installed, but installation disabled])
2228    else
2229      enable_ltdl_install=yes
2230    fi
2231   ])
2232   if test x"$enable_ltdl_install" = x"yes"; then
2233     ac_configure_args="$ac_configure_args --enable-ltdl-install"
2234     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2235     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2236   else
2237     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2238     LIBLTDL="-lltdl"
2239     LTDLINCL=
2240   fi
2241   # For backwards non-gettext consistent compatibility...
2242   INCLTDL="$LTDLINCL"
2243 ])
2244 m4trace:/usr/share/aclocal/libtool.m4:2564: -1- AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX])
2245 ])
2246 m4trace:/usr/share/aclocal/libtool.m4:2573: -1- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX])
2247 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2248 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2249 ])
2250 m4trace:/usr/share/aclocal/libtool.m4:2585: -1- AC_DEFUN([_LT_AC_PROG_CXXCPP], [
2251 AC_REQUIRE([AC_PROG_CXX])
2252 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2253     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2254     (test "X$CXX" != "Xg++"))) ; then
2255   AC_PROG_CXXCPP
2256 fi
2257 ])
2258 m4trace:/usr/share/aclocal/libtool.m4:2592: -1- AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77])
2259 ])
2260 m4trace:/usr/share/aclocal/libtool.m4:2600: -1- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77])
2261 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2262 ])
2263 m4trace:/usr/share/aclocal/libtool.m4:2608: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ])
2264 ])
2265 m4trace:/usr/share/aclocal/libtool.m4:2621: -1- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2266   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2267     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2268       [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2269          [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2270            [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2271 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2272 ])
2273 m4trace:/usr/share/aclocal/libtool.m4:2630: -1- AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC])
2274 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2275 ])
2276 m4trace:/usr/share/aclocal/libtool.m4:2638: -1- AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2277 m4trace:/usr/share/aclocal/libtool.m4:2711: -1- AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC"
2278 AC_LANG_PUSH(C)
2279
2280 # Source file extension for C test sources.
2281 ac_ext=c
2282
2283 # Object file extension for compiled C test sources.
2284 objext=o
2285 _LT_AC_TAGVAR(objext, $1)=$objext
2286
2287 # Code to be used in simple compile tests
2288 lt_simple_compile_test_code="int some_variable = 0;\n"
2289
2290 # Code to be used in simple link tests
2291 lt_simple_link_test_code='int main(){return(0);}\n'
2292
2293 _LT_AC_SYS_COMPILER
2294
2295 # save warnings/boilerplate of simple test code
2296 _LT_COMPILER_BOILERPLATE
2297 _LT_LINKER_BOILERPLATE
2298
2299 ## CAVEAT EMPTOR:
2300 ## There is no encapsulation within the following macros, do not change
2301 ## the running order or otherwise move them around unless you know exactly
2302 ## what you are doing...
2303 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2304 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2305 AC_LIBTOOL_PROG_CC_C_O($1)
2306 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2307 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2308 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2309 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2310 AC_LIBTOOL_SYS_LIB_STRIP
2311 AC_LIBTOOL_DLOPEN_SELF
2312
2313 # Report which library types will actually be built
2314 AC_MSG_CHECKING([if libtool supports shared libraries])
2315 AC_MSG_RESULT([$can_build_shared])
2316
2317 AC_MSG_CHECKING([whether to build shared libraries])
2318 test "$can_build_shared" = "no" && enable_shared=no
2319
2320 # On AIX, shared libraries and static libraries use the same namespace, and
2321 # are all built from PIC.
2322 case $host_os in
2323 aix3*)
2324   test "$enable_shared" = yes && enable_static=no
2325   if test -n "$RANLIB"; then
2326     archive_cmds="$archive_cmds~\$RANLIB \$lib"
2327     postinstall_cmds='$RANLIB $lib'
2328   fi
2329   ;;
2330
2331 aix4* | aix5*)
2332   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2333     test "$enable_shared" = yes && enable_static=no
2334   fi
2335     ;;
2336 esac
2337 AC_MSG_RESULT([$enable_shared])
2338
2339 AC_MSG_CHECKING([whether to build static libraries])
2340 # Make sure either enable_shared or enable_static is yes.
2341 test "$enable_shared" = yes || enable_static=yes
2342 AC_MSG_RESULT([$enable_static])
2343
2344 AC_LIBTOOL_CONFIG($1)
2345
2346 AC_LANG_POP
2347 CC="$lt_save_CC"
2348 ])
2349 m4trace:/usr/share/aclocal/libtool.m4:2719: -1- AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2350 m4trace:/usr/share/aclocal/libtool.m4:3719: -1- AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++)
2351 AC_REQUIRE([AC_PROG_CXX])
2352 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2353
2354 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2355 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2356 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2357 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2358 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2359 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2360 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2361 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2362 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2363 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2364 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2365 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2366 _LT_AC_TAGVAR(module_cmds, $1)=
2367 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2368 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2369 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2370 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2371 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2372 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2373
2374 # Dependencies to place before and after the object being linked:
2375 _LT_AC_TAGVAR(predep_objects, $1)=
2376 _LT_AC_TAGVAR(postdep_objects, $1)=
2377 _LT_AC_TAGVAR(predeps, $1)=
2378 _LT_AC_TAGVAR(postdeps, $1)=
2379 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2380
2381 # Source file extension for C++ test sources.
2382 ac_ext=cpp
2383
2384 # Object file extension for compiled C++ test sources.
2385 objext=o
2386 _LT_AC_TAGVAR(objext, $1)=$objext
2387
2388 # Code to be used in simple compile tests
2389 lt_simple_compile_test_code="int some_variable = 0;\n"
2390
2391 # Code to be used in simple link tests
2392 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2393
2394 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2395 _LT_AC_SYS_COMPILER
2396
2397 # save warnings/boilerplate of simple test code
2398 _LT_COMPILER_BOILERPLATE
2399 _LT_LINKER_BOILERPLATE
2400
2401 # Allow CC to be a program name with arguments.
2402 lt_save_CC=$CC
2403 lt_save_LD=$LD
2404 lt_save_GCC=$GCC
2405 GCC=$GXX
2406 lt_save_with_gnu_ld=$with_gnu_ld
2407 lt_save_path_LD=$lt_cv_path_LD
2408 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2409   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2410 else
2411   $as_unset lt_cv_prog_gnu_ld
2412 fi
2413 if test -n "${lt_cv_path_LDCXX+set}"; then
2414   lt_cv_path_LD=$lt_cv_path_LDCXX
2415 else
2416   $as_unset lt_cv_path_LD
2417 fi
2418 test -z "${LDCXX+set}" || LD=$LDCXX
2419 CC=${CXX-"c++"}
2420 compiler=$CC
2421 _LT_AC_TAGVAR(compiler, $1)=$CC
2422 _LT_CC_BASENAME([$compiler])
2423
2424 # We don't want -fno-exception wen compiling C++ code, so set the
2425 # no_builtin_flag separately
2426 if test "$GXX" = yes; then
2427   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2428 else
2429   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2430 fi
2431
2432 if test "$GXX" = yes; then
2433   # Set up default GNU C++ configuration
2434
2435   AC_PROG_LD
2436
2437   # Check if GNU C++ uses GNU ld as the underlying linker, since the
2438   # archiving commands below assume that GNU ld is being used.
2439   if test "$with_gnu_ld" = yes; then
2440     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2441     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2442
2443     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2444     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2445
2446     # If archive_cmds runs LD, not CC, wlarc should be empty
2447     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2448     #     investigate it a little bit more. (MM)
2449     wlarc='${wl}'
2450
2451     # ancient GNU ld didn't support --whole-archive et. al.
2452     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2453         grep 'no-whole-archive' > /dev/null; then
2454       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2455     else
2456       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2457     fi
2458   else
2459     with_gnu_ld=no
2460     wlarc=
2461
2462     # A generic and very simple default shared library creation
2463     # command for GNU C++ for the case where it uses the native
2464     # linker, instead of GNU ld.  If possible, this setting should
2465     # overridden to take advantage of the native linker features on
2466     # the platform it is being used on.
2467     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2468   fi
2469
2470   # Commands to make compiler produce verbose output that lists
2471   # what "hidden" libraries, object files and flags are used when
2472   # linking a shared library.
2473   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2474
2475 else
2476   GXX=no
2477   with_gnu_ld=no
2478   wlarc=
2479 fi
2480
2481 # PORTME: fill in a description of your system's C++ link characteristics
2482 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2483 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2484 case $host_os in
2485   aix3*)
2486     # FIXME: insert proper C++ library support
2487     _LT_AC_TAGVAR(ld_shlibs, $1)=no
2488     ;;
2489   aix4* | aix5*)
2490     if test "$host_cpu" = ia64; then
2491       # On IA64, the linker does run time linking by default, so we don't
2492       # have to do anything special.
2493       aix_use_runtimelinking=no
2494       exp_sym_flag='-Bexport'
2495       no_entry_flag=""
2496     else
2497       aix_use_runtimelinking=no
2498
2499       # Test if we are trying to use run time linking or normal
2500       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2501       # need to do runtime linking.
2502       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2503         for ld_flag in $LDFLAGS; do
2504           case $ld_flag in
2505           *-brtl*)
2506             aix_use_runtimelinking=yes
2507             break
2508             ;;
2509           esac
2510         done
2511         ;;
2512       esac
2513
2514       exp_sym_flag='-bexport'
2515       no_entry_flag='-bnoentry'
2516     fi
2517
2518     # When large executables or shared objects are built, AIX ld can
2519     # have problems creating the table of contents.  If linking a library
2520     # or program results in "error TOC overflow" add -mminimal-toc to
2521     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
2522     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2523
2524     _LT_AC_TAGVAR(archive_cmds, $1)=''
2525     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2526     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2527     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2528
2529     if test "$GXX" = yes; then
2530       case $host_os in aix4.[[012]]|aix4.[[012]].*)
2531       # We only want to do this on AIX 4.2 and lower, the check
2532       # below for broken collect2 doesn't work under 4.3+
2533         collect2name=`${CC} -print-prog-name=collect2`
2534         if test -f "$collect2name" && \
2535            strings "$collect2name" | grep resolve_lib_name >/dev/null
2536         then
2537           # We have reworked collect2
2538           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2539         else
2540           # We have old collect2
2541           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2542           # It fails to find uninstalled libraries when the uninstalled
2543           # path is not listed in the libpath.  Setting hardcode_minus_L
2544           # to unsupported forces relinking
2545           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2546           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2547           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2548         fi
2549         ;;
2550       esac
2551       shared_flag='-shared'
2552       if test "$aix_use_runtimelinking" = yes; then
2553         shared_flag="$shared_flag "'${wl}-G'
2554       fi
2555     else
2556       # not using gcc
2557       if test "$host_cpu" = ia64; then
2558         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2559         # chokes on -Wl,-G. The following line is correct:
2560         shared_flag='-G'
2561       else
2562         if test "$aix_use_runtimelinking" = yes; then
2563           shared_flag='${wl}-G'
2564         else
2565           shared_flag='${wl}-bM:SRE'
2566         fi
2567       fi
2568     fi
2569
2570     # It seems that -bexpall does not export symbols beginning with
2571     # underscore (_), so it is better to generate a list of symbols to export.
2572     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2573     if test "$aix_use_runtimelinking" = yes; then
2574       # Warning - without using the other runtime loading flags (-brtl),
2575       # -berok will link without error, but may produce a broken library.
2576       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2577       # Determine the default libpath from the value encoded in an empty executable.
2578       _LT_AC_SYS_LIBPATH_AIX
2579       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2580
2581       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2582      else
2583       if test "$host_cpu" = ia64; then
2584         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2585         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2586         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
2587       else
2588         # Determine the default libpath from the value encoded in an empty executable.
2589         _LT_AC_SYS_LIBPATH_AIX
2590         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2591         # Warning - without using the other run time loading flags,
2592         # -berok will link without error, but may produce a broken library.
2593         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2594         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2595         # Exported symbols can be pulled into shared objects from archives
2596         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2597         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2598         # This is similar to how AIX traditionally builds its shared libraries.
2599         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
2600       fi
2601     fi
2602     ;;
2603
2604   beos*)
2605     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2606       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2607       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2608       # support --undefined.  This deserves some investigation.  FIXME
2609       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2610     else
2611       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2612     fi
2613     ;;
2614
2615   chorus*)
2616     case $cc_basename in
2617       *)
2618         # FIXME: insert proper C++ library support
2619         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2620         ;;
2621     esac
2622     ;;
2623
2624   cygwin* | mingw* | pw32*)
2625     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2626     # as there is no search path for DLLs.
2627     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2628     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2629     _LT_AC_TAGVAR(always_export_symbols, $1)=no
2630     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2631
2632     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2633       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2634       # If the export-symbols file already is a .def file (1st line
2635       # is EXPORTS), use it as is; otherwise, prepend...
2636       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2637         cp $export_symbols $output_objdir/$soname.def;
2638       else
2639         echo EXPORTS > $output_objdir/$soname.def;
2640         cat $export_symbols >> $output_objdir/$soname.def;
2641       fi~
2642       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2643     else
2644       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2645     fi
2646   ;;
2647       darwin* | rhapsody*)
2648         case $host_os in
2649         rhapsody* | darwin1.[[012]])
2650          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2651          ;;
2652        *) # Darwin 1.3 on
2653          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2654            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2655          else
2656            case ${MACOSX_DEPLOYMENT_TARGET} in
2657              10.[[012]])
2658                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2659                ;;
2660              10.*)
2661                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2662                ;;
2663            esac
2664          fi
2665          ;;
2666         esac
2667       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2668       _LT_AC_TAGVAR(hardcode_direct, $1)=no
2669       _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2670       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2671       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2672       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2673
2674     if test "$GXX" = yes ; then
2675       lt_int_apple_cc_single_mod=no
2676       output_verbose_link_cmd='echo'
2677       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
2678        lt_int_apple_cc_single_mod=yes
2679       fi
2680       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2681        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2682       else
2683           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2684         fi
2685         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2686         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2687           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2688             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2689           else
2690             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2691           fi
2692             _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2693       else
2694       case $cc_basename in
2695         xlc*)
2696          output_verbose_link_cmd='echo'
2697           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
2698           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2699           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2700           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2701           _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2702           ;;
2703        *)
2704          _LT_AC_TAGVAR(ld_shlibs, $1)=no
2705           ;;
2706       esac
2707       fi
2708         ;;
2709
2710   dgux*)
2711     case $cc_basename in
2712       ec++*)
2713         # FIXME: insert proper C++ library support
2714         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2715         ;;
2716       ghcx*)
2717         # Green Hills C++ Compiler
2718         # FIXME: insert proper C++ library support
2719         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2720         ;;
2721       *)
2722         # FIXME: insert proper C++ library support
2723         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2724         ;;
2725     esac
2726     ;;
2727   freebsd[[12]]*)
2728     # C++ shared libraries reported to be fairly broken before switch to ELF
2729     _LT_AC_TAGVAR(ld_shlibs, $1)=no
2730     ;;
2731   freebsd-elf*)
2732     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2733     ;;
2734   freebsd* | dragonfly*)
2735     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2736     # conventions
2737     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2738     ;;
2739   gnu*)
2740     ;;
2741   hpux9*)
2742     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2743     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2744     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2745     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2746     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2747                                 # but as the default
2748                                 # location of the library.
2749
2750     case $cc_basename in
2751     CC*)
2752       # FIXME: insert proper C++ library support
2753       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2754       ;;
2755     aCC*)
2756       _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2757       # Commands to make compiler produce verbose output that lists
2758       # what "hidden" libraries, object files and flags are used when
2759       # linking a shared library.
2760       #
2761       # There doesn't appear to be a way to prevent this compiler from
2762       # explicitly linking system object files so we need to strip them
2763       # from the output so that they don't get included in the library
2764       # dependencies.
2765       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2766       ;;
2767     *)
2768       if test "$GXX" = yes; then
2769         _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2770       else
2771         # FIXME: insert proper C++ library support
2772         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2773       fi
2774       ;;
2775     esac
2776     ;;
2777   hpux10*|hpux11*)
2778     if test $with_gnu_ld = no; then
2779       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2780       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2781
2782       case $host_cpu in
2783       hppa*64*|ia64*)
2784         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
2785         ;;
2786       *)
2787         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2788         ;;
2789       esac
2790     fi
2791     case $host_cpu in
2792     hppa*64*|ia64*)
2793       _LT_AC_TAGVAR(hardcode_direct, $1)=no
2794       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2795       ;;
2796     *)
2797       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2798       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2799                                               # but as the default
2800                                               # location of the library.
2801       ;;
2802     esac
2803
2804     case $cc_basename in
2805       CC*)
2806         # FIXME: insert proper C++ library support
2807         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2808         ;;
2809       aCC*)
2810         case $host_cpu in
2811         hppa*64*)
2812           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2813           ;;
2814         ia64*)
2815           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2816           ;;
2817         *)
2818           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2819           ;;
2820         esac
2821         # Commands to make compiler produce verbose output that lists
2822         # what "hidden" libraries, object files and flags are used when
2823         # linking a shared library.
2824         #
2825         # There doesn't appear to be a way to prevent this compiler from
2826         # explicitly linking system object files so we need to strip them
2827         # from the output so that they don't get included in the library
2828         # dependencies.
2829         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2830         ;;
2831       *)
2832         if test "$GXX" = yes; then
2833           if test $with_gnu_ld = no; then
2834             case $host_cpu in
2835             hppa*64*)
2836               _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2837               ;;
2838             ia64*)
2839               _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2840               ;;
2841             *)
2842               _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2843               ;;
2844             esac
2845           fi
2846         else
2847           # FIXME: insert proper C++ library support
2848           _LT_AC_TAGVAR(ld_shlibs, $1)=no
2849         fi
2850         ;;
2851     esac
2852     ;;
2853   interix3*)
2854     _LT_AC_TAGVAR(hardcode_direct, $1)=no
2855     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2856     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2857     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2858     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
2859     # Instead, shared libraries are loaded at an image base (0x10000000 by
2860     # default) and relocated if they conflict, which is a slow very memory
2861     # consuming and fragmenting process.  To avoid this, we pick a random,
2862     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
2863     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
2864     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2865     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
2866     ;;
2867   irix5* | irix6*)
2868     case $cc_basename in
2869       CC*)
2870         # SGI C++
2871         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2872
2873         # Archives containing C++ object files must be created using
2874         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
2875         # necessary to make sure instantiated templates are included
2876         # in the archive.
2877         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
2878         ;;
2879       *)
2880         if test "$GXX" = yes; then
2881           if test "$with_gnu_ld" = no; then
2882             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2883           else
2884             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
2885           fi
2886         fi
2887         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2888         ;;
2889     esac
2890     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2891     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2892     ;;
2893   linux* | k*bsd*-gnu)
2894     case $cc_basename in
2895       KCC*)
2896         # Kuck and Associates, Inc. (KAI) C++ Compiler
2897
2898         # KCC will only create a shared library if the output file
2899         # ends with ".so" (or ".sl" for HP-UX), so rename the library
2900         # to its proper name (with version) after linking.
2901         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
2902         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
2903         # Commands to make compiler produce verbose output that lists
2904         # what "hidden" libraries, object files and flags are used when
2905         # linking a shared library.
2906         #
2907         # There doesn't appear to be a way to prevent this compiler from
2908         # explicitly linking system object files so we need to strip them
2909         # from the output so that they don't get included in the library
2910         # dependencies.
2911         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2912
2913         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
2914         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2915
2916         # Archives containing C++ object files must be created using
2917         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
2918         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2919         ;;
2920       icpc*)
2921         # Intel C++
2922         with_gnu_ld=yes
2923         # version 8.0 and above of icpc choke on multiply defined symbols
2924         # if we add $predep_objects and $postdep_objects, however 7.1 and
2925         # earlier do not add the objects themselves.
2926         case `$CC -V 2>&1` in
2927         *"Version 7."*)
2928           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2929           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2930           ;;
2931         *)  # Version 8.0 or newer
2932           tmp_idyn=
2933           case $host_cpu in
2934             ia64*) tmp_idyn=' -i_dynamic';;
2935           esac
2936           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2937           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2938           ;;
2939         esac
2940         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2941         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2942         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2943         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
2944         ;;
2945       pgCC*)
2946         # Portland Group C++ compiler
2947         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2948         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
2949
2950         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2951         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2952         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2953         ;;
2954       cxx*)
2955         # Compaq C++
2956         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2957         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
2958
2959         runpath_var=LD_RUN_PATH
2960         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2961         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2962
2963         # Commands to make compiler produce verbose output that lists
2964         # what "hidden" libraries, object files and flags are used when
2965         # linking a shared library.
2966         #
2967         # There doesn't appear to be a way to prevent this compiler from
2968         # explicitly linking system object files so we need to strip them
2969         # from the output so that they don't get included in the library
2970         # dependencies.
2971         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2972         ;;
2973     esac
2974     ;;
2975   lynxos*)
2976     # FIXME: insert proper C++ library support
2977     _LT_AC_TAGVAR(ld_shlibs, $1)=no
2978     ;;
2979   m88k*)
2980     # FIXME: insert proper C++ library support
2981     _LT_AC_TAGVAR(ld_shlibs, $1)=no
2982     ;;
2983   mvs*)
2984     case $cc_basename in
2985       cxx*)
2986         # FIXME: insert proper C++ library support
2987         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2988         ;;
2989       *)
2990         # FIXME: insert proper C++ library support
2991         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2992         ;;
2993     esac
2994     ;;
2995   netbsd* | netbsdelf*-gnu)
2996     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2997       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
2998       wlarc=
2999       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3000       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3001       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3002     fi
3003     # Workaround some broken pre-1.5 toolchains
3004     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3005     ;;
3006   openbsd2*)
3007     # C++ shared libraries are fairly broken
3008     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3009     ;;
3010   openbsd*)
3011     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3012     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3013     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3014     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3015     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3016       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3017       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3018       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3019     fi
3020     output_verbose_link_cmd='echo'
3021     ;;
3022   osf3*)
3023     case $cc_basename in
3024       KCC*)
3025         # Kuck and Associates, Inc. (KAI) C++ Compiler
3026
3027         # KCC will only create a shared library if the output file
3028         # ends with ".so" (or ".sl" for HP-UX), so rename the library
3029         # to its proper name (with version) after linking.
3030         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3031
3032         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3033         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3034
3035         # Archives containing C++ object files must be created using
3036         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3037         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3038
3039         ;;
3040       RCC*)
3041         # Rational C++ 2.4.1
3042         # FIXME: insert proper C++ library support
3043         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3044         ;;
3045       cxx*)
3046         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3047         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3048
3049         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3050         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3051
3052         # Commands to make compiler produce verbose output that lists
3053         # what "hidden" libraries, object files and flags are used when
3054         # linking a shared library.
3055         #
3056         # There doesn't appear to be a way to prevent this compiler from
3057         # explicitly linking system object files so we need to strip them
3058         # from the output so that they don't get included in the library
3059         # dependencies.
3060         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3061         ;;
3062       *)
3063         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3064           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3065           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3066
3067           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3068           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3069
3070           # Commands to make compiler produce verbose output that lists
3071           # what "hidden" libraries, object files and flags are used when
3072           # linking a shared library.
3073           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3074
3075         else
3076           # FIXME: insert proper C++ library support
3077           _LT_AC_TAGVAR(ld_shlibs, $1)=no
3078         fi
3079         ;;
3080     esac
3081     ;;
3082   osf4* | osf5*)
3083     case $cc_basename in
3084       KCC*)
3085         # Kuck and Associates, Inc. (KAI) C++ Compiler
3086
3087         # KCC will only create a shared library if the output file
3088         # ends with ".so" (or ".sl" for HP-UX), so rename the library
3089         # to its proper name (with version) after linking.
3090         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3091
3092         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3093         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3094
3095         # Archives containing C++ object files must be created using
3096         # the KAI C++ compiler.
3097         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3098         ;;
3099       RCC*)
3100         # Rational C++ 2.4.1
3101         # FIXME: insert proper C++ library support
3102         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3103         ;;
3104       cxx*)
3105         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3106         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3107         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3108           echo "-hidden">> $lib.exp~
3109           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3110           $rm $lib.exp'
3111
3112         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3113         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3114
3115         # Commands to make compiler produce verbose output that lists
3116         # what "hidden" libraries, object files and flags are used when
3117         # linking a shared library.
3118         #
3119         # There doesn't appear to be a way to prevent this compiler from
3120         # explicitly linking system object files so we need to strip them
3121         # from the output so that they don't get included in the library
3122         # dependencies.
3123         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3124         ;;
3125       *)
3126         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3127           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3128          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3129
3130           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3131           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3132
3133           # Commands to make compiler produce verbose output that lists
3134           # what "hidden" libraries, object files and flags are used when
3135           # linking a shared library.
3136           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3137
3138         else
3139           # FIXME: insert proper C++ library support
3140           _LT_AC_TAGVAR(ld_shlibs, $1)=no
3141         fi
3142         ;;
3143     esac
3144     ;;
3145   psos*)
3146     # FIXME: insert proper C++ library support
3147     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3148     ;;
3149   sunos4*)
3150     case $cc_basename in
3151       CC*)
3152         # Sun C++ 4.x
3153         # FIXME: insert proper C++ library support
3154         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3155         ;;
3156       lcc*)
3157         # Lucid
3158         # FIXME: insert proper C++ library support
3159         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3160         ;;
3161       *)
3162         # FIXME: insert proper C++ library support
3163         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3164         ;;
3165     esac
3166     ;;
3167   solaris*)
3168     case $cc_basename in
3169       CC*)
3170         # Sun C++ 4.2, 5.x and Centerline C++
3171         _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3172         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3173         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3174         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3175         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3176
3177         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3178         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3179         case $host_os in
3180           solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3181           *)
3182             # The C++ compiler is used as linker so we must use $wl
3183             # flag to pass the commands to the underlying system
3184             # linker. We must also pass each convience library through
3185             # to the system linker between allextract/defaultextract.
3186             # The C++ compiler will combine linker options so we
3187             # cannot just pass the convience library names through
3188             # without $wl.
3189             # Supported since Solaris 2.6 (maybe 2.5.1?)
3190             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3191             ;;
3192         esac
3193         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3194
3195         output_verbose_link_cmd='echo'
3196
3197         # Archives containing C++ object files must be created using
3198         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3199         # necessary to make sure instantiated templates are included
3200         # in the archive.
3201         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3202         ;;
3203       gcx*)
3204         # Green Hills C++ Compiler
3205         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3206
3207         # The C++ compiler must be used to create the archive.
3208         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3209         ;;
3210       *)
3211         # GNU C++ compiler with Solaris linker
3212         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3213           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3214           if $CC --version | grep -v '^2\.7' > /dev/null; then
3215             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3216             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3217                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3218
3219             # Commands to make compiler produce verbose output that lists
3220             # what "hidden" libraries, object files and flags are used when
3221             # linking a shared library.
3222             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3223           else
3224             # g++ 2.7 appears to require `-G' NOT `-shared' on this
3225             # platform.
3226             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3227             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3228                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3229
3230             # Commands to make compiler produce verbose output that lists
3231             # what "hidden" libraries, object files and flags are used when
3232             # linking a shared library.
3233             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3234           fi
3235
3236           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3237         fi
3238         ;;
3239     esac
3240     ;;
3241   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3242     _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3243     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3244     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3245     runpath_var='LD_RUN_PATH'
3246
3247     case $cc_basename in
3248       CC*)
3249         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3250         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3251         ;;
3252       *)
3253         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3254         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3255         ;;
3256     esac
3257     ;;
3258   sysv5* | sco3.2v5* | sco5v6*)
3259     # Note: We can NOT use -z defs as we might desire, because we do not
3260     # link with -lc, and that would cause any symbols used from libc to
3261     # always be unresolved, which means just about no library would
3262     # ever link correctly.  If we're not using GNU ld we use -z text
3263     # though, which does catch some bad symbols but isn't as heavy-handed
3264     # as -z defs.
3265     # For security reasons, it is highly recommended that you always
3266     # use absolute paths for naming shared libraries, and exclude the
3267     # DT_RUNPATH tag from executables and libraries.  But doing so
3268     # requires that you compile everything twice, which is a pain.
3269     # So that behaviour is only enabled if SCOABSPATH is set to a
3270     # non-empty value in the environment.  Most likely only useful for
3271     # creating official distributions of packages.
3272     # This is a hack until libtool officially supports absolute path
3273     # names for shared libraries.
3274     _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3275     _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3276     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3277     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3278     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3279     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3280     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3281     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3282     runpath_var='LD_RUN_PATH'
3283
3284     case $cc_basename in
3285       CC*)
3286         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3287         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3288         ;;
3289       *)
3290         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3291         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3292         ;;
3293     esac
3294     ;;
3295   tandem*)
3296     case $cc_basename in
3297       NCC*)
3298         # NonStop-UX NCC 3.20
3299         # FIXME: insert proper C++ library support
3300         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3301         ;;
3302       *)
3303         # FIXME: insert proper C++ library support
3304         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3305         ;;
3306     esac
3307     ;;
3308   vxworks*)
3309     # FIXME: insert proper C++ library support
3310     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3311     ;;
3312   *)
3313     # FIXME: insert proper C++ library support
3314     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3315     ;;
3316 esac
3317 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3318 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3319
3320 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3321 _LT_AC_TAGVAR(LD, $1)="$LD"
3322
3323 ## CAVEAT EMPTOR:
3324 ## There is no encapsulation within the following macros, do not change
3325 ## the running order or otherwise move them around unless you know exactly
3326 ## what you are doing...
3327 AC_LIBTOOL_POSTDEP_PREDEP($1)
3328 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3329 AC_LIBTOOL_PROG_CC_C_O($1)
3330 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3331 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3332 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3333 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3334
3335 AC_LIBTOOL_CONFIG($1)
3336
3337 AC_LANG_POP
3338 CC=$lt_save_CC
3339 LDCXX=$LD
3340 LD=$lt_save_LD
3341 GCC=$lt_save_GCC
3342 with_gnu_ldcxx=$with_gnu_ld
3343 with_gnu_ld=$lt_save_with_gnu_ld
3344 lt_cv_path_LDCXX=$lt_cv_path_LD
3345 lt_cv_path_LD=$lt_save_path_LD
3346 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3347 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3348 ])
3349 m4trace:/usr/share/aclocal/libtool.m4:3879: -1- AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], [
3350 dnl we can't use the lt_simple_compile_test_code here,
3351 dnl because it contains code intended for an executable,
3352 dnl not a library.  It's possible we should let each
3353 dnl tag define a new lt_????_link_test_code variable,
3354 dnl but it's only used here...
3355 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3356 int a;
3357 void foo (void) { a = 0; }
3358 EOF
3359 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3360 class Foo
3361 {
3362 public:
3363   Foo (void) { a = 0; }
3364 private:
3365   int a;
3366 };
3367 EOF
3368 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3369       subroutine foo
3370       implicit none
3371       integer*4 a
3372       a=0
3373       return
3374       end
3375 EOF
3376 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3377 public class foo {
3378   private int a;
3379   public void bar (void) {
3380     a = 0;
3381   }
3382 };
3383 EOF
3384 ])
3385 dnl Parse the compiler output and extract the necessary
3386 dnl objects, libraries and library flags.
3387 if AC_TRY_EVAL(ac_compile); then
3388   # Parse the compiler output and extract the necessary
3389   # objects, libraries and library flags.
3390
3391   # Sentinel used to keep track of whether or not we are before
3392   # the conftest object file.
3393   pre_test_object_deps_done=no
3394
3395   # The `*' in the case matches for architectures that use `case' in
3396   # $output_verbose_cmd can trigger glob expansion during the loop
3397   # eval without this substitution.
3398   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3399
3400   for p in `eval $output_verbose_link_cmd`; do
3401     case $p in
3402
3403     -L* | -R* | -l*)
3404        # Some compilers place space between "-{L,R}" and the path.
3405        # Remove the space.
3406        if test $p = "-L" \
3407           || test $p = "-R"; then
3408          prev=$p
3409          continue
3410        else
3411          prev=
3412        fi
3413
3414        if test "$pre_test_object_deps_done" = no; then
3415          case $p in
3416          -L* | -R*)
3417            # Internal compiler library paths should come after those
3418            # provided the user.  The postdeps already come after the
3419            # user supplied libs so there is no need to process them.
3420            if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3421              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3422            else
3423              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3424            fi
3425            ;;
3426          # The "-l" case would never come before the object being
3427          # linked, so don't bother handling this case.
3428          esac
3429        else
3430          if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3431            _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3432          else
3433            _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3434          fi
3435        fi
3436        ;;
3437
3438     *.$objext)
3439        # This assumes that the test object file only shows up
3440        # once in the compiler output.
3441        if test "$p" = "conftest.$objext"; then
3442          pre_test_object_deps_done=yes
3443          continue
3444        fi
3445
3446        if test "$pre_test_object_deps_done" = no; then
3447          if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3448            _LT_AC_TAGVAR(predep_objects, $1)="$p"
3449          else
3450            _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3451          fi
3452        else
3453          if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3454            _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3455          else
3456            _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3457          fi
3458        fi
3459        ;;
3460
3461     *) ;; # Ignore the rest.
3462
3463     esac
3464   done
3465
3466   # Clean up.
3467   rm -f a.out a.exe
3468 else
3469   echo "libtool.m4: error: problem compiling $1 test program"
3470 fi
3471
3472 $rm -f confest.$objext
3473
3474 # PORTME: override above test on systems where it is broken
3475 ifelse([$1],[CXX],
3476 [case $host_os in
3477 interix3*)
3478   # Interix 3.5 installs completely hosed .la files for C++, so rather than
3479   # hack all around it, let's just trust "g++" to DTRT.
3480   _LT_AC_TAGVAR(predep_objects,$1)=
3481   _LT_AC_TAGVAR(postdep_objects,$1)=
3482   _LT_AC_TAGVAR(postdeps,$1)=
3483   ;;
3484
3485 solaris*)
3486   case $cc_basename in
3487   CC*)
3488     # Adding this requires a known-good setup of shared libraries for
3489     # Sun compiler versions before 5.6, else PIC objects from an old
3490     # archive will be linked into the output, leading to subtle bugs.
3491     _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3492     ;;
3493   esac
3494   ;;
3495 esac
3496 ])
3497
3498 case " $_LT_AC_TAGVAR(postdeps, $1) " in
3499 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3500 esac
3501 ])
3502 m4trace:/usr/share/aclocal/libtool.m4:3886: -1- AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3503 m4trace:/usr/share/aclocal/libtool.m4:3980: -1- AC_DEFUN([_LT_AC_LANG_F77_CONFIG], [AC_REQUIRE([AC_PROG_F77])
3504 AC_LANG_PUSH(Fortran 77)
3505
3506 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3507 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3508 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3509 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3510 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3511 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3512 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3513 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3514 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3515 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3516 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3517 _LT_AC_TAGVAR(module_cmds, $1)=
3518 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3519 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3520 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3521 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3522 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3523 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3524
3525 # Source file extension for f77 test sources.
3526 ac_ext=f
3527
3528 # Object file extension for compiled f77 test sources.
3529 objext=o
3530 _LT_AC_TAGVAR(objext, $1)=$objext
3531
3532 # Code to be used in simple compile tests
3533 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
3534
3535 # Code to be used in simple link tests
3536 lt_simple_link_test_code="      program t\n      end\n"
3537
3538 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3539 _LT_AC_SYS_COMPILER
3540
3541 # save warnings/boilerplate of simple test code
3542 _LT_COMPILER_BOILERPLATE
3543 _LT_LINKER_BOILERPLATE
3544
3545 # Allow CC to be a program name with arguments.
3546 lt_save_CC="$CC"
3547 CC=${F77-"f77"}
3548 compiler=$CC
3549 _LT_AC_TAGVAR(compiler, $1)=$CC
3550 _LT_CC_BASENAME([$compiler])
3551
3552 AC_MSG_CHECKING([if libtool supports shared libraries])
3553 AC_MSG_RESULT([$can_build_shared])
3554
3555 AC_MSG_CHECKING([whether to build shared libraries])
3556 test "$can_build_shared" = "no" && enable_shared=no
3557
3558 # On AIX, shared libraries and static libraries use the same namespace, and
3559 # are all built from PIC.
3560 case $host_os in
3561 aix3*)
3562   test "$enable_shared" = yes && enable_static=no
3563   if test -n "$RANLIB"; then
3564     archive_cmds="$archive_cmds~\$RANLIB \$lib"
3565     postinstall_cmds='$RANLIB $lib'
3566   fi
3567   ;;
3568 aix4* | aix5*)
3569   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3570     test "$enable_shared" = yes && enable_static=no
3571   fi
3572   ;;
3573 esac
3574 AC_MSG_RESULT([$enable_shared])
3575
3576 AC_MSG_CHECKING([whether to build static libraries])