... | ... |
@@ -44,12 +44,15 @@ |
44 | 44 |
augment_config LEMON_INSTALL_PREFIX /usr/local \ |
45 | 45 |
"# LEMON installation prefix" |
46 | 46 |
|
47 | 47 |
augment_config COIN_OR_PREFIX /usr/local/coin-or \ |
48 | 48 |
"# COIN-OR installation root prefix (used for CLP/CBC)" |
49 | 49 |
|
50 |
augment_config SOPLEX_PREFIX /usr/local/soplex \ |
|
51 |
"# Soplex build prefix" |
|
52 |
|
|
50 | 53 |
|
51 | 54 |
function ask() { |
52 | 55 |
echo -n "$1 [$2]? " |
53 | 56 |
read _an |
54 | 57 |
if [ "x$_an" == "x" ]; then |
55 | 58 |
ret="$2" |
... | ... |
@@ -96,21 +99,36 @@ |
96 | 99 |
else |
97 | 100 |
werror_flags='' |
98 | 101 |
fi |
99 | 102 |
|
100 | 103 |
cxx_flags="CXXFLAGS=-ggdb$opt_flags$werror_flags" |
101 | 104 |
|
102 |
if yesorno "Use COIN" "n" |
|
103 |
then |
|
104 |
|
|
105 |
if [ -f ${COIN_OR_PREFIX}/include/coin/config_coinutils.h ]; then |
|
106 |
if yesorno "Use COIN-OR (CBC/CLP)" "n" |
|
107 |
then |
|
108 |
coin_flag="--with-coin=$COIN_OR_PREFIX" |
|
109 |
else |
|
110 |
coin_flag="" |
|
111 |
fi |
|
105 | 112 |
else |
106 |
coin_flag="" |
|
113 |
coin_flag="" |
|
107 | 114 |
fi |
108 | 115 |
|
116 |
if [ -f ${SOPLEX_PREFIX}/src/soplex.h ]; then |
|
117 |
if yesorno "Use Soplex" "n" |
|
118 |
then |
|
119 |
soplex_flag="--with-soplex=$SOPLEX_PREFIX" |
|
120 |
else |
|
121 |
soplex_flag="" |
|
122 |
fi |
|
123 |
else |
|
124 |
soplex_flag="" |
|
125 |
fi |
|
109 | 126 |
|
110 | 127 |
if [ "x$AUTORE" == "xyes" ]; then |
111 | 128 |
autoreconf -vif; |
112 | 129 |
fi |
113 | 130 |
${CONFIGURE_PATH}/configure --prefix=$LEMON_INSTALL_PREFIX \ |
114 | 131 |
"$cxx_flags" \ |
115 | 132 |
$coin_flag \ |
133 |
$soplex_flag \ |
|
116 | 134 |
$* |
0 comments (0 inline)