blob: dcd5aac002d36d5370195ae3d7043a96ea0444ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/bash
#
source "$(dirname "$0")/get-script-header.sh"
commit=b420454e732f4b3d229c552ef7cd46fec75fe65c
if [ -e glpk-cut-log ]; then
echo 'error: file or directory "glpk-cut-log" exists; please move it out of the way.' >&2
exit 1
fi
mkdir glpk-cut-log
cd glpk-cut-log
webget https://github.com/timothy-king/glpk-cut-log/archive/$commit.zip glpk-cut-log-$commit.zip
unzip glpk-cut-log-$commit.zip
cd glpk-cut-log-$commit
libtoolize
aclocal
autoheader
autoconf
automake --add-missing
./configure --without-pic --prefix=`pwd`/.. --disable-shared --enable-static --disable-dependency-tracking
make && make install
mv `pwd`/../lib/libglpk.a `pwd`/../lib/libglpk-static.a
make distclean
./configure --with-pic --prefix=`pwd`/.. --disable-shared --enable-static --disable-dependency-tracking
make && make install
cd ..
echo
echo ===================== Now configure CVC4 with =====================
echo ./configure.sh --gpl --glpk
|