version 1.128, 2003/08/17 22:52:33
|
version 1.133, 2003/08/28 16:08:30
|
Line 21 dnl Process this file with autoconf to p
|
Line 21 dnl Process this file with autoconf to p
|
|
|
dnl We use some automake macros here, |
dnl We use some automake macros here, |
dnl but don't use automake for creating Makefile.in |
dnl but don't use automake for creating Makefile.in |
AC_INIT([gforth],[0.6.1-20030806],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) |
AC_INIT([gforth],[0.6.2],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) |
AC_PREREQ(2.54) |
AC_PREREQ(2.54) |
#snapshots have numbers major.minor.release-YYYYMMDD |
#snapshots have numbers major.minor.release-YYYYMMDD |
#note that lexicographic ordering must be heeded. |
#note that lexicographic ordering must be heeded. |
#I.e., 0.4.1-YYYYMMDD must not exist before 0.4.1! |
#I.e., 0.4.1-YYYYMMDD must not exist before 0.4.1! |
UPDATED="August 6, 2003" |
UPDATED="August 25, 2003" |
AC_SUBST(UPDATED) |
AC_SUBST(UPDATED) |
AC_CONFIG_HEADERS(engine/config.h) |
AC_CONFIG_HEADERS(engine/config.h) |
|
|
Line 136 case "$host_cpu" in
|
Line 136 case "$host_cpu" in
|
AC_LIBOBJ(../arch/hppa/cache) |
AC_LIBOBJ(../arch/hppa/cache) |
#LDFLAGS="$LDFLAGS -Xlinker -N" |
#LDFLAGS="$LDFLAGS -Xlinker -N" |
LIBS="$LIBS -L/lib/pa1.1/" |
LIBS="$LIBS -L/lib/pa1.1/" |
|
#executing dynamically generated code produced segfaults on |
|
#the only HPPA machine that could waste code space, so |
|
#disable it by default |
|
no_dynamic_default=1 |
|
AC_MSG_WARN(Disabling dynamic native code generation by default (speed penalty factor ~2)) |
;; |
;; |
sparc*) |
sparc*) |
machine=sparc |
machine=sparc |
Line 155 case "$host_cpu" in
|
Line 160 case "$host_cpu" in
|
CFLAGS="$CFLAGS -march=pentium" |
CFLAGS="$CFLAGS -march=pentium" |
AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1 -m486") |
AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1 -m486") |
;; |
;; |
|
x86_64) |
|
machine=amd64 |
|
;; |
#generic should work for IA64 |
#generic should work for IA64 |
# ia64*) |
# ia64*) |
# machine=ia64 |
# machine=ia64 |
Line 323 AC_TRY_COMPILE(,,ac_nocrossjumping=yes;E
|
Line 331 AC_TRY_COMPILE(,,ac_nocrossjumping=yes;E
|
CFLAGS="$CFLAGS_1" |
CFLAGS="$CFLAGS_1" |
AC_MSG_RESULT($ac_nocrossjumping) |
AC_MSG_RESULT($ac_nocrossjumping) |
|
|
|
# Try if GCC understands __attribute__((unused)) |
|
AC_MSG_CHECKING([how to suppress 'unused variable' warnings]) |
|
AC_TRY_COMPILE(,[int __attribute__((unused)) foo;], MAYBE_UNUSED='__attribute__((unused))',) |
|
AC_DEFINE_UNQUOTED(MAYBE_UNUSED,$MAYBE_UNUSED,[attribute for possibly unused variables]) |
|
AC_MSG_RESULT($MAYBE_UNUSED) |
|
|
AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) |
AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) |
AC_SUBST(asm_fs) |
AC_SUBST(asm_fs) |
|
|
Line 450 AC_CHECK_LIB(callback,__vacall_r)
|
Line 464 AC_CHECK_LIB(callback,__vacall_r)
|
AC_CHECK_LIB(vacall,vacall) |
AC_CHECK_LIB(vacall,vacall) |
AC_CHECK_LIB(trampoline,alloc_trampoline) |
AC_CHECK_LIB(trampoline,alloc_trampoline) |
FFCALLFLAG="false" |
FFCALLFLAG="false" |
test $ac_cv_lib_avcall___builtin_avcall = yes && FFCALLFLAG="true" && AC_DEFINE(HAS_FFCALL,,[define this if you want to use the ffcall libraries]) |
OLDCALLFLAG="true" |
|
test $ac_cv_lib_avcall___builtin_avcall = yes && FFCALLFLAG="true" && OLDCALLFLAG="false" && AC_DEFINE(HAS_FFCALL,,[define this if you want to use the ffcall libraries]) |
|
test $ac_cv_lib_avcall___builtin_avcall = no && AC_DEFINE(HAS_OLDCALL,,[define this if you want to use the old call libraries]) |
AC_SUBST(FFCALLFLAG) |
AC_SUBST(FFCALLFLAG) |
|
AC_SUBST(OLDCALLFLAG) |
if test "$host_os" != "nextstep3" |
if test "$host_os" != "nextstep3" |
then |
then |
AC_FUNC_MEMCMP |
AC_FUNC_MEMCMP |