use autoconf macro provided by libgcrypt
This commit is contained in:
parent
1111088aa7
commit
ccd1464586
|
@ -1017,8 +1017,7 @@ if test x$openssl = xtrue; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$gcrypt = xtrue; then
|
if test x$gcrypt = xtrue; then
|
||||||
AC_HAVE_LIBRARY([gcrypt],[LIBS="$LIBS"],[AC_MSG_ERROR([libgcrypt library not found])])
|
AM_PATH_LIBGCRYPT(,,[AC_MSG_ERROR([libgcrypt not found!])])
|
||||||
AC_CHECK_HEADER([gcrypt.h],,[AC_MSG_ERROR([libgcrypt header gcrypt.h not found!])])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$uci = xtrue; then
|
if test x$uci = xtrue; then
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||||
|
|
||||||
AM_CFLAGS = -rdynamic
|
AM_CFLAGS = -rdynamic $(LIBGCRYPT_CFLAGS)
|
||||||
|
|
||||||
plugin_LTLIBRARIES = libstrongswan-gcrypt.la
|
plugin_LTLIBRARIES = libstrongswan-gcrypt.la
|
||||||
|
|
||||||
|
@ -12,5 +12,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
|
libstrongswan_gcrypt_la_LDFLAGS = -module
|
||||||
libstrongswan_gcrypt_la_LIBADD = -lgcrypt
|
libstrongswan_gcrypt_la_LIBADD = $(LIBGCRYPT_LIBS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue