From 360ad0425eaf8db5358367d8f1003857f0ae810e Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 11 Oct 2007 03:50:51 +0000 Subject: [PATCH] the intl subdir in binutils may redirect some funcs with libintl_* prefixes (like building for win32), so the attached patch adds a stub like the existing one for dcgettect() ... this fixes building of elf2flt for me for mingw targets Mike Frysinger --- configure | 2 +- configure.in | 2 +- stubs.c | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/configure b/configure index d672662..8d08e53 100755 --- a/configure +++ b/configure @@ -3667,7 +3667,7 @@ done -for ac_func in dcgettext +for ac_func in dcgettext libintl_dgettext do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/configure.in b/configure.in index 73443c6..d43b500 100644 --- a/configure.in +++ b/configure.in @@ -116,7 +116,7 @@ AC_C_CONST dnl Checks for library functions. AC_FUNC_VPRINTF -AC_CHECK_FUNCS(dcgettext) +AC_CHECK_FUNCS(dcgettext libintl_dgettext) dnl Subsitute values AC_SUBST(target) diff --git a/stubs.c b/stubs.c index fb14d63..59760a3 100644 --- a/stubs.c +++ b/stubs.c @@ -4,3 +4,10 @@ const char *dcgettext (const char *domain, const char *msg, int category) return msg; } #endif /* !HAVE_DCGETTEXT */ + +#ifndef HAVE_LIBINTL_DGETTEXT +const char *libintl_dgettext (const char *domain, const char *msg) +{ + return msg; +} +#endif /* !HAVE_LIBINTL_DGETTEXT */ -- 2.39.5