Skip to content

Commit

Permalink
* acinclude.m4 (APACHE_CHECK_OPENSSL): Use AC_CACHE_CHECK/AC_COMPILE_…
Browse files Browse the repository at this point in the history
…IFELSE

  to fix autoconf warnings.
  • Loading branch information
notroj committed Aug 25, 2023
1 parent 429c7b3 commit 4613d9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -585,17 +585,17 @@ AC_DEFUN([APACHE_CHECK_OPENSSL],[
fi
fi
AC_MSG_CHECKING([for OpenSSL version >= 0.9.8a])
AC_TRY_COMPILE([#include <openssl/opensslv.h>],[
AC_CACHE_CHECK([for OpenSSL version >= 0.9.8a], [ap_cv_openssl098a], [
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([#include <openssl/opensslv.h>],[
#if !defined(OPENSSL_VERSION_NUMBER)
#error "Missing OpenSSL version"
#endif
#if OPENSSL_VERSION_NUMBER < 0x0090801f
#error "Unsupported OpenSSL version " OPENSSL_VERSION_TEXT
#endif],
[AC_MSG_RESULT(yes)
ac_cv_openssl=yes],
[AC_MSG_RESULT(no)])
#endif]), [ap_cv_openssl098a=yes], [ap_cv_openssl098a=no])])
if test "x$ap_cv_openssl098a" = xyes; then
ac_cv_openssl=yes
fi
if test "x$ac_cv_openssl" = "xyes"; then
ap_openssl_libs="${ap_openssl_libs:--lssl -lcrypto} `$apr_config --libs`"
Expand Down

0 comments on commit 4613d9f

Please sign in to comment.