Ticket #1774: parrot-configure-without-readline.diff

File parrot-configure-without-readline.diff, 1.5 KB (added by ash, 4 years ago)

Diff for parrot configuration to add --without-readline

  • lib/Parrot/Configure/Options/Conf.pm

     
    102102   --without-gettext    Build parrot without gettext support 
    103103   --without-gmp        Build parrot without GMP support 
    104104   --without-opengl     Build parrot without OpenGL support (GL/GLU/GLUT) 
     105   --without-readline   Build parrot without readline support 
    105106   --without-pcre       Build parrot without pcre support 
    106107   --without-zlib       Build parrot without zlib support 
    107108 
  • lib/Parrot/Configure/Options/Conf/Shared.pm

     
    7777    without-gmp 
    7878    without-icu 
    7979    without-opengl 
     80    without-readline 
    8081    without-pcre 
    8182    without-threads 
    8283    without-zlib 
  • config/auto/readline.pm

     
    3636sub runstep { 
    3737    my ( $self, $conf ) = @_; 
    3838 
     39    my $without_opt = $conf->options->get('without-readline'); 
     40 
     41    if ($without_opt) { 
     42        $conf->data->set('HAS_READLINE' => 0); 
     43        $self->set_result('not requested');  
     44        return 1; 
     45    } 
     46 
    3947    my $cc     = $conf->data->get('cc'); 
    4048    my $osname = $conf->data->get('osname'); 
    4149