2006/1/29, Hiroshi SAKURAI <[EMAIL PROTECTED]>:
> Hi,
>
> building fish-1.20.1 fails on NetBSD2.0.
>
> $ gmake
> ...
> In file included from env.c:38:
> proc.h:131: error: field `tmodes' has incomplete type
>
> HAVE_TERM_H, HAVE_TERMIO_H and HAVE_NCURSES_H are
> not defiend in config.h even though I have /usr/pkg/include/term.h.
The fish build process seems somewhat incompetent when it comes to
finding additional include and library directories. I'm afraid my
machines all have terribly boring include paths, so I can't verify if
this works, but hopefully the below code should find any include and
library directories in /usr/pkg and /sw (used by fink on OS X). Could
you verify that by adding this near the top of configure.ac, and then
running autoconf and configure fixes things?
for i in /usr/pkg /sw; do
AC_MSG_CHECKING([for $i/include include directory])
if test -d $i/include; then
AC_MSG_RESULT(yes)
CPPFLAGS="$LDFLAGS -I$i/include/"
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING([for $i/lib library directory])
if test -d $i/lib; then
AC_MSG_RESULT(yes)
LDFLAGS="$LDFLAGS -L$i/include/"
else
AC_MSG_RESULT(no)
fi
done
>
> thanks.
>
> --
> Hiroshi SAKURAI
> http://vimrc.hp.infoseek.co.jp/
>
--
Axel