Subject: Re: Detecting NetBSD 1.5
To: Michael Richardson <mcr@research.solidum.com>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-net
Date: 12/13/2000 19:14:11
On Wed, 13 Dec 2000, Michael Richardson wrote:

:   Is is a reasonable snippet of code for configure.in?
:   Or is there a better one. I need to detect IPv6 (for mrt). It currently
: detects KAME, but it then expects it to be in /usr/local/v6.
:
: AC_EGREP_CPP(yes, [
: #include <sys/param.h>
: #ifdef __NetBSD_Version__
: #if __NetBSD_Version__ > 105000000
: yes
: #endif
: #endif
: ], [actions])

Make that a >= and you'll be set.

However, if you're explicitly looking vor /usr/local/v6, couldn't you look
to see if <netinet/in6.h> exists in the cpp search path *before* looking for
KAME?  You could then skip the KAME check altogether and not worry about
whether it was NetBSD or some other OS that integrated IPv6, or even
someone explicitly setting CPPFLAGS for configure to slurp.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  http://www.wasabisystems.com/
-- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.