$NetBSD: patch-aa,v 1.1.1.1 2003/12/21 07:58:31 martti Exp $ --- acinclude.m4.orig 2003-12-13 23:10:43.000000000 +0000 +++ acinclude.m4 2003-12-20 18:24:25.000000000 +0000 @@ -1 +1,39 @@ +AC_DEFUN(AC_LIB_OPENSSL, [ + AC_ARG_WITH(openssl-lib, + [ --with-openssl-lib=DIR Look for OpenSSL client library in DIR], + openssl_lib=$withval, openssl_lib="") + + AC_MSG_CHECKING([for libssl]) + AC_MSG_RESULT() + + ssl_ok=no + + SAVE_LIBS=$LIBS + + ssl_lib="$openssl_lib /usr/lib \ + /usr/local/lib" + + for dir in $ssl_lib; do + if test "x$ssl_found" != "xyes" + then + AC_CHECK_FILE("$dir/libssl.a", + ssl_found=yes, ssl_found=no) + if test "x$ssl_found" = "xyes" + then + LIBS="$SAVE_LIBS -L$dir -lcrypto -lssl" + OPENSSL_LIB="$dir/libssl.a $dir/libcrypto.a" + AC_SUBST(OPENSSL_LIB) + AC_CHECK_LIB(ssl, SSL_library_init, + ssl_ok=yes, ssl_ok=no) + + fi + fi + done + + if test "x$ssl_ok" != "xyes" + then + AC_MSG_ERROR([Could not find libssl in '$ssl_lib']) + fi +]) + AC_DEFUN(AC_LIB_MYSQL, [