~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/belos/config/tac_arg_enable_feature_sub.m4

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl @synopsis TAC_ARG_ENABLE_FEATURE_SUB(FEATURE_NAME, SUB_FEATURE_NAME, FEATURE_DESCRIPTION, HAVE_NAME, DEFAULT_VAL)
2
 
dnl
3
 
dnl This hack gets around the fact that TAC_ARG_ENABLE_FEATURE does not support underscores
4
 
dnl in its feature names.  TAC_ARG_ENABLE_FEATURE_SUB allows exactly one underscore.  Not great,
5
 
dnl but arguably better than supporting no underscores.
6
 
dnl
7
 
dnl TAC_ARG_ENABLE_FEATURE(feature-sub, [Configure and build feature-sub], FEATURE_SUB, yes) 
8
 
dnl   fails because tac_arg_enable_feature tests for ac_cv_use_feature-sub which gets 
9
 
dnl   rejected because the `-' is not allowed in variables.  (AC_ARG_ENABLE sets ac_cv_use_feature_sub
10
 
dnl   to avoid this problem.)  Use:
11
 
dnl 
12
 
dnl TAC_ARG_ENABLE_FEATURE(feature, sub, [Configure and build feature-sub], FEATURE_SUB, yes) 
13
 
dnl   instead.
14
 
dnl
15
 
dnl Test for --enable-${FEATURE_NAME} and set to DEFAULT_VAL value if feature not specified.
16
 
dnl Also calls AC_DEFINE to define HAVE_${HAVE_NAME} if value is not equal to "no"
17
 
dnl 
18
 
dnl Use this macro to help defining whether or not optional 
19
 
dnl features* should compiled.  For example:
20
 
dnl
21
 
dnl TAC_ARG_ENABLE_FEATURE(epetra, [Configure and build epetra], EPETRA, yes)
22
 
dnl 
23
 
dnl will test for --enable-epetra when configure is run.  If it is defined 
24
 
dnl and not set to "no" or not defined (default is "yes") then HAVE_EPETRA will
25
 
dnl be defined, if --enable-epetra is defined to be "no", HAVE_EPETRA will not
26
 
dnl be defined.
27
 
dnl
28
 
dnl *NOTE: epetra, aztecoo, komplex, ifpack, and other software found in
29
 
dnl subdirectories of Trilinos/packages are "packages" in their own right.
30
 
dnl However, these packages are also "features" of the larger package
31
 
dnl "Trilinos".  Therefore, when configuring from the Trilinos directory,
32
 
dnl it is appropriate to refer to these software packages as "features".
33
 
dnl
34
 
dnl This file was based on tac_arg_enable_package.m4 by Jim Willenbring
35
 
dnl @author Ken Stanley <ksstanl@sandia.gov>
36
 
dnl
37
 
AC_DEFUN([TAC_ARG_ENABLE_FEATURE_SUB],
38
 
[
39
 
AC_ARG_ENABLE([$1-$2],
40
 
AC_HELP_STRING([--enable-$1-$2],[$3 (default is [$5])]),
41
 
ac_cv_use_$1_$2=$enableval, ac_cv_use_$1_$2=$5)
42
 
 
43
 
AC_MSG_CHECKING(whether to use [$1-$2])
44
 
 
45
 
if test "X$ac_cv_use_$1_$2" != "Xno"; then
46
 
  AC_MSG_RESULT(yes)  
47
 
  AC_DEFINE([HAVE_$4],,[Define if want to build $1-$2])
48
 
else
49
 
  AC_MSG_RESULT(no)
50
 
fi
51
 
])
52