[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
m4_include: problem with relative paths
From: |
Irek Szczesniak |
Subject: |
m4_include: problem with relative paths |
Date: |
Mon, 09 May 2005 10:14:47 -0600 |
User-agent: |
Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) |
I am using Automake 1.9.5 and Autoconf 2.59 on GNU/Linux 2.4.21. In
my project I have the subdirectory "config" where I have my custom
macros. And so in my Makefile.am I have:
> ACLOCAL_AMFLAGS = -I config
In the file project/config/x11_ext.m4 I need to reuse some code from
the file project/config/x11.m4 and so in the file
project/config/x11_ext.m4 I have this line:
> m4_include([x11.m4])
Now I want to reconfigure the project and so I execute in the project
directory:
> ~project >autoreconf -i
I get this:
> ~/project >autoreconf -i
> configure.in:482: /usr/bin/m4: Cannot open x11.m4: No such file or
> directory
> autom4te: /usr/bin/m4 failed with exit status: 1
> aclocal: autom4te failed with exit status: 1
> autoreconf: aclocal failed with exit status: 1
However, when my inclusion line is this:
> m4_include([config/x11.m4])
then I get the following error:
> ~/project >autoreconf -i
> config/x11_ext.m4:80: file `config/config/x11.m4' does not exist
> autoreconf: aclocal failed with exit status: 1
I would appreciate your advice on how to fix this problem.
Thanks for reading.
Best,
Irek
- m4_include: problem with relative paths,
Irek Szczesniak <=