Just taking the first token on the output line and adding it to LIBADD gets through the build phase, but not distcheck. Further play will have to come another day.
make[4]: Entering directory
`/usr/local/src/gnulib/libposix/libposix/libposix-2010.10.03/_build/libposix'
make[5]: Entering directory
`/usr/local/src/gnulib/libposix/libposix/libposix-2010.10.03/_build/libposix'
depbase=`echo areadlink.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
if /bin/sh ../libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../../libposix -I.. -DGNULIB_STRICT_CHECKING=1
-g -O2 -MT areadlink.lo -MD -MP -MF "$depbase.Tpo" -c -o areadlink.lo
../../libposix/areadlink.c; \
then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../libposix -I..
-DGNULIB_STRICT_CHECKING=1 -g -O2 -MT areadlink.lo -MD -MP -MF
.deps/areadlink.Tpo -c ../../libposix/areadlink.c -fPIC -DPIC -o
.libs/areadlink.o
In file included from ../../libposix/areadlink.h:21,
from ../../libposix/areadlink.c:25:
../../libposix/stddef.h:56:17: error: #include_next expects "FILENAME"
or <FILENAME>
In file included from ../../libposix/areadlink.c:25:
../../libposix/areadlink.h:24: error: expected declaration specifiers
or '...' before 'size_t'
In file included from ../../libposix/areadlink.c:27:
../../libposix/errno.h:27:15: error: #include_next expects "FILENAME"
or <FILENAME>
../../libposix/errno.h:86:6: error: #if with no expression
../../libposix/errno.h:90:6: error: #if with no expression
../../libposix/errno.h:94:6: error: #if with no expression
mk-libposix.sh
Description: Bourne shell script
