source: trunk/libs/newlib/src/ltgcc.m4 @ 612

Last change on this file since 612 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.7 KB
RevLine 
[444]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.
8AC_DEFUN([_LT_LANG_GCJ_CONFIG],
9[AC_REQUIRE([LT_PROG_GCJ])dnl
10AC_LANG_SAVE
11
12# Source file extension for Java test sources.
13ac_ext=c
14
15# Object file extension for compiled Java test sources.
16objext=o
17_LT_TAGVAR(objext, $1)=$objext
18
19# Code to be used in simple compile tests
20lt_simple_compile_test_code="int some_variable = 0;"
21
22# Code to be used in simple link tests
23lt_simple_link_test_code='int main(){return(0);}'
24
25# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26_LT_TAG_COMPILER
27
28# save warnings/boilerplate of simple test code
29_LT_COMPILER_BOILERPLATE
30_LT_LINKER_BOILERPLATE
31
32# Allow CC to be a program name with arguments.
33GCC=yes
34compiler=$CC
35_LT_TAGVAR(compiler, $1)=$CC
36_LT_CC_BASENAME([$compiler])
37
38# GCJ did not exist at the time GCC didn't implicitly link libc in.
39_LT_TAGVAR(archive_cmds_need_lc, $1)=no
40
41_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
42
43## CAVEAT EMPTOR:
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...
47if test -n "$compiler"; then
48  _LT_COMPILER_NO_RTTI($1)
49  _LT_COMPILER_PIC($1)
50  _LT_COMPILER_C_O($1)
51  _LT_COMPILER_FILE_LOCKS($1)
52  _LT_LINKER_SHLIBS($1)
53  _LT_LINKER_HARDCODE_LIBPATH($1)
54
55  _LT_CONFIG($1)
56fi
57
58_LT_TAGVAR(compiler, $1)=${GCJ-gcj}
59AC_LANG_RESTORE
60])# _LT_LANG_GCJ_CONFIG
Note: See TracBrowser for help on using the repository browser.