--- gforth/configure.in 2005/01/21 09:42:12 1.145 +++ gforth/configure.in 2005/01/23 09:55:12 1.147 @@ -47,6 +47,18 @@ AC_ARG_ENABLE(force-ll, AC_DEFINE(FORCE_LL,,[Define if you want to use explicit long long declarations for better performance (does not work with all GCC versions on all machines)])) AC_SUBST(PROFEXES) AC_SUBST(PROFOBJS) + +AC_ARG_ENABLE(gcc-pr15242-workaround, + AC_HELP_STRING([--disable-gcc-pr15242-workaround],[Disables + dynamic code generation on some versions of gcc + (slowdown~2 on Athlon) and causes slower building + of gforth (but gforth speedups) on others. + (default enabled)]), + ,enable_gcc_pr15242_workaround=yes) +test "$enable_gcc_pr15242_workaround" = "no"|| +AC_DEFINE(GCC_PR15242_WORKAROUND,,[Define if you want to get dynamic code +generation on gccs affected by PR15242]) + AC_ARG_ENABLE(prof, [ --enable-prof Build gforth-prof, which outputs frequently occuring sequences of primitives.], @@ -167,8 +179,6 @@ case "$host_cpu" in ;; x86_64) machine=amd64 - ac_includes_default="$ac_includes_default -#include \"arch/generic/128bit.h\"" ;; ia64*) machine=ia64 @@ -230,6 +240,11 @@ case "$host_cpu" in esac AC_SUBST(host) +if test "${enable_force_ll+set}" = set; then + ac_includes_default="$ac_includes_default +#include \"arch/generic/128bit.h\"" +fi + dnl the following macro produces a warning with autoconf-2.1 AC_CHECK_SIZEOF(char *) case "$ac_cv_sizeof_char_p" in