You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Frederic Meyer <fm...@gmail.com> on 2010/02/01 00:33:43 UTC
Linux build (trunk): autoconf AC_PROG_* macro problems
Hi,
Trying out now the C++ build from repository.
Platform is OpenSuse 11.2 x86_64.
Again, grabbed every necessary bits.
Launching configure with following options:
./configure --prefix=/usr/local/tuscany-sca-cpp-bin
--enable-maintainer-mode --enable-java --enable-doxygen
--enable-python --enable-threads
--with-js-lib=/usr/lib64/xulrunner-1.9.1.6
--with-java=/usr/lib64/jvm/java
configure is complaining about the two following macros:
...
./configure: line 17962: AC_PROG_JAVAC: command not found
./configure: line 17963: AC_PROG_JAR: command not found
...
Not sure it's safe to ignore...
I replaced the two with what seems to be the current name
(AX_PROG_JAVAC and AX_PROG_JAR see [1] and [2]) and configure doesn't
seem to complain anymore.
What's weird is that I have a less current version of autoconf (2.63)
than the one specified in the INSTALL file (2.64).
Any clue?
Regards
Frederic
[1] http://www.nongnu.org/autoconf-archive/ac_prog_javac.html
[2] http://www.nongnu.org/autoconf-archive/ac_prog_jar.html
Re: Linux build (trunk): autoconf AC_PROG_* macro problems
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Frederic Meyer wrote:
> Hi,
>
> Trying out now the C++ build from repository.
> Platform is OpenSuse 11.2 x86_64.
>
> Again, grabbed every necessary bits.
>
> Launching configure with following options:
> ./configure --prefix=/usr/local/tuscany-sca-cpp-bin
> --enable-maintainer-mode --enable-java --enable-doxygen
> --enable-python --enable-threads
> --with-js-lib=/usr/lib64/xulrunner-1.9.1.6
> --with-java=/usr/lib64/jvm/java
>
> configure is complaining about the two following macros:
>
> ...
> ./configure: line 17962: AC_PROG_JAVAC: command not found
> ./configure: line 17963: AC_PROG_JAR: command not found
> ...
>
> Not sure it's safe to ignore...
You can ignore it for now, but it'd be nice to get it to work as it
checks that your JDK is usable.
> I replaced the two with what seems to be the current name
> (AX_PROG_JAVAC and AX_PROG_JAR see [1] and [2]) and configure doesn't
> seem to complain anymore.
AX_PROG_JAVAC doesn't work on Ubuntu Karmic :)
> What's weird is that I have a less current version of autoconf (2.63)
> than the one specified in the INSTALL file (2.64).
Looks like A?_PROG_JAVAC is not from core autoconf. It's from package
autoconf-archive (a repository of autoconf extensions) v20090426-1 on
Karmic.
I just realized that there's another problem in configure.ac. It should
look for Javac in the JDK configured with --with-java=PATH instead of
${PATH}.
So, I'm thinking that it may be better to define JAVAC with the other
JAVA_LIB and JAVA_INCLUDE variables, probably with an AC_SUBST(JAVAC)
too, then just test that it's executable with an if test -x "${JAVAC}"
or stop with an error message. What do you think?
If you manage to make it work, could you please attach a patch with what
works on OpenSuse to a JIRA issue? I'll test it and we'll see if it
works on Ubuntu too :)
To create a JIRA:
https://issues.apache.org/jira/browse/TUSCANY
create a new issue in project Tuscany
follow the steps, select one of the 'SCA C++' components
once the issue is created you can attach a patch
To produce a patch:
with SVN, from the trunk directory, svn diff >foo.patch
with GIT, git commit your change locally, then git-format-patch HEAD~1
Thanks!
> [1] http://www.nongnu.org/autoconf-archive/ac_prog_javac.html
> [2] http://www.nongnu.org/autoconf-archive/ac_prog_jar.html
--
Jean-Sebastien