do not depend on gcrypt autoconf macros
This commit is contained in:
+2
-1
@@ -1111,7 +1111,8 @@ if test x$openssl = xtrue; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$gcrypt = xtrue; then
|
if test x$gcrypt = xtrue; then
|
||||||
AM_PATH_LIBGCRYPT(,,[AC_MSG_ERROR([libgcrypt not found!])])
|
AC_HAVE_LIBRARY([gcrypt],[LIBS="$LIBS"],[AC_MSG_ERROR([gcrypt library not found])])
|
||||||
|
AC_CHECK_HEADER([gcrypt.h],,[AC_MSG_ERROR([gcrypt header gcrypt.h not found!])])
|
||||||
AC_MSG_CHECKING([gcrypt CAMELLIA cipher])
|
AC_MSG_CHECKING([gcrypt CAMELLIA cipher])
|
||||||
AC_TRY_COMPILE(
|
AC_TRY_COMPILE(
|
||||||
[#include <gcrypt.h>],
|
[#include <gcrypt.h>],
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||||
|
|
||||||
AM_CFLAGS = -rdynamic $(LIBGCRYPT_CFLAGS)
|
AM_CFLAGS = -rdynamic
|
||||||
|
|
||||||
plugin_LTLIBRARIES = libstrongswan-gcrypt.la
|
plugin_LTLIBRARIES = libstrongswan-gcrypt.la
|
||||||
|
|
||||||
@@ -14,4 +14,4 @@ libstrongswan_gcrypt_la_SOURCES = gcrypt_plugin.h gcrypt_plugin.c \
|
|||||||
gcrypt_hasher.h gcrypt_hasher.c
|
gcrypt_hasher.h gcrypt_hasher.c
|
||||||
|
|
||||||
libstrongswan_gcrypt_la_LDFLAGS = -module -avoid-version
|
libstrongswan_gcrypt_la_LDFLAGS = -module -avoid-version
|
||||||
libstrongswan_gcrypt_la_LIBADD = $(LIBGCRYPT_LIBS)
|
libstrongswan_gcrypt_la_LIBADD = -lgcrypt
|
||||||
|
|||||||
Reference in New Issue
Block a user