--- gforth/configure.in 1998/06/04 17:10:30 1.35 +++ gforth/configure.in 1998/07/28 21:04:02 1.37 @@ -69,7 +69,6 @@ EOF fi AC_SUBST(CC) -AC_SUBST(GCCLDFLAGS) AC_SUBST(DEBUGFLAG) dnl the following macro produces a warning with autoconf-2.1 @@ -197,13 +196,19 @@ case "$host_cpu" in mips*) machine=mips #link text and data segment into the same 256M region! - GCCLDFLAGS="-Xlinker -T -Xlinker 10000000 -Xlinker -D -Xlinker 10400000" + AC_MSG_CHECKING([whether the linker accepts -D]) + OLDLDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -Xlinker -T -Xlinker 10000000 -Xlinker -D -Xlinker 10400000" + AC_TRY_LINK(,,ac_link_mips_d=yes,ac_link_mips_d=no) + test $ac_link_mips_d = yes||LDFLAGS="$OLDLDFLAGS -Xlinker -T -Xlinker 10000000" + AC_MSG_RESULT($ac_link_mips_d) ;; alpha*) machine=alpha ;; power*) machine=power + AC_CHECK_FUNC(_sync_cache_range,true,LIBOBJS="$LIBOBJS ../arch/power/_sync_cache_range.o") ;; *) echo "No direct threading support for $host_cpu, using indirect threading."