[gforth] / gforth / configure.cmd  

gforth: gforth/configure.cmd

Diff for /gforth/configure.cmd between version 1.1 and 1.2

version 1.1, Sun Oct 6 22:24:15 1996 UTC version 1.2, Mon Nov 4 22:58:44 1996 UTC
Line 1 
Line 1 
 @echo off  /*
 /* Copyright 1995 Free Software Foundation, Inc.  Copyright 1995 Free Software Foundation, Inc.
   
  This file is part of Gforth.   This file is part of Gforth.
   
Line 17 
Line 17 
  along with this program; if not, write to the Free Software   along with this program; if not, write to the Free Software
  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */  */
 echo *** Configuring for OS/2 with EMX 3.0 GNU C ***  say "*** Configuring for OS/2 with EMX 3.0 GNU C ***"
 THREAD = i  
 FREGS = n  parse arg args
 :switches  
 IF "%1"=="--enable-direct-threaded" then THREAD=d  THREAD="i"
 IF "%1"=="--enable-indirect-threaded" then THREAD=i  FREGS="n"
 IF "%1"=="--enable-force-reg" then FREGS=y  
 shift  do while args \== ""
 if "%1"!="" goto switches     parse var args arg args
   
      select
         when arg="--enable-direct-threaded" then THREAD="d"
         when arg="--enable-indirect-threaded" then THREAD="i"
         when arg="--enable-force-reg" then FREGS="y"
         when arg="--help" then do
           say "--enable and --with options recognized:"
           say "  --enable-force-reg      Use explicit register declarations if they appear in"
           say "                          the machine.h file. This can cause a good speedup,"
           say "                          but also incorrect code with some gcc versions on"
           say "                          some processors (default disabled)."
           say "  --enable-direct-threaded      Force direct threading. This may not work on"
           say "                                some machines and may cause slowdown on others."
           say "                                (default processor-dependent)"
           say "  --enable-indirect-threaded    Force indirect threading. This can cause a"
           say "                                slowdown on some machines."
           say "                                (default processor-dependent)"
         end
       otherwise
         do
           say "*** Unknown option:" arg
           call Usage
         end
     end
   
   end
   
 copy makefile.os2 makefile  copy makefile.os2 makefile
 copy kernl32l.fi kernel.fi  copy kernl32l.fi kernel.fi
 copy 386.h machine.h  copy 386.h machine.h
Line 33 
Line 60 
 copy startup.fs startup.unx  copy startup.fs startup.unx
 copy startup.dos startup.fs  copy startup.dos startup.fs
 copy history.dos history.fs  copy history.dos history.fs
 if THREAD == 'i' then do  if THREAD="i" THEN DO
         ECHO #ifndef INDIRECT_THREADED >>config.h          call lineout config.h, "#ifndef INDIRECT_THREADED"
         ECHO #define INDIRECT_THREADED 1 >>config.h          call lineout config.h, "#define INDIRECT_THREADED 1"
         ECHO #endif >>config.h          call lineout config.h, "#endif"
 end  end
 if THREAD == 'd' then do  IF THREAD="d" THEN do
         ECHO #ifndef DIRECT_THREADED >>config.h          call lineout config.h, "#ifndef DIRECT_THREADED"
         ECHO #define DIRECT_THREADED 1 >>config.h          call lineout config.h, "#define DIRECT_THREADED 1"
         ECHO #endif >>config.h          call lineout config.h, "#endif"
 end  end
 if FREGS == 'y' then do  IF FREGS="y" THEN do
         ECHO #ifndef FORCE_REG >>config.h          call lineout config.h, "#ifndef FORCE_REG"
         ECHO #define FORCE_REG 1 >>config.h          call lineout config.h, "#define FORCE_REG 1"
         ECHO #endif >>config.h          call lineout config.h, "#endif"
 end  end
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help