[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to check for a #DEFINE?
From: |
Václav Haisman |
Subject: |
Re: How to check for a #DEFINE? |
Date: |
Mon, 15 Mar 2021 11:25:52 +0100 |
There is a macro in the archive for this:
https://www.gnu.org/software/autoconf-archive/ax_check_define.html
On Sun, Mar 14, 2021 at 11:57 PM Dan Mahoney <danm@prime.gushi.org> wrote:
>
> All,
>
> One of OpenDMARC’s users has commented that on the musl c library, the
> defines NETDB_SUCCESS and NETDB_INTERNAL are absent.
>
> While we could add:
>
> +#ifndef NETDB_INTERNAL
> +#define NETDB_INTERNAL (-1)
> +#endif
>
> To our own code, this feels like something autoconf should be able to test
> for and do for us.
>
> But I can’t seem to figure out how, without running AC_COMPILE_IFELSE. If
> that’s the answer, I’m willing to try it (or, as above, just add the ifdefine
> to our code), I just want to make sure I’m not missing something obvious.
>
> I’ve had to do some autoconf-bashing since we got a bug report to support
> 2.70, so it’s making me want to understand the WHOLE THING. Which is turning
> out to be a journey.
>
> -Dan
--
VH