]> granicus.if.org Git - postgresql/commitdiff
Add -lcrypto as one of the possible link dependencies of libkrb5.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Mar 2007 02:37:17 +0000 (02:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Mar 2007 02:37:17 +0000 (02:37 +0000)
Per report from Jim Rosenberg.  This possibly should get back-patched,
but I'm a bit suspicious of it still because of the lack of prior reports.

configure
configure.in

index 71dbaee0aa4aee60650efa228ed8a99696e5a0a7..5e242bb8d5e46a6600e4f24061f06a635ecd0e19 100755 (executable)
--- a/configure
+++ b/configure
@@ -6675,7 +6675,7 @@ fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 if test "$ac_cv_search_com_err" = no; then
-  for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
+  for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
@@ -6805,7 +6805,7 @@ fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 if test "$ac_cv_search_krb5_sendauth" = no; then
-  for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
+  for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
index 273f79bf5f54576022835241e3cd9e7ee2aa6e63..bc25a07d78fd658ede2fb923d067d85633c8a88f 100644 (file)
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.503 2007/03/21 14:39:23 mha Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.504 2007/03/26 02:37:16 tgl Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -732,9 +732,9 @@ fi
 
 if test "$with_krb5" = yes ; then
   if test "$PORTNAME" != "win32"; then
-     AC_SEARCH_LIBS(com_err, [krb5 'krb5 -ldes -lasn1 -lroken' com_err], [],
+     AC_SEARCH_LIBS(com_err, [krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err], [],
                     [AC_MSG_ERROR([could not find function 'com_err' required for Kerberos 5])])
-     AC_SEARCH_LIBS(krb5_sendauth, [krb5 'krb5 -ldes -lasn1 -lroken'], [],
+     AC_SEARCH_LIBS(krb5_sendauth, [krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'], [],
                     [AC_MSG_ERROR([could not find function 'krb5_sendauth' required for Kerberos 5])])
   else
      AC_SEARCH_LIBS(com_err, 'comerr32 -lkrb5_32', [],