| 1 | dnl Process this with autoconf to create configure
|
|---|
| 2 | AC_INIT(java/lang/System.java)
|
|---|
| 3 |
|
|---|
| 4 | # This works around the fact that libtool configuration may change LD
|
|---|
| 5 | # for this particular configuration, but some shells, instead of
|
|---|
| 6 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 7 | # exported.
|
|---|
| 8 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 9 |
|
|---|
| 10 | AC_PROG_LN_S
|
|---|
| 11 |
|
|---|
| 12 | dnl We use these options to decide which functions to include.
|
|---|
| 13 | AC_ARG_WITH(target-subdir,
|
|---|
| 14 | [ --with-target-subdir=SUBDIR
|
|---|
| 15 | configuring in a subdirectory])
|
|---|
| 16 | AC_ARG_WITH(cross-host,
|
|---|
| 17 | [ --with-cross-host=HOST configuring with a cross compiler])
|
|---|
| 18 |
|
|---|
| 19 | LIBGCJ_CONFIGURE(.)
|
|---|
| 20 |
|
|---|
| 21 | AM_CONFIG_HEADER(include/config.h gcj/libgcj-config.h)
|
|---|
| 22 |
|
|---|
| 23 | # Only use libltdl for native builds.
|
|---|
| 24 | if test -z "${with_cross_host}"; then
|
|---|
| 25 | AC_LIBLTDL_CONVENIENCE
|
|---|
| 26 | AC_LIBTOOL_DLOPEN
|
|---|
| 27 | DIRLTDL=libltdl
|
|---|
| 28 | AC_DEFINE(USE_LTDL)
|
|---|
| 29 | # Sigh. Libtool's macro doesn't do the right thing.
|
|---|
| 30 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
|
|---|
| 31 | # FIXME: this is a hack.
|
|---|
| 32 | sub_auxdir="`cd $ac_aux_dir && pwd`"
|
|---|
| 33 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
|
|---|
| 34 | fi
|
|---|
| 35 | AC_SUBST(INCLTDL)
|
|---|
| 36 | AC_SUBST(LIBLTDL)
|
|---|
| 37 | AC_SUBST(DIRLTDL)
|
|---|
| 38 | AM_PROG_LIBTOOL
|
|---|
| 39 | AC_CONFIG_SUBDIRS($DIRLTDL)
|
|---|
| 40 |
|
|---|
| 41 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
|
|---|
| 42 | COMPPATH=.
|
|---|
| 43 | else
|
|---|
| 44 | COMPPATH=..
|
|---|
| 45 | fi
|
|---|
| 46 | AC_SUBST(COMPPATH)
|
|---|
| 47 |
|
|---|
| 48 | dnl The -no-testsuite modules omit the test subdir.
|
|---|
| 49 | AM_CONDITIONAL(TESTSUBDIR, test -d $srcdir/testsuite)
|
|---|
| 50 |
|
|---|
| 51 | dnl Should the runtime set system properties by examining the
|
|---|
| 52 | dnl environment variable GCJ_PROPERTIES?
|
|---|
| 53 | AC_ARG_ENABLE(getenv-properties,
|
|---|
| 54 | [ --disable-getenv-properties
|
|---|
| 55 | don't set system properties from GCJ_PROPERTIES])
|
|---|
| 56 |
|
|---|
| 57 | dnl Whether GCJ_PROPERTIES is used depends on the target.
|
|---|
| 58 | if test -z "$enable_getenv_properties"; then
|
|---|
| 59 | enable_getenv_properties=${enable_getenv_properties_default-yes}
|
|---|
| 60 | fi
|
|---|
| 61 | if test "$enable_getenv_properties" = no; then
|
|---|
| 62 | AC_DEFINE(DISABLE_GETENV_PROPERTIES)
|
|---|
| 63 | fi
|
|---|
| 64 |
|
|---|
| 65 | dnl Whether we should use arguments to main()
|
|---|
|
|---|