1*597410b8Schristos# _LT_LANG_GCJ_CONFIG([TAG]) 2*597410b8Schristos# -------------------------- 3*597410b8Schristos# Ensure that the configuration variables for the GNU Java Compiler compiler 4*597410b8Schristos# are suitably defined. These variables are subsequently used by _LT_CONFIG 5*597410b8Schristos# to write the compiler configuration to `libtool'. Locally modified to 6*597410b8Schristos# run its tests on C programs, because we cannot link Java programs until 7*597410b8Schristos# we have finished building libjava. 8*597410b8SchristosAC_DEFUN([_LT_LANG_GCJ_CONFIG], 9*597410b8Schristos[AC_REQUIRE([LT_PROG_GCJ])dnl 10*597410b8SchristosAC_LANG_SAVE 11*597410b8Schristos 12*597410b8Schristos# Source file extension for Java test sources. 13*597410b8Schristosac_ext=c 14*597410b8Schristos 15*597410b8Schristos# Object file extension for compiled Java test sources. 16*597410b8Schristosobjext=o 17*597410b8Schristos_LT_TAGVAR(objext, $1)=$objext 18*597410b8Schristos 19*597410b8Schristos# Code to be used in simple compile tests 20*597410b8Schristoslt_simple_compile_test_code="int some_variable = 0;" 21*597410b8Schristos 22*597410b8Schristos# Code to be used in simple link tests 23*597410b8Schristoslt_simple_link_test_code='int main(){return(0);}' 24*597410b8Schristos 25*597410b8Schristos# ltmain only uses $CC for tagged configurations so make sure $CC is set. 26*597410b8Schristos_LT_TAG_COMPILER 27*597410b8Schristos 28*597410b8Schristos# save warnings/boilerplate of simple test code 29*597410b8Schristos_LT_COMPILER_BOILERPLATE 30*597410b8Schristos_LT_LINKER_BOILERPLATE 31*597410b8Schristos 32*597410b8Schristos# Allow CC to be a program name with arguments. 33*597410b8SchristosGCC=yes 34*597410b8Schristoscompiler=$CC 35*597410b8Schristos_LT_TAGVAR(compiler, $1)=$CC 36*597410b8Schristos_LT_CC_BASENAME([$compiler]) 37*597410b8Schristos 38*597410b8Schristos# GCJ did not exist at the time GCC didn't implicitly link libc in. 39*597410b8Schristos_LT_TAGVAR(archive_cmds_need_lc, $1)=no 40*597410b8Schristos 41*597410b8Schristos_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 42*597410b8Schristos 43*597410b8Schristos## CAVEAT EMPTOR: 44*597410b8Schristos## There is no encapsulation within the following macros, do not change 45*597410b8Schristos## the running order or otherwise move them around unless you know exactly 46*597410b8Schristos## what you are doing... 47*597410b8Schristosif test -n "$compiler"; then 48*597410b8Schristos _LT_COMPILER_NO_RTTI($1) 49*597410b8Schristos _LT_COMPILER_PIC($1) 50*597410b8Schristos _LT_COMPILER_C_O($1) 51*597410b8Schristos _LT_COMPILER_FILE_LOCKS($1) 52*597410b8Schristos _LT_LINKER_SHLIBS($1) 53*597410b8Schristos _LT_LINKER_HARDCODE_LIBPATH($1) 54*597410b8Schristos 55*597410b8Schristos _LT_CONFIG($1) 56*597410b8Schristosfi 57*597410b8Schristos 58*597410b8Schristos_LT_TAGVAR(compiler, $1)=${GCJ-gcj} 59*597410b8SchristosAC_LANG_RESTORE 60*597410b8Schristos])# _LT_LANG_GCJ_CONFIG 61