Diff for /gforth/configure.in between versions 1.88 and 1.91

version 1.88, 2002/11/24 21:02:04 version 1.91, 2002/12/23 22:14:05
Line 36  AC_ARG_ENABLE(force-reg, Line 36  AC_ARG_ENABLE(force-reg,
                           the machine.h file. This can cause a good speedup,                            the machine.h file. This can cause a good speedup,
                           but also incorrect code with some gcc versions on                            but also incorrect code with some gcc versions on
                           some processors (default disabled).],                            some processors (default disabled).],
 AC_DEFINE(FORCE_REG))  AC_DEFINE(FORCE_REG,,[Define if you want to use explicit register declarations for better performance or for more convenient CODE words (does not work with all GCC versions on all machines)]))
   
 AC_ARG_WITH(debug,  AC_ARG_WITH(debug,
 [  --with-debug     specifies option -g to compile with debug info (default)  [  --with-debug     specifies option -g to compile with debug info (default)
Line 117  if test "$ac_cv_int_type_cell" != int; t Line 117  if test "$ac_cv_int_type_cell" != int; t
         echo "Since you don't have a proper C on this machine, that's one more reason"          echo "Since you don't have a proper C on this machine, that's one more reason"
         echo "to use Forth;-)"          echo "to use Forth;-)"
 fi  fi
 AC_DEFINE_UNQUOTED(CELL_TYPE,$ac_cv_int_type_cell)  AC_DEFINE_UNQUOTED(CELL_TYPE,$ac_cv_int_type_cell,[an integer type that is as long as a pointer])
   
 ac_cv_int_type_double_cell=none  ac_cv_int_type_double_cell=none
 case `expr 2 '*' "$ac_cv_sizeof_char_p"` in  case `expr 2 '*' "$ac_cv_sizeof_char_p"` in
Line 140  if test "$ac_cv_int_type_double_cell" = Line 140  if test "$ac_cv_int_type_double_cell" =
         echo 'long longs for your machine (the GCC manual states that they \"are twice as'          echo 'long longs for your machine (the GCC manual states that they \"are twice as'
         echo "long as \`long int\'\")."          echo "long as \`long int\'\")."
         AC_LIBOBJ(dblsub)          AC_LIBOBJ(dblsub)
         AC_DEFINE(BUGGY_LONG_LONG)          AC_DEFINE(BUGGY_LONG_LONG,,[define this if there is no working DOUBLE_CELL_TYPE on your machine])
 else  else
   AC_DEFINE_UNQUOTED(DOUBLE_CELL_TYPE,$ac_cv_int_type_double_cell)    AC_DEFINE_UNQUOTED(DOUBLE_CELL_TYPE,$ac_cv_int_type_double_cell,[an integer type that is twice as long as a pointer])
 fi  fi
   
 AC_MSG_CHECKING([whether the linker accepts -export-dynamic])  AC_MSG_CHECKING([whether the linker accepts -export-dynamic])
Line 205  case "$host_cpu" in Line 205  case "$host_cpu" in
                 AC_MSG_RESULT($ac_link_mips_t)                  AC_MSG_RESULT($ac_link_mips_t)
                 fixme #dynamically generated code should be in the same 256MB                  fixme #dynamically generated code should be in the same 256MB
                 # region as the text segment; no indirect threading necessary                  # region as the text segment; no indirect threading necessary
                 test $ac_link_mips_t = yes||(echo cannot link text and data into same 256M region, using indirect threading; AC_DEFINE(INDIRECT_THREADED))                  test $ac_link_mips_t = yes||(echo cannot link text and data into same 256M region, using indirect threading; AC_DEFINE(INDIRECT_THREADED,,[Define if you want to force an indirect threaded code implementation]))
                 AC_MSG_CHECKING([whether the linker accepts -D])                  AC_MSG_CHECKING([whether the linker accepts -D])
                 OLDLDFLAGS=$LDFLAGS                  OLDLDFLAGS=$LDFLAGS
                 LDFLAGS="$LDFLAGS -Xlinker -D -Xlinker 10400000"                  LDFLAGS="$LDFLAGS -Xlinker -D -Xlinker 10400000"
Line 257  case "$host_os" in Line 257  case "$host_os" in
 esac  esac
 AC_SUBST(EXE)  AC_SUBST(EXE)
 AC_SUBST(DIRSEP)  AC_SUBST(DIRSEP)
 AC_DEFINE_UNQUOTED(DIRSEP,'$DIRSEP')  AC_DEFINE_UNQUOTED(DIRSEP,'$DIRSEP',[a directory separator character])
   
 dnl Now a little support for DOS/DJGCC  dnl Now a little support for DOS/DJGCC
 AC_SUBST(GFORTH_EXE)  AC_SUBST(GFORTH_EXE)
Line 271  GFORTHDITC_EXE="" Line 271  GFORTHDITC_EXE=""
   
 PATHSEP=":"  PATHSEP=":"
 AC_SUBST(PATHSEP)  AC_SUBST(PATHSEP)
 AC_DEFINE_UNQUOTED(PATHSEP,'$PATHSEP')  AC_DEFINE_UNQUOTED(PATHSEP,'$PATHSEP',[a path separator character])
   
 AC_SUBST(FORTHSIZES)  AC_SUBST(FORTHSIZES)
   
 if test "$PEEPHOLE" = "yes"  if test "$PEEPHOLE" = "yes"
 then  then
    PEEPHOLEFLAG="true"     PEEPHOLEFLAG="true"
    AC_DEFINE(HAS_PEEPHOLE)     AC_DEFINE(HAS_PEEPHOLE,,[Define if you want to use peephole optimization])
 else  else
    PEEPHOLEFLAG="false"     PEEPHOLEFLAG="false"
 fi  fi
Line 307  else Line 307  else
   KERNEL="kernl16l.fi kernl16b.fi kernl32l.fi kernl32b.fi kernl64l.fi kernl64b.fi"    KERNEL="kernl16l.fi kernl16b.fi kernl32l.fi kernl32b.fi kernl64l.fi kernl64b.fi"
 fi  fi
   
   #check how to do asm(".skip 16")
   for i in ".skip 16" ".block 16" ".org .+16" ".=.+16" ".space 16"
   do
           AC_MSG_CHECKING([whether asm("$i") skips 16 bytes])
           AC_TRY_RUN(
   int foo(int);
   main()
   {
     exit(foo(0)!=16);
   }
   int foo(int x)
   {
     if (x) {
     label1:
       asm("$i");
     label2:
     }
     return (&&label2)-(&&label1);
   }
           ,AC_MSG_RESULT(yes)
            AC_DEFINE_UNQUOTED(SKIP16,asm("$i"),statement for skipping 16 bytes)
            break
           ,AC_MSG_RESULT(no),)
           
   done    
   
   
 dnl Checks for programs.  dnl Checks for programs.
 AC_PROG_LN_S  AC_PROG_LN_S
 dnl AM_PROG_INSTALL #performed by AM_INIT_AUTOMAKE  dnl AM_PROG_INSTALL #performed by AM_INIT_AUTOMAKE
Line 324  AC_REPLACE_FUNCS(memmove strtoul pow10 s Line 351  AC_REPLACE_FUNCS(memmove strtoul pow10 s
 AC_CHECK_FUNCS(dlopen sys_siglist getrusage)  AC_CHECK_FUNCS(dlopen sys_siglist getrusage)
 AC_DECL_SYS_SIGLIST  AC_DECL_SYS_SIGLIST
 AC_CHECK_FUNC(getopt_long,true,AC_LIBOBJ(getopt.$ac_objext getopt1))  AC_CHECK_FUNC(getopt_long,true,AC_LIBOBJ(getopt.$ac_objext getopt1))
 AC_CHECK_FUNCS(rint expm1 log1p)  AC_CHECK_FUNCS(expm1 log1p)
 AC_REPLACE_FUNCS(ecvt)  AC_REPLACE_FUNCS(rint ecvt)
 dnl No check for select, because our replacement is no good under  dnl No check for select, because our replacement is no good under
 dnl anything but DOS  dnl anything but DOS
 AC_CHECK_HEADERS(sys/mman.h fnmatch.h)  AC_CHECK_HEADERS(sys/mman.h fnmatch.h)

Removed from v.1.88  
changed lines
  Added in v.1.91


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>