Changeset 1452
- Timestamp:
- Nov 29, 2009 12:04:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/BSPsplit/coin.m4
r1451 r1452 3909 3909 # flags to use when linking against this module and the directories where the module data resists. 3910 3910 # 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 3912 3913 # the REQUIREDPACKAGES variable, which can be used to setup a .pc file. 3913 3914 # The first argument should be the name (MODULE) of the module (in correct lower … … 3915 3916 # The second argument should be a (space separated) list of projects which this 3916 3917 # 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'. 3917 3919 # 3918 3920 # It is also possible to specify a preinstalled version of this module 3919 3921 # 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. 3920 3924 3921 3925 AC_DEFUN([AC_COIN_HAS_MODULE], … … 3942 3946 AC_SUBST(REQUIREDPACKAGES) 3943 3947 3948 required=1 3949 3950 # execute third argument that can be used to overwrite flags like 'required' 3951 $3 3952 3944 3953 #check if user provided LIBS, CFLAGS, and DATA for module 3945 3954 if test $m4_tolower(coin_has_$1) != skipping; then … … 3950 3959 [m4_tolower(coin_has_$1)=yes 3951 3960 m4_toupper($1_LIBS)="$withval" 3952 ADDLIBS="$ADDLIBS $withval" 3961 if test $required = 1; then 3962 ADDLIBS="$ADDLIBS $withval" 3963 fi 3953 3964 ], 3954 3965 []) … … 4010 4021 [ m4_tolower(coin_has_$1)=yes 4011 4022 AC_MSG_RESULT([yes: $m4_toupper($1)_VERSIONS]) 4012 REQUIREDPACKAGES="$REQUIREDPACKAGES $2" 4023 if test $required = 1; then 4024 REQUIREDPACKAGES="$REQUIREDPACKAGES $2" 4025 fi 4013 4026 ], 4014 4027 [ m4_tolower(coin_has_$1)=notGiven
Note: See TracChangeset
for help on using the changeset viewer.