Changeset 1510 for branches


Ignore:
Timestamp:
Apr 24, 2010 12:55:01 PM (10 years ago)
Author:
stefan
Message:

fix for case where COIN_HAS_MODULE_FALLBACK is called without having called COIN_HAS_MODULE before; set ADDLIBS only if required is not 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/split/coin.m4

    r1509 r1510  
    37843784AC_DEFUN([AC_COIN_HAS_MODULE_FALLBACK],
    37853785[
    3786 if test $m4_tolower(coin_has_$1) != "yes" ; then
     3786if test x$m4_tolower(coin_has_$1) != "xyes" ; then
    37873787AC_MSG_CHECKING([for COIN-OR module $1 (fallback)])
    37883788
     
    38213821    m4_toupper($1_DATA)=`sed -n -e 's/datadir=//gp' $3/$2-uninstalled.pc`
    38223822
    3823     ADDLIBS="$ADDLIBS $m4_toupper($1_LIBS)"
    3824  
    3825     m4_bmatch($4, [required=0], [], [REQUIREDPACKAGES="$REQUIREDPACKAGES $2"])
     3823    m4_bmatch($4, [required=0], [],
     3824      [ADDLIBS="$ADDLIBS $m4_toupper($1_LIBS)"
     3825       REQUIREDPACKAGES="$REQUIREDPACKAGES $2"
     3826      ])
    38263827
    38273828    m4_bmatch($4, [dodefine=0], [],
Note: See TracChangeset for help on using the changeset viewer.