Changeset 1452


Ignore:
Timestamp:
Nov 29, 2009 12:04:56 PM (11 years ago)
Author:
stefan
Message:

add feature to indicate that a module is not required

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/BSPsplit/coin.m4

    r1451 r1452  
    39093909# flags to use when linking against this module and the directories where the module data resists.
    39103910# It also defines a COIN_HAS_MODULE preprocessor macro and makefile conditional.
    3911 # Further, tolower(coin_has_$1) is set to "yes" and the packages of the module are added to
     3911# Further, tolower(coin_has_$1) is set to "yes".
     3912# If the flag 'required' is set (which is on by default), then the packages of the module are added to
    39123913# the REQUIREDPACKAGES variable, which can be used to setup a .pc file.
    39133914# The first argument should be the name (MODULE) of the module (in correct lower
     
    39153916# The second argument should be a (space separated) list of projects which this
    39163917# module consists of. Optionally, required version numbers could be added.
     3918# The optional third argument can be used to overwrite default values for flags like 'required'.
    39173919#
    39183920# It is also possible to specify a preinstalled version of this module
    39193921# or to specify only the linker and compiler flags and data directory.
     3922# If the flag 'required' (which is on by default), then the user-given linker flags are added to
     3923# the ADDLIBS variable, which can be used to setup a .pc file.
    39203924
    39213925AC_DEFUN([AC_COIN_HAS_MODULE],
     
    39423946AC_SUBST(REQUIREDPACKAGES)
    39433947
     3948required=1
     3949
     3950# execute third argument that can be used to overwrite flags like 'required'
     3951$3
     3952
    39443953#check if user provided LIBS, CFLAGS, and DATA for module
    39453954if test $m4_tolower(coin_has_$1) != skipping; then
     
    39503959      [m4_tolower(coin_has_$1)=yes
    39513960       m4_toupper($1_LIBS)="$withval"
    3952        ADDLIBS="$ADDLIBS $withval"
     3961       if test $required = 1; then
     3962         ADDLIBS="$ADDLIBS $withval"
     3963       fi
    39533964      ],
    39543965      [])
     
    40104021      [ m4_tolower(coin_has_$1)=yes
    40114022        AC_MSG_RESULT([yes: $m4_toupper($1)_VERSIONS])
    4012         REQUIREDPACKAGES="$REQUIREDPACKAGES $2"
     4023        if test $required = 1; then
     4024          REQUIREDPACKAGES="$REQUIREDPACKAGES $2"
     4025        fi
    40134026      ],
    40144027      [ m4_tolower(coin_has_$1)=notGiven
Note: See TracChangeset for help on using the changeset viewer.