autoconf
[Top][All Lists]
Advanced

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

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


From: Andreas Schwab
Subject: Re: can autoconf determine if a preprocessor macro is defined or not?
Date: Thu, 27 Jul 2006 14:49:52 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Ed Hartnett <address@hidden> 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, address@hidden
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."




reply via email to

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