VERSION = 1.7.0
# URL = http://www.linalg.org
URL = https://github.com/linbox-team/linbox/archive/refs/tags
TARFILE = v$(VERSION).tar.gz

#URL = http://macaulay2.com/Downloads/OtherSourceCode
PRECONFIGURE = autoreconf -i

#PATCHFILE = @abs_srcdir@/patch-$(VERSION)

# linking linbox as a shared library is bad, because then under Mac OS X its static constructors
# get run before ours do, and it calls our "operator new", which calls GC_malloc, before we've
# had a chance to initialize it.
CONFIGOPTIONS += --disable-shared 

ifeq (@DEBUG@,yes)
CONFIGOPTIONS += --enable-debug
endif

include ../Makefile.library
Makefile: @srcdir@/Makefile.in ; cd ../.. && ./config.status libraries/linbox/Makefile
CONFIGOPTIONS += --with-gmp=$(LIBRARIESDIR) --with-givaro=$(LIBRARIESDIR) -with-fflas-ffpack=$(LIBRARIESDIR)
# Local Variables:
# compile-command: "make -C $M2BUILDDIR/libraries/linbox "
# End:
