source: ThirdParty/HSL/branches/BSP/trunk/configure.ac @ 491

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

added dummy.c which is always going to be compiled - otherwise some archivers choke...

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 2.9 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 491 2007-08-09 16:37:13Z 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.0trunk],
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# Check if user wants to produce debugging code
45AC_COIN_DEBUG_COMPILE(HSL)
46
47# Get the name of the C compiler (for a dummy program)
48AC_COIN_PROG_CC
49
50# Get the name of the Fortran compiler and appropriate compiler options
51AC_COIN_PROG_F77
52
53# Need egrep later on
54AC_PROG_EGREP
55
56# Initialize autotools
57AC_COIN_INIT_AUTO_TOOLS
58
59#############################################################################
60#                    Find out which files are available                     #
61#############################################################################
62
63AC_DEFUN([MY_CHECK_HSLFILE],
64[
65if test -r $srcdir/$1.f; then
66  hsl_files="$hsl_files $1.f"
67  coin_has_$1=yes
68else
69  coin_has_$1=no
70fi
71AM_CONDITIONAL([COIN_HAS_$2],[test $coin_has_$1 = yes])])
72
73MY_CHECK_HSLFILE(ma27ad,MA27)
74if test coin_has_ma27ad = yes; then
75  AC_MSG_CHECKING([whether MA27 is threadsafe])
76  if $EGREP MA27UD $srcdir/ma27ad.f >/dev/null 2>&1; then
77    AC_MSG_RESULT(yes)
78  else
79    AC_MSG_RESULT(no)
80    AC_MSG_ERROR([Please obtain the threadsafe (newer) version of MA27])
81  fi
82fi
83MY_CHECK_HSLFILE(mc19ad,MC19)
84MY_CHECK_HSLFILE(ma57ad,MA57)
85MY_CHECK_HSLFILE(ma28ad,MA28)
86
87#############################################################################
88#                              Write the output                             #
89#############################################################################
90
91AC_CONFIG_FILES([Makefile])
92
93AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.