Re: Detecting Autoconf and Including Additional M4 Files

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

 



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


_______________________________________________
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