summaryrefslogtreecommitdiff
path: root/games-emulation/pcsx2/files/pcsx2-add-nls.patch
blob: 7add9fa278eb2643f533364022f0cd3cb8992fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"