]> sourceware.org Git - automake.git/commitdiff
* automake.in (&define_program_variable): Remove.
authorAkim Demaille <akim@epita.fr>
Tue, 8 May 2001 11:18:04 +0000 (11:18 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 8 May 2001 11:18:04 +0000 (11:18 +0000)
(&scan_one_autoconf_file): Skip MAKEINFO when found in an
AM_MISSING_PROG.
(&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
* texinfos.am: Do it.

ChangeLog
Makefile.in
automake.in
lib/am/texinfos.am
m4/Makefile.in
tests/Makefile.in
texinfos.am

index 21d94f5be7baf591fa4cd6f56038a2b1960cf162..018b8ec52abb9167d9e886a2950700d0263f3cac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-05-08  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (&define_program_variable): Remove.
+       (&scan_one_autoconf_file): Skip MAKEINFO when found in an
+       AM_MISSING_PROG.
+       (&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
+       * texinfos.am: Do it.
+
 2001-05-08  Akim Demaille  <akim@epita.fr>
 
        * automake.in (&handle_tests_dejagnu): Don't define EXPECT and
index 66466940446cb28a7cc29469b6c53f1540d23c1a..eb004c38d106a01b07090f91cee8bec14ce212fa 100644 (file)
@@ -64,7 +64,6 @@ AWK = @AWK@
 DEPDIR = @DEPDIR@
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 INSTALL_STRIP_PROGRAM_ENV = @INSTALL_STRIP_PROGRAM_ENV@
-MAKEINFO = @MAKEINFO@
 PACKAGE = @PACKAGE@
 PERL = @PERL@
 STRIP = @STRIP@
@@ -121,7 +120,6 @@ CONFIG_CLEAN_FILES = automake aclocal
 SCRIPTS = $(bin_SCRIPTS)
 
 DIST_SOURCES =
-TEXI2DVI = texi2dvi
 INFO_DEPS = automake.info
 DVIS = automake.dvi
 TEXINFOS = automake.texi
@@ -226,6 +224,9 @@ automake.dvi: automake.texi $(srcdir)/version.texi
        cd $(srcdir) \
          && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
 
+MAKEINFO = @MAKEINFO@
+TEXI2DVI = texi2dvi
+
 DVIPS = dvips
 .dvi.ps:
        $(DVIPS) $< -o $@
index 701b0f669a4846f17165755e2658fc482b4e256d..b7261a966aa9a045ea3cc127c3ed6305a2484855 100755 (executable)
@@ -2879,16 +2879,6 @@ sub handle_texinfo
        push (@dvis_list, $infobase . '.dvi');
     }
 
-    # Find these programs wherever they may lie.  Yes, this has
-    # intimate knowledge of the structure of the texinfo distribution.
-    &define_program_variable ('MAKEINFO', 'build', 'texinfo/makeinfo',
-                             'makeinfo',
-                             # Circumlocution to avoid accidental
-                             # configure substitution.
-                             '@MAKE' . 'INFO@');
-    &define_program_variable ('TEXI2DVI', 'src', 'texinfo/util',
-                             'texi2dvi');
-
     # Handle location of texinfo.tex.
     my $need_texi_file = 0;
     my $texinfodir;
@@ -4638,7 +4628,10 @@ sub scan_one_autoconf_file
            && $1 ne 'ACLOCAL'
            && $1 ne 'AUTOCONF'
            && $1 ne 'AUTOMAKE'
-           && $1 ne 'AUTOHEADER')
+           && $1 ne 'AUTOHEADER'
+           # AM_INIT_AUTOMAKE is AM_MISSING_PROG'ing MAKEINFO.  But
+           # we handle it elsewhere.
+           && $1 ne 'MAKEINFO')
        {
            $configure_vars{$1} = $filename . ':' . $.;
        }
@@ -6409,43 +6402,6 @@ sub define_compiler_variable
        if $seen_libtool;
 }
 
-
-# define_program_variable ($VAR, $WHATDIR, $SUBDIR, $PROGRAM, $OVERRIDE)
-# ----------------------------------------------------------------------
-# Define a variable that represents a program to run.  If in Cygnus
-# mode, the program is searched for in the build (or source) tree.
-# Otherwise no searching is done at all.  Arguments are:
-# * VAR      Name of variable to define
-# * WHATDIR  Either `src' or `build', depending on where program should
-#            be found.  (runtest is in srcdir!)
-# * SUBDIR   Subdir of top-level dir
-# * PROGRAM  Name of program
-# * OVERRIDE If specified, the name of the program to use when not in
-#            Cygnus mode.  Defaults to PROGRAM.
-sub define_program_variable
-{
-    my ($var, $whatdir, $subdir, $program, $override) = @_;
-
-    if (! $override)
-    {
-       $override = $program;
-    }
-
-    if ($cygnus_mode)
-    {
-       my $full = ('$(top_' . $whatdir . 'dir)/../'
-                   . $subdir . '/' . $program);
-       &define_variable ($var, ('`if test -f ' . $full
-                                . '; then echo ' . $full . '; else echo '
-                                . $program . '; fi`'));
-    }
-    else
-    {
-       &define_variable ($var, $override);
-    }
-}
-
-
 ################################################################
 
 ## ---------------- ##
index 4864ce027f2aced67307e89475096dd4021bff11..cdffb1797878ce80243f4331b4a1b8dcd7c011d0 100644 (file)
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
+## ----------- ##
+## Variables.  ##
+## ----------- ##
+
+if ! %?CYGNUS%
+MAKEINFO = @MAKEINFO@
+TEXI2DVI = texi2dvi
+
+else %?CYGNUS%
+
+## Find these programs wherever they may lie.  Yes, this has
+## intimate knowledge of the structure of the texinfo distribution.
+MAKEINFO = `if test -f $(top_builddir)/../texinfo/makeinfo/makeinfo; then \
+            echo $(top_builddir)/../texinfo/makeinfo/makeinfo; \
+          else \
+            echo makeinfo; \
+          fi`
+
+TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then \
+             echo $(top_srcdir)/../texinfo/util/texi2dvi; \
+           else \
+             echo texi2dvi; \
+           fi`
+endif %?CYGNUS%
+
+## ---------- ##
+## Building.  ##
+## ---------- ##
+
 ## The way to make PostScript, for those who want it.
 DVIPS = dvips
 .dvi.ps:
index c338bc7ccd4560b81cdacd05e27e0155bd7bde03..8a9a4fe37d3ed7dd8e0d630bd1711d65ae432f2f 100644 (file)
@@ -64,7 +64,6 @@ AWK = @AWK@
 DEPDIR = @DEPDIR@
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 INSTALL_STRIP_PROGRAM_ENV = @INSTALL_STRIP_PROGRAM_ENV@
-MAKEINFO = @MAKEINFO@
 PACKAGE = @PACKAGE@
 PERL = @PERL@
 STRIP = @STRIP@
index 0383a090dee370724b282c992fe2a61e0351c958..91137d9b44c71eb9dcb4a979a673d91ab4dc6e91 100644 (file)
@@ -64,7 +64,6 @@ AWK = @AWK@
 DEPDIR = @DEPDIR@
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 INSTALL_STRIP_PROGRAM_ENV = @INSTALL_STRIP_PROGRAM_ENV@
-MAKEINFO = @MAKEINFO@
 PACKAGE = @PACKAGE@
 PERL = @PERL@
 STRIP = @STRIP@
index 4864ce027f2aced67307e89475096dd4021bff11..cdffb1797878ce80243f4331b4a1b8dcd7c011d0 100644 (file)
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
+## ----------- ##
+## Variables.  ##
+## ----------- ##
+
+if ! %?CYGNUS%
+MAKEINFO = @MAKEINFO@
+TEXI2DVI = texi2dvi
+
+else %?CYGNUS%
+
+## Find these programs wherever they may lie.  Yes, this has
+## intimate knowledge of the structure of the texinfo distribution.
+MAKEINFO = `if test -f $(top_builddir)/../texinfo/makeinfo/makeinfo; then \
+            echo $(top_builddir)/../texinfo/makeinfo/makeinfo; \
+          else \
+            echo makeinfo; \
+          fi`
+
+TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then \
+             echo $(top_srcdir)/../texinfo/util/texi2dvi; \
+           else \
+             echo texi2dvi; \
+           fi`
+endif %?CYGNUS%
+
+## ---------- ##
+## Building.  ##
+## ---------- ##
+
 ## The way to make PostScript, for those who want it.
 DVIPS = dvips
 .dvi.ps:
This page took 0.053225 seconds and 5 git commands to generate.