1214571Sdim# _LT_LANG_GCJ_CONFIG([TAG]) 2214571Sdim# -------------------------- 3214571Sdim# Ensure that the configuration variables for the GNU Java Compiler compiler 4214571Sdim# are suitably defined. These variables are subsequently used by _LT_CONFIG 5214571Sdim# to write the compiler configuration to `libtool'. Locally modified to 6214571Sdim# run its tests on C programs, because we cannot link Java programs until 7214571Sdim# we have finished building libjava. 8214571SdimAC_DEFUN([_LT_LANG_GCJ_CONFIG], 9214571Sdim[AC_REQUIRE([LT_PROG_GCJ])dnl 10214571SdimAC_LANG_SAVE 11214571Sdim 12214571Sdim# Source file extension for Java test sources. 13214571Sdimac_ext=c 14214571Sdim 15214571Sdim# Object file extension for compiled Java test sources. 16214571Sdimobjext=o 17214571Sdim_LT_TAGVAR(objext, $1)=$objext 18214571Sdim 19214571Sdim# Code to be used in simple compile tests 20214571Sdimlt_simple_compile_test_code="int some_variable = 0;" 21214571Sdim 22214571Sdim# Code to be used in simple link tests 23214571Sdimlt_simple_link_test_code='int main(){return(0);}' 24214571Sdim 25214571Sdim# ltmain only uses $CC for tagged configurations so make sure $CC is set. 26214571Sdim_LT_TAG_COMPILER 27214571Sdim 28214571Sdim# save warnings/boilerplate of simple test code 29214571Sdim_LT_COMPILER_BOILERPLATE 30214571Sdim_LT_LINKER_BOILERPLATE 31214571Sdim 32214571Sdim# Allow CC to be a program name with arguments. 33214571Sdimcompiler=$CC 34214571Sdim_LT_TAGVAR(compiler, $1)=$CC 35214571Sdim_LT_CC_BASENAME([$compiler]) 36214571Sdim 37214571Sdim# GCJ did not exist at the time GCC didn't implicitly link libc in. 38214571Sdim_LT_TAGVAR(archive_cmds_need_lc, $1)=no 39214571Sdim 40214571Sdim_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 41214571Sdim 42214571Sdim## CAVEAT EMPTOR: 43214571Sdim## There is no encapsulation within the following macros, do not change 44214571Sdim## the running order or otherwise move them around unless you know exactly 45214571Sdim## what you are doing... 46214571Sdimif test -n "$compiler"; then 47214571Sdim _LT_COMPILER_NO_RTTI($1) 48214571Sdim _LT_COMPILER_PIC($1) 49214571Sdim _LT_COMPILER_C_O($1) 50214571Sdim _LT_COMPILER_FILE_LOCKS($1) 51214571Sdim _LT_LINKER_SHLIBS($1) 52214571Sdim _LT_SYS_DYNAMIC_LINKER($1) 53214571Sdim _LT_LINKER_HARDCODE_LIBPATH($1) 54214571Sdim 55214571Sdim _LT_CONFIG($1) 56214571Sdimfi 57214571Sdim 58214571Sdim_LT_TAGVAR(compiler, $1)=${GCJ-gcj} 59214571SdimAC_LANG_RESTORE 60214571Sdim])# _LT_LANG_GCJ_CONFIG 61