Re: [sane-devel] [PATCH] undef linux before defining STRINGIFY

2015-06-10 Thread Niels Ole Salscheider
On Wednesday 10 June 2015, 08:38:53, Olaf Meeuwissen wrote: Olaf Meeuwissen writes: Niels Ole Salscheider writes: Am 2015-06-09 14:21, schrieb m. allan noah: We need more info here. Where do you see this expansion problem? allan The problem is that LIBDIR is passed as a define

Re: [sane-devel] [PATCH] undef linux before defining STRINGIFY

2015-06-10 Thread Olaf Meeuwissen
Niels Ole Salscheider writes: On Wednesday 10 June 2015, 08:38:53, Olaf Meeuwissen wrote: [...] The double quotes in Makefile.am are eaten by the shell. You would also need to change the above to -DLIBDIR=\$(libdir)/sane\ in backend/Makefile.am and run autoreconf to update the rest

[sane-devel] [PATCH] undef linux before defining STRINGIFY

2015-06-09 Thread Niels Ole Salscheider
Otherwise, linux will be expanded to 1 when it is stringified. This is a problem for e. g. LIBDIR, which might contain a target triplet. On my system, /usr/x86_64-pc-linux-gnu-gcc would expand to x86_64-pc-1-gnu-gcc. --- include/sane/sanei.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [sane-devel] [PATCH] undef linux before defining STRINGIFY

2015-06-09 Thread Niels Ole Salscheider
Am 2015-06-09 14:21, schrieb m. allan noah: We need more info here. Where do you see this expansion problem? allan The problem is that LIBDIR is passed as a define from the build system. Then, STRINGIFY(LIBDIR) is used in backend/dll.c to get a string of the search path for the backends.

Re: [sane-devel] [PATCH] undef linux before defining STRINGIFY

2015-06-09 Thread Olaf Meeuwissen
Niels Ole Salscheider writes: Am 2015-06-09 14:21, schrieb m. allan noah: We need more info here. Where do you see this expansion problem? allan The problem is that LIBDIR is passed as a define from the build system. Then, STRINGIFY(LIBDIR) is used in backend/dll.c to get a string of the

Re: [sane-devel] [PATCH] undef linux before defining STRINGIFY

2015-06-09 Thread Olaf Meeuwissen
Olaf Meeuwissen writes: Niels Ole Salscheider writes: Am 2015-06-09 14:21, schrieb m. allan noah: We need more info here. Where do you see this expansion problem? allan The problem is that LIBDIR is passed as a define from the build system. Then, STRINGIFY(LIBDIR) is used in

Re: [sane-devel] [PATCH] undef linux before defining STRINGIFY

2015-06-09 Thread m. allan noah
We need more info here. Where do you see this expansion problem? allan On Sun, Jun 7, 2015 at 4:14 PM, Niels Ole Salscheider niels_...@salscheider-online.de wrote: Otherwise, linux will be expanded to 1 when it is stringified. This is a problem for e. g. LIBDIR, which might contain a target