tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Building tcnative-trunk
Date Thu, 04 Oct 2012 20:48:00 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Konstantin,

On 10/4/12 3:45 PM, Konstantin Kolinko wrote:
> 2012/10/4 Christopher Schultz <chris@christopherschultz.net>:
>> 
>> On 10/4/12 3:03 PM, Christopher Schultz wrote:
>>> I'm trying to build tcnative-trunk and I'm having trouble 
>>> specifying where my Java headers are:
>>> 
>>> $ ./buildconf --with-apr=../../apr-1.4.6
>> 
>> *sigh*
>> 
>> Turns out that setting $JAVA_HOME works.
>> 
>> It would be great to be able to specify it on the 'configure'
>> command line, like like --with-apr and --with-ssl.
>> 
>> My configure-fu is not strong. Can someone add this to
>> tcnative-trunk?
>> 
> 
> Just reading, I see the following in configure.in:
> 
> a) Includes sinclude(build/apr_common.m4) 
> sinclude(build/tcnative.m4) sinclude(build/find_apr.m4)
> 
> b) The following macros is called TCN_FIND_JDK
> 
> The TCN_ (Tomcat Native) macro should come from
> "build/tcnative.m4".
> 
> Looking into "build/tcnative.m4" I see an inconsistency. It does
> not define "TCN_FIND_JDK", but "TCN_FIND_JAVA":
> 
> [quote] AC_DEFUN([TCN_FIND_JAVA],[ AC_ARG_WITH(java,[
> --with-java-home=DIR     Specify the location of your JDK
> installation],[ [/quote]
> 
> So I think that if one does s/TCN_FIND_JDK/TCN_FIND_JAVA/ in 
> "configure.in" then the "--with-java-home" will start working.
> 
> The native/BUILDING file could mention the  "--with-java-home"
> switch.

I'll try all that and commit a patch if it does indeed work. I did
notice that the TCN_* macros weren't working but otherwise the build
was working so I didn't ask a lot of questions ;)

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBt9gAACgkQ9CaO5/Lv0PB7rwCfbDmM0GaCMiPAgYMb+C7tkK8u
Sx8AoIb3IV1rSxGLf4ltHRRNbeW0Pu/s
=BQVA
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message