--- gforth/configure.in 2003/01/27 21:28:48 1.107 +++ gforth/configure.in 2003/01/31 22:45:11 1.111 @@ -120,7 +120,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 +193,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 +281,35 @@ 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]) +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) @@ -296,7 +319,7 @@ AC_SUBST(disasm_fs) case "$host_os" in *win32|cygwin) - DIRSEP="\\" + DIRSEP="\\\\" ;; *darwin*) #Darwin uses some funny preprocessor by default; eliminate it: @@ -411,7 +434,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)