I am looking for an AC_CHECK_* function that let’s me change a behavior in my code depending on whether pppd/pppd.h contains
extern struct notifier *ipv6_up_notifier;
which was added recently. It is actually provided in pppd/ipc6cp.h:
struct notifier *ipv6_up_notifier = NULL;
I have tried with
AC_CHECK_DECLS(notifier *ipv6_up_notifier,,, [#include <pppd/pppd.h>])
AC_CHECK_DECLS(extern notifier *ipv6_up_notifier,,, [#include <pppd/pppd.h>])
AC_CHECK_DECLS(struct notifier *ipv6_up_notifier,,, [#include <pppd/pppd.h>])
AC_CHECK_DECLS(extern struct notifier *ipv6_up_notifier,,, [#include <pppd/pppd.h>])
but all this leads to
checking whether notifier *ipv6_up_notifier is declared... no
when ./configure’ing. Is it at all possible to check for extern’s?
As discussed in the comments, the first argument is variable name (without type):