summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/packages/classpath/cp-tools/bytecodejar-workaround.patch
blob: f1336c2accb21df2cff6ca20ce9ddd6de3887b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- cp-tools.orig/configure.ac	2005-10-01 19:26:32.000000000 +0200
+++ cp-tools/configure.ac	2005-10-01 19:34:12.000000000 +0200
@@ -75,8 +75,21 @@
     with_gnubytecode=yes
   ]
 )
+AC_ARG_WITH([gnu-bytecode-jar],
+  [AS_HELP_STRING(--with-gnu-bytecode-jar,where to look for the gnu.bytecode.jar [[default=search]])],
+  [
+    if test "x${withval}" != xno; then
+      with_gnubytecodejar=${withval}
+    else
+      with_gnubytecodejar=no
+    fi
+  ],
+  [
+    with_gnubytecodejar=no
+  ]
+)
 AM_CONDITIONAL(USE_GNUBYTECODE, test "x${with_gnubytecode}" = xyes)
-if test "x${with_gnubytecode}" = xyes
+if test "x${with_gnubytecode}" = xyes -a "x${with_gnubytecodejar}" = xno
 then 
   for path in /usr /usr/local; do
     AC_CHECK_FILE([$path/share/java/bytecode.jar],
@@ -88,6 +101,12 @@
   test -d src || mkdir src
   test -d src/jars || mkdir src/jars
   cp -f ${BYTECODE_JAR} src/jars/
+else
+  BYTECODE_JAR=$with_gnubytecodejar
+  export BYTECODE_JAR
+  test -d src || mkdir src
+  test -d src/jars || mkdir src/jars
+  cp -f ${BYTECODE_JAR} src/jars/
 fi
 
 dnl