home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Programming / jikes-1.02 / jikes-diffs < prev    next >
Encoding:
Text File  |  1999-09-05  |  57.9 KB  |  1,563 lines

  1. diff -u -r -N jikes-1.02.orig/src/Makefile.amiga jikes-1.02/src/Makefile.amiga
  2. --- jikes-1.02.orig/src/Makefile.amiga    Thu Jan  1 02:00:00 1970
  3. +++ jikes-1.02/src/Makefile.amiga    Sun Sep  5 20:51:55 1999
  4. @@ -0,0 +1,418 @@
  5. +# Generated automatically from Makefile.in by configure.
  6. +# $Id: Makefile.in,v 1.7 1999/08/23 19:41:58 shields Exp $
  7. +
  8. +CC=c++
  9. +CCREQUIREDFLAGS=-funsigned-char -c -ansi -DTYPE_bool -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir -include libc5-fix.h -I.
  10. +CCDEBUGFLAGS=-DTEST -g
  11. +CCOPTFLAGS=-O0 -fomit-frame-pointer -m68020-60 -m68881
  12. +CCFLAGS=$(CCREQUIREDFLAGS) $(CCOPTFLAGS)
  13. +CFLAGS=$(CCFLAGS)
  14. +ERASE=rm -f
  15. +EXECUTABLE=jikes
  16. +LD=c++
  17. +LDFLAGS=-s -L. -o $(EXECUTABLE) -m68020-60 -m68881
  18. +# Use GG:lib/libnix/swapstack.o when compiling for a 68000
  19. +# Use GG:lib/libm020/libnix/swapstack.o when compiling for a 68020+
  20. +SYSOBJECTS=GG:lib/libm020/libnix/swapstack.o -noixemul
  21. +
  22. +
  23. +
  24. +BUILD_DIR=.
  25. +
  26. +srcdir        = .
  27. +prefix        = /gg
  28. +exec_prefix    = ${prefix}
  29. +
  30. +
  31. +#
  32. +# You should not need to edit below here
  33. +#
  34. +
  35. +
  36. +all:  $(EXECUTABLE)
  37. +
  38. +clean:
  39. +    $(ERASE) $(EXECUTABLE)
  40. +    $(ERASE) $(OBJECTS)
  41. +
  42. +distclean: clean
  43. +    $(ERASE) config.cache config.log config.status
  44. +    $(ERASE) Makefile
  45. +
  46. +install: all
  47. +    mkdir -p $(prefix)/bin
  48. +    strip $(EXECUTABLE)
  49. +    cp $(EXECUTABLE) $(prefix)/bin
  50. +    mkdir -p $(prefix)/man/man1
  51. +    cp jikes.1 $(prefix)/man/man1
  52. +
  53. +OBJECTS=jikes.o scanner.o code.o zip.o unzip.o \
  54. +        ast.o diagnose.o parser.o lpginput.o javaact.o \
  55. +        error.o set.o symbol.o lookup.o long.o depend.o \
  56. +        stream.o op.o control.o modifier.o system.o \
  57. +        bytecode.o body.o decl.o definite.o dump.o expr.o \
  58. +        getclass.o init.o double.o config.o option.o \
  59. +        incrmnt.o case.o tab.o segment.o amiga.o
  60. +
  61. +$(EXECUTABLE):    $(OBJECTS)
  62. +    $(LD) $(LDFLAGS)  $(OBJECTS) $(SYSOBJECTS)
  63. +
  64. +
  65. +javasym.h: $(srcdir)/java.g
  66. +    jikespg $(srcdir)/java.g
  67. +    $(ERASE) java.l
  68. +
  69. +javadef.h: $(srcdir)/java.g
  70. +    jikespg $(srcdir)/java.g
  71. +    $(ERASE) java.l
  72. +
  73. +javadcl.h: $(srcdir)/java.g
  74. +    jikespg $(srcdir)/java.g
  75. +    $(ERASE) java.l
  76. +
  77. +javaprs.h: $(srcdir)/java.g
  78. +    jikespg $(srcdir)/java.g
  79. +    $(ERASE) java.l
  80. +
  81. +
  82. +ast.o:  $(srcdir)/ast.cpp $(srcdir)/config.h \
  83. +          $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/ast.h \
  84. +          $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  85. +          $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  86. +          $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/option.h \
  87. +          $(srcdir)/depend.h $(srcdir)/access.h 
  88. +    $(CC) $(CCFLAGS) $(srcdir)/ast.cpp 
  89. +
  90. +body.o: $(srcdir)/body.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  91. +          $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  92. +          $(srcdir)/javasym.h $(srcdir)/tuple.h \
  93. +          $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  94. +          $(srcdir)/double.h $(srcdir)/code.h \
  95. +      $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  96. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  97. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  98. +          $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  99. +    $(CC) $(CCFLAGS) $(srcdir)/body.cpp 
  100. +
  101. +bytecode.o: $(srcdir)/bytecode.cpp $(srcdir)/config.h $(srcdir)/ast.h \
  102. +              $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  103. +              $(srcdir)/tuple.h $(srcdir)/tab.h \
  104. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  105. +              $(srcdir)/code.h $(srcdir)/case.h \
  106. +              $(srcdir)/symbol.h $(srcdir)/option.h $(srcdir)/depend.h \
  107. +              $(srcdir)/access.h $(srcdir)/bytecode.h $(srcdir)/class.h \
  108. +              $(srcdir)/semantic.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  109. +              $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  110. +              $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h \
  111. +              $(srcdir)/op.h $(srcdir)/segment.h  \
  112. +              $(srcdir)/op.h $(srcdir)/table.h 
  113. +    $(CC) $(CCFLAGS) $(srcdir)/bytecode.cpp 
  114. +
  115. +config.o:  $(srcdir)/config.cpp $(srcdir)/config.h 
  116. +    $(CC) $(CCFLAGS) $(srcdir)/config.cpp 
  117. +
  118. +code.o:  $(srcdir)/code.cpp $(srcdir)/code.h $(srcdir)/config.h 
  119. +    $(CC) $(CCFLAGS) $(srcdir)/code.cpp 
  120. +
  121. +control.o:  $(srcdir)/control.cpp $(srcdir)/config.h $(srcdir)/control.h \
  122. +              $(srcdir)/option.h $(srcdir)/code.h \
  123. +              $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  124. +              $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  125. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  126. +              $(srcdir)/case.h $(srcdir)/depend.h \
  127. +              $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/scanner.h \
  128. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  129. +              $(srcdir)/javaact.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  130. +          $(srcdir)/diagnose.h $(srcdir)/error.h $(srcdir)/bytecode.h \
  131. +              $(srcdir)/class.h $(srcdir)/segment.h \
  132. +              $(srcdir)/class.h $(srcdir)/op.h 
  133. +    $(CC) $(CCFLAGS) $(srcdir)/control.cpp 
  134. +
  135. +case.o:  $(srcdir)/case.cpp $(srcdir)/config.h $(srcdir)/case.h 
  136. +    $(CC) $(CCFLAGS) $(srcdir)/case.cpp 
  137. +
  138. +diagnose.o:  $(srcdir)/diagnose.cpp $(srcdir)/config.h $(srcdir)/diagnose.h \
  139. +               $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/stream.h \
  140. +           $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  141. +               $(srcdir)/tab.h $(srcdir)/lookup.h \
  142. +               $(srcdir)/long.h $(srcdir)/double.h \
  143. +               $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/javaprs.h \
  144. +               $(srcdir)/javaact.h $(srcdir)/control.h $(srcdir)/option.h \
  145. +           $(srcdir)/symbol.h $(srcdir)/depend.h $(srcdir)/access.h \
  146. +               $(srcdir)/set.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  147. +               $(srcdir)/error.h $(srcdir)/spell.h
  148. +    $(CC) $(CCFLAGS) $(srcdir)/diagnose.cpp 
  149. +
  150. +decl.o:  $(srcdir)/decl.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  151. +           $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  152. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  153. +           $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  154. +           $(srcdir)/double.h $(srcdir)/code.h \
  155. +       $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  156. +           $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  157. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  158. +           $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  159. +           $(srcdir)/set.h $(srcdir)/table.h 
  160. +    $(CC) $(CCFLAGS) $(srcdir)/decl.cpp 
  161. +
  162. +definite.o:  $(srcdir)/definite.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  163. +               $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  164. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  165. +               $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  166. +               $(srcdir)/double.h $(srcdir)/code.h \
  167. +               $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  168. +               $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  169. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  170. +               $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  171. +               $(srcdir)/set.h 
  172. +    $(CC) $(CCFLAGS) $(srcdir)/definite.cpp 
  173. +
  174. +depend.o:  $(srcdir)/depend.cpp $(srcdir)/config.h $(srcdir)/ast.h \
  175. +             $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  176. +             $(srcdir)/tuple.h $(srcdir)/tab.h \
  177. +             $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  178. +             $(srcdir)/code.h $(srcdir)/case.h \
  179. +         $(srcdir)/symbol.h $(srcdir)/option.h $(srcdir)/depend.h \
  180. +             $(srcdir)/access.h $(srcdir)/semantic.h $(srcdir)/diagnose.h \
  181. +         $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  182. +             $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  183. +             $(srcdir)/set.h 
  184. +    $(CC) $(CCFLAGS) $(srcdir)/depend.cpp 
  185. +
  186. +double.o:  $(srcdir)/double.cpp $(srcdir)/config.h $(srcdir)/double.h \
  187. +             $(srcdir)/long.h 
  188. +    $(CC) $(CCFLAGS) $(srcdir)/double.cpp 
  189. +
  190. +dump.o:  $(srcdir)/dump.cpp $(srcdir)/config.h $(srcdir)/javasym.h \
  191. +           $(srcdir)/control.h $(srcdir)/option.h \
  192. +           $(srcdir)/code.h $(srcdir)/tuple.h $(srcdir)/symbol.h \
  193. +           $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/tab.h \
  194. +           $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  195. +           $(srcdir)/case.h $(srcdir)/depend.h \
  196. +           $(srcdir)/access.h $(srcdir)/set.h 
  197. +    $(CC) $(CCFLAGS) $(srcdir)/dump.cpp 
  198. +
  199. +error.o:  $(srcdir)/error.cpp $(srcdir)/config.h \
  200. +            $(srcdir)/code.h $(srcdir)/case.h \
  201. +            $(srcdir)/error.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  202. +            $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/tab.h \
  203. +            $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  204. +            $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/symbol.h \
  205. +            $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h \
  206. +        $(srcdir)/semantic.h $(srcdir)/ast.h $(srcdir)/diagnose.h \
  207. +            $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  208. +        $(srcdir)/javaact.h 
  209. +    $(CC) $(CCFLAGS) $(srcdir)/error.cpp 
  210. +
  211. +expr.o:  $(srcdir)/expr.cpp $(srcdir)/double.h $(srcdir)/config.h \
  212. +           $(srcdir)/parser.h $(srcdir)/lpginput.h \
  213. +           $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  214. +           $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  215. +           $(srcdir)/long.h $(srcdir)/code.h \
  216. +           $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  217. +           $(srcdir)/semantic.h $(srcdir)/ast.h $(srcdir)/symbol.h \
  218. +       $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  219. +           $(srcdir)/diagnose.h $(srcdir)/error.h $(srcdir)/control.h \
  220. +           $(srcdir)/set.h $(srcdir)/table.h $(srcdir)/spell.h
  221. +    $(CC) $(CCFLAGS) $(srcdir)/expr.cpp 
  222. +
  223. +getclass.o:  $(srcdir)/getclass.cpp $(srcdir)/config.h $(srcdir)/control.h \
  224. +               $(srcdir)/option.h $(srcdir)/code.h \
  225. +               $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  226. +               $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  227. +               $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  228. +               $(srcdir)/case.h $(srcdir)/depend.h \
  229. +               $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/semantic.h \
  230. +           $(srcdir)/ast.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  231. +               $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  232. +               $(srcdir)/error.h $(srcdir)/getclass.h $(srcdir)/zip.h \
  233. +               $(srcdir)/unzip.h 
  234. +    $(CC) $(CCFLAGS) $(srcdir)/getclass.cpp 
  235. +
  236. +incrmnt.o:  $(srcdir)/incrmnt.cpp $(srcdir)/config.h $(srcdir)/control.h \
  237. +              $(srcdir)/option.h $(srcdir)/code.h \
  238. +              $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  239. +              $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  240. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  241. +              $(srcdir)/case.h $(srcdir)/depend.h \
  242. +              $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/scanner.h \
  243. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  244. +              $(srcdir)/javaact.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  245. +          $(srcdir)/diagnose.h $(srcdir)/error.h 
  246. +    $(CC) $(CCFLAGS) $(srcdir)/incrmnt.cpp 
  247. +
  248. +init.o:  $(srcdir)/init.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  249. +           $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  250. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  251. +           $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  252. +           $(srcdir)/double.h $(srcdir)/code.h \
  253. +       $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  254. +           $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  255. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  256. +           $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  257. +    $(CC) $(CCFLAGS) $(srcdir)/init.cpp
  258. +
  259. +javaact.o: $(srcdir)/javaact.cpp $(srcdir)/config.h $(srcdir)/parser.h \
  260. +             $(srcdir)/lpginput.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  261. +         $(srcdir)/javasym.h $(srcdir)/tuple.h \
  262. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  263. +             $(srcdir)/double.h $(srcdir)/code.h \
  264. +             $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  265. +             $(srcdir)/ast.h $(srcdir)/symbol.h $(srcdir)/option.h \
  266. +         $(srcdir)/depend.h $(srcdir)/access.h 
  267. +    $(CC) $(CCFLAGS) $(srcdir)/javaact.cpp
  268. +
  269. +jikes.o:  $(srcdir)/jikes.cpp $(srcdir)/config.h $(srcdir)/control.h \
  270. +            $(srcdir)/option.h $(srcdir)/code.h \
  271. +            $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  272. +            $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  273. +            $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  274. +            $(srcdir)/case.h $(srcdir)/depend.h \
  275. +            $(srcdir)/access.h $(srcdir)/set.h 
  276. +    $(CC) $(CCFLAGS) $(srcdir)/jikes.cpp
  277. +
  278. +long.o:  $(srcdir)/long.cpp $(srcdir)/config.h $(srcdir)/long.h \
  279. +           $(srcdir)/double.h 
  280. +    $(CC) $(CCFLAGS) $(srcdir)/long.cpp 
  281. +
  282. +lookup.o:  $(srcdir)/lookup.cpp $(srcdir)/config.h $(srcdir)/lookup.h \
  283. +             $(srcdir)/tuple.h $(srcdir)/long.h \
  284. +             $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/code.h \
  285. +             $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  286. +             $(srcdir)/tab.h $(srcdir)/case.h \
  287. +             $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  288. +             $(srcdir)/ast.h 
  289. +    $(CC) $(CCFLAGS) $(srcdir)/lookup.cpp
  290. +
  291. +lpginput.o:  $(srcdir)/lpginput.cpp $(srcdir)/config.h $(srcdir)/lpginput.h \
  292. +               $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  293. +           $(srcdir)/tuple.h $(srcdir)/tab.h \
  294. +               $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  295. +               $(srcdir)/code.h $(srcdir)/case.h \
  296. +               $(srcdir)/javaprs.h $(srcdir)/javadcl.h 
  297. +    $(CC) $(CCFLAGS) $(srcdir)/lpginput.cpp 
  298. +
  299. +modifier.o:  $(srcdir)/modifier.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  300. +               $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  301. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  302. +               $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  303. +               $(srcdir)/double.h $(srcdir)/code.h \
  304. +               $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  305. +               $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  306. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  307. +               $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  308. +               $(srcdir)/set.h 
  309. +    $(CC) $(CCFLAGS) $(srcdir)/modifier.cpp 
  310. +
  311. +op.o:  $(srcdir)/op.cpp $(srcdir)/config.h $(srcdir)/op.h $(srcdir)/tuple.h \
  312. +         $(srcdir)/class.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  313. +     $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  314. +         $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  315. +     $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/symbol.h \
  316. +         $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  317. +         $(srcdir)/diagnose.h $(srcdir)/parser.h $(srcdir)/lpginput.h \
  318. +         $(srcdir)/javaprs.h $(srcdir)/javaact.h $(srcdir)/error.h \
  319. +     $(srcdir)/control.h $(srcdir)/set.h 
  320. +    $(CC) $(CCFLAGS) $(srcdir)/op.cpp 
  321. +
  322. +option.o:  $(srcdir)/option.cpp $(srcdir)/option.h $(srcdir)/config.h \
  323. +             $(srcdir)/code.h $(srcdir)/tuple.h \
  324. +             $(srcdir)/javasym.h $(srcdir)/error.h $(srcdir)/stream.h \
  325. +             $(srcdir)/javadef.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  326. +             $(srcdir)/long.h $(srcdir)/double.h \
  327. +             $(srcdir)/case.h 
  328. +    $(CC) $(CCFLAGS) $(srcdir)/option.cpp 
  329. +
  330. +parser.o:  $(srcdir)/parser.cpp $(srcdir)/config.h $(srcdir)/parser.h \
  331. +             $(srcdir)/lpginput.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  332. +         $(srcdir)/javasym.h $(srcdir)/tuple.h \
  333. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  334. +             $(srcdir)/double.h $(srcdir)/code.h \
  335. +             $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  336. +             $(srcdir)/ast.h $(srcdir)/symbol.h $(srcdir)/option.h \
  337. +         $(srcdir)/depend.h $(srcdir)/access.h 
  338. +    $(CC) $(CCFLAGS) $(srcdir)/parser.cpp
  339. +
  340. +scanner.o: $(srcdir)/scanner.cpp $(srcdir)/config.h $(srcdir)/scanner.h \
  341. +             $(srcdir)/code.h $(srcdir)/javadef.h \
  342. +             $(srcdir)/javasym.h $(srcdir)/stream.h $(srcdir)/tuple.h \
  343. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  344. +             $(srcdir)/double.h $(srcdir)/case.h \
  345. +             $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/symbol.h \
  346. +             $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/error.h 
  347. +    $(CC) $(CCFLAGS) $(srcdir)/scanner.cpp 
  348. +
  349. +set.o:  $(srcdir)/set.cpp $(srcdir)/set.h $(srcdir)/config.h \
  350. +          $(srcdir)/symbol.h $(srcdir)/code.h \
  351. +          $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  352. +          $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  353. +          $(srcdir)/long.h $(srcdir)/double.h \
  354. +          $(srcdir)/case.h $(srcdir)/option.h $(srcdir)/depend.h \
  355. +          $(srcdir)/access.h 
  356. +    $(CC) $(CCFLAGS) $(srcdir)/set.cpp 
  357. +
  358. +stream.o:  $(srcdir)/stream.cpp $(srcdir)/config.h $(srcdir)/stream.h \
  359. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  360. +             $(srcdir)/tab.h $(srcdir)/lookup.h \
  361. +             $(srcdir)/long.h $(srcdir)/double.h \
  362. +             $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/zip.h \
  363. +         $(srcdir)/unzip.h $(srcdir)/symbol.h $(srcdir)/option.h \
  364. +             $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/control.h \
  365. +             $(srcdir)/set.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  366. +             $(srcdir)/diagnose.h $(srcdir)/parser.h $(srcdir)/lpginput.h \
  367. +             $(srcdir)/javaprs.h $(srcdir)/javaact.h $(srcdir)/error.h 
  368. +    $(CC) $(CCFLAGS) $(srcdir)/stream.cpp 
  369. +
  370. +symbol.o:  $(srcdir)/symbol.cpp $(srcdir)/config.h $(srcdir)/stream.h \
  371. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  372. +             $(srcdir)/tab.h $(srcdir)/lookup.h \
  373. +             $(srcdir)/long.h $(srcdir)/double.h \
  374. +             $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/control.h \
  375. +         $(srcdir)/option.h $(srcdir)/symbol.h $(srcdir)/depend.h \
  376. +             $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/ast.h \
  377. +             $(srcdir)/semantic.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  378. +             $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  379. +             $(srcdir)/error.h $(srcdir)/table.h $(srcdir)/zip.h $(srcdir)/unzip.h 
  380. +    $(CC) $(CCFLAGS) $(srcdir)/symbol.cpp
  381. +
  382. +system.o:  $(srcdir)/system.cpp $(srcdir)/config.h $(srcdir)/control.h \
  383. +             $(srcdir)/option.h $(srcdir)/code.h \
  384. +             $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  385. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  386. +             $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  387. +             $(srcdir)/case.h $(srcdir)/depend.h \
  388. +             $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/semantic.h \
  389. +         $(srcdir)/ast.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  390. +             $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  391. +             $(srcdir)/error.h $(srcdir)/zip.h $(srcdir)/unzip.h 
  392. +    $(CC) $(CCFLAGS) $(srcdir)/system.cpp 
  393. +
  394. +tab.o: $(srcdir)/tab.h $(srcdir)/tab.cpp $(srcdir)/config.h
  395. +    $(CC) $(CCFLAGS) $(srcdir)/tab.cpp
  396. +
  397. +unzip.o:  $(srcdir)/unzip.cpp $(srcdir)/config.h $(srcdir)/unzip.h 
  398. +    $(CC) $(CCFLAGS) $(srcdir)/unzip.cpp 
  399. +
  400. +wom.o:  $(srcdir)/wom.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  401. +          $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  402. +          $(srcdir)/javasym.h $(srcdir)/tuple.h \
  403. +          $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  404. +          $(srcdir)/double.h $(srcdir)/code.h \
  405. +      $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  406. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  407. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  408. +          $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  409. +    $(CC) $(CCFLAGS) $(srcdir)/wom.cpp
  410. +
  411. +zip.o:  $(srcdir)/zip.cpp $(srcdir)/config.h $(srcdir)/control.h \
  412. +          $(srcdir)/option.h $(srcdir)/code.h $(srcdir)/tuple.h \
  413. +      $(srcdir)/symbol.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  414. +          $(srcdir)/javasym.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  415. +      $(srcdir)/double.h $(srcdir)/case.h \
  416. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h \
  417. +          $(srcdir)/zip.h $(srcdir)/unzip.h 
  418. +    $(CC) $(CCFLAGS) $(srcdir)/zip.cpp 
  419. +
  420. +segment.o:  $(srcdir)/segment.cpp $(srcdir)/segment.h $(srcdir)/tuple.h $(srcdir)/config.h 
  421. +    $(CC) $(CCFLAGS) $(srcdir)/segment.cpp
  422. +
  423. diff -u -r -N jikes-1.02.orig/src/README.AMIGA jikes-1.02/src/README.AMIGA
  424. --- jikes-1.02.orig/src/README.AMIGA    Thu Jan  1 02:00:00 1970
  425. +++ jikes-1.02/src/README.AMIGA    Sun Sep  5 12:00:09 1999
  426. @@ -0,0 +1,44 @@
  427. +This is the source of the native Amiga port (no ixemul.library required)
  428. +of jikes, the free Java compiler from IBM.
  429. +
  430. +The Aminet version is the latest stable version.  The current development
  431. +version can be found at http://dias.cti.gr/~kyrimis/jikes/ .
  432. +
  433. +To build jikes on the Amiga, you can either run the configure script,
  434. +e.g., type "configure --prefix=/gg" from sh and tweak the resulting
  435. +Makefile, or simply copy Makefile.amiga to Makefile.
  436. +
  437. +Before typing "make", you may want to make the following changes to the
  438. +Makefile:
  439. +* Change the CPU and FPU options.
  440. +* Change the optimization level. Note that using -O2 will produce a binary
  441. +  that is about a megabyte larger, and the resulting gains in compilation
  442. +  time will be overwhelmed by the additional loading time. Also note that
  443. +  you will need at least 70M of memory to compile jikes with -O2, i.e.,
  444. +  you will most likely need to use VMM, and that on a 68040@28MHz it
  445. +  takes about a day to produce the optimized binary. In other words,
  446. +  don't bother.
  447. +
  448. +INSTALLATION:
  449. +Simply copy the jikes executable somewhere in your path.
  450. +
  451. +USAGE:
  452. +Set either the CLASSPATH or the JIKESPATH environment variable to point
  453. +to the directories and zip/jar files that you want your compiler to use.
  454. +E.g., if you are using Kaffe, you can say:
  455. +setenv CLASSPATH "GG:share/kaffe/Klasses.jar;GG:share/kaffe/Pizza.jar;."
  456. +Separate the path components using semicolons. You can use UNIX "." and ".."
  457. +notation for the current directory and for the parent directory of a
  458. +directory.
  459. +
  460. +If you find a bug in the Amiga port, you can contact me at kyrimis@cti.gr
  461. +and I'll see what I can do.
  462. +
  463. +Kriton Kyrimis.
  464. +
  465. +******************************************************************************
  466. +This software is subject to the terms of the IBM Public License, available
  467. +at the following URL: http://www.research.com/jikes/license/license3.htm.
  468. +Copyright (C) 1996, 1999 International Business Machines Corporation
  469. +and others.  All Rights Reserved.
  470. +******************************************************************************
  471. diff -u -r -N jikes-1.02.orig/src/amiga.c jikes-1.02/src/amiga.c
  472. --- jikes-1.02.orig/src/amiga.c    Thu Jan  1 02:00:00 1970
  473. +++ jikes-1.02/src/amiga.c    Sun Sep  5 18:53:15 1999
  474. @@ -0,0 +1,121 @@
  475. +#ifdef stat
  476. +#undef stat
  477. +#endif
  478. +#ifdef fopen
  479. +#undef fopen
  480. +#endif
  481. +#ifdef opendir
  482. +#undef opendir
  483. +#endif
  484. +
  485. +#include <stdio.h>
  486. +#include <sys/types.h>
  487. +#include <sys/stat.h>
  488. +#include <sys/param.h>
  489. +#include <string.h>
  490. +#include <unistd.h>
  491. +#include <dirent.h>
  492. +
  493. +__BEGIN_DECLS
  494. +/**
  495. + * Provide wrappers for the stat, fopen, and opendir functions that massage
  496. + * the file names given to them as arguments so that UNIX "." and ".."
  497. + * path names are translated to their AmigaOS equivalents. This is done so
  498. + * that no intervention is done in terms of file semantics to the jikes
  499. + * source.
  500. + */
  501. +static char buf[MAXPATHLEN+1];
  502. +static char cwd[MAXPATHLEN+1];
  503. +static char pathComponent[MAXPATHLEN+1];
  504. +
  505. +static void ix_out(char *s)
  506. +{
  507. +  int ptr;
  508. +
  509. +  if (strcmp(s, ".") == '\0') {
  510. +    if (buf[0] == '\0') {
  511. +      strcat(buf, cwd);
  512. +    }else{
  513. +      ptr = strlen(buf)-1;
  514. +      if (buf[ptr] == '/') {
  515. +        buf[ptr] = '\0';
  516. +      }
  517. +    }
  518. +  }else{
  519. +    if (strcmp(s, "..") != 0) {
  520. +      strcat(buf, s);
  521. +    }
  522. +  }
  523. +}
  524. +
  525. +static char *
  526. +ix_path(const char *path)
  527. +{
  528. +  int len;
  529. +  char sep[2];
  530. +  int appendSep, skipNext = 0;
  531. +  int i, j;
  532. +
  533. +  buf[0] = '\0';
  534. +  cwd[0] = '\0';
  535. +  pathComponent[0] = '\0';
  536. +  sep[1] = '\0';
  537. +  getcwd(cwd, sizeof(cwd));
  538. +  len = strlen(path);
  539. +
  540. +  for (i=0, j=0; i<len; i++) {
  541. +    if (path[i] == '/' || path[i] == ':') {
  542. +      pathComponent[j] = '\0';
  543. +      if (j != 0) {
  544. +        if (buf[0] != '\0' && strcmp(pathComponent, ".") == 0 &&
  545. +        buf[strlen(buf)-1] == ':') {
  546. +      appendSep = 0;
  547. +    }else{
  548. +      appendSep = 1;
  549. +    }
  550. +        ix_out(pathComponent);
  551. +        j = 0;
  552. +        pathComponent[0] = '\0';
  553. +      }
  554. +      sep[0] = path[i];
  555. +      if (appendSep && !skipNext) {
  556. +        strcat(buf, sep);
  557. +      }
  558. +      /* Constructs of the type FOO:/bar are *probably* caused by appending
  559. +       * UNIX-style a path to a directory, so we skip the bogus "/".
  560. +       */
  561. +      if (path[i] == ':' && path[i+1] == '/') {
  562. +        skipNext = 1;
  563. +      }else{
  564. +        skipNext = 0;
  565. +      }
  566. +    }else{
  567. +      pathComponent[j++] = path[i];
  568. +    }
  569. +  }
  570. +  if (j > 0) {
  571. +    pathComponent[j] = '\0';
  572. +    ix_out(pathComponent);
  573. +  }
  574. +  return buf;
  575. +}
  576. +
  577. +int
  578. +mystat(const char *path, struct stat *sb)
  579. +{
  580. +  int status = stat(ix_path(path), sb);
  581. +  return status;
  582. +}
  583. +
  584. +FILE *
  585. +myfopen(char *path, char *mode)
  586. +{
  587. +  FILE *f = fopen(ix_path(path), mode);
  588. +  return f;
  589. +}
  590. +
  591. +DIR *myopendir(const char *path)
  592. +{
  593. +  return opendir(ix_path(path));
  594. +}
  595. +__END_DECLS
  596. diff -u -r -N jikes-1.02.orig/src/bytecode.cpp jikes-1.02/src/bytecode.cpp
  597. --- jikes-1.02.orig/src/bytecode.cpp    Wed Sep  1 18:20:52 1999
  598. +++ jikes-1.02/src/bytecode.cpp    Sun Sep  5 12:00:10 1999
  599. @@ -20,7 +20,9 @@
  600.  #include "table.h"
  601.  #include <iostream.h>
  602.  #include <string.h>
  603. +#ifndef __amigaos__
  604.  #include <wchar.h>
  605. +#endif
  606.  
  607.  #ifdef WIN32_FILE_SYSTEM
  608.  #include <windows.h>
  609. diff -u -r -N jikes-1.02.orig/src/case.h jikes-1.02/src/case.h
  610. --- jikes-1.02.orig/src/case.h    Thu Aug 26 18:34:03 1999
  611. +++ jikes-1.02/src/case.h    Sun Sep  5 12:00:11 1999
  612. @@ -12,7 +12,9 @@
  613.  #define case_INCLUDED
  614.  
  615.  #include "config.h"
  616. +#ifndef __amigaos__
  617.  #include <wchar.h>
  618. +#endif
  619.  
  620.  //
  621.  // NOTE that this class is hard-wired to work on an ASCII machine.
  622. diff -u -r -N jikes-1.02.orig/src/config.cpp jikes-1.02/src/config.cpp
  623. --- jikes-1.02.orig/src/config.cpp    Thu Aug 26 18:34:06 1999
  624. +++ jikes-1.02/src/config.cpp    Sun Sep  5 12:00:11 1999
  625. @@ -363,7 +363,7 @@
  626.  #endif
  627.  
  628.  
  629. -#if defined(GNU_LIBC5)
  630. +#if defined(GNU_LIBC5) || defined __amigaos__
  631.  #include <sys/stat.h>
  632.  #ifndef UNIX
  633.      int SystemMkdir(char *dirname)
  634. diff -u -r -N jikes-1.02.orig/src/config.h jikes-1.02/src/config.h
  635. --- jikes-1.02.orig/src/config.h    Thu Aug 26 18:34:06 1999
  636. +++ jikes-1.02/src/config.h    Sun Sep  5 12:00:11 1999
  637. @@ -10,7 +10,9 @@
  638.  #ifndef config_INCLUDED
  639.  #define config_INCLUDED
  640.  
  641. +#ifndef __amigaos__
  642.  #include <wchar.h>
  643. +#endif
  644.  #include <new.h>
  645.  #include <iostream.h>
  646.  #include <stdlib.h>
  647. @@ -21,6 +23,17 @@
  648.  #include <sys/types.h>
  649.  #include <sys/stat.h>
  650.  
  651. +
  652. +#if defined(GNU_LIBC5) || defined __amigaos__
  653. +    extern size_t wcslen(wchar_t *);
  654. +    extern wchar_t *wcscpy(wchar_t *, wchar_t *);
  655. +    extern wchar_t *wcsncpy(wchar_t *, wchar_t *, int);
  656. +    extern wchar_t *wcscat(wchar_t *, wchar_t *);
  657. +    extern int wcscmp(wchar_t *, wchar_t *);
  658. +    extern int wcsncmp(wchar_t *, wchar_t *, int);
  659. +#endif
  660. +
  661. +
  662.  #ifdef TEST
  663.  #define NO_LEAKS
  664.  #endif
  665. @@ -575,14 +588,8 @@
  666.  #define UNIX_FILE_SYSTEM
  667.  #endif
  668.  
  669. -
  670. -#if defined(GNU_LIBC5)
  671. -    extern size_t wcslen(wchar_t *);
  672. -    extern wchar_t *wcscpy(wchar_t *, wchar_t *);
  673. -    extern wchar_t *wcsncpy(wchar_t *, wchar_t *, int);
  674. -    extern wchar_t *wcscat(wchar_t *, wchar_t *);
  675. -    extern int wcscmp(wchar_t *, wchar_t *);
  676. -    extern int wcsncmp(wchar_t *, wchar_t *, int);
  677. +#ifdef __amigaos__
  678. +#define AMIGAOS_FILE_SYSTEM
  679.  #endif
  680.  
  681.  
  682. diff -u -r -N jikes-1.02.orig/src/configure jikes-1.02/src/configure
  683. --- jikes-1.02.orig/src/configure    Wed Aug 25 15:11:06 1999
  684. +++ jikes-1.02/src/configure    Sun Sep  5 12:10:16 1999
  685. @@ -1,7 +1,7 @@
  686.  #! /bin/sh
  687.  
  688.  # Guess values for system-dependent variables and create Makefiles.
  689. -# Generated automatically using autoconf version 2.12 
  690. +# Generated automatically using autoconf version 2.13 
  691.  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  692.  #
  693.  # This configure script is free software; the Free Software Foundation
  694. @@ -52,11 +52,16 @@
  695.  includedir='${prefix}/include'
  696.  oldincludedir='/usr/include'
  697.  infodir='${prefix}/info'
  698. +guidedir='${prefix}/guide'
  699. +htmldir='${prefix}/html'
  700. +psdir='${prefix}/ps'
  701. +dvidir='${prefix}/dvi'
  702.  mandir='${prefix}/man'
  703.  
  704.  # Initialize some other variables.
  705.  subdirs=
  706.  MFLAGS= MAKEFLAGS=
  707. +SHELL=${CONFIG_SHELL-/bin/sh}
  708.  # Maximum number of lines to put in a shell here document.
  709.  ac_max_here_lines=12
  710.  
  711. @@ -168,6 +173,10 @@
  712.    --includedir=DIR        C header files in DIR [PREFIX/include]
  713.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  714.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  715. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  716. +  --htmldir=DIR           HTML documentation in DIR [PREFIX/html]
  717. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  718. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  719.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  720.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  721.    --program-prefix=PREFIX prepend PREFIX to installed program names
  722. @@ -210,6 +219,22 @@
  723.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  724.      infodir="$ac_optarg" ;;
  725.  
  726. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  727. +   ac_prev=guidedir ;;
  728. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  729. +
  730. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm)
  731. +   ac_prev=htmldir ;;
  732. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |--htm=*)+    htmldir="$ac_optarg" ;;
  733. +
  734. + -psdir | --psdir | --psdi | --psd | --ps)
  735. +   ac_prev=psdir ;;
  736. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  737. +
  738. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  739. +   ac_prev=dvidir ;;
  740. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  741. +
  742.    -libdir | --libdir | --libdi | --libd)
  743.      ac_prev=libdir ;;
  744.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  745. @@ -340,7 +365,7 @@
  746.      verbose=yes ;;
  747.  
  748.    -version | --version | --versio | --versi | --vers)
  749. -    echo "configure generated by autoconf version 2.12"
  750. +    echo "configure generated by autoconf version 2.13"
  751.      exit 0 ;;
  752.  
  753.    -with-* | --with-*)
  754. @@ -510,9 +535,11 @@
  755.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  756.  ac_cpp='$CPP $CPPFLAGS'
  757.  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  758. -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  759. +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  760.  cross_compiling=$ac_cv_prog_cc_cross
  761.  
  762. +ac_exeext=
  763. +ac_objext=o
  764.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  765.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  766.    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  767. @@ -572,7 +599,7 @@
  768.          # Extract the first word of "icc", so it can be a program name with args.
  769.  set dummy icc; ac_word=$2
  770.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  771. -echo "configure:576: checking for $ac_word" >&5
  772. +echo "configure:603: checking for $ac_word" >&5
  773.  if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  774.    echo $ac_n "(cached) $ac_c" 1>&6
  775.  else
  776. @@ -580,9 +607,13 @@
  777.    /*)
  778.    ac_cv_path_CC="$CC" # Let the user override the test with a path.
  779.    ;;
  780. +  ?:/*)             
  781. +  ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  782. +  ;;
  783.    *)
  784. -  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  785. -  for ac_dir in $PATH; do
  786. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  787. +  ac_dummy="$PATH"
  788. +  for ac_dir in $ac_dummy; do 
  789.      test -z "$ac_dir" && ac_dir=.
  790.      if test -f $ac_dir/$ac_word; then
  791.        ac_cv_path_CC="$ac_dir/$ac_word"
  792. @@ -605,7 +636,7 @@
  793.              # Extract the first word of "xlC", so it can be a program name with args.
  794.  set dummy xlC; ac_word=$2
  795.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  796. -echo "configure:609: checking for $ac_word" >&5
  797. +echo "configure:640: checking for $ac_word" >&5
  798.  if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  799.    echo $ac_n "(cached) $ac_c" 1>&6
  800.  else
  801. @@ -613,9 +644,13 @@
  802.    /*)
  803.    ac_cv_path_CC="$CC" # Let the user override the test with a path.
  804.    ;;
  805. +  ?:/*)             
  806. +  ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  807. +  ;;
  808.    *)
  809. -  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  810. -  for ac_dir in $PATH; do
  811. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  812. +  ac_dummy="$PATH"
  813. +  for ac_dir in $ac_dummy; do 
  814.      test -z "$ac_dir" && ac_dir=.
  815.      if test -f $ac_dir/$ac_word; then
  816.        ac_cv_path_CC="$ac_dir/$ac_word"
  817. @@ -674,7 +709,7 @@
  818.          # Extract the first word of "CC", so it can be a program name with args.
  819.  set dummy CC; ac_word=$2
  820.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  821. -echo "configure:678: checking for $ac_word" >&5
  822. +echo "configure:713: checking for $ac_word" >&5
  823.  if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  824.    echo $ac_n "(cached) $ac_c" 1>&6
  825.  else
  826. @@ -682,9 +717,13 @@
  827.    /*)
  828.    ac_cv_path_CC="$CC" # Let the user override the test with a path.
  829.    ;;
  830. +  ?:/*)             
  831. +  ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  832. +  ;;
  833.    *)
  834. -  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  835. -  for ac_dir in $PATH; do
  836. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  837. +  ac_dummy="$PATH"
  838. +  for ac_dir in $ac_dummy; do 
  839.      test -z "$ac_dir" && ac_dir=.
  840.      if test -f $ac_dir/$ac_word; then
  841.        ac_cv_path_CC="$ac_dir/$ac_word"
  842. @@ -726,20 +765,21 @@
  843.  #--------------------------------------------------------------------
  844.  
  845.  if test "$CC_NAME" = ""; then
  846. -    for ac_prog in $CCC c++ g++ gcc CC cxx cc++
  847. +    for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  848.  do
  849.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  850.  set dummy $ac_prog; ac_word=$2
  851.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  852. -echo "configure:735: checking for $ac_word" >&5
  853. +echo "configure:774: checking for $ac_word" >&5
  854.  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  855.    echo $ac_n "(cached) $ac_c" 1>&6
  856.  else
  857.    if test -n "$CXX"; then
  858.    ac_cv_prog_CXX="$CXX" # Let the user override the test.
  859.  else
  860. -  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  861. -  for ac_dir in $PATH; do
  862. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  863. +  ac_dummy="$PATH"
  864. +  for ac_dir in $ac_dummy; do
  865.      test -z "$ac_dir" && ac_dir=.
  866.      if test -f $ac_dir/$ac_word; then
  867.        ac_cv_prog_CXX="$ac_prog"
  868. @@ -762,21 +802,23 @@
  869.  
  870.  
  871.  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  872. -echo "configure:766: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  873. +echo "configure:806: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  874.  
  875.  ac_ext=C
  876.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  877.  ac_cpp='$CXXCPP $CPPFLAGS'
  878.  ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  879. -ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  880. +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  881.  cross_compiling=$ac_cv_prog_cxx_cross
  882.  
  883. -cat > conftest.$ac_ext <<EOF
  884. -#line 776 "configure"
  885. +cat > conftest.$ac_ext << EOF
  886. +
  887. +#line 817 "configure"
  888.  #include "confdefs.h"
  889. -main(){return(0);}
  890. +
  891. +int main(){return(0);}
  892.  EOF
  893. -if { (eval echo configure:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  894. +if { (eval echo configure:822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  895.    ac_cv_prog_cxx_works=yes
  896.    # If we can't run a trivial program, we are probably using a cross compiler.
  897.    if (./conftest; exit) 2>/dev/null; then
  898. @@ -794,7 +836,7 @@
  899.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  900.  ac_cpp='$CPP $CPPFLAGS'
  901.  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  902. -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  903. +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  904.  cross_compiling=$ac_cv_prog_cc_cross
  905.  
  906.  echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  907. @@ -802,12 +844,12 @@
  908.    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  909.  fi
  910.  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  911. -echo "configure:806: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  912. +echo "configure:848: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  913.  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  914.  cross_compiling=$ac_cv_prog_cxx_cross
  915.  
  916.  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  917. -echo "configure:811: checking whether we are using GNU C++" >&5
  918. +echo "configure:853: checking whether we are using GNU C++" >&5
  919.  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  920.    echo $ac_n "(cached) $ac_c" 1>&6
  921.  else
  922. @@ -816,7 +858,7 @@
  923.    yes;
  924.  #endif
  925.  EOF
  926. -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  927. +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  928.    ac_cv_prog_gxx=yes
  929.  else
  930.    ac_cv_prog_gxx=no
  931. @@ -827,11 +869,15 @@
  932.  
  933.  if test $ac_cv_prog_gxx = yes; then
  934.    GXX=yes
  935. -  ac_test_CXXFLAGS="${CXXFLAGS+set}"
  936. -  ac_save_CXXFLAGS="$CXXFLAGS"
  937. -  CXXFLAGS=
  938. -  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  939. -echo "configure:835: checking whether ${CXX-g++} accepts -g" >&5
  940. +else
  941. +  GXX=
  942. +fi
  943. +
  944. +ac_test_CXXFLAGS="${CXXFLAGS+set}"
  945. +ac_save_CXXFLAGS="$CXXFLAGS"
  946. +CXXFLAGS=
  947. +echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  948. +echo "configure:881: checking whether ${CXX-g++} accepts -g" >&5
  949.  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  950.    echo $ac_n "(cached) $ac_c" 1>&6
  951.  else
  952. @@ -846,16 +892,20 @@
  953.  fi
  954.  
  955.  echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  956. -  if test "$ac_test_CXXFLAGS" = set; then
  957. -    CXXFLAGS="$ac_save_CXXFLAGS"
  958. -  elif test $ac_cv_prog_cxx_g = yes; then
  959. +if test "$ac_test_CXXFLAGS" = set; then
  960. +  CXXFLAGS="$ac_save_CXXFLAGS"
  961. +elif test $ac_cv_prog_cxx_g = yes; then
  962. +  if test "$GXX" = yes; then
  963.      CXXFLAGS="-g -O2"
  964.    else
  965. -    CXXFLAGS="-O2"
  966. +    CXXFLAGS="-g"
  967.    fi
  968.  else
  969. -  GXX=
  970. -  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  971. +  if test "$GXX" = yes; then
  972. +    CXXFLAGS="-O2"
  973. +  else
  974. +    CXXFLAGS=
  975. +  fi
  976.  fi
  977.  
  978.  
  979. @@ -883,14 +933,14 @@
  980.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  981.  ac_cpp='$CXXCPP $CPPFLAGS'
  982.  ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  983. -ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  984. +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  985.  cross_compiling=$ac_cv_prog_cxx_cross
  986.  
  987.  
  988.  echo $ac_n "checking builtin bool type""... $ac_c" 1>&6
  989. -echo "configure:892: checking builtin bool type" >&5
  990. +echo "configure:942: checking builtin bool type" >&5
  991.  cat > conftest.$ac_ext <<EOF
  992. -#line 894 "configure"
  993. +#line 944 "configure"
  994.  #include "confdefs.h"
  995.  
  996.  int main() {
  997. @@ -899,7 +949,7 @@
  998.  
  999.  ; return 0; }
  1000.  EOF
  1001. -if { (eval echo configure:903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1002. +if { (eval echo configure:953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1003.    rm -rf conftest*
  1004.    
  1005.  CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DTYPE_bool"
  1006. @@ -919,7 +969,7 @@
  1007.  # echo the compiler we are using
  1008.  
  1009.  echo $ac_n "checking for the compiler to use""... $ac_c" 1>&6
  1010. -echo "configure:923: checking for the compiler to use" >&5
  1011. +echo "configure:973: checking for the compiler to use" >&5
  1012.  echo "$ac_t""$CC." 1>&6
  1013.  
  1014.  
  1015. @@ -1050,6 +1100,16 @@
  1016.                  ;;
  1017.          esac
  1018.      ;;
  1019. +    AmigaOS)
  1020. +        CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir"
  1021. +    SYSOBJECTS="-noixemul"
  1022. +
  1023. +        case "$CC_NAME" in
  1024. +            ?++)
  1025. +                CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1026. +                ;;
  1027. +        esac
  1028. +    ;;
  1029.      *)
  1030.          { echo "configure: error: platform '`uname -s`' is not supported." 1>&2; exit 1; }
  1031.          ;;
  1032. @@ -1081,19 +1141,19 @@
  1033.  #     Check for libc brokenness (linux libc5, maybe others?) - CSA
  1034.  #--------------------------------------------------------------------
  1035.  echo $ac_n "checking for a broken wchar.h""... $ac_c" 1>&6
  1036. -echo "configure:1085: checking for a broken wchar.h" >&5
  1037. +echo "configure:1145: checking for a broken wchar.h" >&5
  1038.  if eval "test \"`echo '$''{'jikes_cv_broken_wchar'+set}'`\" = set"; then
  1039.    echo $ac_n "(cached) $ac_c" 1>&6
  1040.  else
  1041.    cat > conftest.$ac_ext <<EOF
  1042. -#line 1090 "configure"
  1043. +#line 1150 "configure"
  1044.  #include "confdefs.h"
  1045.  #include <wchar.h>
  1046.  int main() {
  1047.  wint_t foo;
  1048.  ; return 0; }
  1049.  EOF
  1050. -if { (eval echo configure:1097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1051. +if { (eval echo configure:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1052.    rm -rf conftest*
  1053.    jikes_cv_broken_wchar=no
  1054.  else
  1055. @@ -1108,17 +1168,19 @@
  1056.  echo "$ac_t""$jikes_cv_broken_wchar" 1>&6
  1057.  if test $jikes_cv_broken_wchar = yes; then
  1058.      cat > conftest.$ac_ext <<EOF
  1059. -#line 1112 "configure"
  1060. +#line 1172 "configure"
  1061.  #include "confdefs.h"
  1062.  
  1063.  #include "libc5-fix.h"
  1064. +#ifndef __amigaos__
  1065.  #include <wchar.h>
  1066. +#endif
  1067.  
  1068.  int main() {
  1069.  wint_t foo;
  1070.  ; return 0; }
  1071.  EOF
  1072. -if { (eval echo configure:1122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1073. +if { (eval echo configure:1184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1074.    rm -rf conftest*
  1075.    CCREQUIREDFLAGS="$CCREQUIREDFLAGS -include libc5-fix.h"
  1076.  else
  1077. @@ -1170,7 +1232,7 @@
  1078.  # Ultrix sh set writes to stderr and can't be redirected directly,
  1079.  # and sets the high bit in the cache file unless we assign to the vars.
  1080.  (set) 2>&1 |
  1081. -  case `(ac_space=' '; set) 2>&1` in
  1082. +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1083.    *ac_space=\ *)
  1084.      # `set' does not quote correctly, so add quotes (double-quote substitution
  1085.      # turns \\\\ into \\, and sed turns \\ into \).
  1086. @@ -1210,6 +1272,7 @@
  1087.  
  1088.  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1089.  
  1090. +
  1091.  # Transform confdefs.h into DEFS.
  1092.  # Protect against shell expansion while executing Makefile rules.
  1093.  # Protect against Makefile macro expansion.
  1094. @@ -1228,7 +1291,9 @@
  1095.  : ${CONFIG_STATUS=./config.status}
  1096.  
  1097.  echo creating $CONFIG_STATUS
  1098. -rm -f $CONFIG_STATUS
  1099. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1100. +# being executed, so just move it out of the way instead.
  1101. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1102.  cat > $CONFIG_STATUS <<EOF
  1103.  #! /bin/sh
  1104.  # Generated automatically by configure.
  1105. @@ -1249,7 +1314,7 @@
  1106.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1107.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1108.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1109. -    echo "$CONFIG_STATUS generated by autoconf version 2.12"
  1110. +    echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1111.      exit 0 ;;
  1112.    -help | --help | --hel | --he | --h)
  1113.      echo "\$ac_cs_usage"; exit 0 ;;
  1114. @@ -1268,9 +1333,11 @@
  1115.   s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1116.  $ac_vpsub
  1117.  $extrasub
  1118. +s%@SHELL@%$SHELL%g
  1119.  s%@CFLAGS@%$CFLAGS%g
  1120.  s%@CPPFLAGS@%$CPPFLAGS%g
  1121.  s%@CXXFLAGS@%$CXXFLAGS%g
  1122. +s%@FFLAGS@%$FFLAGS%g
  1123.  s%@DEFS@%$DEFS%g
  1124.  s%@LDFLAGS@%$LDFLAGS%g
  1125.  s%@LIBS@%$LIBS%g
  1126. @@ -1288,6 +1355,10 @@
  1127.  s%@includedir@%$includedir%g
  1128.  s%@oldincludedir@%$oldincludedir%g
  1129.  s%@infodir@%$infodir%g
  1130. +s%@guidedir@%$guidedir%g
  1131. +s%@htmldir@%$htmldir%g
  1132. +s%@psdir@%$psdir%g
  1133. +s%@dvidir@%$dvidir%g
  1134.  s%@mandir@%$mandir%g
  1135.  s%@CC@%$CC%g
  1136.  s%@CXX@%$CXX%g
  1137. @@ -1405,6 +1476,7 @@
  1138.  exit 0
  1139.  EOF
  1140.  chmod +x $CONFIG_STATUS
  1141. +rm -f CONFIG.STATUS.old
  1142.  rm -fr confdefs* $ac_clean_files
  1143.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1144.  
  1145. diff -u -r -N jikes-1.02.orig/src/configure.in jikes-1.02/src/configure.in
  1146. --- jikes-1.02.orig/src/configure.in    Wed Aug 25 15:11:06 1999
  1147. +++ jikes-1.02/src/configure.in    Sun Sep  5 12:00:12 1999
  1148. @@ -263,6 +263,16 @@
  1149.                  ;;
  1150.          esac
  1151.      ;;
  1152. +    AmigaOS)
  1153. +        CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir"
  1154. +    SYSOBJECTS="-noixemul"
  1155. +
  1156. +        case "$CC_NAME" in
  1157. +            ?++)
  1158. +                CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1159. +                ;;
  1160. +        esac
  1161. +    ;;
  1162.      *)
  1163.          AC_MSG_ERROR([platform '`uname -s`' is not supported.])
  1164.          ;;
  1165. @@ -293,7 +303,9 @@
  1166.  if test $jikes_cv_broken_wchar = yes; then
  1167.      AC_TRY_COMPILE([
  1168.  #include "libc5-fix.h"
  1169. +#ifndef __amigaos__
  1170.  #include <wchar.h>
  1171. +#endif
  1172.  ],[wint_t foo;],
  1173.      CCREQUIREDFLAGS="$CCREQUIREDFLAGS -include libc5-fix.h",
  1174.      AC_MSG_ERROR([Can't fix broken wchar.h]))
  1175. diff -u -r -N jikes-1.02.orig/src/control.cpp jikes-1.02/src/control.cpp
  1176. --- jikes-1.02.orig/src/control.cpp    Wed Sep  1 17:58:24 1999
  1177. +++ jikes-1.02/src/control.cpp    Sun Sep  5 12:00:12 1999
  1178. @@ -630,7 +630,7 @@
  1179.  // When searching for a directory in the system, if it is not already present in the hierarchy
  1180.  // insert it and attempt to read it from the system...
  1181.  //
  1182. -#ifdef UNIX_FILE_SYSTEM
  1183. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1184.      DirectorySymbol *Control::ProcessSubdirectories(wchar_t *source_name, int source_name_length)
  1185.      {
  1186.          int name_length = (source_name_length < 0 ? 0 : source_name_length);
  1187. @@ -938,7 +938,7 @@
  1188.      //
  1189.      DirectorySymbol *directory_symbol;
  1190.      NameSymbol *file_name_symbol;
  1191. -#ifdef UNIX_FILE_SYSTEM
  1192. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1193.      int len;
  1194.      for (len = name_length - 1; len >= 0 && name[len] != U_SLASH; len--)
  1195.          ;
  1196. diff -u -r -N jikes-1.02.orig/src/getclass.cpp jikes-1.02/src/getclass.cpp
  1197. --- jikes-1.02.orig/src/getclass.cpp    Wed Sep  1 17:58:25 1999
  1198. +++ jikes-1.02/src/getclass.cpp    Sun Sep  5 12:00:13 1999
  1199. @@ -366,7 +366,7 @@
  1200.      }
  1201.      else
  1202.      {
  1203. -#ifdef UNIX_FILE_SYSTEM
  1204. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1205.          FILE *classfile = ::SystemFopen(file_symbol -> FileName(), "rb");
  1206.          if (classfile == NULL)
  1207.          {
  1208. diff -u -r -N jikes-1.02.orig/src/jikes.cpp jikes-1.02/src/jikes.cpp
  1209. --- jikes-1.02.orig/src/jikes.cpp    Wed Sep  1 17:58:25 1999
  1210. +++ jikes-1.02/src/jikes.cpp    Sun Sep  5 12:13:53 1999
  1211. @@ -14,6 +14,15 @@
  1212.  #include "control.h"
  1213.  #include <stdio.h>
  1214.  
  1215. +#ifdef __amigaos__
  1216. +// Jikes definitely needs more than the default 4K stack. I've had no problems
  1217. +// running it with a stack of 20000, so we'll use that value, to play it safe,
  1218. +// even though the actual stack used is probably a lot less.
  1219. +extern "C" {
  1220. +  unsigned long __stack = 20000;
  1221. +}
  1222. +#endif
  1223. +
  1224.  int main(int argc, char *argv[])
  1225.  {
  1226.      int return_code;
  1227. diff -u -r -N jikes-1.02.orig/src/lookup.h jikes-1.02/src/lookup.h
  1228. --- jikes-1.02.orig/src/lookup.h    Wed Sep  1 17:58:25 1999
  1229. +++ jikes-1.02/src/lookup.h    Sun Sep  5 12:00:13 1999
  1230. @@ -11,7 +11,9 @@
  1231.  #define lookup_INCLUDED
  1232.  
  1233.  #include "config.h"
  1234. +#ifndef __amigaos__
  1235.  #include <wchar.h>
  1236. +#endif
  1237.  #include <string.h>
  1238.  #include <sys/stat.h>
  1239.  #include <time.h>
  1240. diff -u -r -N jikes-1.02.orig/src/option.cpp jikes-1.02/src/option.cpp
  1241. --- jikes-1.02.orig/src/option.cpp    Thu Aug 26 18:34:09 1999
  1242. +++ jikes-1.02/src/option.cpp    Sun Sep  5 12:00:13 1999
  1243. @@ -241,7 +241,7 @@
  1244.              else if (strcmp(arguments.argv[i], "-d") == 0 && ((i + 1) < arguments.argc))
  1245.              {
  1246.                  ++i;
  1247. -#ifdef UNIX_FILE_SYSTEM
  1248. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1249.                  int length = strlen(arguments.argv[i]);
  1250.                  directory = new char[length + 1];
  1251.                  strcpy(directory, arguments.argv[i]);
  1252. diff -u -r -N jikes-1.02.orig/src/option.h jikes-1.02/src/option.h
  1253. --- jikes-1.02.orig/src/option.h    Tue Jul  6 16:49:24 1999
  1254. +++ jikes-1.02/src/option.h    Sun Sep  5 12:00:13 1999
  1255. @@ -17,6 +17,10 @@
  1256.  #include <ctype.h>
  1257.  #include "code.h"
  1258.  #include "tuple.h"
  1259. +#ifdef AMIGAOS_FILE_SYSTEM
  1260. +#include <unistd.h>
  1261. +#include <sys/param.h>
  1262. +#endif
  1263.  
  1264.  class ArgumentExpander
  1265.  {
  1266. @@ -101,6 +105,13 @@
  1267.      char *GetMainCurrentDirectory()
  1268.      {
  1269.          return current_directory[main_disk];
  1270. +    }
  1271. +#elif defined(AMIGAOS_FILE_SYSTEM)
  1272. +public:
  1273. +    char *GetMainCurrentDirectory()
  1274. +    {
  1275. +    static char buf[MAXPATHLEN+1];
  1276. +    return getcwd(buf, sizeof(buf));
  1277.      }
  1278.  #endif
  1279.  
  1280. diff -u -r -N jikes-1.02.orig/src/parser.h jikes-1.02/src/parser.h
  1281. --- jikes-1.02.orig/src/parser.h    Thu Aug 26 18:34:09 1999
  1282. +++ jikes-1.02/src/parser.h    Sun Sep  5 12:00:14 1999
  1283. @@ -13,7 +13,9 @@
  1284.  #include "config.h"
  1285.  #include <limits.h>
  1286.  #include <ctype.h>
  1287. +#ifndef __amigaos__
  1288.  #include <wchar.h>
  1289. +#endif
  1290.  #include <string.h>
  1291.  #include <stdio.h>
  1292.  #include "lpginput.h"
  1293. diff -u -r -N jikes-1.02.orig/src/semantic.h jikes-1.02/src/semantic.h
  1294. --- jikes-1.02.orig/src/semantic.h    Wed Sep  1 17:58:25 1999
  1295. +++ jikes-1.02/src/semantic.h    Sun Sep  5 12:00:14 1999
  1296. @@ -11,7 +11,9 @@
  1297.  #define semantic_INCLUDED
  1298.  
  1299.  #include "config.h"
  1300. +#ifndef __amigaos__
  1301.  #include <wchar.h>
  1302. +#endif
  1303.  #include "ast.h"
  1304.  #include "diagnose.h"
  1305.  #include "error.h"
  1306. diff -u -r -N jikes-1.02.orig/src/stream.cpp jikes-1.02/src/stream.cpp
  1307. --- jikes-1.02.orig/src/stream.cpp    Thu Aug 26 18:34:10 1999
  1308. +++ jikes-1.02/src/stream.cpp    Sun Sep  5 12:00:14 1999
  1309. @@ -303,7 +303,7 @@
  1310.          file_symbol -> mtime = status.st_mtime; // actual time stamp of file read
  1311.          file_symbol -> lex_stream = this;
  1312.  
  1313. -#ifdef UNIX_FILE_SYSTEM
  1314. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1315.          FILE *srcfile = ::SystemFopen(FileName(), "r");
  1316.          if (srcfile != NULL)
  1317.          {
  1318. @@ -363,7 +363,7 @@
  1319.  
  1320.          if (status.st_mtime == file_symbol -> mtime)
  1321.          {
  1322. -#ifdef UNIX_FILE_SYSTEM
  1323. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1324.              FILE *srcfile = ::SystemFopen(FileName(), "r");
  1325.              if (srcfile != NULL)
  1326.              {
  1327. diff -u -r -N jikes-1.02.orig/src/symbol.cpp jikes-1.02/src/symbol.cpp
  1328. --- jikes-1.02.orig/src/symbol.cpp    Wed Sep  1 17:58:25 1999
  1329. +++ jikes-1.02/src/symbol.cpp    Sun Sep  5 12:00:15 1999
  1330. @@ -19,7 +19,7 @@
  1331.  #include "set.h"
  1332.  #include "case.h"
  1333.  
  1334. -#ifdef UNIX_FILE_SYSTEM
  1335. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1336.  #include <dirent.h>
  1337.  #elif defined(WIN32_FILE_SYSTEM)
  1338.  #include <windows.h>
  1339. @@ -763,7 +763,7 @@
  1340.      {
  1341.          entries = new DirectoryTable();
  1342.  
  1343. -#ifdef UNIX_FILE_SYSTEM
  1344. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1345.          DIR *directory = opendir(this -> DirectoryName());
  1346.          if (directory)
  1347.          {
  1348. diff -u -r -N jikes-1.02.orig/src/symbol.h jikes-1.02/src/symbol.h
  1349. --- jikes-1.02.orig/src/symbol.h    Wed Sep  1 17:58:26 1999
  1350. +++ jikes-1.02/src/symbol.h    Sun Sep  5 12:00:15 1999
  1351. @@ -2310,6 +2310,19 @@
  1352.      {
  1353.          return Case::StringSegmentEqual(suffix, java_suffix, java_suffix_length);
  1354.      }
  1355. +#elif defined(AMIGAOS_FILE_SYSTEM)
  1356. +    // Do not use StringSegmentEqual() as in the WIN32 case, because that
  1357. +    // function may check beyond the end of the string, thus possibly causing
  1358. +    // enforcer hits.
  1359. +    inline bool FileSymbol::IsClassSuffix(char *suffix)
  1360. +    {
  1361. +        return (strncasecmp(suffix, class_suffix, class_suffix_length) == 0);
  1362. +    }
  1363. +
  1364. +    inline bool  FileSymbol::IsJavaSuffix(char *suffix)
  1365. +    {
  1366. +        return (strncasecmp(suffix, java_suffix, java_suffix_length) == 0);
  1367. +    }
  1368.  #endif
  1369.  
  1370.  #endif // ifndef symbol_INCLUDED
  1371. diff -u -r -N jikes-1.02.orig/src/system.cpp jikes-1.02/src/system.cpp
  1372. --- jikes-1.02.orig/src/system.cpp    Wed Sep  1 17:58:26 1999
  1373. +++ jikes-1.02/src/system.cpp    Sun Sep  5 12:00:16 1999
  1374. @@ -428,7 +428,7 @@
  1375.  
  1376.  void Control::ProcessPath()
  1377.  {
  1378. -#ifdef UNIX_FILE_SYSTEM
  1379. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1380.      NameSymbol *dot_path_name_symbol = dot_name_symbol;
  1381.  
  1382.      //
  1383. @@ -496,7 +496,7 @@
  1384.                  path_name[i] = head[i];
  1385.              path_name[path_name_length] = U_NULL;
  1386.  
  1387. -#ifdef UNIX_FILE_SYSTEM
  1388. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1389.  
  1390.              input_name = path_name;
  1391.  
  1392. diff -u -r -N jikes-1.02.orig/src/tab.h jikes-1.02/src/tab.h
  1393. --- jikes-1.02.orig/src/tab.h    Fri Feb 12 16:39:13 1999
  1394. +++ jikes-1.02/src/tab.h    Sun Sep  5 12:00:16 1999
  1395. @@ -11,7 +11,9 @@
  1396.  #define tab_INCLUDED
  1397.  
  1398.  #include "config.h"
  1399. +#ifndef __amigaos__
  1400.  #include <wchar.h>
  1401. +#endif
  1402.  #include <string.h>
  1403.  
  1404.  class Tab
  1405. diff -u -r -N jikes-1.02.orig/src/tuple.h jikes-1.02/src/tuple.h
  1406. --- jikes-1.02.orig/src/tuple.h    Thu Aug 26 18:34:10 1999
  1407. +++ jikes-1.02/src/tuple.h    Sun Sep  5 12:00:16 1999
  1408. @@ -413,7 +413,7 @@
  1409.  
  1410.      inline bool WriteToFile(char *file_name)
  1411.      {
  1412. -#ifdef UNIX_FILE_SYSTEM
  1413. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1414.          FILE *file = ::SystemFopen(file_name, "wb");
  1415.          if (file  ==  (FILE *) NULL)
  1416.              return false;
  1417. diff -u -r -N jikes-1.02.orig/src/unzip.cpp jikes-1.02/src/unzip.cpp
  1418. --- jikes-1.02.orig/src/unzip.cpp    Thu Aug 26 18:34:10 1999
  1419. +++ jikes-1.02/src/unzip.cpp    Sun Sep  5 13:47:27 1999
  1420. @@ -44,7 +44,7 @@
  1421.  struct huft *Unzip::global_fixed_td;    /* inflate static */
  1422.  int Unzip::global_fixed_bl,
  1423.      Unzip::global_fixed_bd;
  1424. -#ifdef UNIX_FILE_SYSTEM
  1425. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1426.      FILE *Unzip::global_file; /* file pointer for zip file */
  1427.  #elif defined(WIN32_FILE_SYSTEM)
  1428.      char *Unzip::global_file; /* file pointer for zip file */
  1429. @@ -749,7 +749,7 @@
  1430.    return 0;
  1431.  }
  1432.  
  1433. -#ifdef UNIX_FILE_SYSTEM
  1434. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1435.      int Unzip::unzip8(FILE * zipfile, char *buffer)
  1436.  #elif defined(WIN32_FILE_SYSTEM)
  1437.      int Unzip::unzip8(char *zipfile, char *buffer)
  1438. @@ -790,7 +790,7 @@
  1439.  }
  1440.  
  1441.  
  1442. -#ifdef UNIX_FILE_SYSTEM
  1443. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1444.      int Unzip::UncompressFile0(FILE *zipfile, char *buffer, long buffer_length)
  1445.      {
  1446.          fread(buffer, sizeof(char), buffer_length, zipfile);
  1447. diff -u -r -N jikes-1.02.orig/src/unzip.h jikes-1.02/src/unzip.h
  1448. --- jikes-1.02.orig/src/unzip.h    Thu Aug 26 18:34:10 1999
  1449. +++ jikes-1.02/src/unzip.h    Sun Sep  5 12:00:16 1999
  1450. @@ -176,7 +176,7 @@
  1451.  
  1452.  #ifndef NEXTBYTE        /* default is to simply get a byte from stdin */
  1453.  /* default for   define NEXTBYTE is  getchar() */
  1454. -#ifdef UNIX_FILE_SYSTEM
  1455. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1456.      #define NEXTBYTE getc(global_file)
  1457.  #elif defined(WIN32_FILE_SYSTEM)
  1458.      #define NEXTBYTE ((u1) (*global_file++))
  1459. @@ -279,7 +279,7 @@
  1460.      static struct huft *global_fixed_td;    /* inflate static */
  1461.      static int global_fixed_bl,
  1462.                 global_fixed_bd;
  1463. -#ifdef UNIX_FILE_SYSTEM
  1464. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1465.      static FILE *global_file; /* file pointer for zip file */
  1466.  #elif defined(WIN32_FILE_SYSTEM)
  1467.      static char *global_file;
  1468. @@ -341,7 +341,7 @@
  1469.      static int inflate_block(int *);
  1470.      static int inflate_free();
  1471.  
  1472. -#ifdef UNIX_FILE_SYSTEM
  1473. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1474.      static int unzip8(FILE * zipfile, char *buffer);
  1475.  
  1476.      static int UncompressFile0(FILE *, char *, long);
  1477. diff -u -r -N jikes-1.02.orig/src/zip.cpp jikes-1.02/src/zip.cpp
  1478. --- jikes-1.02.orig/src/zip.cpp    Thu Aug 26 18:34:11 1999
  1479. +++ jikes-1.02/src/zip.cpp    Sun Sep  5 12:03:08 1999
  1480. @@ -20,7 +20,7 @@
  1481.  // The ZipFile methods follow
  1482.  //
  1483.  //************************************************************************************************
  1484. -#ifdef UNIX_FILE_SYSTEM
  1485. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1486.      int (*ZipFile::uncompress_file[10]) (FILE *, char *, long) =
  1487.      {
  1488.          UncompressFile0,
  1489. @@ -71,6 +71,7 @@
  1490.      {
  1491.          file_buffer += length;
  1492.      }
  1493. +
  1494.  #endif
  1495.  
  1496.  
  1497. @@ -100,7 +101,7 @@
  1498.  
  1499.      assert(zip -> IsValid());
  1500.  
  1501. -#ifdef UNIX_FILE_SYSTEM
  1502. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1503.      zipfile = zip -> zipfile;
  1504.      int rc = fseek(zipfile, file_symbol -> offset, SEEK_SET);
  1505.  
  1506. @@ -123,7 +124,7 @@
  1507.      u2 extra_field_length                    = GetU2();
  1508.      Skip(filename_length + extra_field_length);
  1509.  
  1510. -#ifdef UNIX_FILE_SYSTEM
  1511. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1512.      this -> buffer = new char[file_symbol -> uncompressed_size];
  1513.      if (! uncompress_file[compression_method < 9 ? compression_method : 9](zipfile, this -> buffer, file_symbol -> uncompressed_size))
  1514.      {
  1515. @@ -319,7 +320,7 @@
  1516.                                                    magic(0),
  1517.                                                    zipbuffer(NULL)
  1518.  {
  1519. -#ifdef UNIX_FILE_SYSTEM
  1520. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1521.      zipfile = ::SystemFopen(zipfile_name, "rb");
  1522.      if (zipfile)
  1523.      {
  1524. @@ -355,7 +356,7 @@
  1525.  
  1526.  Zip::~Zip()
  1527.  {
  1528. -#ifdef UNIX_FILE_SYSTEM
  1529. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1530.      delete [] zipbuffer;
  1531.      if (zipfile)
  1532.          fclose(zipfile);
  1533. @@ -392,7 +393,7 @@
  1534.                   // u2 total_number_of_entries_in_the_  = GetU2();
  1535.          u4 central_directory_size                       = GetU4();
  1536.  
  1537. -#ifdef UNIX_FILE_SYSTEM
  1538. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1539.          int rc = fseek(zipfile, -((int) central_directory_size + 22), SEEK_END);
  1540.  
  1541.          assert(rc == 0);
  1542. diff -u -r -N jikes-1.02.orig/src/zip.h jikes-1.02/src/zip.h
  1543. --- jikes-1.02.orig/src/zip.h    Tue Jul  6 17:00:40 1999
  1544. +++ jikes-1.02/src/zip.h    Sun Sep  5 12:00:17 1999
  1545. @@ -41,7 +41,7 @@
  1546.      u4 GetU4();
  1547.      void Skip(u4 length);
  1548.  
  1549. -#ifdef UNIX_FILE_SYSTEM
  1550. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1551.          FILE *zipfile;
  1552.          static int (*uncompress_file[10]) (FILE *, char *, long);
  1553.      public:
  1554. @@ -88,7 +88,7 @@
  1555.      DirectorySymbol *ProcessSubdirectoryEntries(DirectorySymbol *, char *, int);
  1556.      void ProcessDirectoryEntry();
  1557.  
  1558. -#ifdef UNIX_FILE_SYSTEM
  1559. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1560.      FILE *zipfile;
  1561.  #elif defined(WIN32_FILE_SYSTEM)
  1562.      HANDLE zipfile, mapfile;
  1563.