summaryrefslogtreecommitdiff
blob: 5f2ccf946492fd4d8df1b63cf99f6b2b222cc86b (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
39
diff -Naur jacl1.4.1.bak/Makefile.in jacl1.4.1/Makefile.in
--- jacl1.4.1.bak/Makefile.in	2008-09-14 14:44:18.000000000 +1200
+++ jacl1.4.1/Makefile.in	2008-09-14 14:46:31.000000000 +1200
@@ -54,7 +54,7 @@
 XTERM			= xterm
 JAVA_FLAGS		= @JAVA_FLAGS@
 JAVA_G_FLAGS		= @JAVA_G_FLAGS@
-JAVAC_FLAGS		= @JAVAC_FLAGS@
+JAVAC_FLAGS		?= @JAVAC_FLAGS@
 JAVAC_D_FLAG		= @JAVAC_D_FLAG@
 JAR_EXTRACT_FLAGS	= @JAR_EXTRACT_FLAGS@
 JAR_COMPRESS_FLAGS	= @JAR_COMPRESS_FLAGS@
@@ -983,8 +983,8 @@
 	$(JAVAC) $(JAVAC_FLAGS) \
 	$(JAVAC_D_FLAG) $(TCLJAVA_BUILD_DIR) \
 		tcl/lang/*.java
-	mkdir $(TCLJAVA_BUILD_DIR)/tcl/lang/library
-	mkdir $(TCLJAVA_BUILD_DIR)/tcl/lang/library/java
+	mkdir -p $(TCLJAVA_BUILD_DIR)/tcl/lang/library
+	mkdir -p $(TCLJAVA_BUILD_DIR)/tcl/lang/library/java
 	cp -fr $(TCLJAVA_SRC_DIR)/tcl/lang/library/java/*.tcl \
 		$(TCLJAVA_BUILD_DIR)/tcl/lang/library/java
 
diff -Naur jacl1.4.1.bak/tcljava.m4 jacl1.4.1/tcljava.m4
--- jacl1.4.1.bak/tcljava.m4	2008-09-14 14:44:18.000000000 +1200
+++ jacl1.4.1/tcljava.m4	2008-09-14 14:44:30.000000000 +1200
@@ -226,9 +226,9 @@
     # Look for a setting for the CLASSPATH, we might need one to run JAVAC
     AC_JAVA_CLASSPATH
 
-    # FIXME : add detection of command line arguments for JAVAC
-
-    JAVAC_FLAGS=-g
+    if test "x${JAVAC_FLAGS}" = "x"; then
+        JAVAC_FLAGS=-g
+    fi
     JAVAC_D_FLAG=-d
 
     dnl Test out the Java compiler with an empty class