]> git.wh0rd.org Git - elf2flt.git/commitdiff
the intl subdir in binutils may redirect some funcs with libintl_* prefixes
authorDavid McCullough <davidm@snapgear.com>
Thu, 11 Oct 2007 03:50:51 +0000 (03:50 +0000)
committerDavid McCullough <davidm@snapgear.com>
Thu, 11 Oct 2007 03:50:51 +0000 (03:50 +0000)
(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 <vapier@gentoo.org>

configure
configure.in
stubs.c

index d672662bc6492c6abd5ca1ec33e98895eba9b61b..8d08e531b4c6e35b6189055fced44db3b04718b5 100755 (executable)
--- 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
index 73443c6a3be27a08bb87c13eef274046066b44dc..d43b50053691990e65b603afa4e450f874f9b446 100644 (file)
@@ -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 fb14d6319b9e9724a96214826d21ebbcdcdf982c..59760a3a69ee6397fcc8d558c86a8f7ce99917a3 100644 (file)
--- 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 */