* automake.in (handle_LIBOBJS): Don't rely on the caller defining $1.
authorAlexandre Duret-Lutz <adl@gnu.org>
Wed, 7 Jun 2006 06:01:22 +0000 (06:01 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Wed, 7 Jun 2006 06:01:22 +0000 (06:01 +0000)
ChangeLog
automake.in

index 9dc41c2..b9506a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-06-07  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * automake.in (handle_LIBOBJS): Don't rely on the caller defining $1.
+
 2006-06-07  Stepan Kasal  <kasal@ucw.cz>
 
        * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Rewrite using AC_PROG_MKDIR_P.
index 8c22692..73e42e0 100755 (executable)
@@ -2195,8 +2195,8 @@ sub handle_LIBOBJS_or_ALLOCA ($)
 sub handle_LIBOBJS ($$$)
 {
   my ($var, $cond, $lt) = @_;
+  my $myobjext = $lt ? 'lo' : 'o';
   $lt ||= '';
-  my $myobjext = ($1 ? 'l' : '') . 'o';
 
   $var->requires_variables ("\@${lt}LIBOBJS\@ used", $lt . 'LIBOBJS')
     if ! keys %libsources;
@@ -2234,7 +2234,7 @@ sub handle_LIBOBJS ($$$)
 sub handle_ALLOCA ($$$)
 {
   my ($var, $cond, $lt) = @_;
-  my $myobjext = ($lt ? 'l' : '') . 'o';
+  my $myobjext = $lt ? 'lo' : 'o';
   $lt ||= '';
   my $dir = handle_LIBOBJS_or_ALLOCA "${lt}ALLOCA";