From e96c53f02d9b614c944f4a411aa8ded20a239fec Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Fri, 22 Jun 2007 08:09:25 +0000 Subject: [PATCH] Add initial trivial configuration for OpenBSD. This works well enough to build Scheme with liarc; whether there are other bugs lurking, I don't know, but I imagine that it is probably OK. --- v7/src/microcode/configure.ac | 6 +++++- v7/src/microcode/ux.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/v7/src/microcode/configure.ac b/v7/src/microcode/configure.ac index 6ff27515b..66bab9c80 100644 --- a/v7/src/microcode/configure.ac +++ b/v7/src/microcode/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT([MIT/GNU Scheme microcode], [15.1], [bug-mit-scheme@gnu.org], [mit-scheme]) -AC_REVISION([$Id: configure.ac,v 1.51 2007/06/22 02:31:20 cph Exp $]) +AC_REVISION([$Id: configure.ac,v 1.52 2007/06/22 08:09:25 riastradh Exp $]) AC_CONFIG_SRCDIR([boot.c]) AC_CONFIG_HEADERS([config.h]) AC_PROG_MAKE_SET @@ -836,6 +836,10 @@ netbsd*) LDFLAGS="${LDFLAGS} ${FOO}" fi ;; +openbsd*) + M4_FLAGS="${M4_FLAGS} -P SUPPRESS_LEADING_UNDERSCORE,1" + DO_GCC_TEST=yes + ;; solaris*) if test ${GCC} = yes; then DO_GCC_TESTS=yes diff --git a/v7/src/microcode/ux.h b/v7/src/microcode/ux.h index f4caa52f9..ad141423c 100644 --- a/v7/src/microcode/ux.h +++ b/v7/src/microcode/ux.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: ux.h,v 1.83 2007/04/22 16:31:23 cph Exp $ +$Id: ux.h,v 1.84 2007/06/22 08:09:25 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -76,6 +76,10 @@ USA. # define SYSTEM_VARIANT "NeXT" #endif +#ifdef __OpenBSD__ +# define SYSTEM_VARIANT "OpenBSD" +#endif + #ifdef __osf__ # define SYSTEM_VARIANT "OSF" #endif -- 2.25.1