Subject: Re: bash2 and libintl check problem
To: Jeremy C. Reed <reed@reedmedia.net>
From: Johnny C. Lam <jlam@netbsd.org>
List: tech-pkg
Date: 11/01/2002 15:24:39
On Fri, Nov 01, 2002 at 01:58:17PM -0800, Jeremy C. Reed wrote:
> pkgsrc/shells/bash2 won't build under Debian Linux.
> 
> configure:1325: gcc -o conftest
> -I/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/include -O2
> -I/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/include
> -L/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/lib
> -Wl,-R/usr/lib conftest.c
> -L/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/lib
> -Wl,-R/usr/lib -lintl 1>&5
> /usr/bin/ld: cannot find -lintl
> 
> # ls -l /home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/lib
> total 0
> lrwxrwxrwx    1 root     jeremy         18 Nov  1 13:15 libintl.* ->
> /usr/lib/libintl.*
> 
> # ls -l /usr/lib/libintl.*
> ls: /usr/lib/libintl.*: No such file or directory
> 
> But I also have:
> /usr/include/libintl.h
> 
> The bash Makefile does:
> 
> .if exists(/usr/include/libintl.h)
> GETTEXT_PREFIX=         /usr
> 
> Maybe that should check for libraries also.
> 
> I worked-around this by doing:
> .if exists(/usr/include/libintl.h) && (exists(/usr/lib/libintl.so) || exists(/usr/lib/libintl.a))
> GETTEXT_PREFIX=         /usr
> 
> Should I send-pr that? Any comments?

Please send-pr this.  I'll take responsibility for it.

	Cheers,

	-- Johnny Lam <jlam@netbsd.org>