ltgcc.m4 revision 214634
152284Sobrien# _LT_LANG_GCJ_CONFIG([TAG]) 250397Sobrien# -------------------------- 350397Sobrien# Ensure that the configuration variables for the GNU Java Compiler compiler 450397Sobrien# are suitably defined. These variables are subsequently used by _LT_CONFIG 550397Sobrien# to write the compiler configuration to `libtool'. Locally modified to 650397Sobrien# run its tests on C programs, because we cannot link Java programs until 750397Sobrien# we have finished building libjava. 850397SobrienAC_DEFUN([_LT_LANG_GCJ_CONFIG], 950397Sobrien[AC_REQUIRE([LT_PROG_GCJ])dnl 1050397SobrienAC_LANG_SAVE 1150397Sobrien 1250397Sobrien# Source file extension for Java test sources. 1350397Sobrienac_ext=c 1450397Sobrien 1550397Sobrien# Object file extension for compiled Java test sources. 1650397Sobrienobjext=o 1750397Sobrien_LT_TAGVAR(objext, $1)=$objext 1850397Sobrien 1950397Sobrien# Code to be used in simple compile tests 2050397Sobrienlt_simple_compile_test_code="int some_variable = 0;" 2150397Sobrien 2250397Sobrien# Code to be used in simple link tests 2350397Sobrienlt_simple_link_test_code='int main(){return(0);}' 2450397Sobrien 2550397Sobrien# ltmain only uses $CC for tagged configurations so make sure $CC is set. 26169689Skan_LT_TAG_COMPILER 27169689Skan 2850397Sobrien# save warnings/boilerplate of simple test code 2950397Sobrien_LT_COMPILER_BOILERPLATE 3050397Sobrien_LT_LINKER_BOILERPLATE 3150397Sobrien 3250397Sobrien# Allow CC to be a program name with arguments. 3350397Sobriencompiler=$CC 3450397Sobrien_LT_TAGVAR(compiler, $1)=$CC 3550397Sobrien_LT_CC_BASENAME([$compiler]) 3650397Sobrien 3750397Sobrien# GCJ did not exist at the time GCC didn't implicitly link libc in. 3850397Sobrien_LT_TAGVAR(archive_cmds_need_lc, $1)=no 3950397Sobrien 4052284Sobrien_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4152284Sobrien 4252284Sobrien## CAVEAT EMPTOR: 4352284Sobrien## There is no encapsulation within the following macros, do not change 4452284Sobrien## the running order or otherwise move them around unless you know exactly 4552284Sobrien## what you are doing... 4652284Sobrienif test -n "$compiler"; then 4752284Sobrien _LT_COMPILER_NO_RTTI($1) 4852284Sobrien _LT_COMPILER_PIC($1) 4952284Sobrien _LT_COMPILER_C_O($1) 5052284Sobrien _LT_COMPILER_FILE_LOCKS($1) 5152284Sobrien _LT_LINKER_SHLIBS($1) 5252284Sobrien _LT_SYS_DYNAMIC_LINKER($1) 5352284Sobrien _LT_LINKER_HARDCODE_LIBPATH($1) 5452284Sobrien 5552284Sobrien _LT_CONFIG($1) 5650397Sobrienfi 5750397Sobrien 5850397Sobrien_LT_TAGVAR(compiler, $1)=${GCJ-gcj} 5950397SobrienAC_LANG_RESTORE 6050397Sobrien])# _LT_LANG_GCJ_CONFIG 6150397Sobrien