[Top][All Lists]

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

Re: Writing Rules

From: Kevin Ryde
Subject: Re: Writing Rules
Date: 05 Dec 2001 08:34:13 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

"Rev. Jonathan T Sage" <address@hidden> writes:
> #define IPL_VERSION = "IP Filter: v3.x.yy"
> I need to define IPF_4_3 if x=4, and not define it if x=3.

Perhaps something like (untested),

    if grep "IP Filter: v3\.4\." /usr/include/netinet/ipl.h >/dev/null; then
      AC_DEFINE(IPF_4_3, 1, [Define for IP Filter v3.4.x])

(Though whether it's particularly robust to be grepping particular
include files is another matter.)

reply via email to

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