[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-indent] indent 2.2.7 fails to build in non-src dir
From: |
Carlo Wood |
Subject: |
Re: [Bug-indent] indent 2.2.7 fails to build in non-src dir |
Date: |
Tue, 8 Jan 2002 06:35:28 +0100 |
User-agent: |
Mutt/1.2.5i |
On Mon, Jan 07, 2002 at 07:25:55PM -0800, Mike Castle wrote:
> When building in indent-2.2.7-build using ../indent-2.2.7/configure, this
> error occurs:
>
> i386-linux-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I.
> -I../../indent-2.2.7/src -I.. -I. -I../../indent-2.2.7/src -I.. -I../intl
> -I../../indent-2.2.7/intl -g -O2 -c `test -f ../../indent-2.2.7/src/args.c
> || echo '../../indent-2.2.7/src/'`../../indent-2.2.7/src/args.c
> In file included from ../../indent-2.2.7/src/args.c:26:
> ../../indent-2.2.7/src/indent.h:27: intl/libgettext.h: No such file or
> directory
>
> Compiling in indent-2.2.7 works.
Because indent doesn't generate header files (I think), all
includes should be for the $(srcdir). As you see, it includes
-I../intl (build dir) -I../../indent-2.2.7/intl (source dir).
So actually, the #include should be <libgettext.h> instead
of <intl/libgettext.h>. This will be fixed in the next release.
The reason that it coincidently works inside indent-2.2.7
itself is because for some reason automake always includes -I.
Replying because this mistake was mine,
--
Carlo Wood <address@hidden>