-
Notifications
You must be signed in to change notification settings - Fork 162
/
configure.ac
58 lines (47 loc) · 1.31 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
AC_PREREQ([2.61])
AC_INIT([libjwt],[1.17.2],[https://github.com/benmcollins/libjwt/issues])
AM_INIT_AUTOMAKE([foreign])
LT_PREREQ([2.2])
LT_INIT([])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([libjwt/config.h])
AC_SUBST([AM_CFLAGS], [-Wall])
dnl Prefer OpenSSL unless asked to ignore it
AC_ARG_WITH([openssl],
AS_HELP_STRING([--without-openssl], [Ignore presence of OpenSSL libraries and use GnuTLS]))
AS_IF([test "x$with_openssl" != "xno"], [
PKG_CHECK_MODULES([OPENSSL], [openssl >= 0.9.8])
AM_CONDITIONAL([HAVE_OPENSSL], [true])
], [
PKG_CHECK_MODULES([GNUTLS], [gnutls >= 3.6.0])
AM_CONDITIONAL([HAVE_OPENSSL], [false])
])
AC_ARG_WITH([examples],
AS_HELP_STRING([--without-examples], [do not build example programs]),
[],
[with_examples=yes])
AM_CONDITIONAL([BUILD_EXAMPLES], [test "x$with_examples" != "xno"])
PKG_CHECK_MODULES([JANSSON], [jansson >= 2.0])
PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [true], [true])
AX_VALGRIND_CHECK
AX_CODE_COVERAGE
DX_MAN_FEATURE(ON)
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(OFF)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN($PACKAGE_NAME, doxygen.cfg)
AC_CONFIG_FILES([
Makefile
include/Makefile
libjwt/Makefile
examples/Makefile
tests/Makefile
libjwt/libjwt.pc
dist/Makefile
dist/libjwt.spec
])
AC_OUTPUT