LIBS should not include PKINIT_CRYPTO_IMPL_LIBS
authorTom Yu <tlyu@mit.edu>
Wed, 18 Jan 2012 16:36:57 +0000 (16:36 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 18 Jan 2012 16:36:57 +0000 (16:36 +0000)
Pull up r25491 from trunk

 ------------------------------------------------------------------------
 r25491 | hartmans | 2011-11-29 16:22:21 -0500 (Tue, 29 Nov 2011) | 6 lines

 ticket: new Subject: LIBS should not include PKINIT_CRYPTO_IMPL_LIBS tags: pullup target_version: 1.10

 AC_CHECK_LIB should put -lcrypto in PKINIT_CRYPTO_IMPL_LIBS not LIBS
 for pkinit.  A similar problem exists for crypto_impl and is not
 addressed by this patch.

ticket: 7077
version_fixed: 1.10
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-10@25655 dc483132-0cff-0310-8789-dd5450dbe970

src/configure.in

index d3e407a7c2bd2b40b358f444c7776583ef5a2ca3..3101439fdbd93a7489d8f501c79e4e0a0a96b65a 100644 (file)
@@ -202,7 +202,7 @@ AC_MSG_RESULT("pkinit will use \'$withval\'")
 ], withval=$PKINIT_CRYPTO_IMPL)
 case "$withval" in
 builtin|openssl)
-  AC_CHECK_LIB(crypto, PKCS7_get_signer_info)
+  AC_CHECK_LIB(crypto, PKCS7_get_signer_info, PKINIT_CRYPTO_IMPL_LIBS=-lcrypto)
   PKINIT_CRYPTO_IMPL=openssl
   ;;
 nss)