Add games-emulation/pcsx2-0.9.4.
[overlay.git] / games-emulation / pcsx2 / files / pcsx2-add-nls.patch
diff --git a/games-emulation/pcsx2/files/pcsx2-add-nls.patch b/games-emulation/pcsx2/files/pcsx2-add-nls.patch
new file mode 100644 (file)
index 0000000..7add9fa
--- /dev/null
@@ -0,0 +1,21 @@
+--- configure.ac.old   2008-02-23 22:42:48.751259786 +0000
++++ configure.ac       2008-02-23 22:44:38.140260060 +0000
+@@ -107,7 +107,12 @@
+ AC_CHECK_LIB(stdc++,main,[LIBS="$LIBS -lstdc++"])
+ AC_CHECK_LIB(z,main,[LIBS="$LIBS -lz"])
+-AC_CHECK_HEADER([libintl.h], [AC_DEFINE(ENABLE_NLS,1,[__x86_64__])])
++AC_ARG_ENABLE(nls, AC_HELP_STRING([--disable-nls], [Disable nls support]),
++ nls=$enableval,nls=yes)
++if test "x$nls" == xyes
++then
++ AC_CHECK_HEADER([libintl.h], [AC_DEFINE(ENABLE_NLS,1,[__x86_64__])])
++fi
+ AC_OUTPUT([
+  Makefile
+@@ -132,3 +137,4 @@
+ echo "  Force sse3?              $sse3"
+ echo "  Recompilers enabled?   $recbuild"
+ echo "  Virtual memory build?  $vmbuild"
++echo "  nls support?         $nls"