source: ThirdParty/SoPlex/stable/1.4/configure.ac @ 3426

Last change on this file since 3426 was 3426, checked in by tkr, 7 years ago

temporarily committing release candidate

File size: 3.3 KB
Line 
1# Copyright (C) 2010,2011 Stefan Vigerske
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: configure.ac 928 2010-09-14 12:18:54Z stefan $
6
7#############################################################################
8#                       Names and other basic things                        #
9#############################################################################
10
11AC_PREREQ(2.59)
12
13AC_INIT([ThirdPartySoplex],[1.4.0],[http://projects.coin-or.org/BuildTools/newticket])
14
15AC_COPYRIGHT([
16Copyright 2010,2011 Stefan Vigerske and others.
17All Rights Reserved.
18This file is part of the open source package COIN-OR which is distributed
19under the Eclipse Public License.])
20
21# List one file in the package so that the configure script can test
22# whether the package is actually there
23AC_CONFIG_SRCDIR(soplex/src/soplex.h)
24
25# Where should everything be installed by default?  Here, we want it
26# to be installed directly in 'bin', 'lib', 'include' subdirectories
27# of the directory where configure is run.  The default would be
28# /usr/local.
29AC_PREFIX_DEFAULT([`pwd`])
30
31AC_COIN_PROJECTDIR_INIT(SoPlex,5:0:4)
32
33#############################################################################
34#                         Standard build tool stuff                         #
35#############################################################################
36
37# Get the system type
38AC_CANONICAL_BUILD
39
40# Check if user wants to produce debugging code
41AC_COIN_DEBUG_COMPILE(SoPlex)
42
43# Get the name of the C compiler and appropriate compiler options
44AC_COIN_PROG_CC
45
46# Get the name of the C++ compiler and appropriate compiler options
47AC_COIN_PROG_CXX
48
49# Check if pkg-config is available (to setup addlibs file)
50AC_COIN_HAS_PKGCONFIG
51
52# Initialize automake
53AC_COIN_INIT_AUTO_TOOLS
54
55###########################################################################
56#                       external libraries checks                         #
57###########################################################################
58
59AC_COIN_CHECK_GNU_ZLIB(SOPLEX)
60if test $coin_has_zlib = "yes"; then
61  CXXFLAGS="$CXXFLAGS -DSOPLEX_WITH_ZLIB"
62fi
63
64AC_COIN_CHECK_GMP
65if test $coin_has_gmp = yes; then
66  CXXFLAGS="$CXXFLAGS -DSOPLEX_WITH_GMP"
67  SOPLEX_LIBS="-lgmp $SOPLEX_LIBS"
68  SOPLEX_PCLIBS="-lgmp $SOPLEX_PCLIBS"
69  SOPLEX_LIBS_INSTALLED="-lgmp $SOPLEX_LIBS_INSTALLED"
70fi
71
72# SoPlex requires C++ 2011 standard (or -DSOPLEX_LEGACY)
73SOPLEX_CFLAGS=
74case "$CXX" in
75  cl* | */cl* | CL* | */CL* ) ;;
76  icl* | */icl* | ICL* | */ICL* )  # Intel on Windows
77    SOPLEX_CFLAGS="-Qstd=c++0x"
78    ;;
79  * )  # GCC, clang, Intel on Linux, ...
80    SOPLEX_CFLAGS="-std=c++0x"
81    ;;
82esac
83CXXFLAGS="$CXXFLAGS $SOPLEX_CFLAGS"
84AC_SUBST(SOPLEX_CFLAGS)
85
86# in recent SoPlex 2.0 versions, timer.cpp has been renamed to usertimer.cpp
87AM_CONDITIONAL(TIMER_IS_USERTIMER, [test -e "$srcdir/soplex/src/usertimer.cpp"])
88
89# TODO SoPlex may not be threadsafe by default; adding -DDISABLE_VERBOSITY could help
90
91###########################################################################
92#                               finish up                                 #
93###########################################################################
94
95AC_CONFIG_FILES([Makefile coinsoplex.pc coinsoplex-uninstalled.pc])
96
97# dummy header file to avoid many extra compiler flags
98AC_CONFIG_HEADER([config_soplex.h])
99
100AC_SUBST(SOPLEX_PCLIBS)
101 
102AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.