source: ThirdParty/HSL/stable/1.0/configure.ac @ 886

Last change on this file since 886 was 886, checked in by andreasw, 12 years ago

restoring stable/1.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 3.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 886 2007-12-28 04:15:44Z 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([ThirdPartyHSL],[1.0stable],
16        [http://projects.coin-or.org/BuildTools/newticket])
17
18AC_COPYRIGHT([
19Copyright 2006 International Business Machines and others.
20All Rights Reserved.
21This file is part of the open source package Coin which is distributed
22under the Common Public License.])
23
24# List one file in the package so that the configure script can test
25# whether the package is actually there
26# Here we don't know yet which files are actually provided...
27AC_CONFIG_SRCDIR(configure.ac)
28
29# Where should everything be installed by default?  Here, we want it
30# to be installed directly in 'bin', 'lib', 'include' subdirectories
31# of the directory where configure is run.  The default would be
32# /usr/local.
33AC_PREFIX_DEFAULT([`pwd`])
34
35AC_COIN_PROJECTDIR_INIT
36
37#############################################################################
38#                         Standard build tool stuff                         #
39#############################################################################
40
41# Get the system type
42AC_CANONICAL_BUILD
43
44#turn off warnings and pedantic mode since they could make trouble on some platforms,
45#and we couldn't fix them anyway
46coin_skip_warn_fflags=yes
47
48# Check if user wants to produce debugging code
49AC_COIN_DEBUG_COMPILE(HSL)
50
51# Get the name of the C compiler (for a dummy program)
52AC_COIN_PROG_CC
53
54# Get the name of the Fortran compiler and appropriate compiler options
55AC_COIN_PROG_F77
56
57# Need egrep later on
58AC_PROG_EGREP
59
60# Initialize autotools
61AC_COIN_INIT_AUTO_TOOLS
62
63#############################################################################
64#                    Find out which files are available                     #
65#############################################################################
66
67AC_DEFUN([MY_CHECK_HSLFILE],
68[
69if test -r $srcdir/$1.f; then
70  hsl_files="$hsl_files $1.f"
71  coin_has_$1=yes
72else
73  coin_has_$1=no
74fi
75AM_CONDITIONAL([COIN_HAS_$2],[test $coin_has_$1 = yes])])
76
77MY_CHECK_HSLFILE(ma27ad,MA27)
78if test coin_has_ma27ad = yes; then
79  AC_MSG_CHECKING([whether MA27 is threadsafe])
80  if $EGREP MA27UD $srcdir/ma27ad.f >/dev/null 2>&1; then
81    AC_MSG_RESULT(yes)
82  else
83    AC_MSG_RESULT(no)
84    AC_MSG_ERROR([Please obtain the threadsafe (newer) version of MA27])
85  fi
86fi
87MY_CHECK_HSLFILE(mc19ad,MC19)
88MY_CHECK_HSLFILE(ma57ad,MA57)
89MY_CHECK_HSLFILE(ma28ad,MA28)
90
91#############################################################################
92#                              Write the output                             #
93#############################################################################
94
95AC_CONFIG_FILES([Makefile])
96
97AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.