source: stable/0.60/Cgl/configure.ac @ 1455

Last change on this file since 1455 was 1455, checked in by stefan, 8 months ago

restoring Cgl/stable/0.60

  • Property svn:keywords set to Author Date Id Revision
File size: 6.5 KB
RevLine 
[207]1# Copyright (C) 2006 International Business Machines.
2# All Rights Reserved.
[908]3# This file is distributed under the Eclipse Public License.
[207]4
[237]5## $Id: configure.ac 1455 2019-02-22 22:33:08Z stefan $
[207]6
7# Author:  Andreas Waechter            IBM    2006-04-13
8
9#############################################################################
10#                       Names and other basic things                        #
11#############################################################################
12
13AC_PREREQ(2.59)
14
[1455]15AC_INIT([Cgl],[0.60],[cgl@list.coin-or.org])
[207]16
17AC_COPYRIGHT([
18Copyright 2006 International Business Machines and others.
19All Rights Reserved.
20This file is part of the open source package Coin which is distributed
[908]21under the Eclipse Public License.])
[207]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/CglMessage.hpp)
26
[238]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
[207]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.
[1455]44AC_COIN_PROJECTDIR_INIT(Cgl)
[207]45
46# Check if user wants to produce debugging code
[294]47AC_COIN_DEBUG_COMPILE(Cgl)
[207]48
49# Get the name of the C++ compiler and appropriate compiler options
50AC_COIN_PROG_CXX
51
52# Initialize automake and libtool
53AC_COIN_INIT_AUTO_TOOLS
54
55#############################################################################
[849]56#                            COIN-OR components                             #
[207]57#############################################################################
58
[877]59AC_COIN_CHECK_PACKAGE(CoinUtils, [coinutils], [CglLib])
[849]60if test $coin_has_coinutils != yes ; then
61  AC_MSG_ERROR([Required package CoinUtils not available.])
62fi
[207]63
[877]64AC_COIN_CHECK_PACKAGE(Osi, [osi], [CglLib])
[849]65if test $coin_has_osi != yes ; then
66  AC_MSG_ERROR([Required package Osi not available.])
67fi
68
[875]69AC_COIN_CHECK_PACKAGE(Sample, [coindatasample])
[849]70
71# Clp can be used by CglLandP
[875]72AC_COIN_CHECK_PACKAGE(OsiClp, [osi-clp], [CglLib])
[849]73
[207]74#############################################################################
[849]75#                       Solvers for unittesting                             #
[208]76#############################################################################
77
[877]78# These are not really required for the compilation of Cgl, but we
[208]79# need to know which are available in order to compile the unitTest
[849]80# correctly.
[208]81
[875]82AC_COIN_CHECK_PACKAGE(OsiCpx,  [osi-cplex])
83AC_COIN_CHECK_PACKAGE(OsiGlpk, [osi-glpk])
84#AC_COIN_CHECK_PACKAGE(OsiGrb,  [osi-gurobi])
85AC_COIN_CHECK_PACKAGE(OsiMsk,  [osi-mosek])
86AC_COIN_CHECK_PACKAGE(OsiXpr,  [osi-xpress])
87AC_COIN_CHECK_PACKAGE(OsiVol,  [osi-vol])
88AC_COIN_CHECK_PACKAGE(OsiDyLP, [osi-dylp])
89#AC_COIN_CHECK_PACKAGE(OsiSpx,  [osi-soplex])
[208]90
91#############################################################################
[1012]92#                  System header                                            #
93#############################################################################
94
95AC_COIN_CHECK_CXX_CHEADER(math)
96AC_COIN_CHECK_CXX_CHEADER(float)
97AC_COIN_CHECK_CXX_CHEADER(ieeefp)
98
99#############################################################################
[207]100#                   Determine list of all Cgl subprojects                   #
101#############################################################################
102
[849]103# In order to avoid that one has to update this configure.ac and the
[966]104# Makefile.am whenever a new cut generator is added, we automatically determine
105# the list of all subdirectories of src with a Makefile.in (CGL_SUBDIRS),
106# and also a list of all sublibraries relative to src (CGL_SUBLIBS) that
107# can be used in the src/Makefile.am.  (It is still necessary to manually
108# add an entry to write the Makefile in the AC_CONFIG_FILES list below.)
[207]109
110AC_SUBST(CGL_SUBDIRS)
111AC_SUBST(CGL_SUBLIBS)
112
113curr_dir=`pwd`
114cd $srcdir/src
[966]115for file in `ls */Makefile.in`; do
116  newdir=`echo $file | sed -e s%/Makefile.in%% | sed -e s%^./%% `
117  CGL_SUBDIRS="$CGL_SUBDIRS $newdir"
118  CGL_SUBLIBS="$CGL_SUBLIBS $newdir/lib${newdir}.la"
[207]119done
120cd $curr_dir
121
[865]122#############################################################################
123#                  Check for doxygen                                        #
124#############################################################################
125
126AC_COIN_DOXYGEN(CoinUtils)
127
[207]128##############################################################################
129#                   Finishing up by writing all the output                   #
130##############################################################################
131
[417]132# Install files for unitTest
[1110]133AC_COIN_VPATH_LINK([test/CglTestData/capPlan1.mps test/CglTestData/l152lav.mps test/CglTestData/egout.mps test/CglTestData/lseu.mps])
[417]134
[207]135# Here list all the files that configure should create (except for the
136# configuration header file)
137AC_CONFIG_FILES([Makefile
[230]138                 examples/Makefile
[207]139                 src/Makefile
[1092]140                 src/CglAllDifferent/Makefile
141                 src/CglClique/Makefile
142                 src/CglDuplicateRow/Makefile
143                 src/CglFlowCover/Makefile
[1105]144                 src/CglGMI/Makefile
[1092]145                 src/CglGomory/Makefile
146                 src/CglKnapsackCover/Makefile
147                 src/CglLandP/Makefile
148                 src/CglLiftAndProject/Makefile
149                 src/CglMixedIntegerRounding/Makefile
150                 src/CglMixedIntegerRounding2/Makefile
151                 src/CglOddHole/Makefile
152                 src/CglPreProcess/Makefile
153                 src/CglProbing/Makefile
154                 src/CglRedSplit/Makefile
[1105]155                 src/CglRedSplit2/Makefile
[1092]156                 src/CglResidualCapacity/Makefile
157                 src/CglSimpleRounding/Makefile
158                 src/CglTwomir/Makefile
159                 src/CglZeroHalf/Makefile
[207]160                 test/Makefile
[1092]161                 cgl.pc
162                 cgl-uninstalled.pc])
[865]163AC_CONFIG_FILES([doxydoc/doxygen.conf])
[207]164
165# Here put the location and name of the configuration header file
[1024]166AC_CONFIG_HEADER([src/config.h src/config_cgl.h])
[207]167
168# Finally, we let configure write all the output...
[238]169AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.