From: Mimi Z. <zo...@li...> - 2009-04-28 23:25:54
|
On Tue, 2009-04-28 at 18:04 -0500, Serge E. Hallyn wrote: > Quoting Mimi Zohar (zo...@li...): > > > > Verify the existence of openssl/sha.h not libcrypto, which is > > included in multiple packages, to determine if openssl-devel is > > installed. > > > > Signed-off-by: Mimi Zohar <zo...@us...> > > Acked-by: Serge Hallyn <se...@us...> > > This stops trying to compile the ima testcase on my RHEL5.3 system. > > But, can there be anyone wanting to use libcrypto who doesn't > need libssl? The ltp-ima.patch added m4/ltp-crypto.m4 definition. For the time being, only IMA is using this definition. > BTW - the requirement of autoconf 2.61 seems worth avoiding. I > see it's there to use 'AC_CHECK_HEADER_ONCE'. If there's something > else that could be used, which works with older autoconf, that'd > be great. As it was, to compile on rhel5.3 i had to remove those > lines and drop autconf required level to 2.58. > > thanks, > -serge > > > Index: ltp-full-20090228/m4/ltp-crypto.m4 > > =================================================================== > > --- ltp-full-20090228.orig/m4/ltp-crypto.m4 > > +++ ltp-full-20090228/m4/ltp-crypto.m4 > > @@ -4,6 +4,6 @@ dnl ---------------------------- > > dnl > > AC_DEFUN([LTP_CHECK_CRYPTO], > > [dnl > > -AC_CHECK_LIB([crypto],[SHA1_Init],[CRYPTO_LIB=-lcrypto],[CRYPTO_LIB=]) > > +AC_CHECK_HEADERS(openssl/sha.h,[CRYPTO_LIB=-lcrypto],[CRYPTO_LIB=]) > > AC_SUBST(CRYPTO_LIB) > > ]) > > |