-
Notifications
You must be signed in to change notification settings - Fork 19
/
configure.ac
36 lines (28 loc) · 1 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
AC_PREREQ([2.69])
AC_INIT([uadk_engine], [1.4])
AM_INIT_AUTOMAKE([1.10 no-define])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
LT_INIT
AC_SUBST([hardcode_into_libs], [no])
AC_ARG_ENABLE(kae,
AS_HELP_STRING([--enable-kae],[Enable kae support]))
AC_SUBST(enable_kae)
AM_CONDITIONAL([WD_KAE], [test "$enable_kae" = "yes"])
AC_ARG_ENABLE(engine,
AS_HELP_STRING([--enable-engine],[Enable engine in OpenSSL 3.0]))
AC_SUBST(enable_engine)
AM_CONDITIONAL([WD_ENGINE], [test "$enable_engine" = "yes"])
PKG_CHECK_MODULES(WD, libwd libwd_crypto, [with_wd=yes], [with_wd=no])
AM_CONDITIONAL(HAVE_WD, [test "$with_wd" != "no"])
PKG_CHECK_MODULES(libcrypto, libcrypto < 3.0 libcrypto >= 1.1,
[with_crypto=yes], [with_crypto=no])
AM_CONDITIONAL(HAVE_CRYPTO, test "$with_crypto" != "no")
PKG_CHECK_MODULES(libcrypto, libcrypto >= 3.0,
[with_crypto3=yes], [with_crypto3=no])
AM_CONDITIONAL(HAVE_CRYPTO3, test "$with_crypto3" != "no")
AC_CONFIG_FILES([
Makefile
src/Makefile])
AC_OUTPUT