[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool and gcj (patch)
From: |
Per Bothner |
Subject: |
Re: libtool and gcj (patch) |
Date: |
Fri, 01 Mar 2002 18:49:54 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020215 |
Anthony Green wrote:
I take what I previously said about this part of the patch back. It
doesn't appear to fix anything for me. Is there some other change which
is missing?
The patch is relative to the libtool.m4 installed into the directory
$prefix/share/aclocal, from CVS libtool, checked-out yesterday.
ltmain.sh is identical to the one in $prefix/share/libtool.
The other lt* files have been deleted. automake is 1.5d, and
autoconf is 2.52h. The configure.in is as in following attachment.
> This combination of Per's -DPIC change and Albert's -c -o change
> appears to work best.
But Albert's patch uses CFLAGS, which does seem to be the wrong thing
to do.
My -DPIC change is of course a kludge. Better would be to have some
langage-specific variable similar to ac_compile, such as
ac_lang_pic_flag.
--
--Per Bothner
address@hidden http://www.bothner.com/per/
dnl Process this with autoconf to create configure
AC_INIT(doc/kawa.texi)
AM_MAINTAINER_MODE
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(kawa, 1.6.98)
AC_PROG_INSTALL
AC_PROG_LN_S
AC_EXEEXT
AC_OBJEXT
dnl AC_ARG_WITH(classpath,[ --with-classpath Path to Java classes],
classpath=$withval, classpath=$$CLASSPATH)
AC_ARG_ENABLE(kawa-frontend,
[ --enable-kawa-frontend Build "kawa" front-end program using readline],
enable_kawa_frontend=$enableval, enable_kawa_frontend=no)
AC_ARG_WITH(gcj,
[ --with-gjc Compile Kawa using GCJ (GNU Compiler for Java)])
AC_ARG_ENABLE(xml,
[ --disable-xml Don't build support for XML processing],
enable_xml=$enableval, enable_xml=yes)
AC_ARG_ENABLE(servlet,
[ --enable-servlet Build support for generating servlets],
enable_servlet=$enableval, enable_servlet=no)
AC_ARG_WITH(java-collections,
[ --with-java-collections Assume Java collections (java.util.List) is
available])
AC_ARG_WITH(java-references,
[ --without-java-references Don't use java.lang.ref],
with_java_references=$withval, with_java_references=yes)
AC_ARG_WITH(swing,
[ --with-swing Assume Swing (Java Foundation Classes) is
available])
AC_ARG_WITH(awt,
[ --with-awt Assume AWT is available (default on)])
AC_PROG_CC
AC_PROG_CXX
dnl AC_PROG_INSTALL
#AC_PROG_MAKE_SET
# AM_PROG_GCJ isn't good enough, we have to roll our own.
# AC_CHECK_TOOL(GCJ, gcj)
LT_AC_PROG_GCJ
test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
if test "x${GCJFLAGS-unset}" = xunset; then
GCJFLAGS="-g -O2"
fi
# dnl AC_SUBST(GCJFLAGS)
dnl We must have the absolute path to the build directory.
TOP_BUILDDIR=`pwd`
case ${with_gcj} in
yes)
GCJ_COMPILED_SELECTED=ENABLE_GCJ_COMPILED
GCJ_SELECTED=WITH_GCJ
JAVA=${JAVA-gij}
JAVAC=${JAVAC-"gcj -C"}
AC_PROG_LIBTOOL
# AM_PROG_GCJ isn't good enough, we have to roll our own.
# AC_CHECK_TOOL(GCJ, gcj)
LT_AC_PROG_GCJ
test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
if test "x${GCJFLAGS-unset}" = xunset; then
GCJFLAGS="-g -O2"
fi
AC_SUBST(GCJFLAGS)
AC_LIBTOOL_GCJ
_AM_DEPENDENCIES(GCJ)
AC_SUBST(LIBTOOL_DEPS)
test "${with_awt}" = "" && with_awt=no
;;
*)
GCJ_COMPILED_SELECTED=DISABLE_GCJ_COMPILED
GCJ_SELECTED=WITHOUT_GCJ
JAVA=${JAVA-java}
JAVAC=${JAVAC-javac}
test "${with_awt}" = "" && with_awt=yes
;;
esac
AM_CONDITIONAL(WITH_GCJ, test "$with_gcj" = "yes")
AM_CONDITIONAL(ENABLE_XML, test "$enable_xml" = "yes")
AM_CONDITIONAL(ENABLE_SERVLET, test "$enable_servlet" = "yes")
AM_CONDITIONAL(WITH_JAVA_REFERENCES, test "$with_java_references" = "yes")
AM_CONDITIONAL(WITH_SWING, test "$with_swing" = "yes")
AM_CONDITIONAL(WITH_AWT, test "$with_awt" = "yes")
AM_CONDITIONAL(ENABLE_KAWA_FRONTEND, test "$enable_kawa_frontend" = "yes")
if test $enable_kawa_frontend = yes ; then
if test "$with_gcj" = yes ; then
kawa_bin="kawa-bin kawa"
else
kawa_bin=kawa
fi
fi
case ${with_java_collections} in
yes)
JAVA_COLLECTIONS_SELECTED=WITH_JAVA_COLLECTIONS
;;
*)
JAVA_COLLECTIONS_SELECTED=WITHOUT_JAVA_COLLECTIONS
;;
esac
case ${with_swing} in
yes)
extra_java='$(java_SWING)'
SWING_SELECTED=WITH_SWING
;;
*)
extra_java=''
SWING_SELECTED=WITHOUT_SWING
;;
esac
case ${with_awt} in
no) AWT_SELECTED=WITHOUT_AWT ;;
*) AWT_SELECTED=WITH_AWT ;;
esac
case ${enable_xml} in
yes) XML_SELECTED=XML_ENABLED ;;
*) XML_SELECTED=XML_DISABLED ;;
esac
JEMACS_VERSION=`echo $VERSION | sed -e 's/^1/0/'`
AC_SUBST(JAVA)
AC_SUBST(JAVAC)
#These don't do anything, because Make-rules can't contain autoconf
#substitutions. Perhaps fix when new automake is out.
#AC_SUBST(GCJ) AC_SUBST(GCJFLAGS)
AC_SUBST(kawa_bin)
AC_SUBST(XML_SELECTED)
AC_SUBST(JAVA_COLLECTIONS_SELECTED)
AC_SUBST(AWT_SELECTED)
AC_SUBST(SWING_SELECTED)
AC_SUBST(GCJ_COMPILED_SELECTED)
AC_SUBST(GCJ_SELECTED)
AC_SUBST(extra_java)
AC_SUBST(TOP_BUILDDIR)
AC_SUBST(CC)
AC_SUBST(CFLAGS)
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(JEMACS_VERSION)
AC_SUBST(SHELL)
Make_rules="$srcdir/Make-rules"
AC_SUBST_FILE(Make_rules)
AC_LINK_FILES(gnu/xquery/testsuite/tab.xml.in, gnu/xquery/testsuite/tab.xml)
AC_LINK_FILES(gnu/xquery/testsuite/bib.xml.in, gnu/xquery/testsuite/bib.xml)
AC_LINK_FILES(gnu/xquery/testsuite/book1.xml.in, gnu/xquery/testsuite/book1.xml)
AC_LINK_FILES(gnu/xquery/testsuite/reviews.xml.in,
gnu/xquery/testsuite/reviews.xml)
AC_LINK_FILES(testsuite/scribble.html.in, testsuite/scribble.html)
AC_OUTPUT(Makefile gnu/Makefile gnu/bytecode/Makefile gnu/math/Makefile
gnu/lists/Makefile gnu/text/Makefile gnu/mapping/Makefile gnu/expr/Makefile
gnu/kawa/Makefile gnu/kawa/util/Makefile gnu/kawa/reflect/Makefile
gnu/kawa/functions/Makefile gnu/kawa/servlet/Makefile
gnu/xml/Makefile gnu/kawa/xml/Makefile
gnu/brl/Makefile gnu/kawa/brl/Makefile
gnu/kawa/lispexpr/Makefile gnu/kawa/slib/Makefile gnu/ecmascript/Makefile
gnu/commonlisp/Makefile gnu/commonlisp/lang/Makefile
gnu/commonlisp/lisp/Makefile gnu/commonlisp/testsuite/Makefile
gnu/jemacs/Makefile gnu/jemacs/lang/Makefile gnu/jemacs/buffer/Makefile
gnu/jemacs/lisp/Makefile gnu/jemacs/testsuite/Makefile
kawa/Makefile kawa/lang/Makefile kawa/standard/Makefile kawa/lib/Makefile
gnu/xquery/Makefile gnu/xquery/lang/Makefile
gnu/xquery/util/Makefile gnu/xquery/testsuite/Makefile
gnu/kawa/ant/Makefile
doc/Makefile testsuite/Makefile bin/Makefile)
- Re: libtool and gcj, (continued)
Re: libtool and gcj (patch), Per Bothner, 2002/03/01
Re: libtool and gcj, Albert Chin, 2002/03/01