Skip to content
Permalink
Browse files
Use OPENSSL_CFLAGS when testing OpenSSL features too
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Mar 6, 2013
1 parent 7acf307 commit 96d9179eece68c473a6cc99adfb5d719b24e4b7e
Showing with 3 additions and 0 deletions.
  1. +3 −0 configure.ac
@@ -502,6 +502,8 @@ AC_CHECK_HEADER([if_tun.h],
if test "$ssl_library" = "openssl" || test "$ssl_library" = "both"; then
oldLIBS="$LIBS"
LIBS="$LIBS $OPENSSL_LIBS"
oldCFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $OPENSSL_CFLAGS"

if test "$ssl_library" = "openssl"; then
AC_MSG_CHECKING([for ENGINE_by_id() in OpenSSL])
@@ -522,6 +524,7 @@ if test "$ssl_library" = "openssl" || test "$ssl_library" = "both"; then
AC_DEFINE(HAVE_DTLS1_STOP_TIMER, [1], [OpenSSL has dtls1_stop_timer() function])],
[AC_MSG_RESULT(no)])
LIBS="$oldLIBS"
CFLAGS="$oldCFLAGS"
fi

AC_PATH_PROG(PYTHON, [python], [], $PATH:/bin:/usr/bin)

0 comments on commit 96d9179

Please sign in to comment.