libtool
[Top][All Lists]
Advanced

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

Re: Writing Autoconf tests


From: Peter Johansson
Subject: Re: Writing Autoconf tests
Date: Thu, 9 Mar 2017 09:41:35 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

Hi Yumiko,


On 03/09/2017 09:32 AM, Bob Friesenhahn wrote:
How should I write my macro so that the test program is
compiled and linked through the libtool program?

This is a facinating question.  I suspect that it would be necessary to temporarily re-define the CC environment variable and restore the original value when the test is completed.

What you are attempting to do is hardly ever done.

I have a few macros that I think might be useful for you.

http://dev.thep.lu.se/yat/svn/tags/0.14.2/m4/yat_lt_link_ifelse.m4

Have a look at
YAT_LT_LINK_IFELSE(PROG, [ACTION-IF-TRUE], [ACTION-IF-FALSE])

basically works like 'AC_LINK_IFELSE' but redefines $ac_link such that the linker is called via libtool.


Cheers,
Peter

reply via email to

[Prev in Thread] Current Thread [Next in Thread]