automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ACLOCAL_AMFLAGS


From: Ralf Corsepius
Subject: ACLOCAL_AMFLAGS
Date: Wed, 31 Jan 2001 22:35:06 +0100

ACLOCAL_AMFLAGS are broken w/ cvs/automake

Example: 

Given this excerpt of a sourcetree:
aclocal/x.m4
a/b/configure.in
a/b/Makefile.am

cat a/b/Makefile.am
..
ACLOCAL_AMFLAGS = -I ../../aclocal
..

The generated Makefile.in will contain
..
$(ACLOCAL_M4): configure.in  \
                ./../aclocal/x.m4 \

AFAIS, the "strip "./"" from this patch is to blame for this:

revision 1.799
date: 2000/10/18 03:26:55;  author: proski;  state: Exp;  lines: +7
-1
* automake.in (handle_aclocal_m4): exclude aclocal.m4 and
acinclude.m4 from the dependencies of aclocal.m4 to avoid
circular and duplicated dependencies. Strip "./" from the
dependencies.

--- automake.in 2000/10/16 09:01:35     1.798
+++ automake.in 2000/10/18 03:26:55     1.799
@@ -3189,7 +3189,13 @@   
                    $examine_next = 0;
                    if ($amdir !~ /^\// && -d $amdir)
                    {
-                       push (@ac_deps, &my_glob ($amdir .
'/*.m4'));
+                       foreach $ac_dep (&my_glob ($amdir .
'/*.m4'))
+                       {
+                           $ac_dep =~ s/^\.\/*//;
+                           push (@ac_deps, $ac_dep)
+                               unless $ac_dep eq "aclocal.m4"
+                                   || $ac_dep eq "acinclude.m4";
+                       }
                    }
                } 
                elsif ($amdir eq '-I')


Ralf

-- 
Ralf Corsepius 
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:address@hidden           FAX: +49/731/501-999  
http://www.faw.uni-ulm.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]