Link against mathicgb and friends as shared libraries again.
authorDoug Torrance <dtorrance@debian.org>
Sun, 1 May 2022 18:10:02 +0000 (19:10 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 1 May 2022 18:10:02 +0000 (19:10 +0100)
Forwarded: TODO
Last-Update: 2021-07-13

Gbp-Pq: Name use-shared-mathicgb-and-friends.patch

M2/GNUmakefile.in
M2/Macaulay2/e/Makefile.files
M2/configure.ac

index 1533bf19eb7a28474be19e5a2ff7b1c72d90aacb..e7bdb55dd2956da2fa23ccaaba097f8885e917b3 100644 (file)
@@ -214,7 +214,7 @@ endif
 ifeq "@DEVELOPMENT@" "yes"
 all-in-Macaulay2: all-in-submodules
 else
-all-in-Macaulay2: all-in-submodules git-checkout-in-memtailor git-checkout-in-mathic git-checkout-in-mathicgb
+all-in-Macaulay2: all-in-submodules
 endif
 
 ## 
index 45dd3d0bf6f73d89ed86b8ec2dabaaf4d98ae70a..c984cccfba8049e19fdfbd5db6b697b7a3a22ca9 100644 (file)
@@ -26,40 +26,6 @@ INTERFACE = \
        NCResolutions/nc-res-computation \
        Polynomial \
        monomial-collection \
-       mathicgb/mathicgb/CFile \
-       mathicgb/mathicgb/LogDomain \
-       mathicgb/mathicgb/LogDomainSet \
-       mathicgb/mathicgb/PolyRing \
-       mathicgb/mathicgb/Basis \
-       mathicgb/mathicgb/MonoLookup \
-       mathicgb/mathicgb/PolyBasis \
-       mathicgb/mathicgb/SparseMatrix \
-       mathicgb/mathicgb/QuadMatrix \
-       mathicgb/mathicgb/QuadMatrixBuilder \
-       mathicgb/mathicgb/Scanner \
-       mathicgb/mathicgb/ClassicGBAlg \
-       mathicgb/mathicgb/F4MatrixBuilder \
-       mathicgb/mathicgb/F4MatrixBuilder2 \
-       mathicgb/mathicgb/F4MatrixProjection \
-       mathicgb/mathicgb/F4MatrixReducer \
-       mathicgb/mathicgb/F4ProtoMatrix \
-       mathicgb/mathicgb/F4Reducer \
-       mathicgb/mathicgb/Reducer \
-       mathicgb/mathicgb/TypicalReducer \
-       mathicgb/mathicgb/ReducerDedup \
-       mathicgb/mathicgb/ReducerHash \
-       mathicgb/mathicgb/ReducerHashPack \
-       mathicgb/mathicgb/ReducerNoDedup \
-       mathicgb/mathicgb/ReducerPack \
-       mathicgb/mathicgb/ReducerPackDedup \
-       mathicgb/mathicgb/ModuleMonoSet \
-       mathicgb/mathicgb/PolyHashTable \
-       mathicgb/mathicgb/SPairs \
-       mathicgb/mathicgb/SigPolyBasis \
-       mathicgb/mathicgb/SigSPairQueue \
-       mathicgb/mathicgb/SigSPairs \
-       mathicgb/mathicgb/SignatureGB \
-       mathicgb/mathicgb/io-util \
        eigen \
        monomial-sets \
        mutablecomplex \
@@ -212,18 +178,6 @@ INTERFACE = \
        weylalg
 
 COMMANDS = \
-       memtailor/memtailor \
-       memtailor/memtailor/Arena \
-       memtailor/memtailor/BufferPool \
-       memtailor/memtailor/MemoryBlocks \
-       mathic/mathic \
-       mathic/mathic/BitTriangle \
-       mathic/mathic/ColumnPrinter \
-       mathic/mathic/DivMask \
-       mathic/mathic/Timer \
-       mathic/mathic/display \
-       mathic/mathic/error \
-       mathicgb/mathicgb \
        ntl-internal \
        ntl-debugio \
        matrix-kbasis \
@@ -252,26 +206,6 @@ COMMANDS = \
        franzi-interface
 
 NAMES_H = \
-       mathicgb/mathicgb/Atomic \
-       mathicgb/mathicgb/PrimeField \
-       mathicgb/mathicgb/MonoMonoid \
-       mathicgb/mathicgb/Range \
-       mathicgb/mathicgb/Poly \
-       mathicgb/mathicgb/FixedSizeMonomialMap \
-       mathicgb/mathicgb/KoszulQueue \
-       mathicgb/mathicgb/MathicIO \
-       mathicgb/mathicgb/MonoArena \
-       mathicgb/mathicgb/MonoOrder \
-       mathicgb/mathicgb/MonoProcessor \
-       mathicgb/mathicgb/MonomialMap \
-       mathicgb/mathicgb/NonCopyable \
-       mathicgb/mathicgb/RawVector \
-       mathicgb/mathicgb/ReducerHelper \
-       mathicgb/mathicgb/ScopeExit \
-       mathicgb/mathicgb/StaticMonoMap \
-       mathicgb/mathicgb/Unchar \
-       mathicgb/mathicgb/mtbb \
-       mathicgb/mathicgb/stdinc \
        f4/f4-types \
        f4/memblock \
        VectorArithmetic \
index f760edceb2434a88bbb20b77b3e4c85a87fb9ec9..2c61ad1124b6a88c1420d3a6cfb89340927e8ea6 100644 (file)
@@ -1214,35 +1214,35 @@ then AC_MSG_NOTICE(readline library will be compiled)
      BUILTLIBS="-lreadline -lhistory $BUILTLIBS"
 fi
 
-dnl if test $BUILD_memtailor = no
-dnl then AC_LANG(C++)
-dnl      SAVE_CXXFLAGS="$CXXFLAGS"
-dnl      CXXFLAGS="$CXXFLAGS"
-dnl      AC_SEARCH_LIBS(MEMTAILOR_VERSION_STRING,memtailor,,BUILD_memtailor=yes)
-dnl      AC_CHECK_HEADER(memtailor.h,,BUILD_memtailor=yes)
-dnl      CXXFLAGS="$SAVE_CXXFLAGS"
-dnl fi
-dnl test $BUILD_memtailor = yes && BUILTLIBS="-lmemtailor $BUILTLIBS"
-
-dnl if test $BUILD_mathic = no
-dnl then AC_LANG(C++)
-dnl      SAVE_CXXFLAGS="$CXXFLAGS"
-dnl      CXXFLAGS="$CXXFLAGS"
-dnl      AC_SEARCH_LIBS(MATHIC_VERSION_STRING,mathic,,BUILD_mathic=yes)
-dnl      AC_CHECK_HEADER(mathic.h,,BUILD_mathic=yes)
-dnl      CXXFLAGS="$SAVE_CXXFLAGS"
-dnl fi
-dnl test $BUILD_mathic = yes && BUILTLIBS="-lmathic $BUILTLIBS"
-
-dnl if test $BUILD_mathicgb = no
-dnl then AC_LANG(C++)
-dnl      SAVE_CXXFLAGS="$CXXFLAGS"
-dnl      CXXFLAGS="$CXXFLAGS"
-dnl      AC_CHECK_HEADER(mathicgb.h,,BUILD_mathicgb=yes; AC_MSG_NOTICE(will build mathicgb))
-dnl      AC_SEARCH_LIBS(MATHICGB_VERSION_STRING,mathicgb,,BUILD_mathicgb=yes; AC_MSG_NOTICE(will build mathicgb))
-dnl      CXXFLAGS="$SAVE_CXXFLAGS"
-dnl fi
-dnl test $BUILD_mathicgb = yes && BUILTLIBS="-lmathicgb $BUILTLIBS"
+if test $BUILD_memtailor = no
+then AC_LANG(C++)
+     SAVE_CXXFLAGS="$CXXFLAGS"
+     CXXFLAGS="$CXXFLAGS"
+     AC_SEARCH_LIBS(MEMTAILOR_VERSION_STRING,memtailor,,BUILD_memtailor=yes)
+     AC_CHECK_HEADER(memtailor.h,,BUILD_memtailor=yes)
+     CXXFLAGS="$SAVE_CXXFLAGS"
+fi
+test $BUILD_memtailor = yes && BUILTLIBS="-lmemtailor $BUILTLIBS"
+
+if test $BUILD_mathic = no
+then AC_LANG(C++)
+     SAVE_CXXFLAGS="$CXXFLAGS"
+     CXXFLAGS="$CXXFLAGS"
+     AC_SEARCH_LIBS(MATHIC_VERSION_STRING,mathic,,BUILD_mathic=yes)
+     AC_CHECK_HEADER(mathic.h,,BUILD_mathic=yes)
+     CXXFLAGS="$SAVE_CXXFLAGS"
+fi
+test $BUILD_mathic = yes && BUILTLIBS="-lmathic $BUILTLIBS"
+
+if test $BUILD_mathicgb = no
+then AC_LANG(C++)
+     SAVE_CXXFLAGS="$CXXFLAGS"
+     CXXFLAGS="$CXXFLAGS"
+     AC_CHECK_HEADER(mathicgb.h,,BUILD_mathicgb=yes; AC_MSG_NOTICE(will build mathicgb))
+     AC_SEARCH_LIBS(MATHICGB_VERSION_STRING,mathicgb,,BUILD_mathicgb=yes; AC_MSG_NOTICE(will build mathicgb))
+     CXXFLAGS="$SAVE_CXXFLAGS"
+fi
+test $BUILD_mathicgb = yes && BUILTLIBS="-lmathicgb $BUILTLIBS"
 
 if test $BUILD_gtest = no
 then