Annotation of gforth/configure.cmd, revision 1.6
1.2 pazsan 1: /*
1.6 ! pazsan 2: Copyright 1996-1997 Free Software Foundation, Inc.
1.2 pazsan 3:
4: This file is part of Gforth.
5:
6: Gforth is free software; you can redistribute it and/or
7: modify it under the terms of the GNU General Public License
8: as published by the Free Software Foundation; either version 2
9: of the License, or (at your option) any later version.
10:
11: This program is distributed in the hope that it will be useful,
12: but WITHOUT ANY WARRANTY; without even the implied warranty of
13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: GNU General Public License for more details.
15:
16: You should have received a copy of the GNU General Public License
17: along with this program; if not, write to the Free Software
18: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19: */
20: say "*** Configuring for OS/2 with EMX 3.0 GNU C ***"
21:
22: parse arg args
23:
24: THREAD="i"
25: FREGS="n"
26:
27: do while args \== ""
28: parse var args arg args
29:
30: select
31: when arg="--enable-direct-threaded" then THREAD="d"
32: when arg="--enable-indirect-threaded" then THREAD="i"
33: when arg="--enable-force-reg" then FREGS="y"
34: when arg="--help" then do
35: say "--enable and --with options recognized:"
36: say " --enable-force-reg Use explicit register declarations if they appear in"
37: say " the machine.h file. This can cause a good speedup,"
38: say " but also incorrect code with some gcc versions on"
39: say " some processors (default disabled)."
40: say " --enable-direct-threaded Force direct threading. This may not work on"
41: say " some machines and may cause slowdown on others."
42: say " (default processor-dependent)"
43: say " --enable-indirect-threaded Force indirect threading. This can cause a"
44: say " slowdown on some machines."
45: say " (default processor-dependent)"
46: end
47: otherwise
48: do
49: say "*** Unknown option:" arg
50: call Usage
51: end
52: end
53:
54: end
55:
56: copy makefile.os2 makefile
57: copy kernl32l.fi kernel.fi
58: copy 386.h machine.h
59: copy os2conf.h config.h
60: copy startup.fs startup.unx
61: copy startup.dos startup.fs
62: copy history.dos history.fs
63: if THREAD="i" THEN DO
64: call lineout config.h, "#ifndef INDIRECT_THREADED"
65: call lineout config.h, "#define INDIRECT_THREADED 1"
66: call lineout config.h, "#endif"
67: end
68: IF THREAD="d" THEN do
69: call lineout config.h, "#ifndef DIRECT_THREADED"
70: call lineout config.h, "#define DIRECT_THREADED 1"
71: call lineout config.h, "#endif"
72: end
73: IF FREGS="y" THEN do
74: call lineout config.h, "#ifndef FORCE_REG"
75: call lineout config.h, "#define FORCE_REG 1"
76: call lineout config.h, "#endif"
77: end
1.5 pazsan 78: call lineout version.h1, 'static char gforth_version[]="0.3.0";'
79: call lineout version.fs1, ': version-string s" 0.3.0" ;'
1.6 ! pazsan 80: call lineout 'version-stamp', '0.3.0'
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>