autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_CHECK_PROGS and java compiler options


From: John Calcote
Subject: AC_CHECK_PROGS and java compiler options
Date: Thu, 20 Aug 2009 18:44:03 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3

I'm wondering about best practices for checking for programs like the javac compiler. For instance, I currently have a line in my project's configure.ac file that looks like this:

AC_CHECK_PROGS([JAVAC], ["gcj -C -ftarget=1.4 -fsource=1.4" "guavac -target 1.4 -source 1.4" "jikes -target 1.4 -source 1.4" "javac -target 1.4 -source 1.4"])

Ugly. This line used to look like this before I needed to specify particular source and target versions for my Java code:

AC_CHECK_PROGS([JAVAC], ["gcj -C" guavac jikes javac])

That wasn't bad, but now I'm duplicating flags all over the place just because "gcj -C" requires a different set of options for JVM target and source version specification than the other java compilers do. If they were the same, I'd just append them to JAVACFLAGS and be done with it.

Any input would be appreciated.

Thanks,
John






reply via email to

[Prev in Thread] Current Thread [Next in Thread]