Blame SOURCES/gcc5-java-nomulti.patch

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