autoconf
[Top][All Lists]
Advanced

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

Re: using content of an include file in configure.ac ...


From: Eric Blake
Subject: Re: using content of an include file in configure.ac ...
Date: Fri, 29 Apr 2011 09:04:38 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9

On 04/29/2011 09:08 AM, address@hidden wrote:
> Hi,
> 
> I have an include file (belongs to an external library, defs.mk) that
> contains bunch of definitions such as,
> 
> F90COMPILER=mpif90
> F90LINKER=mpif90
> F90COMPILEOPTS=-O -fPIC -m64 -mcmodel=small -threads  -openmp

So this is a file that you want included in your Makefile, right?

> 
> in it and i just want to use these definitions in the configure.ac file
> without hard coding them. Is there any specific autoconf macro to do that?

No need for an autoconf macro.  If you are using automake, then this is
an automake question (but yes, automake has support for including
makefile fragments in your Makefile.am).  If you are not using automake,
then write the same include statement in your Makefile.in that you were
used to seeing in your Makefile, and autoconf won't care (autoconf just
substitutes the @text@ markers in Makefile.in, it doesn't do any parsing
of those contents; and automake parses Makefile.am contents to create
Makefile.in).

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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