2011-08-03 22:30:22 +04:00
|
|
|
# configure.ac
|
2011-07-27 00:27:22 +04:00
|
|
|
#
|
2012-08-10 20:38:56 +04:00
|
|
|
# Copyright (C) 2006-2012 Sawtooth Consulting Ltd.
|
2011-07-27 00:27:22 +04:00
|
|
|
#
|
|
|
|
# This file is part of CyaSSL.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2012-11-15 05:57:27 +04:00
|
|
|
AC_INIT([cyassl],[2.4.2],[http://www.yassl.com])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
2012-10-19 08:30:21 +04:00
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2011-04-28 00:11:19 +04:00
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CANONICAL_TARGET
|
2012-10-19 08:30:21 +04:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2011-08-25 02:54:58 +04:00
|
|
|
|
2012-10-19 08:30:21 +04:00
|
|
|
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign tar-ustar subdir-objects])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
|
|
|
|
AC_PREREQ([2.61])
|
|
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h:config.in])dnl Keep filename to 8.3 for MS-DOS.
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2011-04-30 00:08:05 +04:00
|
|
|
#shared library versioning
|
2012-10-10 19:55:53 +04:00
|
|
|
CYASSL_LIBRARY_VERSION=3:3:0
|
2011-06-07 20:02:36 +04:00
|
|
|
# | | |
|
|
|
|
# +------+ | +---+
|
|
|
|
# | | |
|
|
|
|
# current:revision:age
|
|
|
|
# | | |
|
|
|
|
# | | +- increment if interfaces have been added
|
2011-06-30 21:07:49 +04:00
|
|
|
# | | set to zero if interfaces have been removed
|
|
|
|
# | or changed
|
2011-06-07 20:02:36 +04:00
|
|
|
# | +- increment if source code has changed
|
|
|
|
# | set to zero if current is incremented
|
|
|
|
# +- increment if interfaces have been added, removed or changed
|
2011-04-30 00:08:05 +04:00
|
|
|
AC_SUBST(CYASSL_LIBRARY_VERSION)
|
|
|
|
|
2012-10-24 23:01:11 +04:00
|
|
|
# capture user C_EXTRA_FLAGS from ./configure line, CFLAGS may hold -g -O2 even
|
|
|
|
# if user doesn't override, no way to tell
|
|
|
|
USER_C_EXTRA_FLAGS="$C_EXTRA_FLAGS"
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
LT_INIT([win32-dll])
|
|
|
|
LT_LANG([C++])
|
|
|
|
LT_LANG([C])
|
|
|
|
gl_VISIBILITY
|
2012-10-21 05:24:28 +04:00
|
|
|
AS_IF([ test -n "$CFLAG_VISIBILITY" ], [
|
|
|
|
AM_CPPFLAGS="$AM_CPPFLAGS $CFLAG_VISIBILITY"
|
|
|
|
CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"
|
|
|
|
])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
|
2012-09-20 10:38:41 +04:00
|
|
|
AX_CXX_COMPILER_VERSION
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CHECK_FUNCS([gethostbyname])
|
|
|
|
AC_CHECK_FUNCS([gettimeofday])
|
|
|
|
AC_CHECK_FUNCS([inet_ntoa])
|
|
|
|
AC_CHECK_FUNCS([memset])
|
|
|
|
AC_CHECK_FUNCS([socket])
|
|
|
|
AC_CHECK_HEADERS([arpa/inet.h])
|
|
|
|
AC_CHECK_HEADERS([fcntl.h])
|
|
|
|
AC_CHECK_HEADERS([limits.h])
|
|
|
|
AC_CHECK_HEADERS([netdb.h])
|
|
|
|
AC_CHECK_HEADERS([netinet/in.h])
|
|
|
|
AC_CHECK_HEADERS([stddef.h])
|
|
|
|
AC_CHECK_HEADERS([sys/ioctl.h])
|
|
|
|
AC_CHECK_HEADERS([sys/socket.h])
|
|
|
|
AC_CHECK_HEADERS([sys/time.h])
|
2012-10-19 08:30:21 +04:00
|
|
|
AC_CHECK_HEADERS([errno.h])
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CHECK_LIB(network,socket)
|
|
|
|
AC_CHECK_SIZEOF(long long, 8)
|
|
|
|
AC_CHECK_SIZEOF(long, 4)
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_DISABLE_STATIC
|
2012-10-24 23:09:53 +04:00
|
|
|
# mktime check takes forever on some systems, if time supported it would be
|
|
|
|
# highly unusual for mktime to be missing
|
|
|
|
#AC_FUNC_MKTIME
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CC_C_O
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_PROG_CXX
|
2011-02-05 22:14:47 +03:00
|
|
|
AC_PROG_INSTALL
|
2011-08-25 02:54:58 +04:00
|
|
|
LT_INIT
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_UINT8_T
|
|
|
|
AM_PROG_AS
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
LT_LIB_M
|
2011-04-27 02:41:16 +04:00
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
OPTIMIZE_CFLAGS="-Os -fomit-frame-pointer"
|
|
|
|
OPTIMIZE_FAST_CFLAGS="-O3 -fomit-frame-pointer"
|
|
|
|
OPTIMIZE_HUGE_CFLAGS="-funroll-loops -DTFM_SMALL_SET"
|
|
|
|
DEBUG_CFLAGS="-g -DDEBUG -DDEBUG_CYASSL"
|
|
|
|
|
|
|
|
|
|
|
|
# DEBUG
|
2012-10-19 08:30:21 +04:00
|
|
|
AX_DEBUG
|
2012-10-24 22:53:33 +04:00
|
|
|
AS_IF([test "$ax_enable_debug" = "yes"],
|
|
|
|
[AM_CFLAGS="$DEBUG_CFLAGS $AM_CFLAGS"],
|
|
|
|
[AM_CFLAGS="$AM_CFLAGS -DNDEBUG"])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
|
|
|
|
# SMALL BUILD
|
|
|
|
AC_ARG_ENABLE(small,
|
|
|
|
[ --enable-small Enable smallest build (default: disabled)],
|
|
|
|
[ ENABLED_SMALL=$enableval ],
|
|
|
|
[ ENABLED_SMALL=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_SMALL" = "yes"
|
|
|
|
then
|
|
|
|
# make small no tls build with smallest cipher
|
|
|
|
# if you only want server or client you can define NO_CYASSL_SERVER or
|
|
|
|
# NO_CYASSL_CLIENT but then some of the examples and testsuite won't build
|
|
|
|
# note that TLS needs HMAC
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="-DNO_TLS -DNO_HMAC -DNO_AES -DNO_DES3 -DNO_SHA256 -DNO_ERROR_STRINGS -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED $AM_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# SINGLE THREADED
|
|
|
|
AC_ARG_ENABLE(singleThreaded,
|
|
|
|
[ --enable-singleThreaded Enable CyaSSL single threaded (default: disabled)],
|
|
|
|
[ ENABLED_SINGLETHREADED=$enableval ],
|
2012-10-20 07:09:17 +04:00
|
|
|
[ ENABLED_SINGLETHREADED=no ])
|
|
|
|
|
|
|
|
AS_IF([ test "x$ENABLED_SINGLETHREADED" = "xno" ],[
|
|
|
|
AX_PTHREAD([
|
|
|
|
AC_DEFINE([HAVE_PTHREAD], [1], [Define if you have POSIX threads libraries and header files.])
|
|
|
|
AM_CFLAGS="-D_POSIX_THREADS $AM_CFLAGS"
|
|
|
|
],[
|
|
|
|
ENABLED_SINGLETHREADED=yes
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AS_IF([ test "x$ENABLED_SINGLETHREADED" = "xyes" ],[ AM_CFLAGS="-DSINGLE_THREADED $AM_CFLAGS" ])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
|
|
|
|
# DTLS
|
|
|
|
AC_ARG_ENABLE(dtls,
|
|
|
|
[ --enable-dtls Enable CyaSSL DTLS (default: disabled)],
|
|
|
|
[ ENABLED_DTLS=$enableval ],
|
|
|
|
[ ENABLED_DTLS=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_DTLS" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="-DCYASSL_DTLS $AM_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# OPENSSL Extra Compatibility
|
|
|
|
AC_ARG_ENABLE(opensslExtra,
|
|
|
|
[ --enable-opensslExtra Enable extra OpenSSL API, size+ (default: disabled)],
|
|
|
|
[ ENABLED_OPENSSLEXTRA=$enableval ],
|
|
|
|
[ ENABLED_OPENSSLEXTRA=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_OPENSSLEXTRA" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
2011-06-07 20:02:36 +04:00
|
|
|
if test "$ENABLED_OPENSSLEXTRA" = "yes" && test "$ENABLED_SMALL" = "yes"
|
|
|
|
then
|
2011-10-04 23:29:59 +04:00
|
|
|
AC_MSG_ERROR([cannot enable small and opensslExtra, only one or the other.])
|
2011-06-07 20:02:36 +04:00
|
|
|
fi
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
# IPv6 Test Apps
|
|
|
|
AC_ARG_ENABLE(ipv6,
|
|
|
|
[ --enable-ipv6 Enable testing of IPV6 (default: disabled)],
|
|
|
|
[ ENABLED_IPV6=$enableval ],
|
|
|
|
[ ENABLED_IPV6=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_IPV6" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DTEST_IPV6"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-10-27 04:10:44 +04:00
|
|
|
# Fortress build
|
|
|
|
AC_ARG_ENABLE(fortress,
|
|
|
|
[ --enable-fortress Enable SSL fortress build (default: disabled)],
|
|
|
|
[ ENABLED_FORTRESS=$enableval ],
|
|
|
|
[ ENABLED_FORTRESS=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_FORTRESS" = "yes"
|
|
|
|
then
|
2012-05-08 20:35:18 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DFORTRESS -DOPENSSL_EXTRA -DCYASSL_DES_ECB -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT -DCYASSL_DER_LOAD -DCYASSL_SHA512 -DCYASSL_SHA384 -DCYASSL_KEY_GEN"
|
2011-10-27 04:10:44 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-10-04 23:29:59 +04:00
|
|
|
# ssl bump build
|
|
|
|
AC_ARG_ENABLE(bump,
|
|
|
|
[ --enable-bump Enable SSL Bump build (default: disabled)],
|
|
|
|
[ ENABLED_BUMP=$enableval ],
|
|
|
|
[ ENABLED_BUMP=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_BUMP" = "yes"
|
|
|
|
then
|
2012-05-11 23:21:17 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DLARGE_STATIC_BUFFERS -DCYASSL_CERT_GEN -DCYASSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DCYASSL_DER_LOAD -DCYASSL_ALT_NAMES -DCYASSL_TEST_CERT"
|
2011-10-04 23:29:59 +04:00
|
|
|
fi
|
|
|
|
|
2012-11-03 03:49:31 +04:00
|
|
|
ENABLED_SLOWMATH="yes"
|
2012-10-30 02:39:42 +04:00
|
|
|
|
|
|
|
# lean psk build
|
|
|
|
AC_ARG_ENABLE(leanpsk,
|
|
|
|
[ --enable-leanpsk Enable Lean PSK build (default: disabled)],
|
|
|
|
[ ENABLED_LEANPSK=$enableval ],
|
|
|
|
[ ENABLED_LEANPSK=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
2012-11-03 03:49:31 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_LEANPSK -DHAVE_NULL_CIPHER -DNO_AES -DNO_FILESYSTEM -DNO_RSA -DNO_DSA -DNO_DH -DNO_CERTS -DNO_PWDBASED -DNO_DES3 -DNO_MD4 -DNO_ERROR_STRINGS"
|
|
|
|
ENABLED_SLOWMATH="no"
|
2012-10-30 02:39:42 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_LEANPSK], [test "x$ENABLED_LEANPSK" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# fastmath
|
|
|
|
AC_ARG_ENABLE(fastmath,
|
2011-06-07 20:02:36 +04:00
|
|
|
[ --enable-fastmath Enable fast math for BigInts (default: disabled)],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ ENABLED_FASTMATH=$enableval ],
|
|
|
|
[ ENABLED_FASTMATH=no ]
|
|
|
|
)
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
if test "x$ENABLED_FASTMATH" = "xyes"
|
2011-02-05 22:14:47 +03:00
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
|
2012-11-03 03:49:31 +04:00
|
|
|
ENABLED_SLOWMATH="no"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# fast HUGE math
|
|
|
|
AC_ARG_ENABLE(fasthugemath,
|
2011-06-07 20:02:36 +04:00
|
|
|
[ --enable-fasthugemath Enable fast math + huge code (default: disabled)],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ ENABLED_FASTHUGEMATH=$enableval ],
|
|
|
|
[ ENABLED_FASTHUGEMATH=no ]
|
|
|
|
)
|
|
|
|
|
2011-10-08 03:50:32 +04:00
|
|
|
if test "$ENABLED_BUMP" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_FASTHUGEMATH="yes"
|
|
|
|
fi
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
if test "$ENABLED_FASTHUGEMATH" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_FASTMATH="yes"
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
|
2012-11-03 03:49:31 +04:00
|
|
|
ENABLED_SLOWMATH="no"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_FASTMATH], [test "x$ENABLED_FASTMATH" = "xyes"])
|
2012-11-03 03:49:31 +04:00
|
|
|
AM_CONDITIONAL([BUILD_SLOWMATH], [test "x$ENABLED_SLOWMATH" = "xyes"])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
# big cache
|
|
|
|
AC_ARG_ENABLE(bigcache,
|
|
|
|
[ --enable-bigcache Enable big session cache (default: disabled)],
|
|
|
|
[ ENABLED_BIGCACHE=$enableval ],
|
|
|
|
[ ENABLED_BIGCACHE=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_BIGCACHE" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# HUGE cache
|
|
|
|
AC_ARG_ENABLE(hugecache,
|
|
|
|
[ --enable-hugecache Enable huge session cache (default: disabled)],
|
|
|
|
[ ENABLED_HUGECACHE=$enableval ],
|
|
|
|
[ ENABLED_HUGECACHE=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_HUGECACHE" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHUGE_SESSION_CACHE"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-09-07 03:23:25 +04:00
|
|
|
# SMALL cache
|
|
|
|
AC_ARG_ENABLE(smallcache,
|
|
|
|
[ --enable-smallcache Enable small session cache (default: disabled)],
|
|
|
|
[ ENABLED_SMALLCACHE=$enableval ],
|
|
|
|
[ ENABLED_SMALLCACHE=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SMALLCACHE" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DSMALL_SESSION_CACHE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# SNIFFER
|
2012-10-20 06:00:17 +04:00
|
|
|
AC_ARG_ENABLE([sniffer],
|
|
|
|
[AS_HELP_STRING([--enable-sniffer],[ Enable CyaSSL sniffer support (default: disabled) ])],[
|
|
|
|
AS_IF([ test "x$enableval" = "xyes" ],[ AC_CHECK_HEADERS([pcap/pcap.h],[
|
|
|
|
ENABLED_SNIFFER=yes
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
|
|
|
|
],[ ENABLED_SNIFFER=no ]) ])
|
|
|
|
],[
|
|
|
|
ENABLED_SNIFFER=no
|
|
|
|
])
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_SNIFFER], [ test "x$ENABLED_SNIFFER" = "xyes" ])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2012-06-14 08:31:32 +04:00
|
|
|
# AES-GCM
|
|
|
|
AC_ARG_ENABLE(aesgcm,
|
|
|
|
[ --enable-aesgcm Enable CyaSSL AES-GCM support (default: disabled)],
|
|
|
|
[ ENABLED_AESGCM=$enableval ],
|
|
|
|
[ ENABLED_AESGCM=no ]
|
|
|
|
)
|
|
|
|
|
2012-07-20 01:44:08 +04:00
|
|
|
if test "$ENABLED_AESGCM" = "word32"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DGCM_WORD32"
|
|
|
|
ENABLED_AESGCM=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_AESGCM" = "small"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DGCM_SMALL"
|
|
|
|
ENABLED_AESGCM=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_AESGCM" = "table"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DGCM_TABLE"
|
|
|
|
ENABLED_AESGCM=yes
|
|
|
|
fi
|
|
|
|
|
2012-06-14 08:31:32 +04:00
|
|
|
if test "$ENABLED_AESGCM" = "yes"
|
|
|
|
then
|
2012-06-19 01:31:46 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM -DCYASSL_SHA384 -DCYASSL_SHA512"
|
2012-06-14 08:31:32 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_AESGCM], [test "x$ENABLED_AESGCM" = "xyes"])
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# AES-NI
|
|
|
|
AC_ARG_ENABLE(aesni,
|
|
|
|
[ --enable-aesni Enable CyaSSL AES-NI support (default: disabled)],
|
|
|
|
[ ENABLED_AESNI=$enableval ],
|
|
|
|
[ ENABLED_AESNI=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_AESNI" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_AESNI"
|
2011-02-05 22:14:47 +03:00
|
|
|
if test "$GCC" = "yes"
|
|
|
|
then
|
|
|
|
# GCC needs these flags, icc doesn't
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -maes -msse4"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_AESNI], [test "x$ENABLED_AESNI" = "xyes"])
|
|
|
|
|
|
|
|
|
2012-07-28 01:01:02 +04:00
|
|
|
# MD2
|
|
|
|
AC_ARG_ENABLE(md2,
|
|
|
|
[ --enable-md2 Enable CyaSSL MD2 support (default: disabled)],
|
|
|
|
[ ENABLED_MD2=$enableval ],
|
|
|
|
[ ENABLED_MD2=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_BUMP" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_MD2="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_MD2" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_MD2"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_MD2], [test "x$ENABLED_MD2" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# RIPEMD
|
|
|
|
AC_ARG_ENABLE(ripemd,
|
|
|
|
[ --enable-ripemd Enable CyaSSL RIPEMD-160 support (default: disabled)],
|
|
|
|
[ ENABLED_RIPEMD=$enableval ],
|
|
|
|
[ ENABLED_RIPEMD=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_RIPEMD" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_RIPEMD"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_RIPEMD], [test "x$ENABLED_RIPEMD" = "xyes"])
|
|
|
|
|
|
|
|
|
|
|
|
# SHA512
|
|
|
|
AC_ARG_ENABLE(sha512,
|
2012-05-19 03:18:53 +04:00
|
|
|
[ --enable-sha512 Enable CyaSSL SHA-512 support (default: disabled)],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ ENABLED_SHA512=$enableval ],
|
|
|
|
[ ENABLED_SHA512=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SHA512" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_SHA512"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
2012-05-08 05:19:48 +04:00
|
|
|
if test "$ENABLED_FORTRESS" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_SHA512="yes"
|
|
|
|
fi
|
|
|
|
|
2012-06-19 01:31:46 +04:00
|
|
|
if test "$ENABLED_AESGCM" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_SHA512="yes"
|
|
|
|
fi
|
|
|
|
|
2012-05-08 05:19:48 +04:00
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
AM_CONDITIONAL([BUILD_SHA512], [test "x$ENABLED_SHA512" = "xyes"])
|
|
|
|
|
|
|
|
|
|
|
|
# SESSION CERTS
|
|
|
|
AC_ARG_ENABLE(sessioncerts,
|
|
|
|
[ --enable-sessioncerts Enable session cert storing (default: disabled)],
|
|
|
|
[ ENABLED_SESSIONCERTS=$enableval ],
|
|
|
|
[ ENABLED_SESSIONCERTS=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SESSIONCERTS" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# KEY GENERATION
|
|
|
|
AC_ARG_ENABLE(keygen,
|
|
|
|
[ --enable-keygen Enable key generation (default: disabled)],
|
|
|
|
[ ENABLED_KEYGEN=$enableval ],
|
|
|
|
[ ENABLED_KEYGEN=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_KEYGEN" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_KEY_GEN"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# CERT GENERATION
|
|
|
|
AC_ARG_ENABLE(certgen,
|
|
|
|
[ --enable-certgen Enable cert generation (default: disabled)],
|
|
|
|
[ ENABLED_CERTGEN=$enableval ],
|
|
|
|
[ ENABLED_CERTGEN=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CERTGEN" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-08-25 04:39:23 +04:00
|
|
|
# HC128
|
|
|
|
AC_ARG_ENABLE(hc128,
|
2011-09-29 00:19:05 +04:00
|
|
|
[ --enable-hc128 Enable HC-128 (default: disabled)],
|
2011-08-25 04:39:23 +04:00
|
|
|
[ ENABLED_HC128=$enableval ],
|
|
|
|
[ ENABLED_HC128=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_HC128" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_HC128"
|
2011-09-29 00:19:05 +04:00
|
|
|
else
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_HC128"
|
2011-08-25 04:39:23 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_HC128], [test "x$ENABLED_HC128" = "xyes"])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
|
2012-10-23 04:28:46 +04:00
|
|
|
# RABBIT
|
|
|
|
AC_ARG_ENABLE(rabbit,
|
|
|
|
[ --enable-rabbit Enable RABBIT (default: disabled)],
|
|
|
|
[ ENABLED_RABBIT=$enableval ],
|
|
|
|
[ ENABLED_RABBIT=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_RABBIT" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_RABBIT"
|
|
|
|
else
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_RABBIT"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_RABBIT], [test "x$ENABLED_RABBIT" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# PSK
|
|
|
|
AC_ARG_ENABLE(psk,
|
|
|
|
[ --enable-psk Enable PSK (default: disabled)],
|
|
|
|
[ ENABLED_PSK=$enableval ],
|
|
|
|
[ ENABLED_PSK=no ]
|
|
|
|
)
|
|
|
|
|
2012-10-30 02:39:42 +04:00
|
|
|
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no"
|
2011-02-05 22:14:47 +03:00
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_PSK"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-03-01 03:41:07 +03:00
|
|
|
# Web Server Build
|
|
|
|
AC_ARG_ENABLE(webServer,
|
|
|
|
[ --enable-webServer Enable Web Server (default: disabled)],
|
|
|
|
[ ENABLED_WEBSERVER=$enableval ],
|
|
|
|
[ ENABLED_WEBSERVER=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_WEBSERVER" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_WEBSERVER"
|
2011-03-01 03:41:07 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-06-30 21:07:49 +04:00
|
|
|
# No Filesystem Build
|
|
|
|
AC_ARG_ENABLE(noFilesystem,
|
|
|
|
[ --enable-noFilesystem Enable No Filesystem (default: disabled)],
|
|
|
|
[ ENABLED_NOFILESYSTEM=$enableval ],
|
|
|
|
[ ENABLED_NOFILESYSTEM=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_NOFILESYSTEM" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
|
2011-06-30 21:07:49 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-08-03 21:59:08 +04:00
|
|
|
# No inline Build
|
|
|
|
AC_ARG_ENABLE(noInline,
|
|
|
|
[ --enable-noInline Enable No inline (default: disabled)],
|
|
|
|
[ ENABLED_NOINLINE=$enableval ],
|
|
|
|
[ ENABLED_NOINLINE=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_NOINLINE" = "yes"
|
|
|
|
then
|
2011-08-25 22:41:14 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_INLINE"
|
2011-08-03 21:59:08 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_NOINLINE], [test "x$ENABLED_NOINLINE" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# ECC
|
|
|
|
AC_ARG_ENABLE(ecc,
|
|
|
|
[ --enable-ecc Enable ECC (default: disabled)],
|
|
|
|
[ ENABLED_ECC=$enableval ],
|
|
|
|
[ ENABLED_ECC=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_ECC" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_ECC], [test "x$ENABLED_ECC" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-06-07 20:02:36 +04:00
|
|
|
if test "$ENABLED_ECC" = "yes" && test "$ENABLED_SMALL" = "yes"
|
|
|
|
then
|
2011-10-04 23:29:59 +04:00
|
|
|
AC_MSG_ERROR([cannot enable ecc and small, ecc requires TLS which small turns off.])
|
2011-06-07 20:02:36 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2012-04-13 20:39:19 +04:00
|
|
|
# OCSP
|
|
|
|
AC_ARG_ENABLE(ocsp,
|
|
|
|
[ --enable-ocsp Enable OCSP (default: disabled)],
|
|
|
|
[ ENABLED_OCSP=$enableval ],
|
|
|
|
[ ENABLED_OCSP=no ],
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_OCSP" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_OCSP], [test "x$ENABLED_OCSP" = "xyes"])
|
|
|
|
|
|
|
|
|
2012-05-11 23:22:16 +04:00
|
|
|
# CRL
|
|
|
|
AC_ARG_ENABLE(crl,
|
|
|
|
[ --enable-crl Enable CRL (default: disabled)],
|
|
|
|
[ ENABLED_CRL=$enableval ],
|
|
|
|
[ ENABLED_CRL=no ],
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CRL" = "yes"
|
|
|
|
then
|
2012-06-05 22:31:00 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
|
2012-05-11 23:22:16 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_CRL], [test "x$ENABLED_CRL" = "xyes"])
|
|
|
|
|
|
|
|
|
2012-06-05 22:31:00 +04:00
|
|
|
# CRL Monitor
|
|
|
|
AC_ARG_ENABLE(crl-monitor,
|
|
|
|
[ --enable-crl-monitor Enable CRL Monitor (default: disabled)],
|
|
|
|
[ ENABLED_CRL_MONITOR=$enableval ],
|
|
|
|
[ ENABLED_CRL_MONITOR=no ],
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CRL_MONITOR" = "yes"
|
|
|
|
then
|
2012-11-16 22:47:13 +04:00
|
|
|
case $host_os in
|
2012-11-17 01:25:45 +04:00
|
|
|
*linux* | *darwin* | *freebsd*)
|
2012-11-16 22:47:13 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR" ;;
|
|
|
|
*)
|
2012-11-17 01:25:45 +04:00
|
|
|
AC_MSG_ERROR([crl monitor only allowed on linux, OS X, or freebsd]) ;;
|
2012-11-16 22:47:13 +04:00
|
|
|
esac
|
2012-06-05 22:31:00 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_CRL_MONITOR], [test "x$ENABLED_CRL_MONITOR" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# NTRU
|
|
|
|
ntruHome=`pwd`/NTRU_algorithm
|
|
|
|
ntruInclude=$ntruHome/cryptolib
|
|
|
|
ntruLib=$ntruHome
|
|
|
|
AC_ARG_ENABLE(ntru,
|
|
|
|
[ --enable-ntru Enable NTRU (default: disabled)],
|
|
|
|
[ ENABLED_NTRU=$enableval ],
|
|
|
|
[ ENABLED_NTRU=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_NTRU" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU -I$ntruInclude"
|
|
|
|
AM_LDFLAGS="$AM_LDFLAGS -L$ntruLib"
|
2011-02-05 22:14:47 +03:00
|
|
|
LIBS="$LIBS -lntru_encrypt"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_NTRU], [test "x$ENABLED_NTRU" = "xyes"])
|
|
|
|
|
2011-06-07 20:02:36 +04:00
|
|
|
if test "$ENABLED_NTRU" = "yes" && test "$ENABLED_SMALL" = "yes"
|
|
|
|
then
|
2011-10-04 23:29:59 +04:00
|
|
|
AC_MSG_ERROR([cannot enable ntru and small, ntru requires TLS which small turns off.])
|
2011-06-07 20:02:36 +04:00
|
|
|
fi
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2011-06-04 00:01:45 +04:00
|
|
|
# Test certs, use internal cert functions for extra testing
|
|
|
|
AC_ARG_ENABLE(testcert,
|
|
|
|
[ --enable-testcert Enable Test Cert (default: disabled)],
|
|
|
|
[ ENABLED_TESTCERT=$enableval ],
|
|
|
|
[ ENABLED_TESTCERT=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_TESTCERT" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_TEST_CERT"
|
2011-06-04 00:01:45 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# LIBZ
|
|
|
|
trylibzdir=""
|
|
|
|
AC_ARG_WITH(libz,
|
|
|
|
[ --with-libz=PATH PATH to libz install (default /usr/) ],
|
|
|
|
[
|
|
|
|
AC_MSG_CHECKING([for libz])
|
|
|
|
CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
|
|
|
|
LIBS="$LIBS -lz"
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <zlib.h>]], [[ deflateInit(0, 8); ]])],[ libz_linked=yes ],[ libz_linked=no ])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
if test "x$libz_linked" == "xno" ; then
|
|
|
|
if test "x$withval" != "xno" ; then
|
|
|
|
trylibzdir=$withval
|
|
|
|
fi
|
|
|
|
if test "x$withval" == "xyes" ; then
|
|
|
|
trylibzdir="/usr"
|
|
|
|
fi
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_LDFLAGS="$AM_LDFLAGS -L$trylibzdir/lib"
|
2011-02-05 22:14:47 +03:00
|
|
|
CPPFLAGS="$CPPFLAGS -I$trylibzdir/include"
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <zlib.h>]], [[ deflateInit(0, 8); ]])],[ libz_linked=yes ],[ libz_linked=no ])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
if test "x$libz_linked" == "xno" ; then
|
|
|
|
AC_MSG_ERROR([libz isn't found.
|
|
|
|
If it's already installed, specify its path using --with-libz=/dir/])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
fi
|
|
|
|
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# OPTIMIZE FLAGS
|
|
|
|
if test "$GCC" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -Wall -Wno-unused"
|
2012-10-22 22:37:46 +04:00
|
|
|
if test "$ax_enable_debug" = "no"
|
2011-02-05 22:14:47 +03:00
|
|
|
then
|
|
|
|
if test "$ENABLED_FASTMATH" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_FAST_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
if test "$ENABLED_FASTHUGEMATH" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_HUGE_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
else
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
LIB_SOCKET_NSL
|
|
|
|
|
2011-03-11 07:14:59 +03:00
|
|
|
AC_ARG_ENABLE(gcc-hardening,
|
2011-06-07 20:02:36 +04:00
|
|
|
AS_HELP_STRING(--enable-gcc-hardening, Enable compiler security checks (default: disabled)),
|
2011-03-11 07:14:59 +03:00
|
|
|
[if test x$enableval = xyes; then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -fwrapv -fPIE -Wstack-protector"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS --param ssp-buffer-size=1"
|
2011-03-11 07:14:59 +03:00
|
|
|
LDFLAGS="$LDFLAGS -pie"
|
|
|
|
fi])
|
|
|
|
|
2012-09-20 10:38:41 +04:00
|
|
|
AX_HARDEN_CC_COMPILER_FLAGS
|
2011-03-11 07:14:59 +03:00
|
|
|
|
2012-10-24 23:01:11 +04:00
|
|
|
# add user C_EXTRA_FLAGS back
|
|
|
|
CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
CREATE_HEX_VERSION
|
2012-10-24 22:53:33 +04:00
|
|
|
AC_SUBST([AM_CPPFLAGS])
|
|
|
|
AC_SUBST([AM_CFLAGS])
|
|
|
|
AC_SUBST([AM_LDFLAGS])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
# FINAL
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
|
2011-04-27 23:36:39 +04:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CONFIG_FILES([cyassl/version.h])
|
|
|
|
AC_CONFIG_FILES([support/libcyassl.pc])
|
2012-10-20 12:42:34 +04:00
|
|
|
AC_CONFIG_FILES([rpm/spec])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
2012-10-26 10:06:06 +04:00
|
|
|
AX_CREATE_GENERIC_CONFIG
|
2012-10-27 02:38:37 +04:00
|
|
|
AX_AM_JOBSERVER([yes])
|
2012-10-26 08:35:52 +04:00
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
AC_OUTPUT
|
|
|
|
|
2012-09-20 10:38:41 +04:00
|
|
|
echo "---"
|
|
|
|
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
|
|
|
|
echo ""
|
|
|
|
echo " * Installation prefix: $prefix"
|
|
|
|
echo " * System type: $host_vendor-$host_os"
|
|
|
|
echo " * Host CPU: $host_cpu"
|
|
|
|
echo " * C Compiler: $CC_VERSION"
|
|
|
|
echo " * C Flags: $CFLAGS"
|
|
|
|
echo " * C++ Compiler: $CXX_VERSION"
|
|
|
|
echo " * C++ Flags: $CXXFLAGS"
|
|
|
|
echo " * CPP Flags: $CPPFLAGS"
|
2012-10-21 04:07:30 +04:00
|
|
|
echo " * LIB Flags: $LIB"
|
2012-10-22 22:37:46 +04:00
|
|
|
echo " * Debug enabled: $ax_enable_debug"
|
2012-09-20 10:38:41 +04:00
|
|
|
echo " * Warnings as failure: $ac_cv_warnings_as_errors"
|
2012-10-26 08:35:52 +04:00
|
|
|
echo " * make -j: $enable_jobserver"
|
|
|
|
echo " * VCS checkout: $ac_cv_vcs_checkout"
|
2012-10-20 06:00:17 +04:00
|
|
|
echo
|
|
|
|
echo " Features "
|
|
|
|
echo " * Enable smallest build: $ENABLED_SMALL"
|
|
|
|
echo " * Single threaded: $ENABLED_SINGLETHREADED"
|
|
|
|
echo " * DTLS: $ENABLED_DTLS"
|
|
|
|
echo " * Enable extra OpenSSL API: $ENABLED_OPENSSLEXTRA"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * fastmath: $ENABLED_FASTMATH"
|
|
|
|
echo " * sniffer: $ENABLED_SNIFFER"
|
|
|
|
echo " * AES-NI: $ENABLED_AESNI"
|
|
|
|
echo " * AES-GCM: $ENABLED_AESGCM"
|
|
|
|
echo " * RIPEMD: $ENABLED_RIPEMD"
|
|
|
|
echo " * SHA-512: $ENABLED_SHA512"
|
|
|
|
echo " * keygen: $ENABLED_KEYGEN"
|
|
|
|
echo " * certgen: $ENABLED_CERTGEN"
|
|
|
|
echo " * HC-128: $ENABLED_HC128"
|
|
|
|
echo " * RABBIT: $ENABLED_RABBIT"
|
|
|
|
echo " * PSK: $ENABLED_PSK"
|
2012-10-30 02:39:42 +04:00
|
|
|
echo " * LEANPSK: $ENABLED_LEANPSK"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * ECC: $ENABLED_ECC"
|
|
|
|
echo " * OCSP: $ENABLED_OCSP"
|
|
|
|
echo " * CRL: $ENABLED_CRL"
|
2012-11-17 01:25:45 +04:00
|
|
|
echo " * CRL-MONITOR: $ENABLED_CRL_MONITOR"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * NTRU: $ENABLED_NTRU"
|
2012-09-20 10:38:41 +04:00
|
|
|
echo ""
|
|
|
|
echo "---"
|