Commit 130cffe9 authored by Lev Walkin's avatar Lev Walkin

add options to readme

parent 312e3e0f
...@@ -13,10 +13,18 @@ Configure with the default settings: ...@@ -13,10 +13,18 @@ Configure with the default settings:
Configure with non-standard settings: Configure with non-standard settings:
asn1c specific ./configure options include: asn1c-specific ./configure options include:
--enable-Werror Option | Description
--enable-ASN_DEBUG ------------------------ | ---------------------------------------------------
--enable-ASN_DEBUG | produce debug log during `make check` testing
--enable-code-coverage | whether to enable code coverage support
--enable-Werror | abort compilation after any C compiler warning
--enable-test-Werror | abort compiling tests after any C compiler warning
--enable-test-32bit | enable tests for 32-bit compatibility
--disable-test-ubsan | disable Undefined Behavior Sanitizer for tests
--disable-test-asan | disable Address Sanitizer for tests
--enable-test-fuzzer | enable LLVM LibFuzzer for randomized testing
invoke `./configure --help` for details. invoke `./configure --help` for details.
......
...@@ -129,7 +129,7 @@ dnl If requested and -m32 is available to create 32-bit code, ...@@ -129,7 +129,7 @@ dnl If requested and -m32 is available to create 32-bit code,
dnl treat it like a special case to be checked. dnl treat it like a special case to be checked.
AC_ARG_ENABLE([test-32bit], AC_ARG_ENABLE([test-32bit],
[AS_HELP_STRING([--enable-test-32bit], [AS_HELP_STRING([--enable-test-32bit],
[Enable tests for 32-bit compatibility])], [enable tests for 32-bit compatibility])],
[enable_test_32bit=$enableval], [enable_test_32bit=no]) [enable_test_32bit=$enableval], [enable_test_32bit=no])
AS_IF([test "x$enable_test_32bit" != xno], [ AS_IF([test "x$enable_test_32bit" != xno], [
AX_CHECK_COMPILE_FLAG([-m32], [CFLAGS_M32="-m32 -DEXPLICIT_32BIT"], AX_CHECK_COMPILE_FLAG([-m32], [CFLAGS_M32="-m32 -DEXPLICIT_32BIT"],
...@@ -146,7 +146,7 @@ SANITIZER_CFLAGS="" ...@@ -146,7 +146,7 @@ SANITIZER_CFLAGS=""
dnl Enable Undefined Behavior Sanitizer, if supported. dnl Enable Undefined Behavior Sanitizer, if supported.
AC_ARG_ENABLE([test-ubsan], AC_ARG_ENABLE([test-ubsan],
[AS_HELP_STRING([--disable-test-ubsan], [AS_HELP_STRING([--disable-test-ubsan],
[Disable Undefined Behavior Sanitizer for tests])], [disable Undefined Behavior Sanitizer for tests])],
[disable_test_ubsan=$enableval], [disable_test_ubsan=maybe]) [disable_test_ubsan=$enableval], [disable_test_ubsan=maybe])
AS_IF([test "x$disable_test_ubsan" != xno], [ AS_IF([test "x$disable_test_ubsan" != xno], [
AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=undefined], AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=undefined],
...@@ -187,7 +187,7 @@ dnl http://clang.llvm.org/docs/AddressSanitizer.html ...@@ -187,7 +187,7 @@ dnl http://clang.llvm.org/docs/AddressSanitizer.html
ASAN_ENV_FLAGS="" ASAN_ENV_FLAGS=""
AC_ARG_ENABLE([test-asan], AC_ARG_ENABLE([test-asan],
[AS_HELP_STRING([--disable-test-asan], [AS_HELP_STRING([--disable-test-asan],
[Disable Address Sanitizer for tests])], [disable Address Sanitizer for tests])],
[disable_test_asan=$enableval], [disable_test_asan=maybe]) [disable_test_asan=$enableval], [disable_test_asan=maybe])
AS_IF([test "x$disable_test_asan" != xno], [ AS_IF([test "x$disable_test_asan" != xno], [
AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=address], AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=address],
...@@ -223,7 +223,7 @@ dnl Enable LibFuzzer, if supported. ...@@ -223,7 +223,7 @@ dnl Enable LibFuzzer, if supported.
LIBFUZZER_CFLAGS="" LIBFUZZER_CFLAGS=""
AC_ARG_ENABLE([test-fuzzer], AC_ARG_ENABLE([test-fuzzer],
[AS_HELP_STRING([--enable-test-fuzzer], [AS_HELP_STRING([--enable-test-fuzzer],
[Enable LLVM LibFuzzer for randomized testing])], [enable LLVM LibFuzzer for randomized testing])],
[enable_test_fuzzer=$enableval], [enable_test_fuzzer=no]) [enable_test_fuzzer=$enableval], [enable_test_fuzzer=no])
AS_IF([test "x$enable_test_fuzzer" != xno], [ AS_IF([test "x$enable_test_fuzzer" != xno], [
AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=fuzzer], AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=fuzzer],
......
...@@ -85,7 +85,7 @@ AC_DEFUN([AX_CODE_COVERAGE],[ ...@@ -85,7 +85,7 @@ AC_DEFUN([AX_CODE_COVERAGE],[
AC_MSG_CHECKING([whether to build with code coverage support]) AC_MSG_CHECKING([whether to build with code coverage support])
AC_ARG_ENABLE([code-coverage], AC_ARG_ENABLE([code-coverage],
AS_HELP_STRING([--enable-code-coverage], AS_HELP_STRING([--enable-code-coverage],
[Whether to enable code coverage support]),, [enable code coverage statistics collection]),,
enable_code_coverage=no) enable_code_coverage=no)
AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test x$enable_code_coverage = xyes]) AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test x$enable_code_coverage = xyes])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment