1 # _LT_LANG_GCJ_CONFIG([TAG])
2 # --------------------------
3 # Ensure that the configuration variables for the GNU Java Compiler compiler
4 # are suitably defined. These variables are subsequently used by _LT_CONFIG
5 # to write the compiler configuration to `libtool'. Locally modified to
6 # run its tests on C programs, because we cannot link Java programs until
7 # we have finished building libjava.
8 AC_DEFUN([_LT_LANG_GCJ_CONFIG],
9 [AC_REQUIRE([LT_PROG_GCJ])dnl
12 # Source file extension for Java test sources.
15 # Object file extension for compiled Java test sources.
17 _LT_TAGVAR(objext, $1)=$objext
19 # Code to be used in simple compile tests
20 lt_simple_compile_test_code="int some_variable = 0;"
22 # Code to be used in simple link tests
23 lt_simple_link_test_code='int main(){return(0);}'
25 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
28 # save warnings/boilerplate of simple test code
29 _LT_COMPILER_BOILERPLATE
30 _LT_LINKER_BOILERPLATE
32 # Allow CC to be a program name with arguments.
35 _LT_TAGVAR(compiler, $1)=$CC
36 _LT_CC_BASENAME([$compiler])
38 # GCJ did not exist at the time GCC didn't implicitly link libc in.
39 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
41 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
44 ## There is no encapsulation within the following macros, do not change
45 ## the running order or otherwise move them around unless you know exactly
46 ## what you are doing...
47 if test -n "$compiler"; then
48 _LT_COMPILER_NO_RTTI($1)
51 _LT_COMPILER_FILE_LOCKS($1)
53 _LT_LINKER_HARDCODE_LIBPATH($1)
58 _LT_TAGVAR(compiler, $1)=${GCJ-gcj}
60 ])# _LT_LANG_GCJ_CONFIG