Blame SOURCES/gcc5-java-nomulti.patch

ef53e9
--- libjava/configure.ac.jj	2007-12-07 17:55:50.000000000 +0100
ef53e9
+++ libjava/configure.ac	2007-12-07 18:36:56.000000000 +0100
ef53e9
@@ -82,6 +82,13 @@ AC_ARG_ENABLE(java-maintainer-mode,
ef53e9
 	[allow rebuilding of .class and .h files]))
ef53e9
 AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes)
ef53e9
 
ef53e9
+AC_ARG_ENABLE(libjava-multilib,
ef53e9
+	AS_HELP_STRING([--enable-libjava-multilib], [build libjava as multilib]))
ef53e9
+if test "$enable_libjava_multilib" = no; then
ef53e9
+  multilib=no
ef53e9
+  ac_configure_args="$ac_configure_args --disable-multilib"
ef53e9
+fi
ef53e9
+
ef53e9
 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
ef53e9
 GCC_NO_EXECUTABLES
ef53e9
 
ef53e9
--- libjava/configure.jj	2007-12-07 17:55:50.000000000 +0100
ef53e9
+++ libjava/configure	2007-12-07 18:39:58.000000000 +0100
ef53e9
@@ -1021,6 +1021,8 @@ Optional Features:
ef53e9
                           default=yes
ef53e9
   --enable-java-maintainer-mode
ef53e9
                           allow rebuilding of .class and .h files
ef53e9
+  --enable-libjava-multilib
ef53e9
+                          build libjava as multilib
ef53e9
   --disable-dependency-tracking  speeds up one-time build
ef53e9
   --enable-dependency-tracking   do not reject slow dependency extractors
ef53e9
   --enable-maintainer-mode  enable make rules and dependencies not useful
ef53e9
@@ -1973,6 +1975,16 @@ else
ef53e9
 fi
ef53e9
 
ef53e9
 
ef53e9
+# Check whether --enable-libjava-multilib was given.
ef53e9
+if test "${enable_libjava_multilib+set}" = set; then
ef53e9
+  enableval=$enable_libjava_multilib;
ef53e9
+fi
ef53e9
+
ef53e9
+if test "$enable_libjava_multilib" = no; then
ef53e9
+  multilib=no
ef53e9
+  ac_configure_args="$ac_configure_args --disable-multilib"
ef53e9
+fi
ef53e9
+
ef53e9
 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
ef53e9
 
ef53e9