Ossama Othman wrote:
>
> Hi Martin,
>
>
> BTW, are you using the AC_LIBTOOL_CXX macro, or are you appending
> manually? It looks like you're appending manually. I bet that's why
> the deplibs_check_method wasn't set properly for you. Sorry, I didn't
> document AC_LIBTOOL_CXX yet.
>
You're right, I wasn't using this macro. I was simply calling ltconfig
with --add-tag. I've retried with the AC_LIBTOOL_CXX macro, and the CXX
tag is correctly generated in this case. :)
The only problem I encountered using this macro is that libtoolize
failed to detect the macro and automatically copy the ltcf-cxx.sh file
in my source tree.
> > 2-) If libtool will indeed be able to generate different mixed
> > static/shared configurations for every language. How will the
> > automake/autoconf integration will
> > work. Will there be "--enable-LANG-shared" and so on flags to
> > autoconf? Will there be AC_ENABLE_LANG_SHARED macros to be used in
> > autoconf.in ?
>
> I haven't thought this far ahead. :-)
> I just wanted to get multi-language support working, and then tweak
> stuff afterwards.
>
> > 3-) Will the AC_PROG_LIBTOOL macro be intelligent enough to discover all
> > the languages used in the project, and create automatically a libtool
> > that supports all these languages?
>
> Wow, good question. This is again something I didn't think about but
> it seems like it might be useful. I won't have to look at
> implementing such a feature for a while, however. Does anyone have
> any thoughts on this?
Now that I'm aware of the AC_LIBTOOL_CXX macro, all my questions are
answered!
My second question arose because when I manually appended the tag using
ltconfig.sh, I had to respecify the linking modes. Using
AC_LIBTOOL_CXX, this doesn't have to be done, as they're correctly
inherited from C. I never had a project where I wished to link
differently in C and C++.
My third question's answer is obvious: Using AC_LIBTOOL_CXX, we can
explicitely specify that we need c++ support from libtool.
So to resume my situation, apart from having to manually copy
ltcf-cxx.sh into my source tree, libtool multi-languages is so far
working for me (including library dependencies) on:
Sparc Solaris 2.6, gnu c/c++ compiler (2.95.2), native ld
i386 Linux 2.2.12 (RedHat 6.1), gnu c/c++ compiler (2.95.2), GNU ld
(2.9.5)
Would it be useful to you if I ran the tests suite and sent you the
results for these 2 platforms or do you already have access to these
platforms?
I will also have to test it within a few weeks on some NCR unix machine,
with (hopefully) gnu compilers. I'll keep you informed then!
Thanks for supporting me even with development releases!
Martin
--
______________________________________________________________________________
Okiok Data ltd. | Sp�cialiste des solutions de s�curit�
d'entreprise
Tel. : (450) 681.1681 |
http://www.okiok.com | Specializing in enterprise security solutions