Re: can autoconf determine if a preprocessor macro is defined or not?

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

 



Ed Hartnett <ed@xxxxxxxxxxxxxxxx> writes:

> But is there an autoconf way to solve this? I can see how to use
> autoconf to detect if a function can be found in a library
> (AC_CHECK_LIB), but how do you check if a preprocessor symbol is
> defined in a header file?

Why do you need autoconf for that?  The C preprocessor is perfectly
capable of doing it.

> Here's what I had to add to get my code to build. I would prefer if
> autoconf could add this to config.h, for example:

Just use AH_VERBATIM to add anything you like to config.h.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@xxxxxxx
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
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