autoconf
[Top][All Lists]
Advanced

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

Re: Detecting Autoconf and Including Additional M4 Files


From: Christopher Key
Subject: Re: Detecting Autoconf and Including Additional M4 Files
Date: Thu, 04 Oct 2007 19:05:14 +0100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Ralf Wildenhues wrote:
Hello Christopher,

* Christopher Key wrote on Mon, Sep 24, 2007 at 02:56:45PM CEST:
Eric Blake wrote:
According to Christopher Key on 9/24/2007 5:15 AM:
Hence, what I'd like to do is to be able to
detect whether autoconf has been used, and act appropriately
Why not just a simple AC_DEFINE using a macro name of your choice, that
you know will not be injected into your compilation if you didn't run
autoconf?
Will do, I just didn't want to reinvent the wheel! Had there been a standard way of doing this (or a standard name for the define),[...]

You can use PACKAGE_NAME or one of the other PACKAGE* macros for this if
you like, provided that you have used the modern AC_INIT invocation with
two or more arguments.

Hope that helps.

Cheers,
Ralf

Thanks Ralf,

I've gone for a dead simple AC_DEFINE(USED_AUTOCONF) as it makes my intent nice and clear.

Regards,

Chris





reply via email to

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