Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2001 11:42:55 +0200
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Alex Kapranoff <kapr@acm.org>
Cc:        ports@FreeBSD.ORG
Subject:   Re: Conditionalizing MACHINE_CPU checks
Message-ID:  <3AB5D49E.3DB82C00@FreeBSD.org>
References:  <20010319091353.A4146@kapran.bitmcnit.bryansk.su>

next in thread | previous in thread | raw e-mail | index | archive | help
Alex Kapranoff wrote:

> Good day to all.
>
> Do I really need to wrap MACHINE_CPU tests (like ${MACHINE_CPU:Mmmx})
> inside ${OSVERSION} >= 500018 tests?
>
> Or is it safe to assume that MACHINE_CPU:Mmmx will just fail on older
> systems and go with it?
>
> E.g. is it ok to do tests in this way:
>
> .if defined(WITH_MMX) || ${MACHINE_CPU:Mmmx}
> SRCS+=  mmx.c
> .elif ${ARCH} == "i386"
>         @${ECHO_MSG} "You can define WITH_MMX to use MMX instructions"
> .endif

No, because ${MACHINE_CPU:Mmmx}will be considered as an invalid conditional if
MACHINE_CPU is undefined.

-Maxim


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AB5D49E.3DB82C00>