Re: Writing Autoconf tests

2017-03-09 Thread Thomas Jahns
Hello, On 03/08/2017 08:51 PM, Yumiko wrote: How should I write my macro so that the test program is compiled and linked through the libtool program? I've used a macro, originally from TeX-Live, that I extended for Fortran and which simply changes the compiler etc. to use libtool. I found t

Re: Writing Autoconf tests

2017-03-08 Thread Peter Johansson
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 res

Re: Writing Autoconf tests

2017-03-08 Thread Bob Friesenhahn
On Wed, 8 Mar 2017, Yumiko wrote: I have a problem with Libtool when writing test programs with Autoconf. My macro modifies LIBS and uses the AC_RUN_IFELSE macro to link and run a test program, but AC_RUN_IFELSE uses gcc/g++ directly, not through libtool, and the result is that .la files are no

Writing Autoconf tests

2017-03-08 Thread Yumiko
I have a problem with Libtool when writing test programs with Autoconf. My macro modifies LIBS and uses the AC_RUN_IFELSE macro to link and run a test program, but AC_RUN_IFELSE uses gcc/g++ directly, not through libtool, and the result is that .la files are not inspected and required flags are th