aclocal problem

Matthew D. Fuller fullermd at over-yonder.net
Sun May 8 20:45:56 PDT 2005


On Sun, May 08, 2005 at 10:33:36PM -0500 I heard the voice of
DaJoob, and lo! it spake thus:
>
> pre-configure:
>    cd ${WRKSRC}
>    aclocal${USE_AUTOMAKE_VER}

The problem here is that make spawn external shell commands for these,
one per line.  So, it spawns off one shell which runs "cd ${WRKSRC}",
which works, but then that shell exits, so the second command runs in
another shell invocation in the current directory.  You need to put
them together in a single invocation like:

pre-configure:
    (cd ${WRKSRC} && aclocal${USE_AUTOMAKE_VER})

That way they both run sequentially in a single shell, and the aclocal
runs in the right dir.


-- 
Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.


More information about the freebsd-ports mailing list