| 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | source "$(dirname "$0")/get-script-header.sh" |
| 4 | |
| 5 | GLPK_DIR="$DEPS_DIR/glpk-cut-log" |
| 6 | commit=b420454e732f4b3d229c552ef7cd46fec75fe65c |
| 7 | |
| 8 | check_dep_dir "$GLPK_DIR" |
| 9 | setup_dep \ |
| 10 | "https://github.com/timothy-king/glpk-cut-log/archive/$commit.tar.gz" \ |
| 11 | "$GLPK_DIR" |
| 12 | cd "$GLPK_DIR" |
| 13 | |
| 14 | libtoolize |
| 15 | aclocal |
| 16 | autoheader |
| 17 | autoconf |
| 18 | automake --add-missing |
| 19 | |
| 20 | ./configure --without-pic --prefix="$INSTALL_DIR" --disable-shared --enable-static --disable-dependency-tracking |
| 21 | make install -j$(nproc) |
| 22 | make distclean |
| 23 | mv "$INSTALL_LIB_DIR/libglpk.a" "$INSTALL_LIB_DIR/libglpk-static.a" |
| 24 | |
| 25 | ./configure --with-pic --prefix="$INSTALL_DIR" --disable-shared --enable-static --disable-dependency-tracking |
| 26 | make install -j$(nproc) |
| 27 | |
| 28 | echo |
| 29 | echo ===================== Now configure CVC4 with ===================== |
| 30 | echo ./configure.sh --gpl --glpk |