|
From: Hans-Bernhard B. <br...@ph...> - 2005-07-28 14:40:09
|
Hans-Bernhard Br=F6ker wrote:
[GD detection failures caused by undefined references into -liconv...]
> other libraries) but still insists on trying its own tests even if=20
> gdlib-config was found. =20
The original reporter of this problem has since provided more=20
information. Turns out the key mistake was that not only shouldn't our=20
configure be trying to test libgd features by running test links; it's=20
getting those testlinks critically wrong, too. They don't use the=20
necessary libraries as reported by "gdlib-config --libs". Moving this=20
fragment in configure.in:
if test -n "$GDLIB_CONFIG"; then
libgd_LIBS=3D`gdlib-config --libs`
fi
to a point *before* we try AC_CHECK_LIB() calls on libgd features, might =
already help. But the correct approach would be not to test links at=20
all, if gdlib-config is available: it already reports everything we want =
to know about libgd, including the feature selection.
So, to summarize: there is an error our configure.in that's causing=20
those problems, and there's no point in explicitly checking for -liconv=20
as a workaround.
|