[273] | 1 | # Copyright (C) 2006, 2007 International Business Machines. |
---|
[49] | 2 | # All Rights Reserved. |
---|
| 3 | # This file is distributed under the Common Public License. |
---|
| 4 | |
---|
| 5 | ## $Id: configure.ac 1344 2009-07-16 18:26:29Z stefan $ |
---|
| 6 | |
---|
| 7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
| 8 | |
---|
| 9 | ############################################################################# |
---|
| 10 | # Names and other basic things # |
---|
| 11 | ############################################################################# |
---|
| 12 | |
---|
| 13 | AC_PREREQ(2.59) |
---|
| 14 | |
---|
[1344] | 15 | AC_INIT([ThirdPartyBlas],[1.0stable],[http://projects.coin-or.org/BuildTools/newticket]) |
---|
[49] | 16 | |
---|
| 17 | AC_COPYRIGHT([ |
---|
| 18 | Copyright 2006 International Business Machines and others. |
---|
| 19 | All Rights Reserved. |
---|
| 20 | This file is part of the open source package Coin which is distributed |
---|
| 21 | under the Common Public License.]) |
---|
| 22 | |
---|
| 23 | # List one file in the package so that the configure script can test |
---|
| 24 | # whether the package is actually there |
---|
| 25 | AC_CONFIG_SRCDIR(dgemm.f) |
---|
| 26 | |
---|
| 27 | # Where should everything be installed by default? Here, we want it |
---|
| 28 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
| 29 | # of the directory where configure is run. The default would be |
---|
| 30 | # /usr/local. |
---|
| 31 | AC_PREFIX_DEFAULT([`pwd`]) |
---|
| 32 | |
---|
[74] | 33 | AC_COIN_PROJECTDIR_INIT |
---|
| 34 | |
---|
[49] | 35 | ############################################################################# |
---|
| 36 | # Standard build tool stuff # |
---|
| 37 | ############################################################################# |
---|
| 38 | |
---|
| 39 | # Get the system type |
---|
| 40 | AC_CANONICAL_BUILD |
---|
| 41 | |
---|
[536] | 42 | #turn off warnings and pedantic mode since they could make trouble on some platforms, |
---|
| 43 | #and we couldn't fix them anyway |
---|
| 44 | coin_skip_warn_fflags=yes |
---|
| 45 | |
---|
[49] | 46 | # Check if user wants to produce debugging code |
---|
[92] | 47 | AC_COIN_DEBUG_COMPILE(Blas) |
---|
[49] | 48 | |
---|
| 49 | # Get the name of the Fortran compiler and appropriate compiler options |
---|
| 50 | AC_COIN_PROG_F77 |
---|
| 51 | |
---|
[218] | 52 | # Initialize automake |
---|
[49] | 53 | AC_COIN_INIT_AUTO_TOOLS |
---|
| 54 | |
---|
[273] | 55 | # Check if Blas is already available on the system or provided by user |
---|
| 56 | AC_COIN_HAS_BLAS |
---|
| 57 | MAKEOKFILE=.MakeOk |
---|
| 58 | if test $coin_has_blas = yes && test "$use_blas" != BUILD; then |
---|
| 59 | rm -f $MAKEOKFILE |
---|
| 60 | AC_MSG_NOTICE([The Blas sources don't need to be compiled]) |
---|
| 61 | MAKEOKFILE= |
---|
| 62 | else |
---|
| 63 | touch $MAKEOKFILE |
---|
| 64 | fi |
---|
| 65 | AC_SUBST(MAKEOKFILE) |
---|
| 66 | AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE") |
---|
| 67 | |
---|
[49] | 68 | AC_CONFIG_FILES([Makefile]) |
---|
| 69 | |
---|
| 70 | AC_COIN_FINALIZE |
---|