File stardict-3.0.7-am_iconv-stub.patch of Package stardict

diff --git a/tools/m4/iconv.m4 b/tools/m4/iconv.m4
new file mode 100644
index 0000000..1111111
--- /dev/null
+++ b/tools/m4/iconv.m4
@@ -0,0 +1,50 @@
+# Stub AM_ICONV macro to satisfy autoreconf when tools are not built.
+# This avoids requiring gettext iconv.m4 in the build environment.
+# The tools subdir is disabled via --disable-tools in the spec.
+# If tools are enabled in the future, replace this stub with the
+# proper macro from gettext's iconv.m4.
+
+#serial 1
+
+AC_DEFUN([AM_ICONV],
+[
+  AC_PREREQ([2.60])
+  AC_MSG_CHECKING([for iconv support (stub)])
+  AC_CHECK_HEADERS([iconv.h], [have_iconv_h=yes], [have_iconv_h=no])
+  if test "x$have_iconv_h" = xyes; then
+    AC_DEFINE([HAVE_ICONV], [1], [Define to 1 if you have the `iconv' function and <iconv.h>.])
+  fi
+  # Provide empty substitutions expected by AM_ICONV users
+  AC_SUBST([LIBICONV], [""])
+  AC_SUBST([LTLIBICONV], [""])
+  AC_MSG_RESULT([ok])
+])

+# Backward compatibility in case configure.ac uses AM_ICONV_LINKFLAGS
+AC_DEFUN([AM_ICONV_LINKFLAGS],
+[
+  AC_SUBST([LIBICONV], [""])
+  AC_SUBST([LTLIBICONV], [""])
+])

+# Provide AM_ICONV_GETTEXT macro name if referenced
+AC_DEFUN([AM_ICONV_GETTEXT],
+[
+  AC_REQUIRE([AM_ICONV])
+])

openSUSE Build Service is sponsored by