X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=c1baec17d7f37c9a7f659e026db0188bde493121;hb=5a8c20cfd63b480e94101f7333e871511a92fd37;hp=47656d7378987cba35eda1d7e0c16c93ad760829;hpb=f13d66f20a227a87075f6456f41b83ce269b67f4;p=meshlink diff --git a/configure.ac b/configure.ac index 47656d73..c1baec17 100644 --- a/configure.ac +++ b/configure.ac @@ -68,9 +68,7 @@ AS_IF([test "x$enable_hardening" != "xno"], AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"]) ;; *) - AX_CHECK_COMPILE_FLAG([-fPIE], [CPPFLAGS="$CPPFLAGS -fPIE"]) AX_CHECK_COMPILE_FLAG([-fPIC], [CPPFLAGS="$CPPFLAGS -fPIC"]) - AX_CHECK_LINK_FLAG([-pie], [LDFLAGS="$LDFLAGS -pie"]) ;; esac AX_CHECK_LINK_FLAG([-Wl,-z,relro], [LDFLAGS="$LDFLAGS -Wl,-z,relro"]) @@ -93,6 +91,15 @@ AS_IF([test "x$enable_utcp_debug" = "xyes"], ] ); +dnl Blackbox test suite +PKG_CHECK_MODULES([CMOCKA], [cmocka >= 1.1.0], [cmocka=true], [cmocka=false]) +PKG_CHECK_MODULES([LXC], [lxc >= 2.0.0], [lxc=true], [lxc=false]) +AM_CONDITIONAL(BLACKBOX_TESTS, test "$cmocka" = true -a "$lxc" = true) + +dnl Additional example code +PKG_CHECK_MODULES([NCURSES], [ncurses >= 5], [curses=true], [curses=false]) +AM_CONDITIONAL(CURSES, test "$curses" = true) + dnl Install test binaries AC_ARG_ENABLE([install_tests], [AS_HELP_STRING([--enable-install-tests], [include test binaries in installation])], @@ -140,6 +147,31 @@ AC_CHECK_DECLS([freeaddrinfo, gai_strerror, getaddrinfo, getnameinfo], AC_CACHE_SAVE -AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile test/Makefile examples/Makefile]) +AC_CONFIG_FILES([ + Makefile + src/Makefile + doc/Makefile + test/Makefile + test/blackbox/Makefile + test/blackbox/run_blackbox_tests/Makefile + test/blackbox/test_case_channel_conn_01/Makefile + test/blackbox/test_case_channel_conn_02/Makefile + test/blackbox/test_case_channel_conn_03/Makefile + test/blackbox/test_case_channel_conn_04/Makefile + test/blackbox/test_case_channel_conn_05/Makefile + test/blackbox/test_case_channel_conn_06/Makefile + test/blackbox/test_case_channel_conn_07/Makefile + test/blackbox/test_case_channel_conn_08/Makefile + test/blackbox/test_case_meta_conn_01/Makefile + test/blackbox/test_case_meta_conn_02/Makefile + test/blackbox/test_case_meta_conn_03/Makefile + test/blackbox/test_case_meta_conn_04/Makefile + test/blackbox/test_case_meta_conn_05/Makefile + test/blackbox/test_cases_submesh01/Makefile + test/blackbox/test_cases_submesh02/Makefile + test/blackbox/test_cases_submesh03/Makefile + test/blackbox/test_cases_submesh04/Makefile + examples/Makefile +]) AC_OUTPUT