From 36115994e6df9e081e10554315b5a44a1231970f Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 25 Jan 2008 14:42:27 +0000 Subject: On Linux, just assume that if /usr/include/libintl.h exists, that it is GNU gettext. This works around amd64 issues on Gentoo. --- devel/gettext-lib/builtin.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'devel') diff --git a/devel/gettext-lib/builtin.mk b/devel/gettext-lib/builtin.mk index 637484921dc..8c0183d2a91 100644 --- a/devel/gettext-lib/builtin.mk +++ b/devel/gettext-lib/builtin.mk @@ -1,4 +1,6 @@ -# $NetBSD: builtin.mk,v 1.36 2007/09/24 18:33:52 jlam Exp $ +# $NetBSD: builtin.mk,v 1.37 2008/01/25 14:42:27 joerg Exp $ + +.include "../../mk/bsd.fast.prefs.mk" BUILTIN_PKG:= gettext @@ -6,7 +8,9 @@ BUILTIN_FIND_LIBS:= intl BUILTIN_FIND_FILES_VAR:= H_GETTEXT _BLTN_H_GETTEXT BUILTIN_FIND_FILES.H_GETTEXT= /usr/include/libintl.h BUILTIN_FIND_FILES._BLTN_H_GETTEXT= /usr/include/libintl.h +.if ${OPSYS} != "Linux" BUILTIN_FIND_GREP.H_GETTEXT= \#define[ ]*__USE_GNU_GETTEXT +.endif .include "../../mk/buildlink3/bsd.builtin.mk" @@ -18,7 +22,7 @@ BUILTIN_FIND_GREP.H_GETTEXT= \#define[ ]*__USE_GNU_GETTEXT IS_BUILTIN.gettext= no . if empty(H_GETTEXT:M__nonexistent__) && \ empty(H_GETTEXT:M${LOCALBASE}/*) && \ - !empty(BUILTIN_LIB_FOUND.intl:M[yY][eE][sS]) + (!empty(BUILTIN_LIB_FOUND.intl:M[yY][eE][sS]) || ${OPSYS} == "Linux") IS_BUILTIN.gettext= yes . endif .endif -- cgit v1.2.3