source: ThirdParty/HSL/trunk/configure.ac @ 425

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

enable cross compilation (changing check for existing files)

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