diff options
author | David Timber <mieabby@gmail.com> | 2020-03-03 20:43:55 +1100 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-03-03 20:43:55 +1100 |
commit | 99214f49b4397886abd2bb69de598b56d1be72d9 (patch) | |
tree | f24a255123d7e5b90458cefd30fa34dbdc10cc75 /configure.ac | |
parent | d328cbbdc256197d02ec03eef0022b4122d38bb8 (diff) |
htbt protocol prototype ...
* gen `PRNE_BUILD_ENTROPY` on configure
* `PRNE_PROG_VER` bin str -> arr str
* added null checked str func `prne_nstreq()`, `prne_nstrlen()`
* preserve `errno` in signal handlers
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 387c3d3..e4e0c43 100644 --- a/configure.ac +++ b/configure.ac @@ -30,16 +30,18 @@ AS_HELP_STRING([--enable-tests], esac], [tests=false]) AM_CONDITIONAL(TESTS, test x"$tests" = x"true") -AM_COND_IF([TESTS], [ - AC_CHECK_HEADERS([gtest/gtest.h], - [], - [AC_MSG_ERROR([gtest/gtest.h not found.])]) -]) +# AM_COND_IF([TESTS], [ +# AC_CHECK_HEADERS([gtest/gtest.h], +# [], +# [AC_MSG_ERROR([gtest/gtest.h not found.])]) +# ]) PKG_CHECK_MODULES_STATIC([DEP_PKGCFG], [zlib]) AC_CHECK_LIB([mbedcrypto], [mbedtls_cipher_setup], [], [AC_MSG_ERROR([mbedtls not found])]) AC_CHECK_LIB([mbedtls], [mbedtls_ssl_init], [], [AC_MSG_ERROR([mbedtls not found])]) AC_CHECK_LIB([mbedx509], [mbedtls_x509_crt_parse], [], [AC_MSG_ERROR([mbedtls not found])]) +AC_DEFINE_UNQUOTED([PRNE_BUILD_ENTROPY], ["`uuidgen -r`"]) + AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT |