--- gforth/configure.in 2003/01/27 08:03:46 1.106 +++ gforth/configure.in 2003/05/04 08:28:28 1.120 @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -#Copyright (C) 1995,1996,1997,1998,2000 Free Software Foundation, Inc. +#Copyright (C) 1995,1996,1997,1998,2000,2003 Free Software Foundation, Inc. #This file is part of Gforth. @@ -20,11 +20,12 @@ dnl Process this file with autoconf to p dnl We use some automake macros here, dnl but don't use automake for creating Makefile.in -AC_INIT([gforth],[0.5.9-20030127],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) +AC_INIT([gforth],[0.6.1],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) +AC_PREREQ(2.54) #snapshots have numbers major.minor.release-YYYYMMDD #note that lexicographic ordering must be heeded. #I.e., 0.4.1-YYYYMMDD must not exist before 0.4.1! -UPDATED="27 January 2003" +UPDATED="March 11, 2003" AC_SUBST(UPDATED) AC_CONFIG_HEADERS(engine/config.h) @@ -120,7 +121,7 @@ case "$host_cpu" in machine=hppa $srcdir/mkinstalldirs arch/hppa AC_LIBOBJ(../arch/hppa/cache) - LDFLAGS="$LDFLAGS -Xlinker -N" + #LDFLAGS="$LDFLAGS -Xlinker -N" LIBS="$LIBS -L/lib/pa1.1/" ;; sparc*) @@ -193,7 +194,6 @@ case "$host_cpu" in AC_MSG_WARN(Disabling dynamic native code generation by default (speed penalty factor ~2)) esac AC_SUBST(host) -AC_SUBST(ENGINE_FLAGS) dnl the following macro produces a warning with autoconf-2.1 AC_CHECK_SIZEOF(char *) @@ -282,11 +282,33 @@ test $ac_cv_sizeof_off_t -gt $ac_cv_size ac_small_off_t=$? AC_DEFINE_UNQUOTED(SMALL_OFF_T,$ac_small_off_t,[1 if off_t fits in a Cell]) -# Try if GCC understands -fno-cross-jump +ENGINE_FLAGS= +AC_SUBST(ENGINE_FLAGS) + +# Try if GCC understands -fno-gcse + +AC_MSG_CHECKING([if $CC understands -fno-gcse]) +CFLAGS_1="$CFLAGS" +CFLAGS="$CFLAGS -fno-gcse" +AC_TRY_COMPILE(,,ac_nogcse=yes;ENGINE_FLAGS="$ENGINE_FLAGS -fno-gcse",ac_nogcse=no) +CFLAGS="$CFLAGS_1" +AC_MSG_RESULT($ac_nogcse) +# Try if GCC understands -fno-strict-aliasing +AC_MSG_CHECKING([if $CC understands -fno-strict-aliasing]) +CFLAGS_1="$CFLAGS" +CFLAGS="$CFLAGS -fno-strict-aliasing" +AC_TRY_COMPILE(,,ac_nostrictaliasing=yes;ENGINE_FLAGS="$ENGINE_FLAGS -fno-strict-aliasing",ac_nostrictaliasing=no) +CFLAGS="$CFLAGS_1" +AC_MSG_RESULT($ac_nostrictaliasing) + +# Try if GCC understands -fno-cross-jump +AC_MSG_CHECKING([if $CC understands -fno-cross-jump]) CFLAGS_1="$CFLAGS" CFLAGS="$CFLAGS -fno-cross-jump" -AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1") +AC_TRY_COMPILE(,,ac_nocrossjump=yes;ENGINE_FLAGS="$ENGINE_FLAGS -fno-cross-jump",ac_nocrossjump=no) +CFLAGS="$CFLAGS_1" +AC_MSG_RESULT($ac_nocrossjump) AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) AC_SUBST(asm_fs) @@ -294,24 +316,22 @@ AC_SUBST(asm_fs) AC_CHECK_PROG(disasm_fs,disasm.fs,arch/$machine/disasm.fs,,$srcdir/arch/$machine) AC_SUBST(disasm_fs) +AC_PATH_PROG(INSTALL_INFO,install-info,[echo '>>>>Please make info dir entry:'],$PATH:/sbin:/usr/sbin:/usr/local/sbin) + case "$host_os" in - *win32) - EXE=".exe" - DIRSEP="\\" + *win32|cygwin) + DIRSEP="\\\\" ;; *darwin*) #Darwin uses some funny preprocessor by default; eliminate it: AC_MSG_NOTICE([using -traditional-cpp on Darwin]) - CFLAGS="$CFLAGS -traditional-cpp" - EXE="" + CFLAGS="$CFLAGS -no-cpp-precomp" DIRSEP="/" ;; *) - EXE="" DIRSEP="/" ;; esac -AC_SUBST(EXE) AC_SUBST(DIRSEP) AC_DEFINE_UNQUOTED(DIRSEP,'$DIRSEP',[a directory separator character]) @@ -415,7 +435,7 @@ fi AC_REPLACE_FUNCS(memmove strtoul pow10 strerror strsignal atanh) AC_FUNC_FSEEKO AC_CHECK_FUNCS(ftello dlopen sys_siglist getrusage) -AC_CHECK_TYPES(stack_t) +AC_CHECK_TYPES(stack_t,,,[#include ]) AC_DECL_SYS_SIGLIST AC_CHECK_FUNC(getopt_long,true,AC_LIBOBJ(getopt); AC_LIBOBJ(getopt1)) AC_CHECK_FUNCS(expm1 log1p)