Changeset 22346 for Makefile.PL

Show
Ignore:
Timestamp:
09/24/08 20:46:18 (2 months ago)
Author:
ruoso
Message:

[pugs] add --flags=SMOP if $ENV{PUGS_EMBED} =~ /\bsmop\b/i

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Makefile.PL

    r21924 r22346  
    155155    my $config_h = "src/Pugs/pugs_config.h"; 
    156156 
     157    my $EMBED_SMOP = ''; 
     158    $EMBED_SMOP='--flags=SMOP' if $ENV{PUGS_EMBED} =~ /\bsmop\b/i;  
    157159    # Ok, now we have Cabal-Install and all the deps.  Let's be lazy and write a simple makefile. 
    158160    postamble(<<"."); 
     
    170172        \$(RM_F) Pugs.cabal 
    171173        \$(CP) Pugs.cabal.in Pugs.cabal 
    172         ./Setup$Config{_exe} configure --user 
     174        ./Setup$Config{_exe} configure --user $EMBED_SMOP 
    173175        ./Setup$Config{_exe} build 
    174176        \$(CP) dist/build/pugs/pugs$Config{_exe} .