Options.pm (automake-1.16.2.tar.xz) | : | Options.pm (automake-1.16.3.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 20 | skipping to change at line 20 | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
# GNU General Public License for more details. | # GNU General Public License for more details. | |||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | |||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |||
package Automake::Options; | package Automake::Options; | |||
use 5.006; | use 5.006; | |||
use strict; | use strict; | |||
use warnings FATAL => 'all'; | ||||
use Exporter; | use Exporter; | |||
use Automake::Config; | use Automake::Config; | |||
use Automake::ChannelDefs; | use Automake::ChannelDefs; | |||
use Automake::Channels; | use Automake::Channels; | |||
use Automake::Version; | use Automake::Version; | |||
use vars qw (@ISA @EXPORT); | our @ISA = qw (Exporter); | |||
our @EXPORT = qw (option global_option | ||||
@ISA = qw (Exporter); | set_option set_global_option | |||
@EXPORT = qw (option global_option | unset_option unset_global_option | |||
set_option set_global_option | process_option_list process_global_option_list | |||
unset_option unset_global_option | set_strictness $strictness $strictness_name | |||
process_option_list process_global_option_list | &FOREIGN &GNU &GNITS); | |||
set_strictness $strictness $strictness_name | ||||
&FOREIGN &GNU &GNITS); | ||||
=head1 NAME | =head1 NAME | |||
Automake::Options - keep track of Automake options | Automake::Options - keep track of Automake options | |||
=head1 SYNOPSIS | =head1 SYNOPSIS | |||
use Automake::Options; | use Automake::Options; | |||
# Option lookup and setting. | # Option lookup and setting. | |||
skipping to change at line 75 | skipping to change at line 76 | |||
This packages manages Automake's options and strictness settings. | This packages manages Automake's options and strictness settings. | |||
Options can be either local or global. Local options are set using an | Options can be either local or global. Local options are set using an | |||
C<AUTOMAKE_OPTIONS> variable in a F<Makefile.am> and apply only to | C<AUTOMAKE_OPTIONS> variable in a F<Makefile.am> and apply only to | |||
this F<Makefile.am>. Global options are set from the command line or | this F<Makefile.am>. Global options are set from the command line or | |||
passed as an argument to C<AM_INIT_AUTOMAKE>, they apply to all | passed as an argument to C<AM_INIT_AUTOMAKE>, they apply to all | |||
F<Makefile.am>s. | F<Makefile.am>s. | |||
=cut | =cut | |||
# Values are the Automake::Location of the definition. | # Values are the Automake::Location of the definition. | |||
use vars '%_options'; # From AUTOMAKE_OPTIONS | our %_options; # From AUTOMAKE_OPTIONS | |||
use vars '%_global_options'; # From AM_INIT_AUTOMAKE or the command line. | our %_global_options; # From AM_INIT_AUTOMAKE or the command line. | |||
# Whether process_option_list has already been called for the current | # Whether process_option_list has already been called for the current | |||
# Makefile.am. | # Makefile.am. | |||
use vars '$_options_processed'; | our $_options_processed; | |||
# Whether process_global_option_list has already been called. | # Whether process_global_option_list has already been called. | |||
use vars '$_global_options_processed'; | our $_global_options_processed; | |||
=head2 Constants | =head2 Constants | |||
=over 4 | =over 4 | |||
=item FOREIGN | =item FOREIGN | |||
=item GNU | =item GNU | |||
=item GNITS | =item GNITS | |||
skipping to change at line 122 | skipping to change at line 123 | |||
=item C<$strictness_name> | =item C<$strictness_name> | |||
The current strictness name. One of C<'foreign'>, C<'gnu'>, or C<'gnits'>. | The current strictness name. One of C<'foreign'>, C<'gnu'>, or C<'gnits'>. | |||
=back | =back | |||
=cut | =cut | |||
# Strictness levels. | # Strictness levels. | |||
use vars qw ($strictness $strictness_name); | our ($strictness, $strictness_name); | |||
# Strictness level as set on command line. | # Strictness level as set on command line. | |||
use vars qw ($_default_strictness $_default_strictness_name); | our ($_default_strictness, $_default_strictness_name); | |||
=head2 Functions | =head2 Functions | |||
=over 4 | =over 4 | |||
=item C<Automake::Options::reset> | =item C<Automake::Options::reset> | |||
Reset the options variables for the next F<Makefile.am>. | Reset the options variables for the next F<Makefile.am>. | |||
In other words, this gets rid of all local options in use by the | In other words, this gets rid of all local options in use by the | |||
End of changes. 8 change blocks. | ||||
15 lines changed or deleted | 16 lines changed or added |