3 # This file is a part of LEMON, a generic C++ optimization library.
5 # Copyright (C) 2003-2009
6 # Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 # (Egervary Research Group on Combinatorial Optimization, EGRES).
9 # Permission to use, modify and distribute this software is granted
10 # provided that this copyright notice appears in all copies. For
11 # precise terms see the accompanying LICENSE file.
13 # This software is provided "AS IS" with no warranty of any kind,
14 # express or implied, and with no claim as to its suitability for any
18 if [ ! -f ~/.lemon-bootstrap ]; then
19 echo 'Create ~/.lemon-bootstrap'.
20 cat >~/.lemon-bootstrap <<EOF
22 # Default settings for bootstraping the LEMON source code repository
27 source ~/.lemon-bootstrap
28 if [ -f ../../../.lemon-bootstrap ]; then source ../../../.lemon-bootstrap; fi
29 if [ -f ../../.lemon-bootstrap ]; then source ../../.lemon-bootstrap; fi
30 if [ -f ../.lemon-bootstrap ]; then source ../.lemon-bootstrap; fi
31 if [ -f ./.lemon-bootstrap ]; then source ./.lemon-bootstrap; fi
34 function augment_config() {
35 if [ "x${!1}" == "x" ]; then
37 echo Add "'$1'" to '~/.lemon-bootstrap'.
38 echo >>~/.lemon-bootstrap
39 echo $3 >>~/.lemon-bootstrap
40 echo $1=$2 >>~/.lemon-bootstrap
44 augment_config LEMON_INSTALL_PREFIX /usr/local \
45 "# LEMON installation prefix"
47 augment_config COIN_OR_PREFIX /usr/local/coin-or \
48 "# COIN-OR installation root prefix (used for CLP/CBC)"
50 augment_config SOPLEX_PREFIX /usr/local/soplex \
51 "# Soplex build prefix"
57 if [ "x$_an" == "x" ]; then
66 while [ "$ret" != "y" -a "$ret" != "n" -a "$ret" != "yes" -a "$ret" != "no" ]; do
69 if [ "$ret" != "y" -a "$ret" != "yes" ]; then
76 if yesorno "External build" "n"
81 if yesorno "Autoreconf" "y"
89 if yesorno "Optimize" "n"
96 if yesorno "Stop on warning" "y"
98 werror_flags=' -Werror'
103 cxx_flags="CXXFLAGS=-ggdb$opt_flags$werror_flags"
105 if yesorno "Check with valgrind" "n"
107 valgrind_flags=' --enable-valgrind'
112 if [ -f ${COIN_OR_PREFIX}/include/coin/config_coinutils.h ]; then
113 if yesorno "Use COIN-OR (CBC/CLP)" "n"
115 coin_flag="--with-coin=$COIN_OR_PREFIX"
123 if [ -f ${SOPLEX_PREFIX}/src/soplex.h ]; then
124 if yesorno "Use Soplex" "n"
126 soplex_flag="--with-soplex=$SOPLEX_PREFIX"
134 if [ "x$AUTORE" == "xyes" ]; then
137 ${CONFIGURE_PATH}/configure --prefix=$LEMON_INSTALL_PREFIX \