[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Writing Rules
From: |
Dan Kegel |
Subject: |
RE: Writing Rules |
Date: |
Tue, 4 Dec 2001 16:11:04 -0800 |
Kevin Ryde wrote:
> 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])
> fi
>
> (Though whether it's particularly robust to be grepping particular
> include files is another matter.)
You can't assume the include files are in /usr/include. Best to use
the proper macro for this, namely AC_EGREP_HEADER or AC_EGREP_CPP. See
http://www.gnu.org/manual/autoconf-2.52/html_node/autoconf_67.html
e.g.
AC_EGREP_HEADER("IP Filter: v3\.4\.", netinet/ipl.h, AC_DEFINE(IPF_4_3, 1,
[Define for IP Filter v3.4.x]))
or something like that. (Untested, sorry.)
This matters a lot to me because I want every package to be
cross-compile-friendly...
- Dan
- Writing Rules, Rev. Jonathan T Sage, 2001/12/03
- RE: Writing Rules,
Dan Kegel <=