Subject: Re: i386: identifying elf systems
To: Peter Cooper <>
From: D'Arcy J.M. Cain <>
List: current-users
Date: 02/23/2000 23:38:37
Thus spake Peter Cooper
> What is the canonical way of identifying whether 
> a NetBSD system is primarily an elf or a.out 
> system? Release numbers don't seem to be the way 
> to go, due to the staged deployment across 
> different ports.

if echo __ELF__ | ${CC} -E - | grep -q __ELF__
then echo "Not ELF"
else echo "It is an ELF system"

D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.