Re: checking for header/library mismatch, rpath problem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ please elide autoconf@ from followups, thanks ]

Hi Peter,

* Peter Breitenlohner wrote on Tue, Jun 29, 2010 at 10:36:32AM CEST:
> Here the macro we are using in TeX Live for such tests (C and C++).  Our
> purpose is to test properties of libraries that can be either
> (1) uninstalled libtool libraries already built when this configure runs,
> or (2) installed libraries -- libtool or not.

Good stuff.  Are you willing to turn this into a patch against git
Libtool?  Otherwise we'll put it on our todo list.  You might need
to sign papers though, at least if you're adding test coverage.

A general set of macros could be LT_USE_LIBTOOL_PUSH and _POP and could
adjust the AC_LANG setting of all configured libtool tags; the pop macro
could reset them to their original state afterwards; that would help for
encapsulation.  Or some better names I can't think of right now.

> # _KPSE_USE_LIBTOOL()
> # -------------------
> AC_DEFUN([_KPSE_USE_LIBTOOL],
> [## $0: Generate a libtool script for use in configure tests
> AC_PROVIDE_IFELSE([LT_INIT], ,
>                   [m4_fatal([$0: requires libtool])])[]dnl
> LT_OUTPUT
> m4_append([AC_LANG(C)],
> [ac_link="./libtool --mode=link --tag=CC $ac_link"
> ])[]dnl
> AC_PROVIDE_IFELSE([AC_PROG_CXX],
> [m4_append([AC_LANG(C++)],
> [ac_link="./libtool --mode=link --tag=CXX $ac_link"
> ])])[]dnl
> AC_LANG(_AC_LANG)[]dnl
> ]) # _KPSE_USE_LIBTOOL

Thanks,
Ralf

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux