-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
executable file
·136 lines (115 loc) · 5.65 KB
/
configure.ac
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Copyright (C) 2015 Lehigh University.
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.
# Author: Aykut Bulut, Lehigh University, 05/22/2015
#############################################################################
# Names and other basic things #
#############################################################################
AC_PREREQ(2.59)
AC_INIT([Cola],[0.1],[https://github.com/aykutbulut/COLA/issues/new])
AC_COPYRIGHT([
/*===========================================================================*/
/* */
/* Cola is developed by Aykut Bulut ([email protected]) */
/* */
/* (c) Copyright 2015 Lehigh University. All Rights Reserved. */
/* */
/* This software is licensed under the Eclipse Public License. Please see */
/* accompanying file for terms. */
/* */
/*===========================================================================*/
])
# List one file in the package so that the configure script can test
# whether the package is actually there
AC_CONFIG_SRCDIR(src/ColaModel.hpp)
# Where should everything be installed by default? Here, we want it
# to be installed directly in 'bin', 'lib', 'include' subdirectories
# of the directory where configure is run. The default would be
# /usr/local.
AC_PREFIX_DEFAULT([`pwd`])
#############################################################################
# Standard build tool stuff #
#############################################################################
# Get the system type
AC_CANONICAL_BUILD
# If this project depends on external projects, the Externals file in
# the source root directory contains definition of where to find those
# externals. The following macro ensures that those externals are
# retrieved by svn if they are not there yet.
AC_COIN_PROJECTDIR_INIT(Cola)
# Check if user wants to produce debugging code
AC_COIN_DEBUG_COMPILE(Cola)
# Get the name of the C++ compiler and appropriate compiler options
AC_COIN_PROG_CXX
# Get the name of the Fortran compiler and appropriate compiler options
AC_COIN_PROG_F77
# Find out how to call Fortran from C and determine Fortran runtime libraries
if test "x$F77" != xunavailable
then
AC_COIN_F77_WRAPPERS
fi
# Initialize automake and libtool
AC_COIN_INIT_AUTO_TOOLS
#############################################################################
# COIN-OR components #
#############################################################################
AC_COIN_CHECK_PACKAGE(CoinUtils, [coinutils], [ColaLib])
if test $coin_has_coinutils != yes ; then
AC_MSG_ERROR([Required package CoinUtils not available.])
fi
AC_COIN_CHECK_PACKAGE(Osi, [osi], [ColaLib])
if test $coin_has_osi != yes ; then
AC_MSG_ERROR([Required package Osi not available.])
fi
AC_COIN_CHECK_PACKAGE(OsiClp, [osi-clp], [ColaLib])
if test $coin_has_osi != yes ; then
AC_MSG_ERROR([Required package OsiClp not available.])
fi
AC_COIN_CHECK_PACKAGE(OsiConic, [osiconic], [ColaLib])
if test $coin_has_osiconic != yes ; then
AC_MSG_ERROR([Required package OsiConic not available.])
fi
AC_COIN_CHECK_PACKAGE(Ipopt, [ipopt], [ColaLib])
if test $coin_has_ipopt != yes ; then
AC_MSG_ERROR([Required package Ipopt not available.])
fi
AC_COIN_CHECK_PACKAGE(OsiIpopt, [osiipopt], [ColaLib])
if test $coin_has_osiipopt != yes ; then
AC_MSG_ERROR([Required package OsiIpopt not available.])
fi
AC_COIN_CHECK_PACKAGE_BLAS(ColaLib)
AC_COIN_CHECK_PACKAGE_LAPACK(ColaLib)
AC_COIN_CHECK_PACKAGE(ASL, [coinasl], [ColaLib])
AC_COIN_CHECK_PACKAGE(HSL, [coinhsl >= 1.3], [ColaLib])
AC_COIN_CHECK_PACKAGE(Mumps, [coinmumps], [ColaLib])
AC_COIN_CHECK_CXX_CHEADER(math)
##############################################################################
# VPATH links for example input files #
##############################################################################
# In case this is a VPATH configuration we need to make sure that the
# input files for the examples are available in the VPATH directory.
AC_COIN_VPATH_LINK(examples/input.mps)
AC_COIN_VPATH_LINK(examples/canonical.mps)
AC_COIN_VPATH_LINK(examples/mir_input.mps)
AC_COIN_VPATH_LINK(examples/small.mps)
AC_COIN_VPATH_LINK(examples/small2.mps)
AC_COIN_VPATH_LINK(examples/small3.mps)
#############################################################################
# Check for doxygen #
#############################################################################
AC_COIN_DOXYGEN(CoinUtils Osi OsiConic Ipopt OsiIpopt)
##############################################################################
# Finishing up by writing all the output #
##############################################################################
# Here list all the files that configure should create (except for the
# configuration header file)
AC_CONFIG_FILES([Makefile
examples/Makefile
src/Makefile
cola.pc
cola-uninstalled.pc])
AC_CONFIG_FILES([doxydoc/doxygen.conf])
# Here put the location and name of the configuration header file
AC_CONFIG_HEADER([src/config.h src/config_cola.h])
# Finally, we let configure write all the output...
AC_COIN_FINALIZE