source: trunk/Bonmin/configure.ac @ 1

Last change on this file since 1 was 1, checked in by andreasw, 13 years ago

imported initial code

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 5.0 KB
Line 
1# Copyright (C) 2006 International Business Machines.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: configure.ac 1 2006-07-11 14:59:53Z andreasw $
6
7# Author:  Andreas Waechter            IBM    2006-04-13
8
9#############################################################################
10#                       Names and other basic things                        #
11#############################################################################
12
13AC_PREREQ(2.59)
14
15AC_INIT([Bonmin],[0.9],[coin-bonmin@list.coin-or.org])
16
17AC_COPYRIGHT([
18Copyright 2006 International Business Machines and others.
19All Rights Reserved.
20This file is part of the open source package BONMIN which is distributed
21under the Common Public License.])
22
23# List one file in the package so that the configure script can test
24# whether the package is actually there
25AC_CONFIG_SRCDIR(src/CbcBonmin/CbcBonmin.hpp)
26
27# Where should everything be installed by default?  Here, we want it
28# to be installed directly in 'bin', 'lib', 'include' subdirectories
29# of the directory where configure is run.  The default would be
30# /usr/local.
31AC_PREFIX_DEFAULT([`pwd`])
32
33#############################################################################
34#                         Standard build tool stuff                         #
35#############################################################################
36
37# Get the system type
38AC_CANONICAL_BUILD
39
40# If this project depends on external projects, the Externals file in
41# the source root directory contains definition of where to find those
42# externals.  The following macro ensures that those externals are
43# retrieved by svn if they are not there yet.
44AC_COIN_PROJECTDIR_INIT
45
46# Check if user wants to produce debugging code
47AC_COIN_DEBUG_COMPILE
48
49# on blue gene, we need to define -DBLUE_GENE_XLC for the COIN headers
50if test x"$enable_bg" = xyes; then
51  ADD_CXXFLAGS="$ADD_CXXFLAGS -DBLUE_GENE_XLC"
52fi
53
54# Get the name of the C++ compiler and appropriate compiler options
55AC_COIN_PROG_CXX
56
57# Initialize automake and libtool
58AC_COIN_INIT_AUTO_TOOLS
59
60#############################################################################
61#                              COIN components                              #
62#############################################################################
63
64AC_COIN_HAS_PROJECT(Cbc)
65AC_COIN_HAS_PROJECT(Cgl)
66AC_COIN_HAS_PROJECT(Clp)
67AC_COIN_HAS_PROJECT(CoinUtils)
68AC_COIN_HAS_PROJECT(DyLP)
69AC_COIN_HAS_PROJECT(Ipopt)
70AC_COIN_HAS_PROJECT(Osi)
71AC_COIN_HAS_PROJECT(Sym)
72AC_COIN_HAS_PROJECT(Vol)
73AC_COIN_HAS_PROJECT(Bcp)
74
75#############################################################################
76#                            Third party solvers                            #
77#############################################################################
78
79# Check which third party solvers are available ToDo!
80AC_COIN_HAS_USER_LIBRARY([Cplex],[CPX],[cplex.h],[CPXgetstat])
81AC_COIN_HAS_USER_LIBRARY([Glpk],[GLPK],[glpk.h],[glp_lpx_simplex])
82AC_COIN_HAS_USER_LIBRARY([FortMP],[FMP])  #ToDo! is Fortran?
83AC_COIN_HAS_USER_LIBRARY([Mosek],[MSK],[mosekdl.h],[MSK_openmosek])
84AC_COIN_HAS_USER_LIBRARY([Osl],[OSL],[ekk_c_api.h],[ekk_simplex])
85AC_COIN_HAS_USER_LIBRARY([Soplex],[SPX],[spxsolver.h]) # ToDo
86AC_COIN_HAS_USER_LIBRARY([Xpress],[XPR],[xprs.h],[XPRSsetintcontrol])
87
88#############################################################################
89#                       Other third party software                          #
90#############################################################################
91
92# Ampl Solver library
93AC_COIN_HAS_ASL
94
95# Some internal variables
96if test x"$BUILD_FP" != x; then
97  build_fp=yes
98fi
99AM_CONDITIONAL(BUILD_FP, test x$build_fp = xyes)
100
101##########
102# ASTYLE #
103##########
104ASTYLE=astyle
105AC_SUBST(ASTYLE)
106ASTYLEFLAGS="--mode=c --indent=spaces=2 --indent-cases --indent-namespaces --min-conditional-indent=1 --brackets=linux --brackets=break-closing-headers --max-instatement-indent=2"
107AC_SUBST(ASTYLEFLAGS)   
108
109#############################################################################
110#                            Stuff for Examples                             #
111#############################################################################
112
113AC_COIN_VPATH_LINK(test/bonmin.opt)
114AC_COIN_VPATH_LINK(test/mytoy.nl)
115AC_CONFIG_LINKS([test/MyBonmin.cpp:examples/CppExample/MyBonmin.cpp
116                 test/MyTMINLP.cpp:examples/CppExample/MyTMINLP.cpp
117                 test/MyTMINLP.hpp:examples/CppExample/MyTMINLP.hpp])
118
119##############################################################################
120#                   Finishing up by writing all the output                   #
121##############################################################################
122
123AC_CONFIG_FILES([Makefile
124                 src/Apps/Makefile
125                 experimental/Bcp/Makefile
126                 src/CbcBonmin/Makefile
127                 src/IpoptInterface/Makefile
128                 src/BonminAmplInterface/Makefile
129                 src/OaInterface/Makefile
130                 experimental/FP/Makefile
131                 test/Makefile
132                 examples/CppExample/Makefile])
133
134AC_CONFIG_HEADER([inc/config_bonmin.h])
135
136AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.