Menu

#67 Teach ATLAS about NetBSD existence (at last)

open
nobody
None
5
2013-01-09
2009-02-21
No

It would be nice to see NetBSD support.
I'm using ATLAS on NetBSD for some time with following changes
(adapted to ATLAS 3.9.7):

--- CONFIG/include/atlconf.h.orig 2009-02-20 18:22:54.000000000 +0300
+++ CONFIG/include/atlconf.h 2009-02-21 20:30:30.000000000 +0300
@@ -6,12 +6,12 @@
#include <string.h>
#include <assert.h>

-#define NOS 13
+#define NOS 14
static char *osnam[NOS] =
{"UNKNOWN", "Linux", "SunOS", "SunOS4", "OSF1", "IRIX", "AIX",
- "Win9x", "WinNT", "WinSFU", "HPUX", "FreeBSD", "OSX"};
+ "Win9x", "WinNT", "WinSFU", "HPUX", "FreeBSD", "OSX", "NetBSD"};
enum OSTYPE {OSOther=0, OSLinux, OSSunOS, OSSunOS4, OSOSF1, OSIRIX, OSAIX,
- OSWin9x, OSWinNT, OSWinSFU, OSHPUX, OSFreeBSD, OSOSX};
+ OSWin9x, OSWinNT, OSWinSFU, OSHPUX, OSFreeBSD, OSOSX, OSNetBSD};
#define OSIsWin(OS_) ( ((OS_) == OSWinNT) || ((OS_) == OSWin9x) || \ ((OS_) == OSWinSFU) )

--- CONFIG/src/probe_OS.c.orig 2008-02-22 19:38:51.000000000 +0300
+++ CONFIG/src/probe_OS.c 2008-04-27 18:58:23.000000000 +0400
@@ -15,6 +15,7 @@
if (ierr == 0)
{
if(strstr(ln, "Linux")) OS = OSLinux;
+ else if (strstr(ln, "NetBSD")) OS = OSNetBSD;
else if(strstr(ln, "FreeBSD")) OS = OSFreeBSD;
else if (strstr(ln, "Darwin")) OS = OSOSX;
else if(strstr(ln, "SunOS"))

Discussion


Log in to post a comment.