]> sourceware.org Git - automake.git/commitdiff
* automake.in (libtool_files, libtool_sometimes, common_files,
authorAlexandre Duret-Lutz <adl@gnu.org>
Mon, 5 Nov 2001 17:40:59 +0000 (17:40 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Mon, 5 Nov 2001 17:40:59 +0000 (17:40 +0000)
common_sometimes, config_aux_path): Use qw to simplify definition.
(scan_texinfo_file) <clean_suffixes, predefined_index,
hidden_index>: Likewise.
(scan_autoconf_traces) <traced>: Likewise.
(scan_one_autoconf_file, check_gnu_standards, resolve_linker):
Likewise.

ChangeLog
automake.in
tests/Makefile.in

index c6cbab5a61774d1547ecbd8b4a2e37b075cd822a..b2c874ff8ca855dda4ab61b5c09db3773232a668 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * automake.in (libtool_files, libtool_sometimes, common_files,
+       common_sometimes, config_aux_path): Use qw to simplify definition.
+       (scan_texinfo_file) <clean_suffixes, predefined_index,
+       hidden_index>: Likewise.
+       (scan_autoconf_traces) <traced>: Likewise.
+       (scan_one_autoconf_file, check_gnu_standards, resolve_linker):
+       Likewise.
+
 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * automake.in (handle_single_transform_list): Pass $nonansi_obj to
index d248e8c99dc5adc3165180267617963d842ded52..b748e7a06c058852dd36e800a40516832838503f 100755 (executable)
@@ -192,31 +192,24 @@ my $MOSTLY_CLEAN = 0;
 my $DIST_CLEAN = 1;
 
 # Libtool files.
-my @libtool_files = ('ltmain.sh', 'config.guess', 'config.sub');
+my @libtool_files = qw(ltmain.sh config.guess config.sub);
 # ltconfig appears here for compatibility with old versions of libtool.
-my @libtool_sometimes = ('ltconfig', 'ltcf-c.sh', 'ltcf-cxx.sh',
-                           'ltcf-gcj.sh');
+my @libtool_sometimes = qw(ltconfig ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh);
 
 # Commonly found files we look for and automatically include in
 # DISTFILES.
 my @common_files =
-  (
-   'README', 'THANKS', 'TODO', 'NEWS', 'COPYING', 'COPYING.LIB',
-   'INSTALL', 'ABOUT-NLS', 'ChangeLog', 'configure.ac',
-   'configure.in', 'configure', 'config.guess', 'config.sub',
-   'AUTHORS', 'BACKLOG', 'ABOUT-GNU', 'libversion.in',
-   'mdate-sh', 'mkinstalldirs', 'install-sh', 'texinfo.tex',
-   'ansi2knr.c', 'ansi2knr.1', 'elisp-comp',
-   'ylwrap', 'acinclude.m4', @libtool_files, @libtool_sometimes,
-   'missing', 'depcomp', 'compile', 'py-compile'
-  );
+    (qw(ABOUT-GNU ABOUT-NLS AUTHORS BACKLOG COPYING COPYING.LIB
+       ChangeLog INSTALL NEWS README THANKS TODO acinclude.m4
+       ansi2knr.1 ansi2knr.c compile config.guess config.sub
+       configure configure.ac configure.in depcomp elisp-comp
+       install-sh libversion.in mdate-sh missing mkinstalldirs
+       py-compile texinfo.tex ylwrap),
+     @libtool_files, @libtool_sometimes);
 
 # Commonly used files we auto-include, but only sometimes.
 my @common_sometimes =
-  (
-   'aclocal.m4', 'acconfig.h', 'config.h.top',
-   'config.h.bot', 'stamp-vti'
-  );
+    qw(aclocal.m4 acconfig.h config.h.top config.h.bot stamp-vti);
 
 # Copyright on generated Makefile.ins.
 my $gen_copyright = "\
@@ -371,7 +364,7 @@ my $ac_config_files_location;
 
 # List of directories to search for configure-required files.  This
 # can be set by AC_CONFIG_AUX_DIR.
-my @config_aux_path = ('.', '..', '../..');
+my @config_aux_path = qw(. .. ../..);
 my $config_aux_dir = '';
 my $config_aux_dir_set_in_configure_in = 0;
 
@@ -2878,36 +2871,23 @@ sub scan_texinfo_file
     my ($filename) = @_;
 
     # These are always created, no matter whether indexes are used or not.
-    my @clean_suffixes = ('aux', 'dvi', 'log', 'ps', 'toc',
-                         # grep new.*index texinfo.tex
-                         'cp', 'fn', 'ky', 'vr', 'tp', 'pg');
+    my @clean_suffixes = qw(aux dvi log ps toc
+                           cp fn ky vr tp pg); # grep new.*index texinfo.tex
 
     # There are predefined indexes which don't follow the regular rules.
-    my %predefined_index =
-      (
-       # cindex => *.cps
-       'c' => 'cps', 'f' => 'fns', 'k' => 'kys',
-       'v' => 'vrs', 't' => 'tps', 'p' => 'pgs'
-      );
+    my %predefined_index = qw(c cps
+                             f fns
+                             k kys
+                             v vrs
+                             t tps
+                             p pgs);
 
     # There are commands which include a hidden index command.
-    my %hidden_index =
-      (
-       # deffn => *.fns.
-       'fn' => 'fns',     'un' => 'fns',
-       'typefn' => 'fns', 'typefun' => 'fns',
-       'mac' => 'fns', 'spec' => 'fns',
-       'op' => 'fns',  'typeop' => 'fns',
-       'method' => 'fns', 'typemethod' => 'fns',
-
-       'vr' => 'vrs', 'var' => 'vrs',
-       'typevr' => 'vrs', 'typevar' => 'vrs',
-       'opt' => 'vrs',
-       'cv' => 'vrs',
-       'ivar' => 'vrs', 'typeivar' => 'vrs',
-
-       'tp' => 'tps'
-      );
+    my %hidden_index = (tp => 'tps');
+    $hidden_index{$_} = 'fns' foreach qw(fn un typefn typefun max spec
+                                        op typeop method typemethod);
+    $hidden_index{$_} = 'fns' foreach qw(vr var typevr typevar opt cv
+                                        ivar typeivar);
 
     # Indexes stored into another one.  In this case, the *.??s file
     # is not created.
@@ -4387,25 +4367,23 @@ sub scan_autoconf_traces ($)
 {
   my ($filename) = @_;
 
-  my @traced = (
-               'AC_CANONICAL_HOST',
-               'AC_CANONICAL_SYSTEM',
-               'AC_CONFIG_AUX_DIR',
-               'AC_CONFIG_FILES',
-               'AC_LIBSOURCE',
-               'AC_PROG_LIBTOOL', 'AM_PROG_LIBTOOL',
-               'AC_PROG_LEX',
-               'AC_SUBST',
-               'AM_CONDITIONAL',
-               'AM_CONFIG_HEADER',
-               'AM_C_PROTOTYPES',
-               'AM_GNU_GETTEXT',
-               'AM_INIT_AUTOMAKE',
-               'AM_MAINTAINER_MODE',
-               'AM_PATH_LISPDIR',
-               'AM_PATH_PYTHON',
-               'AM_PROG_CC_C_O',
-              );
+  my @traced = qw(AC_CANONICAL_HOST
+                 AC_CANONICAL_SYSTEM
+                 AC_CONFIG_AUX_DIR
+                 AC_CONFIG_FILES
+                 AC_LIBSOURCE
+                 AC_PROG_LIBTOOL AM_PROG_LIBTOOL
+                 AC_PROG_LEX
+                 AC_SUBST
+                 AM_CONDITIONAL
+                 AM_CONFIG_HEADER
+                 AM_C_PROTOTYPES
+                 AM_GNU_GETTEXT
+                 AM_INIT_AUTOMAKE
+                 AM_MAINTAINER_MODE
+                 AM_PATH_LISPDIR
+                 AM_PATH_PYTHON
+                 AM_PROG_CC_C_O);
 
   my $traces = "$ENV{amtraces} ";
 
@@ -4713,8 +4691,7 @@ sub scan_one_autoconf_file
         # because not all programs will necessarily use X.
        if (/AC_PATH_XTRA/)
          {
-           foreach my $var ('X_CFLAGS', 'X_LIBS', 'X_EXTRA_LIBS',
-                            'X_PRE_LIBS')
+           foreach my $var qw(X_CFLAGS X_LIBS X_EXTRA_LIBS X_PRE_LIBS)
              {
                $configure_vars{$var} = $here;
              }
@@ -4911,9 +4888,8 @@ sub check_gnu_standards
     if ($relative_dir eq '.')
     {
        # In top level (or only) directory.
-       require_file ('',
-                     $GNU, 'INSTALL', 'NEWS', 'README', 'COPYING',
-                     'AUTHORS', 'ChangeLog');
+       require_file ('', $GNU,
+                     qw(INSTALL NEWS README COPYING AUTHORS ChangeLog));
     }
 
     if ($strictness >= $GNU
@@ -5226,14 +5202,10 @@ sub resolve_linker
 {
     my (%linkers) = @_;
 
-    return 'GCJLINK'
-       if defined $linkers{'GCJLINK'};
-    return 'CXXLINK'
-       if defined $linkers{'CXXLINK'};
-    return 'F77LINK'
-       if defined $linkers{'F77LINK'};
-    return 'OBJCLINK'
-        if defined $linkers{'OBJCLINK'};
+    foreach my $l (qw(GCJLINK CXXLINK F77LINK OBJCLINK))
+    {
+       return $l if defined $linkers{$l};
+    }
     return 'LINK';
 }
 
index dd57a38fe4049938fc02e5974e910a47d9e91c6a..cc713020be3f2bc377a8955d918bf2c93d9e471c 100644 (file)
@@ -360,6 +360,8 @@ substtarg.test \
 suffix.test \
 suffix2.test \
 suffix3.test \
+suffix4.test \
+suffix5.test \
 symlink.test \
 symlink2.test \
 symlink3.test \
@@ -415,9 +417,7 @@ $(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
        cd $(top_srcdir) && \
          $(AUTOMAKE) --gnu  tests/Makefile
 Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
-       cd $(top_builddir) && \
-         CONFIG_HEADERS= CONFIG_LINKS= \
-         CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
+       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
 uninstall-info-am:
 tags: TAGS
 TAGS:
This page took 0.05413 seconds and 5 git commands to generate.